<s> import multiprocessing <EOL> import nbt <EOL> import glob , os . path , sys <EOL> import time <EOL> def f ( x , count ) : <EOL> return <EOL> def test ( ) : <EOL> map_files = glob . glob ( os . path . join ( sys . argv [ <NUM_LIT:1> ] , '<STR_LIT:*>' , '<STR_LIT:*>' , '<STR_LIT>' ) ) <EOL> print '<STR_LIT>' % len ( map_files ) <EOL> pool = multiprocessing . Pool ( ) <EOL> return pool . map ( f , range ( <NUM_LIT> ) , int ( len ( map_files ) / multiprocessing . cpu_count ( ) ) ) . get ( ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> start = time . time ( ) <EOL> x_pos = test ( ) <EOL> print '<STR_LIT>' % ( time . time ( ) - start ) <EOL> print min ( x_pos ) , max ( x_pos ) </s>
