Index: trunk/tools/editor_trends/analyses/plugins/cohort_dataset_forward_bar.py |
— | — | @@ -19,6 +19,12 @@ |
20 | 20 |
|
21 | 21 |
|
22 | 22 | 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 | + '''
|
23 | 29 | new_wikipedian = editor['new_wikipedian']
|
24 | 30 | last_edit = editor['final_edit']
|
25 | 31 | monthly_edits = editor['monthly_edits']
|
Index: trunk/tools/editor_trends/analyses/plugins/cohort_dataset_forward_histogram.py |
— | — | @@ -20,6 +20,13 @@ |
21 | 21 |
|
22 | 22 | def cohort_dataset_forward_histogram(var, editor, **kwargs):
|
23 | 23 | # 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 | +
|
24 | 31 | new_wikipedian = editor['new_wikipedian']
|
25 | 32 | final_edit = editor['final_edit'].year + 1
|
26 | 33 | yearly_edits = editor['edits_by_year']
|
Index: trunk/tools/editor_trends/analyses/plugins/cohort_dataset_backward_bar.py |
— | — | @@ -20,6 +20,12 @@ |
21 | 21 |
|
22 | 22 | def cohort_dataset_backward_bar(var, editor, **kwargs):
|
23 | 23 | #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 | + '''
|
24 | 30 | new_wikipedian = editor['new_wikipedian']
|
25 | 31 | n = editor['edit_count']
|
26 | 32 |
|