<s> """<STR_LIT>""" <EOL> import os <EOL> import time <EOL> import pdb <EOL> import sys <EOL> """<STR_LIT>""" <EOL> COORDINATION_URL = "<STR_LIT>" <EOL> sys . path . insert ( <NUM_LIT:0> , os . path . join ( os . getcwd ( ) , "<STR_LIT:..>" ) ) <EOL> print ( str ( sys . path ) ) <EOL> from bigjob import bigjob , subjob , description <EOL> GLOBUS_ONLINE_USER = "<STR_LIT>" <EOL> GLOBUS_ONLINE_PASSWORD = "<STR_LIT>" <EOL> def main ( ) : <EOL> queue = None <EOL> project = None <EOL> walltime = <NUM_LIT:10> <EOL> processes_per_node = <NUM_LIT:4> <EOL> number_of_processes = <NUM_LIT:8> <EOL> userproxy = None <EOL> """<STR_LIT>""" <EOL> lrms_url = "<STR_LIT>" <EOL> """<STR_LIT>""" <EOL> workingdirectory = "<STR_LIT>" + GLOBUS_ONLINE_USER + "<STR_LIT::>" + GLOBUS_ONLINE_PASSWORD + "<STR_LIT>" <EOL> print "<STR_LIT>" + lrms_url <EOL> bj = bigjob ( COORDINATION_URL ) <EOL> bj_filetransfers = [ "<STR_LIT>" + GLOBUS_ONLINE_USER + "<STR_LIT::>" + GLOBUS_ONLINE_PASSWORD + "<STR_LIT>" + os . path . dirname ( os . path . abspath ( __file__ ) ) <EOL> + "<STR_LIT>" ] <EOL> bj . start_pilot_job ( lrms_url , <EOL> None , <EOL> number_of_processes , <EOL> queue , <EOL> project , <EOL> workingdirectory , <EOL> userproxy , <EOL> walltime , <EOL> processes_per_node , <EOL> bj_filetransfers ) <EOL> print "<STR_LIT>" + bj . pilot_url + "<STR_LIT>" + str ( bj . get_state ( ) ) <EOL> jd = description ( ) <EOL> jd . executable = "<STR_LIT>" <EOL> jd . number_of_processes = "<STR_LIT:1>" <EOL> jd . spmd_variation = "<STR_LIT>" <EOL> jd . arguments = [ "<STR_LIT>" ] <EOL> jd . output = "<STR_LIT>" <EOL> jd . error = "<STR_LIT>" <EOL> jd . file_transfer = [ "<STR_LIT>" + GLOBUS_ONLINE_USER + "<STR_LIT::>" + GLOBUS_ONLINE_PASSWORD + "<STR_LIT>" + os . path . dirname ( os . path . abspath ( __file__ ) ) <EOL> + "<STR_LIT>" ] <EOL> sj = subjob ( ) <EOL> sj . submit_job ( bj . pilot_url , jd ) <EOL> while <NUM_LIT:1> : <EOL> state = str ( sj . get_state ( ) ) <EOL> print "<STR_LIT>" + state <EOL> if ( state == "<STR_LIT>" or state == "<STR_LIT>" ) : <EOL> break <EOL> time . sleep ( <NUM_LIT:2> ) <EOL> bj . cancel ( ) <EOL> """<STR_LIT>""" <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> main ( ) </s>
