<s> def Test ( real = False , verbose = False ) : <EOL> """<STR_LIT>""" <EOL> import housing <EOL> reload ( housing ) <EOL> import skedding <EOL> housing . ClearRegistries ( ) <EOL> print ( housing . Registries ) <EOL> print ( "<STR_LIT>" ) <EOL> print ( housing . Registries [ "<STR_LIT>" ] . Names ) <EOL> print ( housing . Registries [ "<STR_LIT>" ] . Counter ) <EOL> print ( "<STR_LIT>" ) <EOL> house = housing . House ( ) <EOL> t1 = Tasker ( name = '<STR_LIT>' , store = house . store ) <EOL> t2 = Tasker ( name = '<STR_LIT>' , store = house . store ) <EOL> t3 = Tasker ( name = '<STR_LIT>' , store = house . store , period = <NUM_LIT> ) <EOL> t4 = Tasker ( name = '<STR_LIT>' , store = house . store , period = <NUM_LIT> ) <EOL> t5 = Tasker ( name = '<STR_LIT>' , store = house . store , period = <NUM_LIT:0.5> ) <EOL> t6 = Tasker ( name = '<STR_LIT>' , store = house . store , period = <NUM_LIT:1.0> ) <EOL> house . actives = [ t1 , t6 , t2 , t5 , t3 , t4 ] <EOL> skedder = skedding . Skedder ( name = "<STR_LIT>" , period = <NUM_LIT> , real = real , houses = [ house ] ) <EOL> skedder . run ( ) <EOL> def TestProfile ( real = False , verbose = False ) : <EOL> """<STR_LIT>""" <EOL> import cProfile <EOL> import pstats <EOL> import housing <EOL> reload ( housing ) <EOL> import skedding <EOL> housing . ClearRegistries ( ) <EOL> print ( housing . Registries ) <EOL> print ( "<STR_LIT>" ) <EOL> print ( housing . Registries [ "<STR_LIT>" ] . Names ) <EOL> print ( housing . Registries [ "<STR_LIT>" ] . Counter ) <EOL> print ( "<STR_LIT>" ) <EOL> house = housing . House ( ) <EOL> t1 = Tasker ( name = '<STR_LIT>' , store = house . store ) <EOL> t2 = Tasker ( name = '<STR_LIT>' , store = house . store ) <EOL> t3 = Tasker ( name = '<STR_LIT>' , store = house . store , period = <NUM_LIT> ) <EOL> t4 = Tasker ( name = '<STR_LIT>' , store = house . store , period = <NUM_LIT> ) <EOL> t5 = Tasker ( name = '<STR_LIT>' , store = house . store , period = <NUM_LIT:0.5> ) <EOL> t6 = Tasker ( name = '<STR_LIT>' , store = house . store , period = <NUM_LIT:1.0> ) <EOL> house . actives = [ t1 , t6 , t2 , t5 , t3 , t4 ] <EOL> skedder = skedding . Skedder ( name = "<STR_LIT>" , period = <NUM_LIT> , real = real , houses = [ house ] ) <EOL> cProfile . runctx ( '<STR_LIT>' , globals ( ) , locals ( ) , '<STR_LIT>' ) <EOL> p = pstats . Stats ( '<STR_LIT>' ) <EOL> p . sort_stats ( '<STR_LIT:time>' ) . print_stats ( ) <EOL> p . print_callers ( ) <EOL> p . print_callees ( ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> Test ( ) </s>
