<s> import heart ; <EOL> import SETTINGS as c ; <EOL> import sys <EOL> import os <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> """<STR_LIT>""" <EOL> import sys ; <EOL> import time ; <EOL> M = int ( sys . argv [ <NUM_LIT:1> ] ) ; <EOL> N = int ( sys . argv [ <NUM_LIT:2> ] ) ; <EOL> if M == <NUM_LIT:1> : <EOL> info = open ( c . output_dir + "<STR_LIT>" , "<STR_LIT:w>" ) ; <EOL> info . write ( "<STR_LIT>" ) ; <EOL> else : <EOL> info = open ( c . output_dir + "<STR_LIT>" , "<STR_LIT:a>" ) ; <EOL> for case in range ( M , N + <NUM_LIT:1> ) : <EOL> direcs = [ os . path . join ( c . data_kaggle , '<STR_LIT:train>' ) , <EOL> os . path . join ( c . data_kaggle , '<STR_LIT>' ) , <EOL> os . path . join ( c . data_kaggle , '<STR_LIT:test>' ) ] <EOL> s = str ( case ) ; <EOL> direc = next ( p for p in direcs if os . path . exists ( os . path . join ( p , s ) ) ) <EOL> dset = heart . Dataset ( os . path . join ( direc , s ) , s ) ; <EOL> v = dset . info ; <EOL> info . write ( "<STR_LIT>" % ( case , v [ <NUM_LIT:0> ] , v [ <NUM_LIT:1> ] ) ) ; <EOL> info . close ( ) ; </s>
