r85346 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r85345‎ | r85346 | r85347 >
Date:17:34, 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
@@ -610,8 +610,8 @@
611611 article = {}
612612 article['revisions'] = []
613613 id = False
614 - #elif wikilytics == True and event == 'end':
615 - # elem.clear()
 614+ elif event == 'end':
 615+ elem.clear()
616616
617617
618618 def stream_raw_xml(input_queue, storage, process_id, function, dataset, locks, rts):
@@ -735,7 +735,7 @@
736736 function = create_variables
737737 storage = 'csv'
738738 dataset = 'training'
739 - processors = cpu_count()
 739+ processors = 6
740740 extension = 'bz2'
741741 setup(storage)
742742 multiprocessor_launcher(function, path, dataset, storage, processors, extension)
@@ -775,6 +775,6 @@
776776
777777
778778 if __name__ == '__main__':
779 - #launcher_training()
 779+ launcher_training()
780780 #launcher_prediction()
781 - launcher(rts)
 781+ #launcher(rts)