<s> TEST_IDS_PATH = "<STR_LIT>" <EOL> import numpy as np <EOL> import glob <EOL> import os <EOL> filenames = glob . glob ( "<STR_LIT>" ) <EOL> test_ids = [ int ( os . path . basename ( s ) . replace ( "<STR_LIT>" , "<STR_LIT>" ) ) for s in filenames ] <EOL> test_ids . sort ( ) <EOL> test_ids = np . array ( test_ids ) <EOL> print "<STR_LIT>" % TEST_IDS_PATH <EOL> np . save ( TEST_IDS_PATH , test_ids ) </s>
