r95022 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r95021‎ | r95022 | r95023 >
Date:17:59, 19 August 2011
Author:giovanni
Status:deferred
Tags:
Comment:
added author and email information to my scripts
Modified paths:
  • /trunk/tools/wsor/contribution_inequality/ginichart.py (modified) (history)
  • /trunk/tools/wsor/contribution_inequality/topcontributors.py (modified) (history)
  • /trunk/tools/wsor/editor_lifecycle/fetchrates (modified) (history)
  • /trunk/tools/wsor/editor_lifecycle/fitting (modified) (history)
  • /trunk/tools/wsor/editor_lifecycle/mkcohort (modified) (history)
  • /trunk/tools/wsor/editor_lifecycle/mrtchart (modified) (history)
  • /trunk/tools/wsor/editor_lifecycle/rateperedits.py (modified) (history)
  • /trunk/tools/wsor/editor_lifecycle/sefit (modified) (history)
  • /trunk/tools/wsor/editor_lifecycle/setup.py (modified) (history)
  • /trunk/tools/wsor/editor_lifecycle/timechart (modified) (history)
  • /trunk/tools/wsor/registration_lags/evolplot (modified) (history)
  • /trunk/tools/wsor/registration_lags/fitmixture (modified) (history)
  • /trunk/tools/wsor/registration_lags/graphics.py (modified) (history)
  • /trunk/tools/wsor/registration_lags/mixhist (modified) (history)

Diff [purge]

Index: trunk/tools/wsor/registration_lags/fitmixture
@@ -3,6 +3,9 @@
44
55 ''' fits lags data to a gaussian mixture model '''
66
 7+__author__ = "Giovanni Luca Ciampaglia"
 8+__email__ = "gciampaglia@wikimedia.org"
 9+
710 import os
811 from argparse import ArgumentParser
912 import numpy as np
Index: trunk/tools/wsor/registration_lags/evolplot
@@ -1,6 +1,9 @@
22 #!/usr/bin/python
33 # :vim:ft=python
44
 5+__author__ = "Giovanni Luca Ciampaglia"
 6+__email__ = "gciampaglia@wikimedia.org"
 7+
58 import os
69 from pylab import *
710 from datetime import datetime
Index: trunk/tools/wsor/registration_lags/mixhist
@@ -3,6 +3,9 @@
44
55 ''' plot histogram of waiting time data in log-space '''
66
 7+__author__ = "Giovanni Luca Ciampaglia"
 8+__email__ = "gciampaglia@wikimedia.org"
 9+
710 from argparse import ArgumentParser
811 from pylab import *
912 import os
Index: trunk/tools/wsor/registration_lags/graphics.py
@@ -4,6 +4,9 @@
55 from scipy.stats import gaussian_kde
66 from matplotlib.collections import LineCollection
77
 8+__author__ = "Giovanni Luca Ciampaglia"
 9+__email__ = "gciampaglia@wikimedia.org"
 10+
811 def stackedarea(x, components, weights, cmap=cm.YlGnBu, **kwargs):
912 '''
1013 Produces a stacked area plot from given components and weights.
Index: trunk/tools/wsor/contribution_inequality/ginichart.py
@@ -1,6 +1,9 @@
22 #!/usr/bin/python
33 ''' computes gini coefficient of contribution to namespace per year '''
44
 5+__author__ = "Giovanni Luca Ciampaglia"
 6+__email__ = "gciampaglia@wikimedia.org"
 7+
58 import os
69 import sys
710 import csv
Index: trunk/tools/wsor/contribution_inequality/topcontributors.py
@@ -2,6 +2,9 @@
33
44 ''' lists top contributors by year and namespace '''
55
 6+__author__ = "Giovanni Luca Ciampaglia"
 7+__email__ = "gciampaglia@wikimedia.org"
 8+
69 import os
710 import sys
811 import csv
Index: trunk/tools/wsor/editor_lifecycle/timechart
@@ -2,6 +2,9 @@
33
44 ''' plots cohort rate date '''
55
 6+__author__ = "Giovanni Luca Ciampaglia"
 7+__email__ = "gciampaglia@wikimedia.org"
 8+
69 import os
710 import sys
811
Index: trunk/tools/wsor/editor_lifecycle/rateperedits.py
@@ -4,6 +4,9 @@
55 Radicchi (2009), Phys. Rev. E 80, 026118, that used data from a snapshot of the
66 logging table from 2008. '''
77
 8+__author__ = "Giovanni Luca Ciampaglia"
 9+__email__ = "gciampaglia@wikimedia.org"
 10+
811 import re
912 import os
1013 import sys
Index: trunk/tools/wsor/editor_lifecycle/mrtchart
@@ -1,6 +1,9 @@
22 #!/usr/bin/python
33 # coding: utf8
44
 5+__author__ = "Giovanni Luca Ciampaglia"
 6+__email__ = "gciampaglia@wikimedia.org"
 7+
58 import re
69 import os
710 import sys
Index: trunk/tools/wsor/editor_lifecycle/mkcohort
@@ -3,6 +3,9 @@
44
55 ''' finding better cohorts by real user activity '''
66
 7+__author__ = "Giovanni Luca Ciampaglia"
 8+__email__ = "gciampaglia@wikimedia.org"
 9+
710 import os
811 import sys
912 import csv
Index: trunk/tools/wsor/editor_lifecycle/setup.py
@@ -1,5 +1,8 @@
22 from distutils.core import setup
33
 4+__author__ = "Giovanni Luca Ciampaglia"
 5+__email__ = "gciampaglia@wikimedia.org"
 6+
47 setup(
58 name='lifecycle',
69 description='WMF summer of research project',
Index: trunk/tools/wsor/editor_lifecycle/fetchrates
@@ -1,5 +1,8 @@
22 #!/usr/bin/python
33
 4+__author__ = "Giovanni Luca Ciampaglia"
 5+__email__ = "gciampaglia@wikimedia.org"
 6+
47 import sys
58 import os
69 import numpy as np
Index: trunk/tools/wsor/editor_lifecycle/fitting
@@ -4,6 +4,9 @@
55
66 ''' editor lifecycle data fitting tool '''
77
 8+__author__ = "Giovanni Luca Ciampaglia"
 9+__email__ = "gciampaglia@wikimedia.org"
 10+
811 import sys
912 import os
1013 import numpy as np
Index: trunk/tools/wsor/editor_lifecycle/sefit
@@ -3,6 +3,9 @@
44
55 ''' batch model fitting (usable with xargs)'''
66
 7+__author__ = "Giovanni Luca Ciampaglia"
 8+__email__ = "gciampaglia@wikimedia.org"
 9+
710 import re
811 import os
912 import sys

Status & tagging log