r85349 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r85348‎ | r85349 | r85350 >
Date:17:45, 4 April 2011
Author:diederik
Status:deferred
Tags:
Comment:
Data competition fix.
Modified paths:
  • /trunk/tools/editor_trends/etl/enricher.py (modified) (history)

Diff [purge]

Index: trunk/tools/editor_trends/etl/enricher.py
@@ -735,9 +735,15 @@
736736 function = create_variables
737737 storage = 'csv'
738738 dataset = 'training'
739 - processors = 6
 739+ processors = 7
740740 extension = 'bz2'
741 - setup(storage)
 741+ rts = object()
 742+ rts.language = object()
 743+ rts.project = object()
 744+ rts.input_location = path
 745+ rts.language.code = 'en'
 746+ rts.project.name = 'wiki'
 747+ setup(storage, rts)
742748 multiprocessor_launcher(function, path, dataset, storage, processors, extension)
743749
744750
@@ -751,6 +757,12 @@
752758 dataset = 'prediction'
753759 processors = 7
754760 extension = 'bz2'
 761+ rts = object()
 762+ rts.language = object()
 763+ rts.project = object()
 764+ rts.input_location = path
 765+ rts.language.code = 'en'
 766+ rts.project.name = 'wiki'
755767 setup(storage)
756768 multiprocessor_launcher(function, path, dataset, storage, processors, extension)
757769