r88423 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r88422‎ | r88423 | r88424 >
Date:19:47, 19 May 2011
Author:diederik
Status:deferred
Tags:
Comment:
Stata file for generating PPI charts.
Modified paths:
  • /trunk/tools/editor_trends/statistics/stata/ppi.do (added) (history)

Diff [purge]

Index: trunk/tools/editor_trends/statistics/stata/ppi.do
@@ -0,0 +1,45 @@
 2+clear
 3+insheet using "C:\Users\diederik.vanliere\Desktop\ppi_quality.csv"
 4+label var character_count_a "PPI editor"
 5+label var character_count_b "Regular editor"
 6+
 7+label var cum_edit_count_main_ns_a "PPI editor"
 8+label var cum_edit_count_main_ns_b "Regular editor"
 9+
 10+label var article_count_a "PPI editor"
 11+label var article_count_b "Regular editor"
 12+
 13+label var cum_edit_count_other_ns_a "PPI editor"
 14+label var cum_edit_count_other_ns_b "Regular editor"
 15+
 16+label var revert_count "PPI editor"
 17+label var v14 "Regular editor"
 18+
 19+
 20+local dataset_note = "Dataset: http://svn.wikimedia.org/svnroot/mediawiki/trunk/tools/editor_trends/analyses/adhoc/ppi_quality.py [REV: 88408]"
 21+local chart_note = "Chart: http://svn.wikimedia.org/svnroot/mediawiki/trunk/tools/editor_trends/statistics/stata/ppi.do [REV: 88409]"
 22+local copyright = "Chart is available under the Creative Commons Attribution/Share-Alike License."
 23+local date ="Summer of Research / Wikimedia Foundation / $S_DATE"
 24+
 25+graph bar (asis) character_count_a character_count_b, over(editor_a, sort(id) descending label(nolabel)) nofill title(Matching PPI and Regular Editors) subtitle(Characters Added) legend(rows(1) size(small)) note("`chart_note'" "`dataset_note'" "`copyright'" "`date'", size(tiny))
 26+graph export "ppi_character_count.png", replace
 27+graph bar (asis) cum_edit_count_main_ns_a cum_edit_count_main_ns_b, over(editor_a, sort(id) descending label(nolabel)) nofill title(Matching PPI and Regular Editors) subtitle(Cumulative edits in main mamespace) legend(rows(1) size(small)) note("`chart_note'" "`dataset_note'" "`copyright'" "`date'", size(tiny))
 28+graph export "ppi_cum_edit_count_main_ns.png", replace
 29+graph bar (asis) article_count_a article_count_b, over(editor_a, sort(id) descending label(nolabel)) nofill title(Matching PPI and Regular Editors) subtitle(Number of articles edited) legend(rows(1) size(small)) note("`chart_note'" "`dataset_note'" "`copyright'" "`date'", size(tiny))
 30+graph export "ppi_article_count.png", replace
 31+graph bar (asis) cum_edit_count_other_ns_a cum_edit_count_other_ns_b, over(editor_a, sort(id) descending label(nolabel)) nofill title(Matching PPI and Regular Editors) subtitle(Cumulative edits in non main namespace) legend(rows(1) size(small)) note("`chart_note'" "`dataset_note'" "`copyright'" "`date'", size(tiny))
 32+graph export "ppi_cum_edit_count_other_ns.png", replace
 33+graph bar (asis) revert_count v14, over(editor_a, sort(id) label(nolabel)) title(Matching PPI editors and Regular editors) subtitle(Number of edits reverted) legend(rows(1) size(small)) note("`chart_note'" "`dataset_note'" "`copyright'" "`date'", size(tiny))
 34+graph export "ppi_revert_count.png", replace
 35+
 36+
 37+//graph bar (asis) character_count_a character_count_b, over(editor_a, sort(character_count_a) descending label(nolabel)) nofill title(Matching PPI and Regular Editors) subtitle(Characters Added) legend(cols(1) size(small)) note("`chart_note'" "`dataset_note'" "`copyright'", size(tiny))
 38+//graph export ppi_character_count.png, replace
 39+//graph bar (asis) cum_edit_count_main_ns_a cum_edit_count_main_ns_b, over(editor_a, sort(cum_edit_count_main_ns_a) descending label(nolabel)) nofill title(Matching PPI and Regular Editors) subtitle(Cumulative edits in main mamespace) legend(cols(1) size(small)) note("`chart_note'" "`dataset_note'" "`copyright'", size(tiny))
 40+//graph export "ppi_cum_edit_count_main_ns.png", replace
 41+//graph bar (asis) article_count_a article_count_b, over(editor_a, sort(article_count_a) descending label(nolabel)) nofill title(Matching PPI and Regular Editors) subtitle(Number of articles edited) legend(cols(1) size(small)) note("`chart_note'" "`dataset_note'" "`copyright'", size(tiny))
 42+//graph export "ppi_article_count.png", replace
 43+//graph bar (asis) cum_edit_count_other_ns_a cum_edit_count_other_ns_b, over(editor_a, sort(cum_edit_count_other_ns_a) descending label(nolabel)) nofill title(Matching PPI and Regular Editors) subtitle(Cumulative edits in non main namespace) legend(cols(1) size(small)) note("`chart_note'" "`dataset_note'" "`copyright'", size(tiny))
 44+//graph export "ppi_cum_edit_count_other_ns.png", replace
 45+//graph bar (asis) revert_count v14, over(editor_a, sort(revert_count) label(nolabel)) title(Matching PPI editors and Regular editors) subtitle(Number of edits reverted) legend(cols(1) size(small)) note("`chart_note'" "`dataset_note'" "`copyright'" "`date'", size(tiny))
 46+//graph export "ppi_revert_count.png", replace
Property changes on: trunk/tools/editor_trends/statistics/stata/ppi.do
___________________________________________________________________
Added: svn:eol-style
147 + native