r81161 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r81160‎ | r81161 | r81162 >
Date:20:51, 28 January 2011
Author:diederik
Status:deferred
Tags:
Comment:
A little bit of documentation.
Modified paths:
  • /trunk/tools/editor_trends/analyses/plugins/cohort_dataset_backward_bar.py (modified) (history)
  • /trunk/tools/editor_trends/analyses/plugins/cohort_dataset_forward_bar.py (modified) (history)
  • /trunk/tools/editor_trends/analyses/plugins/cohort_dataset_forward_histogram.py (modified) (history)

Diff [purge]

Index: trunk/tools/editor_trends/analyses/plugins/cohort_dataset_forward_bar.py
@@ -19,6 +19,12 @@
2020
2121
2222 def cohort_dataset_forward_bar(var, editor, **kwargs):
 23+ '''
 24+ The forward looking bar charts looks for every month that an editor
 25+ was part of the Wikimedia community whether this person made at least cutoff
 26+ value edits. If yes, then include this person in the analysis, else skip the
 27+ person.
 28+ '''
2329 new_wikipedian = editor['new_wikipedian']
2430 last_edit = editor['final_edit']
2531 monthly_edits = editor['monthly_edits']
Index: trunk/tools/editor_trends/analyses/plugins/cohort_dataset_forward_histogram.py
@@ -20,6 +20,13 @@
2121
2222 def cohort_dataset_forward_histogram(var, editor, **kwargs):
2323 # headers = ['year', 'month', 'edits']
 24+ '''
 25+ The forward looking histogram looks for every month that an editor
 26+ was part of the Wikimedia community whether this person made at least cutoff
 27+ value edits. If yes, then include this person in the analysis, else skip the
 28+ person.
 29+ '''
 30+
2431 new_wikipedian = editor['new_wikipedian']
2532 final_edit = editor['final_edit'].year + 1
2633 yearly_edits = editor['edits_by_year']
Index: trunk/tools/editor_trends/analyses/plugins/cohort_dataset_backward_bar.py
@@ -20,6 +20,12 @@
2121
2222 def cohort_dataset_backward_bar(var, editor, **kwargs):
2323 #first_edit = editor['first_edit']
 24+ '''
 25+ The backward looking bar chart looks for every year that an editor
 26+ was part of the Wikimedia community whether this person made at least cutoff
 27+ value edits. If yes, then include this person in the analysis, else skip the
 28+ person.
 29+ '''
2430 new_wikipedian = editor['new_wikipedian']
2531 n = editor['edit_count']
2632

Status & tagging log