repo
stringlengths
7
54
path
stringlengths
4
223
func_name
stringlengths
1
134
original_string
stringlengths
75
104k
language
stringclasses
1 value
code
stringlengths
75
104k
code_tokens
listlengths
20
28.4k
docstring
stringlengths
1
46.3k
docstring_tokens
listlengths
1
1.66k
sha
stringlengths
40
40
url
stringlengths
87
315
partition
stringclasses
1 value
summary
stringlengths
4
350
obf_code
stringlengths
7.85k
764k
dnanexus/dx-toolkit
src/python/dxpy/bindings/download_all_inputs.py
_create_dirs
def _create_dirs(idir, dirs): ''' Create a set of directories, so we could store the input files. For example, seq1 could be stored under: /in/seq1/NC_001122.fasta TODO: this call could fail, we need to report a reasonable error code Note that we create a directory for every file array, even if it has zero inputs. ''' # create the <idir> itself file_load_utils.ensure_dir(idir) # create each subdir for d in dirs: file_load_utils.ensure_dir(os.path.join(idir, d))
python
def _create_dirs(idir, dirs): ''' Create a set of directories, so we could store the input files. For example, seq1 could be stored under: /in/seq1/NC_001122.fasta TODO: this call could fail, we need to report a reasonable error code Note that we create a directory for every file array, even if it has zero inputs. ''' # create the <idir> itself file_load_utils.ensure_dir(idir) # create each subdir for d in dirs: file_load_utils.ensure_dir(os.path.join(idir, d))
[ "def", "_create_dirs", "(", "idir", ",", "dirs", ")", ":", "# create the <idir> itself", "file_load_utils", ".", "ensure_dir", "(", "idir", ")", "# create each subdir", "for", "d", "in", "dirs", ":", "file_load_utils", ".", "ensure_dir", "(", "os", ".", "path", ".", "join", "(", "idir", ",", "d", ")", ")" ]
Create a set of directories, so we could store the input files. For example, seq1 could be stored under: /in/seq1/NC_001122.fasta TODO: this call could fail, we need to report a reasonable error code Note that we create a directory for every file array, even if it has zero inputs.
[ "Create", "a", "set", "of", "directories", "so", "we", "could", "store", "the", "input", "files", ".", "For", "example", "seq1", "could", "be", "stored", "under", ":", "/", "in", "/", "seq1", "/", "NC_001122", ".", "fasta" ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/download_all_inputs.py#L27-L42
train
Create a set of directories that can be used to store the input files.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZf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qQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(48) + '\157' + chr(752 - 701) + chr(2233 - 2182) + chr(49), 28168 - 28160), nzTpIcepk0o8('\x30' + chr(0b1001111 + 0o40) + chr(0b10111 + 0o34) + chr(2628 - 2576) + chr(53), 0o10), nzTpIcepk0o8(chr(2285 - 2237) + '\x6f' + chr(1554 - 1503) + '\067' + '\066', ord("\x08")), nzTpIcepk0o8(chr(1530 - 1482) + chr(0b100011 + 0o114) + chr(0b110010), 18652 - 18644), nzTpIcepk0o8('\060' + chr(8308 - 8197) + chr(0b110011) + '\x35' + chr(1448 - 1398), 14764 - 14756), nzTpIcepk0o8(chr(0b101111 + 0o1) + chr(0b1101111) + '\061' + chr(0b10101 + 0o37) + chr(844 - 793), 0b1000), nzTpIcepk0o8('\x30' + '\157' + '\063' + '\x30' + chr(0b101010 + 0o10), 0b1000), nzTpIcepk0o8(chr(2175 - 2127) + '\x6f' + chr(0b110001) + chr(1879 - 1827) + chr(49), 0b1000), nzTpIcepk0o8(chr(471 - 423) + chr(0b1010 + 0o145) + chr(268 - 217) + chr(50) + chr(1627 - 1573), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(1113 - 1064) + chr(50) + chr(939 - 886), 46972 - 46964), nzTpIcepk0o8('\060' + chr(6455 - 6344) + '\x32' + chr(50) + '\x34', ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + '\x32' + '\x33' + chr(51), 0b1000), nzTpIcepk0o8(chr(0b100 + 0o54) + chr(2999 - 2888) + chr(51) + chr(2099 - 2051) + chr(0b110101), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + '\063' + '\x34' + '\065', 8), nzTpIcepk0o8(chr(0b101001 + 0o7) + '\157' + '\063' + chr(48), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + '\061' + chr(0b101100 + 0o7) + '\063', 0o10), nzTpIcepk0o8('\x30' + chr(0b100001 + 0o116) + '\x31' + '\061' + '\x32', 0o10), nzTpIcepk0o8(chr(981 - 933) + chr(111) + '\x34' + '\062', 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + '\x33' + chr(0b110 + 0o55) + chr(53), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b0 + 0o64) + '\065', ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(323 - 274) + '\064' + '\060', 0b1000), nzTpIcepk0o8(chr(0b11011 + 0o25) + chr(5598 - 5487) + chr(51) + '\065' + '\x34', ord("\x08")), nzTpIcepk0o8('\060' + '\157' + '\062' + '\x33' + chr(0b110111), 48934 - 48926), nzTpIcepk0o8(chr(0b1000 + 0o50) + '\x6f' + '\x36' + chr(0b10001 + 0o43), ord("\x08")), nzTpIcepk0o8(chr(0b111 + 0o51) + chr(0b1101111) + chr(0b10111 + 0o32) + chr(0b110011) + '\x35', 0o10), nzTpIcepk0o8(chr(175 - 127) + chr(0b1101110 + 0o1) + chr(0b110010) + chr(51) + '\x33', 8), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(51) + chr(0b110001) + chr(0b110001 + 0o6), 59797 - 59789), nzTpIcepk0o8('\x30' + chr(0b1001 + 0o146) + chr(0b110010) + chr(0b110111) + chr(0b10111 + 0o35), 0b1000), nzTpIcepk0o8('\060' + chr(11064 - 10953) + '\x32' + '\x36' + chr(0b10001 + 0o37), 25854 - 25846), nzTpIcepk0o8(chr(48) + chr(686 - 575) + '\x32' + chr(0b110 + 0o60) + '\066', 29535 - 29527), nzTpIcepk0o8('\x30' + chr(4062 - 3951) + chr(49) + chr(908 - 859) + chr(319 - 264), 34208 - 34200), nzTpIcepk0o8(chr(48) + '\157' + chr(0b101011 + 0o14) + chr(49), 0b1000), nzTpIcepk0o8('\060' + chr(0b101011 + 0o104) + chr(0b110011) + chr(48) + '\x37', 0b1000), nzTpIcepk0o8(chr(0b11001 + 0o27) + '\x6f' + chr(2202 - 2151) + '\060', 8), nzTpIcepk0o8(chr(0b100111 + 0o11) + '\157' + '\x31' + chr(0b110111) + chr(0b101001 + 0o15), 8957 - 8949), nzTpIcepk0o8('\x30' + chr(9115 - 9004) + chr(0b11 + 0o60) + chr(0b110011), 13484 - 13476), nzTpIcepk0o8(chr(0b110 + 0o52) + chr(0b1101111) + chr(852 - 797) + chr(0b11000 + 0o31), 8), nzTpIcepk0o8(chr(0b101111 + 0o1) + chr(7141 - 7030) + '\x36' + chr(52), 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(50) + chr(2491 - 2436) + chr(0b10001 + 0o44), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x32' + chr(0b11100 + 0o24) + chr(48), 33284 - 33276)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + '\157' + chr(0b110101) + '\060', 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xf7'), chr(0b1011000 + 0o14) + chr(7357 - 7256) + chr(99) + chr(0b1101111) + chr(100) + chr(6346 - 6245))(chr(117) + chr(0b1110100) + '\146' + '\x2d' + chr(0b10110 + 0o42)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def xTIpLFapQA8e(gYjynShjOnhC, VNlxNzbaDsmx): roI3spqORKae(IVC3nk8yPXfI, roI3spqORKae(ES5oEprVxulp(b"\xbc\x8b\x8dw\x98\x06\x9d\x05\xbf'"), chr(0b1100100) + chr(2377 - 2276) + chr(0b1100011) + '\x6f' + chr(100) + chr(101))(chr(5962 - 5845) + '\164' + chr(2299 - 2197) + chr(0b101101) + chr(0b111000)))(gYjynShjOnhC) for vPPlOXQgR3SM in VNlxNzbaDsmx: roI3spqORKae(IVC3nk8yPXfI, roI3spqORKae(ES5oEprVxulp(b"\xbc\x8b\x8dw\x98\x06\x9d\x05\xbf'"), chr(0b1100100) + chr(101) + chr(0b10 + 0o141) + chr(0b1101111) + '\x64' + '\x65')(chr(0b0 + 0o165) + chr(116) + '\x66' + chr(998 - 953) + '\x38'))(roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'\x80\xd1\x87O\xd3!\xa1\x07\x82\x16\xda\xea'), '\x64' + '\145' + chr(0b1001001 + 0o32) + chr(7473 - 7362) + '\x64' + chr(0b1100101))(chr(0b1110101) + chr(3501 - 3385) + '\x66' + '\x2d' + chr(0b111000)))(gYjynShjOnhC, vPPlOXQgR3SM))
dnanexus/dx-toolkit
src/python/dxpy/bindings/download_all_inputs.py
_gen_helper_dict
def _gen_helper_dict(filtered_inputs): ''' Create a dict of values for the downloaded files. This is similar to the variables created when running a bash app. ''' file_key_descs, _ignore = file_load_utils.analyze_bash_vars( file_load_utils.get_input_json_file(), None) flattened_dict = {} def add_if_no_collision(key, value, dict_): if key not in dict_: dict_[key] = value for input_ in filtered_inputs: if input_ not in file_key_descs: continue input_var_dict = file_key_descs[input_] add_if_no_collision(input_ + '_path', input_var_dict["path"], flattened_dict) add_if_no_collision(input_ + '_name', input_var_dict["basename"], flattened_dict) add_if_no_collision(input_ + '_prefix', input_var_dict["prefix"], flattened_dict) return flattened_dict
python
def _gen_helper_dict(filtered_inputs): ''' Create a dict of values for the downloaded files. This is similar to the variables created when running a bash app. ''' file_key_descs, _ignore = file_load_utils.analyze_bash_vars( file_load_utils.get_input_json_file(), None) flattened_dict = {} def add_if_no_collision(key, value, dict_): if key not in dict_: dict_[key] = value for input_ in filtered_inputs: if input_ not in file_key_descs: continue input_var_dict = file_key_descs[input_] add_if_no_collision(input_ + '_path', input_var_dict["path"], flattened_dict) add_if_no_collision(input_ + '_name', input_var_dict["basename"], flattened_dict) add_if_no_collision(input_ + '_prefix', input_var_dict["prefix"], flattened_dict) return flattened_dict
[ "def", "_gen_helper_dict", "(", "filtered_inputs", ")", ":", "file_key_descs", ",", "_ignore", "=", "file_load_utils", ".", "analyze_bash_vars", "(", "file_load_utils", ".", "get_input_json_file", "(", ")", ",", "None", ")", "flattened_dict", "=", "{", "}", "def", "add_if_no_collision", "(", "key", ",", "value", ",", "dict_", ")", ":", "if", "key", "not", "in", "dict_", ":", "dict_", "[", "key", "]", "=", "value", "for", "input_", "in", "filtered_inputs", ":", "if", "input_", "not", "in", "file_key_descs", ":", "continue", "input_var_dict", "=", "file_key_descs", "[", "input_", "]", "add_if_no_collision", "(", "input_", "+", "'_path'", ",", "input_var_dict", "[", "\"path\"", "]", ",", "flattened_dict", ")", "add_if_no_collision", "(", "input_", "+", "'_name'", ",", "input_var_dict", "[", "\"basename\"", "]", ",", "flattened_dict", ")", "add_if_no_collision", "(", "input_", "+", "'_prefix'", ",", "input_var_dict", "[", "\"prefix\"", "]", ",", "flattened_dict", ")", "return", "flattened_dict" ]
Create a dict of values for the downloaded files. This is similar to the variables created when running a bash app.
[ "Create", "a", "dict", "of", "values", "for", "the", "downloaded", "files", ".", "This", "is", "similar", "to", "the", "variables", "created", "when", "running", "a", "bash", "app", "." ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/download_all_inputs.py#L82-L105
train
Generate a dict of values for the downloaded files.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3A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vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b100000 + 0o20) + '\x6f' + chr(49) + chr(0b110100) + '\x31', 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(2524 - 2473) + chr(2182 - 2134) + '\x30', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b11101 + 0o25) + chr(1831 - 1782) + chr(49), 1903 - 1895), nzTpIcepk0o8(chr(0b10 + 0o56) + '\157' + '\x32' + '\067' + '\x32', 53844 - 53836), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110010) + chr(0b1011 + 0o51) + '\x30', 0o10), nzTpIcepk0o8(chr(2103 - 2055) + chr(0b110000 + 0o77) + chr(0b110010) + '\x30' + chr(0b1 + 0o61), 0o10), nzTpIcepk0o8(chr(1112 - 1064) + '\x6f' + '\x32' + chr(0b110100) + chr(51), 0o10), nzTpIcepk0o8('\060' + chr(0b1010111 + 0o30) + '\061' + '\066' + chr(0b11111 + 0o26), 0o10), nzTpIcepk0o8(chr(607 - 559) + '\x6f' + '\x31' + chr(48) + chr(55), 0o10), nzTpIcepk0o8('\060' + '\x6f' + '\063' + chr(50) + chr(50), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x31' + chr(252 - 202) + '\x33', 0o10), nzTpIcepk0o8(chr(48) + chr(5051 - 4940) + chr(0b110011) + chr(2475 - 2422) + chr(0b110101), 0o10), nzTpIcepk0o8(chr(0b110000 + 0o0) + chr(0b1101111) + '\067' + chr(52), 0b1000), nzTpIcepk0o8('\060' + chr(9599 - 9488) + '\x31' + chr(0b110000) + chr(0b110110), 0b1000), nzTpIcepk0o8(chr(1712 - 1664) + chr(111) + '\062' + '\066' + chr(0b1100 + 0o50), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(51) + '\x35' + chr(1436 - 1388), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b11110 + 0o24) + '\060' + chr(0b110101), 36571 - 36563), nzTpIcepk0o8('\060' + '\x6f' + '\x31' + chr(0b110000) + chr(1525 - 1475), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110001) + chr(0b110101) + '\066', 54980 - 54972), nzTpIcepk0o8(chr(611 - 563) + chr(0b1101111) + '\x33' + '\061' + '\x34', 43819 - 43811), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\061' + chr(2801 - 2748) + chr(1351 - 1298), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x31' + chr(2780 - 2727) + '\061', ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(1043 - 992) + '\x31' + chr(0b100 + 0o63), ord("\x08")), nzTpIcepk0o8(chr(0b101001 + 0o7) + chr(111) + chr(0b110011) + chr(0b10101 + 0o34) + '\x33', 14902 - 14894), nzTpIcepk0o8(chr(2202 - 2154) + '\x6f' + chr(49) + chr(51) + '\x32', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(51) + chr(0b11101 + 0o31) + chr(763 - 713), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b11110 + 0o121) + chr(0b110001) + '\x34' + chr(1701 - 1646), 0b1000), nzTpIcepk0o8(chr(0b100001 + 0o17) + chr(111) + chr(0b11 + 0o61) + chr(48), 0b1000), nzTpIcepk0o8(chr(411 - 363) + chr(0b1101101 + 0o2) + chr(51) + chr(1679 - 1628) + chr(1873 - 1824), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b1010 + 0o50) + chr(0b110100), 893 - 885), nzTpIcepk0o8(chr(48) + chr(111) + chr(50) + '\x37' + '\x34', 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101 + 0o142) + chr(2460 - 2410) + chr(52) + chr(0b1011 + 0o51), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b10001 + 0o42) + chr(1344 - 1296) + chr(0b110010 + 0o3), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(0b110001) + chr(49) + '\065', 0o10), nzTpIcepk0o8(chr(48) + chr(111) + '\064' + chr(0b110111), 2492 - 2484), nzTpIcepk0o8(chr(1952 - 1904) + '\157' + '\061' + chr(53) + chr(1727 - 1675), 0o10), nzTpIcepk0o8(chr(0b111 + 0o51) + chr(0b1011101 + 0o22) + '\062' + chr(0b110001) + chr(48), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b100100 + 0o16) + '\x30' + chr(53), 8), nzTpIcepk0o8('\060' + '\157' + chr(1741 - 1692) + '\067' + '\x33', 0b1000), nzTpIcepk0o8(chr(0b10000 + 0o40) + chr(0b1101111) + chr(0b100101 + 0o15) + '\065' + '\066', 27302 - 27294)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b11010 + 0o26) + chr(0b1101111) + '\065' + '\060', 18927 - 18919)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'O'), chr(100) + chr(0b1100010 + 0o3) + chr(0b10111 + 0o114) + chr(1183 - 1072) + '\x64' + chr(0b1100101))(chr(0b1100100 + 0o21) + '\x74' + chr(0b1101 + 0o131) + chr(45) + chr(0b111000)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def V9Gh02672K4l(NTlLKSKZM5UL): (phVRuLrwC6KI, u9jKd2bT87dO) = IVC3nk8yPXfI.analyze_bash_vars(IVC3nk8yPXfI.get_input_json_file(), None) IvRBRazpMSzg = {} def JBhQDje5s4oS(QYodcsDtoGq7, uV9iBiw0y_Mp, FaREElji0QTX): if QYodcsDtoGq7 not in FaREElji0QTX: FaREElji0QTX[QYodcsDtoGq7] = uV9iBiw0y_Mp for KU1PQKEvwYcL in NTlLKSKZM5UL: if KU1PQKEvwYcL not in phVRuLrwC6KI: continue TausDJvyrn7F = phVRuLrwC6KI[KU1PQKEvwYcL] JBhQDje5s4oS(KU1PQKEvwYcL + roI3spqORKae(ES5oEprVxulp(b'>\xb0\xe8\xce\xc8'), chr(7009 - 6909) + chr(0b1010001 + 0o24) + chr(0b1001111 + 0o24) + chr(11964 - 11853) + '\144' + chr(101))('\165' + chr(4647 - 4531) + chr(102) + '\055' + chr(1550 - 1494)), TausDJvyrn7F[roI3spqORKae(ES5oEprVxulp(b'\x11\xa1\xfd\xd2'), chr(0b1010 + 0o132) + chr(2687 - 2586) + chr(4262 - 4163) + '\x6f' + '\x64' + '\145')(chr(4894 - 4777) + '\164' + chr(0b1000110 + 0o40) + chr(611 - 566) + chr(56))], IvRBRazpMSzg) JBhQDje5s4oS(KU1PQKEvwYcL + roI3spqORKae(ES5oEprVxulp(b'>\xae\xe8\xd7\xc5'), '\144' + chr(0b10111 + 0o116) + '\x63' + chr(0b100111 + 0o110) + chr(4455 - 4355) + chr(101))(chr(620 - 503) + '\164' + '\x66' + chr(88 - 43) + chr(56)), TausDJvyrn7F[roI3spqORKae(ES5oEprVxulp(b'\x03\xa1\xfa\xdf\xce\xe3\xce\x10'), '\x64' + chr(0b1001001 + 0o34) + chr(0b100100 + 0o77) + chr(10167 - 10056) + chr(4707 - 4607) + '\145')('\x75' + chr(1766 - 1650) + chr(102) + chr(0b1010 + 0o43) + chr(0b111000))], IvRBRazpMSzg) JBhQDje5s4oS(KU1PQKEvwYcL + roI3spqORKae(ES5oEprVxulp(b'>\xb0\xfb\xdf\xc6\xeb\xdb'), chr(0b1011110 + 0o6) + chr(101) + chr(99) + chr(111) + '\x64' + chr(4674 - 4573))('\x75' + '\x74' + chr(0b11110 + 0o110) + chr(45) + chr(400 - 344)), TausDJvyrn7F[roI3spqORKae(ES5oEprVxulp(b'\x11\xb2\xec\xdc\xc9\xfa'), chr(0b100011 + 0o101) + chr(101) + chr(99) + '\x6f' + chr(0b1100100) + chr(0b11001 + 0o114))(chr(9016 - 8899) + chr(0b1101100 + 0o10) + chr(0b1100110) + chr(0b101101) + chr(0b100001 + 0o27))], IvRBRazpMSzg) return IvRBRazpMSzg
dnanexus/dx-toolkit
src/python/dxpy/bindings/download_all_inputs.py
_get_num_parallel_threads
def _get_num_parallel_threads(max_threads, num_cores, mem_available_mb): ''' Ensure at least ~1.2 GB memory per thread, see PTFM-18767 ''' return min(max_threads, num_cores, max(int(mem_available_mb/1200), 1))
python
def _get_num_parallel_threads(max_threads, num_cores, mem_available_mb): ''' Ensure at least ~1.2 GB memory per thread, see PTFM-18767 ''' return min(max_threads, num_cores, max(int(mem_available_mb/1200), 1))
[ "def", "_get_num_parallel_threads", "(", "max_threads", ",", "num_cores", ",", "mem_available_mb", ")", ":", "return", "min", "(", "max_threads", ",", "num_cores", ",", "max", "(", "int", "(", "mem_available_mb", "/", "1200", ")", ",", "1", ")", ")" ]
Ensure at least ~1.2 GB memory per thread, see PTFM-18767
[ "Ensure", "at", "least", "~1", ".", "2", "GB", "memory", "per", "thread", "see", "PTFM", "-", "18767" ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/download_all_inputs.py#L108-L112
train
Get the number of threads that can be used in parallel.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,y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Q8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(1733 - 1685) + chr(111) + chr(50) + '\067' + '\062', ord("\x08")), nzTpIcepk0o8(chr(0b101101 + 0o3) + '\157' + '\x33' + chr(0b10110 + 0o35) + chr(0b10100 + 0o36), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(49) + chr(275 - 222) + chr(0b110100), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(52) + '\066', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(6302 - 6191) + '\x35' + chr(434 - 385), 0b1000), nzTpIcepk0o8(chr(0b100111 + 0o11) + chr(0b1001101 + 0o42) + chr(891 - 842) + chr(0b110100) + chr(0b11100 + 0o26), 0b1000), nzTpIcepk0o8('\x30' + '\157' + '\x31' + chr(0b110011) + '\061', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1011110 + 0o21) + '\061' + chr(0b110111), 0o10), nzTpIcepk0o8(chr(919 - 871) + chr(10074 - 9963) + chr(50) + chr(0b1100 + 0o47) + '\062', ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(571 - 520) + '\065' + chr(820 - 767), 0o10), nzTpIcepk0o8('\060' + '\157' + chr(0b110011) + '\066' + chr(109 - 54), ord("\x08")), nzTpIcepk0o8('\060' + chr(6784 - 6673) + chr(53) + chr(0b110111), 11293 - 11285), nzTpIcepk0o8(chr(830 - 782) + chr(0b1101111) + chr(0b110010) + '\060' + chr(1694 - 1642), 0o10), nzTpIcepk0o8('\060' + chr(111) + '\062' + chr(48) + chr(1071 - 1021), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x31' + '\065' + chr(0b10110 + 0o36), 8), nzTpIcepk0o8(chr(0b10001 + 0o37) + chr(111) + chr(0b100010 + 0o17) + chr(659 - 611), 0o10), nzTpIcepk0o8(chr(205 - 157) + '\157' + chr(50) + chr(0b1010 + 0o53) + chr(0b11100 + 0o24), ord("\x08")), nzTpIcepk0o8(chr(576 - 528) + chr(111) + chr(214 - 165) + '\x31' + chr(1787 - 1738), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(49) + '\062' + chr(0b0 + 0o66), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110001) + chr(0b1100 + 0o50) + chr(48), ord("\x08")), nzTpIcepk0o8(chr(1917 - 1869) + chr(0b1001111 + 0o40) + chr(0b110011) + chr(0b10110 + 0o40) + chr(1061 - 1012), 0o10), nzTpIcepk0o8('\x30' + chr(0b1001101 + 0o42) + chr(51) + chr(0b110 + 0o55), 0o10), nzTpIcepk0o8(chr(369 - 321) + '\157' + '\066', ord("\x08")), nzTpIcepk0o8(chr(0b1011 + 0o45) + chr(9534 - 9423) + chr(51) + '\063', 8), nzTpIcepk0o8(chr(288 - 240) + '\157' + '\063' + '\x36' + '\x33', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110010) + chr(55) + chr(0b110010), 8), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(545 - 490) + chr(53), 0o10), nzTpIcepk0o8(chr(1070 - 1022) + '\x6f' + chr(0b101 + 0o54) + chr(2322 - 2273) + '\066', 44789 - 44781), nzTpIcepk0o8('\x30' + chr(111) + '\064' + '\062', ord("\x08")), nzTpIcepk0o8(chr(409 - 361) + chr(0b111100 + 0o63) + '\062' + chr(0b110110), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1100001 + 0o16) + chr(54), 8), nzTpIcepk0o8(chr(0b11010 + 0o26) + '\157' + chr(1976 - 1925) + chr(0b1011 + 0o52) + chr(0b1011 + 0o45), 6842 - 6834), nzTpIcepk0o8(chr(0b101001 + 0o7) + chr(111) + '\x32' + chr(0b110011) + chr(48), 0b1000), nzTpIcepk0o8('\x30' + chr(2537 - 2426) + '\061' + chr(0b110010) + '\065', 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110011) + chr(55) + chr(877 - 826), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(49) + chr(0b110010) + chr(0b10000 + 0o44), 0b1000), nzTpIcepk0o8(chr(1023 - 975) + chr(9098 - 8987) + '\065' + '\x37', 8), nzTpIcepk0o8(chr(1012 - 964) + chr(0b1101111) + chr(0b100010 + 0o17) + '\064', 0o10), nzTpIcepk0o8(chr(48) + chr(9062 - 8951) + chr(1007 - 956) + chr(50) + '\063', 58081 - 58073), nzTpIcepk0o8(chr(1164 - 1116) + chr(111) + chr(953 - 902) + chr(750 - 697) + chr(470 - 421), 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(0b1101 + 0o142) + '\065' + chr(48), 48630 - 48622)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x94'), chr(100) + chr(0b1001010 + 0o33) + chr(2969 - 2870) + chr(1617 - 1506) + '\144' + chr(6368 - 6267))('\165' + chr(116) + '\146' + chr(0b1001 + 0o44) + '\x38') + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def mN3vfBkvmerW(pwXYDXUDr5jA, MOC4mkF87lFv, M9ki0xuJAxDx): return XURpmPuEWCNF(pwXYDXUDr5jA, MOC4mkF87lFv, KV9ckIhroIia(nzTpIcepk0o8(M9ki0xuJAxDx / nzTpIcepk0o8(chr(1981 - 1933) + '\x6f' + chr(0b110010) + chr(1037 - 987) + chr(54) + chr(48), 0o10)), nzTpIcepk0o8(chr(0b11100 + 0o24) + chr(0b1101 + 0o142) + '\061', ord("\x08"))))
dnanexus/dx-toolkit
src/python/dxpy/utils/printing.py
refill_paragraphs
def refill_paragraphs(string, ignored_prefix=' '): """Refills the given text, where the text is composed of paragraphs separated by blank lines (i.e. '\n\n'). Lines that begin with ignored_prefix are not touched; this can be used to keep indented code snippets from being incorrectly reformatted. """ paragraphs = string.split('\n\n') refilled_paragraphs = [fill(paragraph) if not paragraph.startswith(ignored_prefix) else paragraph for paragraph in paragraphs] return '\n\n'.join(refilled_paragraphs).strip('\n')
python
def refill_paragraphs(string, ignored_prefix=' '): """Refills the given text, where the text is composed of paragraphs separated by blank lines (i.e. '\n\n'). Lines that begin with ignored_prefix are not touched; this can be used to keep indented code snippets from being incorrectly reformatted. """ paragraphs = string.split('\n\n') refilled_paragraphs = [fill(paragraph) if not paragraph.startswith(ignored_prefix) else paragraph for paragraph in paragraphs] return '\n\n'.join(refilled_paragraphs).strip('\n')
[ "def", "refill_paragraphs", "(", "string", ",", "ignored_prefix", "=", "' '", ")", ":", "paragraphs", "=", "string", ".", "split", "(", "'\\n\\n'", ")", "refilled_paragraphs", "=", "[", "fill", "(", "paragraph", ")", "if", "not", "paragraph", ".", "startswith", "(", "ignored_prefix", ")", "else", "paragraph", "for", "paragraph", "in", "paragraphs", "]", "return", "'\\n\\n'", ".", "join", "(", "refilled_paragraphs", ")", ".", "strip", "(", "'\\n'", ")" ]
Refills the given text, where the text is composed of paragraphs separated by blank lines (i.e. '\n\n'). Lines that begin with ignored_prefix are not touched; this can be used to keep indented code snippets from being incorrectly reformatted.
[ "Refills", "the", "given", "text", "where", "the", "text", "is", "composed", "of", "paragraphs", "separated", "by", "blank", "lines", "(", "i", ".", "e", ".", "\\", "n", "\\", "n", ")", ".", "Lines", "that", "begin", "with", "ignored_prefix", "are", "not", "touched", ";", "this", "can", "be", "used", "to", "keep", "indented", "code", "snippets", "from", "being", "incorrectly", "reformatted", "." ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/utils/printing.py#L178-L187
train
Refills the given text where the text is composed of paragraphs separated by blank lines.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_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6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\060' + '\x6f' + '\063' + chr(0b110110) + '\063', 1058 - 1050), nzTpIcepk0o8('\x30' + chr(111) + '\060', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b11100 + 0o123) + '\x31' + '\060' + chr(1643 - 1594), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(2629 - 2574) + chr(54), ord("\x08")), nzTpIcepk0o8(chr(283 - 235) + '\x6f' + '\061' + '\063' + '\060', 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(570 - 519) + chr(52) + '\x34', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b100000 + 0o117) + '\x33' + '\x31' + '\060', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(4689 - 4578) + '\063' + '\x31', ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + '\061' + chr(1672 - 1617) + '\x32', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(11921 - 11810) + chr(0b101010 + 0o11) + chr(0b110110) + chr(54), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(1742 - 1691) + chr(0b11 + 0o56) + chr(176 - 127), 21029 - 21021), nzTpIcepk0o8(chr(0b11011 + 0o25) + '\x6f' + chr(1647 - 1598) + chr(51) + chr(0b101010 + 0o10), 28044 - 28036), nzTpIcepk0o8('\060' + chr(111) + '\061' + '\064' + chr(0b110010), 13469 - 13461), nzTpIcepk0o8('\060' + chr(111) + chr(50) + '\x30' + chr(1228 - 1173), ord("\x08")), nzTpIcepk0o8(chr(0b10100 + 0o34) + '\x6f' + chr(602 - 551) + chr(579 - 525) + chr(667 - 619), 0o10), nzTpIcepk0o8(chr(48) + chr(9202 - 9091) + chr(0b110001) + '\x31' + '\066', 1896 - 1888), nzTpIcepk0o8(chr(48) + '\157' + '\x32' + '\065' + chr(0b100011 + 0o15), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + '\064' + chr(1239 - 1189), ord("\x08")), nzTpIcepk0o8(chr(0b11101 + 0o23) + chr(0b1101111) + chr(0b111 + 0o52) + '\x37', 1552 - 1544), nzTpIcepk0o8(chr(0b10 + 0o56) + chr(0b1101111) + '\x32' + chr(244 - 190) + chr(0b110010), 36719 - 36711), nzTpIcepk0o8(chr(0b110000) + chr(0b1001101 + 0o42) + '\061' + chr(0b10 + 0o65) + chr(2155 - 2104), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + '\x37', 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b100101 + 0o15) + chr(52) + chr(1802 - 1752), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + '\x32' + '\x37' + '\064', 0b1000), nzTpIcepk0o8(chr(599 - 551) + '\x6f' + '\x33' + chr(51), 17940 - 17932), nzTpIcepk0o8('\060' + chr(0b1101111) + '\062' + chr(50) + chr(0b101110 + 0o5), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110011) + chr(48) + chr(51), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + '\062' + '\065' + '\064', 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + '\063' + chr(944 - 895) + chr(214 - 160), 0b1000), nzTpIcepk0o8(chr(0b1110 + 0o42) + '\x6f' + chr(51) + '\x37' + '\x36', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(5399 - 5288) + chr(49) + '\066' + chr(0b110110), 0b1000), nzTpIcepk0o8(chr(0b0 + 0o60) + chr(0b1101111) + '\x32' + chr(1334 - 1284) + chr(0b100010 + 0o23), 33652 - 33644), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(2067 - 2018) + chr(54), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + '\062' + chr(0b110010) + chr(0b11101 + 0o24), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110011) + chr(0b100011 + 0o15) + '\066', 37804 - 37796), nzTpIcepk0o8(chr(843 - 795) + chr(11104 - 10993) + chr(0b100000 + 0o22) + chr(51), ord("\x08")), nzTpIcepk0o8(chr(0b1110 + 0o42) + '\157' + chr(0b1000 + 0o51) + chr(2221 - 2171) + chr(55), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(1078 - 1028) + chr(53) + '\064', 8), nzTpIcepk0o8(chr(0b110000) + chr(396 - 285) + '\061' + chr(0b11010 + 0o26) + '\x34', 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(2405 - 2352), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110101) + '\x30', 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xdd'), '\x64' + chr(7501 - 7400) + chr(422 - 323) + chr(0b1110 + 0o141) + '\x64' + chr(101))(chr(117) + chr(116) + '\146' + chr(0b1010 + 0o43) + chr(0b111000)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def tA4UomvHibCM(aji3jF4_nqWL, msR3DfeI8bcN=roI3spqORKae(ES5oEprVxulp(b'\xd3 a\x1e'), chr(100) + chr(101) + '\143' + '\157' + chr(0b1100100) + chr(0b1100101))(chr(13562 - 13445) + chr(116) + chr(829 - 727) + chr(45) + chr(0b100000 + 0o30))): EubwBdJ99UuA = aji3jF4_nqWL.LfRrQOxuDvnC(roI3spqORKae(ES5oEprVxulp(b'\xf9\n'), '\144' + chr(0b10011 + 0o122) + '\x63' + '\x6f' + chr(0b1100011 + 0o1) + chr(0b111000 + 0o55))('\165' + chr(0b11100 + 0o130) + chr(0b1100110) + chr(292 - 247) + '\x38')) gLZbTXk2HMD2 = [pPmkLCVA328e(Eh9Zdyix8IdT) if not Eh9Zdyix8IdT.startswith(msR3DfeI8bcN) else Eh9Zdyix8IdT for Eh9Zdyix8IdT in EubwBdJ99UuA] return roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\xf9\n'), chr(0b1010011 + 0o21) + chr(0b1100101) + chr(0b111001 + 0o52) + '\157' + '\144' + '\145')(chr(0b1100011 + 0o22) + chr(1988 - 1872) + chr(0b1100110) + '\x2d' + '\x38').join(gLZbTXk2HMD2), roI3spqORKae(ES5oEprVxulp(b'\x98d\x08z*\x87\xbfC.\xb5\xbao'), chr(7735 - 7635) + chr(0b1001100 + 0o31) + '\x63' + chr(111) + chr(100) + '\x65')(chr(0b1110101) + chr(3378 - 3262) + chr(102) + chr(0b10101 + 0o30) + chr(56)))(roI3spqORKae(ES5oEprVxulp(b'\xf9'), chr(0b11010 + 0o112) + chr(5852 - 5751) + chr(0b1100011) + '\157' + chr(5687 - 5587) + chr(0b1100101))('\165' + '\164' + '\146' + chr(2005 - 1960) + '\070'))
dnanexus/dx-toolkit
src/python/dxpy/utils/printing.py
format_find_results
def format_find_results(args, results): """ Formats the output of ``dx find ...`` commands for `--json` and `--brief` arguments; also formats if no formatting arguments are given. Currently used for ``dx find projects``, ``dx find org_projects``, ``dx find org_apps``, and ``dx find org_members`` """ if args.json: print(json.dumps(list(results), indent=4)) elif args.brief: for result in results: print(result['id']) else: if args.func.__name__ in ("find_projects", "org_find_projects"): _format_find_projects_results(results) elif args.func.__name__ in ("org_find_members"): _format_find_org_members_results(results) elif args.func.__name__ in ("org_find_apps"): # should have "find_apps" here one day _format_find_apps_results(results, verbose=args.verbose)
python
def format_find_results(args, results): """ Formats the output of ``dx find ...`` commands for `--json` and `--brief` arguments; also formats if no formatting arguments are given. Currently used for ``dx find projects``, ``dx find org_projects``, ``dx find org_apps``, and ``dx find org_members`` """ if args.json: print(json.dumps(list(results), indent=4)) elif args.brief: for result in results: print(result['id']) else: if args.func.__name__ in ("find_projects", "org_find_projects"): _format_find_projects_results(results) elif args.func.__name__ in ("org_find_members"): _format_find_org_members_results(results) elif args.func.__name__ in ("org_find_apps"): # should have "find_apps" here one day _format_find_apps_results(results, verbose=args.verbose)
[ "def", "format_find_results", "(", "args", ",", "results", ")", ":", "if", "args", ".", "json", ":", "print", "(", "json", ".", "dumps", "(", "list", "(", "results", ")", ",", "indent", "=", "4", ")", ")", "elif", "args", ".", "brief", ":", "for", "result", "in", "results", ":", "print", "(", "result", "[", "'id'", "]", ")", "else", ":", "if", "args", ".", "func", ".", "__name__", "in", "(", "\"find_projects\"", ",", "\"org_find_projects\"", ")", ":", "_format_find_projects_results", "(", "results", ")", "elif", "args", ".", "func", ".", "__name__", "in", "(", "\"org_find_members\"", ")", ":", "_format_find_org_members_results", "(", "results", ")", "elif", "args", ".", "func", ".", "__name__", "in", "(", "\"org_find_apps\"", ")", ":", "# should have \"find_apps\" here one day", "_format_find_apps_results", "(", "results", ",", "verbose", "=", "args", ".", "verbose", ")" ]
Formats the output of ``dx find ...`` commands for `--json` and `--brief` arguments; also formats if no formatting arguments are given. Currently used for ``dx find projects``, ``dx find org_projects``, ``dx find org_apps``, and ``dx find org_members``
[ "Formats", "the", "output", "of", "dx", "find", "...", "commands", "for", "--", "json", "and", "--", "brief", "arguments", ";", "also", "formats", "if", "no", "formatting", "arguments", "are", "given", ".", "Currently", "used", "for", "dx", "find", "projects", "dx", "find", "org_projects", "dx", "find", "org_apps", "and", "dx", "find", "org_members" ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/utils/printing.py#L215-L233
train
Formats the output of dx find... commands for args. json and args. brief arguments.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL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Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b110000 + 0o0) + chr(0b10110 + 0o131) + chr(0b1100 + 0o47) + chr(51) + '\060', 0o10), nzTpIcepk0o8(chr(1902 - 1854) + chr(3924 - 3813) + chr(51), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1010 + 0o145) + '\x32' + chr(0b1001 + 0o51) + chr(0b110110), 0o10), nzTpIcepk0o8(chr(322 - 274) + chr(0b1101111) + chr(53) + chr(0b11001 + 0o34), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b101111 + 0o3) + '\065', 30441 - 30433), nzTpIcepk0o8('\060' + chr(0b101101 + 0o102) + chr(699 - 650) + '\x33' + chr(53), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + '\067' + '\066', 0o10), nzTpIcepk0o8('\x30' + '\x6f' + '\061' + '\x33' + chr(63 - 13), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1010000 + 0o37) + chr(51) + chr(1393 - 1344) + chr(0b101101 + 0o12), 55666 - 55658), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b100010 + 0o25), 8254 - 8246), nzTpIcepk0o8(chr(2285 - 2237) + chr(0b1101110 + 0o1) + chr(0b110010) + chr(0b110001) + chr(51), 0b1000), nzTpIcepk0o8(chr(1947 - 1899) + '\x6f' + chr(0b110010) + chr(1482 - 1433) + chr(0b10 + 0o61), 8), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110010) + chr(0b110111) + chr(1603 - 1553), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(1342 - 1292) + chr(0b1100 + 0o53) + chr(0b110010), 8), nzTpIcepk0o8('\x30' + '\157' + chr(1708 - 1658) + chr(55), 0b1000), nzTpIcepk0o8(chr(2158 - 2110) + chr(0b1101111) + chr(0b11011 + 0o30) + chr(0b100100 + 0o21) + chr(0b11010 + 0o26), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + '\x32' + chr(1224 - 1171) + '\065', 0o10), nzTpIcepk0o8(chr(1760 - 1712) + chr(111) + chr(50) + '\063' + chr(0b10010 + 0o41), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + '\063' + '\063' + '\062', 33618 - 33610), nzTpIcepk0o8(chr(1481 - 1433) + chr(0b110110 + 0o71) + chr(0b110010) + '\x32' + chr(52), 0o10), nzTpIcepk0o8('\060' + chr(10230 - 10119) + chr(51) + chr(0b110001) + chr(1321 - 1271), 0b1000), nzTpIcepk0o8(chr(213 - 165) + chr(111) + chr(1803 - 1754) + chr(0b110001) + chr(0b110011), 0b1000), nzTpIcepk0o8(chr(0b1100 + 0o44) + chr(0b1101111) + '\x32' + '\060' + '\x37', 0b1000), nzTpIcepk0o8(chr(1836 - 1788) + '\157' + chr(437 - 386) + chr(51) + chr(0b100110 + 0o12), 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\061' + chr(51) + chr(0b10000 + 0o46), 0b1000), nzTpIcepk0o8(chr(1273 - 1225) + chr(0b1101111) + '\x31' + chr(0b110000) + chr(54), ord("\x08")), nzTpIcepk0o8('\060' + chr(12023 - 11912) + '\x34' + chr(53), 12353 - 12345), nzTpIcepk0o8(chr(48) + chr(0b1010 + 0o145) + '\x32' + '\067' + chr(53), 0b1000), nzTpIcepk0o8(chr(689 - 641) + chr(111) + chr(49) + chr(0b110011) + chr(0b110000), 15474 - 15466), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(1893 - 1842) + chr(0b110000) + '\x37', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x33' + chr(51) + '\063', 10195 - 10187), nzTpIcepk0o8('\060' + '\x6f' + chr(0b0 + 0o61) + '\x35' + chr(0b110110), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x32' + chr(49) + chr(2155 - 2104), 8), nzTpIcepk0o8(chr(905 - 857) + chr(111) + chr(49) + chr(1550 - 1501) + chr(2239 - 2190), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b100110 + 0o15) + chr(2091 - 2042) + '\067', 8), nzTpIcepk0o8('\x30' + chr(111) + chr(51) + chr(54) + chr(52), 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(1150 - 1101) + '\x31' + '\x37', 14295 - 14287), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(1073 - 1024) + chr(2270 - 2218) + chr(50), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + '\061' + chr(0b10100 + 0o40), 33638 - 33630), nzTpIcepk0o8(chr(1048 - 1000) + '\x6f' + '\061' + chr(0b110011) + chr(0b100111 + 0o16), 8)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(1581 - 1533) + '\x6f' + chr(53) + '\x30', 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xf6'), chr(100) + chr(6125 - 6024) + chr(99) + chr(11660 - 11549) + chr(0b1100100) + '\145')(chr(12057 - 11940) + chr(7397 - 7281) + '\146' + chr(45) + chr(0b101111 + 0o11)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def zP_h_zxaxv6_(eemPYp2vtTSr, v3B6eeO_B_ws): if roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b'\x94M\xc3fP*d\x1e\x86e\xf2\xe9'), chr(100) + '\145' + chr(0b1100011) + chr(0b1101111) + chr(2373 - 2273) + chr(3181 - 3080))(chr(12930 - 12813) + '\x74' + '\x66' + '\x2d' + chr(1403 - 1347))): v8jsMqaYV6U2(roI3spqORKae(LNUKEwZDIbyb, roI3spqORKae(ES5oEprVxulp(b'\x82i\xf1Ax0\x06/\xaai\xe0\xc8'), chr(100) + '\145' + '\x63' + chr(3044 - 2933) + chr(5829 - 5729) + chr(0b1010 + 0o133))('\x75' + '\164' + chr(0b1010100 + 0o22) + chr(0b101101) + '\x38'))(H4NoA26ON7iG(v3B6eeO_B_ws), indent=nzTpIcepk0o8('\060' + chr(5541 - 5430) + chr(0b110100), 0b1000))) elif roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b'\xbaq\xffHs'), '\x64' + chr(101) + '\x63' + chr(0b1111 + 0o140) + chr(0b11011 + 0o111) + chr(0b1100101))(chr(0b1001110 + 0o47) + chr(0b1110100) + chr(0b111011 + 0o53) + chr(0b1000 + 0o45) + chr(0b110111 + 0o1))): for POx95m7SPOVy in v3B6eeO_B_ws: v8jsMqaYV6U2(POx95m7SPOVy[roI3spqORKae(ES5oEprVxulp(b'\xb1g'), chr(100) + chr(101) + chr(0b1100011) + chr(111) + chr(100) + chr(0b1100101))('\x75' + chr(0b100000 + 0o124) + chr(3179 - 3077) + chr(45) + '\070')]) elif roI3spqORKae(eemPYp2vtTSr.func, roI3spqORKae(ES5oEprVxulp(b'\x99Z\xe2iG1O?\x9f7\xff\xfa'), '\144' + '\x65' + '\143' + '\x6f' + '\144' + chr(101))('\x75' + chr(0b1110100) + chr(0b1100110) + chr(0b0 + 0o55) + chr(2140 - 2084))) in (roI3spqORKae(ES5oEprVxulp(b'\xbej\xf8IJ-L5\xa5b\xe8\xff\xc9'), chr(760 - 660) + chr(0b1100101) + '\143' + '\157' + chr(0b1100001 + 0o3) + chr(7478 - 7377))('\165' + chr(0b1001010 + 0o52) + chr(102) + chr(45) + chr(894 - 838)), roI3spqORKae(ES5oEprVxulp(b'\xb7q\xf1rs4P>\x90w\xf9\xe4\xd0\xdft\x9c\xde'), chr(1379 - 1279) + '\145' + chr(5349 - 5250) + '\x6f' + chr(0b10101 + 0o117) + chr(101))('\165' + chr(0b1110100) + chr(0b10010 + 0o124) + '\055' + chr(56))): sIEuh6LcMrfW(v3B6eeO_B_ws) elif roI3spqORKae(eemPYp2vtTSr.func, roI3spqORKae(ES5oEprVxulp(b'\x99Z\xe2iG1O?\x9f7\xff\xfa'), chr(0b1000001 + 0o43) + '\x65' + chr(3866 - 3767) + chr(3078 - 2967) + '\x64' + chr(0b1100101))(chr(117) + chr(116) + chr(0b1100110) + '\x2d' + '\x38')) in roI3spqORKae(ES5oEprVxulp(b'\xb7q\xf1rs4P>\x90j\xee\xe6\xd8\xdfe\x9b'), '\x64' + chr(101) + '\x63' + '\157' + '\144' + '\145')(chr(0b1110101) + chr(0b1110100) + chr(102) + chr(0b101101) + chr(0b111000)): mgLBWUY8ov3p(v3B6eeO_B_ws) elif roI3spqORKae(eemPYp2vtTSr.func, roI3spqORKae(ES5oEprVxulp(b'\x99Z\xe2iG1O?\x9f7\xff\xfa'), chr(0b1011110 + 0o6) + chr(0b1100101) + chr(99) + '\x6f' + '\144' + chr(101))(chr(5734 - 5617) + '\x74' + chr(4533 - 4431) + '\x2d' + '\070')) in roI3spqORKae(ES5oEprVxulp(b'\xb7q\xf1rs4P>\x90f\xfb\xfb\xc9'), chr(3608 - 3508) + chr(0b1100101) + chr(0b100111 + 0o74) + chr(111) + '\144' + chr(0b1100101))(chr(0b1101100 + 0o11) + chr(0b10011 + 0o141) + chr(0b1010111 + 0o17) + chr(1753 - 1708) + chr(0b111000)): tip6QAAVzVnB(v3B6eeO_B_ws, verbose=roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b'\x8cp\xf3dF\x0bZ\n\xa3a\xef\xc6'), chr(4211 - 4111) + '\x65' + chr(0b1001000 + 0o33) + chr(0b1101111) + '\x64' + chr(0b1100101))(chr(0b100100 + 0o121) + chr(0b1011111 + 0o25) + chr(0b10001 + 0o125) + chr(0b10011 + 0o32) + '\x38')))
dnanexus/dx-toolkit
doc/examples/dx-apps/report_example/src/report_example.py
main
def main(**kwargs): """ Draw a couple of simple graphs and optionally generate an HTML file to upload them """ draw_lines() draw_histogram() draw_bar_chart() destination = "-r /report" if use_html: generate_html() command = "dx-build-report-html {h} {d}".format(h=html_filename, d=destination) else: command = "dx-build-report-html {l} {b} {h} {d}".format(l=lines_filename, b=bars_filename, h=histogram_filename, d=destination) sub_output = json.loads(subprocess.check_output(command, shell=True)) output = {} output["report"] = dxpy.dxlink(sub_output["recordId"]) return output
python
def main(**kwargs): """ Draw a couple of simple graphs and optionally generate an HTML file to upload them """ draw_lines() draw_histogram() draw_bar_chart() destination = "-r /report" if use_html: generate_html() command = "dx-build-report-html {h} {d}".format(h=html_filename, d=destination) else: command = "dx-build-report-html {l} {b} {h} {d}".format(l=lines_filename, b=bars_filename, h=histogram_filename, d=destination) sub_output = json.loads(subprocess.check_output(command, shell=True)) output = {} output["report"] = dxpy.dxlink(sub_output["recordId"]) return output
[ "def", "main", "(", "*", "*", "kwargs", ")", ":", "draw_lines", "(", ")", "draw_histogram", "(", ")", "draw_bar_chart", "(", ")", "destination", "=", "\"-r /report\"", "if", "use_html", ":", "generate_html", "(", ")", "command", "=", "\"dx-build-report-html {h} {d}\"", ".", "format", "(", "h", "=", "html_filename", ",", "d", "=", "destination", ")", "else", ":", "command", "=", "\"dx-build-report-html {l} {b} {h} {d}\"", ".", "format", "(", "l", "=", "lines_filename", ",", "b", "=", "bars_filename", ",", "h", "=", "histogram_filename", ",", "d", "=", "destination", ")", "sub_output", "=", "json", ".", "loads", "(", "subprocess", ".", "check_output", "(", "command", ",", "shell", "=", "True", ")", ")", "output", "=", "{", "}", "output", "[", "\"report\"", "]", "=", "dxpy", ".", "dxlink", "(", "sub_output", "[", "\"recordId\"", "]", ")", "return", "output" ]
Draw a couple of simple graphs and optionally generate an HTML file to upload them
[ "Draw", "a", "couple", "of", "simple", "graphs", "and", "optionally", "generate", "an", "HTML", "file", "to", "upload", "them" ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/doc/examples/dx-apps/report_example/src/report_example.py#L37-L53
train
Generates a couple of simple graphs and optionally generates an HTML file to upload them
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,W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op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(1596 - 1548) + chr(12099 - 11988) + chr(592 - 542) + '\x31' + chr(55), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b100010 + 0o115) + chr(0b110011) + chr(0b100 + 0o56) + chr(51), 0b1000), nzTpIcepk0o8('\060' + chr(0b1010100 + 0o33) + chr(50) + chr(52) + '\x30', 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110010) + chr(48) + '\x37', 16659 - 16651), nzTpIcepk0o8('\x30' + '\x6f' + '\x33' + chr(0b110000), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(705 - 656) + chr(0b110010), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(1868 - 1817) + chr(0b110100) + chr(54), 20809 - 20801), nzTpIcepk0o8(chr(962 - 914) + chr(0b1101111) + '\061' + '\x32' + '\x31', 36055 - 36047), nzTpIcepk0o8(chr(1182 - 1134) + '\157' + chr(0b110001) + chr(2118 - 2070) + chr(0b110000), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(49) + chr(2515 - 2464) + chr(0b101111 + 0o3), ord("\x08")), nzTpIcepk0o8(chr(0b11101 + 0o23) + '\x6f' + chr(0b110001) + '\066' + chr(50), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110011 + 0o2) + chr(0b11100 + 0o31), 0o10), nzTpIcepk0o8('\060' + chr(0b110 + 0o151) + '\x31' + chr(511 - 462) + chr(52), 2785 - 2777), nzTpIcepk0o8('\060' + chr(111) + '\x31' + chr(2020 - 1968) + chr(0b1100 + 0o47), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(0b110010) + chr(0b110011 + 0o0), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(11081 - 10970) + chr(0b1110 + 0o43) + '\x37' + '\x30', 45398 - 45390), nzTpIcepk0o8(chr(1891 - 1843) + '\x6f' + '\067' + chr(241 - 188), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(51) + chr(52) + '\x32', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(1542 - 1431) + chr(49) + chr(0b110011) + '\x31', 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110010) + chr(0b110101) + '\062', ord("\x08")), nzTpIcepk0o8(chr(183 - 135) + chr(0b1101111) + chr(0b101100 + 0o6) + chr(420 - 372) + '\066', 26363 - 26355), nzTpIcepk0o8(chr(0b110000) + chr(0b110011 + 0o74) + chr(1152 - 1102) + chr(1345 - 1297) + chr(0b110111), 8), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(49) + chr(1852 - 1804) + chr(987 - 939), 8), nzTpIcepk0o8('\060' + '\x6f' + '\062' + chr(2354 - 2301) + '\x32', 8), nzTpIcepk0o8(chr(0b1011 + 0o45) + chr(0b1101111) + chr(0b110010) + '\067' + chr(49), 27086 - 27078), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b1101 + 0o50) + chr(825 - 770), ord("\x08")), nzTpIcepk0o8(chr(0b1000 + 0o50) + chr(0b101100 + 0o103) + chr(55) + chr(368 - 320), ord("\x08")), nzTpIcepk0o8('\060' + chr(1229 - 1118) + chr(0b1100 + 0o45) + chr(0b101011 + 0o6) + chr(53), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(10722 - 10611) + chr(0b11 + 0o57) + chr(0b110001 + 0o0) + chr(0b1010 + 0o55), 8), nzTpIcepk0o8(chr(48) + chr(0b100000 + 0o117) + chr(0b110001) + '\x33' + '\066', 0b1000), nzTpIcepk0o8(chr(48) + '\157' + '\x31' + chr(48), 0b1000), nzTpIcepk0o8(chr(1250 - 1202) + chr(8449 - 8338) + '\061' + chr(52) + chr(0b110100), 26148 - 26140), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b101101 + 0o6) + chr(51) + chr(0b110010), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(7990 - 7879) + chr(0b110011) + chr(50) + '\x36', 0b1000), nzTpIcepk0o8('\060' + chr(0b1010001 + 0o36) + chr(0b11111 + 0o23) + '\x36' + '\062', 27938 - 27930), nzTpIcepk0o8(chr(334 - 286) + '\157' + '\x32' + '\x35' + '\063', 0o10), nzTpIcepk0o8(chr(0b11011 + 0o25) + '\157' + chr(0b110010) + chr(54) + '\x32', 8), nzTpIcepk0o8(chr(48) + '\x6f' + '\x33' + '\x36' + '\x37', 11726 - 11718), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110001) + chr(438 - 386) + '\x32', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x35' + chr(50), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + chr(111) + chr(53) + chr(0b110000), ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xa1'), '\x64' + chr(101) + chr(0b1100011) + chr(0b1000 + 0o147) + '\144' + chr(0b1100100 + 0o1))(chr(13480 - 13363) + chr(0b101 + 0o157) + '\146' + chr(45) + chr(0b11110 + 0o32)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def BXHXH_QeD6rL(**q5n0sHDDTy90): FwMKW89aOmSZ() _R2EvcoyVXhL() Ck2KCCX2ubHr() ZvPf2p7avF3N = roI3spqORKae(ES5oEprVxulp(b'\xa2\xa1\x80\xa8jo\x96>2.'), '\144' + '\145' + '\143' + chr(0b1101111) + '\144' + chr(0b1001111 + 0o26))(chr(0b110111 + 0o76) + chr(0b10111 + 0o135) + chr(0b1010000 + 0o26) + chr(0b101101) + '\x38') if u9mrUWJBG9T0: WOug7Dh9WFoD() rZO0j44B8n0L = roI3spqORKae(ES5oEprVxulp(b'\xeb\xab\x8d\xe5mc\x8a5m(\x17]#\x11gUU\x964\xc6\xa6\xfc(\xd7\x99T\\0'), chr(0b110110 + 0o56) + chr(1135 - 1034) + chr(99) + chr(0b1101111) + chr(0b1100100) + chr(9972 - 9871))(chr(3946 - 3829) + chr(0b1110100) + '\x66' + chr(45) + '\070').q33KG3foQ_CJ(h=vsx9Lg1oysbY, d=ZvPf2p7avF3N) else: rZO0j44B8n0L = roI3spqORKae(ES5oEprVxulp(b'\xeb\xab\x8d\xe5mc\x8a5m(\x17]#\x11gUU\x964\xc6\xa6\xfc,\xd7\x99TZ0\xaf%`\x19\xfa\xad\xd6\xd6'), '\x64' + chr(0b1100101) + '\143' + '\157' + chr(0b1100 + 0o130) + chr(0b1100101))(chr(0b1110101) + chr(0b1001101 + 0o47) + chr(10004 - 9902) + '\055' + chr(2068 - 2012)).q33KG3foQ_CJ(l=mBIPTJHtyl7Q, b=ixvGCZvJssAu, h=FD5PUZmesBAJ, d=ZvPf2p7avF3N) SnOkKRreEEnL = LNUKEwZDIbyb.OiapAM4bM0Ea(eT8Y087E_kfd.check_output(rZO0j44B8n0L, shell=nzTpIcepk0o8(chr(481 - 433) + chr(1498 - 1387) + chr(49), 32630 - 32622))) toKQXlEvBKaK = {} toKQXlEvBKaK[roI3spqORKae(ES5oEprVxulp(b'\xfd\xb6\xd0\xe8j~'), '\144' + chr(0b1100101) + chr(0b1010111 + 0o14) + chr(4857 - 4746) + chr(0b1011000 + 0o14) + chr(7796 - 7695))(chr(0b101101 + 0o110) + chr(116) + chr(102) + chr(439 - 394) + '\x38')] = SsdNdRxXOwsF.dxlink(SnOkKRreEEnL[roI3spqORKae(ES5oEprVxulp(b'\xfd\xb6\xc3\xe8jn\xaf5'), chr(0b1100100) + '\x65' + '\143' + chr(6667 - 6556) + chr(0b1010011 + 0o21) + chr(101))('\165' + chr(7351 - 7235) + '\x66' + chr(0b101101) + chr(0b110110 + 0o2))]) return toKQXlEvBKaK
dnanexus/dx-toolkit
doc/examples/dx-apps/report_example/src/report_example.py
draw_histogram
def draw_histogram(): """ Uses sample code from http://matplotlib.org/1.2.1/examples/api/histogram_demo.html """ mu, sigma = 100, 15 x = mu + sigma * numpy.random.randn(10000) fig = pyplot.figure() ax = fig.add_subplot(111) n, bins, patches = ax.hist(x, 50, normed=1, facecolor='green', alpha=0.75) ax.set_xlabel('Random number generated') ax.set_ylabel('Probability') ax.set_xlim(40, 160) ax.set_ylim(0, 0.03) ax.grid(True) pyplot.savefig(histogram_filename)
python
def draw_histogram(): """ Uses sample code from http://matplotlib.org/1.2.1/examples/api/histogram_demo.html """ mu, sigma = 100, 15 x = mu + sigma * numpy.random.randn(10000) fig = pyplot.figure() ax = fig.add_subplot(111) n, bins, patches = ax.hist(x, 50, normed=1, facecolor='green', alpha=0.75) ax.set_xlabel('Random number generated') ax.set_ylabel('Probability') ax.set_xlim(40, 160) ax.set_ylim(0, 0.03) ax.grid(True) pyplot.savefig(histogram_filename)
[ "def", "draw_histogram", "(", ")", ":", "mu", ",", "sigma", "=", "100", ",", "15", "x", "=", "mu", "+", "sigma", "*", "numpy", ".", "random", ".", "randn", "(", "10000", ")", "fig", "=", "pyplot", ".", "figure", "(", ")", "ax", "=", "fig", ".", "add_subplot", "(", "111", ")", "n", ",", "bins", ",", "patches", "=", "ax", ".", "hist", "(", "x", ",", "50", ",", "normed", "=", "1", ",", "facecolor", "=", "'green'", ",", "alpha", "=", "0.75", ")", "ax", ".", "set_xlabel", "(", "'Random number generated'", ")", "ax", ".", "set_ylabel", "(", "'Probability'", ")", "ax", ".", "set_xlim", "(", "40", ",", "160", ")", "ax", ".", "set_ylim", "(", "0", ",", "0.03", ")", "ax", ".", "grid", "(", "True", ")", "pyplot", ".", "savefig", "(", "histogram_filename", ")" ]
Uses sample code from http://matplotlib.org/1.2.1/examples/api/histogram_demo.html
[ "Uses", "sample", "code", "from", "http", ":", "//", "matplotlib", ".", "org", "/", "1", ".", "2", ".", "1", "/", "examples", "/", "api", "/", "histogram_demo", ".", "html" ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/doc/examples/dx-apps/report_example/src/report_example.py#L56-L73
train
Draws a histogram of random numbers.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4d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,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\060' + '\x6f' + '\061' + chr(1759 - 1704) + chr(1577 - 1528), 40550 - 40542), nzTpIcepk0o8(chr(0b101011 + 0o5) + '\157' + chr(0b10011 + 0o40) + chr(0b100000 + 0o26) + chr(51), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110001) + chr(0b1011 + 0o54) + chr(0b1110 + 0o46), 65314 - 65306), nzTpIcepk0o8('\x30' + chr(7837 - 7726) + '\x33' + chr(0b110010) + chr(0b110110), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(1769 - 1719) + chr(0b11 + 0o64), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(50) + chr(2532 - 2481) + '\067', ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(2432 - 2382) + chr(0b10010 + 0o40), ord("\x08")), nzTpIcepk0o8(chr(1600 - 1552) + chr(0b101000 + 0o107) + chr(2546 - 2495) + '\064' + '\x32', ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(0b110100) + '\x33', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110010) + chr(0b110100) + chr(52), 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(0b11 + 0o56) + chr(0b1111 + 0o46) + chr(0b110100), 0o10), nzTpIcepk0o8(chr(0b1100 + 0o44) + chr(0b1100010 + 0o15) + chr(0b110011) + chr(201 - 152) + chr(48), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b101 + 0o54) + chr(51) + '\064', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x31' + '\060' + chr(1126 - 1071), 0o10), nzTpIcepk0o8(chr(1315 - 1267) + chr(0b1101111) + chr(52) + chr(0b111 + 0o52), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101110 + 0o1) + chr(733 - 684) + chr(0b101 + 0o55) + '\065', 0b1000), nzTpIcepk0o8(chr(0b10000 + 0o40) + '\x6f' + chr(50) + '\x30' + chr(0b10 + 0o61), 0o10), nzTpIcepk0o8('\x30' + chr(0b101 + 0o152) + chr(0b110011) + '\064' + chr(531 - 482), 0b1000), nzTpIcepk0o8(chr(651 - 603) + chr(0b100100 + 0o113) + chr(49) + '\x35' + chr(0b101100 + 0o4), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1001110 + 0o41) + chr(96 - 47) + chr(48), 21410 - 21402), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(1188 - 1137) + chr(55) + '\x37', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b111010 + 0o65) + '\x32' + '\x30' + chr(53), 0b1000), nzTpIcepk0o8('\x30' + chr(2032 - 1921) + chr(0b110011) + '\x36' + '\065', 0o10), nzTpIcepk0o8('\060' + chr(0b101111 + 0o100) + '\x33' + chr(0b101110 + 0o7) + chr(0b110011), 0o10), nzTpIcepk0o8(chr(0b10 + 0o56) + chr(0b1010 + 0o145) + chr(0b110010) + '\066' + '\x35', 49903 - 49895), nzTpIcepk0o8(chr(0b110000) + chr(9447 - 9336) + chr(0b110010) + chr(0b110100) + '\065', 15792 - 15784), nzTpIcepk0o8('\x30' + '\x6f' + '\x32' + chr(0b110010) + chr(0b110111), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x31' + chr(0b110101) + '\061', 38212 - 38204), nzTpIcepk0o8(chr(569 - 521) + chr(1435 - 1324) + chr(1324 - 1275) + chr(0b11010 + 0o27) + chr(0b11100 + 0o26), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1100011 + 0o14) + chr(51) + chr(1991 - 1943) + chr(0b110101), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x33' + chr(0b110101) + '\x36', ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110011) + chr(48) + '\064', 24638 - 24630), nzTpIcepk0o8(chr(48) + '\157' + '\063' + chr(132 - 82) + '\x37', 62775 - 62767), nzTpIcepk0o8(chr(0b11001 + 0o27) + '\157' + '\x33', ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(0b11110 + 0o27) + chr(49), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(269 - 220) + chr(0b100010 + 0o25) + chr(0b10110 + 0o33), 8), nzTpIcepk0o8(chr(954 - 906) + '\157' + chr(93 - 38), 0o10), nzTpIcepk0o8('\060' + '\x6f' + '\x33' + '\063' + '\x35', ord("\x08")), nzTpIcepk0o8(chr(1724 - 1676) + '\157' + chr(49) + '\064' + '\066', 0o10), nzTpIcepk0o8(chr(48) + chr(111) + '\x32' + '\x35' + '\062', 5390 - 5382)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(602 - 554) + chr(0b1011010 + 0o25) + '\065' + chr(48), ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'W'), chr(3989 - 3889) + chr(101) + chr(0b10000 + 0o123) + '\x6f' + chr(3493 - 3393) + chr(0b1100101))('\x75' + '\164' + '\x66' + chr(1024 - 979) + chr(881 - 825)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def _R2EvcoyVXhL(): (fMeL_z1DIoxw, uc4gGmjAvJP3) = (nzTpIcepk0o8(chr(48) + '\157' + chr(49) + '\064' + chr(0b10100 + 0o40), 10971 - 10963), nzTpIcepk0o8(chr(0b110000) + chr(0b111010 + 0o65) + chr(0b1000 + 0o51) + chr(0b100010 + 0o25), 0o10)) bI5jsQ9OkQtj = fMeL_z1DIoxw + uc4gGmjAvJP3 * L6YB9g87uxKh.random.randn(nzTpIcepk0o8(chr(0b110000) + '\157' + '\062' + chr(0b11100 + 0o27) + chr(52) + '\x32' + chr(0b110000), 26449 - 26441)) ux0XlXMUdKbX = YETrXy3ueS3C.es0Z6dzChSL5() ZtB7KOLCW2Hk = ux0XlXMUdKbX.add_subplot(nzTpIcepk0o8(chr(48) + chr(111) + chr(2318 - 2269) + '\065' + chr(1530 - 1475), 0o10)) (NoZxuO7wjArS, LfioTTi_I2sD, ApwUqwLyYqjg) = ZtB7KOLCW2Hk.vGufN7sLKJ4I(bI5jsQ9OkQtj, nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110110) + '\062', 0b1000), normed=nzTpIcepk0o8('\060' + chr(111) + chr(123 - 74), 0b1000), facecolor=roI3spqORKae(ES5oEprVxulp(b'\x1e\x81\x19\xb3y'), '\144' + chr(0b110 + 0o137) + '\x63' + chr(0b1001100 + 0o43) + chr(0b1100100) + '\145')('\165' + chr(0b1000101 + 0o57) + chr(0b1100110) + chr(723 - 678) + '\x38'), alpha=0.75) roI3spqORKae(ZtB7KOLCW2Hk, roI3spqORKae(ES5oEprVxulp(b'\n\x96\x08\x89o\xf3s\x80F\xc8'), chr(0b1100100) + '\x65' + '\143' + chr(0b1101111) + chr(100) + '\x65')(chr(117) + chr(12025 - 11909) + chr(2801 - 2699) + chr(0b101101) + chr(56)))(roI3spqORKae(ES5oEprVxulp(b'+\x92\x12\xb2x\xf22\x8cV\xc9\x0e\xad.gF0\xed\x84\x1ai\x8b\xe0\x91'), chr(0b1100100) + '\145' + chr(0b1100011) + chr(0b1101111) + chr(5123 - 5023) + chr(7080 - 6979))(chr(13515 - 13398) + '\x74' + chr(0b1100110) + chr(0b101101) + '\070')) roI3spqORKae(ZtB7KOLCW2Hk, roI3spqORKae(ES5oEprVxulp(b'\n\x96\x08\x89n\xf3s\x80F\xc8'), chr(100) + '\145' + chr(0b1100011) + chr(4816 - 4705) + chr(7183 - 7083) + '\145')('\x75' + chr(0b1110100) + chr(579 - 477) + chr(0b11011 + 0o22) + chr(56)))(roI3spqORKae(ES5oEprVxulp(b')\x81\x13\xb4v\xfd{\x8eJ\xd0\x15'), chr(0b111000 + 0o54) + '\x65' + '\143' + chr(0b1101111) + chr(100) + chr(2342 - 2241))(chr(0b1110101) + chr(0b1110100) + chr(2095 - 1993) + chr(0b101101) + chr(0b111000))) roI3spqORKae(ZtB7KOLCW2Hk, roI3spqORKae(ES5oEprVxulp(b'\n\x96\x08\x89o\xf3{\x8f'), chr(0b1010101 + 0o17) + chr(101) + '\x63' + '\157' + '\144' + chr(0b1000000 + 0o45))('\x75' + chr(0b11001 + 0o133) + chr(9084 - 8982) + chr(1657 - 1612) + chr(0b111000)))(nzTpIcepk0o8('\060' + chr(11287 - 11176) + '\x35' + chr(48), 8), nzTpIcepk0o8('\x30' + chr(111) + chr(50) + '\x34' + '\060', ord("\x08"))) roI3spqORKae(ZtB7KOLCW2Hk, roI3spqORKae(ES5oEprVxulp(b'\n\x96\x08\x89n\xf3{\x8f'), chr(0b0 + 0o144) + chr(101) + chr(0b1100011) + '\x6f' + chr(100) + chr(101))('\x75' + '\x74' + '\x66' + chr(45) + chr(56)))(nzTpIcepk0o8(chr(0b110000) + chr(8968 - 8857) + '\060', ord("\x08")), 0.03) roI3spqORKae(ZtB7KOLCW2Hk, roI3spqORKae(ES5oEprVxulp(b'\x01\x9a,\xe3F\xe7K\xb5O\xe1\x07\x9f'), chr(0b1000010 + 0o42) + chr(0b1100101) + chr(99) + chr(0b1101111) + chr(100) + '\145')('\x75' + chr(116) + chr(0b101010 + 0o74) + chr(0b101101) + chr(1841 - 1785)))(nzTpIcepk0o8('\060' + chr(0b1100001 + 0o16) + chr(298 - 249), 8)) roI3spqORKae(YETrXy3ueS3C, roI3spqORKae(ES5oEprVxulp(b'\n\x92\n\xb3q\xf6u'), '\x64' + chr(101) + '\x63' + chr(0b1101111) + chr(0b1001100 + 0o30) + '\145')('\x75' + chr(0b11 + 0o161) + chr(102) + chr(45) + chr(0b111000)))(FD5PUZmesBAJ)
dnanexus/dx-toolkit
doc/examples/dx-apps/report_example/src/report_example.py
draw_bar_chart
def draw_bar_chart(): """ Uses sample code from http://matplotlib.org/1.2.1/examples/api/barchart_demo.html """ N = 5 menMeans = (20, 35, 30, 35, 27) menStd = (2, 3, 4, 1, 2) ind = numpy.arange(N) width = 0.35 fig = pyplot.figure() ax = fig.add_subplot(111) rects1 = ax.bar(ind, menMeans, width, color='r', yerr=menStd) womenMeans = (25, 32, 34, 20, 25) womenStd = (3, 5, 2, 3, 3) rects2 = ax.bar(ind+width, womenMeans, width, color='y', yerr=womenStd) ax.set_ylabel('Scores') ax.set_title('Scores by group and color') ax.set_xticks(ind+width) ax.set_xticklabels(('G1', 'G2', 'G3', 'G4', 'G5')) ax.legend((rects1[0], rects2[0]), ('Red', 'Yellow')) def autolabel(rects): for rect in rects: height = rect.get_height() ax.text(rect.get_x()+rect.get_width()/2., 1.05*height, '%d' % int(height), ha='center', va='bottom') autolabel(rects1) autolabel(rects2) pyplot.savefig(bars_filename)
python
def draw_bar_chart(): """ Uses sample code from http://matplotlib.org/1.2.1/examples/api/barchart_demo.html """ N = 5 menMeans = (20, 35, 30, 35, 27) menStd = (2, 3, 4, 1, 2) ind = numpy.arange(N) width = 0.35 fig = pyplot.figure() ax = fig.add_subplot(111) rects1 = ax.bar(ind, menMeans, width, color='r', yerr=menStd) womenMeans = (25, 32, 34, 20, 25) womenStd = (3, 5, 2, 3, 3) rects2 = ax.bar(ind+width, womenMeans, width, color='y', yerr=womenStd) ax.set_ylabel('Scores') ax.set_title('Scores by group and color') ax.set_xticks(ind+width) ax.set_xticklabels(('G1', 'G2', 'G3', 'G4', 'G5')) ax.legend((rects1[0], rects2[0]), ('Red', 'Yellow')) def autolabel(rects): for rect in rects: height = rect.get_height() ax.text(rect.get_x()+rect.get_width()/2., 1.05*height, '%d' % int(height), ha='center', va='bottom') autolabel(rects1) autolabel(rects2) pyplot.savefig(bars_filename)
[ "def", "draw_bar_chart", "(", ")", ":", "N", "=", "5", "menMeans", "=", "(", "20", ",", "35", ",", "30", ",", "35", ",", "27", ")", "menStd", "=", "(", "2", ",", "3", ",", "4", ",", "1", ",", "2", ")", "ind", "=", "numpy", ".", "arange", "(", "N", ")", "width", "=", "0.35", "fig", "=", "pyplot", ".", "figure", "(", ")", "ax", "=", "fig", ".", "add_subplot", "(", "111", ")", "rects1", "=", "ax", ".", "bar", "(", "ind", ",", "menMeans", ",", "width", ",", "color", "=", "'r'", ",", "yerr", "=", "menStd", ")", "womenMeans", "=", "(", "25", ",", "32", ",", "34", ",", "20", ",", "25", ")", "womenStd", "=", "(", "3", ",", "5", ",", "2", ",", "3", ",", "3", ")", "rects2", "=", "ax", ".", "bar", "(", "ind", "+", "width", ",", "womenMeans", ",", "width", ",", "color", "=", "'y'", ",", "yerr", "=", "womenStd", ")", "ax", ".", "set_ylabel", "(", "'Scores'", ")", "ax", ".", "set_title", "(", "'Scores by group and color'", ")", "ax", ".", "set_xticks", "(", "ind", "+", "width", ")", "ax", ".", "set_xticklabels", "(", "(", "'G1'", ",", "'G2'", ",", "'G3'", ",", "'G4'", ",", "'G5'", ")", ")", "ax", ".", "legend", "(", "(", "rects1", "[", "0", "]", ",", "rects2", "[", "0", "]", ")", ",", "(", "'Red'", ",", "'Yellow'", ")", ")", "def", "autolabel", "(", "rects", ")", ":", "for", "rect", "in", "rects", ":", "height", "=", "rect", ".", "get_height", "(", ")", "ax", ".", "text", "(", "rect", ".", "get_x", "(", ")", "+", "rect", ".", "get_width", "(", ")", "/", "2.", ",", "1.05", "*", "height", ",", "'%d'", "%", "int", "(", "height", ")", ",", "ha", "=", "'center'", ",", "va", "=", "'bottom'", ")", "autolabel", "(", "rects1", ")", "autolabel", "(", "rects2", ")", "pyplot", ".", "savefig", "(", "bars_filename", ")" ]
Uses sample code from http://matplotlib.org/1.2.1/examples/api/barchart_demo.html
[ "Uses", "sample", "code", "from", "http", ":", "//", "matplotlib", ".", "org", "/", "1", ".", "2", ".", "1", "/", "examples", "/", "api", "/", "barchart_demo", ".", "html" ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/doc/examples/dx-apps/report_example/src/report_example.py#L76-L110
train
Draws a bar chart for the next N elements.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW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oS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b10000 + 0o43) + chr(92 - 40) + chr(2305 - 2254), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(1202 - 1091) + chr(0b110001) + chr(0b10010 + 0o41) + chr(474 - 425), 1569 - 1561), nzTpIcepk0o8('\060' + '\x6f' + chr(0b111 + 0o57) + '\061', ord("\x08")), nzTpIcepk0o8(chr(0b11110 + 0o22) + '\x6f' + chr(623 - 573) + chr(55) + '\065', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110110) + chr(0b100111 + 0o15), 58283 - 58275), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110011) + '\x36' + '\064', 0b1000), nzTpIcepk0o8(chr(1092 - 1044) + chr(0b100000 + 0o117) + '\x37' + '\x30', 20784 - 20776), nzTpIcepk0o8(chr(0b110000) + chr(5280 - 5169) + chr(49) + '\x35' + chr(0b10011 + 0o41), ord("\x08")), nzTpIcepk0o8(chr(1576 - 1528) + chr(5564 - 5453) + chr(0b110011) + chr(0b100001 + 0o22) + chr(53), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(1043 - 995), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(49) + chr(0b110110) + chr(2355 - 2305), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(49) + chr(53) + chr(55), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110011) + '\060' + '\x32', 0o10), nzTpIcepk0o8(chr(0b101110 + 0o2) + chr(111) + '\x33' + chr(0b110101) + chr(51), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(145 - 95) + '\062' + chr(0b110110), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110001) + chr(1188 - 1137) + chr(52), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1011010 + 0o25) + chr(0b110001) + '\066' + chr(48), 43495 - 43487), nzTpIcepk0o8(chr(0b110000) + chr(0b1010000 + 0o37) + '\x32' + chr(0b1101 + 0o44), 30442 - 30434), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x35' + chr(0b110100), 28550 - 28542), nzTpIcepk0o8(chr(0b110000) + chr(10197 - 10086) + '\063' + '\063' + '\x30', 0b1000), nzTpIcepk0o8(chr(0b0 + 0o60) + chr(5033 - 4922) + '\x32' + '\062' + chr(0b111 + 0o60), 15035 - 15027), nzTpIcepk0o8(chr(48) + chr(0b11100 + 0o123) + chr(0b110 + 0o54) + '\x31' + '\065', ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(50) + chr(48) + '\064', 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(1147 - 1092), 11224 - 11216), nzTpIcepk0o8(chr(0b110 + 0o52) + '\x6f' + '\x32' + chr(48) + chr(0b11 + 0o56), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b100100 + 0o113) + chr(49) + chr(863 - 811) + '\x35', 0b1000), nzTpIcepk0o8(chr(87 - 39) + '\x6f' + chr(632 - 582) + chr(0b110110) + chr(0b10000 + 0o47), ord("\x08")), nzTpIcepk0o8(chr(0b100000 + 0o20) + chr(7089 - 6978) + '\063' + chr(68 - 17), 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110001) + chr(52) + chr(0b110100), 3016 - 3008), nzTpIcepk0o8('\x30' + chr(2301 - 2190) + '\x32' + '\x35' + '\067', 16126 - 16118), nzTpIcepk0o8(chr(48) + chr(6875 - 6764) + chr(51) + chr(0b110010), ord("\x08")), nzTpIcepk0o8('\x30' + chr(11589 - 11478) + '\061' + chr(343 - 295), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1010101 + 0o32) + '\063' + chr(0b110101) + chr(2656 - 2603), 0b1000), nzTpIcepk0o8(chr(0b100111 + 0o11) + chr(5634 - 5523) + chr(1397 - 1346) + '\065' + chr(0b1 + 0o64), 8), nzTpIcepk0o8(chr(0b101110 + 0o2) + chr(111) + chr(55) + chr(2186 - 2131), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110001) + chr(0b100 + 0o61) + '\x34', 8), nzTpIcepk0o8('\x30' + chr(0b1001000 + 0o47) + chr(2230 - 2178) + '\x33', 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(55) + '\064', 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(0b1001 + 0o51) + '\063' + chr(0b11010 + 0o34), ord("\x08")), nzTpIcepk0o8(chr(0b100001 + 0o17) + chr(0b1101111) + chr(0b110001) + chr(1510 - 1457), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b10100 + 0o41) + chr(0b101110 + 0o2), ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xcd'), chr(0b1011101 + 0o7) + '\x65' + chr(99) + chr(111) + chr(7650 - 7550) + chr(0b1100101))(chr(117) + '\164' + chr(0b1100011 + 0o3) + '\055' + chr(0b111000)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def Ck2KCCX2ubHr(): UtB2m8Xmgf5k = nzTpIcepk0o8(chr(48) + '\157' + chr(53), 0b1000) wAkycrhAmxHj = (nzTpIcepk0o8(chr(0b101110 + 0o2) + chr(8731 - 8620) + chr(2462 - 2412) + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(5423 - 5312) + chr(1585 - 1533) + '\063', 8), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110001 + 0o2) + '\066', ord("\x08")), nzTpIcepk0o8(chr(1853 - 1805) + chr(534 - 423) + chr(0b100001 + 0o23) + chr(1527 - 1476), 8), nzTpIcepk0o8(chr(48) + '\x6f' + '\x33' + chr(0b101101 + 0o6), 8)) RscAvPNNXUD9 = (nzTpIcepk0o8(chr(48) + chr(0b1011011 + 0o24) + chr(50), 0o10), nzTpIcepk0o8(chr(48) + chr(0b111000 + 0o67) + chr(51), 23006 - 22998), nzTpIcepk0o8(chr(48) + chr(111) + chr(52), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + '\061', ord("\x08")), nzTpIcepk0o8(chr(0b100101 + 0o13) + '\x6f' + chr(932 - 882), 8)) w5vcgUzFN3bF = L6YB9g87uxKh.chmI_GMU_sEi(UtB2m8Xmgf5k) dH3vcKdvgBu0 = 0.35 ux0XlXMUdKbX = YETrXy3ueS3C.es0Z6dzChSL5() ZtB7KOLCW2Hk = ux0XlXMUdKbX.add_subplot(nzTpIcepk0o8('\060' + chr(0b1101111) + '\061' + chr(0b110101) + '\x37', 8)) uSh_qGou_AcN = ZtB7KOLCW2Hk.MKXABTRVyK3m(w5vcgUzFN3bF, wAkycrhAmxHj, dH3vcKdvgBu0, color=roI3spqORKae(ES5oEprVxulp(b'\x91'), chr(0b1100100) + '\145' + '\x63' + chr(111) + chr(5402 - 5302) + chr(101))('\165' + '\x74' + chr(9561 - 9459) + chr(45) + chr(3072 - 3016)), yerr=RscAvPNNXUD9) y85b0NT9ibQ6 = (nzTpIcepk0o8(chr(0b110000) + chr(111) + '\063' + chr(0b1110 + 0o43), 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(791 - 739) + '\x30', ord("\x08")), nzTpIcepk0o8(chr(288 - 240) + chr(111) + chr(1050 - 998) + chr(50), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + '\x32' + chr(0b11111 + 0o25), 8), nzTpIcepk0o8(chr(48) + '\157' + chr(0b100100 + 0o17) + chr(0b10001 + 0o40), 8)) TdzDmzM1pwRv = (nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110011), 8), nzTpIcepk0o8(chr(522 - 474) + chr(0b1101111) + '\065', 8), nzTpIcepk0o8('\060' + '\157' + '\x32', 8), nzTpIcepk0o8(chr(0b11111 + 0o21) + chr(0b11 + 0o154) + chr(0b100111 + 0o14), 8), nzTpIcepk0o8(chr(48) + '\x6f' + chr(205 - 154), 8)) MvcORQRha594 = ZtB7KOLCW2Hk.MKXABTRVyK3m(w5vcgUzFN3bF + dH3vcKdvgBu0, y85b0NT9ibQ6, dH3vcKdvgBu0, color=roI3spqORKae(ES5oEprVxulp(b'\x9a'), '\x64' + '\145' + chr(99) + chr(9902 - 9791) + '\x64' + chr(101))('\x75' + chr(0b1110100) + chr(2373 - 2271) + chr(0b101101) + chr(286 - 230)), yerr=TdzDmzM1pwRv) roI3spqORKae(ZtB7KOLCW2Hk, roI3spqORKae(ES5oEprVxulp(b'\x90<E\xe2M\x98Y\x0e\xb8l'), '\144' + chr(0b1100101) + '\143' + chr(0b11001 + 0o126) + '\x64' + chr(0b11111 + 0o106))(chr(0b1001110 + 0o47) + chr(0b1000000 + 0o64) + chr(0b1011010 + 0o14) + chr(0b101101) + chr(0b101000 + 0o20)))(roI3spqORKae(ES5oEprVxulp(b'\xb0:^\xcfQ\x87'), '\x64' + chr(101) + '\143' + chr(0b1101111) + chr(0b1010010 + 0o22) + chr(0b1000000 + 0o45))(chr(0b1110101) + chr(1115 - 999) + chr(102) + chr(0b1010 + 0o43) + chr(1029 - 973))) roI3spqORKae(ZtB7KOLCW2Hk, roI3spqORKae(ES5oEprVxulp(b'\x90<E\xe2@\x9dL\x00\xb8'), chr(0b1100100) + chr(101) + '\143' + '\157' + chr(0b1100100) + '\x65')('\x75' + chr(8134 - 8018) + chr(102) + chr(45) + chr(56)))(roI3spqORKae(ES5oEprVxulp(b'\xb0:^\xcfQ\x87\x18\x0e\xa4 \x15\x1d\xad\x9e\xe6|\x11\x7fH\xf8\xf4\xe2\xe8h\xf3'), '\x64' + '\145' + chr(0b1010100 + 0o17) + '\x6f' + '\x64' + '\x65')(chr(117) + chr(10445 - 10329) + chr(1549 - 1447) + '\055' + '\x38')) roI3spqORKae(ZtB7KOLCW2Hk, roI3spqORKae(ES5oEprVxulp(b'\x90<E\xe2L\x80Q\x0f\xb6s'), '\144' + chr(2524 - 2423) + chr(99) + '\x6f' + chr(100) + chr(8991 - 8890))(chr(0b1011001 + 0o34) + chr(9782 - 9666) + chr(0b11111 + 0o107) + '\055' + chr(900 - 844)))(w5vcgUzFN3bF + dH3vcKdvgBu0) roI3spqORKae(ZtB7KOLCW2Hk, roI3spqORKae(ES5oEprVxulp(b'\x90<E\xe2L\x80Q\x0f\xb6l\x13\r\xa7\x87\xe5'), chr(100) + '\x65' + chr(0b1100011) + '\x6f' + '\x64' + chr(0b11011 + 0o112))('\165' + chr(116) + '\146' + '\055' + '\070'))((roI3spqORKae(ES5oEprVxulp(b'\xa4h'), '\x64' + chr(1702 - 1601) + '\x63' + '\x6f' + chr(0b11101 + 0o107) + chr(101))('\165' + '\164' + '\x66' + chr(0b101101) + chr(1513 - 1457)), roI3spqORKae(ES5oEprVxulp(b'\xa4k'), chr(0b10100 + 0o120) + '\145' + chr(99) + chr(0b1010000 + 0o37) + chr(100) + chr(0b1100101))('\165' + chr(116) + chr(0b1100110) + chr(1498 - 1453) + chr(2823 - 2767)), roI3spqORKae(ES5oEprVxulp(b'\xa4j'), chr(7730 - 7630) + chr(8293 - 8192) + chr(99) + chr(11893 - 11782) + chr(0b100110 + 0o76) + chr(101))(chr(0b101101 + 0o110) + chr(116) + chr(0b1100110) + chr(0b101101) + '\x38'), roI3spqORKae(ES5oEprVxulp(b'\xa4m'), chr(3234 - 3134) + chr(6736 - 6635) + chr(8975 - 8876) + chr(111) + chr(0b110111 + 0o55) + chr(3659 - 3558))(chr(0b1110101) + chr(0b1101 + 0o147) + '\x66' + '\x2d' + chr(1978 - 1922)), roI3spqORKae(ES5oEprVxulp(b'\xa4l'), chr(0b1010 + 0o132) + '\x65' + '\143' + chr(0b1010010 + 0o35) + chr(0b1011101 + 0o7) + '\145')(chr(0b10110 + 0o137) + '\164' + '\x66' + '\x2d' + chr(470 - 414)))) roI3spqORKae(ZtB7KOLCW2Hk, roI3spqORKae(ES5oEprVxulp(b'\x8f<V\xd8Z\x90'), chr(100) + chr(0b1100101) + '\x63' + chr(111) + chr(100) + '\145')(chr(953 - 836) + '\164' + chr(249 - 147) + chr(365 - 320) + chr(0b100101 + 0o23)))((uSh_qGou_AcN[nzTpIcepk0o8(chr(0b1111 + 0o41) + '\157' + chr(0b10101 + 0o33), 8)], MvcORQRha594[nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x30', 8)]), (roI3spqORKae(ES5oEprVxulp(b'\xb1<U'), '\x64' + '\x65' + '\x63' + chr(0b1010111 + 0o30) + chr(7638 - 7538) + chr(101))(chr(0b1110101) + chr(0b1110001 + 0o3) + '\x66' + chr(1509 - 1464) + chr(0b100001 + 0o27)), roI3spqORKae(ES5oEprVxulp(b'\xba<]\xd1[\x83'), '\x64' + chr(101) + chr(0b111011 + 0o50) + '\157' + chr(9641 - 9541) + chr(1187 - 1086))(chr(4677 - 4560) + chr(116) + '\x66' + chr(871 - 826) + chr(56)))) def mzInIcfZHqOL(HfwYFprGr2U2): for RykXWJNVHUWO in HfwYFprGr2U2: PaEBmun9J0YJ = RykXWJNVHUWO.get_height() roI3spqORKae(ZtB7KOLCW2Hk, roI3spqORKae(ES5oEprVxulp(b'\x80)b\xc9_\xc3[5\xecT8\x0b'), chr(5768 - 5668) + chr(387 - 286) + chr(0b101000 + 0o73) + chr(9710 - 9599) + chr(8138 - 8038) + '\x65')(chr(0b1110101) + chr(0b100111 + 0o115) + '\146' + chr(0b11 + 0o52) + chr(0b111000)))(roI3spqORKae(RykXWJNVHUWO, roI3spqORKae(ES5oEprVxulp(b'\x84<E\xe2L'), '\144' + chr(0b1100101) + chr(3945 - 3846) + chr(0b10 + 0o155) + chr(0b110 + 0o136) + chr(101))('\x75' + chr(0b1110100) + '\x66' + chr(0b101101) + chr(2210 - 2154)))() + roI3spqORKae(RykXWJNVHUWO, roI3spqORKae(ES5oEprVxulp(b'\x84<E\xe2C\x9d\\\x18\xb5'), '\x64' + chr(0b1100101) + '\x63' + '\x6f' + '\x64' + chr(0b100100 + 0o101))(chr(117) + chr(116) + '\146' + chr(0b100001 + 0o14) + chr(509 - 453)))() / 2.0, 1.05 * PaEBmun9J0YJ, roI3spqORKae(ES5oEprVxulp(b'\xc6='), chr(0b1100100) + chr(4505 - 4404) + chr(0b1100011) + chr(5388 - 5277) + '\x64' + chr(10064 - 9963))('\165' + chr(116) + chr(447 - 345) + chr(0b101101) + chr(0b111000)) % nzTpIcepk0o8(PaEBmun9J0YJ), ha=roI3spqORKae(ES5oEprVxulp(b'\x80<_\xc9Q\x86'), '\x64' + '\x65' + chr(99) + '\x6f' + '\x64' + chr(0b1100101))(chr(4398 - 4281) + '\x74' + chr(0b1100110) + chr(156 - 111) + chr(56)), va=roI3spqORKae(ES5oEprVxulp(b'\x816E\xc9[\x99'), '\x64' + chr(0b100100 + 0o101) + '\143' + chr(556 - 445) + '\144' + '\145')(chr(0b1000101 + 0o60) + '\164' + chr(102) + '\x2d' + chr(436 - 380))) mzInIcfZHqOL(uSh_qGou_AcN) mzInIcfZHqOL(MvcORQRha594) roI3spqORKae(YETrXy3ueS3C, roI3spqORKae(ES5oEprVxulp(b'\x908G\xd8R\x9d_'), '\144' + chr(101) + chr(0b110111 + 0o54) + chr(0b1101111) + '\144' + chr(0b1010011 + 0o22))(chr(0b1100111 + 0o16) + chr(1571 - 1455) + chr(0b1100110) + '\x2d' + chr(0b101100 + 0o14)))(ixvGCZvJssAu)
dnanexus/dx-toolkit
doc/examples/dx-apps/report_example/src/report_example.py
draw_lines
def draw_lines(): """ Draws a line between a set of random values """ r = numpy.random.randn(200) fig = pyplot.figure() ax = fig.add_subplot(111) ax.plot(r) ax.grid(True) pyplot.savefig(lines_filename)
python
def draw_lines(): """ Draws a line between a set of random values """ r = numpy.random.randn(200) fig = pyplot.figure() ax = fig.add_subplot(111) ax.plot(r) ax.grid(True) pyplot.savefig(lines_filename)
[ "def", "draw_lines", "(", ")", ":", "r", "=", "numpy", ".", "random", ".", "randn", "(", "200", ")", "fig", "=", "pyplot", ".", "figure", "(", ")", "ax", "=", "fig", ".", "add_subplot", "(", "111", ")", "ax", ".", "plot", "(", "r", ")", "ax", ".", "grid", "(", "True", ")", "pyplot", ".", "savefig", "(", "lines_filename", ")" ]
Draws a line between a set of random values
[ "Draws", "a", "line", "between", "a", "set", "of", "random", "values" ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/doc/examples/dx-apps/report_example/src/report_example.py#L113-L124
train
Draw a line between a set of random values
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,C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a,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b100001 + 0o20) + chr(818 - 769) + chr(0b0 + 0o61), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b111110 + 0o61) + '\062' + '\x35' + chr(0b0 + 0o67), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b111010 + 0o65) + chr(0b110001) + '\x31' + '\065', 0o10), nzTpIcepk0o8(chr(1317 - 1269) + chr(0b1101111) + chr(0b11111 + 0o23) + chr(48) + chr(52), 0b1000), nzTpIcepk0o8('\060' + '\157' + chr(0b1000 + 0o56) + chr(0b10011 + 0o42), 0b1000), nzTpIcepk0o8(chr(0b11 + 0o55) + chr(0b1101111) + chr(0b110011) + chr(0b110011), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b101 + 0o54) + chr(0b1101 + 0o43) + chr(986 - 933), 55172 - 55164), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x33' + chr(0b110000) + '\x34', 0b1000), nzTpIcepk0o8('\x30' + chr(9125 - 9014) + chr(538 - 488) + chr(0b110011) + chr(50), 22248 - 22240), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(51) + chr(0b110111) + '\x35', 0b1000), nzTpIcepk0o8('\060' + chr(0b1010101 + 0o32) + chr(0b110010) + chr(1484 - 1434) + chr(0b100101 + 0o13), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b110011 + 0o74) + chr(0b110011) + '\x37' + chr(49), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(5134 - 5023) + chr(49) + chr(243 - 190) + chr(0b11 + 0o57), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(904 - 854) + chr(54), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(1856 - 1745) + chr(0b10010 + 0o41) + chr(0b110111) + '\063', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\061' + chr(0b110011) + '\067', 0b1000), nzTpIcepk0o8(chr(795 - 747) + chr(111) + '\x31' + chr(1341 - 1293) + chr(0b110000), 0o10), nzTpIcepk0o8(chr(0b101 + 0o53) + chr(0b1100101 + 0o12) + '\x36' + '\064', 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(2159 - 2108) + chr(0b110011 + 0o4) + chr(1809 - 1759), 0o10), nzTpIcepk0o8(chr(48) + '\157' + '\x32' + chr(0b110010 + 0o1) + chr(52), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1100101 + 0o12) + chr(49) + '\x33' + chr(0b1110 + 0o43), ord("\x08")), nzTpIcepk0o8(chr(1848 - 1800) + '\x6f' + '\x31' + chr(2417 - 2364) + chr(49), 14079 - 14071), nzTpIcepk0o8(chr(267 - 219) + chr(0b1010010 + 0o35) + chr(0b10111 + 0o34) + chr(0b110101) + chr(53), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110 + 0o55) + chr(0b11111 + 0o24), 8), nzTpIcepk0o8(chr(0b110000) + chr(0b10011 + 0o134) + '\x31' + '\x36' + chr(52), 47769 - 47761), nzTpIcepk0o8(chr(48) + chr(0b1010010 + 0o35) + '\062' + chr(0b1111 + 0o42) + chr(1710 - 1660), 51676 - 51668), nzTpIcepk0o8(chr(0b11100 + 0o24) + chr(0b1101111) + chr(0b10010 + 0o40) + '\061' + chr(2168 - 2118), 8), nzTpIcepk0o8('\x30' + '\x6f' + chr(52) + chr(50), 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(63 - 14) + chr(0b110001 + 0o4) + '\064', 0o10), nzTpIcepk0o8(chr(0b1 + 0o57) + chr(0b1101111) + '\x32' + chr(52) + chr(1414 - 1360), 0b1000), nzTpIcepk0o8(chr(0b101101 + 0o3) + '\157' + '\063' + chr(0b10100 + 0o36) + chr(53), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x32' + '\x36' + '\x34', 24718 - 24710), nzTpIcepk0o8(chr(0b101000 + 0o10) + chr(0b1101111) + '\x32' + chr(52) + chr(0b10011 + 0o41), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(11192 - 11081) + chr(51) + chr(53) + '\x34', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110010 + 0o1) + chr(0b110010) + chr(0b11 + 0o64), 0o10), nzTpIcepk0o8(chr(2262 - 2214) + chr(111) + chr(0b10000 + 0o41) + '\060' + chr(51), ord("\x08")), nzTpIcepk0o8(chr(0b110 + 0o52) + '\x6f' + '\063' + chr(0b110100) + chr(2649 - 2595), ord("\x08")), nzTpIcepk0o8(chr(0b1110 + 0o42) + chr(0b1101111) + '\x36', ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(1703 - 1654) + '\061' + '\061', 8), nzTpIcepk0o8('\x30' + chr(0b1010110 + 0o31) + chr(0b110011) + '\x32' + chr(0b110111), 8)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\065' + '\x30', 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'g'), chr(0b1100100) + chr(101) + chr(0b101110 + 0o65) + '\x6f' + chr(0b100 + 0o140) + chr(0b1100101))(chr(4664 - 4547) + chr(116) + chr(0b101100 + 0o72) + '\x2d' + chr(972 - 916)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def FwMKW89aOmSZ(): LCrwg7lcbmU9 = L6YB9g87uxKh.random.randn(nzTpIcepk0o8(chr(48) + chr(201 - 90) + chr(0b110011) + '\061' + '\x30', 61342 - 61334)) ux0XlXMUdKbX = YETrXy3ueS3C.es0Z6dzChSL5() ZtB7KOLCW2Hk = ux0XlXMUdKbX.add_subplot(nzTpIcepk0o8('\x30' + '\157' + chr(0b110001) + chr(0b110101) + chr(0b110111), 26572 - 26564)) roI3spqORKae(ZtB7KOLCW2Hk, roI3spqORKae(ES5oEprVxulp(b'9\xc3"\xf0'), chr(9925 - 9825) + '\145' + '\x63' + chr(111) + chr(100) + '\145')(chr(0b1101 + 0o150) + '\164' + chr(3258 - 3156) + '\055' + chr(0b101111 + 0o11)))(LCrwg7lcbmU9) roI3spqORKae(ZtB7KOLCW2Hk, roI3spqORKae(ES5oEprVxulp(b'1\xc6\x1d\xb1dc\x1c\x93\xf6\xb8\xfb\xae'), '\144' + '\145' + chr(454 - 355) + chr(0b1101111) + chr(100) + chr(0b1100101))(chr(117) + chr(0b1110100) + chr(0b1000110 + 0o40) + chr(45) + chr(0b111000)))(nzTpIcepk0o8(chr(48) + chr(111) + chr(0b11111 + 0o22), 0b1000)) roI3spqORKae(YETrXy3ueS3C, roI3spqORKae(ES5oEprVxulp(b':\xce;\xe1Sr"'), chr(0b110 + 0o136) + chr(101) + '\x63' + '\x6f' + chr(100) + chr(1707 - 1606))(chr(6011 - 5894) + chr(0b1110100) + chr(102) + '\055' + chr(0b10000 + 0o50)))(mBIPTJHtyl7Q)
dnanexus/dx-toolkit
doc/examples/dx-apps/report_example/src/report_example.py
generate_html
def generate_html(): """ Generate an HTML file incorporating the images produced by this script """ html_file = open(html_filename, "w") html_file.write("<html><body>") html_file.write("<h1>Here are some graphs for you!</h1>") for image in [lines_filename, bars_filename, histogram_filename]: html_file.write("<div><h2>{0}</h2><img src='{0}' /></div>".format(image)) html_file.write("</body></html>") html_file.close()
python
def generate_html(): """ Generate an HTML file incorporating the images produced by this script """ html_file = open(html_filename, "w") html_file.write("<html><body>") html_file.write("<h1>Here are some graphs for you!</h1>") for image in [lines_filename, bars_filename, histogram_filename]: html_file.write("<div><h2>{0}</h2><img src='{0}' /></div>".format(image)) html_file.write("</body></html>") html_file.close()
[ "def", "generate_html", "(", ")", ":", "html_file", "=", "open", "(", "html_filename", ",", "\"w\"", ")", "html_file", ".", "write", "(", "\"<html><body>\"", ")", "html_file", ".", "write", "(", "\"<h1>Here are some graphs for you!</h1>\"", ")", "for", "image", "in", "[", "lines_filename", ",", "bars_filename", ",", "histogram_filename", "]", ":", "html_file", ".", "write", "(", "\"<div><h2>{0}</h2><img src='{0}' /></div>\"", ".", "format", "(", "image", ")", ")", "html_file", ".", "write", "(", "\"</body></html>\"", ")", "html_file", ".", "close", "(", ")" ]
Generate an HTML file incorporating the images produced by this script
[ "Generate", "an", "HTML", "file", "incorporating", "the", "images", "produced", "by", "this", "script" ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/doc/examples/dx-apps/report_example/src/report_example.py#L127-L137
train
Generate an HTML file incorporating the images produced by this script
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK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fqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(48) + '\x6f' + chr(52) + chr(0b1001 + 0o47), 0b1000), nzTpIcepk0o8(chr(311 - 263) + '\157' + chr(0b110011) + '\060' + chr(2569 - 2518), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(3697 - 3586) + '\063' + '\063', ord("\x08")), nzTpIcepk0o8(chr(0b110 + 0o52) + chr(0b1101111) + chr(567 - 518) + '\061' + chr(0b110010), 36121 - 36113), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110001) + '\x32' + chr(1644 - 1592), ord("\x08")), nzTpIcepk0o8(chr(0b11100 + 0o24) + '\x6f' + chr(51) + chr(0b101001 + 0o14) + chr(0b11000 + 0o30), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(7895 - 7784) + chr(1188 - 1139) + chr(0b10 + 0o63) + '\x37', 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(535 - 482) + '\062', 0o10), nzTpIcepk0o8('\060' + chr(0b1100 + 0o143) + '\x34', 0o10), nzTpIcepk0o8(chr(0b11110 + 0o22) + chr(111) + chr(90 - 39) + chr(48) + '\x34', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110001) + chr(54) + '\064', 40109 - 40101), nzTpIcepk0o8('\060' + chr(0b11111 + 0o120) + '\063' + chr(490 - 435) + '\064', ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(0b110111) + '\066', ord("\x08")), nzTpIcepk0o8(chr(595 - 547) + chr(0b1101111) + '\x32' + chr(0b110100) + '\x37', 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(50) + '\x37' + chr(51), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1100101 + 0o12) + chr(1684 - 1630) + '\063', 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x33' + '\062', ord("\x08")), nzTpIcepk0o8('\060' + chr(2882 - 2771) + chr(0b101010 + 0o11) + chr(537 - 489) + '\065', ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + '\x32' + chr(52) + chr(48), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110111) + '\061', 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\063' + chr(50) + chr(773 - 724), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + '\066' + chr(0b110001), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110001) + chr(0b11101 + 0o27) + '\x32', 1594 - 1586), nzTpIcepk0o8(chr(0b1010 + 0o46) + '\157' + chr(0b1100 + 0o45) + chr(55), 0o10), nzTpIcepk0o8(chr(96 - 48) + chr(0b1101111) + chr(49) + chr(0b11000 + 0o32) + chr(49), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(0b10011 + 0o40) + chr(51) + chr(1928 - 1876), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1100110 + 0o11) + '\x33' + chr(1866 - 1815) + chr(0b110010), 28316 - 28308), nzTpIcepk0o8(chr(0b1110 + 0o42) + chr(111) + chr(873 - 824) + chr(1061 - 1006), 8), nzTpIcepk0o8(chr(48) + '\x6f' + chr(50) + chr(0b1100 + 0o51) + chr(55), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b100101 + 0o112) + chr(0b10110 + 0o35) + chr(0b110011) + '\067', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(1366 - 1255) + chr(2543 - 2492) + chr(0b101 + 0o57) + chr(0b10100 + 0o41), 36969 - 36961), nzTpIcepk0o8(chr(0b1011 + 0o45) + chr(0b1101111) + chr(51) + chr(50) + chr(0b110011), ord("\x08")), nzTpIcepk0o8(chr(0b1000 + 0o50) + chr(0b1101111) + chr(2238 - 2188) + chr(0b10010 + 0o37) + chr(0b110011), ord("\x08")), nzTpIcepk0o8(chr(0b101010 + 0o6) + '\x6f' + chr(51) + '\x35' + chr(49), 0b1000), nzTpIcepk0o8('\060' + '\157' + chr(49) + chr(1216 - 1168) + chr(0b1100 + 0o44), 25427 - 25419), nzTpIcepk0o8(chr(48) + chr(111) + '\x31' + '\067' + chr(0b110000), 0o10), nzTpIcepk0o8(chr(71 - 23) + chr(0b1010 + 0o145) + chr(1823 - 1772) + chr(0b101101 + 0o10), 13936 - 13928), nzTpIcepk0o8(chr(1968 - 1920) + chr(0b11010 + 0o125) + chr(0b110011) + chr(415 - 367) + '\063', 8), nzTpIcepk0o8('\x30' + chr(0b1001100 + 0o43) + '\063' + chr(48) + '\065', 8), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x32' + chr(0b110001) + '\x37', ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(53) + '\060', 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x0e'), '\x64' + chr(0b1100101) + '\x63' + '\157' + chr(100) + chr(101))(chr(769 - 652) + '\x74' + chr(0b10100 + 0o122) + chr(45) + '\070') + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def WOug7Dh9WFoD(): p00hWz8zLU7y = DnU3Rq9N5ala(vsx9Lg1oysbY, roI3spqORKae(ES5oEprVxulp(b'W'), chr(0b1100100) + chr(0b1011001 + 0o14) + chr(0b1010110 + 0o15) + '\x6f' + chr(1527 - 1427) + '\x65')(chr(117) + '\164' + chr(0b1100110) + chr(0b101101) + chr(1639 - 1583))) roI3spqORKae(p00hWz8zLU7y, roI3spqORKae(ES5oEprVxulp(b'M\xaf+"<\x98\x19\x1bH\xb4\x05\xce'), chr(0b11110 + 0o106) + chr(0b1100101) + chr(5654 - 5555) + '\x6f' + chr(0b1100100) + '\x65')(chr(117) + chr(2878 - 2762) + chr(0b1100110) + chr(2012 - 1967) + '\x38'))(roI3spqORKae(ES5oEprVxulp(b"\x1c\xabo'8\xd6SHk\xa0\r\xc2"), chr(6057 - 5957) + '\145' + chr(0b1100011) + chr(111) + chr(100) + '\x65')(chr(9904 - 9787) + chr(0b111010 + 0o72) + chr(102) + chr(0b11000 + 0o25) + '\x38')) roI3spqORKae(p00hWz8zLU7y, roI3spqORKae(ES5oEprVxulp(b'M\xaf+"<\x98\x19\x1bH\xb4\x05\xce'), '\x64' + chr(0b1100101) + chr(99) + '\x6f' + chr(100) + chr(101))(chr(0b1011101 + 0o30) + chr(8305 - 8189) + chr(102) + chr(0b101101) + chr(0b111000)))(roI3spqORKae(ES5oEprVxulp(b'\x1c\xab*t\x1c\x8d\x1dO$\xa5\x06\x99\x1e\xd4\xd4^\x7f\xe5\xc7K\xb0A\n|q\xba\xb5}\x8f\xa6\x8a\xa6\xaa\xd5o\x10,\xfd'), chr(7990 - 7890) + chr(0b1100101) + chr(0b1010000 + 0o23) + chr(0b1011010 + 0o25) + '\x64' + chr(101))('\x75' + chr(0b1110100) + chr(0b1001000 + 0o36) + '\055' + chr(0b111000))) for qqETtneJqWI2 in [mBIPTJHtyl7Q, ixvGCZvJssAu, FD5PUZmesBAJ]: roI3spqORKae(p00hWz8zLU7y, roI3spqORKae(ES5oEprVxulp(b'M\xaf+"<\x98\x19\x1bH\xb4\x05\xce'), chr(0b1010 + 0o132) + chr(101) + chr(0b1100011) + '\x6f' + chr(0b1001011 + 0o31) + chr(9163 - 9062))('\165' + '\x74' + chr(102) + '\x2d' + chr(0b110011 + 0o5)))(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\x1c\xa7r<j\xd4\x07\x18:\xbfD\x81\x02\x88\xd3\x01$\xf9\xc9T\xb6\x11\x11}2\xe1\xfdt\x9f\xa2\xc2\xf3\xa4\xd7|Wy\xaa\xb3\xb1'), chr(7046 - 6946) + chr(101) + chr(0b1100011) + chr(111) + chr(5433 - 5333) + '\145')(chr(0b101101 + 0o110) + chr(394 - 278) + '\146' + '\055' + '\x38'), roI3spqORKae(ES5oEprVxulp(b'Q\xf0(\x01\x13\xdb\tEU\x9b7\xb6'), chr(100) + chr(0b1011000 + 0o15) + '\x63' + '\157' + chr(0b101110 + 0o66) + chr(0b100100 + 0o101))(chr(0b1000010 + 0o63) + chr(0b1110100) + '\x66' + '\x2d' + chr(2123 - 2067)))(qqETtneJqWI2)) roI3spqORKae(p00hWz8zLU7y, roI3spqORKae(ES5oEprVxulp(b'M\xaf+"<\x98\x19\x1bH\xb4\x05\xce'), chr(0b1100100) + '\x65' + '\143' + chr(111) + chr(3482 - 3382) + '\x65')('\x75' + chr(9653 - 9537) + chr(102) + chr(205 - 160) + chr(0b11101 + 0o33)))(roI3spqORKae(ES5oEprVxulp(b'\x1c\xecy%0\x91Q\x16+\xac\x00\x91R\x99'), '\x64' + '\145' + chr(0b1100011) + chr(111) + chr(0b1100100) + chr(3518 - 3417))('\165' + chr(0b1110100) + chr(102) + chr(256 - 211) + '\070')) roI3spqORKae(p00hWz8zLU7y, roI3spqORKae(ES5oEprVxulp(b'z\xa6j}\x17\x8b\t\x13Q\xa0L\x96'), chr(100) + chr(2554 - 2453) + chr(0b101010 + 0o71) + chr(0b1101111) + chr(0b1100100) + '\x65')(chr(0b1010100 + 0o41) + chr(0b10000 + 0o144) + chr(0b1110 + 0o130) + chr(1855 - 1810) + '\070'))()
dnanexus/dx-toolkit
src/python/dxpy/scripts/dx_app_wizard.py
main
def main(**kwargs): """ Entry point for dx-app-wizard. Note that this function is not meant to be used as a subroutine in your program. """ manifest = [] print_intro(API_VERSION) if args.json_file is not None: with open(args.json_file, 'r') as json_file: app_json = json.loads(json_file.read()) # Re-confirm the name name = get_name(default=args.name or app_json.get('name')) app_json['name'] = name version = get_version(default=app_json.get('version')) app_json['version'] = version try: os.mkdir(app_json['name']) except: sys.stderr.write(fill('''Unable to create a directory for %s, please check that it is a valid app name and the working directory exists and is writable.''' % app_json['name']) + '\n') sys.exit(1) else: ################## # BASIC METADATA # ################## name = get_name(default=args.name) try: os.mkdir(name) except: sys.stderr.write(fill('''Unable to create a directory for %s, please check that it is a valid app name and the working directory exists and is writable.''' % name) + '\n') sys.exit(1) title, summary = get_metadata(API_VERSION) version = get_version() app_json = OrderedDict() app_json["name"] = name app_json["title"] = title or name app_json['summary'] = summary or name app_json["dxapi"] = API_VERSION app_json["version"] = version ############ # IO SPECS # ############ class_completer = Completer(['int', 'float', 'string', 'boolean', 'hash', 'array:int', 'array:float', 'array:string', 'array:boolean', 'record', 'file', 'applet', 'array:record', 'array:file', 'array:applet']) bool_completer = Completer(['true', 'false']) print('') print(BOLD() + 'Input Specification' + ENDC()) print('') input_spec = True input_names = [] printed_classes = False if input_spec: app_json['inputSpec'] = [] print(fill('You will now be prompted for each input parameter to your app. Each parameter should have a unique name that uses only the underscore "_" and alphanumeric characters, and does not start with a number.')) while True: print('') ordinal = get_ordinal_str(len(app_json['inputSpec']) + 1) input_name = prompt_for_var(ordinal + ' input name (<ENTER> to finish)', allow_empty=True) if input_name == '': break if input_name in input_names: print(fill('Error: Cannot use the same input parameter name twice. Please choose again.')) continue if not IO_NAME_PATTERN.match(input_name): print(fill('Error: Parameter names may use only underscore "_", ASCII letters, and digits; and may not start with a digit. Please choose again.')) continue input_names.append(input_name) input_label = prompt_for_var('Label (optional human-readable name)', '') use_completer(class_completer) if not printed_classes: print('Your input parameter must be of one of the following classes:') print('''applet array:file array:record file int array:applet array:float array:string float record array:boolean array:int boolean hash string ''') printed_classes = True while True: input_class = prompt_for_var('Choose a class (<TAB> twice for choices)') if input_class in class_completer.choices: break else: print(fill('Not a recognized class; please choose again.')) use_completer() optional = prompt_for_yn('This is an optional parameter') default_val = None if optional and input_class in ['int', 'float', 'string', 'boolean']: default_val = prompt_for_yn('A default value should be provided') if default_val: while True: if input_class == 'boolean': use_completer(bool_completer) default_val = prompt_for_var(' Default value', choices=['true', 'false']) use_completer() elif input_class == 'string': default_val = prompt_for_var(' Default value', allow_empty=True) else: default_val = prompt_for_var(' Default value') try: if input_class == 'boolean': default_val = (default_val == 'true') elif input_class == 'int': default_val = int(default_val) elif input_class == 'float': default_val = float(default_val) break except: print('Not a valid default value for the given class ' + input_class) else: default_val = None # Fill in the input parameter's JSON parameter_json = OrderedDict() parameter_json["name"] = input_name if input_label != '': parameter_json['label'] = input_label parameter_json["class"] = input_class parameter_json["optional"] = optional if default_val is not None: parameter_json['default'] = default_val # Fill in patterns and blank help string if input_class == 'file' or input_class == 'array:file': parameter_json["patterns"] = ["*"] parameter_json["help"] = "" app_json['inputSpec'].append(parameter_json) print('') print(BOLD() + 'Output Specification' + ENDC()) print('') output_spec = True output_names = [] if output_spec: app_json['outputSpec'] = [] print(fill('You will now be prompted for each output parameter of your app. Each parameter should have a unique name that uses only the underscore "_" and alphanumeric characters, and does not start with a number.')) while True: print('') ordinal = get_ordinal_str(len(app_json['outputSpec']) + 1) output_name = prompt_for_var(ordinal + ' output name (<ENTER> to finish)', allow_empty=True) if output_name == '': break if output_name in output_names: print(fill('Error: Cannot use the same output parameter name twice. Please choose again.')) continue if not IO_NAME_PATTERN.match(output_name): print(fill('Error: Parameter names may use only underscore "_", ASCII letters, and digits; and may not start with a digit. Please choose again.')) continue output_names.append(output_name) output_label = prompt_for_var('Label (optional human-readable name)', '') use_completer(class_completer) if not printed_classes: print('Your output parameter must be of one of the following classes:') print('''applet array:file array:record file int array:applet array:float array:string float record array:boolean array:int boolean hash string''') printed_classes = True while True: output_class = prompt_for_var('Choose a class (<TAB> twice for choices)') if output_class in class_completer.choices: break else: print(fill('Not a recognized class; please choose again.')) use_completer() # Fill in the output parameter's JSON parameter_json = OrderedDict() parameter_json["name"] = output_name if output_label != '': parameter_json['label'] = output_label parameter_json["class"] = output_class # Fill in patterns and blank help string if output_class == 'file' or output_class == 'array:file': parameter_json["patterns"] = ["*"] parameter_json["help"] = "" app_json['outputSpec'].append(parameter_json) required_file_input_names = [] optional_file_input_names = [] required_file_array_input_names = [] optional_file_array_input_names = [] file_output_names = [] if 'inputSpec' in app_json: for param in app_json['inputSpec']: may_be_missing = param['optional'] and "default" not in param if param['class'] == 'file': param_list = optional_file_input_names if may_be_missing else required_file_input_names elif param['class'] == 'array:file': param_list = optional_file_array_input_names if may_be_missing else required_file_array_input_names else: param_list = None if param_list is not None: param_list.append(param['name']) if 'outputSpec' in app_json: file_output_names = [param['name'] for param in app_json['outputSpec'] if param['class'] == 'file'] ################## # TIMEOUT POLICY # ################## print('') print(BOLD() + 'Timeout Policy' + ENDC()) app_json["runSpec"] = OrderedDict({}) app_json['runSpec'].setdefault('timeoutPolicy', {}) timeout, timeout_units = get_timeout(default=app_json['runSpec']['timeoutPolicy'].get('*')) app_json['runSpec']['timeoutPolicy'].setdefault('*', {}) app_json['runSpec']['timeoutPolicy']['*'].setdefault(timeout_units, timeout) ######################## # LANGUAGE AND PATTERN # ######################## print('') print(BOLD() + 'Template Options' + ENDC()) # Prompt for programming language if not specified language = args.language if args.language is not None else get_language() interpreter = language_options[language].get_interpreter() app_json["runSpec"]["interpreter"] = interpreter # Prompt the execution pattern iff the args.pattern is provided and invalid template_dir = os.path.join(os.path.dirname(dxpy.__file__), 'templating', 'templates', language_options[language].get_path()) if not os.path.isdir(os.path.join(template_dir, args.template)): print(fill('The execution pattern "' + args.template + '" is not available for your programming language.')) pattern = get_pattern(template_dir) else: pattern = args.template template_dir = os.path.join(template_dir, pattern) with open(os.path.join(template_dir, 'dxapp.json'), 'r') as template_app_json_file: file_text = fill_in_name_and_ver(template_app_json_file.read(), name, version) template_app_json = json.loads(file_text) for key in template_app_json['runSpec']: app_json['runSpec'][key] = template_app_json['runSpec'][key] if (language == args.language) and (pattern == args.template): print('All template options are supplied in the arguments.') ########################## # APP ACCESS PERMISSIONS # ########################## print('') print(BOLD('Access Permissions')) print(fill('''If you request these extra permissions for your app, users will see this fact when launching your app, and certain other restrictions will apply. For more information, see ''' + BOLD('https://wiki.dnanexus.com/App-Permissions') + '.')) print('') print(fill(UNDERLINE('Access to the Internet') + ' (other than accessing the DNAnexus API).')) if prompt_for_yn("Will this app need access to the Internet?", default=False): app_json.setdefault('access', {}) app_json['access']['network'] = ['*'] print(fill('App has full access to the Internet. To narrow access to specific sites, edit the ' + UNDERLINE('access.network') + ' field of dxapp.json once we generate the app.')) print('') print(fill(UNDERLINE('Direct access to the parent project') + '''. This is not needed if your app specifies outputs, which will be copied into the project after it's done running.''')) if prompt_for_yn("Will this app need access to the parent project?", default=False): app_json.setdefault('access', {}) app_json['access']['project'] = 'CONTRIBUTE' print(fill('App has CONTRIBUTE access to the parent project. To change the access level or request access to ' + 'other projects, edit the ' + UNDERLINE('access.project') + ' and ' + UNDERLINE('access.allProjects') + ' fields of dxapp.json once we generate the app.')) ####################### # SYSTEM REQUIREMENTS # ####################### print('') print(BOLD('System Requirements')) print('') print(BOLD('Common AWS instance types:')) print(format_table(InstanceTypesCompleter.aws_preferred_instance_types.values(), column_names=list(InstanceTypesCompleter.instance_types.values())[0]._fields)) print(BOLD('Common Azure instance types:')) print(format_table(InstanceTypesCompleter.azure_preferred_instance_types.values(), column_names=list(InstanceTypesCompleter.instance_types.values())[0]._fields)) print(fill(BOLD('Default instance type:') + ' The instance type you select here will apply to all entry points in ' + 'your app unless you override it. See ' + BOLD('https://wiki.dnanexus.com/API-Specification-v1.0.0/Instance-Types') + ' for more information.')) use_completer(InstanceTypesCompleter()) instance_type = prompt_for_var('Choose an instance type for your app', default=InstanceTypesCompleter.default_instance_type.Name, choices=list(InstanceTypesCompleter.instance_types)) target_region = DEFAULT_REGION_AWS if instance_type in InstanceTypesCompleter.azure_preferred_instance_types.keys(): target_region = DEFAULT_REGION_AZURE app_json['regionalOptions'] = OrderedDict({}) app_json['regionalOptions'][target_region] = OrderedDict({}) app_json['regionalOptions'][target_region].setdefault('systemRequirements', {}) app_json['regionalOptions'][target_region]['systemRequirements'].setdefault('*', {}) app_json['regionalOptions'][target_region]['systemRequirements']['*']['instanceType'] = instance_type ###################### # HARDCODED DEFAULTS # ###################### app_json['runSpec']['distribution'] = 'Ubuntu' app_json['runSpec']['release'] = '16.04' ################# # WRITING FILES # ################# print('') print(BOLD() + '*** Generating ' + DNANEXUS_LOGO() + BOLD() + ' App Template... ***' + ENDC()) with open(os.path.join(name, 'dxapp.json'), 'w') as prog_file: prog_file.write(clean(json.dumps(app_json, indent=2)) + '\n') manifest.append(os.path.join(name, 'dxapp.json')) print('') print(fill('''Your app specification has been written to the dxapp.json file. You can specify more app options by editing this file directly (see https://wiki.dnanexus.com/Developer-Portal for complete documentation).''' + (''' Note that without an input and output specification, your app can only be built as an APPLET on the system. To publish it to the DNAnexus community, you must first specify your inputs and outputs. ''' if not ('inputSpec' in app_json and 'outputSpec' in app_json) else ""))) print('') for subdir in 'src', 'test', 'resources': try: os.mkdir(os.path.join(name, subdir)) manifest.append(os.path.join(name, subdir, '')) except: sys.stderr.write("Unable to create subdirectory %s/%s" % (name, subdir)) sys.exit(1) entry_points = ['main'] if pattern == 'parallelized': entry_points = ['main', 'process', 'postprocess'] elif pattern == 'scatter-process-gather': entry_points = ['main', 'scatter', 'map', 'process', 'postprocess'] manifest += create_files_from_templates(template_dir, app_json, language, required_file_input_names, optional_file_input_names, required_file_array_input_names, optional_file_array_input_names, file_output_names, pattern, description='<!-- Insert a description of your app here -->', entry_points=entry_points) print("Created files:") for filename in sorted(manifest): print("\t", filename) print("\n" + fill('''App directory created! See https://wiki.dnanexus.com/Developer-Portal for tutorials on how to modify these files, or run "dx build {n}" or "dx build --create-app {n}" while logged in with dx.'''.format(n=name)) + "\n") print(fill('''Running the DNAnexus build utility will create an executable on the DNAnexus platform. Any files found in the ''' + BOLD() + 'resources' + ENDC() + ''' directory will be uploaded so that they will be present in the root directory when the executable is run.'''))
python
def main(**kwargs): """ Entry point for dx-app-wizard. Note that this function is not meant to be used as a subroutine in your program. """ manifest = [] print_intro(API_VERSION) if args.json_file is not None: with open(args.json_file, 'r') as json_file: app_json = json.loads(json_file.read()) # Re-confirm the name name = get_name(default=args.name or app_json.get('name')) app_json['name'] = name version = get_version(default=app_json.get('version')) app_json['version'] = version try: os.mkdir(app_json['name']) except: sys.stderr.write(fill('''Unable to create a directory for %s, please check that it is a valid app name and the working directory exists and is writable.''' % app_json['name']) + '\n') sys.exit(1) else: ################## # BASIC METADATA # ################## name = get_name(default=args.name) try: os.mkdir(name) except: sys.stderr.write(fill('''Unable to create a directory for %s, please check that it is a valid app name and the working directory exists and is writable.''' % name) + '\n') sys.exit(1) title, summary = get_metadata(API_VERSION) version = get_version() app_json = OrderedDict() app_json["name"] = name app_json["title"] = title or name app_json['summary'] = summary or name app_json["dxapi"] = API_VERSION app_json["version"] = version ############ # IO SPECS # ############ class_completer = Completer(['int', 'float', 'string', 'boolean', 'hash', 'array:int', 'array:float', 'array:string', 'array:boolean', 'record', 'file', 'applet', 'array:record', 'array:file', 'array:applet']) bool_completer = Completer(['true', 'false']) print('') print(BOLD() + 'Input Specification' + ENDC()) print('') input_spec = True input_names = [] printed_classes = False if input_spec: app_json['inputSpec'] = [] print(fill('You will now be prompted for each input parameter to your app. Each parameter should have a unique name that uses only the underscore "_" and alphanumeric characters, and does not start with a number.')) while True: print('') ordinal = get_ordinal_str(len(app_json['inputSpec']) + 1) input_name = prompt_for_var(ordinal + ' input name (<ENTER> to finish)', allow_empty=True) if input_name == '': break if input_name in input_names: print(fill('Error: Cannot use the same input parameter name twice. Please choose again.')) continue if not IO_NAME_PATTERN.match(input_name): print(fill('Error: Parameter names may use only underscore "_", ASCII letters, and digits; and may not start with a digit. Please choose again.')) continue input_names.append(input_name) input_label = prompt_for_var('Label (optional human-readable name)', '') use_completer(class_completer) if not printed_classes: print('Your input parameter must be of one of the following classes:') print('''applet array:file array:record file int array:applet array:float array:string float record array:boolean array:int boolean hash string ''') printed_classes = True while True: input_class = prompt_for_var('Choose a class (<TAB> twice for choices)') if input_class in class_completer.choices: break else: print(fill('Not a recognized class; please choose again.')) use_completer() optional = prompt_for_yn('This is an optional parameter') default_val = None if optional and input_class in ['int', 'float', 'string', 'boolean']: default_val = prompt_for_yn('A default value should be provided') if default_val: while True: if input_class == 'boolean': use_completer(bool_completer) default_val = prompt_for_var(' Default value', choices=['true', 'false']) use_completer() elif input_class == 'string': default_val = prompt_for_var(' Default value', allow_empty=True) else: default_val = prompt_for_var(' Default value') try: if input_class == 'boolean': default_val = (default_val == 'true') elif input_class == 'int': default_val = int(default_val) elif input_class == 'float': default_val = float(default_val) break except: print('Not a valid default value for the given class ' + input_class) else: default_val = None # Fill in the input parameter's JSON parameter_json = OrderedDict() parameter_json["name"] = input_name if input_label != '': parameter_json['label'] = input_label parameter_json["class"] = input_class parameter_json["optional"] = optional if default_val is not None: parameter_json['default'] = default_val # Fill in patterns and blank help string if input_class == 'file' or input_class == 'array:file': parameter_json["patterns"] = ["*"] parameter_json["help"] = "" app_json['inputSpec'].append(parameter_json) print('') print(BOLD() + 'Output Specification' + ENDC()) print('') output_spec = True output_names = [] if output_spec: app_json['outputSpec'] = [] print(fill('You will now be prompted for each output parameter of your app. Each parameter should have a unique name that uses only the underscore "_" and alphanumeric characters, and does not start with a number.')) while True: print('') ordinal = get_ordinal_str(len(app_json['outputSpec']) + 1) output_name = prompt_for_var(ordinal + ' output name (<ENTER> to finish)', allow_empty=True) if output_name == '': break if output_name in output_names: print(fill('Error: Cannot use the same output parameter name twice. Please choose again.')) continue if not IO_NAME_PATTERN.match(output_name): print(fill('Error: Parameter names may use only underscore "_", ASCII letters, and digits; and may not start with a digit. Please choose again.')) continue output_names.append(output_name) output_label = prompt_for_var('Label (optional human-readable name)', '') use_completer(class_completer) if not printed_classes: print('Your output parameter must be of one of the following classes:') print('''applet array:file array:record file int array:applet array:float array:string float record array:boolean array:int boolean hash string''') printed_classes = True while True: output_class = prompt_for_var('Choose a class (<TAB> twice for choices)') if output_class in class_completer.choices: break else: print(fill('Not a recognized class; please choose again.')) use_completer() # Fill in the output parameter's JSON parameter_json = OrderedDict() parameter_json["name"] = output_name if output_label != '': parameter_json['label'] = output_label parameter_json["class"] = output_class # Fill in patterns and blank help string if output_class == 'file' or output_class == 'array:file': parameter_json["patterns"] = ["*"] parameter_json["help"] = "" app_json['outputSpec'].append(parameter_json) required_file_input_names = [] optional_file_input_names = [] required_file_array_input_names = [] optional_file_array_input_names = [] file_output_names = [] if 'inputSpec' in app_json: for param in app_json['inputSpec']: may_be_missing = param['optional'] and "default" not in param if param['class'] == 'file': param_list = optional_file_input_names if may_be_missing else required_file_input_names elif param['class'] == 'array:file': param_list = optional_file_array_input_names if may_be_missing else required_file_array_input_names else: param_list = None if param_list is not None: param_list.append(param['name']) if 'outputSpec' in app_json: file_output_names = [param['name'] for param in app_json['outputSpec'] if param['class'] == 'file'] ################## # TIMEOUT POLICY # ################## print('') print(BOLD() + 'Timeout Policy' + ENDC()) app_json["runSpec"] = OrderedDict({}) app_json['runSpec'].setdefault('timeoutPolicy', {}) timeout, timeout_units = get_timeout(default=app_json['runSpec']['timeoutPolicy'].get('*')) app_json['runSpec']['timeoutPolicy'].setdefault('*', {}) app_json['runSpec']['timeoutPolicy']['*'].setdefault(timeout_units, timeout) ######################## # LANGUAGE AND PATTERN # ######################## print('') print(BOLD() + 'Template Options' + ENDC()) # Prompt for programming language if not specified language = args.language if args.language is not None else get_language() interpreter = language_options[language].get_interpreter() app_json["runSpec"]["interpreter"] = interpreter # Prompt the execution pattern iff the args.pattern is provided and invalid template_dir = os.path.join(os.path.dirname(dxpy.__file__), 'templating', 'templates', language_options[language].get_path()) if not os.path.isdir(os.path.join(template_dir, args.template)): print(fill('The execution pattern "' + args.template + '" is not available for your programming language.')) pattern = get_pattern(template_dir) else: pattern = args.template template_dir = os.path.join(template_dir, pattern) with open(os.path.join(template_dir, 'dxapp.json'), 'r') as template_app_json_file: file_text = fill_in_name_and_ver(template_app_json_file.read(), name, version) template_app_json = json.loads(file_text) for key in template_app_json['runSpec']: app_json['runSpec'][key] = template_app_json['runSpec'][key] if (language == args.language) and (pattern == args.template): print('All template options are supplied in the arguments.') ########################## # APP ACCESS PERMISSIONS # ########################## print('') print(BOLD('Access Permissions')) print(fill('''If you request these extra permissions for your app, users will see this fact when launching your app, and certain other restrictions will apply. For more information, see ''' + BOLD('https://wiki.dnanexus.com/App-Permissions') + '.')) print('') print(fill(UNDERLINE('Access to the Internet') + ' (other than accessing the DNAnexus API).')) if prompt_for_yn("Will this app need access to the Internet?", default=False): app_json.setdefault('access', {}) app_json['access']['network'] = ['*'] print(fill('App has full access to the Internet. To narrow access to specific sites, edit the ' + UNDERLINE('access.network') + ' field of dxapp.json once we generate the app.')) print('') print(fill(UNDERLINE('Direct access to the parent project') + '''. This is not needed if your app specifies outputs, which will be copied into the project after it's done running.''')) if prompt_for_yn("Will this app need access to the parent project?", default=False): app_json.setdefault('access', {}) app_json['access']['project'] = 'CONTRIBUTE' print(fill('App has CONTRIBUTE access to the parent project. To change the access level or request access to ' + 'other projects, edit the ' + UNDERLINE('access.project') + ' and ' + UNDERLINE('access.allProjects') + ' fields of dxapp.json once we generate the app.')) ####################### # SYSTEM REQUIREMENTS # ####################### print('') print(BOLD('System Requirements')) print('') print(BOLD('Common AWS instance types:')) print(format_table(InstanceTypesCompleter.aws_preferred_instance_types.values(), column_names=list(InstanceTypesCompleter.instance_types.values())[0]._fields)) print(BOLD('Common Azure instance types:')) print(format_table(InstanceTypesCompleter.azure_preferred_instance_types.values(), column_names=list(InstanceTypesCompleter.instance_types.values())[0]._fields)) print(fill(BOLD('Default instance type:') + ' The instance type you select here will apply to all entry points in ' + 'your app unless you override it. See ' + BOLD('https://wiki.dnanexus.com/API-Specification-v1.0.0/Instance-Types') + ' for more information.')) use_completer(InstanceTypesCompleter()) instance_type = prompt_for_var('Choose an instance type for your app', default=InstanceTypesCompleter.default_instance_type.Name, choices=list(InstanceTypesCompleter.instance_types)) target_region = DEFAULT_REGION_AWS if instance_type in InstanceTypesCompleter.azure_preferred_instance_types.keys(): target_region = DEFAULT_REGION_AZURE app_json['regionalOptions'] = OrderedDict({}) app_json['regionalOptions'][target_region] = OrderedDict({}) app_json['regionalOptions'][target_region].setdefault('systemRequirements', {}) app_json['regionalOptions'][target_region]['systemRequirements'].setdefault('*', {}) app_json['regionalOptions'][target_region]['systemRequirements']['*']['instanceType'] = instance_type ###################### # HARDCODED DEFAULTS # ###################### app_json['runSpec']['distribution'] = 'Ubuntu' app_json['runSpec']['release'] = '16.04' ################# # WRITING FILES # ################# print('') print(BOLD() + '*** Generating ' + DNANEXUS_LOGO() + BOLD() + ' App Template... ***' + ENDC()) with open(os.path.join(name, 'dxapp.json'), 'w') as prog_file: prog_file.write(clean(json.dumps(app_json, indent=2)) + '\n') manifest.append(os.path.join(name, 'dxapp.json')) print('') print(fill('''Your app specification has been written to the dxapp.json file. You can specify more app options by editing this file directly (see https://wiki.dnanexus.com/Developer-Portal for complete documentation).''' + (''' Note that without an input and output specification, your app can only be built as an APPLET on the system. To publish it to the DNAnexus community, you must first specify your inputs and outputs. ''' if not ('inputSpec' in app_json and 'outputSpec' in app_json) else ""))) print('') for subdir in 'src', 'test', 'resources': try: os.mkdir(os.path.join(name, subdir)) manifest.append(os.path.join(name, subdir, '')) except: sys.stderr.write("Unable to create subdirectory %s/%s" % (name, subdir)) sys.exit(1) entry_points = ['main'] if pattern == 'parallelized': entry_points = ['main', 'process', 'postprocess'] elif pattern == 'scatter-process-gather': entry_points = ['main', 'scatter', 'map', 'process', 'postprocess'] manifest += create_files_from_templates(template_dir, app_json, language, required_file_input_names, optional_file_input_names, required_file_array_input_names, optional_file_array_input_names, file_output_names, pattern, description='<!-- Insert a description of your app here -->', entry_points=entry_points) print("Created files:") for filename in sorted(manifest): print("\t", filename) print("\n" + fill('''App directory created! See https://wiki.dnanexus.com/Developer-Portal for tutorials on how to modify these files, or run "dx build {n}" or "dx build --create-app {n}" while logged in with dx.'''.format(n=name)) + "\n") print(fill('''Running the DNAnexus build utility will create an executable on the DNAnexus platform. Any files found in the ''' + BOLD() + 'resources' + ENDC() + ''' directory will be uploaded so that they will be present in the root directory when the executable is run.'''))
[ "def", "main", "(", "*", "*", "kwargs", ")", ":", "manifest", "=", "[", "]", "print_intro", "(", "API_VERSION", ")", "if", "args", ".", "json_file", "is", "not", "None", ":", "with", "open", "(", "args", ".", "json_file", ",", "'r'", ")", "as", "json_file", ":", "app_json", "=", "json", ".", "loads", "(", "json_file", ".", "read", "(", ")", ")", "# Re-confirm the name", "name", "=", "get_name", "(", "default", "=", "args", ".", "name", "or", "app_json", ".", "get", "(", "'name'", ")", ")", "app_json", "[", "'name'", "]", "=", "name", "version", "=", "get_version", "(", "default", "=", "app_json", ".", "get", "(", "'version'", ")", ")", "app_json", "[", "'version'", "]", "=", "version", "try", ":", "os", ".", "mkdir", "(", "app_json", "[", "'name'", "]", ")", "except", ":", "sys", ".", "stderr", ".", "write", "(", "fill", "(", "'''Unable to create a directory for %s, please check that it is a valid app name and the working directory exists and is writable.'''", "%", "app_json", "[", "'name'", "]", ")", "+", "'\\n'", ")", "sys", ".", "exit", "(", "1", ")", "else", ":", "##################", "# BASIC METADATA #", "##################", "name", "=", "get_name", "(", "default", "=", "args", ".", "name", ")", "try", ":", "os", ".", "mkdir", "(", "name", ")", "except", ":", "sys", ".", "stderr", ".", "write", "(", "fill", "(", "'''Unable to create a directory for %s, please check that it is a valid app name and the working directory exists and is writable.'''", "%", "name", ")", "+", "'\\n'", ")", "sys", ".", "exit", "(", "1", ")", "title", ",", "summary", "=", "get_metadata", "(", "API_VERSION", ")", "version", "=", "get_version", "(", ")", "app_json", "=", "OrderedDict", "(", ")", "app_json", "[", "\"name\"", "]", "=", "name", "app_json", "[", "\"title\"", "]", "=", "title", "or", "name", "app_json", "[", "'summary'", "]", "=", "summary", "or", "name", "app_json", "[", "\"dxapi\"", "]", "=", "API_VERSION", "app_json", "[", "\"version\"", "]", "=", "version", "############", "# IO SPECS #", "############", "class_completer", "=", "Completer", "(", "[", "'int'", ",", "'float'", ",", "'string'", ",", "'boolean'", ",", "'hash'", ",", "'array:int'", ",", "'array:float'", ",", "'array:string'", ",", "'array:boolean'", ",", "'record'", ",", "'file'", ",", "'applet'", ",", "'array:record'", ",", "'array:file'", ",", "'array:applet'", "]", ")", "bool_completer", "=", "Completer", "(", "[", "'true'", ",", "'false'", "]", ")", "print", "(", "''", ")", "print", "(", "BOLD", "(", ")", "+", "'Input Specification'", "+", "ENDC", "(", ")", ")", "print", "(", "''", ")", "input_spec", "=", "True", "input_names", "=", "[", "]", "printed_classes", "=", "False", "if", "input_spec", ":", "app_json", "[", "'inputSpec'", "]", "=", "[", "]", "print", "(", "fill", "(", "'You will now be prompted for each input parameter to your app. Each parameter should have a unique name that uses only the underscore \"_\" and alphanumeric characters, and does not start with a number.'", ")", ")", "while", "True", ":", "print", "(", "''", ")", "ordinal", "=", "get_ordinal_str", "(", "len", "(", "app_json", "[", "'inputSpec'", "]", ")", "+", "1", ")", "input_name", "=", "prompt_for_var", "(", "ordinal", "+", "' input name (<ENTER> to finish)'", ",", "allow_empty", "=", "True", ")", "if", "input_name", "==", "''", ":", "break", "if", "input_name", "in", "input_names", ":", "print", "(", "fill", "(", "'Error: Cannot use the same input parameter name twice. Please choose again.'", ")", ")", "continue", "if", "not", "IO_NAME_PATTERN", ".", "match", "(", "input_name", ")", ":", "print", "(", "fill", "(", "'Error: Parameter names may use only underscore \"_\", ASCII letters, and digits; and may not start with a digit. Please choose again.'", ")", ")", "continue", "input_names", ".", "append", "(", "input_name", ")", "input_label", "=", "prompt_for_var", "(", "'Label (optional human-readable name)'", ",", "''", ")", "use_completer", "(", "class_completer", ")", "if", "not", "printed_classes", ":", "print", "(", "'Your input parameter must be of one of the following classes:'", ")", "print", "(", "'''applet array:file array:record file int\narray:applet array:float array:string float record\narray:boolean array:int boolean hash string\n'''", ")", "printed_classes", "=", "True", "while", "True", ":", "input_class", "=", "prompt_for_var", "(", "'Choose a class (<TAB> twice for choices)'", ")", "if", "input_class", "in", "class_completer", ".", "choices", ":", "break", "else", ":", "print", "(", "fill", "(", "'Not a recognized class; please choose again.'", ")", ")", "use_completer", "(", ")", "optional", "=", "prompt_for_yn", "(", "'This is an optional parameter'", ")", "default_val", "=", "None", "if", "optional", "and", "input_class", "in", "[", "'int'", ",", "'float'", ",", "'string'", ",", "'boolean'", "]", ":", "default_val", "=", "prompt_for_yn", "(", "'A default value should be provided'", ")", "if", "default_val", ":", "while", "True", ":", "if", "input_class", "==", "'boolean'", ":", "use_completer", "(", "bool_completer", ")", "default_val", "=", "prompt_for_var", "(", "' Default value'", ",", "choices", "=", "[", "'true'", ",", "'false'", "]", ")", "use_completer", "(", ")", "elif", "input_class", "==", "'string'", ":", "default_val", "=", "prompt_for_var", "(", "' Default value'", ",", "allow_empty", "=", "True", ")", "else", ":", "default_val", "=", "prompt_for_var", "(", "' Default value'", ")", "try", ":", "if", "input_class", "==", "'boolean'", ":", "default_val", "=", "(", "default_val", "==", "'true'", ")", "elif", "input_class", "==", "'int'", ":", "default_val", "=", "int", "(", "default_val", ")", "elif", "input_class", "==", "'float'", ":", "default_val", "=", "float", "(", "default_val", ")", "break", "except", ":", "print", "(", "'Not a valid default value for the given class '", "+", "input_class", ")", "else", ":", "default_val", "=", "None", "# Fill in the input parameter's JSON", "parameter_json", "=", "OrderedDict", "(", ")", "parameter_json", "[", "\"name\"", "]", "=", "input_name", "if", "input_label", "!=", "''", ":", "parameter_json", "[", "'label'", "]", "=", "input_label", "parameter_json", "[", "\"class\"", "]", "=", "input_class", "parameter_json", "[", "\"optional\"", "]", "=", "optional", "if", "default_val", "is", "not", "None", ":", "parameter_json", "[", "'default'", "]", "=", "default_val", "# Fill in patterns and blank help string", "if", "input_class", "==", "'file'", "or", "input_class", "==", "'array:file'", ":", "parameter_json", "[", "\"patterns\"", "]", "=", "[", "\"*\"", "]", "parameter_json", "[", "\"help\"", "]", "=", "\"\"", "app_json", "[", "'inputSpec'", "]", ".", "append", "(", "parameter_json", ")", "print", "(", "''", ")", "print", "(", "BOLD", "(", ")", "+", "'Output Specification'", "+", "ENDC", "(", ")", ")", "print", "(", "''", ")", "output_spec", "=", "True", "output_names", "=", "[", "]", "if", "output_spec", ":", "app_json", "[", "'outputSpec'", "]", "=", "[", "]", "print", "(", "fill", "(", "'You will now be prompted for each output parameter of your app. Each parameter should have a unique name that uses only the underscore \"_\" and alphanumeric characters, and does not start with a number.'", ")", ")", "while", "True", ":", "print", "(", "''", ")", "ordinal", "=", "get_ordinal_str", "(", "len", "(", "app_json", "[", "'outputSpec'", "]", ")", "+", "1", ")", "output_name", "=", "prompt_for_var", "(", "ordinal", "+", "' output name (<ENTER> to finish)'", ",", "allow_empty", "=", "True", ")", "if", "output_name", "==", "''", ":", "break", "if", "output_name", "in", "output_names", ":", "print", "(", "fill", "(", "'Error: Cannot use the same output parameter name twice. Please choose again.'", ")", ")", "continue", "if", "not", "IO_NAME_PATTERN", ".", "match", "(", "output_name", ")", ":", "print", "(", "fill", "(", "'Error: Parameter names may use only underscore \"_\", ASCII letters, and digits; and may not start with a digit. Please choose again.'", ")", ")", "continue", "output_names", ".", "append", "(", "output_name", ")", "output_label", "=", "prompt_for_var", "(", "'Label (optional human-readable name)'", ",", "''", ")", "use_completer", "(", "class_completer", ")", "if", "not", "printed_classes", ":", "print", "(", "'Your output parameter must be of one of the following classes:'", ")", "print", "(", "'''applet array:file array:record file int\narray:applet array:float array:string float record\narray:boolean array:int boolean hash string'''", ")", "printed_classes", "=", "True", "while", "True", ":", "output_class", "=", "prompt_for_var", "(", "'Choose a class (<TAB> twice for choices)'", ")", "if", "output_class", "in", "class_completer", ".", "choices", ":", "break", "else", ":", "print", "(", "fill", "(", "'Not a recognized class; please choose again.'", ")", ")", "use_completer", "(", ")", "# Fill in the output parameter's JSON", "parameter_json", "=", "OrderedDict", "(", ")", "parameter_json", "[", "\"name\"", "]", "=", "output_name", "if", "output_label", "!=", "''", ":", "parameter_json", "[", "'label'", "]", "=", "output_label", "parameter_json", "[", "\"class\"", "]", "=", "output_class", "# Fill in patterns and blank help string", "if", "output_class", "==", "'file'", "or", "output_class", "==", "'array:file'", ":", "parameter_json", "[", "\"patterns\"", "]", "=", "[", "\"*\"", "]", "parameter_json", "[", "\"help\"", "]", "=", "\"\"", "app_json", "[", "'outputSpec'", "]", ".", "append", "(", "parameter_json", ")", "required_file_input_names", "=", "[", "]", "optional_file_input_names", "=", "[", "]", "required_file_array_input_names", "=", "[", "]", "optional_file_array_input_names", "=", "[", "]", "file_output_names", "=", "[", "]", "if", "'inputSpec'", "in", "app_json", ":", "for", "param", "in", "app_json", "[", "'inputSpec'", "]", ":", "may_be_missing", "=", "param", "[", "'optional'", "]", "and", "\"default\"", "not", "in", "param", "if", "param", "[", "'class'", "]", "==", "'file'", ":", "param_list", "=", "optional_file_input_names", "if", "may_be_missing", "else", "required_file_input_names", "elif", "param", "[", "'class'", "]", "==", "'array:file'", ":", "param_list", "=", "optional_file_array_input_names", "if", "may_be_missing", "else", "required_file_array_input_names", "else", ":", "param_list", "=", "None", "if", "param_list", "is", "not", "None", ":", "param_list", ".", "append", "(", "param", "[", "'name'", "]", ")", "if", "'outputSpec'", "in", "app_json", ":", "file_output_names", "=", "[", "param", "[", "'name'", "]", "for", "param", "in", "app_json", "[", "'outputSpec'", "]", "if", "param", "[", "'class'", "]", "==", "'file'", "]", "##################", "# TIMEOUT POLICY #", "##################", "print", "(", "''", ")", "print", "(", "BOLD", "(", ")", "+", "'Timeout Policy'", "+", "ENDC", "(", ")", ")", "app_json", "[", "\"runSpec\"", "]", "=", "OrderedDict", "(", "{", "}", ")", "app_json", "[", "'runSpec'", "]", ".", "setdefault", "(", "'timeoutPolicy'", ",", "{", "}", ")", "timeout", ",", "timeout_units", "=", "get_timeout", "(", "default", "=", "app_json", "[", "'runSpec'", "]", "[", "'timeoutPolicy'", "]", ".", "get", "(", "'*'", ")", ")", "app_json", "[", "'runSpec'", "]", "[", "'timeoutPolicy'", "]", ".", "setdefault", "(", "'*'", ",", "{", "}", ")", "app_json", "[", "'runSpec'", "]", "[", "'timeoutPolicy'", "]", "[", "'*'", "]", ".", "setdefault", "(", "timeout_units", ",", "timeout", ")", "########################", "# LANGUAGE AND PATTERN #", "########################", "print", "(", "''", ")", "print", "(", "BOLD", "(", ")", "+", "'Template Options'", "+", "ENDC", "(", ")", ")", "# Prompt for programming language if not specified", "language", "=", "args", ".", "language", "if", "args", ".", "language", "is", "not", "None", "else", "get_language", "(", ")", "interpreter", "=", "language_options", "[", "language", "]", ".", "get_interpreter", "(", ")", "app_json", "[", "\"runSpec\"", "]", "[", "\"interpreter\"", "]", "=", "interpreter", "# Prompt the execution pattern iff the args.pattern is provided and invalid", "template_dir", "=", "os", ".", "path", ".", "join", "(", "os", ".", "path", ".", "dirname", "(", "dxpy", ".", "__file__", ")", ",", "'templating'", ",", "'templates'", ",", "language_options", "[", "language", "]", ".", "get_path", "(", ")", ")", "if", "not", "os", ".", "path", ".", "isdir", "(", "os", ".", "path", ".", "join", "(", "template_dir", ",", "args", ".", "template", ")", ")", ":", "print", "(", "fill", "(", "'The execution pattern \"'", "+", "args", ".", "template", "+", "'\" is not available for your programming language.'", ")", ")", "pattern", "=", "get_pattern", "(", "template_dir", ")", "else", ":", "pattern", "=", "args", ".", "template", "template_dir", "=", "os", ".", "path", ".", "join", "(", "template_dir", ",", "pattern", ")", "with", "open", "(", "os", ".", "path", ".", "join", "(", "template_dir", ",", "'dxapp.json'", ")", ",", "'r'", ")", "as", "template_app_json_file", ":", "file_text", "=", "fill_in_name_and_ver", "(", "template_app_json_file", ".", "read", "(", ")", ",", "name", ",", "version", ")", "template_app_json", "=", "json", ".", "loads", "(", "file_text", ")", "for", "key", "in", "template_app_json", "[", "'runSpec'", "]", ":", "app_json", "[", "'runSpec'", "]", "[", "key", "]", "=", "template_app_json", "[", "'runSpec'", "]", "[", "key", "]", "if", "(", "language", "==", "args", ".", "language", ")", "and", "(", "pattern", "==", "args", ".", "template", ")", ":", "print", "(", "'All template options are supplied in the arguments.'", ")", "##########################", "# APP ACCESS PERMISSIONS #", "##########################", "print", "(", "''", ")", "print", "(", "BOLD", "(", "'Access Permissions'", ")", ")", "print", "(", "fill", "(", "'''If you request these extra permissions for your app, users will see this fact when launching your app, and certain other restrictions will apply. For more information, see '''", "+", "BOLD", "(", "'https://wiki.dnanexus.com/App-Permissions'", ")", "+", "'.'", ")", ")", "print", "(", "''", ")", "print", "(", "fill", "(", "UNDERLINE", "(", "'Access to the Internet'", ")", "+", "' (other than accessing the DNAnexus API).'", ")", ")", "if", "prompt_for_yn", "(", "\"Will this app need access to the Internet?\"", ",", "default", "=", "False", ")", ":", "app_json", ".", "setdefault", "(", "'access'", ",", "{", "}", ")", "app_json", "[", "'access'", "]", "[", "'network'", "]", "=", "[", "'*'", "]", "print", "(", "fill", "(", "'App has full access to the Internet. To narrow access to specific sites, edit the '", "+", "UNDERLINE", "(", "'access.network'", ")", "+", "' field of dxapp.json once we generate the app.'", ")", ")", "print", "(", "''", ")", "print", "(", "fill", "(", "UNDERLINE", "(", "'Direct access to the parent project'", ")", "+", "'''. This is not needed if your app specifies outputs,\n which will be copied into the project after it's done running.'''", ")", ")", "if", "prompt_for_yn", "(", "\"Will this app need access to the parent project?\"", ",", "default", "=", "False", ")", ":", "app_json", ".", "setdefault", "(", "'access'", ",", "{", "}", ")", "app_json", "[", "'access'", "]", "[", "'project'", "]", "=", "'CONTRIBUTE'", "print", "(", "fill", "(", "'App has CONTRIBUTE access to the parent project. To change the access level or request access to '", "+", "'other projects, edit the '", "+", "UNDERLINE", "(", "'access.project'", ")", "+", "' and '", "+", "UNDERLINE", "(", "'access.allProjects'", ")", "+", "' fields of dxapp.json once we generate the app.'", ")", ")", "#######################", "# SYSTEM REQUIREMENTS #", "#######################", "print", "(", "''", ")", "print", "(", "BOLD", "(", "'System Requirements'", ")", ")", "print", "(", "''", ")", "print", "(", "BOLD", "(", "'Common AWS instance types:'", ")", ")", "print", "(", "format_table", "(", "InstanceTypesCompleter", ".", "aws_preferred_instance_types", ".", "values", "(", ")", ",", "column_names", "=", "list", "(", "InstanceTypesCompleter", ".", "instance_types", ".", "values", "(", ")", ")", "[", "0", "]", ".", "_fields", ")", ")", "print", "(", "BOLD", "(", "'Common Azure instance types:'", ")", ")", "print", "(", "format_table", "(", "InstanceTypesCompleter", ".", "azure_preferred_instance_types", ".", "values", "(", ")", ",", "column_names", "=", "list", "(", "InstanceTypesCompleter", ".", "instance_types", ".", "values", "(", ")", ")", "[", "0", "]", ".", "_fields", ")", ")", "print", "(", "fill", "(", "BOLD", "(", "'Default instance type:'", ")", "+", "' The instance type you select here will apply to all entry points in '", "+", "'your app unless you override it. See '", "+", "BOLD", "(", "'https://wiki.dnanexus.com/API-Specification-v1.0.0/Instance-Types'", ")", "+", "' for more information.'", ")", ")", "use_completer", "(", "InstanceTypesCompleter", "(", ")", ")", "instance_type", "=", "prompt_for_var", "(", "'Choose an instance type for your app'", ",", "default", "=", "InstanceTypesCompleter", ".", "default_instance_type", ".", "Name", ",", "choices", "=", "list", "(", "InstanceTypesCompleter", ".", "instance_types", ")", ")", "target_region", "=", "DEFAULT_REGION_AWS", "if", "instance_type", "in", "InstanceTypesCompleter", ".", "azure_preferred_instance_types", ".", "keys", "(", ")", ":", "target_region", "=", "DEFAULT_REGION_AZURE", "app_json", "[", "'regionalOptions'", "]", "=", "OrderedDict", "(", "{", "}", ")", "app_json", "[", "'regionalOptions'", "]", "[", "target_region", "]", "=", "OrderedDict", "(", "{", "}", ")", "app_json", "[", "'regionalOptions'", "]", "[", "target_region", "]", ".", "setdefault", "(", "'systemRequirements'", ",", "{", "}", ")", "app_json", "[", "'regionalOptions'", "]", "[", "target_region", "]", "[", "'systemRequirements'", "]", ".", "setdefault", "(", "'*'", ",", "{", "}", ")", "app_json", "[", "'regionalOptions'", "]", "[", "target_region", "]", "[", "'systemRequirements'", "]", "[", "'*'", "]", "[", "'instanceType'", "]", "=", "instance_type", "######################", "# HARDCODED DEFAULTS #", "######################", "app_json", "[", "'runSpec'", "]", "[", "'distribution'", "]", "=", "'Ubuntu'", "app_json", "[", "'runSpec'", "]", "[", "'release'", "]", "=", "'16.04'", "#################", "# WRITING FILES #", "#################", "print", "(", "''", ")", "print", "(", "BOLD", "(", ")", "+", "'*** Generating '", "+", "DNANEXUS_LOGO", "(", ")", "+", "BOLD", "(", ")", "+", "' App Template... ***'", "+", "ENDC", "(", ")", ")", "with", "open", "(", "os", ".", "path", ".", "join", "(", "name", ",", "'dxapp.json'", ")", ",", "'w'", ")", "as", "prog_file", ":", "prog_file", ".", "write", "(", "clean", "(", "json", ".", "dumps", "(", "app_json", ",", "indent", "=", "2", ")", ")", "+", "'\\n'", ")", "manifest", ".", "append", "(", "os", ".", "path", ".", "join", "(", "name", ",", "'dxapp.json'", ")", ")", "print", "(", "''", ")", "print", "(", "fill", "(", "'''Your app specification has been written to the\ndxapp.json file. You can specify more app options by editing this file\ndirectly (see https://wiki.dnanexus.com/Developer-Portal for complete\ndocumentation).'''", "+", "(", "''' Note that without an input and output specification,\nyour app can only be built as an APPLET on the system. To publish it to\nthe DNAnexus community, you must first specify your inputs and outputs.\n'''", "if", "not", "(", "'inputSpec'", "in", "app_json", "and", "'outputSpec'", "in", "app_json", ")", "else", "\"\"", ")", ")", ")", "print", "(", "''", ")", "for", "subdir", "in", "'src'", ",", "'test'", ",", "'resources'", ":", "try", ":", "os", ".", "mkdir", "(", "os", ".", "path", ".", "join", "(", "name", ",", "subdir", ")", ")", "manifest", ".", "append", "(", "os", ".", "path", ".", "join", "(", "name", ",", "subdir", ",", "''", ")", ")", "except", ":", "sys", ".", "stderr", ".", "write", "(", "\"Unable to create subdirectory %s/%s\"", "%", "(", "name", ",", "subdir", ")", ")", "sys", ".", "exit", "(", "1", ")", "entry_points", "=", "[", "'main'", "]", "if", "pattern", "==", "'parallelized'", ":", "entry_points", "=", "[", "'main'", ",", "'process'", ",", "'postprocess'", "]", "elif", "pattern", "==", "'scatter-process-gather'", ":", "entry_points", "=", "[", "'main'", ",", "'scatter'", ",", "'map'", ",", "'process'", ",", "'postprocess'", "]", "manifest", "+=", "create_files_from_templates", "(", "template_dir", ",", "app_json", ",", "language", ",", "required_file_input_names", ",", "optional_file_input_names", ",", "required_file_array_input_names", ",", "optional_file_array_input_names", ",", "file_output_names", ",", "pattern", ",", "description", "=", "'<!-- Insert a description of your app here -->'", ",", "entry_points", "=", "entry_points", ")", "print", "(", "\"Created files:\"", ")", "for", "filename", "in", "sorted", "(", "manifest", ")", ":", "print", "(", "\"\\t\"", ",", "filename", ")", "print", "(", "\"\\n\"", "+", "fill", "(", "'''App directory created! See\nhttps://wiki.dnanexus.com/Developer-Portal for tutorials on how to modify these files,\nor run \"dx build {n}\" or \"dx build --create-app {n}\" while logged in with dx.'''", ".", "format", "(", "n", "=", "name", ")", ")", "+", "\"\\n\"", ")", "print", "(", "fill", "(", "'''Running the DNAnexus build utility will create an executable on the DNAnexus platform. Any files found in the '''", "+", "BOLD", "(", ")", "+", "'resources'", "+", "ENDC", "(", ")", "+", "''' directory will be uploaded so that they will be present in the root directory when the executable is run.'''", ")", ")" ]
Entry point for dx-app-wizard. Note that this function is not meant to be used as a subroutine in your program.
[ "Entry", "point", "for", "dx", "-", "app", "-", "wizard", ".", "Note", "that", "this", "function", "is", "not", "meant", "to", "be", "used", "as", "a", "subroutine", "in", "your", "program", "." ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/scripts/dx_app_wizard.py#L60-L451
train
Entry point for dx - app - wizard.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6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lqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(48) + chr(11063 - 10952) + chr(121 - 68) + chr(48), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b110010 + 0o75) + chr(930 - 880) + '\x34' + chr(0b10100 + 0o35), 0b1000), nzTpIcepk0o8(chr(642 - 594) + '\x6f' + chr(0b11011 + 0o30) + chr(50) + chr(0b110001), 0o10), nzTpIcepk0o8(chr(0b11100 + 0o24) + chr(0b1100111 + 0o10) + chr(0b100 + 0o57) + chr(55) + chr(0b110010), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(49) + chr(2214 - 2159) + chr(49), 30178 - 30170), nzTpIcepk0o8(chr(0b10101 + 0o33) + '\x6f' + chr(0b11110 + 0o24) + chr(1174 - 1123) + '\x32', 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(188 - 139) + chr(1383 - 1332) + chr(0b110111), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110001) + chr(0b110010) + '\x36', 43424 - 43416), nzTpIcepk0o8(chr(1431 - 1383) + '\157' + chr(0b100100 + 0o23), 13139 - 13131), nzTpIcepk0o8(chr(48) + chr(0b10 + 0o155) + chr(0b10111 + 0o34) + chr(0b110111) + '\064', 0b1000), nzTpIcepk0o8(chr(2168 - 2120) + chr(0b111100 + 0o63) + chr(51) + chr(0b10 + 0o64) + chr(54), 0o10), nzTpIcepk0o8(chr(0b101101 + 0o3) + '\157' + '\065' + '\065', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110011) + chr(0b10 + 0o60) + chr(739 - 691), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(1027 - 976) + chr(149 - 99) + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x31' + '\060' + chr(0b110000), 0b1000), nzTpIcepk0o8(chr(48) + chr(5170 - 5059) + chr(95 - 45) + chr(1543 - 1490), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(53) + chr(0b101011 + 0o13), 25881 - 25873), nzTpIcepk0o8(chr(0b10 + 0o56) + '\157' + '\x32' + chr(0b110100) + chr(913 - 862), 0o10), nzTpIcepk0o8(chr(48) + chr(8189 - 8078) + chr(0b110010) + chr(267 - 217) + chr(2220 - 2170), 45734 - 45726), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b1001 + 0o52) + chr(54) + chr(1375 - 1320), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + '\061' + chr(55) + '\x34', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(348 - 297) + chr(0b1101 + 0o46) + '\062', 38455 - 38447), nzTpIcepk0o8('\x30' + chr(3330 - 3219) + chr(51) + chr(711 - 656) + chr(0b110111), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110011) + chr(543 - 493) + '\066', ord("\x08")), nzTpIcepk0o8(chr(0b110 + 0o52) + chr(111) + chr(0b100100 + 0o16) + chr(54), 0o10), nzTpIcepk0o8(chr(344 - 296) + '\157' + '\x36' + chr(0b110000), 25165 - 25157), nzTpIcepk0o8(chr(0b110000) + chr(0b1001011 + 0o44) + '\062' + chr(0b110000 + 0o5) + chr(0b101000 + 0o13), 0b1000), nzTpIcepk0o8(chr(48) + chr(3897 - 3786) + '\062' + '\x32' + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(487 - 439) + '\157' + '\x32' + '\066' + '\063', 0o10), nzTpIcepk0o8(chr(881 - 833) + chr(0b10101 + 0o132) + '\063' + chr(48) + chr(0b101101 + 0o12), 13049 - 13041), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110010) + '\060' + chr(0b111 + 0o60), 0b1000), nzTpIcepk0o8(chr(48) + chr(3332 - 3221) + chr(0b110000), 33301 - 33293), nzTpIcepk0o8(chr(48) + chr(111) + chr(49) + '\x36', 41836 - 41828), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b101 + 0o56) + '\060' + '\x30', ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110011) + '\066' + chr(2088 - 2036), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + '\063' + chr(0b110111) + '\060', 0o10), nzTpIcepk0o8(chr(265 - 217) + chr(0b1101111) + '\x32' + chr(55) + chr(0b101011 + 0o13), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110001 + 0o3) + chr(0b110001), 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(0b110010) + chr(55) + '\x31', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(9718 - 9607) + chr(0b110100) + '\x32', ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + chr(7761 - 7650) + chr(0b110101) + chr(0b110000), 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x06'), chr(100) + chr(0b10010 + 0o123) + '\x63' + '\x6f' + '\x64' + chr(0b1011010 + 0o13))(chr(117) + chr(0b1010100 + 0o40) + '\146' + '\x2d' + chr(0b111000)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def BXHXH_QeD6rL(**q5n0sHDDTy90): GzPN4ExNnJkz = [] CfKGsEdVOB_n(rL16wOBGhvDZ) if roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b'B\xc8\xa1\xb8O\xa2\x1e\x18t\xa8\xb0]'), chr(0b1100100) + chr(3636 - 3535) + chr(99) + '\x6f' + '\144' + '\x65')(chr(0b1110101) + chr(0b1101101 + 0o7) + chr(0b110110 + 0o60) + chr(0b1 + 0o54) + chr(56))) is not None: with DnU3Rq9N5ala(roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b'B\xc8\xa1\xb8O\xa2\x1e\x18t\xa8\xb0]'), chr(0b1000 + 0o134) + chr(101) + chr(1550 - 1451) + chr(0b1101111) + '\x64' + '\145')(chr(2626 - 2509) + '\x74' + '\x66' + '\x2d' + chr(0b11001 + 0o37))), roI3spqORKae(ES5oEprVxulp(b'Z'), '\144' + '\x65' + chr(0b101010 + 0o71) + chr(0b1100100 + 0o13) + chr(100) + '\x65')(chr(0b1001010 + 0o53) + chr(1753 - 1637) + '\x66' + chr(45) + chr(0b111000))) as jipB68ANsTFp: X_c34vTbvwfj = LNUKEwZDIbyb.OiapAM4bM0Ea(jipB68ANsTFp.eoXknH7XUn7m()) SLVB2BPA_mIe = BJoJQqD1t_wx(default=eemPYp2vtTSr.SLVB2BPA_mIe or X_c34vTbvwfj.GUKetu4xaGsJ(roI3spqORKae(ES5oEprVxulp(b'F\xc0\xbc\x9f'), chr(3434 - 3334) + chr(2727 - 2626) + chr(8477 - 8378) + chr(6232 - 6121) + chr(100) + chr(0b110011 + 0o62))(chr(117) + chr(0b111110 + 0o66) + chr(0b1100110) + chr(363 - 318) + chr(56)))) X_c34vTbvwfj[roI3spqORKae(ES5oEprVxulp(b'F\xc0\xbc\x9f'), '\x64' + '\x65' + chr(0b1100011) + '\157' + chr(100) + '\145')(chr(0b11010 + 0o133) + chr(116) + chr(0b1011001 + 0o15) + chr(0b11110 + 0o17) + '\070')] = SLVB2BPA_mIe J4eG487sJbAu = MVbo7SZoGO01(default=X_c34vTbvwfj.GUKetu4xaGsJ(roI3spqORKae(ES5oEprVxulp(b'^\xc4\xa3\x89\x10\xf51'), '\144' + chr(0b1100100 + 0o1) + chr(0b10101 + 0o116) + chr(6961 - 6850) + '\x64' + '\145')('\165' + '\x74' + chr(0b1111 + 0o127) + chr(0b10 + 0o53) + '\070'))) X_c34vTbvwfj[roI3spqORKae(ES5oEprVxulp(b'^\xc4\xa3\x89\x10\xf51'), chr(9549 - 9449) + chr(5749 - 5648) + chr(0b101100 + 0o67) + chr(111) + chr(0b111110 + 0o46) + chr(8491 - 8390))(chr(0b1110101) + chr(11328 - 11212) + chr(973 - 871) + chr(0b101101) + chr(56))] = J4eG487sJbAu try: roI3spqORKae(aHUqKstZLeS6, roI3spqORKae(ES5oEprVxulp(b'E\xca\xb5\x93\x0b'), chr(0b100100 + 0o100) + chr(3742 - 3641) + chr(99) + chr(111) + chr(7798 - 7698) + '\145')(chr(0b1010 + 0o153) + chr(116) + chr(1163 - 1061) + chr(0b1110 + 0o37) + chr(614 - 558)))(X_c34vTbvwfj[roI3spqORKae(ES5oEprVxulp(b'F\xc0\xbc\x9f'), '\144' + chr(0b1000000 + 0o45) + chr(99) + '\x6f' + chr(0b100101 + 0o77) + '\x65')('\x75' + chr(116) + chr(0b1100110) + chr(52 - 7) + '\x38')]) except UtiWT6f6p9yZ: roI3spqORKae(bpyfpu4kTbwL.stderr, roI3spqORKae(ES5oEprVxulp(b'E\xcd\xe1\x92\x11\xea)gK\x8c\x87\x1f'), chr(100) + chr(101) + chr(0b1100011) + chr(111) + '\x64' + '\x65')(chr(117) + chr(1894 - 1778) + chr(9080 - 8978) + chr(457 - 412) + chr(0b111000)))(pPmkLCVA328e(roI3spqORKae(ES5oEprVxulp(b'}\xcf\xb0\x98\x15\xff\x7f"h\xdc\x95_\xb5\xb54p\x0e\xc2\xb2\x93\x15\xa8\x9a\xb5b_\xd9\xe8\x93\xa1\xe8r.\xe5\x87\xd4\x9eQ\xd5GI\xd2\xb4\xda\x1a\xf2:5l\xdc\x82E\xb1\xa0`|Z\x83\xfb\x84\\\xbb\xdf\xa0w\\\xc2\xf5\x93\xa6\xf7p.\xae\x95\x95\xdb\x01\xd8LL\x81\xa5\x92\x1c\xba(9u\x97\x9fC\xb7\xf4$|\\\xc6\xf1\x83\x13\xa8\x86\xf6sH\xc2\xe2\xc7\xb4\xa7a`\xa4\xd4\x91\xcd\x01\xcePA\xd5\xb0\x98\x15\xffq'), '\x64' + chr(0b1000100 + 0o41) + chr(0b1100011) + chr(1677 - 1566) + chr(0b10000 + 0o124) + chr(7430 - 7329))(chr(0b111100 + 0o71) + chr(4966 - 4850) + chr(0b1100110) + chr(45) + '\x38') % X_c34vTbvwfj[roI3spqORKae(ES5oEprVxulp(b'F\xc0\xbc\x9f'), '\x64' + chr(0b1100101) + chr(644 - 545) + '\x6f' + '\144' + chr(0b1100101))(chr(0b1110101) + chr(0b1110100) + chr(102) + chr(0b101101) + chr(2508 - 2452))]) + roI3spqORKae(ES5oEprVxulp(b'"'), '\144' + chr(3905 - 3804) + chr(6556 - 6457) + chr(391 - 280) + chr(9135 - 9035) + chr(0b100100 + 0o101))('\x75' + chr(9935 - 9819) + chr(102) + '\x2d' + chr(0b111000))) roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'r\xd4\xa3\x90\x1a\xcf\x13gt\x8f\xb7\x15'), chr(8204 - 8104) + chr(101) + chr(99) + chr(0b111110 + 0o61) + '\144' + '\145')(chr(185 - 68) + chr(0b10101 + 0o137) + chr(0b1100110) + chr(1241 - 1196) + chr(0b111000)))(nzTpIcepk0o8(chr(2115 - 2067) + chr(9265 - 9154) + chr(1819 - 1770), 0b1000)) else: SLVB2BPA_mIe = BJoJQqD1t_wx(default=eemPYp2vtTSr.SLVB2BPA_mIe) try: roI3spqORKae(aHUqKstZLeS6, roI3spqORKae(ES5oEprVxulp(b'E\xca\xb5\x93\x0b'), chr(0b1100100) + chr(0b1100101) + chr(0b1100011 + 0o0) + '\x6f' + chr(8552 - 8452) + chr(0b1001110 + 0o27))(chr(2977 - 2860) + chr(116) + '\146' + chr(1953 - 1908) + chr(56)))(SLVB2BPA_mIe) except UtiWT6f6p9yZ: roI3spqORKae(bpyfpu4kTbwL.stderr, roI3spqORKae(ES5oEprVxulp(b'E\xcd\xe1\x92\x11\xea)gK\x8c\x87\x1f'), chr(4354 - 4254) + '\145' + chr(99) + chr(0b1001 + 0o146) + chr(100) + chr(0b101 + 0o140))(chr(10298 - 10181) + '\164' + chr(0b1100001 + 0o5) + chr(1588 - 1543) + chr(1525 - 1469)))(pPmkLCVA328e(roI3spqORKae(ES5oEprVxulp(b'}\xcf\xb0\x98\x15\xff\x7f"h\xdc\x95_\xb5\xb54p\x0e\xc2\xb2\x93\x15\xa8\x9a\xb5b_\xd9\xe8\x93\xa1\xe8r.\xe5\x87\xd4\x9eQ\xd5GI\xd2\xb4\xda\x1a\xf2:5l\xdc\x82E\xb1\xa0`|Z\x83\xfb\x84\\\xbb\xdf\xa0w\\\xc2\xf5\x93\xa6\xf7p.\xae\x95\x95\xdb\x01\xd8LL\x81\xa5\x92\x1c\xba(9u\x97\x9fC\xb7\xf4$|\\\xc6\xf1\x83\x13\xa8\x86\xf6sH\xc2\xe2\xc7\xb4\xa7a`\xa4\xd4\x91\xcd\x01\xcePA\xd5\xb0\x98\x15\xffq'), chr(8806 - 8706) + '\x65' + chr(0b1011110 + 0o5) + '\157' + chr(3245 - 3145) + chr(0b1100101))(chr(0b1110101) + '\164' + chr(0b1100110) + chr(575 - 530) + chr(56)) % SLVB2BPA_mIe) + roI3spqORKae(ES5oEprVxulp(b'"'), chr(0b101 + 0o137) + chr(0b1100101) + chr(99) + chr(1964 - 1853) + chr(0b1100100) + chr(0b1010101 + 0o20))(chr(0b1110101) + chr(116) + chr(0b101110 + 0o70) + chr(932 - 887) + chr(1348 - 1292))) roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'r\xd4\xa3\x90\x1a\xcf\x13gt\x8f\xb7\x15'), chr(7851 - 7751) + chr(101) + chr(0b1100011) + '\x6f' + chr(0b1100100) + chr(0b1100101))('\165' + chr(11862 - 11746) + '\x66' + '\x2d' + chr(1797 - 1741)))(nzTpIcepk0o8(chr(750 - 702) + chr(0b1101111) + chr(1504 - 1455), 8)) (OO0tRW9aj_xh, QEXp0HPqz7Se) = o4w5pEudLyGN(rL16wOBGhvDZ) J4eG487sJbAu = MVbo7SZoGO01() X_c34vTbvwfj = Ov4KLivfl4p6() X_c34vTbvwfj[roI3spqORKae(ES5oEprVxulp(b'F\xc0\xbc\x9f'), chr(6977 - 6877) + chr(0b110111 + 0o56) + chr(0b1100011) + chr(2412 - 2301) + chr(0b1100100) + chr(5855 - 5754))(chr(8652 - 8535) + chr(116) + chr(102) + chr(45) + chr(0b101101 + 0o13))] = SLVB2BPA_mIe X_c34vTbvwfj[roI3spqORKae(ES5oEprVxulp(b'\\\xc8\xa5\x96\x1c'), chr(100) + chr(0b1011101 + 0o10) + '\143' + '\x6f' + '\144' + '\x65')(chr(3790 - 3673) + chr(5802 - 5686) + chr(7420 - 7318) + '\x2d' + chr(56))] = OO0tRW9aj_xh or SLVB2BPA_mIe X_c34vTbvwfj[roI3spqORKae(ES5oEprVxulp(b'[\xd4\xbc\x97\x18\xe8&'), '\x64' + chr(7181 - 7080) + chr(0b1100010 + 0o1) + chr(0b1010011 + 0o34) + chr(8344 - 8244) + '\x65')(chr(0b1110101) + chr(0b1100100 + 0o20) + chr(9274 - 9172) + chr(320 - 275) + '\070')] = QEXp0HPqz7Se or SLVB2BPA_mIe X_c34vTbvwfj[roI3spqORKae(ES5oEprVxulp(b'L\xd9\xb0\x8a\x10'), '\x64' + '\145' + '\x63' + chr(0b1100101 + 0o12) + '\144' + '\145')(chr(0b1110101) + chr(0b1110010 + 0o2) + '\146' + chr(1193 - 1148) + '\x38')] = rL16wOBGhvDZ X_c34vTbvwfj[roI3spqORKae(ES5oEprVxulp(b'^\xc4\xa3\x89\x10\xf51'), '\x64' + chr(0b1100101) + chr(0b10111 + 0o114) + '\x6f' + chr(7243 - 7143) + chr(0b1100011 + 0o2))(chr(0b1110101) + chr(0b1110100) + chr(0b110010 + 0o64) + chr(950 - 905) + '\070')] = J4eG487sJbAu ULWyi2c1KwNh = VTO5B1Eqldr0([roI3spqORKae(ES5oEprVxulp(b'A\xcf\xa5'), '\x64' + chr(101) + chr(0b1100011) + chr(0b1101111) + '\144' + chr(0b1100101))(chr(0b1101001 + 0o14) + '\164' + '\146' + '\x2d' + chr(56)), roI3spqORKae(ES5oEprVxulp(b'N\xcd\xbe\x9b\r'), '\x64' + '\145' + '\x63' + chr(111) + chr(100) + '\145')(chr(7305 - 7188) + '\x74' + chr(0b1100110) + chr(175 - 130) + chr(56)), roI3spqORKae(ES5oEprVxulp(b'[\xd5\xa3\x93\x17\xfd'), '\144' + chr(0b1001111 + 0o26) + chr(0b110 + 0o135) + chr(111) + chr(0b1100100) + chr(0b1100101))(chr(0b1001100 + 0o51) + chr(0b1010000 + 0o44) + chr(102) + chr(0b100010 + 0o13) + chr(56)), roI3spqORKae(ES5oEprVxulp(b'J\xce\xbe\x96\x1c\xfb1'), chr(0b1100100) + '\145' + chr(99) + '\157' + chr(0b1010000 + 0o24) + '\145')(chr(0b1101001 + 0o14) + '\x74' + chr(0b1010001 + 0o25) + '\055' + chr(0b111000)), roI3spqORKae(ES5oEprVxulp(b'@\xc0\xa2\x92'), chr(0b101001 + 0o73) + chr(10149 - 10048) + chr(0b111011 + 0o50) + chr(111) + chr(0b11111 + 0o105) + chr(0b1011000 + 0o15))(chr(0b1110101) + chr(6307 - 6191) + chr(102) + chr(1002 - 957) + chr(56)), roI3spqORKae(ES5oEprVxulp(b'I\xd3\xa3\x9b\x00\xa068s'), chr(0b10001 + 0o123) + chr(101) + chr(0b11 + 0o140) + chr(0b11001 + 0o126) + chr(7421 - 7321) + '\145')(chr(13687 - 13570) + '\164' + '\146' + '\055' + chr(56)), roI3spqORKae(ES5oEprVxulp(b'I\xd3\xa3\x9b\x00\xa09:h\x9d\x82'), chr(4436 - 4336) + chr(101) + chr(99) + chr(0b1101111) + '\144' + chr(0b110110 + 0o57))('\165' + chr(0b10000 + 0o144) + '\x66' + chr(45) + chr(56)), roI3spqORKae(ES5oEprVxulp(b'I\xd3\xa3\x9b\x00\xa0,"u\x95\x98J'), '\x64' + chr(101) + '\x63' + chr(0b1001 + 0o146) + chr(100) + chr(1873 - 1772))(chr(1005 - 888) + chr(116) + '\146' + chr(973 - 928) + '\070'), roI3spqORKae(ES5oEprVxulp(b'I\xd3\xa3\x9b\x00\xa0=9h\x90\x93L\xbe'), '\x64' + chr(0b100110 + 0o77) + '\143' + chr(0b1100101 + 0o12) + '\144' + chr(5214 - 5113))(chr(2205 - 2088) + chr(0b1110100) + chr(0b100001 + 0o105) + '\x2d' + '\x38'), roI3spqORKae(ES5oEprVxulp(b'Z\xc4\xb2\x95\x0b\xfe'), chr(0b101010 + 0o72) + chr(0b1100100 + 0o1) + chr(0b1100011) + '\157' + '\144' + chr(101))(chr(0b1110101) + chr(10468 - 10352) + chr(0b1100110) + chr(1100 - 1055) + chr(1796 - 1740)), roI3spqORKae(ES5oEprVxulp(b'N\xc8\xbd\x9f'), '\x64' + chr(0b111011 + 0o52) + chr(99) + '\157' + '\144' + chr(0b1100101))('\165' + chr(0b1110100) + chr(0b1100110) + chr(45) + chr(0b10011 + 0o45)), roI3spqORKae(ES5oEprVxulp(b'I\xd1\xa1\x96\x1c\xee'), '\x64' + chr(101) + chr(7272 - 7173) + '\x6f' + chr(100) + '\x65')(chr(12879 - 12762) + chr(116) + chr(5934 - 5832) + chr(326 - 281) + '\070'), roI3spqORKae(ES5oEprVxulp(b'I\xd3\xa3\x9b\x00\xa0-3d\x93\x84I'), chr(7643 - 7543) + chr(101) + '\143' + chr(0b1101111) + '\144' + chr(4269 - 4168))(chr(117) + chr(11424 - 11308) + chr(0b10000 + 0o126) + chr(0b101101) + chr(0b111000)), roI3spqORKae(ES5oEprVxulp(b'I\xd3\xa3\x9b\x00\xa09?k\x99'), chr(7215 - 7115) + '\x65' + '\x63' + chr(111) + chr(100) + chr(6501 - 6400))(chr(0b1110101) + chr(0b1110100) + chr(0b110001 + 0o65) + '\055' + chr(0b101011 + 0o15)), roI3spqORKae(ES5oEprVxulp(b'I\xd3\xa3\x9b\x00\xa0>&w\x90\x93Y'), '\x64' + chr(101) + '\x63' + chr(0b1101111) + chr(0b1100100) + '\145')('\x75' + chr(0b1000101 + 0o57) + '\146' + chr(1170 - 1125) + chr(1296 - 1240))]) wGFtemmHEBid = VTO5B1Eqldr0([roI3spqORKae(ES5oEprVxulp(b'\\\xd3\xa4\x9f'), chr(0b11011 + 0o111) + chr(7791 - 7690) + chr(99) + chr(0b1000110 + 0o51) + '\x64' + '\x65')(chr(0b1110101) + chr(116) + chr(0b1100110) + chr(1549 - 1504) + chr(2050 - 1994)), roI3spqORKae(ES5oEprVxulp(b'N\xc0\xbd\x89\x1c'), '\144' + '\x65' + chr(0b1100011) + '\157' + chr(0b110110 + 0o56) + '\145')(chr(895 - 778) + '\x74' + chr(102) + chr(0b101101) + '\x38')]) v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b''), chr(181 - 81) + chr(9090 - 8989) + chr(0b1100011) + chr(111) + '\x64' + '\x65')('\x75' + chr(0b1110100) + '\146' + chr(1462 - 1417) + chr(2105 - 2049))) v8jsMqaYV6U2(mYHHDOuQ88eP() + roI3spqORKae(ES5oEprVxulp(b'a\xcf\xa1\x8f\r\xba\x0c&b\x9f\x9fK\xb9\xb7!aG\xcc\xfc'), chr(0b1111 + 0o125) + chr(0b101110 + 0o67) + '\x63' + chr(4353 - 4242) + chr(0b1010100 + 0o20) + chr(4818 - 4717))('\x75' + chr(116) + chr(0b1100110) + chr(0b10110 + 0o27) + chr(1579 - 1523)) + vPE5JUmMJxDj()) v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b''), chr(8950 - 8850) + chr(0b111110 + 0o47) + chr(0b111 + 0o134) + chr(5139 - 5028) + chr(100) + '\x65')(chr(0b1110101) + chr(12551 - 12435) + chr(9952 - 9850) + '\x2d' + '\070')) vPSKmmd6vng8 = nzTpIcepk0o8(chr(235 - 187) + chr(0b1000010 + 0o55) + chr(0b110001), 8) ZEz8dJpudcSy = [] zH7yXaq3jdqp = nzTpIcepk0o8(chr(99 - 51) + chr(111) + chr(0b100100 + 0o14), 8) if vPSKmmd6vng8: X_c34vTbvwfj[roI3spqORKae(ES5oEprVxulp(b'A\xcf\xa1\x8f\r\xc9/3d'), chr(1520 - 1420) + chr(101) + chr(0b1100011) + chr(111) + chr(0b1100100) + '\x65')(chr(968 - 851) + '\x74' + chr(5054 - 4952) + chr(0b101101) + chr(0b101100 + 0o14))] = [] v8jsMqaYV6U2(pPmkLCVA328e(roI3spqORKae(ES5oEprVxulp(b"q\xce\xa4\xda\x0e\xf33:'\x92\x99Z\xf0\xb6%5^\xd1\xfd\x9a\x0c\xae\x9a\xb26V\xc4\xe3\x93\xa2\xe6cf\xe0\x9d\x96\xceT\xcd\x02X\xc0\xa3\x9b\x14\xff+3u\xdc\x82B\xf0\xad/`\\\x83\xf3\x87\x0c\xf4\xdf\xf6SQ\xc8\xf9\x93\xb7\xe6ro\xad\x91\x8c\xdbS\x99Q@\xce\xa4\x96\x1d\xba77q\x99\xd6L\xf0\xa1.|_\xd6\xf7\xd7\x12\xbb\x92\xb36D\xc3\xf0\xc7\xe7\xf2sk\xb3\xd4\x97\xd0M\xc0\x02\\\xc9\xb4\xda\x0c\xf4;3u\x8f\x95B\xa2\xb1`7q\x81\xb2\x96\x12\xbe\xdf\xb7z@\xc3\xf0\xdd\xb2\xeae|\xa9\x97\xd8\xddI\xd8PI\xc2\xa5\x9f\x0b\xe9svf\x92\x92\r\xb4\xbb%f\x0e\xcd\xfd\x83\\\xa9\x8b\xb7dD\x8b\xe6\xda\xb3\xef o\xe0\x9a\x8d\xd3C\xdcP\x06"), '\144' + '\145' + '\143' + chr(11998 - 11887) + chr(0b1100100) + chr(0b1100010 + 0o3))(chr(12731 - 12614) + '\x74' + chr(0b1100110) + chr(0b101101) + chr(1193 - 1137)))) while nzTpIcepk0o8('\x30' + chr(10872 - 10761) + chr(0b10110 + 0o33), 8): v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b''), '\144' + '\x65' + chr(4977 - 4878) + chr(111) + chr(0b1100100) + chr(0b1010110 + 0o17))(chr(0b1101001 + 0o14) + chr(0b1101100 + 0o10) + '\146' + chr(0b101101) + chr(1422 - 1366))) HzjZooQIconh = _LyVvpIFM_yv(ftfygxgFas5X(X_c34vTbvwfj[roI3spqORKae(ES5oEprVxulp(b'A\xcf\xa1\x8f\r\xc9/3d'), '\x64' + chr(101) + chr(0b101111 + 0o64) + '\x6f' + chr(100) + '\x65')(chr(117) + chr(116) + '\146' + '\x2d' + chr(0b111000))]) + nzTpIcepk0o8('\x30' + '\157' + chr(0b110001), 8)) kuoRyThafoKX = xR5hL8LIHQcx(HzjZooQIconh + roI3spqORKae(ES5oEprVxulp(b'\x08\xc8\xbf\x8a\x0c\xee\x7f8f\x91\x93\r\xf8\xe8\x05[z\xe6\xc0\xc9\\\xae\x90\xf6pY\xc5\xf8\xc0\xaf\xae'), chr(0b1001010 + 0o32) + '\145' + chr(0b11100 + 0o107) + chr(0b1101111) + chr(100) + chr(101))(chr(0b10110 + 0o137) + chr(0b1110100) + chr(102) + chr(0b100100 + 0o11) + chr(0b100101 + 0o23)), allow_empty=nzTpIcepk0o8(chr(0b110000) + '\157' + chr(49), 8)) if kuoRyThafoKX == roI3spqORKae(ES5oEprVxulp(b''), chr(0b1000000 + 0o44) + chr(101) + '\x63' + '\x6f' + '\x64' + chr(0b1100101))(chr(0b1010011 + 0o42) + '\164' + chr(0b1100110) + '\x2d' + chr(2372 - 2316)): break if kuoRyThafoKX in ZEz8dJpudcSy: v8jsMqaYV6U2(pPmkLCVA328e(roI3spqORKae(ES5oEprVxulp(b'm\xd3\xa3\x95\x0b\xa0\x7f\x15f\x92\x98B\xa4\xf45fK\x83\xe6\x9f\x19\xfa\x8c\xb7{U\x8b\xf8\xdd\xb7\xf2t.\xb0\x95\x8a\xdfL\xdcVM\xd3\xf1\x94\x18\xf7:vs\x8b\x9fN\xb5\xfa`5~\xcf\xf7\x96\x0f\xbf\xdf\xb5~_\xc4\xe2\xd6\xe7\xe6go\xa9\x9a\xd6'), '\144' + chr(8733 - 8632) + chr(0b1100001 + 0o2) + chr(0b100100 + 0o113) + chr(0b111010 + 0o52) + chr(101))('\165' + chr(1372 - 1256) + chr(0b1100110) + chr(0b101101) + chr(0b110010 + 0o6)))) continue if not roI3spqORKae(UwF7tVOvMSbg, roI3spqORKae(ES5oEprVxulp(b'@\xca\xe8\xb5\x10\xf02?D\xa3\x8cl'), chr(0b1100100) + '\145' + chr(7404 - 7305) + chr(111) + '\144' + '\x65')('\x75' + chr(11652 - 11536) + chr(0b1100110) + '\055' + '\x38'))(kuoRyThafoKX): v8jsMqaYV6U2(pPmkLCVA328e(roI3spqORKae(ES5oEprVxulp(b'm\xd3\xa3\x95\x0b\xa0\x7f\x06f\x8e\x97@\xb5\xa0%g\x0e\xcd\xf3\x9a\x19\xa9\xdf\xbbwI\x8b\xe4\xc0\xa2\xa7o`\xac\x8d\xd8\xcbO\xddGZ\xd2\xb2\x95\x0b\xff\x7ftX\xde\xda\r\x91\x87\x03\\g\x83\xfe\x92\x08\xae\x9a\xa4e\x1c\x8b\xf0\xdd\xa3\xa7dg\xa7\x9d\x8c\xcd\x1a\x99CF\xc5\xf1\x97\x18\xe3\x7f8h\x88\xd6^\xa4\xb52a\x0e\xd4\xfb\x83\x14\xfa\x9e\xf6rY\xcc\xf8\xc7\xe9\xa7 ^\xac\x91\x99\xcdD\x99A@\xce\xbe\x89\x1c\xba>1f\x95\x98\x03'), chr(4635 - 4535) + chr(1937 - 1836) + chr(99) + chr(111) + chr(0b1100100) + chr(0b110110 + 0o57))(chr(117) + chr(6204 - 6088) + '\x66' + chr(0b101101) + chr(259 - 203)))) continue roI3spqORKae(ZEz8dJpudcSy, roI3spqORKae(ES5oEprVxulp(b'`\xf5\x82\xce\x01\xfd\x189m\x93\xa3\x18'), chr(6994 - 6894) + chr(0b1001100 + 0o31) + chr(0b1100011) + '\x6f' + chr(0b1100100) + chr(887 - 786))('\x75' + chr(11984 - 11868) + '\x66' + chr(0b101101) + chr(56)))(kuoRyThafoKX) XNdShc7PkjQr = xR5hL8LIHQcx(roI3spqORKae(ES5oEprVxulp(b'd\xc0\xb3\x9f\x15\xbaw9w\x88\x9fB\xbe\xb5,5F\xd6\xff\x96\x12\xf7\x8d\xb3wT\xca\xf3\xdf\xa2\xa7no\xad\x91\xd1'), '\144' + chr(101) + '\x63' + '\x6f' + chr(3925 - 3825) + chr(0b1100101))(chr(0b1110101) + chr(0b1110100) + chr(102) + chr(0b101011 + 0o2) + chr(56)), roI3spqORKae(ES5oEprVxulp(b''), chr(100) + chr(0b1100101) + '\143' + '\157' + chr(0b1100100) + chr(7226 - 7125))(chr(0b101001 + 0o114) + chr(6869 - 6753) + chr(5837 - 5735) + chr(0b101101) + '\x38')) FWDUmk_5cuVa(ULWyi2c1KwNh) if not zH7yXaq3jdqp: v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'q\xce\xa4\x88Y\xf31&r\x88\xd6]\xb1\xa6!xK\xd7\xf7\x85\\\xb7\x8a\xa5b\x10\xc9\xf4\x93\xa8\xe1 a\xae\x91\xd8\xd1G\x99V@\xc4\xf1\x9c\x16\xf639p\x95\x98J\xf0\xb7,t]\xd0\xf7\x84F'), chr(0b1100100) + '\x65' + '\143' + chr(1665 - 1554) + chr(100) + '\145')('\165' + '\164' + chr(0b1100110) + chr(1799 - 1754) + chr(56))) v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b"I\xd1\xa1\x96\x1c\xee\x7fv'\xdc\xd6\r\xf0\xf4`t\\\xd1\xf3\x8eF\xbc\x96\xbas\x10\x8b\xb1\x93\xe7\xe6r|\xa1\x8d\xc2\xccD\xdaMZ\xc5\xf1\xdaY\xfc6:b\xdc\xd6\r\xf0\xf4`5\x0e\x83\xb2\xd7\x15\xb4\x8b\xdcwB\xd9\xf0\xca\xfd\xe6p~\xac\x91\x8c\x9e\x01\x99CZ\xd3\xb0\x83C\xfc39f\x88\xd6\r\xf0\xf4!g\\\xc2\xeb\xcd\x0f\xae\x8d\xbfxW\x8b\xb1\x93\xa1\xeboo\xb4\xd4\xd8\x9e\x01\x99\x02\x08\x81\xf1\xda\x0b\xff<9u\x98\xfcL\xa2\xa6!l\x14\xc1\xfd\x98\x10\xbf\x9e\xb86\x10\xca\xe3\xc1\xa6\xfe:g\xae\x80\xd8\x9e\x01\x99\x02\x08\xc3\xbe\x95\x15\xff>8'\xdc\xd6\r\xf0\xf4`5F\xc2\xe1\x9f\\\xfa\xdf\xf66\x10\x8b\xb1\x93\xe7\xa7sz\xb2\x9d\x96\xd9+"), chr(7490 - 7390) + '\x65' + chr(0b1100011) + '\157' + '\x64' + '\145')(chr(0b1110101) + chr(116) + chr(0b1100110) + chr(0b10011 + 0o32) + chr(1396 - 1340))) zH7yXaq3jdqp = nzTpIcepk0o8(chr(0b101010 + 0o6) + '\157' + '\061', 8) while nzTpIcepk0o8(chr(48) + chr(111) + chr(0b1 + 0o60), 8): Hwf8kiRD9jLA = xR5hL8LIHQcx(roI3spqORKae(ES5oEprVxulp(b"k\xc9\xbe\x95\n\xff\x7f7'\x9f\x9aL\xa3\xa7`=\x12\xf7\xd3\xb5B\xfa\x8b\xa1\x7fS\xce\xb1\xd5\xa8\xf5 m\xa8\x9b\x91\xddD\xca\x0b"), '\144' + '\145' + chr(5948 - 5849) + chr(0b111001 + 0o66) + chr(0b1010010 + 0o22) + chr(0b1100101))(chr(0b1011 + 0o152) + '\164' + chr(5790 - 5688) + chr(0b101101) + chr(0b111000))) if Hwf8kiRD9jLA in roI3spqORKae(ULWyi2c1KwNh, roI3spqORKae(ES5oEprVxulp(b'I\xd2\xb5\xb5A\xf6\x134t\x84\xb3\x14'), '\144' + '\145' + chr(0b11111 + 0o104) + '\157' + '\144' + '\x65')(chr(0b1010010 + 0o43) + '\164' + chr(102) + chr(0b100000 + 0o15) + chr(2579 - 2523))): break else: v8jsMqaYV6U2(pPmkLCVA328e(roI3spqORKae(ES5oEprVxulp(b'f\xce\xa5\xda\x18\xba-3d\x93\x91C\xb9\xae%q\x0e\xc0\xfe\x96\x0f\xa9\xc4\xf6f\\\xce\xf0\xc0\xa2\xa7cf\xaf\x9b\x8b\xdb\x01\xd8EI\xc8\xbf\xd4'), chr(3026 - 2926) + chr(0b1100101) + chr(0b1100011) + chr(3448 - 3337) + '\144' + chr(0b1011001 + 0o14))(chr(117) + chr(0b111011 + 0o71) + '\x66' + chr(0b1010 + 0o43) + chr(0b111000)))) FWDUmk_5cuVa() w1lY2ddJoBIl = dpnNQe7yEs11(roI3spqORKae(ES5oEprVxulp(b'|\xc9\xb8\x89Y\xf3,vf\x92\xd6B\xa0\xa0)z@\xc2\xfe\xd7\x0c\xbb\x8d\xb7{U\xdf\xf4\xc1'), chr(0b1100100) + '\x65' + chr(0b1 + 0o142) + chr(0b111 + 0o150) + chr(0b1100100) + chr(101))(chr(0b1011010 + 0o33) + chr(3914 - 3798) + chr(0b10110 + 0o120) + chr(45) + chr(1282 - 1226))) pW3baDkA9wU_ = None if w1lY2ddJoBIl and Hwf8kiRD9jLA in [roI3spqORKae(ES5oEprVxulp(b'A\xcf\xa5'), '\x64' + '\145' + '\143' + chr(0b1 + 0o156) + '\x64' + chr(101))('\x75' + '\164' + chr(102) + '\x2d' + '\x38'), roI3spqORKae(ES5oEprVxulp(b'N\xcd\xbe\x9b\r'), '\x64' + chr(101) + chr(0b100100 + 0o77) + chr(0b1101111) + chr(2760 - 2660) + chr(4362 - 4261))(chr(9739 - 9622) + '\164' + chr(0b1100110) + chr(0b111 + 0o46) + chr(0b110 + 0o62)), roI3spqORKae(ES5oEprVxulp(b'[\xd5\xa3\x93\x17\xfd'), chr(0b1100100 + 0o0) + '\145' + chr(0b1100011) + '\x6f' + '\x64' + chr(0b10001 + 0o124))(chr(0b111001 + 0o74) + chr(116) + '\146' + '\x2d' + chr(56)), roI3spqORKae(ES5oEprVxulp(b'J\xce\xbe\x96\x1c\xfb1'), chr(0b1011 + 0o131) + chr(7266 - 7165) + chr(0b110100 + 0o57) + chr(111) + chr(100) + chr(101))(chr(117) + '\164' + chr(1996 - 1894) + chr(0b101101) + '\070')]: pW3baDkA9wU_ = dpnNQe7yEs11(roI3spqORKae(ES5oEprVxulp(b'i\x81\xb5\x9f\x1f\xfb*:s\xdc\x80L\xbc\xa1%5]\xcb\xfd\x82\x10\xbe\xdf\xb4s\x10\xdb\xe3\xdc\xb1\xeedk\xa4'), chr(0b111100 + 0o50) + '\x65' + chr(4113 - 4014) + chr(0b1010000 + 0o37) + chr(100) + chr(101))(chr(1067 - 950) + chr(0b100000 + 0o124) + chr(0b1100110) + chr(1954 - 1909) + chr(1845 - 1789))) if pW3baDkA9wU_: while nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b1110 + 0o43), 8): if Hwf8kiRD9jLA == roI3spqORKae(ES5oEprVxulp(b'J\xce\xbe\x96\x1c\xfb1'), chr(3522 - 3422) + '\145' + '\143' + chr(12069 - 11958) + chr(0b1100100) + chr(3869 - 3768))('\x75' + chr(0b101111 + 0o105) + chr(102) + '\x2d' + '\070'): FWDUmk_5cuVa(wGFtemmHEBid) pW3baDkA9wU_ = xR5hL8LIHQcx(roI3spqORKae(ES5oEprVxulp(b'\x08\x81\x95\x9f\x1f\xfb*:s\xdc\x80L\xbc\xa1%'), chr(100) + chr(0b1100101) + '\x63' + chr(0b10110 + 0o131) + chr(0b11110 + 0o106) + chr(0b111111 + 0o46))('\165' + chr(116) + chr(102) + '\x2d' + chr(0b111000)), choices=[roI3spqORKae(ES5oEprVxulp(b'\\\xd3\xa4\x9f'), chr(9289 - 9189) + chr(0b1100101) + '\x63' + '\x6f' + chr(0b1100100) + chr(0b1100101))('\165' + chr(3803 - 3687) + chr(0b1100110) + '\x2d' + '\070'), roI3spqORKae(ES5oEprVxulp(b'N\xc0\xbd\x89\x1c'), '\x64' + '\x65' + '\x63' + '\157' + chr(100) + chr(2482 - 2381))(chr(989 - 872) + '\164' + chr(0b1100110) + chr(0b101101) + chr(0b111000))]) FWDUmk_5cuVa() elif Hwf8kiRD9jLA == roI3spqORKae(ES5oEprVxulp(b'[\xd5\xa3\x93\x17\xfd'), chr(100) + '\x65' + chr(99) + chr(111) + chr(0b1100100) + '\x65')('\165' + chr(116) + chr(0b1100110) + chr(519 - 474) + chr(1052 - 996)): pW3baDkA9wU_ = xR5hL8LIHQcx(roI3spqORKae(ES5oEprVxulp(b'\x08\x81\x95\x9f\x1f\xfb*:s\xdc\x80L\xbc\xa1%'), chr(100) + chr(0b1100101) + chr(0b100000 + 0o103) + chr(201 - 90) + chr(100) + '\x65')(chr(0b1110101) + chr(0b1110100) + chr(0b1100110) + '\055' + chr(56)), allow_empty=nzTpIcepk0o8(chr(0b110000) + chr(11669 - 11558) + chr(0b110001), 8)) else: pW3baDkA9wU_ = xR5hL8LIHQcx(roI3spqORKae(ES5oEprVxulp(b'\x08\x81\x95\x9f\x1f\xfb*:s\xdc\x80L\xbc\xa1%'), chr(0b1100100) + '\x65' + chr(99) + '\x6f' + '\144' + chr(0b1000011 + 0o42))('\165' + '\x74' + chr(0b101001 + 0o75) + chr(0b11011 + 0o22) + chr(488 - 432))) try: if Hwf8kiRD9jLA == roI3spqORKae(ES5oEprVxulp(b'J\xce\xbe\x96\x1c\xfb1'), chr(0b1001110 + 0o26) + chr(101) + chr(99) + chr(111) + chr(8061 - 7961) + chr(0b1100101 + 0o0))(chr(0b1110101) + '\164' + '\146' + '\x2d' + chr(56)): pW3baDkA9wU_ = pW3baDkA9wU_ == roI3spqORKae(ES5oEprVxulp(b'\\\xd3\xa4\x9f'), chr(0b11001 + 0o113) + chr(101) + chr(99) + chr(7522 - 7411) + chr(100) + chr(3745 - 3644))('\165' + chr(0b1110100) + chr(102) + chr(0b10 + 0o53) + '\070') elif Hwf8kiRD9jLA == roI3spqORKae(ES5oEprVxulp(b'A\xcf\xa5'), chr(2547 - 2447) + chr(5309 - 5208) + '\143' + chr(0b1010000 + 0o37) + chr(2479 - 2379) + chr(0b1100101))(chr(0b1110101) + chr(0b1110100) + chr(102) + '\x2d' + chr(2512 - 2456)): pW3baDkA9wU_ = nzTpIcepk0o8(pW3baDkA9wU_) elif Hwf8kiRD9jLA == roI3spqORKae(ES5oEprVxulp(b'N\xcd\xbe\x9b\r'), chr(6498 - 6398) + '\145' + chr(99) + chr(5239 - 5128) + '\x64' + chr(3896 - 3795))('\165' + '\x74' + '\x66' + chr(45) + chr(0b110101 + 0o3)): pW3baDkA9wU_ = jLW6pRf2DSRk(pW3baDkA9wU_) break except UtiWT6f6p9yZ: v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'f\xce\xa5\xda\x18\xba)7k\x95\x92\r\xb4\xb1&t[\xcf\xe6\xd7\n\xbb\x93\xa3s\x10\xcd\xfe\xc1\xe7\xf3hk\xe0\x93\x91\xc8D\xd7\x02K\xcd\xb0\x89\n\xba'), chr(0b1001000 + 0o34) + '\145' + chr(99) + '\x6f' + '\144' + chr(101))(chr(117) + chr(116) + '\146' + chr(45) + chr(56)) + Hwf8kiRD9jLA) else: pW3baDkA9wU_ = None r9v1bs_5Qqpw = Ov4KLivfl4p6() r9v1bs_5Qqpw[roI3spqORKae(ES5oEprVxulp(b'F\xc0\xbc\x9f'), chr(0b1100001 + 0o3) + chr(0b11110 + 0o107) + chr(99) + chr(0b111000 + 0o67) + '\x64' + '\145')(chr(6351 - 6234) + chr(0b100 + 0o160) + '\x66' + '\x2d' + chr(2189 - 2133))] = kuoRyThafoKX if XNdShc7PkjQr != roI3spqORKae(ES5oEprVxulp(b''), '\144' + chr(0b1100101) + '\143' + chr(0b1101111) + chr(0b1100100) + '\145')(chr(0b1110101) + chr(116) + '\146' + '\x2d' + chr(2410 - 2354)): r9v1bs_5Qqpw[roI3spqORKae(ES5oEprVxulp(b'D\xc0\xb3\x9f\x15'), chr(0b110101 + 0o57) + chr(0b1100101) + chr(0b111 + 0o134) + chr(0b1101111) + chr(0b111111 + 0o45) + '\145')(chr(13242 - 13125) + chr(0b1110100) + chr(0b1100110) + '\x2d' + chr(0b111000))] = XNdShc7PkjQr r9v1bs_5Qqpw[roI3spqORKae(ES5oEprVxulp(b'K\xcd\xb0\x89\n'), chr(100) + chr(4784 - 4683) + chr(0b1100011) + chr(111) + chr(0b1100100) + chr(101))('\x75' + '\164' + chr(0b10 + 0o144) + '\x2d' + '\070')] = Hwf8kiRD9jLA r9v1bs_5Qqpw[roI3spqORKae(ES5oEprVxulp(b'G\xd1\xa5\x93\x16\xf4>:'), chr(0b101011 + 0o71) + chr(2529 - 2428) + chr(0b101010 + 0o71) + chr(0b1101111) + '\144' + chr(0b1100101))('\x75' + '\x74' + chr(0b1100110) + chr(0b101001 + 0o4) + chr(3014 - 2958))] = w1lY2ddJoBIl if pW3baDkA9wU_ is not None: r9v1bs_5Qqpw[roI3spqORKae(ES5oEprVxulp(b'L\xc4\xb7\x9b\x0c\xf6+'), chr(0b111011 + 0o51) + '\145' + chr(0b1100011) + chr(11846 - 11735) + '\144' + chr(0b1100101))(chr(117) + chr(0b1110100) + chr(0b1010100 + 0o22) + '\055' + chr(0b11010 + 0o36))] = pW3baDkA9wU_ if Hwf8kiRD9jLA == roI3spqORKae(ES5oEprVxulp(b'N\xc8\xbd\x9f'), chr(100) + chr(155 - 54) + '\143' + '\x6f' + chr(0b1100100) + chr(9790 - 9689))('\x75' + chr(10325 - 10209) + '\x66' + chr(0b10111 + 0o26) + chr(2143 - 2087)) or Hwf8kiRD9jLA == roI3spqORKae(ES5oEprVxulp(b'I\xd3\xa3\x9b\x00\xa09?k\x99'), chr(6223 - 6123) + chr(101) + chr(0b100110 + 0o75) + '\157' + chr(100) + '\145')(chr(117) + '\164' + chr(102) + '\x2d' + chr(1510 - 1454)): r9v1bs_5Qqpw[roI3spqORKae(ES5oEprVxulp(b'X\xc0\xa5\x8e\x1c\xe81%'), '\144' + chr(101) + chr(99) + '\x6f' + '\x64' + chr(0b1011110 + 0o7))(chr(3212 - 3095) + chr(0b1110100) + '\146' + chr(0b101101) + chr(0b11001 + 0o37))] = [roI3spqORKae(ES5oEprVxulp(b'\x02'), '\144' + '\145' + chr(2006 - 1907) + '\x6f' + chr(0b1100100) + '\x65')(chr(117) + chr(116) + chr(8851 - 8749) + chr(0b10111 + 0o26) + chr(0b11000 + 0o40))] r9v1bs_5Qqpw[roI3spqORKae(ES5oEprVxulp(b'@\xc4\xbd\x8a'), '\144' + '\x65' + '\x63' + chr(0b101011 + 0o104) + chr(100) + chr(0b111101 + 0o50))(chr(10487 - 10370) + '\164' + chr(0b1100110) + chr(45) + chr(56))] = roI3spqORKae(ES5oEprVxulp(b''), '\x64' + chr(101) + chr(0b1100011) + chr(10513 - 10402) + '\x64' + chr(101))(chr(9600 - 9483) + chr(2171 - 2055) + '\146' + chr(524 - 479) + chr(0b101 + 0o63)) roI3spqORKae(X_c34vTbvwfj[roI3spqORKae(ES5oEprVxulp(b'A\xcf\xa1\x8f\r\xc9/3d'), '\144' + chr(101) + chr(99) + chr(8369 - 8258) + chr(2491 - 2391) + '\145')(chr(117) + chr(0b1110100) + '\146' + chr(624 - 579) + chr(0b101 + 0o63))], roI3spqORKae(ES5oEprVxulp(b'`\xf5\x82\xce\x01\xfd\x189m\x93\xa3\x18'), chr(0b1100100) + '\145' + chr(9391 - 9292) + chr(0b1001010 + 0o45) + chr(0b1100100) + chr(101))(chr(0b101011 + 0o112) + '\x74' + chr(6125 - 6023) + chr(45) + chr(1054 - 998)))(r9v1bs_5Qqpw) v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b''), chr(0b1100100) + '\x65' + '\x63' + chr(111) + chr(0b1000001 + 0o43) + chr(9438 - 9337))('\x75' + chr(116) + chr(102) + '\x2d' + chr(0b100 + 0o64))) v8jsMqaYV6U2(mYHHDOuQ88eP() + roI3spqORKae(ES5oEprVxulp(b'g\xd4\xa5\x8a\x0c\xee\x7f\x05w\x99\x95D\xb6\xbd#tZ\xca\xfd\x99'), chr(100) + chr(4232 - 4131) + chr(0b111010 + 0o51) + chr(111) + chr(2251 - 2151) + chr(0b1100101))(chr(0b1101010 + 0o13) + '\164' + chr(0b1100 + 0o132) + chr(0b11001 + 0o24) + chr(2442 - 2386)) + vPE5JUmMJxDj()) v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b''), chr(0b1100100) + chr(101) + chr(0b1000010 + 0o41) + '\157' + '\144' + chr(101))('\165' + chr(12294 - 12178) + chr(0b110 + 0o140) + '\055' + chr(0b110111 + 0o1))) PbbDxfg_lFmA = nzTpIcepk0o8('\060' + chr(0b1000 + 0o147) + chr(49), 8) aQWAo0jn_RBn = [] if PbbDxfg_lFmA: X_c34vTbvwfj[roI3spqORKae(ES5oEprVxulp(b'G\xd4\xa5\x8a\x0c\xee\x0c&b\x9f'), '\144' + chr(0b1100101 + 0o0) + chr(0b1100011) + '\157' + chr(100) + chr(4522 - 4421))(chr(0b1100000 + 0o25) + '\x74' + chr(7802 - 7700) + '\x2d' + chr(0b101100 + 0o14))] = [] v8jsMqaYV6U2(pPmkLCVA328e(roI3spqORKae(ES5oEprVxulp(b'q\xce\xa4\xda\x0e\xf33:\'\x92\x99Z\xf0\xb6%5^\xd1\xfd\x9a\x0c\xae\x9a\xb26V\xc4\xe3\x93\xa2\xe6cf\xe0\x9b\x8d\xcaQ\xccV\x08\xd1\xb0\x88\x18\xf7:"b\x8e\xd6B\xb6\xf49z[\xd1\xb2\x96\x0c\xaa\xd1\xf66u\xca\xf2\xdb\xe7\xf7a|\xa1\x99\x9d\xcaD\xcb\x02[\xc9\xbe\x8f\x15\xfe\x7f>f\x8a\x93\r\xb1\xf45{G\xd2\xe7\x92\\\xb4\x9e\xbbs\x10\xdf\xf9\xd2\xb3\xa7u}\xa5\x87\xd8\xd1O\xd5[\x08\xd5\xb9\x9fY\xef12b\x8e\x85N\xbf\xa6%5\x0c\xfc\xb0\xd7\x1d\xb4\x9b\xf6w\\\xdb\xf9\xd2\xa9\xf2mk\xb2\x9d\x9b\x9eB\xd1CZ\xc0\xb2\x8e\x1c\xe8,z\'\x9d\x98I\xf0\xb0/p]\x83\xfc\x98\x08\xfa\x8c\xa2wB\xdf\xb1\xc4\xae\xf3h.\xa1\xd4\x96\xcbL\xdbGZ\x8f'), '\144' + '\x65' + chr(0b1100011) + chr(5537 - 5426) + '\x64' + '\145')('\165' + '\x74' + chr(102) + chr(0b101101) + '\070'))) while nzTpIcepk0o8(chr(1952 - 1904) + '\x6f' + chr(0b110001), 8): v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b''), '\x64' + chr(0b110011 + 0o62) + '\x63' + chr(7471 - 7360) + '\x64' + chr(2085 - 1984))(chr(117) + chr(0b1110100) + chr(102) + chr(45) + '\x38')) HzjZooQIconh = _LyVvpIFM_yv(ftfygxgFas5X(X_c34vTbvwfj[roI3spqORKae(ES5oEprVxulp(b'G\xd4\xa5\x8a\x0c\xee\x0c&b\x9f'), '\144' + chr(101) + chr(99) + '\x6f' + chr(100) + '\x65')(chr(0b1110101) + chr(4784 - 4668) + chr(2783 - 2681) + '\x2d' + chr(0b111000))]) + nzTpIcepk0o8('\x30' + chr(7492 - 7381) + chr(49), 8)) kiDe0T1GR566 = xR5hL8LIHQcx(HzjZooQIconh + roI3spqORKae(ES5oEprVxulp(b'\x08\xce\xa4\x8e\t\xef+vi\x9d\x9bH\xf0\xfc|P`\xf7\xd7\xa5B\xfa\x8b\xb96V\xc2\xff\xda\xb4\xef)'), '\x64' + chr(9667 - 9566) + chr(99) + chr(111) + chr(0b1100100) + '\x65')(chr(0b1110101) + '\164' + chr(0b1100110) + chr(0b101101) + '\x38'), allow_empty=nzTpIcepk0o8(chr(0b101 + 0o53) + '\x6f' + '\x31', 8)) if kiDe0T1GR566 == roI3spqORKae(ES5oEprVxulp(b''), chr(100) + '\145' + '\143' + '\x6f' + '\x64' + '\x65')('\x75' + chr(116) + chr(0b1000011 + 0o43) + chr(0b110 + 0o47) + chr(56)): break if kiDe0T1GR566 in aQWAo0jn_RBn: v8jsMqaYV6U2(pPmkLCVA328e(roI3spqORKae(ES5oEprVxulp(b"m\xd3\xa3\x95\x0b\xa0\x7f\x15f\x92\x98B\xa4\xf45fK\x83\xe6\x9f\x19\xfa\x8c\xb7{U\x8b\xfe\xc6\xb3\xf7uz\xe0\x84\x99\xcc@\xd4G\\\xc4\xa3\xda\x17\xfb23'\x88\x81D\xb3\xb1n5\x0e\xf3\xfe\x92\x1d\xa9\x9a\xf6uX\xc4\xfe\xc0\xa2\xa7ai\xa1\x9d\x96\x90"), '\144' + chr(0b1000111 + 0o36) + chr(0b1100011) + '\x6f' + '\144' + chr(0b1100101))(chr(0b1110101) + '\x74' + '\x66' + chr(45) + chr(0b111000)))) continue if not roI3spqORKae(UwF7tVOvMSbg, roI3spqORKae(ES5oEprVxulp(b'@\xca\xe8\xb5\x10\xf02?D\xa3\x8cl'), '\144' + '\x65' + chr(99) + chr(111) + chr(100) + '\x65')(chr(0b1110101) + chr(662 - 546) + chr(2809 - 2707) + '\x2d' + chr(0b10000 + 0o50)))(kiDe0T1GR566): v8jsMqaYV6U2(pPmkLCVA328e(roI3spqORKae(ES5oEprVxulp(b'm\xd3\xa3\x95\x0b\xa0\x7f\x06f\x8e\x97@\xb5\xa0%g\x0e\xcd\xf3\x9a\x19\xa9\xdf\xbbwI\x8b\xe4\xc0\xa2\xa7o`\xac\x8d\xd8\xcbO\xddGZ\xd2\xb2\x95\x0b\xff\x7ftX\xde\xda\r\x91\x87\x03\\g\x83\xfe\x92\x08\xae\x9a\xa4e\x1c\x8b\xf0\xdd\xa3\xa7dg\xa7\x9d\x8c\xcd\x1a\x99CF\xc5\xf1\x97\x18\xe3\x7f8h\x88\xd6^\xa4\xb52a\x0e\xd4\xfb\x83\x14\xfa\x9e\xf6rY\xcc\xf8\xc7\xe9\xa7 ^\xac\x91\x99\xcdD\x99A@\xce\xbe\x89\x1c\xba>1f\x95\x98\x03'), chr(100) + chr(0b1100101) + '\x63' + '\x6f' + '\144' + chr(101))('\x75' + chr(116) + chr(0b1100110) + chr(45) + chr(0b111000)))) continue roI3spqORKae(aQWAo0jn_RBn, roI3spqORKae(ES5oEprVxulp(b'`\xf5\x82\xce\x01\xfd\x189m\x93\xa3\x18'), '\x64' + chr(101) + chr(99) + chr(111) + chr(100) + chr(5348 - 5247))(chr(0b1110101) + '\164' + '\146' + chr(831 - 786) + '\x38'))(kiDe0T1GR566) ezJILmjXpAfQ = xR5hL8LIHQcx(roI3spqORKae(ES5oEprVxulp(b'd\xc0\xb3\x9f\x15\xbaw9w\x88\x9fB\xbe\xb5,5F\xd6\xff\x96\x12\xf7\x8d\xb3wT\xca\xf3\xdf\xa2\xa7no\xad\x91\xd1'), chr(7090 - 6990) + '\x65' + '\143' + chr(0b1101111) + '\144' + '\145')(chr(0b10111 + 0o136) + '\x74' + chr(1987 - 1885) + chr(45) + '\x38'), roI3spqORKae(ES5oEprVxulp(b''), '\x64' + chr(0b10 + 0o143) + '\x63' + chr(7779 - 7668) + chr(100) + chr(3491 - 3390))(chr(0b1110101) + chr(0b110000 + 0o104) + '\x66' + '\055' + '\070')) FWDUmk_5cuVa(ULWyi2c1KwNh) if not zH7yXaq3jdqp: v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'q\xce\xa4\x88Y\xf5*"w\x89\x82\r\xa0\xb52tC\xc6\xe6\x92\x0e\xfa\x92\xa3eD\x8b\xf3\xd6\xe7\xe8f.\xaf\x9a\x9d\x9eN\xdf\x02\\\xc9\xb4\xda\x1f\xf53:h\x8b\x9fC\xb7\xf4#yO\xd0\xe1\x92\x0f\xe0'), '\144' + '\x65' + chr(0b1100011) + chr(0b1101111) + chr(0b1001110 + 0o26) + chr(0b101110 + 0o67))(chr(0b1110101) + chr(116) + chr(0b1100110) + chr(45) + chr(0b111000))) v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b"I\xd1\xa1\x96\x1c\xee\x7fv'\xdc\xd6\r\xf0\xf4`t\\\xd1\xf3\x8eF\xbc\x96\xbas\x10\x8b\xb1\x93\xe7\xe6r|\xa1\x8d\xc2\xccD\xdaMZ\xc5\xf1\xdaY\xfc6:b\xdc\xd6\r\xf0\xf4`5\x0e\x83\xb2\xd7\x15\xb4\x8b\xdcwB\xd9\xf0\xca\xfd\xe6p~\xac\x91\x8c\x9e\x01\x99CZ\xd3\xb0\x83C\xfc39f\x88\xd6\r\xf0\xf4!g\\\xc2\xeb\xcd\x0f\xae\x8d\xbfxW\x8b\xb1\x93\xa1\xeboo\xb4\xd4\xd8\x9e\x01\x99\x02\x08\x81\xf1\xda\x0b\xff<9u\x98\xfcL\xa2\xa6!l\x14\xc1\xfd\x98\x10\xbf\x9e\xb86\x10\xca\xe3\xc1\xa6\xfe:g\xae\x80\xd8\x9e\x01\x99\x02\x08\xc3\xbe\x95\x15\xff>8'\xdc\xd6\r\xf0\xf4`5F\xc2\xe1\x9f\\\xfa\xdf\xf66\x10\x8b\xb1\x93\xe7\xa7sz\xb2\x9d\x96\xd9"), '\x64' + chr(0b100010 + 0o103) + chr(3517 - 3418) + '\157' + chr(3285 - 3185) + chr(0b1100100 + 0o1))('\x75' + chr(3433 - 3317) + chr(9885 - 9783) + chr(0b101101) + chr(0b111000))) zH7yXaq3jdqp = nzTpIcepk0o8(chr(0b101100 + 0o4) + chr(0b1101111) + chr(193 - 144), 8) while nzTpIcepk0o8('\060' + chr(111) + chr(0b100110 + 0o13), 8): GX_VqTarQ2P8 = xR5hL8LIHQcx(roI3spqORKae(ES5oEprVxulp(b"k\xc9\xbe\x95\n\xff\x7f7'\x9f\x9aL\xa3\xa7`=\x12\xf7\xd3\xb5B\xfa\x8b\xa1\x7fS\xce\xb1\xd5\xa8\xf5 m\xa8\x9b\x91\xddD\xca\x0b"), '\144' + chr(101) + chr(0b1100011) + '\157' + chr(8171 - 8071) + '\145')(chr(8630 - 8513) + chr(0b1110100) + '\146' + '\055' + '\070')) if GX_VqTarQ2P8 in roI3spqORKae(ULWyi2c1KwNh, roI3spqORKae(ES5oEprVxulp(b'I\xd2\xb5\xb5A\xf6\x134t\x84\xb3\x14'), chr(100) + '\145' + chr(0b11111 + 0o104) + chr(4716 - 4605) + chr(0b1001001 + 0o33) + chr(101))(chr(0b110011 + 0o102) + chr(0b11100 + 0o130) + chr(0b10011 + 0o123) + '\x2d' + '\070')): break else: v8jsMqaYV6U2(pPmkLCVA328e(roI3spqORKae(ES5oEprVxulp(b'f\xce\xa5\xda\x18\xba-3d\x93\x91C\xb9\xae%q\x0e\xc0\xfe\x96\x0f\xa9\xc4\xf6f\\\xce\xf0\xc0\xa2\xa7cf\xaf\x9b\x8b\xdb\x01\xd8EI\xc8\xbf\xd4'), chr(0b1100100) + '\x65' + chr(0b110001 + 0o62) + chr(111) + chr(0b1100100) + '\x65')(chr(11261 - 11144) + '\x74' + chr(8925 - 8823) + '\055' + chr(0b110001 + 0o7)))) FWDUmk_5cuVa() r9v1bs_5Qqpw = Ov4KLivfl4p6() r9v1bs_5Qqpw[roI3spqORKae(ES5oEprVxulp(b'F\xc0\xbc\x9f'), '\144' + chr(101) + '\x63' + chr(0b10101 + 0o132) + chr(100) + chr(101))(chr(117) + chr(116) + '\146' + chr(0b11101 + 0o20) + chr(0b111000))] = kiDe0T1GR566 if ezJILmjXpAfQ != roI3spqORKae(ES5oEprVxulp(b''), chr(0b1100100) + chr(0b1100101) + chr(99) + '\x6f' + chr(0b1100100) + '\145')(chr(8859 - 8742) + chr(13226 - 13110) + chr(7319 - 7217) + chr(45) + '\x38'): r9v1bs_5Qqpw[roI3spqORKae(ES5oEprVxulp(b'D\xc0\xb3\x9f\x15'), chr(0b1100100) + chr(101) + chr(0b1100011) + chr(111) + chr(100) + '\x65')(chr(8037 - 7920) + '\x74' + chr(102) + '\x2d' + chr(0b110111 + 0o1))] = ezJILmjXpAfQ r9v1bs_5Qqpw[roI3spqORKae(ES5oEprVxulp(b'K\xcd\xb0\x89\n'), chr(0b1100100) + chr(0b1100101) + '\x63' + chr(0b1101111) + chr(100) + chr(101))(chr(117) + chr(0b1110100) + chr(102) + chr(0b11111 + 0o16) + '\070')] = GX_VqTarQ2P8 if GX_VqTarQ2P8 == roI3spqORKae(ES5oEprVxulp(b'N\xc8\xbd\x9f'), '\x64' + '\145' + chr(0b111101 + 0o46) + chr(1692 - 1581) + chr(100) + chr(0b1010111 + 0o16))(chr(0b100 + 0o161) + chr(0b1110100) + '\x66' + '\055' + '\070') or GX_VqTarQ2P8 == roI3spqORKae(ES5oEprVxulp(b'I\xd3\xa3\x9b\x00\xa09?k\x99'), '\144' + '\x65' + chr(99) + '\157' + chr(7669 - 7569) + chr(0b1100101))(chr(117) + '\164' + chr(0b110000 + 0o66) + chr(0b101101) + '\x38'): r9v1bs_5Qqpw[roI3spqORKae(ES5oEprVxulp(b'X\xc0\xa5\x8e\x1c\xe81%'), chr(0b100100 + 0o100) + chr(101) + chr(0b1000100 + 0o37) + chr(111) + chr(0b1000011 + 0o41) + chr(101))(chr(0b1110101) + chr(0b1110100) + chr(102) + chr(45) + chr(56))] = [roI3spqORKae(ES5oEprVxulp(b'\x02'), chr(8563 - 8463) + chr(0b1001001 + 0o34) + chr(4333 - 4234) + chr(111) + '\144' + chr(0b1100101))(chr(7083 - 6966) + chr(0b1011010 + 0o32) + '\x66' + chr(0b100011 + 0o12) + chr(56))] r9v1bs_5Qqpw[roI3spqORKae(ES5oEprVxulp(b'@\xc4\xbd\x8a'), chr(3001 - 2901) + chr(0b1100101) + chr(7561 - 7462) + chr(111) + '\144' + chr(101))('\x75' + '\x74' + chr(1231 - 1129) + '\055' + chr(56))] = roI3spqORKae(ES5oEprVxulp(b''), '\144' + chr(0b1100101) + '\143' + chr(111) + '\x64' + chr(0b1100101))(chr(0b1110101) + chr(0b1110010 + 0o2) + chr(7229 - 7127) + chr(920 - 875) + chr(941 - 885)) roI3spqORKae(X_c34vTbvwfj[roI3spqORKae(ES5oEprVxulp(b'G\xd4\xa5\x8a\x0c\xee\x0c&b\x9f'), chr(0b1010111 + 0o15) + '\x65' + '\143' + chr(11784 - 11673) + chr(0b1100100) + chr(101))(chr(117) + chr(116) + '\146' + chr(1590 - 1545) + chr(56))], roI3spqORKae(ES5oEprVxulp(b'`\xf5\x82\xce\x01\xfd\x189m\x93\xa3\x18'), chr(0b1100100) + chr(0b1010100 + 0o21) + chr(0b100101 + 0o76) + chr(111) + chr(0b100 + 0o140) + chr(2788 - 2687))('\165' + chr(0b1110100) + chr(102) + '\055' + chr(2774 - 2718)))(r9v1bs_5Qqpw) GWQzWdamHjPc = [] jBq_glddEq92 = [] WYvBKtxzsZ7P = [] gIdOv3Gp5wrn = [] ZjZz6c8Y1P3G = [] if roI3spqORKae(ES5oEprVxulp(b'A\xcf\xa1\x8f\r\xc9/3d'), '\x64' + chr(0b1100101) + chr(0b1110 + 0o125) + '\157' + chr(100) + chr(101))(chr(13558 - 13441) + '\x74' + chr(102) + '\055' + chr(56)) in X_c34vTbvwfj: for BDr7SxpOFXwl in X_c34vTbvwfj[roI3spqORKae(ES5oEprVxulp(b'A\xcf\xa1\x8f\r\xc9/3d'), chr(0b1000 + 0o134) + chr(0b1100101) + chr(99) + '\157' + chr(100) + chr(0b100011 + 0o102))('\165' + '\x74' + '\146' + chr(234 - 189) + '\070')]: bpydngaUvDKi = BDr7SxpOFXwl[roI3spqORKae(ES5oEprVxulp(b'G\xd1\xa5\x93\x16\xf4>:'), '\144' + chr(0b1100101) + chr(0b1100011) + '\x6f' + '\144' + chr(4560 - 4459))(chr(1799 - 1682) + '\164' + chr(0b10 + 0o144) + chr(45) + '\070')] and roI3spqORKae(ES5oEprVxulp(b'L\xc4\xb7\x9b\x0c\xf6+'), chr(3722 - 3622) + chr(0b1100101) + '\x63' + '\x6f' + chr(5176 - 5076) + chr(101))(chr(0b1110101) + '\164' + chr(0b1100110) + chr(0b11000 + 0o25) + chr(2201 - 2145)) not in BDr7SxpOFXwl if BDr7SxpOFXwl[roI3spqORKae(ES5oEprVxulp(b'K\xcd\xb0\x89\n'), chr(0b1001101 + 0o27) + chr(0b1100101) + chr(3831 - 3732) + chr(7758 - 7647) + chr(0b110001 + 0o63) + chr(8351 - 8250))('\x75' + chr(6159 - 6043) + chr(0b111011 + 0o53) + chr(1648 - 1603) + chr(0b1001 + 0o57))] == roI3spqORKae(ES5oEprVxulp(b'N\xc8\xbd\x9f'), chr(6605 - 6505) + chr(7822 - 7721) + '\143' + chr(0b1101111) + '\144' + '\145')('\165' + chr(0b1110100) + chr(0b11100 + 0o112) + '\055' + chr(56)): efgbWDE0Kotx = jBq_glddEq92 if bpydngaUvDKi else GWQzWdamHjPc elif BDr7SxpOFXwl[roI3spqORKae(ES5oEprVxulp(b'K\xcd\xb0\x89\n'), chr(0b1100100) + chr(101) + chr(99) + '\x6f' + '\144' + '\x65')(chr(117) + '\x74' + chr(0b101110 + 0o70) + '\x2d' + chr(0b111000))] == roI3spqORKae(ES5oEprVxulp(b'I\xd3\xa3\x9b\x00\xa09?k\x99'), '\x64' + chr(101) + chr(99) + '\157' + '\144' + chr(101))(chr(13333 - 13216) + '\x74' + chr(0b1100110) + chr(45) + '\070'): efgbWDE0Kotx = gIdOv3Gp5wrn if bpydngaUvDKi else WYvBKtxzsZ7P else: efgbWDE0Kotx = None if efgbWDE0Kotx is not None: roI3spqORKae(efgbWDE0Kotx, roI3spqORKae(ES5oEprVxulp(b'`\xf5\x82\xce\x01\xfd\x189m\x93\xa3\x18'), '\144' + '\145' + chr(0b100101 + 0o76) + '\157' + chr(9561 - 9461) + '\145')(chr(117) + chr(0b1101001 + 0o13) + '\146' + chr(0b1101 + 0o40) + chr(0b111000)))(BDr7SxpOFXwl[roI3spqORKae(ES5oEprVxulp(b'F\xc0\xbc\x9f'), chr(0b1100 + 0o130) + chr(101) + '\x63' + chr(111) + chr(0b1100100) + chr(101))(chr(117) + chr(13417 - 13301) + chr(102) + '\055' + chr(0b111000))]) if roI3spqORKae(ES5oEprVxulp(b'G\xd4\xa5\x8a\x0c\xee\x0c&b\x9f'), chr(0b1100100) + chr(5796 - 5695) + '\x63' + '\157' + chr(0b1100100) + '\145')('\x75' + chr(11910 - 11794) + chr(0b1100110) + chr(45) + chr(2082 - 2026)) in X_c34vTbvwfj: ZjZz6c8Y1P3G = [BDr7SxpOFXwl[roI3spqORKae(ES5oEprVxulp(b'F\xc0\xbc\x9f'), '\x64' + '\145' + chr(0b1100011) + '\x6f' + chr(0b1100100) + chr(8145 - 8044))(chr(8923 - 8806) + chr(0b1011100 + 0o30) + '\x66' + chr(0b10110 + 0o27) + '\x38')] for BDr7SxpOFXwl in X_c34vTbvwfj[roI3spqORKae(ES5oEprVxulp(b'G\xd4\xa5\x8a\x0c\xee\x0c&b\x9f'), chr(0b1100100) + chr(0b1100101) + chr(0b111001 + 0o52) + '\x6f' + '\144' + chr(101))(chr(0b1110101) + chr(0b1110100) + chr(0b1100110) + chr(0b100001 + 0o14) + chr(2763 - 2707))] if BDr7SxpOFXwl[roI3spqORKae(ES5oEprVxulp(b'K\xcd\xb0\x89\n'), chr(100) + '\145' + chr(0b10000 + 0o123) + chr(7079 - 6968) + chr(0b11101 + 0o107) + '\x65')('\x75' + '\x74' + chr(102) + chr(1967 - 1922) + '\x38')] == roI3spqORKae(ES5oEprVxulp(b'N\xc8\xbd\x9f'), chr(6015 - 5915) + chr(7739 - 7638) + chr(0b1100011) + '\157' + chr(7984 - 7884) + chr(6484 - 6383))(chr(8831 - 8714) + chr(5506 - 5390) + chr(9915 - 9813) + '\055' + '\070')] v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b''), '\144' + chr(101) + chr(0b1100011) + '\157' + chr(100) + chr(101))('\165' + chr(0b1110000 + 0o4) + chr(0b1100110) + chr(1939 - 1894) + chr(0b101011 + 0o15))) v8jsMqaYV6U2(mYHHDOuQ88eP() + roI3spqORKae(ES5oEprVxulp(b'|\xc8\xbc\x9f\x16\xef+vW\x93\x9aD\xb3\xad'), chr(1537 - 1437) + chr(3819 - 3718) + '\x63' + '\157' + chr(0b1100100) + chr(0b1100101))(chr(5407 - 5290) + '\164' + '\x66' + chr(67 - 22) + '\x38') + vPE5JUmMJxDj()) X_c34vTbvwfj[roI3spqORKae(ES5oEprVxulp(b'Z\xd4\xbf\xa9\t\xff<'), chr(0b1000100 + 0o40) + chr(0b1100101) + chr(7633 - 7534) + chr(0b1101111) + '\144' + chr(0b100011 + 0o102))('\165' + chr(116) + chr(0b111100 + 0o52) + chr(1788 - 1743) + '\070')] = Ov4KLivfl4p6({}) roI3spqORKae(X_c34vTbvwfj[roI3spqORKae(ES5oEprVxulp(b'Z\xd4\xbf\xa9\t\xff<'), chr(0b1100100) + '\x65' + chr(5873 - 5774) + chr(111) + '\144' + '\145')(chr(0b1110101) + chr(0b1110100) + chr(0b10000 + 0o126) + chr(0b101101) + '\070')], roI3spqORKae(ES5oEprVxulp(b'R\xc4\xe1\xb04\xef\x14ou\x93\xa1~'), chr(0b1100100) + chr(0b101011 + 0o72) + '\143' + '\157' + chr(0b10010 + 0o122) + chr(0b0 + 0o145))(chr(5640 - 5523) + '\x74' + chr(0b1000011 + 0o43) + '\x2d' + chr(56)))(roI3spqORKae(ES5oEprVxulp(b'\\\xc8\xbc\x9f\x16\xef+\x06h\x90\x9fN\xa9'), '\x64' + chr(0b1010101 + 0o20) + chr(99) + '\157' + '\x64' + chr(8294 - 8193))(chr(0b1011010 + 0o33) + chr(7485 - 7369) + '\x66' + chr(45) + '\x38'), {}) (ACACUUFQsMpr, CC44iC9gAzSM) = kcVMZsaLKcTV(default=X_c34vTbvwfj[roI3spqORKae(ES5oEprVxulp(b'Z\xd4\xbf\xa9\t\xff<'), chr(0b101000 + 0o74) + chr(101) + '\x63' + '\x6f' + '\144' + chr(101))('\x75' + '\x74' + chr(0b1100110) + '\055' + chr(1261 - 1205))][roI3spqORKae(ES5oEprVxulp(b'\\\xc8\xbc\x9f\x16\xef+\x06h\x90\x9fN\xa9'), chr(286 - 186) + chr(0b1100101) + chr(99) + '\157' + chr(9063 - 8963) + chr(0b1100101))(chr(117) + chr(0b1110100) + chr(102) + chr(45) + chr(0b100110 + 0o22))].GUKetu4xaGsJ(roI3spqORKae(ES5oEprVxulp(b'\x02'), '\x64' + chr(4458 - 4357) + '\143' + chr(0b1101111) + '\x64' + chr(1386 - 1285))(chr(0b1111 + 0o146) + chr(116) + chr(0b1100110) + '\x2d' + '\x38'))) roI3spqORKae(X_c34vTbvwfj[roI3spqORKae(ES5oEprVxulp(b'Z\xd4\xbf\xa9\t\xff<'), chr(0b1010111 + 0o15) + chr(0b1100101) + chr(0b1100011) + '\157' + chr(4436 - 4336) + chr(0b10 + 0o143))(chr(0b1110101 + 0o0) + chr(0b1110100) + '\x66' + chr(802 - 757) + chr(0b111000))][roI3spqORKae(ES5oEprVxulp(b'\\\xc8\xbc\x9f\x16\xef+\x06h\x90\x9fN\xa9'), chr(7004 - 6904) + chr(101) + '\143' + chr(0b1101111) + '\x64' + '\x65')(chr(0b100100 + 0o121) + chr(0b10 + 0o162) + chr(4695 - 4593) + '\055' + chr(0b110 + 0o62))], roI3spqORKae(ES5oEprVxulp(b'R\xc4\xe1\xb04\xef\x14ou\x93\xa1~'), '\x64' + chr(101) + '\143' + chr(777 - 666) + '\144' + '\145')('\165' + chr(116) + chr(0b1100110) + '\055' + chr(0b111000)))(roI3spqORKae(ES5oEprVxulp(b'\x02'), chr(100) + '\x65' + chr(99) + '\157' + chr(100) + chr(101))(chr(0b1110101) + chr(116) + '\146' + chr(1154 - 1109) + '\070'), {}) roI3spqORKae(X_c34vTbvwfj[roI3spqORKae(ES5oEprVxulp(b'Z\xd4\xbf\xa9\t\xff<'), '\x64' + chr(0b110110 + 0o57) + '\143' + '\x6f' + '\144' + chr(101))('\x75' + '\164' + chr(3669 - 3567) + chr(0b11 + 0o52) + '\070')][roI3spqORKae(ES5oEprVxulp(b'\\\xc8\xbc\x9f\x16\xef+\x06h\x90\x9fN\xa9'), chr(100) + '\145' + chr(0b1011101 + 0o6) + chr(5397 - 5286) + chr(100) + chr(101))('\x75' + chr(1349 - 1233) + chr(0b1100110) + '\x2d' + chr(56))][roI3spqORKae(ES5oEprVxulp(b'\x02'), chr(100) + chr(101) + '\x63' + '\157' + chr(0b1100100) + '\145')(chr(8890 - 8773) + chr(0b1110100) + '\146' + chr(45) + chr(0b111000))], roI3spqORKae(ES5oEprVxulp(b'R\xc4\xe1\xb04\xef\x14ou\x93\xa1~'), chr(0b1100100) + chr(0b1100101) + chr(9323 - 9224) + '\157' + chr(0b1001111 + 0o25) + chr(794 - 693))(chr(0b1110101) + chr(0b1110100) + chr(102) + chr(0b100111 + 0o6) + '\070'))(CC44iC9gAzSM, ACACUUFQsMpr) v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b''), chr(0b111100 + 0o50) + '\145' + '\x63' + '\157' + chr(0b1001101 + 0o27) + '\x65')(chr(10919 - 10802) + chr(0b11011 + 0o131) + chr(0b10110 + 0o120) + '\055' + chr(56))) v8jsMqaYV6U2(mYHHDOuQ88eP() + roI3spqORKae(ES5oEprVxulp(b"|\xc4\xbc\x8a\x15\xfb+3'\xb3\x86Y\xb9\xbb.f"), chr(0b1100100) + chr(0b101011 + 0o72) + '\x63' + chr(0b1101111) + chr(0b1100100) + chr(0b1100101))('\x75' + chr(2801 - 2685) + chr(2881 - 2779) + chr(0b101101) + '\x38') + vPE5JUmMJxDj()) tgRDJGlmEMgT = eemPYp2vtTSr.tgRDJGlmEMgT if eemPYp2vtTSr.tgRDJGlmEMgT is not None else eBOmHaw5ABM6() yAtoHCHA0xsg = mySrujlQndqy[tgRDJGlmEMgT].get_interpreter() X_c34vTbvwfj[roI3spqORKae(ES5oEprVxulp(b'Z\xd4\xbf\xa9\t\xff<'), chr(0b1100100) + '\x65' + '\x63' + chr(5329 - 5218) + chr(3153 - 3053) + chr(101))(chr(0b1110101) + chr(9000 - 8884) + chr(2824 - 2722) + chr(45) + chr(0b10011 + 0o45))][roI3spqORKae(ES5oEprVxulp(b'A\xcf\xa5\x9f\x0b\xea-3s\x99\x84'), chr(0b1100100) + chr(5296 - 5195) + '\x63' + chr(0b11010 + 0o125) + '\x64' + chr(101))(chr(0b11101 + 0o130) + chr(116) + chr(0b11 + 0o143) + chr(1625 - 1580) + chr(0b111000))] = yAtoHCHA0xsg LkZxLoK6Rdy5 = aHUqKstZLeS6.path.Y4yM9BcfTCNq(aHUqKstZLeS6.path.qu5fsQlGSLfc(SsdNdRxXOwsF.OHWDi_URd_WF), roI3spqORKae(ES5oEprVxulp(b'\\\xc4\xbc\x8a\x15\xfb+?i\x9b'), '\x64' + chr(0b1100101) + '\143' + chr(12114 - 12003) + '\144' + '\145')('\165' + chr(116) + '\146' + '\055' + chr(56)), roI3spqORKae(ES5oEprVxulp(b'\\\xc4\xbc\x8a\x15\xfb+3t'), chr(0b1000101 + 0o37) + chr(9368 - 9267) + '\x63' + chr(9729 - 9618) + '\144' + chr(0b1000100 + 0o41))('\165' + chr(116) + chr(102) + chr(45) + chr(1132 - 1076)), mySrujlQndqy[tgRDJGlmEMgT].Lm9Xv4sbbIVn()) if not roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'p\xc9\x81\xcb#\xee\x1dof\xad\x8co'), chr(8073 - 7973) + chr(101) + chr(0b1100011) + chr(111) + chr(0b11001 + 0o113) + chr(4615 - 4514))('\x75' + chr(606 - 490) + chr(0b1100110) + chr(0b1111 + 0o36) + chr(56)))(roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'q\x95\xa8\xb7@\xd8<0S\xbf\xb8\\'), '\x64' + chr(0b1000101 + 0o40) + '\x63' + chr(0b1101111) + '\144' + chr(101))('\x75' + '\x74' + '\x66' + '\055' + chr(0b111000)))(LkZxLoK6Rdy5, roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b'x\xc4\xe9\x89\x14\xe0\x07a@\x8f\x83_'), chr(0b1110 + 0o126) + chr(101) + chr(8976 - 8877) + '\x6f' + chr(100) + chr(0b10011 + 0o122))('\165' + chr(116) + '\x66' + chr(451 - 406) + chr(56))))): v8jsMqaYV6U2(pPmkLCVA328e(roI3spqORKae(ES5oEprVxulp(b'|\xc9\xb4\xda\x1c\xe2:5r\x88\x9fB\xbe\xf40tZ\xd7\xf7\x85\x12\xfa\xdd'), '\x64' + chr(9922 - 9821) + chr(99) + chr(0b1101111) + chr(0b1000101 + 0o37) + chr(6711 - 6610))(chr(0b111111 + 0o66) + chr(0b1110100) + chr(0b1100110) + chr(0b1011 + 0o42) + chr(0b111000)) + roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b'x\xc4\xe9\x89\x14\xe0\x07a@\x8f\x83_'), chr(100) + chr(101) + '\143' + chr(2890 - 2779) + '\x64' + chr(101))('\x75' + chr(4069 - 3953) + chr(102) + chr(0b1100 + 0o41) + '\070')) + roI3spqORKae(ES5oEprVxulp(b'\n\x81\xb8\x89Y\xf40"\'\x9d\x80L\xb9\xb8!wB\xc6\xb2\x91\x13\xa8\xdf\xafyE\xd9\xb1\xc3\xb5\xe8g|\xa1\x99\x95\xd7O\xde\x02D\xc0\xbf\x9d\x0c\xfb83)'), '\144' + chr(0b1100101) + chr(99) + '\157' + chr(0b101100 + 0o70) + chr(0b111101 + 0o50))(chr(117) + '\x74' + '\x66' + '\x2d' + '\070'))) UYtHA0XyNB9C = fF0Z4umHNy32(LkZxLoK6Rdy5) else: UYtHA0XyNB9C = eemPYp2vtTSr.Pe8smzX7Gsur LkZxLoK6Rdy5 = aHUqKstZLeS6.path.Y4yM9BcfTCNq(LkZxLoK6Rdy5, UYtHA0XyNB9C) with DnU3Rq9N5ala(roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'q\x95\xa8\xb7@\xd8<0S\xbf\xb8\\'), chr(0b11011 + 0o111) + chr(101) + chr(99) + chr(111) + '\144' + chr(1454 - 1353))('\165' + chr(0b1011001 + 0o33) + chr(0b110110 + 0o60) + chr(1077 - 1032) + chr(0b111000)))(LkZxLoK6Rdy5, roI3spqORKae(ES5oEprVxulp(b'L\xd9\xb0\x8a\t\xb45%h\x92'), '\x64' + chr(101) + chr(0b1100011) + chr(0b1010101 + 0o32) + chr(100) + chr(0b1100000 + 0o5))(chr(0b1110101) + '\164' + chr(0b1100110) + '\055' + chr(2451 - 2395))), roI3spqORKae(ES5oEprVxulp(b'Z'), chr(100) + '\x65' + chr(99) + '\x6f' + chr(100) + chr(3528 - 3427))(chr(0b1110101) + '\164' + chr(0b1100110) + '\x2d' + chr(0b111000))) as JpCcjX0oMY0G: bvK3iPUgzcCk = KIBj45E6_Ywf(JpCcjX0oMY0G.eoXknH7XUn7m(), SLVB2BPA_mIe, J4eG487sJbAu) uEIhuAGDSnxy = LNUKEwZDIbyb.OiapAM4bM0Ea(bvK3iPUgzcCk) for QYodcsDtoGq7 in uEIhuAGDSnxy[roI3spqORKae(ES5oEprVxulp(b'Z\xd4\xbf\xa9\t\xff<'), chr(6348 - 6248) + chr(101) + chr(99) + chr(0b100111 + 0o110) + '\x64' + chr(5385 - 5284))(chr(9492 - 9375) + chr(0b1110100) + '\146' + chr(45) + chr(0b111000))]: X_c34vTbvwfj[roI3spqORKae(ES5oEprVxulp(b'Z\xd4\xbf\xa9\t\xff<'), '\x64' + '\x65' + chr(0b101 + 0o136) + '\x6f' + chr(3433 - 3333) + chr(0b10101 + 0o120))('\165' + chr(12650 - 12534) + chr(102) + chr(1687 - 1642) + chr(0b11110 + 0o32))][QYodcsDtoGq7] = uEIhuAGDSnxy[roI3spqORKae(ES5oEprVxulp(b'Z\xd4\xbf\xa9\t\xff<'), chr(2972 - 2872) + chr(101) + chr(0b110111 + 0o54) + chr(0b1101111) + chr(0b1100100) + chr(0b1100101))(chr(0b1110101) + '\x74' + '\x66' + chr(1113 - 1068) + chr(981 - 925))][QYodcsDtoGq7] if tgRDJGlmEMgT == roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b'\\\xc6\x83\xbe3\xdd3;B\xb1\x91y'), chr(0b10001 + 0o123) + chr(0b1100101) + chr(99) + chr(0b1001111 + 0o40) + '\x64' + chr(101))(chr(9634 - 9517) + '\x74' + chr(4709 - 4607) + '\055' + chr(1840 - 1784))) and UYtHA0XyNB9C == roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b'x\xc4\xe9\x89\x14\xe0\x07a@\x8f\x83_'), chr(0b0 + 0o144) + chr(3670 - 3569) + chr(0b1100011) + chr(111) + chr(0b11 + 0o141) + chr(101))(chr(0b111001 + 0o74) + chr(0b1110100) + chr(102) + '\x2d' + chr(56))): v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'i\xcd\xbd\xda\r\xff2&k\x9d\x82H\xf0\xbb0aG\xcc\xfc\x84\\\xbb\x8d\xb36C\xde\xe1\xc3\xab\xeeej\xe0\x9d\x96\x9eU\xd1G\x08\xc0\xa3\x9d\x0c\xf7:8s\x8f\xd8'), chr(9219 - 9119) + '\x65' + chr(8750 - 8651) + chr(111) + chr(0b1100100) + chr(675 - 574))(chr(13684 - 13567) + chr(0b1010010 + 0o42) + '\146' + '\x2d' + chr(0b111000))) v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b''), chr(0b1100100) + chr(7152 - 7051) + chr(5703 - 5604) + chr(10086 - 9975) + chr(100) + chr(101))(chr(10504 - 10387) + chr(0b110 + 0o156) + '\x66' + '\x2d' + chr(0b10 + 0o66))) v8jsMqaYV6U2(mYHHDOuQ88eP(roI3spqORKae(ES5oEprVxulp(b'i\xc2\xb2\x9f\n\xe9\x7f\x06b\x8e\x9bD\xa3\xa7)z@\xd0'), chr(100) + chr(6482 - 6381) + chr(99) + '\157' + chr(100) + '\x65')('\165' + '\164' + '\146' + '\055' + chr(0b111000)))) v8jsMqaYV6U2(pPmkLCVA328e(roI3spqORKae(ES5oEprVxulp(b'a\xc7\xf1\x83\x16\xef\x7f$b\x8d\x83H\xa3\xa0`aF\xc6\xe1\x92\\\xbf\x87\xa2dQ\x8b\xe1\xd6\xb5\xeai}\xb3\x9d\x97\xd0R\x99DG\xd3\xf1\x83\x16\xef-vf\x8c\x86\x01\xf0\xa13p\\\xd0\xb2\x80\x15\xb6\x93\xf6eU\xce\xb1\xc7\xaf\xees.\xa6\x95\x9b\xca\x01\xceJM\xcf\xf1\x96\x18\xef15o\x95\x98J\xf0\xad/`\\\x83\xf3\x87\x0c\xf6\xdf\xb7xT\x8b\xf2\xd6\xb5\xf3ag\xae\xd4\x97\xcaI\xdcP\x08\xd3\xb4\x89\r\xe865s\x95\x99C\xa3\xf47|B\xcf\xb2\x96\x0c\xaa\x93\xaf8\x10\xed\xfe\xc1\xe7\xeao|\xa5\xd4\x91\xd0G\xd6PE\xc0\xa5\x93\x16\xf4svt\x99\x93\r'), chr(0b1100100) + chr(101) + chr(1920 - 1821) + '\x6f' + '\x64' + chr(101))(chr(0b110000 + 0o105) + chr(116) + chr(0b100111 + 0o77) + chr(45) + chr(0b11110 + 0o32)) + mYHHDOuQ88eP(roI3spqORKae(ES5oEprVxulp(b'@\xd5\xa5\x8a\n\xa0pyp\x95\x9dD\xfe\xb0.t@\xc6\xea\x82\x0f\xf4\x9c\xb9{\x1f\xea\xe1\xc3\xea\xd7e|\xad\x9d\x8b\xcdH\xd6L['), '\x64' + '\x65' + chr(0b1100011) + '\157' + chr(100) + chr(0b1100101))('\x75' + chr(116) + '\146' + chr(0b101101) + chr(0b101 + 0o63))) + roI3spqORKae(ES5oEprVxulp(b'\x06'), '\144' + chr(0b1001011 + 0o32) + '\x63' + chr(111) + chr(2351 - 2251) + '\x65')(chr(8397 - 8280) + chr(0b1110100) + '\x66' + chr(0b101 + 0o50) + chr(56)))) v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b''), '\144' + chr(0b1011100 + 0o11) + '\143' + chr(0b1101111) + chr(0b1100100) + chr(101))(chr(3270 - 3153) + chr(116) + chr(0b1100110) + '\055' + chr(2110 - 2054))) v8jsMqaYV6U2(pPmkLCVA328e(BgHMEB1mg1hJ(roI3spqORKae(ES5oEprVxulp(b'i\xc2\xb2\x9f\n\xe9\x7f"h\xdc\x82E\xb5\xf4\t{Z\xc6\xe0\x99\x19\xae'), '\x64' + chr(5274 - 5173) + chr(99) + '\157' + chr(5378 - 5278) + '\x65')(chr(0b101111 + 0o106) + chr(0b1101 + 0o147) + chr(4263 - 4161) + chr(1122 - 1077) + chr(2905 - 2849))) + roI3spqORKae(ES5oEprVxulp(b'\x08\x89\xbe\x8e\x11\xff-vs\x94\x97C\xf0\xb5#vK\xd0\xe1\x9e\x12\xbd\xdf\xa2~U\x8b\xd5\xfd\x86\xe9ev\xb5\x87\xd8\xffq\xf0\x0b\x06'), chr(100) + '\145' + chr(5179 - 5080) + '\157' + chr(8003 - 7903) + '\145')(chr(0b10 + 0o163) + chr(0b1110100) + '\x66' + chr(0b100010 + 0o13) + chr(56)))) if dpnNQe7yEs11(roI3spqORKae(ES5oEprVxulp(b'\x7f\xc8\xbd\x96Y\xee7?t\xdc\x97]\xa0\xf4.pK\xc7\xb2\x96\x1f\xb9\x9a\xa5e\x10\xdf\xfe\x93\xb3\xefe.\x89\x9a\x8c\xdbS\xd7G\\\x9e'), '\144' + chr(6158 - 6057) + '\143' + chr(0b1101111) + chr(4319 - 4219) + chr(101))(chr(0b1110101) + chr(0b1110100) + chr(102) + chr(0b100000 + 0o15) + chr(0b111000)), default=nzTpIcepk0o8(chr(0b0 + 0o60) + chr(0b1101111) + '\x30', 8)): roI3spqORKae(X_c34vTbvwfj, roI3spqORKae(ES5oEprVxulp(b'R\xc4\xe1\xb04\xef\x14ou\x93\xa1~'), chr(2686 - 2586) + chr(3357 - 3256) + '\x63' + chr(0b1101111) + chr(2295 - 2195) + chr(0b1100 + 0o131))(chr(117) + chr(116) + chr(0b1100110) + '\x2d' + chr(0b111000)))(roI3spqORKae(ES5oEprVxulp(b'I\xc2\xb2\x9f\n\xe9'), '\144' + chr(101) + chr(4412 - 4313) + '\157' + chr(0b100010 + 0o102) + chr(101))(chr(117) + chr(0b11101 + 0o127) + chr(0b1100110) + chr(45) + chr(0b10110 + 0o42)), {}) X_c34vTbvwfj[roI3spqORKae(ES5oEprVxulp(b'I\xc2\xb2\x9f\n\xe9'), chr(0b110001 + 0o63) + chr(5603 - 5502) + chr(0b1011010 + 0o11) + '\157' + chr(0b1100100) + chr(7935 - 7834))('\x75' + chr(0b1011111 + 0o25) + '\146' + '\055' + '\x38')][roI3spqORKae(ES5oEprVxulp(b'F\xc4\xa5\x8d\x16\xe84'), chr(0b1100100) + '\x65' + chr(0b1100011) + chr(0b1101111) + chr(100) + '\x65')(chr(4432 - 4315) + chr(0b10000 + 0o144) + chr(0b1001000 + 0o36) + chr(45) + chr(1400 - 1344))] = [roI3spqORKae(ES5oEprVxulp(b'\x02'), '\144' + chr(0b1100101) + chr(99) + chr(10839 - 10728) + chr(0b1100100) + '\145')(chr(0b10001 + 0o144) + chr(1053 - 937) + '\146' + chr(45) + chr(0b110 + 0o62))] v8jsMqaYV6U2(pPmkLCVA328e(roI3spqORKae(ES5oEprVxulp(b'i\xd1\xa1\xda\x11\xfb,va\x89\x9aA\xf0\xb5#vK\xd0\xe1\xd7\x08\xb5\xdf\xa2~U\x8b\xd8\xdd\xb3\xe2r`\xa5\x80\xd6\x9eu\xd6\x02F\xc0\xa3\x88\x16\xed\x7f7d\x9f\x93^\xa3\xf44z\x0e\xd0\xe2\x92\x1f\xb3\x99\xbfu\x10\xd8\xf8\xc7\xa2\xf4,.\xa5\x90\x91\xca\x01\xcdJM\x81'), chr(0b101010 + 0o72) + chr(0b1011110 + 0o7) + '\x63' + chr(0b1010010 + 0o35) + chr(100) + chr(0b1100101))(chr(0b1110101) + '\164' + chr(102) + chr(45) + chr(1105 - 1049)) + BgHMEB1mg1hJ(roI3spqORKae(ES5oEprVxulp(b'I\xc2\xb2\x9f\n\xe9q8b\x88\x81B\xa2\xbf'), chr(1187 - 1087) + chr(1662 - 1561) + chr(907 - 808) + '\157' + chr(0b100100 + 0o100) + chr(101))(chr(0b111110 + 0o67) + '\164' + chr(8953 - 8851) + chr(45) + '\070')) + roI3spqORKae(ES5oEprVxulp(b'\x08\xc7\xb8\x9f\x15\xfe\x7f9a\xdc\x92U\xb1\xa40;D\xd0\xfd\x99\\\xb5\x91\xb5s\x10\xdc\xf4\x93\xa0\xe2nk\xb2\x95\x8c\xdb\x01\xcdJM\x81\xb0\x8a\t\xb4'), '\x64' + '\x65' + chr(9359 - 9260) + '\x6f' + '\144' + '\145')('\x75' + '\164' + chr(0b1001011 + 0o33) + chr(0b101101) + chr(2237 - 2181)))) v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b''), chr(7490 - 7390) + '\145' + chr(0b111100 + 0o47) + chr(7614 - 7503) + '\144' + chr(0b101111 + 0o66))(chr(3501 - 3384) + chr(4060 - 3944) + '\x66' + chr(0b11010 + 0o23) + '\x38')) v8jsMqaYV6U2(pPmkLCVA328e(BgHMEB1mg1hJ(roI3spqORKae(ES5oEprVxulp(b'l\xc8\xa3\x9f\x1a\xee\x7f7d\x9f\x93^\xa3\xf44z\x0e\xd7\xfa\x92\\\xaa\x9e\xa4s^\xdf\xb1\xc3\xb5\xe8jk\xa3\x80'), '\144' + chr(2896 - 2795) + '\x63' + chr(0b1001100 + 0o43) + chr(0b1100100) + chr(0b1100101))(chr(0b1001111 + 0o46) + '\164' + chr(0b1011111 + 0o7) + chr(45) + chr(0b10111 + 0o41))) + roI3spqORKae(ES5oEprVxulp(b"\x06\x81\x85\x92\x10\xe9\x7f?t\xdc\x98B\xa4\xf4.pK\xc7\xf7\x93\\\xb3\x99\xf6o_\xde\xe3\x93\xa6\xf7p.\xb3\x84\x9d\xddH\xdfKM\xd2\xf1\x95\x0c\xee/#s\x8f\xda'\xf0\xf4`5Y\xcb\xfb\x94\x14\xfa\x88\xbfz\\\x8b\xf3\xd6\xe7\xe4o~\xa9\x91\x9c\x9eH\xd7VG\x81\xa5\x92\x1c\xba/$h\x96\x93N\xa4\xf4!sZ\xc6\xe0\xd7\x15\xae\xd8\xa56T\xc4\xff\xd6\xe7\xf5u`\xae\x9d\x96\xd9\x0f"), '\x64' + chr(10107 - 10006) + '\143' + chr(0b1101111) + chr(0b1001100 + 0o30) + chr(8915 - 8814))(chr(0b1110101) + chr(116) + chr(102) + '\x2d' + chr(2082 - 2026)))) if dpnNQe7yEs11(roI3spqORKae(ES5oEprVxulp(b'\x7f\xc8\xbd\x96Y\xee7?t\xdc\x97]\xa0\xf4.pK\xc7\xb2\x96\x1f\xb9\x9a\xa5e\x10\xdf\xfe\x93\xb3\xefe.\xb0\x95\x8a\xdbO\xcd\x02X\xd3\xbe\x90\x1c\xf9+i'), '\x64' + '\145' + chr(0b1100011) + chr(10129 - 10018) + chr(100) + chr(101))('\x75' + '\164' + chr(0b11001 + 0o115) + '\x2d' + '\070'), default=nzTpIcepk0o8(chr(1622 - 1574) + chr(111) + chr(0b110000), 8)): roI3spqORKae(X_c34vTbvwfj, roI3spqORKae(ES5oEprVxulp(b'R\xc4\xe1\xb04\xef\x14ou\x93\xa1~'), chr(0b1011101 + 0o7) + chr(0b110001 + 0o64) + chr(99) + chr(9423 - 9312) + chr(0b1100100) + chr(0b1100101))(chr(0b1110101) + chr(0b1110100) + chr(0b1100110) + '\x2d' + chr(0b111000)))(roI3spqORKae(ES5oEprVxulp(b'I\xc2\xb2\x9f\n\xe9'), chr(0b10101 + 0o117) + chr(0b100001 + 0o104) + chr(0b110011 + 0o60) + '\157' + chr(2183 - 2083) + '\x65')('\x75' + chr(6738 - 6622) + chr(0b1000010 + 0o44) + chr(0b10011 + 0o32) + '\070'), {}) X_c34vTbvwfj[roI3spqORKae(ES5oEprVxulp(b'I\xc2\xb2\x9f\n\xe9'), chr(0b1100100) + chr(0b1100101) + chr(9140 - 9041) + '\x6f' + '\144' + chr(101))(chr(5093 - 4976) + '\x74' + chr(2574 - 2472) + chr(45) + chr(56))][roI3spqORKae(ES5oEprVxulp(b'X\xd3\xbe\x90\x1c\xf9+'), '\x64' + chr(0b1100101) + '\143' + '\x6f' + '\144' + '\145')(chr(117) + chr(0b11101 + 0o127) + chr(102) + chr(0b101010 + 0o3) + chr(0b111000))] = roI3spqORKae(ES5oEprVxulp(b'k\xee\x9f\xae+\xd3\x1d\x03S\xb9'), chr(6322 - 6222) + chr(0b1100101) + chr(0b1010010 + 0o21) + chr(0b100111 + 0o110) + chr(0b111111 + 0o45) + '\x65')('\x75' + '\164' + '\x66' + '\055' + chr(0b1000 + 0o60)) v8jsMqaYV6U2(pPmkLCVA328e(roI3spqORKae(ES5oEprVxulp(b"i\xd1\xa1\xda\x11\xfb,vD\xb3\xb8y\x82\x9d\x02@z\xe6\xb2\x96\x1f\xb9\x9a\xa5e\x10\xdf\xfe\x93\xb3\xefe.\xb0\x95\x8a\xdbO\xcd\x02X\xd3\xbe\x90\x1c\xf9+x'\xa8\x99\r\xb3\xbc!{I\xc6\xb2\x83\x14\xbf\xdf\xb7uS\xce\xe2\xc0\xe7\xebex\xa5\x98\xd8\xd1S\x99PM\xd0\xa4\x9f\n\xee\x7f7d\x9f\x93^\xa3\xf44z\x0e"), chr(0b1010110 + 0o16) + chr(101) + chr(0b101000 + 0o73) + chr(111) + chr(0b11100 + 0o110) + chr(101))(chr(5096 - 4979) + '\x74' + chr(102) + '\055' + chr(1400 - 1344)) + roI3spqORKae(ES5oEprVxulp(b'G\xd5\xb9\x9f\x0b\xba/$h\x96\x93N\xa4\xa7l5K\xc7\xfb\x83\\\xae\x97\xb36'), '\x64' + chr(0b1100101) + '\143' + chr(6383 - 6272) + chr(0b1100100) + '\x65')('\165' + chr(2018 - 1902) + chr(0b1001 + 0o135) + chr(0b111 + 0o46) + chr(56)) + BgHMEB1mg1hJ(roI3spqORKae(ES5oEprVxulp(b'I\xc2\xb2\x9f\n\xe9q&u\x93\x9cH\xb3\xa0'), chr(100) + chr(0b1100101) + chr(99) + chr(0b111111 + 0o60) + chr(100) + chr(101))('\x75' + '\164' + '\146' + '\055' + chr(56))) + roI3spqORKae(ES5oEprVxulp(b'\x08\xc0\xbf\x9eY'), chr(0b1100 + 0o130) + chr(0b11100 + 0o111) + '\143' + chr(10366 - 10255) + '\144' + chr(5052 - 4951))('\x75' + chr(0b1010010 + 0o42) + '\146' + chr(0b1111 + 0o36) + chr(56)) + BgHMEB1mg1hJ(roI3spqORKae(ES5oEprVxulp(b'I\xc2\xb2\x9f\n\xe9q7k\x90\xa6_\xbf\xbe%vZ\xd0'), chr(0b1100100) + chr(0b101101 + 0o70) + chr(4265 - 4166) + '\157' + chr(0b1001100 + 0o30) + chr(4216 - 4115))('\165' + chr(0b1011011 + 0o31) + chr(0b1100110) + '\055' + chr(0b11011 + 0o35))) + roI3spqORKae(ES5oEprVxulp(b'\x08\xc7\xb8\x9f\x15\xfe,vh\x9a\xd6I\xa8\xb50e\x00\xc9\xe1\x98\x12\xfa\x90\xb8uU\x8b\xe6\xd6\xe7\xe0e`\xa5\x86\x99\xcaD\x99V@\xc4\xf1\x9b\t\xeaq'), chr(0b1100100) + chr(0b1100101) + chr(8618 - 8519) + chr(111) + chr(0b1000010 + 0o42) + chr(0b1100101))(chr(8950 - 8833) + chr(0b11110 + 0o126) + chr(102) + '\055' + chr(56)))) v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b''), chr(0b101100 + 0o70) + '\x65' + chr(0b1100011) + chr(0b1101111) + chr(0b1100100) + chr(101))(chr(11821 - 11704) + '\164' + chr(162 - 60) + chr(45) + '\070')) v8jsMqaYV6U2(mYHHDOuQ88eP(roI3spqORKae(ES5oEprVxulp(b'{\xd8\xa2\x8e\x1c\xf7\x7f\x04b\x8d\x83D\xa2\xb1-p@\xd7\xe1'), chr(0b110 + 0o136) + chr(0b1100101) + '\x63' + chr(0b1101111) + chr(0b111101 + 0o47) + chr(101))(chr(8478 - 8361) + '\164' + chr(0b1100110) + chr(1322 - 1277) + chr(0b1111 + 0o51)))) v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b''), chr(0b111 + 0o135) + '\145' + '\x63' + '\157' + chr(6102 - 6002) + '\x65')('\165' + '\164' + chr(0b110001 + 0o65) + chr(45) + chr(0b111000))) v8jsMqaYV6U2(mYHHDOuQ88eP(roI3spqORKae(ES5oEprVxulp(b'k\xce\xbc\x97\x16\xf4\x7f\x17P\xaf\xd6D\xbe\xa74t@\xc0\xf7\xd7\x08\xa3\x8f\xb3e\n'), chr(0b110111 + 0o55) + '\145' + chr(0b1100011) + chr(111) + '\x64' + '\x65')(chr(117) + '\x74' + chr(0b1100110) + '\x2d' + chr(56)))) v8jsMqaYV6U2(jEoL5UrCIzuU(roI3spqORKae(S_18PVoeW0oc.aws_preferred_instance_types, roI3spqORKae(ES5oEprVxulp(b'k\xd2\xbe\x9e#\xd0\x17`\x7f\xc5\xa2U'), '\x64' + chr(0b1100101) + chr(0b1100011) + '\157' + chr(0b1100100) + chr(0b1100101))(chr(0b1110101) + chr(4569 - 4453) + chr(6920 - 6818) + '\055' + chr(0b111000)))(), column_names=roI3spqORKae(H4NoA26ON7iG(S_18PVoeW0oc.instance_types.values())[nzTpIcepk0o8(chr(48) + '\157' + '\x30', 8)], roI3spqORKae(ES5oEprVxulp(b'[\xef\x89\xaf\n\xac(0d\xcf\x97\x1f'), chr(2476 - 2376) + chr(7391 - 7290) + chr(99) + chr(7195 - 7084) + '\144' + '\x65')(chr(8223 - 8106) + '\164' + chr(0b1100110) + '\055' + '\x38')))) v8jsMqaYV6U2(mYHHDOuQ88eP(roI3spqORKae(ES5oEprVxulp(b'k\xce\xbc\x97\x16\xf4\x7f\x17}\x89\x84H\xf0\xbd.fZ\xc2\xfc\x94\x19\xfa\x8b\xaffU\xd8\xab'), chr(2833 - 2733) + chr(0b1100101) + '\x63' + '\x6f' + chr(100) + chr(0b1000100 + 0o41))(chr(0b1110101) + chr(116) + chr(102) + '\x2d' + chr(0b111000)))) v8jsMqaYV6U2(jEoL5UrCIzuU(roI3spqORKae(S_18PVoeW0oc.azure_preferred_instance_types, roI3spqORKae(ES5oEprVxulp(b'k\xd2\xbe\x9e#\xd0\x17`\x7f\xc5\xa2U'), chr(100) + chr(101) + chr(0b1000011 + 0o40) + chr(0b11010 + 0o125) + chr(0b1100100) + chr(4512 - 4411))('\x75' + chr(9476 - 9360) + chr(0b1100110) + chr(0b101101) + chr(0b111000)))(), column_names=roI3spqORKae(H4NoA26ON7iG(S_18PVoeW0oc.instance_types.values())[nzTpIcepk0o8(chr(0b0 + 0o60) + chr(0b111100 + 0o63) + '\060', 8)], roI3spqORKae(ES5oEprVxulp(b'[\xef\x89\xaf\n\xac(0d\xcf\x97\x1f'), '\x64' + '\145' + chr(0b101010 + 0o71) + chr(0b1101111) + '\144' + '\x65')(chr(117) + chr(1976 - 1860) + chr(102) + '\x2d' + '\x38')))) v8jsMqaYV6U2(pPmkLCVA328e(mYHHDOuQ88eP(roI3spqORKae(ES5oEprVxulp(b'l\xc4\xb7\x9b\x0c\xf6+vn\x92\x85Y\xb1\xba#p\x0e\xd7\xeb\x87\x19\xe0'), chr(0b1001001 + 0o33) + chr(0b1100101) + chr(0b1100011) + chr(0b1101101 + 0o2) + chr(0b1010111 + 0o15) + chr(0b1100101))(chr(0b100011 + 0o122) + '\164' + chr(0b1100110) + '\x2d' + chr(0b10 + 0o66))) + roI3spqORKae(ES5oEprVxulp(b"\x08\xf5\xb9\x9fY\xf31%s\x9d\x98N\xb5\xf44l^\xc6\xb2\x8e\x13\xaf\xdf\xa5s\\\xce\xf2\xc7\xe7\xefe|\xa5\xd4\x8f\xd7M\xd5\x02I\xd1\xa1\x96\x00\xba+9'\x9d\x9aA\xf0\xb1.a\\\xda\xb2\x87\x13\xb3\x91\xa2e\x10\xc2\xff\x93"), chr(5184 - 5084) + chr(0b11001 + 0o114) + '\x63' + chr(1649 - 1538) + chr(0b1100100) + chr(1706 - 1605))('\x75' + chr(0b101110 + 0o106) + chr(0b1100110) + chr(45) + chr(56)) + roI3spqORKae(ES5oEprVxulp(b"Q\xce\xa4\x88Y\xfb/&'\x89\x98A\xb5\xa735W\xcc\xe7\xd7\x13\xac\x9a\xa4dY\xcf\xf4\x93\xae\xf3..\x93\x91\x9d\x9e"), '\144' + chr(0b1100101) + chr(99) + chr(111) + '\x64' + chr(0b1100101))(chr(117) + chr(116) + chr(0b111110 + 0o50) + chr(0b101101) + chr(1367 - 1311)) + mYHHDOuQ88eP(roI3spqORKae(ES5oEprVxulp(b'@\xd5\xa5\x8a\n\xa0pyp\x95\x9dD\xfe\xb0.t@\xc6\xea\x82\x0f\xf4\x9c\xb9{\x1f\xea\xc1\xfa\xea\xd4pk\xa3\x9d\x9e\xd7B\xd8VA\xce\xbf\xd7\x0f\xabqf)\xcc\xd9d\xbe\xa74t@\xc0\xf7\xda(\xa3\x8f\xb3e'), chr(100) + '\x65' + '\143' + '\157' + '\x64' + '\145')(chr(0b1110101) + chr(0b1110100) + '\x66' + chr(0b10111 + 0o26) + chr(0b11 + 0o65))) + roI3spqORKae(ES5oEprVxulp(b'\x08\xc7\xbe\x88Y\xf70$b\xdc\x9fC\xb6\xbb2xO\xd7\xfb\x98\x12\xf4'), chr(0b1011110 + 0o6) + '\145' + '\x63' + chr(0b1101111) + chr(5402 - 5302) + '\x65')(chr(3832 - 3715) + '\x74' + chr(0b1100110) + chr(0b101101) + chr(56)))) FWDUmk_5cuVa(S_18PVoeW0oc()) pP9INXzdjklw = xR5hL8LIHQcx(roI3spqORKae(ES5oEprVxulp(b'k\xc9\xbe\x95\n\xff\x7f7i\xdc\x9fC\xa3\xa0!{M\xc6\xb2\x83\x05\xaa\x9a\xf6p_\xd9\xb1\xca\xa8\xf2r.\xa1\x84\x88'), chr(0b110100 + 0o60) + chr(6911 - 6810) + '\143' + chr(111) + chr(7935 - 7835) + chr(0b1100101))('\165' + chr(12688 - 12572) + '\146' + chr(1099 - 1054) + '\070'), default=S_18PVoeW0oc.default_instance_type.cnJ4Wewue9ok, choices=H4NoA26ON7iG(S_18PVoeW0oc.instance_types)) j1czOTP7kCi8 = Pj9MVieutXKy if pP9INXzdjklw in roI3spqORKae(S_18PVoeW0oc.azure_preferred_instance_types, roI3spqORKae(ES5oEprVxulp(b'C\xc4\xa8\x89'), chr(6840 - 6740) + chr(9498 - 9397) + chr(0b1100011) + '\x6f' + chr(0b1100100) + chr(1230 - 1129))(chr(12452 - 12335) + chr(0b1110100) + chr(102) + chr(45) + chr(56)))(): j1czOTP7kCi8 = T7aZd__KwPkj X_c34vTbvwfj[roI3spqORKae(ES5oEprVxulp(b'Z\xc4\xb6\x93\x16\xf4>:H\x8c\x82D\xbf\xba3'), chr(0b1100100) + chr(101) + chr(0b101001 + 0o72) + '\x6f' + chr(0b1100100) + chr(101))(chr(12548 - 12431) + '\x74' + '\x66' + chr(252 - 207) + '\x38')] = Ov4KLivfl4p6({}) X_c34vTbvwfj[roI3spqORKae(ES5oEprVxulp(b'Z\xc4\xb6\x93\x16\xf4>:H\x8c\x82D\xbf\xba3'), chr(0b1100100) + chr(0b1010010 + 0o23) + chr(0b1100011) + chr(0b1101111) + chr(5572 - 5472) + '\145')('\x75' + chr(0b1110100) + '\146' + chr(0b101101) + chr(0b101010 + 0o16))][j1czOTP7kCi8] = Ov4KLivfl4p6({}) roI3spqORKae(X_c34vTbvwfj[roI3spqORKae(ES5oEprVxulp(b'Z\xc4\xb6\x93\x16\xf4>:H\x8c\x82D\xbf\xba3'), chr(0b101011 + 0o71) + '\x65' + chr(0b1100011) + chr(4256 - 4145) + chr(0b11111 + 0o105) + chr(0b1000010 + 0o43))(chr(117) + chr(3731 - 3615) + chr(0b1111 + 0o127) + chr(45) + chr(0b11001 + 0o37))][j1czOTP7kCi8], roI3spqORKae(ES5oEprVxulp(b'R\xc4\xe1\xb04\xef\x14ou\x93\xa1~'), chr(0b1100100) + chr(0b1011111 + 0o6) + '\143' + chr(159 - 48) + chr(0b1100100) + '\145')('\x75' + '\164' + '\x66' + chr(729 - 684) + '\070'))(roI3spqORKae(ES5oEprVxulp(b'[\xd8\xa2\x8e\x1c\xf7\r3v\x89\x9f_\xb5\xb9%{Z\xd0'), chr(5642 - 5542) + '\145' + '\x63' + chr(353 - 242) + '\x64' + chr(7948 - 7847))(chr(117) + chr(0b10110 + 0o136) + chr(102) + chr(0b11100 + 0o21) + '\x38'), {}) roI3spqORKae(X_c34vTbvwfj[roI3spqORKae(ES5oEprVxulp(b'Z\xc4\xb6\x93\x16\xf4>:H\x8c\x82D\xbf\xba3'), chr(0b1100100) + chr(101) + chr(0b101101 + 0o66) + '\157' + '\144' + chr(0b111000 + 0o55))('\x75' + chr(116) + chr(0b1100110) + chr(0b11001 + 0o24) + '\x38')][j1czOTP7kCi8][roI3spqORKae(ES5oEprVxulp(b'[\xd8\xa2\x8e\x1c\xf7\r3v\x89\x9f_\xb5\xb9%{Z\xd0'), chr(0b110010 + 0o62) + chr(5001 - 4900) + chr(0b1100011) + '\x6f' + '\144' + '\x65')(chr(0b1100101 + 0o20) + chr(8326 - 8210) + chr(0b1000010 + 0o44) + chr(0b101000 + 0o5) + chr(1062 - 1006))], roI3spqORKae(ES5oEprVxulp(b'R\xc4\xe1\xb04\xef\x14ou\x93\xa1~'), chr(0b100110 + 0o76) + chr(101) + '\143' + chr(0b1101111) + chr(0b1000011 + 0o41) + chr(0b1110 + 0o127))('\x75' + chr(0b10011 + 0o141) + chr(3534 - 3432) + chr(1280 - 1235) + '\x38'))(roI3spqORKae(ES5oEprVxulp(b'\x02'), chr(0b1100100) + '\145' + chr(99) + chr(10743 - 10632) + chr(0b1100100) + '\145')(chr(117) + chr(116) + '\x66' + chr(0b101101) + chr(0b111000 + 0o0)), {}) X_c34vTbvwfj[roI3spqORKae(ES5oEprVxulp(b'Z\xc4\xb6\x93\x16\xf4>:H\x8c\x82D\xbf\xba3'), chr(0b101010 + 0o72) + chr(101) + chr(99) + chr(0b1101111) + '\144' + '\145')('\165' + '\x74' + chr(102) + chr(0b1111 + 0o36) + chr(841 - 785))][j1czOTP7kCi8][roI3spqORKae(ES5oEprVxulp(b'[\xd8\xa2\x8e\x1c\xf7\r3v\x89\x9f_\xb5\xb9%{Z\xd0'), chr(0b1100100) + chr(101) + '\x63' + chr(10934 - 10823) + '\x64' + chr(1233 - 1132))('\165' + chr(0b1110100) + chr(931 - 829) + '\055' + chr(56))][roI3spqORKae(ES5oEprVxulp(b'\x02'), chr(100) + '\x65' + chr(0b100010 + 0o101) + '\x6f' + chr(100) + chr(270 - 169))('\165' + '\164' + chr(0b101100 + 0o72) + chr(45) + chr(0b111000))][roI3spqORKae(ES5oEprVxulp(b'A\xcf\xa2\x8e\x18\xf4<3S\x85\x86H'), '\144' + chr(0b1100101) + chr(0b1100011) + '\157' + chr(6616 - 6516) + '\145')(chr(0b1110101) + chr(116) + chr(0b1100110) + '\055' + chr(0b110010 + 0o6))] = pP9INXzdjklw X_c34vTbvwfj[roI3spqORKae(ES5oEprVxulp(b'Z\xd4\xbf\xa9\t\xff<'), '\144' + chr(101) + '\143' + chr(0b110111 + 0o70) + chr(6938 - 6838) + '\145')('\165' + chr(6093 - 5977) + '\146' + '\055' + '\x38')][roI3spqORKae(ES5oEprVxulp(b'L\xc8\xa2\x8e\x0b\xf3=#s\x95\x99C'), '\x64' + chr(0b110100 + 0o61) + '\x63' + chr(111) + chr(100) + chr(0b1100010 + 0o3))('\x75' + chr(116) + chr(0b1100110) + chr(0b100110 + 0o7) + chr(0b111 + 0o61))] = roI3spqORKae(ES5oEprVxulp(b'}\xc3\xa4\x94\r\xef'), chr(100) + chr(0b1001100 + 0o31) + '\143' + chr(0b100101 + 0o112) + '\144' + '\x65')('\x75' + chr(0b1110100) + chr(185 - 83) + '\055' + chr(0b111000)) X_c34vTbvwfj[roI3spqORKae(ES5oEprVxulp(b'Z\xd4\xbf\xa9\t\xff<'), chr(100) + chr(7031 - 6930) + chr(0b1011111 + 0o4) + '\x6f' + chr(6418 - 6318) + chr(101))('\165' + chr(0b1110100) + '\146' + chr(45) + chr(2209 - 2153))][roI3spqORKae(ES5oEprVxulp(b'Z\xc4\xbd\x9f\x18\xe9:'), '\144' + chr(0b1100101) + chr(99) + '\x6f' + chr(100) + '\x65')('\165' + '\164' + chr(0b101010 + 0o74) + chr(0b101101 + 0o0) + chr(0b110110 + 0o2))] = roI3spqORKae(ES5oEprVxulp(b'\x19\x97\xff\xcaM'), chr(3814 - 3714) + '\145' + '\x63' + chr(0b1001101 + 0o42) + '\x64' + chr(101))(chr(0b1110101) + chr(0b111001 + 0o73) + chr(0b10 + 0o144) + chr(0b11010 + 0o23) + '\070') v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b''), chr(0b1100100) + chr(0b1100101) + '\x63' + '\157' + chr(0b1100100) + '\x65')(chr(0b1110101) + '\164' + chr(0b1011101 + 0o11) + chr(1258 - 1213) + '\x38')) v8jsMqaYV6U2(mYHHDOuQ88eP() + roI3spqORKae(ES5oEprVxulp(b'\x02\x8b\xfb\xda>\xff13u\x9d\x82D\xbe\xb3`'), chr(0b1100100) + '\x65' + chr(681 - 582) + '\157' + chr(6065 - 5965) + '\145')('\x75' + '\x74' + chr(102) + chr(0b101101) + chr(0b110000 + 0o10)) + Dr1mRY07Mot_() + mYHHDOuQ88eP() + roI3spqORKae(ES5oEprVxulp(b'\x08\xe0\xa1\x8aY\xce:;w\x90\x97Y\xb5\xfan;\x0e\x89\xb8\xdd'), chr(100) + chr(2413 - 2312) + chr(99) + '\x6f' + chr(6861 - 6761) + '\145')('\165' + '\164' + chr(3758 - 3656) + '\x2d' + chr(2512 - 2456)) + vPE5JUmMJxDj()) with DnU3Rq9N5ala(roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'q\x95\xa8\xb7@\xd8<0S\xbf\xb8\\'), chr(3354 - 3254) + chr(2725 - 2624) + chr(0b1100011) + chr(0b1001 + 0o146) + chr(1197 - 1097) + chr(0b1100101))('\x75' + chr(0b111100 + 0o70) + chr(102) + chr(0b10011 + 0o32) + chr(106 - 50)))(SLVB2BPA_mIe, roI3spqORKae(ES5oEprVxulp(b'L\xd9\xb0\x8a\t\xb45%h\x92'), '\x64' + chr(101) + chr(0b1100011) + chr(7424 - 7313) + chr(0b1100100) + chr(0b1100101))(chr(0b1110101) + chr(116) + '\x66' + '\055' + chr(0b110110 + 0o2))), roI3spqORKae(ES5oEprVxulp(b'_'), '\x64' + '\x65' + chr(0b1100011) + chr(0b1100000 + 0o17) + '\x64' + '\x65')(chr(9514 - 9397) + chr(0b1110100) + chr(0b1100110) + chr(0b1 + 0o54) + chr(0b0 + 0o70))) as Ziwnpbm4Z_Ye: roI3spqORKae(Ziwnpbm4Z_Ye, roI3spqORKae(ES5oEprVxulp(b'E\xcd\xe1\x92\x11\xea)gK\x8c\x87\x1f'), chr(291 - 191) + chr(0b1100101) + chr(3505 - 3406) + chr(2712 - 2601) + '\144' + chr(0b1100101))('\x75' + '\164' + '\x66' + chr(0b101101) + chr(0b111000)))(MY03ioefkAzT(roI3spqORKae(LNUKEwZDIbyb, roI3spqORKae(ES5oEprVxulp(b'r\xcb\xb6\x96\x14\xf7g#b\x92\x9dn'), chr(0b1100100) + '\x65' + chr(0b1100011) + chr(0b111111 + 0o60) + '\x64' + chr(101))('\x75' + '\x74' + chr(0b1100110) + '\055' + chr(0b11000 + 0o40)))(X_c34vTbvwfj, indent=nzTpIcepk0o8(chr(48) + chr(111) + '\x32', 0o10))) + roI3spqORKae(ES5oEprVxulp(b'"'), chr(0b1100100) + chr(0b1011011 + 0o12) + chr(3887 - 3788) + chr(0b100110 + 0o111) + '\x64' + chr(0b110011 + 0o62))('\165' + chr(116) + chr(0b1011000 + 0o16) + chr(1780 - 1735) + chr(0b10010 + 0o46))) roI3spqORKae(GzPN4ExNnJkz, roI3spqORKae(ES5oEprVxulp(b'`\xf5\x82\xce\x01\xfd\x189m\x93\xa3\x18'), chr(0b10110 + 0o116) + '\145' + '\x63' + chr(0b1001101 + 0o42) + chr(0b1100100) + chr(0b1100101))(chr(8636 - 8519) + '\x74' + chr(0b1100110) + '\x2d' + chr(56)))(roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'q\x95\xa8\xb7@\xd8<0S\xbf\xb8\\'), chr(0b110010 + 0o62) + chr(0b1100101) + chr(3282 - 3183) + chr(0b1011111 + 0o20) + chr(100) + chr(101))('\x75' + chr(0b1110100) + chr(0b1100110) + chr(0b101101) + chr(0b111000)))(SLVB2BPA_mIe, roI3spqORKae(ES5oEprVxulp(b'L\xd9\xb0\x8a\t\xb45%h\x92'), '\x64' + chr(101) + chr(0b1100011) + chr(3338 - 3227) + chr(7767 - 7667) + '\145')(chr(0b1110101) + chr(0b1110100) + chr(1902 - 1800) + '\055' + chr(56)))) v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b''), chr(0b1011011 + 0o11) + chr(0b1100101) + chr(99) + chr(0b1010010 + 0o35) + chr(6775 - 6675) + chr(101))(chr(0b1110101) + chr(0b1110100) + '\146' + '\x2d' + chr(0b111000))) v8jsMqaYV6U2(pPmkLCVA328e(roI3spqORKae(ES5oEprVxulp(b"q\xce\xa4\x88Y\xfb/&'\x8f\x86H\xb3\xbd&|M\xc2\xe6\x9e\x13\xb4\xdf\xbewC\x8b\xf3\xd6\xa2\xe9 y\xb2\x9d\x8c\xcaD\xd7\x02\\\xce\xf1\x8e\x11\xffU2\x7f\x9d\x86]\xfe\xbe3z@\x83\xf4\x9e\x10\xbf\xd1\xf6O_\xde\xb1\xd0\xa6\xe9 }\xb0\x91\x9b\xd7G\xc0\x02E\xce\xa3\x9fY\xfb/&'\x93\x86Y\xb9\xbb.f\x0e\xc1\xeb\xd7\x19\xbe\x96\xa2\x7f^\xcc\xb1\xc7\xaf\xees.\xa6\x9d\x94\xdb+\xddKZ\xc4\xb2\x8e\x15\xe3\x7f~t\x99\x93\r\xb8\xa04e]\x99\xbd\xd8\x0b\xb3\x94\xbf8T\xc5\xf0\xdd\xa2\xffu}\xee\x97\x97\xd3\x0e\xfdG^\xc4\xbd\x95\t\xff-{W\x93\x84Y\xb1\xb8`sA\xd1\xb2\x94\x13\xb7\x8f\xbasD\xce\x9b\xd7\xa8\xe4uc\xa5\x9a\x8c\xdfU\xd0MF\x88\xff"), chr(0b1001111 + 0o25) + chr(101) + chr(3651 - 3552) + '\x6f' + '\x64' + chr(101))(chr(0b1110101) + chr(116) + '\x66' + '\x2d' + chr(0b11000 + 0o40)) + (roI3spqORKae(ES5oEprVxulp(b'\x08\x81\x9f\x95\r\xff\x7f"o\x9d\x82\r\xa7\xbd4}A\xd6\xe6\xd7\x1d\xb4\xdf\xbfx@\xde\xe5\x93\xa6\xe9d.\xaf\x81\x8c\xceT\xcd\x02[\xd1\xb4\x99\x10\xfc65f\x88\x9fB\xbe\xf8JlA\xd6\xe0\xd7\x1d\xaa\x8f\xf6uQ\xc5\xb1\xdc\xa9\xeby.\xa2\x91\xd8\xdcT\xd0N\\\x81\xb0\x89Y\xfb1vF\xac\xa6a\x95\x80`z@\x83\xe6\x9f\x19\xfa\x8c\xafeD\xce\xfc\x9d\xe7\xa7Ta\xe0\x84\x8d\xdcM\xd0Q@\x81\xb8\x8eY\xee0\\s\x94\x93\r\x94\x9a\x01{K\xdb\xe7\x84\\\xb9\x90\xbb{E\xc5\xf8\xc7\xbe\xab w\xaf\x81\xd8\xd3T\xcaV\x08\xc7\xb8\x88\n\xee\x7f%w\x99\x95D\xb6\xad`lA\xd6\xe0\xd7\x15\xb4\x8f\xa3bC\x8b\xf0\xdd\xa3\xa7o{\xb4\x84\x8d\xcaR\x97('), '\144' + chr(0b101110 + 0o67) + chr(7170 - 7071) + '\x6f' + '\144' + '\145')('\x75' + chr(5460 - 5344) + '\x66' + '\x2d' + '\070') if not (roI3spqORKae(ES5oEprVxulp(b'A\xcf\xa1\x8f\r\xc9/3d'), chr(6844 - 6744) + chr(0b11110 + 0o107) + chr(3960 - 3861) + chr(0b1101111) + '\x64' + '\145')(chr(0b1110101) + chr(0b1110100) + chr(5504 - 5402) + '\055' + chr(0b111000)) in X_c34vTbvwfj and roI3spqORKae(ES5oEprVxulp(b'G\xd4\xa5\x8a\x0c\xee\x0c&b\x9f'), chr(100) + chr(101) + '\x63' + '\x6f' + chr(0b1000 + 0o134) + chr(101))(chr(3298 - 3181) + chr(5606 - 5490) + chr(6842 - 6740) + chr(0b101101) + chr(56)) in X_c34vTbvwfj) else roI3spqORKae(ES5oEprVxulp(b''), chr(1532 - 1432) + '\145' + '\143' + chr(0b111011 + 0o64) + '\x64' + chr(0b1000001 + 0o44))(chr(0b1110101) + chr(7242 - 7126) + '\x66' + '\x2d' + chr(0b100111 + 0o21))))) v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b''), '\144' + chr(0b1011 + 0o132) + '\143' + chr(0b100010 + 0o115) + chr(0b1100100) + '\x65')(chr(0b1000010 + 0o63) + chr(3514 - 3398) + chr(0b1011110 + 0o10) + '\055' + '\x38')) for z08tK4aDOZMt in (roI3spqORKae(ES5oEprVxulp(b'[\xd3\xb2'), chr(0b1100100) + '\x65' + chr(6627 - 6528) + '\157' + chr(0b101001 + 0o73) + '\145')('\x75' + chr(6284 - 6168) + chr(0b11001 + 0o115) + chr(1565 - 1520) + '\070'), roI3spqORKae(ES5oEprVxulp(b'\\\xc4\xa2\x8e'), '\x64' + '\145' + chr(0b1100011) + '\x6f' + chr(9597 - 9497) + chr(4190 - 4089))(chr(0b1110101) + chr(0b1110100) + chr(0b1100110) + chr(45) + chr(56)), roI3spqORKae(ES5oEprVxulp(b'Z\xc4\xa2\x95\x0c\xe8<3t'), chr(5704 - 5604) + chr(6176 - 6075) + '\x63' + chr(1961 - 1850) + chr(0b1100100) + chr(101))(chr(0b101100 + 0o111) + chr(6467 - 6351) + chr(102) + '\x2d' + chr(56))): try: roI3spqORKae(aHUqKstZLeS6, roI3spqORKae(ES5oEprVxulp(b'E\xca\xb5\x93\x0b'), chr(0b1000001 + 0o43) + '\145' + chr(0b1100011) + chr(0b1101111) + chr(100) + '\x65')('\x75' + chr(6432 - 6316) + '\146' + '\x2d' + chr(56)))(roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'q\x95\xa8\xb7@\xd8<0S\xbf\xb8\\'), '\144' + chr(0b1100101) + '\143' + chr(0b1110 + 0o141) + chr(3770 - 3670) + chr(0b1001110 + 0o27))('\x75' + chr(0b1110100) + chr(0b1111 + 0o127) + '\x2d' + '\070'))(SLVB2BPA_mIe, z08tK4aDOZMt)) roI3spqORKae(GzPN4ExNnJkz, roI3spqORKae(ES5oEprVxulp(b'`\xf5\x82\xce\x01\xfd\x189m\x93\xa3\x18'), '\144' + '\x65' + chr(4913 - 4814) + '\x6f' + chr(3497 - 3397) + chr(0b100001 + 0o104))(chr(0b1010110 + 0o37) + chr(116) + '\x66' + '\x2d' + chr(56)))(roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'q\x95\xa8\xb7@\xd8<0S\xbf\xb8\\'), chr(0b1001101 + 0o27) + '\x65' + chr(5692 - 5593) + chr(0b1101111) + '\x64' + '\x65')('\165' + chr(0b1110100) + '\x66' + chr(0b101101) + '\070'))(SLVB2BPA_mIe, z08tK4aDOZMt, roI3spqORKae(ES5oEprVxulp(b''), chr(4312 - 4212) + '\x65' + chr(0b100 + 0o137) + chr(0b110100 + 0o73) + '\x64' + chr(1528 - 1427))('\165' + '\164' + chr(0b1100110) + chr(574 - 529) + '\x38'))) except UtiWT6f6p9yZ: roI3spqORKae(bpyfpu4kTbwL.stderr, roI3spqORKae(ES5oEprVxulp(b'E\xcd\xe1\x92\x11\xea)gK\x8c\x87\x1f'), chr(5151 - 5051) + chr(5616 - 5515) + '\143' + chr(0b1010100 + 0o33) + '\x64' + '\145')('\165' + '\164' + chr(0b1010111 + 0o17) + chr(0b101010 + 0o3) + '\070'))(roI3spqORKae(ES5oEprVxulp(b'}\xcf\xb0\x98\x15\xff\x7f"h\xdc\x95_\xb5\xb54p\x0e\xd0\xe7\x95\x18\xb3\x8d\xb3uD\xc4\xe3\xca\xe7\xa2s!\xe5\x87'), chr(100) + chr(0b1100101) + chr(99) + chr(0b1101111) + chr(5218 - 5118) + chr(101))(chr(117) + chr(0b1110100) + '\x66' + chr(0b101101) + chr(856 - 800)) % (SLVB2BPA_mIe, z08tK4aDOZMt)) roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'r\xd4\xa3\x90\x1a\xcf\x13gt\x8f\xb7\x15'), chr(4075 - 3975) + chr(0b1100101) + '\x63' + chr(607 - 496) + chr(7854 - 7754) + chr(3408 - 3307))(chr(117) + '\164' + chr(102) + chr(0b101101) + '\x38'))(nzTpIcepk0o8('\060' + chr(111) + chr(0b10011 + 0o36), 8)) NfXDWgc34_08 = [roI3spqORKae(ES5oEprVxulp(b'E\xc0\xb8\x94'), '\144' + chr(0b1100 + 0o131) + '\143' + chr(0b11001 + 0o126) + '\x64' + chr(101))('\x75' + chr(116) + chr(0b1100110) + '\055' + chr(0b111000))] if UYtHA0XyNB9C == roI3spqORKae(ES5oEprVxulp(b'X\xc0\xa3\x9b\x15\xf6::n\x86\x93I'), '\144' + '\145' + chr(0b1000011 + 0o40) + chr(0b1101111) + '\x64' + '\145')('\165' + chr(0b111 + 0o155) + chr(9702 - 9600) + chr(45) + '\x38'): NfXDWgc34_08 = [roI3spqORKae(ES5oEprVxulp(b'E\xc0\xb8\x94'), '\144' + chr(0b1100100 + 0o1) + chr(5169 - 5070) + chr(3796 - 3685) + '\144' + '\x65')(chr(0b1001110 + 0o47) + chr(0b1110100) + chr(102) + chr(45) + '\x38'), roI3spqORKae(ES5oEprVxulp(b'X\xd3\xbe\x99\x1c\xe9,'), '\x64' + chr(0b1100101) + chr(99) + '\x6f' + '\144' + '\x65')('\x75' + '\164' + chr(1165 - 1063) + chr(1583 - 1538) + '\x38'), roI3spqORKae(ES5oEprVxulp(b'X\xce\xa2\x8e\t\xe805b\x8f\x85'), chr(100) + '\x65' + '\x63' + '\157' + chr(0b11000 + 0o114) + '\145')('\165' + chr(9291 - 9175) + chr(0b1100110) + '\055' + chr(56))] elif UYtHA0XyNB9C == roI3spqORKae(ES5oEprVxulp(b'[\xc2\xb0\x8e\r\xff-{w\x8e\x99N\xb5\xa738I\xc2\xe6\x9f\x19\xa8'), chr(6817 - 6717) + chr(5913 - 5812) + chr(1076 - 977) + chr(0b1101111) + '\144' + chr(0b10000 + 0o125))('\165' + chr(116) + chr(102) + '\x2d' + chr(0b110000 + 0o10)): NfXDWgc34_08 = [roI3spqORKae(ES5oEprVxulp(b'E\xc0\xb8\x94'), '\144' + chr(5586 - 5485) + chr(0b0 + 0o143) + '\157' + '\144' + chr(0b1100101))('\165' + chr(0b10000 + 0o144) + '\x66' + chr(45) + '\x38'), roI3spqORKae(ES5oEprVxulp(b'[\xc2\xb0\x8e\r\xff-'), chr(100) + chr(2744 - 2643) + '\143' + chr(0b1101111) + chr(0b1100100) + chr(0b110101 + 0o60))(chr(0b1110010 + 0o3) + chr(0b1110100) + '\x66' + chr(45) + chr(0b100011 + 0o25)), roI3spqORKae(ES5oEprVxulp(b'E\xc0\xa1'), '\144' + chr(0b1100101) + chr(0b1100011) + chr(111) + '\x64' + '\145')(chr(4853 - 4736) + chr(0b100000 + 0o124) + chr(0b1100110) + chr(0b1111 + 0o36) + chr(2099 - 2043)), roI3spqORKae(ES5oEprVxulp(b'X\xd3\xbe\x99\x1c\xe9,'), '\x64' + chr(0b1100101) + '\x63' + chr(0b1001001 + 0o46) + chr(0b10100 + 0o120) + chr(101))(chr(0b1110101) + '\x74' + '\146' + '\x2d' + chr(0b101000 + 0o20)), roI3spqORKae(ES5oEprVxulp(b'X\xce\xa2\x8e\t\xe805b\x8f\x85'), chr(0b110000 + 0o64) + '\145' + '\x63' + chr(0b10000 + 0o137) + '\144' + chr(101))(chr(0b11000 + 0o135) + chr(116) + chr(0b1001001 + 0o35) + chr(45) + chr(0b111000))] GzPN4ExNnJkz += dKMnqMmiK163(LkZxLoK6Rdy5, X_c34vTbvwfj, tgRDJGlmEMgT, GWQzWdamHjPc, jBq_glddEq92, WYvBKtxzsZ7P, gIdOv3Gp5wrn, ZjZz6c8Y1P3G, UYtHA0XyNB9C, description=roI3spqORKae(ES5oEprVxulp(b'\x14\x80\xfc\xd7Y\xd31%b\x8e\x82\r\xb1\xf4$p]\xc0\xe0\x9e\x0c\xae\x96\xb9x\x10\xc4\xf7\x93\xbe\xe8u|\xe0\x95\x88\xce\x01\xd1GZ\xc4\xf1\xd7T\xa4'), '\144' + chr(5814 - 5713) + chr(0b111010 + 0o51) + '\x6f' + '\x64' + chr(101))(chr(117) + '\x74' + '\x66' + chr(0b10000 + 0o35) + chr(0b111 + 0o61)), entry_points=NfXDWgc34_08) v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'k\xd3\xb4\x9b\r\xff;va\x95\x9aH\xa3\xee'), '\144' + chr(0b1100101) + chr(4853 - 4754) + chr(111) + '\144' + '\x65')('\x75' + chr(116) + chr(5658 - 5556) + chr(0b10011 + 0o32) + chr(0b111000))) for FxZHtXEolYsL in V3OlOVg98A85(GzPN4ExNnJkz): v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'!'), chr(100) + chr(0b1010111 + 0o16) + '\143' + chr(0b100110 + 0o111) + '\x64' + chr(0b1100101))('\x75' + chr(0b1100011 + 0o21) + chr(102) + '\x2d' + chr(0b100011 + 0o25)), FxZHtXEolYsL) v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'"'), chr(5783 - 5683) + '\145' + chr(0b111001 + 0o52) + chr(0b110 + 0o151) + chr(9229 - 9129) + '\x65')(chr(0b1001100 + 0o51) + chr(116) + chr(0b100011 + 0o103) + chr(0b0 + 0o55) + '\070') + pPmkLCVA328e(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b"i\xd1\xa1\xda\x1d\xf3-3d\x88\x99_\xa9\xf4#gK\xc2\xe6\x92\x18\xfb\xdf\xf6EU\xce\x9b\xdb\xb3\xf3p}\xfa\xdb\xd7\xc9H\xd2K\x06\xc5\xbf\x9b\x17\xff'#t\xd2\x95B\xbd\xfb\x04pX\xc6\xfe\x98\x0c\xbf\x8d\xfbF_\xd9\xe5\xd2\xab\xa7fa\xb2\xd4\x8c\xcbU\xd6PA\xc0\xbd\x89Y\xf51vo\x93\x81\r\xa4\xbb`xA\xc7\xfb\x91\x05\xfa\x8b\xbesC\xce\xb1\xd5\xae\xebe}\xec\xfe\x97\xcc\x01\xcbWF\x81\xf3\x9e\x01\xba=#n\x90\x92\r\xab\xba=7\x0e\xcc\xe0\xd7^\xbe\x87\xf6tE\xc2\xfd\xd7\xe7\xaa-m\xb2\x91\x99\xcaD\x94CX\xd1\xf1\x81\x17\xe7}vp\x94\x9fA\xb5\xf4,zI\xc4\xf7\x93\\\xb3\x91\xf6aY\xdf\xf9\x93\xa3\xff."), '\144' + '\145' + chr(0b1100011) + '\x6f' + '\x64' + chr(4018 - 3917))(chr(0b1110101) + chr(12391 - 12275) + '\x66' + chr(807 - 762) + chr(0b111000)), roI3spqORKae(ES5oEprVxulp(b'Y\x92\xe2\xb1>\xa999V\xa3\xb5g'), '\144' + chr(101) + '\x63' + chr(111) + chr(8250 - 8150) + '\x65')(chr(117) + '\x74' + chr(0b1100110) + chr(1274 - 1229) + chr(56)))(n=SLVB2BPA_mIe)) + roI3spqORKae(ES5oEprVxulp(b'"'), chr(4519 - 4419) + '\x65' + chr(0b1100011) + chr(1074 - 963) + '\x64' + '\x65')(chr(4948 - 4831) + chr(116) + '\146' + '\055' + chr(0b101010 + 0o16))) v8jsMqaYV6U2(pPmkLCVA328e(roI3spqORKae(ES5oEprVxulp(b'z\xd4\xbf\x94\x10\xf48vs\x94\x93\r\x94\x9a\x01{K\xdb\xe7\x84\\\xb8\x8a\xbfzT\x8b\xe4\xc7\xae\xebiz\xb9\xd4\x8f\xd7M\xd5\x02K\xd3\xb4\x9b\r\xff\x7f7i\xdc\x93U\xb5\xb75aO\xc1\xfe\x92\\\xb5\x91\xf6bX\xce\xb1\xf7\x89\xc6nk\xb8\x81\x8b\x9eQ\xd5C\\\xc7\xbe\x88\x14\xb4\x7fvF\x92\x8f\r\xb6\xbd,p]\x83\xf4\x98\t\xb4\x9b\xf6\x7f^\x8b\xe5\xdb\xa2\xa7'), chr(972 - 872) + chr(101) + chr(0b11001 + 0o112) + '\x6f' + chr(0b10 + 0o142) + chr(101))('\165' + chr(0b1110100) + chr(0b1100110) + '\055' + chr(580 - 524)) + mYHHDOuQ88eP() + roI3spqORKae(ES5oEprVxulp(b'Z\xc4\xa2\x95\x0c\xe8<3t'), '\x64' + chr(101) + chr(5260 - 5161) + '\x6f' + '\144' + chr(0b1100101))('\x75' + chr(0b1011011 + 0o31) + '\x66' + '\055' + '\070') + vPE5JUmMJxDj() + roI3spqORKae(ES5oEprVxulp(b"\x08\xc5\xb8\x88\x1c\xf9+9u\x85\xd6Z\xb9\xb8,5L\xc6\xb2\x82\x0c\xb6\x90\xb7rU\xcf\xb1\xc0\xa8\xa7tf\xa1\x80\xd8\xcaI\xdc[\x08\xd6\xb8\x96\x15\xba=3'\x8c\x84H\xa3\xb1.a\x0e\xca\xfc\xd7\x08\xb2\x9a\xf6d_\xc4\xe5\x93\xa3\xeerk\xa3\x80\x97\xccX\x99U@\xc4\xbf\xda\r\xf2:vb\x84\x93N\xa5\xa0!wB\xc6\xb2\x9e\x0f\xfa\x8d\xa3x\x1e"), '\x64' + chr(101) + chr(0b1010 + 0o131) + chr(111) + chr(7637 - 7537) + chr(0b1100101))('\165' + '\164' + chr(9150 - 9048) + chr(0b101101) + '\x38')))
dnanexus/dx-toolkit
src/python/dxpy/utils/exec_utils.py
_safe_unicode
def _safe_unicode(o): """ Returns an equivalent unicode object, trying harder to avoid dependencies on the Python default encoding. """ def clean(s): return u''.join([c if c in ASCII_PRINTABLE else '?' for c in s]) if USING_PYTHON2: try: return unicode(o) except: try: s = str(o) try: return s.decode("utf-8") except: return clean(s[:2048]) + u" [Raw error message: " + unicode(s.encode("hex"), 'utf-8') + u"]" except: return u"(Unable to decode Python exception message)" else: return str(o)
python
def _safe_unicode(o): """ Returns an equivalent unicode object, trying harder to avoid dependencies on the Python default encoding. """ def clean(s): return u''.join([c if c in ASCII_PRINTABLE else '?' for c in s]) if USING_PYTHON2: try: return unicode(o) except: try: s = str(o) try: return s.decode("utf-8") except: return clean(s[:2048]) + u" [Raw error message: " + unicode(s.encode("hex"), 'utf-8') + u"]" except: return u"(Unable to decode Python exception message)" else: return str(o)
[ "def", "_safe_unicode", "(", "o", ")", ":", "def", "clean", "(", "s", ")", ":", "return", "u''", ".", "join", "(", "[", "c", "if", "c", "in", "ASCII_PRINTABLE", "else", "'?'", "for", "c", "in", "s", "]", ")", "if", "USING_PYTHON2", ":", "try", ":", "return", "unicode", "(", "o", ")", "except", ":", "try", ":", "s", "=", "str", "(", "o", ")", "try", ":", "return", "s", ".", "decode", "(", "\"utf-8\"", ")", "except", ":", "return", "clean", "(", "s", "[", ":", "2048", "]", ")", "+", "u\" [Raw error message: \"", "+", "unicode", "(", "s", ".", "encode", "(", "\"hex\"", ")", ",", "'utf-8'", ")", "+", "u\"]\"", "except", ":", "return", "u\"(Unable to decode Python exception message)\"", "else", ":", "return", "str", "(", "o", ")" ]
Returns an equivalent unicode object, trying harder to avoid dependencies on the Python default encoding.
[ "Returns", "an", "equivalent", "unicode", "object", "trying", "harder", "to", "avoid", "dependencies", "on", "the", "Python", "default", "encoding", "." ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/utils/exec_utils.py#L38-L58
train
Returns an equivalent unicode object for the given object.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st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dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\x30' + '\157' + chr(0b110001) + '\066' + chr(994 - 943), 0o10), nzTpIcepk0o8(chr(0b100001 + 0o17) + chr(0b1101111) + chr(2175 - 2125) + chr(51) + chr(51), 53817 - 53809), nzTpIcepk0o8(chr(48) + chr(2681 - 2570) + '\061' + chr(2214 - 2161) + '\060', 0o10), nzTpIcepk0o8(chr(0b100010 + 0o16) + chr(0b1000110 + 0o51) + chr(51) + '\060' + '\066', ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(0b1000 + 0o54) + chr(55), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\062' + chr(0b110010) + chr(0b100100 + 0o16), 21454 - 21446), nzTpIcepk0o8(chr(48) + chr(4908 - 4797) + chr(51) + chr(55) + '\x32', ord("\x08")), nzTpIcepk0o8('\x30' + chr(4965 - 4854) + chr(0b110011) + chr(53) + chr(0b1 + 0o62), 0b1000), nzTpIcepk0o8(chr(237 - 189) + chr(9586 - 9475) + chr(0b111 + 0o54) + chr(49) + chr(1331 - 1281), 36867 - 36859), nzTpIcepk0o8(chr(0b110000) + chr(0b1010 + 0o145) + chr(0b11101 + 0o24) + chr(0b101000 + 0o11) + chr(146 - 97), ord("\x08")), nzTpIcepk0o8(chr(912 - 864) + chr(0b1101111) + chr(0b110110) + chr(0b110100), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b110100 + 0o73) + '\067' + '\062', 1091 - 1083), nzTpIcepk0o8('\x30' + '\157' + chr(51) + '\067' + chr(1664 - 1611), 0b1000), nzTpIcepk0o8(chr(0b1 + 0o57) + chr(4984 - 4873) + '\x31' + chr(0b110111), ord("\x08")), nzTpIcepk0o8(chr(2048 - 2000) + chr(111) + chr(425 - 375) + chr(48) + '\060', 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110010) + '\060', 7067 - 7059), nzTpIcepk0o8(chr(0b110000) + chr(0b110001 + 0o76) + chr(0b10011 + 0o40) + chr(0b10011 + 0o43) + '\066', 0b1000), nzTpIcepk0o8(chr(714 - 666) + chr(111) + chr(51) + '\061' + chr(1153 - 1099), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(51) + chr(54) + '\060', 0o10), nzTpIcepk0o8('\060' + '\157' + chr(0b10000 + 0o42) + chr(0b110010) + chr(0b110111), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x36' + '\x32', ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(51) + chr(0b110110), 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(52), 0o10), nzTpIcepk0o8(chr(2139 - 2091) + '\x6f' + chr(2451 - 2400) + '\x30' + '\x31', 51880 - 51872), nzTpIcepk0o8(chr(0b101001 + 0o7) + chr(111) + chr(0b110011) + chr(409 - 360) + '\066', 8), nzTpIcepk0o8(chr(1491 - 1443) + '\157' + chr(49) + chr(0b100100 + 0o22) + '\060', 57930 - 57922), nzTpIcepk0o8('\060' + '\157' + chr(0b100000 + 0o21) + '\067' + chr(53), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x33' + '\066' + chr(1251 - 1197), 8), nzTpIcepk0o8(chr(48) + chr(8996 - 8885) + chr(0b110000 + 0o2) + chr(1935 - 1884) + chr(2135 - 2082), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1010001 + 0o36) + chr(0b101010 + 0o10) + '\065' + chr(0b110111), 1656 - 1648), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110010) + '\067' + chr(0b1100 + 0o46), 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(0b110101) + chr(50), 0o10), nzTpIcepk0o8(chr(0b1010 + 0o46) + '\157' + chr(53) + chr(48), 23627 - 23619), nzTpIcepk0o8(chr(1858 - 1810) + '\x6f' + chr(0b100101 + 0o14) + chr(0b1010 + 0o46), 39650 - 39642), nzTpIcepk0o8(chr(0b0 + 0o60) + chr(0b111100 + 0o63) + chr(49) + '\x35' + chr(0b110000 + 0o1), 45295 - 45287), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110010) + '\x30' + chr(55), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(51) + '\060' + '\x30', 0o10), nzTpIcepk0o8(chr(251 - 203) + '\x6f' + chr(0b110010) + chr(1937 - 1888) + chr(0b11101 + 0o25), 48981 - 48973), nzTpIcepk0o8('\060' + '\157' + chr(0b110001) + chr(54), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(0b101101 + 0o5) + chr(0b110010) + chr(50), 8)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(1344 - 1296) + '\x6f' + chr(153 - 100) + chr(1131 - 1083), 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b']'), '\144' + '\145' + chr(0b1100011) + chr(9484 - 9373) + chr(0b1100100) + '\145')(chr(117) + chr(116) + chr(0b1100110) + chr(45) + chr(0b111000)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def KaPrHb_DXXv9(WgZUEOuIyTUO): def MY03ioefkAzT(PmE5_h409JAA): return roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b''), '\144' + chr(101) + chr(2139 - 2040) + chr(0b1101111) + '\144' + chr(7989 - 7888))(chr(11521 - 11404) + chr(6337 - 6221) + '\146' + '\055' + chr(56)), roI3spqORKae(ES5oEprVxulp(b'*\xaf\x11\x8b\x1e\xd0\x99\x8d\x9e\nzK'), '\144' + '\145' + chr(1058 - 959) + chr(0b1010011 + 0o34) + chr(0b1100100) + chr(0b1100101))(chr(0b111111 + 0o66) + '\x74' + '\146' + '\055' + chr(0b111000)))([teUmM7cKWZUa if teUmM7cKWZUa in RjIL6bb4GqvI else roI3spqORKae(ES5oEprVxulp(b'L'), '\x64' + chr(0b111001 + 0o54) + chr(0b1000001 + 0o42) + chr(6213 - 6102) + chr(5268 - 5168) + chr(0b1011011 + 0o12))(chr(0b1010110 + 0o37) + '\x74' + chr(683 - 581) + chr(0b101101) + chr(0b111000)) for teUmM7cKWZUa in PmE5_h409JAA]) if Yt6GOS_tiQ1Y: try: return Q_7vuEo5dYOf(WgZUEOuIyTUO) except UtiWT6f6p9yZ: try: PmE5_h409JAA = N9zlRy29S1SS(WgZUEOuIyTUO) try: return roI3spqORKae(PmE5_h409JAA, roI3spqORKae(ES5oEprVxulp(b'\x1f\xfd\n\x80T\xf6\xad\x87\x9ezyx'), chr(5177 - 5077) + chr(0b1010011 + 0o22) + chr(99) + chr(0b110101 + 0o72) + '\x64' + '\145')(chr(9060 - 8943) + '\x74' + '\x66' + chr(1908 - 1863) + chr(2847 - 2791)))(roI3spqORKae(ES5oEprVxulp(b'\x06\xef\x0e\xeb\x1f'), chr(0b1100100) + '\x65' + chr(0b1000010 + 0o41) + '\157' + chr(7295 - 7195) + '\145')(chr(0b1110101) + chr(116) + chr(7391 - 7289) + chr(0b10011 + 0o32) + chr(56))) except UtiWT6f6p9yZ: return MY03ioefkAzT(PmE5_h409JAA[:nzTpIcepk0o8('\x30' + chr(0b1001000 + 0o47) + '\x34' + chr(991 - 943) + chr(243 - 195) + chr(792 - 744), 0o10)]) + roI3spqORKae(ES5oEprVxulp(b'S\xc0:\xa7P\xb2\x9f\x99\xb8&F\x1a\x90j\xf3c\x97\xa9\x95\xad\x12'), chr(0b1100100) + chr(7296 - 7195) + '\x63' + chr(111) + chr(0b1100100) + chr(101))(chr(117) + chr(0b111110 + 0o66) + '\x66' + '\055' + chr(0b110110 + 0o2)) + Q_7vuEo5dYOf(roI3spqORKae(PmE5_h409JAA, roI3spqORKae(ES5oEprVxulp(b'*\xea!\xa7u\xd4\x9c\x8e\xa5}|['), '\144' + '\x65' + chr(1212 - 1113) + '\157' + '\144' + chr(0b1100101))('\x75' + '\x74' + '\x66' + chr(1868 - 1823) + chr(56)))(roI3spqORKae(ES5oEprVxulp(b'\x1b\xfe\x10'), chr(0b1100100) + '\x65' + chr(99) + chr(0b1101111) + '\x64' + '\145')('\x75' + chr(0b1110100) + '\x66' + chr(1587 - 1542) + chr(0b111000))), roI3spqORKae(ES5oEprVxulp(b'\x06\xef\x0e\xeb\x1f'), '\144' + chr(8796 - 8695) + '\x63' + chr(111) + chr(3953 - 3853) + '\x65')(chr(10970 - 10853) + chr(0b1110100) + chr(6166 - 6064) + '\x2d' + chr(56))) + roI3spqORKae(ES5oEprVxulp(b'.'), chr(0b1100100) + '\145' + chr(99) + '\x6f' + chr(0b1001110 + 0o26) + '\145')('\165' + chr(116) + chr(0b11000 + 0o116) + chr(1761 - 1716) + chr(0b110011 + 0o5)) except UtiWT6f6p9yZ: return roI3spqORKae(ES5oEprVxulp(b'[\xce\x06\xa7E\xfe\x9f\xcb\xbe&\x14^\x98l\xeft\x93\xee\xa0\xeeFvk\xaf\xee\x15\x05\x95\xf8\xdf\xceCGfI\xea\xa5\xf9}\xf3\x14\xfeA'), chr(0b101010 + 0o72) + chr(0b1100101) + '\x63' + chr(111) + chr(100) + chr(101))(chr(0b1110101) + chr(0b1011001 + 0o33) + chr(5806 - 5704) + chr(1510 - 1465) + chr(56)) else: return N9zlRy29S1SS(WgZUEOuIyTUO)
dnanexus/dx-toolkit
src/python/dxpy/utils/exec_utils.py
_format_exception_message
def _format_exception_message(e): """ Formats the specified exception. """ # Prevent duplication of "AppError" in places that print "AppError" # and then this formatted string if isinstance(e, dxpy.AppError): return _safe_unicode(e) if USING_PYTHON2: return unicode(e.__class__.__name__, 'utf-8') + ": " + _safe_unicode(e) else: return e.__class__.__name__ + ": " + _safe_unicode(e)
python
def _format_exception_message(e): """ Formats the specified exception. """ # Prevent duplication of "AppError" in places that print "AppError" # and then this formatted string if isinstance(e, dxpy.AppError): return _safe_unicode(e) if USING_PYTHON2: return unicode(e.__class__.__name__, 'utf-8') + ": " + _safe_unicode(e) else: return e.__class__.__name__ + ": " + _safe_unicode(e)
[ "def", "_format_exception_message", "(", "e", ")", ":", "# Prevent duplication of \"AppError\" in places that print \"AppError\"", "# and then this formatted string", "if", "isinstance", "(", "e", ",", "dxpy", ".", "AppError", ")", ":", "return", "_safe_unicode", "(", "e", ")", "if", "USING_PYTHON2", ":", "return", "unicode", "(", "e", ".", "__class__", ".", "__name__", ",", "'utf-8'", ")", "+", "\": \"", "+", "_safe_unicode", "(", "e", ")", "else", ":", "return", "e", ".", "__class__", ".", "__name__", "+", "\": \"", "+", "_safe_unicode", "(", "e", ")" ]
Formats the specified exception.
[ "Formats", "the", "specified", "exception", "." ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/utils/exec_utils.py#L60-L71
train
Formats the specified exception into a string that can be used in the log file.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cX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BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b101011 + 0o5) + '\157' + chr(0b110011) + chr(2168 - 2120) + chr(0b11001 + 0o31), 0b1000), nzTpIcepk0o8(chr(185 - 137) + '\157' + chr(0b100001 + 0o23), 0b1000), nzTpIcepk0o8(chr(0b101100 + 0o4) + chr(0b100001 + 0o116) + chr(0b110010) + '\061' + chr(72 - 21), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101010 + 0o5) + chr(49) + '\x35' + '\062', ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(471 - 422) + '\x37' + chr(773 - 720), 0o10), nzTpIcepk0o8(chr(1321 - 1273) + chr(0b1101111) + '\x34' + chr(0b110110), 49222 - 49214), nzTpIcepk0o8('\060' + chr(818 - 707) + chr(348 - 299) + chr(0b110000) + chr(48), 40230 - 40222), nzTpIcepk0o8(chr(0b11011 + 0o25) + '\157' + '\x37' + '\x31', 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x31' + chr(0b110001) + chr(1303 - 1250), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(50) + '\x33' + chr(1957 - 1909), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101101 + 0o2) + chr(0b110010) + '\066' + chr(0b1010 + 0o55), 58914 - 58906), nzTpIcepk0o8(chr(0b110000) + chr(10576 - 10465) + chr(0b1011 + 0o46) + chr(1643 - 1593) + chr(712 - 664), ord("\x08")), nzTpIcepk0o8(chr(0b10010 + 0o36) + chr(6103 - 5992) + chr(1337 - 1286) + chr(0b110111), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\067' + '\061', 8), nzTpIcepk0o8(chr(1096 - 1048) + '\157' + chr(53) + chr(50), 0b1000), nzTpIcepk0o8(chr(2089 - 2041) + '\157' + chr(0b11110 + 0o25) + chr(1202 - 1150) + chr(2719 - 2665), 21133 - 21125), nzTpIcepk0o8(chr(0b110000) + chr(0b1101000 + 0o7) + '\062' + chr(1939 - 1890) + chr(54), ord("\x08")), nzTpIcepk0o8('\060' + chr(4213 - 4102) + '\x34' + '\x31', 55553 - 55545), nzTpIcepk0o8(chr(0b110000) + '\157' + '\063' + chr(0b11100 + 0o25) + '\063', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(3578 - 3467) + '\063' + chr(55) + chr(0b110111), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1001111 + 0o40) + chr(0b1101 + 0o45) + chr(49) + '\060', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(50) + chr(48) + '\x32', 11207 - 11199), nzTpIcepk0o8(chr(0b1111 + 0o41) + '\157' + '\062' + '\065' + '\x33', ord("\x08")), nzTpIcepk0o8(chr(2290 - 2242) + chr(111) + chr(50) + chr(0b1110 + 0o51) + '\067', 0b1000), nzTpIcepk0o8(chr(0b100011 + 0o15) + chr(0b1101111) + chr(0b110010) + chr(54) + chr(0b1010 + 0o53), 0o10), nzTpIcepk0o8(chr(0b101000 + 0o10) + chr(0b1101111) + chr(0b1101 + 0o44) + chr(0b110010 + 0o0) + chr(0b101100 + 0o4), 8), nzTpIcepk0o8(chr(48) + chr(4992 - 4881) + chr(2386 - 2337) + '\063' + chr(54), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + '\x31' + chr(0b110001) + chr(1587 - 1538), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(53) + chr(50), 8), nzTpIcepk0o8(chr(0b11010 + 0o26) + chr(111) + chr(0b10010 + 0o41) + chr(2041 - 1987) + '\x34', 0o10), nzTpIcepk0o8(chr(1241 - 1193) + chr(111) + chr(543 - 492) + '\x31' + chr(53), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\065' + chr(51), 0b1000), nzTpIcepk0o8(chr(230 - 182) + '\157' + chr(0b110111) + '\x36', ord("\x08")), nzTpIcepk0o8(chr(0b10111 + 0o31) + chr(5432 - 5321) + chr(0b11111 + 0o22) + chr(0b100010 + 0o23) + chr(50), 8), nzTpIcepk0o8('\x30' + chr(10913 - 10802) + '\x31', 0o10), nzTpIcepk0o8('\x30' + chr(4406 - 4295) + chr(1263 - 1212) + '\065' + chr(54), 10591 - 10583), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110011) + '\063', 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110010) + '\x37' + chr(0b110110), 15115 - 15107), nzTpIcepk0o8('\060' + chr(2480 - 2369) + '\x33' + chr(50) + chr(0b110110), 0o10), nzTpIcepk0o8('\060' + chr(3284 - 3173) + chr(50) + '\063' + chr(50), 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(812 - 764) + '\157' + chr(0b1011 + 0o52) + chr(286 - 238), 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xec'), chr(0b100001 + 0o103) + '\x65' + chr(99) + chr(11995 - 11884) + '\144' + chr(0b1100101))(chr(117) + chr(0b1100111 + 0o15) + '\146' + chr(45) + chr(0b111000)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def an6IGyB2mW_8(wgf0sgcu_xPL): if suIjIS24Zkqw(wgf0sgcu_xPL, roI3spqORKae(SsdNdRxXOwsF, roI3spqORKae(ES5oEprVxulp(b'\x83t\xfb/\x0fT/K'), chr(0b111011 + 0o51) + chr(4830 - 4729) + chr(0b1100011) + chr(2892 - 2781) + chr(7205 - 7105) + '\145')(chr(0b1110101) + chr(116) + '\x66' + chr(45) + chr(0b111000)))): return KaPrHb_DXXv9(wgf0sgcu_xPL) if Yt6GOS_tiQ1Y: return Q_7vuEo5dYOf(roI3spqORKae(wgf0sgcu_xPL.__class__, roI3spqORKae(ES5oEprVxulp(b'\x83]\xff./J1\\\x1d\xa8\xc3!'), '\144' + chr(10068 - 9967) + chr(0b1010000 + 0o23) + chr(111) + '\144' + '\145')('\165' + chr(0b1110100) + '\146' + chr(45) + chr(56))), roI3spqORKae(ES5oEprVxulp(b'\xb7p\xedGE'), chr(5415 - 5315) + '\x65' + '\143' + chr(0b11010 + 0o125) + chr(0b11001 + 0o113) + chr(101))('\165' + chr(0b1110010 + 0o2) + '\x66' + chr(1501 - 1456) + '\x38')) + roI3spqORKae(ES5oEprVxulp(b'\xf8$'), '\x64' + '\145' + chr(6387 - 6288) + chr(6286 - 6175) + chr(6894 - 6794) + chr(0b1100101))('\165' + chr(4534 - 4418) + chr(102) + chr(0b10101 + 0o30) + chr(2959 - 2903)) + KaPrHb_DXXv9(wgf0sgcu_xPL) else: return roI3spqORKae(wgf0sgcu_xPL.__class__, roI3spqORKae(ES5oEprVxulp(b'\x83]\xff./J1\\\x1d\xa8\xc3!'), '\x64' + chr(6572 - 6471) + chr(0b1100011) + '\157' + chr(0b11001 + 0o113) + '\x65')(chr(117) + chr(0b1110100) + chr(0b1011000 + 0o16) + '\x2d' + chr(0b11110 + 0o32))) + roI3spqORKae(ES5oEprVxulp(b'\xf8$'), chr(2437 - 2337) + chr(0b1100101) + chr(0b1100011) + '\157' + chr(256 - 156) + '\x65')('\165' + chr(0b1110100) + chr(0b1100110) + chr(45) + chr(0b111000)) + KaPrHb_DXXv9(wgf0sgcu_xPL)
dnanexus/dx-toolkit
src/python/dxpy/utils/exec_utils.py
run
def run(function_name=None, function_input=None): """Triggers the execution environment entry point processor. Use this function in the program entry point code: .. code-block:: python import dxpy @dxpy.entry_point('main') def hello(i): pass dxpy.run() This method may be used to invoke the program either in a production environment (inside the execution environment) or for local debugging (in the debug harness), as follows: If the environment variable *DX_JOB_ID* is set, the processor retrieves the job with that ID from the API server. The job's *function* field indicates the function name to be invoked. That function name is looked up in the table of all methods decorated with *@dxpy.entry_point('name')* in the module from which :func:`run()` was called, and the matching method is invoked (with the job's input supplied as parameters). This is the mode of operation used in the DNAnexus execution environment. .. warning:: The parameters *function_name* and *function_input* are disregarded in this mode of operation. If the environment variable *DX_JOB_ID* is not set, the function name may be given in *function_name*; if not set, it is set by the environment variable *DX_TEST_FUNCTION*. The function input may be given in *function_input*; if not set, it is set by the local file *job_input.json* which is expected to be present. The absence of *DX_JOB_ID* signals to :func:`run()` that execution is happening in the debug harness. In this mode of operation, all calls to :func:`dxpy.bindings.dxjob.new_dxjob()` (and higher level handler methods which use it) are intercepted, and :func:`run()` is invoked instead with appropriate inputs. """ global RUN_COUNT RUN_COUNT += 1 dx_working_dir = os.getcwd() if dxpy.JOB_ID is not None: logging.basicConfig() try: logging.getLogger().addHandler(dxpy.DXLogHandler()) except dxpy.exceptions.DXError: print("TODO: FIXME: the EE client should die if logging is not available") job = dxpy.describe(dxpy.JOB_ID) else: if function_name is None: function_name = os.environ.get('DX_TEST_FUNCTION', 'main') if function_input is None: with open("job_input.json", "r") as fh: function_input = json.load(fh) job = {'function': function_name, 'input': function_input} with open("job_error_reserved_space", "w") as fh: fh.write("This file contains reserved space for writing job errors in case the filesystem becomes full.\n" + " "*1024*64) print("Invoking", job.get('function'), "with", job.get('input')) try: result = ENTRY_POINT_TABLE[job['function']](**job['input']) except dxpy.AppError as e: save_error(e, dx_working_dir, error_type="AppError") raise except Exception as e: save_error(e, dx_working_dir) raise if result is not None: # TODO: protect against client removing its original working directory os.chdir(dx_working_dir) if USING_PYTHON2: # On python-2 we need to use binary mode with open("job_output.json", "wb") as fh: json.dump(result, fh, indent=2, cls=DXJSONEncoder) fh.write(b"\n") else: with open("job_output.json", "w") as fh: json.dump(result, fh, indent=2, cls=DXJSONEncoder) fh.write("\n") return result
python
def run(function_name=None, function_input=None): """Triggers the execution environment entry point processor. Use this function in the program entry point code: .. code-block:: python import dxpy @dxpy.entry_point('main') def hello(i): pass dxpy.run() This method may be used to invoke the program either in a production environment (inside the execution environment) or for local debugging (in the debug harness), as follows: If the environment variable *DX_JOB_ID* is set, the processor retrieves the job with that ID from the API server. The job's *function* field indicates the function name to be invoked. That function name is looked up in the table of all methods decorated with *@dxpy.entry_point('name')* in the module from which :func:`run()` was called, and the matching method is invoked (with the job's input supplied as parameters). This is the mode of operation used in the DNAnexus execution environment. .. warning:: The parameters *function_name* and *function_input* are disregarded in this mode of operation. If the environment variable *DX_JOB_ID* is not set, the function name may be given in *function_name*; if not set, it is set by the environment variable *DX_TEST_FUNCTION*. The function input may be given in *function_input*; if not set, it is set by the local file *job_input.json* which is expected to be present. The absence of *DX_JOB_ID* signals to :func:`run()` that execution is happening in the debug harness. In this mode of operation, all calls to :func:`dxpy.bindings.dxjob.new_dxjob()` (and higher level handler methods which use it) are intercepted, and :func:`run()` is invoked instead with appropriate inputs. """ global RUN_COUNT RUN_COUNT += 1 dx_working_dir = os.getcwd() if dxpy.JOB_ID is not None: logging.basicConfig() try: logging.getLogger().addHandler(dxpy.DXLogHandler()) except dxpy.exceptions.DXError: print("TODO: FIXME: the EE client should die if logging is not available") job = dxpy.describe(dxpy.JOB_ID) else: if function_name is None: function_name = os.environ.get('DX_TEST_FUNCTION', 'main') if function_input is None: with open("job_input.json", "r") as fh: function_input = json.load(fh) job = {'function': function_name, 'input': function_input} with open("job_error_reserved_space", "w") as fh: fh.write("This file contains reserved space for writing job errors in case the filesystem becomes full.\n" + " "*1024*64) print("Invoking", job.get('function'), "with", job.get('input')) try: result = ENTRY_POINT_TABLE[job['function']](**job['input']) except dxpy.AppError as e: save_error(e, dx_working_dir, error_type="AppError") raise except Exception as e: save_error(e, dx_working_dir) raise if result is not None: # TODO: protect against client removing its original working directory os.chdir(dx_working_dir) if USING_PYTHON2: # On python-2 we need to use binary mode with open("job_output.json", "wb") as fh: json.dump(result, fh, indent=2, cls=DXJSONEncoder) fh.write(b"\n") else: with open("job_output.json", "w") as fh: json.dump(result, fh, indent=2, cls=DXJSONEncoder) fh.write("\n") return result
[ "def", "run", "(", "function_name", "=", "None", ",", "function_input", "=", "None", ")", ":", "global", "RUN_COUNT", "RUN_COUNT", "+=", "1", "dx_working_dir", "=", "os", ".", "getcwd", "(", ")", "if", "dxpy", ".", "JOB_ID", "is", "not", "None", ":", "logging", ".", "basicConfig", "(", ")", "try", ":", "logging", ".", "getLogger", "(", ")", ".", "addHandler", "(", "dxpy", ".", "DXLogHandler", "(", ")", ")", "except", "dxpy", ".", "exceptions", ".", "DXError", ":", "print", "(", "\"TODO: FIXME: the EE client should die if logging is not available\"", ")", "job", "=", "dxpy", ".", "describe", "(", "dxpy", ".", "JOB_ID", ")", "else", ":", "if", "function_name", "is", "None", ":", "function_name", "=", "os", ".", "environ", ".", "get", "(", "'DX_TEST_FUNCTION'", ",", "'main'", ")", "if", "function_input", "is", "None", ":", "with", "open", "(", "\"job_input.json\"", ",", "\"r\"", ")", "as", "fh", ":", "function_input", "=", "json", ".", "load", "(", "fh", ")", "job", "=", "{", "'function'", ":", "function_name", ",", "'input'", ":", "function_input", "}", "with", "open", "(", "\"job_error_reserved_space\"", ",", "\"w\"", ")", "as", "fh", ":", "fh", ".", "write", "(", "\"This file contains reserved space for writing job errors in case the filesystem becomes full.\\n\"", "+", "\" \"", "*", "1024", "*", "64", ")", "print", "(", "\"Invoking\"", ",", "job", ".", "get", "(", "'function'", ")", ",", "\"with\"", ",", "job", ".", "get", "(", "'input'", ")", ")", "try", ":", "result", "=", "ENTRY_POINT_TABLE", "[", "job", "[", "'function'", "]", "]", "(", "*", "*", "job", "[", "'input'", "]", ")", "except", "dxpy", ".", "AppError", "as", "e", ":", "save_error", "(", "e", ",", "dx_working_dir", ",", "error_type", "=", "\"AppError\"", ")", "raise", "except", "Exception", "as", "e", ":", "save_error", "(", "e", ",", "dx_working_dir", ")", "raise", "if", "result", "is", "not", "None", ":", "# TODO: protect against client removing its original working directory", "os", ".", "chdir", "(", "dx_working_dir", ")", "if", "USING_PYTHON2", ":", "# On python-2 we need to use binary mode", "with", "open", "(", "\"job_output.json\"", ",", "\"wb\"", ")", "as", "fh", ":", "json", ".", "dump", "(", "result", ",", "fh", ",", "indent", "=", "2", ",", "cls", "=", "DXJSONEncoder", ")", "fh", ".", "write", "(", "b\"\\n\"", ")", "else", ":", "with", "open", "(", "\"job_output.json\"", ",", "\"w\"", ")", "as", "fh", ":", "json", ".", "dump", "(", "result", ",", "fh", ",", "indent", "=", "2", ",", "cls", "=", "DXJSONEncoder", ")", "fh", ".", "write", "(", "\"\\n\"", ")", "return", "result" ]
Triggers the execution environment entry point processor. Use this function in the program entry point code: .. code-block:: python import dxpy @dxpy.entry_point('main') def hello(i): pass dxpy.run() This method may be used to invoke the program either in a production environment (inside the execution environment) or for local debugging (in the debug harness), as follows: If the environment variable *DX_JOB_ID* is set, the processor retrieves the job with that ID from the API server. The job's *function* field indicates the function name to be invoked. That function name is looked up in the table of all methods decorated with *@dxpy.entry_point('name')* in the module from which :func:`run()` was called, and the matching method is invoked (with the job's input supplied as parameters). This is the mode of operation used in the DNAnexus execution environment. .. warning:: The parameters *function_name* and *function_input* are disregarded in this mode of operation. If the environment variable *DX_JOB_ID* is not set, the function name may be given in *function_name*; if not set, it is set by the environment variable *DX_TEST_FUNCTION*. The function input may be given in *function_input*; if not set, it is set by the local file *job_input.json* which is expected to be present. The absence of *DX_JOB_ID* signals to :func:`run()` that execution is happening in the debug harness. In this mode of operation, all calls to :func:`dxpy.bindings.dxjob.new_dxjob()` (and higher level handler methods which use it) are intercepted, and :func:`run()` is invoked instead with appropriate inputs.
[ "Triggers", "the", "execution", "environment", "entry", "point", "processor", "." ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/utils/exec_utils.py#L74-L171
train
This function is called by the DXJob API server to execute the function specified in function_name and function_input.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWa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EahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(1771 - 1723) + chr(0b1011100 + 0o23) + chr(0b101010 + 0o15) + '\x33', 40075 - 40067), nzTpIcepk0o8(chr(0b100001 + 0o17) + chr(12108 - 11997) + chr(49) + '\060' + chr(48), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110001) + '\066' + chr(2131 - 2076), 0o10), nzTpIcepk0o8(chr(0b10110 + 0o32) + '\x6f' + '\x32' + chr(0b10101 + 0o42) + chr(0b110011), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + '\x31' + chr(0b110001) + '\062', ord("\x08")), nzTpIcepk0o8(chr(775 - 727) + chr(0b1101111) + chr(1751 - 1702) + '\067' + chr(50), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1100111 + 0o10) + chr(0b110111) + '\060', 63496 - 63488), nzTpIcepk0o8(chr(0b110 + 0o52) + '\157' + chr(51) + '\066' + chr(50), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(2639 - 2585) + chr(0b110000 + 0o6), 0b1000), nzTpIcepk0o8(chr(1835 - 1787) + chr(0b1101110 + 0o1) + '\x31' + chr(0b110100) + '\x30', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(49) + chr(0b11011 + 0o26) + '\063', 45893 - 45885), nzTpIcepk0o8(chr(0b100 + 0o54) + chr(7167 - 7056) + chr(0b110 + 0o54) + chr(0b110101) + chr(535 - 480), 51924 - 51916), nzTpIcepk0o8(chr(1721 - 1673) + chr(0b1101111) + chr(51) + chr(0b110001 + 0o6) + chr(53), ord("\x08")), nzTpIcepk0o8(chr(1621 - 1573) + chr(0b11110 + 0o121) + '\x31' + '\x33' + chr(0b110 + 0o56), 0o10), nzTpIcepk0o8(chr(48) + chr(0b11101 + 0o122) + '\063' + chr(0b110001), 45310 - 45302), nzTpIcepk0o8('\x30' + chr(10260 - 10149) + '\x37' + '\067', 0o10), nzTpIcepk0o8(chr(1823 - 1775) + '\x6f' + '\061' + chr(0b101 + 0o53) + chr(0b110 + 0o57), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(178 - 128) + chr(54), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(0b110001) + chr(49) + chr(73 - 23), 8), nzTpIcepk0o8(chr(0b110000) + '\157' + '\062' + chr(0b110000) + chr(0b110111), 0o10), nzTpIcepk0o8(chr(0b101010 + 0o6) + chr(0b1101111) + chr(50) + chr(50), 0o10), nzTpIcepk0o8('\060' + chr(0b111001 + 0o66) + chr(1562 - 1513) + '\x31' + chr(466 - 412), 0o10), nzTpIcepk0o8('\060' + chr(11006 - 10895) + chr(0b100000 + 0o22) + '\x35' + chr(1395 - 1342), 2599 - 2591), nzTpIcepk0o8(chr(1111 - 1063) + chr(5140 - 5029) + '\062' + '\x32' + '\060', 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110010) + '\x32', 8), nzTpIcepk0o8('\060' + chr(0b1101111) + '\064' + chr(1694 - 1642), 0b1000), nzTpIcepk0o8(chr(48) + chr(9666 - 9555) + chr(2512 - 2461) + chr(1797 - 1748) + '\065', 0o10), nzTpIcepk0o8(chr(774 - 726) + '\157' + chr(51) + chr(50) + chr(49), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(2112 - 2062) + '\063' + chr(52), ord("\x08")), nzTpIcepk0o8(chr(1304 - 1256) + chr(0b1101111) + chr(233 - 183) + '\x32' + '\063', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\062' + chr(0b1011 + 0o47), 8), nzTpIcepk0o8('\060' + '\x6f' + '\x32' + '\063' + '\x32', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(1688 - 1638) + '\066' + '\x30', ord("\x08")), nzTpIcepk0o8('\060' + '\157' + '\x34' + chr(1191 - 1143), 0b1000), nzTpIcepk0o8('\060' + chr(0b1001 + 0o146) + chr(0b110001 + 0o0) + '\x31' + '\067', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\062' + chr(2421 - 2370) + '\x33', ord("\x08")), nzTpIcepk0o8(chr(0b110 + 0o52) + '\157' + chr(51) + '\x33' + chr(48), 0o10), nzTpIcepk0o8(chr(0b101101 + 0o3) + '\x6f' + chr(50) + '\x36' + chr(55), 0o10), nzTpIcepk0o8('\060' + '\157' + chr(51) + chr(822 - 767) + chr(0b110101), 8), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(2473 - 2423) + chr(0b110110) + chr(52), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b11 + 0o55) + chr(10032 - 9921) + chr(0b110101) + chr(48), ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x15'), chr(100) + '\x65' + chr(99) + chr(0b11110 + 0o121) + chr(0b101 + 0o137) + chr(0b1100101))(chr(117) + chr(116) + chr(5388 - 5286) + chr(0b101101) + chr(876 - 820)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def qnPOIdBQJdzY(fnoSXMFnhelI=None, YJ6WT9mzJUEo=None): global APodtHWfViVT APodtHWfViVT += nzTpIcepk0o8(chr(0b110000) + chr(0b11010 + 0o125) + chr(1416 - 1367), 0b1000) Y1ZHpK8oiLTX = aHUqKstZLeS6.getcwd() if roI3spqORKae(SsdNdRxXOwsF, roI3spqORKae(ES5oEprVxulp(b'q\x0f5\xe4\x03>'), chr(2612 - 2512) + chr(0b1100101) + chr(0b1100011) + '\x6f' + chr(0b1100100) + '\145')('\x75' + chr(0b1110100) + chr(0b100001 + 0o105) + '\055' + chr(1589 - 1533))) is not None: roI3spqORKae(Lj4gcNafqrcl, roI3spqORKae(ES5oEprVxulp(b'Y!\x04\xd2)9W\x9cP\t,'), chr(0b1011101 + 0o7) + chr(0b1100101) + '\x63' + '\x6f' + '\x64' + chr(101))(chr(2593 - 2476) + chr(0b1110100) + '\x66' + chr(0b100111 + 0o6) + chr(2316 - 2260)))() try: roI3spqORKae(Lj4gcNafqrcl.getLogger(), roI3spqORKae(ES5oEprVxulp(b'Z$\x13\xf3+\x14\\\x9eS\x12'), chr(2229 - 2129) + chr(101) + '\143' + chr(2924 - 2813) + chr(0b101010 + 0o72) + chr(0b1100101))(chr(0b1110101) + '\164' + '\146' + '\055' + chr(0b101001 + 0o17)))(roI3spqORKae(SsdNdRxXOwsF, roI3spqORKae(ES5oEprVxulp(b'\x7f\x18;\xd4-2Y\x9cR\x0c.\xdd'), chr(0b1100100) + '\145' + chr(563 - 464) + chr(0b11101 + 0o122) + chr(0b11011 + 0o111) + chr(0b1100101))(chr(0b1110101) + chr(5817 - 5701) + '\x66' + '\055' + chr(1959 - 1903)))()) except roI3spqORKae(SsdNdRxXOwsF.exceptions, roI3spqORKae(ES5oEprVxulp(b'\x7f\x182\xc98\x15J'), '\144' + chr(101) + chr(0b1100011) + '\157' + '\x64' + chr(4580 - 4479))('\x75' + chr(0b1101010 + 0o12) + chr(0b1001110 + 0o30) + chr(45) + '\x38')): v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'o\x0f3\xf4pZ~\xbbn-\x0e\x95\xdd(qZeS\x0f\xa7q"\xc4\xf5|P\xed\xa2\xf4\xfcg\xf6\xd4\x00+\xf2\xbd\x97\x94\xd2\x1b,\x18\xdc-\x13V\x95\x16\t8\x8f\x933m\x1f$`+\xee~/\xcf\xfcw'), chr(4187 - 4087) + chr(0b111110 + 0o47) + chr(99) + '\x6f' + chr(0b1100100) + chr(0b1000001 + 0o44))('\165' + chr(5217 - 5101) + '\146' + '\055' + chr(0b1100 + 0o54))) pDuVZERs4dR8 = SsdNdRxXOwsF.describe(SsdNdRxXOwsF.JOB_ID) else: if fnoSXMFnhelI is None: fnoSXMFnhelI = aHUqKstZLeS6.environ.GUKetu4xaGsJ(roI3spqORKae(ES5oEprVxulp(b'\x7f\x18(\xef\x0f)l\xadp5\x05\xec\xa9\x15Vq'), chr(0b1001011 + 0o31) + '\x65' + chr(0b1100011) + chr(111) + chr(100) + chr(0b1000 + 0o135))(chr(117) + '\164' + '\x66' + chr(0b101101) + chr(56)), roI3spqORKae(ES5oEprVxulp(b'V!\x1e\xd5'), '\x64' + chr(0b1100101) + chr(0b10000 + 0o123) + chr(6203 - 6092) + chr(0b1100100) + '\x65')('\165' + chr(116) + '\146' + chr(1166 - 1121) + chr(0b10011 + 0o45))) if YJ6WT9mzJUEo is None: with DnU3Rq9N5ala(roI3spqORKae(ES5oEprVxulp(b'Q/\x15\xe4#\x14H\x87BN!\xdc\x922'), chr(8507 - 8407) + '\145' + chr(0b1100011) + chr(0b1101111) + chr(100) + '\x65')(chr(9778 - 9661) + chr(6967 - 6851) + '\146' + '\055' + '\070'), roI3spqORKae(ES5oEprVxulp(b'I'), '\x64' + chr(593 - 492) + '\x63' + '\x6f' + chr(0b111101 + 0o47) + chr(101))(chr(117) + chr(0b1110001 + 0o3) + chr(8426 - 8324) + chr(45) + chr(0b111000))) as ghfrO2vbANu_: YJ6WT9mzJUEo = LNUKEwZDIbyb.ZERsdc7c1d8E(ghfrO2vbANu_) pDuVZERs4dR8 = {roI3spqORKae(ES5oEprVxulp(b']5\x19\xd8>\x13W\x9c'), '\x64' + '\145' + chr(0b100101 + 0o76) + chr(10928 - 10817) + chr(0b110011 + 0o61) + chr(1234 - 1133))(chr(117) + chr(0b1110100) + chr(102) + chr(376 - 331) + chr(79 - 23)): fnoSXMFnhelI, roI3spqORKae(ES5oEprVxulp(b'R.\x07\xce>'), chr(0b11110 + 0o106) + chr(0b1100001 + 0o4) + chr(0b1100011) + chr(0b1101111) + chr(0b101110 + 0o66) + chr(2067 - 1966))(chr(117) + '\164' + chr(102) + chr(893 - 848) + chr(56)): YJ6WT9mzJUEo} with DnU3Rq9N5ala(roI3spqORKae(ES5oEprVxulp(b'Q/\x15\xe4/\x08J\x9dD?9\xca\x8e9kI r\x15\xf4b/\xce\xf5'), '\x64' + chr(0b100110 + 0o77) + chr(99) + chr(0b1001100 + 0o43) + chr(7292 - 7192) + chr(101))(chr(117) + '\x74' + chr(5855 - 5753) + chr(1883 - 1838) + '\070'), roI3spqORKae(ES5oEprVxulp(b'L'), chr(100) + chr(101) + chr(99) + chr(111) + chr(0b1100100) + chr(0b11011 + 0o112))('\x75' + chr(0b1110100) + chr(4501 - 4399) + chr(0b11100 + 0o21) + chr(0b111000))) as ghfrO2vbANu_: roI3spqORKae(ghfrO2vbANu_, roI3spqORKae(ES5oEprVxulp(b'V,G\xd3"\nN\xc3z\x10:\x9d'), chr(3699 - 3599) + chr(4387 - 4286) + chr(0b1011 + 0o130) + chr(0b10110 + 0o131) + '\x64' + '\x65')('\165' + chr(0b1110000 + 0o4) + chr(0b1001000 + 0o36) + chr(0b101011 + 0o2) + chr(0b11111 + 0o31)))(roI3spqORKae(ES5oEprVxulp(b"o(\x1e\xc8j\x1cQ\x9eS@(\xc0\x93(xV+ej\xf5w=\xc8\xe2dA\xa9\xf1\xef\xe3s\xf9\xd5\x00)\xf4\xaa\x97\x8a\xc6R4\x1e\xd5-ZR\x9dT@.\xdd\x8f3kLe\x7f$\xa7q/\xde\xf52P\xa5\xb4\xbc\xf5{\xf6\xd5S6\xe8\xac\xd2\x90\x94Y%\x14\xd4'\x1fK\xd2P\x15'\xc3\xd3V"), chr(0b1001100 + 0o30) + '\145' + chr(0b1100011) + chr(0b1101111) + chr(8948 - 8848) + chr(0b1100101))('\165' + chr(0b1010001 + 0o43) + chr(102) + chr(0b10000 + 0o35) + '\070') + roI3spqORKae(ES5oEprVxulp(b'\x1b'), chr(567 - 467) + chr(0b1100101) + '\x63' + '\x6f' + '\x64' + '\145')(chr(0b110111 + 0o76) + chr(0b10011 + 0o141) + chr(0b100010 + 0o104) + '\x2d' + chr(0b111000)) * nzTpIcepk0o8(chr(1113 - 1065) + chr(111) + '\x32' + chr(48) + '\x30' + chr(0b110000), 0b1000) * nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110001) + chr(0b110000) + chr(48), 8)) v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'r.\x01\xd4!\x13V\x95'), chr(0b1100100) + '\145' + chr(0b1100011) + chr(0b1101111) + chr(0b1101 + 0o127) + chr(0b1100101))(chr(7689 - 7572) + '\x74' + '\146' + '\x2d' + '\070'), roI3spqORKae(pDuVZERs4dR8, roI3spqORKae(ES5oEprVxulp(b"|\x15<\xde>\x0f\x0c\x8aW'8\xe5"), '\x64' + '\145' + chr(0b1100011) + chr(8800 - 8689) + chr(0b1100100) + chr(0b10100 + 0o121))(chr(8467 - 8350) + '\x74' + chr(0b1100110) + chr(45) + chr(0b111000)))(roI3spqORKae(ES5oEprVxulp(b']5\x19\xd8>\x13W\x9c'), '\144' + chr(0b1100101) + chr(0b1001000 + 0o33) + chr(6096 - 5985) + '\144' + chr(0b1100101))('\165' + chr(0b1110100) + '\x66' + '\x2d' + '\070')), roI3spqORKae(ES5oEprVxulp(b'L)\x03\xd3'), '\x64' + '\145' + '\143' + '\x6f' + chr(100) + chr(5885 - 5784))('\165' + chr(4366 - 4250) + '\146' + '\055' + chr(56)), roI3spqORKae(pDuVZERs4dR8, roI3spqORKae(ES5oEprVxulp(b"|\x15<\xde>\x0f\x0c\x8aW'8\xe5"), '\x64' + chr(0b110110 + 0o57) + '\143' + chr(10635 - 10524) + chr(100) + '\x65')(chr(12029 - 11912) + '\164' + chr(7977 - 7875) + chr(0b10101 + 0o30) + '\x38'))(roI3spqORKae(ES5oEprVxulp(b'R.\x07\xce>'), chr(3723 - 3623) + chr(808 - 707) + chr(0b1100011) + chr(0b1101111) + chr(1068 - 968) + chr(0b10 + 0o143))('\x75' + chr(0b1110100) + chr(0b1001 + 0o135) + '\x2d' + chr(1240 - 1184)))) try: POx95m7SPOVy = V6H5ZrNp6Er_[pDuVZERs4dR8[roI3spqORKae(ES5oEprVxulp(b']5\x19\xd8>\x13W\x9c'), chr(0b11010 + 0o112) + chr(6121 - 6020) + '\143' + chr(111) + chr(100) + chr(101))(chr(117) + chr(8894 - 8778) + '\146' + chr(0b11010 + 0o23) + chr(56))]](**pDuVZERs4dR8[roI3spqORKae(ES5oEprVxulp(b'R.\x07\xce>'), chr(100) + chr(0b1100101) + chr(4132 - 4033) + chr(0b1000101 + 0o52) + '\x64' + chr(101))('\x75' + '\164' + chr(0b1100110) + '\055' + '\070')]) except roI3spqORKae(SsdNdRxXOwsF, roI3spqORKae(ES5oEprVxulp(b'z0\x07\xfe8\x08W\x80'), chr(0b1100100) + '\x65' + chr(0b1100011) + chr(0b1101100 + 0o3) + '\x64' + '\x65')(chr(0b100101 + 0o120) + chr(0b110101 + 0o77) + '\146' + '\055' + '\x38')) as wgf0sgcu_xPL: rF7cl4r3XFcF(wgf0sgcu_xPL, Y1ZHpK8oiLTX, error_type=roI3spqORKae(ES5oEprVxulp(b'z0\x07\xfe8\x08W\x80'), chr(100) + chr(0b1100101) + chr(0b1100011) + chr(1878 - 1767) + chr(0b1100100) + '\145')(chr(0b1001101 + 0o50) + chr(116) + '\x66' + '\055' + chr(0b100000 + 0o30))) raise except zfo2Sgkz3IVJ as wgf0sgcu_xPL: rF7cl4r3XFcF(wgf0sgcu_xPL, Y1ZHpK8oiLTX) raise if POx95m7SPOVy is not None: roI3spqORKae(aHUqKstZLeS6, roI3spqORKae(ES5oEprVxulp(b'X(\x13\xd28'), '\x64' + chr(0b1100101) + chr(99) + chr(0b1101111) + '\144' + '\145')('\x75' + chr(0b1110100) + chr(2328 - 2226) + chr(0b101101) + chr(1995 - 1939)))(Y1ZHpK8oiLTX) if Yt6GOS_tiQ1Y: with DnU3Rq9N5ala(roI3spqORKae(ES5oEprVxulp(b'Q/\x15\xe4%\x0fL\x82C\x14e\xc5\x8e3w'), chr(0b1100100) + chr(759 - 658) + '\x63' + chr(0b1101001 + 0o6) + chr(100) + chr(5434 - 5333))(chr(5649 - 5532) + chr(0b100010 + 0o122) + chr(0b11110 + 0o110) + '\x2d' + '\070'), roI3spqORKae(ES5oEprVxulp(b'L"'), chr(0b1100100) + chr(101) + '\143' + chr(0b1011001 + 0o26) + chr(0b1100100) + chr(0b1100101))('\x75' + chr(0b1110100) + chr(0b1100110) + '\055' + chr(0b110100 + 0o4))) as ghfrO2vbANu_: roI3spqORKae(LNUKEwZDIbyb, roI3spqORKae(ES5oEprVxulp(b'_5\x1a\xcb'), chr(8816 - 8716) + chr(0b1011010 + 0o13) + '\143' + chr(111) + chr(0b1100100) + '\145')('\165' + chr(0b100010 + 0o122) + '\146' + chr(0b10000 + 0o35) + chr(56)))(POx95m7SPOVy, ghfrO2vbANu_, indent=nzTpIcepk0o8('\060' + chr(5228 - 5117) + chr(50), 0o10), cls=RQGAplIHvK5s) roI3spqORKae(ghfrO2vbANu_, roI3spqORKae(ES5oEprVxulp(b'V,G\xd3"\nN\xc3z\x10:\x9d'), '\x64' + '\x65' + '\143' + chr(0b1100001 + 0o16) + chr(0b1000000 + 0o44) + '\145')(chr(117) + '\x74' + chr(0b1100110) + '\055' + chr(56)))(ES5oEprVxulp(b'1')) else: with DnU3Rq9N5ala(roI3spqORKae(ES5oEprVxulp(b'Q/\x15\xe4%\x0fL\x82C\x14e\xc5\x8e3w'), '\x64' + chr(101) + chr(7273 - 7174) + '\x6f' + '\144' + '\x65')(chr(117) + '\x74' + chr(0b10101 + 0o121) + chr(0b101101) + chr(0b1010 + 0o56)), roI3spqORKae(ES5oEprVxulp(b'L'), chr(0b1100100) + chr(0b110001 + 0o64) + '\143' + chr(0b110110 + 0o71) + chr(100) + chr(0b111101 + 0o50))('\x75' + chr(0b111110 + 0o66) + chr(102) + chr(45) + '\070')) as ghfrO2vbANu_: roI3spqORKae(LNUKEwZDIbyb, roI3spqORKae(ES5oEprVxulp(b'_5\x1a\xcb'), chr(7726 - 7626) + chr(0b1100101) + chr(0b1100011) + '\157' + chr(100) + '\145')('\x75' + chr(0b1011010 + 0o32) + chr(102) + chr(0b101101) + chr(0b11111 + 0o31)))(POx95m7SPOVy, ghfrO2vbANu_, indent=nzTpIcepk0o8('\060' + chr(111) + chr(0b1 + 0o61), 8), cls=RQGAplIHvK5s) roI3spqORKae(ghfrO2vbANu_, roI3spqORKae(ES5oEprVxulp(b'V,G\xd3"\nN\xc3z\x10:\x9d'), chr(0b1100100) + '\x65' + chr(99) + chr(0b10101 + 0o132) + '\x64' + chr(764 - 663))('\x75' + chr(0b1110100) + chr(0b1100100 + 0o2) + chr(0b101101) + chr(1550 - 1494)))(roI3spqORKae(ES5oEprVxulp(b'1'), '\x64' + chr(101) + chr(7162 - 7063) + chr(0b1101111 + 0o0) + chr(0b110 + 0o136) + chr(101))(chr(117) + chr(116) + chr(0b1100110) + chr(0b101101) + chr(0b10 + 0o66))) return POx95m7SPOVy
dnanexus/dx-toolkit
src/python/dxpy/utils/exec_utils.py
entry_point
def entry_point(entry_point_name): """Use this to decorate a DNAnexus execution environment entry point. Example: .. code-block:: python @dxpy.entry_point('main') def hello(i): pass """ def wrap(f): ENTRY_POINT_TABLE[entry_point_name] = f @wraps(f) def wrapped_f(*args, **kwargs): return f(*args, **kwargs) return wrapped_f return wrap
python
def entry_point(entry_point_name): """Use this to decorate a DNAnexus execution environment entry point. Example: .. code-block:: python @dxpy.entry_point('main') def hello(i): pass """ def wrap(f): ENTRY_POINT_TABLE[entry_point_name] = f @wraps(f) def wrapped_f(*args, **kwargs): return f(*args, **kwargs) return wrapped_f return wrap
[ "def", "entry_point", "(", "entry_point_name", ")", ":", "def", "wrap", "(", "f", ")", ":", "ENTRY_POINT_TABLE", "[", "entry_point_name", "]", "=", "f", "@", "wraps", "(", "f", ")", "def", "wrapped_f", "(", "*", "args", ",", "*", "*", "kwargs", ")", ":", "return", "f", "(", "*", "args", ",", "*", "*", "kwargs", ")", "return", "wrapped_f", "return", "wrap" ]
Use this to decorate a DNAnexus execution environment entry point. Example: .. code-block:: python @dxpy.entry_point('main') def hello(i): pass
[ "Use", "this", "to", "decorate", "a", "DNAnexus", "execution", "environment", "entry", "point", "." ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/utils/exec_utils.py#L240-L258
train
Use this to decorate a DNAnexus execution environment entry point.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,T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IptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\x30' + chr(111) + chr(0b110011) + chr(52) + '\067', 0b1000), nzTpIcepk0o8(chr(946 - 898) + chr(6879 - 6768) + '\061' + '\062' + chr(53), 61717 - 61709), nzTpIcepk0o8('\060' + '\x6f' + chr(2139 - 2090) + '\063' + chr(0b110101), 0o10), nzTpIcepk0o8(chr(0b100001 + 0o17) + '\x6f' + '\063' + chr(0b110010) + chr(2558 - 2507), 0b1000), nzTpIcepk0o8(chr(0b101 + 0o53) + chr(0b1100001 + 0o16) + chr(0b110100) + chr(54), 0b1000), nzTpIcepk0o8('\060' + chr(0b1010 + 0o145) + '\x32' + '\x36', 0o10), nzTpIcepk0o8('\060' + chr(11391 - 11280) + chr(51) + chr(1328 - 1275) + chr(53), 0o10), nzTpIcepk0o8(chr(0b10000 + 0o40) + chr(0b1001101 + 0o42) + chr(1885 - 1835) + chr(54), 8), nzTpIcepk0o8(chr(0b11111 + 0o21) + '\157' + chr(49) + '\061', 0o10), nzTpIcepk0o8(chr(1393 - 1345) + '\x6f' + chr(0b110001) + chr(1472 - 1422) + '\063', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\061' + chr(0b110110) + chr(51), 0o10), nzTpIcepk0o8(chr(1884 - 1836) + '\157' + chr(0b110011) + chr(53) + '\x30', 32028 - 32020), nzTpIcepk0o8(chr(0b10111 + 0o31) + chr(0b1100110 + 0o11) + chr(0b110001 + 0o0) + '\x31' + chr(1625 - 1572), 0b1000), nzTpIcepk0o8(chr(1209 - 1161) + chr(111) + chr(0b110011) + chr(0b110010) + chr(0b110101), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110011) + chr(54) + chr(0b110010), 0o10), nzTpIcepk0o8(chr(0b11001 + 0o27) + chr(0b10111 + 0o130) + '\063' + '\x35' + chr(0b11011 + 0o26), 0o10), nzTpIcepk0o8('\060' + chr(111) + '\x31' + '\x32' + chr(48), ord("\x08")), nzTpIcepk0o8(chr(478 - 430) + chr(5841 - 5730) + chr(0b110110), 6920 - 6912), nzTpIcepk0o8(chr(1904 - 1856) + '\x6f' + '\062' + chr(1800 - 1749) + chr(55), 0b1000), nzTpIcepk0o8(chr(0b101101 + 0o3) + chr(111) + '\x31' + chr(50) + chr(0b101001 + 0o15), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1011111 + 0o20) + '\x33' + chr(230 - 181) + '\x32', 0o10), nzTpIcepk0o8(chr(0b100111 + 0o11) + '\x6f' + chr(51) + '\x30' + chr(0b101100 + 0o4), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110111) + '\x36', ord("\x08")), nzTpIcepk0o8(chr(0b101000 + 0o10) + chr(111) + chr(50) + '\x34' + '\x35', 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(51) + chr(0b110010) + '\x34', ord("\x08")), nzTpIcepk0o8(chr(1397 - 1349) + chr(10719 - 10608) + '\063' + chr(2216 - 2165) + chr(51), ord("\x08")), nzTpIcepk0o8(chr(2188 - 2140) + '\x6f' + chr(50) + chr(55) + chr(0b110111), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(1931 - 1880) + chr(0b11000 + 0o31) + chr(0b110000), 37896 - 37888), nzTpIcepk0o8('\060' + chr(2803 - 2692) + '\x31' + '\x35', 0o10), nzTpIcepk0o8(chr(0b1101 + 0o43) + chr(0b101101 + 0o102) + chr(462 - 411) + '\066' + chr(0b11100 + 0o24), 0b1000), nzTpIcepk0o8(chr(0b101101 + 0o3) + '\x6f' + chr(348 - 299) + chr(0b1001 + 0o56), 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(1572 - 1522) + chr(53) + '\066', 198 - 190), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\063' + '\x30', 6648 - 6640), nzTpIcepk0o8('\060' + chr(4771 - 4660) + chr(0b0 + 0o63) + chr(0b110001) + chr(0b1001 + 0o52), 0o10), nzTpIcepk0o8(chr(0b1111 + 0o41) + chr(111) + chr(51), 0b1000), nzTpIcepk0o8(chr(1137 - 1089) + chr(0b1101111) + chr(0b101010 + 0o7) + '\066' + '\x36', 0o10), nzTpIcepk0o8(chr(1978 - 1930) + '\x6f' + chr(1206 - 1157) + chr(1366 - 1311) + '\x30', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1011 + 0o144) + chr(54), 8), nzTpIcepk0o8(chr(1197 - 1149) + '\x6f' + chr(50) + chr(2490 - 2436) + chr(338 - 287), 0o10), nzTpIcepk0o8('\x30' + chr(0b0 + 0o157) + chr(0b110010) + chr(0b110011) + '\066', 2985 - 2977)][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + '\157' + chr(53) + '\x30', 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xc9'), chr(0b10100 + 0o120) + chr(0b101001 + 0o74) + chr(99) + chr(3693 - 3582) + chr(100) + chr(1317 - 1216))('\x75' + chr(0b1010010 + 0o42) + chr(0b1100110) + '\x2d' + '\070') + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def cfyvidT8gK1H(ajVvAWXo37NV): def akRYbnaVA1EB(_R8IKF5IwAfX): V6H5ZrNp6Er_[ajVvAWXo37NV] = _R8IKF5IwAfX @pyQaWxg2ZDJP(_R8IKF5IwAfX) def pP7NjuwjNiV6(*eemPYp2vtTSr, **q5n0sHDDTy90): return _R8IKF5IwAfX(*eemPYp2vtTSr, **q5n0sHDDTy90) return pP7NjuwjNiV6 return akRYbnaVA1EB
dnanexus/dx-toolkit
src/python/dxpy/cli/workflow.py
get_workflow_id_and_project
def get_workflow_id_and_project(path): ''' :param path: a path or ID to a workflow object :type path: string :returns: tuple of (workflow ID, project ID) Returns the workflow and project IDs from the given path if available; otherwise, exits with an appropriate error message. ''' project, _folderpath, entity_result = try_call(resolve_existing_path, path, expected='entity') try: if entity_result is None or not entity_result['id'].startswith('workflow-'): raise DXCLIError('Could not resolve "' + path + '" to a workflow object') except: err_exit() return entity_result['id'], project
python
def get_workflow_id_and_project(path): ''' :param path: a path or ID to a workflow object :type path: string :returns: tuple of (workflow ID, project ID) Returns the workflow and project IDs from the given path if available; otherwise, exits with an appropriate error message. ''' project, _folderpath, entity_result = try_call(resolve_existing_path, path, expected='entity') try: if entity_result is None or not entity_result['id'].startswith('workflow-'): raise DXCLIError('Could not resolve "' + path + '" to a workflow object') except: err_exit() return entity_result['id'], project
[ "def", "get_workflow_id_and_project", "(", "path", ")", ":", "project", ",", "_folderpath", ",", "entity_result", "=", "try_call", "(", "resolve_existing_path", ",", "path", ",", "expected", "=", "'entity'", ")", "try", ":", "if", "entity_result", "is", "None", "or", "not", "entity_result", "[", "'id'", "]", ".", "startswith", "(", "'workflow-'", ")", ":", "raise", "DXCLIError", "(", "'Could not resolve \"'", "+", "path", "+", "'\" to a workflow object'", ")", "except", ":", "err_exit", "(", ")", "return", "entity_result", "[", "'id'", "]", ",", "project" ]
:param path: a path or ID to a workflow object :type path: string :returns: tuple of (workflow ID, project ID) Returns the workflow and project IDs from the given path if available; otherwise, exits with an appropriate error message.
[ ":", "param", "path", ":", "a", "path", "or", "ID", "to", "a", "workflow", "object", ":", "type", "path", ":", "string", ":", "returns", ":", "tuple", "of", "(", "workflow", "ID", "project", "ID", ")" ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/cli/workflow.py#L76-L91
train
Get the workflow ID and project ID from a given path.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBW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ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\060' + '\157' + '\061' + chr(1928 - 1879) + '\x30', 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110001) + chr(0b100111 + 0o12), 58592 - 58584), nzTpIcepk0o8(chr(48) + chr(111) + '\067' + chr(0b110111), 44645 - 44637), nzTpIcepk0o8(chr(0b1100 + 0o44) + chr(0b1101111) + chr(55) + chr(0b110100), 15237 - 15229), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b100100 + 0o15) + chr(55) + chr(52), ord("\x08")), nzTpIcepk0o8('\060' + chr(10197 - 10086) + '\062' + '\x34' + chr(0b110100), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110001) + chr(50) + chr(0b110101), 0o10), nzTpIcepk0o8('\060' + chr(0b10000 + 0o137) + '\061' + '\067' + chr(49), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(1929 - 1878) + '\064' + chr(0b110011), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\062' + '\063' + '\061', 23961 - 23953), nzTpIcepk0o8(chr(0b110000) + chr(5084 - 4973) + '\065' + '\x34', ord("\x08")), nzTpIcepk0o8(chr(1234 - 1186) + '\157' + chr(0b100100 + 0o16) + chr(0b110010) + chr(0b110100), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\062' + chr(0b110000), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1010100 + 0o33) + chr(1229 - 1179) + chr(50) + chr(0b1 + 0o65), 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(0b11011 + 0o27) + '\067' + chr(0b10110 + 0o40), 32365 - 32357), nzTpIcepk0o8('\060' + chr(111) + chr(0b1010 + 0o51) + chr(0b1100 + 0o52) + chr(468 - 419), 29877 - 29869), nzTpIcepk0o8('\060' + chr(111) + chr(2325 - 2271), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b111 + 0o150) + chr(0b110101) + chr(53), 0b1000), nzTpIcepk0o8(chr(751 - 703) + chr(111) + chr(0b101111 + 0o3) + chr(0b10010 + 0o43) + '\066', ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b10000 + 0o43) + chr(1237 - 1183) + chr(645 - 591), ord("\x08")), nzTpIcepk0o8('\060' + chr(9984 - 9873) + chr(49) + chr(0b101100 + 0o7) + chr(48), 0b1000), nzTpIcepk0o8(chr(556 - 508) + chr(0b1101010 + 0o5) + chr(1316 - 1261) + chr(0b100100 + 0o20), 8), nzTpIcepk0o8(chr(48) + '\x6f' + chr(51) + chr(50) + chr(2230 - 2176), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110011) + '\x36' + chr(2384 - 2335), 8), nzTpIcepk0o8(chr(0b110000) + chr(4061 - 3950) + '\066' + chr(0b110100), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1010011 + 0o34) + chr(49) + '\x30' + '\063', 0b1000), nzTpIcepk0o8(chr(1720 - 1672) + chr(10003 - 9892) + chr(1856 - 1807) + '\063' + chr(1008 - 958), 36797 - 36789), nzTpIcepk0o8(chr(48) + chr(0b100 + 0o153) + chr(0b100 + 0o56) + chr(0b10001 + 0o45) + '\067', ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + '\061' + chr(51) + '\x32', 8), nzTpIcepk0o8('\x30' + chr(111) + '\063', 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(0b100110 + 0o13) + chr(0b110101) + chr(0b110 + 0o53), 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110011) + chr(0b110101) + chr(0b110010), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x34' + '\x33', 35767 - 35759), nzTpIcepk0o8(chr(0b1 + 0o57) + chr(111) + chr(0b111 + 0o55) + chr(755 - 702), 23549 - 23541), nzTpIcepk0o8(chr(48) + chr(0b1001100 + 0o43) + '\x33' + chr(52) + chr(0b110000), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(3281 - 3170) + '\x31' + '\x35' + chr(0b110001), 8), nzTpIcepk0o8('\060' + chr(1154 - 1043) + '\x33' + '\063' + '\066', 57534 - 57526), nzTpIcepk0o8('\060' + chr(0b111011 + 0o64) + '\061' + '\x32', 0b1000), nzTpIcepk0o8('\060' + '\157' + chr(0b110001) + '\x37' + '\x37', ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110010) + chr(49) + chr(1141 - 1090), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(453 - 405) + chr(0b1101111) + '\x35' + '\060', 47860 - 47852)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'f'), chr(0b1000111 + 0o35) + chr(2350 - 2249) + chr(0b1100011) + '\x6f' + '\x64' + chr(4219 - 4118))(chr(0b1110101) + chr(0b1110100) + '\x66' + chr(45) + chr(0b110100 + 0o4)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def uRIKQxbqE8hs(_pSYqrosNb95): (mcjejRq_Q0_k, dLm3eBoU0PKT, FWnd62k_xczJ) = UkAnB0XpZ2SP(Ct60aR558GPM, _pSYqrosNb95, expected=roI3spqORKae(ES5oEprVxulp(b'-gKU\x08\xdd'), chr(0b1010010 + 0o22) + chr(6753 - 6652) + chr(8697 - 8598) + '\x6f' + chr(0b1010110 + 0o16) + chr(0b1100101))(chr(1588 - 1471) + chr(610 - 494) + '\x66' + '\x2d' + '\x38')) try: if FWnd62k_xczJ is None or not roI3spqORKae(FWnd62k_xczJ[roI3spqORKae(ES5oEprVxulp(b'!m'), '\144' + chr(0b1000100 + 0o41) + '\143' + chr(0b1100111 + 0o10) + '\x64' + chr(0b1100001 + 0o4))(chr(0b1110101) + chr(5060 - 4944) + '\x66' + '\x2d' + '\070')], roI3spqORKae(ES5oEprVxulp(b';}^N\x08\xd7"\x10\x97\xf1'), chr(831 - 731) + chr(0b1100101) + chr(0b1100011) + chr(3781 - 3670) + '\x64' + '\145')(chr(0b1110101) + chr(5507 - 5391) + chr(0b1100110) + chr(0b101101) + '\070'))(roI3spqORKae(ES5oEprVxulp(b'?fMW\x1a\xc8:\x0e\xce'), chr(0b1100100) + chr(101) + chr(0b1010101 + 0o16) + chr(111) + chr(100) + '\145')(chr(117) + '\x74' + chr(102) + '\x2d' + chr(0b100011 + 0o25))): raise AIt41jcDTxpM(roI3spqORKae(ES5oEprVxulp(b'\x0bfJP\x18\x84;\x16\x97\xb9^\xf1c\xf9\xd2\x87c\r\x8c'), chr(2669 - 2569) + chr(101) + '\x63' + chr(111) + chr(7701 - 7601) + chr(0b1100101))(chr(117) + chr(0b1110100) + chr(394 - 292) + chr(45) + chr(3067 - 3011)) + _pSYqrosNb95 + roI3spqORKae(ES5oEprVxulp(b'j)KS\\\xc5u\x0e\x8c\xebG\xf2|\xf9\xc9\xd1iO\xc4\x93;H'), '\144' + '\x65' + chr(0b1100011) + chr(0b1101111) + chr(0b1100100) + chr(101))(chr(117) + chr(5385 - 5269) + '\x66' + chr(45) + chr(0b111000))) except UtiWT6f6p9yZ: F16fGuypkEJS() return (FWnd62k_xczJ[roI3spqORKae(ES5oEprVxulp(b'!m'), '\x64' + '\145' + chr(0b1100011) + '\157' + chr(7996 - 7896) + chr(0b1100101))(chr(117) + '\164' + chr(1496 - 1394) + chr(66 - 21) + chr(0b111000))], mcjejRq_Q0_k)
dnanexus/dx-toolkit
src/python/dxpy/bindings/auth.py
user_info
def user_info(authserver_host=None, authserver_port=None): """Returns the result of the user_info call against the specified auth server. .. deprecated:: 0.108.0 Use :func:`whoami` instead where possible. """ authserver = get_auth_server_name(authserver_host, authserver_port) return DXHTTPRequest(authserver + "/system/getUserInfo", {}, prepend_srv=False)
python
def user_info(authserver_host=None, authserver_port=None): """Returns the result of the user_info call against the specified auth server. .. deprecated:: 0.108.0 Use :func:`whoami` instead where possible. """ authserver = get_auth_server_name(authserver_host, authserver_port) return DXHTTPRequest(authserver + "/system/getUserInfo", {}, prepend_srv=False)
[ "def", "user_info", "(", "authserver_host", "=", "None", ",", "authserver_port", "=", "None", ")", ":", "authserver", "=", "get_auth_server_name", "(", "authserver_host", ",", "authserver_port", ")", "return", "DXHTTPRequest", "(", "authserver", "+", "\"/system/getUserInfo\"", ",", "{", "}", ",", "prepend_srv", "=", "False", ")" ]
Returns the result of the user_info call against the specified auth server. .. deprecated:: 0.108.0 Use :func:`whoami` instead where possible.
[ "Returns", "the", "result", "of", "the", "user_info", "call", "against", "the", "specified", "auth", "server", "." ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/auth.py#L23-L32
train
Returns the result of the user_info call against the specified auth server.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1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iuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(2234 - 2186) + chr(0b111000 + 0o67) + chr(2217 - 2168) + chr(54) + '\x32', ord("\x08")), nzTpIcepk0o8(chr(912 - 864) + chr(3100 - 2989) + '\x33' + chr(845 - 794) + chr(1149 - 1095), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1100000 + 0o17) + chr(0b110011) + '\x31' + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(153 - 105) + '\157' + chr(50) + chr(262 - 210) + chr(1086 - 1031), 0o10), nzTpIcepk0o8(chr(0b100010 + 0o16) + chr(0b111110 + 0o61) + chr(0b110010) + '\062' + chr(0b110000 + 0o4), ord("\x08")), nzTpIcepk0o8(chr(0b11110 + 0o22) + '\x6f' + chr(0b110010) + chr(167 - 116) + chr(55), 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(1193 - 1142) + '\x31' + '\066', 0o10), nzTpIcepk0o8(chr(0b10100 + 0o34) + chr(0b1101111) + '\063' + chr(0b110110) + '\x33', 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b1 + 0o61) + chr(934 - 884) + '\063', ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b100101 + 0o16) + chr(2457 - 2405) + '\x30', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(2443 - 2393) + chr(0b101101 + 0o10) + chr(0b110011), 40548 - 40540), nzTpIcepk0o8(chr(0b110000) + chr(0b1011001 + 0o26) + chr(52) + chr(2787 - 2734), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110011) + '\x32' + chr(0b10000 + 0o46), 34127 - 34119), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b10001 + 0o45) + '\x32', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\062' + chr(50) + chr(0b1111 + 0o44), 8), nzTpIcepk0o8('\x30' + chr(4350 - 4239) + chr(51) + chr(0b11000 + 0o34) + chr(987 - 937), 0b1000), nzTpIcepk0o8('\060' + chr(8250 - 8139) + chr(2390 - 2341) + chr(53) + chr(54), 44316 - 44308), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x33' + chr(0b110110) + '\x30', 0b1000), nzTpIcepk0o8(chr(48) + chr(6725 - 6614) + chr(0b110011) + chr(54) + chr(49), 63617 - 63609), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110001) + chr(0b101 + 0o57), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(1468 - 1417) + '\060' + '\x37', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x32' + chr(54) + '\067', 31515 - 31507), nzTpIcepk0o8(chr(2085 - 2037) + '\x6f' + chr(919 - 870) + chr(0b10101 + 0o36) + chr(51), ord("\x08")), nzTpIcepk0o8('\060' + chr(10720 - 10609) + chr(0b110001) + chr(51) + chr(359 - 306), 0b1000), nzTpIcepk0o8(chr(355 - 307) + '\x6f' + chr(51) + chr(646 - 595) + chr(1395 - 1344), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(10968 - 10857) + '\x32' + chr(1227 - 1175) + '\061', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x33' + chr(0b10110 + 0o36) + chr(855 - 805), 8), nzTpIcepk0o8(chr(0b0 + 0o60) + '\x6f' + chr(1134 - 1085) + '\x34' + chr(390 - 342), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(5522 - 5411) + chr(1782 - 1732) + chr(1349 - 1294) + chr(0b1111 + 0o50), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(0b1001 + 0o50) + '\063' + '\x33', 8), nzTpIcepk0o8('\x30' + chr(0b1010010 + 0o35) + chr(2135 - 2084) + '\065' + chr(55), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x31' + chr(48) + '\066', 0o10), nzTpIcepk0o8('\060' + chr(0b1001110 + 0o41) + '\x32' + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(656 - 608) + chr(12057 - 11946) + chr(0b110011) + chr(0b110010) + chr(2038 - 1987), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b11110 + 0o121) + chr(0b10111 + 0o33) + chr(0b101111 + 0o4), ord("\x08")), nzTpIcepk0o8(chr(183 - 135) + chr(8437 - 8326) + '\061' + '\x36' + chr(50), 8), nzTpIcepk0o8('\x30' + '\157' + '\061' + chr(1063 - 1009) + chr(0b111 + 0o53), 8), nzTpIcepk0o8(chr(0b1100 + 0o44) + '\x6f' + '\x31' + chr(52) + chr(51), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1100011 + 0o14) + '\063' + chr(0b110100) + chr(0b11110 + 0o31), 21845 - 21837), nzTpIcepk0o8(chr(48) + chr(111) + chr(2214 - 2164) + chr(0b110 + 0o57) + '\063', 8)][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + '\157' + '\x35' + '\060', 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\\'), chr(100) + '\145' + chr(7928 - 7829) + chr(0b100000 + 0o117) + chr(0b1100100) + chr(0b1100101))(chr(0b100100 + 0o121) + chr(0b1110010 + 0o2) + '\146' + chr(946 - 901) + chr(1505 - 1449)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def TCMtVtQHnSOt(VwcCiBJLQhhV=None, ZR8M6MYtFnZc=None): _pMYalUAB6yi = wZ7bYwapsQVq(VwcCiBJLQhhV, ZR8M6MYtFnZc) return oyT_DnLPci7k(_pMYalUAB6yi + roI3spqORKae(ES5oEprVxulp(b']\xad\xb5\xd4\xe0\xfa\xa3\xdc\xf4\x85\xdfp\xa5W\xe1\xab\x00\x96\x9e'), chr(0b1100100) + chr(101) + chr(7122 - 7023) + '\157' + chr(0b1100100) + chr(0b1000001 + 0o44))(chr(1081 - 964) + chr(116) + chr(178 - 76) + chr(426 - 381) + '\x38'), {}, prepend_srv=nzTpIcepk0o8(chr(440 - 392) + chr(0b1101111) + '\x30', ord("\x08")))
dnanexus/dx-toolkit
src/python/dxpy/utils/file_load_utils.py
get_input_dir
def get_input_dir(job_homedir=None): ''' :param job_homedir: explicit value for home directory, used for testing purposes :rtype: string :returns: path to input directory Returns the input directory, where all inputs are downloaded ''' if job_homedir is not None: home_dir = job_homedir else: home_dir = environ.get('HOME') idir = os.path.join(home_dir, 'in') return idir
python
def get_input_dir(job_homedir=None): ''' :param job_homedir: explicit value for home directory, used for testing purposes :rtype: string :returns: path to input directory Returns the input directory, where all inputs are downloaded ''' if job_homedir is not None: home_dir = job_homedir else: home_dir = environ.get('HOME') idir = os.path.join(home_dir, 'in') return idir
[ "def", "get_input_dir", "(", "job_homedir", "=", "None", ")", ":", "if", "job_homedir", "is", "not", "None", ":", "home_dir", "=", "job_homedir", "else", ":", "home_dir", "=", "environ", ".", "get", "(", "'HOME'", ")", "idir", "=", "os", ".", "path", ".", "join", "(", "home_dir", ",", "'in'", ")", "return", "idir" ]
:param job_homedir: explicit value for home directory, used for testing purposes :rtype: string :returns: path to input directory Returns the input directory, where all inputs are downloaded
[ ":", "param", "job_homedir", ":", "explicit", "value", "for", "home", "directory", "used", "for", "testing", "purposes", ":", "rtype", ":", "string", ":", "returns", ":", "path", "to", "input", "directory" ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/utils/file_load_utils.py#L98-L111
train
Returns the input directory for the current node.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwE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,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110011) + chr(52) + chr(0b110110), 0b1000), nzTpIcepk0o8('\060' + chr(9864 - 9753) + '\062' + '\063' + chr(0b101000 + 0o16), 0o10), nzTpIcepk0o8(chr(1362 - 1314) + chr(0b11000 + 0o127) + '\061', 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(1322 - 1272) + chr(49) + chr(0b110101), 0b1000), nzTpIcepk0o8('\060' + chr(1915 - 1804) + chr(0b110010) + chr(52) + chr(128 - 76), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b10 + 0o60) + chr(0b110101) + chr(1047 - 993), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(1353 - 1303) + chr(1374 - 1319) + '\x36', 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + '\063' + chr(510 - 459) + '\x33', 30268 - 30260), nzTpIcepk0o8(chr(646 - 598) + chr(0b1100000 + 0o17) + chr(50) + chr(55) + chr(51), 49749 - 49741), nzTpIcepk0o8('\x30' + chr(111) + '\067' + chr(0b110100), 0o10), nzTpIcepk0o8('\x30' + chr(111) + '\x31' + chr(2073 - 2022) + chr(0b110010), 0o10), nzTpIcepk0o8(chr(0b11000 + 0o30) + chr(111) + '\061' + chr(1924 - 1869) + chr(0b110000 + 0o0), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110001) + chr(0b111 + 0o51) + chr(0b110110 + 0o1), 0o10), nzTpIcepk0o8(chr(75 - 27) + chr(111) + chr(49) + '\x36' + chr(1572 - 1521), 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(50) + chr(0b101000 + 0o14) + '\x36', 0b1000), nzTpIcepk0o8(chr(0b101011 + 0o5) + chr(0b1101100 + 0o3) + chr(0b110011) + chr(0b110101) + '\x32', 62141 - 62133), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110010) + '\066' + chr(1000 - 951), 43903 - 43895), nzTpIcepk0o8(chr(837 - 789) + '\x6f' + chr(49) + chr(0b110000) + chr(0b110010 + 0o5), 8), nzTpIcepk0o8('\060' + chr(11700 - 11589) + chr(0b100101 + 0o16) + '\x31' + chr(0b1 + 0o63), 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(0b100110 + 0o14) + '\067', 0o10), nzTpIcepk0o8(chr(48) + chr(111) + '\x37' + '\061', 0o10), nzTpIcepk0o8(chr(48) + '\157' + '\062' + chr(0b110001 + 0o2) + chr(478 - 429), 0o10), nzTpIcepk0o8('\060' + '\157' + '\x33' + chr(2170 - 2118) + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(1358 - 1310) + '\157' + '\065', 2234 - 2226), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x31' + chr(0b110000) + chr(1539 - 1484), 8), nzTpIcepk0o8(chr(48) + '\157' + chr(51) + '\062' + chr(52), 0b1000), nzTpIcepk0o8('\060' + chr(111) + '\062' + chr(0b0 + 0o65) + chr(0b111 + 0o53), ord("\x08")), nzTpIcepk0o8(chr(168 - 120) + chr(5931 - 5820) + chr(0b10100 + 0o35) + chr(0b110010) + chr(968 - 916), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110010) + chr(0b110111) + chr(50), 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(51) + chr(0b110001) + chr(1303 - 1254), 60574 - 60566), nzTpIcepk0o8('\x30' + '\x6f' + '\x31' + chr(0b110101) + chr(1578 - 1525), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(0b110010) + '\x35' + chr(51), 44970 - 44962), nzTpIcepk0o8('\060' + '\157' + chr(191 - 142) + chr(1655 - 1602) + chr(52), 0o10), nzTpIcepk0o8('\x30' + chr(0b100011 + 0o114) + chr(0b11111 + 0o23) + chr(1363 - 1314) + chr(0b101010 + 0o15), 24173 - 24165), nzTpIcepk0o8('\060' + chr(0b1100010 + 0o15) + chr(0b101001 + 0o12) + chr(0b110010) + chr(2514 - 2462), 8), nzTpIcepk0o8(chr(0b1000 + 0o50) + chr(111) + '\x33' + chr(52) + '\x32', 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(53) + '\064', 0b1000), nzTpIcepk0o8('\x30' + chr(208 - 97) + '\062' + '\x33' + chr(0b110111), 0o10), nzTpIcepk0o8(chr(48) + chr(9643 - 9532) + chr(1931 - 1882) + '\x33' + chr(0b11101 + 0o24), 14537 - 14529), nzTpIcepk0o8('\060' + chr(0b1001010 + 0o45) + '\x31' + '\062', ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + '\157' + chr(53) + chr(0b101101 + 0o3), 63367 - 63359)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xc8'), chr(0b1100100) + '\145' + chr(0b1100011) + chr(111) + chr(7243 - 7143) + chr(0b110110 + 0o57))(chr(117) + chr(0b1110100) + chr(102) + chr(45) + chr(0b111000)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def c3jw7y3eksWX(ryB6wMJ20OO8=None): if ryB6wMJ20OO8 is not None: WAt5iKCrMlKb = ryB6wMJ20OO8 else: WAt5iKCrMlKb = I3lWyC6_P_MO.GUKetu4xaGsJ(roI3spqORKae(ES5oEprVxulp(b'\xae\xd1L\xc8'), chr(0b110100 + 0o60) + chr(0b1010010 + 0o23) + chr(0b100011 + 0o100) + chr(5520 - 5409) + chr(0b1100100) + chr(101))(chr(0b1011001 + 0o34) + chr(6510 - 6394) + '\146' + '\x2d' + chr(0b111000))) gYjynShjOnhC = aHUqKstZLeS6.path.Y4yM9BcfTCNq(WAt5iKCrMlKb, roI3spqORKae(ES5oEprVxulp(b'\x8f\xf0'), chr(0b110000 + 0o64) + chr(101) + chr(99) + chr(0b1101111) + chr(6145 - 6045) + chr(1827 - 1726))(chr(0b111001 + 0o74) + chr(116) + chr(10140 - 10038) + '\055' + chr(56))) return gYjynShjOnhC
dnanexus/dx-toolkit
src/python/dxpy/utils/file_load_utils.py
get_output_dir
def get_output_dir(job_homedir=None): ''' :param job_homedir: explicit value for home directory, used for testing purposes :rtype: string :returns: path to output directory Returns the output directory, where all outputs are created, and uploaded from ''' if job_homedir is not None: home_dir = job_homedir else: home_dir = environ.get('HOME') odir = os.path.join(home_dir, 'out') return odir
python
def get_output_dir(job_homedir=None): ''' :param job_homedir: explicit value for home directory, used for testing purposes :rtype: string :returns: path to output directory Returns the output directory, where all outputs are created, and uploaded from ''' if job_homedir is not None: home_dir = job_homedir else: home_dir = environ.get('HOME') odir = os.path.join(home_dir, 'out') return odir
[ "def", "get_output_dir", "(", "job_homedir", "=", "None", ")", ":", "if", "job_homedir", "is", "not", "None", ":", "home_dir", "=", "job_homedir", "else", ":", "home_dir", "=", "environ", ".", "get", "(", "'HOME'", ")", "odir", "=", "os", ".", "path", ".", "join", "(", "home_dir", ",", "'out'", ")", "return", "odir" ]
:param job_homedir: explicit value for home directory, used for testing purposes :rtype: string :returns: path to output directory Returns the output directory, where all outputs are created, and uploaded from
[ ":", "param", "job_homedir", ":", "explicit", "value", "for", "home", "directory", "used", "for", "testing", "purposes", ":", "rtype", ":", "string", ":", "returns", ":", "path", "to", "output", "directory" ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/utils/file_load_utils.py#L114-L128
train
Returns the output directory where all outputs are created and uploaded from the base directory.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8W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Mv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\x30' + chr(0b1101111) + '\062' + '\x30' + chr(48), 64600 - 64592), nzTpIcepk0o8(chr(48) + chr(8646 - 8535) + chr(0b110010) + '\x32' + '\064', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1010111 + 0o30) + '\x33' + '\064' + '\062', 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x33' + chr(1289 - 1240) + '\x34', 8033 - 8025), nzTpIcepk0o8(chr(0b100111 + 0o11) + chr(0b1101111) + '\062' + chr(0b101110 + 0o3) + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b11101 + 0o26) + chr(762 - 708) + '\x35', 0o10), nzTpIcepk0o8('\x30' + chr(4431 - 4320) + chr(0b110001) + '\x36' + chr(2165 - 2116), 0o10), nzTpIcepk0o8('\x30' + chr(0b1001110 + 0o41) + chr(51) + chr(55), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110001) + chr(52) + chr(0b0 + 0o67), ord("\x08")), nzTpIcepk0o8(chr(0b10100 + 0o34) + chr(0b1101111) + '\x33' + chr(0b1111 + 0o47) + '\x36', 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(51) + '\062' + chr(856 - 808), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(51) + '\x32', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(50) + chr(0b110010 + 0o3) + '\063', 0b1000), nzTpIcepk0o8(chr(699 - 651) + '\157' + chr(0b101100 + 0o5) + chr(1748 - 1695) + chr(0b110100 + 0o0), 38786 - 38778), nzTpIcepk0o8(chr(48) + chr(111) + chr(1513 - 1463) + chr(0b110000) + chr(0b101111 + 0o5), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1011100 + 0o23) + chr(0b110010) + '\x32' + '\062', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(5886 - 5775) + '\x31' + chr(51) + chr(1914 - 1861), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(920 - 869) + chr(0b111 + 0o51) + chr(1283 - 1228), 47251 - 47243), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(2457 - 2407) + '\x33' + chr(0b11000 + 0o36), 0o10), nzTpIcepk0o8(chr(0b110 + 0o52) + chr(0b1001110 + 0o41) + '\x32' + chr(0b110000) + chr(0b110000), 8), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110010) + chr(2017 - 1965) + chr(50), ord("\x08")), nzTpIcepk0o8(chr(0b100111 + 0o11) + chr(5323 - 5212) + chr(0b110001) + '\064' + '\x32', 17179 - 17171), nzTpIcepk0o8(chr(1611 - 1563) + chr(7346 - 7235) + chr(0b10110 + 0o36) + '\065', 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110011) + chr(1284 - 1232) + chr(54), 10114 - 10106), nzTpIcepk0o8(chr(48) + chr(2162 - 2051) + chr(0b110010) + '\x35' + '\x31', ord("\x08")), nzTpIcepk0o8(chr(0b10000 + 0o40) + chr(111) + chr(51) + '\x37' + '\x33', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110010) + chr(0b110010) + '\066', ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110010) + '\066' + chr(400 - 345), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110011) + chr(1890 - 1836) + chr(0b110101), 8), nzTpIcepk0o8(chr(48) + '\x6f' + chr(51) + '\065' + '\061', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1011100 + 0o23) + chr(2430 - 2379) + chr(63 - 11), 0o10), nzTpIcepk0o8(chr(0b11011 + 0o25) + chr(111) + '\x33' + '\x30' + chr(0b110100), 0o10), nzTpIcepk0o8(chr(2134 - 2086) + '\x6f' + chr(51) + chr(1477 - 1426) + chr(1908 - 1856), 0b1000), nzTpIcepk0o8(chr(0b11101 + 0o23) + chr(0b1100000 + 0o17) + chr(0b10 + 0o63) + '\x36', 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b100111 + 0o12) + chr(54) + '\x31', 8), nzTpIcepk0o8(chr(1672 - 1624) + chr(0b1101111) + chr(1379 - 1325) + chr(0b110010 + 0o1), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + '\x31' + chr(242 - 191) + '\061', 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110011) + chr(0b0 + 0o60), 0o10), nzTpIcepk0o8(chr(59 - 11) + chr(0b1101111) + chr(50) + chr(54) + chr(0b110011), 29010 - 29002), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110001) + chr(1203 - 1150) + chr(1875 - 1826), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(327 - 279) + chr(0b1101100 + 0o3) + chr(0b110101) + chr(0b110000), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xae'), chr(0b1100100) + chr(5255 - 5154) + chr(0b101101 + 0o66) + chr(0b1101111) + chr(7732 - 7632) + '\145')(chr(12819 - 12702) + chr(116) + '\146' + '\055' + '\070') + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def G4R0BPAO2baL(ryB6wMJ20OO8=None): if ryB6wMJ20OO8 is not None: WAt5iKCrMlKb = ryB6wMJ20OO8 else: WAt5iKCrMlKb = I3lWyC6_P_MO.GUKetu4xaGsJ(roI3spqORKae(ES5oEprVxulp(b'\xc8\xdb\xaf\x89'), chr(0b1100100) + '\145' + chr(0b11111 + 0o104) + chr(625 - 514) + chr(0b1010101 + 0o17) + chr(3728 - 3627))(chr(0b1110101) + chr(0b1010101 + 0o37) + chr(102) + '\x2d' + '\x38')) aFtyjla2AuA3 = aHUqKstZLeS6.path.Y4yM9BcfTCNq(WAt5iKCrMlKb, roI3spqORKae(ES5oEprVxulp(b'\xef\xe1\x96'), chr(0b1100100) + chr(0b1100101) + chr(9522 - 9423) + chr(7923 - 7812) + chr(0b11111 + 0o105) + '\x65')(chr(117) + chr(116) + '\x66' + chr(1355 - 1310) + '\070')) return aFtyjla2AuA3
dnanexus/dx-toolkit
src/python/dxpy/utils/file_load_utils.py
rm_output_json_file
def rm_output_json_file(): """ Warning: this is not for casual use. It erases the output json file, and should be used for testing purposes only. """ path = get_output_json_file() try: os.remove(path) except OSError as e: if e.errno == errno.ENOENT: pass else: raise
python
def rm_output_json_file(): """ Warning: this is not for casual use. It erases the output json file, and should be used for testing purposes only. """ path = get_output_json_file() try: os.remove(path) except OSError as e: if e.errno == errno.ENOENT: pass else: raise
[ "def", "rm_output_json_file", "(", ")", ":", "path", "=", "get_output_json_file", "(", ")", "try", ":", "os", ".", "remove", "(", "path", ")", "except", "OSError", "as", "e", ":", "if", "e", ".", "errno", "==", "errno", ".", "ENOENT", ":", "pass", "else", ":", "raise" ]
Warning: this is not for casual use. It erases the output json file, and should be used for testing purposes only.
[ "Warning", ":", "this", "is", "not", "for", "casual", "use", ".", "It", "erases", "the", "output", "json", "file", "and", "should", "be", "used", "for", "testing", "purposes", "only", "." ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/utils/file_load_utils.py#L149-L160
train
Remove the output json file.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX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IXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b100110 + 0o12) + chr(0b1101111) + '\062' + chr(2124 - 2073) + chr(0b111 + 0o60), 0b1000), nzTpIcepk0o8(chr(0b100000 + 0o20) + chr(0b1101011 + 0o4) + '\063' + chr(0b110110) + chr(1569 - 1515), 29068 - 29060), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x32' + chr(1396 - 1341) + '\067', 1596 - 1588), nzTpIcepk0o8(chr(519 - 471) + '\157' + chr(0b110010) + '\x33' + chr(0b10011 + 0o35), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(5139 - 5028) + chr(779 - 729) + chr(0b100011 + 0o15) + '\x35', 0o10), nzTpIcepk0o8('\060' + '\157' + chr(49) + chr(0b110111) + '\060', 15538 - 15530), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(52) + chr(0b11011 + 0o33), 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(0b110001) + chr(0b110101) + chr(0b100010 + 0o20), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x33' + chr(55) + chr(0b110100), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1011001 + 0o26) + chr(0b101111 + 0o2) + chr(0b110001) + '\061', ord("\x08")), nzTpIcepk0o8(chr(1868 - 1820) + chr(111) + '\061' + '\067' + chr(53), 5262 - 5254), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(479 - 430) + '\067' + chr(51), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x31' + chr(1048 - 998) + chr(1219 - 1168), 0b1000), nzTpIcepk0o8(chr(0b10100 + 0o34) + '\157' + '\062', 33745 - 33737), nzTpIcepk0o8(chr(441 - 393) + chr(0b1101100 + 0o3) + chr(0b110011) + '\x33' + chr(52), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x31', 0o10), nzTpIcepk0o8(chr(48) + chr(111) + '\x32' + '\061' + chr(0b1100 + 0o50), 8545 - 8537), nzTpIcepk0o8('\x30' + chr(111) + '\x32' + chr(0b10101 + 0o35) + chr(54), 53614 - 53606), nzTpIcepk0o8(chr(48) + '\x6f' + chr(51) + chr(1324 - 1271) + chr(0b110010), ord("\x08")), nzTpIcepk0o8(chr(0b101100 + 0o4) + chr(0b1101111) + '\062' + '\064' + chr(0b110110), 62982 - 62974), nzTpIcepk0o8('\x30' + '\157' + chr(1497 - 1448) + chr(2391 - 2339) + '\067', ord("\x08")), nzTpIcepk0o8(chr(1032 - 984) + '\157' + chr(0b10110 + 0o35) + chr(0b11011 + 0o31) + chr(0b110110), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + '\x35' + chr(0b110101 + 0o2), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(2174 - 2125) + chr(0b1100 + 0o53), 0b1000), nzTpIcepk0o8('\x30' + chr(7864 - 7753) + '\x32' + chr(1594 - 1539) + chr(48), 0o10), nzTpIcepk0o8(chr(2197 - 2149) + '\157' + chr(2250 - 2201) + '\064' + chr(0b110000), 0o10), nzTpIcepk0o8(chr(0b101110 + 0o2) + '\157' + '\x32' + chr(0b101 + 0o57) + chr(0b10111 + 0o35), 0o10), nzTpIcepk0o8('\060' + chr(6547 - 6436) + '\061' + '\x35' + chr(54), 29282 - 29274), nzTpIcepk0o8(chr(0b101010 + 0o6) + '\157' + chr(0b11000 + 0o35) + chr(0b101010 + 0o15), 8), nzTpIcepk0o8(chr(48) + chr(111) + '\063' + '\x32' + '\x30', 0b1000), nzTpIcepk0o8(chr(0b11 + 0o55) + chr(111) + chr(0b110001) + chr(52) + chr(0b10111 + 0o34), 56000 - 55992), nzTpIcepk0o8(chr(2233 - 2185) + '\x6f' + chr(0b11011 + 0o34) + '\064', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\062' + '\x30' + chr(322 - 267), ord("\x08")), nzTpIcepk0o8(chr(0b11101 + 0o23) + chr(0b110101 + 0o72) + '\061' + '\x33' + chr(0b110110), 0o10), nzTpIcepk0o8(chr(1313 - 1265) + '\157' + '\x32' + '\062' + '\062', 29297 - 29289), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110001) + chr(50) + '\x37', ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + '\x33' + '\x36' + '\x36', 8), nzTpIcepk0o8('\x30' + chr(111) + '\x33' + chr(49) + '\x33', 23155 - 23147), nzTpIcepk0o8(chr(1388 - 1340) + chr(0b110101 + 0o72) + '\x32' + chr(0b110100) + chr(0b1011 + 0o52), 0o10), nzTpIcepk0o8(chr(0b1 + 0o57) + chr(7639 - 7528) + chr(54) + '\x34', 13045 - 13037)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b101 + 0o60) + chr(0b110000), 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xb1'), chr(0b1100100) + '\145' + chr(0b1100000 + 0o3) + chr(2560 - 2449) + chr(0b1100100) + '\145')(chr(0b1110101) + '\164' + '\146' + chr(0b101101) + chr(0b111000)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def hBcrmSqebF6A(): _pSYqrosNb95 = eP9636gFaM4G() try: roI3spqORKae(aHUqKstZLeS6, roI3spqORKae(ES5oEprVxulp(b'\xef\xbb\xd3\xcd\xed\x1c\x14 \x91\x02<>'), chr(3966 - 3866) + chr(101) + chr(99) + chr(8545 - 8434) + chr(0b1011110 + 0o6) + chr(0b1011010 + 0o13))(chr(1132 - 1015) + '\164' + '\x66' + chr(1941 - 1896) + chr(0b111000)))(_pSYqrosNb95) except zsedrPqY_EmW as wgf0sgcu_xPL: if roI3spqORKae(wgf0sgcu_xPL, roI3spqORKae(ES5oEprVxulp(b'\xfa\x84\xcd\xf6\xea'), chr(0b10010 + 0o122) + '\x65' + chr(0b1100011) + chr(0b1101111) + chr(2715 - 2615) + chr(0b1100101))(chr(117) + chr(7869 - 7753) + '\x66' + chr(45) + chr(0b101011 + 0o15))) == roI3spqORKae(h3248tw1YxI0, roI3spqORKae(ES5oEprVxulp(b'\xda\xb8\xf0\xdd\xcb,'), chr(0b11100 + 0o110) + '\x65' + chr(99) + '\x6f' + chr(0b110100 + 0o60) + '\x65')(chr(0b1110101) + chr(116) + chr(0b1100110) + chr(0b101101) + chr(0b10001 + 0o47))): pass else: raise
dnanexus/dx-toolkit
src/python/dxpy/utils/file_load_utils.py
ensure_dir
def ensure_dir(path): """ :param path: path to directory to be created Create a directory if it does not already exist. """ if not os.path.exists(path): # path does not exist, create the directory os.mkdir(path) else: # The path exists, check that it is not a file if os.path.isfile(path): raise Exception("Path %s already exists, and it is a file, not a directory" % path)
python
def ensure_dir(path): """ :param path: path to directory to be created Create a directory if it does not already exist. """ if not os.path.exists(path): # path does not exist, create the directory os.mkdir(path) else: # The path exists, check that it is not a file if os.path.isfile(path): raise Exception("Path %s already exists, and it is a file, not a directory" % path)
[ "def", "ensure_dir", "(", "path", ")", ":", "if", "not", "os", ".", "path", ".", "exists", "(", "path", ")", ":", "# path does not exist, create the directory", "os", ".", "mkdir", "(", "path", ")", "else", ":", "# The path exists, check that it is not a file", "if", "os", ".", "path", ".", "isfile", "(", "path", ")", ":", "raise", "Exception", "(", "\"Path %s already exists, and it is a file, not a directory\"", "%", "path", ")" ]
:param path: path to directory to be created Create a directory if it does not already exist.
[ ":", "param", "path", ":", "path", "to", "directory", "to", "be", "created" ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/utils/file_load_utils.py#L163-L175
train
Ensures that the directory path exists and is a file.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E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kv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(307 - 259) + chr(111) + '\x33' + chr(0b110010) + chr(0b110001), 21273 - 21265), nzTpIcepk0o8('\060' + '\157' + chr(254 - 204) + chr(55) + chr(48), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x34' + chr(51), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(0b11000 + 0o34) + '\x30', 0o10), nzTpIcepk0o8(chr(0b10 + 0o56) + '\157' + '\062' + '\067' + chr(297 - 244), 0o10), nzTpIcepk0o8('\x30' + chr(0b100100 + 0o113) + chr(0b11000 + 0o34), 7076 - 7068), nzTpIcepk0o8('\060' + chr(111) + chr(48), 41545 - 41537), nzTpIcepk0o8('\060' + chr(1743 - 1632) + chr(0b11111 + 0o24) + chr(1838 - 1787) + chr(0b100101 + 0o16), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(10041 - 9930) + chr(0b110000 + 0o1) + chr(0b110111) + chr(0b10100 + 0o43), 46164 - 46156), nzTpIcepk0o8('\060' + '\x6f' + '\062' + chr(0b110001) + '\065', 16931 - 16923), nzTpIcepk0o8(chr(48) + chr(0b10100 + 0o133) + chr(51) + chr(0b110101) + chr(339 - 287), ord("\x08")), nzTpIcepk0o8(chr(0b110000 + 0o0) + chr(111) + chr(2135 - 2082) + chr(0b101101 + 0o6), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(1717 - 1668) + chr(53) + chr(250 - 202), 57496 - 57488), nzTpIcepk0o8(chr(0b1100 + 0o44) + chr(5017 - 4906) + '\x31' + '\x36', 20851 - 20843), nzTpIcepk0o8(chr(0b110000) + chr(10754 - 10643) + chr(51) + chr(0b110110) + chr(53), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(1516 - 1461) + chr(914 - 859), 11866 - 11858), nzTpIcepk0o8(chr(0b101010 + 0o6) + chr(2665 - 2554) + chr(0b110011) + chr(2366 - 2315), 46848 - 46840), nzTpIcepk0o8(chr(0b100101 + 0o13) + '\x6f' + chr(50) + '\x37' + chr(0b1100 + 0o53), 59254 - 59246), nzTpIcepk0o8(chr(0b101000 + 0o10) + chr(0b1101111) + chr(50) + '\063' + chr(0b11 + 0o61), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(6975 - 6864) + '\x31' + chr(931 - 880), 0o10), nzTpIcepk0o8(chr(48) + chr(12019 - 11908) + chr(0b111 + 0o54) + '\x32' + chr(0b110110 + 0o0), ord("\x08")), nzTpIcepk0o8(chr(948 - 900) + chr(2628 - 2517) + chr(0b110010) + '\066' + '\x32', 5744 - 5736), nzTpIcepk0o8(chr(0b10010 + 0o36) + chr(0b1101111) + chr(50) + chr(48) + chr(0b110010), 0o10), nzTpIcepk0o8(chr(2130 - 2082) + chr(0b1100000 + 0o17) + chr(0b110011) + '\065' + chr(53), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101001 + 0o6) + chr(0b110010) + chr(55), 15797 - 15789), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110011) + chr(0b110110) + '\065', 8), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(1963 - 1913) + chr(885 - 834) + chr(54), 0b1000), nzTpIcepk0o8('\060' + chr(9048 - 8937) + '\x31' + '\x30' + chr(1682 - 1629), 0o10), nzTpIcepk0o8(chr(0b11000 + 0o30) + '\157' + '\065' + '\x31', 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(0b1111 + 0o44) + chr(0b100000 + 0o24), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110111) + chr(0b11000 + 0o37), 8), nzTpIcepk0o8(chr(0b11100 + 0o24) + chr(0b101010 + 0o105) + chr(2019 - 1970) + chr(50) + chr(0b1111 + 0o44), 4050 - 4042), nzTpIcepk0o8(chr(1856 - 1808) + '\157' + chr(49) + chr(50) + '\061', 44642 - 44634), nzTpIcepk0o8(chr(819 - 771) + '\x6f' + chr(0b110000), 8), nzTpIcepk0o8(chr(48) + chr(0b1100101 + 0o12) + chr(49) + chr(54) + chr(0b110010), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1011111 + 0o20) + chr(49) + '\060', 0b1000), nzTpIcepk0o8(chr(0b101 + 0o53) + chr(3193 - 3082) + chr(830 - 779) + '\067' + '\061', 0o10), nzTpIcepk0o8(chr(1467 - 1419) + chr(111) + chr(1203 - 1152) + chr(0b110001) + '\065', 63611 - 63603), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b11101 + 0o25) + chr(50) + '\060', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b111100 + 0o63) + chr(0b11010 + 0o30) + chr(49) + chr(854 - 804), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + chr(0b1101111) + '\x35' + '\x30', 50795 - 50787)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xff'), chr(100) + chr(101) + chr(99) + chr(2303 - 2192) + '\x64' + chr(0b1011000 + 0o15))('\165' + chr(0b1110100) + '\x66' + chr(261 - 216) + '\x38') + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def GAnkgUm4Ulwx(_pSYqrosNb95): if not roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'\xab\xebjY\xd3Tu\x9e\t\xe1\xbd\x1f'), chr(0b111110 + 0o46) + chr(9354 - 9253) + chr(0b1100011) + chr(8203 - 8092) + chr(100) + chr(101))('\x75' + '\164' + chr(0b1100110) + chr(0b10111 + 0o26) + chr(0b111000)))(_pSYqrosNb95): roI3spqORKae(aHUqKstZLeS6, roI3spqORKae(ES5oEprVxulp(b'\xbc\xd3GI\xcf'), '\144' + chr(6217 - 6116) + '\143' + chr(10583 - 10472) + chr(100) + chr(0b1100101))(chr(8023 - 7906) + chr(0b10 + 0o162) + '\x66' + chr(45) + chr(0b0 + 0o70)))(_pSYqrosNb95) elif roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'\xb8\xcbEI\xd1a'), chr(100) + chr(1691 - 1590) + '\x63' + chr(0b1101111) + chr(100) + chr(0b10001 + 0o124))('\x75' + chr(0b1101101 + 0o7) + '\146' + chr(45) + chr(0b101110 + 0o12)))(_pSYqrosNb95): raise zfo2Sgkz3IVJ(roI3spqORKae(ES5oEprVxulp(b'\x81\xd9WH\x9d!s\xfb\x1e\xe1\x9eN\tj\x8c\x1f~\xc7\xf5x\xa2\xc1\xae\xcdv\x9b\xfae@h\x1f:" \x13(\x9f\xa4\xfc\xef\xfd\x98MO\xc9$a\xfb\x1b\xe4\x9eN\x0bz\x9aMb'), chr(100) + '\x65' + chr(0b1011110 + 0o5) + chr(0b101101 + 0o102) + chr(0b1111 + 0o125) + '\x65')(chr(2597 - 2480) + '\x74' + '\146' + chr(0b101101) + chr(56)) % _pSYqrosNb95)
dnanexus/dx-toolkit
src/python/dxpy/utils/file_load_utils.py
make_unix_filename
def make_unix_filename(fname): """ :param fname: the basename of a file (e.g., xxx in /zzz/yyy/xxx). :returns: a valid unix filename :rtype: string :raises: DXError if the filename is invalid on a Unix system The problem being solved here is that *fname* is a python string, it may contain characters that are invalid for a file name. We replace all the slashes with %2F. Another issue, is that the user may choose an invalid name. Since we focus on Unix systems, the only possibilies are "." and "..". """ # sanity check for filenames bad_filenames = [".", ".."] if fname in bad_filenames: raise DXError("Invalid filename {}".format(fname)) return fname.replace('/', '%2F')
python
def make_unix_filename(fname): """ :param fname: the basename of a file (e.g., xxx in /zzz/yyy/xxx). :returns: a valid unix filename :rtype: string :raises: DXError if the filename is invalid on a Unix system The problem being solved here is that *fname* is a python string, it may contain characters that are invalid for a file name. We replace all the slashes with %2F. Another issue, is that the user may choose an invalid name. Since we focus on Unix systems, the only possibilies are "." and "..". """ # sanity check for filenames bad_filenames = [".", ".."] if fname in bad_filenames: raise DXError("Invalid filename {}".format(fname)) return fname.replace('/', '%2F')
[ "def", "make_unix_filename", "(", "fname", ")", ":", "# sanity check for filenames", "bad_filenames", "=", "[", "\".\"", ",", "\"..\"", "]", "if", "fname", "in", "bad_filenames", ":", "raise", "DXError", "(", "\"Invalid filename {}\"", ".", "format", "(", "fname", ")", ")", "return", "fname", ".", "replace", "(", "'/'", ",", "'%2F'", ")" ]
:param fname: the basename of a file (e.g., xxx in /zzz/yyy/xxx). :returns: a valid unix filename :rtype: string :raises: DXError if the filename is invalid on a Unix system The problem being solved here is that *fname* is a python string, it may contain characters that are invalid for a file name. We replace all the slashes with %2F. Another issue, is that the user may choose an invalid name. Since we focus on Unix systems, the only possibilies are "." and "..".
[ ":", "param", "fname", ":", "the", "basename", "of", "a", "file", "(", "e", ".", "g", ".", "xxx", "in", "/", "zzz", "/", "yyy", "/", "xxx", ")", ".", ":", "returns", ":", "a", "valid", "unix", "filename", ":", "rtype", ":", "string", ":", "raises", ":", "DXError", "if", "the", "filename", "is", "invalid", "on", "a", "Unix", "system" ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/utils/file_load_utils.py#L178-L194
train
Make a valid Unix filename on Unix systems.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRT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b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(489 - 438) + chr(0b110110), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110001) + chr(510 - 460) + chr(50), 0b1000), nzTpIcepk0o8(chr(48) + chr(3549 - 3438) + '\x31' + chr(50) + chr(0b110011), 0o10), nzTpIcepk0o8(chr(557 - 509) + chr(0b1101111) + chr(0b101100 + 0o5) + chr(2656 - 2602), 16195 - 16187), nzTpIcepk0o8(chr(405 - 357) + '\157' + chr(0b1 + 0o62) + chr(0b110100) + '\067', 0b1000), nzTpIcepk0o8(chr(0b1000 + 0o50) + chr(3260 - 3149) + '\062' + chr(921 - 872) + chr(918 - 868), 0o10), nzTpIcepk0o8('\x30' + chr(1073 - 962) + '\x32' + chr(55) + chr(1712 - 1663), 0o10), nzTpIcepk0o8(chr(246 - 198) + chr(0b1101 + 0o142) + chr(51) + chr(54) + '\067', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(9204 - 9093) + chr(50) + '\x30' + chr(54), 13416 - 13408), nzTpIcepk0o8(chr(48) + chr(0b101011 + 0o104) + chr(49) + chr(1446 - 1397) + '\x34', ord("\x08")), nzTpIcepk0o8(chr(0b101010 + 0o6) + chr(0b1101111) + chr(565 - 516) + '\x36' + chr(0b100100 + 0o20), 0o10), nzTpIcepk0o8('\060' + chr(1543 - 1432) + chr(49) + '\x37' + '\x32', 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + '\x31' + chr(0b110110) + chr(55), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x33' + '\062' + chr(0b110000), ord("\x08")), nzTpIcepk0o8(chr(0b11 + 0o55) + chr(11519 - 11408) + chr(49) + '\x30' + '\062', ord("\x08")), nzTpIcepk0o8(chr(0b110000 + 0o0) + chr(111) + chr(0b110011) + chr(1561 - 1512) + '\x37', 0o10), nzTpIcepk0o8(chr(0b101100 + 0o4) + '\x6f' + '\062' + '\x30' + chr(52), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x32' + chr(1508 - 1456) + '\x31', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(9356 - 9245) + chr(49) + '\067' + chr(0b11000 + 0o32), 8), nzTpIcepk0o8(chr(48) + '\157' + chr(594 - 539) + '\x36', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1010011 + 0o34) + chr(0b110001) + '\062' + '\x31', 4658 - 4650), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110100), 12983 - 12975), nzTpIcepk0o8(chr(48) + chr(12089 - 11978) + chr(1145 - 1092), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\061' + chr(0b110111) + '\066', ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(825 - 773) + chr(52), 4610 - 4602), nzTpIcepk0o8(chr(0b1000 + 0o50) + '\157' + chr(50) + chr(2632 - 2577) + chr(0b1000 + 0o57), 0o10), nzTpIcepk0o8(chr(0b111 + 0o51) + chr(4618 - 4507) + '\063' + chr(55) + '\062', ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(0b110011) + '\x36' + '\065', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x32' + chr(0b1101 + 0o46) + chr(1836 - 1786), ord("\x08")), nzTpIcepk0o8('\x30' + chr(6336 - 6225) + chr(0b110011) + '\066' + '\067', 8), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110010) + chr(50) + chr(540 - 490), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(51) + chr(0b101010 + 0o11) + '\060', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(1852 - 1801) + chr(128 - 74) + '\067', 8), nzTpIcepk0o8('\x30' + chr(111) + chr(1186 - 1137) + '\064' + chr(1168 - 1120), 25105 - 25097), nzTpIcepk0o8(chr(0b110000) + chr(7976 - 7865) + chr(49) + chr(0b110001) + '\062', 19649 - 19641), nzTpIcepk0o8('\060' + chr(0b1100000 + 0o17) + chr(50) + chr(54), 0b1000), nzTpIcepk0o8(chr(1404 - 1356) + chr(111) + chr(50) + '\063', 23402 - 23394), nzTpIcepk0o8('\x30' + '\157' + chr(0b110010) + chr(1147 - 1094) + '\x30', 4107 - 4099), nzTpIcepk0o8(chr(0b101011 + 0o5) + chr(0b100010 + 0o115) + chr(0b110010) + '\061' + '\065', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(7498 - 7387) + chr(0b110011) + chr(54) + chr(0b110111), 8)][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + chr(111) + chr(53) + '\x30', 3308 - 3300)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'0'), chr(100) + chr(0b1011010 + 0o13) + chr(99) + '\157' + chr(100) + chr(101))(chr(0b1110101) + '\164' + chr(0b1100110) + '\055' + chr(2583 - 2527)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def s3TLBPPUl8LP(jXqxEQuu_5DD): iW4glDspbUFP = [roI3spqORKae(ES5oEprVxulp(b'0'), '\x64' + chr(0b1100000 + 0o5) + chr(0b1100011) + '\x6f' + '\144' + '\x65')(chr(6008 - 5891) + chr(116) + chr(0b1001101 + 0o31) + '\055' + chr(56)), roI3spqORKae(ES5oEprVxulp(b'0|'), chr(6760 - 6660) + chr(0b1100101) + chr(99) + chr(0b110001 + 0o76) + chr(8578 - 8478) + chr(0b1100101))('\165' + chr(0b1110100) + '\146' + chr(45) + chr(0b111000))] if jXqxEQuu_5DD in iW4glDspbUFP: raise JPU16lJ2koBU(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'W<%o\x8b\xe3\xdd\xd7\xe0%\x18\x1f\x19\xb1/\xaa\xa4\xda\x07'), chr(6701 - 6601) + chr(0b1100101) + chr(6455 - 6356) + chr(0b1101111) + chr(0b1011 + 0o131) + '\145')(chr(7204 - 7087) + '\x74' + chr(942 - 840) + chr(0b100101 + 0o10) + chr(56)), roI3spqORKae(ES5oEprVxulp(b'oa`E\xa0\xb9\xdf\x98\xd7\x1370'), '\144' + chr(101) + '\x63' + '\x6f' + '\x64' + '\145')(chr(117) + '\164' + '\146' + '\x2d' + chr(3071 - 3015)))(jXqxEQuu_5DD)) return roI3spqORKae(jXqxEQuu_5DD, roI3spqORKae(ES5oEprVxulp(b'[kbj\x85\xfb\xf6\xad\xde\x0e\x040'), chr(0b111100 + 0o50) + chr(0b100000 + 0o105) + '\143' + chr(0b10111 + 0o130) + chr(9896 - 9796) + '\145')(chr(0b10 + 0o163) + '\x74' + '\146' + chr(0b101101) + chr(369 - 313)))(roI3spqORKae(ES5oEprVxulp(b'1'), '\144' + chr(101) + '\x63' + chr(6101 - 5990) + '\x64' + chr(101))(chr(0b1110101) + chr(0b1110100) + '\146' + '\x2d' + '\x38'), roI3spqORKae(ES5oEprVxulp(b';`\x15'), chr(4045 - 3945) + chr(0b1100101) + chr(2505 - 2406) + '\x6f' + '\x64' + '\x65')(chr(0b1100000 + 0o25) + '\164' + chr(0b1100110) + '\x2d' + chr(2198 - 2142)))
dnanexus/dx-toolkit
src/python/dxpy/utils/file_load_utils.py
get_job_input_filenames
def get_job_input_filenames(job_input_file): """Extract list of files, returns a set of directories to create, and a set of files, with sources and destinations. The paths created are relative to the input directory. Note: we go through file names inside arrays, and create a separate subdirectory for each. This avoids clobbering files when duplicate filenames appear in an array. """ def get_input_hash(): with open(job_input_file) as fh: job_input = json.load(fh) return job_input job_input = get_input_hash() files = collections.defaultdict(list) # dictionary, with empty lists as default elements dirs = [] # directories to create under <idir> # Local function for adding a file to the list of files to be created # for example: # iname == "seq1" # subdir == "015" # value == { "$dnanexus_link": { # "project": "project-BKJfY1j0b06Z4y8PX8bQ094f", # "id": "file-BKQGkgQ0b06xG5560GGQ001B" # } # will create a record describing that the file should # be downloaded into seq1/015/<filename> def add_file(iname, subdir, value): if not dxpy.is_dxlink(value): return handler = dxpy.get_handler(value) if not isinstance(handler, dxpy.DXFile): return filename = make_unix_filename(handler.name) trg_dir = iname if subdir is not None: trg_dir = os.path.join(trg_dir, subdir) files[iname].append({'trg_fname': os.path.join(trg_dir, filename), 'handler': handler, 'src_file_id': handler.id}) dirs.append(trg_dir) # An array of inputs, for a single key. A directory # will be created per array entry. For example, if the input key is # FOO, and the inputs are {A, B, C}.vcf then, the directory structure # will be: # <idir>/FOO/00/A.vcf # <idir>/FOO/01/B.vcf # <idir>/FOO/02/C.vcf def add_file_array(input_name, links): num_files = len(links) if num_files == 0: return num_digits = len(str(num_files - 1)) dirs.append(input_name) for i, link in enumerate(links): subdir = str(i).zfill(num_digits) add_file(input_name, subdir, link) for input_name, value in list(job_input.items()): if isinstance(value, list): # This is a file array add_file_array(input_name, value) else: add_file(input_name, None, value) ## create a dictionary of the all non-file elements rest_hash = {key: val for key, val in list(job_input.items()) if key not in files} return dirs, files, rest_hash
python
def get_job_input_filenames(job_input_file): """Extract list of files, returns a set of directories to create, and a set of files, with sources and destinations. The paths created are relative to the input directory. Note: we go through file names inside arrays, and create a separate subdirectory for each. This avoids clobbering files when duplicate filenames appear in an array. """ def get_input_hash(): with open(job_input_file) as fh: job_input = json.load(fh) return job_input job_input = get_input_hash() files = collections.defaultdict(list) # dictionary, with empty lists as default elements dirs = [] # directories to create under <idir> # Local function for adding a file to the list of files to be created # for example: # iname == "seq1" # subdir == "015" # value == { "$dnanexus_link": { # "project": "project-BKJfY1j0b06Z4y8PX8bQ094f", # "id": "file-BKQGkgQ0b06xG5560GGQ001B" # } # will create a record describing that the file should # be downloaded into seq1/015/<filename> def add_file(iname, subdir, value): if not dxpy.is_dxlink(value): return handler = dxpy.get_handler(value) if not isinstance(handler, dxpy.DXFile): return filename = make_unix_filename(handler.name) trg_dir = iname if subdir is not None: trg_dir = os.path.join(trg_dir, subdir) files[iname].append({'trg_fname': os.path.join(trg_dir, filename), 'handler': handler, 'src_file_id': handler.id}) dirs.append(trg_dir) # An array of inputs, for a single key. A directory # will be created per array entry. For example, if the input key is # FOO, and the inputs are {A, B, C}.vcf then, the directory structure # will be: # <idir>/FOO/00/A.vcf # <idir>/FOO/01/B.vcf # <idir>/FOO/02/C.vcf def add_file_array(input_name, links): num_files = len(links) if num_files == 0: return num_digits = len(str(num_files - 1)) dirs.append(input_name) for i, link in enumerate(links): subdir = str(i).zfill(num_digits) add_file(input_name, subdir, link) for input_name, value in list(job_input.items()): if isinstance(value, list): # This is a file array add_file_array(input_name, value) else: add_file(input_name, None, value) ## create a dictionary of the all non-file elements rest_hash = {key: val for key, val in list(job_input.items()) if key not in files} return dirs, files, rest_hash
[ "def", "get_job_input_filenames", "(", "job_input_file", ")", ":", "def", "get_input_hash", "(", ")", ":", "with", "open", "(", "job_input_file", ")", "as", "fh", ":", "job_input", "=", "json", ".", "load", "(", "fh", ")", "return", "job_input", "job_input", "=", "get_input_hash", "(", ")", "files", "=", "collections", ".", "defaultdict", "(", "list", ")", "# dictionary, with empty lists as default elements", "dirs", "=", "[", "]", "# directories to create under <idir>", "# Local function for adding a file to the list of files to be created", "# for example:", "# iname == \"seq1\"", "# subdir == \"015\"", "# value == { \"$dnanexus_link\": {", "# \"project\": \"project-BKJfY1j0b06Z4y8PX8bQ094f\",", "# \"id\": \"file-BKQGkgQ0b06xG5560GGQ001B\"", "# }", "# will create a record describing that the file should", "# be downloaded into seq1/015/<filename>", "def", "add_file", "(", "iname", ",", "subdir", ",", "value", ")", ":", "if", "not", "dxpy", ".", "is_dxlink", "(", "value", ")", ":", "return", "handler", "=", "dxpy", ".", "get_handler", "(", "value", ")", "if", "not", "isinstance", "(", "handler", ",", "dxpy", ".", "DXFile", ")", ":", "return", "filename", "=", "make_unix_filename", "(", "handler", ".", "name", ")", "trg_dir", "=", "iname", "if", "subdir", "is", "not", "None", ":", "trg_dir", "=", "os", ".", "path", ".", "join", "(", "trg_dir", ",", "subdir", ")", "files", "[", "iname", "]", ".", "append", "(", "{", "'trg_fname'", ":", "os", ".", "path", ".", "join", "(", "trg_dir", ",", "filename", ")", ",", "'handler'", ":", "handler", ",", "'src_file_id'", ":", "handler", ".", "id", "}", ")", "dirs", ".", "append", "(", "trg_dir", ")", "# An array of inputs, for a single key. A directory", "# will be created per array entry. For example, if the input key is", "# FOO, and the inputs are {A, B, C}.vcf then, the directory structure", "# will be:", "# <idir>/FOO/00/A.vcf", "# <idir>/FOO/01/B.vcf", "# <idir>/FOO/02/C.vcf", "def", "add_file_array", "(", "input_name", ",", "links", ")", ":", "num_files", "=", "len", "(", "links", ")", "if", "num_files", "==", "0", ":", "return", "num_digits", "=", "len", "(", "str", "(", "num_files", "-", "1", ")", ")", "dirs", ".", "append", "(", "input_name", ")", "for", "i", ",", "link", "in", "enumerate", "(", "links", ")", ":", "subdir", "=", "str", "(", "i", ")", ".", "zfill", "(", "num_digits", ")", "add_file", "(", "input_name", ",", "subdir", ",", "link", ")", "for", "input_name", ",", "value", "in", "list", "(", "job_input", ".", "items", "(", ")", ")", ":", "if", "isinstance", "(", "value", ",", "list", ")", ":", "# This is a file array", "add_file_array", "(", "input_name", ",", "value", ")", "else", ":", "add_file", "(", "input_name", ",", "None", ",", "value", ")", "## create a dictionary of the all non-file elements", "rest_hash", "=", "{", "key", ":", "val", "for", "key", ",", "val", "in", "list", "(", "job_input", ".", "items", "(", ")", ")", "if", "key", "not", "in", "files", "}", "return", "dirs", ",", "files", ",", "rest_hash" ]
Extract list of files, returns a set of directories to create, and a set of files, with sources and destinations. The paths created are relative to the input directory. Note: we go through file names inside arrays, and create a separate subdirectory for each. This avoids clobbering files when duplicate filenames appear in an array.
[ "Extract", "list", "of", "files", "returns", "a", "set", "of", "directories", "to", "create", "and", "a", "set", "of", "files", "with", "sources", "and", "destinations", ".", "The", "paths", "created", "are", "relative", "to", "the", "input", "directory", "." ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/utils/file_load_utils.py#L202-L271
train
Extract list of files from the input directory and create a set of directories to create and a set of files with sources and destinations.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbN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CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b110000) + '\157' + '\x32', ord("\x08")), nzTpIcepk0o8('\x30' + chr(7022 - 6911) + chr(0b110001 + 0o5) + chr(0b101010 + 0o13), 62141 - 62133), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(50) + '\x35' + '\060', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b111101 + 0o62) + chr(0b110010) + '\x32', 0b1000), nzTpIcepk0o8(chr(0b0 + 0o60) + chr(2630 - 2519) + '\x32' + chr(1856 - 1806) + '\060', 60815 - 60807), nzTpIcepk0o8(chr(0b110000) + chr(3451 - 3340) + '\x32' + chr(0b110101) + chr(0b10000 + 0o47), 30804 - 30796), nzTpIcepk0o8('\060' + chr(0b1101101 + 0o2) + chr(51) + '\x31' + '\x33', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x33' + chr(0b110100) + chr(1180 - 1132), 0b1000), nzTpIcepk0o8('\060' + chr(0b110011 + 0o74) + chr(50) + chr(0b110100) + chr(53), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b101001 + 0o106) + chr(0b100110 + 0o14) + chr(0b110101) + chr(556 - 503), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b10110 + 0o131) + chr(51) + chr(0b110110) + chr(472 - 417), 37660 - 37652), nzTpIcepk0o8(chr(553 - 505) + chr(111) + '\066' + chr(51), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(641 - 591) + chr(49), 6326 - 6318), nzTpIcepk0o8(chr(0b10100 + 0o34) + chr(957 - 846) + chr(188 - 139) + chr(1926 - 1875) + chr(0b1100 + 0o47), 0o10), nzTpIcepk0o8(chr(0b11111 + 0o21) + chr(0b1101100 + 0o3) + '\x36' + chr(0b110100), 59525 - 59517), nzTpIcepk0o8(chr(2146 - 2098) + chr(0b1101111) + chr(1737 - 1685), 52065 - 52057), nzTpIcepk0o8('\060' + chr(10644 - 10533) + chr(2617 - 2565) + '\062', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b11100 + 0o123) + '\x31' + chr(0b110100) + chr(2206 - 2156), 0b1000), nzTpIcepk0o8(chr(137 - 89) + '\157' + '\066', 10352 - 10344), nzTpIcepk0o8('\x30' + chr(9435 - 9324) + '\x32' + chr(0b110110) + '\x37', 0b1000), nzTpIcepk0o8('\x30' + chr(3806 - 3695) + '\x33' + chr(0b1011 + 0o46) + '\067', 0o10), nzTpIcepk0o8(chr(1701 - 1653) + chr(0b1101111) + chr(0b10010 + 0o37) + chr(53) + chr(53), 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(1444 - 1393) + '\064' + chr(0b110000), 8), nzTpIcepk0o8('\060' + chr(0b10101 + 0o132) + chr(49) + chr(240 - 191) + chr(55), 0o10), nzTpIcepk0o8(chr(0b10011 + 0o35) + chr(9391 - 9280) + chr(0b10 + 0o57) + chr(880 - 826) + chr(0b1 + 0o57), 52917 - 52909), nzTpIcepk0o8(chr(794 - 746) + chr(9785 - 9674) + chr(0b100 + 0o55) + '\x31' + chr(512 - 463), 30017 - 30009), nzTpIcepk0o8(chr(0b11110 + 0o22) + '\x6f' + chr(0b110011) + chr(2444 - 2393) + '\x30', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110011) + chr(51) + '\x33', ord("\x08")), nzTpIcepk0o8('\x30' + chr(1283 - 1172) + chr(0b101010 + 0o10) + chr(54), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(51) + chr(2539 - 2484), 0b1000), nzTpIcepk0o8(chr(804 - 756) + '\x6f' + chr(0b110010) + chr(0b101001 + 0o14) + chr(0b10101 + 0o37), 11667 - 11659), nzTpIcepk0o8(chr(609 - 561) + '\x6f' + chr(551 - 502) + '\x32' + '\064', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b1010 + 0o50) + chr(1889 - 1841) + chr(0b110000), 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(0b110001) + chr(0b100 + 0o61) + chr(0b11010 + 0o30), 0b1000), nzTpIcepk0o8('\x30' + chr(11454 - 11343) + chr(0b11111 + 0o22) + chr(0b100100 + 0o17), 0o10), nzTpIcepk0o8(chr(1511 - 1463) + chr(111) + chr(51) + chr(0b110110) + '\x32', ord("\x08")), nzTpIcepk0o8(chr(75 - 27) + chr(0b1101111) + chr(0b110001) + '\061' + chr(718 - 668), 0b1000), nzTpIcepk0o8(chr(0b10101 + 0o33) + chr(0b1011001 + 0o26) + '\062' + '\066' + chr(2546 - 2494), 27128 - 27120), nzTpIcepk0o8(chr(0b110000) + chr(0b101 + 0o152) + chr(0b110 + 0o53) + chr(1423 - 1372) + '\064', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(49) + chr(54) + '\067', 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + chr(1205 - 1094) + '\065' + chr(612 - 564), 19447 - 19439)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b','), chr(100) + chr(0b10001 + 0o124) + chr(5429 - 5330) + '\x6f' + chr(2525 - 2425) + chr(101))(chr(0b1110101) + chr(0b1110100) + '\146' + '\x2d' + chr(56)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def z44YoklwWaQW(Ydo3WyvUSYZH): def UTa09Igt3QUn(): with DnU3Rq9N5ala(Ydo3WyvUSYZH) as ghfrO2vbANu_: C3pCdDLp9Xp_ = LNUKEwZDIbyb.ZERsdc7c1d8E(ghfrO2vbANu_) return C3pCdDLp9Xp_ C3pCdDLp9Xp_ = UTa09Igt3QUn() wR5_YWECjaY7 = VmGquQq8pzNa.defaultdict(H4NoA26ON7iG) VNlxNzbaDsmx = [] def hwgYD2Uyu9jq(K7IkdCE5CNss, z08tK4aDOZMt, uV9iBiw0y_Mp): if not roI3spqORKae(SsdNdRxXOwsF, roI3spqORKae(ES5oEprVxulp(b'kF\xf7v\xe8\xc3\xa2\x8e\xce'), chr(0b1100100) + '\145' + '\143' + '\x6f' + '\x64' + chr(101))(chr(6825 - 6708) + chr(0b1000100 + 0o60) + chr(0b10011 + 0o123) + chr(1161 - 1116) + chr(0b111000)))(uV9iBiw0y_Mp): return AiPqNgD8WRmS = SsdNdRxXOwsF.get_handler(uV9iBiw0y_Mp) if not suIjIS24Zkqw(AiPqNgD8WRmS, roI3spqORKae(SsdNdRxXOwsF, roI3spqORKae(ES5oEprVxulp(b'Fm\xee{\xfc\xca'), chr(8328 - 8228) + chr(0b101110 + 0o67) + '\x63' + chr(0b10000 + 0o137) + chr(6058 - 5958) + chr(0b1100101))(chr(0b1011100 + 0o31) + chr(3796 - 3680) + chr(0b1100110) + chr(0b100 + 0o51) + chr(0b1010 + 0o56)))): return FxZHtXEolYsL = s3TLBPPUl8LP(AiPqNgD8WRmS.SLVB2BPA_mIe) otSuDaLzr3uQ = K7IkdCE5CNss if z08tK4aDOZMt is not None: otSuDaLzr3uQ = aHUqKstZLeS6.path.Y4yM9BcfTCNq(otSuDaLzr3uQ, z08tK4aDOZMt) roI3spqORKae(wR5_YWECjaY7[K7IkdCE5CNss], roI3spqORKae(ES5oEprVxulp(b'Ja\xfb&\xe8\xc8\x8c\x8f\xcf\xc2\xa2\x06'), chr(0b1100100) + chr(0b110111 + 0o56) + '\x63' + chr(8060 - 7949) + '\144' + chr(101))(chr(3465 - 3348) + chr(0b1011010 + 0o32) + chr(0b1100110) + '\x2d' + '\x38'))({roI3spqORKae(ES5oEprVxulp(b'vG\xcfM\xf6\xc1\xaa\x8d\xc0'), chr(548 - 448) + chr(101) + chr(99) + '\x6f' + chr(0b1100100) + '\x65')(chr(117) + chr(0b10101 + 0o137) + chr(948 - 846) + chr(0b101 + 0o50) + '\x38'): roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'[\x01\xd1_\xa9\xed\xa8\x86\xf1\xee\xb9B'), chr(0b1100100) + chr(0b1100101) + chr(0b1100011) + chr(3832 - 3721) + chr(100) + '\x65')('\x75' + chr(0b1000 + 0o154) + '\x66' + chr(0b10000 + 0o35) + '\070'))(otSuDaLzr3uQ, FxZHtXEolYsL), roI3spqORKae(ES5oEprVxulp(b'jT\xc6v\xfc\xca\xb9'), chr(7929 - 7829) + chr(0b1001011 + 0o32) + chr(0b1100011) + chr(0b100101 + 0o112) + chr(0b1010001 + 0o23) + chr(0b1100101))('\x75' + chr(1555 - 1439) + chr(0b1100110) + chr(0b101101) + '\x38'): AiPqNgD8WRmS, roI3spqORKae(ES5oEprVxulp(b'qG\xcbM\xf6\xc6\xa7\x85\xfa\xc4\x93'), chr(7224 - 7124) + chr(4939 - 4838) + '\x63' + chr(0b1101111) + '\144' + '\x65')('\x75' + chr(0b1110100) + chr(0b101110 + 0o70) + '\055' + chr(0b111000)): roI3spqORKae(AiPqNgD8WRmS, roI3spqORKae(ES5oEprVxulp(b'oT\xe4|\xdc\xc8\xf3\xaf\x90\xd7\xa7g'), chr(0b1100100) + chr(0b1100101) + chr(5538 - 5439) + chr(111) + chr(100) + chr(9627 - 9526))(chr(117) + chr(116) + chr(0b1100110) + chr(937 - 892) + chr(0b111000)))}) roI3spqORKae(VNlxNzbaDsmx, roI3spqORKae(ES5oEprVxulp(b'Ja\xfb&\xe8\xc8\x8c\x8f\xcf\xc2\xa2\x06'), chr(0b1100100) + '\x65' + chr(99) + chr(7314 - 7203) + chr(0b10011 + 0o121) + chr(101))(chr(0b1110101) + chr(0b1110100) + '\146' + chr(45) + chr(0b111000)))(otSuDaLzr3uQ) def G2eXrtNJUWTQ(kuoRyThafoKX, Vdf0TtdkEDX6): sGgQwoq1X1AW = ftfygxgFas5X(Vdf0TtdkEDX6) if sGgQwoq1X1AW == nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(48), ord("\x08")): return E5aIXnBZSQCQ = ftfygxgFas5X(N9zlRy29S1SS(sGgQwoq1X1AW - nzTpIcepk0o8(chr(218 - 170) + chr(6584 - 6473) + chr(0b10110 + 0o33), 0b1000))) roI3spqORKae(VNlxNzbaDsmx, roI3spqORKae(ES5oEprVxulp(b'Ja\xfb&\xe8\xc8\x8c\x8f\xcf\xc2\xa2\x06'), chr(2128 - 2028) + chr(101) + chr(6686 - 6587) + chr(0b11101 + 0o122) + chr(100) + chr(0b1100101))(chr(0b1110101) + chr(0b1110100) + chr(0b1100110) + '\055' + chr(56)))(kuoRyThafoKX) for (ZlbFMSG8gCoF, QA8TZurzG25Z) in _kV_Bomx8PZ4(Vdf0TtdkEDX6): z08tK4aDOZMt = N9zlRy29S1SS(ZlbFMSG8gCoF).vzMz2r93s66Z(E5aIXnBZSQCQ) hwgYD2Uyu9jq(kuoRyThafoKX, z08tK4aDOZMt, QA8TZurzG25Z) for (kuoRyThafoKX, uV9iBiw0y_Mp) in H4NoA26ON7iG(roI3spqORKae(C3pCdDLp9Xp_, roI3spqORKae(ES5oEprVxulp(b'[j\xc6\\\xd5\xd5\x83\xd4\x96\xdb\xafZ'), chr(0b100101 + 0o77) + chr(101) + chr(0b1100011) + chr(111) + chr(0b1100100) + '\145')(chr(0b1100010 + 0o23) + chr(0b11000 + 0o134) + '\x66' + chr(0b101101) + '\070'))()): if suIjIS24Zkqw(uV9iBiw0y_Mp, H4NoA26ON7iG): G2eXrtNJUWTQ(kuoRyThafoKX, uV9iBiw0y_Mp) else: hwgYD2Uyu9jq(kuoRyThafoKX, None, uV9iBiw0y_Mp) kHvoAE2RlcLO = {QYodcsDtoGq7: pXwvT17vr09s for (QYodcsDtoGq7, pXwvT17vr09s) in H4NoA26ON7iG(C3pCdDLp9Xp_.Y_nNEzH43vXi()) if QYodcsDtoGq7 not in wR5_YWECjaY7} return (VNlxNzbaDsmx, wR5_YWECjaY7, kHvoAE2RlcLO)
dnanexus/dx-toolkit
src/python/dxpy/utils/file_load_utils.py
get_input_spec_patterns
def get_input_spec_patterns(): ''' Extract the inputSpec patterns, if they exist -- modifed from dx-upload-all-outputs Returns a dict of all patterns, with keys equal to the respective input parameter names. ''' input_spec = None if 'DX_JOB_ID' in environ: # works in the cloud, not locally job_desc = dxpy.describe(dxpy.JOB_ID) if job_desc["function"] == "main": # The input spec does not apply for subjobs desc = dxpy.describe(job_desc.get("app", job_desc.get("applet"))) if "inputSpec" in desc: input_spec = desc["inputSpec"] elif 'DX_TEST_DXAPP_JSON' in environ: # works only locally path_to_dxapp_json = environ['DX_TEST_DXAPP_JSON'] with open(path_to_dxapp_json) as fd: dxapp_json = json.load(fd) input_spec = dxapp_json.get('inputSpec') # convert to a dictionary. Each entry in the input spec # has {name, class} attributes. if input_spec is None: return {} # For each field name, return its patterns. # Make sure a pattern is legal, ignore illegal patterns. def is_legal_pattern(pattern): return "*" in pattern patterns_dict = {} for spec in input_spec: name = spec['name'] if 'patterns' in spec: patterns_dict[name] = [] for p in spec['patterns']: if is_legal_pattern(p): patterns_dict[name].append(p) return patterns_dict
python
def get_input_spec_patterns(): ''' Extract the inputSpec patterns, if they exist -- modifed from dx-upload-all-outputs Returns a dict of all patterns, with keys equal to the respective input parameter names. ''' input_spec = None if 'DX_JOB_ID' in environ: # works in the cloud, not locally job_desc = dxpy.describe(dxpy.JOB_ID) if job_desc["function"] == "main": # The input spec does not apply for subjobs desc = dxpy.describe(job_desc.get("app", job_desc.get("applet"))) if "inputSpec" in desc: input_spec = desc["inputSpec"] elif 'DX_TEST_DXAPP_JSON' in environ: # works only locally path_to_dxapp_json = environ['DX_TEST_DXAPP_JSON'] with open(path_to_dxapp_json) as fd: dxapp_json = json.load(fd) input_spec = dxapp_json.get('inputSpec') # convert to a dictionary. Each entry in the input spec # has {name, class} attributes. if input_spec is None: return {} # For each field name, return its patterns. # Make sure a pattern is legal, ignore illegal patterns. def is_legal_pattern(pattern): return "*" in pattern patterns_dict = {} for spec in input_spec: name = spec['name'] if 'patterns' in spec: patterns_dict[name] = [] for p in spec['patterns']: if is_legal_pattern(p): patterns_dict[name].append(p) return patterns_dict
[ "def", "get_input_spec_patterns", "(", ")", ":", "input_spec", "=", "None", "if", "'DX_JOB_ID'", "in", "environ", ":", "# works in the cloud, not locally", "job_desc", "=", "dxpy", ".", "describe", "(", "dxpy", ".", "JOB_ID", ")", "if", "job_desc", "[", "\"function\"", "]", "==", "\"main\"", ":", "# The input spec does not apply for subjobs", "desc", "=", "dxpy", ".", "describe", "(", "job_desc", ".", "get", "(", "\"app\"", ",", "job_desc", ".", "get", "(", "\"applet\"", ")", ")", ")", "if", "\"inputSpec\"", "in", "desc", ":", "input_spec", "=", "desc", "[", "\"inputSpec\"", "]", "elif", "'DX_TEST_DXAPP_JSON'", "in", "environ", ":", "# works only locally", "path_to_dxapp_json", "=", "environ", "[", "'DX_TEST_DXAPP_JSON'", "]", "with", "open", "(", "path_to_dxapp_json", ")", "as", "fd", ":", "dxapp_json", "=", "json", ".", "load", "(", "fd", ")", "input_spec", "=", "dxapp_json", ".", "get", "(", "'inputSpec'", ")", "# convert to a dictionary. Each entry in the input spec", "# has {name, class} attributes.", "if", "input_spec", "is", "None", ":", "return", "{", "}", "# For each field name, return its patterns.", "# Make sure a pattern is legal, ignore illegal patterns.", "def", "is_legal_pattern", "(", "pattern", ")", ":", "return", "\"*\"", "in", "pattern", "patterns_dict", "=", "{", "}", "for", "spec", "in", "input_spec", ":", "name", "=", "spec", "[", "'name'", "]", "if", "'patterns'", "in", "spec", ":", "patterns_dict", "[", "name", "]", "=", "[", "]", "for", "p", "in", "spec", "[", "'patterns'", "]", ":", "if", "is_legal_pattern", "(", "p", ")", ":", "patterns_dict", "[", "name", "]", ".", "append", "(", "p", ")", "return", "patterns_dict" ]
Extract the inputSpec patterns, if they exist -- modifed from dx-upload-all-outputs Returns a dict of all patterns, with keys equal to the respective input parameter names.
[ "Extract", "the", "inputSpec", "patterns", "if", "they", "exist", "--", "modifed", "from", "dx", "-", "upload", "-", "all", "-", "outputs" ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/utils/file_load_utils.py#L274-L313
train
Extract the inputSpec patterns if they exist and return a dictionary of all patterns.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6a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qtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\060' + chr(0b1011 + 0o144) + chr(1898 - 1848) + '\x30' + chr(0b100100 + 0o16), 39010 - 39002), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x33' + chr(52) + chr(0b100001 + 0o21), 52761 - 52753), nzTpIcepk0o8('\x30' + chr(0b1 + 0o156) + chr(0b110011) + chr(0b11010 + 0o33) + chr(50), 53318 - 53310), nzTpIcepk0o8(chr(0b110000) + chr(0b1101000 + 0o7) + chr(0b10 + 0o60) + chr(0b110110) + chr(0b110101), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(0b11010 + 0o30) + '\x35' + '\063', ord("\x08")), nzTpIcepk0o8(chr(0b100101 + 0o13) + chr(0b1101111) + '\061' + chr(247 - 194) + chr(49), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(53) + chr(0b1101 + 0o45), ord("\x08")), nzTpIcepk0o8(chr(0b10101 + 0o33) + '\157' + '\x32' + chr(259 - 207) + chr(0b1000 + 0o55), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1100001 + 0o16) + chr(0b110010 + 0o4), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(51) + '\067' + chr(53), 0b1000), nzTpIcepk0o8(chr(1404 - 1356) + chr(0b1001010 + 0o45) + chr(0b110011 + 0o0) + chr(0b101101 + 0o7) + '\x36', 41520 - 41512), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110111), 9431 - 9423), nzTpIcepk0o8(chr(0b110000) + chr(0b1000101 + 0o52) + chr(2222 - 2171) + chr(0b110000) + chr(1299 - 1251), 51049 - 51041), nzTpIcepk0o8(chr(0b101 + 0o53) + '\157' + '\x32' + chr(0b110000) + chr(0b110010), 8), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x31' + '\x30' + '\x35', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(50) + chr(0b101 + 0o57) + '\067', 0b1000), nzTpIcepk0o8(chr(1759 - 1711) + chr(1180 - 1069) + chr(51) + '\x37' + chr(1921 - 1873), ord("\x08")), nzTpIcepk0o8(chr(2069 - 2021) + '\x6f' + '\062' + chr(0b100110 + 0o20) + chr(0b110111), 43087 - 43079), nzTpIcepk0o8(chr(48) + chr(111) + '\061' + chr(0b110111), 28797 - 28789), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110110) + chr(0b1100 + 0o50), 0b1000), nzTpIcepk0o8('\060' + chr(0b1010011 + 0o34) + chr(0b110011) + '\x31' + chr(2053 - 2002), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + '\062' + chr(1044 - 995) + chr(0b110001), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\063' + chr(0b110000 + 0o5), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(51) + chr(0b101000 + 0o11), 9224 - 9216), nzTpIcepk0o8(chr(0b110000) + chr(4339 - 4228) + chr(0b110011) + '\x34' + '\x33', 0b1000), nzTpIcepk0o8(chr(0b11000 + 0o30) + chr(111) + '\x33' + chr(221 - 166) + chr(0b10111 + 0o37), 2992 - 2984), nzTpIcepk0o8('\060' + '\157' + '\063' + chr(0b110011), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(1943 - 1893) + chr(0b110100) + chr(0b110011), 0o10), nzTpIcepk0o8('\060' + '\x6f' + '\x35' + chr(0b101000 + 0o14), 0b1000), nzTpIcepk0o8('\060' + chr(3992 - 3881) + chr(49) + '\x35' + chr(0b100100 + 0o16), 44520 - 44512), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x32' + '\x36' + chr(0b110000), 0o10), nzTpIcepk0o8('\x30' + chr(9774 - 9663) + chr(0b100001 + 0o22) + chr(2000 - 1952) + chr(54), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(3177 - 3066) + chr(0b100011 + 0o16) + chr(1543 - 1494) + chr(2497 - 2446), 7972 - 7964), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b1010 + 0o53) + chr(867 - 817), 8), nzTpIcepk0o8('\x30' + '\x6f' + '\061' + '\x36' + chr(65 - 17), 0b1000), nzTpIcepk0o8('\060' + chr(0b1000000 + 0o57) + chr(0b110011) + chr(0b110010), 0b1000), nzTpIcepk0o8(chr(0b101110 + 0o2) + '\x6f' + '\061' + chr(0b110110) + chr(0b110000), 8), nzTpIcepk0o8('\x30' + chr(111) + chr(51) + chr(0b11001 + 0o36) + chr(48), 8), nzTpIcepk0o8(chr(1125 - 1077) + chr(111) + chr(0b10000 + 0o41) + chr(0b110100) + chr(0b110100), 42930 - 42922), nzTpIcepk0o8(chr(0b0 + 0o60) + chr(11859 - 11748) + '\x31' + chr(0b10001 + 0o46) + chr(1665 - 1617), 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + chr(111) + '\x35' + chr(0b101011 + 0o5), ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xac'), chr(0b1100100) + chr(101) + chr(3132 - 3033) + '\157' + '\x64' + chr(101))(chr(117) + chr(0b1110100) + chr(8272 - 8170) + chr(45) + '\x38') + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def Jbg1j2non1sj(): vPSKmmd6vng8 = None if roI3spqORKae(ES5oEprVxulp(b'\xc6\xba\xb5\xff\xe4+u\xecB'), chr(0b1100100) + chr(101) + chr(0b1000100 + 0o37) + '\x6f' + chr(9369 - 9269) + '\x65')(chr(12122 - 12005) + '\x74' + chr(0b1100110) + chr(0b101010 + 0o3) + '\x38') in I3lWyC6_P_MO: yRSk_fXDtHXJ = SsdNdRxXOwsF.describe(SsdNdRxXOwsF.JOB_ID) if yRSk_fXDtHXJ[roI3spqORKae(ES5oEprVxulp(b'\xe4\x97\x84\xd6\xdf\x00E\xcb'), chr(8630 - 8530) + '\145' + chr(0b1100011) + '\157' + '\144' + '\x65')(chr(11678 - 11561) + chr(116) + '\146' + '\x2d' + '\070')] == roI3spqORKae(ES5oEprVxulp(b'\xef\x83\x83\xdb'), '\x64' + chr(7885 - 7784) + chr(5323 - 5224) + '\x6f' + chr(0b0 + 0o144) + chr(8192 - 8091))('\x75' + chr(116) + '\x66' + chr(0b110 + 0o47) + chr(2650 - 2594)): iSl7yqRxEcuG = SsdNdRxXOwsF.describe(yRSk_fXDtHXJ.GUKetu4xaGsJ(roI3spqORKae(ES5oEprVxulp(b'\xe3\x92\x9a'), '\x64' + chr(491 - 390) + chr(8143 - 8044) + chr(0b1101111) + chr(823 - 723) + chr(101))('\x75' + chr(116) + chr(0b1100110) + '\055' + chr(0b111000)), yRSk_fXDtHXJ.GUKetu4xaGsJ(roI3spqORKae(ES5oEprVxulp(b'\xe3\x92\x9a\xd9\xce\x1d'), chr(100) + chr(0b1100101) + chr(99) + chr(0b1101111) + chr(0b1100100) + '\x65')('\x75' + '\x74' + chr(0b1100110) + chr(45) + chr(56))))) if roI3spqORKae(ES5oEprVxulp(b'\xeb\x8c\x9a\xc0\xdf:Z\xc0e'), '\x64' + '\145' + chr(5939 - 5840) + chr(0b1101111) + chr(100) + chr(101))('\x75' + '\x74' + '\x66' + '\055' + chr(0b1 + 0o67)) in iSl7yqRxEcuG: vPSKmmd6vng8 = iSl7yqRxEcuG[roI3spqORKae(ES5oEprVxulp(b'\xeb\x8c\x9a\xc0\xdf:Z\xc0e'), chr(100) + chr(0b1000111 + 0o36) + chr(0b1100011) + '\157' + chr(4013 - 3913) + chr(101))(chr(0b1110101) + chr(0b1110100) + chr(102) + chr(45) + chr(0b10011 + 0o45))] elif roI3spqORKae(ES5oEprVxulp(b'\xc6\xba\xb5\xe1\xee:~\xfaB\xa5\xa7W\x90\xdd\x0f\xf4\xb7\xf9'), chr(8578 - 8478) + '\x65' + '\x63' + chr(0b1101111) + chr(100) + '\x65')('\165' + chr(0b101100 + 0o110) + chr(0b1100110) + '\055' + chr(1431 - 1375)) in I3lWyC6_P_MO: eigXTYFgppaY = I3lWyC6_P_MO[roI3spqORKae(ES5oEprVxulp(b'\xc6\xba\xb5\xe1\xee:~\xfaB\xa5\xa7W\x90\xdd\x0f\xf4\xb7\xf9'), '\x64' + chr(101) + chr(99) + '\x6f' + chr(0b1100100) + chr(8941 - 8840))('\x75' + chr(0b1101001 + 0o13) + chr(102) + chr(323 - 278) + chr(0b100 + 0o64))] with DnU3Rq9N5ala(eigXTYFgppaY) as RW6jRKOlF6C5: rF8KTkd0fo0J = LNUKEwZDIbyb.ZERsdc7c1d8E(RW6jRKOlF6C5) vPSKmmd6vng8 = rF8KTkd0fo0J.GUKetu4xaGsJ(roI3spqORKae(ES5oEprVxulp(b'\xeb\x8c\x9a\xc0\xdf:Z\xc0e'), chr(0b11100 + 0o110) + chr(0b1100101) + chr(0b100011 + 0o100) + chr(0b1101111) + '\x64' + chr(0b10111 + 0o116))(chr(2578 - 2461) + chr(0b110001 + 0o103) + chr(102) + chr(707 - 662) + '\070')) if vPSKmmd6vng8 is None: return {} def LO9CrwayCxly(UYtHA0XyNB9C): return roI3spqORKae(ES5oEprVxulp(b'\xa8'), '\x64' + chr(101) + chr(99) + chr(10383 - 10272) + chr(0b1100100) + chr(4923 - 4822))('\165' + '\164' + chr(3702 - 3600) + chr(45) + '\070') in UYtHA0XyNB9C ZTbYNtpktfDQ = {} for L66BkZPPV93j in vPSKmmd6vng8: SLVB2BPA_mIe = L66BkZPPV93j[roI3spqORKae(ES5oEprVxulp(b'\xec\x83\x87\xd0'), chr(0b100011 + 0o101) + chr(101) + '\x63' + '\157' + chr(0b1100100) + chr(0b110100 + 0o61))('\x75' + '\164' + chr(0b100111 + 0o77) + chr(0b1 + 0o54) + '\070')] if roI3spqORKae(ES5oEprVxulp(b'\xf2\x83\x9e\xc1\xce\x1bD\xd6'), chr(0b1100100) + chr(0b101111 + 0o66) + '\143' + '\157' + chr(4272 - 4172) + '\145')('\x75' + '\164' + chr(102) + chr(0b101101) + chr(56)) in L66BkZPPV93j: ZTbYNtpktfDQ[SLVB2BPA_mIe] = [] for fSdw5wwLo9MO in L66BkZPPV93j[roI3spqORKae(ES5oEprVxulp(b'\xf2\x83\x9e\xc1\xce\x1bD\xd6'), chr(0b1100100) + chr(2503 - 2402) + chr(2458 - 2359) + chr(0b11101 + 0o122) + chr(0b1100100) + '\145')(chr(0b1110101) + chr(0b1101000 + 0o14) + '\x66' + chr(45) + '\070')]: if LO9CrwayCxly(fSdw5wwLo9MO): roI3spqORKae(ZTbYNtpktfDQ[SLVB2BPA_mIe], roI3spqORKae(ES5oEprVxulp(b'\xca\xb6\xb9\x81\xd3\x0em\xcal\x92\xb32'), chr(0b11000 + 0o114) + chr(101) + chr(99) + '\x6f' + chr(4835 - 4735) + chr(0b1100100 + 0o1))('\165' + '\164' + '\x66' + chr(0b1011 + 0o42) + chr(56)))(fSdw5wwLo9MO) return ZTbYNtpktfDQ
dnanexus/dx-toolkit
src/python/dxpy/utils/file_load_utils.py
analyze_bash_vars
def analyze_bash_vars(job_input_file, job_homedir): ''' This function examines the input file, and calculates variables to instantiate in the shell environment. It is called right before starting the execution of an app in a worker. For each input key, we want to have $var $var_filename $var_prefix remove last dot (+gz), and/or remove patterns $var_path $HOME/in/var/$var_filename For example, $HOME/in/genes/A.txt B.txt export genes=('{"$dnanexus_link": "file-xxxx"}' '{"$dnanexus_link": "file-yyyy"}') export genes_filename=("A.txt" "B.txt") export genes_prefix=("A" "B") export genes_path=("$HOME/in/genes/A.txt" "$HOME/in/genes/B.txt") If there are patterns defined in the input spec, then the prefix respects them. Here are several examples, where the patterns are: *.bam, *.bwa-index.tar.gz, foo*.sam, z*ra.sam file name prefix matches foo.zed.bam foo.zed *.bam xxx.bwa-index.tar.gz xxx *.bwa-index.tar.gz food.sam food foo*.sam zebra.sam zebra z*ra.sam xx.c xx xx.c.gz xx The only patterns we recognize are of the form x*.y. For example: legal *.sam, *.c.py, foo*.sam, a*b*c.baz ignored uu.txt x???.tar mon[a-z].py ''' _, file_entries, rest_hash = get_job_input_filenames(job_input_file) patterns_dict = get_input_spec_patterns() # Note: there may be multiple matches, choose the shortest prefix. def get_prefix(basename, key): best_prefix = None patterns = patterns_dict.get(key) if patterns is not None: for pattern in patterns: if fnmatch.fnmatch(basename, pattern): _, _, right_piece = pattern.rpartition("*") best_prefix = choose_shorter_string(best_prefix, basename[:-len(right_piece)]) if best_prefix is not None: return best_prefix else: # no matching rule parts = os.path.splitext(basename) if parts[1] == ".gz": parts = os.path.splitext(parts[0]) return parts[0] def factory(): return {'handler': [], 'basename': [], 'prefix': [], 'path': []} file_key_descs = collections.defaultdict(factory) rel_home_dir = get_input_dir(job_homedir) for key, entries in list(file_entries.items()): for entry in entries: filename = entry['trg_fname'] basename = os.path.basename(filename) prefix = get_prefix(basename, key) k_desc = file_key_descs[key] k_desc['handler'].append(entry['handler']) k_desc['basename'].append(basename) k_desc['prefix'].append(prefix) k_desc['path'].append(os.path.join(rel_home_dir, filename)) return file_key_descs, rest_hash
python
def analyze_bash_vars(job_input_file, job_homedir): ''' This function examines the input file, and calculates variables to instantiate in the shell environment. It is called right before starting the execution of an app in a worker. For each input key, we want to have $var $var_filename $var_prefix remove last dot (+gz), and/or remove patterns $var_path $HOME/in/var/$var_filename For example, $HOME/in/genes/A.txt B.txt export genes=('{"$dnanexus_link": "file-xxxx"}' '{"$dnanexus_link": "file-yyyy"}') export genes_filename=("A.txt" "B.txt") export genes_prefix=("A" "B") export genes_path=("$HOME/in/genes/A.txt" "$HOME/in/genes/B.txt") If there are patterns defined in the input spec, then the prefix respects them. Here are several examples, where the patterns are: *.bam, *.bwa-index.tar.gz, foo*.sam, z*ra.sam file name prefix matches foo.zed.bam foo.zed *.bam xxx.bwa-index.tar.gz xxx *.bwa-index.tar.gz food.sam food foo*.sam zebra.sam zebra z*ra.sam xx.c xx xx.c.gz xx The only patterns we recognize are of the form x*.y. For example: legal *.sam, *.c.py, foo*.sam, a*b*c.baz ignored uu.txt x???.tar mon[a-z].py ''' _, file_entries, rest_hash = get_job_input_filenames(job_input_file) patterns_dict = get_input_spec_patterns() # Note: there may be multiple matches, choose the shortest prefix. def get_prefix(basename, key): best_prefix = None patterns = patterns_dict.get(key) if patterns is not None: for pattern in patterns: if fnmatch.fnmatch(basename, pattern): _, _, right_piece = pattern.rpartition("*") best_prefix = choose_shorter_string(best_prefix, basename[:-len(right_piece)]) if best_prefix is not None: return best_prefix else: # no matching rule parts = os.path.splitext(basename) if parts[1] == ".gz": parts = os.path.splitext(parts[0]) return parts[0] def factory(): return {'handler': [], 'basename': [], 'prefix': [], 'path': []} file_key_descs = collections.defaultdict(factory) rel_home_dir = get_input_dir(job_homedir) for key, entries in list(file_entries.items()): for entry in entries: filename = entry['trg_fname'] basename = os.path.basename(filename) prefix = get_prefix(basename, key) k_desc = file_key_descs[key] k_desc['handler'].append(entry['handler']) k_desc['basename'].append(basename) k_desc['prefix'].append(prefix) k_desc['path'].append(os.path.join(rel_home_dir, filename)) return file_key_descs, rest_hash
[ "def", "analyze_bash_vars", "(", "job_input_file", ",", "job_homedir", ")", ":", "_", ",", "file_entries", ",", "rest_hash", "=", "get_job_input_filenames", "(", "job_input_file", ")", "patterns_dict", "=", "get_input_spec_patterns", "(", ")", "# Note: there may be multiple matches, choose the shortest prefix.", "def", "get_prefix", "(", "basename", ",", "key", ")", ":", "best_prefix", "=", "None", "patterns", "=", "patterns_dict", ".", "get", "(", "key", ")", "if", "patterns", "is", "not", "None", ":", "for", "pattern", "in", "patterns", ":", "if", "fnmatch", ".", "fnmatch", "(", "basename", ",", "pattern", ")", ":", "_", ",", "_", ",", "right_piece", "=", "pattern", ".", "rpartition", "(", "\"*\"", ")", "best_prefix", "=", "choose_shorter_string", "(", "best_prefix", ",", "basename", "[", ":", "-", "len", "(", "right_piece", ")", "]", ")", "if", "best_prefix", "is", "not", "None", ":", "return", "best_prefix", "else", ":", "# no matching rule", "parts", "=", "os", ".", "path", ".", "splitext", "(", "basename", ")", "if", "parts", "[", "1", "]", "==", "\".gz\"", ":", "parts", "=", "os", ".", "path", ".", "splitext", "(", "parts", "[", "0", "]", ")", "return", "parts", "[", "0", "]", "def", "factory", "(", ")", ":", "return", "{", "'handler'", ":", "[", "]", ",", "'basename'", ":", "[", "]", ",", "'prefix'", ":", "[", "]", ",", "'path'", ":", "[", "]", "}", "file_key_descs", "=", "collections", ".", "defaultdict", "(", "factory", ")", "rel_home_dir", "=", "get_input_dir", "(", "job_homedir", ")", "for", "key", ",", "entries", "in", "list", "(", "file_entries", ".", "items", "(", ")", ")", ":", "for", "entry", "in", "entries", ":", "filename", "=", "entry", "[", "'trg_fname'", "]", "basename", "=", "os", ".", "path", ".", "basename", "(", "filename", ")", "prefix", "=", "get_prefix", "(", "basename", ",", "key", ")", "k_desc", "=", "file_key_descs", "[", "key", "]", "k_desc", "[", "'handler'", "]", ".", "append", "(", "entry", "[", "'handler'", "]", ")", "k_desc", "[", "'basename'", "]", ".", "append", "(", "basename", ")", "k_desc", "[", "'prefix'", "]", ".", "append", "(", "prefix", ")", "k_desc", "[", "'path'", "]", ".", "append", "(", "os", ".", "path", ".", "join", "(", "rel_home_dir", ",", "filename", ")", ")", "return", "file_key_descs", ",", "rest_hash" ]
This function examines the input file, and calculates variables to instantiate in the shell environment. It is called right before starting the execution of an app in a worker. For each input key, we want to have $var $var_filename $var_prefix remove last dot (+gz), and/or remove patterns $var_path $HOME/in/var/$var_filename For example, $HOME/in/genes/A.txt B.txt export genes=('{"$dnanexus_link": "file-xxxx"}' '{"$dnanexus_link": "file-yyyy"}') export genes_filename=("A.txt" "B.txt") export genes_prefix=("A" "B") export genes_path=("$HOME/in/genes/A.txt" "$HOME/in/genes/B.txt") If there are patterns defined in the input spec, then the prefix respects them. Here are several examples, where the patterns are: *.bam, *.bwa-index.tar.gz, foo*.sam, z*ra.sam file name prefix matches foo.zed.bam foo.zed *.bam xxx.bwa-index.tar.gz xxx *.bwa-index.tar.gz food.sam food foo*.sam zebra.sam zebra z*ra.sam xx.c xx xx.c.gz xx The only patterns we recognize are of the form x*.y. For example: legal *.sam, *.c.py, foo*.sam, a*b*c.baz ignored uu.txt x???.tar mon[a-z].py
[ "This", "function", "examines", "the", "input", "file", "and", "calculates", "variables", "to", "instantiate", "in", "the", "shell", "environment", ".", "It", "is", "called", "right", "before", "starting", "the", "execution", "of", "an", "app", "in", "a", "worker", "." ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/utils/file_load_utils.py#L327-L401
train
This function calculates the variables to be used in the shell environment.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ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mKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\x30' + chr(7034 - 6923) + chr(0b110010) + chr(0b110101) + chr(1624 - 1576), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(49) + chr(822 - 773) + chr(0b10101 + 0o35), 0o10), nzTpIcepk0o8('\060' + '\157' + chr(52) + chr(0b110110), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(51) + chr(55) + '\x37', 0b1000), nzTpIcepk0o8('\060' + chr(0b11011 + 0o124) + '\x32' + '\067' + '\066', 24251 - 24243), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110011) + chr(1805 - 1755) + chr(0b110111), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x31' + '\x35' + '\x36', 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110001) + chr(53) + chr(0b100011 + 0o17), ord("\x08")), nzTpIcepk0o8(chr(0b10111 + 0o31) + '\x6f' + chr(49) + chr(0b110110) + chr(0b101001 + 0o15), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b0 + 0o157) + '\x35' + chr(50), 48668 - 48660), nzTpIcepk0o8('\x30' + '\x6f' + chr(51) + '\062' + chr(0b1110 + 0o47), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(211 - 160) + chr(52) + chr(0b1100 + 0o47), 0b1000), nzTpIcepk0o8('\060' + chr(3307 - 3196) + '\061' + chr(51) + '\x32', ord("\x08")), nzTpIcepk0o8(chr(0b1 + 0o57) + chr(0b100000 + 0o117) + chr(0b110010) + chr(0b110101) + '\061', 59941 - 59933), nzTpIcepk0o8(chr(1315 - 1267) + chr(11632 - 11521) + chr(0b11010 + 0o30) + '\065', 53607 - 53599), nzTpIcepk0o8(chr(0b11100 + 0o24) + '\157' + '\x32' + chr(462 - 413) + chr(0b11100 + 0o30), 0o10), nzTpIcepk0o8(chr(0b100 + 0o54) + chr(3143 - 3032) + chr(0b11000 + 0o31) + chr(0b110100) + chr(770 - 720), 15275 - 15267), nzTpIcepk0o8(chr(1218 - 1170) + '\x6f' + '\x33' + chr(920 - 865) + chr(2150 - 2101), ord("\x08")), nzTpIcepk0o8(chr(2170 - 2122) + chr(0b1101111) + '\x33' + chr(2400 - 2345) + '\x36', 0o10), nzTpIcepk0o8('\060' + '\157' + '\063' + '\067', 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(51) + chr(2461 - 2407), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(0b10011 + 0o36) + '\x31' + chr(0b100001 + 0o25), 55536 - 55528), nzTpIcepk0o8('\x30' + chr(111) + '\x32' + chr(0b110111) + chr(0b101101 + 0o10), 0b1000), nzTpIcepk0o8(chr(1564 - 1516) + chr(0b111 + 0o150) + '\x32' + chr(0b110000) + chr(0b11010 + 0o31), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + '\065', 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + '\061' + chr(2262 - 2209) + chr(51), 0b1000), nzTpIcepk0o8(chr(381 - 333) + chr(111) + chr(2248 - 2200), ord("\x08")), nzTpIcepk0o8(chr(0b10000 + 0o40) + '\157' + '\x33' + chr(2302 - 2249) + chr(0b1000 + 0o57), 27812 - 27804), nzTpIcepk0o8(chr(0b101100 + 0o4) + '\x6f' + chr(0b100000 + 0o21) + '\x35' + chr(362 - 312), 8), nzTpIcepk0o8(chr(0b101000 + 0o10) + '\157' + chr(442 - 393) + chr(0b100001 + 0o20), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1010000 + 0o37) + chr(52) + '\x33', 37736 - 37728), nzTpIcepk0o8(chr(0b100011 + 0o15) + '\157' + '\061' + chr(53) + chr(0b1001 + 0o50), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110011) + '\063' + chr(51), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110010) + '\067' + chr(0b110101), 8), nzTpIcepk0o8(chr(1919 - 1871) + chr(1006 - 895) + chr(0b110011) + chr(680 - 629), 37811 - 37803), nzTpIcepk0o8(chr(48) + chr(111) + chr(51) + chr(0b0 + 0o61) + chr(0b10111 + 0o37), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(545 - 496) + '\x31', 8), nzTpIcepk0o8('\x30' + chr(0b111 + 0o150) + chr(0b10011 + 0o37) + chr(2290 - 2240) + chr(2070 - 2020), 0o10), nzTpIcepk0o8(chr(2244 - 2196) + chr(9570 - 9459) + '\065' + chr(0b110001), 0o10), nzTpIcepk0o8(chr(0b10 + 0o56) + chr(5676 - 5565) + chr(0b100010 + 0o20) + chr(0b1 + 0o62) + chr(525 - 473), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + '\157' + '\x35' + chr(48), ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x86'), chr(100) + '\145' + '\x63' + chr(0b1000100 + 0o53) + '\x64' + '\145')('\x75' + '\164' + chr(0b1100110) + '\055' + '\070') + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def o__Lkzz0Z0Yj(Ydo3WyvUSYZH, ryB6wMJ20OO8): (zIqcgNgQ9U6F, g28MWBarxarg, kHvoAE2RlcLO) = z44YoklwWaQW(Ydo3WyvUSYZH) ZTbYNtpktfDQ = Jbg1j2non1sj() def cnxHVFcQwilw(pLvIyXSV7qW5, QYodcsDtoGq7): xoWPmK3f315V = None dB1rxenME9UM = ZTbYNtpktfDQ.GUKetu4xaGsJ(QYodcsDtoGq7) if dB1rxenME9UM is not None: for UYtHA0XyNB9C in dB1rxenME9UM: if roI3spqORKae(TijtjfaqX28D, roI3spqORKae(ES5oEprVxulp(b'\xce$K\x9e\xca\xb4\x06'), '\x64' + chr(101) + chr(0b1100011) + '\157' + chr(0b1100100) + chr(0b1100101))('\x75' + chr(1626 - 1510) + chr(0b1001101 + 0o31) + chr(258 - 213) + chr(1199 - 1143)))(pLvIyXSV7qW5, UYtHA0XyNB9C): (zIqcgNgQ9U6F, zIqcgNgQ9U6F, eqS0pDNxFxqb) = UYtHA0XyNB9C.rpartition(roI3spqORKae(ES5oEprVxulp(b'\x82'), chr(4462 - 4362) + chr(0b101111 + 0o66) + chr(0b1001011 + 0o30) + '\x6f' + chr(100) + chr(101))('\165' + chr(0b1110100) + chr(102) + '\055' + chr(56))) xoWPmK3f315V = Y5hLvoohPihp(xoWPmK3f315V, pLvIyXSV7qW5[:-ftfygxgFas5X(eqS0pDNxFxqb)]) if xoWPmK3f315V is not None: return xoWPmK3f315V else: ws_9aXBYp0Zv = aHUqKstZLeS6.path.nKnjsA3UsXpY(pLvIyXSV7qW5) if ws_9aXBYp0Zv[nzTpIcepk0o8(chr(48) + '\x6f' + '\061', 0b1000)] == roI3spqORKae(ES5oEprVxulp(b'\x86-\\'), chr(100) + '\x65' + chr(0b10110 + 0o115) + '\157' + '\144' + chr(0b1100101))(chr(11845 - 11728) + '\164' + chr(102) + chr(0b101101) + chr(0b11011 + 0o35)): ws_9aXBYp0Zv = aHUqKstZLeS6.path.nKnjsA3UsXpY(ws_9aXBYp0Zv[nzTpIcepk0o8(chr(1714 - 1666) + chr(0b1101111) + '\060', 8)]) return ws_9aXBYp0Zv[nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110000), 8)] def _ZrJCmpWM05z(): return {roI3spqORKae(ES5oEprVxulp(b'\xc0+H\x9b\xd2\xb2\x1c'), '\x64' + '\x65' + chr(0b1100011) + chr(12212 - 12101) + chr(100) + chr(0b1100101))(chr(117) + '\164' + chr(0b1100110) + chr(0b101101) + '\x38'): [], roI3spqORKae(ES5oEprVxulp(b'\xca+U\x9a\xd0\xb6\x03\x0f'), '\144' + chr(0b1100101) + chr(0b1100011) + chr(111) + '\x64' + chr(0b100 + 0o141))(chr(0b101101 + 0o110) + '\164' + '\146' + '\x2d' + chr(1226 - 1170)): [], roI3spqORKae(ES5oEprVxulp(b'\xd88C\x99\xd7\xaf'), chr(0b11001 + 0o113) + '\145' + chr(99) + '\157' + chr(0b100010 + 0o102) + '\x65')('\x75' + '\164' + chr(813 - 711) + '\055' + '\x38'): [], roI3spqORKae(ES5oEprVxulp(b'\xd8+R\x97'), chr(0b1100100) + '\x65' + '\x63' + chr(0b1101111) + '\x64' + chr(4428 - 4327))('\165' + chr(0b1110100) + chr(0b1100110) + chr(0b10000 + 0o35) + chr(0b1011 + 0o55)): []} phVRuLrwC6KI = VmGquQq8pzNa.defaultdict(_ZrJCmpWM05z) q_cLZaq9DJhq = c3jw7y3eksWX(ryB6wMJ20OO8) for (QYodcsDtoGq7, iFLfP3Ro3ZHs) in H4NoA26ON7iG(roI3spqORKae(g28MWBarxarg, roI3spqORKae(ES5oEprVxulp(b'\xf1\x15H\xb1\xfb\xad&^E\\\x8d\x8a'), chr(316 - 216) + chr(101) + '\x63' + chr(2055 - 1944) + chr(100) + chr(101))(chr(3943 - 3826) + chr(116) + chr(0b1101 + 0o131) + chr(45) + chr(56)))()): for eTfWnO_8KfiX in iFLfP3Ro3ZHs: FxZHtXEolYsL = eTfWnO_8KfiX[roI3spqORKae(ES5oEprVxulp(b'\xdc8A\xa0\xd8\xb9\x0f\x07\x13'), chr(7631 - 7531) + '\145' + chr(2060 - 1961) + chr(0b1011001 + 0o26) + chr(100) + '\145')(chr(7528 - 7411) + chr(116) + chr(6422 - 6320) + chr(0b101101) + chr(0b11100 + 0o34))] pLvIyXSV7qW5 = aHUqKstZLeS6.path.pLvIyXSV7qW5(FxZHtXEolYsL) ZJwZgaHE72Po = cnxHVFcQwilw(pLvIyXSV7qW5, QYodcsDtoGq7) QA5DMVgdyZRj = phVRuLrwC6KI[QYodcsDtoGq7] roI3spqORKae(QA5DMVgdyZRj[roI3spqORKae(ES5oEprVxulp(b'\xc0+H\x9b\xd2\xb2\x1c'), chr(100) + chr(5904 - 5803) + chr(7496 - 7397) + chr(0b1011000 + 0o27) + '\144' + chr(0b1100101))(chr(4941 - 4824) + '\x74' + chr(0b1100110) + chr(0b101101) + chr(56))], roI3spqORKae(ES5oEprVxulp(b'\xe0\x1eu\xcb\xc6\xb0)\x05\x1cE\x80\xd6'), chr(0b1100100) + chr(0b110111 + 0o56) + '\x63' + chr(0b10101 + 0o132) + chr(0b1100100) + '\x65')('\165' + chr(0b1110100) + '\146' + chr(0b1000 + 0o45) + '\070'))(eTfWnO_8KfiX[roI3spqORKae(ES5oEprVxulp(b'\xc0+H\x9b\xd2\xb2\x1c'), chr(7766 - 7666) + '\145' + '\x63' + chr(111) + chr(0b10100 + 0o120) + chr(0b100010 + 0o103))('\165' + chr(13073 - 12957) + chr(102) + chr(0b11011 + 0o22) + chr(0b111000))]) roI3spqORKae(QA5DMVgdyZRj[roI3spqORKae(ES5oEprVxulp(b'\xca+U\x9a\xd0\xb6\x03\x0f'), chr(0b1100100) + chr(101) + '\143' + chr(111) + '\x64' + chr(0b100 + 0o141))(chr(0b1110101) + '\164' + '\146' + '\055' + chr(2054 - 1998))], roI3spqORKae(ES5oEprVxulp(b'\xe0\x1eu\xcb\xc6\xb0)\x05\x1cE\x80\xd6'), '\x64' + '\145' + chr(6023 - 5924) + chr(0b1101111) + chr(100) + '\x65')(chr(117) + chr(116) + '\146' + chr(45) + '\070'))(pLvIyXSV7qW5) roI3spqORKae(QA5DMVgdyZRj[roI3spqORKae(ES5oEprVxulp(b'\xd88C\x99\xd7\xaf'), '\144' + '\145' + chr(0b1100010 + 0o1) + chr(0b11001 + 0o126) + chr(0b101111 + 0o65) + '\145')('\x75' + chr(5622 - 5506) + chr(102) + '\x2d' + chr(56))], roI3spqORKae(ES5oEprVxulp(b'\xe0\x1eu\xcb\xc6\xb0)\x05\x1cE\x80\xd6'), chr(100) + '\145' + chr(0b1100011) + chr(0b11011 + 0o124) + '\x64' + chr(1671 - 1570))('\165' + '\x74' + chr(102) + chr(0b101101) + '\070'))(ZJwZgaHE72Po) roI3spqORKae(QA5DMVgdyZRj[roI3spqORKae(ES5oEprVxulp(b'\xd8+R\x97'), '\x64' + chr(0b1001 + 0o134) + '\x63' + chr(111) + '\x64' + '\x65')(chr(4801 - 4684) + chr(0b1110100) + chr(0b1010110 + 0o20) + chr(45) + chr(56))], roI3spqORKae(ES5oEprVxulp(b'\xe0\x1eu\xcb\xc6\xb0)\x05\x1cE\x80\xd6'), chr(100) + chr(0b1001011 + 0o32) + '\143' + chr(3029 - 2918) + chr(654 - 554) + chr(0b11010 + 0o113))('\x75' + '\164' + chr(6635 - 6533) + '\x2d' + '\070'))(roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'\xf1~_\xb2\x87\x95\r\x0c"i\x9b\x92'), '\144' + '\145' + chr(0b1100010 + 0o1) + '\x6f' + chr(100) + chr(101))(chr(1113 - 996) + '\164' + chr(102) + '\x2d' + chr(0b10011 + 0o45)))(q_cLZaq9DJhq, FxZHtXEolYsL)) return (phVRuLrwC6KI, kHvoAE2RlcLO)
dnanexus/dx-toolkit
src/python/dxpy/utils/file_load_utils.py
gen_bash_vars
def gen_bash_vars(job_input_file, job_homedir=None, check_name_collision=True): """ :param job_input_file: path to a JSON file describing the job inputs :param job_homedir: path to home directory, used for testing purposes :param check_name_collision: should we check for name collisions? :return: list of lines :rtype: list of strings Calculates a line for each shell variable to instantiate. If *check_name_collision* is true, then detect and warn about collisions with essential environment variables. """ file_key_descs, rest_hash = analyze_bash_vars(job_input_file, job_homedir) def string_of_elem(elem): result = None if isinstance(elem, basestring): result = elem elif isinstance(elem, dxpy.DXFile): result = json.dumps(dxpy.dxlink(elem)) else: result = json.dumps(elem) return pipes.quote(result) def string_of_value(val): if isinstance(val, list): string = " ".join([string_of_elem(vitem) for vitem in val]) return "( {} )".format(string) else: return string_of_elem(val) var_defs_hash = {} def gen_text_line_and_name_collision(key, val): ''' In the absence of a name collision, create a line describing a bash variable. ''' if check_name_collision: if key not in environ and key not in var_defs_hash: var_defs_hash[key] = val else: sys.stderr.write(dxpy.utils.printing.fill( "Creating environment variable ({}) would cause a name collision".format(key) ) + "\n") else: var_defs_hash[key] = val # Processing non-file variables before the file variables. This priorities them, # so that in case of name collisions, the file-variables will be dropped. for key, desc in list(rest_hash.items()): gen_text_line_and_name_collision(key, string_of_value(desc)) for file_key, desc in list(file_key_descs.items()): gen_text_line_and_name_collision(file_key, string_of_value(desc['handler'])) gen_text_line_and_name_collision(file_key + "_name", string_of_value(desc['basename'])) gen_text_line_and_name_collision(file_key + "_prefix", string_of_value(desc['prefix'])) gen_text_line_and_name_collision(file_key + "_path", string_of_value(desc['path'])) return var_defs_hash
python
def gen_bash_vars(job_input_file, job_homedir=None, check_name_collision=True): """ :param job_input_file: path to a JSON file describing the job inputs :param job_homedir: path to home directory, used for testing purposes :param check_name_collision: should we check for name collisions? :return: list of lines :rtype: list of strings Calculates a line for each shell variable to instantiate. If *check_name_collision* is true, then detect and warn about collisions with essential environment variables. """ file_key_descs, rest_hash = analyze_bash_vars(job_input_file, job_homedir) def string_of_elem(elem): result = None if isinstance(elem, basestring): result = elem elif isinstance(elem, dxpy.DXFile): result = json.dumps(dxpy.dxlink(elem)) else: result = json.dumps(elem) return pipes.quote(result) def string_of_value(val): if isinstance(val, list): string = " ".join([string_of_elem(vitem) for vitem in val]) return "( {} )".format(string) else: return string_of_elem(val) var_defs_hash = {} def gen_text_line_and_name_collision(key, val): ''' In the absence of a name collision, create a line describing a bash variable. ''' if check_name_collision: if key not in environ and key not in var_defs_hash: var_defs_hash[key] = val else: sys.stderr.write(dxpy.utils.printing.fill( "Creating environment variable ({}) would cause a name collision".format(key) ) + "\n") else: var_defs_hash[key] = val # Processing non-file variables before the file variables. This priorities them, # so that in case of name collisions, the file-variables will be dropped. for key, desc in list(rest_hash.items()): gen_text_line_and_name_collision(key, string_of_value(desc)) for file_key, desc in list(file_key_descs.items()): gen_text_line_and_name_collision(file_key, string_of_value(desc['handler'])) gen_text_line_and_name_collision(file_key + "_name", string_of_value(desc['basename'])) gen_text_line_and_name_collision(file_key + "_prefix", string_of_value(desc['prefix'])) gen_text_line_and_name_collision(file_key + "_path", string_of_value(desc['path'])) return var_defs_hash
[ "def", "gen_bash_vars", "(", "job_input_file", ",", "job_homedir", "=", "None", ",", "check_name_collision", "=", "True", ")", ":", "file_key_descs", ",", "rest_hash", "=", "analyze_bash_vars", "(", "job_input_file", ",", "job_homedir", ")", "def", "string_of_elem", "(", "elem", ")", ":", "result", "=", "None", "if", "isinstance", "(", "elem", ",", "basestring", ")", ":", "result", "=", "elem", "elif", "isinstance", "(", "elem", ",", "dxpy", ".", "DXFile", ")", ":", "result", "=", "json", ".", "dumps", "(", "dxpy", ".", "dxlink", "(", "elem", ")", ")", "else", ":", "result", "=", "json", ".", "dumps", "(", "elem", ")", "return", "pipes", ".", "quote", "(", "result", ")", "def", "string_of_value", "(", "val", ")", ":", "if", "isinstance", "(", "val", ",", "list", ")", ":", "string", "=", "\" \"", ".", "join", "(", "[", "string_of_elem", "(", "vitem", ")", "for", "vitem", "in", "val", "]", ")", "return", "\"( {} )\"", ".", "format", "(", "string", ")", "else", ":", "return", "string_of_elem", "(", "val", ")", "var_defs_hash", "=", "{", "}", "def", "gen_text_line_and_name_collision", "(", "key", ",", "val", ")", ":", "''' In the absence of a name collision, create a line describing a bash variable.\n '''", "if", "check_name_collision", ":", "if", "key", "not", "in", "environ", "and", "key", "not", "in", "var_defs_hash", ":", "var_defs_hash", "[", "key", "]", "=", "val", "else", ":", "sys", ".", "stderr", ".", "write", "(", "dxpy", ".", "utils", ".", "printing", ".", "fill", "(", "\"Creating environment variable ({}) would cause a name collision\"", ".", "format", "(", "key", ")", ")", "+", "\"\\n\"", ")", "else", ":", "var_defs_hash", "[", "key", "]", "=", "val", "# Processing non-file variables before the file variables. This priorities them,", "# so that in case of name collisions, the file-variables will be dropped.", "for", "key", ",", "desc", "in", "list", "(", "rest_hash", ".", "items", "(", ")", ")", ":", "gen_text_line_and_name_collision", "(", "key", ",", "string_of_value", "(", "desc", ")", ")", "for", "file_key", ",", "desc", "in", "list", "(", "file_key_descs", ".", "items", "(", ")", ")", ":", "gen_text_line_and_name_collision", "(", "file_key", ",", "string_of_value", "(", "desc", "[", "'handler'", "]", ")", ")", "gen_text_line_and_name_collision", "(", "file_key", "+", "\"_name\"", ",", "string_of_value", "(", "desc", "[", "'basename'", "]", ")", ")", "gen_text_line_and_name_collision", "(", "file_key", "+", "\"_prefix\"", ",", "string_of_value", "(", "desc", "[", "'prefix'", "]", ")", ")", "gen_text_line_and_name_collision", "(", "file_key", "+", "\"_path\"", ",", "string_of_value", "(", "desc", "[", "'path'", "]", ")", ")", "return", "var_defs_hash" ]
:param job_input_file: path to a JSON file describing the job inputs :param job_homedir: path to home directory, used for testing purposes :param check_name_collision: should we check for name collisions? :return: list of lines :rtype: list of strings Calculates a line for each shell variable to instantiate. If *check_name_collision* is true, then detect and warn about collisions with essential environment variables.
[ ":", "param", "job_input_file", ":", "path", "to", "a", "JSON", "file", "describing", "the", "job", "inputs", ":", "param", "job_homedir", ":", "path", "to", "home", "directory", "used", "for", "testing", "purposes", ":", "param", "check_name_collision", ":", "should", "we", "check", "for", "name", "collisions?", ":", "return", ":", "list", "of", "lines", ":", "rtype", ":", "list", "of", "strings" ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/utils/file_load_utils.py#L408-L464
train
Generates a list of lines for each bash variable in the job input file.
GiP5x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M0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b110000) + chr(3198 - 3087) + '\x31' + chr(0b11 + 0o62) + chr(0b110100), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110001) + '\x34' + chr(49), 59500 - 59492), nzTpIcepk0o8(chr(0b110000) + chr(6688 - 6577) + chr(0b101000 + 0o12) + chr(976 - 927) + '\061', 0b1000), nzTpIcepk0o8('\x30' + '\157' + '\x32', 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(0b100001 + 0o21) + chr(2353 - 2300) + chr(50), 0o10), nzTpIcepk0o8(chr(48) + chr(8260 - 8149) + chr(0b10110 + 0o34) + chr(55) + chr(0b110000), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(51) + chr(531 - 481) + chr(1967 - 1917), ord("\x08")), nzTpIcepk0o8('\060' + chr(5855 - 5744) + chr(0b110001) + chr(420 - 372) + chr(0b110000), 34624 - 34616), nzTpIcepk0o8('\060' + chr(0b100010 + 0o115) + chr(0b110100) + chr(0b100000 + 0o20), ord("\x08")), nzTpIcepk0o8(chr(0b100101 + 0o13) + '\157' + chr(1887 - 1832) + '\060', ord("\x08")), nzTpIcepk0o8(chr(222 - 174) + chr(7359 - 7248) + chr(0b110010) + '\x33' + chr(0b1 + 0o61), 22959 - 22951), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(49) + '\063' + chr(2237 - 2182), 59754 - 59746), nzTpIcepk0o8(chr(48) + '\x6f' + '\063' + '\x32' + chr(0b101101 + 0o7), 24213 - 24205), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110001) + chr(0b110000) + chr(53), 46286 - 46278), nzTpIcepk0o8(chr(1892 - 1844) + chr(111) + chr(50) + chr(0b110001 + 0o5) + chr(0b1101 + 0o52), 57910 - 57902), nzTpIcepk0o8(chr(2289 - 2241) + chr(3987 - 3876) + '\062' + chr(0b110110) + chr(49), 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(50) + chr(0b110000) + chr(0b110000), 0o10), nzTpIcepk0o8(chr(0b11100 + 0o24) + chr(111) + chr(2032 - 1978) + chr(2099 - 2044), ord("\x08")), nzTpIcepk0o8(chr(1144 - 1096) + '\x6f' + chr(1808 - 1760), 0o10), nzTpIcepk0o8('\x30' + chr(0b1010111 + 0o30) + chr(1868 - 1817) + chr(0b101101 + 0o10) + chr(1634 - 1580), ord("\x08")), nzTpIcepk0o8(chr(0b1 + 0o57) + chr(111) + '\x32' + '\x36', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b11111 + 0o120) + '\062' + chr(851 - 798) + chr(2222 - 2171), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\061' + chr(55), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(0b11000 + 0o32) + '\063' + chr(0b110010), 8), nzTpIcepk0o8('\x30' + chr(3611 - 3500) + chr(2045 - 1995) + chr(0b110010 + 0o0) + chr(51), 26933 - 26925), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(1644 - 1594) + chr(2318 - 2263) + chr(2110 - 2055), 0o10), nzTpIcepk0o8(chr(0b101100 + 0o4) + '\157' + chr(147 - 96) + chr(2196 - 2148) + '\x36', ord("\x08")), nzTpIcepk0o8(chr(411 - 363) + '\x6f' + chr(0b100100 + 0o17) + chr(53) + '\x33', 44093 - 44085), nzTpIcepk0o8('\x30' + '\157' + chr(49) + '\x33' + '\x30', 35090 - 35082), nzTpIcepk0o8(chr(0b1001 + 0o47) + chr(111) + chr(0b110001 + 0o0) + '\064' + chr(1909 - 1860), 8), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(49) + chr(1620 - 1567) + chr(0b10000 + 0o45), 2995 - 2987), nzTpIcepk0o8(chr(0b10101 + 0o33) + '\x6f' + '\061' + '\x30' + '\x36', 20679 - 20671), nzTpIcepk0o8(chr(48) + chr(9020 - 8909) + chr(0b110011) + chr(2456 - 2406) + chr(50), 8), nzTpIcepk0o8(chr(48) + chr(111) + chr(1816 - 1767) + chr(50) + chr(300 - 248), 31810 - 31802), nzTpIcepk0o8('\060' + chr(5988 - 5877) + '\x31' + chr(0b100 + 0o57) + chr(0b100010 + 0o20), 0b1000), nzTpIcepk0o8(chr(0b1 + 0o57) + chr(0b110001 + 0o76) + '\x32' + chr(0b101111 + 0o10) + chr(0b11010 + 0o27), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + '\x31' + '\061' + chr(1584 - 1535), 11226 - 11218), nzTpIcepk0o8(chr(0b100 + 0o54) + '\x6f' + chr(0b11100 + 0o26) + chr(49) + '\065', 53075 - 53067), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b100010 + 0o20) + chr(53) + chr(1124 - 1074), 8), nzTpIcepk0o8('\060' + chr(0b1101110 + 0o1) + chr(1236 - 1186) + chr(1825 - 1775), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + chr(111) + '\x35' + '\x30', 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'B'), chr(0b1100100) + chr(0b1001100 + 0o31) + '\143' + '\x6f' + '\x64' + chr(2243 - 2142))('\x75' + chr(0b1011011 + 0o31) + chr(0b1100110) + '\055' + chr(0b101001 + 0o17)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def tdV5AuIkugor(Ydo3WyvUSYZH, ryB6wMJ20OO8=None, aDNtBOaFwpHX=nzTpIcepk0o8(chr(0b100100 + 0o14) + chr(0b100010 + 0o115) + '\x31', 0b1000)): (phVRuLrwC6KI, kHvoAE2RlcLO) = o__Lkzz0Z0Yj(Ydo3WyvUSYZH, ryB6wMJ20OO8) def uRHvzVqTLtQH(Ge7qqaux3bQW): POx95m7SPOVy = None if suIjIS24Zkqw(Ge7qqaux3bQW, JaQstSroDWOP): POx95m7SPOVy = Ge7qqaux3bQW elif suIjIS24Zkqw(Ge7qqaux3bQW, roI3spqORKae(SsdNdRxXOwsF, roI3spqORKae(ES5oEprVxulp(b'(9\xcfk\xc6\xdd'), '\x64' + chr(0b111001 + 0o54) + chr(99) + '\x6f' + chr(0b110011 + 0o61) + chr(0b1100101))('\x75' + chr(0b1110100) + chr(0b1011101 + 0o11) + chr(45) + '\x38'))): POx95m7SPOVy = LNUKEwZDIbyb.Zjglmm8uenkC(SsdNdRxXOwsF.dxlink(Ge7qqaux3bQW)) else: POx95m7SPOVy = LNUKEwZDIbyb.Zjglmm8uenkC(Ge7qqaux3bQW) return roI3spqORKae(vu8hFTlh1_Gi, roI3spqORKae(ES5oEprVxulp(b'\x1d\x14\xe6v\xcf'), chr(0b1000 + 0o134) + chr(0b1100101) + '\x63' + chr(0b0 + 0o157) + chr(0b1100100) + chr(0b111 + 0o136))(chr(0b1101001 + 0o14) + chr(0b1110100) + '\146' + chr(45) + chr(56)))(POx95m7SPOVy) def lcqUHXCsiuFI(pXwvT17vr09s): if suIjIS24Zkqw(pXwvT17vr09s, H4NoA26ON7iG): aji3jF4_nqWL = roI3spqORKae(ES5oEprVxulp(b'L'), chr(0b110001 + 0o63) + chr(101) + chr(7475 - 7376) + chr(0b1101111) + chr(100) + chr(101))('\x75' + '\164' + '\x66' + chr(45) + chr(0b100000 + 0o30)).Y4yM9BcfTCNq([uRHvzVqTLtQH(moMVNfmpJ2Ph) for moMVNfmpJ2Ph in pXwvT17vr09s]) return roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'DA\xf2\x7f\x8a\x91'), '\x64' + chr(101) + '\x63' + chr(111) + chr(100) + chr(0b11110 + 0o107))('\165' + '\164' + chr(0b10100 + 0o122) + chr(45) + chr(56)), roI3spqORKae(ES5oEprVxulp(b'\x1dR\xbaI\xed\x8b\xb4/qg\xd9\x15'), '\144' + '\x65' + '\x63' + chr(111) + chr(0b111010 + 0o52) + chr(4462 - 4361))(chr(117) + chr(0b1011011 + 0o31) + chr(0b100110 + 0o100) + '\x2d' + chr(0b11110 + 0o32)))(aji3jF4_nqWL) else: return uRHvzVqTLtQH(pXwvT17vr09s) xa88J6BRglVY = {} def E6qmOxeiv7Rd(QYodcsDtoGq7, pXwvT17vr09s): if aDNtBOaFwpHX: if QYodcsDtoGq7 not in I3lWyC6_P_MO and QYodcsDtoGq7 not in xa88J6BRglVY: xa88J6BRglVY[QYodcsDtoGq7] = pXwvT17vr09s else: roI3spqORKae(bpyfpu4kTbwL.stderr, roI3spqORKae(ES5oEprVxulp(b'\x01\r\xb9j\xc2\xc8\xa4qlH\xebm'), chr(0b110110 + 0o56) + '\x65' + '\143' + chr(0b1101111) + chr(9781 - 9681) + chr(0b110 + 0o137))(chr(117) + chr(0b1110100) + chr(7616 - 7514) + chr(1012 - 967) + chr(0b100101 + 0o23)))(roI3spqORKae(SsdNdRxXOwsF.utils.printing, roI3spqORKae(ES5oEprVxulp(b'\x1c1\xe4i\xe6\xfb\x84\x01\x13\n\xa2:'), chr(0b1100100) + '\145' + '\143' + '\157' + '\144' + '\x65')(chr(0b1110101) + chr(0b0 + 0o164) + '\x66' + chr(45) + chr(56)))(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b"/\x13\xecc\xde\xd1\xbc'\x00]\xf4)\xbd7\xd8\xdf\xedRn\x9a6\xddn\xe8\xfa\xde\xa4\x87=AE=\xaf}z\xce&\xf8\xc6vL\x02\xe8w\xd9\xdd\xf2!\x00V\xfb2\xb1e\xd4\xde\xec[i\x9d\x7f\xc4a"), chr(0b1100100) + chr(0b100111 + 0o76) + chr(99) + '\x6f' + '\144' + chr(6239 - 6138))(chr(6194 - 6077) + '\164' + '\146' + chr(0b101101) + chr(0b100100 + 0o24)), roI3spqORKae(ES5oEprVxulp(b'\x1dR\xbaI\xed\x8b\xb4/qg\xd9\x15'), chr(1953 - 1853) + chr(7570 - 7469) + chr(99) + chr(0b1101111) + chr(100) + chr(0b1100101))('\x75' + '\x74' + chr(102) + chr(45) + chr(0b111000)))(QYodcsDtoGq7)) + roI3spqORKae(ES5oEprVxulp(b'f'), chr(0b1100100) + '\x65' + chr(99) + chr(111) + chr(0b1100100) + chr(0b11111 + 0o106))(chr(8271 - 8154) + '\164' + chr(0b1100110) + '\055' + chr(2858 - 2802))) else: xa88J6BRglVY[QYodcsDtoGq7] = pXwvT17vr09s for (QYodcsDtoGq7, iSl7yqRxEcuG) in H4NoA26ON7iG(roI3spqORKae(kHvoAE2RlcLO, roI3spqORKae(ES5oEprVxulp(b'5>\xe7L\xef\xc2\x9at\x13N\xc26'), chr(0b1000 + 0o134) + chr(0b1100101) + chr(0b1101 + 0o126) + chr(0b1101111) + chr(3049 - 2949) + '\x65')(chr(0b1110101) + chr(0b1011111 + 0o25) + chr(0b111111 + 0o47) + chr(45) + '\070'))()): E6qmOxeiv7Rd(QYodcsDtoGq7, lcqUHXCsiuFI(iSl7yqRxEcuG)) for (QCQ8pHlgf9jn, iSl7yqRxEcuG) in H4NoA26ON7iG(roI3spqORKae(phVRuLrwC6KI, roI3spqORKae(ES5oEprVxulp(b'5>\xe7L\xef\xc2\x9at\x13N\xc26'), '\x64' + chr(101) + chr(279 - 180) + '\x6f' + chr(100) + chr(623 - 522))('\165' + '\164' + chr(0b101011 + 0o73) + chr(45) + chr(0b1010 + 0o56)))()): E6qmOxeiv7Rd(QCQ8pHlgf9jn, lcqUHXCsiuFI(iSl7yqRxEcuG[roI3spqORKae(ES5oEprVxulp(b'\x04\x00\xe7f\xc6\xdd\xa0'), chr(0b1001110 + 0o26) + chr(101) + chr(4175 - 4076) + chr(0b1101111) + '\144' + chr(0b11000 + 0o115))('\x75' + '\164' + chr(102) + '\055' + chr(0b111000))])) E6qmOxeiv7Rd(QCQ8pHlgf9jn + roI3spqORKae(ES5oEprVxulp(b'3\x0f\xe8o\xcf'), chr(0b10001 + 0o123) + chr(0b1100101) + chr(0b1100011) + '\157' + chr(0b1100100) + '\x65')(chr(0b1110101) + chr(0b1110100) + chr(102) + chr(45) + chr(56)), lcqUHXCsiuFI(iSl7yqRxEcuG[roI3spqORKae(ES5oEprVxulp(b'\x0e\x00\xfag\xc4\xd9\xbf%'), chr(0b1000001 + 0o43) + chr(7509 - 7408) + chr(99) + '\x6f' + chr(8502 - 8402) + chr(7654 - 7553))(chr(0b111111 + 0o66) + chr(116) + chr(0b1100110) + chr(1604 - 1559) + chr(0b110011 + 0o5))])) E6qmOxeiv7Rd(QCQ8pHlgf9jn + roI3spqORKae(ES5oEprVxulp(b'3\x11\xfbg\xcc\xd1\xaa'), chr(0b1100100) + chr(0b1100101) + '\143' + '\157' + '\144' + chr(0b1011001 + 0o14))('\165' + chr(5635 - 5519) + '\x66' + chr(1382 - 1337) + '\x38'), lcqUHXCsiuFI(iSl7yqRxEcuG[roI3spqORKae(ES5oEprVxulp(b'\x1c\x13\xecd\xc3\xc0'), '\x64' + chr(6780 - 6679) + chr(99) + '\157' + '\x64' + chr(9528 - 9427))(chr(0b101111 + 0o106) + '\x74' + '\x66' + '\055' + chr(2356 - 2300))])) E6qmOxeiv7Rd(QCQ8pHlgf9jn + roI3spqORKae(ES5oEprVxulp(b'3\x11\xe8v\xc2'), chr(0b1100100) + chr(0b1010000 + 0o25) + chr(4809 - 4710) + chr(111) + chr(0b1100100) + chr(101))(chr(1193 - 1076) + chr(0b1110100) + chr(0b1100110) + chr(45) + '\070'), lcqUHXCsiuFI(iSl7yqRxEcuG[roI3spqORKae(ES5oEprVxulp(b'\x1c\x00\xfdj'), '\144' + chr(0b1100 + 0o131) + chr(0b1100011) + chr(111) + chr(100) + chr(9023 - 8922))(chr(0b111011 + 0o72) + '\164' + '\x66' + chr(0b101101) + chr(0b111000))])) return xa88J6BRglVY
dnanexus/dx-toolkit
src/python/dxpy/utils/__init__.py
wait_for_a_future
def wait_for_a_future(futures, print_traceback=False): """ Return the next future that completes. If a KeyboardInterrupt is received, then the entire process is exited immediately. See wait_for_all_futures for more notes. """ while True: try: future = next(concurrent.futures.as_completed(futures, timeout=THREAD_TIMEOUT_MAX)) break except concurrent.futures.TimeoutError: pass except KeyboardInterrupt: if print_traceback: traceback.print_stack() else: print('') os._exit(os.EX_IOERR) return future
python
def wait_for_a_future(futures, print_traceback=False): """ Return the next future that completes. If a KeyboardInterrupt is received, then the entire process is exited immediately. See wait_for_all_futures for more notes. """ while True: try: future = next(concurrent.futures.as_completed(futures, timeout=THREAD_TIMEOUT_MAX)) break except concurrent.futures.TimeoutError: pass except KeyboardInterrupt: if print_traceback: traceback.print_stack() else: print('') os._exit(os.EX_IOERR) return future
[ "def", "wait_for_a_future", "(", "futures", ",", "print_traceback", "=", "False", ")", ":", "while", "True", ":", "try", ":", "future", "=", "next", "(", "concurrent", ".", "futures", ".", "as_completed", "(", "futures", ",", "timeout", "=", "THREAD_TIMEOUT_MAX", ")", ")", "break", "except", "concurrent", ".", "futures", ".", "TimeoutError", ":", "pass", "except", "KeyboardInterrupt", ":", "if", "print_traceback", ":", "traceback", ".", "print_stack", "(", ")", "else", ":", "print", "(", "''", ")", "os", ".", "_exit", "(", "os", ".", "EX_IOERR", ")", "return", "future" ]
Return the next future that completes. If a KeyboardInterrupt is received, then the entire process is exited immediately. See wait_for_all_futures for more notes.
[ "Return", "the", "next", "future", "that", "completes", ".", "If", "a", "KeyboardInterrupt", "is", "received", "then", "the", "entire", "process", "is", "exited", "immediately", ".", "See", "wait_for_all_futures", "for", "more", "notes", "." ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/utils/__init__.py#L40-L59
train
Wait for a future that completes.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mB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Zk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b100110 + 0o12) + chr(6402 - 6291) + chr(49) + '\062' + chr(0b110101), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1010001 + 0o36) + chr(50) + '\061' + '\x32', 0o10), nzTpIcepk0o8(chr(0b110000 + 0o0) + chr(0b10001 + 0o136) + '\063' + chr(2019 - 1968) + '\x36', 19059 - 19051), nzTpIcepk0o8(chr(1190 - 1142) + chr(0b1000001 + 0o56) + chr(1499 - 1450) + chr(0b10001 + 0o40) + chr(2032 - 1984), 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(0b1111 + 0o44) + '\x34' + chr(54), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(53) + chr(0b101010 + 0o13), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110010) + chr(52) + '\065', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(6233 - 6122) + chr(49) + '\x34' + chr(315 - 267), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(51) + chr(0b100100 + 0o21) + '\060', ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + '\061' + '\x33' + chr(49), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110010) + chr(48) + chr(0b110100), 15128 - 15120), nzTpIcepk0o8(chr(935 - 887) + chr(0b110110 + 0o71) + chr(0b1100 + 0o46) + chr(0b110110) + '\x31', 41878 - 41870), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b100110 + 0o13) + chr(0b110011) + '\x35', 55473 - 55465), nzTpIcepk0o8('\x30' + '\157' + chr(0b110010) + '\x37' + chr(2366 - 2312), 7116 - 7108), nzTpIcepk0o8(chr(48) + chr(111) + chr(51) + chr(0b10 + 0o56) + '\x33', 0o10), nzTpIcepk0o8(chr(1081 - 1033) + chr(6646 - 6535) + chr(0b110011) + chr(0b110001 + 0o5) + chr(136 - 83), 11208 - 11200), nzTpIcepk0o8('\060' + chr(111) + chr(1894 - 1843) + '\061' + chr(55), 0o10), nzTpIcepk0o8(chr(1915 - 1867) + chr(0b11001 + 0o126) + '\x33' + chr(0b110010) + chr(1606 - 1553), ord("\x08")), nzTpIcepk0o8(chr(0b11110 + 0o22) + chr(0b1101111) + '\x33' + chr(0b1110 + 0o47) + '\063', 0b1000), nzTpIcepk0o8('\060' + '\157' + '\x32' + '\x35' + chr(54), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(5975 - 5864) + '\x31' + chr(49) + chr(49), 62459 - 62451), nzTpIcepk0o8(chr(48) + chr(0b1000010 + 0o55) + chr(0b100000 + 0o22) + chr(0b1101 + 0o43) + '\064', 8), nzTpIcepk0o8('\060' + chr(8661 - 8550) + chr(0b110010) + '\061' + '\x37', 0b1000), nzTpIcepk0o8(chr(0b100100 + 0o14) + chr(9656 - 9545) + chr(0b100100 + 0o15) + chr(0b1011 + 0o52) + chr(1185 - 1130), 47748 - 47740), nzTpIcepk0o8(chr(48) + '\157' + '\x31' + chr(55) + chr(0b110000), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110001 + 0o0) + chr(48) + chr(0b111 + 0o55), 0b1000), nzTpIcepk0o8(chr(438 - 390) + chr(2015 - 1904) + chr(928 - 877) + chr(0b110000) + chr(0b101000 + 0o10), 38495 - 38487), nzTpIcepk0o8('\060' + '\157' + chr(0b101111 + 0o4) + chr(727 - 679) + '\062', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b110100 + 0o73) + chr(0b100000 + 0o23) + '\067' + '\x37', 20300 - 20292), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(50) + chr(0b110111) + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(3639 - 3528) + chr(0b110011) + '\x30' + chr(51), 8), nzTpIcepk0o8('\060' + '\x6f' + '\061' + chr(0b110010) + chr(122 - 73), 0b1000), nzTpIcepk0o8(chr(1528 - 1480) + chr(0b1001011 + 0o44) + chr(0b110001) + '\065' + chr(2372 - 2320), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + '\063' + chr(483 - 432) + '\063', 19885 - 19877), nzTpIcepk0o8(chr(0b110000) + chr(0b1101101 + 0o2) + chr(51) + chr(0b110100) + '\x32', 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(0b1 + 0o61) + chr(48) + chr(0b101000 + 0o14), 8), nzTpIcepk0o8('\x30' + chr(416 - 305) + chr(2043 - 1993) + chr(53) + chr(933 - 880), 0b1000), nzTpIcepk0o8(chr(0b111 + 0o51) + chr(0b1000001 + 0o56) + chr(50) + '\x37' + chr(1461 - 1406), 4376 - 4368), nzTpIcepk0o8(chr(0b110000) + '\157' + '\063' + chr(49) + '\x37', 8), nzTpIcepk0o8(chr(0b11001 + 0o27) + chr(852 - 741) + chr(0b110010 + 0o1) + '\061', 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\065' + '\x30', 43592 - 43584)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'{'), chr(0b1100100) + chr(0b1100101) + chr(7436 - 7337) + chr(7519 - 7408) + chr(0b111 + 0o135) + '\x65')(chr(10104 - 9987) + chr(1291 - 1175) + chr(0b1100110) + chr(45) + chr(0b10000 + 0o50)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def FAnDgotBIJyk(j0XrBY7V3THa, EwyYmTkzVk9d=nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b11000 + 0o30), 8459 - 8451)): while nzTpIcepk0o8(chr(0b10101 + 0o33) + chr(111) + chr(49), 0o10): try: pLWLL1Holwwm = ltB3XhPy2rYf(RcokTIRALQHQ.futures.as_completed(j0XrBY7V3THa, timeout=zIVBMtjs5Asb)) break except roI3spqORKae(RcokTIRALQHQ.futures, roI3spqORKae(ES5oEprVxulp(b'\x01\xe3\xb3-\x89X\xd1%\x9a+\xeb\xc3'), chr(0b111000 + 0o54) + '\145' + chr(0b1100011) + '\x6f' + chr(100) + chr(0b1100101))(chr(0b1110101) + '\164' + chr(0b11 + 0o143) + chr(45) + '\070')): pass except Fc8q2OvvlH7d: if EwyYmTkzVk9d: roI3spqORKae(N5iKB8EqlT7p, roI3spqORKae(ES5oEprVxulp(b'%\xf8\xb7&\x92r\xd6\x14\x89:\xef'), chr(7915 - 7815) + chr(0b1100 + 0o131) + '\143' + chr(3999 - 3888) + '\144' + chr(9531 - 9430))(chr(0b1011000 + 0o35) + chr(0b101011 + 0o111) + '\146' + '\x2d' + '\x38'))() else: v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b''), chr(0b1100100) + chr(0b1010011 + 0o22) + '\143' + chr(111) + '\144' + chr(4526 - 4425))('\x75' + '\x74' + '\x66' + chr(45) + chr(0b111000))) roI3spqORKae(aHUqKstZLeS6, roI3spqORKae(ES5oEprVxulp(b'\n\xef\xa6!\x92'), '\144' + chr(9116 - 9015) + chr(453 - 354) + chr(708 - 597) + '\x64' + chr(0b1100101))(chr(0b1110101) + chr(0b1100000 + 0o24) + '\146' + chr(2022 - 1977) + chr(56)))(roI3spqORKae(aHUqKstZLeS6, roI3spqORKae(ES5oEprVxulp(b'\x10\xd2\x81\x01\xa9h\xf72'), chr(100) + '\x65' + '\x63' + chr(8747 - 8636) + chr(100) + '\x65')('\165' + chr(116) + chr(0b1100110) + '\055' + '\x38'))) return pLWLL1Holwwm
dnanexus/dx-toolkit
src/python/dxpy/utils/__init__.py
wait_for_all_futures
def wait_for_all_futures(futures, print_traceback=False): """ Wait indefinitely for all futures in the input iterable to complete. Use a timeout to enable interrupt handling. Call os._exit() in case of KeyboardInterrupt. Otherwise, the atexit registered handler in concurrent.futures.thread will run, and issue blocking join() on all worker threads, requiring us to listen to events in worker threads in order to enable timely exit in response to Ctrl-C. Note: This still doesn't handle situations where Ctrl-C is pressed elsewhere in the code and there are worker threads with long-running tasks. Note: os._exit() doesn't work well with interactive mode (e.g. ipython). This may help: import __main__ as main; if hasattr(main, '__file__'): os._exit() else: os.exit() """ try: while True: waited_futures = concurrent.futures.wait(futures, timeout=60) if len(waited_futures.not_done) == 0: break except KeyboardInterrupt: if print_traceback: traceback.print_stack() else: print('') os._exit(os.EX_IOERR)
python
def wait_for_all_futures(futures, print_traceback=False): """ Wait indefinitely for all futures in the input iterable to complete. Use a timeout to enable interrupt handling. Call os._exit() in case of KeyboardInterrupt. Otherwise, the atexit registered handler in concurrent.futures.thread will run, and issue blocking join() on all worker threads, requiring us to listen to events in worker threads in order to enable timely exit in response to Ctrl-C. Note: This still doesn't handle situations where Ctrl-C is pressed elsewhere in the code and there are worker threads with long-running tasks. Note: os._exit() doesn't work well with interactive mode (e.g. ipython). This may help: import __main__ as main; if hasattr(main, '__file__'): os._exit() else: os.exit() """ try: while True: waited_futures = concurrent.futures.wait(futures, timeout=60) if len(waited_futures.not_done) == 0: break except KeyboardInterrupt: if print_traceback: traceback.print_stack() else: print('') os._exit(os.EX_IOERR)
[ "def", "wait_for_all_futures", "(", "futures", ",", "print_traceback", "=", "False", ")", ":", "try", ":", "while", "True", ":", "waited_futures", "=", "concurrent", ".", "futures", ".", "wait", "(", "futures", ",", "timeout", "=", "60", ")", "if", "len", "(", "waited_futures", ".", "not_done", ")", "==", "0", ":", "break", "except", "KeyboardInterrupt", ":", "if", "print_traceback", ":", "traceback", ".", "print_stack", "(", ")", "else", ":", "print", "(", "''", ")", "os", ".", "_exit", "(", "os", ".", "EX_IOERR", ")" ]
Wait indefinitely for all futures in the input iterable to complete. Use a timeout to enable interrupt handling. Call os._exit() in case of KeyboardInterrupt. Otherwise, the atexit registered handler in concurrent.futures.thread will run, and issue blocking join() on all worker threads, requiring us to listen to events in worker threads in order to enable timely exit in response to Ctrl-C. Note: This still doesn't handle situations where Ctrl-C is pressed elsewhere in the code and there are worker threads with long-running tasks. Note: os._exit() doesn't work well with interactive mode (e.g. ipython). This may help: import __main__ as main; if hasattr(main, '__file__'): os._exit() else: os.exit()
[ "Wait", "indefinitely", "for", "all", "futures", "in", "the", "input", "iterable", "to", "complete", ".", "Use", "a", "timeout", "to", "enable", "interrupt", "handling", ".", "Call", "os", ".", "_exit", "()", "in", "case", "of", "KeyboardInterrupt", ".", "Otherwise", "the", "atexit", "registered", "handler", "in", "concurrent", ".", "futures", ".", "thread", "will", "run", "and", "issue", "blocking", "join", "()", "on", "all", "worker", "threads", "requiring", "us", "to", "listen", "to", "events", "in", "worker", "threads", "in", "order", "to", "enable", "timely", "exit", "in", "response", "to", "Ctrl", "-", "C", "." ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d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qQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(797 - 749) + chr(6891 - 6780) + chr(0b11001 + 0o35) + chr(0b11101 + 0o25), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(1536 - 1425) + '\x33' + chr(54) + '\064', 46827 - 46819), nzTpIcepk0o8(chr(1257 - 1209) + chr(0b110100 + 0o73) + '\064' + chr(0b110111), 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x31' + chr(53) + '\065', 0b1000), nzTpIcepk0o8(chr(0b100110 + 0o12) + chr(0b110101 + 0o72) + '\x32' + chr(0b110000), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(4119 - 4008) + '\x31' + chr(180 - 126) + '\060', 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + '\x37' + chr(0b10110 + 0o35), 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(1393 - 1343) + chr(253 - 198) + chr(52), 8301 - 8293), nzTpIcepk0o8('\060' + chr(4048 - 3937) + chr(0b11010 + 0o31) + chr(0b110111) + chr(0b110101 + 0o0), 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(0b1110 + 0o45) + chr(0b110010) + chr(2728 - 2675), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110010) + chr(0b110101 + 0o0) + '\065', 0b1000), nzTpIcepk0o8(chr(2005 - 1957) + '\157' + chr(51) + chr(0b110101) + '\062', 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + '\x32' + '\x30' + chr(0b110000), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110011) + chr(960 - 911) + '\x36', 11648 - 11640), nzTpIcepk0o8('\060' + chr(8537 - 8426) + chr(0b110001) + '\067' + '\065', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x32' + '\x32' + chr(2671 - 2619), 0o10), nzTpIcepk0o8('\060' + chr(6624 - 6513) + chr(0b110001) + chr(1556 - 1508) + '\x35', 40342 - 40334), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x37', 53751 - 53743), nzTpIcepk0o8('\x30' + chr(0b100000 + 0o117) + chr(0b110001) + chr(1600 - 1549) + chr(0b10001 + 0o41), ord("\x08")), nzTpIcepk0o8(chr(0b1111 + 0o41) + chr(0b1101111) + '\x37' + chr(51), 8), nzTpIcepk0o8('\x30' + '\157' + chr(0b110000 + 0o2) + '\x36', 0o10), nzTpIcepk0o8(chr(0b10001 + 0o37) + chr(0b11000 + 0o127) + '\x32', 0b1000), nzTpIcepk0o8(chr(0b100100 + 0o14) + chr(0b101011 + 0o104) + chr(0b110001) + chr(0b110000) + '\x30', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x32' + '\061' + chr(1920 - 1869), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b101100 + 0o5) + chr(48) + '\x34', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(1063 - 1012) + '\x36' + chr(0b10 + 0o63), 0o10), nzTpIcepk0o8(chr(988 - 940) + chr(111) + chr(49) + chr(53) + '\x35', 8), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b11000 + 0o31) + '\x30' + '\x32', 0o10), nzTpIcepk0o8(chr(1875 - 1827) + chr(111) + '\x32' + chr(0b110010) + chr(51), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b10 + 0o64) + chr(52), ord("\x08")), nzTpIcepk0o8('\060' + chr(11010 - 10899) + chr(1107 - 1057) + '\x30' + '\060', 8), nzTpIcepk0o8('\x30' + '\157' + chr(2227 - 2178) + chr(54), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b1100 + 0o46) + chr(48) + '\x35', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1001000 + 0o47) + chr(0b110011) + chr(52) + chr(2066 - 2018), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(51) + '\x36' + chr(1589 - 1534), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(51) + chr(0b110 + 0o54) + chr(54), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110011) + '\063' + chr(52), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b111001 + 0o66) + chr(0b110001) + chr(0b110111) + chr(50), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b101010 + 0o105) + '\x31' + chr(0b110001) + chr(49), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(12086 - 11975) + '\x31' + '\065' + '\x37', 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(1363 - 1315) + chr(111) + chr(1931 - 1878) + chr(48), 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x1c'), chr(100) + '\145' + chr(5298 - 5199) + chr(0b1101111) + '\144' + chr(0b1100101))(chr(0b101100 + 0o111) + chr(116) + '\146' + '\055' + chr(0b1001 + 0o57)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def kpGWxXpm4qlu(j0XrBY7V3THa, EwyYmTkzVk9d=nzTpIcepk0o8('\060' + chr(0b110011 + 0o74) + chr(0b110000), ord("\x08"))): try: while nzTpIcepk0o8(chr(1531 - 1483) + chr(0b1101111) + chr(49), 0o10): IJc2AP4aJDlF = RcokTIRALQHQ.futures.VBnaM0jy14aO(j0XrBY7V3THa, timeout=nzTpIcepk0o8('\x30' + chr(0b10111 + 0o130) + chr(55) + chr(52), 0b1000)) if ftfygxgFas5X(roI3spqORKae(IJc2AP4aJDlF, roI3spqORKae(ES5oEprVxulp(b'\\\x9bS2t\x1fU\xd9'), '\x64' + '\x65' + chr(0b100101 + 0o76) + chr(3365 - 3254) + chr(0b110100 + 0o60) + '\x65')(chr(0b1110101) + '\x74' + chr(0b1100110) + '\055' + '\070'))) == nzTpIcepk0o8(chr(1231 - 1183) + chr(0b1101111) + chr(0b110000), 8): break except Fc8q2OvvlH7d: if EwyYmTkzVk9d: roI3spqORKae(N5iKB8EqlT7p, roI3spqORKae(ES5oEprVxulp(b'B\x86N\x03d/H\xc8\x9c\xb6\xc6'), chr(7478 - 7378) + chr(101) + chr(0b1000100 + 0o37) + '\157' + '\144' + chr(0b1000010 + 0o43))(chr(6706 - 6589) + chr(116) + chr(102) + chr(0b10000 + 0o35) + '\070'))() else: v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b''), chr(0b1100100) + '\145' + '\143' + chr(0b101010 + 0o105) + chr(0b110 + 0o136) + '\145')(chr(117) + '\x74' + chr(8978 - 8876) + chr(0b10 + 0o53) + chr(0b11 + 0o65))) roI3spqORKae(aHUqKstZLeS6, roI3spqORKae(ES5oEprVxulp(b'm\x91_\x04d'), chr(0b1100100) + chr(6416 - 6315) + chr(99) + '\157' + '\144' + chr(0b1100101))('\165' + chr(116) + '\146' + '\x2d' + chr(56)))(roI3spqORKae(aHUqKstZLeS6, roI3spqORKae(ES5oEprVxulp(b'w\xacx$_5i\xee'), chr(100) + chr(0b1011 + 0o132) + chr(466 - 367) + '\157' + chr(0b1010010 + 0o22) + chr(101))('\x75' + chr(8817 - 8701) + chr(6724 - 6622) + chr(0b1101 + 0o40) + chr(56))))
dnanexus/dx-toolkit
src/python/dxpy/utils/__init__.py
response_iterator
def response_iterator(request_iterator, thread_pool, max_active_tasks=None, do_first_task_sequentially=True): """ :param request_iterator: An iterator producing inputs for consumption by the worker pool. :type request_iterator: iterator of callable, args, kwargs :param thread_pool: thread pool to submit the requests to :type thread_pool: concurrent.futures.thread.ThreadPoolExecutor :param max_active_tasks: The maximum number of tasks that may be either running or waiting for consumption of their result. If not given, defaults to the number of CPU cores on the machine. :type max_active_tasks: int :param do_first_task_sequentially: If True, executes (and returns the result of) the first request before submitting any other requests (the subsequent requests are submitted with *max_active_tasks* parallelism). :type do_first_task_sequentially: bool Rate-limited asynchronous multithreaded task runner. Consumes tasks from *request_iterator*. Yields their results in order, while allowing up to *max_active_tasks* to run simultaneously. Unlike concurrent.futures.Executor.map, prevents new tasks from starting while there are *max_active_tasks* or more unconsumed results. """ tasks_in_progress = collections.deque() if max_active_tasks is None: max_active_tasks = cpu_count() # The following two functions facilitate GC by not adding extra variables to the enclosing scope. def submit_task(task_iterator, executor, futures_queue): retval = next(task_iterator, None) if retval is None: return False task_callable, task_args, task_kwargs = retval task_future = executor.submit(task_callable, *task_args, **task_kwargs) futures_queue.append(task_future) return True def next_result(tasks_in_progress): future = tasks_in_progress.popleft() try: result = future.result(timeout=THREAD_TIMEOUT_MAX) except KeyboardInterrupt: print('') os._exit(os.EX_IOERR) return result if do_first_task_sequentially: task_callable, task_args, task_kwargs = next(request_iterator) yield task_callable(*task_args, **task_kwargs) for _i in range(max_active_tasks): retval = submit_task(request_iterator, thread_pool, tasks_in_progress) if not retval: break while len(tasks_in_progress) > 0: result = next_result(tasks_in_progress) submit_task(request_iterator, thread_pool, tasks_in_progress) yield result del result
python
def response_iterator(request_iterator, thread_pool, max_active_tasks=None, do_first_task_sequentially=True): """ :param request_iterator: An iterator producing inputs for consumption by the worker pool. :type request_iterator: iterator of callable, args, kwargs :param thread_pool: thread pool to submit the requests to :type thread_pool: concurrent.futures.thread.ThreadPoolExecutor :param max_active_tasks: The maximum number of tasks that may be either running or waiting for consumption of their result. If not given, defaults to the number of CPU cores on the machine. :type max_active_tasks: int :param do_first_task_sequentially: If True, executes (and returns the result of) the first request before submitting any other requests (the subsequent requests are submitted with *max_active_tasks* parallelism). :type do_first_task_sequentially: bool Rate-limited asynchronous multithreaded task runner. Consumes tasks from *request_iterator*. Yields their results in order, while allowing up to *max_active_tasks* to run simultaneously. Unlike concurrent.futures.Executor.map, prevents new tasks from starting while there are *max_active_tasks* or more unconsumed results. """ tasks_in_progress = collections.deque() if max_active_tasks is None: max_active_tasks = cpu_count() # The following two functions facilitate GC by not adding extra variables to the enclosing scope. def submit_task(task_iterator, executor, futures_queue): retval = next(task_iterator, None) if retval is None: return False task_callable, task_args, task_kwargs = retval task_future = executor.submit(task_callable, *task_args, **task_kwargs) futures_queue.append(task_future) return True def next_result(tasks_in_progress): future = tasks_in_progress.popleft() try: result = future.result(timeout=THREAD_TIMEOUT_MAX) except KeyboardInterrupt: print('') os._exit(os.EX_IOERR) return result if do_first_task_sequentially: task_callable, task_args, task_kwargs = next(request_iterator) yield task_callable(*task_args, **task_kwargs) for _i in range(max_active_tasks): retval = submit_task(request_iterator, thread_pool, tasks_in_progress) if not retval: break while len(tasks_in_progress) > 0: result = next_result(tasks_in_progress) submit_task(request_iterator, thread_pool, tasks_in_progress) yield result del result
[ "def", "response_iterator", "(", "request_iterator", ",", "thread_pool", ",", "max_active_tasks", "=", "None", ",", "do_first_task_sequentially", "=", "True", ")", ":", "tasks_in_progress", "=", "collections", ".", "deque", "(", ")", "if", "max_active_tasks", "is", "None", ":", "max_active_tasks", "=", "cpu_count", "(", ")", "# The following two functions facilitate GC by not adding extra variables to the enclosing scope.", "def", "submit_task", "(", "task_iterator", ",", "executor", ",", "futures_queue", ")", ":", "retval", "=", "next", "(", "task_iterator", ",", "None", ")", "if", "retval", "is", "None", ":", "return", "False", "task_callable", ",", "task_args", ",", "task_kwargs", "=", "retval", "task_future", "=", "executor", ".", "submit", "(", "task_callable", ",", "*", "task_args", ",", "*", "*", "task_kwargs", ")", "futures_queue", ".", "append", "(", "task_future", ")", "return", "True", "def", "next_result", "(", "tasks_in_progress", ")", ":", "future", "=", "tasks_in_progress", ".", "popleft", "(", ")", "try", ":", "result", "=", "future", ".", "result", "(", "timeout", "=", "THREAD_TIMEOUT_MAX", ")", "except", "KeyboardInterrupt", ":", "print", "(", "''", ")", "os", ".", "_exit", "(", "os", ".", "EX_IOERR", ")", "return", "result", "if", "do_first_task_sequentially", ":", "task_callable", ",", "task_args", ",", "task_kwargs", "=", "next", "(", "request_iterator", ")", "yield", "task_callable", "(", "*", "task_args", ",", "*", "*", "task_kwargs", ")", "for", "_i", "in", "range", "(", "max_active_tasks", ")", ":", "retval", "=", "submit_task", "(", "request_iterator", ",", "thread_pool", ",", "tasks_in_progress", ")", "if", "not", "retval", ":", "break", "while", "len", "(", "tasks_in_progress", ")", ">", "0", ":", "result", "=", "next_result", "(", "tasks_in_progress", ")", "submit_task", "(", "request_iterator", ",", "thread_pool", ",", "tasks_in_progress", ")", "yield", "result", "del", "result" ]
:param request_iterator: An iterator producing inputs for consumption by the worker pool. :type request_iterator: iterator of callable, args, kwargs :param thread_pool: thread pool to submit the requests to :type thread_pool: concurrent.futures.thread.ThreadPoolExecutor :param max_active_tasks: The maximum number of tasks that may be either running or waiting for consumption of their result. If not given, defaults to the number of CPU cores on the machine. :type max_active_tasks: int :param do_first_task_sequentially: If True, executes (and returns the result of) the first request before submitting any other requests (the subsequent requests are submitted with *max_active_tasks* parallelism). :type do_first_task_sequentially: bool Rate-limited asynchronous multithreaded task runner. Consumes tasks from *request_iterator*. Yields their results in order, while allowing up to *max_active_tasks* to run simultaneously. Unlike concurrent.futures.Executor.map, prevents new tasks from starting while there are *max_active_tasks* or more unconsumed results.
[ ":", "param", "request_iterator", ":", "An", "iterator", "producing", "inputs", "for", "consumption", "by", "the", "worker", "pool", ".", ":", "type", "request_iterator", ":", "iterator", "of", "callable", "args", "kwargs", ":", "param", "thread_pool", ":", "thread", "pool", "to", "submit", "the", "requests", "to", ":", "type", "thread_pool", ":", "concurrent", ".", "futures", ".", "thread", ".", "ThreadPoolExecutor", ":", "param", "max_active_tasks", ":", "The", "maximum", "number", "of", "tasks", "that", "may", "be", "either", "running", "or", "waiting", "for", "consumption", "of", "their", "result", ".", "If", "not", "given", "defaults", "to", "the", "number", "of", "CPU", "cores", "on", "the", "machine", ".", ":", "type", "max_active_tasks", ":", "int", ":", "param", "do_first_task_sequentially", ":", "If", "True", "executes", "(", "and", "returns", "the", "result", "of", ")", "the", "first", "request", "before", "submitting", "any", "other", "requests", "(", "the", "subsequent", "requests", "are", "submitted", "with", "*", "max_active_tasks", "*", "parallelism", ")", ".", ":", "type", "do_first_task_sequentially", ":", "bool" ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/utils/__init__.py#L88-L149
train
Returns an iterator that yields the results of the request and returns the result of the request.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg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aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b10101 + 0o33) + '\157' + '\065' + chr(0b100111 + 0o16), 0o10), nzTpIcepk0o8(chr(1121 - 1073) + '\157' + chr(49) + chr(1788 - 1740) + chr(50), ord("\x08")), nzTpIcepk0o8(chr(0b101010 + 0o6) + '\x6f' + chr(51) + chr(0b101001 + 0o15), 5794 - 5786), nzTpIcepk0o8(chr(0b110000) + chr(0b1010000 + 0o37) + chr(51) + '\x37' + '\x37', 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(49) + chr(0b110101) + '\060', 0b1000), nzTpIcepk0o8('\x30' + chr(380 - 269) + '\062' + chr(0b10 + 0o63), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x31' + '\x37' + '\x35', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b10100 + 0o133) + chr(0b110110 + 0o1) + '\x33', 0o10), nzTpIcepk0o8('\060' + '\x6f' + '\x31' + chr(0b0 + 0o60) + chr(2036 - 1983), ord("\x08")), nzTpIcepk0o8(chr(864 - 816) + chr(0b1101111) + '\067' + chr(0b11010 + 0o27), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(1151 - 1102) + chr(0b10001 + 0o44) + '\x35', 0o10), nzTpIcepk0o8(chr(0b100000 + 0o20) + chr(111) + chr(0b10011 + 0o37) + chr(2072 - 2019) + chr(0b110011), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b1000 + 0o53) + chr(1990 - 1940) + chr(53), 0b1000), nzTpIcepk0o8(chr(0b1110 + 0o42) + chr(9037 - 8926) + chr(148 - 98) + chr(0b10011 + 0o36), 0o10), nzTpIcepk0o8(chr(1099 - 1051) + '\157' + chr(0b1100 + 0o46) + chr(1254 - 1202) + '\x35', 0o10), nzTpIcepk0o8(chr(448 - 400) + chr(111) + chr(0b100010 + 0o21) + '\067' + chr(0b110110), 0b1000), nzTpIcepk0o8('\060' + '\157' + '\x31' + '\062' + chr(48), 0b1000), nzTpIcepk0o8(chr(0b10111 + 0o31) + chr(4396 - 4285) + chr(0b11000 + 0o32) + chr(2215 - 2164) + chr(0b1011 + 0o52), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(1885 - 1774) + chr(360 - 310) + chr(515 - 467) + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(364 - 316) + '\x6f' + chr(51) + '\064' + chr(48), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1000010 + 0o55) + chr(0b110011) + chr(0b10010 + 0o44) + chr(50), 0o10), nzTpIcepk0o8(chr(0b10011 + 0o35) + chr(111) + '\061' + chr(1290 - 1242), 14975 - 14967), nzTpIcepk0o8(chr(0b11110 + 0o22) + chr(0b111000 + 0o67) + chr(759 - 708) + chr(0b110011) + chr(0b100101 + 0o15), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\066' + '\064', 0o10), nzTpIcepk0o8('\060' + chr(111) + '\x31' + chr(52) + chr(48), ord("\x08")), nzTpIcepk0o8(chr(0b11111 + 0o21) + chr(111) + '\064' + '\065', 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110001) + chr(1016 - 963) + chr(0b110001), 40889 - 40881), nzTpIcepk0o8(chr(0b101110 + 0o2) + chr(0b111000 + 0o67) + '\061' + chr(0b110010) + chr(0b11100 + 0o27), 39979 - 39971), nzTpIcepk0o8(chr(1024 - 976) + chr(0b1010000 + 0o37) + '\061' + chr(0b100110 + 0o20) + chr(0b110111), 50141 - 50133), nzTpIcepk0o8(chr(48) + '\157' + chr(93 - 44) + chr(0b110001 + 0o0) + '\x34', ord("\x08")), nzTpIcepk0o8(chr(0b1101 + 0o43) + '\157' + chr(193 - 138) + chr(0b110001), 8), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(51) + '\x30' + chr(0b110011), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(848 - 797) + chr(49) + '\062', 0b1000), nzTpIcepk0o8(chr(1185 - 1137) + '\x6f' + chr(635 - 585) + '\x30' + '\x34', 0o10), nzTpIcepk0o8(chr(48) + chr(7507 - 7396) + chr(0b11010 + 0o30) + chr(51) + chr(2571 - 2516), 0b1000), nzTpIcepk0o8(chr(0b1110 + 0o42) + '\x6f' + chr(451 - 402) + chr(0b110010) + chr(0b100100 + 0o23), 0o10), nzTpIcepk0o8(chr(111 - 63) + chr(111) + chr(2343 - 2293) + chr(206 - 154) + chr(52), 9306 - 9298), nzTpIcepk0o8('\060' + chr(9086 - 8975) + chr(1958 - 1909) + chr(2235 - 2181) + '\x33', 24696 - 24688), nzTpIcepk0o8('\060' + '\x6f' + chr(1046 - 997) + '\x33' + '\x36', 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b1010 + 0o51) + '\064' + '\x31', 11247 - 11239)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + '\157' + chr(0b110101) + '\060', 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x03'), chr(100) + '\145' + chr(0b1100011) + chr(0b1101111) + chr(0b1000111 + 0o35) + chr(101))(chr(3066 - 2949) + chr(116) + chr(102) + chr(0b0 + 0o55) + chr(3033 - 2977)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def nMmMjZmHfCSd(_owNCyrZdAkU, XLY30lgOd9JY, kghFSEDipt5V=None, eFGc_ghxmbPX=nzTpIcepk0o8('\x30' + chr(111) + chr(49), 0b1000)): wc6BGVgPAa0Y = VmGquQq8pzNa.deque() if kghFSEDipt5V is None: kghFSEDipt5V = c38DpuTQm4Rv() def cnL_BXVPYriJ(s_CvKwsx_T4W, zRfyNecFWLeI, lct0YznOColV): U_pOHXGIyzke = ltB3XhPy2rYf(s_CvKwsx_T4W, None) if U_pOHXGIyzke is None: return nzTpIcepk0o8('\x30' + chr(111) + chr(0b110000), 0o10) (qBVFixLCbHwe, FrE_NmQz2FJg, duSJS485aaSy) = U_pOHXGIyzke aWSZSE2_5Rem = zRfyNecFWLeI.HbeYF4026bzq(qBVFixLCbHwe, *FrE_NmQz2FJg, **duSJS485aaSy) roI3spqORKae(lct0YznOColV, roI3spqORKae(ES5oEprVxulp(b'e\x16M\xcb\x10r:T/V8\x9e'), chr(7735 - 7635) + chr(0b1100101) + chr(0b1010 + 0o131) + chr(0b0 + 0o157) + chr(100) + '\145')(chr(0b1 + 0o164) + '\x74' + chr(0b1000010 + 0o44) + chr(1062 - 1017) + chr(1607 - 1551)))(aWSZSE2_5Rem) return nzTpIcepk0o8(chr(48) + '\x6f' + chr(549 - 500), 8) def yAtryfAKHygb(wc6BGVgPAa0Y): pLWLL1Holwwm = wc6BGVgPAa0Y.popleft() try: POx95m7SPOVy = pLWLL1Holwwm.POx95m7SPOVy(timeout=zIVBMtjs5Asb) except Fc8q2OvvlH7d: v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b''), chr(0b11110 + 0o106) + chr(9640 - 9539) + '\x63' + '\x6f' + chr(100) + '\145')(chr(0b10111 + 0o136) + chr(116) + '\x66' + chr(0b101101) + chr(2027 - 1971))) roI3spqORKae(aHUqKstZLeS6, roI3spqORKae(ES5oEprVxulp(b"r'f\x96\x1c"), '\x64' + chr(724 - 623) + chr(0b10110 + 0o115) + chr(0b100111 + 0o110) + chr(0b1100100) + chr(1078 - 977))(chr(1962 - 1845) + '\x74' + chr(0b1100110) + chr(0b11000 + 0o25) + '\x38'))(roI3spqORKae(aHUqKstZLeS6, roI3spqORKae(ES5oEprVxulp(b"h\x1aA\xb6'P/i"), chr(6435 - 6335) + '\145' + '\143' + '\x6f' + chr(7940 - 7840) + '\x65')(chr(11071 - 10954) + chr(116) + chr(7534 - 7432) + chr(45) + chr(376 - 320)))) return POx95m7SPOVy if eFGc_ghxmbPX: (qBVFixLCbHwe, FrE_NmQz2FJg, duSJS485aaSy) = ltB3XhPy2rYf(_owNCyrZdAkU) yield qBVFixLCbHwe(*FrE_NmQz2FJg, **duSJS485aaSy) for olsbu0l6pJGv in bbT2xIe5pzk7(kghFSEDipt5V): U_pOHXGIyzke = cnL_BXVPYriJ(_owNCyrZdAkU, XLY30lgOd9JY, wc6BGVgPAa0Y) if not U_pOHXGIyzke: break while ftfygxgFas5X(wc6BGVgPAa0Y) > nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(48), 8): POx95m7SPOVy = yAtryfAKHygb(wc6BGVgPAa0Y) cnL_BXVPYriJ(_owNCyrZdAkU, XLY30lgOd9JY, wc6BGVgPAa0Y) yield POx95m7SPOVy del POx95m7SPOVy
dnanexus/dx-toolkit
src/python/dxpy/utils/__init__.py
normalize_time_input
def normalize_time_input(t, future=False, default_unit='ms'): """ :param default_unit: units of the input time *t*; must be one of "s" or "ms". This param is only respected if *t* looks like an int (e.g. "12345", 12345). :type default_unit: string Converts inputs such as: "2012-05-01" "-5d" 1352863174 "1352863174" to milliseconds since epoch. See http://labix.org/python-dateutil and :meth:`normalize_timedelta`. """ error_msg = 'Error: Expected an int timestamp, a date format (e.g. YYYY-MM-DD), or an int with a single-letter suffix (s=seconds, m=minutes, h=hours, d=days, w=weeks, M=months, y=years; e.g. "-10d" indicates 10 days ago); but got {t}' if isinstance(t, basestring) and t.isdigit(): t = int(t) if isinstance(t, basestring): try: t = normalize_timedelta(t) except ValueError: try: t = int(time.mktime(dateutil.parser.parse(t).timetuple())*1000) assert t > 0 except (ValueError, OverflowError, AssertionError): raise ValueError(error_msg.format(t=t)) elif isinstance(t, numbers.Integral): units_multipliers = {'ms': 1, 's': 1000} if default_unit not in units_multipliers: raise ValueError("Expected default_unit to be one of 's' or 'ms'") t = t * units_multipliers[default_unit] else: raise ValueError(error_msg.format(t=t)) now = int(time.time()*1000) if t < 0 or (future and t < now): t += now return t
python
def normalize_time_input(t, future=False, default_unit='ms'): """ :param default_unit: units of the input time *t*; must be one of "s" or "ms". This param is only respected if *t* looks like an int (e.g. "12345", 12345). :type default_unit: string Converts inputs such as: "2012-05-01" "-5d" 1352863174 "1352863174" to milliseconds since epoch. See http://labix.org/python-dateutil and :meth:`normalize_timedelta`. """ error_msg = 'Error: Expected an int timestamp, a date format (e.g. YYYY-MM-DD), or an int with a single-letter suffix (s=seconds, m=minutes, h=hours, d=days, w=weeks, M=months, y=years; e.g. "-10d" indicates 10 days ago); but got {t}' if isinstance(t, basestring) and t.isdigit(): t = int(t) if isinstance(t, basestring): try: t = normalize_timedelta(t) except ValueError: try: t = int(time.mktime(dateutil.parser.parse(t).timetuple())*1000) assert t > 0 except (ValueError, OverflowError, AssertionError): raise ValueError(error_msg.format(t=t)) elif isinstance(t, numbers.Integral): units_multipliers = {'ms': 1, 's': 1000} if default_unit not in units_multipliers: raise ValueError("Expected default_unit to be one of 's' or 'ms'") t = t * units_multipliers[default_unit] else: raise ValueError(error_msg.format(t=t)) now = int(time.time()*1000) if t < 0 or (future and t < now): t += now return t
[ "def", "normalize_time_input", "(", "t", ",", "future", "=", "False", ",", "default_unit", "=", "'ms'", ")", ":", "error_msg", "=", "'Error: Expected an int timestamp, a date format (e.g. YYYY-MM-DD), or an int with a single-letter suffix (s=seconds, m=minutes, h=hours, d=days, w=weeks, M=months, y=years; e.g. \"-10d\" indicates 10 days ago); but got {t}'", "if", "isinstance", "(", "t", ",", "basestring", ")", "and", "t", ".", "isdigit", "(", ")", ":", "t", "=", "int", "(", "t", ")", "if", "isinstance", "(", "t", ",", "basestring", ")", ":", "try", ":", "t", "=", "normalize_timedelta", "(", "t", ")", "except", "ValueError", ":", "try", ":", "t", "=", "int", "(", "time", ".", "mktime", "(", "dateutil", ".", "parser", ".", "parse", "(", "t", ")", ".", "timetuple", "(", ")", ")", "*", "1000", ")", "assert", "t", ">", "0", "except", "(", "ValueError", ",", "OverflowError", ",", "AssertionError", ")", ":", "raise", "ValueError", "(", "error_msg", ".", "format", "(", "t", "=", "t", ")", ")", "elif", "isinstance", "(", "t", ",", "numbers", ".", "Integral", ")", ":", "units_multipliers", "=", "{", "'ms'", ":", "1", ",", "'s'", ":", "1000", "}", "if", "default_unit", "not", "in", "units_multipliers", ":", "raise", "ValueError", "(", "\"Expected default_unit to be one of 's' or 'ms'\"", ")", "t", "=", "t", "*", "units_multipliers", "[", "default_unit", "]", "else", ":", "raise", "ValueError", "(", "error_msg", ".", "format", "(", "t", "=", "t", ")", ")", "now", "=", "int", "(", "time", ".", "time", "(", ")", "*", "1000", ")", "if", "t", "<", "0", "or", "(", "future", "and", "t", "<", "now", ")", ":", "t", "+=", "now", "return", "t" ]
:param default_unit: units of the input time *t*; must be one of "s" or "ms". This param is only respected if *t* looks like an int (e.g. "12345", 12345). :type default_unit: string Converts inputs such as: "2012-05-01" "-5d" 1352863174 "1352863174" to milliseconds since epoch. See http://labix.org/python-dateutil and :meth:`normalize_timedelta`.
[ ":", "param", "default_unit", ":", "units", "of", "the", "input", "time", "*", "t", "*", ";", "must", "be", "one", "of", "s", "or", "ms", ".", "This", "param", "is", "only", "respected", "if", "*", "t", "*", "looks", "like", "an", "int", "(", "e", ".", "g", ".", "12345", "12345", ")", ".", ":", "type", "default_unit", ":", "string" ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/utils/__init__.py#L159-L196
train
Normalizes a time input to a number of milliseconds since epoch.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7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V_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(48) + '\157' + '\x32' + chr(0b110101) + chr(1139 - 1090), 3931 - 3923), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110001) + chr(48) + chr(0b101110 + 0o4), 14903 - 14895), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(49) + chr(0b10101 + 0o35) + chr(2899 - 2844), 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(51) + '\x36' + chr(51), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(52) + '\060', ord("\x08")), nzTpIcepk0o8(chr(1571 - 1523) + chr(6425 - 6314) + chr(0b110010) + chr(0b110101) + '\062', 22333 - 22325), nzTpIcepk0o8('\x30' + '\x6f' + chr(51) + '\067', ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + '\x33' + chr(1559 - 1509) + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(0b1011 + 0o45) + chr(0b1101111) + '\x33' + '\x36' + chr(55), 0b1000), nzTpIcepk0o8('\x30' + chr(0b110100 + 0o73) + '\065', ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + '\x32' + chr(50), 50832 - 50824), nzTpIcepk0o8(chr(1208 - 1160) + '\157' + chr(0b101011 + 0o7) + chr(0b110000) + chr(0b110011), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + '\x33' + chr(54), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1001010 + 0o45) + chr(0b110001) + chr(52) + '\x31', 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110011) + chr(0b110010 + 0o5) + chr(0b110111), ord("\x08")), nzTpIcepk0o8('\060' + chr(4753 - 4642) + chr(50) + '\064' + '\065', 21773 - 21765), nzTpIcepk0o8(chr(48) + '\157' + chr(51) + '\x34' + '\x36', 5251 - 5243), nzTpIcepk0o8(chr(682 - 634) + chr(10513 - 10402) + chr(1734 - 1683) + chr(0b110001) + '\060', 0o10), nzTpIcepk0o8(chr(1561 - 1513) + '\x6f' + '\x33' + chr(0b110001) + '\x33', 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b11110 + 0o23) + '\063' + chr(2568 - 2515), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(2378 - 2329) + chr(0b1011 + 0o47) + chr(0b1010 + 0o50), 22704 - 22696), nzTpIcepk0o8(chr(2031 - 1983) + chr(4670 - 4559) + chr(0b110100) + chr(0b100011 + 0o23), 0b1000), nzTpIcepk0o8(chr(0b100111 + 0o11) + chr(111) + chr(51) + '\x32' + chr(1332 - 1281), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + '\061' + '\x34' + chr(50), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\066' + '\x31', 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b11 + 0o57) + chr(0b110101), 0o10), nzTpIcepk0o8('\060' + chr(0b1010110 + 0o31) + chr(0b100111 + 0o13) + '\x30', 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(1015 - 966) + chr(51) + '\062', ord("\x08")), nzTpIcepk0o8(chr(1442 - 1394) + chr(0b1001 + 0o146) + chr(49) + '\063' + chr(605 - 552), 8), nzTpIcepk0o8(chr(0b110000) + chr(2577 - 2466) + chr(50) + chr(0b101 + 0o61) + '\x30', ord("\x08")), nzTpIcepk0o8(chr(1987 - 1939) + chr(111) + chr(1603 - 1554) + chr(52) + chr(54), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b100100 + 0o15) + chr(0b11101 + 0o32) + '\x35', ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110010) + '\066' + '\063', ord("\x08")), nzTpIcepk0o8(chr(504 - 456) + chr(0b1101111) + '\x33' + chr(184 - 131) + chr(0b110101), 0o10), nzTpIcepk0o8(chr(347 - 299) + '\157' + '\062' + chr(0b110100) + '\x33', 7488 - 7480), nzTpIcepk0o8('\060' + '\157' + chr(0b110011) + chr(0b110010) + chr(1732 - 1681), 8), nzTpIcepk0o8(chr(0b110000) + chr(0b110100 + 0o73) + chr(1340 - 1289) + chr(0b101010 + 0o6) + '\x35', 0o10), nzTpIcepk0o8(chr(412 - 364) + chr(0b101100 + 0o103) + chr(0b1001 + 0o51) + chr(0b110011) + chr(52), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110011 + 0o0) + chr(50) + '\x32', 0b1000), nzTpIcepk0o8('\060' + chr(0b111010 + 0o65) + '\063' + '\x30' + chr(48), 3037 - 3029)][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + chr(0b10001 + 0o136) + chr(0b110101) + '\060', 11165 - 11157)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x87'), chr(100) + chr(101) + chr(99) + chr(111) + chr(0b111100 + 0o50) + chr(0b1101 + 0o130))('\x75' + chr(0b1110100) + chr(4826 - 4724) + '\055' + chr(545 - 489)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def Li4FyMgNnAwt(h3Vc_4wxEbgd, pLWLL1Holwwm=nzTpIcepk0o8(chr(48) + chr(6293 - 6182) + chr(48), 0o10), b7mMpJ5DFBCl=roI3spqORKae(ES5oEprVxulp(b'\xc41'), '\x64' + chr(101) + chr(0b10 + 0o141) + chr(111) + chr(0b1100100) + '\x65')(chr(6671 - 6554) + chr(4804 - 4688) + chr(0b1100110) + chr(0b101101) + chr(56))): rjX18OviSoKK = roI3spqORKae(ES5oEprVxulp(b'\xec0%\x9cR\x90?\x94\x8fuw\xe0j\x04\x9b\x85\x87\xa6\xeb4<R\xf3\x16Xxu))\xd1\x0b\r\x9f\xcd\xc2\xf3\xa1\xfd\xa6\xa5\x89$8\x81M\xcbk\xf1\xdf`<\xe40A\xa6\xfc\xbf\x91\xe6\x10\x1f\x0b\x97&\x18905/\x90\x07\x13\x93\x84\xcd\xa7\xe5\xeb\xbb\xb4\xc1b6\xd3S\xc3q\xb6\x9b`?\xef{\x15\x8b\xc0\x94\xe8\xb8(4@\xba\x1a\x11=cg.\xd5\x05\x12\xdd\x89\xd0\xff\xe5\xf1\xef\xad\xc0,"\x87E\xd93\xf1\x9f8z\xeck\x13\x8c\x89\xc6\xac\xf693_\xa0N\x11b--8\xd5\r\x0e\x9f\xcd\xee\xee\xa8\xf3\xbc\xb4\xc11{\xd3Y\x97f\xb4\x96wa\xb8>\x04\xd1\xc2\xc8\xe8\xe9pc\x16\xb7@\x11|~>4\xd3\x07\t\xd6\x9e\x83\xe2\xf5\xbc\xb6\xa1\xd01w\x92G\xc56\xea\xd7gg\xf7>\x06\x90\xd1\xc6\xb3\xbf '), chr(0b1100100) + chr(0b1100101) + chr(1204 - 1105) + '\157' + chr(0b1100100) + chr(0b1010111 + 0o16))(chr(117) + '\x74' + chr(0b11010 + 0o114) + '\x2d' + chr(0b111000)) if suIjIS24Zkqw(h3Vc_4wxEbgd, JaQstSroDWOP) and roI3spqORKae(h3Vc_4wxEbgd, roI3spqORKae(ES5oEprVxulp(b'\xc013\x9aG\xc3k'), '\144' + '\x65' + chr(0b1100011) + chr(0b1101111) + '\144' + chr(0b1001000 + 0o35))(chr(0b1110100 + 0o1) + '\164' + chr(0b1011001 + 0o15) + chr(443 - 398) + '\070'))(): h3Vc_4wxEbgd = nzTpIcepk0o8(h3Vc_4wxEbgd) if suIjIS24Zkqw(h3Vc_4wxEbgd, JaQstSroDWOP): try: h3Vc_4wxEbgd = LiXbgeKZtdT6(h3Vc_4wxEbgd) except WbNHlDKpyPtQ: try: h3Vc_4wxEbgd = nzTpIcepk0o8(oprIvDIRQyCb.mktime(ZP2ALqea8bBT.parser.parse(h3Vc_4wxEbgd).timetuple()) * nzTpIcepk0o8('\x30' + '\x6f' + chr(0b100000 + 0o21) + '\x37' + chr(0b110101) + '\060', 0o10)) assert h3Vc_4wxEbgd > nzTpIcepk0o8(chr(48) + '\x6f' + '\060', 8) except (WbNHlDKpyPtQ, CJFGX4uBWMak, B3LV8Eo811Ma): raise WbNHlDKpyPtQ(roI3spqORKae(rjX18OviSoKK, roI3spqORKae(ES5oEprVxulp(b'\xd8qd\xb8g\x99y\xbe\xa6ZQ\xc9'), '\144' + chr(0b1100101) + chr(99) + chr(0b1101111) + '\144' + chr(101))('\x75' + '\164' + chr(0b1100110) + chr(0b101101) + chr(56)))(t=h3Vc_4wxEbgd)) elif suIjIS24Zkqw(h3Vc_4wxEbgd, roI3spqORKae(vlxREQkYI3ar, roI3spqORKae(ES5oEprVxulp(b'\xe0,#\x96G\xd8~\xbd'), chr(331 - 231) + chr(2865 - 2764) + chr(0b1100011) + '\157' + chr(0b1100100) + chr(0b1100101))(chr(0b1110101) + '\x74' + chr(0b1100110) + chr(0b101101) + '\070'))): Hx8AaWkTKQTd = {roI3spqORKae(ES5oEprVxulp(b'\xc41'), '\144' + chr(0b11001 + 0o114) + '\143' + '\x6f' + chr(2866 - 2766) + chr(0b1100101))('\165' + chr(0b1011100 + 0o30) + '\146' + chr(0b100110 + 0o7) + '\070'): nzTpIcepk0o8('\060' + chr(6735 - 6624) + chr(0b110001 + 0o0), 0b1000), roI3spqORKae(ES5oEprVxulp(b'\xda'), chr(2596 - 2496) + '\x65' + chr(2249 - 2150) + chr(0b1100000 + 0o17) + chr(0b1100100) + chr(6510 - 6409))('\x75' + chr(0b1110100) + chr(102) + '\x2d' + chr(56)): nzTpIcepk0o8('\x30' + '\157' + '\061' + '\067' + chr(245 - 192) + chr(783 - 735), 8)} if b7mMpJ5DFBCl not in Hx8AaWkTKQTd: raise WbNHlDKpyPtQ(roI3spqORKae(ES5oEprVxulp(b"\xec:'\x96C\xdez\xb5\xd7aw\xe5\x7f\x14\x93\xd1\xb9\xbd\xa54&\x06\xa7\r\x11wuz2\xde\x03]\xdc\x8b\x83\xf4\xb6\xbb\xf2\xaf\xdbbp\x9eS\x8d"), '\x64' + '\145' + '\143' + '\x6f' + '\144' + chr(0b1100101))(chr(0b1110101) + chr(12855 - 12739) + chr(0b1100110) + chr(0b111 + 0o46) + '\070')) h3Vc_4wxEbgd = h3Vc_4wxEbgd * Hx8AaWkTKQTd[b7mMpJ5DFBCl] else: raise WbNHlDKpyPtQ(roI3spqORKae(rjX18OviSoKK, roI3spqORKae(ES5oEprVxulp(b'\xd8qd\xb8g\x99y\xbe\xa6ZQ\xc9'), chr(7895 - 7795) + '\145' + chr(0b1100011) + '\157' + chr(100) + '\x65')(chr(0b1110011 + 0o2) + chr(116) + chr(5282 - 5180) + chr(0b101001 + 0o4) + '\x38'))(t=h3Vc_4wxEbgd)) HofpCdf61ts4 = nzTpIcepk0o8(oprIvDIRQyCb.oprIvDIRQyCb() * nzTpIcepk0o8(chr(0b10011 + 0o35) + '\x6f' + chr(49) + chr(1576 - 1521) + chr(53) + '\x30', 8)) if h3Vc_4wxEbgd < nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b1 + 0o57), 8) or (pLWLL1Holwwm and h3Vc_4wxEbgd < HofpCdf61ts4): h3Vc_4wxEbgd += HofpCdf61ts4 return h3Vc_4wxEbgd
dnanexus/dx-toolkit
src/python/dxpy/utils/__init__.py
normalize_timedelta
def normalize_timedelta(timedelta): """ Given a string like "1w" or "-5d", convert it to an integer in milliseconds. Integers without a suffix are interpreted as seconds. Note: not related to the datetime timedelta class. """ try: return int(timedelta) * 1000 except ValueError as e: t, suffix = timedelta[:-1], timedelta[-1:] suffix_multipliers = {'s': 1000, 'm': 1000*60, 'h': 1000*60*60, 'd': 1000*60*60*24, 'w': 1000*60*60*24*7, 'M': 1000*60*60*24*30, 'y': 1000*60*60*24*365} if suffix not in suffix_multipliers: raise ValueError() return int(t) * suffix_multipliers[suffix]
python
def normalize_timedelta(timedelta): """ Given a string like "1w" or "-5d", convert it to an integer in milliseconds. Integers without a suffix are interpreted as seconds. Note: not related to the datetime timedelta class. """ try: return int(timedelta) * 1000 except ValueError as e: t, suffix = timedelta[:-1], timedelta[-1:] suffix_multipliers = {'s': 1000, 'm': 1000*60, 'h': 1000*60*60, 'd': 1000*60*60*24, 'w': 1000*60*60*24*7, 'M': 1000*60*60*24*30, 'y': 1000*60*60*24*365} if suffix not in suffix_multipliers: raise ValueError() return int(t) * suffix_multipliers[suffix]
[ "def", "normalize_timedelta", "(", "timedelta", ")", ":", "try", ":", "return", "int", "(", "timedelta", ")", "*", "1000", "except", "ValueError", "as", "e", ":", "t", ",", "suffix", "=", "timedelta", "[", ":", "-", "1", "]", ",", "timedelta", "[", "-", "1", ":", "]", "suffix_multipliers", "=", "{", "'s'", ":", "1000", ",", "'m'", ":", "1000", "*", "60", ",", "'h'", ":", "1000", "*", "60", "*", "60", ",", "'d'", ":", "1000", "*", "60", "*", "60", "*", "24", ",", "'w'", ":", "1000", "*", "60", "*", "60", "*", "24", "*", "7", ",", "'M'", ":", "1000", "*", "60", "*", "60", "*", "24", "*", "30", ",", "'y'", ":", "1000", "*", "60", "*", "60", "*", "24", "*", "365", "}", "if", "suffix", "not", "in", "suffix_multipliers", ":", "raise", "ValueError", "(", ")", "return", "int", "(", "t", ")", "*", "suffix_multipliers", "[", "suffix", "]" ]
Given a string like "1w" or "-5d", convert it to an integer in milliseconds. Integers without a suffix are interpreted as seconds. Note: not related to the datetime timedelta class.
[ "Given", "a", "string", "like", "1w", "or", "-", "5d", "convert", "it", "to", "an", "integer", "in", "milliseconds", ".", "Integers", "without", "a", "suffix", "are", "interpreted", "as", "seconds", ".", "Note", ":", "not", "related", "to", "the", "datetime", "timedelta", "class", "." ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/utils/__init__.py#L198-L212
train
Normalizes a datetime timedelta string to an integer in milliseconds.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,J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Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(48) + chr(111) + '\063' + chr(818 - 764) + '\066', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x33' + '\063' + chr(432 - 377), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b11111 + 0o120) + chr(1093 - 1042) + chr(0b110001) + chr(0b110100), 0o10), nzTpIcepk0o8(chr(0b10100 + 0o34) + '\157' + chr(49) + chr(0b110 + 0o61), 0b1000), nzTpIcepk0o8(chr(2080 - 2032) + '\157' + '\062' + chr(0b110010), 16894 - 16886), nzTpIcepk0o8(chr(0b1100 + 0o44) + '\157' + chr(49) + chr(0b110011) + chr(48), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(1586 - 1536) + chr(2028 - 1978) + chr(772 - 719), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(848 - 798) + '\x30' + '\061', 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(1656 - 1607) + '\060' + chr(121 - 70), 0o10), nzTpIcepk0o8('\060' + '\157' + chr(522 - 473) + chr(0b110111), 8), nzTpIcepk0o8(chr(0b101100 + 0o4) + chr(0b100011 + 0o114) + chr(0b110010) + chr(52) + '\x36', ord("\x08")), nzTpIcepk0o8(chr(762 - 714) + '\157' + chr(0b110101) + chr(0b110110), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + '\063' + chr(0b110000) + '\060', 61118 - 61110), nzTpIcepk0o8('\x30' + chr(0b11011 + 0o124) + chr(0b101011 + 0o6) + chr(0b110010) + chr(0b10011 + 0o41), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b111100 + 0o63) + chr(0b10001 + 0o40) + '\064' + chr(0b110000), 11546 - 11538), nzTpIcepk0o8('\060' + '\157' + chr(1831 - 1782) + chr(81 - 31) + chr(0b110100), 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1100111 + 0o10) + '\062' + '\x37' + '\060', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b1101 + 0o43), 0b1000), nzTpIcepk0o8(chr(1407 - 1359) + '\157' + chr(0b110001) + chr(53) + chr(52), 1898 - 1890), nzTpIcepk0o8('\x30' + '\157' + chr(0b1000 + 0o52) + chr(2116 - 2068) + chr(0b100000 + 0o24), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110010) + '\062' + chr(1185 - 1130), 0b1000), nzTpIcepk0o8('\060' + chr(3657 - 3546) + chr(0b110001) + chr(1953 - 1905) + '\x32', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(5377 - 5266) + '\x32' + '\x33' + '\x36', 0o10), nzTpIcepk0o8(chr(1711 - 1663) + chr(0b1101111) + '\x33' + chr(0b11110 + 0o30) + chr(0b101011 + 0o13), 8), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\062' + '\065' + chr(0b110100), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(3985 - 3874) + '\x31' + chr(2791 - 2736) + '\064', 0b1000), nzTpIcepk0o8('\x30' + chr(10270 - 10159) + chr(0b10101 + 0o34) + '\062' + '\060', 0o10), nzTpIcepk0o8(chr(205 - 157) + chr(0b1101101 + 0o2) + chr(1416 - 1367) + chr(50) + '\067', 26865 - 26857), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(1812 - 1762) + '\067' + chr(53), 8380 - 8372), nzTpIcepk0o8('\x30' + chr(0b111101 + 0o62) + '\062' + chr(0b110110) + chr(0b110000), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(0b1111 + 0o44) + '\x37', ord("\x08")), nzTpIcepk0o8(chr(929 - 881) + chr(7612 - 7501) + chr(1188 - 1139) + chr(0b1110 + 0o51) + chr(0b110001 + 0o1), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(51) + chr(50) + '\060', 0o10), nzTpIcepk0o8(chr(48) + chr(0b110101 + 0o72) + '\x32' + chr(888 - 839) + chr(1871 - 1823), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(12233 - 12122) + '\x33' + '\061' + chr(0b101001 + 0o16), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1001010 + 0o45) + chr(51) + '\x30', 0b1000), nzTpIcepk0o8(chr(0b1101 + 0o43) + chr(0b1011010 + 0o25) + chr(0b110001) + chr(0b110111) + chr(55), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b110 + 0o151) + chr(0b110010) + '\060' + '\065', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b110100 + 0o73) + chr(49) + '\062' + chr(1480 - 1428), 8), nzTpIcepk0o8(chr(0b101000 + 0o10) + '\157' + '\062' + '\061' + chr(2356 - 2305), 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(354 - 306) + chr(0b1111 + 0o140) + chr(1286 - 1233) + chr(1739 - 1691), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xd8'), chr(0b100101 + 0o77) + chr(0b1100101) + chr(99) + chr(0b1101111) + '\x64' + '\x65')(chr(0b1110101) + '\x74' + chr(0b111000 + 0o56) + chr(0b11101 + 0o20) + chr(56)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def LiXbgeKZtdT6(sO4N0GgrvxVj): try: return nzTpIcepk0o8(sO4N0GgrvxVj) * nzTpIcepk0o8('\x30' + chr(4656 - 4545) + '\061' + chr(0b110111) + '\065' + chr(0b100111 + 0o11), 15800 - 15792) except WbNHlDKpyPtQ as wgf0sgcu_xPL: (h3Vc_4wxEbgd, biRCFepsLie5) = (sO4N0GgrvxVj[:-nzTpIcepk0o8(chr(0b1110 + 0o42) + '\157' + '\061', 0o10)], sO4N0GgrvxVj[-nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b1001 + 0o50), 8):]) jb8yPt7QFqiS = {roI3spqORKae(ES5oEprVxulp(b'\x85'), chr(0b1100100) + chr(101) + chr(8450 - 8351) + chr(111) + '\x64' + chr(101))(chr(117) + chr(0b1110100) + '\146' + chr(0b1110 + 0o37) + '\x38'): nzTpIcepk0o8(chr(0b110000) + '\157' + chr(1060 - 1011) + '\067' + chr(0b11110 + 0o27) + chr(775 - 727), 8), roI3spqORKae(ES5oEprVxulp(b'\x9b'), chr(0b11110 + 0o106) + '\145' + '\143' + chr(111) + '\144' + '\145')('\x75' + '\x74' + chr(1685 - 1583) + chr(0b101101) + '\070'): nzTpIcepk0o8(chr(48) + chr(0b1000101 + 0o52) + chr(0b101100 + 0o5) + '\067' + '\065' + chr(48), 8) * nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(55) + '\x34', 0o10), roI3spqORKae(ES5oEprVxulp(b'\x9e'), '\x64' + '\x65' + '\x63' + '\157' + chr(100) + chr(0b1100101))(chr(0b1110101) + chr(0b100011 + 0o121) + chr(0b1100110) + '\055' + chr(0b10 + 0o66)): nzTpIcepk0o8(chr(48) + chr(6476 - 6365) + chr(49) + chr(55) + chr(53) + chr(0b11010 + 0o26), 8) * nzTpIcepk0o8(chr(0b1100 + 0o44) + chr(0b1101111) + chr(0b110111) + chr(1334 - 1282), 8) * nzTpIcepk0o8(chr(0b100010 + 0o16) + chr(111) + '\067' + chr(0b11011 + 0o31), 8), roI3spqORKae(ES5oEprVxulp(b'\x92'), '\x64' + '\x65' + chr(99) + chr(0b1101111) + chr(100) + chr(101))(chr(117) + chr(4856 - 4740) + chr(0b1100110) + chr(734 - 689) + chr(56)): nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110001) + '\067' + '\x35' + chr(0b110000), 8) * nzTpIcepk0o8(chr(0b101111 + 0o1) + chr(10365 - 10254) + chr(0b110001 + 0o6) + chr(0b101011 + 0o11), 8) * nzTpIcepk0o8('\060' + chr(707 - 596) + chr(55) + chr(0b110100), 8) * nzTpIcepk0o8(chr(295 - 247) + '\x6f' + chr(746 - 695) + chr(1113 - 1065), 8), roI3spqORKae(ES5oEprVxulp(b'\x81'), chr(0b1001010 + 0o32) + chr(101) + '\x63' + chr(0b1010100 + 0o33) + '\144' + '\x65')(chr(11757 - 11640) + chr(116) + chr(9366 - 9264) + chr(0b101101) + chr(0b111000)): nzTpIcepk0o8(chr(48) + chr(111) + chr(0b101010 + 0o7) + chr(0b110111) + chr(0b11100 + 0o31) + '\060', 8) * nzTpIcepk0o8('\060' + chr(10961 - 10850) + '\x37' + chr(0b110100), 8) * nzTpIcepk0o8(chr(0b10111 + 0o31) + chr(9047 - 8936) + chr(0b110000 + 0o7) + '\064', 8) * nzTpIcepk0o8(chr(0b110000) + chr(0b111101 + 0o62) + chr(927 - 876) + chr(2025 - 1977), 8) * nzTpIcepk0o8('\x30' + '\157' + '\067', 0o10), roI3spqORKae(ES5oEprVxulp(b'\xbb'), chr(5014 - 4914) + '\x65' + chr(0b100000 + 0o103) + chr(111) + '\x64' + chr(0b1010100 + 0o21))(chr(13555 - 13438) + chr(0b11101 + 0o127) + '\x66' + '\x2d' + chr(0b1100 + 0o54)): nzTpIcepk0o8(chr(0b1111 + 0o41) + '\157' + '\061' + '\x37' + '\065' + chr(2025 - 1977), 8) * nzTpIcepk0o8(chr(2192 - 2144) + '\157' + chr(0b1000 + 0o57) + chr(476 - 424), 8) * nzTpIcepk0o8(chr(778 - 730) + chr(1224 - 1113) + '\067' + chr(0b0 + 0o64), 8) * nzTpIcepk0o8(chr(48) + chr(0b1100101 + 0o12) + chr(0b110011) + chr(0b1100 + 0o44), 8) * nzTpIcepk0o8(chr(693 - 645) + '\157' + chr(51) + chr(0b110110), 0o10), roI3spqORKae(ES5oEprVxulp(b'\x8f'), chr(0b10 + 0o142) + chr(0b1100101) + chr(7699 - 7600) + '\157' + chr(5962 - 5862) + chr(3277 - 3176))(chr(0b1100011 + 0o22) + '\164' + '\146' + chr(0b101101) + '\070'): nzTpIcepk0o8(chr(0b1 + 0o57) + chr(111) + '\x31' + chr(0b110111) + chr(0b110101) + chr(48), 8) * nzTpIcepk0o8(chr(48) + '\157' + chr(0b110111) + chr(1135 - 1083), 8) * nzTpIcepk0o8(chr(48) + '\x6f' + '\x37' + '\064', 8) * nzTpIcepk0o8('\060' + chr(6681 - 6570) + chr(0b1111 + 0o44) + chr(0b1000 + 0o50), 8) * nzTpIcepk0o8('\x30' + chr(9049 - 8938) + chr(53) + chr(53) + chr(0b100 + 0o61), 0b1000)} if biRCFepsLie5 not in jb8yPt7QFqiS: raise WbNHlDKpyPtQ() return nzTpIcepk0o8(h3Vc_4wxEbgd) * jb8yPt7QFqiS[biRCFepsLie5]
dnanexus/dx-toolkit
src/python/dxpy/utils/__init__.py
_dict_raise_on_duplicates
def _dict_raise_on_duplicates(ordered_pairs): """ Reject duplicate keys. """ d = {} for k, v in ordered_pairs: if k in d: raise ValueError("duplicate key: %r" % (k,)) else: d[k] = v return d
python
def _dict_raise_on_duplicates(ordered_pairs): """ Reject duplicate keys. """ d = {} for k, v in ordered_pairs: if k in d: raise ValueError("duplicate key: %r" % (k,)) else: d[k] = v return d
[ "def", "_dict_raise_on_duplicates", "(", "ordered_pairs", ")", ":", "d", "=", "{", "}", "for", "k", ",", "v", "in", "ordered_pairs", ":", "if", "k", "in", "d", ":", "raise", "ValueError", "(", "\"duplicate key: %r\"", "%", "(", "k", ",", ")", ")", "else", ":", "d", "[", "k", "]", "=", "v", "return", "d" ]
Reject duplicate keys.
[ "Reject", "duplicate", "keys", "." ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/utils/__init__.py#L258-L268
train
Return a dictionary with the keys in ordered_pairs.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,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QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\x30' + chr(0b111111 + 0o60) + chr(1350 - 1301) + chr(0b10010 + 0o45) + '\060', 0o10), nzTpIcepk0o8(chr(1737 - 1689) + '\x6f' + chr(1005 - 956) + chr(50) + chr(0b1 + 0o65), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b10101 + 0o36) + chr(1560 - 1505) + '\x35', 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + '\063' + '\064' + chr(0b110011), 0o10), nzTpIcepk0o8(chr(2239 - 2191) + '\x6f' + chr(0b110100) + '\064', ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b11101 + 0o24) + '\063' + chr(54), 0b1000), nzTpIcepk0o8(chr(1922 - 1874) + chr(111) + chr(0b100000 + 0o24), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b11 + 0o56) + chr(52) + chr(0b1100 + 0o45), 49639 - 49631), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110011) + chr(0b110100) + chr(54), 11406 - 11398), nzTpIcepk0o8(chr(0b1101 + 0o43) + chr(0b1101111) + chr(0b100100 + 0o17) + '\x34' + chr(0b110011), 8), nzTpIcepk0o8('\x30' + '\x6f' + chr(1036 - 986) + chr(48) + chr(3021 - 2966), 0o10), nzTpIcepk0o8(chr(0b10101 + 0o33) + chr(0b1101111) + '\063' + chr(51) + '\060', ord("\x08")), nzTpIcepk0o8(chr(1445 - 1397) + '\157' + chr(0b101100 + 0o6) + chr(50) + '\x37', 0o10), nzTpIcepk0o8('\060' + chr(4829 - 4718) + '\x34' + chr(2175 - 2121), 64713 - 64705), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b11100 + 0o26) + chr(85 - 34) + '\065', 0o10), nzTpIcepk0o8('\x30' + chr(0b1001110 + 0o41) + chr(1499 - 1449) + chr(0b110011) + chr(55), 0o10), nzTpIcepk0o8('\060' + chr(0b1100101 + 0o12) + chr(50) + '\x35' + chr(0b110101), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x32' + chr(83 - 30), 51254 - 51246), nzTpIcepk0o8(chr(0b110000) + chr(4761 - 4650) + chr(0b1011 + 0o47) + '\x35' + chr(0b100111 + 0o17), 0b1000), nzTpIcepk0o8(chr(560 - 512) + chr(0b1101111) + chr(0b110001) + chr(50) + chr(1773 - 1719), 8), nzTpIcepk0o8('\060' + chr(111) + '\x31' + chr(1700 - 1647) + chr(2436 - 2385), ord("\x08")), nzTpIcepk0o8(chr(1231 - 1183) + chr(0b1101111) + chr(49) + '\066' + chr(2253 - 2201), 0o10), nzTpIcepk0o8(chr(48) + chr(3377 - 3266) + chr(0b11110 + 0o24) + chr(0b110001) + chr(55), 0o10), nzTpIcepk0o8(chr(0b10011 + 0o35) + chr(0b1000011 + 0o54) + '\x31' + chr(48) + chr(0b11100 + 0o27), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(51) + '\x36' + '\x33', 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(298 - 247) + chr(52) + '\x32', 0o10), nzTpIcepk0o8(chr(1841 - 1793) + chr(0b111110 + 0o61) + chr(51) + '\x35' + '\x30', 24413 - 24405), nzTpIcepk0o8(chr(1672 - 1624) + '\x6f' + chr(1660 - 1611) + '\061' + '\x35', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(430 - 380) + chr(49) + chr(0b110011), 0b1000), nzTpIcepk0o8(chr(0b10100 + 0o34) + chr(111) + '\x32' + chr(52), 43537 - 43529), nzTpIcepk0o8(chr(0b100110 + 0o12) + chr(0b1101111) + chr(1507 - 1456) + chr(432 - 380) + chr(0b110010), 8), nzTpIcepk0o8(chr(48) + '\157' + '\x32' + chr(2265 - 2214) + chr(1748 - 1700), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b11001 + 0o30) + chr(1217 - 1169) + chr(1428 - 1376), ord("\x08")), nzTpIcepk0o8(chr(810 - 762) + chr(0b1101111) + chr(0b11111 + 0o30) + '\x36', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\067' + chr(48), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x33' + '\064' + '\063', 8), nzTpIcepk0o8(chr(463 - 415) + chr(0b10111 + 0o130) + chr(0b101 + 0o56) + chr(0b110010), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(50) + '\x34' + chr(462 - 408), 0b1000), nzTpIcepk0o8(chr(0b11 + 0o55) + chr(0b1101111) + chr(0b110010) + chr(2474 - 2419), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + '\064' + chr(48), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + chr(0b11010 + 0o125) + chr(53) + chr(679 - 631), ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'V'), chr(0b1100011 + 0o1) + chr(0b1001001 + 0o34) + '\143' + chr(111) + chr(100) + '\145')(chr(117) + chr(0b1110100) + '\x66' + chr(1737 - 1692) + chr(0b111000)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def mGKINn5Fk2bt(svVi7Wlzog3g): vPPlOXQgR3SM = {} for (B6UAF1zReOyJ, r7AA1pbLjb44) in svVi7Wlzog3g: if B6UAF1zReOyJ in vPPlOXQgR3SM: raise WbNHlDKpyPtQ(roI3spqORKae(ES5oEprVxulp(b'\x1c#\x8d\x8fM=e\x15\x83\xc3\xec\xbd\xee\x1c\xbd\xba\xdf'), chr(100) + chr(0b1100101) + '\x63' + '\x6f' + chr(100) + chr(0b1100101))('\165' + '\x74' + chr(102) + '\x2d' + chr(0b1110 + 0o52)) % (B6UAF1zReOyJ,)) else: vPPlOXQgR3SM[B6UAF1zReOyJ] = r7AA1pbLjb44 return vPPlOXQgR3SM
dnanexus/dx-toolkit
src/python/dxpy/utils/__init__.py
Nonce.update_nonce
def update_nonce(input_params): ''' Static method to return a copy of the input dictionary with an additional unique nonce :param input: an input dictionary that may be empty :type input: dict :returns an extended copy of the input with an additional nonce field The input dictionary is updated with a nonce only if does not already have a non empty nonce ''' input_cp = input_params.copy() if len(input_cp.get('nonce', '')) == 0: input_cp['nonce'] = str(Nonce()) return input_cp
python
def update_nonce(input_params): ''' Static method to return a copy of the input dictionary with an additional unique nonce :param input: an input dictionary that may be empty :type input: dict :returns an extended copy of the input with an additional nonce field The input dictionary is updated with a nonce only if does not already have a non empty nonce ''' input_cp = input_params.copy() if len(input_cp.get('nonce', '')) == 0: input_cp['nonce'] = str(Nonce()) return input_cp
[ "def", "update_nonce", "(", "input_params", ")", ":", "input_cp", "=", "input_params", ".", "copy", "(", ")", "if", "len", "(", "input_cp", ".", "get", "(", "'nonce'", ",", "''", ")", ")", "==", "0", ":", "input_cp", "[", "'nonce'", "]", "=", "str", "(", "Nonce", "(", ")", ")", "return", "input_cp" ]
Static method to return a copy of the input dictionary with an additional unique nonce :param input: an input dictionary that may be empty :type input: dict :returns an extended copy of the input with an additional nonce field The input dictionary is updated with a nonce only if does not already have a non empty nonce
[ "Static", "method", "to", "return", "a", "copy", "of", "the", "input", "dictionary", "with", "an", "additional", "unique", "nonce", ":", "param", "input", ":", "an", "input", "dictionary", "that", "may", "be", "empty", ":", "type", "input", ":", "dict", ":", "returns", "an", "extended", "copy", "of", "the", "input", "with", "an", "additional", "nonce", "field" ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/utils/__init__.py#L304-L318
train
Static method to update the nonce field of the input dictionary with an additional unique nonce
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,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zviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(770 - 716) + '\x36', 0b1000), nzTpIcepk0o8('\060' + '\157' + '\x32' + chr(0b100000 + 0o25) + '\x33', ord("\x08")), nzTpIcepk0o8('\x30' + chr(11401 - 11290) + '\063' + '\x34' + '\064', 0o10), nzTpIcepk0o8(chr(0b101000 + 0o10) + chr(111) + chr(0b110010) + chr(0b10 + 0o65) + chr(0b1011 + 0o45), 0o10), nzTpIcepk0o8(chr(2264 - 2216) + chr(9129 - 9018) + '\x33' + chr(0b1111 + 0o44) + chr(0b110111), 0b1000), nzTpIcepk0o8('\060' + chr(0b1100 + 0o143) + chr(51) + '\065' + chr(0b110000), 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + '\061' + chr(0b1000 + 0o57) + '\060', 6935 - 6927), nzTpIcepk0o8(chr(48) + chr(0b1011100 + 0o23) + chr(0b10111 + 0o32) + '\x35' + '\062', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b10010 + 0o37) + '\066' + chr(55), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110010), 46521 - 46513), nzTpIcepk0o8(chr(1203 - 1155) + chr(0b11001 + 0o126) + '\062' + chr(54), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + '\x32' + chr(0b110 + 0o54) + chr(0b1010 + 0o54), 25125 - 25117), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b1011 + 0o47) + '\065' + chr(0b1100 + 0o46), 0b1000), nzTpIcepk0o8(chr(48) + chr(1916 - 1805) + chr(2487 - 2436) + chr(1552 - 1501) + chr(0b11101 + 0o26), 0o10), nzTpIcepk0o8('\060' + '\157' + '\x32' + chr(1596 - 1544) + chr(0b110110), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(49) + '\062' + chr(0b110100), ord("\x08")), nzTpIcepk0o8(chr(1778 - 1730) + chr(3202 - 3091) + chr(0b1101 + 0o44) + chr(0b10111 + 0o34) + chr(0b110011), 0o10), nzTpIcepk0o8(chr(0b11001 + 0o27) + chr(9848 - 9737) + '\063' + chr(0b110001) + chr(0b100101 + 0o14), 15547 - 15539), nzTpIcepk0o8(chr(0b10011 + 0o35) + chr(5045 - 4934) + '\x35' + chr(0b110110), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110001) + chr(0b110 + 0o55) + chr(54), 40408 - 40400), nzTpIcepk0o8(chr(2188 - 2140) + chr(5377 - 5266) + chr(0b1001 + 0o51) + '\x32' + '\064', 6429 - 6421), nzTpIcepk0o8(chr(48) + chr(3012 - 2901) + chr(0b110010) + chr(54), 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x31' + chr(0b101001 + 0o12) + chr(0b100010 + 0o23), 34152 - 34144), nzTpIcepk0o8(chr(0b110000) + chr(6795 - 6684) + '\061' + chr(54) + '\061', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1001001 + 0o46) + chr(0b110001) + chr(49) + '\066', 0o10), nzTpIcepk0o8(chr(0b1011 + 0o45) + chr(0b110 + 0o151) + chr(0b1001 + 0o52) + chr(0b110100) + chr(1307 - 1259), ord("\x08")), nzTpIcepk0o8(chr(0b101001 + 0o7) + chr(0b1101111) + chr(0b11 + 0o56) + '\061' + '\x34', 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(494 - 445) + chr(511 - 457) + chr(54), 65228 - 65220), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b101101 + 0o6) + '\060' + chr(0b110000), ord("\x08")), nzTpIcepk0o8('\060' + chr(4919 - 4808) + chr(55) + chr(0b100011 + 0o17), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(412 - 301) + '\063' + chr(0b1110 + 0o51) + '\x30', 5273 - 5265), nzTpIcepk0o8('\x30' + chr(111) + chr(1937 - 1886) + '\067' + '\x33', 0o10), nzTpIcepk0o8(chr(0b100001 + 0o17) + chr(0b1101111) + '\x32' + chr(51) + chr(0b10110 + 0o32), ord("\x08")), nzTpIcepk0o8(chr(2154 - 2106) + chr(0b1001010 + 0o45) + '\061' + chr(52) + chr(0b110101), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\062' + '\063' + chr(1964 - 1911), ord("\x08")), nzTpIcepk0o8(chr(0b100111 + 0o11) + chr(8515 - 8404) + '\x33' + chr(48) + '\x31', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b10010 + 0o41) + chr(0b1111 + 0o42) + chr(51), 29908 - 29900), nzTpIcepk0o8('\x30' + chr(111) + chr(50) + chr(0b110101) + chr(0b110110), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + '\x32' + chr(566 - 513) + chr(1381 - 1328), 0o10), nzTpIcepk0o8(chr(48) + '\157' + '\x32' + chr(2080 - 2029) + chr(0b110011), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(593 - 482) + chr(0b110101) + '\060', ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x18'), '\x64' + chr(0b1100101) + chr(9128 - 9029) + chr(111) + chr(1659 - 1559) + '\x65')('\x75' + chr(0b110110 + 0o76) + '\146' + chr(0b11001 + 0o24) + chr(0b11101 + 0o33)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def xMRnpr5OlLfd(iVV7PJ8g62Jw): HUPdty9Dxr3n = iVV7PJ8g62Jw.copy() if ftfygxgFas5X(roI3spqORKae(HUPdty9Dxr3n, roI3spqORKae(ES5oEprVxulp(b'q\xfe\xaf\xdd\xab\x9dL\x12\x16Ee\xdc'), '\144' + '\145' + chr(2573 - 2474) + '\x6f' + '\x64' + chr(0b1011011 + 0o12))('\165' + chr(0b1110100) + '\x66' + chr(189 - 144) + '\x38'))(roI3spqORKae(ES5oEprVxulp(b'X\xc4\x8a\xdb\xba'), chr(0b10 + 0o142) + chr(644 - 543) + chr(0b1100011) + '\x6f' + chr(0b1100100) + chr(0b1100101))(chr(0b1110101) + chr(10374 - 10258) + chr(102) + '\055' + '\x38'), roI3spqORKae(ES5oEprVxulp(b''), chr(0b1100100) + '\x65' + chr(2678 - 2579) + chr(111) + chr(2185 - 2085) + chr(0b1100101))(chr(0b1110 + 0o147) + chr(0b11101 + 0o127) + '\146' + '\x2d' + chr(626 - 570)))) == nzTpIcepk0o8(chr(48) + chr(0b111101 + 0o62) + chr(583 - 535), 37992 - 37984): HUPdty9Dxr3n[roI3spqORKae(ES5oEprVxulp(b'X\xc4\x8a\xdb\xba'), chr(100) + chr(101) + '\x63' + chr(0b110011 + 0o74) + chr(0b1100100) + chr(0b1100101))('\x75' + '\x74' + chr(0b1100010 + 0o4) + '\055' + chr(1560 - 1504))] = N9zlRy29S1SS(Unt_RfHqagOg()) return HUPdty9Dxr3n
dnanexus/dx-toolkit
src/python/dxpy/executable_builder.py
inline_documentation_files
def inline_documentation_files(json_spec, src_dir): """ Modifies the provided json_spec dict (which may be an app, applet, workflow spec) to inline the contents of the readme file into "description" and the developer readme into "developerNotes". """ # Inline description from a readme file if 'description' not in json_spec: readme_filename = None for filename in 'README.md', 'Readme.md', 'readme.md': if os.path.exists(os.path.join(src_dir, filename)): readme_filename = filename break if readme_filename is not None: with open(os.path.join(src_dir, readme_filename)) as fh: json_spec['description'] = fh.read() # Inline developerNotes from Readme.developer.md if 'developerNotes' not in json_spec: for filename in 'README.developer.md', 'Readme.developer.md', 'readme.developer.md': if os.path.exists(os.path.join(src_dir, filename)): with open(os.path.join(src_dir, filename)) as fh: json_spec['developerNotes'] = fh.read() break
python
def inline_documentation_files(json_spec, src_dir): """ Modifies the provided json_spec dict (which may be an app, applet, workflow spec) to inline the contents of the readme file into "description" and the developer readme into "developerNotes". """ # Inline description from a readme file if 'description' not in json_spec: readme_filename = None for filename in 'README.md', 'Readme.md', 'readme.md': if os.path.exists(os.path.join(src_dir, filename)): readme_filename = filename break if readme_filename is not None: with open(os.path.join(src_dir, readme_filename)) as fh: json_spec['description'] = fh.read() # Inline developerNotes from Readme.developer.md if 'developerNotes' not in json_spec: for filename in 'README.developer.md', 'Readme.developer.md', 'readme.developer.md': if os.path.exists(os.path.join(src_dir, filename)): with open(os.path.join(src_dir, filename)) as fh: json_spec['developerNotes'] = fh.read() break
[ "def", "inline_documentation_files", "(", "json_spec", ",", "src_dir", ")", ":", "# Inline description from a readme file", "if", "'description'", "not", "in", "json_spec", ":", "readme_filename", "=", "None", "for", "filename", "in", "'README.md'", ",", "'Readme.md'", ",", "'readme.md'", ":", "if", "os", ".", "path", ".", "exists", "(", "os", ".", "path", ".", "join", "(", "src_dir", ",", "filename", ")", ")", ":", "readme_filename", "=", "filename", "break", "if", "readme_filename", "is", "not", "None", ":", "with", "open", "(", "os", ".", "path", ".", "join", "(", "src_dir", ",", "readme_filename", ")", ")", "as", "fh", ":", "json_spec", "[", "'description'", "]", "=", "fh", ".", "read", "(", ")", "# Inline developerNotes from Readme.developer.md", "if", "'developerNotes'", "not", "in", "json_spec", ":", "for", "filename", "in", "'README.developer.md'", ",", "'Readme.developer.md'", ",", "'readme.developer.md'", ":", "if", "os", ".", "path", ".", "exists", "(", "os", ".", "path", ".", "join", "(", "src_dir", ",", "filename", ")", ")", ":", "with", "open", "(", "os", ".", "path", ".", "join", "(", "src_dir", ",", "filename", ")", ")", "as", "fh", ":", "json_spec", "[", "'developerNotes'", "]", "=", "fh", ".", "read", "(", ")", "break" ]
Modifies the provided json_spec dict (which may be an app, applet, workflow spec) to inline the contents of the readme file into "description" and the developer readme into "developerNotes".
[ "Modifies", "the", "provided", "json_spec", "dict", "(", "which", "may", "be", "an", "app", "applet", "workflow", "spec", ")", "to", "inline", "the", "contents", "of", "the", "readme", "file", "into", "description", "and", "the", "developer", "readme", "into", "developerNotes", "." ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/executable_builder.py#L65-L88
train
Inline the contents of the README. md file into the JSON_SPEC dictionary.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,g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viv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b110000) + chr(9744 - 9633) + '\x33' + '\060' + chr(0b100100 + 0o22), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b10011 + 0o40) + chr(0b110001) + chr(0b101010 + 0o15), 0b1000), nzTpIcepk0o8(chr(0b100101 + 0o13) + chr(111) + '\x31' + '\x31' + '\x31', ord("\x08")), nzTpIcepk0o8(chr(0b101010 + 0o6) + chr(308 - 197) + chr(0b110001) + chr(0b110111) + '\060', 56754 - 56746), nzTpIcepk0o8('\x30' + '\157' + '\062' + chr(0b101000 + 0o10) + chr(2409 - 2357), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + '\x31' + chr(0b110110) + '\x30', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b101000 + 0o107) + '\x36' + chr(0b101110 + 0o4), 14511 - 14503), nzTpIcepk0o8(chr(0b110000) + '\157' + '\063' + '\x36' + '\x35', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x33' + chr(0b100101 + 0o21), 9138 - 9130), nzTpIcepk0o8(chr(0b10001 + 0o37) + '\x6f' + chr(972 - 922) + '\x35' + '\x31', 2310 - 2302), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110011) + '\067' + '\061', 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + '\x33' + chr(54) + chr(0b110101), 8), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b10110 + 0o33) + chr(0b110100) + '\065', 3013 - 3005), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\062' + '\061' + chr(0b10 + 0o61), 0o10), nzTpIcepk0o8(chr(48) + chr(8716 - 8605) + chr(0b100000 + 0o21) + chr(48) + '\x32', 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(0b110011) + '\x34' + chr(48), 0o10), nzTpIcepk0o8(chr(48) + chr(4418 - 4307) + chr(0b1111 + 0o43) + chr(50) + chr(0b110000), 0b1000), nzTpIcepk0o8(chr(0b11011 + 0o25) + '\157' + '\062' + chr(49) + '\062', ord("\x08")), nzTpIcepk0o8('\060' + chr(9751 - 9640) + '\061' + chr(774 - 719) + '\061', 0o10), nzTpIcepk0o8('\060' + chr(111) + '\067' + '\x30', 23897 - 23889), nzTpIcepk0o8('\x30' + '\157' + '\x31' + chr(0b110101) + chr(54), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(1562 - 1511) + '\066' + chr(55), 0b1000), nzTpIcepk0o8(chr(0b1000 + 0o50) + chr(5182 - 5071) + chr(950 - 901) + chr(2232 - 2183) + chr(0b110100), 31565 - 31557), nzTpIcepk0o8('\060' + chr(991 - 880) + chr(0b110111) + chr(0b11001 + 0o36), ord("\x08")), nzTpIcepk0o8(chr(560 - 512) + chr(8977 - 8866) + chr(0b110111) + chr(0b110111), 8), nzTpIcepk0o8('\060' + chr(0b100110 + 0o111) + '\063' + chr(52) + chr(0b110 + 0o54), 0b1000), nzTpIcepk0o8('\060' + chr(11525 - 11414) + '\x32' + chr(569 - 514) + chr(48), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + '\064' + '\x37', 38621 - 38613), nzTpIcepk0o8(chr(1867 - 1819) + chr(9768 - 9657) + chr(51) + chr(53) + chr(48), 0b1000), nzTpIcepk0o8(chr(0b11010 + 0o26) + chr(111) + chr(0b110010) + chr(1794 - 1746) + chr(0b110000), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110010) + chr(1969 - 1921) + '\060', 8), nzTpIcepk0o8(chr(48) + chr(3839 - 3728) + chr(0b101010 + 0o11) + '\x35', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(12043 - 11932) + chr(51) + chr(119 - 71) + '\x34', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\065' + chr(2174 - 2119), 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110010) + '\066', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(6607 - 6496) + '\061' + chr(51) + '\064', ord("\x08")), nzTpIcepk0o8(chr(1099 - 1051) + chr(10289 - 10178) + '\x33' + '\065' + chr(0b10000 + 0o42), 0b1000), nzTpIcepk0o8(chr(358 - 310) + chr(0b1101111) + '\x31' + chr(0b110101) + chr(64 - 15), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1000011 + 0o54) + chr(52) + chr(54), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110001) + chr(49) + chr(0b110100), 8)][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + chr(0b1101111) + chr(775 - 722) + '\x30', 26021 - 26013)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xe8'), chr(0b1001110 + 0o26) + chr(101) + chr(0b100000 + 0o103) + chr(111) + chr(1665 - 1565) + chr(0b11000 + 0o115))(chr(117) + '\x74' + '\146' + chr(45) + chr(0b100101 + 0o23)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def ZZvkPikQk6N1(agxi8L4gDzUu, zgBFj9gT640a): if roI3spqORKae(ES5oEprVxulp(b'\xa2\xaa:\x1b\xf6\x19B\x81w\xc6\x97'), '\x64' + chr(0b1100101) + chr(5650 - 5551) + chr(0b1101111) + chr(0b1100100) + '\145')('\165' + chr(0b1110100) + '\x66' + '\055' + chr(0b111000)) not in agxi8L4gDzUu: mRgrVLhLWaJ3 = None for FxZHtXEolYsL in (roI3spqORKae(ES5oEprVxulp(b'\x94\x8a\x08<\xc95\x1c\x98z'), chr(100) + chr(101) + '\143' + chr(0b1101100 + 0o3) + chr(0b1100100) + '\x65')(chr(10858 - 10741) + '\x74' + chr(0b11 + 0o143) + '\x2d' + '\070'), roI3spqORKae(ES5oEprVxulp(b'\x94\xaa(\x1c\xe9\x15\x1c\x98z'), '\144' + chr(0b1100101) + chr(99) + chr(111) + '\144' + chr(4693 - 4592))('\x75' + chr(116) + chr(8653 - 8551) + '\x2d' + '\x38'), roI3spqORKae(ES5oEprVxulp(b'\xb4\xaa(\x1c\xe9\x15\x1c\x98z'), '\x64' + chr(0b1100 + 0o131) + chr(99) + chr(111) + chr(0b1100100) + chr(0b1100101))(chr(0b1110100 + 0o1) + '\164' + '\146' + chr(45) + '\x38')): if roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'\xbc\x9c\x00\x01\xea G\xb0h\xc5\xa8\xc1'), '\x64' + '\x65' + '\143' + chr(111) + chr(0b1100100) + chr(0b1100101))('\165' + '\164' + chr(0b110001 + 0o65) + chr(0b101101) + '\x38'))(roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'\x9f\xfb05\xbd2Q\x93J\xea\xb7\x84'), chr(0b1100100) + chr(8737 - 8636) + '\x63' + '\157' + chr(100) + '\x65')(chr(0b1000 + 0o155) + chr(0b1110100) + chr(3090 - 2988) + chr(0b101101) + chr(56)))(zgBFj9gT640a, FxZHtXEolYsL)): mRgrVLhLWaJ3 = FxZHtXEolYsL break if mRgrVLhLWaJ3 is not None: with DnU3Rq9N5ala(roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'\x9f\xfb05\xbd2Q\x93J\xea\xb7\x84'), chr(0b1010010 + 0o22) + '\145' + chr(7691 - 7592) + '\x6f' + chr(0b110101 + 0o57) + chr(101))(chr(9852 - 9735) + chr(0b1011001 + 0o33) + chr(102) + chr(0b101101) + chr(0b111000)))(zgBFj9gT640a, mRgrVLhLWaJ3)) as ghfrO2vbANu_: agxi8L4gDzUu[roI3spqORKae(ES5oEprVxulp(b'\xa2\xaa:\x1b\xf6\x19B\x81w\xc6\x97'), chr(0b1100100) + chr(0b1100101) + chr(0b1100011) + chr(3617 - 3506) + chr(100) + chr(0b1000100 + 0o41))(chr(9071 - 8954) + chr(0b1110100) + '\x66' + chr(0b10101 + 0o30) + chr(0b111000))] = ghfrO2vbANu_.eoXknH7XUn7m() if roI3spqORKae(ES5oEprVxulp(b'\xa2\xaa?\x1d\xe8\x1fB\x90l\xe7\x96\x81\x00\xf8'), chr(0b1100100) + chr(101) + chr(0b1100011) + chr(111) + chr(100) + '\145')(chr(0b1110101) + chr(116) + chr(2176 - 2074) + '\055' + chr(687 - 631)) not in agxi8L4gDzUu: for FxZHtXEolYsL in (roI3spqORKae(ES5oEprVxulp(b"\x94\x8a\x08<\xc95\x1c\x91{\xdf\x9c\x99\n\xfb'\x92\xbe\xe7\x1d"), '\144' + chr(0b1000110 + 0o37) + chr(0b1101 + 0o126) + '\157' + '\144' + chr(0b1100101))(chr(117) + '\164' + '\146' + chr(45) + chr(0b111000)), roI3spqORKae(ES5oEprVxulp(b"\x94\xaa(\x1c\xe9\x15\x1c\x91{\xdf\x9c\x99\n\xfb'\x92\xbe\xe7\x1d"), chr(7220 - 7120) + chr(101) + chr(5290 - 5191) + '\x6f' + chr(100) + chr(0b1001 + 0o134))('\x75' + '\x74' + chr(6099 - 5997) + '\055' + chr(0b111000)), roI3spqORKae(ES5oEprVxulp(b"\xb4\xaa(\x1c\xe9\x15\x1c\x91{\xdf\x9c\x99\n\xfb'\x92\xbe\xe7\x1d"), chr(0b10 + 0o142) + chr(0b1100101) + '\143' + chr(0b10000 + 0o137) + chr(9447 - 9347) + '\145')(chr(0b1110101) + chr(0b110111 + 0o75) + chr(0b1100010 + 0o4) + '\x2d' + '\070')): if roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'\xbc\x9c\x00\x01\xea G\xb0h\xc5\xa8\xc1'), '\144' + chr(4553 - 4452) + chr(0b101111 + 0o64) + chr(0b1101111) + chr(9593 - 9493) + chr(0b10 + 0o143))(chr(0b1001 + 0o154) + '\x74' + '\x66' + chr(0b11110 + 0o17) + chr(0b111000)))(roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'\x9f\xfb05\xbd2Q\x93J\xea\xb7\x84'), '\x64' + chr(0b10000 + 0o125) + chr(0b1100011) + chr(0b1101011 + 0o4) + chr(0b1100100) + chr(1391 - 1290))(chr(0b1101100 + 0o11) + chr(13245 - 13129) + chr(102) + chr(1896 - 1851) + chr(0b11100 + 0o34)))(zgBFj9gT640a, FxZHtXEolYsL)): with DnU3Rq9N5ala(roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'\x9f\xfb05\xbd2Q\x93J\xea\xb7\x84'), chr(100) + chr(0b100000 + 0o105) + '\x63' + '\x6f' + chr(8087 - 7987) + '\x65')(chr(0b1110101) + chr(0b111111 + 0o65) + chr(102) + '\055' + '\x38'))(zgBFj9gT640a, FxZHtXEolYsL)) as ghfrO2vbANu_: agxi8L4gDzUu[roI3spqORKae(ES5oEprVxulp(b'\xa2\xaa?\x1d\xe8\x1fB\x90l\xe7\x96\x81\x00\xf8'), '\144' + chr(101) + '\x63' + chr(0b1011 + 0o144) + '\144' + chr(1764 - 1663))('\x75' + chr(4071 - 3955) + chr(102) + chr(45) + chr(0b10000 + 0o50))] = ghfrO2vbANu_.eoXknH7XUn7m() break
dnanexus/dx-toolkit
src/python/dxpy/executable_builder.py
verify_developer_rights
def verify_developer_rights(prefixed_name): """ Checks if the current user is a developer of the app or global workflow with the given name. If the app/global workflow exists and the user has developer rights to it, the function returns a named tuple representing the executable that was queried. """ assert(prefixed_name.startswith('app-') or prefixed_name.startswith('globalworkflow-')) if prefixed_name.partition('-')[0] == 'app': exception_type = dxpy.app_builder.AppBuilderException describe_method = dxpy.api.app_describe exception_msg = \ 'An app with the given name already exists and you are not a developer of that app' else: exception_type = dxpy.workflow_builder.WorkflowBuilderException describe_method = dxpy.api.global_workflow_describe exception_msg = \ 'A global workflow with the given name already exists and you are not a developer of that workflow' name_already_exists = True is_developer = False version = None executable_id = None FoundExecutable = collections.namedtuple('FoundExecutable', ['name', 'version', 'id']) try: describe_output = describe_method(prefixed_name, input_params={"fields": {"isDeveloperFor": True, "version": True, "id": True}}) is_developer = describe_output['isDeveloperFor'] version = describe_output['version'] executable_id = describe_output['id'] except dxpy.exceptions.DXAPIError as e: if e.name == 'ResourceNotFound': name_already_exists = False elif e.name == 'PermissionDenied': raise exception_type(exception_msg) else: raise e if not name_already_exists: # This app/workflow doesn't exist yet so its creation will succeed # (or at least, not fail on the basis of the ACL). return FoundExecutable(name=None, version=None, id=None) name_without_prefix = prefixed_name.partition('-')[2] if not is_developer: raise exception_type('You are not a developer for {n}'.format(n=name_without_prefix)) return FoundExecutable(name=name_without_prefix, version=version, id=executable_id)
python
def verify_developer_rights(prefixed_name): """ Checks if the current user is a developer of the app or global workflow with the given name. If the app/global workflow exists and the user has developer rights to it, the function returns a named tuple representing the executable that was queried. """ assert(prefixed_name.startswith('app-') or prefixed_name.startswith('globalworkflow-')) if prefixed_name.partition('-')[0] == 'app': exception_type = dxpy.app_builder.AppBuilderException describe_method = dxpy.api.app_describe exception_msg = \ 'An app with the given name already exists and you are not a developer of that app' else: exception_type = dxpy.workflow_builder.WorkflowBuilderException describe_method = dxpy.api.global_workflow_describe exception_msg = \ 'A global workflow with the given name already exists and you are not a developer of that workflow' name_already_exists = True is_developer = False version = None executable_id = None FoundExecutable = collections.namedtuple('FoundExecutable', ['name', 'version', 'id']) try: describe_output = describe_method(prefixed_name, input_params={"fields": {"isDeveloperFor": True, "version": True, "id": True}}) is_developer = describe_output['isDeveloperFor'] version = describe_output['version'] executable_id = describe_output['id'] except dxpy.exceptions.DXAPIError as e: if e.name == 'ResourceNotFound': name_already_exists = False elif e.name == 'PermissionDenied': raise exception_type(exception_msg) else: raise e if not name_already_exists: # This app/workflow doesn't exist yet so its creation will succeed # (or at least, not fail on the basis of the ACL). return FoundExecutable(name=None, version=None, id=None) name_without_prefix = prefixed_name.partition('-')[2] if not is_developer: raise exception_type('You are not a developer for {n}'.format(n=name_without_prefix)) return FoundExecutable(name=name_without_prefix, version=version, id=executable_id)
[ "def", "verify_developer_rights", "(", "prefixed_name", ")", ":", "assert", "(", "prefixed_name", ".", "startswith", "(", "'app-'", ")", "or", "prefixed_name", ".", "startswith", "(", "'globalworkflow-'", ")", ")", "if", "prefixed_name", ".", "partition", "(", "'-'", ")", "[", "0", "]", "==", "'app'", ":", "exception_type", "=", "dxpy", ".", "app_builder", ".", "AppBuilderException", "describe_method", "=", "dxpy", ".", "api", ".", "app_describe", "exception_msg", "=", "'An app with the given name already exists and you are not a developer of that app'", "else", ":", "exception_type", "=", "dxpy", ".", "workflow_builder", ".", "WorkflowBuilderException", "describe_method", "=", "dxpy", ".", "api", ".", "global_workflow_describe", "exception_msg", "=", "'A global workflow with the given name already exists and you are not a developer of that workflow'", "name_already_exists", "=", "True", "is_developer", "=", "False", "version", "=", "None", "executable_id", "=", "None", "FoundExecutable", "=", "collections", ".", "namedtuple", "(", "'FoundExecutable'", ",", "[", "'name'", ",", "'version'", ",", "'id'", "]", ")", "try", ":", "describe_output", "=", "describe_method", "(", "prefixed_name", ",", "input_params", "=", "{", "\"fields\"", ":", "{", "\"isDeveloperFor\"", ":", "True", ",", "\"version\"", ":", "True", ",", "\"id\"", ":", "True", "}", "}", ")", "is_developer", "=", "describe_output", "[", "'isDeveloperFor'", "]", "version", "=", "describe_output", "[", "'version'", "]", "executable_id", "=", "describe_output", "[", "'id'", "]", "except", "dxpy", ".", "exceptions", ".", "DXAPIError", "as", "e", ":", "if", "e", ".", "name", "==", "'ResourceNotFound'", ":", "name_already_exists", "=", "False", "elif", "e", ".", "name", "==", "'PermissionDenied'", ":", "raise", "exception_type", "(", "exception_msg", ")", "else", ":", "raise", "e", "if", "not", "name_already_exists", ":", "# This app/workflow doesn't exist yet so its creation will succeed", "# (or at least, not fail on the basis of the ACL).", "return", "FoundExecutable", "(", "name", "=", "None", ",", "version", "=", "None", ",", "id", "=", "None", ")", "name_without_prefix", "=", "prefixed_name", ".", "partition", "(", "'-'", ")", "[", "2", "]", "if", "not", "is_developer", ":", "raise", "exception_type", "(", "'You are not a developer for {n}'", ".", "format", "(", "n", "=", "name_without_prefix", ")", ")", "return", "FoundExecutable", "(", "name", "=", "name_without_prefix", ",", "version", "=", "version", ",", "id", "=", "executable_id", ")" ]
Checks if the current user is a developer of the app or global workflow with the given name. If the app/global workflow exists and the user has developer rights to it, the function returns a named tuple representing the executable that was queried.
[ "Checks", "if", "the", "current", "user", "is", "a", "developer", "of", "the", "app", "or", "global", "workflow", "with", "the", "given", "name", ".", "If", "the", "app", "/", "global", "workflow", "exists", "and", "the", "user", "has", "developer", "rights", "to", "it", "the", "function", "returns", "a", "named", "tuple", "representing", "the", "executable", "that", "was", "queried", "." ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/executable_builder.py#L102-L152
train
Verifies that the current user has the given developer rights to the app or global workflow with the given name.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v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OIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\060' + chr(111) + chr(2104 - 2049) + chr(2434 - 2380), 19154 - 19146), nzTpIcepk0o8(chr(48) + chr(0b1101101 + 0o2) + chr(2447 - 2397) + chr(811 - 763) + chr(48), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(4953 - 4842) + chr(51) + '\x36' + '\x35', ord("\x08")), nzTpIcepk0o8(chr(0b100111 + 0o11) + chr(0b1101111) + '\x31' + chr(51) + chr(2427 - 2374), ord("\x08")), nzTpIcepk0o8(chr(0b111 + 0o51) + chr(0b1101111) + chr(0b110001) + '\061' + chr(0b110111), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110011) + chr(0b110110) + '\x32', 0o10), nzTpIcepk0o8('\060' + chr(0b11 + 0o154) + '\x32' + '\066' + '\x34', 63281 - 63273), nzTpIcepk0o8(chr(236 - 188) + chr(10182 - 10071) + chr(0b100011 + 0o20) + chr(52) + '\063', 19693 - 19685), nzTpIcepk0o8(chr(0b10111 + 0o31) + chr(0b1101111) + '\x33' + chr(0b110111) + chr(51), ord("\x08")), nzTpIcepk0o8(chr(2159 - 2111) + chr(0b1101111) + '\062' + chr(0b110101) + chr(51), 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(0b1011 + 0o46) + chr(2354 - 2300) + '\x30', 0b1000), nzTpIcepk0o8('\x30' + '\157' + '\x33' + chr(0b110110) + chr(0b110011), 4928 - 4920), nzTpIcepk0o8('\x30' + chr(0b1100101 + 0o12) + chr(51) + '\060' + chr(54), 44268 - 44260), nzTpIcepk0o8(chr(0b100101 + 0o13) + chr(111) + chr(2432 - 2381) + chr(0b110000) + chr(0b1111 + 0o44), 0b1000), nzTpIcepk0o8('\060' + chr(0b111 + 0o150) + chr(51) + '\x31' + chr(51), 58144 - 58136), nzTpIcepk0o8('\x30' + chr(7899 - 7788) + chr(50) + '\x31' + chr(0b110110), 45699 - 45691), nzTpIcepk0o8('\060' + chr(3535 - 3424) + chr(0b110010) + chr(344 - 295) + chr(0b110100), 16492 - 16484), nzTpIcepk0o8(chr(48) + chr(0b1010 + 0o145) + chr(50) + '\x36' + chr(0b1111 + 0o46), 0b1000), nzTpIcepk0o8(chr(0b100001 + 0o17) + '\157' + chr(0b101100 + 0o6) + chr(254 - 206) + chr(0b101001 + 0o14), 10969 - 10961), nzTpIcepk0o8('\060' + chr(111) + chr(51) + chr(2787 - 2734) + chr(0b110010), 37105 - 37097), nzTpIcepk0o8('\x30' + '\x6f' + '\x32' + chr(50) + chr(2921 - 2866), 0o10), nzTpIcepk0o8('\060' + chr(0b11101 + 0o122) + '\x31' + chr(0b110100) + '\062', 0o10), nzTpIcepk0o8('\x30' + chr(0b11111 + 0o120) + chr(0b11001 + 0o31) + chr(443 - 390) + '\x34', 0o10), nzTpIcepk0o8('\060' + chr(5183 - 5072) + chr(0b110001) + chr(49) + '\x35', 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(0b101 + 0o54) + chr(0b110111) + chr(1258 - 1205), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(1049 - 999) + '\062', 0b1000), nzTpIcepk0o8(chr(0b101000 + 0o10) + '\157' + '\061' + chr(0b11100 + 0o25) + chr(0b110101), 8), nzTpIcepk0o8('\060' + '\157' + chr(0b101100 + 0o7) + chr(54), ord("\x08")), nzTpIcepk0o8(chr(0b101010 + 0o6) + '\157' + '\063' + '\065' + chr(0b110101), ord("\x08")), nzTpIcepk0o8(chr(0b1110 + 0o42) + chr(111) + chr(0b11110 + 0o24) + chr(2428 - 2378) + chr(0b1111 + 0o44), 0b1000), nzTpIcepk0o8(chr(48) + chr(4694 - 4583) + '\x32' + chr(469 - 421) + chr(0b110101), 8), nzTpIcepk0o8(chr(0b10 + 0o56) + chr(0b111101 + 0o62) + '\x31' + chr(1606 - 1556) + '\061', 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(0b100100 + 0o15) + chr(916 - 861) + chr(0b10000 + 0o40), 0o10), nzTpIcepk0o8(chr(0b10 + 0o56) + '\157' + '\x31' + chr(1379 - 1331) + chr(0b10110 + 0o37), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101 + 0o142) + '\062' + '\x35' + chr(54), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(1485 - 1436) + chr(2449 - 2398) + chr(0b1011 + 0o51), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b11110 + 0o121) + '\x31' + '\x37' + chr(979 - 925), 0o10), nzTpIcepk0o8(chr(0b100000 + 0o20) + chr(0b1001100 + 0o43) + '\x32' + '\x30', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b100011 + 0o21) + chr(0b1110 + 0o43), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(49) + chr(50) + '\x37', 10397 - 10389)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + chr(111) + '\065' + chr(48), 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x10'), chr(0b100100 + 0o100) + '\145' + chr(99) + chr(111) + chr(0b1011010 + 0o12) + chr(0b1100101))(chr(117) + '\164' + '\146' + '\x2d' + '\070') + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def snsMW3voM62B(xL7jrMBhJHOI): assert roI3spqORKae(xL7jrMBhJHOI, roI3spqORKae(ES5oEprVxulp(b'M\xf4\x94/;\x81\xc3\x8a\x8f\xc3'), '\144' + chr(101) + chr(3006 - 2907) + chr(111) + '\x64' + '\145')(chr(0b1110101) + '\164' + chr(1340 - 1238) + chr(45) + chr(0b1101 + 0o53)))(roI3spqORKae(ES5oEprVxulp(b'_\xf0\x85p'), chr(4178 - 4078) + chr(736 - 635) + '\x63' + chr(111) + '\x64' + chr(0b110100 + 0o61))('\x75' + chr(513 - 397) + '\x66' + chr(75 - 30) + chr(56))) or roI3spqORKae(xL7jrMBhJHOI, roI3spqORKae(ES5oEprVxulp(b'M\xf4\x94/;\x81\xc3\x8a\x8f\xc3'), chr(0b100 + 0o140) + chr(101) + '\143' + '\x6f' + chr(0b1000010 + 0o42) + chr(0b1100101))(chr(0b1010110 + 0o37) + chr(0b1110100) + '\x66' + chr(0b10010 + 0o33) + chr(0b111000)))(roI3spqORKae(ES5oEprVxulp(b'Y\xec\x9a?.\x9e\xc3\x8c\x89\xc0\x16\x9f\xa9\xb4\xe6'), chr(4573 - 4473) + '\145' + chr(99) + '\157' + '\144' + chr(101))(chr(0b1110101) + chr(0b10 + 0o162) + chr(1665 - 1563) + chr(45) + '\x38')) if roI3spqORKae(xL7jrMBhJHOI, roI3spqORKae(ES5oEprVxulp(b'G\xb6\x810z\xbe\xce\x84\xa1\xc8/\xb6'), '\144' + '\145' + '\x63' + chr(776 - 665) + '\x64' + '\x65')('\165' + '\x74' + '\x66' + chr(0b110 + 0o47) + chr(1236 - 1180)))(roI3spqORKae(ES5oEprVxulp(b'\x13'), chr(100) + '\x65' + '\143' + '\x6f' + '\x64' + chr(0b0 + 0o145))('\x75' + '\164' + '\146' + chr(2016 - 1971) + chr(56)))[nzTpIcepk0o8(chr(48) + chr(111) + chr(0b101000 + 0o10), ord("\x08"))] == roI3spqORKae(ES5oEprVxulp(b'_\xf0\x85'), chr(2813 - 2713) + chr(8862 - 8761) + '\143' + chr(741 - 630) + chr(0b101010 + 0o72) + chr(0b1100101))(chr(0b1110101) + chr(116) + '\x66' + '\055' + '\x38'): u7THKWMj5LoU = SsdNdRxXOwsF.app_builder.AppBuilderException LbZjAZIuYiKS = SsdNdRxXOwsF.api.app_describe xlGH3AobY7B6 = roI3spqORKae(ES5oEprVxulp(b"\x7f\xee\xd5<?\x82\x94\x94\x92\xdf\x18\xd3\xb2\xab\xae\xae\xeb\xdc\xf3\x8f\xf9B\xc2,\x10wm\x7f\x81\xe1\xe00\x1c<\x8e9\x06yR#M\xa0\x943+\xd2\xcd\x8c\x8e\x8b\x11\x81\xa3\xe3\xa5\xe1\xf8\x95\xe4\xca\xf3\x07\xda(\x11}={\x9f\xb3\xea7X1\xc6=\n0@'N"), chr(100) + '\145' + '\x63' + '\x6f' + chr(0b1100100) + chr(4510 - 4409))(chr(0b100011 + 0o122) + chr(0b10011 + 0o141) + chr(0b1100110) + chr(534 - 489) + chr(2652 - 2596)) else: u7THKWMj5LoU = SsdNdRxXOwsF.workflow_builder.WorkflowBuilderException LbZjAZIuYiKS = SsdNdRxXOwsF.api.global_workflow_describe xlGH3AobY7B6 = roI3spqORKae(ES5oEprVxulp(b'\x7f\xa0\x921 \x90\xd5\x8f\xdb\xdc\x1f\x81\xad\xa5\xa7\xe1\xfb\x95\xf2\x83\xe3\n\x8c9\x15wmy\x84\xe5\xe0?X+\xcf1\x1b0@;L\xe5\x9496\xd2\xd1\x9b\x92\xd8\x04\x80\xe6\xa2\xa5\xea\xac\xcc\xea\x9f\xb7\x03\xde(]|"j\xcd\xf2\xa55\x1d3\xcb0\x11`D%\x1e\xef\x93};\x9a\xd5\x97\xdb\xdc\x1f\x81\xad\xa5\xa7\xe1\xfb'), chr(5389 - 5289) + chr(9492 - 9391) + chr(1997 - 1898) + chr(0b1101111) + '\x64' + '\145')('\165' + chr(0b100111 + 0o115) + chr(102) + '\055' + chr(0b11111 + 0o31)) yXmtABQ82SPo = nzTpIcepk0o8(chr(1630 - 1582) + chr(1930 - 1819) + '\061', 32385 - 32377) _wH2swAtnMmJ = nzTpIcepk0o8(chr(69 - 21) + chr(0b1101111) + chr(48), 8) J4eG487sJbAu = None aBn2CU4a_fQR = None iT8tyTd_ZQ6Z = VmGquQq8pzNa.namedtuple(roI3spqORKae(ES5oEprVxulp(b'x\xef\x803+\xb7\xcc\x86\x98\xde\x04\x92\xa4\xaf\xae'), '\144' + '\x65' + chr(99) + chr(0b1101111) + chr(0b1100100) + chr(4943 - 4842))('\165' + '\164' + '\x66' + chr(45) + chr(0b111000)), [roI3spqORKae(ES5oEprVxulp(b'P\xe1\x988'), chr(8778 - 8678) + chr(0b1100101) + '\143' + '\x6f' + chr(5869 - 5769) + chr(101))('\165' + chr(3256 - 3140) + '\x66' + chr(0b10010 + 0o33) + chr(0b111000)), roI3spqORKae(ES5oEprVxulp(b'H\xe5\x87.&\x9d\xda'), chr(0b1100100) + chr(8082 - 7981) + '\x63' + '\x6f' + '\x64' + chr(0b100111 + 0o76))(chr(0b1110101) + chr(116) + chr(102) + chr(45) + '\070'), roI3spqORKae(ES5oEprVxulp(b'W\xe4'), chr(100) + chr(0b1001111 + 0o26) + chr(99) + chr(0b1101111) + chr(0b1100100) + '\x65')(chr(0b1000011 + 0o62) + chr(116) + chr(0b1100110) + chr(0b10110 + 0o27) + chr(0b100001 + 0o27))]) try: Xmcm0weMglP7 = LbZjAZIuYiKS(xL7jrMBhJHOI, input_params={roI3spqORKae(ES5oEprVxulp(b'X\xe9\x901+\x81'), chr(7773 - 7673) + chr(0b1100101) + chr(0b1100011) + chr(111) + chr(100) + chr(0b111010 + 0o53))('\x75' + '\164' + chr(1167 - 1065) + chr(0b101101) + '\070'): {roI3spqORKae(ES5oEprVxulp(b'W\xf3\xb189\x97\xd8\x8c\x8b\xce\x02\xb5\xa9\xb1'), chr(0b100011 + 0o101) + chr(101) + '\x63' + '\157' + '\x64' + '\x65')(chr(1052 - 935) + chr(0b1110100) + chr(0b1100110) + chr(1779 - 1734) + chr(0b100100 + 0o24)): nzTpIcepk0o8('\060' + chr(8590 - 8479) + chr(0b11110 + 0o23), 8), roI3spqORKae(ES5oEprVxulp(b'H\xe5\x87.&\x9d\xda'), chr(100) + '\x65' + chr(99) + chr(111) + '\x64' + chr(3039 - 2938))('\x75' + chr(12757 - 12641) + '\146' + chr(657 - 612) + chr(56)): nzTpIcepk0o8(chr(48) + chr(0b11101 + 0o122) + chr(0b111 + 0o52), 8), roI3spqORKae(ES5oEprVxulp(b'W\xe4'), '\144' + chr(0b1000000 + 0o45) + '\x63' + chr(1807 - 1696) + '\144' + chr(0b1100101))(chr(11262 - 11145) + chr(6795 - 6679) + '\x66' + chr(0b101101) + '\x38'): nzTpIcepk0o8(chr(0b101101 + 0o3) + chr(0b1101111) + '\x31', 8)}}) _wH2swAtnMmJ = Xmcm0weMglP7[roI3spqORKae(ES5oEprVxulp(b'W\xf3\xb189\x97\xd8\x8c\x8b\xce\x02\xb5\xa9\xb1'), chr(0b1100100) + chr(101) + chr(0b1100011) + '\157' + '\144' + chr(648 - 547))(chr(0b1110101) + chr(11132 - 11016) + chr(6590 - 6488) + '\055' + chr(0b111000))] J4eG487sJbAu = Xmcm0weMglP7[roI3spqORKae(ES5oEprVxulp(b'H\xe5\x87.&\x9d\xda'), chr(0b1100100) + chr(101) + chr(0b1011000 + 0o13) + chr(111) + '\x64' + '\145')(chr(0b1011 + 0o152) + chr(0b1 + 0o163) + chr(0b111010 + 0o54) + chr(0b10100 + 0o31) + '\070')] aBn2CU4a_fQR = Xmcm0weMglP7[roI3spqORKae(ES5oEprVxulp(b'W\xe4'), chr(100) + chr(1033 - 932) + chr(99) + chr(0b1101111) + chr(7056 - 6956) + chr(101))('\165' + chr(116) + chr(3042 - 2940) + '\055' + chr(0b111000))] except roI3spqORKae(SsdNdRxXOwsF.exceptions, roI3spqORKae(ES5oEprVxulp(b'z\xd8\xb4\r\x06\xb7\xc6\x91\x94\xd9'), '\144' + chr(3302 - 3201) + chr(6668 - 6569) + chr(0b1101111) + '\144' + '\x65')(chr(0b111110 + 0o67) + chr(0b1100 + 0o150) + '\x66' + '\x2d' + chr(1737 - 1681))) as wgf0sgcu_xPL: if roI3spqORKae(wgf0sgcu_xPL, roI3spqORKae(ES5oEprVxulp(b'm\xcc\xa3\x1f}\xb0\xe4\xa2\xa4\xc69\x96'), chr(3369 - 3269) + chr(1291 - 1190) + chr(0b1100011) + chr(111) + chr(0b1 + 0o143) + chr(101))('\x75' + chr(0b1101001 + 0o13) + '\x66' + '\055' + chr(0b111000))) == roI3spqORKae(ES5oEprVxulp(b'l\xe5\x862:\x80\xd7\x86\xb5\xc4\x04\xb5\xa9\xb6\xa5\xea'), chr(1923 - 1823) + chr(101) + chr(99) + '\157' + chr(0b1000111 + 0o35) + '\145')(chr(4821 - 4704) + chr(1424 - 1308) + chr(0b1100101 + 0o1) + chr(45) + chr(0b1 + 0o67)): yXmtABQ82SPo = nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b100111 + 0o11), 8) elif roI3spqORKae(wgf0sgcu_xPL, roI3spqORKae(ES5oEprVxulp(b'm\xcc\xa3\x1f}\xb0\xe4\xa2\xa4\xc69\x96'), chr(0b1100100) + chr(101) + '\143' + '\157' + chr(2296 - 2196) + chr(0b1100101))(chr(0b1110101) + chr(0b1110000 + 0o4) + '\x66' + chr(0b100100 + 0o11) + chr(56))) == roI3spqORKae(ES5oEprVxulp(b'n\xe5\x870&\x81\xc7\x8a\x94\xc54\x96\xa8\xaa\xae\xea'), chr(0b111000 + 0o54) + chr(5547 - 5446) + '\143' + chr(111) + chr(0b1010100 + 0o20) + '\145')('\165' + chr(0b1110100) + '\146' + chr(0b100111 + 0o6) + chr(56)): raise u7THKWMj5LoU(xlGH3AobY7B6) else: raise wgf0sgcu_xPL if not yXmtABQ82SPo: return iT8tyTd_ZQ6Z(name=None, version=None, id=None) NynrBQRrmwlP = xL7jrMBhJHOI.y6tm5LzgZc_E(roI3spqORKae(ES5oEprVxulp(b'\x13'), chr(100) + chr(0b111000 + 0o55) + chr(0b1100011) + chr(111) + chr(0b1100100) + '\x65')(chr(4595 - 4478) + chr(116) + chr(1280 - 1178) + chr(0b101 + 0o50) + chr(0b111000)))[nzTpIcepk0o8(chr(637 - 589) + chr(0b101110 + 0o101) + '\062', ord("\x08"))] if not _wH2swAtnMmJ: raise u7THKWMj5LoU(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'g\xef\x80}.\x80\xd1\xc3\x95\xc4\x04\xd3\xa7\xe3\xaf\xeb\xfa\xd0\xe9\x85\xe7\x07\xdem\x1b}?>\x96\xfd\xf8'), chr(0b1100100) + chr(101) + chr(0b1011010 + 0o11) + chr(0b1011011 + 0o24) + chr(0b1001111 + 0o25) + '\145')('\x75' + '\x74' + chr(0b1100110) + chr(45) + chr(56)), roI3spqORKae(ES5oEprVxulp(b'O\xb3\xc6\x16\x08\xc1\xd2\x8c\xaa\xf43\xb9'), '\x64' + '\x65' + '\143' + '\x6f' + chr(2550 - 2450) + chr(8715 - 8614))('\x75' + chr(6394 - 6278) + chr(0b1100110) + chr(45) + chr(2515 - 2459)))(n=NynrBQRrmwlP)) return iT8tyTd_ZQ6Z(name=NynrBQRrmwlP, version=J4eG487sJbAu, id=aBn2CU4a_fQR)
dnanexus/dx-toolkit
src/python/dxpy/executable_builder.py
assert_consistent_regions
def assert_consistent_regions(from_spec, from_command_line, builder_exception): """ Verifies the regions passed with --region CLI argument and the ones specified in regionalOptions are the same (if both CLI and spec were used) """ if from_spec is None or from_command_line is None: return if set(from_spec) != set(from_command_line): raise builder_exception("--region and the 'regionalOptions' key in the JSON file do not agree")
python
def assert_consistent_regions(from_spec, from_command_line, builder_exception): """ Verifies the regions passed with --region CLI argument and the ones specified in regionalOptions are the same (if both CLI and spec were used) """ if from_spec is None or from_command_line is None: return if set(from_spec) != set(from_command_line): raise builder_exception("--region and the 'regionalOptions' key in the JSON file do not agree")
[ "def", "assert_consistent_regions", "(", "from_spec", ",", "from_command_line", ",", "builder_exception", ")", ":", "if", "from_spec", "is", "None", "or", "from_command_line", "is", "None", ":", "return", "if", "set", "(", "from_spec", ")", "!=", "set", "(", "from_command_line", ")", ":", "raise", "builder_exception", "(", "\"--region and the 'regionalOptions' key in the JSON file do not agree\"", ")" ]
Verifies the regions passed with --region CLI argument and the ones specified in regionalOptions are the same (if both CLI and spec were used)
[ "Verifies", "the", "regions", "passed", "with", "--", "region", "CLI", "argument", "and", "the", "ones", "specified", "in", "regionalOptions", "are", "the", "same", "(", "if", "both", "CLI", "and", "spec", "were", "used", ")" ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/executable_builder.py#L155-L163
train
Ensures that the regions passed in from_spec and from_command_line are the same.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8F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S6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b111 + 0o51) + '\157' + chr(0b110001) + chr(0b10111 + 0o34) + '\063', 28133 - 28125), nzTpIcepk0o8(chr(0b101111 + 0o1) + '\157' + '\x33' + '\x33' + '\060', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(1993 - 1882) + '\061' + chr(0b101010 + 0o11) + '\064', 56193 - 56185), nzTpIcepk0o8(chr(48) + chr(111) + chr(49) + '\065' + chr(51), 0b1000), nzTpIcepk0o8(chr(193 - 145) + chr(111) + chr(53) + chr(50), 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(0b10110 + 0o34) + chr(0b100100 + 0o17) + chr(51), 45589 - 45581), nzTpIcepk0o8(chr(1024 - 976) + chr(0b1101111) + chr(0b110110) + '\060', ord("\x08")), nzTpIcepk0o8(chr(0b100000 + 0o20) + '\157' + chr(51) + chr(1263 - 1215) + '\x30', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b1100 + 0o45) + '\061' + '\x32', 0b1000), nzTpIcepk0o8(chr(48) + chr(12088 - 11977) + chr(0b110011) + '\x32' + chr(0b110011), 0b1000), nzTpIcepk0o8(chr(48) + chr(6050 - 5939) + chr(50) + '\x32' + chr(0b101001 + 0o7), 24711 - 24703), nzTpIcepk0o8(chr(48) + '\157' + chr(928 - 879) + '\x34' + chr(1561 - 1509), 0b1000), nzTpIcepk0o8(chr(48) + chr(6769 - 6658) + '\x31' + '\063' + chr(55), 0b1000), nzTpIcepk0o8(chr(488 - 440) + chr(11420 - 11309) + chr(0b10001 + 0o42) + chr(1117 - 1065) + '\x32', 0o10), nzTpIcepk0o8(chr(527 - 479) + '\x6f' + '\x33' + chr(0b110010) + '\x35', 0b1000), nzTpIcepk0o8(chr(0b10100 + 0o34) + chr(111) + chr(0b110100) + chr(0b110000), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b100000 + 0o21) + chr(0b10001 + 0o42), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(9643 - 9532) + chr(51) + '\x34' + '\x35', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(3896 - 3785) + chr(0b110001) + chr(51) + chr(48), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + '\x31' + chr(54) + chr(1896 - 1841), 10906 - 10898), nzTpIcepk0o8(chr(791 - 743) + '\157' + '\x32' + '\x35' + '\063', 0b1000), nzTpIcepk0o8('\060' + chr(5298 - 5187) + chr(0b1111 + 0o41), 56769 - 56761), nzTpIcepk0o8('\x30' + chr(0b1101011 + 0o4) + chr(0b110001) + '\x34' + chr(51), 17864 - 17856), nzTpIcepk0o8('\060' + chr(0b11100 + 0o123) + chr(49) + chr(0b110001) + '\x37', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110001) + chr(0b1111 + 0o50) + chr(53), ord("\x08")), nzTpIcepk0o8(chr(0b100110 + 0o12) + chr(111) + '\062' + chr(849 - 797) + '\x30', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(49) + chr(0b110101 + 0o1) + '\062', 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(51) + '\063' + chr(349 - 297), ord("\x08")), nzTpIcepk0o8(chr(349 - 301) + '\x6f' + chr(50) + chr(0b1111 + 0o42) + '\x37', 5907 - 5899), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(2159 - 2108) + chr(0b110011) + '\x34', 8), nzTpIcepk0o8(chr(0b110000) + chr(0b101101 + 0o102) + '\062' + chr(0b1111 + 0o41) + '\061', 0o10), nzTpIcepk0o8('\x30' + '\x6f' + '\x33' + chr(0b110001) + chr(783 - 730), 0o10), nzTpIcepk0o8(chr(2022 - 1974) + chr(111) + '\061' + chr(0b110011), 8), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(706 - 655) + '\067', 14071 - 14063), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x32' + chr(0b100000 + 0o23) + chr(0b110011 + 0o0), 8), nzTpIcepk0o8('\060' + '\x6f' + chr(0b10000 + 0o42) + chr(0b101 + 0o54) + '\x34', 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + '\x37' + chr(0b1111 + 0o47), 0o10), nzTpIcepk0o8('\060' + chr(7052 - 6941) + chr(2426 - 2375) + chr(0b110101) + chr(0b101001 + 0o14), 0b1000), nzTpIcepk0o8('\x30' + chr(0b111111 + 0o60) + chr(0b101100 + 0o7) + chr(0b100010 + 0o20) + chr(2198 - 2146), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\062' + '\x30' + chr(0b110101), 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b101101 + 0o3) + '\157' + chr(0b11101 + 0o30) + '\x30', ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'u'), '\x64' + chr(0b1100101) + chr(0b110110 + 0o55) + '\157' + '\x64' + chr(0b10000 + 0o125))('\165' + chr(116) + '\x66' + chr(45) + '\070') + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def S3cQAz34mHN7(xfdnYU8jLm4z, U_Gv5TovXuzk, R4XqRldj7DuU): if xfdnYU8jLm4z is None or U_Gv5TovXuzk is None: return if Bvi71nNyvlqO(xfdnYU8jLm4z) != Bvi71nNyvlqO(U_Gv5TovXuzk): raise R4XqRldj7DuU(roI3spqORKae(ES5oEprVxulp(b'v\xf5.\x0eM\xf2_\xaej\xb2\xfe\x00\x7f\x96\xbdE+\xc2*\x12\xcci\x0c!\x1c\xcc=\xac\xfb\xb5\xee\xa3x8\xbb\xe7[\x94\xf4\xec5\xf8(\x03O\xbbz\x93\x05\x9d\xb0\x026\x8e\xb0\x00o\x8ax\x19\xc4tC.\x1a\xd2\x17\xb9'), '\x64' + chr(0b1100101) + chr(0b1100011) + '\157' + chr(7505 - 7405) + chr(0b1001100 + 0o31))('\x75' + '\164' + '\x66' + '\x2d' + chr(0b110011 + 0o5)))
dnanexus/dx-toolkit
src/python/dxpy/executable_builder.py
assert_consistent_reg_options
def assert_consistent_reg_options(exec_type, json_spec, executable_builder_exeception): """ Validates the "regionalOptions" field and verifies all the regions used in "regionalOptions" have the same options. """ reg_options_spec = json_spec.get('regionalOptions') json_fn = 'dxapp.json' if exec_type == 'app' else 'dxworkflow.json' if not isinstance(reg_options_spec, dict): raise executable_builder_exeception("The field 'regionalOptions' in must be a mapping") if not reg_options_spec: raise executable_builder_exeception( "The field 'regionalOptions' in " + json_fn + " must be a non-empty mapping") regional_options_list = list(reg_options_spec.items()) for region, opts_for_region in regional_options_list: if not isinstance(opts_for_region, dict): raise executable_builder_exeception("The field 'regionalOptions['" + region + "']' in " + json_fn + " must be a mapping") if set(opts_for_region.keys()) != set(regional_options_list[0][1].keys()): if set(opts_for_region.keys()) - set(regional_options_list[0][1].keys()): with_key, without_key = region, regional_options_list[0][0] key_name = next(iter(set(opts_for_region.keys()) - set(regional_options_list[0][1].keys()))) else: with_key, without_key = regional_options_list[0][0], region key_name = next(iter(set(regional_options_list[0][1].keys()) - set(opts_for_region.keys()))) raise executable_builder_exeception( "All regions in regionalOptions must specify the same options; " + "%s was given for %s but not for %s" % (key_name, with_key, without_key) ) if exec_type == 'app': for key in opts_for_region: if key in json_spec.get('runSpec', {}): raise executable_builder_exeception( key + " cannot be given in both runSpec and in regional options for " + region)
python
def assert_consistent_reg_options(exec_type, json_spec, executable_builder_exeception): """ Validates the "regionalOptions" field and verifies all the regions used in "regionalOptions" have the same options. """ reg_options_spec = json_spec.get('regionalOptions') json_fn = 'dxapp.json' if exec_type == 'app' else 'dxworkflow.json' if not isinstance(reg_options_spec, dict): raise executable_builder_exeception("The field 'regionalOptions' in must be a mapping") if not reg_options_spec: raise executable_builder_exeception( "The field 'regionalOptions' in " + json_fn + " must be a non-empty mapping") regional_options_list = list(reg_options_spec.items()) for region, opts_for_region in regional_options_list: if not isinstance(opts_for_region, dict): raise executable_builder_exeception("The field 'regionalOptions['" + region + "']' in " + json_fn + " must be a mapping") if set(opts_for_region.keys()) != set(regional_options_list[0][1].keys()): if set(opts_for_region.keys()) - set(regional_options_list[0][1].keys()): with_key, without_key = region, regional_options_list[0][0] key_name = next(iter(set(opts_for_region.keys()) - set(regional_options_list[0][1].keys()))) else: with_key, without_key = regional_options_list[0][0], region key_name = next(iter(set(regional_options_list[0][1].keys()) - set(opts_for_region.keys()))) raise executable_builder_exeception( "All regions in regionalOptions must specify the same options; " + "%s was given for %s but not for %s" % (key_name, with_key, without_key) ) if exec_type == 'app': for key in opts_for_region: if key in json_spec.get('runSpec', {}): raise executable_builder_exeception( key + " cannot be given in both runSpec and in regional options for " + region)
[ "def", "assert_consistent_reg_options", "(", "exec_type", ",", "json_spec", ",", "executable_builder_exeception", ")", ":", "reg_options_spec", "=", "json_spec", ".", "get", "(", "'regionalOptions'", ")", "json_fn", "=", "'dxapp.json'", "if", "exec_type", "==", "'app'", "else", "'dxworkflow.json'", "if", "not", "isinstance", "(", "reg_options_spec", ",", "dict", ")", ":", "raise", "executable_builder_exeception", "(", "\"The field 'regionalOptions' in must be a mapping\"", ")", "if", "not", "reg_options_spec", ":", "raise", "executable_builder_exeception", "(", "\"The field 'regionalOptions' in \"", "+", "json_fn", "+", "\" must be a non-empty mapping\"", ")", "regional_options_list", "=", "list", "(", "reg_options_spec", ".", "items", "(", ")", ")", "for", "region", ",", "opts_for_region", "in", "regional_options_list", ":", "if", "not", "isinstance", "(", "opts_for_region", ",", "dict", ")", ":", "raise", "executable_builder_exeception", "(", "\"The field 'regionalOptions['\"", "+", "region", "+", "\"']' in \"", "+", "json_fn", "+", "\" must be a mapping\"", ")", "if", "set", "(", "opts_for_region", ".", "keys", "(", ")", ")", "!=", "set", "(", "regional_options_list", "[", "0", "]", "[", "1", "]", ".", "keys", "(", ")", ")", ":", "if", "set", "(", "opts_for_region", ".", "keys", "(", ")", ")", "-", "set", "(", "regional_options_list", "[", "0", "]", "[", "1", "]", ".", "keys", "(", ")", ")", ":", "with_key", ",", "without_key", "=", "region", ",", "regional_options_list", "[", "0", "]", "[", "0", "]", "key_name", "=", "next", "(", "iter", "(", "set", "(", "opts_for_region", ".", "keys", "(", ")", ")", "-", "set", "(", "regional_options_list", "[", "0", "]", "[", "1", "]", ".", "keys", "(", ")", ")", ")", ")", "else", ":", "with_key", ",", "without_key", "=", "regional_options_list", "[", "0", "]", "[", "0", "]", ",", "region", "key_name", "=", "next", "(", "iter", "(", "set", "(", "regional_options_list", "[", "0", "]", "[", "1", "]", ".", "keys", "(", ")", ")", "-", "set", "(", "opts_for_region", ".", "keys", "(", ")", ")", ")", ")", "raise", "executable_builder_exeception", "(", "\"All regions in regionalOptions must specify the same options; \"", "+", "\"%s was given for %s but not for %s\"", "%", "(", "key_name", ",", "with_key", ",", "without_key", ")", ")", "if", "exec_type", "==", "'app'", ":", "for", "key", "in", "opts_for_region", ":", "if", "key", "in", "json_spec", ".", "get", "(", "'runSpec'", ",", "{", "}", ")", ":", "raise", "executable_builder_exeception", "(", "key", "+", "\" cannot be given in both runSpec and in regional options for \"", "+", "region", ")" ]
Validates the "regionalOptions" field and verifies all the regions used in "regionalOptions" have the same options.
[ "Validates", "the", "regionalOptions", "field", "and", "verifies", "all", "the", "regions", "used", "in", "regionalOptions", "have", "the", "same", "options", "." ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/executable_builder.py#L166-L200
train
Validates the regionalOptions field and verifies all the regions used in the current workflow are in the same options.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz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n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(48) + '\157' + '\x32' + '\060' + '\x35', 0b1000), nzTpIcepk0o8(chr(0b101110 + 0o2) + chr(111) + chr(0b110111) + chr(0b110110), ord("\x08")), nzTpIcepk0o8(chr(0b100 + 0o54) + chr(0b1101111) + chr(0b110001) + chr(1499 - 1449) + chr(48), 0b1000), nzTpIcepk0o8(chr(731 - 683) + chr(0b1101111) + '\x31' + chr(0b11001 + 0o33), ord("\x08")), nzTpIcepk0o8(chr(0b10010 + 0o36) + '\x6f' + chr(1895 - 1845) + chr(0b110011) + chr(1719 - 1668), 11882 - 11874), nzTpIcepk0o8('\x30' + '\x6f' + '\x33' + chr(50) + chr(0b1100 + 0o50), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(551 - 502) + chr(0b110111) + chr(0b11100 + 0o24), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1100111 + 0o10) + '\062' + '\x30', 20532 - 20524), nzTpIcepk0o8(chr(0b1 + 0o57) + chr(2267 - 2156) + '\063' + '\x33' + chr(0b11001 + 0o34), 0o10), nzTpIcepk0o8('\060' + '\157' + chr(0b10011 + 0o36) + '\x31' + chr(49), 0o10), nzTpIcepk0o8(chr(0b11010 + 0o26) + chr(0b1010110 + 0o31) + '\063' + chr(52) + chr(0b100100 + 0o15), 0b1000), nzTpIcepk0o8('\060' + chr(0b1000110 + 0o51) + '\x32' + chr(0b110001) + '\x30', 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(2697 - 2642) + chr(0b110101), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x31' + chr(0b110011) + chr(0b110001), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(1391 - 1340) + chr(53) + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(4873 - 4762) + chr(2799 - 2746) + '\066', 0o10), nzTpIcepk0o8(chr(749 - 701) + '\x6f' + '\x31' + chr(0b110100) + chr(0b110001), 0o10), nzTpIcepk0o8(chr(1786 - 1738) + chr(0b1111 + 0o140) + chr(51) + '\x36' + chr(0b110111), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x33' + chr(0b10101 + 0o34) + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(236 - 187) + chr(0b110011), ord("\x08")), nzTpIcepk0o8(chr(0b101010 + 0o6) + chr(0b1001111 + 0o40) + chr(50) + chr(1987 - 1934) + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(2179 - 2131) + chr(6506 - 6395) + '\061' + chr(48) + chr(49), 0b1000), nzTpIcepk0o8(chr(0b1111 + 0o41) + chr(0b1101111) + '\061' + '\x35' + '\x32', 3074 - 3066), nzTpIcepk0o8('\060' + chr(10375 - 10264) + '\067' + chr(0b1110 + 0o51), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(51) + chr(50), 0o10), nzTpIcepk0o8('\060' + chr(0b1100010 + 0o15) + chr(0b110010) + chr(0b11011 + 0o33) + '\x32', ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(1701 - 1652) + chr(0b100001 + 0o24) + '\x33', 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(0b1100 + 0o46) + chr(1136 - 1081) + chr(54), ord("\x08")), nzTpIcepk0o8(chr(0b1111 + 0o41) + '\x6f' + chr(0b101100 + 0o10) + '\x35', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\061' + '\064' + chr(0b110101), 0b1000), nzTpIcepk0o8(chr(0b11001 + 0o27) + chr(0b1101111) + chr(1059 - 1008) + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(48) + chr(1339 - 1228) + '\x32' + chr(48) + '\066', 0b1000), nzTpIcepk0o8('\x30' + chr(0b10011 + 0o134) + chr(107 - 54) + '\060', 14381 - 14373), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x32' + chr(862 - 808) + chr(50), 8), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x31' + chr(49) + chr(53), ord("\x08")), nzTpIcepk0o8(chr(442 - 394) + chr(0b1100000 + 0o17) + chr(416 - 367) + '\066' + '\x33', 0o10), nzTpIcepk0o8('\060' + chr(0b11 + 0o154) + chr(52), 54399 - 54391), nzTpIcepk0o8('\x30' + chr(0b1100001 + 0o16) + chr(0b11110 + 0o23) + chr(789 - 736), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110011) + chr(1089 - 1041) + chr(49), 0o10), nzTpIcepk0o8('\060' + chr(833 - 722) + '\x32' + chr(51) + '\x32', 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110101) + '\x30', 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xab'), chr(0b1100100) + '\145' + chr(0b11111 + 0o104) + '\x6f' + chr(0b1100100) + chr(3469 - 3368))(chr(117) + chr(0b100010 + 0o122) + chr(0b1100110) + chr(0b101010 + 0o3) + chr(0b111000)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def cX3L4GpuAxd3(IBE45Lr20OoI, agxi8L4gDzUu, TJqWQyzMg1sg): SSALmBM8yknq = agxi8L4gDzUu.GUKetu4xaGsJ(roI3spqORKae(ES5oEprVxulp(b'\xf7[7e\xf4\xba\x19|\x929\x95\xe1R7\x9a'), chr(100) + chr(101) + chr(0b1011011 + 0o10) + chr(0b101101 + 0o102) + chr(0b1111 + 0o125) + chr(0b1011100 + 0o11))(chr(117) + '\164' + chr(0b1100110) + '\x2d' + chr(0b111000))) GgMHp3tsuHxH = roI3spqORKae(ES5oEprVxulp(b"\xe1F1|\xeb\xfa\x12c\xb2'"), chr(100) + chr(0b1100101) + chr(99) + chr(8490 - 8379) + chr(100) + '\x65')('\165' + chr(116) + chr(0b1011010 + 0o14) + chr(45) + chr(0b111000)) if IBE45Lr20OoI == roI3spqORKae(ES5oEprVxulp(b'\xe4N '), '\144' + chr(0b101111 + 0o66) + '\143' + chr(0b1001000 + 0o47) + chr(0b1001010 + 0o32) + chr(0b101001 + 0o74))(chr(0b1010010 + 0o43) + chr(0b1000010 + 0o62) + chr(0b10000 + 0o126) + chr(0b100111 + 0o6) + chr(56)) else roI3spqORKae(ES5oEprVxulp(b"\xe1F'c\xe9\xbf\x1e|\xb2>\xcf\xe2N6\x87"), chr(236 - 136) + chr(4385 - 4284) + chr(0b1100011) + chr(0b1101111) + chr(0b1100100) + chr(101))(chr(7327 - 7210) + chr(116) + '\146' + chr(0b1010 + 0o43) + chr(2591 - 2535)) if not suIjIS24Zkqw(SSALmBM8yknq, znjnJWK64FDT): raise TJqWQyzMg1sg(roI3spqORKae(ES5oEprVxulp(b'\xd1V5,\xfd\xbd\x1d|\xb9i\xc6\xfaX>\x80A\x0f\x96\xa5D\xdc5\x03Pt\xc1L\x9eL\x0b<\xa6E\xc7>\x07$o\xa4\xba\xe4\x1e=m\xeb\xa4\x11~\xba'), '\144' + chr(0b1010111 + 0o16) + chr(7542 - 7443) + chr(12010 - 11899) + chr(0b1100100) + '\x65')(chr(117) + chr(116) + chr(0b1011100 + 0o12) + chr(0b1010 + 0o43) + chr(949 - 893))) if not SSALmBM8yknq: raise TJqWQyzMg1sg(roI3spqORKae(ES5oEprVxulp(b'\xd1V5,\xfd\xbd\x1d|\xb9i\xc6\xfaX>\x80A\x0f\x96\xa5D\xdc5\x03Pt\xc1L\x9eL\x0b<'), '\144' + chr(0b1011 + 0o132) + chr(4948 - 4849) + '\157' + chr(100) + '\145')(chr(5220 - 5103) + chr(0b111011 + 0o71) + '\146' + chr(0b101101 + 0o0) + '\x38') + GgMHp3tsuHxH + roI3spqORKae(ES5oEprVxulp(b'\xa5S%\x7f\xef\xf4\x1au\xfd(\xc1\xe6R7\xc4K\x0c\x87\xbdr\x8c,\x0bOj\xdb\x05\xd9'), chr(180 - 80) + chr(0b101000 + 0o75) + chr(0b1010011 + 0o20) + '\x6f' + chr(100) + '\145')(chr(117) + chr(116) + '\146' + chr(45) + chr(0b111000))) VGxFvrguJ5nE = H4NoA26ON7iG(SSALmBM8yknq.Y_nNEzH43vXi()) for (SiTpDn8thAb3, getSoKoNv4wD) in VGxFvrguJ5nE: if not suIjIS24Zkqw(getSoKoNv4wD, znjnJWK64FDT): raise TJqWQyzMg1sg(roI3spqORKae(ES5oEprVxulp(b'\xd1V5,\xfd\xbd\x1d|\xb9i\xc6\xfaX>\x80A\x0f\x96\xa5D\xdc5\x03Pt\xc10\x99'), chr(0b1100100) + chr(101) + '\x63' + chr(111) + chr(100) + '\145')('\x75' + chr(0b100100 + 0o120) + '\146' + '\055' + chr(56)) + SiTpDn8thAb3 + roI3spqORKae(ES5oEprVxulp(b'\xa2cw,\xf2\xbaX'), '\144' + '\145' + chr(0b1100011) + chr(0b100000 + 0o117) + '\x64' + '\x65')(chr(0b1001111 + 0o46) + chr(1889 - 1773) + '\146' + chr(0b110 + 0o47) + chr(56)) + GgMHp3tsuHxH + roI3spqORKae(ES5oEprVxulp(b'\xa5S%\x7f\xef\xf4\x1au\xfd(\xc1\xe5\\)\x99G\x0f\x90'), chr(0b1100100) + chr(101) + chr(0b1010010 + 0o21) + '\157' + '\x64' + chr(0b1100101))(chr(117) + chr(0b1100101 + 0o17) + chr(0b1100110) + chr(0b11000 + 0o25) + chr(0b10001 + 0o47))) if Bvi71nNyvlqO(roI3spqORKae(getSoKoNv4wD, roI3spqORKae(ES5oEprVxulp(b'\xee[)\x7f'), '\x64' + chr(0b1100101) + chr(579 - 480) + chr(0b101000 + 0o107) + chr(1096 - 996) + chr(101))(chr(0b1110101) + '\164' + chr(0b1100110) + chr(45) + chr(694 - 638)))()) != Bvi71nNyvlqO(roI3spqORKae(VGxFvrguJ5nE[nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x30', 0o10)][nzTpIcepk0o8('\x30' + '\x6f' + '\x31', ord("\x08"))], roI3spqORKae(ES5oEprVxulp(b'\xee[)\x7f'), chr(3278 - 3178) + '\x65' + '\x63' + chr(6450 - 6339) + chr(0b1100100) + chr(101))('\165' + '\x74' + chr(3633 - 3531) + chr(45) + chr(56)))()): if Bvi71nNyvlqO(roI3spqORKae(getSoKoNv4wD, roI3spqORKae(ES5oEprVxulp(b'\xee[)\x7f'), '\x64' + chr(0b1100101) + chr(99) + chr(111) + chr(0b1100100) + chr(0b110011 + 0o62))(chr(0b1100011 + 0o22) + '\x74' + chr(0b10 + 0o144) + chr(45) + '\x38'))()) - Bvi71nNyvlqO(roI3spqORKae(VGxFvrguJ5nE[nzTpIcepk0o8(chr(0b11 + 0o55) + '\x6f' + chr(0b10110 + 0o32), 8)][nzTpIcepk0o8(chr(0b10010 + 0o36) + chr(0b1101111) + '\x31', 8)], roI3spqORKae(ES5oEprVxulp(b'\xee[)\x7f'), '\x64' + chr(101) + chr(0b1100011) + '\157' + '\x64' + chr(2080 - 1979))(chr(0b11001 + 0o134) + chr(0b1110100) + chr(0b1100110) + chr(851 - 806) + chr(0b1111 + 0o51)))()): (JHgREc0WHY79, b7SbXLdIwc41) = (SiTpDn8thAb3, VGxFvrguJ5nE[nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(1473 - 1425), 8)][nzTpIcepk0o8(chr(0b101010 + 0o6) + chr(0b11100 + 0o123) + '\060', 8)]) K6JG9fE2fxOT = ltB3XhPy2rYf(b8MSkfijeeBr(Bvi71nNyvlqO(getSoKoNv4wD.keys()) - Bvi71nNyvlqO(VGxFvrguJ5nE[nzTpIcepk0o8(chr(48) + chr(0b110100 + 0o73) + chr(48), 8)][nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110001), 8)].keys()))) else: (JHgREc0WHY79, b7SbXLdIwc41) = (VGxFvrguJ5nE[nzTpIcepk0o8('\060' + chr(9619 - 9508) + chr(48), 8)][nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x30', 8)], SiTpDn8thAb3) K6JG9fE2fxOT = ltB3XhPy2rYf(b8MSkfijeeBr(Bvi71nNyvlqO(VGxFvrguJ5nE[nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(48), 8)][nzTpIcepk0o8(chr(1512 - 1464) + '\x6f' + '\x31', 8)].keys()) - Bvi71nNyvlqO(getSoKoNv4wD.keys()))) raise TJqWQyzMg1sg(roI3spqORKae(ES5oEprVxulp(b"\xc4R<,\xe9\xb1\x1fy\xb2'\x92\xa8T7\xc9\\\x04\x90\xa0d\xc2 \x06pj\xc6\x02\xd1K\x16<\xeb]\xc19Sw}\xa4\xf9\xecX),\xef\xbc\x1d0\xae(\x8c\xed\x1d6\x99Z\x08\x98\xa7x\x97a"), chr(0b1001010 + 0o32) + '\145' + chr(0b1100011) + chr(0b110111 + 0o70) + '\144' + chr(0b100000 + 0o105))('\165' + '\x74' + '\x66' + '\055' + '\070') + roI3spqORKae(ES5oEprVxulp(b'\xa0Mp{\xfa\xa7Xw\xb4?\x84\xe6\x1d?\x86\\A\xd2\xba+\xce4\x1e\x1ft\xdd\x1f\x9eC\nn\xa6\r\xc1'), chr(8659 - 8559) + '\145' + chr(99) + chr(111) + chr(0b1011100 + 0o10) + chr(0b1100101))('\165' + chr(2351 - 2235) + '\x66' + chr(0b11100 + 0o21) + '\x38') % (K6JG9fE2fxOT, JHgREc0WHY79, b7SbXLdIwc41)) if IBE45Lr20OoI == roI3spqORKae(ES5oEprVxulp(b'\xe4N '), chr(0b111111 + 0o45) + '\x65' + '\x63' + chr(0b111001 + 0o66) + '\x64' + chr(101))(chr(0b1001100 + 0o51) + '\164' + '\146' + chr(0b101101) + chr(599 - 543)): for QYodcsDtoGq7 in getSoKoNv4wD: if QYodcsDtoGq7 in roI3spqORKae(agxi8L4gDzUu, roI3spqORKae(ES5oEprVxulp(b'\xc2k\x1bi\xef\xa1Lh\xbc\x0e\x92\xc2'), '\144' + chr(101) + chr(99) + chr(12300 - 12189) + chr(5420 - 5320) + chr(0b1100101))(chr(117) + '\x74' + chr(102) + chr(0b10011 + 0o32) + chr(56)))(roI3spqORKae(ES5oEprVxulp(b'\xf7K>_\xeb\xb1\x1b'), chr(0b1100100) + chr(0b101000 + 0o75) + chr(99) + chr(111) + chr(8430 - 8330) + chr(101))(chr(0b10011 + 0o142) + '\x74' + chr(0b1100110) + '\055' + chr(0b111000)), {}): raise TJqWQyzMg1sg(QYodcsDtoGq7 + roI3spqORKae(ES5oEprVxulp(b'\xa5]1b\xf5\xbb\x0c0\xbf,\xc1\xefT/\x8c@A\x9e\xa7+\xce.\x1eW:\xc0\x1e\xd0v\x15y\xe5\x08\xd3#\x17$d\xaf\xba\xf7[7e\xf4\xba\x19|\xfd&\x91\xfcT6\x87]A\x91\xa6y\x8c'), chr(0b1100100) + '\x65' + '\143' + chr(8787 - 8676) + '\x64' + chr(0b1100101))(chr(0b1110101) + chr(9069 - 8953) + chr(0b1000111 + 0o37) + chr(45) + chr(0b1110 + 0o52)) + SiTpDn8thAb3)
dnanexus/dx-toolkit
src/python/dxpy/executable_builder.py
get_enabled_regions
def get_enabled_regions(exec_type, json_spec, from_command_line, executable_builder_exeception): """ Return a list of regions in which the global executable (app or global workflow) will be enabled, based on the "regionalOption" in their JSON specification and/or --region CLI argument used with "dx build". :param exec_type: 'app' or 'globalworkflow' :type json_spec: str. :param json_spec: The contents of dxapp.json or dxworkflow.json :type json_spec: dict or None. :param from_command_line: The regional options specified on the command-line via --region. :type from_command_line: list or None. :param builder_exception: Exception that will be thrown. :type builder_exception: AppBuilderException or WorkflowBuilderException. """ from_spec = json_spec.get('regionalOptions') if from_spec is not None: assert_consistent_reg_options(exec_type, json_spec, executable_builder_exeception) assert_consistent_regions(from_spec, from_command_line, executable_builder_exeception) enabled_regions = None if from_spec is not None: enabled_regions = from_spec.keys() elif from_command_line is not None: enabled_regions = from_command_line return enabled_regions
python
def get_enabled_regions(exec_type, json_spec, from_command_line, executable_builder_exeception): """ Return a list of regions in which the global executable (app or global workflow) will be enabled, based on the "regionalOption" in their JSON specification and/or --region CLI argument used with "dx build". :param exec_type: 'app' or 'globalworkflow' :type json_spec: str. :param json_spec: The contents of dxapp.json or dxworkflow.json :type json_spec: dict or None. :param from_command_line: The regional options specified on the command-line via --region. :type from_command_line: list or None. :param builder_exception: Exception that will be thrown. :type builder_exception: AppBuilderException or WorkflowBuilderException. """ from_spec = json_spec.get('regionalOptions') if from_spec is not None: assert_consistent_reg_options(exec_type, json_spec, executable_builder_exeception) assert_consistent_regions(from_spec, from_command_line, executable_builder_exeception) enabled_regions = None if from_spec is not None: enabled_regions = from_spec.keys() elif from_command_line is not None: enabled_regions = from_command_line return enabled_regions
[ "def", "get_enabled_regions", "(", "exec_type", ",", "json_spec", ",", "from_command_line", ",", "executable_builder_exeception", ")", ":", "from_spec", "=", "json_spec", ".", "get", "(", "'regionalOptions'", ")", "if", "from_spec", "is", "not", "None", ":", "assert_consistent_reg_options", "(", "exec_type", ",", "json_spec", ",", "executable_builder_exeception", ")", "assert_consistent_regions", "(", "from_spec", ",", "from_command_line", ",", "executable_builder_exeception", ")", "enabled_regions", "=", "None", "if", "from_spec", "is", "not", "None", ":", "enabled_regions", "=", "from_spec", ".", "keys", "(", ")", "elif", "from_command_line", "is", "not", "None", ":", "enabled_regions", "=", "from_command_line", "return", "enabled_regions" ]
Return a list of regions in which the global executable (app or global workflow) will be enabled, based on the "regionalOption" in their JSON specification and/or --region CLI argument used with "dx build". :param exec_type: 'app' or 'globalworkflow' :type json_spec: str. :param json_spec: The contents of dxapp.json or dxworkflow.json :type json_spec: dict or None. :param from_command_line: The regional options specified on the command-line via --region. :type from_command_line: list or None. :param builder_exception: Exception that will be thrown. :type builder_exception: AppBuilderException or WorkflowBuilderException.
[ "Return", "a", "list", "of", "regions", "in", "which", "the", "global", "executable", "(", "app", "or", "global", "workflow", ")", "will", "be", "enabled", "based", "on", "the", "regionalOption", "in", "their", "JSON", "specification", "and", "/", "or", "--", "region", "CLI", "argument", "used", "with", "dx", "build", "." ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/executable_builder.py#L202-L231
train
Returns a list of regions that are enabled for the global executable.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO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A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\x30' + chr(477 - 366) + chr(0b101100 + 0o5) + '\x33' + '\x33', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(2515 - 2404) + chr(582 - 533) + chr(0b110010) + chr(1069 - 1016), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b111101 + 0o62) + chr(0b11110 + 0o23) + chr(0b1110 + 0o42) + chr(1316 - 1265), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(49) + chr(1921 - 1872) + chr(0b10010 + 0o36), ord("\x08")), nzTpIcepk0o8(chr(908 - 860) + '\x6f' + chr(0b110010) + chr(0b100111 + 0o17) + chr(0b110110), 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(0b101110 + 0o3) + chr(55) + chr(0b11100 + 0o26), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1011110 + 0o21) + chr(1849 - 1799) + '\066' + chr(49), 0b1000), nzTpIcepk0o8('\060' + '\157' + chr(0b110001) + '\061' + '\064', 0b1000), nzTpIcepk0o8(chr(0b1001 + 0o47) + '\x6f' + chr(0b101111 + 0o4) + chr(0b110110) + chr(0b110011), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(890 - 841) + chr(1489 - 1441) + '\x30', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1001110 + 0o41) + '\062' + chr(0b101000 + 0o11) + chr(0b10101 + 0o36), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b10010 + 0o45) + '\x32', 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110011) + '\x36', 60671 - 60663), nzTpIcepk0o8(chr(48) + '\157' + '\x31' + chr(0b101010 + 0o12) + chr(0b1001 + 0o50), ord("\x08")), nzTpIcepk0o8(chr(1526 - 1478) + chr(0b1101111) + chr(841 - 792) + '\067', 0o10), nzTpIcepk0o8('\x30' + chr(7084 - 6973) + chr(49) + chr(0b110000) + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(1600 - 1552) + chr(0b11000 + 0o127) + chr(1257 - 1207) + chr(49) + chr(0b110101), 0o10), nzTpIcepk0o8(chr(0b101010 + 0o6) + '\x6f' + chr(102 - 52) + chr(0b110100) + '\061', 0b1000), nzTpIcepk0o8(chr(652 - 604) + chr(3602 - 3491) + '\061' + '\067' + chr(48), ord("\x08")), nzTpIcepk0o8(chr(0b100010 + 0o16) + '\x6f' + '\063' + chr(50) + chr(55), 0o10), nzTpIcepk0o8(chr(48) + chr(0b10001 + 0o136) + chr(0b110010) + chr(48) + '\066', ord("\x08")), nzTpIcepk0o8(chr(0b101110 + 0o2) + chr(9714 - 9603) + chr(0b100000 + 0o23) + chr(1704 - 1655) + chr(0b110101), 28453 - 28445), nzTpIcepk0o8(chr(0b110000) + chr(0b101110 + 0o101) + chr(50) + chr(2120 - 2069) + '\066', 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110110) + chr(0b110011), 48065 - 48057), nzTpIcepk0o8(chr(48) + '\157' + '\x32' + '\063' + '\x33', 0b1000), nzTpIcepk0o8('\x30' + chr(8590 - 8479) + chr(511 - 460) + chr(0b10101 + 0o42) + chr(0b100110 + 0o16), 0b1000), nzTpIcepk0o8(chr(2056 - 2008) + '\x6f' + chr(475 - 424) + chr(0b101 + 0o53) + chr(0b110010), 31927 - 31919), nzTpIcepk0o8(chr(0b11111 + 0o21) + chr(5530 - 5419) + chr(49) + chr(0b100100 + 0o17), 0o10), nzTpIcepk0o8(chr(1203 - 1155) + chr(1204 - 1093) + '\061' + chr(0b101100 + 0o12) + chr(54), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + '\062' + '\061', 0b1000), nzTpIcepk0o8(chr(1503 - 1455) + chr(111) + '\x33' + chr(0b110110) + '\066', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1100 + 0o143) + '\061' + '\060' + '\x36', 3392 - 3384), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110101) + chr(51), 0o10), nzTpIcepk0o8(chr(1080 - 1032) + '\157' + chr(51) + chr(2638 - 2584) + chr(0b110100), 0o10), nzTpIcepk0o8(chr(0b0 + 0o60) + chr(0b1101111) + '\x33' + chr(2370 - 2315) + chr(49), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b10110 + 0o34) + '\061', 8), nzTpIcepk0o8(chr(0b1010 + 0o46) + chr(0b1101011 + 0o4) + '\063' + chr(0b110101) + chr(715 - 664), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110001) + chr(0b110011), 8), nzTpIcepk0o8('\x30' + chr(5054 - 4943) + chr(1767 - 1718) + chr(0b10100 + 0o35) + chr(0b110010), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(50) + chr(1212 - 1159) + '\x37', ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + chr(2255 - 2144) + chr(637 - 584) + chr(1856 - 1808), ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'u'), '\144' + chr(0b11000 + 0o115) + chr(0b110011 + 0o60) + '\157' + chr(0b1100100) + chr(101))('\165' + chr(3375 - 3259) + chr(102) + '\x2d' + chr(0b111000)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def uLulUw7hcEEx(IBE45Lr20OoI, agxi8L4gDzUu, U_Gv5TovXuzk, TJqWQyzMg1sg): xfdnYU8jLm4z = agxi8L4gDzUu.GUKetu4xaGsJ(roI3spqORKae(ES5oEprVxulp(b')0$!\xd9\x14\xd0 \xbc0\xffSq\x0f|'), '\144' + chr(101) + chr(0b1100011) + chr(111) + '\144' + chr(0b1100101))(chr(0b1011100 + 0o31) + '\x74' + chr(5227 - 5125) + chr(45) + chr(0b1001 + 0o57))) if xfdnYU8jLm4z is not None: cX3L4GpuAxd3(IBE45Lr20OoI, agxi8L4gDzUu, TJqWQyzMg1sg) S3cQAz34mHN7(xfdnYU8jLm4z, U_Gv5TovXuzk, TJqWQyzMg1sg) V25k9xiAC80M = None if xfdnYU8jLm4z is not None: V25k9xiAC80M = xfdnYU8jLm4z.keys() elif U_Gv5TovXuzk is not None: V25k9xiAC80M = U_Gv5TovXuzk return V25k9xiAC80M
dnanexus/dx-toolkit
src/python/dxpy/bindings/dxanalysis.py
DXAnalysis.describe
def describe(self, fields=None, **kwargs): """ :param fields: dict where the keys are field names that should be returned, and values should be set to True (by default, all fields are returned) :type fields: dict :returns: Description of the analysis :rtype: dict Returns a hash with key-value pairs containing information about the analysis """ describe_input = {} if fields is not None: describe_input['fields'] = fields self._desc = dxpy.api.analysis_describe(self._dxid, describe_input, **kwargs) return self._desc
python
def describe(self, fields=None, **kwargs): """ :param fields: dict where the keys are field names that should be returned, and values should be set to True (by default, all fields are returned) :type fields: dict :returns: Description of the analysis :rtype: dict Returns a hash with key-value pairs containing information about the analysis """ describe_input = {} if fields is not None: describe_input['fields'] = fields self._desc = dxpy.api.analysis_describe(self._dxid, describe_input, **kwargs) return self._desc
[ "def", "describe", "(", "self", ",", "fields", "=", "None", ",", "*", "*", "kwargs", ")", ":", "describe_input", "=", "{", "}", "if", "fields", "is", "not", "None", ":", "describe_input", "[", "'fields'", "]", "=", "fields", "self", ".", "_desc", "=", "dxpy", ".", "api", ".", "analysis_describe", "(", "self", ".", "_dxid", ",", "describe_input", ",", "*", "*", "kwargs", ")", "return", "self", ".", "_desc" ]
:param fields: dict where the keys are field names that should be returned, and values should be set to True (by default, all fields are returned) :type fields: dict :returns: Description of the analysis :rtype: dict Returns a hash with key-value pairs containing information about the analysis
[ ":", "param", "fields", ":", "dict", "where", "the", "keys", "are", "field", "names", "that", "should", "be", "returned", "and", "values", "should", "be", "set", "to", "True", "(", "by", "default", "all", "fields", "are", "returned", ")", ":", "type", "fields", ":", "dict", ":", "returns", ":", "Description", "of", "the", "analysis", ":", "rtype", ":", "dict" ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxanalysis.py#L51-L68
train
Returns the description of the current object.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,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nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b110 + 0o52) + chr(0b1000101 + 0o52) + chr(0b110001) + chr(0b110000) + chr(0b110001), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + '\062' + chr(0b110100) + chr(54 - 3), 31063 - 31055), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\062' + '\062' + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(1627 - 1579) + '\x6f' + '\062' + '\062' + '\061', 8), nzTpIcepk0o8(chr(48) + '\x6f' + '\x33' + '\060', 0b1000), nzTpIcepk0o8(chr(1253 - 1205) + chr(0b1000 + 0o147) + chr(0b10000 + 0o42) + '\067' + chr(0b11011 + 0o25), ord("\x08")), nzTpIcepk0o8('\060' + chr(6017 - 5906) + '\x32' + chr(52) + chr(0b110011), 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x33' + chr(50) + chr(53), 0b1000), nzTpIcepk0o8(chr(48) + chr(11056 - 10945) + '\x33' + '\062', 36823 - 36815), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110001) + chr(705 - 653) + chr(1210 - 1159), 0o10), nzTpIcepk0o8('\060' + '\157' + chr(0b101101 + 0o6) + chr(2402 - 2349) + chr(0b11100 + 0o30), 15105 - 15097), nzTpIcepk0o8(chr(48) + chr(6213 - 6102) + '\063' + chr(0b101001 + 0o10) + chr(50), 0o10), nzTpIcepk0o8(chr(0b101110 + 0o2) + chr(1922 - 1811) + chr(2430 - 2380) + chr(53) + chr(0b111 + 0o56), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1001001 + 0o46) + '\x31', 12389 - 12381), nzTpIcepk0o8(chr(119 - 71) + chr(7186 - 7075) + '\x31' + chr(48) + '\x35', 0b1000), nzTpIcepk0o8('\x30' + chr(956 - 845) + chr(0b110010) + chr(157 - 109) + chr(2287 - 2233), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(3430 - 3319) + chr(52), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110011) + '\067' + '\064', ord("\x08")), nzTpIcepk0o8(chr(0b101 + 0o53) + '\157' + chr(0b1001 + 0o51) + chr(0b10010 + 0o45) + chr(0b110010), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + '\x32' + chr(49) + '\062', 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(1129 - 1077) + chr(51), 17252 - 17244), nzTpIcepk0o8('\x30' + '\157' + chr(0b1111 + 0o47) + '\x34', 0b1000), nzTpIcepk0o8('\060' + chr(0b110011 + 0o74) + chr(0b10001 + 0o42) + chr(49) + chr(0b101000 + 0o12), 8), nzTpIcepk0o8(chr(48) + chr(0b1100100 + 0o13) + chr(0b110010) + chr(51) + chr(308 - 258), ord("\x08")), nzTpIcepk0o8(chr(0b11001 + 0o27) + chr(2151 - 2040) + chr(0b10010 + 0o37) + chr(1631 - 1582) + chr(0b110001), 34809 - 34801), nzTpIcepk0o8('\060' + chr(111) + chr(184 - 132) + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110011) + chr(0b110010) + chr(0b11 + 0o64), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(1527 - 1476) + chr(49) + chr(0b110111 + 0o0), 55223 - 55215), nzTpIcepk0o8(chr(0b100001 + 0o17) + chr(111) + chr(0b110111) + chr(0b101101 + 0o10), 24527 - 24519), nzTpIcepk0o8(chr(0b100101 + 0o13) + '\157' + '\066' + '\x33', 0o10), nzTpIcepk0o8('\x30' + '\x6f' + '\061' + chr(0b110001 + 0o2) + chr(0b110010), 54532 - 54524), nzTpIcepk0o8('\x30' + '\157' + '\063' + '\066' + '\x31', 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110010) + chr(0b100010 + 0o20) + chr(0b110100), 48236 - 48228), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\065' + chr(2023 - 1968), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + '\x31' + chr(1376 - 1326) + '\065', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(3571 - 3460) + chr(0b110010) + chr(0b10000 + 0o46) + chr(53), 0b1000), nzTpIcepk0o8(chr(0b1111 + 0o41) + chr(0b1011011 + 0o24) + chr(249 - 200) + chr(0b110110) + '\x30', 0o10), nzTpIcepk0o8('\x30' + chr(5650 - 5539) + '\x32' + '\x31', 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b10101 + 0o40) + '\062', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110001 + 0o3) + chr(0b110110), 50813 - 50805)][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + '\x6f' + '\x35' + '\060', 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'o'), chr(1867 - 1767) + chr(8246 - 8145) + chr(0b101111 + 0o64) + '\157' + chr(0b1000101 + 0o37) + chr(5490 - 5389))('\165' + '\x74' + chr(0b1100110) + chr(0b0 + 0o55) + chr(56)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def r18okd2eFtJ8(hXMPsSrOQzbh, ZXDdzgbdtBfz=None, **q5n0sHDDTy90): kMxhmRVvaa4G = {} if ZXDdzgbdtBfz is not None: kMxhmRVvaa4G[roI3spqORKae(ES5oEprVxulp(b"'\xca\xf4\xfd|\xcb"), chr(100) + chr(0b101111 + 0o66) + chr(9325 - 9226) + chr(11217 - 11106) + chr(0b1100100) + '\145')(chr(117) + '\x74' + chr(0b1100110) + chr(0b101101) + chr(562 - 506))] = ZXDdzgbdtBfz hXMPsSrOQzbh.Up76sqJenL0f = SsdNdRxXOwsF.api.analysis_describe(hXMPsSrOQzbh.d6KUnRQv6735, kMxhmRVvaa4G, **q5n0sHDDTy90) return roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x14\xd3\xa6\xa7k\xc9\xe9\xb0t/\xdc\xac'), chr(9397 - 9297) + chr(0b1100101) + '\143' + '\157' + chr(0b1100100) + chr(101))('\165' + chr(0b1110100) + '\x66' + '\055' + '\070'))
dnanexus/dx-toolkit
src/python/dxpy/bindings/dxanalysis.py
DXAnalysis.add_tags
def add_tags(self, tags, **kwargs): """ :param tags: Tags to add to the analysis :type tags: list of strings Adds each of the specified tags to the analysis. Takes no action for tags that are already listed for the analysis. """ dxpy.api.analysis_add_tags(self._dxid, {"tags": tags}, **kwargs)
python
def add_tags(self, tags, **kwargs): """ :param tags: Tags to add to the analysis :type tags: list of strings Adds each of the specified tags to the analysis. Takes no action for tags that are already listed for the analysis. """ dxpy.api.analysis_add_tags(self._dxid, {"tags": tags}, **kwargs)
[ "def", "add_tags", "(", "self", ",", "tags", ",", "*", "*", "kwargs", ")", ":", "dxpy", ".", "api", ".", "analysis_add_tags", "(", "self", ".", "_dxid", ",", "{", "\"tags\"", ":", "tags", "}", ",", "*", "*", "kwargs", ")" ]
:param tags: Tags to add to the analysis :type tags: list of strings Adds each of the specified tags to the analysis. Takes no action for tags that are already listed for the analysis.
[ ":", "param", "tags", ":", "Tags", "to", "add", "to", "the", "analysis", ":", "type", "tags", ":", "list", "of", "strings" ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxanalysis.py#L70-L80
train
Adds each of the specified tags to the analysis.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbi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agO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\060' + '\x6f' + '\062' + chr(48), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + '\064' + '\x32', 0o10), nzTpIcepk0o8(chr(0b101101 + 0o3) + chr(0b1011000 + 0o27) + '\067' + '\061', 0b1000), nzTpIcepk0o8('\060' + '\157' + chr(0b10100 + 0o37) + '\x32' + '\x35', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110010) + chr(0b110100) + chr(2352 - 2299), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(51) + chr(1336 - 1288) + chr(154 - 104), 41577 - 41569), nzTpIcepk0o8(chr(424 - 376) + '\x6f' + chr(52) + chr(2441 - 2388), 47799 - 47791), nzTpIcepk0o8(chr(0b110000) + chr(0b1100011 + 0o14) + chr(1991 - 1942) + chr(55), ord("\x08")), nzTpIcepk0o8(chr(0b100010 + 0o16) + chr(3034 - 2923) + '\063' + chr(0b1 + 0o63) + chr(0b11110 + 0o24), 40668 - 40660), nzTpIcepk0o8(chr(0b100001 + 0o17) + chr(0b101110 + 0o101) + '\x31' + chr(0b110011) + '\065', 0o10), nzTpIcepk0o8(chr(0b101001 + 0o7) + chr(0b1101111) + chr(50) + chr(0b110011) + chr(0b1 + 0o62), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(50) + '\x30' + chr(55), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(0b101001 + 0o12) + chr(168 - 113) + '\x31', 0o10), nzTpIcepk0o8('\060' + chr(111) + '\x34' + '\x36', 0o10), nzTpIcepk0o8('\x30' + chr(0b1011110 + 0o21) + chr(0b110011) + chr(0b100001 + 0o24) + chr(55), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\061' + chr(1901 - 1853) + '\060', 0b1000), nzTpIcepk0o8(chr(0b110000 + 0o0) + '\157' + '\x35' + '\x32', 28566 - 28558), nzTpIcepk0o8(chr(0b101010 + 0o6) + chr(0b1011000 + 0o27) + '\x32' + chr(55) + '\063', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(1638 - 1589) + chr(0b110110) + '\x30', 19013 - 19005), nzTpIcepk0o8(chr(1694 - 1646) + chr(0b1011011 + 0o24) + '\x37' + chr(1043 - 993), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(75 - 25) + chr(1508 - 1454) + chr(1417 - 1366), 38316 - 38308), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b101000 + 0o13) + '\x34' + chr(0b1101 + 0o44), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1001111 + 0o40) + chr(51) + '\060' + chr(53), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + '\067' + '\x37', 0b1000), nzTpIcepk0o8(chr(1351 - 1303) + '\157' + '\064', 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(1363 - 1308) + '\063', ord("\x08")), nzTpIcepk0o8(chr(589 - 541) + chr(111) + chr(51) + chr(0b100000 + 0o27) + chr(0b0 + 0o62), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + '\061' + '\x31' + chr(0b110011), 0o10), nzTpIcepk0o8(chr(0b100011 + 0o15) + '\157' + chr(0b110010) + '\060' + chr(1447 - 1392), 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\062' + chr(50), 13352 - 13344), nzTpIcepk0o8(chr(0b110000) + '\157' + '\063' + chr(0b10000 + 0o45) + '\064', ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(0b11010 + 0o27) + chr(637 - 582) + '\065', 0b1000), nzTpIcepk0o8(chr(0b1110 + 0o42) + '\157' + chr(0b11000 + 0o37) + chr(0b110010), 8), nzTpIcepk0o8(chr(0b10100 + 0o34) + chr(111) + '\x32' + chr(739 - 685) + chr(0b111 + 0o54), 8), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b10011 + 0o37) + '\064' + chr(51), 16269 - 16261), nzTpIcepk0o8(chr(0b110000) + chr(9826 - 9715) + '\065' + '\062', 8), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b10 + 0o57) + '\064' + chr(48), 64197 - 64189), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110100) + chr(0b110110), 8), nzTpIcepk0o8(chr(48) + chr(5298 - 5187) + '\061', 0o10), nzTpIcepk0o8('\060' + '\x6f' + '\x33' + '\x31' + chr(2765 - 2710), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110101) + '\x30', 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'>'), chr(0b1100100) + chr(6782 - 6681) + '\x63' + '\x6f' + '\x64' + chr(0b1100101))(chr(4510 - 4393) + '\x74' + chr(102) + chr(936 - 891) + '\070') + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def wWxo3hTWGyrH(hXMPsSrOQzbh, TFpYP2_05oSC, **q5n0sHDDTy90): roI3spqORKae(SsdNdRxXOwsF.api, roI3spqORKae(ES5oEprVxulp(b"qLX\xb9\xdc\xb1L|\xbd<\xff\xe3\xa6R\x8e'Y"), '\144' + '\145' + chr(99) + chr(111) + chr(0b110 + 0o136) + chr(0b100101 + 0o100))(chr(117) + '\164' + chr(102) + chr(0b10001 + 0o34) + chr(56)))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b't\x14r\x80\xcb\x90ty\xd4j\xa8\xb2'), '\144' + '\x65' + chr(0b1100011) + '\157' + '\x64' + '\x65')(chr(0b100011 + 0o122) + '\x74' + chr(0b1100110) + chr(0b10010 + 0o33) + '\070')), {roI3spqORKae(ES5oEprVxulp(b'dC^\xa6'), chr(0b1100100) + chr(101) + '\143' + chr(0b11001 + 0o126) + '\144' + '\x65')(chr(13067 - 12950) + chr(116) + chr(0b1100110) + chr(45) + '\x38'): TFpYP2_05oSC}, **q5n0sHDDTy90)
dnanexus/dx-toolkit
src/python/dxpy/bindings/dxanalysis.py
DXAnalysis.remove_tags
def remove_tags(self, tags, **kwargs): """ :param tags: Tags to remove from the analysis :type tags: list of strings Removes each of the specified tags from the analysis. Takes no action for tags that the analysis does not currently have. """ dxpy.api.analysis_remove_tags(self._dxid, {"tags": tags}, **kwargs)
python
def remove_tags(self, tags, **kwargs): """ :param tags: Tags to remove from the analysis :type tags: list of strings Removes each of the specified tags from the analysis. Takes no action for tags that the analysis does not currently have. """ dxpy.api.analysis_remove_tags(self._dxid, {"tags": tags}, **kwargs)
[ "def", "remove_tags", "(", "self", ",", "tags", ",", "*", "*", "kwargs", ")", ":", "dxpy", ".", "api", ".", "analysis_remove_tags", "(", "self", ".", "_dxid", ",", "{", "\"tags\"", ":", "tags", "}", ",", "*", "*", "kwargs", ")" ]
:param tags: Tags to remove from the analysis :type tags: list of strings Removes each of the specified tags from the analysis. Takes no action for tags that the analysis does not currently have.
[ ":", "param", "tags", ":", "Tags", "to", "remove", "from", "the", "analysis", ":", "type", "tags", ":", "list", "of", "strings" ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxanalysis.py#L82-L92
train
Removes the specified tags from the analysis.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi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5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(48) + '\157' + chr(49) + '\x37' + chr(53), ord("\x08")), nzTpIcepk0o8(chr(2122 - 2074) + '\x6f' + '\x32' + '\x37' + chr(0b101000 + 0o15), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(50) + chr(380 - 332) + '\067', 0o10), nzTpIcepk0o8(chr(0b10 + 0o56) + chr(0b1101111) + chr(0b110011) + chr(1274 - 1222), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(720 - 671) + '\064' + '\x35', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(2182 - 2132) + chr(0b110110) + chr(392 - 343), ord("\x08")), nzTpIcepk0o8(chr(1073 - 1025) + '\157' + chr(0b110010 + 0o0) + chr(1595 - 1544) + chr(49), ord("\x08")), nzTpIcepk0o8(chr(0b110000 + 0o0) + chr(4880 - 4769) + '\x33', ord("\x08")), nzTpIcepk0o8(chr(1381 - 1333) + '\157' + '\062' + chr(0b110110 + 0o1) + chr(0b101010 + 0o7), 0o10), nzTpIcepk0o8('\x30' + chr(0b1111 + 0o140) + '\062' + chr(54), ord("\x08")), nzTpIcepk0o8(chr(0b101101 + 0o3) + '\157' + chr(0b11010 + 0o34) + chr(49), ord("\x08")), nzTpIcepk0o8(chr(1128 - 1080) + chr(0b101100 + 0o103) + '\062' + chr(0b110000 + 0o7) + chr(0b11001 + 0o31), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(5598 - 5487) + chr(0b110011) + chr(0b101100 + 0o6), 26025 - 26017), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(50) + chr(54) + chr(1740 - 1689), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(1248 - 1198) + chr(53) + chr(0b110 + 0o61), 17741 - 17733), nzTpIcepk0o8(chr(48) + chr(0b100111 + 0o110) + chr(53) + chr(0b1110 + 0o46), 0b1000), nzTpIcepk0o8(chr(0b100001 + 0o17) + chr(0b1101111) + chr(1529 - 1479) + '\x31' + '\x37', 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(51) + chr(49) + '\x36', 33302 - 33294), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b101011 + 0o5), 0b1000), nzTpIcepk0o8('\x30' + chr(3617 - 3506) + chr(539 - 489) + '\x36' + '\x31', 8), nzTpIcepk0o8(chr(0b11101 + 0o23) + chr(0b111000 + 0o67) + '\x33' + chr(0b11000 + 0o34) + chr(0b110110), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(10513 - 10402) + chr(49) + '\060' + chr(0b101011 + 0o6), 0o10), nzTpIcepk0o8('\060' + '\157' + '\061' + chr(0b1 + 0o64) + '\x37', 0o10), nzTpIcepk0o8(chr(1310 - 1262) + chr(111) + chr(0b0 + 0o61) + chr(0b10100 + 0o42) + chr(0b101011 + 0o10), 10724 - 10716), nzTpIcepk0o8(chr(2264 - 2216) + chr(0b1101111) + chr(139 - 88) + '\x31' + '\x37', 64446 - 64438), nzTpIcepk0o8(chr(1660 - 1612) + '\157' + chr(0b110010) + chr(0b110101) + '\x33', 0o10), nzTpIcepk0o8(chr(1021 - 973) + chr(0b101110 + 0o101) + chr(0b11100 + 0o26) + '\064' + chr(278 - 226), 58260 - 58252), nzTpIcepk0o8('\060' + chr(4532 - 4421) + chr(274 - 223) + chr(48) + '\062', 37121 - 37113), nzTpIcepk0o8(chr(48) + chr(0b1011 + 0o144) + chr(1239 - 1184) + chr(1530 - 1476), 2129 - 2121), nzTpIcepk0o8(chr(48) + chr(0b1000110 + 0o51) + '\061' + '\x34' + chr(0b1010 + 0o46), 58171 - 58163), nzTpIcepk0o8('\x30' + chr(7119 - 7008) + '\062' + chr(0b0 + 0o66), 8), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b11001 + 0o32) + chr(49) + '\x36', 8), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110011) + chr(1035 - 985) + chr(2447 - 2394), 62692 - 62684), nzTpIcepk0o8('\060' + chr(111) + chr(51) + chr(0b110010) + '\x34', ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + '\x31' + chr(1519 - 1465) + '\065', 17742 - 17734), nzTpIcepk0o8('\060' + chr(111) + '\x33' + chr(48) + chr(52), 0o10), nzTpIcepk0o8('\060' + chr(7078 - 6967) + chr(399 - 348) + '\x37' + '\x34', 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b101110 + 0o4) + '\x30' + chr(0b100011 + 0o20), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110010) + chr(52) + chr(51), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(146 - 96) + '\062' + chr(50), 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + chr(111) + '\x35' + chr(1067 - 1019), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'S'), '\144' + '\x65' + '\143' + chr(0b11110 + 0o121) + '\x64' + chr(0b101111 + 0o66))('\x75' + '\164' + chr(1635 - 1533) + chr(0b101101) + '\x38') + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def FZakyp0UKRsK(hXMPsSrOQzbh, TFpYP2_05oSC, **q5n0sHDDTy90): roI3spqORKae(SsdNdRxXOwsF.api, roI3spqORKae(ES5oEprVxulp(b'\x1c\xd3\xe6p\x1c\xc2\xf0p\xe6dT\xd7u\xc5\xcas\xfb\xafg\xc2'), chr(1402 - 1302) + '\x65' + '\x63' + chr(1214 - 1103) + chr(9879 - 9779) + '\x65')(chr(0b1110101) + chr(0b1110100) + chr(6142 - 6040) + '\055' + chr(56)))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x19\x8b\xccI\x0b\xe3\xc8u\x8f!\x02\x8f'), chr(0b1100 + 0o130) + chr(5173 - 5072) + chr(5817 - 5718) + chr(111) + chr(1032 - 932) + '\x65')('\x75' + chr(0b1110100) + '\x66' + chr(158 - 113) + '\x38')), {roI3spqORKae(ES5oEprVxulp(b'\t\xdc\xe0o'), '\x64' + '\x65' + chr(0b1100011) + chr(111) + chr(100) + '\145')(chr(0b10100 + 0o141) + chr(0b101110 + 0o106) + chr(0b1100110) + '\055' + chr(0b101111 + 0o11)): TFpYP2_05oSC}, **q5n0sHDDTy90)
dnanexus/dx-toolkit
src/python/dxpy/bindings/dxanalysis.py
DXAnalysis.set_properties
def set_properties(self, properties, **kwargs): """ :param properties: Property names and values given as key-value pairs of strings :type properties: dict Given key-value pairs in *properties* for property names and values, the properties are set on the analysis for the given property names. Any property with a value of :const:`None` indicates the property will be deleted. .. note:: Any existing properties not mentioned in *properties* are not modified by this method. """ dxpy.api.analysis_set_properties(self._dxid, {"properties": properties}, **kwargs)
python
def set_properties(self, properties, **kwargs): """ :param properties: Property names and values given as key-value pairs of strings :type properties: dict Given key-value pairs in *properties* for property names and values, the properties are set on the analysis for the given property names. Any property with a value of :const:`None` indicates the property will be deleted. .. note:: Any existing properties not mentioned in *properties* are not modified by this method. """ dxpy.api.analysis_set_properties(self._dxid, {"properties": properties}, **kwargs)
[ "def", "set_properties", "(", "self", ",", "properties", ",", "*", "*", "kwargs", ")", ":", "dxpy", ".", "api", ".", "analysis_set_properties", "(", "self", ".", "_dxid", ",", "{", "\"properties\"", ":", "properties", "}", ",", "*", "*", "kwargs", ")" ]
:param properties: Property names and values given as key-value pairs of strings :type properties: dict Given key-value pairs in *properties* for property names and values, the properties are set on the analysis for the given property names. Any property with a value of :const:`None` indicates the property will be deleted. .. note:: Any existing properties not mentioned in *properties* are not modified by this method.
[ ":", "param", "properties", ":", "Property", "names", "and", "values", "given", "as", "key", "-", "value", "pairs", "of", "strings", ":", "type", "properties", ":", "dict" ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxanalysis.py#L94-L109
train
Sets the properties of the current analysis for the given key - value pairs.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra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CpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\060' + '\x6f' + chr(49) + chr(51) + chr(0b101111 + 0o5), ord("\x08")), nzTpIcepk0o8(chr(1823 - 1775) + '\157' + '\x31' + chr(55) + '\x36', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(6806 - 6695) + chr(50) + chr(0b110000) + chr(0b110101), 15024 - 15016), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b10010 + 0o37) + '\063' + chr(0b110000), 0o10), nzTpIcepk0o8(chr(0b100010 + 0o16) + chr(0b1101001 + 0o6) + chr(422 - 372) + chr(0b110011) + chr(53), 0b1000), nzTpIcepk0o8(chr(599 - 551) + '\157' + chr(0b110010) + chr(0b110011) + chr(0b1111 + 0o46), 8), nzTpIcepk0o8('\060' + '\157' + chr(0b110010) + '\x37' + chr(51), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(50) + chr(0b11110 + 0o24) + chr(1953 - 1905), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + '\x31' + '\x35' + chr(2718 - 2664), ord("\x08")), nzTpIcepk0o8(chr(1579 - 1531) + '\157' + '\061' + chr(0b11000 + 0o34) + chr(333 - 285), 0o10), nzTpIcepk0o8(chr(0b10 + 0o56) + '\157' + chr(1182 - 1130) + '\x31', ord("\x08")), nzTpIcepk0o8(chr(272 - 224) + chr(0b100010 + 0o115) + chr(51) + chr(2226 - 2175) + chr(774 - 726), 0o10), nzTpIcepk0o8(chr(48) + chr(1996 - 1885) + chr(0b110010) + chr(51) + chr(0b110011), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(50) + chr(2478 - 2428) + '\062', ord("\x08")), nzTpIcepk0o8(chr(1246 - 1198) + '\x6f' + chr(49) + '\x36' + chr(162 - 113), 61439 - 61431), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110011) + chr(49) + chr(0b110001), 24163 - 24155), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b10111 + 0o32) + chr(0b100 + 0o55) + '\x33', 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110010) + chr(0b110010) + '\x32', 8), nzTpIcepk0o8('\060' + chr(11828 - 11717) + chr(0b110011) + chr(52), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110111) + '\067', 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(1470 - 1419) + chr(0b101100 + 0o4) + '\066', 19092 - 19084), nzTpIcepk0o8(chr(0b10 + 0o56) + chr(8730 - 8619) + '\x33' + chr(55) + '\x31', 0b1000), nzTpIcepk0o8(chr(0b100011 + 0o15) + chr(0b1010110 + 0o31) + chr(50) + '\x33' + chr(0b110101 + 0o0), 8), nzTpIcepk0o8(chr(109 - 61) + chr(0b0 + 0o157) + chr(0b110011) + chr(0b110011) + '\063', 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(1456 - 1405) + chr(51) + chr(0b10011 + 0o36), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110001) + chr(0b110010) + chr(0b111 + 0o54), ord("\x08")), nzTpIcepk0o8(chr(1243 - 1195) + '\x6f' + '\062' + '\062' + chr(323 - 275), 8), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(1945 - 1895) + chr(54) + chr(0b100000 + 0o20), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110011) + '\062' + chr(52), 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(51) + '\067' + '\x37', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b11111 + 0o22) + chr(2646 - 2593) + '\x36', 8), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110011) + chr(1984 - 1936) + chr(0b110001), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(0b110010) + chr(1855 - 1803) + chr(0b110000), 54464 - 54456), nzTpIcepk0o8(chr(48) + chr(8597 - 8486) + chr(0b110101), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x33' + chr(0b101111 + 0o4) + chr(1854 - 1799), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + '\063' + chr(0b110111) + chr(51), 8446 - 8438), nzTpIcepk0o8(chr(0b11011 + 0o25) + chr(111) + chr(0b110010) + chr(0b110000 + 0o1) + '\064', 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x32' + '\x33' + chr(2220 - 2171), 18770 - 18762), nzTpIcepk0o8(chr(48) + chr(0b1100000 + 0o17) + chr(0b10 + 0o57) + '\064' + chr(50), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(1195 - 1144) + '\x35' + chr(0b110100), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + chr(0b1101011 + 0o4) + chr(0b110101) + chr(0b10101 + 0o33), ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'r'), chr(0b1100100) + chr(101) + chr(99) + chr(0b101011 + 0o104) + '\x64' + chr(101))('\x75' + '\x74' + '\x66' + '\055' + '\x38') + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def _A8qWiiAVEqQ(hXMPsSrOQzbh, UtZvTnutzMHg, **q5n0sHDDTy90): roI3spqORKae(SsdNdRxXOwsF.api, roI3spqORKae(ES5oEprVxulp(b'=\x10\xe44\xe4\xee\xd2\xe31\x13D\xac\xc4\xe2\x03\xa6;\xf7nK\xaf\x9c\xee'), '\144' + chr(0b1100101) + '\x63' + chr(0b1101111) + chr(2274 - 2174) + '\145')(chr(0b1110101) + chr(116) + chr(0b1100110) + chr(468 - 423) + '\070'))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'8H\xce\r\xf3\xcf\xea\xe6XW\x12\xed'), chr(0b1100100) + chr(101) + chr(1037 - 938) + '\157' + chr(0b11 + 0o141) + chr(0b101 + 0o140))('\x75' + chr(116) + chr(6041 - 5939) + chr(45) + chr(0b111000))), {roI3spqORKae(ES5oEprVxulp(b',\x0c\xea(\xf8\xef\xcf\xf9\x0b\x13'), '\x64' + chr(0b1010100 + 0o21) + '\x63' + chr(0b1101111) + '\x64' + chr(101))(chr(0b1000 + 0o155) + chr(10186 - 10070) + chr(102) + '\x2d' + chr(0b11001 + 0o37)): UtZvTnutzMHg}, **q5n0sHDDTy90)
dnanexus/dx-toolkit
src/python/dxpy/bindings/dxanalysis.py
DXAnalysis.get_output_ref
def get_output_ref(self, field, index=None, metadata=None): ''' :param field: Output field name of this analysis :type field: string :param index: If the referenced field is an array, optionally specify an index (starting from 0) to indicate a particular member of the array :type index: int :param metadata: If the referenced field is of a data object class, a string indicating the metadata that should be read, e.g. "name", "properties.propkey", "details.refgenome" :type metadata: string Returns a dict containing a valid reference to an output of this analysis. ''' link = {"$dnanexus_link": {"analysis": self._dxid, "field": field}} if index is not None: link["$dnanexus_link"]["index"] = index if metadata is not None: link["$dnanexus_link"]["metadata"] = metadata return link
python
def get_output_ref(self, field, index=None, metadata=None): ''' :param field: Output field name of this analysis :type field: string :param index: If the referenced field is an array, optionally specify an index (starting from 0) to indicate a particular member of the array :type index: int :param metadata: If the referenced field is of a data object class, a string indicating the metadata that should be read, e.g. "name", "properties.propkey", "details.refgenome" :type metadata: string Returns a dict containing a valid reference to an output of this analysis. ''' link = {"$dnanexus_link": {"analysis": self._dxid, "field": field}} if index is not None: link["$dnanexus_link"]["index"] = index if metadata is not None: link["$dnanexus_link"]["metadata"] = metadata return link
[ "def", "get_output_ref", "(", "self", ",", "field", ",", "index", "=", "None", ",", "metadata", "=", "None", ")", ":", "link", "=", "{", "\"$dnanexus_link\"", ":", "{", "\"analysis\"", ":", "self", ".", "_dxid", ",", "\"field\"", ":", "field", "}", "}", "if", "index", "is", "not", "None", ":", "link", "[", "\"$dnanexus_link\"", "]", "[", "\"index\"", "]", "=", "index", "if", "metadata", "is", "not", "None", ":", "link", "[", "\"$dnanexus_link\"", "]", "[", "\"metadata\"", "]", "=", "metadata", "return", "link" ]
:param field: Output field name of this analysis :type field: string :param index: If the referenced field is an array, optionally specify an index (starting from 0) to indicate a particular member of the array :type index: int :param metadata: If the referenced field is of a data object class, a string indicating the metadata that should be read, e.g. "name", "properties.propkey", "details.refgenome" :type metadata: string Returns a dict containing a valid reference to an output of this analysis.
[ ":", "param", "field", ":", "Output", "field", "name", "of", "this", "analysis", ":", "type", "field", ":", "string", ":", "param", "index", ":", "If", "the", "referenced", "field", "is", "an", "array", "optionally", "specify", "an", "index", "(", "starting", "from", "0", ")", "to", "indicate", "a", "particular", "member", "of", "the", "array", ":", "type", "index", ":", "int", ":", "param", "metadata", ":", "If", "the", "referenced", "field", "is", "of", "a", "data", "object", "class", "a", "string", "indicating", "the", "metadata", "that", "should", "be", "read", "e", ".", "g", ".", "name", "properties", ".", "propkey", "details", ".", "refgenome", ":", "type", "metadata", ":", "string" ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxanalysis.py#L148-L165
train
Returns a dictionary containing a valid reference to an output of this analysis.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIs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,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b100000 + 0o20) + chr(10761 - 10650) + chr(0b10110 + 0o35) + chr(1899 - 1851) + chr(0b110 + 0o55), ord("\x08")), nzTpIcepk0o8(chr(2233 - 2185) + '\157' + chr(0b0 + 0o62) + chr(52) + chr(55), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\063' + chr(0b110101) + '\067', 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(2567 - 2516) + '\061', 0o10), nzTpIcepk0o8(chr(48) + chr(0b1011110 + 0o21) + chr(0b1110 + 0o43) + chr(0b110001) + '\060', 15116 - 15108), nzTpIcepk0o8(chr(0b10110 + 0o32) + chr(0b1000000 + 0o57) + '\063' + '\062' + '\061', 59800 - 59792), nzTpIcepk0o8('\x30' + '\x6f' + chr(1700 - 1650) + chr(1671 - 1617) + chr(51), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b101 + 0o55) + chr(0b10110 + 0o37) + '\066', 0o10), nzTpIcepk0o8(chr(1125 - 1077) + '\x6f' + '\062' + chr(0b110011) + chr(0b110110), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(6757 - 6646) + '\x36' + chr(0b110000), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x33' + chr(0b11000 + 0o30) + chr(74 - 19), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(11740 - 11629) + chr(0b10101 + 0o34) + chr(0b110111), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b101001 + 0o11) + chr(0b1110 + 0o47) + chr(50), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(1900 - 1789) + chr(0b110000 + 0o3) + chr(0b110100) + chr(1775 - 1727), 0b1000), nzTpIcepk0o8(chr(1188 - 1140) + chr(0b1101111) + chr(49) + '\067' + chr(1417 - 1362), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + '\062' + chr(0b110011) + chr(49), 5156 - 5148), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110100) + chr(0b110110), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x33' + chr(0b10010 + 0o37) + chr(2247 - 2192), 36349 - 36341), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110010) + '\064' + chr(0b100 + 0o57), 0b1000), nzTpIcepk0o8(chr(0b100111 + 0o11) + chr(0b1001100 + 0o43) + chr(51) + '\063' + chr(49), 43486 - 43478), nzTpIcepk0o8('\060' + chr(111) + chr(50) + chr(0b1001 + 0o52) + '\062', ord("\x08")), nzTpIcepk0o8(chr(0b1001 + 0o47) + chr(0b110111 + 0o70) + chr(0b110001) + chr(0b100111 + 0o17) + chr(53), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(1811 - 1762) + chr(53) + chr(0b110101), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110010) + chr(0b110100 + 0o3), 5364 - 5356), nzTpIcepk0o8('\x30' + chr(111) + '\x32' + chr(1664 - 1616) + chr(199 - 145), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x32', 30943 - 30935), nzTpIcepk0o8('\x30' + '\157' + '\x31' + chr(0b11100 + 0o30), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x34' + chr(0b1110 + 0o43), 0b1000), nzTpIcepk0o8(chr(0b100 + 0o54) + chr(0b1101111) + '\x36', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1000100 + 0o53) + chr(0b110011) + chr(0b101010 + 0o6) + chr(2237 - 2183), 4091 - 4083), nzTpIcepk0o8(chr(48) + '\x6f' + chr(1976 - 1927) + chr(0b110010) + chr(0b1000 + 0o57), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1001011 + 0o44) + chr(329 - 280) + chr(164 - 109) + chr(52), 56412 - 56404), nzTpIcepk0o8(chr(0b11001 + 0o27) + chr(111) + chr(169 - 120) + chr(62 - 12), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b100110 + 0o111) + chr(1663 - 1612) + chr(55) + '\x31', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\066' + '\x36', 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(1694 - 1639) + chr(0b100010 + 0o22), 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110001) + chr(1396 - 1341) + '\x33', 0b1000), nzTpIcepk0o8('\060' + '\157' + '\x31' + chr(0b110101) + '\061', ord("\x08")), nzTpIcepk0o8(chr(332 - 284) + chr(4622 - 4511) + chr(49) + chr(54), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b11110 + 0o121) + chr(0b11111 + 0o22) + chr(0b100101 + 0o16) + chr(0b11010 + 0o27), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + chr(9146 - 9035) + chr(0b110101) + chr(591 - 543), 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xed'), '\x64' + chr(0b1100101) + chr(99) + chr(0b1101111) + '\x64' + chr(7741 - 7640))('\165' + chr(0b1110100) + '\x66' + '\x2d' + '\x38') + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def Esw3qGqIVIXn(hXMPsSrOQzbh, uF4zwjUGNIxR, ZpfN5tSLaZze=None, nmf2TsIJJ3IK=None): QA8TZurzG25Z = {roI3spqORKae(ES5oEprVxulp(b'\xe7\xc3\x81x&\xb4\xcb\xdb\xedo\xabf\xc4\x8b'), '\x64' + chr(0b1100101) + chr(0b10011 + 0o120) + '\157' + chr(0b1100100) + chr(0b1100101))(chr(117) + '\x74' + chr(7778 - 7676) + chr(45) + chr(0b111000)): {roI3spqORKae(ES5oEprVxulp(b'\xa2\xc9\x8eu1\xa2\xda\xdd'), chr(0b1100100) + chr(0b10011 + 0o122) + chr(1750 - 1651) + chr(0b110101 + 0o72) + chr(100) + chr(7707 - 7606))(chr(7393 - 7276) + '\164' + chr(0b1010011 + 0o23) + chr(0b101101) + '\070'): hXMPsSrOQzbh.d6KUnRQv6735, roI3spqORKae(ES5oEprVxulp(b'\xa5\xce\x8au,'), '\x64' + '\x65' + chr(4165 - 4066) + chr(0b1000011 + 0o54) + '\144' + '\145')('\x75' + '\x74' + chr(102) + chr(45) + '\070'): uF4zwjUGNIxR}} if ZpfN5tSLaZze is not None: QA8TZurzG25Z[roI3spqORKae(ES5oEprVxulp(b'\xe7\xc3\x81x&\xb4\xcb\xdb\xedo\xabf\xc4\x8b'), chr(7029 - 6929) + chr(0b1100101) + chr(4835 - 4736) + '\157' + chr(100) + chr(0b1100101))(chr(0b1110101) + chr(0b1110100) + '\x66' + '\055' + '\x38')][roI3spqORKae(ES5oEprVxulp(b'\xaa\xc9\x8b|0'), chr(0b1010101 + 0o17) + chr(0b11 + 0o142) + '\x63' + chr(3931 - 3820) + chr(0b1100100) + chr(6018 - 5917))('\165' + chr(0b1101100 + 0o10) + chr(102) + '\055' + '\070')] = ZpfN5tSLaZze if nmf2TsIJJ3IK is not None: QA8TZurzG25Z[roI3spqORKae(ES5oEprVxulp(b'\xe7\xc3\x81x&\xb4\xcb\xdb\xedo\xabf\xc4\x8b'), chr(100) + '\x65' + '\x63' + chr(0b1101111) + chr(5406 - 5306) + chr(0b1000100 + 0o41))(chr(117) + '\164' + chr(0b1100110) + chr(1077 - 1032) + chr(0b111000))][roI3spqORKae(ES5oEprVxulp(b'\xae\xc2\x9bx,\xb0\xc7\xcf'), chr(100) + chr(0b1000111 + 0o36) + chr(1690 - 1591) + '\157' + chr(0b1100100) + chr(8688 - 8587))(chr(0b1110101) + chr(0b1000110 + 0o56) + chr(102) + chr(0b1000 + 0o45) + chr(0b11011 + 0o35))] = nmf2TsIJJ3IK return QA8TZurzG25Z
dnanexus/dx-toolkit
src/python/dxpy/scripts/dx_build_app.py
_check_suggestions
def _check_suggestions(app_json, publish=False): """ Examines the specified dxapp.json file and warns about any violations of suggestions guidelines. :raises: AppBuilderException for data objects that could not be found """ for input_field in app_json.get('inputSpec', []): for suggestion in input_field.get('suggestions', []): if 'project' in suggestion: try: project = dxpy.api.project_describe(suggestion['project'], {"permissions": True}) if 'PUBLIC' not in project['permissions'] and publish: logger.warn('Project {name} NOT PUBLIC!'.format(name=project['name'])) except dxpy.exceptions.DXAPIError as e: if e.code == 404: logger.warn('Suggested project {name} does not exist, or not accessible by user'.format( name=suggestion['project'])) if 'path' in suggestion: try: check_folder_exists(suggestion['project'], suggestion['path'], '') except ResolutionError as e: logger.warn('Folder {path} could not be found in project {project}'.format( path=suggestion['path'], project=suggestion['project'])) if '$dnanexus_link' in suggestion: if suggestion['$dnanexus_link'].startswith(('file-', 'record-')): try: dnanexus_link = dxpy.describe(suggestion['$dnanexus_link']) except dxpy.exceptions.DXAPIError as e: if e.code == 404: raise dxpy.app_builder.AppBuilderException( 'Suggested object {name} could not be found'.format( name=suggestion['$dnanexus_link'])) except Exception as e: raise dxpy.app_builder.AppBuilderException(str(e)) if 'value' in suggestion and isinstance(suggestion["value"], dict): if '$dnanexus_link' in suggestion['value']: # Check if we have JSON or string if isinstance(suggestion['value']['$dnanexus_link'], dict): if 'project' in suggestion['value']['$dnanexus_link']: try: dxpy.api.project_describe(suggestion['value']['$dnanexus_link']['project']) except dxpy.exceptions.DXAPIError as e: if e.code == 404: logger.warn('Suggested project {name} does not exist, or not accessible by user'.format( name=suggestion['value']['$dnanexus_link']['project'])) elif isinstance(suggestion['value']['$dnanexus_link'], basestring): if suggestion['value']['$dnanexus_link'].startswith(('file-', 'record-')): try: dnanexus_link = dxpy.describe(suggestion['value']['$dnanexus_link']) except dxpy.exceptions.DXAPIError as e: if e.code == 404: raise dxpy.app_builder.AppBuilderException( 'Suggested object {name} could not be found'.format( name=suggestion['value']['$dnanexus_link'])) except Exception as e: raise dxpy.app_builder.AppBuilderException(str(e))
python
def _check_suggestions(app_json, publish=False): """ Examines the specified dxapp.json file and warns about any violations of suggestions guidelines. :raises: AppBuilderException for data objects that could not be found """ for input_field in app_json.get('inputSpec', []): for suggestion in input_field.get('suggestions', []): if 'project' in suggestion: try: project = dxpy.api.project_describe(suggestion['project'], {"permissions": True}) if 'PUBLIC' not in project['permissions'] and publish: logger.warn('Project {name} NOT PUBLIC!'.format(name=project['name'])) except dxpy.exceptions.DXAPIError as e: if e.code == 404: logger.warn('Suggested project {name} does not exist, or not accessible by user'.format( name=suggestion['project'])) if 'path' in suggestion: try: check_folder_exists(suggestion['project'], suggestion['path'], '') except ResolutionError as e: logger.warn('Folder {path} could not be found in project {project}'.format( path=suggestion['path'], project=suggestion['project'])) if '$dnanexus_link' in suggestion: if suggestion['$dnanexus_link'].startswith(('file-', 'record-')): try: dnanexus_link = dxpy.describe(suggestion['$dnanexus_link']) except dxpy.exceptions.DXAPIError as e: if e.code == 404: raise dxpy.app_builder.AppBuilderException( 'Suggested object {name} could not be found'.format( name=suggestion['$dnanexus_link'])) except Exception as e: raise dxpy.app_builder.AppBuilderException(str(e)) if 'value' in suggestion and isinstance(suggestion["value"], dict): if '$dnanexus_link' in suggestion['value']: # Check if we have JSON or string if isinstance(suggestion['value']['$dnanexus_link'], dict): if 'project' in suggestion['value']['$dnanexus_link']: try: dxpy.api.project_describe(suggestion['value']['$dnanexus_link']['project']) except dxpy.exceptions.DXAPIError as e: if e.code == 404: logger.warn('Suggested project {name} does not exist, or not accessible by user'.format( name=suggestion['value']['$dnanexus_link']['project'])) elif isinstance(suggestion['value']['$dnanexus_link'], basestring): if suggestion['value']['$dnanexus_link'].startswith(('file-', 'record-')): try: dnanexus_link = dxpy.describe(suggestion['value']['$dnanexus_link']) except dxpy.exceptions.DXAPIError as e: if e.code == 404: raise dxpy.app_builder.AppBuilderException( 'Suggested object {name} could not be found'.format( name=suggestion['value']['$dnanexus_link'])) except Exception as e: raise dxpy.app_builder.AppBuilderException(str(e))
[ "def", "_check_suggestions", "(", "app_json", ",", "publish", "=", "False", ")", ":", "for", "input_field", "in", "app_json", ".", "get", "(", "'inputSpec'", ",", "[", "]", ")", ":", "for", "suggestion", "in", "input_field", ".", "get", "(", "'suggestions'", ",", "[", "]", ")", ":", "if", "'project'", "in", "suggestion", ":", "try", ":", "project", "=", "dxpy", ".", "api", ".", "project_describe", "(", "suggestion", "[", "'project'", "]", ",", "{", "\"permissions\"", ":", "True", "}", ")", "if", "'PUBLIC'", "not", "in", "project", "[", "'permissions'", "]", "and", "publish", ":", "logger", ".", "warn", "(", "'Project {name} NOT PUBLIC!'", ".", "format", "(", "name", "=", "project", "[", "'name'", "]", ")", ")", "except", "dxpy", ".", "exceptions", ".", "DXAPIError", "as", "e", ":", "if", "e", ".", "code", "==", "404", ":", "logger", ".", "warn", "(", "'Suggested project {name} does not exist, or not accessible by user'", ".", "format", "(", "name", "=", "suggestion", "[", "'project'", "]", ")", ")", "if", "'path'", "in", "suggestion", ":", "try", ":", "check_folder_exists", "(", "suggestion", "[", "'project'", "]", ",", "suggestion", "[", "'path'", "]", ",", "''", ")", "except", "ResolutionError", "as", "e", ":", "logger", ".", "warn", "(", "'Folder {path} could not be found in project {project}'", ".", "format", "(", "path", "=", "suggestion", "[", "'path'", "]", ",", "project", "=", "suggestion", "[", "'project'", "]", ")", ")", "if", "'$dnanexus_link'", "in", "suggestion", ":", "if", "suggestion", "[", "'$dnanexus_link'", "]", ".", "startswith", "(", "(", "'file-'", ",", "'record-'", ")", ")", ":", "try", ":", "dnanexus_link", "=", "dxpy", ".", "describe", "(", "suggestion", "[", "'$dnanexus_link'", "]", ")", "except", "dxpy", ".", "exceptions", ".", "DXAPIError", "as", "e", ":", "if", "e", ".", "code", "==", "404", ":", "raise", "dxpy", ".", "app_builder", ".", "AppBuilderException", "(", "'Suggested object {name} could not be found'", ".", "format", "(", "name", "=", "suggestion", "[", "'$dnanexus_link'", "]", ")", ")", "except", "Exception", "as", "e", ":", "raise", "dxpy", ".", "app_builder", ".", "AppBuilderException", "(", "str", "(", "e", ")", ")", "if", "'value'", "in", "suggestion", "and", "isinstance", "(", "suggestion", "[", "\"value\"", "]", ",", "dict", ")", ":", "if", "'$dnanexus_link'", "in", "suggestion", "[", "'value'", "]", ":", "# Check if we have JSON or string", "if", "isinstance", "(", "suggestion", "[", "'value'", "]", "[", "'$dnanexus_link'", "]", ",", "dict", ")", ":", "if", "'project'", "in", "suggestion", "[", "'value'", "]", "[", "'$dnanexus_link'", "]", ":", "try", ":", "dxpy", ".", "api", ".", "project_describe", "(", "suggestion", "[", "'value'", "]", "[", "'$dnanexus_link'", "]", "[", "'project'", "]", ")", "except", "dxpy", ".", "exceptions", ".", "DXAPIError", "as", "e", ":", "if", "e", ".", "code", "==", "404", ":", "logger", ".", "warn", "(", "'Suggested project {name} does not exist, or not accessible by user'", ".", "format", "(", "name", "=", "suggestion", "[", "'value'", "]", "[", "'$dnanexus_link'", "]", "[", "'project'", "]", ")", ")", "elif", "isinstance", "(", "suggestion", "[", "'value'", "]", "[", "'$dnanexus_link'", "]", ",", "basestring", ")", ":", "if", "suggestion", "[", "'value'", "]", "[", "'$dnanexus_link'", "]", ".", "startswith", "(", "(", "'file-'", ",", "'record-'", ")", ")", ":", "try", ":", "dnanexus_link", "=", "dxpy", ".", "describe", "(", "suggestion", "[", "'value'", "]", "[", "'$dnanexus_link'", "]", ")", "except", "dxpy", ".", "exceptions", ".", "DXAPIError", "as", "e", ":", "if", "e", ".", "code", "==", "404", ":", "raise", "dxpy", ".", "app_builder", ".", "AppBuilderException", "(", "'Suggested object {name} could not be found'", ".", "format", "(", "name", "=", "suggestion", "[", "'value'", "]", "[", "'$dnanexus_link'", "]", ")", ")", "except", "Exception", "as", "e", ":", "raise", "dxpy", ".", "app_builder", ".", "AppBuilderException", "(", "str", "(", "e", ")", ")" ]
Examines the specified dxapp.json file and warns about any violations of suggestions guidelines. :raises: AppBuilderException for data objects that could not be found
[ "Examines", "the", "specified", "dxapp", ".", "json", "file", "and", "warns", "about", "any", "violations", "of", "suggestions", "guidelines", "." ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/scripts/dx_build_app.py#L86-L142
train
Checks the suggestions guidelines for any data objects that can be found in the specified app. json file and raises an exception if any of the violations are not found.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZ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eqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b110000) + chr(0b110101 + 0o72) + '\x31' + chr(52) + '\x30', 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b1110 + 0o45) + '\x32' + '\x30', ord("\x08")), nzTpIcepk0o8(chr(0b101101 + 0o3) + chr(0b1101111) + chr(0b110010) + chr(51) + chr(923 - 875), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + '\x33' + chr(0b110100) + '\061', 9494 - 9486), nzTpIcepk0o8(chr(628 - 580) + chr(0b1101111) + '\063' + chr(0b11100 + 0o24) + chr(0b100011 + 0o23), 7089 - 7081), nzTpIcepk0o8(chr(0b110000) + chr(0b11101 + 0o122) + chr(49) + chr(50) + chr(0b100011 + 0o23), 0b1000), nzTpIcepk0o8('\x30' + chr(261 - 150) + chr(1851 - 1800) + chr(0b110111) + chr(50), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(50) + chr(0b110011) + chr(0b11110 + 0o31), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(51) + chr(50) + chr(51), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x33' + chr(0b110011) + chr(0b10100 + 0o40), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110100) + chr(0b110110), 0b1000), nzTpIcepk0o8(chr(1311 - 1263) + chr(7439 - 7328) + '\063' + chr(180 - 130) + '\x37', 0b1000), nzTpIcepk0o8(chr(1318 - 1270) + chr(2570 - 2459) + chr(0b1010 + 0o47) + '\064' + chr(51), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(2022 - 1972) + chr(0b110000 + 0o1) + chr(53), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110001) + '\063' + '\x32', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x34' + chr(845 - 796), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(2000 - 1950) + chr(1784 - 1730) + '\065', 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(49) + chr(48) + chr(55), ord("\x08")), nzTpIcepk0o8(chr(483 - 435) + chr(1839 - 1728) + chr(0b110011) + '\x36' + '\062', 55370 - 55362), nzTpIcepk0o8(chr(1153 - 1105) + chr(0b1101111) + '\061' + chr(54) + chr(416 - 363), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(49) + chr(0b1 + 0o60) + chr(0b110110), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(51) + '\067' + chr(50), 8), nzTpIcepk0o8('\x30' + chr(8976 - 8865) + chr(1989 - 1939) + chr(0b110001) + chr(0b110101), 8), nzTpIcepk0o8(chr(0b1010 + 0o46) + chr(0b1101111) + chr(0b100110 + 0o15) + chr(48) + chr(2237 - 2187), 48584 - 48576), nzTpIcepk0o8(chr(48) + chr(0b10001 + 0o136) + '\x31' + chr(1810 - 1761) + '\064', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1010101 + 0o32) + chr(0b110010) + chr(0b110011) + chr(1072 - 1019), 29090 - 29082), nzTpIcepk0o8(chr(0b101110 + 0o2) + chr(10282 - 10171) + chr(52) + '\061', 8), nzTpIcepk0o8(chr(48) + chr(0b101101 + 0o102) + '\063' + chr(0b110001 + 0o4) + '\x30', 28767 - 28759), nzTpIcepk0o8(chr(0b10000 + 0o40) + chr(0b111010 + 0o65) + '\063' + '\x35' + chr(877 - 824), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + '\063' + '\060' + chr(2249 - 2194), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(316 - 265) + '\x33' + '\063', 0o10), nzTpIcepk0o8(chr(48) + chr(4463 - 4352) + chr(0b110001) + chr(2472 - 2420) + '\061', 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(0b100 + 0o55) + chr(2809 - 2755) + '\x35', 8), nzTpIcepk0o8(chr(1171 - 1123) + '\157' + chr(0b10110 + 0o34) + chr(245 - 193) + '\061', 0b1000), nzTpIcepk0o8(chr(48) + chr(9687 - 9576) + '\x31' + chr(0b101100 + 0o10) + chr(2512 - 2458), 60717 - 60709), nzTpIcepk0o8('\060' + chr(111) + '\063' + '\x31' + chr(2234 - 2183), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b11110 + 0o121) + chr(0b100010 + 0o20) + chr(0b111 + 0o57) + '\x37', 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + '\x32' + chr(0b110001) + chr(55), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(52) + chr(262 - 212), 0o10), nzTpIcepk0o8(chr(1919 - 1871) + '\x6f' + '\061' + chr(0b110001) + chr(48), 15553 - 15545)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + chr(111) + chr(53) + chr(0b110000), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'N'), chr(0b1100100) + chr(7449 - 7348) + chr(99) + chr(111) + chr(0b1100 + 0o130) + '\x65')('\165' + '\x74' + '\x66' + '\x2d' + '\x38') + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def E9g3OV9eX7Cy(X_c34vTbvwfj, ZRkmNLRvN8fl=nzTpIcepk0o8(chr(0b10111 + 0o31) + '\x6f' + chr(0b110000), 0o10)): for cUyAuo6lpgGr in roI3spqORKae(X_c34vTbvwfj, roI3spqORKae(ES5oEprVxulp(b"'\x85\xd3\x84\xb2#\xce\xe7\xb2\x9bU\x9d"), '\x64' + chr(101) + '\143' + chr(111) + chr(0b1001110 + 0o26) + chr(0b1100101))(chr(233 - 116) + '\164' + '\146' + chr(0b1111 + 0o36) + '\x38'))(roI3spqORKae(ES5oEprVxulp(b'\t\xbe\xe8\x94\xb2\x05\x8a\xfa\xb0'), chr(9733 - 9633) + chr(5066 - 4965) + chr(0b10111 + 0o114) + chr(0b1010010 + 0o35) + '\144' + '\145')(chr(7055 - 6938) + chr(2329 - 2213) + '\x66' + chr(45) + '\070'), []): for jhaMN_kF3p0V in roI3spqORKae(cUyAuo6lpgGr, roI3spqORKae(ES5oEprVxulp(b"'\x85\xd3\x84\xb2#\xce\xe7\xb2\x9bU\x9d"), chr(100) + chr(3518 - 3417) + '\143' + '\157' + chr(0b1000100 + 0o40) + chr(101))(chr(12733 - 12616) + chr(4605 - 4489) + chr(102) + '\x2d' + chr(0b11110 + 0o32)))(roI3spqORKae(ES5oEprVxulp(b'\x13\xa5\xff\x86\xa3%\x8e\xf6\xbc\xb2U'), chr(3293 - 3193) + chr(101) + chr(0b111000 + 0o53) + '\x6f' + chr(7662 - 7562) + chr(101))(chr(117) + '\164' + '\x66' + '\x2d' + '\x38'), []): if roI3spqORKae(ES5oEprVxulp(b'\x10\xa2\xf7\x8b\xa35\x8e'), chr(100) + chr(0b1100101) + chr(9738 - 9639) + chr(0b1100010 + 0o15) + '\x64' + '\145')(chr(0b1110101) + '\x74' + chr(5565 - 5463) + '\x2d' + chr(0b111000)) in jhaMN_kF3p0V: try: mcjejRq_Q0_k = SsdNdRxXOwsF.api.project_describe(jhaMN_kF3p0V[roI3spqORKae(ES5oEprVxulp(b'\x10\xa2\xf7\x8b\xa35\x8e'), '\144' + chr(101) + chr(0b101 + 0o136) + '\157' + '\144' + chr(101))('\165' + chr(116) + chr(0b1100100 + 0o2) + chr(1961 - 1916) + '\x38')], {roI3spqORKae(ES5oEprVxulp(b'\x10\xb5\xea\x8c\xaf%\x89\xf6\xbc\xb2U'), chr(4808 - 4708) + chr(765 - 664) + '\143' + chr(0b0 + 0o157) + chr(0b1011110 + 0o6) + chr(0b1100101))('\165' + chr(0b101100 + 0o110) + '\146' + chr(0b101101) + '\x38'): nzTpIcepk0o8('\x30' + chr(5601 - 5490) + chr(0b100100 + 0o15), 0b1000)}) if roI3spqORKae(ES5oEprVxulp(b'0\x85\xda\xad\x8f\x15'), chr(100) + chr(0b1100101) + chr(8766 - 8667) + chr(0b1101111) + '\144' + '\x65')(chr(117) + '\x74' + chr(0b1100110) + chr(0b101101) + chr(2267 - 2211)) not in mcjejRq_Q0_k[roI3spqORKae(ES5oEprVxulp(b'\x10\xb5\xea\x8c\xaf%\x89\xf6\xbc\xb2U'), '\144' + '\145' + chr(0b110011 + 0o60) + chr(7578 - 7467) + chr(0b1010111 + 0o15) + chr(0b1100101))('\165' + chr(4100 - 3984) + chr(0b1100110) + chr(779 - 734) + chr(0b111000))] and ZRkmNLRvN8fl: roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'\x13\x9a\xc9\xb7\x99\x1e\x8b\xcc\xea\xbaA\xad'), '\x64' + chr(101) + chr(0b110000 + 0o63) + '\x6f' + chr(100) + chr(0b1100101))('\x75' + chr(116) + chr(0b1011101 + 0o11) + '\x2d' + '\x38'))(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'0\xa2\xf7\x8b\xa35\x8e\xbf\xa8\xb2G\xba\x06\xf0zo\xfa\x13\xd2%\x1b\xb8\xc1\x8b\x0f\xbc'), chr(9219 - 9119) + '\x65' + chr(0b1100011) + '\157' + '\144' + chr(5318 - 5217))(chr(0b1110101) + chr(0b1110100) + chr(102) + chr(1451 - 1406) + '\070'), roI3spqORKae(ES5oEprVxulp(b'\x11\xe3\xab\xaa\x81e\x9c\xf0\x82\x83e\x9d'), '\x64' + '\145' + chr(0b1100011) + chr(4550 - 4439) + chr(1381 - 1281) + '\145')('\x75' + chr(0b1110100) + chr(3707 - 3605) + chr(0b101101) + chr(2548 - 2492)))(name=mcjejRq_Q0_k[roI3spqORKae(ES5oEprVxulp(b'\x0e\xb1\xf5\x84'), '\144' + '\145' + '\143' + chr(0b1101111) + chr(100) + chr(0b1010001 + 0o24))(chr(0b10111 + 0o136) + chr(116) + chr(0b101111 + 0o67) + '\x2d' + chr(56))])) except roI3spqORKae(SsdNdRxXOwsF.exceptions, roI3spqORKae(ES5oEprVxulp(b'$\x88\xd9\xb1\x8f\x13\x88\xed\xbc\xae'), chr(0b1011101 + 0o7) + chr(101) + '\x63' + chr(9081 - 8970) + chr(0b1100100) + chr(0b1100101))(chr(3473 - 3356) + chr(10103 - 9987) + '\146' + '\055' + chr(0b100011 + 0o25))) as wgf0sgcu_xPL: if roI3spqORKae(wgf0sgcu_xPL, roI3spqORKae(ES5oEprVxulp(b'-\x9a\xdd\xa6\xa1 \xb1\xac\xbd\xb2c\xee'), chr(0b110100 + 0o60) + chr(0b1100101) + chr(7905 - 7806) + chr(0b1101111) + chr(0b1000001 + 0o43) + chr(0b1100101))(chr(0b1000101 + 0o60) + '\164' + chr(0b1100110) + chr(0b101101) + '\070')) == nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b10010 + 0o44) + chr(2351 - 2301) + '\x34', 12645 - 12637): roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'\x13\x9a\xc9\xb7\x99\x1e\x8b\xcc\xea\xbaA\xad'), chr(3176 - 3076) + chr(6139 - 6038) + chr(0b1111 + 0o124) + '\157' + chr(100) + chr(0b1100101))(chr(0b1110101) + '\x74' + chr(102) + chr(45) + chr(2037 - 1981)))(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'3\xa5\xff\x86\xa3%\x8e\xfa\xb7\xfcV\xa5\x0c\xe7?B\xc1g\x89\x1b/\x97\xe8\xbfl\xf9N\x8d\x9e\xe7\xb5\x0e\x01\x81\x03\xb3\xde\xfcVd@\xbf\xea\xc1\xa89\x8e\xbf\xb2\xbfE\xb2\x10\xfe3C\xd9"\xd2\x177\xda\xf8\xb1)\xef'), chr(4463 - 4363) + '\145' + '\x63' + chr(111) + '\144' + chr(101))(chr(13060 - 12943) + '\164' + '\146' + chr(45) + chr(0b1111 + 0o51)), roI3spqORKae(ES5oEprVxulp(b'\x11\xe3\xab\xaa\x81e\x9c\xf0\x82\x83e\x9d'), chr(444 - 344) + chr(0b1100101) + '\143' + chr(0b1101111) + chr(0b1100100) + chr(0b1001011 + 0o32))(chr(117) + chr(6558 - 6442) + chr(102) + chr(45) + chr(0b101111 + 0o11)))(name=jhaMN_kF3p0V[roI3spqORKae(ES5oEprVxulp(b'\x10\xa2\xf7\x8b\xa35\x8e'), '\144' + chr(0b100110 + 0o77) + '\x63' + chr(0b1101111) + chr(100) + '\x65')(chr(117) + chr(0b1101101 + 0o7) + chr(0b1100110) + chr(45) + chr(2681 - 2625))])) if roI3spqORKae(ES5oEprVxulp(b'\x10\xb1\xec\x89'), chr(0b11 + 0o141) + chr(6610 - 6509) + chr(99) + chr(0b11001 + 0o126) + '\144' + chr(0b10000 + 0o125))(chr(0b1101010 + 0o13) + chr(0b1101010 + 0o12) + chr(102) + chr(0b11010 + 0o23) + chr(338 - 282)) in jhaMN_kF3p0V: try: EycibfSsQQ3u(jhaMN_kF3p0V[roI3spqORKae(ES5oEprVxulp(b'\x10\xa2\xf7\x8b\xa35\x8e'), chr(0b1100100) + '\145' + chr(0b1011110 + 0o5) + chr(0b1001001 + 0o46) + chr(8668 - 8568) + '\145')('\165' + chr(0b1110010 + 0o2) + chr(102) + chr(624 - 579) + '\070')], jhaMN_kF3p0V[roI3spqORKae(ES5oEprVxulp(b'\x10\xb1\xec\x89'), chr(0b11110 + 0o106) + chr(0b1100101) + chr(99) + chr(111) + chr(100) + chr(3796 - 3695))(chr(0b1110101) + chr(116) + '\x66' + '\055' + '\070')], roI3spqORKae(ES5oEprVxulp(b''), chr(0b1100 + 0o130) + chr(5531 - 5430) + chr(0b1000000 + 0o43) + '\157' + chr(0b1100100) + '\x65')(chr(0b1110101) + chr(1311 - 1195) + chr(102) + '\x2d' + '\070')) except LWKiq8vNpkJc as wgf0sgcu_xPL: roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'\x13\x9a\xc9\xb7\x99\x1e\x8b\xcc\xea\xbaA\xad'), '\x64' + chr(0b1100101) + chr(9633 - 9534) + '\x6f' + chr(0b1100100) + '\x65')('\x75' + chr(116) + chr(0b1100110) + chr(0b101101) + '\070'))(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'&\xbf\xf4\x85\xa3$\xda\xe4\xa3\xbdR\xbf\x1e\xad9N\xc0+\x96U \x95\xf9\xe2.\xf8\x01\x8e\x82\xb2\xb5\x05U\xc8\x08\xeb\xc7\xfdM"\x05\xb3\xec\xc1\xbd&\x88\xf0\xb9\xb9E\xa3\x1e'), '\144' + '\145' + chr(0b1100 + 0o127) + '\x6f' + '\144' + chr(101))('\x75' + '\x74' + chr(102) + '\x2d' + '\070'), roI3spqORKae(ES5oEprVxulp(b'\x11\xe3\xab\xaa\x81e\x9c\xf0\x82\x83e\x9d'), chr(0b101011 + 0o71) + chr(0b1100101) + chr(2026 - 1927) + '\x6f' + chr(9060 - 8960) + '\x65')(chr(117) + chr(0b1110100) + chr(0b1110 + 0o130) + chr(0b101101) + '\070'))(path=jhaMN_kF3p0V[roI3spqORKae(ES5oEprVxulp(b'\x10\xb1\xec\x89'), '\x64' + chr(5514 - 5413) + chr(0b1010100 + 0o17) + chr(111) + '\144' + '\x65')(chr(117) + '\x74' + chr(5025 - 4923) + '\055' + chr(0b111000))], project=jhaMN_kF3p0V[roI3spqORKae(ES5oEprVxulp(b'\x10\xa2\xf7\x8b\xa35\x8e'), '\144' + '\145' + chr(99) + chr(111) + '\x64' + chr(10196 - 10095))(chr(12434 - 12317) + '\164' + chr(102) + '\x2d' + chr(0b111000))])) if roI3spqORKae(ES5oEprVxulp(b'D\xb4\xf6\x80\xa83\x82\xea\xa0\x83J\xbe\r\xe6'), chr(100) + '\x65' + chr(99) + chr(111) + '\144' + chr(0b1100101 + 0o0))(chr(0b10111 + 0o136) + chr(116) + '\x66' + chr(0b11101 + 0o20) + '\x38') in jhaMN_kF3p0V: if roI3spqORKae(jhaMN_kF3p0V[roI3spqORKae(ES5oEprVxulp(b'D\xb4\xf6\x80\xa83\x82\xea\xa0\x83J\xbe\r\xe6'), '\x64' + chr(1843 - 1742) + chr(0b1100011) + chr(111) + chr(100) + '\145')(chr(13445 - 13328) + '\x74' + '\x66' + '\x2d' + '\070')], roI3spqORKae(ES5oEprVxulp(b'\x13\xa4\xf9\x93\xb2%\x8d\xf6\xa7\xb4'), chr(100) + chr(8169 - 8068) + chr(99) + '\x6f' + '\x64' + chr(120 - 19))(chr(0b1110101) + chr(0b1110100) + chr(0b1011011 + 0o13) + '\055' + '\070'))((roI3spqORKae(ES5oEprVxulp(b'\x06\xb9\xf4\x84\xeb'), chr(0b1100100) + chr(0b100001 + 0o104) + chr(0b10 + 0o141) + chr(111) + chr(8971 - 8871) + chr(1882 - 1781))(chr(0b1110101) + chr(116) + '\146' + chr(0b101101) + chr(0b111 + 0o61)), roI3spqORKae(ES5oEprVxulp(b'\x12\xb5\xfb\x8e\xb42\xd7'), '\x64' + chr(0b1000011 + 0o42) + '\x63' + chr(0b10111 + 0o130) + chr(9828 - 9728) + chr(0b1100101))(chr(0b11101 + 0o130) + chr(0b1110100) + chr(0b1100110) + '\x2d' + chr(137 - 81)))): try: qPvPEJaYBSZm = SsdNdRxXOwsF.describe(jhaMN_kF3p0V[roI3spqORKae(ES5oEprVxulp(b'D\xb4\xf6\x80\xa83\x82\xea\xa0\x83J\xbe\r\xe6'), chr(3201 - 3101) + chr(101) + chr(99) + chr(0b1101111) + chr(0b1100100) + chr(0b1100010 + 0o3))(chr(117) + chr(0b1010000 + 0o44) + '\146' + '\055' + chr(0b101011 + 0o15))]) except roI3spqORKae(SsdNdRxXOwsF.exceptions, roI3spqORKae(ES5oEprVxulp(b'$\x88\xd9\xb1\x8f\x13\x88\xed\xbc\xae'), '\x64' + chr(0b1100101) + chr(0b1011000 + 0o13) + '\157' + '\144' + '\x65')(chr(10365 - 10248) + chr(5891 - 5775) + '\x66' + '\x2d' + chr(56))) as wgf0sgcu_xPL: if roI3spqORKae(wgf0sgcu_xPL, roI3spqORKae(ES5oEprVxulp(b'-\x9a\xdd\xa6\xa1 \xb1\xac\xbd\xb2c\xee'), '\144' + '\145' + '\x63' + '\x6f' + chr(0b1100100) + '\x65')('\x75' + chr(0b10 + 0o162) + chr(0b1100110) + chr(574 - 529) + chr(0b111000))) == nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110110) + chr(2344 - 2294) + '\x34', 8): raise roI3spqORKae(SsdNdRxXOwsF.app_builder, roI3spqORKae(ES5oEprVxulp(b'!\xa0\xe8\xa3\xb3?\x96\xfb\xb6\xaec\xaf\x00\xe8*U\xdc(\x9c'), chr(1796 - 1696) + chr(695 - 594) + '\x63' + chr(4344 - 4233) + chr(7116 - 7016) + chr(101))('\x75' + '\x74' + '\146' + '\055' + chr(0b10001 + 0o47)))(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'3\xa5\xff\x86\xa3%\x8e\xfa\xb7\xfcI\xb5\t\xe89U\x95<\x9c\x14#\x9f\xf0\xe2/\xf2T\x84\x89\xe7\xb5\x0e\x01\x81\x04\xae\x97\xe9M=\x0e\xb4'), '\x64' + chr(101) + chr(0b1100011) + chr(111) + chr(3086 - 2986) + chr(4076 - 3975))('\165' + chr(2488 - 2372) + chr(0b1100110) + chr(1544 - 1499) + chr(56)), roI3spqORKae(ES5oEprVxulp(b'\x11\xe3\xab\xaa\x81e\x9c\xf0\x82\x83e\x9d'), chr(100) + '\145' + '\x63' + chr(111) + chr(100) + '\145')('\x75' + chr(0b1110100) + chr(0b1 + 0o145) + chr(0b1111 + 0o36) + chr(0b111000)))(name=jhaMN_kF3p0V[roI3spqORKae(ES5oEprVxulp(b'D\xb4\xf6\x80\xa83\x82\xea\xa0\x83J\xbe\r\xe6'), chr(100) + '\x65' + chr(4547 - 4448) + chr(111) + '\144' + '\x65')(chr(0b1110101) + '\164' + chr(0b1100110) + '\055' + '\x38')])) except zfo2Sgkz3IVJ as wgf0sgcu_xPL: raise roI3spqORKae(SsdNdRxXOwsF.app_builder, roI3spqORKae(ES5oEprVxulp(b'!\xa0\xe8\xa3\xb3?\x96\xfb\xb6\xaec\xaf\x00\xe8*U\xdc(\x9c'), chr(100) + '\145' + chr(99) + chr(1052 - 941) + chr(0b101111 + 0o65) + '\145')(chr(117) + chr(116) + '\146' + '\055' + chr(56)))(N9zlRy29S1SS(wgf0sgcu_xPL)) if roI3spqORKae(ES5oEprVxulp(b'\x16\xb1\xf4\x94\xa3'), chr(0b1100100) + chr(101) + chr(99) + chr(7855 - 7744) + '\144' + chr(0b1000011 + 0o42))('\x75' + '\164' + chr(102) + chr(0b101101) + chr(0b111000)) in jhaMN_kF3p0V and suIjIS24Zkqw(jhaMN_kF3p0V[roI3spqORKae(ES5oEprVxulp(b'\x16\xb1\xf4\x94\xa3'), chr(100) + chr(101) + chr(99) + '\x6f' + chr(100) + chr(0b1100101))('\x75' + chr(8657 - 8541) + chr(102) + '\x2d' + '\x38')], znjnJWK64FDT): if roI3spqORKae(ES5oEprVxulp(b'D\xb4\xf6\x80\xa83\x82\xea\xa0\x83J\xbe\r\xe6'), '\144' + '\145' + '\x63' + chr(0b1000110 + 0o51) + '\144' + chr(101))(chr(117) + '\x74' + chr(6753 - 6651) + chr(0b101101) + chr(0b110000 + 0o10)) in jhaMN_kF3p0V[roI3spqORKae(ES5oEprVxulp(b'\x16\xb1\xf4\x94\xa3'), '\144' + '\145' + '\x63' + chr(111) + chr(2985 - 2885) + chr(101))(chr(117) + chr(6347 - 6231) + chr(0b1100110) + chr(0b101101) + chr(2446 - 2390))]: if suIjIS24Zkqw(jhaMN_kF3p0V[roI3spqORKae(ES5oEprVxulp(b'\x16\xb1\xf4\x94\xa3'), '\144' + chr(0b100010 + 0o103) + '\x63' + chr(5310 - 5199) + '\x64' + chr(0b1100101))('\x75' + chr(116) + chr(102) + '\055' + chr(610 - 554))][roI3spqORKae(ES5oEprVxulp(b'D\xb4\xf6\x80\xa83\x82\xea\xa0\x83J\xbe\r\xe6'), chr(0b1100100) + chr(183 - 82) + chr(99) + chr(0b1100111 + 0o10) + '\144' + chr(0b1011111 + 0o6))(chr(8860 - 8743) + chr(6811 - 6695) + chr(102) + chr(0b101101) + chr(56))], znjnJWK64FDT): if roI3spqORKae(ES5oEprVxulp(b'\x10\xa2\xf7\x8b\xa35\x8e'), chr(7217 - 7117) + '\145' + chr(0b0 + 0o143) + '\x6f' + '\x64' + chr(8868 - 8767))(chr(0b1000011 + 0o62) + chr(116) + chr(102) + chr(0b101101 + 0o0) + chr(0b11110 + 0o32)) in jhaMN_kF3p0V[roI3spqORKae(ES5oEprVxulp(b'\x16\xb1\xf4\x94\xa3'), '\x64' + chr(101) + '\143' + '\157' + chr(0b1100100) + chr(101))('\x75' + chr(0b1110100) + chr(102) + chr(755 - 710) + '\x38')][roI3spqORKae(ES5oEprVxulp(b'D\xb4\xf6\x80\xa83\x82\xea\xa0\x83J\xbe\r\xe6'), '\144' + '\145' + '\143' + '\x6f' + chr(4710 - 4610) + chr(101))(chr(0b1110101) + '\164' + chr(0b1100110) + chr(1092 - 1047) + chr(0b111000))]: try: roI3spqORKae(SsdNdRxXOwsF.api, roI3spqORKae(ES5oEprVxulp(b'\x10\xa2\xf7\x8b\xa35\x8e\xc0\xb7\xb9U\xb4\x11\xe48D'), '\x64' + '\145' + chr(4567 - 4468) + '\x6f' + chr(0b1011111 + 0o5) + chr(0b1100101))('\165' + '\x74' + chr(0b1100110) + chr(968 - 923) + '\070'))(jhaMN_kF3p0V[roI3spqORKae(ES5oEprVxulp(b'\x16\xb1\xf4\x94\xa3'), '\144' + chr(0b1100101) + chr(99) + chr(0b1101100 + 0o3) + '\144' + chr(0b1100101))(chr(117) + chr(116) + chr(4418 - 4316) + '\055' + chr(657 - 601))][roI3spqORKae(ES5oEprVxulp(b'D\xb4\xf6\x80\xa83\x82\xea\xa0\x83J\xbe\r\xe6'), '\144' + '\145' + '\143' + chr(0b1101111) + chr(100) + chr(0b1000001 + 0o44))('\165' + chr(116) + chr(0b1100011 + 0o3) + chr(0b100 + 0o51) + chr(0b111000))][roI3spqORKae(ES5oEprVxulp(b'\x10\xa2\xf7\x8b\xa35\x8e'), '\x64' + chr(6348 - 6247) + chr(0b1100011) + '\x6f' + chr(100) + chr(0b100000 + 0o105))(chr(13194 - 13077) + '\x74' + chr(0b11001 + 0o115) + chr(45) + '\070')]) except roI3spqORKae(SsdNdRxXOwsF.exceptions, roI3spqORKae(ES5oEprVxulp(b'$\x88\xd9\xb1\x8f\x13\x88\xed\xbc\xae'), chr(8288 - 8188) + chr(0b1100101) + chr(9494 - 9395) + chr(9737 - 9626) + chr(0b1100100) + '\x65')(chr(117) + chr(0b1110100) + chr(0b1001010 + 0o34) + chr(0b10110 + 0o27) + chr(328 - 272))) as wgf0sgcu_xPL: if roI3spqORKae(wgf0sgcu_xPL, roI3spqORKae(ES5oEprVxulp(b'-\x9a\xdd\xa6\xa1 \xb1\xac\xbd\xb2c\xee'), chr(0b1100100) + chr(0b1010001 + 0o24) + '\x63' + chr(0b1101111) + chr(0b1100100) + chr(0b1100101))(chr(117) + '\164' + '\146' + '\x2d' + chr(0b111000))) == nzTpIcepk0o8(chr(680 - 632) + chr(7636 - 7525) + chr(778 - 724) + chr(0b110010) + '\064', 8): roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'\x13\x9a\xc9\xb7\x99\x1e\x8b\xcc\xea\xbaA\xad'), chr(100) + chr(101) + chr(0b1000010 + 0o41) + '\157' + chr(0b110000 + 0o64) + chr(7857 - 7756))(chr(117) + chr(0b1010010 + 0o42) + chr(102) + chr(0b101101) + '\x38'))(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'3\xa5\xff\x86\xa3%\x8e\xfa\xb7\xfcV\xa5\x0c\xe7?B\xc1g\x89\x1b/\x97\xe8\xbfl\xf9N\x8d\x9e\xe7\xb5\x0e\x01\x81\x03\xb3\xde\xfcVd@\xbf\xea\xc1\xa89\x8e\xbf\xb2\xbfE\xb2\x10\xfe3C\xd9"\xd2\x177\xda\xf8\xb1)\xef'), chr(0b1100011 + 0o1) + chr(101) + '\x63' + chr(0b1001010 + 0o45) + chr(0b111100 + 0o50) + chr(101))('\165' + chr(0b1110100) + chr(3909 - 3807) + '\x2d' + '\x38'), roI3spqORKae(ES5oEprVxulp(b'\x11\xe3\xab\xaa\x81e\x9c\xf0\x82\x83e\x9d'), '\x64' + chr(7807 - 7706) + chr(0b100011 + 0o100) + chr(0b1101111) + '\x64' + chr(0b1001010 + 0o33))(chr(117) + '\164' + '\x66' + chr(0b10001 + 0o34) + chr(1933 - 1877)))(name=jhaMN_kF3p0V[roI3spqORKae(ES5oEprVxulp(b'\x16\xb1\xf4\x94\xa3'), chr(0b111000 + 0o54) + '\145' + chr(0b11010 + 0o111) + chr(11011 - 10900) + chr(100) + chr(4572 - 4471))(chr(0b1110101) + chr(0b1110100) + chr(0b111 + 0o137) + chr(1494 - 1449) + chr(0b111000))][roI3spqORKae(ES5oEprVxulp(b'D\xb4\xf6\x80\xa83\x82\xea\xa0\x83J\xbe\r\xe6'), '\x64' + '\x65' + chr(0b1100011) + chr(111) + chr(0b1100100) + chr(101))('\x75' + chr(0b10101 + 0o137) + '\x66' + '\055' + chr(0b10011 + 0o45))][roI3spqORKae(ES5oEprVxulp(b'\x10\xa2\xf7\x8b\xa35\x8e'), '\x64' + chr(101) + chr(99) + chr(0b1101111) + chr(7456 - 7356) + chr(6078 - 5977))('\165' + chr(6897 - 6781) + chr(102) + chr(45) + chr(56))])) elif suIjIS24Zkqw(jhaMN_kF3p0V[roI3spqORKae(ES5oEprVxulp(b'\x16\xb1\xf4\x94\xa3'), chr(0b111100 + 0o50) + chr(0b0 + 0o145) + chr(0b1100011) + '\x6f' + chr(100) + chr(1052 - 951))(chr(11043 - 10926) + '\164' + chr(0b1100110) + chr(0b10001 + 0o34) + chr(56))][roI3spqORKae(ES5oEprVxulp(b'D\xb4\xf6\x80\xa83\x82\xea\xa0\x83J\xbe\r\xe6'), '\144' + chr(0b1100101) + chr(2884 - 2785) + chr(0b1010111 + 0o30) + chr(100) + chr(8630 - 8529))(chr(8556 - 8439) + chr(4040 - 3924) + chr(4327 - 4225) + chr(0b100001 + 0o14) + chr(1339 - 1283))], JaQstSroDWOP): if roI3spqORKae(jhaMN_kF3p0V[roI3spqORKae(ES5oEprVxulp(b'\x16\xb1\xf4\x94\xa3'), chr(100) + chr(0b1100101) + chr(0b100000 + 0o103) + '\x6f' + chr(0b1100100) + '\145')('\165' + chr(116) + chr(7139 - 7037) + chr(0b111 + 0o46) + chr(0b100111 + 0o21))][roI3spqORKae(ES5oEprVxulp(b'D\xb4\xf6\x80\xa83\x82\xea\xa0\x83J\xbe\r\xe6'), '\x64' + '\x65' + chr(99) + '\x6f' + chr(0b1111 + 0o125) + chr(0b1011 + 0o132))(chr(117) + chr(6395 - 6279) + '\146' + chr(45) + chr(56))], roI3spqORKae(ES5oEprVxulp(b'\x13\xa4\xf9\x93\xb2%\x8d\xf6\xa7\xb4'), chr(0b101110 + 0o66) + chr(0b111011 + 0o52) + chr(99) + chr(0b1101111) + chr(100) + chr(101))('\165' + chr(0b11101 + 0o127) + '\x66' + chr(45) + chr(2865 - 2809)))((roI3spqORKae(ES5oEprVxulp(b'\x06\xb9\xf4\x84\xeb'), '\144' + chr(0b1100101) + '\143' + chr(111) + '\144' + chr(6996 - 6895))('\165' + '\164' + chr(8844 - 8742) + chr(0b10 + 0o53) + chr(0b111000)), roI3spqORKae(ES5oEprVxulp(b'\x12\xb5\xfb\x8e\xb42\xd7'), chr(2764 - 2664) + '\x65' + chr(9566 - 9467) + '\157' + chr(0b1100100 + 0o0) + chr(9648 - 9547))(chr(117) + chr(9431 - 9315) + '\x66' + chr(0b101101) + chr(0b111000)))): try: qPvPEJaYBSZm = SsdNdRxXOwsF.describe(jhaMN_kF3p0V[roI3spqORKae(ES5oEprVxulp(b'\x16\xb1\xf4\x94\xa3'), chr(0b101111 + 0o65) + chr(101) + chr(0b1100011) + '\157' + chr(100) + chr(0b1111 + 0o126))(chr(117) + chr(0b1110100) + chr(9765 - 9663) + chr(0b11 + 0o52) + '\x38')][roI3spqORKae(ES5oEprVxulp(b'D\xb4\xf6\x80\xa83\x82\xea\xa0\x83J\xbe\r\xe6'), chr(0b1100100) + '\145' + chr(99) + chr(2442 - 2331) + '\144' + chr(0b1100100 + 0o1))(chr(117) + chr(0b1001111 + 0o45) + chr(4492 - 4390) + chr(874 - 829) + chr(56))]) except roI3spqORKae(SsdNdRxXOwsF.exceptions, roI3spqORKae(ES5oEprVxulp(b'$\x88\xd9\xb1\x8f\x13\x88\xed\xbc\xae'), '\144' + '\x65' + chr(1319 - 1220) + chr(0b1101111) + chr(0b10110 + 0o116) + '\x65')(chr(117) + '\x74' + '\146' + chr(0b101101) + chr(0b100101 + 0o23))) as wgf0sgcu_xPL: if roI3spqORKae(wgf0sgcu_xPL, roI3spqORKae(ES5oEprVxulp(b'-\x9a\xdd\xa6\xa1 \xb1\xac\xbd\xb2c\xee'), '\144' + chr(2976 - 2875) + chr(99) + '\x6f' + chr(8701 - 8601) + chr(0b1100101))('\165' + chr(116) + chr(0b1100101 + 0o1) + '\055' + '\x38')) == nzTpIcepk0o8('\x30' + '\x6f' + chr(477 - 423) + chr(0b110010) + '\x34', 8): raise roI3spqORKae(SsdNdRxXOwsF.app_builder, roI3spqORKae(ES5oEprVxulp(b'!\xa0\xe8\xa3\xb3?\x96\xfb\xb6\xaec\xaf\x00\xe8*U\xdc(\x9c'), '\x64' + chr(9291 - 9190) + chr(1592 - 1493) + chr(111) + chr(0b1100100) + chr(101))(chr(0b1011110 + 0o27) + '\164' + '\146' + chr(45) + chr(1600 - 1544)))(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'3\xa5\xff\x86\xa3%\x8e\xfa\xb7\xfcI\xb5\t\xe89U\x95<\x9c\x14#\x9f\xf0\xe2/\xf2T\x84\x89\xe7\xb5\x0e\x01\x81\x04\xae\x97\xe9M=\x0e\xb4'), chr(100) + chr(0b110101 + 0o60) + '\x63' + '\157' + chr(100) + '\145')(chr(6720 - 6603) + '\164' + chr(102) + chr(0b11 + 0o52) + chr(56)), roI3spqORKae(ES5oEprVxulp(b'\x11\xe3\xab\xaa\x81e\x9c\xf0\x82\x83e\x9d'), chr(0b1001011 + 0o31) + '\x65' + chr(6857 - 6758) + chr(111) + chr(409 - 309) + chr(0b1100101))(chr(13043 - 12926) + chr(116) + chr(102) + chr(324 - 279) + chr(2701 - 2645)))(name=jhaMN_kF3p0V[roI3spqORKae(ES5oEprVxulp(b'\x16\xb1\xf4\x94\xa3'), chr(100) + '\x65' + '\x63' + chr(0b1101111) + chr(0b101011 + 0o71) + chr(101))(chr(0b1110101) + '\x74' + chr(102) + chr(0b100011 + 0o12) + chr(3092 - 3036))][roI3spqORKae(ES5oEprVxulp(b'D\xb4\xf6\x80\xa83\x82\xea\xa0\x83J\xbe\r\xe6'), chr(7026 - 6926) + chr(1289 - 1188) + chr(99) + chr(0b1000000 + 0o57) + chr(100) + '\x65')('\165' + '\x74' + chr(0b1100110) + chr(0b11100 + 0o21) + '\070')])) except zfo2Sgkz3IVJ as wgf0sgcu_xPL: raise roI3spqORKae(SsdNdRxXOwsF.app_builder, roI3spqORKae(ES5oEprVxulp(b'!\xa0\xe8\xa3\xb3?\x96\xfb\xb6\xaec\xaf\x00\xe8*U\xdc(\x9c'), chr(0b10111 + 0o115) + chr(101) + chr(7394 - 7295) + chr(0b1101111) + chr(0b101100 + 0o70) + chr(0b1100101))(chr(0b101 + 0o160) + '\164' + chr(102) + chr(0b101101) + chr(0b111000)))(N9zlRy29S1SS(wgf0sgcu_xPL))
dnanexus/dx-toolkit
src/python/dxpy/scripts/dx_build_app.py
_lint
def _lint(dxapp_json_filename, mode): """ Examines the specified dxapp.json file and warns about any violations of app guidelines. Precondition: the dxapp.json file exists and can be parsed. """ def _find_readme(dirname): for basename in ['README.md', 'Readme.md', 'readme.md']: if os.path.exists(os.path.join(dirname, basename)): return os.path.join(dirname, basename) return None app_spec = json.load(open(dxapp_json_filename)) dirname = os.path.basename(os.path.dirname(os.path.abspath(dxapp_json_filename))) if mode == "app": if 'title' not in app_spec: logger.warn('app is missing a title, please add one in the "title" field of dxapp.json') if 'summary' in app_spec: if app_spec['summary'].endswith('.'): logger.warn('summary "%s" should be a short phrase not ending in a period' % (app_spec['summary'],)) else: logger.warn('app is missing a summary, please add one in the "summary" field of dxapp.json') readme_filename = _find_readme(os.path.dirname(dxapp_json_filename)) if 'description' in app_spec: if readme_filename: raise dxpy.app_builder.AppBuilderException('Description was provided both in Readme.md ' 'and in the "description" field of {file}. Please consolidate content in Readme.md ' 'and remove the "description" field.'.format(file=dxapp_json_filename)) if not app_spec['description'].strip().endswith('.'): logger.warn('"description" field should be written in complete sentences and end with a period') else: if readme_filename is None: logger.warn("app is missing a description, please supply one in README.md") if 'categories' in app_spec: for category in app_spec['categories']: if category not in APP_CATEGORIES: logger.warn('app has unrecognized category "%s"' % (category,)) if category == 'Import': if 'title' in app_spec and not app_spec['title'].endswith('Importer'): logger.warn('title "%s" should end in "Importer"' % (app_spec['title'],)) if category == 'Export': if 'title' in app_spec and not app_spec['title'].endswith('Exporter'): logger.warn('title "%s" should end in "Exporter"' % (app_spec['title'],)) if 'name' in app_spec: if app_spec['name'] != app_spec['name'].lower(): logger.warn('name "%s" should be all lowercase' % (app_spec['name'],)) if dirname != app_spec['name']: logger.warn('app name "%s" does not match containing directory "%s"' % (app_spec['name'], dirname)) else: logger.warn('app is missing a name, please add one in the "name" field of dxapp.json') if 'version' in app_spec: if not dxpy.executable_builder.GLOBAL_EXEC_VERSION_RE.match(app_spec['version']): logger.warn('"version" %s should be semver compliant (e.g. of the form X.Y.Z)' % (app_spec['version'],)) # Note that identical checks are performed on the server side (and # will cause the app build to fail), but the checks here are printed # sooner and multiple naming problems can be detected in a single # pass. if 'inputSpec' in app_spec: for i, input_field in enumerate(app_spec['inputSpec']): if not re.match("^[a-zA-Z_][0-9a-zA-Z_]*$", input_field['name']): logger.error('input %d has illegal name "%s" (must match ^[a-zA-Z_][0-9a-zA-Z_]*$)' % (i, input_field['name'])) else: logger.warn("dxapp.json contains no input specification (inputSpec). Your applet will not be usable as an " + "app, runnable from the GUI, or composable using workflows.") if 'outputSpec' in app_spec: for i, output_field in enumerate(app_spec['outputSpec']): if not re.match("^[a-zA-Z_][0-9a-zA-Z_]*$", output_field['name']): logger.error('output %d has illegal name "%s" (must match ^[a-zA-Z_][0-9a-zA-Z_]*$)' % (i, output_field['name'])) else: logger.warn("dxapp.json contains no output specification (outputSpec). Your applet will not be usable as an " + "app, runnable from the GUI, or composable using workflows.")
python
def _lint(dxapp_json_filename, mode): """ Examines the specified dxapp.json file and warns about any violations of app guidelines. Precondition: the dxapp.json file exists and can be parsed. """ def _find_readme(dirname): for basename in ['README.md', 'Readme.md', 'readme.md']: if os.path.exists(os.path.join(dirname, basename)): return os.path.join(dirname, basename) return None app_spec = json.load(open(dxapp_json_filename)) dirname = os.path.basename(os.path.dirname(os.path.abspath(dxapp_json_filename))) if mode == "app": if 'title' not in app_spec: logger.warn('app is missing a title, please add one in the "title" field of dxapp.json') if 'summary' in app_spec: if app_spec['summary'].endswith('.'): logger.warn('summary "%s" should be a short phrase not ending in a period' % (app_spec['summary'],)) else: logger.warn('app is missing a summary, please add one in the "summary" field of dxapp.json') readme_filename = _find_readme(os.path.dirname(dxapp_json_filename)) if 'description' in app_spec: if readme_filename: raise dxpy.app_builder.AppBuilderException('Description was provided both in Readme.md ' 'and in the "description" field of {file}. Please consolidate content in Readme.md ' 'and remove the "description" field.'.format(file=dxapp_json_filename)) if not app_spec['description'].strip().endswith('.'): logger.warn('"description" field should be written in complete sentences and end with a period') else: if readme_filename is None: logger.warn("app is missing a description, please supply one in README.md") if 'categories' in app_spec: for category in app_spec['categories']: if category not in APP_CATEGORIES: logger.warn('app has unrecognized category "%s"' % (category,)) if category == 'Import': if 'title' in app_spec and not app_spec['title'].endswith('Importer'): logger.warn('title "%s" should end in "Importer"' % (app_spec['title'],)) if category == 'Export': if 'title' in app_spec and not app_spec['title'].endswith('Exporter'): logger.warn('title "%s" should end in "Exporter"' % (app_spec['title'],)) if 'name' in app_spec: if app_spec['name'] != app_spec['name'].lower(): logger.warn('name "%s" should be all lowercase' % (app_spec['name'],)) if dirname != app_spec['name']: logger.warn('app name "%s" does not match containing directory "%s"' % (app_spec['name'], dirname)) else: logger.warn('app is missing a name, please add one in the "name" field of dxapp.json') if 'version' in app_spec: if not dxpy.executable_builder.GLOBAL_EXEC_VERSION_RE.match(app_spec['version']): logger.warn('"version" %s should be semver compliant (e.g. of the form X.Y.Z)' % (app_spec['version'],)) # Note that identical checks are performed on the server side (and # will cause the app build to fail), but the checks here are printed # sooner and multiple naming problems can be detected in a single # pass. if 'inputSpec' in app_spec: for i, input_field in enumerate(app_spec['inputSpec']): if not re.match("^[a-zA-Z_][0-9a-zA-Z_]*$", input_field['name']): logger.error('input %d has illegal name "%s" (must match ^[a-zA-Z_][0-9a-zA-Z_]*$)' % (i, input_field['name'])) else: logger.warn("dxapp.json contains no input specification (inputSpec). Your applet will not be usable as an " + "app, runnable from the GUI, or composable using workflows.") if 'outputSpec' in app_spec: for i, output_field in enumerate(app_spec['outputSpec']): if not re.match("^[a-zA-Z_][0-9a-zA-Z_]*$", output_field['name']): logger.error('output %d has illegal name "%s" (must match ^[a-zA-Z_][0-9a-zA-Z_]*$)' % (i, output_field['name'])) else: logger.warn("dxapp.json contains no output specification (outputSpec). Your applet will not be usable as an " + "app, runnable from the GUI, or composable using workflows.")
[ "def", "_lint", "(", "dxapp_json_filename", ",", "mode", ")", ":", "def", "_find_readme", "(", "dirname", ")", ":", "for", "basename", "in", "[", "'README.md'", ",", "'Readme.md'", ",", "'readme.md'", "]", ":", "if", "os", ".", "path", ".", "exists", "(", "os", ".", "path", ".", "join", "(", "dirname", ",", "basename", ")", ")", ":", "return", "os", ".", "path", ".", "join", "(", "dirname", ",", "basename", ")", "return", "None", "app_spec", "=", "json", ".", "load", "(", "open", "(", "dxapp_json_filename", ")", ")", "dirname", "=", "os", ".", "path", ".", "basename", "(", "os", ".", "path", ".", "dirname", "(", "os", ".", "path", ".", "abspath", "(", "dxapp_json_filename", ")", ")", ")", "if", "mode", "==", "\"app\"", ":", "if", "'title'", "not", "in", "app_spec", ":", "logger", ".", "warn", "(", "'app is missing a title, please add one in the \"title\" field of dxapp.json'", ")", "if", "'summary'", "in", "app_spec", ":", "if", "app_spec", "[", "'summary'", "]", ".", "endswith", "(", "'.'", ")", ":", "logger", ".", "warn", "(", "'summary \"%s\" should be a short phrase not ending in a period'", "%", "(", "app_spec", "[", "'summary'", "]", ",", ")", ")", "else", ":", "logger", ".", "warn", "(", "'app is missing a summary, please add one in the \"summary\" field of dxapp.json'", ")", "readme_filename", "=", "_find_readme", "(", "os", ".", "path", ".", "dirname", "(", "dxapp_json_filename", ")", ")", "if", "'description'", "in", "app_spec", ":", "if", "readme_filename", ":", "raise", "dxpy", ".", "app_builder", ".", "AppBuilderException", "(", "'Description was provided both in Readme.md '", "'and in the \"description\" field of {file}. Please consolidate content in Readme.md '", "'and remove the \"description\" field.'", ".", "format", "(", "file", "=", "dxapp_json_filename", ")", ")", "if", "not", "app_spec", "[", "'description'", "]", ".", "strip", "(", ")", ".", "endswith", "(", "'.'", ")", ":", "logger", ".", "warn", "(", "'\"description\" field should be written in complete sentences and end with a period'", ")", "else", ":", "if", "readme_filename", "is", "None", ":", "logger", ".", "warn", "(", "\"app is missing a description, please supply one in README.md\"", ")", "if", "'categories'", "in", "app_spec", ":", "for", "category", "in", "app_spec", "[", "'categories'", "]", ":", "if", "category", "not", "in", "APP_CATEGORIES", ":", "logger", ".", "warn", "(", "'app has unrecognized category \"%s\"'", "%", "(", "category", ",", ")", ")", "if", "category", "==", "'Import'", ":", "if", "'title'", "in", "app_spec", "and", "not", "app_spec", "[", "'title'", "]", ".", "endswith", "(", "'Importer'", ")", ":", "logger", ".", "warn", "(", "'title \"%s\" should end in \"Importer\"'", "%", "(", "app_spec", "[", "'title'", "]", ",", ")", ")", "if", "category", "==", "'Export'", ":", "if", "'title'", "in", "app_spec", "and", "not", "app_spec", "[", "'title'", "]", ".", "endswith", "(", "'Exporter'", ")", ":", "logger", ".", "warn", "(", "'title \"%s\" should end in \"Exporter\"'", "%", "(", "app_spec", "[", "'title'", "]", ",", ")", ")", "if", "'name'", "in", "app_spec", ":", "if", "app_spec", "[", "'name'", "]", "!=", "app_spec", "[", "'name'", "]", ".", "lower", "(", ")", ":", "logger", ".", "warn", "(", "'name \"%s\" should be all lowercase'", "%", "(", "app_spec", "[", "'name'", "]", ",", ")", ")", "if", "dirname", "!=", "app_spec", "[", "'name'", "]", ":", "logger", ".", "warn", "(", "'app name \"%s\" does not match containing directory \"%s\"'", "%", "(", "app_spec", "[", "'name'", "]", ",", "dirname", ")", ")", "else", ":", "logger", ".", "warn", "(", "'app is missing a name, please add one in the \"name\" field of dxapp.json'", ")", "if", "'version'", "in", "app_spec", ":", "if", "not", "dxpy", ".", "executable_builder", ".", "GLOBAL_EXEC_VERSION_RE", ".", "match", "(", "app_spec", "[", "'version'", "]", ")", ":", "logger", ".", "warn", "(", "'\"version\" %s should be semver compliant (e.g. of the form X.Y.Z)'", "%", "(", "app_spec", "[", "'version'", "]", ",", ")", ")", "# Note that identical checks are performed on the server side (and", "# will cause the app build to fail), but the checks here are printed", "# sooner and multiple naming problems can be detected in a single", "# pass.", "if", "'inputSpec'", "in", "app_spec", ":", "for", "i", ",", "input_field", "in", "enumerate", "(", "app_spec", "[", "'inputSpec'", "]", ")", ":", "if", "not", "re", ".", "match", "(", "\"^[a-zA-Z_][0-9a-zA-Z_]*$\"", ",", "input_field", "[", "'name'", "]", ")", ":", "logger", ".", "error", "(", "'input %d has illegal name \"%s\" (must match ^[a-zA-Z_][0-9a-zA-Z_]*$)'", "%", "(", "i", ",", "input_field", "[", "'name'", "]", ")", ")", "else", ":", "logger", ".", "warn", "(", "\"dxapp.json contains no input specification (inputSpec). Your applet will not be usable as an \"", "+", "\"app, runnable from the GUI, or composable using workflows.\"", ")", "if", "'outputSpec'", "in", "app_spec", ":", "for", "i", ",", "output_field", "in", "enumerate", "(", "app_spec", "[", "'outputSpec'", "]", ")", ":", "if", "not", "re", ".", "match", "(", "\"^[a-zA-Z_][0-9a-zA-Z_]*$\"", ",", "output_field", "[", "'name'", "]", ")", ":", "logger", ".", "error", "(", "'output %d has illegal name \"%s\" (must match ^[a-zA-Z_][0-9a-zA-Z_]*$)'", "%", "(", "i", ",", "output_field", "[", "'name'", "]", ")", ")", "else", ":", "logger", ".", "warn", "(", "\"dxapp.json contains no output specification (outputSpec). Your applet will not be usable as an \"", "+", "\"app, runnable from the GUI, or composable using workflows.\"", ")" ]
Examines the specified dxapp.json file and warns about any violations of app guidelines. Precondition: the dxapp.json file exists and can be parsed.
[ "Examines", "the", "specified", "dxapp", ".", "json", "file", "and", "warns", "about", "any", "violations", "of", "app", "guidelines", "." ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/scripts/dx_build_app.py#L144-L223
train
Check the dxapp. json file and raise an exception if it is not.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPq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TMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b1001 + 0o47) + '\x6f' + chr(55) + chr(0b110000), 6770 - 6762), nzTpIcepk0o8('\x30' + '\157' + chr(0b110010) + '\067' + '\062', ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110000 + 0o2) + '\x32' + chr(0b110010 + 0o4), ord("\x08")), nzTpIcepk0o8(chr(1323 - 1275) + chr(111) + chr(55) + chr(0b100011 + 0o22), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1 + 0o156) + chr(0b110001) + '\x33' + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(0b1111 + 0o41) + chr(8684 - 8573) + chr(0b110010) + chr(55) + '\066', 45211 - 45203), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(49) + chr(278 - 229) + chr(0b10 + 0o60), ord("\x08")), nzTpIcepk0o8(chr(1592 - 1544) + chr(0b1001100 + 0o43) + chr(52) + chr(1215 - 1162), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + '\061' + '\062' + chr(51), 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(0b110 + 0o53) + '\x33' + chr(0b100010 + 0o24), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + '\063' + chr(0b11100 + 0o33) + chr(54), 22963 - 22955), nzTpIcepk0o8(chr(491 - 443) + '\x6f' + chr(0b110011) + '\x34' + '\062', 0o10), nzTpIcepk0o8('\x30' + chr(8580 - 8469) + chr(1265 - 1214) + chr(51) + '\x33', 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(1489 - 1439) + '\x36' + chr(0b110101), 37401 - 37393), nzTpIcepk0o8(chr(1914 - 1866) + chr(111) + '\064' + '\x32', 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(0b110011) + chr(53) + chr(547 - 493), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b11110 + 0o121) + chr(1529 - 1479) + chr(0b101001 + 0o11) + '\063', ord("\x08")), nzTpIcepk0o8(chr(0b0 + 0o60) + chr(111) + '\x33' + chr(1332 - 1282) + chr(0b110101), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(49) + chr(0b11 + 0o57) + '\067', 25686 - 25678), nzTpIcepk0o8(chr(0b100111 + 0o11) + chr(111) + '\x31' + chr(1333 - 1280) + chr(0b100110 + 0o16), 0o10), nzTpIcepk0o8('\060' + '\x6f' + '\x36' + '\x30', 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + '\062' + '\x33' + '\x36', ord("\x08")), nzTpIcepk0o8(chr(0b100000 + 0o20) + chr(0b1101111) + chr(0b11110 + 0o24) + chr(0b1111 + 0o44), 40111 - 40103), nzTpIcepk0o8('\x30' + '\x6f' + '\x33' + '\063' + chr(0b10 + 0o65), 17104 - 17096), nzTpIcepk0o8(chr(48) + '\157' + chr(1015 - 966) + chr(54) + '\x37', 0o10), nzTpIcepk0o8(chr(1400 - 1352) + chr(0b111111 + 0o60) + chr(0b101011 + 0o7) + chr(677 - 623) + '\x35', 8), nzTpIcepk0o8(chr(0b1011 + 0o45) + '\x6f' + '\x35', 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(50) + '\062' + '\067', 1779 - 1771), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x31' + chr(0b110011) + chr(0b101111 + 0o2), 8), nzTpIcepk0o8(chr(0b10101 + 0o33) + '\x6f' + '\x31' + chr(2415 - 2362) + chr(48), 0b1000), nzTpIcepk0o8(chr(0b1111 + 0o41) + chr(0b1101111) + '\065' + chr(104 - 52), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\062' + '\062' + chr(0b100100 + 0o15), 63392 - 63384), nzTpIcepk0o8(chr(0b100100 + 0o14) + chr(111) + chr(0b110010) + '\062' + chr(0b1111 + 0o45), 0o10), nzTpIcepk0o8(chr(1540 - 1492) + chr(111) + chr(1373 - 1323) + '\x36' + '\061', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110001) + chr(2218 - 2164) + chr(0b11 + 0o60), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110010) + chr(0b1110 + 0o44) + chr(0b110010), 1089 - 1081), nzTpIcepk0o8('\060' + '\157' + chr(49) + '\066' + chr(2467 - 2414), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + '\x33' + '\067', 48104 - 48096), nzTpIcepk0o8(chr(48) + '\157' + '\x36', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x32' + chr(1421 - 1369) + chr(0b110010), 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + '\x6f' + chr(0b11 + 0o62) + chr(48), 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x16'), chr(7945 - 7845) + chr(101) + chr(99) + chr(0b1101111) + chr(0b1001001 + 0o33) + chr(1004 - 903))('\165' + chr(116) + chr(102) + chr(957 - 912) + '\x38') + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def zYPR_tZIPsDY(vkEk0c1fgE40, bmJ7SvuZE3jD): def QpDaOgDTCSR1(qu5fsQlGSLfc): for pLvIyXSV7qW5 in [roI3spqORKae(ES5oEprVxulp(b'j\xff\xd7y\x14\xfbdH7'), chr(1308 - 1208) + '\145' + '\143' + chr(0b1101111) + chr(100) + chr(0b1100101))(chr(0b11100 + 0o131) + '\164' + '\146' + '\x2d' + chr(1537 - 1481)), roI3spqORKae(ES5oEprVxulp(b'j\xdf\xf7Y4\xdbdH7'), chr(100) + chr(101) + chr(0b1010011 + 0o20) + chr(4961 - 4850) + '\144' + chr(0b1100101))('\x75' + chr(116) + '\146' + chr(0b0 + 0o55) + chr(0b111000)), roI3spqORKae(ES5oEprVxulp(b'J\xdf\xf7Y4\xdbdH7'), chr(100) + '\145' + chr(2061 - 1962) + chr(2702 - 2591) + '\144' + '\x65')(chr(0b1110101) + '\x74' + '\146' + '\x2d' + chr(0b111000))]: if roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'B\xe9\xdfD7\xee?`%2\xaf\xd6'), chr(0b111 + 0o135) + chr(0b1001010 + 0o33) + chr(0b1100011) + chr(0b100001 + 0o116) + chr(0b11101 + 0o107) + '\145')('\165' + chr(11526 - 11410) + chr(0b1100110) + '\x2d' + chr(0b11010 + 0o36)))(roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'a\x8e\xefp`\xfc)C\x07\x1d\xb0\x93'), '\144' + chr(4120 - 4019) + chr(0b101111 + 0o64) + chr(111) + chr(0b1001 + 0o133) + chr(0b1100101))('\x75' + chr(116) + '\x66' + chr(0b101101) + chr(0b111000)))(qu5fsQlGSLfc, pLvIyXSV7qW5)): return roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'a\x8e\xefp`\xfc)C\x07\x1d\xb0\x93'), chr(100) + chr(6933 - 6832) + chr(99) + '\x6f' + '\144' + '\x65')(chr(0b1110101) + chr(0b1110100) + '\x66' + chr(391 - 346) + chr(1596 - 1540)))(qu5fsQlGSLfc, pLvIyXSV7qW5) return None soHeYQbahFnI = LNUKEwZDIbyb.ZERsdc7c1d8E(DnU3Rq9N5ala(vkEk0c1fgE40)) qu5fsQlGSLfc = aHUqKstZLeS6.path.pLvIyXSV7qW5(aHUqKstZLeS6.path.qu5fsQlGSLfc(aHUqKstZLeS6.path.LSQRPdli1Fxe(vkEk0c1fgE40))) if bmJ7SvuZE3jD == roI3spqORKae(ES5oEprVxulp(b'Y\xca\xe6'), chr(100) + chr(101) + chr(99) + chr(9104 - 8993) + chr(1279 - 1179) + chr(101))('\x75' + chr(116) + '\146' + chr(0b10011 + 0o32) + chr(570 - 514)): if roI3spqORKae(ES5oEprVxulp(b'L\xd3\xe2Q<'), '\144' + '\x65' + chr(330 - 231) + chr(111) + chr(8682 - 8582) + chr(7814 - 7713))('\165' + chr(0b1110100) + '\x66' + chr(45) + chr(0b111 + 0o61)) not in soHeYQbahFnI: roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'K\xf0\xc7k\x06\xf6;vj8\x99\x98'), chr(0b1100100) + '\x65' + '\143' + chr(5295 - 5184) + '\144' + chr(4980 - 4879))('\165' + '\164' + '\146' + chr(529 - 484) + '\x38'))(roI3spqORKae(ES5oEprVxulp(b'Y\xca\xe6\x1d0\xcdjH:-\x8d\x8b\xb5\xd2\x02\x8f\xb3\xa1>\x18\\\xfb?\xff\x07\xd9`\xf6*\r\x0c\xf0\xf0\xd5S\xfd\x1bz&\xcbV\x9a\xe2U<\x9ehQ:*\x92\x87\xf9\x95D\x87\xf6\xb93L_\xf83\xbb\x0f\xd4u\xe7w\x02_\xfe\xfa'), chr(100) + '\x65' + '\143' + chr(0b1101111) + '\144' + '\145')(chr(117) + chr(8119 - 8003) + chr(5800 - 5698) + chr(45) + chr(56))) if roI3spqORKae(ES5oEprVxulp(b'K\xcf\xfbP8\xcc3'), '\144' + chr(101) + chr(7454 - 7355) + '\157' + '\144' + chr(8763 - 8662))('\165' + chr(11494 - 11378) + '\x66' + '\x2d' + '\070') in soHeYQbahFnI: if roI3spqORKae(soHeYQbahFnI[roI3spqORKae(ES5oEprVxulp(b'K\xcf\xfbP8\xcc3'), chr(5355 - 5255) + chr(1462 - 1361) + chr(99) + chr(0b1101111) + chr(100) + chr(0b1100101))(chr(117) + chr(0b110101 + 0o77) + chr(0b1100110) + '\055' + '\x38')], roI3spqORKae(ES5oEprVxulp(b'q\x83\xf0v\x10\xfd\x0bi2+\xb4\x90'), '\x64' + '\x65' + '\x63' + '\x6f' + '\144' + chr(0b1100101))(chr(117) + '\164' + chr(102) + chr(45) + chr(56)))(roI3spqORKae(ES5oEprVxulp(b'\x16'), chr(6255 - 6155) + chr(101) + chr(567 - 468) + '\x6f' + chr(0b1100100) + chr(0b101010 + 0o73))(chr(0b1110101) + chr(0b1011001 + 0o33) + chr(10024 - 9922) + chr(1358 - 1313) + chr(56))): roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'K\xf0\xc7k\x06\xf6;vj8\x99\x98'), chr(0b0 + 0o144) + '\x65' + chr(0b1000100 + 0o37) + chr(1547 - 1436) + chr(0b11111 + 0o105) + chr(0b1010010 + 0o23))('\165' + chr(0b1110100) + chr(4986 - 4884) + chr(0b101101) + chr(56)))(roI3spqORKae(ES5oEprVxulp(b'K\xcf\xfbP8\xcc3\x05q{\x8d\xc0\xfb\xc6J\x81\xe6\xb93LR\xfb3\xbeW\xc6m\xf8+\x1c\x0c\xe1\xfc\xc3\x12\xe1\x10?h\xcdL\x9a\xf3S=\xd7$Bs7\x90\xc2\xba\x95R\x8b\xe1\xbc8\x08'), '\x64' + chr(8297 - 8196) + chr(99) + chr(0b1101111) + chr(0b111100 + 0o50) + chr(0b1100101))('\x75' + chr(116) + chr(0b100101 + 0o101) + '\055' + chr(0b111000)) % (soHeYQbahFnI[roI3spqORKae(ES5oEprVxulp(b'K\xcf\xfbP8\xcc3'), '\x64' + chr(0b1100101) + '\x63' + chr(1463 - 1352) + '\144' + chr(0b1100101))('\165' + chr(2399 - 2283) + '\146' + chr(0b10010 + 0o33) + chr(117 - 61))],)) else: roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'K\xf0\xc7k\x06\xf6;vj8\x99\x98'), chr(100) + chr(0b101111 + 0o66) + chr(2160 - 2061) + '\x6f' + chr(0b1100100) + chr(0b1100101))(chr(117) + chr(0b1011111 + 0o25) + chr(102) + chr(45) + chr(1199 - 1143)))(roI3spqORKae(ES5oEprVxulp(b'Y\xca\xe6\x1d0\xcdjH:-\x8d\x8b\xb5\xd2\x02\x8f\xb3\xa6"\x01]\xffa\xa6[\x95u\xfb<\t_\xf4\xb4\xd0\x17\xf6Uph\xc7\x18\xd3\xf8\x1d-\xd6/\x05q-\x8b\x8f\xb6\xd4P\x97\xb1\xf51\x05U\xf2w\xff\x18\xd3%\xf3!\t\\\xe1\xba\xdb\x00\xfd\x1b'), chr(4721 - 4621) + chr(0b1001000 + 0o35) + chr(0b1001100 + 0o27) + chr(1374 - 1263) + '\144' + chr(7680 - 7579))(chr(117) + '\164' + '\x66' + chr(692 - 647) + chr(0b110100 + 0o4))) mRgrVLhLWaJ3 = QpDaOgDTCSR1(aHUqKstZLeS6.path.qu5fsQlGSLfc(vkEk0c1fgE40)) if roI3spqORKae(ES5oEprVxulp(b'\\\xdf\xe5^+\xd7:Q:1\x90'), chr(0b1100100) + chr(0b1100101) + chr(4752 - 4653) + chr(0b1011000 + 0o27) + chr(0b0 + 0o144) + chr(0b101011 + 0o72))(chr(117) + chr(116) + chr(0b110100 + 0o62) + chr(368 - 323) + '\x38') in soHeYQbahFnI: if mRgrVLhLWaJ3: raise roI3spqORKae(SsdNdRxXOwsF.app_builder, roI3spqORKae(ES5oEprVxulp(b'y\xca\xe6\x7f,\xd7&A6,\xbb\x9a\xb8\xd0R\x9a\xfa\xba9'), chr(300 - 200) + chr(101) + '\143' + '\x6f' + chr(4364 - 4264) + '\x65')(chr(117) + '\x74' + '\146' + chr(1579 - 1534) + chr(0b111000)))(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b"|\xdf\xe5^+\xd7:Q:1\x90\xc2\xac\xd4Q\xce\xe3\xa78\x1aY\xfav\xbbW\xd7j\xe31HE\xff\xb4\xe3\x16\xf3\x11rc\x8cU\xde\xb6\\7\xdajL=~\x8a\x8a\xbe\x95\x00\x8a\xf6\xa64\x1eY\xeeg\xb6\x18\xdb'\xb7?\x01I\xfd\xf0\x91\x1c\xf4Ud`\xcbT\xdf\xeb\x13y\xee&@2-\x9b\xc2\xb8\xdaL\x9d\xfc\xb9>\x08Q\xeav\xff\x14\xdak\xe3<\x06X\xb1\xfd\xdfS\xc0\x10~b\xcf]\x94\xfbYy\xdf$As,\x9b\x8f\xb4\xc3G\xce\xe7\xbd2L\x12\xfav\xac\x14\xc7l\xe7-\x01C\xff\xb6\x91\x15\xfb\x10sb\x8c"), '\144' + '\x65' + chr(0b1100011) + chr(0b1000011 + 0o54) + '\x64' + chr(0b1 + 0o144))('\165' + chr(0b1110100) + chr(102) + chr(1561 - 1516) + chr(518 - 462)), roI3spqORKae(ES5oEprVxulp(b'I\x89\xa5v\x1e\x8d,J\x02\x01\xbd\xa8'), chr(0b1100100) + chr(101) + chr(0b1100011) + '\x6f' + chr(5065 - 4965) + chr(0b1100101))(chr(0b1110101) + chr(0b111 + 0o155) + '\x66' + chr(0b101101) + chr(0b11100 + 0o34)))(file=vkEk0c1fgE40)) if not roI3spqORKae(soHeYQbahFnI[roI3spqORKae(ES5oEprVxulp(b'\\\xdf\xe5^+\xd7:Q:1\x90'), chr(0b11000 + 0o114) + chr(0b1100101) + '\x63' + '\157' + chr(0b1100100) + chr(101))('\x75' + chr(116) + '\146' + chr(0b110 + 0o47) + chr(0b111000))].strip(), roI3spqORKae(ES5oEprVxulp(b'q\x83\xf0v\x10\xfd\x0bi2+\xb4\x90'), '\x64' + chr(0b1100101) + chr(0b1011 + 0o130) + chr(0b1001010 + 0o45) + chr(0b1100010 + 0o2) + chr(5736 - 5635))(chr(0b101010 + 0o113) + chr(0b1011001 + 0o33) + '\x66' + '\055' + '\x38'))(roI3spqORKae(ES5oEprVxulp(b'\x16'), '\x64' + chr(0b110001 + 0o64) + chr(99) + '\157' + '\144' + '\145')(chr(0b1110001 + 0o4) + chr(4548 - 4432) + '\146' + chr(0b101101) + chr(56))): roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'K\xf0\xc7k\x06\xf6;vj8\x99\x98'), '\144' + '\145' + chr(99) + chr(12300 - 12189) + chr(1994 - 1894) + chr(8987 - 8886))(chr(8552 - 8435) + chr(116) + chr(0b1100110) + chr(1680 - 1635) + chr(56)))(roI3spqORKae(ES5oEprVxulp(b"\x1a\xde\xf3N:\xcc#U'7\x91\x8c\xf9\x95D\x87\xf6\xb93LC\xf6|\xaa\x1b\xd1%\xf5<H[\xe3\xfd\xc5\x07\xf7\x1b?o\xcc\x18\xd9\xf9P)\xd2/Q6~\x8d\x87\xb5\xc1G\x80\xf0\xb0$LQ\xf0w\xff\x12\xdba\xb7.\x01X\xf9\xb4\xd0S\xe2\x10mo\xcd\\"), chr(0b1100100) + chr(0b1100101) + chr(0b1100011) + chr(111) + '\x64' + chr(101))('\x75' + chr(116) + chr(0b1001100 + 0o32) + '\055' + chr(0b110011 + 0o5))) elif mRgrVLhLWaJ3 is None: roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'K\xf0\xc7k\x06\xf6;vj8\x99\x98'), chr(100) + chr(0b1010011 + 0o22) + chr(1012 - 913) + chr(111) + chr(426 - 326) + chr(0b1100101))(chr(117) + '\164' + chr(102) + '\x2d' + chr(0b111000)))(roI3spqORKae(ES5oEprVxulp(b'Y\xca\xe6\x1d0\xcdjH:-\x8d\x8b\xb5\xd2\x02\x8f\xb3\xb12\x1fS\xecz\xaf\x03\xdcj\xf9uH\\\xfd\xf1\xd0\x00\xf7Uls\xd2H\xd6\xef\x1d6\xd0/\x05:0\xde\xb0\x9e\xf4f\xa3\xd6\xfb:\x08'), chr(0b11 + 0o141) + chr(0b1100101) + chr(0b1011 + 0o130) + '\x6f' + chr(0b1010001 + 0o23) + chr(0b1100101))(chr(0b1110101) + '\x74' + chr(5996 - 5894) + '\x2d' + '\070')) if roI3spqORKae(ES5oEprVxulp(b'[\xdb\xe2X>\xd18L6-'), chr(0b1001110 + 0o26) + '\x65' + chr(0b1100011) + chr(6781 - 6670) + chr(100) + chr(101))('\x75' + '\164' + chr(0b1100110) + chr(0b101101) + '\x38') in soHeYQbahFnI: for BSrC2NWCyUqG in soHeYQbahFnI[roI3spqORKae(ES5oEprVxulp(b'[\xdb\xe2X>\xd18L6-'), chr(8578 - 8478) + chr(0b1100101) + chr(99) + chr(0b1101111) + chr(100) + '\145')(chr(117) + chr(0b1110100) + chr(0b1100110) + '\055' + chr(0b111000))]: if BSrC2NWCyUqG not in s_QZkZagHC_h: roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'K\xf0\xc7k\x06\xf6;vj8\x99\x98'), chr(0b10101 + 0o117) + '\145' + chr(0b110 + 0o135) + chr(5750 - 5639) + chr(0b1100100) + chr(0b1010010 + 0o23))(chr(3545 - 3428) + chr(1512 - 1396) + chr(0b1100110) + chr(0b110 + 0o47) + '\070'))(roI3spqORKae(ES5oEprVxulp(b'Y\xca\xe6\x1d1\xdf9\x05&0\x8c\x87\xb8\xdaE\x80\xfa\xaf2\x08\x10\xfdr\xab\x12\xd2j\xe5 H\x0e\xb4\xe7\x93'), '\x64' + chr(0b111000 + 0o55) + '\143' + '\157' + '\144' + chr(0b1100101))(chr(0b1110101) + chr(0b101111 + 0o105) + chr(102) + chr(0b11 + 0o52) + chr(2231 - 2175)) % (BSrC2NWCyUqG,)) if BSrC2NWCyUqG == roI3spqORKae(ES5oEprVxulp(b'q\xd7\xe6R+\xca'), chr(5827 - 5727) + '\145' + chr(0b11110 + 0o105) + chr(8870 - 8759) + chr(0b1100100) + chr(0b1100101))(chr(0b1101100 + 0o11) + chr(0b1110100) + chr(0b101 + 0o141) + '\055' + chr(0b111000)): if roI3spqORKae(ES5oEprVxulp(b'L\xd3\xe2Q<'), chr(0b1100100) + chr(0b1100101) + chr(199 - 100) + chr(0b1101111) + chr(100) + chr(0b100110 + 0o77))(chr(0b111 + 0o156) + chr(0b11 + 0o161) + chr(0b1010000 + 0o26) + '\x2d' + '\x38') in soHeYQbahFnI and (not roI3spqORKae(soHeYQbahFnI[roI3spqORKae(ES5oEprVxulp(b'L\xd3\xe2Q<'), chr(0b1100100) + chr(1146 - 1045) + chr(0b1100011) + chr(0b1100100 + 0o13) + chr(0b1100100) + '\145')(chr(0b1010111 + 0o36) + chr(0b1110100) + '\146' + chr(0b101101) + '\x38')], roI3spqORKae(ES5oEprVxulp(b'q\x83\xf0v\x10\xfd\x0bi2+\xb4\x90'), chr(302 - 202) + '\145' + chr(99) + chr(111) + '\144' + chr(0b1100101))(chr(117) + chr(7164 - 7048) + '\x66' + chr(1250 - 1205) + chr(0b111000)))(roI3spqORKae(ES5oEprVxulp(b'q\xd7\xe6R+\xca/W'), chr(0b1100100) + '\x65' + chr(99) + '\x6f' + chr(0b110011 + 0o61) + chr(101))('\x75' + chr(0b1110100) + chr(0b1110 + 0o130) + chr(758 - 713) + chr(259 - 203)))): roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'K\xf0\xc7k\x06\xf6;vj8\x99\x98'), chr(0b11100 + 0o110) + '\x65' + chr(1466 - 1367) + chr(0b1101111) + chr(5582 - 5482) + '\x65')(chr(117) + chr(0b1110100) + chr(0b100000 + 0o106) + chr(0b101101) + '\x38'))(roI3spqORKae(ES5oEprVxulp(b'L\xd3\xe2Q<\x9eh\x00 |\xde\x91\xb3\xdaW\x82\xf7\xf52\x02T\xbez\xb1W\x97L\xfa)\x07^\xe5\xf1\xc3Q'), chr(4480 - 4380) + chr(0b1100101) + chr(0b1100011) + chr(5998 - 5887) + '\144' + chr(0b1100101))('\165' + chr(116) + '\x66' + chr(45) + chr(2877 - 2821)) % (soHeYQbahFnI[roI3spqORKae(ES5oEprVxulp(b'L\xd3\xe2Q<'), '\144' + chr(0b1100101) + '\143' + chr(5061 - 4950) + '\x64' + chr(101))('\165' + chr(116) + chr(0b11000 + 0o116) + chr(45) + chr(56))],)) if BSrC2NWCyUqG == roI3spqORKae(ES5oEprVxulp(b'}\xc2\xe6R+\xca'), chr(100) + '\145' + chr(6932 - 6833) + '\x6f' + chr(1903 - 1803) + '\x65')(chr(0b101000 + 0o115) + chr(0b1011001 + 0o33) + '\x66' + chr(436 - 391) + chr(56)): if roI3spqORKae(ES5oEprVxulp(b'L\xd3\xe2Q<'), chr(0b110 + 0o136) + '\x65' + chr(0b1100011) + chr(7108 - 6997) + chr(0b1100100) + '\145')(chr(0b110000 + 0o105) + chr(5857 - 5741) + chr(102) + '\055' + chr(0b111000)) in soHeYQbahFnI and (not roI3spqORKae(soHeYQbahFnI[roI3spqORKae(ES5oEprVxulp(b'L\xd3\xe2Q<'), chr(0b100001 + 0o103) + chr(101) + '\x63' + '\x6f' + chr(100) + '\145')(chr(117) + chr(8220 - 8104) + '\146' + '\x2d' + chr(2696 - 2640))], roI3spqORKae(ES5oEprVxulp(b'q\x83\xf0v\x10\xfd\x0bi2+\xb4\x90'), '\144' + chr(6272 - 6171) + '\143' + chr(0b11011 + 0o124) + chr(100) + chr(0b1100101))(chr(0b1110101) + chr(116) + chr(0b1100110) + chr(45) + chr(1303 - 1247)))(roI3spqORKae(ES5oEprVxulp(b'}\xc2\xe6R+\xca/W'), chr(9750 - 9650) + chr(394 - 293) + chr(7402 - 7303) + chr(3568 - 3457) + '\144' + '\145')(chr(0b1110101) + chr(116) + chr(7835 - 7733) + chr(45) + chr(0b10110 + 0o42)))): roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'K\xf0\xc7k\x06\xf6;vj8\x99\x98'), chr(100) + chr(0b1100101) + chr(99) + chr(0b1101111) + '\x64' + '\x65')('\x75' + chr(0b1101000 + 0o14) + chr(9221 - 9119) + chr(45) + chr(3067 - 3011)))(roI3spqORKae(ES5oEprVxulp(b'L\xd3\xe2Q<\x9eh\x00 |\xde\x91\xb3\xdaW\x82\xf7\xf52\x02T\xbez\xb1W\x97@\xef)\x07^\xe5\xf1\xc3Q'), chr(0b111011 + 0o51) + '\145' + '\143' + '\x6f' + chr(100) + chr(101))(chr(0b101 + 0o160) + chr(3987 - 3871) + chr(102) + '\x2d' + chr(0b111000)) % (soHeYQbahFnI[roI3spqORKae(ES5oEprVxulp(b'L\xd3\xe2Q<'), chr(0b1100100) + chr(101) + '\x63' + '\x6f' + chr(3450 - 3350) + chr(101))(chr(3010 - 2893) + chr(5593 - 5477) + chr(0b1001111 + 0o27) + '\055' + '\x38')],)) if roI3spqORKae(ES5oEprVxulp(b'V\xdb\xfbX'), chr(100) + chr(9398 - 9297) + '\143' + chr(11622 - 11511) + chr(0b1000001 + 0o43) + chr(101))('\165' + chr(0b1110100) + chr(0b1001101 + 0o31) + '\x2d' + chr(0b10100 + 0o44)) in soHeYQbahFnI: if soHeYQbahFnI[roI3spqORKae(ES5oEprVxulp(b'V\xdb\xfbX'), '\144' + chr(3446 - 3345) + chr(0b110010 + 0o61) + chr(0b1101111) + chr(8171 - 8071) + chr(1392 - 1291))(chr(117) + chr(0b1110100) + '\146' + '\x2d' + '\070')] != roI3spqORKae(soHeYQbahFnI[roI3spqORKae(ES5oEprVxulp(b'V\xdb\xfbX'), chr(0b111101 + 0o47) + chr(7186 - 7085) + chr(0b1100011) + '\x6f' + chr(0b10101 + 0o117) + '\x65')('\165' + '\164' + chr(4332 - 4230) + '\055' + chr(0b110010 + 0o6))], roI3spqORKae(ES5oEprVxulp(b'`\xd4\xaex\x17\xe9\x07\x7f7\x17\xac\x96'), chr(6012 - 5912) + chr(0b1100101) + chr(3728 - 3629) + '\157' + chr(0b1100100) + chr(0b1010 + 0o133))(chr(117) + chr(0b1110100) + chr(9849 - 9747) + '\055' + chr(2778 - 2722)))(): roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'K\xf0\xc7k\x06\xf6;vj8\x99\x98'), '\x64' + chr(0b1010010 + 0o23) + '\x63' + chr(8419 - 8308) + chr(5352 - 5252) + '\x65')(chr(10366 - 10249) + chr(12839 - 12723) + chr(0b1001010 + 0o34) + '\x2d' + '\x38'))(roI3spqORKae(ES5oEprVxulp(b'V\xdb\xfbXy\x9coVq~\x8d\x8a\xb4\xc0N\x8a\xb3\xb72LQ\xf2\x7f\xff\x1b\xdar\xf2+\x0bM\xe2\xf1'), chr(0b1101 + 0o127) + '\x65' + '\143' + chr(10987 - 10876) + chr(100) + chr(101))('\165' + chr(0b1110100) + chr(0b1001110 + 0o30) + '\055' + chr(0b111000)) % (soHeYQbahFnI[roI3spqORKae(ES5oEprVxulp(b'V\xdb\xfbX'), chr(9725 - 9625) + chr(0b1100101) + chr(99) + '\x6f' + chr(0b1011100 + 0o10) + chr(0b1100101))(chr(0b1110101) + '\x74' + '\x66' + chr(0b100001 + 0o14) + chr(2799 - 2743))],)) if qu5fsQlGSLfc != soHeYQbahFnI[roI3spqORKae(ES5oEprVxulp(b'V\xdb\xfbX'), '\144' + '\x65' + '\x63' + chr(111) + chr(0b11001 + 0o113) + chr(7581 - 7480))('\x75' + chr(0b1110100) + chr(10281 - 10179) + '\x2d' + '\070')]: roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'K\xf0\xc7k\x06\xf6;vj8\x99\x98'), '\144' + chr(7219 - 7118) + '\143' + '\x6f' + chr(9248 - 9148) + chr(101))('\165' + '\x74' + chr(5299 - 5197) + chr(0b11111 + 0o16) + chr(56)))(roI3spqORKae(ES5oEprVxulp(b"Y\xca\xe6\x1d7\xdf'@s|\xdb\x91\xf9\x95F\x81\xf6\xa6w\x02_\xea3\xb2\x16\xc1f\xffy\x0bC\xff\xe0\xd0\x1a\xfc\x1cqa\x82\\\xd3\xe4X:\xca%W*~\xdc\xc7\xa8\x97"), chr(0b1100100) + chr(0b1100101) + chr(815 - 716) + chr(0b11 + 0o154) + chr(100) + chr(101))('\165' + chr(0b1110100) + chr(0b1100110) + '\x2d' + '\070') % (soHeYQbahFnI[roI3spqORKae(ES5oEprVxulp(b'V\xdb\xfbX'), chr(0b1100100) + '\x65' + chr(99) + chr(111) + '\144' + chr(101))('\x75' + chr(116) + chr(0b1100110) + chr(0b101101) + '\x38')], qu5fsQlGSLfc)) else: roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'K\xf0\xc7k\x06\xf6;vj8\x99\x98'), chr(100) + chr(0b1 + 0o144) + chr(0b111100 + 0o47) + '\157' + chr(0b110100 + 0o60) + chr(2010 - 1909))('\x75' + chr(0b1110100) + '\x66' + chr(0b100000 + 0o15) + '\070'))(roI3spqORKae(ES5oEprVxulp(b'Y\xca\xe6\x1d0\xcdjH:-\x8d\x8b\xb5\xd2\x02\x8f\xb3\xbb6\x01U\xb23\xaf\x1b\xd0d\xe4<HM\xf5\xf0\x91\x1c\xfc\x10?o\xcc\x18\xce\xfeXy\x9c$D>;\xdc\xc2\xbd\xdcG\x82\xf7\xf58\n\x10\xfak\xbe\x07\xc5+\xfd*\x07B'), chr(723 - 623) + chr(0b1100101) + chr(0b100010 + 0o101) + '\x6f' + chr(0b1001110 + 0o26) + chr(101))(chr(0b1110101) + chr(3367 - 3251) + chr(2908 - 2806) + chr(45) + '\070')) if roI3spqORKae(ES5oEprVxulp(b'N\xdf\xe4N0\xd1$'), chr(2937 - 2837) + '\x65' + chr(99) + chr(0b1010010 + 0o35) + chr(0b10100 + 0o120) + '\x65')(chr(117) + '\x74' + '\x66' + chr(0b10100 + 0o31) + chr(0b111000)) in soHeYQbahFnI: if not roI3spqORKae(SsdNdRxXOwsF.executable_builder.GLOBAL_EXEC_VERSION_RE, roI3spqORKae(ES5oEprVxulp(b"P\xd1\xafr0\xd4'L\x10\x01\x84\xa3"), chr(0b10110 + 0o116) + chr(101) + chr(99) + '\x6f' + chr(0b1010111 + 0o15) + chr(0b101101 + 0o70))('\165' + '\164' + chr(0b1100110) + chr(0b11111 + 0o16) + chr(0b10110 + 0o42)))(soHeYQbahFnI[roI3spqORKae(ES5oEprVxulp(b'N\xdf\xe4N0\xd1$'), chr(100) + '\145' + chr(0b1100011) + '\x6f' + '\x64' + '\145')(chr(3888 - 3771) + chr(0b111111 + 0o65) + chr(3506 - 3404) + '\x2d' + '\070')]): roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'K\xf0\xc7k\x06\xf6;vj8\x99\x98'), chr(100) + '\145' + '\143' + chr(111) + chr(0b1000 + 0o134) + chr(0b110111 + 0o56))(chr(117) + chr(116) + '\146' + '\055' + '\070'))(roI3spqORKae(ES5oEprVxulp(b'\x1a\xcc\xf3O*\xd7%Kq~\xdb\x91\xfb\xc6J\x81\xe6\xb93LR\xfb3\xac\x12\xd8s\xf2+HO\xfe\xf9\xc1\x1f\xfb\x14qr\x82\x10\xdf\xb8Zw\x9e%Cs*\x96\x87\xfb\xd3M\x9c\xfe\xf5\x0fBi\xb0I\xf6'), '\x64' + chr(0b111101 + 0o50) + '\143' + '\157' + chr(100) + chr(0b1000010 + 0o43))(chr(0b1110001 + 0o4) + chr(5176 - 5060) + '\146' + chr(0b100100 + 0o11) + chr(0b111000)) % (soHeYQbahFnI[roI3spqORKae(ES5oEprVxulp(b'N\xdf\xe4N0\xd1$'), chr(7771 - 7671) + chr(4679 - 4578) + chr(99) + chr(0b1101111) + '\144' + chr(0b1100101))(chr(2689 - 2572) + chr(12823 - 12707) + chr(0b1100110) + '\x2d' + chr(0b111000))],)) if roI3spqORKae(ES5oEprVxulp(b'Q\xd4\xe6H-\xed:@0'), chr(0b10101 + 0o117) + chr(0b1100101) + chr(2201 - 2102) + '\157' + chr(0b1100100) + chr(101))('\165' + '\164' + chr(0b1000001 + 0o45) + '\055' + chr(56)) in soHeYQbahFnI: for (ZlbFMSG8gCoF, cUyAuo6lpgGr) in _kV_Bomx8PZ4(soHeYQbahFnI[roI3spqORKae(ES5oEprVxulp(b'Q\xd4\xe6H-\xed:@0'), chr(5922 - 5822) + chr(0b1100101) + chr(0b1 + 0o142) + chr(0b111110 + 0o61) + chr(3432 - 3332) + chr(124 - 23))(chr(9342 - 9225) + chr(10911 - 10795) + chr(102) + chr(1211 - 1166) + chr(0b1100 + 0o54))]): if not roI3spqORKae(aoTc4YA2bs2R, roI3spqORKae(ES5oEprVxulp(b"P\xd1\xafr0\xd4'L\x10\x01\x84\xa3"), '\144' + '\145' + chr(99) + chr(5198 - 5087) + chr(100) + chr(0b1010 + 0o133))('\x75' + '\x74' + chr(102) + chr(836 - 791) + chr(0b10000 + 0o50)))(roI3spqORKae(ES5oEprVxulp(b'f\xe1\xf7\x10#\xffg\x7f\x0c\x03\xa5\xd2\xf6\x8cC\xc3\xe9\x94z6o\xc39\xfb'), chr(0b1101 + 0o127) + '\145' + chr(0b1011111 + 0o4) + chr(0b10011 + 0o134) + chr(100) + chr(0b1100101))(chr(11320 - 11203) + chr(2084 - 1968) + '\146' + '\055' + '\070'), cUyAuo6lpgGr[roI3spqORKae(ES5oEprVxulp(b'V\xdb\xfbX'), chr(0b1000 + 0o134) + chr(0b1100101) + chr(1123 - 1024) + '\x6f' + chr(0b1100100) + '\145')(chr(0b11001 + 0o134) + chr(116) + chr(0b1100110) + chr(0b10010 + 0o33) + '\x38')]): roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'I\xd3\xa7J0\xce\x1as%\x1b\xb5\x86'), '\144' + '\145' + '\143' + '\x6f' + '\144' + chr(0b1100101))(chr(0b1000110 + 0o57) + chr(0b1001010 + 0o52) + chr(102) + chr(782 - 737) + chr(1283 - 1227)))(roI3spqORKae(ES5oEprVxulp(b"Q\xd4\xe6H-\x9eoAs6\x9f\x91\xfb\xdcN\x82\xf6\xb26\x00\x10\xf0r\xb2\x12\x95'\xb2*J\x0c\xb9\xf9\xc4\x00\xe6Urg\xd6[\xd2\xb6c\x02\xdfg_\x12s\xa4\xbd\x86\xee\x12\xc3\xaa\xb4z\x16q\xb3I\x80*\x9f!\xbe"), chr(0b1100100) + chr(0b1100101) + chr(0b1011001 + 0o12) + chr(0b1101111) + chr(1317 - 1217) + chr(8495 - 8394))('\x75' + '\164' + chr(0b1011010 + 0o14) + chr(45) + chr(0b10101 + 0o43)) % (ZlbFMSG8gCoF, cUyAuo6lpgGr[roI3spqORKae(ES5oEprVxulp(b'V\xdb\xfbX'), '\144' + '\x65' + chr(5313 - 5214) + chr(0b1101111) + chr(100) + chr(0b1100101))(chr(0b1110101) + chr(0b1110100) + '\146' + '\055' + '\070')])) else: roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'K\xf0\xc7k\x06\xf6;vj8\x99\x98'), chr(100) + chr(0b0 + 0o145) + chr(99) + chr(111) + chr(0b110011 + 0o61) + chr(0b1100101))(chr(117) + chr(6785 - 6669) + '\146' + chr(0b1110 + 0o37) + chr(2866 - 2810)))(roI3spqORKae(ES5oEprVxulp(b'\\\xc2\xf7M)\x90 V<0\xde\x81\xb4\xdbV\x8f\xfa\xbb$L^\xf13\xb6\x19\xc5p\xe3y\x1b\\\xf4\xf7\xd8\x15\xfb\x16~r\xcbW\xd4\xb6\x150\xd0:P\'\r\x8e\x87\xb8\x9c\x0c\xce\xca\xba"\x1e\x10\xffc\xaf\x1b\xd0q\xb7.\x01@\xfd\xb4\xdf\x1c\xe6U}c\x82M\xc9\xf7_5\xdbjD ~\x9f\x8c\xfb'), chr(0b1011110 + 0o6) + '\145' + '\x63' + '\157' + '\x64' + chr(101))('\x75' + '\164' + chr(0b1100110) + chr(0b101101) + chr(2383 - 2327)) + roI3spqORKae(ES5oEprVxulp(b'Y\xca\xe6\x11y\xcc?K=?\x9c\x8e\xbe\x95D\x9c\xfc\xb8w\x18X\xfb3\x98"\xfc)\xb76\x1a\x0c\xf2\xfb\xdc\x03\xfd\x06~d\xce]\x9a\xe3N0\xd0-\x05$1\x8c\x89\xbd\xd9M\x99\xe0\xfb'), '\x64' + chr(5024 - 4923) + chr(173 - 74) + chr(5635 - 5524) + chr(838 - 738) + chr(101))('\165' + chr(2693 - 2577) + '\x66' + chr(0b1001 + 0o44) + '\x38')) if roI3spqORKae(ES5oEprVxulp(b'W\xcf\xe2M,\xca\x19U6='), '\144' + chr(7109 - 7008) + '\143' + chr(0b1101111) + '\x64' + chr(0b1001101 + 0o30))('\165' + '\164' + chr(0b100110 + 0o100) + chr(0b101101) + '\x38') in soHeYQbahFnI: for (ZlbFMSG8gCoF, r4CdQHcuwidY) in _kV_Bomx8PZ4(soHeYQbahFnI[roI3spqORKae(ES5oEprVxulp(b'W\xcf\xe2M,\xca\x19U6='), '\x64' + chr(0b101111 + 0o66) + '\143' + chr(0b1101100 + 0o3) + '\144' + chr(0b1000000 + 0o45))(chr(0b1110101) + chr(116) + chr(0b110010 + 0o64) + chr(0b11011 + 0o22) + '\x38')]): if not roI3spqORKae(aoTc4YA2bs2R, roI3spqORKae(ES5oEprVxulp(b"P\xd1\xafr0\xd4'L\x10\x01\x84\xa3"), chr(0b1100100) + chr(0b110001 + 0o64) + chr(99) + chr(0b1101010 + 0o5) + '\x64' + chr(101))(chr(10041 - 9924) + chr(0b1 + 0o163) + '\x66' + chr(0b11 + 0o52) + '\070'))(roI3spqORKae(ES5oEprVxulp(b'f\xe1\xf7\x10#\xffg\x7f\x0c\x03\xa5\xd2\xf6\x8cC\xc3\xe9\x94z6o\xc39\xfb'), '\x64' + '\x65' + chr(2492 - 2393) + chr(2268 - 2157) + chr(2311 - 2211) + chr(3696 - 3595))('\165' + chr(116) + chr(2442 - 2340) + chr(45) + chr(0b101 + 0o63)), r4CdQHcuwidY[roI3spqORKae(ES5oEprVxulp(b'V\xdb\xfbX'), chr(100) + '\x65' + chr(0b1100011) + chr(0b10101 + 0o132) + '\x64' + '\145')('\165' + chr(13218 - 13102) + chr(0b1011 + 0o133) + '\055' + '\070')]): roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'I\xd3\xa7J0\xce\x1as%\x1b\xb5\x86'), '\x64' + chr(0b1100101) + '\x63' + chr(111) + '\x64' + chr(0b110010 + 0o63))('\x75' + '\164' + '\146' + '\x2d' + '\070'))(roI3spqORKae(ES5oEprVxulp(b'W\xcf\xe2M,\xcaj\x007~\x96\x83\xa8\x95K\x82\xff\xb00\r\\\xbe}\xbe\x1a\xd0%\xb5|\x1b\x0e\xb1\xbc\xdc\x06\xe1\x01?k\xc3L\xd9\xfe\x1d\x07\xe5+\x08)\x1f\xd3\xb8\x84\xe8y\xde\xbe\xec6AJ\xdf>\x85(\xe8/\xb3p'), '\144' + chr(0b111 + 0o136) + '\x63' + chr(2697 - 2586) + '\x64' + chr(0b101111 + 0o66))('\x75' + chr(12678 - 12562) + chr(0b100111 + 0o77) + chr(0b101101) + chr(1909 - 1853)) % (ZlbFMSG8gCoF, r4CdQHcuwidY[roI3spqORKae(ES5oEprVxulp(b'V\xdb\xfbX'), '\x64' + chr(101) + chr(0b1100011) + chr(0b1101111) + '\x64' + chr(101))(chr(117) + chr(116) + '\x66' + chr(287 - 242) + chr(0b11011 + 0o35))])) else: roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'K\xf0\xc7k\x06\xf6;vj8\x99\x98'), chr(100) + '\145' + '\x63' + chr(111) + chr(0b11100 + 0o110) + '\x65')(chr(117) + '\x74' + chr(102) + chr(0b11000 + 0o25) + chr(0b10000 + 0o50)))(roI3spqORKae(ES5oEprVxulp(b'\\\xc2\xf7M)\x90 V<0\xde\x81\xb4\xdbV\x8f\xfa\xbb$L^\xf13\xb0\x02\xc1u\xe2-H_\xe1\xf1\xd2\x1a\xf4\x1c|g\xd6Q\xd5\xf8\x1dq\xd1?Q#+\x8a\xb1\xab\xd0A\xc7\xbd\xf5\x0e\x03E\xec3\xbe\x07\xc5i\xf2-H[\xf8\xf8\xddS\xfc\x1ak&\xc0]\x9a\xe3N8\xdc&@s?\x8d\xc2\xba\xdb\x02'), chr(0b1100100) + chr(9264 - 9163) + chr(0b0 + 0o143) + chr(0b110000 + 0o77) + chr(0b1100100) + '\x65')('\165' + chr(0b1001 + 0o153) + '\x66' + chr(847 - 802) + chr(56)) + roI3spqORKae(ES5oEprVxulp(b'Y\xca\xe6\x11y\xcc?K=?\x9c\x8e\xbe\x95D\x9c\xfc\xb8w\x18X\xfb3\x98"\xfc)\xb76\x1a\x0c\xf2\xfb\xdc\x03\xfd\x06~d\xce]\x9a\xe3N0\xd0-\x05$1\x8c\x89\xbd\xd9M\x99\xe0\xfb'), chr(1666 - 1566) + chr(101) + '\143' + '\x6f' + chr(0b1100100) + chr(101))(chr(117) + chr(0b1110100) + '\x66' + '\x2d' + '\070'))
dnanexus/dx-toolkit
src/python/dxpy/scripts/dx_build_app.py
_check_syntax
def _check_syntax(code, lang, temp_dir, enforce=True): """ Checks that the code whose text is in CODE parses as LANG. Raises DXSyntaxError if there is a problem and "enforce" is True. """ # This function needs the language to be explicitly set, so we can # generate an appropriate temp filename. if lang == 'python2.7': temp_basename = 'inlined_code_from_dxapp_json.py' elif lang == 'bash': temp_basename = 'inlined_code_from_dxapp_json.sh' else: raise ValueError('lang must be one of "python2.7" or "bash"') # Dump the contents out to a temporary file, then call _check_file_syntax. with open(os.path.join(temp_dir, temp_basename), 'w') as ofile: ofile.write(code) _check_file_syntax(os.path.join(temp_dir, temp_basename), temp_dir, override_lang=lang, enforce=enforce)
python
def _check_syntax(code, lang, temp_dir, enforce=True): """ Checks that the code whose text is in CODE parses as LANG. Raises DXSyntaxError if there is a problem and "enforce" is True. """ # This function needs the language to be explicitly set, so we can # generate an appropriate temp filename. if lang == 'python2.7': temp_basename = 'inlined_code_from_dxapp_json.py' elif lang == 'bash': temp_basename = 'inlined_code_from_dxapp_json.sh' else: raise ValueError('lang must be one of "python2.7" or "bash"') # Dump the contents out to a temporary file, then call _check_file_syntax. with open(os.path.join(temp_dir, temp_basename), 'w') as ofile: ofile.write(code) _check_file_syntax(os.path.join(temp_dir, temp_basename), temp_dir, override_lang=lang, enforce=enforce)
[ "def", "_check_syntax", "(", "code", ",", "lang", ",", "temp_dir", ",", "enforce", "=", "True", ")", ":", "# This function needs the language to be explicitly set, so we can", "# generate an appropriate temp filename.", "if", "lang", "==", "'python2.7'", ":", "temp_basename", "=", "'inlined_code_from_dxapp_json.py'", "elif", "lang", "==", "'bash'", ":", "temp_basename", "=", "'inlined_code_from_dxapp_json.sh'", "else", ":", "raise", "ValueError", "(", "'lang must be one of \"python2.7\" or \"bash\"'", ")", "# Dump the contents out to a temporary file, then call _check_file_syntax.", "with", "open", "(", "os", ".", "path", ".", "join", "(", "temp_dir", ",", "temp_basename", ")", ",", "'w'", ")", "as", "ofile", ":", "ofile", ".", "write", "(", "code", ")", "_check_file_syntax", "(", "os", ".", "path", ".", "join", "(", "temp_dir", ",", "temp_basename", ")", ",", "temp_dir", ",", "override_lang", "=", "lang", ",", "enforce", "=", "enforce", ")" ]
Checks that the code whose text is in CODE parses as LANG. Raises DXSyntaxError if there is a problem and "enforce" is True.
[ "Checks", "that", "the", "code", "whose", "text", "is", "in", "CODE", "parses", "as", "LANG", "." ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/scripts/dx_build_app.py#L225-L242
train
Checks that the code is in CODE parses as LANG.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,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tBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\060' + chr(111) + '\063' + '\x32' + '\066', 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + '\x33' + chr(2070 - 2015) + chr(2307 - 2252), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1000001 + 0o56) + '\061' + '\065' + chr(0b11110 + 0o25), 0o10), nzTpIcepk0o8(chr(0b1011 + 0o45) + chr(111) + chr(0b110100) + chr(0b11 + 0o63), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(1871 - 1760) + chr(0b1110 + 0o43) + chr(0b110000) + chr(0b11001 + 0o33), 30589 - 30581), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110001) + chr(0b100110 + 0o17) + '\060', 34994 - 34986), nzTpIcepk0o8(chr(0b10101 + 0o33) + chr(0b1001000 + 0o47) + chr(51) + chr(51) + chr(2134 - 2083), 10457 - 10449), nzTpIcepk0o8(chr(48) + chr(0b111010 + 0o65) + chr(49) + '\064' + chr(0b10010 + 0o37), 56629 - 56621), nzTpIcepk0o8('\x30' + chr(111) + chr(0b100010 + 0o20) + chr(0b100011 + 0o17) + '\063', ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + '\x31' + chr(2483 - 2428) + '\066', 60118 - 60110), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110010) + '\x37' + '\063', 9551 - 9543), nzTpIcepk0o8('\x30' + chr(111) + chr(0b10001 + 0o40) + chr(480 - 426) + '\x36', 0o10), nzTpIcepk0o8(chr(0b101011 + 0o5) + chr(0b1101 + 0o142) + chr(0b110010) + chr(0b1001 + 0o51) + chr(0b110100), 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110010) + chr(597 - 547) + chr(0b110110), 43376 - 43368), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110001 + 0o2) + chr(49) + '\065', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b101000 + 0o107) + chr(0b110001) + '\065' + '\066', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b111000 + 0o67) + chr(946 - 895) + chr(0b110101) + '\x32', 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110000 + 0o0), 36417 - 36409), nzTpIcepk0o8(chr(0b10010 + 0o36) + chr(0b1100010 + 0o15) + chr(51) + chr(51) + '\x33', 8), nzTpIcepk0o8('\x30' + chr(0b1011001 + 0o26) + chr(52) + chr(48), 0b1000), nzTpIcepk0o8(chr(0b100111 + 0o11) + chr(111) + chr(0b11001 + 0o32) + '\x32' + '\061', 0b1000), nzTpIcepk0o8('\060' + chr(111) + '\062' + chr(233 - 185) + chr(0b1111 + 0o44), 24175 - 24167), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x32' + chr(2582 - 2531) + chr(55), 35088 - 35080), nzTpIcepk0o8('\x30' + chr(0b11010 + 0o125) + chr(0b110011) + chr(0b10 + 0o62) + chr(0b110100), 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x33' + chr(413 - 359) + '\x32', 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(49) + chr(0b110101) + '\066', 8), nzTpIcepk0o8('\060' + chr(167 - 56) + chr(0b111 + 0o52) + chr(0b110000) + chr(0b110010 + 0o5), 0b1000), nzTpIcepk0o8(chr(1626 - 1578) + chr(111) + chr(0b101110 + 0o3) + chr(0b1 + 0o65), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110010) + chr(0b110111) + chr(0b110101), 6532 - 6524), nzTpIcepk0o8('\x30' + chr(3468 - 3357) + '\x33' + chr(0b110111) + chr(52), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\063' + chr(0b110101) + chr(0b110011), ord("\x08")), nzTpIcepk0o8('\060' + chr(3482 - 3371) + chr(0b101 + 0o54) + chr(0b11 + 0o61) + chr(0b110111), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b100011 + 0o114) + chr(0b110001) + chr(50) + '\067', 0b1000), nzTpIcepk0o8('\060' + chr(10107 - 9996) + chr(0b100010 + 0o20) + '\x34' + chr(0b110111), ord("\x08")), nzTpIcepk0o8(chr(2222 - 2174) + chr(0b1101110 + 0o1) + chr(0b1110 + 0o45) + chr(2459 - 2406) + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(4489 - 4378) + chr(0b10110 + 0o33) + chr(229 - 181) + chr(0b110011), 0o10), nzTpIcepk0o8('\060' + chr(4364 - 4253) + chr(1581 - 1532) + chr(0b110000) + chr(1740 - 1686), 0b1000), nzTpIcepk0o8('\060' + chr(0b101000 + 0o107) + chr(1920 - 1871) + '\x33' + chr(0b10101 + 0o34), ord("\x08")), nzTpIcepk0o8(chr(0b100110 + 0o12) + '\x6f' + '\063' + chr(0b110111) + chr(0b1101 + 0o51), ord("\x08")), nzTpIcepk0o8(chr(0b1010 + 0o46) + chr(0b1101111) + '\061' + '\x34' + chr(0b110011), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b1111 + 0o41) + chr(111) + chr(0b100 + 0o61) + '\x30', 24881 - 24873)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xf8'), '\x64' + chr(101) + '\143' + '\x6f' + '\144' + chr(0b1100101))(chr(117) + chr(0b1110100) + chr(0b1100110) + '\x2d' + '\x38') + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def nywY1_m7TScb(MJEGgvK3nnE9, om5Y2VEylkxh, GyAy3QLpczkR, oTKrn0XRQNvQ=nzTpIcepk0o8(chr(0b100010 + 0o16) + chr(111) + chr(2211 - 2162), ord("\x08"))): if om5Y2VEylkxh == roI3spqORKae(ES5oEprVxulp(b'\xa6\x86\x1fN+\x06\xe9O\xa4'), chr(8669 - 8569) + chr(0b111010 + 0o53) + chr(99) + '\157' + chr(100) + chr(0b11001 + 0o114))('\x75' + chr(11167 - 11051) + chr(0b11100 + 0o112) + chr(0b100000 + 0o15) + '\x38'): YTqDpl_EqUu9 = roI3spqORKae(ES5oEprVxulp(b'\xbf\x91\x07O*\r\xbf>\xf0\x11\xdf\x13\xcb\xf0\xbf\x01\x87_\xbfX\xb0\xf3\xef\xbb\x98\x1d(`\x93\x8c\x92'), '\144' + chr(0b100110 + 0o77) + chr(4658 - 4559) + '\157' + chr(2727 - 2627) + chr(101))(chr(5569 - 5452) + chr(0b101101 + 0o107) + chr(0b1100110) + '\x2d' + chr(296 - 240)) elif om5Y2VEylkxh == roI3spqORKae(ES5oEprVxulp(b'\xb4\x9e\x18N'), chr(0b101 + 0o137) + chr(0b10011 + 0o122) + chr(99) + chr(4787 - 4676) + '\144' + chr(0b100000 + 0o105))(chr(117) + chr(0b1110100) + '\x66' + chr(45) + chr(0b111000)): YTqDpl_EqUu9 = roI3spqORKae(ES5oEprVxulp(b'\xbf\x91\x07O*\r\xbf>\xf0\x11\xdf\x13\xcb\xf0\xbf\x01\x87_\xbfX\xb0\xf3\xef\xbb\x98\x1d(`\x93\x8f\x83'), chr(443 - 343) + chr(6663 - 6562) + chr(370 - 271) + chr(0b1 + 0o156) + chr(1380 - 1280) + chr(4289 - 4188))(chr(117) + chr(0b1101001 + 0o13) + '\x66' + chr(0b101100 + 0o1) + chr(0b111000)) else: raise WbNHlDKpyPtQ(roI3spqORKae(ES5oEprVxulp(b'\xba\x9e\x05Ad\x05\xae\x12\xe7^\xd9\x13\xb4\xf9\xa3\x0b\xcao\xbd\x00\xf3\xf3\xe6\x90\x9a\x01)<\x93\xcb\xc9G8\xd5\xc9a$8\x8d\x0b\xf4'), chr(0b1100100) + '\145' + '\x63' + chr(0b1101111) + '\x64' + chr(5596 - 5495))(chr(0b1100100 + 0o21) + '\164' + '\x66' + chr(667 - 622) + chr(56))) with DnU3Rq9N5ala(roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'\x8f\xcb\x12k}*\xb8\x07\xc7=\xf5\x07'), '\144' + chr(101) + chr(99) + chr(10945 - 10834) + chr(0b1100100) + '\x65')(chr(2967 - 2850) + chr(116) + '\x66' + '\055' + '\x38'))(GyAy3QLpczkR, YTqDpl_EqUu9), roI3spqORKae(ES5oEprVxulp(b'\xa1'), chr(0b1100100) + chr(0b110 + 0o137) + '\x63' + '\x6f' + chr(724 - 624) + chr(234 - 133))(chr(4237 - 4120) + '\164' + chr(0b1100110) + chr(0b100 + 0o51) + '\070')) as ucgtpUSoC3xd: roI3spqORKae(ucgtpUSoC3xd, roI3spqORKae(ES5oEprVxulp(b'\xbb\x93[N,\x18\xadP\xdf\x0e\xcaD'), '\x64' + '\145' + '\x63' + '\157' + chr(0b1100100) + chr(3914 - 3813))('\165' + chr(0b1010010 + 0o42) + '\x66' + chr(45) + chr(0b101100 + 0o14)))(MJEGgvK3nnE9) UAwMy7YjoPql(roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'\x8f\xcb\x12k}*\xb8\x07\xc7=\xf5\x07'), chr(0b1100100) + '\x65' + '\x63' + '\x6f' + '\144' + '\x65')('\x75' + chr(0b110010 + 0o102) + chr(0b111011 + 0o53) + chr(0b1010 + 0o43) + chr(0b111000)))(GyAy3QLpczkR, YTqDpl_EqUu9), GyAy3QLpczkR, override_lang=om5Y2VEylkxh, enforce=oTKrn0XRQNvQ)
dnanexus/dx-toolkit
src/python/dxpy/scripts/dx_build_app.py
_check_file_syntax
def _check_file_syntax(filename, temp_dir, override_lang=None, enforce=True): """ Checks that the code in FILENAME parses, attempting to autodetect the language if necessary. Raises IOError if the file cannot be read. Raises DXSyntaxError if there is a problem and "enforce" is True. """ def check_python(filename): # Generate a semi-recognizable name to write the pyc to. Of # course it's possible that different files being scanned could # have the same basename, so this path won't be unique, but the # checks don't run concurrently so this shouldn't cause any # problems. pyc_path = os.path.join(temp_dir, os.path.basename(filename) + ".pyc") try: if USING_PYTHON2: filename = filename.encode(sys.getfilesystemencoding()) py_compile.compile(filename, cfile=pyc_path, doraise=True) finally: try: os.unlink(pyc_path) except OSError: pass def check_bash(filename): if platform.system() == 'Windows': logging.warn( 'Skipping bash syntax check due to unavailability of bash on Windows.') else: subprocess.check_output(["/bin/bash", "-n", filename], stderr=subprocess.STDOUT) if override_lang == 'python2.7': checker_fn = check_python elif override_lang == 'bash': checker_fn = check_bash elif filename.endswith('.py'): checker_fn = check_python elif filename.endswith('.sh'): checker_fn = check_bash else: # Ignore other kinds of files. return # Do a test read of the file to catch errors like the file not # existing or not being readable. open(filename) try: checker_fn(filename) except subprocess.CalledProcessError as e: print(filename + " has a syntax error! Interpreter output:", file=sys.stderr) for line in e.output.strip("\n").split("\n"): print(" " + line.rstrip("\n"), file=sys.stderr) if enforce: raise DXSyntaxError(filename + " has a syntax error") except py_compile.PyCompileError as e: print(filename + " has a syntax error! Interpreter output:", file=sys.stderr) print(" " + e.msg.strip(), file=sys.stderr) if enforce: raise DXSyntaxError(e.msg.strip())
python
def _check_file_syntax(filename, temp_dir, override_lang=None, enforce=True): """ Checks that the code in FILENAME parses, attempting to autodetect the language if necessary. Raises IOError if the file cannot be read. Raises DXSyntaxError if there is a problem and "enforce" is True. """ def check_python(filename): # Generate a semi-recognizable name to write the pyc to. Of # course it's possible that different files being scanned could # have the same basename, so this path won't be unique, but the # checks don't run concurrently so this shouldn't cause any # problems. pyc_path = os.path.join(temp_dir, os.path.basename(filename) + ".pyc") try: if USING_PYTHON2: filename = filename.encode(sys.getfilesystemencoding()) py_compile.compile(filename, cfile=pyc_path, doraise=True) finally: try: os.unlink(pyc_path) except OSError: pass def check_bash(filename): if platform.system() == 'Windows': logging.warn( 'Skipping bash syntax check due to unavailability of bash on Windows.') else: subprocess.check_output(["/bin/bash", "-n", filename], stderr=subprocess.STDOUT) if override_lang == 'python2.7': checker_fn = check_python elif override_lang == 'bash': checker_fn = check_bash elif filename.endswith('.py'): checker_fn = check_python elif filename.endswith('.sh'): checker_fn = check_bash else: # Ignore other kinds of files. return # Do a test read of the file to catch errors like the file not # existing or not being readable. open(filename) try: checker_fn(filename) except subprocess.CalledProcessError as e: print(filename + " has a syntax error! Interpreter output:", file=sys.stderr) for line in e.output.strip("\n").split("\n"): print(" " + line.rstrip("\n"), file=sys.stderr) if enforce: raise DXSyntaxError(filename + " has a syntax error") except py_compile.PyCompileError as e: print(filename + " has a syntax error! Interpreter output:", file=sys.stderr) print(" " + e.msg.strip(), file=sys.stderr) if enforce: raise DXSyntaxError(e.msg.strip())
[ "def", "_check_file_syntax", "(", "filename", ",", "temp_dir", ",", "override_lang", "=", "None", ",", "enforce", "=", "True", ")", ":", "def", "check_python", "(", "filename", ")", ":", "# Generate a semi-recognizable name to write the pyc to. Of", "# course it's possible that different files being scanned could", "# have the same basename, so this path won't be unique, but the", "# checks don't run concurrently so this shouldn't cause any", "# problems.", "pyc_path", "=", "os", ".", "path", ".", "join", "(", "temp_dir", ",", "os", ".", "path", ".", "basename", "(", "filename", ")", "+", "\".pyc\"", ")", "try", ":", "if", "USING_PYTHON2", ":", "filename", "=", "filename", ".", "encode", "(", "sys", ".", "getfilesystemencoding", "(", ")", ")", "py_compile", ".", "compile", "(", "filename", ",", "cfile", "=", "pyc_path", ",", "doraise", "=", "True", ")", "finally", ":", "try", ":", "os", ".", "unlink", "(", "pyc_path", ")", "except", "OSError", ":", "pass", "def", "check_bash", "(", "filename", ")", ":", "if", "platform", ".", "system", "(", ")", "==", "'Windows'", ":", "logging", ".", "warn", "(", "'Skipping bash syntax check due to unavailability of bash on Windows.'", ")", "else", ":", "subprocess", ".", "check_output", "(", "[", "\"/bin/bash\"", ",", "\"-n\"", ",", "filename", "]", ",", "stderr", "=", "subprocess", ".", "STDOUT", ")", "if", "override_lang", "==", "'python2.7'", ":", "checker_fn", "=", "check_python", "elif", "override_lang", "==", "'bash'", ":", "checker_fn", "=", "check_bash", "elif", "filename", ".", "endswith", "(", "'.py'", ")", ":", "checker_fn", "=", "check_python", "elif", "filename", ".", "endswith", "(", "'.sh'", ")", ":", "checker_fn", "=", "check_bash", "else", ":", "# Ignore other kinds of files.", "return", "# Do a test read of the file to catch errors like the file not", "# existing or not being readable.", "open", "(", "filename", ")", "try", ":", "checker_fn", "(", "filename", ")", "except", "subprocess", ".", "CalledProcessError", "as", "e", ":", "print", "(", "filename", "+", "\" has a syntax error! Interpreter output:\"", ",", "file", "=", "sys", ".", "stderr", ")", "for", "line", "in", "e", ".", "output", ".", "strip", "(", "\"\\n\"", ")", ".", "split", "(", "\"\\n\"", ")", ":", "print", "(", "\" \"", "+", "line", ".", "rstrip", "(", "\"\\n\"", ")", ",", "file", "=", "sys", ".", "stderr", ")", "if", "enforce", ":", "raise", "DXSyntaxError", "(", "filename", "+", "\" has a syntax error\"", ")", "except", "py_compile", ".", "PyCompileError", "as", "e", ":", "print", "(", "filename", "+", "\" has a syntax error! Interpreter output:\"", ",", "file", "=", "sys", ".", "stderr", ")", "print", "(", "\" \"", "+", "e", ".", "msg", ".", "strip", "(", ")", ",", "file", "=", "sys", ".", "stderr", ")", "if", "enforce", ":", "raise", "DXSyntaxError", "(", "e", ".", "msg", ".", "strip", "(", ")", ")" ]
Checks that the code in FILENAME parses, attempting to autodetect the language if necessary. Raises IOError if the file cannot be read. Raises DXSyntaxError if there is a problem and "enforce" is True.
[ "Checks", "that", "the", "code", "in", "FILENAME", "parses", "attempting", "to", "autodetect", "the", "language", "if", "necessary", "." ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/scripts/dx_build_app.py#L245-L305
train
Checks that the code in FILENAME parses and checks that the language of the file is correct.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o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OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\x30' + chr(7717 - 7606) + chr(0b110010) + chr(0b10000 + 0o47) + chr(0b110110), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b110001 + 0o76) + chr(0b110110), 48340 - 48332), nzTpIcepk0o8(chr(1428 - 1380) + chr(0b1101111) + '\062' + chr(52) + chr(753 - 698), 8154 - 8146), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b101010 + 0o7) + chr(0b110101) + chr(55), 16907 - 16899), nzTpIcepk0o8('\x30' + chr(9519 - 9408) + chr(0b111 + 0o53) + '\063' + chr(0b1010 + 0o55), 46593 - 46585), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(762 - 712) + chr(0b1 + 0o57), 0b1000), nzTpIcepk0o8('\060' + '\157' + '\x32' + chr(1571 - 1518) + chr(0b1100 + 0o45), 1571 - 1563), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110011) + chr(0b110011) + chr(1587 - 1539), ord("\x08")), nzTpIcepk0o8(chr(2059 - 2011) + chr(7101 - 6990) + '\061' + '\x35' + '\x35', 31910 - 31902), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b11101 + 0o26) + chr(0b100011 + 0o22) + chr(0b100101 + 0o14), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b111101 + 0o62) + chr(257 - 208) + '\x37' + chr(0b110101), 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(0b110100) + '\066', ord("\x08")), nzTpIcepk0o8(chr(0b11100 + 0o24) + chr(0b1100101 + 0o12) + chr(203 - 154) + '\064' + '\x37', 0o10), nzTpIcepk0o8(chr(0b111 + 0o51) + chr(5470 - 5359) + '\x31' + '\x35' + chr(277 - 222), 8), nzTpIcepk0o8(chr(0b101010 + 0o6) + '\157' + '\x32' + chr(55) + chr(0b110101), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b100001 + 0o20) + chr(0b110000) + '\067', 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(2048 - 1998) + chr(51), 64353 - 64345), nzTpIcepk0o8(chr(48) + '\157' + chr(793 - 742) + '\060' + '\067', 59967 - 59959), nzTpIcepk0o8(chr(48) + chr(111) + chr(49) + chr(0b110010 + 0o3) + chr(2727 - 2672), 8), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(1502 - 1453) + chr(1272 - 1218) + chr(789 - 737), 0o10), nzTpIcepk0o8(chr(802 - 754) + '\157' + '\061' + '\x30' + '\x36', 17043 - 17035), nzTpIcepk0o8(chr(0b110000) + chr(2931 - 2820) + '\x31' + chr(52) + '\066', 0b1000), nzTpIcepk0o8(chr(0b100001 + 0o17) + chr(0b1000000 + 0o57) + chr(1042 - 992) + chr(1149 - 1101) + chr(0b101110 + 0o3), 37647 - 37639), nzTpIcepk0o8('\060' + '\157' + chr(0b110001 + 0o2) + chr(0b100100 + 0o17) + '\067', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\061' + chr(0b110101), 61731 - 61723), nzTpIcepk0o8(chr(0b100001 + 0o17) + chr(916 - 805) + '\061' + chr(0b110111) + '\065', 8), nzTpIcepk0o8('\x30' + chr(0b1101111 + 0o0) + chr(0b110001) + chr(0b100 + 0o63) + '\066', 24588 - 24580), nzTpIcepk0o8(chr(1757 - 1709) + '\x6f' + chr(0b101100 + 0o5) + chr(190 - 139) + chr(0b1 + 0o57), ord("\x08")), nzTpIcepk0o8(chr(574 - 526) + chr(0b1101101 + 0o2) + chr(305 - 254) + chr(0b110010) + chr(0b110010 + 0o2), 0b1000), nzTpIcepk0o8('\060' + chr(11440 - 11329) + chr(51) + chr(1157 - 1108) + '\066', 39998 - 39990), nzTpIcepk0o8('\x30' + chr(0b10101 + 0o132) + '\061' + chr(0b110111) + chr(0b10100 + 0o36), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110010) + '\066' + '\065', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110011) + chr(0b110111) + chr(0b101011 + 0o10), 49942 - 49934), nzTpIcepk0o8(chr(48) + '\x6f' + '\x33' + chr(49) + chr(0b110100), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(49) + '\064' + chr(1152 - 1104), 60896 - 60888), nzTpIcepk0o8('\x30' + chr(111) + '\063' + chr(0b110110) + chr(1570 - 1522), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + '\x32' + chr(424 - 376) + '\x32', 0b1000), nzTpIcepk0o8(chr(0b101101 + 0o3) + chr(0b1000 + 0o147) + chr(49) + '\x36' + '\064', 8), nzTpIcepk0o8(chr(0b111 + 0o51) + chr(5444 - 5333) + chr(49) + chr(0b110001) + chr(50), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x33' + chr(0b11101 + 0o23) + '\x35', 1610 - 1602)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(1970 - 1859) + chr(193 - 140) + chr(0b1000 + 0o50), 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x90'), chr(0b1000110 + 0o36) + '\x65' + '\x63' + chr(5435 - 5324) + chr(0b1100100) + chr(101))('\165' + chr(8484 - 8368) + chr(102) + chr(1080 - 1035) + chr(0b111000)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def UAwMy7YjoPql(FxZHtXEolYsL, GyAy3QLpczkR, JAFLvau47C5n=None, oTKrn0XRQNvQ=nzTpIcepk0o8('\060' + chr(0b110001 + 0o76) + chr(668 - 619), ord("\x08"))): def RPH7CeJGQn45(FxZHtXEolYsL): Rzez6h_yrk0B = aHUqKstZLeS6.path.Y4yM9BcfTCNq(GyAy3QLpczkR, aHUqKstZLeS6.path.pLvIyXSV7qW5(FxZHtXEolYsL) + roI3spqORKae(ES5oEprVxulp(b'\x90v\xde\x0c'), chr(0b1100100) + chr(4320 - 4219) + chr(99) + chr(10092 - 9981) + '\144' + chr(0b1100101))(chr(0b1110101) + chr(116) + '\146' + '\055' + '\x38')) try: if Yt6GOS_tiQ1Y: FxZHtXEolYsL = FxZHtXEolYsL.YqIaRFfeo4Ha(bpyfpu4kTbwL.getfilesystemencoding()) roI3spqORKae(onU7abCgoQZe, roI3spqORKae(ES5oEprVxulp(b'\xddi\xca\x1f\xf6|\xcc'), chr(0b1100100) + '\x65' + chr(99) + chr(0b1101111) + '\x64' + '\x65')(chr(0b1110101) + '\164' + chr(3031 - 2929) + chr(0b101101) + '\070'))(FxZHtXEolYsL, cfile=Rzez6h_yrk0B, doraise=nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(1590 - 1541), 8)) finally: try: roI3spqORKae(aHUqKstZLeS6, roI3spqORKae(ES5oEprVxulp(b'\xcbh\xcb\x06\xf1{'), chr(0b1001001 + 0o33) + '\x65' + chr(99) + '\157' + chr(100) + '\x65')('\x75' + chr(0b1100000 + 0o24) + chr(5045 - 4943) + chr(0b101101) + chr(0b111000)))(Rzez6h_yrk0B) except zsedrPqY_EmW: pass def G1y9Vlj6q_F3(FxZHtXEolYsL): if roI3spqORKae(Mrg3y1GQ55C0, roI3spqORKae(ES5oEprVxulp(b'\xcd\x7f\xd4\x1b\xfa}'), '\144' + chr(9459 - 9358) + chr(99) + '\157' + chr(100) + '\x65')(chr(0b1110101) + chr(2510 - 2394) + '\x66' + '\055' + '\x38'))() == roI3spqORKae(ES5oEprVxulp(b'\xe9o\xc9\x0b\xf0g\xda'), chr(0b1100100) + chr(101) + '\143' + chr(0b1101111) + chr(0b1100100) + chr(6281 - 6180))(chr(117) + chr(0b1110100) + chr(0b111011 + 0o53) + chr(0b101101) + '\070'): roI3spqORKae(Lj4gcNafqrcl, roI3spqORKae(ES5oEprVxulp(b'\xcdL\xf69\xc0X\xd8\x8bT\x8f\x1a\\'), chr(0b1010000 + 0o24) + chr(0b1001110 + 0o27) + chr(0b1100011) + chr(5577 - 5466) + chr(0b101010 + 0o72) + chr(0b1100101))(chr(6145 - 6028) + '\164' + chr(0b1000111 + 0o37) + chr(0b101101) + chr(1888 - 1832)))(roI3spqORKae(ES5oEprVxulp(b'\xedm\xce\x1f\xefy\xc7\xbfM\x8b\x1cU\x0fO\xce>}\xb3\x0e\x0cf\x05\xe9\xban\x16^<\xa1\xabZ\xc1\x94\xec\x15\x9e\xe3\x02+\xac\xd2g\xc5\x06\xf3y\xdd\xa1M\x86\x1b\x06\x05\x0e\xce/3\xa8\x01T\x11\x0f\xef\xbbb\n\rv'), chr(0b1100100) + '\145' + '\x63' + '\x6f' + '\144' + '\x65')('\x75' + '\x74' + '\146' + chr(700 - 655) + chr(0b111000))) else: roI3spqORKae(eT8Y087E_kfd, roI3spqORKae(ES5oEprVxulp(b'\xddn\xc2\x0c\xf4O\xc6\xad\x19\x99\x08R'), '\144' + '\145' + '\x63' + chr(0b1101111) + chr(0b1011011 + 0o11) + chr(0b1100101))(chr(117) + chr(5539 - 5423) + chr(0b1010010 + 0o24) + chr(0b1001 + 0o44) + '\x38'))([roI3spqORKae(ES5oEprVxulp(b'\x91d\xce\x01\xb0r\xc8\xab\x05'), chr(0b1100100) + chr(139 - 38) + '\143' + '\x6f' + '\x64' + '\x65')(chr(0b1100110 + 0o17) + chr(7052 - 6936) + chr(102) + chr(0b101101) + '\070'), roI3spqORKae(ES5oEprVxulp(b'\x93h'), chr(0b1100100) + chr(0b100011 + 0o102) + chr(99) + chr(0b1100001 + 0o16) + chr(0b1100100) + chr(0b1100101))('\165' + '\x74' + chr(0b1100110) + '\055' + chr(0b11001 + 0o37)), FxZHtXEolYsL], stderr=roI3spqORKae(eT8Y087E_kfd, roI3spqORKae(ES5oEprVxulp(b'\xf71\xe5\x0e\xda!\xfb\x88\x1d\x83\x15\x11'), chr(0b100110 + 0o76) + chr(0b1100101) + chr(6470 - 6371) + chr(0b1101111) + chr(0b1100 + 0o130) + chr(0b1100101))(chr(0b1100011 + 0o22) + chr(0b1110100) + chr(0b1100110) + '\055' + chr(0b111000)))) if JAFLvau47C5n == roI3spqORKae(ES5oEprVxulp(b'\xce\x7f\xd3\x07\xf0~\x9b\xf6Z'), chr(812 - 712) + '\x65' + chr(0b1100011) + chr(0b1000110 + 0o51) + chr(0b1100011 + 0o1) + '\x65')(chr(8519 - 8402) + chr(8722 - 8606) + '\x66' + chr(0b10100 + 0o31) + chr(56)): qdIVgndBZsze = RPH7CeJGQn45 elif JAFLvau47C5n == roI3spqORKae(ES5oEprVxulp(b'\xdcg\xd4\x07'), chr(100) + '\x65' + chr(99) + chr(111) + '\144' + chr(4813 - 4712))('\x75' + chr(0b1110100) + chr(102) + chr(0b101101) + '\x38'): qdIVgndBZsze = G1y9Vlj6q_F3 elif roI3spqORKae(FxZHtXEolYsL, roI3spqORKae(ES5oEprVxulp(b'\xf7?\xc1$\xd6S\xe8\x94\x0c\x9c7T'), chr(100) + chr(0b1100101) + '\143' + '\x6f' + chr(0b1010 + 0o132) + chr(0b100001 + 0o104))('\x75' + chr(9449 - 9333) + '\146' + chr(0b1111 + 0o36) + chr(56)))(roI3spqORKae(ES5oEprVxulp(b'\x90v\xde'), '\144' + chr(0b1010101 + 0o20) + chr(0b111111 + 0o44) + '\x6f' + chr(4172 - 4072) + '\x65')('\165' + '\164' + chr(0b11101 + 0o111) + chr(0b100000 + 0o15) + '\x38')): qdIVgndBZsze = RPH7CeJGQn45 elif roI3spqORKae(FxZHtXEolYsL, roI3spqORKae(ES5oEprVxulp(b'\xf7?\xc1$\xd6S\xe8\x94\x0c\x9c7T'), '\x64' + chr(10110 - 10009) + chr(0b1100011) + '\x6f' + chr(100) + chr(4195 - 4094))(chr(0b1100111 + 0o16) + chr(0b101000 + 0o114) + chr(5899 - 5797) + chr(45) + chr(2671 - 2615)))(roI3spqORKae(ES5oEprVxulp(b'\x90u\xcf'), chr(0b1100100) + '\x65' + chr(0b1100011) + chr(0b1101111) + chr(5275 - 5175) + '\x65')(chr(3806 - 3689) + '\x74' + '\x66' + chr(45) + '\070')): qdIVgndBZsze = G1y9Vlj6q_F3 else: return DnU3Rq9N5ala(FxZHtXEolYsL) try: qdIVgndBZsze(FxZHtXEolYsL) except roI3spqORKae(eT8Y087E_kfd, roI3spqORKae(ES5oEprVxulp(b'\xfdg\xcb\x03\xfat\xf9\xaa\x02\x8a\x18U\x14*\xcf5|\xb5'), chr(2736 - 2636) + chr(0b101011 + 0o72) + chr(99) + '\x6f' + chr(0b1100100) + chr(101))(chr(0b111100 + 0o71) + chr(2655 - 2539) + '\146' + chr(0b10111 + 0o26) + chr(0b111000))) as wgf0sgcu_xPL: v8jsMqaYV6U2(FxZHtXEolYsL + roI3spqORKae(ES5oEprVxulp(b'\x9en\xc6\x1c\xbfq\x89\xab\x14\x87\tG\x1fO\xd85a\xa8\x1dUf/\xef\xabh\x0f\x0e*\xb1\xba\x1f\xc7\xdb\xa3\x15\x84\xf2\x01>\xff'), chr(0b1100100) + chr(2687 - 2586) + chr(99) + chr(0b1100000 + 0o17) + chr(8256 - 8156) + chr(0b1100101))('\165' + chr(5113 - 4997) + chr(0b1010100 + 0o22) + chr(0b101101) + chr(0b11 + 0o65)), file=roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\xd1T\x94\x1b\xdec\xc7\x97,\x99\x10`'), chr(100) + chr(101) + chr(4203 - 4104) + chr(111) + chr(0b1100100) + chr(3867 - 3766))('\x75' + chr(116) + '\146' + chr(0b101101) + '\070'))) for ffiOpFBWGmZU in roI3spqORKae(wgf0sgcu_xPL.output.strip(roI3spqORKae(ES5oEprVxulp(b'\xb4'), chr(3506 - 3406) + chr(0b1011001 + 0o14) + '\143' + chr(0b101110 + 0o101) + chr(2419 - 2319) + chr(3093 - 2992))(chr(13035 - 12918) + chr(0b1110100) + chr(102) + chr(45) + '\x38')), roI3spqORKae(ES5oEprVxulp(b'\xf2`\xf5\x1d\xce_\xd1\xad)\x9f\x13e'), '\x64' + chr(6908 - 6807) + chr(3773 - 3674) + chr(0b1111 + 0o140) + chr(0b111101 + 0o47) + '\x65')(chr(0b110001 + 0o104) + chr(347 - 231) + '\146' + chr(0b0 + 0o55) + '\x38'))(roI3spqORKae(ES5oEprVxulp(b'\xb4'), chr(0b1000110 + 0o36) + chr(101) + chr(99) + '\x6f' + chr(0b1100100) + '\145')(chr(9339 - 9222) + chr(0b110000 + 0o104) + '\146' + chr(45) + chr(2902 - 2846))): v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\x9e&'), chr(0b1011111 + 0o5) + chr(0b10110 + 0o117) + chr(0b11010 + 0o111) + chr(111) + chr(100) + chr(101))('\165' + '\x74' + '\x66' + '\x2d' + '\x38') + roI3spqORKae(ffiOpFBWGmZU, roI3spqORKae(ES5oEprVxulp(b'\xccu\xd3\x1d\xf6`'), chr(100) + chr(747 - 646) + '\x63' + chr(111) + chr(2533 - 2433) + '\x65')('\165' + chr(116) + '\x66' + chr(0b101101) + chr(1201 - 1145)))(roI3spqORKae(ES5oEprVxulp(b'\xb4'), chr(0b1100100) + '\x65' + '\143' + chr(0b1011101 + 0o22) + chr(0b1100100) + '\x65')(chr(117) + '\164' + chr(2988 - 2886) + '\x2d' + chr(0b111000))), file=roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\xd1T\x94\x1b\xdec\xc7\x97,\x99\x10`'), '\144' + chr(101) + '\143' + chr(0b1101111) + chr(100) + chr(101))(chr(12252 - 12135) + '\164' + chr(1369 - 1267) + chr(0b101101) + chr(2028 - 1972)))) if oTKrn0XRQNvQ: raise E6vuprPNsh6a(FxZHtXEolYsL + roI3spqORKae(ES5oEprVxulp(b'\x9en\xc6\x1c\xbfq\x89\xab\x14\x87\tG\x1fO\xd85a\xa8\x1d'), '\144' + chr(7058 - 6957) + chr(1860 - 1761) + '\157' + chr(8668 - 8568) + chr(8892 - 8791))(chr(0b1110101) + chr(10912 - 10796) + chr(7543 - 7441) + chr(452 - 407) + '\070')) except roI3spqORKae(onU7abCgoQZe, roI3spqORKae(ES5oEprVxulp(b'\xee\x7f\xe4\x00\xf2`\xc0\xb4\x08\xac\x0fT\x08\x1d'), '\144' + chr(101) + '\143' + '\x6f' + chr(9813 - 9713) + chr(0b1010010 + 0o23))(chr(0b1110101) + chr(0b111001 + 0o73) + chr(6079 - 5977) + '\055' + chr(0b111000))) as wgf0sgcu_xPL: v8jsMqaYV6U2(FxZHtXEolYsL + roI3spqORKae(ES5oEprVxulp(b'\x9en\xc6\x1c\xbfq\x89\xab\x14\x87\tG\x1fO\xd85a\xa8\x1dUf/\xef\xabh\x0f\x0e*\xb1\xba\x1f\xc7\xdb\xa3\x15\x84\xf2\x01>\xff'), '\x64' + chr(9793 - 9692) + chr(0b1100011) + chr(0b1001111 + 0o40) + chr(0b11011 + 0o111) + chr(0b1100101))(chr(8734 - 8617) + '\x74' + '\x66' + '\055' + chr(0b110110 + 0o2)), file=roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\xd1T\x94\x1b\xdec\xc7\x97,\x99\x10`'), chr(8147 - 8047) + chr(101) + '\x63' + chr(0b1101111) + chr(0b111111 + 0o45) + '\145')(chr(970 - 853) + chr(12531 - 12415) + '\146' + '\055' + chr(1645 - 1589)))) v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\x9e&'), chr(0b1011011 + 0o11) + chr(4998 - 4897) + '\143' + chr(0b1000001 + 0o56) + '\x64' + chr(0b11 + 0o142))('\x75' + chr(116) + chr(0b1100110) + chr(45) + '\070') + roI3spqORKae(wgf0sgcu_xPL.msg, roI3spqORKae(ES5oEprVxulp(b'\xd5b\xee+\xeds\xde\x829\xaa\x0e\x13'), chr(6057 - 5957) + chr(0b1100101) + chr(0b111101 + 0o46) + '\157' + chr(100) + chr(101))(chr(117) + chr(116) + chr(8640 - 8538) + chr(0b100101 + 0o10) + '\x38'))(), file=roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\xd1T\x94\x1b\xdec\xc7\x97,\x99\x10`'), chr(0b1100 + 0o130) + '\145' + chr(0b1100011) + chr(0b1101100 + 0o3) + '\144' + chr(0b1100101))(chr(117) + chr(0b111 + 0o155) + chr(0b1100110) + chr(0b101101) + chr(0b111000)))) if oTKrn0XRQNvQ: raise E6vuprPNsh6a(roI3spqORKae(wgf0sgcu_xPL.msg, roI3spqORKae(ES5oEprVxulp(b'\xd5b\xee+\xeds\xde\x829\xaa\x0e\x13'), chr(8983 - 8883) + '\x65' + '\x63' + chr(0b1101111) + '\144' + '\x65')(chr(117) + chr(11495 - 11379) + chr(0b1100110) + chr(1279 - 1234) + chr(0b111000)))())
dnanexus/dx-toolkit
src/python/dxpy/scripts/dx_build_app.py
_verify_app_source_dir_impl
def _verify_app_source_dir_impl(src_dir, temp_dir, mode, enforce=True): """Performs syntax and lint checks on the app source. Precondition: the dxapp.json file exists and can be parsed. """ _lint(os.path.join(src_dir, "dxapp.json"), mode) # Check that the entry point file parses as the type it is going to # be interpreted as. The extension is irrelevant. manifest = json.load(open(os.path.join(src_dir, "dxapp.json"))) if "runSpec" in manifest: if "interpreter" not in manifest['runSpec']: raise dxpy.app_builder.AppBuilderException('runSpec.interpreter field was not present') if "release" not in manifest['runSpec'] or "distribution" not in manifest['runSpec']: warn_message = 'runSpec.distribution or runSpec.release was not present. These fields ' warn_message += 'will be required in a future version of the API. Recommended value ' warn_message += 'for distribution is \"Ubuntu\" and release - \"14.04\".' logger.warn(warn_message) if manifest['runSpec']['interpreter'] in ["python2.7", "bash"]: if "file" in manifest['runSpec']: entry_point_file = os.path.abspath(os.path.join(src_dir, manifest['runSpec']['file'])) try: _check_file_syntax(entry_point_file, temp_dir, override_lang=manifest['runSpec']['interpreter'], enforce=enforce) except IOError as e: raise dxpy.app_builder.AppBuilderException( 'Could not open runSpec.file=%r. The problem was: %s' % (entry_point_file, e)) except DXSyntaxError: raise dxpy.app_builder.AppBuilderException('Entry point file %s has syntax errors, see above for details. Rerun with --no-check-syntax to proceed anyway.' % (entry_point_file,)) elif "code" in manifest['runSpec']: try: _check_syntax(manifest['runSpec']['code'], manifest['runSpec']['interpreter'], temp_dir, enforce=enforce) except DXSyntaxError: raise dxpy.app_builder.AppBuilderException('Code in runSpec.code has syntax errors, see above for details. Rerun with --no-check-syntax to proceed anyway.') cluster_bootstrap_scripts = _get_all_cluster_bootstrap_script_names(manifest) for filename in cluster_bootstrap_scripts: abs_filename = os.path.abspath(os.path.join(src_dir, filename)) try: _check_file_syntax(abs_filename, temp_dir, override_lang=manifest['runSpec']['interpreter'], enforce=enforce) except IOError as e: raise dxpy.app_builder.AppBuilderException( 'Could not open cluster bootstrap script %r. The problem was: %s' % (abs_filename, e)) except DXSyntaxError: raise dxpy.app_builder.AppBuilderException('Code in cluster bootstrapScript %r has syntax errors, see above for details. Rerun with --no-check-syntax to proceed anyway.' % filename) if 'execDepends' in manifest['runSpec']: if not isinstance(manifest['runSpec']['execDepends'], list): raise dxpy.app_builder.AppBuilderException('Expected runSpec.execDepends to be an array. Rerun with --no-check-syntax to proceed anyway.') if not all(isinstance(dep, dict) for dep in manifest['runSpec']['execDepends']): raise dxpy.app_builder.AppBuilderException('Expected runSpec.execDepends to be an array of hashes. Rerun with --no-check-syntax to proceed anyway.') if any(dep.get('package_manager', 'apt') != 'apt' for dep in manifest['runSpec']['execDepends']): if not isinstance(manifest.get('access'), dict) or 'network' not in manifest['access']: msg = '\n'.join(['runSpec.execDepends specifies non-APT dependencies, but no network access spec is given.', 'Add {"access": {"network": ["*"]}} to allow dependencies to install.', 'See https://wiki.dnanexus.com/Developer-Tutorials/Request-Additional-App-Resources#Network-Access.', 'Rerun with --no-check-syntax to proceed anyway.']) raise dxpy.app_builder.AppBuilderException(msg) if 'authorizedUsers' in manifest: if not isinstance(manifest['authorizedUsers'], list) or isinstance(manifest['authorizedUsers'], basestring): raise dxpy.app_builder.AppBuilderException('Expected authorizedUsers to be a list of strings') for thing in manifest['authorizedUsers']: if thing != 'PUBLIC' and (not isinstance(thing, basestring) or not re.match("^(org-|user-)", thing)): raise dxpy.app_builder.AppBuilderException('authorizedUsers field contains an entry which is not either the string "PUBLIC" or a user or org ID') if "pricingPolicy" in manifest: error_message = "\"pricingPolicy\" at the top level is not accepted. It must be specified " error_message += "under the \"regionalOptions\" field in all enabled regions of the app" raise dxpy.app_builder.AppBuilderException(error_message) # Check all other files that are going to be in the resources tree. # For these we detect the language based on the filename extension. # Obviously this check can have false positives, since the app can # execute (or not execute!) all these files in whatever way it # wishes, e.g. it could use Python != 2.7 or some non-bash shell. # Consequently errors here are non-fatal. files_with_problems = [] for dirpath, dirnames, filenames in os.walk(os.path.abspath(os.path.join(src_dir, "resources"))): for filename in filenames: # On Mac OS, the resource fork for "FILE.EXT" gets tarred up # as a file named "._FILE.EXT". To a naive check this # appears to be a file of the same extension. Therefore, we # exclude these from syntax checking since they are likely # to not parse as whatever language they appear to be. if not filename.startswith("._"): try: _check_file_syntax(os.path.join(dirpath, filename), temp_dir, enforce=True) except IOError as e: raise dxpy.app_builder.AppBuilderException( 'Could not open file in resources directory %r. The problem was: %s' % (os.path.join(dirpath, filename), e) ) except DXSyntaxError: # Suppresses errors from _check_file_syntax so we # only print a nice error message files_with_problems.append(os.path.join(dirpath, filename)) if files_with_problems: # Make a message of the form: # "/path/to/my/app.py" # OR "/path/to/my/app.py and 3 other files" files_str = files_with_problems[0] if len(files_with_problems) == 1 else (files_with_problems[0] + " and " + str(len(files_with_problems) - 1) + " other file" + ("s" if len(files_with_problems) > 2 else "")) logging.warn('%s contained syntax errors, see above for details' % (files_str,))
python
def _verify_app_source_dir_impl(src_dir, temp_dir, mode, enforce=True): """Performs syntax and lint checks on the app source. Precondition: the dxapp.json file exists and can be parsed. """ _lint(os.path.join(src_dir, "dxapp.json"), mode) # Check that the entry point file parses as the type it is going to # be interpreted as. The extension is irrelevant. manifest = json.load(open(os.path.join(src_dir, "dxapp.json"))) if "runSpec" in manifest: if "interpreter" not in manifest['runSpec']: raise dxpy.app_builder.AppBuilderException('runSpec.interpreter field was not present') if "release" not in manifest['runSpec'] or "distribution" not in manifest['runSpec']: warn_message = 'runSpec.distribution or runSpec.release was not present. These fields ' warn_message += 'will be required in a future version of the API. Recommended value ' warn_message += 'for distribution is \"Ubuntu\" and release - \"14.04\".' logger.warn(warn_message) if manifest['runSpec']['interpreter'] in ["python2.7", "bash"]: if "file" in manifest['runSpec']: entry_point_file = os.path.abspath(os.path.join(src_dir, manifest['runSpec']['file'])) try: _check_file_syntax(entry_point_file, temp_dir, override_lang=manifest['runSpec']['interpreter'], enforce=enforce) except IOError as e: raise dxpy.app_builder.AppBuilderException( 'Could not open runSpec.file=%r. The problem was: %s' % (entry_point_file, e)) except DXSyntaxError: raise dxpy.app_builder.AppBuilderException('Entry point file %s has syntax errors, see above for details. Rerun with --no-check-syntax to proceed anyway.' % (entry_point_file,)) elif "code" in manifest['runSpec']: try: _check_syntax(manifest['runSpec']['code'], manifest['runSpec']['interpreter'], temp_dir, enforce=enforce) except DXSyntaxError: raise dxpy.app_builder.AppBuilderException('Code in runSpec.code has syntax errors, see above for details. Rerun with --no-check-syntax to proceed anyway.') cluster_bootstrap_scripts = _get_all_cluster_bootstrap_script_names(manifest) for filename in cluster_bootstrap_scripts: abs_filename = os.path.abspath(os.path.join(src_dir, filename)) try: _check_file_syntax(abs_filename, temp_dir, override_lang=manifest['runSpec']['interpreter'], enforce=enforce) except IOError as e: raise dxpy.app_builder.AppBuilderException( 'Could not open cluster bootstrap script %r. The problem was: %s' % (abs_filename, e)) except DXSyntaxError: raise dxpy.app_builder.AppBuilderException('Code in cluster bootstrapScript %r has syntax errors, see above for details. Rerun with --no-check-syntax to proceed anyway.' % filename) if 'execDepends' in manifest['runSpec']: if not isinstance(manifest['runSpec']['execDepends'], list): raise dxpy.app_builder.AppBuilderException('Expected runSpec.execDepends to be an array. Rerun with --no-check-syntax to proceed anyway.') if not all(isinstance(dep, dict) for dep in manifest['runSpec']['execDepends']): raise dxpy.app_builder.AppBuilderException('Expected runSpec.execDepends to be an array of hashes. Rerun with --no-check-syntax to proceed anyway.') if any(dep.get('package_manager', 'apt') != 'apt' for dep in manifest['runSpec']['execDepends']): if not isinstance(manifest.get('access'), dict) or 'network' not in manifest['access']: msg = '\n'.join(['runSpec.execDepends specifies non-APT dependencies, but no network access spec is given.', 'Add {"access": {"network": ["*"]}} to allow dependencies to install.', 'See https://wiki.dnanexus.com/Developer-Tutorials/Request-Additional-App-Resources#Network-Access.', 'Rerun with --no-check-syntax to proceed anyway.']) raise dxpy.app_builder.AppBuilderException(msg) if 'authorizedUsers' in manifest: if not isinstance(manifest['authorizedUsers'], list) or isinstance(manifest['authorizedUsers'], basestring): raise dxpy.app_builder.AppBuilderException('Expected authorizedUsers to be a list of strings') for thing in manifest['authorizedUsers']: if thing != 'PUBLIC' and (not isinstance(thing, basestring) or not re.match("^(org-|user-)", thing)): raise dxpy.app_builder.AppBuilderException('authorizedUsers field contains an entry which is not either the string "PUBLIC" or a user or org ID') if "pricingPolicy" in manifest: error_message = "\"pricingPolicy\" at the top level is not accepted. It must be specified " error_message += "under the \"regionalOptions\" field in all enabled regions of the app" raise dxpy.app_builder.AppBuilderException(error_message) # Check all other files that are going to be in the resources tree. # For these we detect the language based on the filename extension. # Obviously this check can have false positives, since the app can # execute (or not execute!) all these files in whatever way it # wishes, e.g. it could use Python != 2.7 or some non-bash shell. # Consequently errors here are non-fatal. files_with_problems = [] for dirpath, dirnames, filenames in os.walk(os.path.abspath(os.path.join(src_dir, "resources"))): for filename in filenames: # On Mac OS, the resource fork for "FILE.EXT" gets tarred up # as a file named "._FILE.EXT". To a naive check this # appears to be a file of the same extension. Therefore, we # exclude these from syntax checking since they are likely # to not parse as whatever language they appear to be. if not filename.startswith("._"): try: _check_file_syntax(os.path.join(dirpath, filename), temp_dir, enforce=True) except IOError as e: raise dxpy.app_builder.AppBuilderException( 'Could not open file in resources directory %r. The problem was: %s' % (os.path.join(dirpath, filename), e) ) except DXSyntaxError: # Suppresses errors from _check_file_syntax so we # only print a nice error message files_with_problems.append(os.path.join(dirpath, filename)) if files_with_problems: # Make a message of the form: # "/path/to/my/app.py" # OR "/path/to/my/app.py and 3 other files" files_str = files_with_problems[0] if len(files_with_problems) == 1 else (files_with_problems[0] + " and " + str(len(files_with_problems) - 1) + " other file" + ("s" if len(files_with_problems) > 2 else "")) logging.warn('%s contained syntax errors, see above for details' % (files_str,))
[ "def", "_verify_app_source_dir_impl", "(", "src_dir", ",", "temp_dir", ",", "mode", ",", "enforce", "=", "True", ")", ":", "_lint", "(", "os", ".", "path", ".", "join", "(", "src_dir", ",", "\"dxapp.json\"", ")", ",", "mode", ")", "# Check that the entry point file parses as the type it is going to", "# be interpreted as. The extension is irrelevant.", "manifest", "=", "json", ".", "load", "(", "open", "(", "os", ".", "path", ".", "join", "(", "src_dir", ",", "\"dxapp.json\"", ")", ")", ")", "if", "\"runSpec\"", "in", "manifest", ":", "if", "\"interpreter\"", "not", "in", "manifest", "[", "'runSpec'", "]", ":", "raise", "dxpy", ".", "app_builder", ".", "AppBuilderException", "(", "'runSpec.interpreter field was not present'", ")", "if", "\"release\"", "not", "in", "manifest", "[", "'runSpec'", "]", "or", "\"distribution\"", "not", "in", "manifest", "[", "'runSpec'", "]", ":", "warn_message", "=", "'runSpec.distribution or runSpec.release was not present. These fields '", "warn_message", "+=", "'will be required in a future version of the API. Recommended value '", "warn_message", "+=", "'for distribution is \\\"Ubuntu\\\" and release - \\\"14.04\\\".'", "logger", ".", "warn", "(", "warn_message", ")", "if", "manifest", "[", "'runSpec'", "]", "[", "'interpreter'", "]", "in", "[", "\"python2.7\"", ",", "\"bash\"", "]", ":", "if", "\"file\"", "in", "manifest", "[", "'runSpec'", "]", ":", "entry_point_file", "=", "os", ".", "path", ".", "abspath", "(", "os", ".", "path", ".", "join", "(", "src_dir", ",", "manifest", "[", "'runSpec'", "]", "[", "'file'", "]", ")", ")", "try", ":", "_check_file_syntax", "(", "entry_point_file", ",", "temp_dir", ",", "override_lang", "=", "manifest", "[", "'runSpec'", "]", "[", "'interpreter'", "]", ",", "enforce", "=", "enforce", ")", "except", "IOError", "as", "e", ":", "raise", "dxpy", ".", "app_builder", ".", "AppBuilderException", "(", "'Could not open runSpec.file=%r. The problem was: %s'", "%", "(", "entry_point_file", ",", "e", ")", ")", "except", "DXSyntaxError", ":", "raise", "dxpy", ".", "app_builder", ".", "AppBuilderException", "(", "'Entry point file %s has syntax errors, see above for details. Rerun with --no-check-syntax to proceed anyway.'", "%", "(", "entry_point_file", ",", ")", ")", "elif", "\"code\"", "in", "manifest", "[", "'runSpec'", "]", ":", "try", ":", "_check_syntax", "(", "manifest", "[", "'runSpec'", "]", "[", "'code'", "]", ",", "manifest", "[", "'runSpec'", "]", "[", "'interpreter'", "]", ",", "temp_dir", ",", "enforce", "=", "enforce", ")", "except", "DXSyntaxError", ":", "raise", "dxpy", ".", "app_builder", ".", "AppBuilderException", "(", "'Code in runSpec.code has syntax errors, see above for details. Rerun with --no-check-syntax to proceed anyway.'", ")", "cluster_bootstrap_scripts", "=", "_get_all_cluster_bootstrap_script_names", "(", "manifest", ")", "for", "filename", "in", "cluster_bootstrap_scripts", ":", "abs_filename", "=", "os", ".", "path", ".", "abspath", "(", "os", ".", "path", ".", "join", "(", "src_dir", ",", "filename", ")", ")", "try", ":", "_check_file_syntax", "(", "abs_filename", ",", "temp_dir", ",", "override_lang", "=", "manifest", "[", "'runSpec'", "]", "[", "'interpreter'", "]", ",", "enforce", "=", "enforce", ")", "except", "IOError", "as", "e", ":", "raise", "dxpy", ".", "app_builder", ".", "AppBuilderException", "(", "'Could not open cluster bootstrap script %r. The problem was: %s'", "%", "(", "abs_filename", ",", "e", ")", ")", "except", "DXSyntaxError", ":", "raise", "dxpy", ".", "app_builder", ".", "AppBuilderException", "(", "'Code in cluster bootstrapScript %r has syntax errors, see above for details. Rerun with --no-check-syntax to proceed anyway.'", "%", "filename", ")", "if", "'execDepends'", "in", "manifest", "[", "'runSpec'", "]", ":", "if", "not", "isinstance", "(", "manifest", "[", "'runSpec'", "]", "[", "'execDepends'", "]", ",", "list", ")", ":", "raise", "dxpy", ".", "app_builder", ".", "AppBuilderException", "(", "'Expected runSpec.execDepends to be an array. Rerun with --no-check-syntax to proceed anyway.'", ")", "if", "not", "all", "(", "isinstance", "(", "dep", ",", "dict", ")", "for", "dep", "in", "manifest", "[", "'runSpec'", "]", "[", "'execDepends'", "]", ")", ":", "raise", "dxpy", ".", "app_builder", ".", "AppBuilderException", "(", "'Expected runSpec.execDepends to be an array of hashes. Rerun with --no-check-syntax to proceed anyway.'", ")", "if", "any", "(", "dep", ".", "get", "(", "'package_manager'", ",", "'apt'", ")", "!=", "'apt'", "for", "dep", "in", "manifest", "[", "'runSpec'", "]", "[", "'execDepends'", "]", ")", ":", "if", "not", "isinstance", "(", "manifest", ".", "get", "(", "'access'", ")", ",", "dict", ")", "or", "'network'", "not", "in", "manifest", "[", "'access'", "]", ":", "msg", "=", "'\\n'", ".", "join", "(", "[", "'runSpec.execDepends specifies non-APT dependencies, but no network access spec is given.'", ",", "'Add {\"access\": {\"network\": [\"*\"]}} to allow dependencies to install.'", ",", "'See https://wiki.dnanexus.com/Developer-Tutorials/Request-Additional-App-Resources#Network-Access.'", ",", "'Rerun with --no-check-syntax to proceed anyway.'", "]", ")", "raise", "dxpy", ".", "app_builder", ".", "AppBuilderException", "(", "msg", ")", "if", "'authorizedUsers'", "in", "manifest", ":", "if", "not", "isinstance", "(", "manifest", "[", "'authorizedUsers'", "]", ",", "list", ")", "or", "isinstance", "(", "manifest", "[", "'authorizedUsers'", "]", ",", "basestring", ")", ":", "raise", "dxpy", ".", "app_builder", ".", "AppBuilderException", "(", "'Expected authorizedUsers to be a list of strings'", ")", "for", "thing", "in", "manifest", "[", "'authorizedUsers'", "]", ":", "if", "thing", "!=", "'PUBLIC'", "and", "(", "not", "isinstance", "(", "thing", ",", "basestring", ")", "or", "not", "re", ".", "match", "(", "\"^(org-|user-)\"", ",", "thing", ")", ")", ":", "raise", "dxpy", ".", "app_builder", ".", "AppBuilderException", "(", "'authorizedUsers field contains an entry which is not either the string \"PUBLIC\" or a user or org ID'", ")", "if", "\"pricingPolicy\"", "in", "manifest", ":", "error_message", "=", "\"\\\"pricingPolicy\\\" at the top level is not accepted. It must be specified \"", "error_message", "+=", "\"under the \\\"regionalOptions\\\" field in all enabled regions of the app\"", "raise", "dxpy", ".", "app_builder", ".", "AppBuilderException", "(", "error_message", ")", "# Check all other files that are going to be in the resources tree.", "# For these we detect the language based on the filename extension.", "# Obviously this check can have false positives, since the app can", "# execute (or not execute!) all these files in whatever way it", "# wishes, e.g. it could use Python != 2.7 or some non-bash shell.", "# Consequently errors here are non-fatal.", "files_with_problems", "=", "[", "]", "for", "dirpath", ",", "dirnames", ",", "filenames", "in", "os", ".", "walk", "(", "os", ".", "path", ".", "abspath", "(", "os", ".", "path", ".", "join", "(", "src_dir", ",", "\"resources\"", ")", ")", ")", ":", "for", "filename", "in", "filenames", ":", "# On Mac OS, the resource fork for \"FILE.EXT\" gets tarred up", "# as a file named \"._FILE.EXT\". To a naive check this", "# appears to be a file of the same extension. Therefore, we", "# exclude these from syntax checking since they are likely", "# to not parse as whatever language they appear to be.", "if", "not", "filename", ".", "startswith", "(", "\"._\"", ")", ":", "try", ":", "_check_file_syntax", "(", "os", ".", "path", ".", "join", "(", "dirpath", ",", "filename", ")", ",", "temp_dir", ",", "enforce", "=", "True", ")", "except", "IOError", "as", "e", ":", "raise", "dxpy", ".", "app_builder", ".", "AppBuilderException", "(", "'Could not open file in resources directory %r. The problem was: %s'", "%", "(", "os", ".", "path", ".", "join", "(", "dirpath", ",", "filename", ")", ",", "e", ")", ")", "except", "DXSyntaxError", ":", "# Suppresses errors from _check_file_syntax so we", "# only print a nice error message", "files_with_problems", ".", "append", "(", "os", ".", "path", ".", "join", "(", "dirpath", ",", "filename", ")", ")", "if", "files_with_problems", ":", "# Make a message of the form:", "# \"/path/to/my/app.py\"", "# OR \"/path/to/my/app.py and 3 other files\"", "files_str", "=", "files_with_problems", "[", "0", "]", "if", "len", "(", "files_with_problems", ")", "==", "1", "else", "(", "files_with_problems", "[", "0", "]", "+", "\" and \"", "+", "str", "(", "len", "(", "files_with_problems", ")", "-", "1", ")", "+", "\" other file\"", "+", "(", "\"s\"", "if", "len", "(", "files_with_problems", ")", ">", "2", "else", "\"\"", ")", ")", "logging", ".", "warn", "(", "'%s contained syntax errors, see above for details'", "%", "(", "files_str", ",", ")", ")" ]
Performs syntax and lint checks on the app source. Precondition: the dxapp.json file exists and can be parsed.
[ "Performs", "syntax", "and", "lint", "checks", "on", "the", "app", "source", "." ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/scripts/dx_build_app.py#L308-L415
train
Checks that the dxapp. json file exists and parses as the type it is going to be parsed.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3I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WK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110010) + chr(0b100111 + 0o20) + chr(48), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110001) + chr(0b110011) + chr(0b10111 + 0o34), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b100001 + 0o20) + chr(0b10100 + 0o41) + chr(50), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\062' + '\x35' + '\x33', 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(2257 - 2207) + '\x34' + '\x37', ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + '\063' + chr(0b11010 + 0o32) + chr(625 - 570), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(958 - 907) + '\061', 0b1000), nzTpIcepk0o8('\x30' + chr(12220 - 12109) + chr(766 - 717) + '\x31' + chr(0b110111), 0b1000), nzTpIcepk0o8('\x30' + chr(5999 - 5888) + chr(0b110001) + chr(52) + chr(1299 - 1251), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110001) + chr(48) + '\x35', 0o10), nzTpIcepk0o8(chr(1421 - 1373) + '\x6f' + chr(50), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + '\x31' + chr(923 - 872) + '\x36', 58529 - 58521), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(50) + chr(0b100011 + 0o20) + '\x32', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110010) + chr(0b111 + 0o55) + '\x32', ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110001) + '\067', 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110010) + '\063' + chr(54), 22663 - 22655), nzTpIcepk0o8(chr(0b110000) + chr(1024 - 913) + chr(52) + '\x30', ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(0b11111 + 0o30) + chr(0b1100 + 0o50), 0o10), nzTpIcepk0o8(chr(382 - 334) + chr(0b1101111) + '\061' + chr(0b110101) + chr(0b11110 + 0o26), ord("\x08")), nzTpIcepk0o8(chr(0b100010 + 0o16) + chr(2743 - 2632) + '\061' + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + '\x32' + '\x37' + chr(220 - 170), ord("\x08")), nzTpIcepk0o8(chr(563 - 515) + chr(0b1100101 + 0o12) + chr(348 - 297) + chr(0b110110) + chr(0b110010), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\061' + chr(0b1000 + 0o55) + '\066', 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(51) + '\061' + chr(0b110010), 0b1000), nzTpIcepk0o8(chr(0b10110 + 0o32) + chr(111) + chr(0b110010) + chr(51) + '\061', 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(644 - 595) + '\x31', 0o10), nzTpIcepk0o8('\060' + '\157' + '\x32' + chr(0b110011) + chr(70 - 22), 0b1000), nzTpIcepk0o8(chr(48) + chr(10067 - 9956) + chr(50) + chr(0b101000 + 0o10) + chr(0b110001 + 0o5), ord("\x08")), nzTpIcepk0o8(chr(0b100110 + 0o12) + chr(0b1101111) + '\063' + '\x33' + chr(0b11101 + 0o27), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b101000 + 0o107) + '\x33' + chr(1780 - 1729) + chr(1431 - 1382), 0o10), nzTpIcepk0o8(chr(0b1001 + 0o47) + chr(111) + chr(1628 - 1577) + chr(176 - 127) + chr(0b100101 + 0o20), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(53) + chr(48), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\062' + '\064' + '\065', 0b1000), nzTpIcepk0o8('\060' + chr(9576 - 9465) + chr(1833 - 1782) + chr(0b110100) + chr(2369 - 2319), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110111) + '\066', ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + '\x32' + chr(0b110000) + '\x35', 0b1000), nzTpIcepk0o8(chr(2190 - 2142) + chr(111) + chr(151 - 100) + '\066' + '\063', 0o10), nzTpIcepk0o8(chr(48) + chr(7617 - 7506) + chr(2025 - 1974) + chr(1321 - 1266) + chr(0b110010), 0o10), nzTpIcepk0o8('\060' + '\157' + chr(0b10101 + 0o35) + chr(0b111 + 0o55) + chr(810 - 757), 8), nzTpIcepk0o8(chr(48) + '\x6f' + chr(49) + '\067' + '\060', 25757 - 25749)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + chr(4072 - 3961) + chr(0b100001 + 0o24) + chr(1838 - 1790), 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x96'), chr(0b1100100) + chr(9420 - 9319) + '\143' + chr(8713 - 8602) + '\144' + '\x65')(chr(9010 - 8893) + chr(0b1110100) + chr(0b1100110) + '\055' + '\x38') + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def RaQNSVFqJzOF(zgBFj9gT640a, GyAy3QLpczkR, bmJ7SvuZE3jD, oTKrn0XRQNvQ=nzTpIcepk0o8(chr(0b110000) + '\157' + chr(49), 24692 - 24684)): zYPR_tZIPsDY(roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'\xe1o\x13\xe6\x9e\xa5z)4\x06L/'), '\144' + chr(1528 - 1427) + '\143' + '\x6f' + chr(100) + '\145')(chr(117) + chr(116) + '\146' + '\055' + chr(0b111000)))(zgBFj9gT640a, roI3spqORKae(ES5oEprVxulp(b'\xdc#\x0b\xdb\xd7\xc9s<\x0f+'), '\x64' + chr(0b1100101) + '\143' + '\x6f' + chr(100) + chr(0b1100101))(chr(0b1110101) + '\x74' + '\146' + '\055' + chr(0b111000))), bmJ7SvuZE3jD) GzPN4ExNnJkz = LNUKEwZDIbyb.ZERsdc7c1d8E(DnU3Rq9N5ala(aHUqKstZLeS6.path.Y4yM9BcfTCNq(zgBFj9gT640a, roI3spqORKae(ES5oEprVxulp(b'\xdc#\x0b\xdb\xd7\xc9s<\x0f+'), chr(100) + '\x65' + chr(0b1011101 + 0o6) + chr(9827 - 9716) + '\x64' + '\x65')(chr(0b1 + 0o164) + '\164' + chr(102) + chr(0b101101) + chr(0b110101 + 0o3))))) if roI3spqORKae(ES5oEprVxulp(b'\xca.\x04\xf8\xd7\x82z'), chr(0b1100100) + chr(0b1100101) + '\143' + chr(9927 - 9816) + '\x64' + '\x65')('\165' + '\x74' + chr(0b1100110) + '\x2d' + '\x38') in GzPN4ExNnJkz: if roI3spqORKae(ES5oEprVxulp(b'\xd15\x1e\xce\xd5\x97k*\x14 p'), chr(0b1011 + 0o131) + '\x65' + chr(0b1011011 + 0o10) + chr(10619 - 10508) + chr(9950 - 9850) + chr(0b1100101))(chr(0b1000000 + 0o65) + chr(10440 - 10324) + '\x66' + chr(0b100011 + 0o12) + chr(0b111000)) not in GzPN4ExNnJkz[roI3spqORKae(ES5oEprVxulp(b'\xca.\x04\xf8\xd7\x82z'), '\144' + chr(0b1011 + 0o132) + '\x63' + chr(10394 - 10283) + '\x64' + chr(6429 - 6328))(chr(0b1110101) + '\164' + chr(0b1100110) + chr(45) + chr(0b111000))]: raise roI3spqORKae(SsdNdRxXOwsF.app_builder, roI3spqORKae(ES5oEprVxulp(b'\xf9+\x1a\xe9\xd2\x8eu+\x057G&\xf9\xc7\x7f\xeaIS\x02'), chr(0b10001 + 0o123) + '\x65' + '\143' + chr(0b1101111) + chr(100) + chr(101))(chr(0b1110101) + chr(5685 - 5569) + chr(102) + chr(1810 - 1765) + '\070'))(roI3spqORKae(ES5oEprVxulp(b'\xca.\x04\xf8\xd7\x82za\t+v;\xe8\xd2}\xfbTY\x1e,\xdc\x9b\x0b\xa6\xfd)\xef\xe7\xaf\xf9\xa3G\xd1\xc2N\xf7\x96\x89\xc0\x16\xcc'), '\144' + chr(3303 - 3202) + chr(0b1100011) + chr(2065 - 1954) + chr(8210 - 8110) + '\x65')(chr(12688 - 12571) + '\164' + chr(102) + chr(0b101101) + chr(2072 - 2016))) if roI3spqORKae(ES5oEprVxulp(b'\xca>\x06\xce\xc6\x94|'), chr(549 - 449) + chr(0b110000 + 0o65) + chr(8143 - 8044) + chr(6168 - 6057) + chr(100) + chr(0b1100 + 0o131))(chr(0b11101 + 0o130) + chr(0b1110100) + chr(102) + chr(45) + '\x38') not in GzPN4ExNnJkz[roI3spqORKae(ES5oEprVxulp(b'\xca.\x04\xf8\xd7\x82z'), chr(100) + chr(0b110011 + 0o62) + chr(0b1100011) + '\157' + chr(100) + '\x65')(chr(117) + chr(4976 - 4860) + chr(0b110 + 0o140) + chr(1058 - 1013) + '\070')] or roI3spqORKae(ES5oEprVxulp(b'\xdc2\x19\xdf\xd5\x8e{:\x14,m0'), '\x64' + chr(101) + '\x63' + chr(0b1101111) + chr(8828 - 8728) + chr(0b1100101))(chr(117) + chr(116) + chr(6234 - 6132) + '\055' + chr(56)) not in GzPN4ExNnJkz[roI3spqORKae(ES5oEprVxulp(b'\xca.\x04\xf8\xd7\x82z'), chr(7626 - 7526) + chr(7473 - 7372) + chr(6747 - 6648) + '\157' + chr(100) + '\145')(chr(117) + chr(116) + chr(0b111010 + 0o54) + '\x2d' + chr(56))]: EEFPcskhuHpl = roI3spqORKae(ES5oEprVxulp(b'\xca.\x04\xf8\xd7\x82za\x04,q*\xe8\xcbm\xebTU\x03b\x9a\x9d\x1c\xea\xeb|\xf6\xd5\xac\xbc\xae\x06\xd7\x87R\xe0\x92\x89\xc0X\xcf:\x19\x8b\xc9\x88mo\x107g-\xff\xcc{\xb0\x00h\x04i\xc9\x97N\xac\xf0l\xf4\xe2\xaf\xf9'), '\x64' + chr(0b1100101) + '\x63' + chr(111) + '\144' + '\x65')(chr(117) + chr(0b1110100) + chr(0b101 + 0o141) + '\x2d' + chr(1193 - 1137)) EEFPcskhuHpl += roI3spqORKae(ES5oEprVxulp(b'\xcf2\x06\xc7\x87\x85|o\x12 s+\xf3\xd0j\xfa\x00U\x02,\xdb\xd2\x08\xbf\xed|\xea\xe3\xfc\xaf\xa8Z\xd6\x8bQ\xeb\xd3\x95\xc3X\xcc3\x0f\x8b\xe6\xb7Pa@\x17g=\xf5\xcfb\xfbNX\th\x9a\x84\x0f\xa6\xecl\xb8'), '\144' + chr(0b1100101) + chr(0b1100011) + chr(114 - 3) + chr(0b1100100) + chr(0b11010 + 0o113))('\x75' + chr(0b1001000 + 0o54) + '\x66' + chr(0b101101) + chr(0b10011 + 0o45)) EEFPcskhuHpl += roI3spqORKae(ES5oEprVxulp(b'\xde4\x18\x8b\xc3\x8ej;\x12,`+\xee\xcb`\xf0\x00U\x1f,\x98\xa7\x0c\xbf\xf7}\xed\xa4\xfc\xb8\xa3L\x85\x90[\xe9\x96\x9b\xd6\x1d\x98vJ\x89\x96\xd37\x7fTg,'), chr(8773 - 8673) + chr(0b1000110 + 0o37) + '\143' + '\x6f' + chr(777 - 677) + chr(7443 - 7342))('\x75' + chr(0b1011010 + 0o32) + chr(0b1100110) + '\055' + '\x38') roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'\xcb\x11;\xfd\xf8\xafh\x1cY#e$'), chr(0b10011 + 0o121) + chr(0b1100101) + '\143' + chr(4562 - 4451) + chr(0b1100100) + chr(5991 - 5890))(chr(0b1010110 + 0o37) + '\x74' + chr(102) + '\x2d' + chr(56)))(EEFPcskhuHpl) if GzPN4ExNnJkz[roI3spqORKae(ES5oEprVxulp(b'\xca.\x04\xf8\xd7\x82z'), '\x64' + chr(101) + chr(4100 - 4001) + chr(111) + chr(4955 - 4855) + chr(0b1000000 + 0o45))('\165' + chr(116) + chr(0b101110 + 0o70) + '\x2d' + '\x38')][roI3spqORKae(ES5oEprVxulp(b'\xd15\x1e\xce\xd5\x97k*\x14 p'), '\x64' + chr(1414 - 1313) + chr(0b1011000 + 0o13) + chr(0b10110 + 0o131) + chr(0b1100100) + chr(101))(chr(0b100100 + 0o121) + chr(0b1001111 + 0o45) + chr(0b1100110) + chr(0b10 + 0o53) + '\x38')] in [roI3spqORKae(ES5oEprVxulp(b'\xc8"\x1e\xc3\xc8\x89+aW'), '\144' + chr(0b1100101) + chr(6426 - 6327) + chr(0b101001 + 0o106) + chr(7466 - 7366) + chr(0b1010111 + 0o16))(chr(117) + chr(0b1100101 + 0o17) + chr(0b1100110) + chr(1474 - 1429) + '\x38'), roI3spqORKae(ES5oEprVxulp(b'\xda:\x19\xc3'), chr(0b1100100) + chr(0b100 + 0o141) + chr(99) + chr(0b1010110 + 0o31) + '\144' + '\145')(chr(2150 - 2033) + '\x74' + '\146' + '\x2d' + chr(56))]: if roI3spqORKae(ES5oEprVxulp(b'\xde2\x06\xce'), '\144' + chr(1743 - 1642) + chr(99) + chr(2071 - 1960) + '\x64' + chr(814 - 713))(chr(0b100001 + 0o124) + chr(0b1110100) + '\146' + chr(1824 - 1779) + '\x38') in GzPN4ExNnJkz[roI3spqORKae(ES5oEprVxulp(b'\xca.\x04\xf8\xd7\x82z'), '\144' + chr(0b1100101) + chr(7065 - 6966) + chr(0b1101111) + chr(100) + chr(0b1000110 + 0o37))(chr(0b1110101) + chr(0b1110100) + '\146' + chr(1336 - 1291) + chr(56))]: VzGr7XLpujE9 = aHUqKstZLeS6.path.LSQRPdli1Fxe(aHUqKstZLeS6.path.Y4yM9BcfTCNq(zgBFj9gT640a, GzPN4ExNnJkz[roI3spqORKae(ES5oEprVxulp(b'\xca.\x04\xf8\xd7\x82z'), chr(0b1100100) + chr(0b1011 + 0o132) + chr(0b111111 + 0o44) + chr(111) + chr(100) + chr(4797 - 4696))('\165' + chr(116) + '\x66' + '\055' + '\x38')][roI3spqORKae(ES5oEprVxulp(b'\xde2\x06\xce'), chr(0b1100100) + chr(0b1011011 + 0o12) + chr(258 - 159) + chr(0b1101111) + chr(0b1100100) + '\145')(chr(0b1110101) + '\x74' + chr(0b10010 + 0o124) + '\x2d' + '\x38')])) try: UAwMy7YjoPql(VzGr7XLpujE9, GyAy3QLpczkR, override_lang=GzPN4ExNnJkz[roI3spqORKae(ES5oEprVxulp(b'\xca.\x04\xf8\xd7\x82z'), chr(7723 - 7623) + chr(101) + '\143' + chr(0b1101111) + '\x64' + chr(101))(chr(117) + chr(0b1000000 + 0o64) + chr(0b1100110) + chr(0b101101) + chr(56))][roI3spqORKae(ES5oEprVxulp(b'\xd15\x1e\xce\xd5\x97k*\x14 p'), '\144' + '\145' + chr(2035 - 1936) + chr(3247 - 3136) + chr(8715 - 8615) + chr(0b1001 + 0o134))(chr(0b1010 + 0o153) + chr(0b1101011 + 0o11) + chr(0b1100110) + '\055' + chr(0b111000))], enforce=oTKrn0XRQNvQ) except Awc2QmWaiVq8 as wgf0sgcu_xPL: raise roI3spqORKae(SsdNdRxXOwsF.app_builder, roI3spqORKae(ES5oEprVxulp(b'\xf9+\x1a\xe9\xd2\x8eu+\x057G&\xf9\xc7\x7f\xeaIS\x02'), chr(0b1111 + 0o125) + '\145' + chr(99) + chr(0b1000101 + 0o52) + chr(0b1100100) + '\145')('\165' + '\x74' + chr(8163 - 8061) + '\055' + chr(304 - 248)))(roI3spqORKae(ES5oEprVxulp(b'\xfb4\x1f\xc7\xc3\xc7w \x14em.\xff\xcc/\xecUR?|\xdf\x91@\xac\xf0e\xfd\xbb\xf9\xab\xe3\x08\xf1\x8a[\xa5\x83\x88\xca\x1a\xd4>\x07\x8b\xd0\x86ju@`q'), chr(100) + chr(0b111011 + 0o52) + chr(0b1001111 + 0o24) + chr(7546 - 7435) + chr(100) + chr(0b100101 + 0o100))('\165' + chr(0b1011011 + 0o31) + chr(0b10000 + 0o126) + chr(45) + chr(56)) % (VzGr7XLpujE9, wgf0sgcu_xPL)) except E6vuprPNsh6a: raise roI3spqORKae(SsdNdRxXOwsF.app_builder, roI3spqORKae(ES5oEprVxulp(b'\xf9+\x1a\xe9\xd2\x8eu+\x057G&\xf9\xc7\x7f\xeaIS\x02'), '\x64' + chr(5902 - 5801) + '\143' + '\157' + chr(1922 - 1822) + chr(0b1100101))('\x75' + chr(116) + '\146' + chr(45) + '\070'))(roI3spqORKae(ES5oEprVxulp(b'\xfd5\x1e\xd9\xde\xc7i \t+v~\xfc\xcbc\xfb\x00\x19\x1f,\xd2\x93\x1d\xea\xeap\xf6\xf2\xbd\xa1\xedM\xd7\x90Q\xf7\x80\xd6\x85\x0b\xdd>J\xca\xc5\x88o*@#m,\xba\xc6j\xeaAU\x00\x7f\x94\xd2<\xaf\xeb|\xf6\xa6\xab\xb0\xb9@\x85\xcf\x13\xeb\x9c\xd7\xc6\x10\xdd8\x01\x86\xd4\x9ew;\x01="*\xf5\x82\x7f\xecO_\ti\xde\xd2\x0f\xa4\xe0~\xf9\xff\xf2'), '\x64' + chr(1456 - 1355) + '\143' + chr(0b100000 + 0o117) + chr(100) + chr(0b1011101 + 0o10))('\x75' + '\164' + chr(102) + chr(45) + chr(56)) % (VzGr7XLpujE9,)) elif roI3spqORKae(ES5oEprVxulp(b'\xdb4\x0e\xce'), chr(4784 - 4684) + '\145' + chr(99) + chr(9007 - 8896) + '\x64' + chr(0b1100101))('\x75' + chr(116) + chr(102) + chr(0b101101) + '\x38') in GzPN4ExNnJkz[roI3spqORKae(ES5oEprVxulp(b'\xca.\x04\xf8\xd7\x82z'), chr(0b1100100) + chr(101) + chr(0b1100011) + chr(0b1101111) + chr(0b1100100) + '\x65')(chr(13280 - 13163) + chr(0b110111 + 0o75) + chr(0b1100110) + chr(0b101101) + chr(0b111000))]: try: nywY1_m7TScb(GzPN4ExNnJkz[roI3spqORKae(ES5oEprVxulp(b'\xca.\x04\xf8\xd7\x82z'), chr(0b111000 + 0o54) + chr(0b110011 + 0o62) + '\x63' + chr(4267 - 4156) + chr(0b100101 + 0o77) + chr(101))(chr(117) + chr(0b1110100) + '\x66' + chr(45) + '\070')][roI3spqORKae(ES5oEprVxulp(b'\xdb4\x0e\xce'), chr(100) + '\x65' + '\143' + chr(111) + chr(0b1100100) + '\145')('\165' + chr(0b10010 + 0o142) + chr(9557 - 9455) + chr(0b101011 + 0o2) + '\070')], GzPN4ExNnJkz[roI3spqORKae(ES5oEprVxulp(b'\xca.\x04\xf8\xd7\x82z'), chr(0b1100100) + '\x65' + chr(99) + chr(0b1101111) + chr(0b1011110 + 0o6) + chr(0b11111 + 0o106))(chr(0b1011010 + 0o33) + chr(0b1101010 + 0o12) + '\146' + '\055' + '\070')][roI3spqORKae(ES5oEprVxulp(b'\xd15\x1e\xce\xd5\x97k*\x14 p'), chr(100) + chr(101) + chr(1874 - 1775) + '\157' + chr(0b1100100) + chr(101))('\165' + chr(7818 - 7702) + chr(0b1100110) + chr(0b101101) + '\070')], GyAy3QLpczkR, enforce=oTKrn0XRQNvQ) except E6vuprPNsh6a: raise roI3spqORKae(SsdNdRxXOwsF.app_builder, roI3spqORKae(ES5oEprVxulp(b'\xf9+\x1a\xe9\xd2\x8eu+\x057G&\xf9\xc7\x7f\xeaIS\x02'), chr(0b1100100) + chr(101) + chr(754 - 655) + chr(0b1101111) + '\x64' + '\145')('\165' + chr(0b1110100) + chr(0b1100110) + chr(0b101101) + chr(0b110101 + 0o3)))(roI3spqORKae(ES5oEprVxulp(b'\xfb4\x0e\xce\x87\x8ewo\x120l\r\xea\xc7l\xb0CS\x08i\x9a\x9a\x0f\xb9\xb9z\xe1\xe8\xa8\xb8\xb5\x08\xc0\x90L\xea\x81\x89\x89X\xcb>\x0f\x8b\xc6\x85v9\x05ed1\xe8\x82k\xfbT]\x05`\xc9\xdcN\x98\xfc{\xed\xe8\xfc\xae\xa4\\\xcd\xc2\x13\xa8\x9d\x95\x88\x1b\xd0>\t\xc0\x8a\x94`!\x14$z~\xee\xcd/\xeeRS\x0fi\xdf\x96N\xab\xf7p\xef\xe7\xa5\xf7'), chr(100) + '\145' + chr(1321 - 1222) + '\157' + '\144' + chr(2789 - 2688))(chr(117) + '\x74' + chr(2458 - 2356) + chr(0b101101) + '\070')) nOcYcAq9159Y = EOdHLnu1V97d(GzPN4ExNnJkz) for FxZHtXEolYsL in nOcYcAq9159Y: KGV4OMPOWgMl = aHUqKstZLeS6.path.LSQRPdli1Fxe(aHUqKstZLeS6.path.Y4yM9BcfTCNq(zgBFj9gT640a, FxZHtXEolYsL)) try: UAwMy7YjoPql(KGV4OMPOWgMl, GyAy3QLpczkR, override_lang=GzPN4ExNnJkz[roI3spqORKae(ES5oEprVxulp(b'\xca.\x04\xf8\xd7\x82z'), '\144' + '\x65' + '\143' + chr(0b101100 + 0o103) + chr(0b1100100) + chr(101))('\165' + chr(116) + '\146' + '\x2d' + chr(3007 - 2951))][roI3spqORKae(ES5oEprVxulp(b'\xd15\x1e\xce\xd5\x97k*\x14 p'), chr(100) + chr(0b1100101) + chr(3360 - 3261) + chr(111) + chr(0b111000 + 0o54) + '\x65')(chr(117) + '\x74' + chr(102) + chr(45) + chr(0b101101 + 0o13))], enforce=oTKrn0XRQNvQ) except Awc2QmWaiVq8 as wgf0sgcu_xPL: raise roI3spqORKae(SsdNdRxXOwsF.app_builder, roI3spqORKae(ES5oEprVxulp(b'\xf9+\x1a\xe9\xd2\x8eu+\x057G&\xf9\xc7\x7f\xeaIS\x02'), chr(100) + '\x65' + chr(0b110111 + 0o54) + chr(0b1100111 + 0o10) + '\144' + chr(0b1100101))(chr(0b1001111 + 0o46) + chr(116) + '\146' + chr(0b101101) + chr(0b11010 + 0o36)))(roI3spqORKae(ES5oEprVxulp(b'\xfb4\x1f\xc7\xc3\xc7w \x14em.\xff\xcc/\xfdLI\x1fx\xdf\x80N\xa8\xf6f\xec\xf5\xa8\xab\xacX\x85\x91]\xf7\x9a\x8a\xd1X\x9d)D\x8b\xf3\x8f|o\x107m<\xf6\xc7b\xbeW]\x1f6\x9a\xd7\x1d'), '\144' + '\x65' + chr(99) + chr(111) + chr(0b1100100) + chr(0b1100000 + 0o5))(chr(0b1001101 + 0o50) + '\164' + chr(0b1100110) + chr(0b1011 + 0o42) + '\x38') % (KGV4OMPOWgMl, wgf0sgcu_xPL)) except E6vuprPNsh6a: raise roI3spqORKae(SsdNdRxXOwsF.app_builder, roI3spqORKae(ES5oEprVxulp(b'\xf9+\x1a\xe9\xd2\x8eu+\x057G&\xf9\xc7\x7f\xeaIS\x02'), '\144' + '\x65' + '\143' + chr(111) + '\x64' + '\145')('\x75' + chr(887 - 771) + chr(0b1100110) + chr(616 - 571) + chr(56)))(roI3spqORKae(ES5oEprVxulp(b'\xfb4\x0e\xce\x87\x8ewo\x03)w-\xee\xc7}\xbeBS\x03x\xc9\x86\x1c\xab\xe9Z\xfb\xf4\xb5\xa9\xb9\x08\x80\x90\x1e\xed\x92\x89\x85\x0b\xc15\x1e\xca\xdf\xc7|=\x12*p-\xb6\x82|\xfbE\x1c\rn\xd5\x84\x0b\xea\xfff\xea\xa6\xb8\xbc\xb9I\xcc\x8eM\xab\xd3\xa8\xc0\n\xcd5J\xdc\xce\x93qoMhl1\xb7\xc1g\xfbCWA\x7f\xc3\x9c\x1a\xab\xe1)\xec\xe9\xfc\xa9\xbfG\xc6\x87[\xe1\xd3\x9b\xcb\x01\xcf:\x13\x85'), '\x64' + '\145' + chr(5576 - 5477) + '\x6f' + chr(0b11011 + 0o111) + chr(0b10010 + 0o123))('\x75' + chr(737 - 621) + chr(102) + '\x2d' + chr(56)) % FxZHtXEolYsL) if roI3spqORKae(ES5oEprVxulp(b'\xdd#\x0f\xc8\xe3\x82i*\x0e!q'), chr(0b1100100) + chr(0b1100101) + chr(0b1100011) + '\x6f' + chr(0b1100100) + '\145')(chr(5077 - 4960) + chr(9334 - 9218) + chr(6073 - 5971) + chr(0b11 + 0o52) + chr(56)) in GzPN4ExNnJkz[roI3spqORKae(ES5oEprVxulp(b'\xca.\x04\xf8\xd7\x82z'), chr(0b111111 + 0o45) + '\x65' + '\143' + chr(0b1000000 + 0o57) + '\144' + '\x65')(chr(0b1110101) + chr(12805 - 12689) + '\x66' + chr(0b101101) + chr(0b111000))]: if not suIjIS24Zkqw(GzPN4ExNnJkz[roI3spqORKae(ES5oEprVxulp(b'\xca.\x04\xf8\xd7\x82z'), chr(0b1100100) + '\145' + '\x63' + chr(0b1101111) + chr(100) + chr(6068 - 5967))('\165' + '\164' + chr(10254 - 10152) + '\055' + '\x38')][roI3spqORKae(ES5oEprVxulp(b'\xdd#\x0f\xc8\xe3\x82i*\x0e!q'), '\144' + chr(0b1100101) + '\x63' + '\x6f' + chr(0b100110 + 0o76) + chr(0b1100101))('\x75' + chr(0b1000 + 0o154) + '\146' + chr(0b100 + 0o51) + chr(0b110101 + 0o3))], H4NoA26ON7iG): raise roI3spqORKae(SsdNdRxXOwsF.app_builder, roI3spqORKae(ES5oEprVxulp(b'\xf9+\x1a\xe9\xd2\x8eu+\x057G&\xf9\xc7\x7f\xeaIS\x02'), chr(0b1100100) + '\145' + '\x63' + chr(0b100100 + 0o113) + '\x64' + '\x65')(chr(0b1010 + 0o153) + '\x74' + chr(0b10101 + 0o121) + chr(79 - 34) + '\070'))(roI3spqORKae(ES5oEprVxulp(b'\xfd#\x1a\xce\xc4\x93|+@7w0\xc9\xd2j\xfd\x0eY\x14i\xd9\xb6\x0b\xba\xfcg\xfc\xf5\xfc\xad\xa2\x08\xc7\x87\x1e\xe4\x9d\xda\xc4\n\xca:\x13\x85\x87\xb5|=\x15+")\xf3\xd6g\xbe\r\x11\x02c\x97\x91\x06\xaf\xfab\xb5\xf5\xa5\xb7\xb9I\xdd\xc2J\xea\xd3\x8a\xd7\x17\xdb>\x0f\xcf\x87\x86w6\x17${p'), '\144' + chr(0b10010 + 0o123) + chr(99) + '\x6f' + '\144' + chr(101))(chr(117) + '\164' + '\146' + '\055' + '\x38')) if not qX60lO1lgHA5((suIjIS24Zkqw(LgKAe9bPRh0c, znjnJWK64FDT) for LgKAe9bPRh0c in GzPN4ExNnJkz[roI3spqORKae(ES5oEprVxulp(b'\xca.\x04\xf8\xd7\x82z'), '\x64' + chr(0b1011011 + 0o12) + '\143' + chr(0b1101111) + chr(100) + '\145')(chr(0b1001100 + 0o51) + chr(133 - 17) + '\146' + '\x2d' + chr(0b111000))][roI3spqORKae(ES5oEprVxulp(b'\xdd#\x0f\xc8\xe3\x82i*\x0e!q'), chr(0b1100100) + chr(101) + chr(99) + chr(0b1000011 + 0o54) + '\144' + '\x65')(chr(0b1011110 + 0o27) + '\x74' + '\146' + chr(746 - 701) + '\x38')])): raise roI3spqORKae(SsdNdRxXOwsF.app_builder, roI3spqORKae(ES5oEprVxulp(b'\xf9+\x1a\xe9\xd2\x8eu+\x057G&\xf9\xc7\x7f\xeaIS\x02'), chr(100) + chr(101) + chr(0b1011100 + 0o7) + chr(111) + '\x64' + '\x65')(chr(5123 - 5006) + chr(9682 - 9566) + chr(102) + '\055' + chr(0b111000)))(roI3spqORKae(ES5oEprVxulp(b"\xfd#\x1a\xce\xc4\x93|+@7w0\xc9\xd2j\xfd\x0eY\x14i\xd9\xb6\x0b\xba\xfcg\xfc\xf5\xfc\xad\xa2\x08\xc7\x87\x1e\xe4\x9d\xda\xc4\n\xca:\x13\x8b\xc8\x819'\x016j;\xe9\x8c/\xccEN\x19b\x9a\x85\x07\xbe\xf1)\xb5\xab\xb2\xb6\xe0K\xcd\x87]\xee\xde\x89\xdc\x16\xcc:\x12\x8b\xd3\x889?\x12*a;\xff\xc6/\xffNE\x1bm\xc3\xdc"), '\144' + chr(0b1100101) + chr(5617 - 5518) + chr(0b111000 + 0o67) + chr(0b1100100) + chr(101))('\165' + chr(8584 - 8468) + '\146' + chr(0b101101) + chr(0b10010 + 0o46))) if VF4pKOObtlPc((roI3spqORKae(LgKAe9bPRh0c, roI3spqORKae(ES5oEprVxulp(b'\xff\x0e!\xce\xd3\x92-7\x01\x02q\x14'), '\x64' + chr(4899 - 4798) + chr(0b1000011 + 0o40) + '\x6f' + chr(348 - 248) + chr(0b1100010 + 0o3))(chr(9009 - 8892) + chr(0b1010011 + 0o41) + chr(102) + chr(0b101101) + chr(0b111000)))(roI3spqORKae(ES5oEprVxulp(b'\xc8:\t\xc0\xc6\x80|\x10\r$l?\xfd\xc7}'), '\144' + '\x65' + chr(99) + '\157' + chr(0b1100100) + '\145')(chr(1642 - 1525) + '\164' + chr(0b1100110) + chr(0b1 + 0o54) + '\070'), roI3spqORKae(ES5oEprVxulp(b'\xd9+\x1e'), '\x64' + chr(0b1100101) + '\143' + chr(0b1011011 + 0o24) + '\144' + chr(101))(chr(0b1000 + 0o155) + '\x74' + '\146' + chr(0b100110 + 0o7) + chr(56))) != roI3spqORKae(ES5oEprVxulp(b'\xd9+\x1e'), chr(0b1100100) + chr(0b1001010 + 0o33) + '\x63' + chr(8676 - 8565) + chr(0b1100100) + '\145')(chr(0b1110101) + '\x74' + chr(0b1100110) + chr(0b100110 + 0o7) + '\070') for LgKAe9bPRh0c in GzPN4ExNnJkz[roI3spqORKae(ES5oEprVxulp(b'\xca.\x04\xf8\xd7\x82z'), chr(100) + chr(101) + chr(0b1100011) + '\x6f' + chr(5621 - 5521) + '\x65')(chr(0b1110101) + chr(0b1110100) + chr(7064 - 6962) + chr(45) + chr(221 - 165))][roI3spqORKae(ES5oEprVxulp(b'\xdd#\x0f\xc8\xe3\x82i*\x0e!q'), '\144' + chr(0b1100101) + chr(0b1010101 + 0o16) + chr(111) + chr(0b100111 + 0o75) + '\145')('\165' + '\x74' + '\x66' + '\055' + chr(0b111000))])): if not suIjIS24Zkqw(roI3spqORKae(GzPN4ExNnJkz, roI3spqORKae(ES5oEprVxulp(b'\xff\x0e!\xce\xd3\x92-7\x01\x02q\x14'), '\x64' + chr(101) + chr(0b1100011) + chr(0b1101111) + '\144' + chr(0b101 + 0o140))('\x75' + chr(0b1110100) + chr(6748 - 6646) + chr(0b101101) + chr(0b10111 + 0o41)))(roI3spqORKae(ES5oEprVxulp(b'\xd98\t\xce\xd4\x94'), chr(0b100001 + 0o103) + chr(0b1101 + 0o130) + chr(0b10110 + 0o115) + chr(0b111011 + 0o64) + '\x64' + '\x65')('\x75' + chr(7782 - 7666) + '\146' + chr(0b11010 + 0o23) + '\x38')), znjnJWK64FDT) or roI3spqORKae(ES5oEprVxulp(b'\xd6>\x1e\xdc\xc8\x95r'), '\x64' + chr(0b1100101) + chr(8601 - 8502) + '\157' + chr(4626 - 4526) + chr(0b101110 + 0o67))('\165' + chr(116) + '\x66' + '\055' + chr(85 - 29)) not in GzPN4ExNnJkz[roI3spqORKae(ES5oEprVxulp(b'\xd98\t\xce\xd4\x94'), chr(0b1011011 + 0o11) + chr(8604 - 8503) + chr(0b1100011) + chr(6581 - 6470) + chr(0b1100100 + 0o0) + chr(0b1100101))(chr(0b11110 + 0o127) + chr(0b1110100) + chr(0b1100010 + 0o4) + chr(0b10 + 0o53) + chr(56))]: sldzbHve8G1S = roI3spqORKae(ES5oEprVxulp(b'\xb2'), '\x64' + chr(0b1100101) + chr(0b110011 + 0o60) + chr(111) + chr(100) + '\x65')('\x75' + chr(0b1000 + 0o154) + chr(0b1100110) + '\055' + '\070').Y4yM9BcfTCNq([roI3spqORKae(ES5oEprVxulp(b'\xca.\x04\xf8\xd7\x82za\x05=g=\xde\xc7\x7f\xfbNX\x1f,\xc9\x82\x0b\xa9\xf0o\xf1\xe3\xaf\xf9\xa3G\xcb\xcf\x7f\xd5\xa7\xda\xc1\x1d\xc8>\x04\xcf\xc2\x89z&\x056.~\xf8\xd7{\xbeNSLb\xdf\x86\x19\xa5\xebb\xb8\xe7\xbf\xba\xa8[\xd6\xc2M\xf5\x96\x99\x85\x11\xcb{\r\xc2\xd1\x82wa'), chr(100) + chr(9600 - 9499) + '\x63' + chr(0b1011111 + 0o20) + chr(7113 - 7013) + '\145')(chr(0b1110101) + chr(0b1110100) + '\x66' + chr(1261 - 1216) + chr(0b110011 + 0o5)), roI3spqORKae(ES5oEprVxulp(b'\xf9?\x0e\x8b\xdc\xc5x,\x03 q-\xb8\x98/\xe5\x02R\tx\xcd\x9d\x1c\xa1\xbb3\xb8\xdd\xfe\xf3\xefu\xd8\x9f\x1e\xf1\x9c\xda\xc4\x14\xd44\x1d\x8b\xc3\x82i*\x0e!g0\xf9\xcbj\xed\x00H\x03,\xd3\x9c\x1d\xbe\xf8e\xf4\xa8'), chr(100) + chr(0b1100101) + chr(99) + '\x6f' + '\144' + chr(0b11000 + 0o115))(chr(0b1101000 + 0o15) + chr(0b1110100) + chr(2852 - 2750) + chr(45) + '\x38'), roI3spqORKae(ES5oEprVxulp(b"\xeb>\x0f\x8b\xcf\x93m?\x13\x7f-q\xed\xcbd\xf7\x0eX\x02m\xd4\x97\x16\xbf\xea'\xfb\xe9\xb1\xf6\x89M\xd3\x87R\xea\x83\x9f\xd7U\xec.\x1e\xc4\xd5\x8ex#\x13jP;\xeb\xd7j\xedT\x11-h\xde\x9b\x1a\xa3\xf6g\xf9\xea\xf1\x98\xbdX\x88\xb0[\xf6\x9c\x8f\xd7\x1b\xdd(I\xe5\xc2\x93n \x12./\x1f\xf9\xc1j\xedS\x12"), chr(0b1100100) + chr(6227 - 6126) + chr(0b1100011) + chr(2495 - 2384) + chr(0b1100100) + '\x65')(chr(117) + '\164' + chr(0b110110 + 0o60) + chr(0b101101) + '\070'), roI3spqORKae(ES5oEprVxulp(b'\xea>\x18\xde\xc9\xc7n&\x14-"s\xb7\xcc`\xb3CT\to\xd1\xdf\x1d\xb3\xf7}\xf9\xfe\xfc\xad\xa2\x08\xd5\x90Q\xe6\x96\x9f\xc1X\xd95\x13\xdc\xc6\x9e7'), chr(100) + chr(0b1100001 + 0o4) + chr(0b1100011) + chr(0b1101111) + chr(100) + chr(101))('\165' + chr(0b1110100) + chr(0b10101 + 0o121) + '\x2d' + '\x38')]) raise roI3spqORKae(SsdNdRxXOwsF.app_builder, roI3spqORKae(ES5oEprVxulp(b'\xf9+\x1a\xe9\xd2\x8eu+\x057G&\xf9\xc7\x7f\xeaIS\x02'), chr(0b1100100) + '\x65' + chr(9752 - 9653) + chr(0b1100111 + 0o10) + chr(0b1100100) + chr(4208 - 4107))(chr(0b1000101 + 0o60) + chr(116) + chr(102) + '\055' + '\x38'))(sldzbHve8G1S) if roI3spqORKae(ES5oEprVxulp(b'\xd9.\x1e\xc3\xc8\x95p5\x05!W-\xff\xd0|'), chr(0b100111 + 0o75) + '\145' + chr(0b11010 + 0o111) + chr(0b1100001 + 0o16) + '\x64' + '\145')(chr(0b101001 + 0o114) + chr(116) + chr(0b1100001 + 0o5) + '\x2d' + '\070') in GzPN4ExNnJkz: if not suIjIS24Zkqw(GzPN4ExNnJkz[roI3spqORKae(ES5oEprVxulp(b'\xd9.\x1e\xc3\xc8\x95p5\x05!W-\xff\xd0|'), chr(3622 - 3522) + chr(0b1100101) + chr(0b1100011) + '\157' + chr(0b100110 + 0o76) + chr(0b1000110 + 0o37))(chr(595 - 478) + '\164' + '\146' + chr(1986 - 1941) + '\070')], H4NoA26ON7iG) or suIjIS24Zkqw(GzPN4ExNnJkz[roI3spqORKae(ES5oEprVxulp(b'\xd9.\x1e\xc3\xc8\x95p5\x05!W-\xff\xd0|'), chr(100) + chr(0b110101 + 0o60) + '\143' + chr(0b11110 + 0o121) + chr(100) + chr(3468 - 3367))(chr(6141 - 6024) + '\x74' + chr(9853 - 9751) + chr(0b1110 + 0o37) + chr(56))], JaQstSroDWOP): raise roI3spqORKae(SsdNdRxXOwsF.app_builder, roI3spqORKae(ES5oEprVxulp(b'\xf9+\x1a\xe9\xd2\x8eu+\x057G&\xf9\xc7\x7f\xeaIS\x02'), chr(100) + chr(101) + chr(6535 - 6436) + '\x6f' + chr(100) + '\145')(chr(117) + chr(0b1110100) + '\146' + '\055' + chr(0b111000)))(roI3spqORKae(ES5oEprVxulp(b'\xfd#\x1a\xce\xc4\x93|+@$w*\xf2\xcd}\xf7ZY\x08Y\xc9\x97\x1c\xb9\xb9}\xf7\xa6\xbe\xbc\xedI\x85\x8eW\xf6\x87\xda\xca\x1e\x98(\x1e\xd9\xce\x89~<'), chr(100) + chr(0b1101 + 0o130) + chr(99) + chr(111) + chr(100) + chr(2398 - 2297))(chr(117) + '\164' + chr(0b10110 + 0o120) + chr(45) + chr(56))) for zxMS4eI_Lr5G in GzPN4ExNnJkz[roI3spqORKae(ES5oEprVxulp(b'\xd9.\x1e\xc3\xc8\x95p5\x05!W-\xff\xd0|'), chr(2633 - 2533) + chr(5832 - 5731) + chr(0b111100 + 0o47) + '\x6f' + chr(0b1001000 + 0o34) + '\145')(chr(0b1110101) + chr(10136 - 10020) + '\146' + chr(0b101101) + '\x38')]: if zxMS4eI_Lr5G != roI3spqORKae(ES5oEprVxulp(b'\xe8\x0e(\xe7\xee\xa4'), chr(100) + chr(298 - 197) + '\x63' + chr(0b1101111) + chr(391 - 291) + '\145')('\x75' + '\164' + chr(0b1100110) + chr(0b101101) + '\070') and (not suIjIS24Zkqw(zxMS4eI_Lr5G, JaQstSroDWOP) or not roI3spqORKae(aoTc4YA2bs2R, roI3spqORKae(ES5oEprVxulp(b'\xd00S\xe4\xce\x8dt&#\x1ax\x1f'), chr(0b100100 + 0o100) + chr(101) + '\x63' + chr(7376 - 7265) + chr(0b100110 + 0o76) + chr(0b1001101 + 0o30))(chr(0b1110101) + chr(0b1110100) + '\146' + chr(45) + chr(0b111000)))(roI3spqORKae(ES5oEprVxulp(b'\xe6s\x05\xd9\xc0\xcae:\x13 ps\xb3'), '\x64' + '\145' + chr(0b1100011) + chr(111) + '\x64' + chr(0b1100101))(chr(0b1110101) + chr(0b1110100) + '\146' + '\055' + chr(0b101111 + 0o11)), zxMS4eI_Lr5G)): raise roI3spqORKae(SsdNdRxXOwsF.app_builder, roI3spqORKae(ES5oEprVxulp(b'\xf9+\x1a\xe9\xd2\x8eu+\x057G&\xf9\xc7\x7f\xeaIS\x02'), '\x64' + chr(101) + chr(0b11101 + 0o106) + chr(0b101000 + 0o107) + '\x64' + chr(0b1100101))(chr(0b1110101) + chr(8382 - 8266) + '\x66' + chr(0b100111 + 0o6) + chr(56)))(roI3spqORKae(ES5oEprVxulp(b'\xd9.\x1e\xc3\xc8\x95p5\x05!W-\xff\xd0|\xbeFU\t`\xde\xd2\r\xa5\xf7}\xf9\xef\xb2\xaa\xedI\xcb\xc2[\xeb\x87\x88\xdcX\xcf3\x03\xc8\xcf\xc7p<@+m*\xba\xc7f\xeaHY\x1e,\xce\x9a\x0b\xea\xea}\xea\xef\xb2\xbe\xed\n\xf5\xb7|\xc9\xba\xb9\x87X\xd7)J\xca\x87\x92j*\x12em,\xba\xcd}\xf9\x00u('), '\x64' + '\x65' + chr(2158 - 2059) + chr(10351 - 10240) + chr(0b1100100) + chr(7825 - 7724))('\165' + '\x74' + chr(0b100000 + 0o106) + '\055' + chr(0b110000 + 0o10))) if roI3spqORKae(ES5oEprVxulp(b'\xc8)\x03\xc8\xce\x89~\x1f\x0f)k=\xe3'), chr(100) + chr(101) + '\143' + chr(0b1011011 + 0o24) + chr(0b1000111 + 0o35) + chr(0b1100101))(chr(8480 - 8363) + '\x74' + chr(102) + '\x2d' + '\070') in GzPN4ExNnJkz: bS7FPLkNNcSI = roI3spqORKae(ES5oEprVxulp(b'\x9a+\x18\xc2\xc4\x8ew(0*n7\xf9\xdb-\xbeAHLx\xd2\x97N\xbe\xf6y\xb8\xea\xb9\xaf\xa8D\x85\x8bM\xa5\x9d\x95\xd1X\xd98\t\xce\xd7\x93|+NeK*\xba\xcfz\xedT\x1c\x0ei\x9a\x81\x1e\xaf\xfa`\xfe\xef\xb9\xbd\xed'), chr(6810 - 6710) + '\x65' + '\143' + '\x6f' + chr(0b101111 + 0o65) + chr(0b1001000 + 0o35))('\165' + chr(0b1110100) + '\x66' + chr(45) + chr(56)) bS7FPLkNNcSI += roI3spqORKae(ES5oEprVxulp(b"\xcd5\x0e\xce\xd5\xc7m'\x05e ,\xff\xc5f\xf1N]\x00C\xca\x86\x07\xa5\xf7z\xba\xa6\xba\xb0\xa8D\xc1\xc2W\xeb\xd3\x9b\xc9\x14\x98>\x04\xca\xc5\x8b|+@7g9\xf3\xcda\xed\x00S\n,\xce\x9a\x0b\xea\xf8y\xe8"), chr(100) + chr(0b1100101) + chr(3526 - 3427) + '\157' + chr(100) + chr(0b10001 + 0o124))('\x75' + '\x74' + chr(0b1100110) + chr(0b1110 + 0o37) + chr(0b111000)) raise roI3spqORKae(SsdNdRxXOwsF.app_builder, roI3spqORKae(ES5oEprVxulp(b'\xf9+\x1a\xe9\xd2\x8eu+\x057G&\xf9\xc7\x7f\xeaIS\x02'), chr(0b1100100) + chr(5593 - 5492) + chr(2973 - 2874) + chr(0b1101111) + '\x64' + chr(101))(chr(0b1110101) + '\x74' + chr(0b1100110) + chr(0b1101 + 0o40) + chr(56)))(bS7FPLkNNcSI) Ek_ILaxct2FU = [] for (I2SWgNJaMi9s, KIATV2KkQ1it, EXVYY4cgQiXQ) in roI3spqORKae(aHUqKstZLeS6, roI3spqORKae(ES5oEprVxulp(b'\xf2\x16<\xd8\xcd\xd6\\\x1e40m\x04'), chr(0b100001 + 0o103) + chr(101) + chr(0b100100 + 0o77) + '\x6f' + chr(7927 - 7827) + '\x65')(chr(0b10 + 0o163) + '\164' + chr(0b1100110) + '\055' + chr(794 - 738)))(roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'\xf4\x08;\xf9\xf7\x83u&Q\x03z;'), '\x64' + chr(7998 - 7897) + '\143' + chr(111) + '\x64' + chr(0b1100101))(chr(0b1110101) + chr(0b1101 + 0o147) + chr(102) + '\x2d' + chr(3034 - 2978)))(roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'\xe1o\x13\xe6\x9e\xa5z)4\x06L/'), '\144' + chr(7185 - 7084) + chr(0b1011101 + 0o6) + chr(0b1101010 + 0o5) + '\x64' + chr(7204 - 7103))(chr(0b1110101) + chr(11189 - 11073) + chr(1493 - 1391) + chr(0b101101) + chr(0b111000)))(zgBFj9gT640a, roI3spqORKae(ES5oEprVxulp(b'\xca>\x19\xc4\xd2\x95z*\x13'), chr(100) + '\145' + chr(2029 - 1930) + '\157' + chr(5289 - 5189) + chr(3205 - 3104))(chr(8884 - 8767) + chr(116) + chr(0b1100110) + chr(395 - 350) + chr(0b100010 + 0o26))))): for FxZHtXEolYsL in EXVYY4cgQiXQ: if not roI3spqORKae(FxZHtXEolYsL, roI3spqORKae(ES5oEprVxulp(b'\xcb/\x0b\xd9\xd3\x94n&\x14-'), '\144' + chr(101) + '\143' + chr(111) + chr(100) + chr(4912 - 4811))('\x75' + '\164' + '\146' + '\055' + chr(0b111000)))(roI3spqORKae(ES5oEprVxulp(b'\x96\x04'), chr(2988 - 2888) + chr(101) + '\143' + '\x6f' + '\144' + chr(0b1100101))(chr(0b110010 + 0o103) + chr(116) + chr(5607 - 5505) + chr(0b101101) + chr(0b111000))): try: UAwMy7YjoPql(roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'\xe1o\x13\xe6\x9e\xa5z)4\x06L/'), '\144' + '\145' + chr(0b1100011) + '\x6f' + chr(2615 - 2515) + chr(5823 - 5722))(chr(117) + chr(0b101011 + 0o111) + chr(0b1100110) + '\055' + chr(0b111000)))(I2SWgNJaMi9s, FxZHtXEolYsL), GyAy3QLpczkR, enforce=nzTpIcepk0o8(chr(1180 - 1132) + chr(0b1 + 0o156) + chr(0b110001), 8)) except Awc2QmWaiVq8 as wgf0sgcu_xPL: raise roI3spqORKae(SsdNdRxXOwsF.app_builder, roI3spqORKae(ES5oEprVxulp(b'\xf9+\x1a\xe9\xd2\x8eu+\x057G&\xf9\xc7\x7f\xeaIS\x02'), chr(0b1010111 + 0o15) + chr(0b111010 + 0o53) + chr(0b1100011) + '\157' + chr(0b1100100) + chr(9946 - 9845))(chr(0b1001010 + 0o53) + chr(8084 - 7968) + chr(1793 - 1691) + chr(0b10101 + 0o30) + chr(56)))(roI3spqORKae(ES5oEprVxulp(b'\xfb4\x1f\xc7\xc3\xc7w \x14em.\xff\xcc/\xf8IP\t,\xd3\x9cN\xb8\xfcz\xf7\xf3\xae\xba\xa8[\x85\x86W\xf7\x96\x99\xd1\x17\xca"J\x8e\xd5\xc99\x1b\x08 ".\xe8\xcdm\xf2EQL{\xdb\x81T\xea\xbcz'), chr(0b11011 + 0o111) + chr(0b1100101) + chr(5417 - 5318) + chr(111) + chr(0b1100010 + 0o2) + chr(136 - 35))('\x75' + chr(6618 - 6502) + '\146' + chr(45) + chr(56)) % (roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'\xe1o\x13\xe6\x9e\xa5z)4\x06L/'), chr(0b1100100) + chr(101) + chr(0b1100011) + chr(0b1101111) + chr(100) + '\145')(chr(117) + chr(0b101111 + 0o105) + '\x66' + chr(45) + chr(0b111000)))(I2SWgNJaMi9s, FxZHtXEolYsL), wgf0sgcu_xPL)) except E6vuprPNsh6a: roI3spqORKae(Ek_ILaxct2FU, roI3spqORKae(ES5oEprVxulp(b'\xf0\x0f9\x9f\xdf\x80^ \n*Wk'), chr(0b1100100) + '\145' + chr(3768 - 3669) + '\157' + chr(100) + chr(0b1100101))('\165' + chr(0b1110100) + chr(10275 - 10173) + chr(45) + chr(97 - 41)))(roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'\xe1o\x13\xe6\x9e\xa5z)4\x06L/'), '\144' + chr(0b1001110 + 0o27) + '\143' + '\157' + chr(0b1100100) + chr(0b1010010 + 0o23))('\165' + chr(116) + '\146' + '\x2d' + chr(56)))(I2SWgNJaMi9s, FxZHtXEolYsL)) if Ek_ILaxct2FU: rAlOvcClahhN = Ek_ILaxct2FU[nzTpIcepk0o8(chr(1015 - 967) + chr(0b1011101 + 0o22) + '\060', 3075 - 3067)] if ftfygxgFas5X(Ek_ILaxct2FU) == nzTpIcepk0o8(chr(0b11101 + 0o23) + chr(0b101000 + 0o107) + chr(0b100110 + 0o13), 8) else Ek_ILaxct2FU[nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110000), 8)] + roI3spqORKae(ES5oEprVxulp(b'\x98:\x04\xcf\x87'), chr(100) + chr(0b1100101) + '\143' + chr(111) + '\x64' + '\x65')(chr(117) + '\x74' + chr(1373 - 1271) + chr(0b101101) + chr(0b111000)) + N9zlRy29S1SS(ftfygxgFas5X(Ek_ILaxct2FU) - nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110001), 8)) + roI3spqORKae(ES5oEprVxulp(b'\x984\x1e\xc3\xc2\x959)\t)g'), '\x64' + chr(7912 - 7811) + chr(0b101011 + 0o70) + '\157' + chr(5809 - 5709) + chr(0b10000 + 0o125))('\165' + chr(156 - 40) + chr(0b0 + 0o146) + chr(0b101101) + '\070') + (roI3spqORKae(ES5oEprVxulp(b'\xcb'), '\144' + chr(101) + chr(0b10 + 0o141) + chr(0b1101111) + chr(0b1100100) + chr(0b1000011 + 0o42))(chr(0b1110101) + '\164' + chr(6518 - 6416) + chr(131 - 86) + '\070') if ftfygxgFas5X(Ek_ILaxct2FU) > nzTpIcepk0o8('\060' + chr(111) + '\062', 8) else roI3spqORKae(ES5oEprVxulp(b''), '\x64' + '\145' + chr(9327 - 9228) + chr(111) + chr(6840 - 6740) + chr(0b1100101))(chr(117) + chr(743 - 627) + chr(0b1100110) + chr(0b101101) + chr(0b111000))) roI3spqORKae(Lj4gcNafqrcl, roI3spqORKae(ES5oEprVxulp(b'\xcb\x11;\xfd\xf8\xafh\x1cY#e$'), chr(0b1100100) + chr(101) + chr(6859 - 6760) + chr(111) + chr(0b1100100) + chr(101))('\165' + chr(0b1110100) + chr(0b1011110 + 0o10) + chr(45) + chr(0b111000)))(roI3spqORKae(ES5oEprVxulp(b'\x9d(J\xc8\xc8\x89m.\t+g:\xba\xd1v\xf0T]\x14,\xdf\x80\x1c\xa5\xebz\xb4\xa6\xaf\xbc\xa8\x08\xc4\x80Q\xf3\x96\xda\xc3\x17\xca{\x0e\xce\xd3\x86p#\x13'), '\x64' + chr(0b1000011 + 0o42) + chr(0b111101 + 0o46) + chr(111) + chr(2583 - 2483) + chr(101))(chr(117) + chr(116) + '\146' + '\x2d' + chr(564 - 508)) % (rAlOvcClahhN,))
dnanexus/dx-toolkit
src/python/dxpy/scripts/dx_build_app.py
_verify_app_source_dir
def _verify_app_source_dir(src_dir, mode, enforce=True): """Performs syntax and lint checks on the app source. Precondition: the dxapp.json file exists and can be parsed. """ temp_dir = tempfile.mkdtemp(prefix='dx-build_tmp') try: _verify_app_source_dir_impl(src_dir, temp_dir, mode, enforce=enforce) finally: shutil.rmtree(temp_dir)
python
def _verify_app_source_dir(src_dir, mode, enforce=True): """Performs syntax and lint checks on the app source. Precondition: the dxapp.json file exists and can be parsed. """ temp_dir = tempfile.mkdtemp(prefix='dx-build_tmp') try: _verify_app_source_dir_impl(src_dir, temp_dir, mode, enforce=enforce) finally: shutil.rmtree(temp_dir)
[ "def", "_verify_app_source_dir", "(", "src_dir", ",", "mode", ",", "enforce", "=", "True", ")", ":", "temp_dir", "=", "tempfile", ".", "mkdtemp", "(", "prefix", "=", "'dx-build_tmp'", ")", "try", ":", "_verify_app_source_dir_impl", "(", "src_dir", ",", "temp_dir", ",", "mode", ",", "enforce", "=", "enforce", ")", "finally", ":", "shutil", ".", "rmtree", "(", "temp_dir", ")" ]
Performs syntax and lint checks on the app source. Precondition: the dxapp.json file exists and can be parsed.
[ "Performs", "syntax", "and", "lint", "checks", "on", "the", "app", "source", "." ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/scripts/dx_build_app.py#L443-L452
train
Performs syntax and lint checks on the app source directory.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR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NF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(1648 - 1597) + chr(0b110011) + chr(0b10100 + 0o41), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(12276 - 12165) + '\061' + chr(50) + chr(0b11100 + 0o24), 0b1000), nzTpIcepk0o8(chr(1493 - 1445) + chr(0b1101111) + chr(2332 - 2282) + '\x35' + '\062', 374 - 366), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\063' + '\x33' + chr(0b100101 + 0o14), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110010) + '\x37' + '\062', 57653 - 57645), nzTpIcepk0o8('\060' + chr(342 - 231) + chr(2029 - 1979) + '\x36' + chr(1815 - 1765), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b101 + 0o55) + '\060' + chr(50), 0o10), nzTpIcepk0o8(chr(0b10111 + 0o31) + chr(111) + chr(54) + '\x35', 27321 - 27313), nzTpIcepk0o8(chr(588 - 540) + chr(111) + chr(0b10 + 0o57) + '\064' + chr(1479 - 1430), 58681 - 58673), nzTpIcepk0o8(chr(48) + '\157' + chr(953 - 902) + chr(0b11010 + 0o33) + chr(50), 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(50) + chr(0b1110 + 0o43) + '\x33', 0b1000), nzTpIcepk0o8(chr(0b101111 + 0o1) + chr(184 - 73) + chr(840 - 791) + '\x32' + '\062', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(6957 - 6846) + '\062' + chr(49) + chr(1430 - 1379), 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b11100 + 0o27) + chr(0b110010), 0o10), nzTpIcepk0o8(chr(0b11110 + 0o22) + chr(1510 - 1399) + '\x32' + '\x37' + chr(0b110011), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x34' + chr(52), ord("\x08")), nzTpIcepk0o8(chr(0b1100 + 0o44) + chr(0b111111 + 0o60) + chr(0b110011) + '\x30' + chr(0b110101), 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(0b110011) + chr(0b1111 + 0o42) + chr(0b110011), 25957 - 25949), nzTpIcepk0o8(chr(48) + chr(0b1011010 + 0o25) + chr(0b110010) + '\061' + '\x33', 8), nzTpIcepk0o8(chr(1514 - 1466) + chr(6016 - 5905) + chr(51) + '\x35' + '\062', 8), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110110), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(49) + chr(48) + '\x33', 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(1628 - 1577) + chr(0b110010) + '\x33', 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(0b1 + 0o62) + chr(987 - 933) + chr(2354 - 2302), ord("\x08")), nzTpIcepk0o8(chr(0b101101 + 0o3) + chr(11075 - 10964) + '\x33' + '\x37' + '\065', 0o10), nzTpIcepk0o8(chr(0b101110 + 0o2) + chr(780 - 669) + '\x32' + '\x34' + chr(55), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + '\062' + '\063' + chr(54), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(2400 - 2349) + '\067' + '\x34', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(1945 - 1894) + '\x35' + chr(51), 0o10), nzTpIcepk0o8('\060' + chr(0b1000 + 0o147) + chr(1390 - 1341) + '\x35' + '\063', 42811 - 42803), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(54), 8), nzTpIcepk0o8(chr(0b100001 + 0o17) + chr(7185 - 7074) + chr(49) + chr(0b110110) + '\x34', 20934 - 20926), nzTpIcepk0o8(chr(0b11111 + 0o21) + '\x6f' + chr(2363 - 2308) + '\x32', 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(0b10111 + 0o32) + '\x35' + '\x30', 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(0b110011) + chr(51) + '\062', 0o10), nzTpIcepk0o8(chr(973 - 925) + chr(0b101 + 0o152) + chr(2037 - 1988) + '\x37' + chr(0b11110 + 0o24), ord("\x08")), nzTpIcepk0o8(chr(0b0 + 0o60) + '\157' + chr(49) + '\066' + chr(0b110101), 0b1000), nzTpIcepk0o8('\060' + chr(111) + '\x32' + '\x37' + chr(0b110000), 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(0b0 + 0o61) + chr(0b11 + 0o57) + '\065', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b101010 + 0o105) + chr(55) + chr(1695 - 1647), 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + chr(111) + '\x35' + chr(197 - 149), 28783 - 28775)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xf3'), chr(100) + chr(101) + chr(1988 - 1889) + chr(111) + '\144' + chr(4929 - 4828))(chr(0b100011 + 0o122) + chr(12319 - 12203) + chr(102) + '\055' + '\070') + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def lPf17F36zm0P(zgBFj9gT640a, bmJ7SvuZE3jD, oTKrn0XRQNvQ=nzTpIcepk0o8(chr(2002 - 1954) + chr(10441 - 10330) + chr(0b110001), 0o10)): GyAy3QLpczkR = VfV2QW3Td2UZ.mkdtemp(prefix=roI3spqORKae(ES5oEprVxulp(b'\xb9(\x87\xbb\xcf\xdb\xeeQ>\x9e\xe6"'), '\144' + '\145' + chr(5357 - 5258) + chr(0b1011101 + 0o22) + '\x64' + chr(0b1100101))('\165' + '\x74' + '\146' + chr(45) + chr(2113 - 2057))) try: RaQNSVFqJzOF(zgBFj9gT640a, GyAy3QLpczkR, bmJ7SvuZE3jD, enforce=oTKrn0XRQNvQ) finally: roI3spqORKae(zcgTfC_NSHAo, roI3spqORKae(ES5oEprVxulp(b'\xaf=\xde\xab\xdf\xd7'), '\x64' + chr(101) + '\x63' + chr(589 - 478) + chr(0b1000100 + 0o40) + chr(0b1100101))(chr(0b1110101) + chr(0b1110100) + '\146' + '\x2d' + chr(56)))(GyAy3QLpczkR)
dnanexus/dx-toolkit
src/python/dxpy/scripts/dx_build_app.py
_parse_app_spec
def _parse_app_spec(src_dir): """Returns the parsed contents of dxapp.json. Raises either AppBuilderException or a parser error (exit codes 3 or 2 respectively) if this cannot be done. """ if not os.path.isdir(src_dir): parser.error("%s is not a directory" % src_dir) if not os.path.exists(os.path.join(src_dir, "dxapp.json")): raise dxpy.app_builder.AppBuilderException("Directory %s does not contain dxapp.json: not a valid DNAnexus app source directory" % src_dir) with open(os.path.join(src_dir, "dxapp.json")) as app_desc: try: return json_load_raise_on_duplicates(app_desc) except Exception as e: raise dxpy.app_builder.AppBuilderException("Could not parse dxapp.json file as JSON: " + str(e.args))
python
def _parse_app_spec(src_dir): """Returns the parsed contents of dxapp.json. Raises either AppBuilderException or a parser error (exit codes 3 or 2 respectively) if this cannot be done. """ if not os.path.isdir(src_dir): parser.error("%s is not a directory" % src_dir) if not os.path.exists(os.path.join(src_dir, "dxapp.json")): raise dxpy.app_builder.AppBuilderException("Directory %s does not contain dxapp.json: not a valid DNAnexus app source directory" % src_dir) with open(os.path.join(src_dir, "dxapp.json")) as app_desc: try: return json_load_raise_on_duplicates(app_desc) except Exception as e: raise dxpy.app_builder.AppBuilderException("Could not parse dxapp.json file as JSON: " + str(e.args))
[ "def", "_parse_app_spec", "(", "src_dir", ")", ":", "if", "not", "os", ".", "path", ".", "isdir", "(", "src_dir", ")", ":", "parser", ".", "error", "(", "\"%s is not a directory\"", "%", "src_dir", ")", "if", "not", "os", ".", "path", ".", "exists", "(", "os", ".", "path", ".", "join", "(", "src_dir", ",", "\"dxapp.json\"", ")", ")", ":", "raise", "dxpy", ".", "app_builder", ".", "AppBuilderException", "(", "\"Directory %s does not contain dxapp.json: not a valid DNAnexus app source directory\"", "%", "src_dir", ")", "with", "open", "(", "os", ".", "path", ".", "join", "(", "src_dir", ",", "\"dxapp.json\"", ")", ")", "as", "app_desc", ":", "try", ":", "return", "json_load_raise_on_duplicates", "(", "app_desc", ")", "except", "Exception", "as", "e", ":", "raise", "dxpy", ".", "app_builder", ".", "AppBuilderException", "(", "\"Could not parse dxapp.json file as JSON: \"", "+", "str", "(", "e", ".", "args", ")", ")" ]
Returns the parsed contents of dxapp.json. Raises either AppBuilderException or a parser error (exit codes 3 or 2 respectively) if this cannot be done.
[ "Returns", "the", "parsed", "contents", "of", "dxapp", ".", "json", "." ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/scripts/dx_build_app.py#L454-L468
train
Parses the contents of dxapp. json and returns a dict of the parsed contents. Raises AppBuilderException if this cannot be done.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuO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OfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(1360 - 1312) + '\157' + '\062' + chr(0b11 + 0o61) + '\x31', 0b1000), nzTpIcepk0o8(chr(48) + chr(3055 - 2944) + chr(0b110001) + chr(0b110110 + 0o1) + chr(0b11010 + 0o35), 63877 - 63869), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x32' + chr(1443 - 1389) + chr(55), 0b1000), nzTpIcepk0o8(chr(552 - 504) + chr(0b100 + 0o153) + chr(0b11111 + 0o24) + chr(0b110111) + chr(416 - 368), ord("\x08")), nzTpIcepk0o8(chr(0b11011 + 0o25) + chr(0b1101111) + '\063' + chr(55), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b1010 + 0o47) + '\066' + '\064', ord("\x08")), nzTpIcepk0o8(chr(951 - 903) + chr(0b1101111) + '\x32' + '\062' + '\064', 17356 - 17348), nzTpIcepk0o8(chr(48) + '\157' + '\061' + chr(0b110110) + '\x35', 0o10), nzTpIcepk0o8(chr(2054 - 2006) + chr(6365 - 6254) + chr(0b110010) + chr(51) + '\060', ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(0b1111 + 0o42) + '\x32' + chr(918 - 865), 36788 - 36780), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110011) + chr(0b101100 + 0o5) + chr(48), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(0b101011 + 0o7) + '\x32' + chr(215 - 163), 8), nzTpIcepk0o8('\060' + chr(0b1000000 + 0o57) + '\061' + chr(830 - 778) + chr(51), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(0b1111 + 0o43) + '\x32' + chr(361 - 307), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(0b101101 + 0o5) + chr(0b110111) + '\064', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x33' + chr(1608 - 1554) + chr(0b101010 + 0o15), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(2816 - 2762) + chr(0b110001), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + '\x32' + '\061' + chr(2607 - 2555), ord("\x08")), nzTpIcepk0o8(chr(0b11100 + 0o24) + chr(0b1101111) + '\062' + '\x36' + chr(0b100111 + 0o14), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110000 + 0o3) + chr(54) + '\062', ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110010) + chr(53) + chr(0b101101 + 0o12), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(392 - 343) + chr(55) + chr(0b110001 + 0o6), 8), nzTpIcepk0o8('\060' + '\157' + chr(49) + '\x33' + '\067', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(213 - 162) + chr(52) + '\064', 46783 - 46775), nzTpIcepk0o8(chr(1159 - 1111) + chr(0b11100 + 0o123) + chr(51) + chr(0b110001) + chr(0b110100), ord("\x08")), nzTpIcepk0o8('\060' + chr(8532 - 8421) + chr(0b101110 + 0o10) + '\067', ord("\x08")), nzTpIcepk0o8(chr(1917 - 1869) + '\157' + chr(0b10000 + 0o43) + chr(53) + chr(0b11 + 0o63), 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(0b100100 + 0o20) + chr(0b110100), 43406 - 43398), nzTpIcepk0o8(chr(0b10111 + 0o31) + chr(8872 - 8761) + chr(0b110011) + chr(0b101101 + 0o5) + '\x31', 0o10), nzTpIcepk0o8('\060' + '\157' + '\x31' + chr(0b110011) + chr(2320 - 2265), 8), nzTpIcepk0o8(chr(48) + '\x6f' + chr(51) + chr(855 - 807) + '\065', 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(0b1 + 0o62) + '\x33' + '\062', ord("\x08")), nzTpIcepk0o8(chr(0b1000 + 0o50) + '\157' + '\x31' + chr(53), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(50) + chr(1765 - 1715) + '\x30', 0o10), nzTpIcepk0o8(chr(0b10101 + 0o33) + chr(111) + chr(1965 - 1914) + '\x37' + chr(0b110111), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + '\064' + '\x37', 0o10), nzTpIcepk0o8(chr(0b101010 + 0o6) + '\157' + chr(461 - 411) + chr(0b110110) + chr(1851 - 1796), 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b101110 + 0o5) + chr(0b10111 + 0o33) + chr(55), 52745 - 52737), nzTpIcepk0o8('\x30' + '\157' + chr(0b110011) + chr(48) + chr(0b110011), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110001) + '\x34' + chr(51), 8)][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + chr(6036 - 5925) + chr(890 - 837) + '\060', 17106 - 17098)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x8f'), chr(100) + chr(0b1100101) + chr(99) + chr(0b1101111) + chr(0b10101 + 0o117) + '\x65')('\165' + chr(0b10110 + 0o136) + chr(0b1100110) + chr(45) + '\070') + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def XgZ80via16KI(zgBFj9gT640a): if not roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'\xf9\x17\xe7\xc9E\x00\xd6L\xf9\x04\xb2\xd6'), chr(0b1100001 + 0o3) + chr(0b1100101 + 0o0) + '\143' + chr(4978 - 4867) + '\144' + chr(8393 - 8292))('\165' + '\164' + chr(102) + chr(0b101011 + 0o2) + chr(0b111 + 0o61)))(zgBFj9gT640a): roI3spqORKae(ELQLGvoVr2Z_, roI3spqORKae(ES5oEprVxulp(b'\xd0\x16\x86\x8fv\x04\xc4#\xee\x10\x83\xf0'), chr(0b1100100) + '\x65' + chr(0b1100 + 0o127) + chr(111) + '\144' + chr(0b1001011 + 0o32))('\165' + chr(0b1110100) + chr(0b1011001 + 0o15) + chr(45) + '\x38'))(roI3spqORKae(ES5oEprVxulp(b'\x84\x0c\x97\x91lT\xfa\x1a\xecu\xa9\xb4\x07\xff\xce\x92R\xf8\xdc\x80\xd6'), '\x64' + chr(0b1000001 + 0o44) + chr(6534 - 6435) + chr(6022 - 5911) + chr(100) + chr(0b1011000 + 0o15))(chr(10788 - 10671) + chr(0b1110100) + chr(7133 - 7031) + '\055' + chr(0b111000)) % zgBFj9gT640a) if not roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'\xdb,\xfe\x81q$\xe10\xee9\x99\xa0'), chr(0b1100100) + chr(6761 - 6660) + chr(3873 - 3774) + chr(11506 - 11395) + chr(4294 - 4194) + chr(5358 - 5257))('\165' + chr(0b111 + 0o155) + chr(1070 - 968) + chr(0b10001 + 0o34) + chr(0b111000)))(roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'\xf8K\xce\xb5&6\xf7\x13\xcc\x16\x86\xe5'), '\144' + chr(101) + '\143' + chr(11324 - 11213) + '\144' + chr(10047 - 9946))(chr(117) + chr(10986 - 10870) + chr(0b1100110) + '\055' + '\x38'))(zgBFj9gT640a, roI3spqORKae(ES5oEprVxulp(b'\xc5\x07\xd6\x88oZ\xfe\x06\xf7;'), chr(0b1100100) + '\x65' + chr(0b1100011) + chr(0b1101111) + chr(0b0 + 0o144) + chr(0b1100101))(chr(0b1100110 + 0o17) + '\x74' + chr(0b1001100 + 0o32) + chr(578 - 533) + chr(731 - 675)))): raise roI3spqORKae(SsdNdRxXOwsF.app_builder, roI3spqORKae(ES5oEprVxulp(b"\xe0\x0f\xc7\xbaj\x1d\xf8\x11\xfd'\x8d\xec\x00\xf3\xcc\x83X\xe3\xdd"), chr(4849 - 4749) + chr(0b1100101) + chr(0b1110 + 0o125) + chr(5285 - 5174) + '\x64' + chr(0b1100101))('\165' + chr(0b1000001 + 0o63) + '\146' + chr(0b1001 + 0o44) + '\x38'))(roI3spqORKae(ES5oEprVxulp(b'\xe5\x16\xc5\x9d|\x00\xfb\x07\xe1u\xed\xe7C\xf2\xd3\x92B\xac\xdd\x9d\xdb_<\x8b\xa2C\x8fM\xbf\x7f\xa1\xa2l\xe0\x8f\t\xdd\xa4\xac\r\x9b_\xd9\x97kT\xf5U\xee4\xa4\xfd\x07\xb6\xf8\xb9p\xe2\xd6\x8a\xda\x0c\x7f\x85\xbcG\xceW\xbe*\xb7\xb9h\xb0\x9bN\xc5\xb2\xa0\x17\xce\r\xce'), chr(100) + chr(0b1011001 + 0o14) + '\x63' + chr(0b1101111) + chr(0b100011 + 0o101) + chr(0b10010 + 0o123))('\x75' + chr(11458 - 11342) + chr(0b1100110) + chr(0b101101) + '\070') % zgBFj9gT640a) with DnU3Rq9N5ala(roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'\xf8K\xce\xb5&6\xf7\x13\xcc\x16\x86\xe5'), '\144' + chr(101) + chr(346 - 247) + chr(10792 - 10681) + chr(0b1011100 + 0o10) + '\x65')(chr(12541 - 12424) + '\164' + chr(102) + '\055' + chr(1028 - 972)))(zgBFj9gT640a, roI3spqORKae(ES5oEprVxulp(b'\xc5\x07\xd6\x88oZ\xfe\x06\xf7;'), chr(100) + '\x65' + chr(0b11010 + 0o111) + '\x6f' + '\144' + '\x65')('\x75' + '\164' + chr(0b1100110) + chr(45) + chr(525 - 469)))) as _ZAx0vynI1XN: try: return eecG0I39JAU1(_ZAx0vynI1XN) except zfo2Sgkz3IVJ as wgf0sgcu_xPL: raise roI3spqORKae(SsdNdRxXOwsF.app_builder, roI3spqORKae(ES5oEprVxulp(b"\xe0\x0f\xc7\xbaj\x1d\xf8\x11\xfd'\x8d\xec\x00\xf3\xcc\x83X\xe3\xdd"), chr(6473 - 6373) + chr(101) + chr(99) + chr(111) + chr(0b1100100) + chr(0b10101 + 0o120))(chr(0b1011010 + 0o33) + chr(12873 - 12757) + '\x66' + chr(444 - 399) + chr(0b0 + 0o70)))(roI3spqORKae(ES5oEprVxulp(b'\xe2\x10\xc2\x94{T\xfa\x1a\xecu\xb8\xf5\x11\xe5\xd9\xd7U\xf4\xd2\x82\xdfQ5\x97\xa3Y\xceB\xb83\xa0\xfal\xe3\xdfm\xe4\x98\x8dY\x81'), chr(100) + chr(101) + chr(0b1100011) + chr(0b1100111 + 0o10) + '\144' + chr(9570 - 9469))(chr(6823 - 6706) + chr(0b1011111 + 0o25) + chr(0b1100000 + 0o6) + '\x2d' + chr(1921 - 1865)) + N9zlRy29S1SS(roI3spqORKae(wgf0sgcu_xPL, roI3spqORKae(ES5oEprVxulp(b'\xc4\x1a\xda\xa8F\x04\xa6\x03\xec\x01\x9b\xe6'), '\x64' + chr(101) + '\143' + '\x6f' + chr(100) + chr(101))('\x75' + chr(116) + chr(0b1000001 + 0o45) + chr(1661 - 1616) + '\070'))))
dnanexus/dx-toolkit
src/python/dxpy/scripts/dx_build_app.py
_build_app
def _build_app(args, extra_args): """Builds an app or applet and returns the resulting executable ID (unless it was a dry-run, in which case None is returned). TODO: remote app builds still return None, but we should fix this. """ if not args.remote: # LOCAL BUILD try: output = build_and_upload_locally( args.src_dir, args.mode, overwrite=args.overwrite, archive=args.archive, publish=args.publish, destination_override=args.destination, version_override=args.version_override, bill_to_override=args.bill_to, use_temp_build_project=args.use_temp_build_project, do_parallel_build=args.parallel_build, do_version_autonumbering=args.version_autonumbering, do_try_update=args.update, dx_toolkit_autodep=args.dx_toolkit_autodep, do_check_syntax=args.check_syntax, ensure_upload=args.ensure_upload, force_symlinks=args.force_symlinks, dry_run=args.dry_run, confirm=args.confirm, return_object_dump=args.json, region=args.region, **extra_args ) if output is not None and args.run is None: print(json.dumps(output)) except dxpy.app_builder.AppBuilderException as e: # AppBuilderException represents errors during app or applet building # that could reasonably have been anticipated by the user. print("Error: %s" % (e.args,), file=sys.stderr) sys.exit(3) except dxpy.exceptions.DXAPIError as e: print("Error: %s" % (e,), file=sys.stderr) sys.exit(3) if args.dry_run: return None return output['id'] else: # REMOTE BUILD try: app_json = _parse_app_spec(args.src_dir) _check_suggestions(app_json, publish=args.publish) _verify_app_source_dir(args.src_dir, args.mode) if args.mode == "app" and not args.dry_run: dxpy.executable_builder.verify_developer_rights('app-' + app_json['name']) except dxpy.app_builder.AppBuilderException as e: print("Error: %s" % (e.args,), file=sys.stderr) sys.exit(3) # The following flags might be useful in conjunction with # --remote. To enable these, we need to learn how to pass these # options through to the interior call of dx_build_app(let). if args.dry_run: parser.error('--remote cannot be combined with --dry-run') if args.overwrite: parser.error('--remote cannot be combined with --overwrite/-f') if args.archive: parser.error('--remote cannot be combined with --archive/-a') # The following flags are probably not useful in conjunction # with --remote. if args.json: parser.error('--remote cannot be combined with --json') if not args.use_temp_build_project: parser.error('--remote cannot be combined with --no-temp-build-project') if isinstance(args.region, list) and len(args.region) > 1: parser.error('--region can only be specified once for remote builds') region = args.region[0] if args.region is not None else None more_kwargs = {} if args.version_override: more_kwargs['version_override'] = args.version_override if args.bill_to: more_kwargs['bill_to_override'] = args.bill_to if not args.version_autonumbering: more_kwargs['do_version_autonumbering'] = False if not args.update: more_kwargs['do_try_update'] = False if not args.parallel_build: more_kwargs['do_parallel_build'] = False if not args.check_syntax: more_kwargs['do_check_syntax'] = False return _build_app_remote(args.mode, args.src_dir, destination_override=args.destination, publish=args.publish, dx_toolkit_autodep=args.dx_toolkit_autodep, region=region, watch=args.watch, **more_kwargs)
python
def _build_app(args, extra_args): """Builds an app or applet and returns the resulting executable ID (unless it was a dry-run, in which case None is returned). TODO: remote app builds still return None, but we should fix this. """ if not args.remote: # LOCAL BUILD try: output = build_and_upload_locally( args.src_dir, args.mode, overwrite=args.overwrite, archive=args.archive, publish=args.publish, destination_override=args.destination, version_override=args.version_override, bill_to_override=args.bill_to, use_temp_build_project=args.use_temp_build_project, do_parallel_build=args.parallel_build, do_version_autonumbering=args.version_autonumbering, do_try_update=args.update, dx_toolkit_autodep=args.dx_toolkit_autodep, do_check_syntax=args.check_syntax, ensure_upload=args.ensure_upload, force_symlinks=args.force_symlinks, dry_run=args.dry_run, confirm=args.confirm, return_object_dump=args.json, region=args.region, **extra_args ) if output is not None and args.run is None: print(json.dumps(output)) except dxpy.app_builder.AppBuilderException as e: # AppBuilderException represents errors during app or applet building # that could reasonably have been anticipated by the user. print("Error: %s" % (e.args,), file=sys.stderr) sys.exit(3) except dxpy.exceptions.DXAPIError as e: print("Error: %s" % (e,), file=sys.stderr) sys.exit(3) if args.dry_run: return None return output['id'] else: # REMOTE BUILD try: app_json = _parse_app_spec(args.src_dir) _check_suggestions(app_json, publish=args.publish) _verify_app_source_dir(args.src_dir, args.mode) if args.mode == "app" and not args.dry_run: dxpy.executable_builder.verify_developer_rights('app-' + app_json['name']) except dxpy.app_builder.AppBuilderException as e: print("Error: %s" % (e.args,), file=sys.stderr) sys.exit(3) # The following flags might be useful in conjunction with # --remote. To enable these, we need to learn how to pass these # options through to the interior call of dx_build_app(let). if args.dry_run: parser.error('--remote cannot be combined with --dry-run') if args.overwrite: parser.error('--remote cannot be combined with --overwrite/-f') if args.archive: parser.error('--remote cannot be combined with --archive/-a') # The following flags are probably not useful in conjunction # with --remote. if args.json: parser.error('--remote cannot be combined with --json') if not args.use_temp_build_project: parser.error('--remote cannot be combined with --no-temp-build-project') if isinstance(args.region, list) and len(args.region) > 1: parser.error('--region can only be specified once for remote builds') region = args.region[0] if args.region is not None else None more_kwargs = {} if args.version_override: more_kwargs['version_override'] = args.version_override if args.bill_to: more_kwargs['bill_to_override'] = args.bill_to if not args.version_autonumbering: more_kwargs['do_version_autonumbering'] = False if not args.update: more_kwargs['do_try_update'] = False if not args.parallel_build: more_kwargs['do_parallel_build'] = False if not args.check_syntax: more_kwargs['do_check_syntax'] = False return _build_app_remote(args.mode, args.src_dir, destination_override=args.destination, publish=args.publish, dx_toolkit_autodep=args.dx_toolkit_autodep, region=region, watch=args.watch, **more_kwargs)
[ "def", "_build_app", "(", "args", ",", "extra_args", ")", ":", "if", "not", "args", ".", "remote", ":", "# LOCAL BUILD", "try", ":", "output", "=", "build_and_upload_locally", "(", "args", ".", "src_dir", ",", "args", ".", "mode", ",", "overwrite", "=", "args", ".", "overwrite", ",", "archive", "=", "args", ".", "archive", ",", "publish", "=", "args", ".", "publish", ",", "destination_override", "=", "args", ".", "destination", ",", "version_override", "=", "args", ".", "version_override", ",", "bill_to_override", "=", "args", ".", "bill_to", ",", "use_temp_build_project", "=", "args", ".", "use_temp_build_project", ",", "do_parallel_build", "=", "args", ".", "parallel_build", ",", "do_version_autonumbering", "=", "args", ".", "version_autonumbering", ",", "do_try_update", "=", "args", ".", "update", ",", "dx_toolkit_autodep", "=", "args", ".", "dx_toolkit_autodep", ",", "do_check_syntax", "=", "args", ".", "check_syntax", ",", "ensure_upload", "=", "args", ".", "ensure_upload", ",", "force_symlinks", "=", "args", ".", "force_symlinks", ",", "dry_run", "=", "args", ".", "dry_run", ",", "confirm", "=", "args", ".", "confirm", ",", "return_object_dump", "=", "args", ".", "json", ",", "region", "=", "args", ".", "region", ",", "*", "*", "extra_args", ")", "if", "output", "is", "not", "None", "and", "args", ".", "run", "is", "None", ":", "print", "(", "json", ".", "dumps", "(", "output", ")", ")", "except", "dxpy", ".", "app_builder", ".", "AppBuilderException", "as", "e", ":", "# AppBuilderException represents errors during app or applet building", "# that could reasonably have been anticipated by the user.", "print", "(", "\"Error: %s\"", "%", "(", "e", ".", "args", ",", ")", ",", "file", "=", "sys", ".", "stderr", ")", "sys", ".", "exit", "(", "3", ")", "except", "dxpy", ".", "exceptions", ".", "DXAPIError", "as", "e", ":", "print", "(", "\"Error: %s\"", "%", "(", "e", ",", ")", ",", "file", "=", "sys", ".", "stderr", ")", "sys", ".", "exit", "(", "3", ")", "if", "args", ".", "dry_run", ":", "return", "None", "return", "output", "[", "'id'", "]", "else", ":", "# REMOTE BUILD", "try", ":", "app_json", "=", "_parse_app_spec", "(", "args", ".", "src_dir", ")", "_check_suggestions", "(", "app_json", ",", "publish", "=", "args", ".", "publish", ")", "_verify_app_source_dir", "(", "args", ".", "src_dir", ",", "args", ".", "mode", ")", "if", "args", ".", "mode", "==", "\"app\"", "and", "not", "args", ".", "dry_run", ":", "dxpy", ".", "executable_builder", ".", "verify_developer_rights", "(", "'app-'", "+", "app_json", "[", "'name'", "]", ")", "except", "dxpy", ".", "app_builder", ".", "AppBuilderException", "as", "e", ":", "print", "(", "\"Error: %s\"", "%", "(", "e", ".", "args", ",", ")", ",", "file", "=", "sys", ".", "stderr", ")", "sys", ".", "exit", "(", "3", ")", "# The following flags might be useful in conjunction with", "# --remote. To enable these, we need to learn how to pass these", "# options through to the interior call of dx_build_app(let).", "if", "args", ".", "dry_run", ":", "parser", ".", "error", "(", "'--remote cannot be combined with --dry-run'", ")", "if", "args", ".", "overwrite", ":", "parser", ".", "error", "(", "'--remote cannot be combined with --overwrite/-f'", ")", "if", "args", ".", "archive", ":", "parser", ".", "error", "(", "'--remote cannot be combined with --archive/-a'", ")", "# The following flags are probably not useful in conjunction", "# with --remote.", "if", "args", ".", "json", ":", "parser", ".", "error", "(", "'--remote cannot be combined with --json'", ")", "if", "not", "args", ".", "use_temp_build_project", ":", "parser", ".", "error", "(", "'--remote cannot be combined with --no-temp-build-project'", ")", "if", "isinstance", "(", "args", ".", "region", ",", "list", ")", "and", "len", "(", "args", ".", "region", ")", ">", "1", ":", "parser", ".", "error", "(", "'--region can only be specified once for remote builds'", ")", "region", "=", "args", ".", "region", "[", "0", "]", "if", "args", ".", "region", "is", "not", "None", "else", "None", "more_kwargs", "=", "{", "}", "if", "args", ".", "version_override", ":", "more_kwargs", "[", "'version_override'", "]", "=", "args", ".", "version_override", "if", "args", ".", "bill_to", ":", "more_kwargs", "[", "'bill_to_override'", "]", "=", "args", ".", "bill_to", "if", "not", "args", ".", "version_autonumbering", ":", "more_kwargs", "[", "'do_version_autonumbering'", "]", "=", "False", "if", "not", "args", ".", "update", ":", "more_kwargs", "[", "'do_try_update'", "]", "=", "False", "if", "not", "args", ".", "parallel_build", ":", "more_kwargs", "[", "'do_parallel_build'", "]", "=", "False", "if", "not", "args", ".", "check_syntax", ":", "more_kwargs", "[", "'do_check_syntax'", "]", "=", "False", "return", "_build_app_remote", "(", "args", ".", "mode", ",", "args", ".", "src_dir", ",", "destination_override", "=", "args", ".", "destination", ",", "publish", "=", "args", ".", "publish", ",", "dx_toolkit_autodep", "=", "args", ".", "dx_toolkit_autodep", ",", "region", "=", "region", ",", "watch", "=", "args", ".", "watch", ",", "*", "*", "more_kwargs", ")" ]
Builds an app or applet and returns the resulting executable ID (unless it was a dry-run, in which case None is returned). TODO: remote app builds still return None, but we should fix this.
[ "Builds", "an", "app", "or", "applet", "and", "returns", "the", "resulting", "executable", "ID", "(", "unless", "it", "was", "a", "dry", "-", "run", "in", "which", "case", "None", "is", "returned", ")", "." ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/scripts/dx_build_app.py#L895-L997
train
Builds an app or applet and returns the resulting executable ID .
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZR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oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(48) + '\157' + '\x33' + chr(0b100100 + 0o15) + chr(49), 40825 - 40817), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b101101 + 0o5) + '\065' + '\064', 3199 - 3191), nzTpIcepk0o8(chr(0b11101 + 0o23) + '\x6f' + '\061' + chr(53) + chr(0b10101 + 0o41), 0o10), nzTpIcepk0o8('\060' + chr(0b1011010 + 0o25) + chr(0b110011) + chr(54) + chr(0b11110 + 0o22), 0o10), nzTpIcepk0o8(chr(0b100110 + 0o12) + chr(111) + '\062' + chr(671 - 619), ord("\x08")), nzTpIcepk0o8(chr(590 - 542) + chr(111) + chr(50) + '\067' + chr(1585 - 1536), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110010) + chr(0b110010) + chr(337 - 288), 64978 - 64970), nzTpIcepk0o8(chr(0b11 + 0o55) + chr(0b10011 + 0o134) + chr(50) + chr(1442 - 1393) + chr(0b11 + 0o64), 0b1000), nzTpIcepk0o8(chr(1077 - 1029) + chr(111) + chr(0b11110 + 0o24) + chr(54) + '\x37', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110100) + chr(51), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b1000 + 0o51) + '\066' + '\x34', 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(1764 - 1714) + '\x36' + chr(0b101100 + 0o5), 33100 - 33092), nzTpIcepk0o8(chr(0b101001 + 0o7) + chr(4087 - 3976) + chr(0b110010) + '\064' + chr(2071 - 2019), 0b1000), nzTpIcepk0o8(chr(1728 - 1680) + '\157' + '\061' + chr(0b101011 + 0o5), 60453 - 60445), nzTpIcepk0o8(chr(48) + '\x6f' + '\x31' + '\x31' + chr(0b110111), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(4791 - 4680) + '\x31' + chr(0b110010) + '\x33', ord("\x08")), nzTpIcepk0o8(chr(0b11001 + 0o27) + chr(0b1101111) + chr(49) + chr(1701 - 1649) + chr(0b100000 + 0o23), 55209 - 55201), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b101010 + 0o11) + chr(1405 - 1355) + '\063', 0b1000), nzTpIcepk0o8('\x30' + chr(0b11000 + 0o127) + '\x32' + chr(0b110011) + chr(0b110011), 0o10), nzTpIcepk0o8(chr(0b1 + 0o57) + chr(0b111100 + 0o63) + chr(0b101 + 0o55) + '\x36' + chr(54), ord("\x08")), nzTpIcepk0o8(chr(0b11101 + 0o23) + chr(0b1010110 + 0o31) + chr(50) + chr(53), 54313 - 54305), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b11111 + 0o22) + '\x36' + chr(0b110100), 8), nzTpIcepk0o8(chr(0b101110 + 0o2) + '\x6f' + '\x36' + '\x31', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b110 + 0o151) + '\x32' + chr(2607 - 2552) + chr(1867 - 1814), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + '\063' + chr(0b110110) + chr(0b110000), 8), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110001) + '\x31' + chr(51), 12560 - 12552), nzTpIcepk0o8('\x30' + chr(7942 - 7831) + '\x31' + chr(0b110100) + '\061', ord("\x08")), nzTpIcepk0o8(chr(1659 - 1611) + chr(0b111011 + 0o64) + chr(0b1001 + 0o50) + chr(0b1111 + 0o41) + chr(0b110001), 63411 - 63403), nzTpIcepk0o8('\060' + chr(8977 - 8866) + chr(0b11101 + 0o24) + '\x31', 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x32' + '\062' + chr(2260 - 2205), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110001) + '\067' + chr(0b110100), 0o10), nzTpIcepk0o8(chr(48) + '\157' + '\061' + chr(0b110111) + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(1898 - 1850) + chr(1143 - 1032) + chr(622 - 573) + chr(0b110100) + '\066', ord("\x08")), nzTpIcepk0o8(chr(2103 - 2055) + chr(0b1101111) + chr(49) + chr(481 - 427) + chr(54), 0o10), nzTpIcepk0o8(chr(0b1100 + 0o44) + chr(0b1101111) + chr(0b110011) + '\063' + '\x32', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x32' + chr(50) + chr(48), 42604 - 42596), nzTpIcepk0o8(chr(48) + chr(0b1101111 + 0o0) + chr(51) + '\065' + '\062', 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(1893 - 1843) + '\066' + chr(0b1001 + 0o50), 8), nzTpIcepk0o8(chr(0b101100 + 0o4) + '\x6f' + chr(0b101010 + 0o10), 0b1000), nzTpIcepk0o8(chr(355 - 307) + chr(0b1001011 + 0o44) + '\x33' + chr(52) + chr(927 - 878), 15410 - 15402)][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + chr(111) + chr(53) + chr(0b11101 + 0o23), 59589 - 59581)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xe7'), chr(5930 - 5830) + chr(9934 - 9833) + chr(0b1011101 + 0o6) + chr(12267 - 12156) + '\x64' + chr(0b1100101))('\165' + chr(116) + chr(102) + chr(0b101101) + chr(56)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def TLXpjqB36c18(eemPYp2vtTSr, vsHxRdBONQp3): if not roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b"\x9d\xe8\x17\xc0'\xd6\xf5\xcb\xd8N8\xf0"), chr(0b110010 + 0o62) + '\x65' + '\x63' + chr(0b1101111) + '\x64' + chr(101))(chr(0b1000011 + 0o62) + '\164' + '\x66' + '\x2d' + chr(1230 - 1174))): try: toKQXlEvBKaK = UR_hqFcu48f4(eemPYp2vtTSr.src_dir, eemPYp2vtTSr.bmJ7SvuZE3jD, overwrite=eemPYp2vtTSr.overwrite, archive=eemPYp2vtTSr.dBcxfKxmLMYL, publish=eemPYp2vtTSr.ZRkmNLRvN8fl, destination_override=eemPYp2vtTSr.ZvPf2p7avF3N, version_override=eemPYp2vtTSr.version_override, bill_to_override=eemPYp2vtTSr.bill_to, use_temp_build_project=eemPYp2vtTSr.use_temp_build_project, do_parallel_build=eemPYp2vtTSr.parallel_build, do_version_autonumbering=eemPYp2vtTSr.version_autonumbering, do_try_update=eemPYp2vtTSr.J_k2IYB1ceqn, dx_toolkit_autodep=eemPYp2vtTSr.dx_toolkit_autodep, do_check_syntax=eemPYp2vtTSr.check_syntax, ensure_upload=eemPYp2vtTSr.ensure_upload, force_symlinks=eemPYp2vtTSr.force_symlinks, dry_run=eemPYp2vtTSr.BdFrFR7WJm4f, confirm=eemPYp2vtTSr.confirm, return_object_dump=eemPYp2vtTSr.LNUKEwZDIbyb, region=eemPYp2vtTSr.SiTpDn8thAb3, **vsHxRdBONQp3) if toKQXlEvBKaK is not None and roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b'\xb8\xc2>\xbf]\xdd\xd3\xde\xfdG\x0e\xe8'), chr(100) + '\145' + chr(99) + '\157' + chr(6718 - 6618) + chr(0b111000 + 0o55))('\165' + '\164' + chr(9759 - 9657) + '\055' + chr(0b111000))) is None: v8jsMqaYV6U2(roI3spqORKae(LNUKEwZDIbyb, roI3spqORKae(ES5oEprVxulp(b'\x93\xc6\t\x9cy\xd4\xa9\xfa\xd2M\x1f\xf2'), chr(2339 - 2239) + chr(101) + chr(99) + chr(0b1001100 + 0o43) + '\x64' + '\145')('\165' + '\x74' + '\x66' + chr(45) + chr(0b11001 + 0o37)))(toKQXlEvBKaK)) except roI3spqORKae(SsdNdRxXOwsF.app_builder, roI3spqORKae(ES5oEprVxulp(b"\x88\xdc\x1e\xb2a\xd0\xfd\xeb\xd2Q1\xc9\xc7m?'\n\xbc\xf5"), chr(0b100110 + 0o76) + '\x65' + '\x63' + chr(111) + '\x64' + chr(8294 - 8193))(chr(0b1110101) + chr(904 - 788) + chr(102) + chr(0b101101) + chr(0b1000 + 0o60))) as wgf0sgcu_xPL: v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\x8c\xde\x1c\x9ff\x83\xb1\xaa\xc4'), chr(0b1100100) + chr(0b1100101) + '\143' + chr(111) + '\144' + chr(6999 - 6898))(chr(117) + chr(0b1110100) + chr(0b100010 + 0o104) + '\055' + chr(0b100 + 0o64)) % (roI3spqORKae(wgf0sgcu_xPL, roI3spqORKae(ES5oEprVxulp(b"\xac\xc9\x03\xa0M\xc9\xa3\xf9\xc3w'\xc3"), chr(3713 - 3613) + '\x65' + chr(0b1100011) + '\x6f' + '\144' + '\145')(chr(117) + chr(116) + '\x66' + '\055' + chr(2456 - 2400))),), file=roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\xa6\xfe]\x84U\xca\xff\xc0\xf6S\x19\xf7'), chr(0b1100100) + chr(101) + chr(4071 - 3972) + chr(2589 - 2478) + chr(0b100100 + 0o100) + '\145')(chr(117) + '\x74' + chr(9778 - 9676) + '\055' + '\x38'))) roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\x93\xd9\x1c\x9aw\xec\xdd\xbe\xc4P5\x89'), '\x64' + chr(0b1100101) + chr(99) + chr(111) + chr(0b1100100) + chr(7242 - 7141))(chr(0b1110101) + chr(7146 - 7030) + chr(0b11000 + 0o116) + '\055' + '\x38'))(nzTpIcepk0o8(chr(48) + '\x6f' + chr(1973 - 1922), 33838 - 33830)) except roI3spqORKae(SsdNdRxXOwsF.exceptions, roI3spqORKae(ES5oEprVxulp(b'\x8d\xf4/\xa0]\xfc\xe3\xfd\xd8Q'), chr(0b100110 + 0o76) + '\x65' + '\x63' + '\157' + '\x64' + chr(5794 - 5693))(chr(2991 - 2874) + chr(0b1110100) + '\146' + '\055' + '\x38')) as wgf0sgcu_xPL: v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\x8c\xde\x1c\x9ff\x83\xb1\xaa\xc4'), chr(0b11011 + 0o111) + '\x65' + '\x63' + chr(0b1101111) + '\x64' + chr(7693 - 7592))(chr(0b1110101) + '\x74' + chr(0b11101 + 0o111) + chr(0b1111 + 0o36) + chr(56)) % (wgf0sgcu_xPL,), file=roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\xa6\xfe]\x84U\xca\xff\xc0\xf6S\x19\xf7'), '\x64' + '\x65' + chr(5134 - 5035) + chr(6088 - 5977) + '\x64' + '\145')(chr(0b10000 + 0o145) + '\164' + '\146' + chr(0b101101) + '\070'))) roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\x93\xd9\x1c\x9aw\xec\xdd\xbe\xc4P5\x89'), '\x64' + chr(0b100001 + 0o104) + '\143' + '\157' + chr(0b1100100) + chr(101))(chr(0b1110101) + chr(0b1011011 + 0o31) + chr(0b111001 + 0o55) + chr(1254 - 1209) + chr(0b111000)))(nzTpIcepk0o8('\060' + chr(4399 - 4288) + '\063', 8)) if roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b'\x8b\xc8(\x82R\xeb\xa6\xd8\xfdN@\xd7'), chr(1045 - 945) + '\145' + chr(6981 - 6882) + chr(5496 - 5385) + chr(100) + chr(4596 - 4495))(chr(0b1110101) + chr(0b1110100) + chr(102) + '\x2d' + '\070')): return None return toKQXlEvBKaK[roI3spqORKae(ES5oEprVxulp(b'\xa0\xc8'), '\144' + chr(0b111110 + 0o47) + chr(0b10000 + 0o123) + chr(0b1000010 + 0o55) + chr(9505 - 9405) + chr(0b1100101))(chr(0b1110101) + '\164' + '\x66' + chr(0b101101) + chr(56))] else: try: X_c34vTbvwfj = XgZ80via16KI(eemPYp2vtTSr.src_dir) E9g3OV9eX7Cy(X_c34vTbvwfj, publish=roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b'\x93\xfe\x05\x9dZ\xf5\xc3\xf9\xf9\x1b\x12\xdd'), chr(6256 - 6156) + '\x65' + chr(4244 - 4145) + chr(0b1011110 + 0o21) + '\144' + chr(0b1100101))('\165' + chr(0b1110100) + '\x66' + chr(45) + chr(0b111000)))) lPf17F36zm0P(roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b'\xba\xde\r\xafp\xd0\xe3'), '\x64' + '\145' + '\x63' + chr(0b101010 + 0o105) + '\x64' + chr(6988 - 6887))(chr(0b1110101) + '\x74' + chr(0b1100110) + chr(0b101101) + '\070')), roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b'\xab\xc1$\xc7G\xcf\xe4\xd5\xf2\x10\x1e\xf5'), chr(0b1010110 + 0o16) + chr(0b1100101) + chr(6294 - 6195) + chr(0b11010 + 0o125) + '\144' + '\x65')(chr(0b1110101) + chr(0b1110100) + chr(0b1001101 + 0o31) + chr(0b101101) + chr(0b111000)))) if roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b'\xab\xc1$\xc7G\xcf\xe4\xd5\xf2\x10\x1e\xf5'), '\144' + chr(4293 - 4192) + chr(99) + chr(10592 - 10481) + chr(100) + chr(101))(chr(0b11001 + 0o134) + chr(8412 - 8296) + chr(0b1100110) + chr(895 - 850) + chr(0b11011 + 0o35))) == roI3spqORKae(ES5oEprVxulp(b'\xa8\xdc\x1e'), '\144' + chr(8181 - 8080) + chr(99) + chr(0b10111 + 0o130) + '\x64' + chr(0b1100101))('\x75' + chr(0b1110100) + chr(0b1100110) + chr(959 - 914) + chr(56)) and (not roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b'\x8b\xc8(\x82R\xeb\xa6\xd8\xfdN@\xd7'), '\144' + chr(0b11011 + 0o112) + chr(0b1011010 + 0o11) + chr(111) + chr(0b1100100) + '\x65')('\x75' + '\x74' + chr(8201 - 8099) + '\x2d' + chr(0b111000)))): roI3spqORKae(SsdNdRxXOwsF.executable_builder, roI3spqORKae(ES5oEprVxulp(b'\xbf\xc9\x1c\x99r\xc0\xce\xeb\xd2U\x11\xdd\xcbx*!<\xa1\xf2\xd1}\x00B'), '\144' + chr(5151 - 5050) + chr(1463 - 1364) + chr(111) + chr(2144 - 2044) + chr(101))('\165' + chr(116) + chr(0b101000 + 0o76) + chr(0b100001 + 0o14) + chr(0b1000 + 0o60)))(roI3spqORKae(ES5oEprVxulp(b'\xa8\xdc\x1e\xdd'), '\144' + chr(0b1100101) + chr(99) + chr(0b1011000 + 0o27) + '\x64' + chr(0b10 + 0o143))(chr(0b1110101) + '\164' + chr(102) + '\x2d' + chr(56)) + X_c34vTbvwfj[roI3spqORKae(ES5oEprVxulp(b'\xa7\xcd\x03\x95'), chr(4336 - 4236) + '\145' + chr(99) + '\x6f' + '\144' + chr(101))(chr(1502 - 1385) + chr(11812 - 11696) + chr(0b1011010 + 0o14) + chr(87 - 42) + '\070')]) except roI3spqORKae(SsdNdRxXOwsF.app_builder, roI3spqORKae(ES5oEprVxulp(b"\x88\xdc\x1e\xb2a\xd0\xfd\xeb\xd2Q1\xc9\xc7m?'\n\xbc\xf5"), chr(1392 - 1292) + chr(101) + '\143' + chr(111) + chr(100) + '\x65')(chr(0b1010110 + 0o37) + chr(9321 - 9205) + '\146' + chr(0b101101) + chr(56))) as wgf0sgcu_xPL: v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\x8c\xde\x1c\x9ff\x83\xb1\xaa\xc4'), '\x64' + chr(0b101010 + 0o73) + '\143' + chr(111) + chr(0b1100100) + chr(0b1001110 + 0o27))('\x75' + '\164' + '\146' + chr(0b101101) + chr(56)) % (roI3spqORKae(wgf0sgcu_xPL, roI3spqORKae(ES5oEprVxulp(b"\xac\xc9\x03\xa0M\xc9\xa3\xf9\xc3w'\xc3"), '\x64' + chr(0b1100001 + 0o4) + chr(8649 - 8550) + chr(111) + chr(0b101010 + 0o72) + chr(101))(chr(117) + chr(0b1000100 + 0o60) + '\x66' + chr(0b101101) + '\x38')),), file=roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\xa6\xfe]\x84U\xca\xff\xc0\xf6S\x19\xf7'), chr(0b1011 + 0o131) + chr(0b1000 + 0o135) + chr(0b1000010 + 0o41) + chr(0b111011 + 0o64) + '\x64' + chr(0b11011 + 0o112))(chr(2928 - 2811) + chr(116) + chr(0b1100110) + chr(1247 - 1202) + chr(0b111000)))) roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\x93\xd9\x1c\x9aw\xec\xdd\xbe\xc4P5\x89'), chr(100) + '\x65' + chr(0b110101 + 0o56) + chr(8611 - 8500) + chr(100) + chr(0b110101 + 0o60))(chr(0b101111 + 0o106) + '\x74' + chr(0b101101 + 0o71) + chr(0b101101) + chr(0b10111 + 0o41)))(nzTpIcepk0o8(chr(48) + '\157' + chr(51), 8)) if roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b'\x8b\xc8(\x82R\xeb\xa6\xd8\xfdN@\xd7'), chr(0b1100100) + chr(4307 - 4206) + chr(99) + chr(5969 - 5858) + '\144' + '\145')(chr(5069 - 4952) + chr(0b1110100) + chr(1861 - 1759) + '\x2d' + chr(0b100 + 0o64))): roI3spqORKae(ELQLGvoVr2Z_, roI3spqORKae(ES5oEprVxulp(b'\xb8\xc5_\x87}\xc9\xc1\xd9\xc1f?\xd5'), chr(0b1011011 + 0o11) + chr(9275 - 9174) + chr(0b1100011) + chr(0b1101111) + chr(0b1100100) + chr(6712 - 6611))(chr(0b1110101) + '\x74' + '\146' + chr(944 - 899) + chr(0b11 + 0o65)))(roI3spqORKae(ES5oEprVxulp(b'\xe4\x81\x1c\x95y\xd6\xe5\xea\x97@\x15\xdf\xcag;s\x01\xb6\xbb\xd5z\x19S\xd4\x9e.\x05a~\xfe\x08\x11F[\xf7\xf4\x98\xc8/\x93\xbc\xc2'), chr(100) + chr(0b11110 + 0o107) + chr(99) + chr(0b111111 + 0o60) + chr(9578 - 9478) + chr(9004 - 8903))(chr(117) + chr(116) + '\x66' + chr(1474 - 1429) + chr(0b111000))) if roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b'\xa6\xda\x0b\x82c\xcb\xf8\xfb\xd2'), chr(100) + chr(101) + chr(0b1100011) + chr(0b10001 + 0o136) + chr(6408 - 6308) + chr(0b1100101))(chr(0b1110101) + chr(0b111011 + 0o71) + chr(102) + chr(0b101101) + chr(0b111000))): roI3spqORKae(ELQLGvoVr2Z_, roI3spqORKae(ES5oEprVxulp(b'\xb8\xc5_\x87}\xc9\xc1\xd9\xc1f?\xd5'), '\x64' + chr(101) + chr(0b1001101 + 0o26) + chr(2775 - 2664) + chr(100) + chr(831 - 730))('\165' + chr(244 - 128) + '\x66' + '\055' + '\x38'))(roI3spqORKae(ES5oEprVxulp(b'\xe4\x81\x1c\x95y\xd6\xe5\xea\x97@\x15\xdf\xcag;s\x01\xb6\xbb\xd5z\x19S\xd4\x9e.\x05a~\xfe\x08\x11F[\xf7\xff\x9c\xd4p\x96\xbb\xc5\x1a\x95;\x94\xf7'), chr(0b1010101 + 0o17) + '\145' + chr(8818 - 8719) + chr(111) + chr(8520 - 8420) + chr(0b1100101))('\x75' + '\x74' + '\x66' + chr(0b11010 + 0o23) + '\x38')) if roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b'\xad\xee\r\x88r\xf2\xe9\xe2\xfbn-\xfd'), chr(8854 - 8754) + chr(0b1100101) + chr(99) + '\x6f' + '\144' + '\x65')('\165' + chr(9860 - 9744) + chr(2108 - 2006) + chr(0b1110 + 0o37) + '\x38')): roI3spqORKae(ELQLGvoVr2Z_, roI3spqORKae(ES5oEprVxulp(b'\xb8\xc5_\x87}\xc9\xc1\xd9\xc1f?\xd5'), chr(0b11000 + 0o114) + '\145' + '\x63' + '\157' + '\144' + chr(101))(chr(117) + chr(116) + chr(0b1100110) + chr(0b100 + 0o51) + chr(0b101111 + 0o11)))(roI3spqORKae(ES5oEprVxulp(b'\xe4\x81\x1c\x95y\xd6\xe5\xea\x97@\x15\xdf\xcag;s\x01\xb6\xbb\xd5z\x19S\xd4\x9e.\x05a~\xfe\x08\x11F[\xf7\xf1\x98\xd2j\x88\xbf\xc9A\xddu'), chr(0b100100 + 0o100) + chr(0b1100101) + chr(3996 - 3897) + '\x6f' + '\144' + chr(0b1100101))('\165' + chr(116) + chr(0b111000 + 0o56) + chr(45) + chr(571 - 515))) if roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b'\x85\xe2;\xbbQ\xce\xcb\xcb\xfeA\r\xd3'), chr(0b1100100) + chr(4841 - 4740) + '\143' + chr(0b1100000 + 0o17) + chr(100) + '\x65')(chr(5765 - 5648) + chr(0b1110100) + chr(0b100000 + 0o106) + chr(0b101101) + chr(0b0 + 0o70))): roI3spqORKae(ELQLGvoVr2Z_, roI3spqORKae(ES5oEprVxulp(b'\xb8\xc5_\x87}\xc9\xc1\xd9\xc1f?\xd5'), '\x64' + chr(101) + '\143' + chr(857 - 746) + chr(100) + chr(101))('\x75' + chr(0b1110100) + chr(0b1100110) + '\x2d' + chr(92 - 36)))(roI3spqORKae(ES5oEprVxulp(b'\xe4\x81\x1c\x95y\xd6\xe5\xea\x97@\x15\xdf\xcag;s\x01\xb6\xbb\xd5z\x19S\xd4\x9e.\x05a~\xfe\x08\x11F[\xf7\xfa\x99\xdel'), '\x64' + chr(0b1011100 + 0o11) + chr(0b1011000 + 0o13) + '\x6f' + chr(8091 - 7991) + chr(0b1100101))('\x75' + chr(10948 - 10832) + chr(0b1100110) + '\055' + '\070')) if not roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b'\xbc\xdf\x0b\xaf`\xdc\xfc\xff\xe8A\x01\xd8\xc8l\x10#\x11\xbc\xf1\xd3v\x00'), chr(0b1100100) + chr(101) + '\143' + '\157' + '\144' + chr(101))(chr(428 - 311) + chr(0b1110100) + '\146' + chr(0b10111 + 0o26) + chr(0b111000))): roI3spqORKae(ELQLGvoVr2Z_, roI3spqORKae(ES5oEprVxulp(b'\xb8\xc5_\x87}\xc9\xc1\xd9\xc1f?\xd5'), chr(100) + chr(0b1100101) + chr(99) + '\x6f' + chr(100) + chr(0b1100101))(chr(117) + chr(0b1101010 + 0o12) + chr(7370 - 7268) + '\055' + chr(0b10010 + 0o46)))(roI3spqORKae(ES5oEprVxulp(b"\xe4\x81\x1c\x95y\xd6\xe5\xea\x97@\x15\xdf\xcag;s\x01\xb6\xbb\xd5z\x19S\xd4\x9e.\x05a~\xfe\x08\x11F[\xf7\xfe\x85\x9cv\x84\xa4\xdcC\x92a\xd0\xfd\xeb\x9aS\x06\xde\xcem,'"), chr(0b1100100) + chr(0b111110 + 0o47) + chr(8958 - 8859) + chr(0b1101111) + chr(100) + chr(0b1100101))(chr(0b1101110 + 0o7) + chr(10950 - 10834) + chr(0b1000 + 0o136) + chr(1172 - 1127) + chr(56))) if suIjIS24Zkqw(roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b'\x9a\xc5:\x80P\xd7\xa9\xfb\xdfb\x16\x82'), '\144' + chr(9535 - 9434) + '\x63' + '\157' + '\x64' + chr(0b1000001 + 0o44))('\x75' + chr(116) + chr(0b1100110) + chr(45) + chr(56))), H4NoA26ON7iG) and ftfygxgFas5X(roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b'\x9a\xc5:\x80P\xd7\xa9\xfb\xdfb\x16\x82'), chr(0b1110 + 0o126) + chr(101) + chr(0b1011000 + 0o13) + chr(5678 - 5567) + '\144' + chr(6280 - 6179))(chr(3523 - 3406) + chr(0b1000011 + 0o61) + '\x66' + chr(45) + chr(56)))) > nzTpIcepk0o8('\060' + chr(0b111011 + 0o64) + chr(1040 - 991), ord("\x08")): roI3spqORKae(ELQLGvoVr2Z_, roI3spqORKae(ES5oEprVxulp(b'\xb8\xc5_\x87}\xc9\xc1\xd9\xc1f?\xd5'), '\x64' + chr(5577 - 5476) + '\x63' + chr(111) + '\144' + '\x65')(chr(117) + chr(116) + chr(0b110 + 0o140) + chr(0b0 + 0o55) + chr(56)))(roI3spqORKae(ES5oEprVxulp(b'\xe4\x81\x1c\x95s\xd0\xfe\xe1\x97@\x15\xdf\x84g!?\x1a\xf3\xf9\xd35\x07A\xd8\x93"\x07(l\xf3\\\x16\x08\x15\xbf\xb0\x8c\xdep\xc1\xbb\xc9\x03\x9f`\xdc\xb1\xed\xc2J\x18\xd5\xd7'), chr(0b1100100) + '\145' + '\x63' + '\157' + chr(0b1100100) + '\145')(chr(0b1110101) + chr(0b1110100) + chr(5910 - 5808) + chr(0b100111 + 0o6) + chr(0b101111 + 0o11))) SiTpDn8thAb3 = eemPYp2vtTSr.SiTpDn8thAb3[nzTpIcepk0o8('\x30' + chr(111) + '\060', 0o10)] if eemPYp2vtTSr.SiTpDn8thAb3 is not None else None kSzqbkTXq4Gh = {} if roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b'\xbf\xc9\x1c\x83}\xd6\xff\xd0\xd8U\x11\xc3\xd6a+6'), chr(3723 - 3623) + chr(101) + chr(2179 - 2080) + chr(0b10111 + 0o130) + chr(0b1100100) + chr(0b1010010 + 0o23))('\165' + chr(116) + chr(0b1010011 + 0o23) + chr(0b100001 + 0o14) + '\x38')): kSzqbkTXq4Gh[roI3spqORKae(ES5oEprVxulp(b'\xbf\xc9\x1c\x83}\xd6\xff\xd0\xd8U\x11\xc3\xd6a+6'), chr(0b101010 + 0o72) + chr(8449 - 8348) + chr(0b1100011) + chr(111) + chr(0b1100100) + chr(0b1100101))('\165' + chr(11874 - 11758) + chr(102) + chr(138 - 93) + chr(0b111000))] = eemPYp2vtTSr.version_override if roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b'\xab\xc5\x02\x9cK\xcd\xfe'), chr(0b1100100) + '\145' + chr(3981 - 3882) + chr(0b1101111) + chr(6141 - 6041) + chr(101))('\x75' + '\x74' + '\146' + '\055' + '\070')): kSzqbkTXq4Gh[roI3spqORKae(ES5oEprVxulp(b'\xab\xc5\x02\x9cK\xcd\xfe\xd0\xd8U\x11\xc3\xd6a+6'), chr(0b1100 + 0o130) + '\145' + chr(0b1100011) + '\157' + '\144' + '\x65')(chr(117) + chr(0b1110100) + chr(3626 - 3524) + chr(45) + '\x38')] = eemPYp2vtTSr.bill_to if not roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b'\xbf\xc9\x1c\x83}\xd6\xff\xd0\xd6V\x00\xde\xca}"1\x06\xa1\xf2\xd8r'), '\x64' + chr(0b1100101) + '\143' + '\157' + chr(0b1000100 + 0o40) + '\145')('\165' + chr(116) + chr(0b1100110) + chr(0b11000 + 0o25) + chr(0b111000))): kSzqbkTXq4Gh[roI3spqORKae(ES5oEprVxulp(b'\xad\xc31\x86q\xcb\xe2\xe6\xd8M+\xd0\xd1| =\x16\xbe\xf9\xd3g\x1d_\xda'), chr(3791 - 3691) + chr(0b1100101) + chr(0b11 + 0o140) + '\157' + chr(100) + chr(0b1100101))('\x75' + '\x74' + chr(0b1011011 + 0o13) + '\055' + '\070')] = nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110000), 8) if not roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b'\x83\xf3\x05\xc2]\xe0\xd3\xbe\xd4F\x05\xdf'), '\x64' + chr(3914 - 3813) + '\x63' + chr(111) + '\x64' + '\x65')(chr(8071 - 7954) + chr(0b1101000 + 0o14) + '\x66' + chr(45) + '\070')): kSzqbkTXq4Gh[roI3spqORKae(ES5oEprVxulp(b'\xad\xc31\x84f\xc0\xce\xfa\xc7G\x15\xc5\xc1'), '\144' + chr(0b1011000 + 0o15) + '\143' + chr(7216 - 7105) + chr(0b1100100) + chr(849 - 748))('\165' + chr(6444 - 6328) + '\146' + '\x2d' + chr(0b111000))] = nzTpIcepk0o8(chr(1841 - 1793) + '\x6f' + chr(48), 8) if not roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b'\xb9\xcd\x1c\x91x\xd5\xf4\xe3\xe8A\x01\xd8\xc8l'), chr(8993 - 8893) + chr(5032 - 4931) + chr(99) + '\157' + '\x64' + chr(101))('\x75' + chr(0b1110100) + chr(102) + chr(0b100011 + 0o12) + '\070')): kSzqbkTXq4Gh[roI3spqORKae(ES5oEprVxulp(b'\xad\xc31\x80u\xcb\xf0\xe3\xdbF\x18\xee\xc6}&?\x07'), chr(0b1100100) + chr(0b1100101) + chr(99) + chr(794 - 683) + '\144' + chr(101))(chr(0b110100 + 0o101) + chr(116) + chr(0b101101 + 0o71) + chr(1585 - 1540) + '\070')] = nzTpIcepk0o8('\x30' + '\x6f' + '\060', 8) if not roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b'\xaa\xc4\x0b\x93\x7f\xe6\xe2\xf6\xd9W\x15\xc9'), chr(100) + chr(0b1000001 + 0o44) + chr(0b10100 + 0o117) + chr(9572 - 9461) + '\x64' + chr(9283 - 9182))(chr(804 - 687) + chr(0b1110100) + chr(4640 - 4538) + chr(45) + chr(0b110000 + 0o10))): kSzqbkTXq4Gh[roI3spqORKae(ES5oEprVxulp(b'\xad\xc31\x93|\xdc\xf2\xe4\xe8P\r\xdf\xd0i7'), chr(8213 - 8113) + '\x65' + chr(99) + chr(0b1011011 + 0o24) + chr(0b100010 + 0o102) + chr(0b111111 + 0o46))(chr(0b1110101) + '\x74' + chr(9016 - 8914) + chr(0b11 + 0o52) + chr(1302 - 1246))] = nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(310 - 262), 8) return v0Eu3yZglS3U(roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b'\xab\xc1$\xc7G\xcf\xe4\xd5\xf2\x10\x1e\xf5'), chr(0b1001111 + 0o25) + chr(101) + chr(99) + '\157' + chr(100) + chr(2180 - 2079))(chr(0b1110101) + '\x74' + chr(0b1010001 + 0o25) + '\055' + '\070')), roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b'\xba\xde\r\xafp\xd0\xe3'), '\x64' + chr(0b1100101) + '\143' + '\x6f' + chr(721 - 621) + chr(0b11001 + 0o114))(chr(0b1110101) + chr(0b1110100) + chr(0b1100110) + chr(0b101101) + chr(56))), destination_override=roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b'\x93\xda>\x96&\xc9\xa6\xee\xc1eG\xff'), '\144' + chr(0b111101 + 0o50) + chr(0b1100011) + '\157' + '\x64' + '\145')(chr(10481 - 10364) + '\x74' + '\x66' + chr(0b101101) + chr(0b111000))), publish=roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b'\x93\xfe\x05\x9dZ\xf5\xc3\xf9\xf9\x1b\x12\xdd'), '\144' + '\145' + chr(0b1100011) + chr(0b1101011 + 0o4) + chr(8951 - 8851) + '\145')(chr(1926 - 1809) + '\x74' + chr(0b1100110) + chr(1954 - 1909) + chr(2105 - 2049))), dx_toolkit_autodep=roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b'\xad\xd41\x84{\xd6\xfd\xe4\xdeW+\xd0\xd1| 7\x06\xa3'), chr(0b1100001 + 0o3) + chr(0b1 + 0o144) + chr(816 - 717) + chr(0b11110 + 0o121) + '\x64' + chr(0b1001101 + 0o30))(chr(2331 - 2214) + chr(5675 - 5559) + chr(0b111001 + 0o55) + chr(45) + chr(0b111000))), region=SiTpDn8thAb3, watch=roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b'\xbe\xcd\x1a\x93|'), chr(0b1000100 + 0o40) + chr(101) + chr(7646 - 7547) + '\157' + '\x64' + chr(4797 - 4696))(chr(0b1010111 + 0o36) + chr(12496 - 12380) + '\x66' + chr(565 - 520) + chr(0b111000))), **kSzqbkTXq4Gh)
dnanexus/dx-toolkit
src/python/dxpy/scripts/dx_build_app.py
main
def main(**kwargs): """ Entry point for dx-build-app(let). Don't call this function as a subroutine in your program! It is liable to sys.exit your program when it detects certain error conditions, so you can't recover from those as you could if it raised exceptions. Instead, call dx_build_app.build_and_upload_locally which provides the real implementation for dx-build-app(let) but is easier to use in your program. """ if len(sys.argv) > 0: if sys.argv[0].endswith('dx-build-app'): logging.warn('Warning: dx-build-app has been replaced with "dx build --create-app". Please update your scripts.') elif sys.argv[0].endswith('dx-build-applet'): logging.warn('Warning: dx-build-applet has been replaced with "dx build". Please update your scripts.') exit(0)
python
def main(**kwargs): """ Entry point for dx-build-app(let). Don't call this function as a subroutine in your program! It is liable to sys.exit your program when it detects certain error conditions, so you can't recover from those as you could if it raised exceptions. Instead, call dx_build_app.build_and_upload_locally which provides the real implementation for dx-build-app(let) but is easier to use in your program. """ if len(sys.argv) > 0: if sys.argv[0].endswith('dx-build-app'): logging.warn('Warning: dx-build-app has been replaced with "dx build --create-app". Please update your scripts.') elif sys.argv[0].endswith('dx-build-applet'): logging.warn('Warning: dx-build-applet has been replaced with "dx build". Please update your scripts.') exit(0)
[ "def", "main", "(", "*", "*", "kwargs", ")", ":", "if", "len", "(", "sys", ".", "argv", ")", ">", "0", ":", "if", "sys", ".", "argv", "[", "0", "]", ".", "endswith", "(", "'dx-build-app'", ")", ":", "logging", ".", "warn", "(", "'Warning: dx-build-app has been replaced with \"dx build --create-app\". Please update your scripts.'", ")", "elif", "sys", ".", "argv", "[", "0", "]", ".", "endswith", "(", "'dx-build-applet'", ")", ":", "logging", ".", "warn", "(", "'Warning: dx-build-applet has been replaced with \"dx build\". Please update your scripts.'", ")", "exit", "(", "0", ")" ]
Entry point for dx-build-app(let). Don't call this function as a subroutine in your program! It is liable to sys.exit your program when it detects certain error conditions, so you can't recover from those as you could if it raised exceptions. Instead, call dx_build_app.build_and_upload_locally which provides the real implementation for dx-build-app(let) but is easier to use in your program.
[ "Entry", "point", "for", "dx", "-", "build", "-", "app", "(", "let", ")", "." ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/scripts/dx_build_app.py#L1015-L1031
train
Entry point for dx - build - app.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRT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b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x31' + chr(52) + chr(0b11111 + 0o27), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b110001 + 0o76) + chr(0b110010) + chr(55), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(50) + '\x32' + chr(0b101101 + 0o7), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1001011 + 0o44) + chr(1556 - 1506) + '\x37' + '\066', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(2510 - 2457) + chr(0b110110), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(2365 - 2316) + '\x37' + chr(684 - 636), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x37' + chr(0b100101 + 0o20), 28668 - 28660), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b11101 + 0o31) + chr(55), 0o10), nzTpIcepk0o8(chr(0b100001 + 0o17) + '\157' + '\062' + '\064', 48640 - 48632), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\067' + chr(48), 0b1000), nzTpIcepk0o8(chr(48) + chr(12195 - 12084) + chr(51) + chr(0b110010) + chr(48), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b0 + 0o63) + '\065', ord("\x08")), nzTpIcepk0o8(chr(0b0 + 0o60) + '\157' + chr(0b101011 + 0o13) + '\061', 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(293 - 242) + chr(0b110011), 14281 - 14273), nzTpIcepk0o8(chr(0b11001 + 0o27) + chr(0b1001110 + 0o41) + chr(0b110001) + chr(52) + chr(2647 - 2594), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110001) + '\x33' + '\063', ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + '\062' + chr(0b110111) + chr(401 - 353), 0b1000), nzTpIcepk0o8(chr(0b101011 + 0o5) + '\x6f' + chr(0b110111), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\062' + chr(52) + chr(53), 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(52), 0b1000), nzTpIcepk0o8(chr(1666 - 1618) + chr(0b1100111 + 0o10) + chr(54) + '\x33', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b110001 + 0o76) + chr(2367 - 2317) + chr(508 - 459) + chr(49), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + '\061' + chr(1229 - 1175) + '\x31', 32761 - 32753), nzTpIcepk0o8(chr(0b11100 + 0o24) + '\157' + '\063' + chr(504 - 454) + chr(2480 - 2425), 0o10), nzTpIcepk0o8(chr(0b101000 + 0o10) + '\x6f' + '\x31' + chr(48) + chr(0b100000 + 0o25), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(10740 - 10629) + '\062' + '\x34', 8), nzTpIcepk0o8(chr(0b101100 + 0o4) + chr(0b1101111) + '\x33' + chr(0b101 + 0o56) + '\x32', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(1709 - 1660) + '\x36' + chr(0b110001), 8), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(49) + chr(2607 - 2553) + chr(0b110110), 0o10), nzTpIcepk0o8(chr(0b110 + 0o52) + '\x6f' + chr(0b110010) + chr(53) + chr(0b110111), 0b1000), nzTpIcepk0o8('\060' + chr(11250 - 11139) + chr(0b0 + 0o62) + '\063' + '\x33', ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(50) + chr(1000 - 945) + chr(50), 0b1000), nzTpIcepk0o8(chr(2223 - 2175) + '\x6f' + '\x33' + chr(1478 - 1428) + chr(50), 5465 - 5457), nzTpIcepk0o8(chr(0b1 + 0o57) + '\157' + chr(0b1111 + 0o42) + '\x35' + '\064', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b1 + 0o62) + chr(2671 - 2616) + chr(883 - 829), 7031 - 7023), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(192 - 142) + '\x31' + chr(0b100100 + 0o20), 11731 - 11723), nzTpIcepk0o8(chr(0b10101 + 0o33) + chr(111) + chr(0b110010) + chr(55), 8), nzTpIcepk0o8(chr(1394 - 1346) + chr(111) + chr(1910 - 1860) + '\x35' + chr(51), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b11000 + 0o31) + '\x30' + chr(916 - 862), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(52) + '\x37', 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + chr(0b100101 + 0o112) + chr(0b110101) + chr(0b100100 + 0o14), 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'H'), '\x64' + chr(9193 - 9092) + chr(99) + '\x6f' + '\144' + chr(101))('\165' + '\x74' + chr(0b1100110) + chr(1514 - 1469) + '\x38') + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def BXHXH_QeD6rL(**q5n0sHDDTy90): if ftfygxgFas5X(roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\x07}\xdd\xfay\x01ezVY\xe3\x7f'), '\x64' + chr(0b101001 + 0o74) + '\x63' + chr(0b1101111) + '\x64' + '\145')(chr(0b1110101) + chr(0b1110100) + chr(0b1100110) + chr(155 - 110) + chr(56)))) > nzTpIcepk0o8(chr(0b110000) + '\157' + chr(48), ord("\x08")): if roI3spqORKae(bpyfpu4kTbwL.argv[nzTpIcepk0o8('\x30' + chr(111) + chr(1883 - 1835), 8)], roI3spqORKae(ES5oEprVxulp(b'/.\xf2\xf5g;|{uM\x9ao'), chr(2990 - 2890) + chr(0b1100101) + chr(0b1100011) + chr(0b1101111) + chr(0b100001 + 0o103) + chr(0b1100101))(chr(0b1101101 + 0o10) + chr(116) + chr(0b1111 + 0o127) + chr(0b1001 + 0o44) + '\x38'))(roI3spqORKae(ES5oEprVxulp(b'\x02o\xb9\xdc[\x11QS9Y\xa0m'), '\x64' + chr(101) + chr(0b100011 + 0o100) + chr(4820 - 4709) + '\144' + '\x65')(chr(0b1110101) + chr(0b1001000 + 0o54) + chr(5802 - 5700) + chr(0b101011 + 0o2) + chr(56))): roI3spqORKae(Lj4gcNafqrcl, roI3spqORKae(ES5oEprVxulp(b'\x15]\xc5\xe8q0Ld-^\xb7g'), chr(100) + '\x65' + chr(0b1100011) + chr(0b1101111) + chr(0b1100100) + '\145')(chr(117) + chr(10029 - 9913) + chr(4780 - 4678) + chr(951 - 906) + '\070'))(roI3spqORKae(ES5oEprVxulp(b'1v\xe6\xd0G\x16Z\r4\\\xa80Sn\x0c7\xdc*\xc4tC\xa9\x19\xb664\xb8\x14\x13\xc1\xbb\xc8\xb7\x1c\x92\xedt\xce"\x07\x11~\xe0\xd6\x0eZYO4Z\xa5t]\x7fEv\x95d\xd7aR\xfd\x14\xfa$d\xaaSX\x8f\xcb\xd6\xb7\r\x8d\xe97\xde6C\x07c\xf1\x9eW\x17HE4K\xb3oXk\x11(\x96'), chr(100) + chr(101) + chr(0b1001110 + 0o25) + '\x6f' + '\144' + chr(7477 - 7376))('\165' + chr(116) + chr(3847 - 3745) + '\055' + chr(1016 - 960))) elif roI3spqORKae(bpyfpu4kTbwL.argv[nzTpIcepk0o8('\060' + chr(0b11111 + 0o120) + '\060', 8)], roI3spqORKae(ES5oEprVxulp(b'/.\xf2\xf5g;|{uM\x9ao'), chr(0b1100100) + chr(0b1100101) + chr(0b1100011) + chr(0b11101 + 0o122) + chr(1417 - 1317) + '\145')(chr(0b1110101) + chr(4497 - 4381) + '\146' + '\055' + chr(0b111000)))(roI3spqORKae(ES5oEprVxulp(b'\x02o\xb9\xdc[\x11QS9Y\xa0m]~\x11'), '\x64' + '\145' + chr(0b111101 + 0o46) + chr(8140 - 8029) + chr(100) + '\145')(chr(7097 - 6980) + chr(913 - 797) + chr(0b1100110) + '\x2d' + chr(249 - 193))): roI3spqORKae(Lj4gcNafqrcl, roI3spqORKae(ES5oEprVxulp(b'\x15]\xc5\xe8q0Ld-^\xb7g'), chr(1335 - 1235) + chr(101) + '\x63' + chr(3166 - 3055) + chr(100) + '\x65')(chr(0b1110101) + chr(0b1110100) + chr(0b1111 + 0o127) + chr(0b10011 + 0o32) + chr(0b111000)))(roI3spqORKae(ES5oEprVxulp(b"1v\xe6\xd0G\x16Z\r4\\\xa80Sn\x0c7\xdc*\xc4tC\xe5\x14\xa3e|\xbb\x02V\xcd\xfe\xdf\xbcL\x8c\xe9g\xc7'D\x03s\xb4\xc9G\x0cU\x176\\\xa8=Sn\x0c7\xdc%\x8b$c\xe5\x14\xb66q\xfa\x04\x06\xcb\xfa\xce\xb7L\x87\xe3b\xd9fT\x05e\xfd\xceZ\x0b\x13"), chr(8438 - 8338) + chr(4122 - 4021) + chr(99) + chr(111) + '\144' + chr(0b1010010 + 0o23))(chr(117) + chr(0b1110100) + chr(0b1011100 + 0o12) + chr(0b101101) + '\x38')) ZurjcUL1ssA8(nzTpIcepk0o8(chr(933 - 885) + '\157' + chr(0b10011 + 0o35), 8))
dnanexus/dx-toolkit
src/python/dxpy/bindings/dxapp.py
DXApp.set_id
def set_id(self, dxid=None, name=None, alias=None): ''' :param dxid: App ID :type dxid: string :param name: App name :type name: string :param alias: App version or tag :type alias: string :raises: :exc:`~dxpy.exceptions.DXError` if *dxid* and some other input are both given or if neither *dxid* nor *name* are given Discards the currently stored ID and associates the handler with the requested parameters. Note that if *dxid* is given, the other fields should not be given, and if *name* is given, *alias* has default value "default". ''' self._dxid = None self._name = None self._alias = None if dxid is not None: if name is not None or alias is not None: raise DXError("Did not expect name or alias to be given if dxid is given") verify_string_dxid(dxid, self._class) self._dxid = dxid elif name is not None: self._name = name if not isinstance(name, basestring): raise DXError("App name needs to be a string: %r" % (name,)) if alias is not None: if not isinstance(alias, basestring): raise DXError("App alias needs to be a string: %r" % (alias,)) self._alias = alias else: self._alias = 'default'
python
def set_id(self, dxid=None, name=None, alias=None): ''' :param dxid: App ID :type dxid: string :param name: App name :type name: string :param alias: App version or tag :type alias: string :raises: :exc:`~dxpy.exceptions.DXError` if *dxid* and some other input are both given or if neither *dxid* nor *name* are given Discards the currently stored ID and associates the handler with the requested parameters. Note that if *dxid* is given, the other fields should not be given, and if *name* is given, *alias* has default value "default". ''' self._dxid = None self._name = None self._alias = None if dxid is not None: if name is not None or alias is not None: raise DXError("Did not expect name or alias to be given if dxid is given") verify_string_dxid(dxid, self._class) self._dxid = dxid elif name is not None: self._name = name if not isinstance(name, basestring): raise DXError("App name needs to be a string: %r" % (name,)) if alias is not None: if not isinstance(alias, basestring): raise DXError("App alias needs to be a string: %r" % (alias,)) self._alias = alias else: self._alias = 'default'
[ "def", "set_id", "(", "self", ",", "dxid", "=", "None", ",", "name", "=", "None", ",", "alias", "=", "None", ")", ":", "self", ".", "_dxid", "=", "None", "self", ".", "_name", "=", "None", "self", ".", "_alias", "=", "None", "if", "dxid", "is", "not", "None", ":", "if", "name", "is", "not", "None", "or", "alias", "is", "not", "None", ":", "raise", "DXError", "(", "\"Did not expect name or alias to be given if dxid is given\"", ")", "verify_string_dxid", "(", "dxid", ",", "self", ".", "_class", ")", "self", ".", "_dxid", "=", "dxid", "elif", "name", "is", "not", "None", ":", "self", ".", "_name", "=", "name", "if", "not", "isinstance", "(", "name", ",", "basestring", ")", ":", "raise", "DXError", "(", "\"App name needs to be a string: %r\"", "%", "(", "name", ",", ")", ")", "if", "alias", "is", "not", "None", ":", "if", "not", "isinstance", "(", "alias", ",", "basestring", ")", ":", "raise", "DXError", "(", "\"App alias needs to be a string: %r\"", "%", "(", "alias", ",", ")", ")", "self", ".", "_alias", "=", "alias", "else", ":", "self", ".", "_alias", "=", "'default'" ]
:param dxid: App ID :type dxid: string :param name: App name :type name: string :param alias: App version or tag :type alias: string :raises: :exc:`~dxpy.exceptions.DXError` if *dxid* and some other input are both given or if neither *dxid* nor *name* are given Discards the currently stored ID and associates the handler with the requested parameters. Note that if *dxid* is given, the other fields should not be given, and if *name* is given, *alias* has default value "default".
[ ":", "param", "dxid", ":", "App", "ID", ":", "type", "dxid", ":", "string", ":", "param", "name", ":", "App", "name", ":", "type", "name", ":", "string", ":", "param", "alias", ":", "App", "version", "or", "tag", ":", "type", "alias", ":", "string", ":", "raises", ":", ":", "exc", ":", "~dxpy", ".", "exceptions", ".", "DXError", "if", "*", "dxid", "*", "and", "some", "other", "input", "are", "both", "given", "or", "if", "neither", "*", "dxid", "*", "nor", "*", "name", "*", "are", "given" ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxapp.py#L84-L117
train
Sets the ID of the currently stored handler.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsed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M0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(1241 - 1193) + chr(0b11001 + 0o126) + chr(49) + '\x36' + '\x35', ord("\x08")), nzTpIcepk0o8('\060' + chr(5998 - 5887) + chr(49) + chr(0b110110) + chr(1589 - 1539), 0b1000), nzTpIcepk0o8(chr(2179 - 2131) + chr(111) + '\062' + chr(0b110110), 11548 - 11540), nzTpIcepk0o8(chr(350 - 302) + '\157' + chr(187 - 138) + chr(0b110010) + '\063', 0o10), nzTpIcepk0o8(chr(2209 - 2161) + chr(111) + '\063' + chr(54) + chr(0b110000), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + '\063' + chr(867 - 817) + chr(48), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1011111 + 0o20) + chr(1100 - 1050) + chr(0b10011 + 0o36) + '\066', 0o10), nzTpIcepk0o8(chr(1368 - 1320) + '\157' + '\063' + chr(50), ord("\x08")), nzTpIcepk0o8(chr(2231 - 2183) + chr(111) + '\063', ord("\x08")), nzTpIcepk0o8(chr(1002 - 954) + '\157' + '\x32' + chr(0b10110 + 0o40) + chr(0b110010), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(49) + chr(50) + '\x31', 0b1000), nzTpIcepk0o8(chr(0b11011 + 0o25) + '\157' + chr(51) + '\063' + chr(1812 - 1758), 20147 - 20139), nzTpIcepk0o8(chr(0b110000) + chr(0b1100100 + 0o13) + chr(0b110010) + '\x34' + '\060', 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(0b100000 + 0o21) + chr(50) + '\x32', ord("\x08")), nzTpIcepk0o8(chr(0b11101 + 0o23) + chr(0b1101000 + 0o7) + chr(2218 - 2167) + chr(0b110111) + chr(48), 0o10), nzTpIcepk0o8(chr(0b10111 + 0o31) + '\157' + chr(51) + '\x37' + chr(0b110100), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + '\062' + chr(0b110010) + chr(50), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110011) + '\x34' + chr(50), 34494 - 34486), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110010) + chr(0b10 + 0o56) + '\067', 40941 - 40933), nzTpIcepk0o8(chr(1428 - 1380) + chr(11149 - 11038) + '\x33' + chr(0b110100) + chr(1234 - 1184), 8), nzTpIcepk0o8(chr(0b101110 + 0o2) + chr(10493 - 10382) + chr(2310 - 2260) + '\061' + chr(2186 - 2137), 0b1000), nzTpIcepk0o8('\060' + chr(11994 - 11883) + '\x32' + '\063' + '\063', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(1913 - 1863) + chr(0b110111) + chr(2222 - 2167), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x32' + chr(423 - 371) + chr(0b10000 + 0o43), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(1443 - 1332) + chr(0b110011) + chr(0b110110) + '\066', 0o10), nzTpIcepk0o8(chr(0b111 + 0o51) + '\157' + chr(1867 - 1818) + chr(574 - 526) + chr(52), 42978 - 42970), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(49) + chr(48) + '\x32', ord("\x08")), nzTpIcepk0o8(chr(841 - 793) + chr(0b1101111) + chr(51) + chr(0b110111) + chr(0b100010 + 0o24), 0o10), nzTpIcepk0o8(chr(1860 - 1812) + chr(0b100011 + 0o114) + '\061' + chr(50) + chr(0b101 + 0o53), 60336 - 60328), nzTpIcepk0o8(chr(48) + '\x6f' + '\x35' + chr(48), 39760 - 39752), nzTpIcepk0o8(chr(0b100000 + 0o20) + chr(111) + chr(523 - 473) + chr(52) + chr(55), 35329 - 35321), nzTpIcepk0o8('\x30' + '\157' + '\063' + chr(0b110 + 0o60) + chr(0b10101 + 0o40), ord("\x08")), nzTpIcepk0o8(chr(0b100111 + 0o11) + '\157' + '\062' + chr(0b110000) + '\060', 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(51) + '\x37' + chr(0b110100), 8), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(55) + chr(1916 - 1863), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(51) + '\x32' + '\062', 0b1000), nzTpIcepk0o8(chr(207 - 159) + chr(5277 - 5166) + chr(1909 - 1854) + chr(2535 - 2483), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110001) + chr(0b110011) + '\062', 9527 - 9519), nzTpIcepk0o8(chr(0b101010 + 0o6) + '\157' + '\061' + '\x33' + chr(1502 - 1447), ord("\x08")), nzTpIcepk0o8(chr(0b100011 + 0o15) + chr(5527 - 5416) + chr(0b1000 + 0o53) + chr(55) + chr(0b110100), 8)][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + chr(6567 - 6456) + chr(2444 - 2391) + chr(0b110000), 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'['), chr(2270 - 2170) + chr(0b1100101) + chr(0b10101 + 0o116) + '\157' + chr(0b1100100) + chr(0b101111 + 0o66))(chr(12715 - 12598) + chr(6962 - 6846) + '\x66' + chr(0b100110 + 0o7) + '\070') + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def VzfLvZsy2J6D(hXMPsSrOQzbh, LaRgxWJnPLsD=None, SLVB2BPA_mIe=None, zbn4GgOuHNch=None): hXMPsSrOQzbh.d6KUnRQv6735 = None hXMPsSrOQzbh.uzEfnKVxHTp5 = None hXMPsSrOQzbh.aDMivsxYxk0k = None if LaRgxWJnPLsD is not None: if SLVB2BPA_mIe is not None or zbn4GgOuHNch is not None: raise JPU16lJ2koBU(roI3spqORKae(ES5oEprVxulp(b'1\x1brs\x9e\xbf\xfa:f\xca!\xbb\xc3&\xd8\x92\xf3\x8f\xe2\xc2\xe6\xe9\x9f\xc2\x9a-#\x8dp\\\xc8\xd5\xe2\x99\x1d\xb5U,:\x92U\x1bps\x94\xa8\xe7~#\xdb"\xfe\xc7;\x8e\x99\xfc'), '\x64' + chr(101) + chr(4980 - 4881) + '\x6f' + chr(0b1000001 + 0o43) + chr(101))(chr(0b111011 + 0o72) + chr(0b100101 + 0o117) + chr(0b1100110) + chr(45) + '\070')) P4Jrngvu_Rir(LaRgxWJnPLsD, roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x040B\x06\xba\x9d\xe5NK\xe7i\xb1'), chr(0b1100100) + chr(0b1011100 + 0o11) + chr(0b1100011) + chr(0b1101111) + '\144' + chr(101))('\x75' + '\164' + chr(6970 - 6868) + '\055' + chr(0b111000)))) hXMPsSrOQzbh.d6KUnRQv6735 = LaRgxWJnPLsD elif SLVB2BPA_mIe is not None: hXMPsSrOQzbh.uzEfnKVxHTp5 = SLVB2BPA_mIe if not suIjIS24Zkqw(SLVB2BPA_mIe, JaQstSroDWOP): raise JPU16lJ2koBU(roI3spqORKae(ES5oEprVxulp(b'4\x02fs\x9e\xb1\xe3\x7f#\xdc4\xbb\xc4!\xd8\x88\xfd\xc2\xe5\x87\xa9\xfa\x9f\xd0\x826+\x907\x12\x87\xd0\xf2'), chr(100) + chr(101) + '\143' + '\157' + chr(100) + '\145')('\165' + chr(1607 - 1491) + chr(7511 - 7409) + chr(894 - 849) + '\070') % (SLVB2BPA_mIe,)) if zbn4GgOuHNch is not None: if not suIjIS24Zkqw(zbn4GgOuHNch, JaQstSroDWOP): raise JPU16lJ2koBU(roI3spqORKae(ES5oEprVxulp(b'4\x02fs\x91\xbc\xe7{p\x92?\xbb\xc56\x8b\xdc\xe6\x8d\xa7\x80\xec\xbb\xde\x83\x8500\x97>O\x9d\xd5\xa5\x8e'), chr(6522 - 6422) + chr(2238 - 2137) + chr(99) + chr(0b1101111) + '\x64' + chr(0b1100101))('\x75' + chr(116) + '\x66' + '\x2d' + '\x38') % (zbn4GgOuHNch,)) hXMPsSrOQzbh.aDMivsxYxk0k = zbn4GgOuHNch else: hXMPsSrOQzbh.aDMivsxYxk0k = roI3spqORKae(ES5oEprVxulp(b'\x11\x17p2\x85\xbc\xfa'), chr(0b1001000 + 0o34) + '\x65' + chr(0b1100011) + '\x6f' + chr(0b1100100) + chr(0b1100101))(chr(117) + chr(8038 - 7922) + chr(0b1100110) + chr(358 - 313) + chr(56))
dnanexus/dx-toolkit
src/python/dxpy/bindings/dxapp.py
DXApp.get_id
def get_id(self): ''' :returns: Object ID of associated app :rtype: string Returns the object ID of the app that the handler is currently associated with. ''' if self._dxid is not None: return self._dxid else: return 'app-' + self._name + '/' + self._alias
python
def get_id(self): ''' :returns: Object ID of associated app :rtype: string Returns the object ID of the app that the handler is currently associated with. ''' if self._dxid is not None: return self._dxid else: return 'app-' + self._name + '/' + self._alias
[ "def", "get_id", "(", "self", ")", ":", "if", "self", ".", "_dxid", "is", "not", "None", ":", "return", "self", ".", "_dxid", "else", ":", "return", "'app-'", "+", "self", ".", "_name", "+", "'/'", "+", "self", ".", "_alias" ]
:returns: Object ID of associated app :rtype: string Returns the object ID of the app that the handler is currently associated with.
[ ":", "returns", ":", "Object", "ID", "of", "associated", "app", ":", "rtype", ":", "string" ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/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,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x32' + chr(1155 - 1104) + '\x30', ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(2001 - 1951) + chr(0b110111), 0b1000), nzTpIcepk0o8('\060' + chr(2764 - 2653) + '\062' + '\060' + chr(116 - 61), 0b1000), nzTpIcepk0o8(chr(0b1010 + 0o46) + chr(0b1101111) + chr(0b110010) + '\x36' + chr(0b110010), 0o10), nzTpIcepk0o8(chr(0b101010 + 0o6) + chr(11358 - 11247) + chr(0b10000 + 0o44) + chr(0b110011), 26460 - 26452), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(1369 - 1320) + chr(0b10010 + 0o45) + chr(403 - 349), 0o10), nzTpIcepk0o8(chr(0b100101 + 0o13) + chr(0b1101111) + chr(309 - 260) + '\x34' + chr(0b110100), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x31' + '\x32' + chr(48), 0b1000), nzTpIcepk0o8(chr(0b11111 + 0o21) + chr(111) + chr(0b110010) + chr(0b110100) + '\x30', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x33' + '\x34' + '\061', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1010101 + 0o32) + chr(0b110010) + '\065' + '\063', 0b1000), nzTpIcepk0o8('\060' + chr(0b101 + 0o152) + chr(982 - 931) + chr(0b110101) + chr(55), ord("\x08")), nzTpIcepk0o8(chr(684 - 636) + chr(0b1011100 + 0o23) + '\061' + chr(0b110110) + chr(48), 0b1000), nzTpIcepk0o8(chr(632 - 584) + chr(0b1001101 + 0o42) + chr(2006 - 1955) + chr(0b110000) + '\062', 0b1000), nzTpIcepk0o8('\x30' + chr(4941 - 4830) + '\063' + chr(0b110101) + '\061', 0b1000), nzTpIcepk0o8(chr(48) + chr(1487 - 1376) + chr(49) + chr(53), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(0b10010 + 0o37), 0o10), nzTpIcepk0o8(chr(1208 - 1160) + chr(0b1101111) + chr(2317 - 2264) + chr(54), 0o10), nzTpIcepk0o8(chr(0b101110 + 0o2) + '\157' + chr(84 - 31) + chr(2450 - 2397), 53179 - 53171), nzTpIcepk0o8('\060' + chr(8342 - 8231) + '\x32' + '\x30' + '\x36', ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(0b101 + 0o55) + chr(55) + '\x32', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b100000 + 0o22) + chr(0b101001 + 0o10) + chr(0b10001 + 0o42), 62744 - 62736), nzTpIcepk0o8('\x30' + '\157' + '\063' + '\x37', ord("\x08")), nzTpIcepk0o8(chr(0b100001 + 0o17) + chr(0b1101111) + '\x33' + chr(51), 54614 - 54606), nzTpIcepk0o8('\060' + '\x6f' + chr(649 - 600) + chr(0b110100) + chr(0b10000 + 0o40), 53078 - 53070), nzTpIcepk0o8(chr(48) + chr(111) + '\x35' + chr(0b110110), 8), nzTpIcepk0o8(chr(48) + chr(0b101111 + 0o100) + chr(0b110010) + chr(0b110001) + '\067', 0b1000), nzTpIcepk0o8(chr(0b0 + 0o60) + '\x6f' + chr(0b101110 + 0o5) + chr(402 - 351) + '\x32', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x31', 8), nzTpIcepk0o8(chr(48) + chr(7343 - 7232) + chr(0b11001 + 0o31) + chr(0b110000) + chr(50), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b11 + 0o154) + '\062' + chr(738 - 690) + '\067', 8), nzTpIcepk0o8('\060' + chr(6272 - 6161) + chr(0b1 + 0o61) + chr(52) + chr(0b1001 + 0o56), ord("\x08")), nzTpIcepk0o8(chr(0b10111 + 0o31) + '\157' + '\x33' + chr(50), ord("\x08")), nzTpIcepk0o8(chr(2076 - 2028) + chr(0b1101111) + '\062' + '\060' + '\x32', 8), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b1101 + 0o50) + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1100000 + 0o17) + '\062' + chr(0b0 + 0o61) + chr(0b110010), 0o10), nzTpIcepk0o8('\060' + chr(0b1001111 + 0o40) + '\x32' + chr(0b110010), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(534 - 483) + chr(49) + chr(0b101110 + 0o3), 0o10), nzTpIcepk0o8(chr(0b10 + 0o56) + '\157' + chr(0b110011) + chr(0b110100) + '\061', 8), nzTpIcepk0o8(chr(0b1 + 0o57) + '\157' + chr(50) + '\x35' + chr(53), 31527 - 31519)][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + chr(0b1010010 + 0o35) + '\065' + chr(0b100111 + 0o11), 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xb6'), chr(0b1100100) + chr(0b10110 + 0o117) + '\x63' + chr(111) + chr(5795 - 5695) + chr(0b100100 + 0o101))(chr(9496 - 9379) + chr(0b11110 + 0o126) + '\x66' + '\x2d' + '\070') + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def nkTncJcFPliW(hXMPsSrOQzbh): if roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xfc!\xcc\xe7M,5&\x96\xd6\x98\xda'), '\x64' + chr(0b1100101) + '\x63' + chr(10543 - 10432) + '\144' + chr(101))(chr(117) + chr(5626 - 5510) + chr(0b1010110 + 0o20) + '\x2d' + chr(56))) is not None: return roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xfc!\xcc\xe7M,5&\x96\xd6\x98\xda'), chr(3089 - 2989) + '\145' + '\x63' + '\x6f' + '\x64' + chr(6716 - 6615))('\x75' + chr(116) + chr(0b1100110) + chr(674 - 629) + chr(0b111000))) else: return roI3spqORKae(ES5oEprVxulp(b'\xf9g\xf7\x9f'), chr(0b1100100) + chr(0b1100101) + chr(0b111001 + 0o52) + '\x6f' + chr(7375 - 7275) + chr(4892 - 4791))(chr(9963 - 9846) + chr(7490 - 7374) + '\x66' + '\055' + '\070') + roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xedm\xc2\xd4M52(\xe8\xb5\xdb\xda'), chr(100) + chr(5415 - 5314) + '\x63' + chr(0b1011011 + 0o24) + chr(0b1100100) + chr(0b100 + 0o141))(chr(0b1000010 + 0o63) + '\x74' + '\146' + chr(45) + '\x38')) + roI3spqORKae(ES5oEprVxulp(b'\xb7'), chr(100) + chr(101) + chr(0b1100011) + chr(0b1100101 + 0o12) + chr(5400 - 5300) + chr(0b1100101))(chr(10880 - 10763) + chr(0b101110 + 0o106) + chr(0b1011 + 0o133) + chr(45) + '\070') + roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xf9S\xca\xdbU\r\x1c\t\xd8\x8a\x9b\x84'), '\x64' + chr(101) + chr(0b1010101 + 0o16) + chr(111) + '\x64' + chr(0b1100011 + 0o2))(chr(0b1110101) + '\164' + chr(0b10011 + 0o123) + '\055' + '\x38'))
dnanexus/dx-toolkit
src/python/dxpy/bindings/dxapp.py
DXApp.new
def new(self, **kwargs): ''' :param initializeFrom: ID of an existing app object from which to initialize the app :type initializeFrom: string :param applet: ID of the applet that the app will be created from :type applet: string :param name: Name of the app (inherits from *initializeFrom* if possible) :type name: string :param title: Title or brand name of the app (optional) :type title: string :param summary: A short description of the app (optional) :type summary: string :param description: An extended description of the app (optional) :type description: string :param details: Arbitrary JSON to be associated with the app (optional) :type details: dict or list :param version: Version number :type version: string :param bill_to: ID of the user or organization who will own the app and be billed for its space usage (optional if an app with this name already exists) :type bill_to: string :param access: Access specification (optional) :type access: dict :param resources: Specifies what is to be put into the app's resources container. Must be a string containing a project ID, or a list containing object IDs. (optional) :type resources: string or list .. note:: It is highly recommended that the higher-level module :mod:`dxpy.app_builder` or (preferably) its frontend `dx build --create-app <https://wiki.dnanexus.com/Command-Line-Client/Index-of-dx-Commands#build>`_ be used instead for app creation. Creates an app with the given parameters by using the specified applet or app as a base and overriding its attributes. See the API documentation for the `/app/new <https://wiki.dnanexus.com/API-Specification-v1.0.0/Apps#API-method%3A-%2Fapp%2Fnew>`_ method for more info. Exactly one of *initializeFrom* and *applet* must be provided. The app is only available to its developers until :meth:`publish()` is called, and is not run until :meth:`run()` is called. ''' #TODO: add support for regionalOptions (and deprecate top-level applet and resources) dx_hash = {} if 'applet' not in kwargs and 'initializeFrom' not in kwargs: raise DXError("%s: One of the keyword arguments %s and %s is required" % (self.__class__.__name__, 'applet', 'initializeFrom')) for field in ['version']: if field not in kwargs: raise DXError("%s: Keyword argument %s is required" % (self.__class__.__name__, field)) dx_hash[field] = kwargs[field] del kwargs[field] for field in 'initializeFrom', 'applet', 'name', 'title', 'summary', 'description', 'billing', 'access', 'resources': if field in kwargs: dx_hash[field] = kwargs[field] del kwargs[field] if "bill_to" in kwargs: dx_hash['billTo'] = kwargs['bill_to'] del kwargs["bill_to"] resp = dxpy.api.app_new(dx_hash, **kwargs) self.set_id(dxid=resp["id"])
python
def new(self, **kwargs): ''' :param initializeFrom: ID of an existing app object from which to initialize the app :type initializeFrom: string :param applet: ID of the applet that the app will be created from :type applet: string :param name: Name of the app (inherits from *initializeFrom* if possible) :type name: string :param title: Title or brand name of the app (optional) :type title: string :param summary: A short description of the app (optional) :type summary: string :param description: An extended description of the app (optional) :type description: string :param details: Arbitrary JSON to be associated with the app (optional) :type details: dict or list :param version: Version number :type version: string :param bill_to: ID of the user or organization who will own the app and be billed for its space usage (optional if an app with this name already exists) :type bill_to: string :param access: Access specification (optional) :type access: dict :param resources: Specifies what is to be put into the app's resources container. Must be a string containing a project ID, or a list containing object IDs. (optional) :type resources: string or list .. note:: It is highly recommended that the higher-level module :mod:`dxpy.app_builder` or (preferably) its frontend `dx build --create-app <https://wiki.dnanexus.com/Command-Line-Client/Index-of-dx-Commands#build>`_ be used instead for app creation. Creates an app with the given parameters by using the specified applet or app as a base and overriding its attributes. See the API documentation for the `/app/new <https://wiki.dnanexus.com/API-Specification-v1.0.0/Apps#API-method%3A-%2Fapp%2Fnew>`_ method for more info. Exactly one of *initializeFrom* and *applet* must be provided. The app is only available to its developers until :meth:`publish()` is called, and is not run until :meth:`run()` is called. ''' #TODO: add support for regionalOptions (and deprecate top-level applet and resources) dx_hash = {} if 'applet' not in kwargs and 'initializeFrom' not in kwargs: raise DXError("%s: One of the keyword arguments %s and %s is required" % (self.__class__.__name__, 'applet', 'initializeFrom')) for field in ['version']: if field not in kwargs: raise DXError("%s: Keyword argument %s is required" % (self.__class__.__name__, field)) dx_hash[field] = kwargs[field] del kwargs[field] for field in 'initializeFrom', 'applet', 'name', 'title', 'summary', 'description', 'billing', 'access', 'resources': if field in kwargs: dx_hash[field] = kwargs[field] del kwargs[field] if "bill_to" in kwargs: dx_hash['billTo'] = kwargs['bill_to'] del kwargs["bill_to"] resp = dxpy.api.app_new(dx_hash, **kwargs) self.set_id(dxid=resp["id"])
[ "def", "new", "(", "self", ",", "*", "*", "kwargs", ")", ":", "#TODO: add support for regionalOptions (and deprecate top-level applet and resources)", "dx_hash", "=", "{", "}", "if", "'applet'", "not", "in", "kwargs", "and", "'initializeFrom'", "not", "in", "kwargs", ":", "raise", "DXError", "(", "\"%s: One of the keyword arguments %s and %s is required\"", "%", "(", "self", ".", "__class__", ".", "__name__", ",", "'applet'", ",", "'initializeFrom'", ")", ")", "for", "field", "in", "[", "'version'", "]", ":", "if", "field", "not", "in", "kwargs", ":", "raise", "DXError", "(", "\"%s: Keyword argument %s is required\"", "%", "(", "self", ".", "__class__", ".", "__name__", ",", "field", ")", ")", "dx_hash", "[", "field", "]", "=", "kwargs", "[", "field", "]", "del", "kwargs", "[", "field", "]", "for", "field", "in", "'initializeFrom'", ",", "'applet'", ",", "'name'", ",", "'title'", ",", "'summary'", ",", "'description'", ",", "'billing'", ",", "'access'", ",", "'resources'", ":", "if", "field", "in", "kwargs", ":", "dx_hash", "[", "field", "]", "=", "kwargs", "[", "field", "]", "del", "kwargs", "[", "field", "]", "if", "\"bill_to\"", "in", "kwargs", ":", "dx_hash", "[", "'billTo'", "]", "=", "kwargs", "[", "'bill_to'", "]", "del", "kwargs", "[", "\"bill_to\"", "]", "resp", "=", "dxpy", ".", "api", ".", "app_new", "(", "dx_hash", ",", "*", "*", "kwargs", ")", "self", ".", "set_id", "(", "dxid", "=", "resp", "[", "\"id\"", "]", ")" ]
:param initializeFrom: ID of an existing app object from which to initialize the app :type initializeFrom: string :param applet: ID of the applet that the app will be created from :type applet: string :param name: Name of the app (inherits from *initializeFrom* if possible) :type name: string :param title: Title or brand name of the app (optional) :type title: string :param summary: A short description of the app (optional) :type summary: string :param description: An extended description of the app (optional) :type description: string :param details: Arbitrary JSON to be associated with the app (optional) :type details: dict or list :param version: Version number :type version: string :param bill_to: ID of the user or organization who will own the app and be billed for its space usage (optional if an app with this name already exists) :type bill_to: string :param access: Access specification (optional) :type access: dict :param resources: Specifies what is to be put into the app's resources container. Must be a string containing a project ID, or a list containing object IDs. (optional) :type resources: string or list .. note:: It is highly recommended that the higher-level module :mod:`dxpy.app_builder` or (preferably) its frontend `dx build --create-app <https://wiki.dnanexus.com/Command-Line-Client/Index-of-dx-Commands#build>`_ be used instead for app creation. Creates an app with the given parameters by using the specified applet or app as a base and overriding its attributes. See the API documentation for the `/app/new <https://wiki.dnanexus.com/API-Specification-v1.0.0/Apps#API-method%3A-%2Fapp%2Fnew>`_ method for more info. Exactly one of *initializeFrom* and *applet* must be provided. The app is only available to its developers until :meth:`publish()` is called, and is not run until :meth:`run()` is called.
[ ":", "param", "initializeFrom", ":", "ID", "of", "an", "existing", "app", "object", "from", "which", "to", "initialize", "the", "app", ":", "type", "initializeFrom", ":", "string", ":", "param", "applet", ":", "ID", "of", "the", "applet", "that", "the", "app", "will", "be", "created", "from", ":", "type", "applet", ":", "string", ":", "param", "name", ":", "Name", "of", "the", "app", "(", "inherits", "from", "*", "initializeFrom", "*", "if", "possible", ")", ":", "type", "name", ":", "string", ":", "param", "title", ":", "Title", "or", "brand", "name", "of", "the", "app", "(", "optional", ")", ":", "type", "title", ":", "string", ":", "param", "summary", ":", "A", "short", "description", "of", "the", "app", "(", "optional", ")", ":", "type", "summary", ":", "string", ":", "param", "description", ":", "An", "extended", "description", "of", "the", "app", "(", "optional", ")", ":", "type", "description", ":", "string", ":", "param", "details", ":", "Arbitrary", "JSON", "to", "be", "associated", "with", "the", "app", "(", "optional", ")", ":", "type", "details", ":", "dict", "or", "list", ":", "param", "version", ":", "Version", "number", ":", "type", "version", ":", "string", ":", "param", "bill_to", ":", "ID", "of", "the", "user", "or", "organization", "who", "will", "own", "the", "app", "and", "be", "billed", "for", "its", "space", "usage", "(", "optional", "if", "an", "app", "with", "this", "name", "already", "exists", ")", ":", "type", "bill_to", ":", "string", ":", "param", "access", ":", "Access", "specification", "(", "optional", ")", ":", "type", "access", ":", "dict", ":", "param", "resources", ":", "Specifies", "what", "is", "to", "be", "put", "into", "the", "app", "s", "resources", "container", ".", "Must", "be", "a", "string", "containing", "a", "project", "ID", "or", "a", "list", "containing", "object", "IDs", ".", "(", "optional", ")", ":", "type", "resources", ":", "string", "or", "list" ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxapp.py#L132-L196
train
Creates a new app with the given parameters.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCc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Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(522 - 474) + chr(111) + chr(489 - 438) + chr(54) + chr(1650 - 1599), 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(0b110010) + chr(0b110011 + 0o1) + chr(52), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b110001 + 0o76) + chr(0b110011) + chr(2224 - 2175) + chr(0b11100 + 0o27), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110011) + '\060' + chr(55), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(0b11111 + 0o25) + '\x34', 0b1000), nzTpIcepk0o8(chr(1550 - 1502) + '\x6f' + chr(0b11010 + 0o30) + chr(0b110000) + '\064', 30568 - 30560), nzTpIcepk0o8(chr(48) + chr(0b11110 + 0o121) + chr(51) + '\x34', 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(862 - 812) + '\062' + chr(0b110010), 0o10), nzTpIcepk0o8(chr(2098 - 2050) + chr(0b1101111) + chr(0b110101) + chr(2218 - 2170), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b11110 + 0o26) + chr(1634 - 1581), 0o10), nzTpIcepk0o8(chr(0b101 + 0o53) + '\x6f' + chr(0b110010 + 0o1) + chr(52) + chr(0b110100), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110010) + chr(0b110010), ord("\x08")), nzTpIcepk0o8(chr(189 - 141) + '\x6f' + chr(0b110001) + chr(679 - 626) + chr(1738 - 1684), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(53), 20969 - 20961), nzTpIcepk0o8('\060' + chr(224 - 113) + '\063' + chr(0b110010) + chr(2273 - 2221), 0o10), nzTpIcepk0o8(chr(0b11000 + 0o30) + chr(255 - 144) + chr(0b101111 + 0o3) + '\064' + '\x31', 0b1000), nzTpIcepk0o8(chr(621 - 573) + chr(11697 - 11586) + chr(0b10010 + 0o40) + '\064' + '\x30', 63459 - 63451), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x33' + '\x35' + '\067', ord("\x08")), nzTpIcepk0o8(chr(733 - 685) + chr(0b110000 + 0o77) + '\063' + '\066' + chr(55), 0o10), nzTpIcepk0o8('\x30' + chr(7427 - 7316) + chr(1620 - 1568) + chr(0b101101 + 0o6), ord("\x08")), nzTpIcepk0o8('\x30' + chr(4437 - 4326) + '\063' + chr(2851 - 2796) + chr(379 - 327), 950 - 942), nzTpIcepk0o8(chr(0b110000) + chr(0b1100 + 0o143) + chr(51) + chr(1512 - 1461) + chr(50), 0b1000), nzTpIcepk0o8(chr(0b11111 + 0o21) + '\x6f' + chr(53) + chr(54), ord("\x08")), nzTpIcepk0o8(chr(1771 - 1723) + '\x6f' + '\062' + chr(51) + chr(0b110000), 0o10), nzTpIcepk0o8(chr(137 - 89) + chr(0b1101111) + '\x33' + '\065' + chr(49), 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(53) + chr(49), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + '\062' + '\064' + chr(0b110111), 0o10), nzTpIcepk0o8(chr(836 - 788) + '\157' + '\x31' + '\x34' + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b11001 + 0o31) + chr(0b110011) + chr(52), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(506 - 457) + '\060' + '\x33', 45818 - 45810), nzTpIcepk0o8(chr(1705 - 1657) + '\x6f' + chr(0b110011) + '\x33' + chr(0b10101 + 0o34), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(313 - 202) + chr(0b10100 + 0o40) + '\x34', 8), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b11001 + 0o35) + '\062', 5531 - 5523), nzTpIcepk0o8('\x30' + chr(11096 - 10985) + '\063' + chr(0b1110 + 0o44), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + '\x31' + chr(0b110101) + chr(0b110011), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101000 + 0o7) + chr(1460 - 1409) + chr(1779 - 1731) + chr(0b110011), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110011) + chr(53) + chr(120 - 70), ord("\x08")), nzTpIcepk0o8(chr(0b101000 + 0o10) + chr(0b1101111) + '\x33' + '\x30' + chr(0b110000), 0b1000), nzTpIcepk0o8(chr(0b100001 + 0o17) + chr(0b1101101 + 0o2) + chr(50) + chr(1854 - 1801) + chr(1827 - 1774), 0b1000), nzTpIcepk0o8('\060' + chr(626 - 515) + '\063' + chr(0b11001 + 0o31) + '\x32', 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(539 - 491) + chr(0b1101111) + chr(1657 - 1604) + '\x30', 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xdd'), chr(3069 - 2969) + chr(101) + chr(9027 - 8928) + chr(9195 - 9084) + chr(0b1100100) + chr(0b1100101))(chr(0b1110101) + '\x74' + chr(0b1100110) + '\x2d' + chr(0b111000)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def bZWmgf4GjgvH(hXMPsSrOQzbh, **q5n0sHDDTy90): uLIGGIY0qRFO = {} if roI3spqORKae(ES5oEprVxulp(b'\x92\xd4\xbb\xabA\xf0'), chr(0b1100100) + chr(9275 - 9174) + chr(99) + chr(111) + chr(100) + chr(101))(chr(6406 - 6289) + chr(0b1110100) + '\146' + '\055' + '\x38') not in q5n0sHDDTy90 and roI3spqORKae(ES5oEprVxulp(b'\x9a\xca\xa2\xb3M\xe5p\xfbR@\xa2`\x01h'), chr(0b1100100) + '\145' + '\x63' + chr(0b1101111) + '\144' + '\145')(chr(117) + chr(0b110001 + 0o103) + chr(0b101001 + 0o75) + chr(0b100101 + 0o10) + '\070') not in q5n0sHDDTy90: raise JPU16lJ2koBU(roI3spqORKae(ES5oEprVxulp(b'\xd6\xd7\xf1\xe7k\xeay\xb2GC\xc4f\x06`\xf4\xca\xc5\x96\x80L\x8e\xbe\x0e\xf9\x9bN\xd2\t\xf9-\xadW\x12?\x18\xe3\x8b\xae\xc9\xf2\xd6\xd7\xeb\xaeW\xa4n\xf7YP\x8d`\x0ba'), chr(100) + chr(0b1011001 + 0o14) + chr(0b1011001 + 0o12) + chr(111) + '\x64' + '\x65')('\165' + chr(0b111000 + 0o74) + chr(5655 - 5553) + chr(0b101101) + chr(0b111000)) % (roI3spqORKae(hXMPsSrOQzbh.__class__, roI3spqORKae(ES5oEprVxulp(b'\xb2\xfd\xbf\x83v\xe8m\xf7x\x15\x90c'), chr(7034 - 6934) + chr(101) + chr(2651 - 2552) + chr(7533 - 7422) + chr(6277 - 6177) + '\145')('\165' + chr(116) + '\146' + '\x2d' + '\070')), roI3spqORKae(ES5oEprVxulp(b'\x92\xd4\xbb\xabA\xf0'), '\144' + chr(0b1001001 + 0o34) + '\143' + chr(111) + chr(100) + chr(2829 - 2728))(chr(13651 - 13534) + '\164' + chr(0b1100110) + chr(1159 - 1114) + chr(0b100010 + 0o26)), roI3spqORKae(ES5oEprVxulp(b'\x9a\xca\xa2\xb3M\xe5p\xfbR@\xa2`\x01h'), '\144' + '\x65' + chr(0b1100011) + chr(0b100110 + 0o111) + '\144' + '\145')('\165' + chr(0b1110100) + '\146' + '\055' + chr(0b110100 + 0o4)))) for uF4zwjUGNIxR in [roI3spqORKae(ES5oEprVxulp(b'\x85\xc1\xb9\xb4M\xebr'), chr(0b1100100) + '\x65' + chr(0b110010 + 0o61) + chr(11178 - 11067) + '\x64' + '\145')(chr(6922 - 6805) + '\x74' + chr(0b1100110) + chr(0b10101 + 0o30) + chr(1221 - 1165))]: if uF4zwjUGNIxR not in q5n0sHDDTy90: raise JPU16lJ2koBU(roI3spqORKae(ES5oEprVxulp(b'\xd6\xd7\xf1\xe7o\xe1e\xe5GW\x802\x0fw\xb3\xd4\xcd\x8a\x99W\xdc\xff]\xb8\x80Z\x87\x16\xf92\xacM@\x7f\x0f'), '\x64' + '\x65' + chr(7059 - 6960) + '\157' + chr(8361 - 8261) + chr(847 - 746))(chr(5294 - 5177) + '\164' + chr(8895 - 8793) + chr(1181 - 1136) + '\070') % (roI3spqORKae(hXMPsSrOQzbh.__class__, roI3spqORKae(ES5oEprVxulp(b'\xb2\xfd\xbf\x83v\xe8m\xf7x\x15\x90c'), chr(0b1100100) + chr(0b1100101) + chr(0b1100011) + '\x6f' + '\144' + '\145')(chr(5946 - 5829) + '\x74' + chr(0b101100 + 0o72) + chr(1601 - 1556) + '\070')), uF4zwjUGNIxR)) uLIGGIY0qRFO[uF4zwjUGNIxR] = q5n0sHDDTy90[uF4zwjUGNIxR] del q5n0sHDDTy90[uF4zwjUGNIxR] for uF4zwjUGNIxR in (roI3spqORKae(ES5oEprVxulp(b'\x9a\xca\xa2\xb3M\xe5p\xfbR@\xa2`\x01h'), chr(0b1100100) + '\145' + '\143' + chr(0b1010100 + 0o33) + '\144' + chr(101))(chr(117) + '\164' + chr(102) + chr(0b1000 + 0o45) + '\070'), roI3spqORKae(ES5oEprVxulp(b'\x92\xd4\xbb\xabA\xf0'), '\x64' + '\145' + chr(0b1100011) + chr(111) + chr(0b1100100) + '\145')(chr(117) + chr(0b1110100) + chr(0b1100110) + chr(0b1010 + 0o43) + '\x38'), roI3spqORKae(ES5oEprVxulp(b'\x9d\xc5\xa6\xa2'), chr(100) + '\x65' + chr(0b1100011) + chr(2861 - 2750) + chr(0b100111 + 0o75) + '\145')(chr(0b11001 + 0o134) + chr(0b10000 + 0o144) + '\x66' + '\055' + '\x38'), roI3spqORKae(ES5oEprVxulp(b'\x87\xcd\xbf\xabA'), '\x64' + '\145' + '\143' + '\x6f' + '\x64' + '\145')(chr(0b1110101) + chr(116) + '\146' + chr(0b101101) + '\x38'), roI3spqORKae(ES5oEprVxulp(b'\x80\xd1\xa6\xaaE\xf6e'), '\x64' + chr(0b1100101) + chr(0b110110 + 0o55) + chr(0b1001 + 0o146) + '\x64' + '\x65')('\165' + chr(0b1011010 + 0o32) + '\x66' + chr(1764 - 1719) + chr(0b111000)), roI3spqORKae(ES5oEprVxulp(b'\x97\xc1\xb8\xa4V\xedl\xe6AJ\x8a'), '\x64' + '\145' + '\143' + chr(111) + '\144' + chr(101))(chr(4975 - 4858) + chr(3586 - 3470) + chr(4644 - 4542) + '\055' + '\070'), roI3spqORKae(ES5oEprVxulp(b'\x91\xcd\xa7\xabM\xea{'), chr(0b1100100) + chr(0b1100101) + chr(0b1011 + 0o130) + '\x6f' + chr(100) + chr(0b1100101))(chr(117) + '\x74' + chr(9133 - 9031) + chr(45) + chr(0b101011 + 0o15)), roI3spqORKae(ES5oEprVxulp(b'\x92\xc7\xa8\xa2W\xf7'), chr(0b1100100) + chr(3423 - 3322) + chr(0b1100011) + chr(2340 - 2229) + '\x64' + chr(0b1100101))(chr(0b1110101) + '\164' + chr(102) + chr(783 - 738) + chr(56)), roI3spqORKae(ES5oEprVxulp(b'\x81\xc1\xb8\xa8Q\xf6\x7f\xf7['), chr(0b111000 + 0o54) + '\145' + '\x63' + '\157' + chr(100) + chr(0b110000 + 0o65))(chr(117) + chr(0b1100001 + 0o23) + '\x66' + '\055' + chr(0b111000))): if uF4zwjUGNIxR in q5n0sHDDTy90: uLIGGIY0qRFO[uF4zwjUGNIxR] = q5n0sHDDTy90[uF4zwjUGNIxR] del q5n0sHDDTy90[uF4zwjUGNIxR] if roI3spqORKae(ES5oEprVxulp(b'\x91\xcd\xa7\xab{\xf0s'), chr(100) + chr(0b110001 + 0o64) + chr(99) + chr(111) + chr(0b10111 + 0o115) + '\145')(chr(0b100001 + 0o124) + chr(116) + '\x66' + chr(0b101101) + chr(0b110 + 0o62)) in q5n0sHDDTy90: uLIGGIY0qRFO[roI3spqORKae(ES5oEprVxulp(b'\x91\xcd\xa7\xabp\xeb'), chr(4573 - 4473) + chr(0b1000110 + 0o37) + chr(99) + chr(0b1101111) + '\x64' + chr(2891 - 2790))('\165' + chr(10063 - 9947) + chr(0b1100110) + '\x2d' + '\x38')] = q5n0sHDDTy90[roI3spqORKae(ES5oEprVxulp(b'\x91\xcd\xa7\xab{\xf0s'), chr(100) + chr(0b100011 + 0o102) + chr(99) + chr(0b1101111) + chr(100) + chr(5907 - 5806))('\x75' + chr(116) + chr(0b1100110) + chr(0b100110 + 0o7) + chr(0b111000))] del q5n0sHDDTy90[roI3spqORKae(ES5oEprVxulp(b'\x91\xcd\xa7\xab{\xf0s'), chr(100) + chr(101) + '\x63' + '\x6f' + '\144' + '\x65')(chr(0b1110101) + chr(0b100111 + 0o115) + '\146' + chr(0b101101) + chr(1479 - 1423))] xxhWttsUDUCM = SsdNdRxXOwsF.api.app_new(uLIGGIY0qRFO, **q5n0sHDDTy90) roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x80\xc1\xbf\x98M\xe0'), '\144' + chr(0b111100 + 0o51) + '\x63' + chr(111) + chr(100) + chr(0b1100101))('\165' + '\164' + chr(6297 - 6195) + '\055' + chr(56)))(dxid=xxhWttsUDUCM[roI3spqORKae(ES5oEprVxulp(b'\x9a\xc0'), chr(0b1100100) + chr(2543 - 2442) + chr(0b1100011) + chr(111) + '\x64' + chr(101))(chr(117) + '\164' + chr(0b1100110) + chr(0b101101) + chr(0b101010 + 0o16))])
dnanexus/dx-toolkit
src/python/dxpy/bindings/dxapp.py
DXApp.describe
def describe(self, fields=None, **kwargs): ''' :param fields: Hash where the keys are field names that should be returned, and values should be set to True (default is that all fields are returned) :type fields: dict :returns: Description of the remote app object :rtype: dict Returns a dict with a description of the app. The result includes the key-value pairs as specified in the API documentation for the `/app-xxxx/describe <https://wiki.dnanexus.com/API-Specification-v1.0.0/Apps#API-method%253A-%252Fapp-xxxx%255B%252Fyyyy%255D%252Fdescribe>`_ method. ''' describe_input = {} if fields: describe_input['fields'] = fields if self._dxid is not None: self._desc = dxpy.api.app_describe(self._dxid, input_params=describe_input, **kwargs) else: self._desc = dxpy.api.app_describe('app-' + self._name, alias=self._alias, input_params=describe_input, **kwargs) return self._desc
python
def describe(self, fields=None, **kwargs): ''' :param fields: Hash where the keys are field names that should be returned, and values should be set to True (default is that all fields are returned) :type fields: dict :returns: Description of the remote app object :rtype: dict Returns a dict with a description of the app. The result includes the key-value pairs as specified in the API documentation for the `/app-xxxx/describe <https://wiki.dnanexus.com/API-Specification-v1.0.0/Apps#API-method%253A-%252Fapp-xxxx%255B%252Fyyyy%255D%252Fdescribe>`_ method. ''' describe_input = {} if fields: describe_input['fields'] = fields if self._dxid is not None: self._desc = dxpy.api.app_describe(self._dxid, input_params=describe_input, **kwargs) else: self._desc = dxpy.api.app_describe('app-' + self._name, alias=self._alias, input_params=describe_input, **kwargs) return self._desc
[ "def", "describe", "(", "self", ",", "fields", "=", "None", ",", "*", "*", "kwargs", ")", ":", "describe_input", "=", "{", "}", "if", "fields", ":", "describe_input", "[", "'fields'", "]", "=", "fields", "if", "self", ".", "_dxid", "is", "not", "None", ":", "self", ".", "_desc", "=", "dxpy", ".", "api", ".", "app_describe", "(", "self", ".", "_dxid", ",", "input_params", "=", "describe_input", ",", "*", "*", "kwargs", ")", "else", ":", "self", ".", "_desc", "=", "dxpy", ".", "api", ".", "app_describe", "(", "'app-'", "+", "self", ".", "_name", ",", "alias", "=", "self", ".", "_alias", ",", "input_params", "=", "describe_input", ",", "*", "*", "kwargs", ")", "return", "self", ".", "_desc" ]
:param fields: Hash where the keys are field names that should be returned, and values should be set to True (default is that all fields are returned) :type fields: dict :returns: Description of the remote app object :rtype: dict Returns a dict with a description of the app. The result includes the key-value pairs as specified in the API documentation for the `/app-xxxx/describe <https://wiki.dnanexus.com/API-Specification-v1.0.0/Apps#API-method%253A-%252Fapp-xxxx%255B%252Fyyyy%255D%252Fdescribe>`_ method.
[ ":", "param", "fields", ":", "Hash", "where", "the", "keys", "are", "field", "names", "that", "should", "be", "returned", "and", "values", "should", "be", "set", "to", "True", "(", "default", "is", "that", "all", "fields", "are", "returned", ")", ":", "type", "fields", ":", "dict", ":", "returns", ":", "Description", "of", "the", "remote", "app", "object", ":", "rtype", ":", "dict" ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxapp.py#L198-L221
train
Returns a dict with the description of the app.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf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ZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(49) + chr(54) + chr(55), 0b1000), nzTpIcepk0o8(chr(0b10001 + 0o37) + '\157' + chr(1701 - 1652) + '\x31' + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(775 - 727) + chr(111) + '\061' + chr(0b1 + 0o63) + chr(0b110001), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110001) + '\064', 0o10), nzTpIcepk0o8(chr(0b100101 + 0o13) + chr(6763 - 6652) + chr(50) + '\061' + chr(0b110111), 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(0b100101 + 0o16) + chr(55) + chr(48), 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(954 - 903) + chr(0b101101 + 0o6) + chr(0b1000 + 0o51), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110010) + '\066' + chr(0b10111 + 0o40), 0b1000), nzTpIcepk0o8(chr(2041 - 1993) + '\157' + '\063' + chr(0b110111) + chr(0b101111 + 0o3), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1100110 + 0o11) + chr(0b101000 + 0o14) + chr(2439 - 2387), 42223 - 42215), nzTpIcepk0o8('\x30' + chr(0b1100101 + 0o12) + chr(50) + chr(55) + chr(0b110011), 0o10), nzTpIcepk0o8(chr(2302 - 2254) + chr(0b1101111) + '\063' + chr(0b110010) + chr(50), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + '\x32' + chr(0b1 + 0o66) + '\x33', 8), nzTpIcepk0o8('\x30' + chr(111) + '\063' + chr(52) + chr(141 - 88), ord("\x08")), nzTpIcepk0o8(chr(1968 - 1920) + chr(111) + chr(52) + chr(0b100001 + 0o26), ord("\x08")), nzTpIcepk0o8(chr(0b10010 + 0o36) + '\x6f' + '\065', 46978 - 46970), nzTpIcepk0o8(chr(0b101001 + 0o7) + chr(0b100110 + 0o111) + chr(0b110001) + chr(0b110011) + '\x30', 12891 - 12883), nzTpIcepk0o8('\x30' + '\x6f' + '\x36' + chr(0b101110 + 0o11), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(1380 - 1331) + chr(0b11001 + 0o35) + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(307 - 259) + chr(8545 - 8434) + '\062' + '\065', 43522 - 43514), nzTpIcepk0o8(chr(1702 - 1654) + '\x6f' + chr(0b110001) + '\x35' + '\x35', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x32' + chr(1719 - 1671) + chr(133 - 80), ord("\x08")), nzTpIcepk0o8(chr(0b10111 + 0o31) + '\x6f' + chr(50) + '\067' + chr(421 - 373), 0b1000), nzTpIcepk0o8('\060' + chr(2131 - 2020) + chr(0b110011) + chr(55) + '\066', 0o10), nzTpIcepk0o8('\060' + chr(7424 - 7313) + '\x33' + chr(51) + chr(0b110100), ord("\x08")), nzTpIcepk0o8(chr(2245 - 2197) + '\157' + '\062' + '\x30' + chr(0b110010), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110010) + chr(54) + chr(1317 - 1265), 0o10), nzTpIcepk0o8('\060' + chr(2041 - 1930) + chr(0b110001) + '\063' + '\064', ord("\x08")), nzTpIcepk0o8(chr(0b101 + 0o53) + '\157' + chr(0b110010) + '\065' + chr(54), 11962 - 11954), nzTpIcepk0o8(chr(0b1001 + 0o47) + '\157' + chr(0b110001) + chr(52) + chr(54), 57606 - 57598), nzTpIcepk0o8(chr(0b110000) + chr(9806 - 9695) + chr(50) + chr(53) + '\064', 20991 - 20983), nzTpIcepk0o8('\x30' + '\157' + chr(51) + chr(0b10010 + 0o45), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(728 - 678) + '\062' + chr(0b110011), 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(49) + chr(0b10 + 0o63) + chr(0b110011), 48635 - 48627), nzTpIcepk0o8('\x30' + chr(0b110101 + 0o72) + '\x31' + chr(54) + '\061', 8), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110001) + chr(1143 - 1088) + chr(0b11011 + 0o27), 26897 - 26889), nzTpIcepk0o8('\x30' + chr(111) + '\063' + '\067' + chr(55), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(916 - 862), 40656 - 40648), nzTpIcepk0o8(chr(1948 - 1900) + chr(2703 - 2592) + '\063' + chr(0b110010), 0o10), nzTpIcepk0o8(chr(0b101101 + 0o3) + '\157' + chr(933 - 883) + chr(51) + '\x34', 37380 - 37372)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b10101 + 0o40) + '\x30', 54707 - 54699)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'Y'), '\x64' + chr(0b1100101) + chr(2499 - 2400) + chr(111) + chr(100) + '\x65')('\165' + chr(0b1110100) + chr(0b1100110) + '\x2d' + chr(2607 - 2551)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def r18okd2eFtJ8(hXMPsSrOQzbh, ZXDdzgbdtBfz=None, **q5n0sHDDTy90): kMxhmRVvaa4G = {} if ZXDdzgbdtBfz: kMxhmRVvaa4G[roI3spqORKae(ES5oEprVxulp(b'\x11%\x04`\xeb\x8b'), chr(0b1001111 + 0o25) + chr(0b1100101) + '\143' + '\x6f' + chr(7121 - 7021) + chr(0b1000001 + 0o44))(chr(117) + chr(0b101000 + 0o114) + chr(0b101111 + 0o67) + chr(45) + '\070')] = ZXDdzgbdtBfz if roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x13z*Y\xe1\xaa\x88\xc1\xcc\x13\x88\xe7'), chr(0b1100100) + '\x65' + '\143' + '\157' + chr(0b101 + 0o137) + chr(101))(chr(117) + chr(0b111000 + 0o74) + '\x66' + '\x2d' + '\070')) is not None: hXMPsSrOQzbh.Up76sqJenL0f = SsdNdRxXOwsF.api.app_describe(hXMPsSrOQzbh.d6KUnRQv6735, input_params=kMxhmRVvaa4G, **q5n0sHDDTy90) else: hXMPsSrOQzbh.Up76sqJenL0f = SsdNdRxXOwsF.api.app_describe(roI3spqORKae(ES5oEprVxulp(b'\x16<\x11!'), '\x64' + chr(101) + '\143' + chr(0b1101111) + chr(0b1001010 + 0o32) + chr(2439 - 2338))(chr(117) + chr(116) + '\x66' + chr(45) + chr(56)) + hXMPsSrOQzbh.uzEfnKVxHTp5, alias=hXMPsSrOQzbh.aDMivsxYxk0k, input_params=kMxhmRVvaa4G, **q5n0sHDDTy90) return roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'"<V:\xfc\x89\x93\xd2\x94h\x8b\xb4'), chr(0b1001 + 0o133) + chr(5874 - 5773) + '\143' + chr(0b110010 + 0o75) + '\144' + chr(0b100111 + 0o76))(chr(0b1001111 + 0o46) + chr(0b1110100) + chr(0b1100110) + chr(0b101101) + chr(0b111000)))
dnanexus/dx-toolkit
src/python/dxpy/bindings/dxapp.py
DXApp.update
def update(self, **kwargs): ''' :param applet: ID of the applet to replace the app's contents with :type applet: string :param details: Metadata to store with the app (optional) :type details: dict or list :param access: Access specification (optional) :type access: dict :param resources: Specifies what is to be put into the app's resources container. Must be a string containing a project ID, or a list containing object IDs. (optional) :type resources: string or list Updates the parameters of an existing app. See the API documentation for the `/app/update <https://wiki.dnanexus.com/API-Specification-v1.0.0/Apps#API-method%253A-%252Fapp-xxxx%255B%252Fyyyy%255D%252Fupdate>`_ method for more info. The current user must be a developer of the app. ''' updates = {} for field in 'applet', 'billing', 'access', 'resources', 'details': if field in kwargs: updates[field] = kwargs[field] del kwargs[field] if self._dxid is not None: resp = dxpy.api.app_update(self._dxid, input_params=updates, **kwargs) else: resp = dxpy.api.app_update('app-' + self._name, alias=self._alias, input_params=updates, **kwargs)
python
def update(self, **kwargs): ''' :param applet: ID of the applet to replace the app's contents with :type applet: string :param details: Metadata to store with the app (optional) :type details: dict or list :param access: Access specification (optional) :type access: dict :param resources: Specifies what is to be put into the app's resources container. Must be a string containing a project ID, or a list containing object IDs. (optional) :type resources: string or list Updates the parameters of an existing app. See the API documentation for the `/app/update <https://wiki.dnanexus.com/API-Specification-v1.0.0/Apps#API-method%253A-%252Fapp-xxxx%255B%252Fyyyy%255D%252Fupdate>`_ method for more info. The current user must be a developer of the app. ''' updates = {} for field in 'applet', 'billing', 'access', 'resources', 'details': if field in kwargs: updates[field] = kwargs[field] del kwargs[field] if self._dxid is not None: resp = dxpy.api.app_update(self._dxid, input_params=updates, **kwargs) else: resp = dxpy.api.app_update('app-' + self._name, alias=self._alias, input_params=updates, **kwargs)
[ "def", "update", "(", "self", ",", "*", "*", "kwargs", ")", ":", "updates", "=", "{", "}", "for", "field", "in", "'applet'", ",", "'billing'", ",", "'access'", ",", "'resources'", ",", "'details'", ":", "if", "field", "in", "kwargs", ":", "updates", "[", "field", "]", "=", "kwargs", "[", "field", "]", "del", "kwargs", "[", "field", "]", "if", "self", ".", "_dxid", "is", "not", "None", ":", "resp", "=", "dxpy", ".", "api", ".", "app_update", "(", "self", ".", "_dxid", ",", "input_params", "=", "updates", ",", "*", "*", "kwargs", ")", "else", ":", "resp", "=", "dxpy", ".", "api", ".", "app_update", "(", "'app-'", "+", "self", ".", "_name", ",", "alias", "=", "self", ".", "_alias", ",", "input_params", "=", "updates", ",", "*", "*", "kwargs", ")" ]
:param applet: ID of the applet to replace the app's contents with :type applet: string :param details: Metadata to store with the app (optional) :type details: dict or list :param access: Access specification (optional) :type access: dict :param resources: Specifies what is to be put into the app's resources container. Must be a string containing a project ID, or a list containing object IDs. (optional) :type resources: string or list Updates the parameters of an existing app. See the API documentation for the `/app/update <https://wiki.dnanexus.com/API-Specification-v1.0.0/Apps#API-method%253A-%252Fapp-xxxx%255B%252Fyyyy%255D%252Fupdate>`_ method for more info. The current user must be a developer of the app.
[ ":", "param", "applet", ":", "ID", "of", "the", "applet", "to", "replace", "the", "app", "s", "contents", "with", ":", "type", "applet", ":", "string", ":", "param", "details", ":", "Metadata", "to", "store", "with", "the", "app", "(", "optional", ")", ":", "type", "details", ":", "dict", "or", "list", ":", "param", "access", ":", "Access", "specification", "(", "optional", ")", ":", "type", "access", ":", "dict", ":", "param", "resources", ":", "Specifies", "what", "is", "to", "be", "put", "into", "the", "app", "s", "resources", "container", ".", "Must", "be", "a", "string", "containing", "a", "project", "ID", "or", "a", "list", "containing", "object", "IDs", ".", "(", "optional", ")", ":", "type", "resources", ":", "string", "or", "list" ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxapp.py#L223-L252
train
Updates the contents of the applet s resources and details of the app s resources container.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG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uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(1930 - 1882) + chr(0b1101111) + chr(0b110011) + '\064' + '\063', 0o10), nzTpIcepk0o8(chr(0b10000 + 0o40) + '\157' + '\063' + chr(124 - 74) + '\x32', 0o10), nzTpIcepk0o8('\x30' + chr(11963 - 11852) + '\061', 16957 - 16949), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(49) + chr(0b1111 + 0o46) + chr(0b1001 + 0o56), 9443 - 9435), nzTpIcepk0o8('\x30' + '\157' + chr(0b110100 + 0o0) + '\x30', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110011) + chr(2076 - 2025) + chr(48), 0o10), nzTpIcepk0o8('\060' + chr(0b1011001 + 0o26) + chr(0b110011) + chr(0b110011) + chr(0b110110), 0o10), nzTpIcepk0o8(chr(2251 - 2203) + '\157' + chr(0b110011) + chr(0b110010) + chr(0b11111 + 0o30), ord("\x08")), nzTpIcepk0o8(chr(616 - 568) + chr(10915 - 10804) + chr(1258 - 1208) + '\x30' + chr(0b101000 + 0o15), 2294 - 2286), nzTpIcepk0o8(chr(50 - 2) + chr(0b1101111) + '\062' + '\061' + chr(2442 - 2387), 0o10), nzTpIcepk0o8('\x30' + chr(3855 - 3744) + chr(0b101111 + 0o3) + chr(0b110011) + '\x33', 0o10), nzTpIcepk0o8(chr(967 - 919) + '\157' + '\061' + chr(0b111 + 0o52), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1011000 + 0o27) + chr(0b101011 + 0o7) + chr(52) + chr(1456 - 1407), 0o10), nzTpIcepk0o8(chr(2102 - 2054) + chr(9267 - 9156) + '\063', 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(49) + '\063' + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(2041 - 1993) + '\x6f' + chr(0b101001 + 0o14) + chr(0b10001 + 0o44), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(123 - 72) + chr(0b101111 + 0o7) + chr(0b110001), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x31' + chr(50) + '\x30', 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b101110 + 0o4) + '\x32', 25014 - 25006), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x32' + chr(2775 - 2720) + chr(49), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101100 + 0o3) + '\063' + '\061' + chr(53), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110010) + '\063' + '\x34', ord("\x08")), nzTpIcepk0o8(chr(0b1100 + 0o44) + chr(111) + '\062' + '\065' + chr(49), 44324 - 44316), nzTpIcepk0o8('\060' + chr(0b1000110 + 0o51) + chr(0b101001 + 0o10) + chr(0b110000), 0o10), nzTpIcepk0o8('\x30' + chr(0b111100 + 0o63) + chr(53) + chr(2050 - 2001), 58646 - 58638), nzTpIcepk0o8('\060' + '\x6f' + chr(2400 - 2350) + '\x35', 46644 - 46636), nzTpIcepk0o8('\060' + '\x6f' + '\064', ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(0b110001) + chr(0b110011) + '\x34', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(6673 - 6562) + chr(2083 - 2034) + chr(0b101 + 0o53) + chr(50), 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(51) + chr(49) + chr(0b110010), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(2227 - 2174), ord("\x08")), nzTpIcepk0o8(chr(1220 - 1172) + '\157' + '\063' + chr(0b110 + 0o53), 19781 - 19773), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x32' + chr(2168 - 2118) + '\x34', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110101) + '\x36', 18607 - 18599), nzTpIcepk0o8(chr(1818 - 1770) + chr(0b110101 + 0o72) + chr(0b1 + 0o61) + chr(0b110010), 8), nzTpIcepk0o8('\x30' + chr(11365 - 11254) + chr(0b10101 + 0o35) + '\x35' + chr(0b110110), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + '\x31' + chr(2500 - 2450) + chr(1154 - 1106), 8), nzTpIcepk0o8(chr(0b10100 + 0o34) + chr(0b1011010 + 0o25) + '\061' + '\x34' + chr(0b110000), 0b1000), nzTpIcepk0o8(chr(1472 - 1424) + chr(1916 - 1805) + chr(2222 - 2173) + chr(1602 - 1553) + '\x35', 33999 - 33991), nzTpIcepk0o8(chr(1722 - 1674) + chr(3968 - 3857) + '\065' + '\x37', ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b11101 + 0o23) + '\157' + chr(53) + chr(0b101110 + 0o2), 17808 - 17800)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xcd'), '\x64' + '\145' + chr(929 - 830) + '\x6f' + '\x64' + chr(0b1100101))(chr(0b1001010 + 0o53) + '\x74' + chr(4859 - 4757) + '\055' + chr(0b111000)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def J_k2IYB1ceqn(hXMPsSrOQzbh, **q5n0sHDDTy90): N5cy89qohOOT = {} for uF4zwjUGNIxR in (roI3spqORKae(ES5oEprVxulp(b'\x82\xa2q\x03E\xac'), chr(100) + '\x65' + chr(0b1100 + 0o127) + chr(0b111100 + 0o63) + chr(503 - 403) + '\x65')(chr(117) + chr(12743 - 12627) + chr(0b1100110) + '\055' + chr(56)), roI3spqORKae(ES5oEprVxulp(b'\x81\xbbm\x03I\xb6\xb9'), chr(100) + '\x65' + '\143' + chr(111) + '\x64' + chr(0b1100101))('\165' + chr(6132 - 6016) + chr(0b1100110) + chr(1113 - 1068) + chr(0b101 + 0o63)), roI3spqORKae(ES5oEprVxulp(b'\x82\xb1b\nS\xab'), chr(100) + '\145' + chr(99) + '\x6f' + chr(0b10011 + 0o121) + '\145')(chr(0b1110101) + chr(116) + chr(0b1100110) + chr(0b11010 + 0o23) + '\x38'), roI3spqORKae(ES5oEprVxulp(b'\x91\xb7r\x00U\xaa\xbd\xb2\xf6'), chr(100) + chr(101) + chr(99) + chr(1614 - 1503) + chr(0b11111 + 0o105) + chr(0b1100101))(chr(0b1110101) + chr(0b10111 + 0o135) + chr(0b1000010 + 0o44) + chr(0b101101) + chr(0b111000)), roI3spqORKae(ES5oEprVxulp(b'\x87\xb7u\x0eI\xb4\xad'), chr(0b10110 + 0o116) + chr(0b1010011 + 0o22) + chr(0b1100011) + chr(0b111000 + 0o67) + chr(0b1100100) + chr(101))('\165' + chr(116) + '\x66' + '\055' + chr(0b111 + 0o61))): if uF4zwjUGNIxR in q5n0sHDDTy90: N5cy89qohOOT[uF4zwjUGNIxR] = q5n0sHDDTy90[uF4zwjUGNIxR] del q5n0sHDDTy90[uF4zwjUGNIxR] if roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x87\xe4J:N\x8a\x8f\xa1\xb3\xb8\xa8<'), chr(3008 - 2908) + '\x65' + '\143' + chr(3963 - 3852) + '\144' + chr(0b1100101))('\165' + '\164' + chr(0b1100110) + chr(0b101101) + '\070')) is not None: xxhWttsUDUCM = SsdNdRxXOwsF.api.app_update(hXMPsSrOQzbh.d6KUnRQv6735, input_params=N5cy89qohOOT, **q5n0sHDDTy90) else: xxhWttsUDUCM = SsdNdRxXOwsF.api.app_update(roI3spqORKae(ES5oEprVxulp(b'\x82\xa2qB'), '\x64' + '\145' + '\143' + chr(111) + chr(3566 - 3466) + chr(3239 - 3138))('\x75' + chr(116) + '\x66' + chr(0b1011 + 0o42) + chr(1166 - 1110)) + hXMPsSrOQzbh.uzEfnKVxHTp5, alias=hXMPsSrOQzbh.aDMivsxYxk0k, input_params=N5cy89qohOOT, **q5n0sHDDTy90)
dnanexus/dx-toolkit
src/python/dxpy/bindings/dxapp.py
DXApp.add_tags
def add_tags(self, tags, **kwargs): """ :param tags: Tags to add to the app :type tags: array Adds the specified application name tags (aliases) to this app. The current user must be a developer of the app. """ if self._dxid is not None: return dxpy.api.app_add_tags(self._dxid, input_params={"tags": tags}, **kwargs) else: return dxpy.api.app_add_tags('app-' + self._name, alias=self._alias, input_params={"tags": tags}, **kwargs)
python
def add_tags(self, tags, **kwargs): """ :param tags: Tags to add to the app :type tags: array Adds the specified application name tags (aliases) to this app. The current user must be a developer of the app. """ if self._dxid is not None: return dxpy.api.app_add_tags(self._dxid, input_params={"tags": tags}, **kwargs) else: return dxpy.api.app_add_tags('app-' + self._name, alias=self._alias, input_params={"tags": tags}, **kwargs)
[ "def", "add_tags", "(", "self", ",", "tags", ",", "*", "*", "kwargs", ")", ":", "if", "self", ".", "_dxid", "is", "not", "None", ":", "return", "dxpy", ".", "api", ".", "app_add_tags", "(", "self", ".", "_dxid", ",", "input_params", "=", "{", "\"tags\"", ":", "tags", "}", ",", "*", "*", "kwargs", ")", "else", ":", "return", "dxpy", ".", "api", ".", "app_add_tags", "(", "'app-'", "+", "self", ".", "_name", ",", "alias", "=", "self", ".", "_alias", ",", "input_params", "=", "{", "\"tags\"", ":", "tags", "}", ",", "*", "*", "kwargs", ")" ]
:param tags: Tags to add to the app :type tags: array Adds the specified application name tags (aliases) to this app. The current user must be a developer of the app.
[ ":", "param", "tags", ":", "Tags", "to", "add", "to", "the", "app", ":", "type", "tags", ":", "array" ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxapp.py#L254-L268
train
Adds the specified tags to the app.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,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TbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(1253 - 1205) + chr(0b1101111) + chr(0b10011 + 0o40) + '\064' + chr(52), ord("\x08")), nzTpIcepk0o8(chr(0b100100 + 0o14) + chr(0b100 + 0o153) + chr(0b110110) + '\061', 61174 - 61166), nzTpIcepk0o8(chr(48) + '\157' + chr(51) + chr(50) + chr(0b101110 + 0o2), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b11010 + 0o27) + '\x33' + chr(1521 - 1470), 0o10), nzTpIcepk0o8(chr(391 - 343) + chr(10876 - 10765) + '\x33' + '\066' + chr(0b110010), 0o10), nzTpIcepk0o8('\x30' + chr(111) + '\061' + '\066' + chr(48), 38883 - 38875), nzTpIcepk0o8(chr(1901 - 1853) + chr(0b1101111) + chr(0b110001) + '\066' + '\x36', 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110 + 0o55) + chr(0b110110) + '\067', 0o10), nzTpIcepk0o8(chr(251 - 203) + chr(0b1101111) + chr(51) + '\x37' + '\x37', ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(827 - 778) + chr(2278 - 2228) + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(2036 - 1988) + chr(111) + chr(0b11010 + 0o31) + chr(53) + '\x30', 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110010) + '\x33', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b110100 + 0o73) + chr(0b11010 + 0o30) + chr(2596 - 2545) + '\060', 0o10), nzTpIcepk0o8('\060' + '\157' + '\062' + chr(0b101011 + 0o10) + chr(0b110010), 0o10), nzTpIcepk0o8(chr(472 - 424) + chr(11801 - 11690) + chr(0b100100 + 0o15) + chr(2505 - 2454) + '\067', 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(54) + chr(0b101010 + 0o6), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(50) + chr(52) + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(52), 60444 - 60436), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(51) + '\x30' + '\x37', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110010) + '\x34' + chr(0b110110), 0o10), nzTpIcepk0o8(chr(0b100 + 0o54) + chr(0b11011 + 0o124) + chr(1338 - 1287) + '\063' + chr(791 - 743), 0o10), nzTpIcepk0o8('\060' + chr(9041 - 8930) + '\061' + '\x32' + '\067', 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110001) + chr(0b110101) + chr(0b110100), 42051 - 42043), nzTpIcepk0o8(chr(48) + chr(6325 - 6214) + chr(50) + '\063', 8), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\061' + chr(0b110100), 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(51) + chr(0b100 + 0o62), 0o10), nzTpIcepk0o8(chr(1534 - 1486) + '\x6f' + chr(2350 - 2300) + '\x34' + chr(0b110000), 388 - 380), nzTpIcepk0o8(chr(0b11010 + 0o26) + chr(111) + chr(49) + '\061' + '\061', 49503 - 49495), nzTpIcepk0o8('\x30' + chr(0b10111 + 0o130) + '\061' + '\066' + chr(0b110011), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(79 - 29) + '\x33' + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110010) + '\x37' + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(0b100001 + 0o17) + chr(111) + chr(0b110101) + chr(0b1110 + 0o42), 32709 - 32701), nzTpIcepk0o8('\x30' + chr(0b1100111 + 0o10) + chr(0b110011) + chr(49) + chr(48), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + '\x31' + chr(48) + chr(0b11011 + 0o27), 36778 - 36770), nzTpIcepk0o8(chr(48) + chr(111) + chr(51) + chr(0b1111 + 0o44) + chr(0b10000 + 0o42), 0b1000), nzTpIcepk0o8(chr(48) + chr(10096 - 9985) + '\061' + '\067', 0o10), nzTpIcepk0o8('\x30' + chr(0b1010001 + 0o36) + '\x31' + chr(51) + chr(0b110100), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x34' + chr(0b10010 + 0o43), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x32' + '\x36' + chr(0b110111), 0b1000), nzTpIcepk0o8('\060' + chr(0b1010001 + 0o36) + chr(50) + chr(51) + '\x31', ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + chr(8719 - 8608) + chr(0b10101 + 0o40) + chr(0b110000), 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xca'), chr(8481 - 8381) + chr(9160 - 9059) + '\143' + '\157' + '\x64' + chr(0b1100101))('\165' + chr(0b10000 + 0o144) + chr(102) + '\055' + chr(56)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def wWxo3hTWGyrH(hXMPsSrOQzbh, TFpYP2_05oSC, **q5n0sHDDTy90): if roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x80\x07\x9b\x0e\x9c"\'\x81\xc9c\xdb&'), chr(100) + chr(7707 - 7606) + chr(0b11001 + 0o112) + chr(111) + '\144' + '\x65')('\165' + '\164' + '\x66' + chr(1974 - 1929) + chr(0b100100 + 0o24))) is not None: return roI3spqORKae(SsdNdRxXOwsF.api, roI3spqORKae(ES5oEprVxulp(b'\x85A\xa0\x04\x93\x14\x12\xa8\x8b5\x8f`'), chr(0b1011100 + 0o10) + chr(2499 - 2398) + '\143' + chr(111) + chr(0b111001 + 0o53) + chr(101))(chr(0b1110101) + '\x74' + chr(0b1100110) + chr(0b1101 + 0o40) + chr(0b111000)))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x80\x07\x9b\x0e\x9c"\'\x81\xc9c\xdb&'), '\x64' + chr(0b1100101) + chr(0b1100011) + chr(111) + chr(0b1100100) + chr(0b101010 + 0o73))(chr(1679 - 1562) + chr(0b1110100) + chr(0b1100110) + chr(335 - 290) + chr(56))), input_params={roI3spqORKae(ES5oEprVxulp(b'\x90P\xb7('), chr(4966 - 4866) + chr(0b1100101) + '\x63' + chr(0b1101111) + chr(0b1100100) + '\145')(chr(117) + '\x74' + '\x66' + chr(0b1101 + 0o40) + chr(56)): TFpYP2_05oSC}, **q5n0sHDDTy90) else: return roI3spqORKae(SsdNdRxXOwsF.api, roI3spqORKae(ES5oEprVxulp(b'\x85A\xa0\x04\x93\x14\x12\xa8\x8b5\x8f`'), chr(100) + '\x65' + chr(0b1100011) + '\157' + '\144' + chr(0b1000011 + 0o42))(chr(0b110011 + 0o102) + chr(116) + chr(102) + '\x2d' + chr(1026 - 970)))(roI3spqORKae(ES5oEprVxulp(b'\x85A\xa0v'), chr(7625 - 7525) + '\145' + '\143' + chr(0b10011 + 0o134) + chr(0b1100100) + chr(0b1011110 + 0o7))(chr(9204 - 9087) + chr(5275 - 5159) + chr(102) + chr(0b1100 + 0o41) + '\070') + roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x91K\x95=\x9c; \x8f\xb7\x00\x98&'), '\x64' + chr(0b1100101) + '\143' + chr(111) + chr(100) + chr(0b100011 + 0o102))(chr(117) + '\x74' + chr(1399 - 1297) + chr(0b101100 + 0o1) + chr(56))), alias=roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x85u\x9d2\x84\x03\x0e\xae\x87?\xd8x'), '\x64' + chr(0b1010001 + 0o24) + chr(0b111011 + 0o50) + chr(3401 - 3290) + chr(0b1100100) + '\145')('\165' + '\x74' + chr(0b1100110) + chr(0b101101 + 0o0) + chr(0b111000))), input_params={roI3spqORKae(ES5oEprVxulp(b'\x90P\xb7('), '\144' + '\145' + chr(99) + chr(0b1011101 + 0o22) + chr(100) + '\x65')(chr(11353 - 11236) + chr(116) + chr(102) + '\055' + chr(56)): TFpYP2_05oSC}, **q5n0sHDDTy90)
dnanexus/dx-toolkit
src/python/dxpy/bindings/dxapp.py
DXApp.remove_tags
def remove_tags(self, tags, **kwargs): """ :param tags: Tags to remove from the app :type tags: array Removes the specified application name tags (aliases) from this app, so that it is no longer addressable by those aliases. The current user must be a developer of the app. """ if self._dxid is not None: return dxpy.api.app_remove_tags(self._dxid, input_params={"tags": tags}, **kwargs) else: return dxpy.api.app_remove_tags('app-' + self._name, alias=self._alias, input_params={"tags": tags}, **kwargs)
python
def remove_tags(self, tags, **kwargs): """ :param tags: Tags to remove from the app :type tags: array Removes the specified application name tags (aliases) from this app, so that it is no longer addressable by those aliases. The current user must be a developer of the app. """ if self._dxid is not None: return dxpy.api.app_remove_tags(self._dxid, input_params={"tags": tags}, **kwargs) else: return dxpy.api.app_remove_tags('app-' + self._name, alias=self._alias, input_params={"tags": tags}, **kwargs)
[ "def", "remove_tags", "(", "self", ",", "tags", ",", "*", "*", "kwargs", ")", ":", "if", "self", ".", "_dxid", "is", "not", "None", ":", "return", "dxpy", ".", "api", ".", "app_remove_tags", "(", "self", ".", "_dxid", ",", "input_params", "=", "{", "\"tags\"", ":", "tags", "}", ",", "*", "*", "kwargs", ")", "else", ":", "return", "dxpy", ".", "api", ".", "app_remove_tags", "(", "'app-'", "+", "self", ".", "_name", ",", "alias", "=", "self", ".", "_alias", ",", "input_params", "=", "{", "\"tags\"", ":", "tags", "}", ",", "*", "*", "kwargs", ")" ]
:param tags: Tags to remove from the app :type tags: array Removes the specified application name tags (aliases) from this app, so that it is no longer addressable by those aliases. The current user must be a developer of the app.
[ ":", "param", "tags", ":", "Tags", "to", "remove", "from", "the", "app", ":", "type", "tags", ":", "array" ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxapp.py#L277-L292
train
Removes the specified tags from the app.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHT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Q06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(1259 - 1211) + chr(9805 - 9694) + '\062' + chr(0b110011 + 0o4) + chr(49), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x37', 49521 - 49513), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x31' + '\x33', 0o10), nzTpIcepk0o8(chr(1193 - 1145) + '\x6f' + chr(0b110010) + '\063' + '\064', 0b1000), nzTpIcepk0o8(chr(1801 - 1753) + chr(111) + chr(0b110010) + chr(55) + chr(0b110101), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + '\x34' + chr(304 - 255), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110011) + chr(0b110111) + '\x33', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(4938 - 4827) + chr(0b101110 + 0o4) + chr(120 - 68) + '\x31', ord("\x08")), nzTpIcepk0o8(chr(0b11111 + 0o21) + '\x6f' + chr(2307 - 2258) + chr(2123 - 2071) + '\062', 0b1000), nzTpIcepk0o8('\060' + '\x6f' + '\x31' + chr(51) + '\063', 58753 - 58745), nzTpIcepk0o8(chr(48) + chr(0b1010100 + 0o33) + chr(0b110101) + chr(55), 34304 - 34296), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x32' + chr(0b10010 + 0o42) + chr(0b110001), 8), nzTpIcepk0o8(chr(757 - 709) + chr(10961 - 10850) + '\062' + '\x35' + chr(0b110010 + 0o1), 45063 - 45055), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(2020 - 1971) + chr(1039 - 985) + chr(883 - 833), 51040 - 51032), nzTpIcepk0o8('\060' + '\157' + chr(0b11001 + 0o33) + chr(2096 - 2045), 42700 - 42692), nzTpIcepk0o8('\060' + '\157' + chr(0b101100 + 0o5) + '\x33' + chr(724 - 676), 26290 - 26282), nzTpIcepk0o8('\060' + chr(1656 - 1545) + chr(51) + chr(51) + chr(0b110000), 20864 - 20856), nzTpIcepk0o8(chr(979 - 931) + chr(111) + '\x33' + chr(49) + chr(53), ord("\x08")), nzTpIcepk0o8(chr(0b10110 + 0o32) + chr(0b1101111) + '\x37' + chr(0b110010), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + '\061' + chr(2010 - 1961) + chr(1744 - 1694), 44423 - 44415), nzTpIcepk0o8(chr(1125 - 1077) + chr(0b1001010 + 0o45) + chr(0b101111 + 0o6) + chr(1472 - 1419), 52310 - 52302), nzTpIcepk0o8(chr(0b110000) + chr(282 - 171) + chr(505 - 454) + chr(2202 - 2154) + chr(0b100011 + 0o17), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(1374 - 1324) + '\060' + chr(0b110011), 0o10), nzTpIcepk0o8('\x30' + chr(0b1100000 + 0o17) + '\062' + chr(0b110100 + 0o3) + chr(0b110110), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(2080 - 2029) + '\x37' + chr(52), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110011) + chr(53) + chr(51), 0o10), nzTpIcepk0o8(chr(48) + chr(6664 - 6553) + chr(0b110010) + chr(1321 - 1273) + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x31' + '\x36' + '\x37', ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110011) + chr(559 - 509) + '\063', 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(2357 - 2307) + chr(2787 - 2732) + chr(55), 24572 - 24564), nzTpIcepk0o8(chr(0b110000) + chr(10356 - 10245) + '\061' + chr(0b110011) + chr(0b110111), ord("\x08")), nzTpIcepk0o8(chr(0b101 + 0o53) + '\x6f' + '\x31' + chr(50) + '\066', 0b1000), nzTpIcepk0o8(chr(0b1101 + 0o43) + chr(111) + '\x33' + chr(0b110010) + '\x31', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(2111 - 2057) + '\x31', 0o10), nzTpIcepk0o8(chr(0b100101 + 0o13) + '\157' + chr(0b100011 + 0o17) + '\065' + chr(0b10011 + 0o40), 8), nzTpIcepk0o8(chr(0b110000) + chr(457 - 346) + '\061' + chr(0b110100) + '\067', 14533 - 14525), nzTpIcepk0o8(chr(0b1000 + 0o50) + '\157' + chr(105 - 56) + chr(50) + chr(248 - 194), 8), nzTpIcepk0o8(chr(48) + chr(9217 - 9106) + '\062' + chr(0b1111 + 0o43) + chr(53), 46000 - 45992), nzTpIcepk0o8(chr(118 - 70) + chr(4237 - 4126) + chr(815 - 762) + chr(0b11000 + 0o37), 8), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(221 - 172) + chr(0b10000 + 0o47) + chr(0b100000 + 0o23), 47108 - 47100)][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + chr(10714 - 10603) + '\065' + chr(254 - 206), ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x97'), '\144' + chr(0b1100101) + '\143' + '\157' + '\x64' + chr(0b1100010 + 0o3))(chr(117) + chr(0b1110100) + '\x66' + chr(45) + '\070') + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def FZakyp0UKRsK(hXMPsSrOQzbh, TFpYP2_05oSC, **q5n0sHDDTy90): if roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xdd1@\xc9\xd3s\xaa\xd7Tl\x1c\x94'), chr(9612 - 9512) + '\x65' + chr(0b111110 + 0o45) + '\x6f' + chr(0b1100100) + '\145')(chr(0b1110101) + chr(0b1010101 + 0o37) + chr(102) + chr(0b101101) + '\070')) is not None: return roI3spqORKae(SsdNdRxXOwsF.api, roI3spqORKae(ES5oEprVxulp(b'\xd8w{\xc3\xcfD\x96\xce\x14>p\xd5\xca\x15P'), chr(100) + '\145' + chr(4747 - 4648) + chr(4043 - 3932) + chr(100) + chr(8709 - 8608))('\x75' + chr(0b1110100) + chr(102) + chr(0b101101) + chr(0b111000)))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xdd1@\xc9\xd3s\xaa\xd7Tl\x1c\x94'), chr(0b1100100) + chr(0b1100101) + chr(0b1100011) + chr(0b1101111) + chr(6498 - 6398) + '\x65')('\x75' + chr(13138 - 13022) + chr(0b1100110) + chr(45) + '\070')), input_params={roI3spqORKae(ES5oEprVxulp(b'\xcdfl\xef'), chr(0b1100100) + chr(0b1001001 + 0o34) + '\x63' + chr(0b1101111) + '\x64' + chr(101))('\x75' + '\x74' + chr(1304 - 1202) + chr(0b11010 + 0o23) + '\x38'): TFpYP2_05oSC}, **q5n0sHDDTy90) else: return roI3spqORKae(SsdNdRxXOwsF.api, roI3spqORKae(ES5oEprVxulp(b'\xd8w{\xc3\xcfD\x96\xce\x14>p\xd5\xca\x15P'), '\144' + chr(0b1100101) + chr(99) + '\x6f' + chr(0b1100100) + '\145')('\165' + chr(10118 - 10002) + chr(0b111011 + 0o53) + '\055' + chr(0b111000)))(roI3spqORKae(ES5oEprVxulp(b'\xd8w{\xb1'), chr(6497 - 6397) + '\145' + chr(0b1100011) + chr(4535 - 4424) + chr(3244 - 3144) + chr(3056 - 2955))('\x75' + chr(116) + chr(0b1100101 + 0o1) + chr(137 - 92) + chr(2638 - 2582)) + roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xcc}N\xfa\xd3j\xad\xd9*\x0f_\x94'), '\x64' + chr(0b111011 + 0o52) + chr(0b1100011) + chr(111) + '\x64' + chr(1792 - 1691))(chr(0b1001 + 0o154) + chr(0b1110100) + '\146' + chr(0b101101) + '\x38')), alias=roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xd8CF\xf5\xcbR\x83\xf8\x1a0\x1f\xca'), chr(100) + '\145' + '\x63' + '\157' + '\x64' + chr(902 - 801))('\165' + chr(116) + '\146' + chr(0b11011 + 0o22) + chr(2405 - 2349))), input_params={roI3spqORKae(ES5oEprVxulp(b'\xcdfl\xef'), chr(0b1100100) + chr(622 - 521) + '\143' + '\157' + chr(5852 - 5752) + '\x65')('\165' + chr(116) + '\146' + '\x2d' + chr(0b100 + 0o64)): TFpYP2_05oSC}, **q5n0sHDDTy90)
dnanexus/dx-toolkit
src/python/dxpy/bindings/dxapp.py
DXApp.install
def install(self, **kwargs): """ Installs the app in the current user's account. """ if self._dxid is not None: return dxpy.api.app_install(self._dxid, **kwargs) else: return dxpy.api.app_install('app-' + self._name, alias=self._alias, **kwargs)
python
def install(self, **kwargs): """ Installs the app in the current user's account. """ if self._dxid is not None: return dxpy.api.app_install(self._dxid, **kwargs) else: return dxpy.api.app_install('app-' + self._name, alias=self._alias, **kwargs)
[ "def", "install", "(", "self", ",", "*", "*", "kwargs", ")", ":", "if", "self", ".", "_dxid", "is", "not", "None", ":", "return", "dxpy", ".", "api", ".", "app_install", "(", "self", ".", "_dxid", ",", "*", "*", "kwargs", ")", "else", ":", "return", "dxpy", ".", "api", ".", "app_install", "(", "'app-'", "+", "self", ".", "_name", ",", "alias", "=", "self", ".", "_alias", ",", "*", "*", "kwargs", ")" ]
Installs the app in the current user's account.
[ "Installs", "the", "app", "in", "the", "current", "user", "s", "account", "." ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxapp.py#L301-L308
train
Installs the app in the current user s account.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ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D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110001) + '\x34' + chr(0b110000), 0o10), nzTpIcepk0o8('\060' + chr(0b101000 + 0o107) + '\x34' + chr(2093 - 2043), 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(0b11101 + 0o26) + chr(891 - 843) + chr(0b1101 + 0o50), 32428 - 32420), nzTpIcepk0o8('\060' + chr(111) + chr(0b110001) + chr(0b11000 + 0o36) + '\061', ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + '\062' + '\063' + '\060', ord("\x08")), nzTpIcepk0o8(chr(0b1000 + 0o50) + '\157' + '\061' + chr(52) + chr(2123 - 2072), 0b1000), nzTpIcepk0o8(chr(0b100111 + 0o11) + chr(0b1011110 + 0o21) + '\x35' + chr(54), ord("\x08")), nzTpIcepk0o8('\x30' + chr(6041 - 5930) + '\x32' + '\x33' + '\x37', ord("\x08")), nzTpIcepk0o8(chr(1163 - 1115) + chr(111) + chr(0b1111 + 0o42) + '\060' + chr(0b110111), ord("\x08")), nzTpIcepk0o8(chr(2264 - 2216) + chr(111) + '\x33' + chr(1185 - 1136) + '\x30', 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(463 - 412) + '\062' + '\x34', 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(287 - 238) + chr(0b110011) + '\066', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110001) + chr(1090 - 1040) + '\x36', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(51) + chr(2514 - 2459) + chr(0b110010), 0b1000), nzTpIcepk0o8('\x30' + chr(0b111010 + 0o65) + chr(0b11010 + 0o27) + chr(55) + chr(725 - 673), ord("\x08")), nzTpIcepk0o8(chr(2085 - 2037) + chr(0b1101111) + chr(51) + '\x36' + '\063', 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(0b10111 + 0o34) + chr(55), 15272 - 15264), nzTpIcepk0o8(chr(0b101000 + 0o10) + chr(111) + '\x31' + '\062' + '\x37', 57152 - 57144), nzTpIcepk0o8('\x30' + chr(0b100100 + 0o113) + chr(788 - 738) + '\064' + '\061', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110011) + chr(50) + '\064', 8), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b101110 + 0o3) + '\067', 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + '\062' + '\067' + chr(0b1111 + 0o45), ord("\x08")), nzTpIcepk0o8(chr(0b1 + 0o57) + '\157' + chr(128 - 78) + '\060', 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110011) + chr(0b10111 + 0o40) + chr(0b110000), 39372 - 39364), nzTpIcepk0o8(chr(48) + chr(0b1010111 + 0o30) + chr(49) + '\067', 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x31' + '\060' + chr(55), 8), nzTpIcepk0o8(chr(48) + '\157' + chr(2331 - 2277) + chr(0b1000 + 0o52), 0o10), nzTpIcepk0o8(chr(0b11101 + 0o23) + '\x6f' + '\062' + '\060' + chr(49), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\062' + '\x37' + chr(0b100110 + 0o12), 0b1000), nzTpIcepk0o8('\060' + chr(111) + '\x33' + '\066' + chr(54), 0b1000), nzTpIcepk0o8(chr(729 - 681) + chr(8023 - 7912) + '\x33' + chr(1573 - 1523) + chr(0b110100), 8), nzTpIcepk0o8('\060' + '\157' + chr(1438 - 1388) + '\x35' + '\065', 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110010) + chr(0b110001) + '\067', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110000 + 0o1) + chr(0b100001 + 0o25) + chr(0b110011), ord("\x08")), nzTpIcepk0o8(chr(0b1000 + 0o50) + '\x6f' + chr(0b100000 + 0o21) + chr(49) + chr(0b10010 + 0o41), 36891 - 36883), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\061' + chr(51) + '\x33', 0o10), nzTpIcepk0o8(chr(663 - 615) + '\157' + '\x33', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1011111 + 0o20) + chr(0b110 + 0o53) + chr(470 - 417) + '\062', 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b10 + 0o57) + chr(50) + '\067', 8), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(50) + chr(0b110010) + '\065', 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + '\157' + chr(0b110101) + chr(0b10 + 0o56), 41577 - 41569)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'N'), chr(2416 - 2316) + chr(6206 - 6105) + chr(0b101110 + 0o65) + chr(111) + chr(9033 - 8933) + '\145')(chr(0b1110001 + 0o4) + chr(0b1101111 + 0o5) + chr(102) + '\055' + chr(0b111000)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def KSUhHZwYE6t2(hXMPsSrOQzbh, **q5n0sHDDTy90): if roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x04\x14\x8e$\xf61\x7f\xe9q\xff\xe7k'), '\x64' + chr(0b1100101) + chr(0b110000 + 0o63) + chr(0b1101111) + chr(2950 - 2850) + chr(101))(chr(6134 - 6017) + chr(0b1110100) + chr(102) + chr(45) + '\070')) is not None: return roI3spqORKae(SsdNdRxXOwsF.api, roI3spqORKae(ES5oEprVxulp(b'\x01R\xb5.\xf1\r]\xeb&\xa4\xb8'), chr(0b1100100) + '\x65' + '\x63' + chr(111) + chr(0b1100100) + '\145')(chr(0b1110101) + '\x74' + '\146' + '\055' + chr(2605 - 2549)))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x04\x14\x8e$\xf61\x7f\xe9q\xff\xe7k'), '\144' + '\145' + '\143' + chr(0b1101111) + chr(0b1100100) + chr(5162 - 5061))(chr(13580 - 13463) + chr(878 - 762) + chr(0b110010 + 0o64) + '\x2d' + chr(0b111000))), **q5n0sHDDTy90) else: return roI3spqORKae(SsdNdRxXOwsF.api, roI3spqORKae(ES5oEprVxulp(b'\x01R\xb5.\xf1\r]\xeb&\xa4\xb8'), chr(0b1100100) + chr(0b10 + 0o143) + chr(0b100101 + 0o76) + chr(0b111001 + 0o66) + chr(4086 - 3986) + '\145')('\165' + '\x74' + chr(0b1100110) + chr(45) + chr(56)))(roI3spqORKae(ES5oEprVxulp(b'\x01R\xb5\\'), '\x64' + chr(0b1100101) + chr(99) + '\157' + chr(4728 - 4628) + chr(0b1100101))(chr(859 - 742) + '\164' + chr(8676 - 8574) + '\055' + chr(56)) + roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x15X\x80\x17\xf6(x\xe7\x0f\x9c\xa4k'), '\144' + chr(0b1100101) + '\143' + '\x6f' + chr(0b1100100) + '\x65')('\165' + chr(0b1110100) + chr(0b1100110) + chr(0b101101) + '\x38')), alias=roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x01f\x88\x18\xee\x10V\xc6?\xa3\xe45'), chr(0b1100100) + '\x65' + '\143' + chr(111) + chr(0b111 + 0o135) + '\145')('\165' + chr(0b1101100 + 0o10) + chr(9145 - 9043) + chr(1427 - 1382) + chr(56))), **q5n0sHDDTy90)
dnanexus/dx-toolkit
src/python/dxpy/bindings/dxapp.py
DXApp.uninstall
def uninstall(self, **kwargs): """ Uninstalls the app from the current user's account. """ if self._dxid is not None: return dxpy.api.app_uninstall(self._dxid, **kwargs) else: return dxpy.api.app_uninstall('app-' + self._name, alias=self._alias, **kwargs)
python
def uninstall(self, **kwargs): """ Uninstalls the app from the current user's account. """ if self._dxid is not None: return dxpy.api.app_uninstall(self._dxid, **kwargs) else: return dxpy.api.app_uninstall('app-' + self._name, alias=self._alias, **kwargs)
[ "def", "uninstall", "(", "self", ",", "*", "*", "kwargs", ")", ":", "if", "self", ".", "_dxid", "is", "not", "None", ":", "return", "dxpy", ".", "api", ".", "app_uninstall", "(", "self", ".", "_dxid", ",", "*", "*", "kwargs", ")", "else", ":", "return", "dxpy", ".", "api", ".", "app_uninstall", "(", "'app-'", "+", "self", ".", "_name", ",", "alias", "=", "self", ".", "_alias", ",", "*", "*", "kwargs", ")" ]
Uninstalls the app from the current user's account.
[ "Uninstalls", "the", "app", "from", "the", "current", "user", "s", "account", "." ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxapp.py#L310-L317
train
Uninstalls the app from the current user s account.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7U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_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b110000) + chr(949 - 838) + chr(50) + chr(0b110100) + chr(568 - 515), 58857 - 58849), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(1902 - 1852) + chr(0b11111 + 0o21), 0b1000), nzTpIcepk0o8(chr(0b1000 + 0o50) + '\x6f' + chr(0b110010) + chr(52) + chr(0b110000), 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(51) + chr(2163 - 2109) + '\x36', 55366 - 55358), nzTpIcepk0o8('\x30' + chr(0b1001011 + 0o44) + '\062' + '\x36' + '\062', 9237 - 9229), nzTpIcepk0o8('\060' + chr(0b110011 + 0o74) + chr(787 - 738) + '\062' + '\x32', 38050 - 38042), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\063' + '\x37' + '\x36', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b10100 + 0o133) + '\063' + '\x33' + chr(0b10010 + 0o41), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1010101 + 0o32) + chr(0b110011) + chr(48) + chr(53), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(51) + chr(0b101001 + 0o12) + '\x31', 15084 - 15076), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(51) + chr(0b110100) + '\x34', 45305 - 45297), nzTpIcepk0o8('\060' + chr(3148 - 3037) + chr(49) + chr(0b101111 + 0o1) + chr(53), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(462 - 351) + chr(0b10 + 0o57) + chr(2495 - 2445) + chr(0b110010), 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1001010 + 0o45) + chr(1061 - 1006) + '\060', ord("\x08")), nzTpIcepk0o8(chr(0b10100 + 0o34) + chr(0b1101111) + chr(51) + chr(344 - 294) + '\062', 0o10), nzTpIcepk0o8('\060' + '\157' + chr(0b110010) + chr(2143 - 2091) + chr(0b10101 + 0o33), 8), nzTpIcepk0o8(chr(2102 - 2054) + chr(4233 - 4122) + chr(0b110011) + chr(0b110010), 0b1000), nzTpIcepk0o8('\060' + chr(111) + '\x33' + '\061' + chr(0b100100 + 0o14), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(51) + chr(50) + chr(0b110110), 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x32' + chr(0b100100 + 0o23) + '\x32', ord("\x08")), nzTpIcepk0o8(chr(0b1010 + 0o46) + '\157' + chr(53) + '\x31', ord("\x08")), nzTpIcepk0o8(chr(0b1001 + 0o47) + '\157' + chr(893 - 845), 0o10), nzTpIcepk0o8(chr(48) + chr(3902 - 3791) + chr(0b1100 + 0o45) + '\060', 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + '\x32' + chr(49) + chr(53), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(2413 - 2362) + '\061', 0o10), nzTpIcepk0o8('\060' + chr(0b1100000 + 0o17) + chr(0b101011 + 0o14) + chr(1271 - 1222), ord("\x08")), nzTpIcepk0o8('\x30' + chr(5126 - 5015) + chr(0b110100) + chr(1047 - 992), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(8673 - 8562) + chr(0b100 + 0o56) + chr(51) + '\064', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101000 + 0o7) + '\066' + chr(0b101 + 0o55), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + '\061' + chr(282 - 230) + chr(0b110101), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b11111 + 0o120) + chr(2415 - 2363) + chr(0b110011), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(50) + '\x35' + '\x33', 0b1000), nzTpIcepk0o8(chr(0b1100 + 0o44) + chr(0b1101111) + chr(55) + chr(2504 - 2449), 0o10), nzTpIcepk0o8(chr(0b11000 + 0o30) + chr(0b101010 + 0o105) + '\x33' + chr(0b11110 + 0o26) + chr(0b110010), 0o10), nzTpIcepk0o8(chr(0b100 + 0o54) + '\157' + chr(0b110010) + '\x33' + chr(50), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b10000 + 0o41) + chr(0b100111 + 0o12) + chr(48), 0b1000), nzTpIcepk0o8(chr(646 - 598) + '\157' + '\063' + '\064' + chr(1887 - 1839), 0b1000), nzTpIcepk0o8(chr(362 - 314) + chr(111) + '\061' + chr(0b110110) + chr(0b100101 + 0o22), 0o10), nzTpIcepk0o8('\060' + chr(111) + '\x32' + chr(2204 - 2151) + chr(2306 - 2252), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110010) + chr(0b100100 + 0o20) + chr(0b101111 + 0o6), 8)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110 + 0o57) + '\060', 51417 - 51409)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x8b'), chr(6212 - 6112) + chr(101) + chr(0b1000110 + 0o35) + '\157' + '\x64' + chr(101))(chr(0b1110101) + chr(0b1100100 + 0o20) + '\146' + chr(0b101101) + '\070') + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def jeiKTO4sOXWU(hXMPsSrOQzbh, **q5n0sHDDTy90): if roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xc1&\xeb\xa3\xdc\x00\xaf\xad\xf3\xee\xd7p'), chr(9526 - 9426) + chr(0b1100101) + chr(99) + '\157' + chr(622 - 522) + chr(101))('\165' + chr(0b110010 + 0o102) + chr(7732 - 7630) + '\x2d' + chr(56))) is not None: return roI3spqORKae(SsdNdRxXOwsF.api, roI3spqORKae(ES5oEprVxulp(b'\xc4`\xd0\xa9\xc7<\x97\xb5\xb6\xad\x85)>'), '\144' + chr(8562 - 8461) + chr(99) + chr(0b1101111) + '\x64' + chr(0b1100101))(chr(0b10 + 0o163) + '\x74' + chr(0b1100110) + chr(0b11 + 0o52) + chr(56)))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xc1&\xeb\xa3\xdc\x00\xaf\xad\xf3\xee\xd7p'), '\x64' + '\x65' + chr(0b1100011) + chr(111) + '\144' + chr(101))(chr(0b1110101) + chr(0b1110100) + chr(102) + chr(0b101101) + chr(0b111000))), **q5n0sHDDTy90) else: return roI3spqORKae(SsdNdRxXOwsF.api, roI3spqORKae(ES5oEprVxulp(b'\xc4`\xd0\xa9\xc7<\x97\xb5\xb6\xad\x85)>'), chr(100) + chr(101) + chr(0b1000001 + 0o42) + chr(111) + chr(0b1100100) + '\145')(chr(3938 - 3821) + chr(0b1110011 + 0o1) + chr(102) + '\x2d' + chr(56)))(roI3spqORKae(ES5oEprVxulp(b'\xc4`\xd0\xdb'), '\144' + '\145' + chr(6662 - 6563) + '\157' + '\x64' + chr(0b1100101))(chr(0b101100 + 0o111) + '\x74' + '\146' + '\055' + chr(0b111000)) + roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xd0j\xe5\x90\xdc\x19\xa8\xa3\x8d\x8d\x94p'), chr(100) + chr(3116 - 3015) + chr(0b1100011) + '\x6f' + chr(100) + '\145')('\x75' + chr(0b1001011 + 0o51) + chr(5588 - 5486) + chr(0b101101) + '\x38')), alias=roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xc4T\xed\x9f\xc4!\x86\x82\xbd\xb2\xd4.'), chr(7242 - 7142) + '\x65' + chr(2797 - 2698) + chr(0b1101111) + chr(0b1100011 + 0o1) + chr(101))(chr(0b1100000 + 0o25) + '\164' + chr(1546 - 1444) + chr(1441 - 1396) + chr(0b111000))), **q5n0sHDDTy90)
dnanexus/dx-toolkit
src/python/dxpy/bindings/dxapp.py
DXApp.get
def get(self, **kwargs): """ :returns: Full specification of the remote app object :rtype: dict Returns the contents of the app. The result includes the key-value pairs as specified in the API documentation for the `/app-xxxx/get <https://wiki.dnanexus.com/API-Specification-v1.0.0/Apps#API-method%253A-%252Fapp-xxxx%255B%252Fyyyy%255D%252Fget>`_ method. """ if self._dxid is not None: return dxpy.api.app_get(self._dxid, **kwargs) else: return dxpy.api.app_get('app-' + self._name, alias=self._alias, **kwargs)
python
def get(self, **kwargs): """ :returns: Full specification of the remote app object :rtype: dict Returns the contents of the app. The result includes the key-value pairs as specified in the API documentation for the `/app-xxxx/get <https://wiki.dnanexus.com/API-Specification-v1.0.0/Apps#API-method%253A-%252Fapp-xxxx%255B%252Fyyyy%255D%252Fget>`_ method. """ if self._dxid is not None: return dxpy.api.app_get(self._dxid, **kwargs) else: return dxpy.api.app_get('app-' + self._name, alias=self._alias, **kwargs)
[ "def", "get", "(", "self", ",", "*", "*", "kwargs", ")", ":", "if", "self", ".", "_dxid", "is", "not", "None", ":", "return", "dxpy", ".", "api", ".", "app_get", "(", "self", ".", "_dxid", ",", "*", "*", "kwargs", ")", "else", ":", "return", "dxpy", ".", "api", ".", "app_get", "(", "'app-'", "+", "self", ".", "_name", ",", "alias", "=", "self", ".", "_alias", ",", "*", "*", "kwargs", ")" ]
:returns: Full specification of the remote app object :rtype: dict Returns the contents of the app. The result includes the key-value pairs as specified in the API documentation for the `/app-xxxx/get <https://wiki.dnanexus.com/API-Specification-v1.0.0/Apps#API-method%253A-%252Fapp-xxxx%255B%252Fyyyy%255D%252Fget>`_ method.
[ ":", "returns", ":", "Full", "specification", "of", "the", "remote", "app", "object", ":", "rtype", ":", "dict" ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxapp.py#L319-L333
train
Returns the full specification of the remote app object.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJp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S24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\x30' + chr(0b111110 + 0o61) + chr(50) + '\060' + chr(0b1010 + 0o53), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(590 - 540) + '\063', 0b1000), nzTpIcepk0o8(chr(48) + chr(4555 - 4444) + '\062' + '\062', ord("\x08")), nzTpIcepk0o8(chr(0b100 + 0o54) + '\157' + chr(706 - 657) + '\066' + chr(0b0 + 0o60), 43363 - 43355), nzTpIcepk0o8(chr(0b110000) + '\157' + '\061' + chr(49), ord("\x08")), nzTpIcepk0o8('\x30' + chr(10364 - 10253) + chr(0b110001) + '\x34', 0b1000), nzTpIcepk0o8(chr(1539 - 1491) + chr(0b1000111 + 0o50) + chr(0b11101 + 0o24) + chr(52) + chr(0b110011), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(7750 - 7639) + chr(49) + '\066' + chr(51), 61641 - 61633), nzTpIcepk0o8(chr(0b1100 + 0o44) + chr(0b1011111 + 0o20) + '\062' + '\x31' + '\x33', 0o10), nzTpIcepk0o8(chr(0b1111 + 0o41) + chr(111) + chr(0b110001) + '\x32' + chr(2318 - 2266), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b1011 + 0o46) + '\062', 0o10), nzTpIcepk0o8(chr(0b11111 + 0o21) + '\157' + chr(54) + '\x31', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b10010 + 0o135) + '\x32' + chr(50) + chr(0b10 + 0o56), 0b1000), nzTpIcepk0o8('\x30' + chr(7062 - 6951) + '\x32' + '\067' + '\x33', ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(0b110011) + chr(0b11111 + 0o30) + '\x34', 0o10), nzTpIcepk0o8('\x30' + chr(0b101100 + 0o103) + '\x33' + '\x31' + chr(0b110100), 0b1000), nzTpIcepk0o8('\060' + chr(0b10000 + 0o137) + '\x31' + chr(0b0 + 0o64) + chr(0b110000), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x33' + chr(1762 - 1707) + chr(0b101010 + 0o7), 0b1000), nzTpIcepk0o8(chr(0b100110 + 0o12) + '\157' + chr(0b10011 + 0o42), 16796 - 16788), nzTpIcepk0o8('\060' + chr(0b100010 + 0o115) + '\x31' + chr(52) + chr(54), 18505 - 18497), nzTpIcepk0o8(chr(1895 - 1847) + chr(0b11101 + 0o122) + chr(0b110001) + chr(52) + chr(0b110110), 8), nzTpIcepk0o8(chr(0b110000) + chr(0b10110 + 0o131) + chr(0b110001) + '\x34' + chr(0b11000 + 0o30), 8), nzTpIcepk0o8('\060' + chr(111) + chr(51) + '\x34' + chr(0b110001), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b11111 + 0o24) + '\x36', 0b1000), nzTpIcepk0o8(chr(1310 - 1262) + chr(794 - 683) + chr(0b11101 + 0o24) + chr(0b110110) + '\063', 8), nzTpIcepk0o8(chr(0b100101 + 0o13) + chr(0b111101 + 0o62) + '\x33' + '\062' + chr(0b110010), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(50) + chr(51) + chr(0b10101 + 0o34), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(1456 - 1407) + '\064' + chr(220 - 167), 0o10), nzTpIcepk0o8(chr(0b11011 + 0o25) + chr(111) + chr(1324 - 1274) + chr(0b100100 + 0o15) + '\x34', 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + '\067' + chr(54), 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + '\061' + chr(49) + chr(0b101 + 0o54), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\062' + chr(54) + '\x37', 0o10), nzTpIcepk0o8('\060' + '\157' + '\061' + chr(0b110011) + chr(102 - 54), 0o10), nzTpIcepk0o8('\060' + '\157' + chr(1297 - 1246) + chr(50) + '\061', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + '\063' + chr(48), 0o10), nzTpIcepk0o8(chr(0b0 + 0o60) + '\x6f' + chr(50) + chr(0b11 + 0o60) + chr(51), ord("\x08")), nzTpIcepk0o8(chr(0b101101 + 0o3) + chr(111) + chr(850 - 801) + '\064' + '\x32', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111 + 0o0) + chr(0b1010 + 0o51) + chr(0b110001) + '\x31', 36651 - 36643), nzTpIcepk0o8(chr(48) + chr(0b1101010 + 0o5) + '\x32' + '\x34' + chr(51), 0o10), nzTpIcepk0o8(chr(48) + chr(3331 - 3220) + chr(54) + chr(0b1000 + 0o53), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + chr(0b110100 + 0o73) + '\065' + chr(48), ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xab'), chr(100) + chr(101) + '\143' + chr(5711 - 5600) + chr(5331 - 5231) + chr(0b10000 + 0o125))(chr(0b1001001 + 0o54) + chr(116) + '\146' + chr(1897 - 1852) + '\x38') + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def GUKetu4xaGsJ(hXMPsSrOQzbh, **q5n0sHDDTy90): if roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xe1%Y%g^2\x05\xbdc9\x04'), '\x64' + chr(101) + chr(0b1010101 + 0o16) + chr(0b10011 + 0o134) + chr(5044 - 4944) + chr(0b1100101))('\x75' + chr(0b11110 + 0o126) + chr(0b1001010 + 0o34) + '\x2d' + '\070')) is not None: return roI3spqORKae(SsdNdRxXOwsF.api, roI3spqORKae(ES5oEprVxulp(b'\xe4cb/ni\x17'), chr(0b1001001 + 0o33) + chr(101) + '\143' + '\x6f' + chr(0b1100100) + '\145')(chr(0b1000010 + 0o63) + '\x74' + chr(0b1100110) + chr(45) + chr(56)))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xe1%Y%g^2\x05\xbdc9\x04'), chr(0b1100100) + chr(0b11111 + 0o106) + chr(0b1101 + 0o126) + chr(111) + chr(100) + chr(0b1100101))('\165' + '\164' + '\x66' + chr(45) + '\070')), **q5n0sHDDTy90) else: return roI3spqORKae(SsdNdRxXOwsF.api, roI3spqORKae(ES5oEprVxulp(b'\xe4cb/ni\x17'), chr(0b1100100) + chr(2954 - 2853) + '\143' + chr(6752 - 6641) + '\144' + chr(0b1010011 + 0o22))('\x75' + chr(0b1010110 + 0o36) + '\x66' + '\055' + '\070'))(roI3spqORKae(ES5oEprVxulp(b'\xe4cb]'), chr(0b11010 + 0o112) + chr(101) + '\143' + '\x6f' + chr(100) + '\145')(chr(0b1110101) + '\164' + chr(0b1100110) + '\055' + '\x38') + roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xf0iW\x16gG5\x0b\xc3\x00z\x04'), '\x64' + '\145' + '\x63' + '\x6f' + '\144' + chr(0b1001010 + 0o33))(chr(9688 - 9571) + '\164' + chr(0b1010000 + 0o26) + chr(132 - 87) + '\070')), alias=roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xe4W_\x19\x7f\x7f\x1b*\xf3?:Z'), '\144' + '\145' + chr(6651 - 6552) + '\157' + '\144' + chr(1759 - 1658))(chr(117) + '\164' + chr(0b1100110) + '\x2d' + '\x38')), **q5n0sHDDTy90)
dnanexus/dx-toolkit
src/python/dxpy/bindings/dxapp.py
DXApp.delete
def delete(self, **kwargs): """ Removes this app object from the platform. The current user must be a developer of the app. """ if self._dxid is not None: return dxpy.api.app_delete(self._dxid, **kwargs) else: return dxpy.api.app_delete('app-' + self._name, alias=self._alias, **kwargs)
python
def delete(self, **kwargs): """ Removes this app object from the platform. The current user must be a developer of the app. """ if self._dxid is not None: return dxpy.api.app_delete(self._dxid, **kwargs) else: return dxpy.api.app_delete('app-' + self._name, alias=self._alias, **kwargs)
[ "def", "delete", "(", "self", ",", "*", "*", "kwargs", ")", ":", "if", "self", ".", "_dxid", "is", "not", "None", ":", "return", "dxpy", ".", "api", ".", "app_delete", "(", "self", ".", "_dxid", ",", "*", "*", "kwargs", ")", "else", ":", "return", "dxpy", ".", "api", ".", "app_delete", "(", "'app-'", "+", "self", ".", "_name", ",", "alias", "=", "self", ".", "_alias", ",", "*", "*", "kwargs", ")" ]
Removes this app object from the platform. The current user must be a developer of the app.
[ "Removes", "this", "app", "object", "from", "the", "platform", "." ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxapp.py#L346-L355
train
Removes this app object from the platform.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4R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,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b110000) + chr(0b1100001 + 0o16) + chr(0b110101) + '\063', 0o10), nzTpIcepk0o8(chr(48) + chr(12251 - 12140) + '\x33' + '\060' + chr(0b10110 + 0o35), 0o10), nzTpIcepk0o8(chr(0b100001 + 0o17) + chr(0b1100000 + 0o17) + chr(1237 - 1187) + chr(54) + chr(369 - 321), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x35' + chr(0b110000), 31651 - 31643), nzTpIcepk0o8(chr(0b10011 + 0o35) + chr(0b1000010 + 0o55) + '\x33' + '\064' + chr(49), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\063' + '\x33' + chr(2834 - 2780), ord("\x08")), nzTpIcepk0o8(chr(2144 - 2096) + chr(11273 - 11162) + chr(851 - 802) + chr(0b10101 + 0o40) + chr(50), 52904 - 52896), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110010) + chr(54) + '\066', ord("\x08")), nzTpIcepk0o8(chr(996 - 948) + chr(0b1101111) + '\061' + chr(0b10010 + 0o44) + '\065', 19952 - 19944), nzTpIcepk0o8('\x30' + '\157' + '\x32' + '\x30' + '\x35', 46428 - 46420), nzTpIcepk0o8('\060' + chr(111) + chr(51) + '\x31' + '\067', ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(1013 - 958) + chr(0b100000 + 0o27), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(0b11100 + 0o25) + chr(0b110010) + chr(0b110010), 35305 - 35297), nzTpIcepk0o8(chr(2055 - 2007) + chr(0b101101 + 0o102) + chr(0b110110), 36550 - 36542), nzTpIcepk0o8(chr(0b110 + 0o52) + chr(0b1101111) + chr(0b10011 + 0o36) + chr(0b110101) + chr(0b110011), 0o10), nzTpIcepk0o8(chr(0b10001 + 0o37) + chr(10689 - 10578) + chr(49) + chr(0b110010) + chr(1916 - 1863), 29874 - 29866), nzTpIcepk0o8('\x30' + chr(0b1011101 + 0o22) + chr(495 - 445) + chr(610 - 555) + chr(53), 0b1000), nzTpIcepk0o8(chr(427 - 379) + chr(0b1101111) + '\x33' + '\x30' + chr(1517 - 1467), 0o10), nzTpIcepk0o8(chr(48) + chr(6370 - 6259) + chr(50) + chr(1175 - 1123) + chr(0b110111), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + '\064' + chr(0b100101 + 0o17), 0o10), nzTpIcepk0o8('\x30' + '\157' + '\x37' + chr(50), ord("\x08")), nzTpIcepk0o8(chr(0b10000 + 0o40) + '\x6f' + chr(2060 - 2010) + chr(470 - 416) + chr(53), 36753 - 36745), nzTpIcepk0o8(chr(143 - 95) + chr(111) + chr(0b1100 + 0o47) + chr(387 - 339) + chr(53), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110011) + chr(0b110001), 63846 - 63838), nzTpIcepk0o8(chr(48) + chr(0b11100 + 0o123) + chr(0b110010) + '\064' + '\x30', 0b1000), nzTpIcepk0o8(chr(942 - 894) + chr(9087 - 8976) + chr(0b110001) + chr(0b110110) + '\060', 11556 - 11548), nzTpIcepk0o8('\060' + chr(0b101001 + 0o106) + '\x31' + chr(55) + chr(0b110000), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b100111 + 0o110) + chr(977 - 926) + chr(0b1101 + 0o46) + '\060', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x35' + '\062', 0o10), nzTpIcepk0o8(chr(0b110 + 0o52) + chr(0b1100111 + 0o10) + chr(49) + '\x32' + chr(1064 - 1011), 8), nzTpIcepk0o8(chr(0b110000) + chr(0b11 + 0o154) + '\x32' + '\x34' + chr(51), ord("\x08")), nzTpIcepk0o8(chr(1874 - 1826) + '\x6f' + chr(49) + '\067' + chr(0b110010), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1010101 + 0o32) + chr(1362 - 1312) + chr(0b110000) + chr(232 - 184), 0o10), nzTpIcepk0o8('\060' + chr(0b101001 + 0o106) + '\062' + chr(50) + chr(0b1011 + 0o54), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\063' + chr(0b1111 + 0o47) + chr(1270 - 1219), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + '\063' + chr(49) + chr(0b110111), 8), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(1895 - 1844) + '\063' + chr(0b110101), ord("\x08")), nzTpIcepk0o8(chr(0b1011 + 0o45) + '\x6f' + chr(50) + chr(1049 - 1000) + chr(0b100111 + 0o20), 0b1000), nzTpIcepk0o8('\x30' + chr(5184 - 5073) + '\x31' + chr(0b100111 + 0o15) + '\063', 0o10), nzTpIcepk0o8('\060' + '\157' + chr(260 - 210) + chr(0b110101) + '\x34', 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b1 + 0o57) + '\x6f' + chr(53) + chr(2115 - 2067), 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x05'), chr(100) + chr(2764 - 2663) + chr(99) + '\x6f' + chr(0b1000101 + 0o37) + chr(0b1100101))(chr(117) + chr(116) + chr(0b110001 + 0o65) + chr(0b101101) + '\x38') + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def gNQxGQmbJXBt(hXMPsSrOQzbh, **q5n0sHDDTy90): if roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'O\xf5\xfb}\x8f\x8c;\xc0C\xb2\xfc\n'), '\x64' + chr(7551 - 7450) + chr(0b11 + 0o140) + chr(1377 - 1266) + chr(4006 - 3906) + '\x65')(chr(0b111111 + 0o66) + chr(12689 - 12573) + '\x66' + chr(0b101101) + chr(0b100111 + 0o21))) is not None: return roI3spqORKae(SsdNdRxXOwsF.api, roI3spqORKae(ES5oEprVxulp(b'J\xb3\xc0w\x85\xbb\x06\xd3\x01\xe0'), chr(641 - 541) + '\x65' + '\143' + chr(111) + chr(7200 - 7100) + '\x65')(chr(117) + '\164' + chr(102) + chr(0b101101) + '\x38'))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'O\xf5\xfb}\x8f\x8c;\xc0C\xb2\xfc\n'), chr(5377 - 5277) + '\x65' + chr(0b1100011) + '\157' + '\144' + chr(0b1100101))('\x75' + '\x74' + chr(0b110100 + 0o62) + '\x2d' + chr(56))), **q5n0sHDDTy90) else: return roI3spqORKae(SsdNdRxXOwsF.api, roI3spqORKae(ES5oEprVxulp(b'J\xb3\xc0w\x85\xbb\x06\xd3\x01\xe0'), chr(100) + chr(0b1100101) + chr(0b1001100 + 0o27) + '\x6f' + chr(3322 - 3222) + chr(0b1100101))('\165' + '\x74' + chr(102) + '\055' + chr(56)))(roI3spqORKae(ES5oEprVxulp(b'J\xb3\xc0\x05'), '\144' + '\145' + chr(0b1100011) + '\157' + chr(100) + '\145')('\x75' + '\x74' + chr(0b1100110) + chr(45) + '\070') + roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'^\xb9\xf5N\x8f\x95<\xce=\xd1\xbf\n'), chr(0b1001011 + 0o31) + chr(9351 - 9250) + chr(99) + chr(111) + chr(4245 - 4145) + chr(101))(chr(0b1001001 + 0o54) + chr(0b1110100) + chr(8173 - 8071) + chr(45) + '\070')), alias=roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'J\x87\xfdA\x97\xad\x12\xef\r\xee\xffT'), chr(0b1100100) + chr(101) + '\143' + '\157' + '\x64' + chr(0b110000 + 0o65))(chr(0b111100 + 0o71) + '\164' + '\x66' + '\055' + '\x38')), **q5n0sHDDTy90)
dnanexus/dx-toolkit
src/python/dxpy/bindings/dxapp.py
DXApp.run
def run(self, app_input, *args, **kwargs): """ Creates a new job that executes the function "main" of this app with the given input *app_input*. See :meth:`dxpy.bindings.dxapplet.DXExecutable.run` for the available args. """ # Rename app_input to preserve API compatibility when calling # DXApp.run(app_input=...). return super(DXApp, self).run(app_input, *args, **kwargs)
python
def run(self, app_input, *args, **kwargs): """ Creates a new job that executes the function "main" of this app with the given input *app_input*. See :meth:`dxpy.bindings.dxapplet.DXExecutable.run` for the available args. """ # Rename app_input to preserve API compatibility when calling # DXApp.run(app_input=...). return super(DXApp, self).run(app_input, *args, **kwargs)
[ "def", "run", "(", "self", ",", "app_input", ",", "*", "args", ",", "*", "*", "kwargs", ")", ":", "# Rename app_input to preserve API compatibility when calling", "# DXApp.run(app_input=...).", "return", "super", "(", "DXApp", ",", "self", ")", ".", "run", "(", "app_input", ",", "*", "args", ",", "*", "*", "kwargs", ")" ]
Creates a new job that executes the function "main" of this app with the given input *app_input*. See :meth:`dxpy.bindings.dxapplet.DXExecutable.run` for the available args.
[ "Creates", "a", "new", "job", "that", "executes", "the", "function", "main", "of", "this", "app", "with", "the", "given", "input", "*", "app_input", "*", "." ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxapp.py#L380-L390
train
Creates a new job that executes the function main of this app with the given input *app_input*.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,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qT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b110000 + 0o0) + chr(0b1101111) + chr(0b11100 + 0o26) + chr(0b110101) + '\x35', 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + '\x32' + chr(53) + chr(48), 0o10), nzTpIcepk0o8('\x30' + chr(243 - 132) + '\x33' + '\x32' + chr(594 - 543), 24445 - 24437), nzTpIcepk0o8('\x30' + '\157' + '\063' + chr(0b110101) + chr(0b11001 + 0o35), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x33' + chr(0b110100) + '\063', 0b1000), nzTpIcepk0o8('\060' + chr(0b1101001 + 0o6) + chr(0b110010) + '\063' + chr(54), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(163 - 113) + chr(0b101 + 0o62) + '\066', 44232 - 44224), nzTpIcepk0o8(chr(0b110000) + chr(3870 - 3759) + chr(0b110011) + chr(911 - 861) + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(2069 - 2021) + '\x6f' + '\062' + chr(53) + '\x34', 0o10), nzTpIcepk0o8('\060' + chr(111) + '\x31' + chr(52), 0b1000), nzTpIcepk0o8(chr(88 - 40) + chr(8176 - 8065) + chr(2283 - 2233) + '\060' + '\x30', 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110001) + chr(0b110101), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(3893 - 3782) + '\061' + '\066' + '\x32', ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110010) + chr(53) + chr(50), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\063' + chr(435 - 387) + chr(54), 43178 - 43170), nzTpIcepk0o8(chr(0b10111 + 0o31) + chr(0b1100001 + 0o16) + chr(0b110001) + chr(0b101010 + 0o12) + chr(0b110111), 0o10), nzTpIcepk0o8(chr(1626 - 1578) + chr(2236 - 2125) + '\065' + chr(0b11010 + 0o27), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(51) + chr(52) + chr(0b1011 + 0o54), 65092 - 65084), nzTpIcepk0o8('\x30' + chr(9184 - 9073) + chr(2124 - 2075) + '\063' + chr(305 - 255), 0b1000), nzTpIcepk0o8(chr(359 - 311) + chr(111) + '\x33' + '\065' + chr(0b100100 + 0o17), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b101001 + 0o12) + chr(2051 - 1996) + chr(227 - 174), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + '\064' + '\x36', 0o10), nzTpIcepk0o8(chr(1456 - 1408) + '\157' + '\063' + '\060' + '\060', 4479 - 4471), nzTpIcepk0o8(chr(0b11101 + 0o23) + '\x6f' + chr(0b10101 + 0o34) + chr(0b11110 + 0o25), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + '\063' + chr(0b10010 + 0o36) + chr(0b110010 + 0o3), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110010) + chr(50), 43854 - 43846), nzTpIcepk0o8(chr(48) + '\x6f' + '\x32' + chr(0b101 + 0o54), 61577 - 61569), nzTpIcepk0o8(chr(1466 - 1418) + chr(111) + chr(1176 - 1127) + '\064' + chr(51), 0b1000), nzTpIcepk0o8(chr(0b100001 + 0o17) + '\x6f' + '\x32' + chr(0b110101) + chr(0b101100 + 0o4), 8), nzTpIcepk0o8(chr(0b110000) + chr(0b111000 + 0o67) + '\063' + '\060' + chr(0b110010), 25732 - 25724), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(1592 - 1540) + chr(53), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\062' + chr(54) + chr(0b110001), 0o10), nzTpIcepk0o8(chr(0b10110 + 0o32) + chr(0b1101111) + '\x32' + chr(948 - 893), ord("\x08")), nzTpIcepk0o8('\x30' + chr(9621 - 9510) + '\x31' + '\x31' + chr(1162 - 1112), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(49) + chr(0b101111 + 0o4) + chr(1218 - 1170), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + '\063' + '\063' + '\x36', 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x31' + chr(0b100110 + 0o21) + chr(336 - 285), 0b1000), nzTpIcepk0o8('\060' + chr(0b1010100 + 0o33) + chr(2585 - 2534) + chr(1785 - 1734) + chr(48), 0o10), nzTpIcepk0o8('\060' + chr(2569 - 2458) + chr(50) + chr(49) + '\062', ord("\x08")), nzTpIcepk0o8(chr(0b1100 + 0o44) + '\x6f' + chr(0b100101 + 0o15) + chr(0b110001) + '\067', 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(937 - 889) + chr(0b1010110 + 0o31) + chr(1118 - 1065) + '\060', 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x83'), chr(100) + '\145' + chr(0b1100011) + '\157' + chr(100) + '\x65')(chr(117) + chr(0b1100111 + 0o15) + '\x66' + chr(0b11011 + 0o22) + chr(0b110011 + 0o5)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def qnPOIdBQJdzY(hXMPsSrOQzbh, WuyWc5qmE5zi, *eemPYp2vtTSr, **q5n0sHDDTy90): return roI3spqORKae(CO2YiXoIEhJY(CILTbeMCsWjB, hXMPsSrOQzbh), roI3spqORKae(ES5oEprVxulp(b'\xdc\xc6\x83\xa1\xaa\xfa\xfc\x80\xe6h\xfaT'), '\x64' + chr(0b10100 + 0o121) + chr(0b1010110 + 0o15) + chr(0b100101 + 0o112) + '\144' + chr(4215 - 4114))(chr(3371 - 3254) + '\164' + chr(102) + chr(0b101101) + chr(0b111000)))(WuyWc5qmE5zi, *eemPYp2vtTSr, **q5n0sHDDTy90)
dnanexus/dx-toolkit
src/python/dxpy/workflow_builder.py
_parse_executable_spec
def _parse_executable_spec(src_dir, json_file_name, parser): """ Returns the parsed contents of a json specification. Raises WorkflowBuilderException (exit code 3) if this cannot be done. """ if not os.path.isdir(src_dir): parser.error("{} is not a directory".format(src_dir)) if not os.path.exists(os.path.join(src_dir, json_file_name)): raise WorkflowBuilderException( "Directory {} does not contain dxworkflow.json: not a valid DNAnexus workflow source directory" .format(src_dir)) with open(os.path.join(src_dir, json_file_name)) as desc: try: return json_load_raise_on_duplicates(desc) except Exception as e: raise WorkflowBuilderException("Could not parse {} file as JSON: {}".format(json_file_name, e.args))
python
def _parse_executable_spec(src_dir, json_file_name, parser): """ Returns the parsed contents of a json specification. Raises WorkflowBuilderException (exit code 3) if this cannot be done. """ if not os.path.isdir(src_dir): parser.error("{} is not a directory".format(src_dir)) if not os.path.exists(os.path.join(src_dir, json_file_name)): raise WorkflowBuilderException( "Directory {} does not contain dxworkflow.json: not a valid DNAnexus workflow source directory" .format(src_dir)) with open(os.path.join(src_dir, json_file_name)) as desc: try: return json_load_raise_on_duplicates(desc) except Exception as e: raise WorkflowBuilderException("Could not parse {} file as JSON: {}".format(json_file_name, e.args))
[ "def", "_parse_executable_spec", "(", "src_dir", ",", "json_file_name", ",", "parser", ")", ":", "if", "not", "os", ".", "path", ".", "isdir", "(", "src_dir", ")", ":", "parser", ".", "error", "(", "\"{} is not a directory\"", ".", "format", "(", "src_dir", ")", ")", "if", "not", "os", ".", "path", ".", "exists", "(", "os", ".", "path", ".", "join", "(", "src_dir", ",", "json_file_name", ")", ")", ":", "raise", "WorkflowBuilderException", "(", "\"Directory {} does not contain dxworkflow.json: not a valid DNAnexus workflow source directory\"", ".", "format", "(", "src_dir", ")", ")", "with", "open", "(", "os", ".", "path", ".", "join", "(", "src_dir", ",", "json_file_name", ")", ")", "as", "desc", ":", "try", ":", "return", "json_load_raise_on_duplicates", "(", "desc", ")", "except", "Exception", "as", "e", ":", "raise", "WorkflowBuilderException", "(", "\"Could not parse {} file as JSON: {}\"", ".", "format", "(", "json_file_name", ",", "e", ".", "args", ")", ")" ]
Returns the parsed contents of a json specification. Raises WorkflowBuilderException (exit code 3) if this cannot be done.
[ "Returns", "the", "parsed", "contents", "of", "a", "json", "specification", ".", "Raises", "WorkflowBuilderException", "(", "exit", "code", "3", ")", "if", "this", "cannot", "be", "done", "." ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/workflow_builder.py#L52-L69
train
Parses a dxworkflow. json file into a list of dictionaries.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq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VP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110101) + chr(55), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b100 + 0o57) + '\062' + '\065', ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(0b110011) + chr(0b10001 + 0o45) + chr(0b10 + 0o64), 0o10), nzTpIcepk0o8(chr(2044 - 1996) + chr(0b11110 + 0o121) + '\x32' + '\065' + chr(0b110001), 15936 - 15928), nzTpIcepk0o8(chr(48) + '\157' + chr(877 - 827) + chr(0b110110 + 0o1) + chr(0b110100), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1100101 + 0o12) + chr(0b110010) + '\x35' + '\060', 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111 + 0o0) + chr(1629 - 1580) + chr(0b110010) + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(7155 - 7044) + '\063' + chr(1696 - 1641) + chr(1411 - 1358), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + '\062' + chr(0b110011 + 0o3) + chr(522 - 469), 0b1000), nzTpIcepk0o8(chr(1342 - 1294) + chr(0b1101111) + chr(0b110001) + '\067' + chr(1221 - 1171), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(51) + chr(0b110100) + chr(48), 0b1000), nzTpIcepk0o8('\x30' + chr(9331 - 9220) + '\x34' + chr(54), 0b1000), nzTpIcepk0o8(chr(48) + chr(12303 - 12192) + chr(50) + '\x31' + chr(0b110000), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\062' + chr(0b110001) + chr(0b110110), 48061 - 48053), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110001) + chr(54) + chr(0b110110), 45661 - 45653), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(53) + '\063', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x32' + '\x36' + '\x33', 40463 - 40455), nzTpIcepk0o8(chr(0b110000) + chr(9906 - 9795) + '\x32' + chr(909 - 858) + chr(0b11010 + 0o27), 20607 - 20599), nzTpIcepk0o8('\060' + chr(111) + chr(0b110011) + '\064' + chr(51), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(5468 - 5357) + '\061' + chr(1317 - 1266) + chr(0b110111), 0o10), nzTpIcepk0o8(chr(0b10000 + 0o40) + chr(0b111111 + 0o60) + chr(51) + chr(0b1 + 0o63) + chr(0b110011), 8), nzTpIcepk0o8(chr(0b110000) + chr(5836 - 5725) + '\061' + chr(48) + chr(48), ord("\x08")), nzTpIcepk0o8(chr(0b1110 + 0o42) + chr(111) + chr(49) + chr(1586 - 1536) + chr(0b110101), ord("\x08")), nzTpIcepk0o8(chr(0b1000 + 0o50) + '\x6f' + chr(0b11110 + 0o23) + chr(0b110011) + '\x36', ord("\x08")), nzTpIcepk0o8(chr(0b101101 + 0o3) + chr(0b101001 + 0o106) + chr(963 - 914) + chr(53), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b100111 + 0o13) + '\061' + chr(0b110100), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b1111 + 0o43) + chr(1566 - 1513) + chr(0b101101 + 0o11), 0b1000), nzTpIcepk0o8('\060' + '\157' + '\061' + '\x37' + chr(54), 4252 - 4244), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(50) + chr(0b110011) + chr(0b110101), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1011001 + 0o26) + chr(0b11011 + 0o27) + chr(0b110000), 0o10), nzTpIcepk0o8('\060' + chr(0b111110 + 0o61) + '\x31' + '\066' + chr(0b110010), 0o10), nzTpIcepk0o8(chr(1137 - 1089) + chr(0b1011101 + 0o22) + chr(0b11101 + 0o25) + '\062' + chr(0b11101 + 0o26), 0o10), nzTpIcepk0o8(chr(895 - 847) + chr(0b1000000 + 0o57) + '\061' + chr(52) + chr(109 - 61), 13630 - 13622), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\061' + '\061' + chr(0b110110), 21386 - 21378), nzTpIcepk0o8(chr(1022 - 974) + chr(0b1101111) + chr(0b100 + 0o57) + chr(53) + '\x32', ord("\x08")), nzTpIcepk0o8(chr(204 - 156) + chr(111) + '\x33' + chr(51) + chr(52), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(2131 - 2080) + chr(0b10110 + 0o33) + '\x35', 48464 - 48456), nzTpIcepk0o8(chr(189 - 141) + chr(0b1010101 + 0o32) + chr(475 - 426) + chr(0b110101), 8), nzTpIcepk0o8(chr(48) + chr(0b1011010 + 0o25) + chr(1062 - 1012), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(49) + chr(55) + chr(2259 - 2207), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(753 - 705) + chr(0b1000010 + 0o55) + '\065' + '\x30', 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x01'), '\144' + '\145' + chr(0b1010000 + 0o23) + chr(0b1000010 + 0o55) + chr(0b11101 + 0o107) + chr(101))(chr(10979 - 10862) + chr(12410 - 12294) + '\146' + chr(1323 - 1278) + chr(0b10 + 0o66)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def vm0mZOcp7az8(zgBFj9gT640a, eAIxeDKRiSdt, ELQLGvoVr2Z_): if not roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'w\xbd\xa6\x98\xe6\xdc\x13\xc4\xd4+\x9ad'), chr(0b1110 + 0o126) + chr(10118 - 10017) + '\x63' + chr(0b11001 + 0o126) + '\x64' + '\x65')(chr(9824 - 9707) + chr(116) + chr(1714 - 1612) + chr(45) + '\070'))(zgBFj9gT640a): roI3spqORKae(ELQLGvoVr2Z_, roI3spqORKae(ES5oEprVxulp(b'^\xbc\xc7\xde\xd5\xd8\x01\xab\xc3?\xabB'), chr(100) + chr(101) + chr(0b101011 + 0o70) + '\x6f' + chr(100) + chr(0b1010011 + 0o22))(chr(117) + chr(7934 - 7818) + chr(6721 - 6619) + chr(0b101101) + '\x38'))(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'T\xa8\xd6\xc0\xcf\x88?\x92\xc1Z\x81\x06\xec\xe7\x04N\xd0\xed\x8c-\x9a'), '\144' + chr(0b1100101) + chr(0b10 + 0o141) + chr(111) + chr(100) + '\x65')(chr(0b1110101) + chr(116) + '\x66' + chr(45) + chr(0b111000)), roI3spqORKae(ES5oEprVxulp(b'^\xe6\xc5\xe2\xfb\x9b7\x92\xe4%\xa3l'), '\x64' + chr(0b1100101) + '\x63' + '\157' + chr(100) + chr(0b1100101))(chr(117) + chr(8588 - 8472) + chr(6933 - 6831) + chr(0b101101) + chr(0b111000)))(zgBFj9gT640a)) if not roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'U\x86\xbf\xd0\xd2\xf8$\xb8\xc3\x16\xb1\x12'), chr(0b1100100) + chr(0b100011 + 0o102) + '\143' + '\x6f' + chr(2080 - 1980) + '\145')('\x75' + '\164' + chr(9571 - 9469) + chr(1320 - 1275) + '\x38'))(roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'v\xe1\x8f\xe4\x85\xea2\x9b\xe19\xaeW'), chr(0b1100100) + '\145' + chr(99) + chr(0b1101111) + '\x64' + chr(0b1000010 + 0o43))('\165' + '\x74' + '\146' + chr(0b10110 + 0o27) + '\070'))(zgBFj9gT640a, eAIxeDKRiSdt)): raise bvzaJ98LpDhC(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'k\xbc\x84\xcc\xdf\xdc>\x8f\xccZ\x9b[\xa8\xea\x19N\xc0\xb9\x8d0\x97`61c\xf8\xcf\x17\xf30\x16\xeb\x17!\x98\xb7\xabam\x0b\x01\xbf\x85\xc6\xd2\x92q\x93\xda\x0e\xc0G\xa8\xf8\x17G\xda\xfd\xc3\x1b\xad\x01;;u\xf9\xdd^\xea\x7f\x00\xf8\x06"\x85\xab\xed~m\t]\xb6\x93\x89\xd8\xc1#\x98\xd6\x0e\x8fT\xf1'), '\144' + chr(0b1100101) + chr(0b1100011) + '\x6f' + chr(8064 - 7964) + chr(8972 - 8871))(chr(2534 - 2417) + chr(9885 - 9769) + '\x66' + chr(0b101101) + chr(56)), roI3spqORKae(ES5oEprVxulp(b'^\xe6\xc5\xe2\xfb\x9b7\x92\xe4%\xa3l'), '\x64' + chr(101) + '\x63' + '\x6f' + chr(100) + '\x65')(chr(0b1101000 + 0o15) + chr(3135 - 3019) + chr(0b1100110) + chr(0b101011 + 0o2) + chr(1868 - 1812)))(zgBFj9gT640a)) with DnU3Rq9N5ala(roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'v\xe1\x8f\xe4\x85\xea2\x9b\xe19\xaeW'), chr(0b110011 + 0o61) + chr(0b1100001 + 0o4) + chr(99) + '\157' + '\x64' + chr(0b1100101))(chr(10702 - 10585) + '\x74' + '\146' + chr(1594 - 1549) + chr(1969 - 1913)))(zgBFj9gT640a, eAIxeDKRiSdt)) as iSl7yqRxEcuG: try: return eecG0I39JAU1(iSl7yqRxEcuG) except zfo2Sgkz3IVJ as wgf0sgcu_xPL: raise bvzaJ98LpDhC(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'l\xba\x83\xc5\xd8\x88?\x92\xc1Z\x90G\xfa\xfd\x13\x0b\xc8\xe4\xc39\x8a,0~l\xff\x8e4\xce_<\xa9@5\x97'), chr(5375 - 5275) + chr(5496 - 5395) + '\x63' + '\157' + chr(0b1100100) + '\x65')(chr(117) + '\164' + chr(0b1100110) + chr(615 - 570) + '\x38'), roI3spqORKae(ES5oEprVxulp(b'^\xe6\xc5\xe2\xfb\x9b7\x92\xe4%\xa3l'), '\x64' + chr(0b1010010 + 0o23) + chr(99) + chr(111) + chr(0b1100100) + '\145')('\x75' + chr(116) + '\146' + chr(1464 - 1419) + '\x38'))(eAIxeDKRiSdt, roI3spqORKae(wgf0sgcu_xPL, roI3spqORKae(ES5oEprVxulp(b'J\xb0\x9b\xf9\xe5\xd8c\x8b\xc1.\xb3T'), chr(100) + '\145' + '\143' + chr(9912 - 9801) + chr(100) + chr(0b1010000 + 0o25))('\165' + chr(116) + chr(0b1010010 + 0o24) + '\055' + chr(0b111000)))))
dnanexus/dx-toolkit
src/python/dxpy/workflow_builder.py
_get_destination_project
def _get_destination_project(json_spec, args, build_project_id=None): """ Returns destination project in which the workflow should be created. In can be set in multiple ways whose order of precedence is: 1. --destination, -d option supplied with `dx build`, 2. 'project' specified in the json file, 3. project set in the dxpy.WORKSPACE_ID environment variable. """ if build_project_id: return build_project_id if 'project' in json_spec: return json_spec['project'] if dxpy.WORKSPACE_ID: return dxpy.WORKSPACE_ID error_msg = "Can't create a workflow without specifying a destination project; " error_msg += "please use the -d/--destination flag to explicitly specify a project" raise WorkflowBuilderException(error_msg)
python
def _get_destination_project(json_spec, args, build_project_id=None): """ Returns destination project in which the workflow should be created. In can be set in multiple ways whose order of precedence is: 1. --destination, -d option supplied with `dx build`, 2. 'project' specified in the json file, 3. project set in the dxpy.WORKSPACE_ID environment variable. """ if build_project_id: return build_project_id if 'project' in json_spec: return json_spec['project'] if dxpy.WORKSPACE_ID: return dxpy.WORKSPACE_ID error_msg = "Can't create a workflow without specifying a destination project; " error_msg += "please use the -d/--destination flag to explicitly specify a project" raise WorkflowBuilderException(error_msg)
[ "def", "_get_destination_project", "(", "json_spec", ",", "args", ",", "build_project_id", "=", "None", ")", ":", "if", "build_project_id", ":", "return", "build_project_id", "if", "'project'", "in", "json_spec", ":", "return", "json_spec", "[", "'project'", "]", "if", "dxpy", ".", "WORKSPACE_ID", ":", "return", "dxpy", ".", "WORKSPACE_ID", "error_msg", "=", "\"Can't create a workflow without specifying a destination project; \"", "error_msg", "+=", "\"please use the -d/--destination flag to explicitly specify a project\"", "raise", "WorkflowBuilderException", "(", "error_msg", ")" ]
Returns destination project in which the workflow should be created. In can be set in multiple ways whose order of precedence is: 1. --destination, -d option supplied with `dx build`, 2. 'project' specified in the json file, 3. project set in the dxpy.WORKSPACE_ID environment variable.
[ "Returns", "destination", "project", "in", "which", "the", "workflow", "should", "be", "created", ".", "In", "can", "be", "set", "in", "multiple", "ways", "whose", "order", "of", "precedence", "is", ":", "1", ".", "--", "destination", "-", "d", "option", "supplied", "with", "dx", "build", "2", ".", "project", "specified", "in", "the", "json", "file", "3", ".", "project", "set", "in", "the", "dxpy", ".", "WORKSPACE_ID", "environment", "variable", "." ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/workflow_builder.py#L72-L88
train
Returns the project in which the workflow should be created.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTO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HTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(927 - 879) + '\157' + chr(0b10000 + 0o42) + '\x37' + '\067', 52659 - 52651), nzTpIcepk0o8(chr(466 - 418) + chr(111) + chr(0b100000 + 0o22) + chr(300 - 250) + '\067', 29686 - 29678), nzTpIcepk0o8(chr(0b110000) + chr(9097 - 8986) + chr(503 - 451) + chr(0b101011 + 0o6), ord("\x08")), nzTpIcepk0o8(chr(0b10001 + 0o37) + chr(111) + chr(0b110001 + 0o0) + chr(1834 - 1784) + '\x33', 0o10), nzTpIcepk0o8(chr(0b1110 + 0o42) + chr(0b1011001 + 0o26) + chr(0b110011) + '\062', 0o10), nzTpIcepk0o8(chr(2028 - 1980) + chr(0b1100101 + 0o12) + chr(1379 - 1330) + chr(0b110111) + '\x37', ord("\x08")), nzTpIcepk0o8('\060' + chr(5625 - 5514) + '\x31' + chr(2364 - 2312) + chr(0b110101), 0o10), nzTpIcepk0o8(chr(895 - 847) + chr(0b1001101 + 0o42) + chr(0b110010) + '\x30' + '\x33', 1270 - 1262), nzTpIcepk0o8(chr(925 - 877) + chr(111) + '\x37' + chr(0b101101 + 0o7), ord("\x08")), nzTpIcepk0o8('\x30' + chr(5627 - 5516) + chr(0b110011) + chr(0b110011) + chr(0b110100), ord("\x08")), nzTpIcepk0o8(chr(0b100001 + 0o17) + '\157' + chr(690 - 640) + '\x36' + chr(1919 - 1866), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b10101 + 0o36) + chr(0b110101 + 0o0) + '\x35', 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(50) + '\x36' + chr(0b110101), 8), nzTpIcepk0o8(chr(0b10111 + 0o31) + chr(111) + chr(0b11 + 0o57) + chr(2126 - 2078) + '\063', 8), nzTpIcepk0o8(chr(1185 - 1137) + '\x6f' + '\064' + '\065', 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(0b110010) + chr(0b10 + 0o62) + '\x33', 0b1000), nzTpIcepk0o8(chr(1802 - 1754) + chr(111) + '\063' + '\x31', 0b1000), nzTpIcepk0o8(chr(0b101001 + 0o7) + chr(111) + chr(50) + chr(52), ord("\x08")), nzTpIcepk0o8(chr(0b111 + 0o51) + chr(111) + chr(1041 - 992) + '\x36' + chr(52), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(11189 - 11078) + chr(49) + '\061' + chr(383 - 334), ord("\x08")), nzTpIcepk0o8(chr(687 - 639) + chr(0b111 + 0o150) + chr(2328 - 2279) + chr(0b110000) + chr(48), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + '\x32' + chr(0b110100 + 0o1) + chr(264 - 216), 0o10), nzTpIcepk0o8('\060' + chr(0b1010011 + 0o34) + chr(0b110010) + '\061' + chr(0b1 + 0o65), 52916 - 52908), nzTpIcepk0o8(chr(48) + chr(0b110100 + 0o73) + '\x33' + chr(54) + '\x31', 50333 - 50325), nzTpIcepk0o8(chr(48) + chr(111) + chr(51) + chr(0b101110 + 0o7), 0o10), nzTpIcepk0o8(chr(2192 - 2144) + chr(0b1011000 + 0o27) + '\x36' + '\x36', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(7111 - 7000) + chr(51) + '\060' + '\x33', 0o10), nzTpIcepk0o8('\060' + '\157' + chr(49) + '\066' + chr(55), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(0b10001 + 0o42) + chr(49) + chr(1547 - 1498), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x33' + '\x30' + chr(52), 0b1000), nzTpIcepk0o8('\x30' + chr(11635 - 11524) + '\062' + chr(0b101001 + 0o14) + chr(657 - 609), 8), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x32' + chr(2170 - 2119) + chr(0b110000), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + '\x31' + chr(0b110000) + '\063', 29603 - 29595), nzTpIcepk0o8('\060' + '\157' + chr(49) + chr(0b100110 + 0o15) + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(501 - 390) + chr(0b11000 + 0o33) + chr(1539 - 1489) + chr(2659 - 2607), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110001) + '\x35' + chr(54), ord("\x08")), nzTpIcepk0o8(chr(0b1 + 0o57) + chr(0b1101111) + '\062' + chr(48) + chr(0b110110), 0o10), nzTpIcepk0o8(chr(805 - 757) + chr(7841 - 7730) + chr(0b100110 + 0o16) + chr(982 - 929), 8), nzTpIcepk0o8(chr(48) + chr(0b100010 + 0o115) + chr(0b110010) + '\x33' + chr(0b110111), 0b1000), nzTpIcepk0o8(chr(0b11100 + 0o24) + '\157' + chr(0b100110 + 0o14) + chr(1661 - 1610) + '\067', 8)][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + chr(0b101100 + 0o103) + chr(53) + chr(0b110000), 18892 - 18884)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x91'), '\144' + chr(0b1100101) + chr(0b10010 + 0o121) + chr(111) + '\x64' + '\145')('\165' + chr(116) + chr(5891 - 5789) + chr(502 - 457) + chr(56)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def S7f_XpLxHjJf(agxi8L4gDzUu, eemPYp2vtTSr, rcmdwNk42y0E=None): if rcmdwNk42y0E: return rcmdwNk42y0E if roI3spqORKae(ES5oEprVxulp(b'\xcf\xe5N9\x7f\x1c\x11'), chr(100) + chr(8004 - 7903) + chr(0b10100 + 0o117) + chr(0b1101111) + chr(100) + '\x65')('\165' + '\x74' + '\x66' + chr(45) + chr(56)) in agxi8L4gDzUu: return agxi8L4gDzUu[roI3spqORKae(ES5oEprVxulp(b'\xcf\xe5N9\x7f\x1c\x11'), chr(5271 - 5171) + chr(0b1100101) + '\143' + '\x6f' + '\x64' + chr(101))('\x75' + chr(116) + chr(102) + chr(0b11101 + 0o20) + chr(0b10 + 0o66))] if roI3spqORKae(SsdNdRxXOwsF, roI3spqORKae(ES5oEprVxulp(b'\xe8\xd8s\x18I/$\xc0y\x83\xfc\xa9'), chr(0b1100100 + 0o0) + chr(0b1100101) + '\x63' + '\x6f' + '\x64' + '\x65')('\165' + chr(8988 - 8872) + '\x66' + chr(0b100011 + 0o12) + '\070')): return roI3spqORKae(SsdNdRxXOwsF, roI3spqORKae(ES5oEprVxulp(b'\xe8\xd8s\x18I/$\xc0y\x83\xfc\xa9'), '\x64' + '\x65' + '\x63' + chr(111) + '\144' + chr(2697 - 2596))(chr(0b1100010 + 0o23) + '\x74' + '\x66' + chr(680 - 635) + chr(0b1011 + 0o55))) rjX18OviSoKK = roI3spqORKae(ES5oEprVxulp(b'\xfc\xf6Otn_\x06\xf1Y\xbd\xc1\x88\x95\xe2\x05\xd4vf\x1f/,\xc7\xf9\xd1j_\xb7\x1f\xa6\xb1\xdc\xb80)\xb1\r\xefC\xe6\xf6\xd1\xf0\x012:\x1b\x00\xf0H\xb5\xdb\x8c\xc1\xeaJ\xcd9d\x06&*\xcd\xed\x85&\x16'), chr(7783 - 7683) + chr(4199 - 4098) + chr(1807 - 1708) + '\157' + '\x64' + chr(1060 - 959))(chr(0b110001 + 0o104) + chr(0b1110100) + '\146' + chr(0b1001 + 0o44) + '\x38') rjX18OviSoKK += roI3spqORKae(ES5oEprVxulp(b'\xcf\xfbD2i\x1aE\xf6O\xb9\x95\x99\xdd\xe6\x05\x8e};Yd$\xcd\xfd\x85tX\xa2\x03\xa0\xab\xc6\xb8%5\xb5\t\xa6Q\xf0\xbf\xda\xefQ?s\x1c\x0c\xf7P\xa5\x95\x9e\xc5\xe6F\xca\x7fmT(`\xd8\xfc\x9ewS\xa0\x03'), '\144' + chr(101) + chr(0b1100011 + 0o0) + '\x6f' + chr(5337 - 5237) + '\145')(chr(0b1110101) + chr(0b1010010 + 0o42) + chr(0b1100110) + chr(45) + chr(56)) raise bvzaJ98LpDhC(rjX18OviSoKK)
dnanexus/dx-toolkit
src/python/dxpy/workflow_builder.py
_get_destination_folder
def _get_destination_folder(json_spec, folder_name=None): """ Returns destination project in which the workflow should be created. It can be set in the json specification or by --destination option supplied with `dx build`. The order of precedence is: 1. --destination, -d option, 2. 'folder' specified in the json file. """ dest_folder = folder_name or json_spec.get('folder') or '/' if not dest_folder.endswith('/'): dest_folder = dest_folder + '/' return dest_folder
python
def _get_destination_folder(json_spec, folder_name=None): """ Returns destination project in which the workflow should be created. It can be set in the json specification or by --destination option supplied with `dx build`. The order of precedence is: 1. --destination, -d option, 2. 'folder' specified in the json file. """ dest_folder = folder_name or json_spec.get('folder') or '/' if not dest_folder.endswith('/'): dest_folder = dest_folder + '/' return dest_folder
[ "def", "_get_destination_folder", "(", "json_spec", ",", "folder_name", "=", "None", ")", ":", "dest_folder", "=", "folder_name", "or", "json_spec", ".", "get", "(", "'folder'", ")", "or", "'/'", "if", "not", "dest_folder", ".", "endswith", "(", "'/'", ")", ":", "dest_folder", "=", "dest_folder", "+", "'/'", "return", "dest_folder" ]
Returns destination project in which the workflow should be created. It can be set in the json specification or by --destination option supplied with `dx build`. The order of precedence is: 1. --destination, -d option, 2. 'folder' specified in the json file.
[ "Returns", "destination", "project", "in", "which", "the", "workflow", "should", "be", "created", ".", "It", "can", "be", "set", "in", "the", "json", "specification", "or", "by", "--", "destination", "option", "supplied", "with", "dx", "build", ".", "The", "order", "of", "precedence", "is", ":", "1", ".", "--", "destination", "-", "d", "option", "2", ".", "folder", "specified", "in", "the", "json", "file", "." ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/workflow_builder.py#L91-L103
train
Returns the folder name of the project where the workflow should be created.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9el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inCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(858 - 808) + chr(49) + '\x35', 36304 - 36296), nzTpIcepk0o8(chr(48) + '\x6f' + chr(51) + '\060' + '\067', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1100001 + 0o16) + chr(86 - 37) + chr(0b110011) + '\066', ord("\x08")), nzTpIcepk0o8(chr(0b10111 + 0o31) + chr(111) + '\062' + chr(0b11000 + 0o31) + '\062', 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(1643 - 1589) + '\x30', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(1102 - 1051) + '\066', 64683 - 64675), nzTpIcepk0o8('\060' + chr(111) + '\x33' + chr(53), 0b1000), nzTpIcepk0o8(chr(48) + chr(4845 - 4734) + chr(51) + '\x30' + '\x34', 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x33' + chr(0b10 + 0o62), 0o10), nzTpIcepk0o8('\060' + chr(4934 - 4823) + chr(0b110001) + chr(0b110100) + '\x31', 0o10), nzTpIcepk0o8(chr(0b1111 + 0o41) + chr(11874 - 11763) + chr(509 - 456) + chr(0b110010), 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(0b110011) + '\061', ord("\x08")), nzTpIcepk0o8(chr(1315 - 1267) + chr(111) + '\067' + chr(0b100101 + 0o21), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(4219 - 4108) + chr(0b110010) + chr(0b110100) + '\067', 54963 - 54955), nzTpIcepk0o8(chr(944 - 896) + chr(0b1011001 + 0o26) + chr(54) + '\x37', 28720 - 28712), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x33' + '\x37', ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(50) + chr(489 - 435), 25171 - 25163), nzTpIcepk0o8(chr(1654 - 1606) + chr(0b1101111) + chr(51), 0o10), nzTpIcepk0o8('\x30' + chr(6600 - 6489) + '\061' + chr(51) + chr(2125 - 2075), 0b1000), nzTpIcepk0o8('\060' + chr(0b1011110 + 0o21) + chr(1022 - 971) + '\x34' + chr(0b110000), 0o10), nzTpIcepk0o8(chr(309 - 261) + chr(0b101 + 0o152) + '\x37' + chr(52), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b100100 + 0o113) + chr(0b110001) + chr(0b1100 + 0o47), 10589 - 10581), nzTpIcepk0o8(chr(0b100100 + 0o14) + chr(0b1101111) + '\x33' + chr(1471 - 1420) + chr(48), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b101111 + 0o3) + chr(0b110100 + 0o3) + chr(0b101001 + 0o14), 0o10), nzTpIcepk0o8('\060' + chr(10088 - 9977) + chr(0b110010) + '\065' + '\063', 0b1000), nzTpIcepk0o8(chr(1114 - 1066) + chr(0b1101111) + '\063' + '\x33' + chr(972 - 923), 0b1000), nzTpIcepk0o8(chr(110 - 62) + chr(5231 - 5120) + chr(0b101101 + 0o5) + chr(49) + '\x33', ord("\x08")), nzTpIcepk0o8(chr(0b100101 + 0o13) + '\157' + '\062' + '\061' + '\x34', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + '\063' + chr(0b110111) + chr(48), 0b1000), nzTpIcepk0o8(chr(0b1100 + 0o44) + '\x6f' + '\061' + chr(55) + '\x33', 22344 - 22336), nzTpIcepk0o8(chr(1352 - 1304) + chr(0b101000 + 0o107) + chr(0b110001) + '\x36', 0b1000), nzTpIcepk0o8('\060' + '\157' + '\066' + chr(54), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(2799 - 2688) + chr(0b110001) + chr(52) + '\x32', 0o10), nzTpIcepk0o8(chr(0b11011 + 0o25) + chr(0b1101111) + '\x32' + chr(678 - 623) + chr(0b110000), ord("\x08")), nzTpIcepk0o8(chr(1217 - 1169) + chr(0b1101111) + '\x33' + '\x35' + chr(125 - 73), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1010110 + 0o31) + chr(0b11000 + 0o33) + chr(1521 - 1466), 8), nzTpIcepk0o8(chr(0b1001 + 0o47) + chr(111) + chr(2366 - 2315) + '\067' + chr(0b110111), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x33' + chr(215 - 167) + chr(1559 - 1510), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x31' + '\x35' + chr(0b110000), 47710 - 47702), nzTpIcepk0o8(chr(435 - 387) + chr(5920 - 5809) + chr(54) + chr(54), 8)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + chr(0b1001101 + 0o42) + chr(0b110101) + chr(0b100101 + 0o13), 60246 - 60238)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xa3'), chr(0b1100100) + chr(0b110101 + 0o60) + chr(4151 - 4052) + '\157' + chr(0b1100100) + chr(0b1100101))(chr(0b1011101 + 0o30) + chr(0b1110100) + chr(0b1011100 + 0o12) + chr(0b10011 + 0o32) + '\x38') + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def QjTjm3d6kHbL(agxi8L4gDzUu, Ed1XcrYtixZz=None): kNOgleKgMxsP = Ed1XcrYtixZz or agxi8L4gDzUu.GUKetu4xaGsJ(roI3spqORKae(ES5oEprVxulp(b'\xeb\xa82\xeeUl'), '\144' + chr(0b1100100 + 0o1) + chr(0b1100011) + chr(9672 - 9561) + '\144' + chr(101))(chr(117) + chr(9156 - 9040) + '\x66' + chr(873 - 828) + chr(2478 - 2422))) or roI3spqORKae(ES5oEprVxulp(b'\xa2'), chr(6986 - 6886) + chr(0b1100101) + '\x63' + chr(111) + chr(8742 - 8642) + chr(101))(chr(8897 - 8780) + chr(116) + chr(0b1100110) + chr(0b100101 + 0o10) + '\x38') if not roI3spqORKae(kNOgleKgMxsP, roI3spqORKae(ES5oEprVxulp(b'\xc4\xfe8\xc1y]\\\x88}\x14`k'), chr(0b1100100) + chr(0b10010 + 0o123) + chr(0b1100011) + chr(0b1010111 + 0o30) + '\x64' + chr(101))(chr(117) + '\x74' + chr(1467 - 1365) + '\055' + chr(64 - 8)))(roI3spqORKae(ES5oEprVxulp(b'\xa2'), '\144' + chr(101) + '\x63' + '\157' + '\144' + chr(0b1100101))('\165' + '\164' + '\x66' + chr(0b101101) + '\070')): kNOgleKgMxsP = kNOgleKgMxsP + roI3spqORKae(ES5oEprVxulp(b'\xa2'), chr(100) + chr(101) + chr(0b111011 + 0o50) + chr(0b1101101 + 0o2) + chr(100) + chr(8743 - 8642))(chr(0b111000 + 0o75) + '\164' + chr(102) + chr(365 - 320) + chr(0b111000)) return kNOgleKgMxsP
dnanexus/dx-toolkit
src/python/dxpy/workflow_builder.py
_set_categories_on_workflow
def _set_categories_on_workflow(global_workflow_id, categories_to_set): """ Note: Categories are set on the workflow series level, i.e. the same set applies to all versions. """ assert(isinstance(categories_to_set, list)) existing_categories = dxpy.api.global_workflow_list_categories(global_workflow_id)['categories'] categories_to_add = set(categories_to_set).difference(set(existing_categories)) categories_to_remove = set(existing_categories).difference(set(categories_to_set)) if categories_to_add: dxpy.api.global_workflow_add_categories(global_workflow_id, input_params={'categories': list(categories_to_add)}) if categories_to_remove: dxpy.api.global_workflow_remove_categories(global_workflow_id, input_params={'categories': list(categories_to_remove)})
python
def _set_categories_on_workflow(global_workflow_id, categories_to_set): """ Note: Categories are set on the workflow series level, i.e. the same set applies to all versions. """ assert(isinstance(categories_to_set, list)) existing_categories = dxpy.api.global_workflow_list_categories(global_workflow_id)['categories'] categories_to_add = set(categories_to_set).difference(set(existing_categories)) categories_to_remove = set(existing_categories).difference(set(categories_to_set)) if categories_to_add: dxpy.api.global_workflow_add_categories(global_workflow_id, input_params={'categories': list(categories_to_add)}) if categories_to_remove: dxpy.api.global_workflow_remove_categories(global_workflow_id, input_params={'categories': list(categories_to_remove)})
[ "def", "_set_categories_on_workflow", "(", "global_workflow_id", ",", "categories_to_set", ")", ":", "assert", "(", "isinstance", "(", "categories_to_set", ",", "list", ")", ")", "existing_categories", "=", "dxpy", ".", "api", ".", "global_workflow_list_categories", "(", "global_workflow_id", ")", "[", "'categories'", "]", "categories_to_add", "=", "set", "(", "categories_to_set", ")", ".", "difference", "(", "set", "(", "existing_categories", ")", ")", "categories_to_remove", "=", "set", "(", "existing_categories", ")", ".", "difference", "(", "set", "(", "categories_to_set", ")", ")", "if", "categories_to_add", ":", "dxpy", ".", "api", ".", "global_workflow_add_categories", "(", "global_workflow_id", ",", "input_params", "=", "{", "'categories'", ":", "list", "(", "categories_to_add", ")", "}", ")", "if", "categories_to_remove", ":", "dxpy", ".", "api", ".", "global_workflow_remove_categories", "(", "global_workflow_id", ",", "input_params", "=", "{", "'categories'", ":", "list", "(", "categories_to_remove", ")", "}", ")" ]
Note: Categories are set on the workflow series level, i.e. the same set applies to all versions.
[ "Note", ":", "Categories", "are", "set", "on", "the", "workflow", "series", "level", "i", ".", "e", ".", "the", "same", "set", "applies", "to", "all", "versions", "." ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/workflow_builder.py#L122-L137
train
Sets the categories on the given global workflow.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,W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V,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b110000) + chr(5221 - 5110) + chr(0b100100 + 0o15) + chr(1223 - 1174) + chr(2354 - 2305), 1371 - 1363), nzTpIcepk0o8(chr(0b100111 + 0o11) + chr(2283 - 2172) + '\062' + chr(0b110110) + chr(0b10110 + 0o33), 6535 - 6527), nzTpIcepk0o8(chr(2102 - 2054) + chr(0b1101111) + chr(0b110100) + chr(51), 23983 - 23975), nzTpIcepk0o8('\x30' + chr(111) + chr(51) + chr(52) + '\065', 0o10), nzTpIcepk0o8(chr(61 - 13) + '\x6f' + chr(55) + chr(0b101001 + 0o10), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(54) + chr(0b110110), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(0b10010 + 0o41) + '\062' + '\x34', 38716 - 38708), nzTpIcepk0o8(chr(2092 - 2044) + chr(111) + chr(0b1010 + 0o50) + chr(0b110011) + chr(0b10111 + 0o33), 0b1000), nzTpIcepk0o8(chr(0b10001 + 0o37) + chr(111) + '\x33' + chr(55) + '\061', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\061' + '\067' + chr(0b110110), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110010) + chr(0b101111 + 0o5) + chr(52), 0b1000), nzTpIcepk0o8(chr(0b1101 + 0o43) + '\x6f' + chr(0b101011 + 0o6) + '\x33' + chr(50), 0o10), nzTpIcepk0o8('\x30' + chr(1297 - 1186) + chr(0b110111) + '\x37', 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(50) + chr(0b100011 + 0o22) + chr(1581 - 1526), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(10597 - 10486) + chr(1822 - 1773) + chr(0b100001 + 0o25) + chr(49), 0o10), nzTpIcepk0o8('\x30' + chr(0b1001011 + 0o44) + chr(0b110011) + chr(51) + chr(672 - 620), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(0b110001) + '\x35' + chr(53), 0b1000), nzTpIcepk0o8(chr(48) + chr(5788 - 5677) + chr(50) + '\063' + chr(0b110010 + 0o5), 789 - 781), nzTpIcepk0o8('\060' + chr(11682 - 11571) + chr(0b110001) + chr(55) + chr(51), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b100 + 0o54), ord("\x08")), nzTpIcepk0o8('\x30' + chr(11704 - 11593) + chr(54) + chr(0b1110 + 0o43), ord("\x08")), nzTpIcepk0o8(chr(0b0 + 0o60) + chr(0b1101111) + chr(52) + chr(0b100010 + 0o17), 0b1000), nzTpIcepk0o8(chr(0b111 + 0o51) + chr(111) + chr(53) + '\x33', ord("\x08")), nzTpIcepk0o8(chr(1584 - 1536) + '\157' + chr(0b110010) + chr(0b110101) + '\x30', 9797 - 9789), nzTpIcepk0o8('\x30' + '\x6f' + chr(553 - 500) + '\x33', 8), nzTpIcepk0o8('\060' + '\x6f' + chr(908 - 858) + chr(0b101100 + 0o10) + chr(0b110100), 8), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x33' + chr(48) + '\061', 0o10), nzTpIcepk0o8(chr(0b10100 + 0o34) + '\x6f' + '\063' + '\x31' + chr(0b110010), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110011) + '\x32' + chr(1674 - 1620), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + '\x31' + chr(52) + '\x35', 0o10), nzTpIcepk0o8(chr(120 - 72) + chr(111) + chr(0b101010 + 0o15) + chr(0b11101 + 0o31), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110001) + chr(0b110000) + chr(0b110010), 64734 - 64726), nzTpIcepk0o8('\060' + chr(10789 - 10678) + chr(49) + chr(0b101011 + 0o12) + chr(2049 - 1999), 0o10), nzTpIcepk0o8(chr(1594 - 1546) + chr(0b100010 + 0o115) + '\062' + chr(1348 - 1298) + '\x32', 0b1000), nzTpIcepk0o8(chr(0b100010 + 0o16) + '\157' + chr(1278 - 1227) + chr(55) + chr(55), 0o10), nzTpIcepk0o8('\060' + '\x6f' + '\x32' + chr(2276 - 2228) + '\064', 0o10), nzTpIcepk0o8(chr(433 - 385) + chr(0b1101111) + '\063', ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + '\063' + '\x33' + '\067', ord("\x08")), nzTpIcepk0o8(chr(1020 - 972) + chr(0b111101 + 0o62) + chr(1607 - 1557) + chr(242 - 188), 20092 - 20084), nzTpIcepk0o8(chr(0b110000) + chr(1614 - 1503) + '\061' + '\066' + chr(0b1100 + 0o47), 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + chr(11139 - 11028) + '\065' + chr(0b11111 + 0o21), 24040 - 24032)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'g'), chr(100) + chr(0b111001 + 0o54) + chr(0b1100011) + chr(0b1101111) + '\x64' + chr(101))(chr(0b1110101) + '\x74' + chr(5054 - 4952) + chr(45) + '\070') + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def ghcPaXUYPQef(EQDyoff03KAB, qVUk9CjbNaBi): assert suIjIS24Zkqw(qVUk9CjbNaBi, H4NoA26ON7iG) GcOL1tMOSc5e = SsdNdRxXOwsF.api.global_workflow_list_categories(EQDyoff03KAB)[roI3spqORKae(ES5oEprVxulp(b'*\xd0W\x80^Y\xa6\xf3\x9c\r'), '\144' + chr(0b1100101) + chr(0b1000100 + 0o37) + chr(0b1101111) + '\144' + chr(3718 - 3617))(chr(0b1110101) + chr(116) + chr(0b1100110) + chr(0b100 + 0o51) + '\x38')] HLYDBumWZfAG = Bvi71nNyvlqO(qVUk9CjbNaBi)._61auecdOib2(Bvi71nNyvlqO(GcOL1tMOSc5e)) Og8J9_AX5iN6 = Bvi71nNyvlqO(GcOL1tMOSc5e)._61auecdOib2(Bvi71nNyvlqO(qVUk9CjbNaBi)) if HLYDBumWZfAG: roI3spqORKae(SsdNdRxXOwsF.api, roI3spqORKae(ES5oEprVxulp(b'.\xddL\x87XZ\x8b\xed\x96\x0c\xcf<S\xc0\x06\x83\x0c\xfb\x1f_R@_\xcdL\xcb\xb3\xa3\xb3\x16'), chr(4126 - 4026) + chr(3667 - 3566) + chr(4420 - 4321) + chr(111) + '\144' + chr(101))(chr(0b1000101 + 0o60) + '\164' + '\146' + chr(0b101101) + chr(2455 - 2399)))(EQDyoff03KAB, input_params={roI3spqORKae(ES5oEprVxulp(b'*\xd0W\x80^Y\xa6\xf3\x9c\r'), chr(0b100000 + 0o104) + chr(101) + chr(2889 - 2790) + '\157' + chr(0b1100100) + chr(0b1100101))(chr(5214 - 5097) + chr(116) + '\x66' + chr(45) + '\x38'): H4NoA26ON7iG(HLYDBumWZfAG)}) if Og8J9_AX5iN6: roI3spqORKae(SsdNdRxXOwsF.api, roI3spqORKae(ES5oEprVxulp(b".\xddL\x87XZ\x8b\xed\x96\x0c\xcf<S\xc0\x06\x83\x1f\xfa\x16oGDt\xcbJ\xd0\xa4\xad\xb9\x17W'\x19"), chr(0b1001111 + 0o25) + '\145' + '\x63' + '\x6f' + '\x64' + chr(7359 - 7258))(chr(0b1110101) + chr(9231 - 9115) + chr(2226 - 2124) + '\x2d' + '\070'))(EQDyoff03KAB, input_params={roI3spqORKae(ES5oEprVxulp(b'*\xd0W\x80^Y\xa6\xf3\x9c\r'), chr(0b101011 + 0o71) + chr(101) + chr(99) + chr(4833 - 4722) + chr(0b1010100 + 0o20) + '\145')(chr(0b1110101) + '\x74' + chr(0b1100110) + '\x2d' + '\x38'): H4NoA26ON7iG(Og8J9_AX5iN6)})
dnanexus/dx-toolkit
src/python/dxpy/workflow_builder.py
_version_exists
def _version_exists(json_spec, name=None, version=None): """ Returns True if a global workflow with the given name and version already exists in the platform and the user has developer rights to the workflow. "name" and "version" can be passed if we already made a "describe" API call on the global workflow and so know the requested name and version already exists. """ requested_name = json_spec['name'] requested_version = json_spec['version'] if requested_name == name and requested_version == version: return True else: try: desc_output = dxpy.api.global_workflow_describe('globalworkflow-' + json_spec['name'], alias=json_spec['version'], input_params={"fields": {"name": True, "version": True}}) return desc_output['name'] == json_spec['name'] and desc_output['version'] == json_spec['version'] except dxpy.exceptions.DXAPIError: return False except: raise
python
def _version_exists(json_spec, name=None, version=None): """ Returns True if a global workflow with the given name and version already exists in the platform and the user has developer rights to the workflow. "name" and "version" can be passed if we already made a "describe" API call on the global workflow and so know the requested name and version already exists. """ requested_name = json_spec['name'] requested_version = json_spec['version'] if requested_name == name and requested_version == version: return True else: try: desc_output = dxpy.api.global_workflow_describe('globalworkflow-' + json_spec['name'], alias=json_spec['version'], input_params={"fields": {"name": True, "version": True}}) return desc_output['name'] == json_spec['name'] and desc_output['version'] == json_spec['version'] except dxpy.exceptions.DXAPIError: return False except: raise
[ "def", "_version_exists", "(", "json_spec", ",", "name", "=", "None", ",", "version", "=", "None", ")", ":", "requested_name", "=", "json_spec", "[", "'name'", "]", "requested_version", "=", "json_spec", "[", "'version'", "]", "if", "requested_name", "==", "name", "and", "requested_version", "==", "version", ":", "return", "True", "else", ":", "try", ":", "desc_output", "=", "dxpy", ".", "api", ".", "global_workflow_describe", "(", "'globalworkflow-'", "+", "json_spec", "[", "'name'", "]", ",", "alias", "=", "json_spec", "[", "'version'", "]", ",", "input_params", "=", "{", "\"fields\"", ":", "{", "\"name\"", ":", "True", ",", "\"version\"", ":", "True", "}", "}", ")", "return", "desc_output", "[", "'name'", "]", "==", "json_spec", "[", "'name'", "]", "and", "desc_output", "[", "'version'", "]", "==", "json_spec", "[", "'version'", "]", "except", "dxpy", ".", "exceptions", ".", "DXAPIError", ":", "return", "False", "except", ":", "raise" ]
Returns True if a global workflow with the given name and version already exists in the platform and the user has developer rights to the workflow. "name" and "version" can be passed if we already made a "describe" API call on the global workflow and so know the requested name and version already exists.
[ "Returns", "True", "if", "a", "global", "workflow", "with", "the", "given", "name", "and", "version", "already", "exists", "in", "the", "platform", "and", "the", "user", "has", "developer", "rights", "to", "the", "workflow", ".", "name", "and", "version", "can", "be", "passed", "if", "we", "already", "made", "a", "describe", "API", "call", "on", "the", "global", "workflow", "and", "so", "know", "the", "requested", "name", "and", "version", "already", "exists", "." ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/workflow_builder.py#L140-L163
train
Returns True if a global workflow with the given name and version already exists in the platform.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg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sMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\x30' + '\157' + chr(0b110011) + chr(0b10111 + 0o33) + chr(0b110100), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b100011 + 0o16) + chr(133 - 78) + chr(0b110110), ord("\x08")), nzTpIcepk0o8(chr(0b100010 + 0o16) + chr(0b1101111) + '\061' + '\066' + '\067', 0b1000), nzTpIcepk0o8(chr(1986 - 1938) + chr(7954 - 7843) + '\x33' + chr(52) + chr(1257 - 1206), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(49) + chr(0b110100) + chr(49), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(1382 - 1332) + chr(1441 - 1391) + '\066', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b10000 + 0o41) + chr(0b101110 + 0o3) + chr(1158 - 1104), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + '\061' + chr(51) + chr(0b110101), 0o10), nzTpIcepk0o8(chr(0b10010 + 0o36) + '\x6f' + '\062' + '\061' + chr(52), 0b1000), nzTpIcepk0o8(chr(1785 - 1737) + '\x6f' + chr(312 - 261) + chr(0b100111 + 0o11), 6679 - 6671), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110001) + chr(1713 - 1659), 0o10), nzTpIcepk0o8(chr(0b100101 + 0o13) + chr(111) + chr(0b110001) + chr(0b110001) + '\x30', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110010) + chr(0b11011 + 0o27) + chr(1997 - 1948), 0o10), nzTpIcepk0o8(chr(0b100 + 0o54) + chr(0b1010010 + 0o35) + chr(0b110001) + chr(0b110001) + chr(50), 0o10), nzTpIcepk0o8(chr(2223 - 2175) + chr(3263 - 3152) + '\x35' + chr(0b11010 + 0o26), ord("\x08")), nzTpIcepk0o8(chr(2153 - 2105) + chr(111) + chr(0b10010 + 0o40) + chr(52) + chr(1408 - 1355), 0b1000), nzTpIcepk0o8('\x30' + chr(2380 - 2269) + '\061' + chr(51) + '\061', 28270 - 28262), nzTpIcepk0o8(chr(1173 - 1125) + chr(111) + chr(0b100110 + 0o13) + chr(55) + chr(54), 8), nzTpIcepk0o8(chr(48) + '\x6f' + chr(49) + chr(54) + chr(50), 0o10), nzTpIcepk0o8(chr(798 - 750) + chr(6225 - 6114) + chr(0b100111 + 0o14) + chr(0b10101 + 0o33) + chr(0b1101 + 0o45), 8441 - 8433), nzTpIcepk0o8('\060' + chr(111) + chr(921 - 870) + chr(0b10111 + 0o36), 0b1000), nzTpIcepk0o8(chr(1436 - 1388) + '\x6f' + chr(49) + '\061' + '\x36', 8), nzTpIcepk0o8(chr(48) + chr(111) + chr(49) + '\063' + chr(0b110000), 33872 - 33864), nzTpIcepk0o8(chr(1749 - 1701) + chr(11053 - 10942) + '\063' + '\x30' + chr(2733 - 2678), 12160 - 12152), nzTpIcepk0o8('\060' + '\157' + chr(0b100000 + 0o23) + chr(0b110000) + '\x36', ord("\x08")), nzTpIcepk0o8('\x30' + chr(2795 - 2684) + chr(51) + chr(1654 - 1604), 0o10), nzTpIcepk0o8('\060' + '\157' + chr(1467 - 1418) + '\062' + chr(1514 - 1464), ord("\x08")), nzTpIcepk0o8(chr(0b11100 + 0o24) + '\157' + '\x32' + chr(0b10011 + 0o40) + chr(52), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(1908 - 1855) + chr(1869 - 1818), 55918 - 55910), nzTpIcepk0o8(chr(0b1010 + 0o46) + '\157' + chr(51) + chr(51) + '\x32', 0o10), nzTpIcepk0o8('\060' + chr(0b101000 + 0o107) + chr(0b110010) + '\067' + '\066', 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + '\062' + chr(0b110001) + '\060', 30872 - 30864), nzTpIcepk0o8(chr(0b110000) + chr(0b11110 + 0o121) + chr(0b11001 + 0o30) + chr(0b110111) + '\065', ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(172 - 123) + chr(0b110011 + 0o4) + chr(0b110011), 0o10), nzTpIcepk0o8('\060' + chr(11611 - 11500) + chr(49) + chr(0b110101), 0b1000), nzTpIcepk0o8(chr(1959 - 1911) + chr(0b1101111) + chr(49) + '\067' + chr(0b110110), 8), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(49) + chr(0b110000) + chr(0b110111), 0o10), nzTpIcepk0o8('\x30' + '\157' + '\x32' + chr(53) + '\x33', 0o10), nzTpIcepk0o8(chr(0b10101 + 0o33) + chr(2265 - 2154) + '\x33' + chr(0b10101 + 0o40) + chr(323 - 275), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b10000 + 0o43) + '\061', 59390 - 59382)][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + chr(4842 - 4731) + chr(0b110101) + '\060', 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xfa'), '\x64' + chr(6774 - 6673) + chr(0b1100001 + 0o2) + '\157' + '\x64' + chr(4561 - 4460))('\165' + chr(0b1110100) + chr(102) + chr(1837 - 1792) + chr(56)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def O0r7b6s8rCCK(agxi8L4gDzUu, SLVB2BPA_mIe=None, J4eG487sJbAu=None): cR7jzA4DyXH3 = agxi8L4gDzUu[roI3spqORKae(ES5oEprVxulp(b'\xba\x1f\x1a\x86'), chr(0b1100100) + chr(101) + chr(99) + '\157' + chr(8975 - 8875) + chr(0b1100101))(chr(8807 - 8690) + '\164' + chr(0b10010 + 0o124) + chr(0b101101) + chr(451 - 395))] tn3_cY6KqlXh = agxi8L4gDzUu[roI3spqORKae(ES5oEprVxulp(b'\xa2\x1b\x05\x90\x08\xf9 '), '\144' + '\x65' + chr(0b1100011) + chr(0b101001 + 0o106) + '\144' + chr(101))('\165' + '\x74' + chr(0b1100110) + chr(312 - 267) + chr(56))] if cR7jzA4DyXH3 == SLVB2BPA_mIe and tn3_cY6KqlXh == J4eG487sJbAu: return nzTpIcepk0o8('\060' + chr(111) + chr(0b11000 + 0o31), 0b1000) else: try: abwwK9eD7Wd8 = SsdNdRxXOwsF.api.global_workflow_describe(roI3spqORKae(ES5oEprVxulp(b'\xb3\x12\x18\x81\x00\xfa92\xfesh$\xfe=\x05'), '\x64' + chr(0b100110 + 0o77) + chr(0b1100011) + '\157' + chr(5869 - 5769) + chr(4492 - 4391))(chr(0b1110101) + chr(0b1110100) + chr(822 - 720) + chr(332 - 287) + chr(56)) + agxi8L4gDzUu[roI3spqORKae(ES5oEprVxulp(b'\xba\x1f\x1a\x86'), '\x64' + chr(2241 - 2140) + chr(0b1100011) + chr(0b1101111) + '\144' + chr(6013 - 5912))(chr(0b1110101 + 0o0) + chr(116) + chr(9403 - 9301) + chr(0b1010 + 0o43) + chr(2999 - 2943))], alias=agxi8L4gDzUu[roI3spqORKae(ES5oEprVxulp(b'\xa2\x1b\x05\x90\x08\xf9 '), chr(0b1100100) + '\145' + chr(0b1100011) + chr(218 - 107) + '\x64' + '\x65')('\x75' + chr(116) + '\x66' + chr(45) + '\x38')], input_params={roI3spqORKae(ES5oEprVxulp(b'\xb2\x17\x12\x8f\x05\xe5'), '\144' + chr(0b1100101) + '\143' + '\157' + '\144' + chr(0b1011001 + 0o14))(chr(10212 - 10095) + '\164' + '\146' + '\x2d' + '\x38'): {roI3spqORKae(ES5oEprVxulp(b'\xba\x1f\x1a\x86'), chr(0b1100100) + chr(101) + chr(0b1 + 0o142) + chr(0b1101111) + chr(0b10100 + 0o120) + chr(4247 - 4146))('\x75' + chr(0b1110100) + chr(3050 - 2948) + chr(45) + '\070'): nzTpIcepk0o8('\x30' + chr(1823 - 1712) + chr(0b1101 + 0o44), 8), roI3spqORKae(ES5oEprVxulp(b'\xa2\x1b\x05\x90\x08\xf9 '), chr(0b101100 + 0o70) + chr(0b1001000 + 0o35) + chr(0b101110 + 0o65) + '\x6f' + '\x64' + chr(2796 - 2695))(chr(0b100001 + 0o124) + '\164' + '\146' + '\x2d' + '\070'): nzTpIcepk0o8(chr(0b10011 + 0o35) + chr(0b1101111) + chr(0b110001), 8)}}) return abwwK9eD7Wd8[roI3spqORKae(ES5oEprVxulp(b'\xba\x1f\x1a\x86'), chr(3351 - 3251) + '\145' + '\x63' + '\x6f' + '\144' + '\x65')(chr(0b110101 + 0o100) + '\164' + chr(0b11 + 0o143) + chr(45) + chr(0b111000))] == agxi8L4gDzUu[roI3spqORKae(ES5oEprVxulp(b'\xba\x1f\x1a\x86'), chr(0b111000 + 0o54) + '\145' + '\x63' + chr(0b1101111) + chr(0b1011001 + 0o13) + chr(0b1010100 + 0o21))('\165' + '\x74' + chr(0b1100110) + '\055' + chr(1758 - 1702))] and abwwK9eD7Wd8[roI3spqORKae(ES5oEprVxulp(b'\xa2\x1b\x05\x90\x08\xf9 '), '\x64' + chr(5109 - 5008) + chr(9688 - 9589) + chr(0b1100000 + 0o17) + '\144' + chr(101))(chr(0b1110101) + chr(0b100101 + 0o117) + '\x66' + chr(1663 - 1618) + chr(644 - 588))] == agxi8L4gDzUu[roI3spqORKae(ES5oEprVxulp(b'\xa2\x1b\x05\x90\x08\xf9 '), '\144' + chr(0b1100101) + chr(99) + chr(0b1101111) + chr(0b1100100) + chr(0b1001110 + 0o27))(chr(0b1110101) + chr(116) + '\146' + chr(1120 - 1075) + chr(1810 - 1754))] except roI3spqORKae(SsdNdRxXOwsF.exceptions, roI3spqORKae(ES5oEprVxulp(b'\x90&6\xb3(\xd3</\xe3j'), '\x64' + chr(723 - 622) + chr(7999 - 7900) + chr(111) + chr(3139 - 3039) + chr(0b1001011 + 0o32))('\x75' + chr(0b10001 + 0o143) + '\146' + '\x2d' + chr(0b1100 + 0o54))): return nzTpIcepk0o8('\x30' + chr(0b1101111) + '\060', 0o10) except UtiWT6f6p9yZ: raise
dnanexus/dx-toolkit
src/python/dxpy/workflow_builder.py
validate_ignore_reuse
def validate_ignore_reuse(stages, ignore_reuse_stages): """ Checks if each stage ID specified in ignore_reuse_stages exists in the workflow definition. If ignore_reuse_stages contains only '*', the field is valid. """ if not isinstance(ignore_reuse_stages, list): raise WorkflowBuilderException('"IgnoreReuse must be a list of strings - stage IDs or "*"') ignore_reuse_set = set(ignore_reuse_stages) if '*' in ignore_reuse_set and ignore_reuse_set == 1: return stage_ids = set([stage.get('id') for stage in stages]) for ignored in ignore_reuse_set: if ignored not in stage_ids: raise WorkflowBuilderException( 'Stage with ID {} not found. Add a matching "id" for the stage you wish to set ignoreReuse for'.format(ignored))
python
def validate_ignore_reuse(stages, ignore_reuse_stages): """ Checks if each stage ID specified in ignore_reuse_stages exists in the workflow definition. If ignore_reuse_stages contains only '*', the field is valid. """ if not isinstance(ignore_reuse_stages, list): raise WorkflowBuilderException('"IgnoreReuse must be a list of strings - stage IDs or "*"') ignore_reuse_set = set(ignore_reuse_stages) if '*' in ignore_reuse_set and ignore_reuse_set == 1: return stage_ids = set([stage.get('id') for stage in stages]) for ignored in ignore_reuse_set: if ignored not in stage_ids: raise WorkflowBuilderException( 'Stage with ID {} not found. Add a matching "id" for the stage you wish to set ignoreReuse for'.format(ignored))
[ "def", "validate_ignore_reuse", "(", "stages", ",", "ignore_reuse_stages", ")", ":", "if", "not", "isinstance", "(", "ignore_reuse_stages", ",", "list", ")", ":", "raise", "WorkflowBuilderException", "(", "'\"IgnoreReuse must be a list of strings - stage IDs or \"*\"'", ")", "ignore_reuse_set", "=", "set", "(", "ignore_reuse_stages", ")", "if", "'*'", "in", "ignore_reuse_set", "and", "ignore_reuse_set", "==", "1", ":", "return", "stage_ids", "=", "set", "(", "[", "stage", ".", "get", "(", "'id'", ")", "for", "stage", "in", "stages", "]", ")", "for", "ignored", "in", "ignore_reuse_set", ":", "if", "ignored", "not", "in", "stage_ids", ":", "raise", "WorkflowBuilderException", "(", "'Stage with ID {} not found. Add a matching \"id\" for the stage you wish to set ignoreReuse for'", ".", "format", "(", "ignored", ")", ")" ]
Checks if each stage ID specified in ignore_reuse_stages exists in the workflow definition. If ignore_reuse_stages contains only '*', the field is valid.
[ "Checks", "if", "each", "stage", "ID", "specified", "in", "ignore_reuse_stages", "exists", "in", "the", "workflow", "definition", ".", "If", "ignore_reuse_stages", "contains", "only", "*", "the", "field", "is", "valid", "." ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/workflow_builder.py#L183-L200
train
Checks if the given list of stages contains a valid entry in the order they are not used.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ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msH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\060' + chr(111) + chr(50) + chr(0b110111 + 0o0) + chr(2349 - 2297), 35282 - 35274), nzTpIcepk0o8(chr(0b110000) + chr(10939 - 10828) + chr(259 - 209) + chr(506 - 456) + chr(1482 - 1433), 47401 - 47393), nzTpIcepk0o8('\060' + chr(111) + '\061' + chr(53) + chr(0b110000), 0b1000), nzTpIcepk0o8('\060' + chr(0b1001111 + 0o40) + chr(0b110011) + chr(380 - 326) + chr(0b110000), 0o10), nzTpIcepk0o8(chr(48) + chr(0b11 + 0o154) + chr(0b11111 + 0o22) + chr(0b100000 + 0o20) + chr(0b1011 + 0o47), 0b1000), nzTpIcepk0o8(chr(48) + chr(2095 - 1984) + chr(0b11100 + 0o27) + chr(0b110101) + '\061', 19070 - 19062), nzTpIcepk0o8(chr(1384 - 1336) + chr(0b100001 + 0o116) + chr(1258 - 1209) + chr(0b110010) + '\063', 0b1000), nzTpIcepk0o8(chr(239 - 191) + chr(0b101100 + 0o103) + chr(0b110010) + chr(0b110001) + chr(0b100011 + 0o21), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(50) + '\061' + chr(0b110111), 0o10), nzTpIcepk0o8(chr(0b100101 + 0o13) + '\157' + chr(1415 - 1364) + chr(0b110100) + '\063', ord("\x08")), nzTpIcepk0o8(chr(0b11101 + 0o23) + '\x6f' + chr(197 - 148) + '\x30' + chr(0b110111), ord("\x08")), nzTpIcepk0o8(chr(0b101001 + 0o7) + chr(111) + chr(0b101110 + 0o3) + chr(50) + chr(55), 18086 - 18078), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110001) + chr(0b1010 + 0o47), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(1732 - 1621) + chr(0b100001 + 0o21) + chr(50) + chr(0b1000 + 0o57), 0b1000), nzTpIcepk0o8(chr(684 - 636) + chr(0b1010000 + 0o37) + chr(0b101001 + 0o11) + chr(0b110000) + chr(0b10 + 0o63), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110010) + chr(0b100110 + 0o13) + chr(0b110111), 8), nzTpIcepk0o8(chr(0b101010 + 0o6) + chr(0b1010 + 0o145) + '\x34' + chr(51), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x32' + '\060' + '\064', ord("\x08")), nzTpIcepk0o8(chr(738 - 690) + chr(357 - 246) + chr(0b110011) + '\065' + chr(50), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101101 + 0o2) + chr(53) + '\061', ord("\x08")), nzTpIcepk0o8(chr(1813 - 1765) + chr(617 - 506) + chr(0b101110 + 0o4) + '\060' + chr(0b110110), 0o10), nzTpIcepk0o8(chr(613 - 565) + chr(8151 - 8040) + chr(51) + chr(0b110110) + '\061', 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(1500 - 1446), 64297 - 64289), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x35', 0o10), nzTpIcepk0o8(chr(356 - 308) + chr(1634 - 1523) + chr(516 - 467) + chr(54) + '\x33', 38118 - 38110), nzTpIcepk0o8(chr(0b101001 + 0o7) + chr(111) + chr(1114 - 1065) + '\x33' + chr(2904 - 2850), 5452 - 5444), nzTpIcepk0o8(chr(0b110000) + '\157' + '\062' + '\061' + '\063', 0o10), nzTpIcepk0o8('\x30' + chr(0b110101 + 0o72) + '\x32' + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(839 - 791) + chr(6956 - 6845) + chr(0b110001) + chr(0b100001 + 0o17), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(1719 - 1608) + chr(658 - 608) + '\x37' + chr(0b10001 + 0o43), 8), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110001), 15202 - 15194), nzTpIcepk0o8(chr(48) + '\157' + chr(1422 - 1372) + chr(1980 - 1932) + chr(0b110010), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b1100 + 0o45) + chr(0b110001 + 0o1) + '\x37', 8), nzTpIcepk0o8(chr(421 - 373) + chr(111) + chr(1591 - 1539), 8926 - 8918), nzTpIcepk0o8('\060' + chr(0b110100 + 0o73) + '\x33' + '\066' + chr(310 - 260), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(49) + chr(0b110001) + chr(1412 - 1361), 0o10), nzTpIcepk0o8(chr(1053 - 1005) + chr(4795 - 4684) + '\x31' + chr(53) + '\066', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b11010 + 0o31) + chr(0b110101) + '\x33', 0o10), nzTpIcepk0o8(chr(718 - 670) + chr(111) + chr(0b100100 + 0o17) + chr(0b10001 + 0o37) + chr(0b110010), 44684 - 44676), nzTpIcepk0o8(chr(0b1010 + 0o46) + '\157' + '\065' + chr(0b110001), 8)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(0b10100 + 0o133) + chr(53) + '\x30', 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x92'), '\x64' + chr(0b1100101) + chr(0b1100011) + '\x6f' + chr(6465 - 6365) + chr(0b100101 + 0o100))(chr(0b1001000 + 0o55) + '\164' + chr(102) + chr(0b100101 + 0o10) + chr(56)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def J_MfaBB8xQoC(nx0m10Xky5cn, t3daxo7Rk3Gs): if not suIjIS24Zkqw(t3daxo7Rk3Gs, H4NoA26ON7iG): raise bvzaJ98LpDhC(roI3spqORKae(ES5oEprVxulp(b'\x9e\xd8\x0f\x9e-\x9b6\xde\xea\x9642)\xfa\xf0\xfcW\xa4\x88L\xa6\x90&i\x1a-\xff1g\xda!\xf1#v\x9b%\t\x98\xe2\x04\x9c\xe2\x1c\x91%\x8cs\xc5\xcb\x90g8{\xb7\xa7\xa5\x01'), chr(0b1100100) + chr(0b1100101) + '\x63' + chr(7562 - 7451) + '\144' + chr(0b1001100 + 0o31))(chr(8559 - 8442) + chr(0b100011 + 0o121) + chr(0b101000 + 0o76) + '\x2d' + '\x38')) KE5fxV4sta1n = Bvi71nNyvlqO(t3daxo7Rk3Gs) if roI3spqORKae(ES5oEprVxulp(b'\x96'), chr(0b10001 + 0o123) + chr(101) + chr(9323 - 9224) + chr(111) + chr(1998 - 1898) + '\x65')(chr(0b1110101) + chr(116) + chr(0b110000 + 0o66) + chr(168 - 123) + '\x38') in KE5fxV4sta1n and KE5fxV4sta1n == nzTpIcepk0o8(chr(1904 - 1856) + chr(0b11001 + 0o126) + chr(49), 8): return TjAOhWVzU8Og = Bvi71nNyvlqO([zjGR30ByKU96.GUKetu4xaGsJ(roI3spqORKae(ES5oEprVxulp(b'\xd5\xf5'), chr(2392 - 2292) + chr(0b10110 + 0o117) + chr(99) + chr(111) + chr(0b1011111 + 0o5) + '\145')('\165' + '\x74' + chr(3121 - 3019) + '\055' + chr(56))) for zjGR30ByKU96 in nx0m10Xky5cn]) for l6grdi_MI92o in KE5fxV4sta1n: if l6grdi_MI92o not in TjAOhWVzU8Og: raise bvzaJ98LpDhC(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b"\xef\xe5\t\x97'\xc9$\xe5\xfb\x8bg\x1eM\xb7\xfe\xf2\x03\xea\x85]\xa6\x97ip\x1d:\xa51I\xd8e\xa26$\x9f*\x1a\x88\xaa@\xd2\xf6H\xd2+\x8dq\xac\xe9\x8c5w}\xff\xe0\xafP\xf0\x8bN\xe3\xd1\x7fj\x06~\xfcx{\xd4!\xf68$\x81.\x1a\xcb\xabN\xd2\xfe\x1a\x95\x10\x8c&\xff\xea\xc3!8{"), '\x64' + '\145' + chr(0b1100010 + 0o1) + '\157' + chr(7638 - 7538) + '\145')(chr(0b10 + 0o163) + '\164' + chr(0b1100110) + chr(45) + '\x38'), roI3spqORKae(ES5oEprVxulp(b'\xcd\xa2[\xbb\x05\xda5\xe3\xde\xbc\x04\x1d'), chr(100) + chr(101) + '\143' + chr(111) + '\144' + '\145')(chr(117) + chr(116) + '\146' + chr(0b100101 + 0o10) + chr(0b1101 + 0o53)))(l6grdi_MI92o))
dnanexus/dx-toolkit
src/python/dxpy/workflow_builder.py
_get_validated_stages
def _get_validated_stages(stages): """ Validates stages of the workflow as a list of dictionaries. """ if not isinstance(stages, list): raise WorkflowBuilderException("Stages must be specified as a list of dictionaries") validated_stages = [] for index, stage in enumerate(stages): validated_stages.append(_get_validated_stage(stage, index)) return validated_stages
python
def _get_validated_stages(stages): """ Validates stages of the workflow as a list of dictionaries. """ if not isinstance(stages, list): raise WorkflowBuilderException("Stages must be specified as a list of dictionaries") validated_stages = [] for index, stage in enumerate(stages): validated_stages.append(_get_validated_stage(stage, index)) return validated_stages
[ "def", "_get_validated_stages", "(", "stages", ")", ":", "if", "not", "isinstance", "(", "stages", ",", "list", ")", ":", "raise", "WorkflowBuilderException", "(", "\"Stages must be specified as a list of dictionaries\"", ")", "validated_stages", "=", "[", "]", "for", "index", ",", "stage", "in", "enumerate", "(", "stages", ")", ":", "validated_stages", ".", "append", "(", "_get_validated_stage", "(", "stage", ",", "index", ")", ")", "return", "validated_stages" ]
Validates stages of the workflow as a list of dictionaries.
[ "Validates", "stages", "of", "the", "workflow", "as", "a", "list", "of", "dictionaries", "." ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/workflow_builder.py#L203-L212
train
Validates the given stages and returns a list of dictionaries.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ip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EV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b101010 + 0o6) + '\157' + chr(1321 - 1271) + '\x36' + chr(48), ord("\x08")), nzTpIcepk0o8(chr(1181 - 1133) + chr(111) + '\061' + chr(0b110011) + chr(767 - 718), 0b1000), nzTpIcepk0o8(chr(1614 - 1566) + chr(111) + chr(0b1010 + 0o51) + chr(0b110001) + '\065', 0o10), nzTpIcepk0o8(chr(568 - 520) + '\157' + '\061' + chr(346 - 292) + chr(0b110110), 9745 - 9737), nzTpIcepk0o8(chr(0b110000 + 0o0) + chr(3537 - 3426) + chr(502 - 452) + chr(49) + '\x37', 25722 - 25714), nzTpIcepk0o8('\x30' + '\x6f' + chr(2016 - 1966) + '\067' + '\x33', 0o10), nzTpIcepk0o8(chr(0b100001 + 0o17) + chr(0b1101111) + '\x36' + chr(804 - 750), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(155 - 105) + chr(50) + '\066', 0o10), nzTpIcepk0o8(chr(195 - 147) + chr(0b1101111) + chr(0b101010 + 0o11) + '\065', 0o10), nzTpIcepk0o8(chr(48) + chr(111) + '\062' + '\064', ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(50) + chr(0b110100) + chr(53), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(9451 - 9340) + chr(49) + chr(97 - 49) + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\061' + '\x32' + chr(1637 - 1583), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(277 - 226) + '\x36' + chr(0b11110 + 0o26), 30137 - 30129), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110111) + '\x35', ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(0b10111 + 0o32) + chr(2156 - 2108) + chr(0b110000), 6118 - 6110), nzTpIcepk0o8('\060' + chr(0b11100 + 0o123) + chr(0b110011) + chr(51) + '\x33', 21945 - 21937), nzTpIcepk0o8(chr(48) + chr(2447 - 2336) + '\x31' + chr(0b110010) + '\x33', 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(0b100001 + 0o22) + chr(0b110111) + chr(317 - 266), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110 + 0o54) + chr(0b100101 + 0o13) + chr(80 - 27), 26330 - 26322), nzTpIcepk0o8(chr(770 - 722) + chr(7506 - 7395) + '\x32' + chr(0b11101 + 0o31) + chr(824 - 776), 8), nzTpIcepk0o8(chr(0b11011 + 0o25) + '\157' + chr(51) + chr(0b110011 + 0o3) + chr(0b100110 + 0o21), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(1280 - 1231) + '\062' + chr(0b110000), 0o10), nzTpIcepk0o8(chr(0b100110 + 0o12) + chr(0b1101111) + chr(49) + chr(49) + '\065', 0b1000), nzTpIcepk0o8(chr(1178 - 1130) + '\157' + chr(0b1011 + 0o50) + chr(1570 - 1516) + chr(1146 - 1091), 8), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\062' + chr(2145 - 2090) + chr(1116 - 1067), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x32' + chr(50), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(0b10111 + 0o35), 14865 - 14857), nzTpIcepk0o8('\060' + '\x6f' + chr(1658 - 1609) + chr(0b11110 + 0o27) + chr(0b11011 + 0o33), 0b1000), nzTpIcepk0o8(chr(0b10001 + 0o37) + chr(0b1101111) + '\x36' + chr(0b111 + 0o57), 8), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110010) + chr(0b101011 + 0o12), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b10011 + 0o36) + chr(529 - 476) + chr(0b100111 + 0o17), 8), nzTpIcepk0o8(chr(538 - 490) + chr(0b101111 + 0o100) + '\x32' + chr(0b110001) + chr(0b11001 + 0o30), 0o10), nzTpIcepk0o8(chr(0b101011 + 0o5) + chr(0b101111 + 0o100) + chr(0b110011) + chr(0b1000 + 0o52) + chr(0b1011 + 0o46), ord("\x08")), nzTpIcepk0o8(chr(1199 - 1151) + chr(7081 - 6970) + chr(929 - 879) + '\x34' + chr(0b10011 + 0o43), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(0b110011) + '\x35', 8), nzTpIcepk0o8(chr(48) + chr(0b1 + 0o156) + chr(0b101101 + 0o5) + '\x37' + '\062', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(6602 - 6491) + '\061' + chr(0b110001) + chr(49), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\063' + chr(54) + chr(2117 - 2065), 8), nzTpIcepk0o8(chr(0b1 + 0o57) + '\x6f' + chr(0b110001) + chr(0b110100) + chr(1862 - 1810), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + '\157' + chr(189 - 136) + chr(0b110000), 35854 - 35846)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x9e'), chr(100) + chr(101) + chr(5245 - 5146) + chr(0b1101111) + '\144' + chr(101))('\165' + chr(10081 - 9965) + '\146' + '\055' + chr(56)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def UIxKaWS4xthr(nx0m10Xky5cn): if not suIjIS24Zkqw(nx0m10Xky5cn, H4NoA26ON7iG): raise bvzaJ98LpDhC(roI3spqORKae(ES5oEprVxulp(b'\xe3-\xac\x11\xea\xc8\x16\xfbhg\xd1a4\x91\x1d3\xab6\x98\xec\xd6\x9e5)\xd7\xd8a$\x0f\x16y\x07\xfa\xa5\x86r\xdci\x90\r\xd3-\xa4\x19\xe1\xdaD\xffxg'), '\144' + chr(0b110110 + 0o57) + chr(5363 - 5264) + chr(0b101100 + 0o103) + '\x64' + chr(101))(chr(117) + '\x74' + chr(102) + '\055' + chr(2167 - 2111))) BSIEm253zl86 = [] for (ZpfN5tSLaZze, zjGR30ByKU96) in _kV_Bomx8PZ4(nx0m10Xky5cn): roI3spqORKae(BSIEm253zl86, roI3spqORKae(ES5oEprVxulp(b'\xf8\r\x9eB\xf7\xdcq\xf9w{\xf0t'), '\x64' + chr(101) + chr(0b10 + 0o141) + chr(4806 - 4695) + '\x64' + chr(0b111011 + 0o52))('\x75' + chr(8539 - 8423) + chr(0b100011 + 0o103) + chr(0b100001 + 0o14) + chr(56)))(CNEOj35gPGXI(zjGR30ByKU96, ZpfN5tSLaZze)) return BSIEm253zl86
dnanexus/dx-toolkit
src/python/dxpy/workflow_builder.py
_validate_json_for_regular_workflow
def _validate_json_for_regular_workflow(json_spec, args): """ Validates fields used only for building a regular, project-based workflow. """ validated = {} override_project_id, override_folder, override_workflow_name = \ dxpy.executable_builder.get_parsed_destination(args.destination) validated['project'] = _get_destination_project(json_spec, args, override_project_id) validated['folder'] = _get_destination_folder(json_spec, override_folder) workflow_name = _get_workflow_name(json_spec, override_workflow_name) if not workflow_name: print('Warning: workflow name is not specified') else: validated['name'] = workflow_name return validated
python
def _validate_json_for_regular_workflow(json_spec, args): """ Validates fields used only for building a regular, project-based workflow. """ validated = {} override_project_id, override_folder, override_workflow_name = \ dxpy.executable_builder.get_parsed_destination(args.destination) validated['project'] = _get_destination_project(json_spec, args, override_project_id) validated['folder'] = _get_destination_folder(json_spec, override_folder) workflow_name = _get_workflow_name(json_spec, override_workflow_name) if not workflow_name: print('Warning: workflow name is not specified') else: validated['name'] = workflow_name return validated
[ "def", "_validate_json_for_regular_workflow", "(", "json_spec", ",", "args", ")", ":", "validated", "=", "{", "}", "override_project_id", ",", "override_folder", ",", "override_workflow_name", "=", "dxpy", ".", "executable_builder", ".", "get_parsed_destination", "(", "args", ".", "destination", ")", "validated", "[", "'project'", "]", "=", "_get_destination_project", "(", "json_spec", ",", "args", ",", "override_project_id", ")", "validated", "[", "'folder'", "]", "=", "_get_destination_folder", "(", "json_spec", ",", "override_folder", ")", "workflow_name", "=", "_get_workflow_name", "(", "json_spec", ",", "override_workflow_name", ")", "if", "not", "workflow_name", ":", "print", "(", "'Warning: workflow name is not specified'", ")", "else", ":", "validated", "[", "'name'", "]", "=", "workflow_name", "return", "validated" ]
Validates fields used only for building a regular, project-based workflow.
[ "Validates", "fields", "used", "only", "for", "building", "a", "regular", "project", "-", "based", "workflow", "." ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/workflow_builder.py#L215-L230
train
Validates the JSON spec for a regular project - based workflow.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZD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Kr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(858 - 810) + chr(0b1101111) + chr(0b1001 + 0o51) + chr(0b110000 + 0o3) + '\x35', 0o10), nzTpIcepk0o8('\x30' + chr(0b1100100 + 0o13) + chr(0b110100 + 0o3), 50588 - 50580), nzTpIcepk0o8(chr(48) + '\x6f' + '\x33' + chr(0b100101 + 0o20), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(50) + chr(1671 - 1623) + '\x34', 0o10), nzTpIcepk0o8(chr(0b110000 + 0o0) + chr(0b101111 + 0o100) + chr(1219 - 1168) + chr(242 - 188) + chr(2297 - 2244), 44497 - 44489), nzTpIcepk0o8('\060' + chr(11569 - 11458) + chr(1751 - 1697) + chr(2506 - 2451), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110101) + chr(109 - 55), ord("\x08")), nzTpIcepk0o8(chr(0b11 + 0o55) + '\x6f' + '\063' + chr(0b11101 + 0o30) + '\065', 20339 - 20331), nzTpIcepk0o8(chr(0b1 + 0o57) + chr(0b110110 + 0o71) + chr(1451 - 1400) + chr(48) + '\x31', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110 + 0o55) + '\060' + chr(0b110010), 43254 - 43246), nzTpIcepk0o8('\060' + '\x6f' + chr(50) + chr(48) + chr(53), 63243 - 63235), nzTpIcepk0o8(chr(0b101011 + 0o5) + chr(815 - 704) + chr(0b1110 + 0o44) + chr(1124 - 1072) + '\x32', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(6520 - 6409) + '\063' + '\062', ord("\x08")), nzTpIcepk0o8('\060' + chr(9236 - 9125) + chr(2135 - 2084) + chr(0b11001 + 0o34) + chr(1365 - 1311), 0b1000), nzTpIcepk0o8(chr(0b11001 + 0o27) + chr(0b1101111) + chr(416 - 365) + chr(0b110101), 8), nzTpIcepk0o8(chr(0b11011 + 0o25) + chr(4822 - 4711) + chr(0b110101) + chr(1980 - 1925), 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(0b100 + 0o57) + '\x34' + chr(0b110100), 51733 - 51725), nzTpIcepk0o8(chr(0b11100 + 0o24) + chr(0b1101111) + chr(0b110001) + '\x36' + chr(0b11101 + 0o27), 0b1000), nzTpIcepk0o8('\060' + chr(111) + '\062' + chr(0b101001 + 0o7), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(9006 - 8895) + chr(0b110011) + chr(50) + '\x35', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x33' + chr(0b110111) + '\x35', 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(0b100100 + 0o15) + chr(1833 - 1780) + chr(1069 - 1018), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b1111 + 0o50) + chr(0b100000 + 0o23), 0o10), nzTpIcepk0o8(chr(0b10101 + 0o33) + '\x6f' + chr(0b110001 + 0o1) + chr(0b101010 + 0o14) + chr(0b110111), 28348 - 28340), nzTpIcepk0o8(chr(48) + chr(0b1100 + 0o143) + '\x31' + chr(52) + chr(0b101101 + 0o3), 43054 - 43046), nzTpIcepk0o8(chr(0b101011 + 0o5) + chr(0b1101111) + chr(0b110010) + chr(0b110001) + '\065', 0b1000), nzTpIcepk0o8(chr(1726 - 1678) + chr(0b111101 + 0o62) + '\061' + '\062' + chr(0b100110 + 0o16), ord("\x08")), nzTpIcepk0o8(chr(77 - 29) + chr(111) + chr(0b100001 + 0o22) + chr(0b110111) + chr(0b110010), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(2237 - 2186) + chr(0b110011) + '\065', 54444 - 54436), nzTpIcepk0o8(chr(0b10011 + 0o35) + '\157' + chr(0b10001 + 0o40) + chr(0b110010) + '\x36', 0o10), nzTpIcepk0o8(chr(2016 - 1968) + chr(9373 - 9262) + chr(49) + '\066' + '\064', 8), nzTpIcepk0o8(chr(0b101001 + 0o7) + '\157' + chr(55) + chr(0b111 + 0o51), 0o10), nzTpIcepk0o8(chr(0b1000 + 0o50) + chr(0b1101111) + chr(0b110001) + chr(0b110010) + '\061', 62583 - 62575), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b101001 + 0o11) + chr(0b100000 + 0o27) + chr(0b10 + 0o57), 0b1000), nzTpIcepk0o8(chr(1373 - 1325) + chr(0b1101111) + chr(0b0 + 0o65) + chr(52), 0o10), nzTpIcepk0o8(chr(48) + chr(10976 - 10865) + '\x32' + chr(0b100110 + 0o16) + '\067', 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(50) + '\x36' + chr(50), 0b1000), nzTpIcepk0o8('\060' + chr(0b101000 + 0o107) + chr(0b110001) + chr(0b110000) + chr(0b110010), ord("\x08")), nzTpIcepk0o8(chr(0b11 + 0o55) + chr(0b1101111) + '\063' + chr(0b110010 + 0o5) + '\065', 8), nzTpIcepk0o8('\060' + '\157' + '\x31' + chr(49) + '\063', 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(1963 - 1915) + chr(0b1101111) + chr(0b100110 + 0o17) + chr(48), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xb3'), chr(8564 - 8464) + chr(0b1100101) + chr(8480 - 8381) + chr(111) + chr(0b101101 + 0o67) + chr(0b1100101))('\165' + '\164' + chr(6149 - 6047) + '\x2d' + chr(56)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def _1sQqif9r4WQ(agxi8L4gDzUu, eemPYp2vtTSr): OCZDT6QyGJNM = {} (NYtmCciYFrIi, MAmKjVq7ZJOT, byVN9YtH_6hV) = SsdNdRxXOwsF.executable_builder.get_parsed_destination(eemPYp2vtTSr.ZvPf2p7avF3N) OCZDT6QyGJNM[roI3spqORKae(ES5oEprVxulp(b'\xedur\xee\x90TZ'), chr(5238 - 5138) + chr(3502 - 3401) + '\x63' + chr(111) + chr(0b1000001 + 0o43) + chr(9750 - 9649))('\x75' + '\x74' + '\146' + '\055' + chr(0b111000))] = S7f_XpLxHjJf(agxi8L4gDzUu, eemPYp2vtTSr, NYtmCciYFrIi) OCZDT6QyGJNM[roI3spqORKae(ES5oEprVxulp(b'\xfbhq\xe0\x90E'), chr(3448 - 3348) + chr(0b1100101) + chr(462 - 363) + chr(0b1100110 + 0o11) + chr(9370 - 9270) + chr(0b1100101))(chr(0b1 + 0o164) + chr(116) + '\146' + chr(45) + chr(2861 - 2805))] = QjTjm3d6kHbL(agxi8L4gDzUu, MAmKjVq7ZJOT) cNcT9F3Dhj9T = c0SPaotv2KYx(agxi8L4gDzUu, byVN9YtH_6hV) if not cNcT9F3Dhj9T: v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b"\xcafo\xea\x9cYI\xd7\xe1\xb5\xea\xd0q\x88q@\x93T~\xb4\x90\x0e\x1b\xde\x13\xad:\x95\xa9v\x07H4\xdaE\xc1\xdb'\x99"), chr(7996 - 7896) + chr(1852 - 1751) + '\x63' + chr(0b100111 + 0o110) + chr(4934 - 4834) + chr(0b1100101))(chr(4327 - 4210) + chr(11708 - 11592) + chr(102) + chr(0b101101) + chr(0b101100 + 0o14))) else: OCZDT6QyGJNM[roI3spqORKae(ES5oEprVxulp(b'\xf3fp\xe1'), chr(876 - 776) + '\x65' + '\x63' + '\x6f' + chr(0b11111 + 0o105) + chr(1316 - 1215))('\165' + chr(0b1110100) + chr(0b1100011 + 0o3) + chr(0b101101) + chr(2387 - 2331))] = cNcT9F3Dhj9T return OCZDT6QyGJNM
dnanexus/dx-toolkit
src/python/dxpy/workflow_builder.py
_validate_json_for_global_workflow
def _validate_json_for_global_workflow(json_spec, args): """ Validates fields used for building a global workflow. Since building a global workflow is done after all the underlying workflows are built, which may be time-consuming, we validate as much as possible here. """ # TODO: verify the billTo can build the workflow # TODO: if the global workflow build fails add an option to interactively change billto # TODO: (or other simple fields) instead of failing altogether # TODO: get a confirmation before building a workflow that may be costly if 'name' not in json_spec: raise WorkflowBuilderException( "dxworkflow.json contains no 'name' field, but it is required to build a global workflow") if not dxpy.executable_builder.GLOBAL_EXEC_NAME_RE.match(json_spec['name']): raise WorkflowBuilderException( "The name of your workflow must match /^[a-zA-Z0-9._-]+$/") if json_spec['name'] != json_spec['name'].lower(): logger.warn('workflow name "{}" should be all lowercase'.format(json_spec['name'])) if 'version' not in json_spec: raise WorkflowBuilderException( "dxworkflow.json contains no 'version' field, but it is required to build a global workflow") if not dxpy.executable_builder.GLOBAL_EXEC_VERSION_RE.match(json_spec['version']): logger.warn('"version" {} should be semver compliant (e.g. of the form X.Y.Z)'.format(json_spec['version'])) if 'details' in json_spec: if not isinstance(json_spec['details'], dict): raise WorkflowBuilderException( 'The field "details" must be a dictionary') if 'regionalOptions' in json_spec: if not (isinstance(json_spec['regionalOptions'], dict) and json_spec['regionalOptions'] and all([isinstance(i, dict) for i in json_spec['regionalOptions'].values()])): raise WorkflowBuilderException( 'The field "regionalOptions" must be a non-empty dictionary whose values are dictionaries') if args.bill_to: json_spec["billTo"] = args.bill_to
python
def _validate_json_for_global_workflow(json_spec, args): """ Validates fields used for building a global workflow. Since building a global workflow is done after all the underlying workflows are built, which may be time-consuming, we validate as much as possible here. """ # TODO: verify the billTo can build the workflow # TODO: if the global workflow build fails add an option to interactively change billto # TODO: (or other simple fields) instead of failing altogether # TODO: get a confirmation before building a workflow that may be costly if 'name' not in json_spec: raise WorkflowBuilderException( "dxworkflow.json contains no 'name' field, but it is required to build a global workflow") if not dxpy.executable_builder.GLOBAL_EXEC_NAME_RE.match(json_spec['name']): raise WorkflowBuilderException( "The name of your workflow must match /^[a-zA-Z0-9._-]+$/") if json_spec['name'] != json_spec['name'].lower(): logger.warn('workflow name "{}" should be all lowercase'.format(json_spec['name'])) if 'version' not in json_spec: raise WorkflowBuilderException( "dxworkflow.json contains no 'version' field, but it is required to build a global workflow") if not dxpy.executable_builder.GLOBAL_EXEC_VERSION_RE.match(json_spec['version']): logger.warn('"version" {} should be semver compliant (e.g. of the form X.Y.Z)'.format(json_spec['version'])) if 'details' in json_spec: if not isinstance(json_spec['details'], dict): raise WorkflowBuilderException( 'The field "details" must be a dictionary') if 'regionalOptions' in json_spec: if not (isinstance(json_spec['regionalOptions'], dict) and json_spec['regionalOptions'] and all([isinstance(i, dict) for i in json_spec['regionalOptions'].values()])): raise WorkflowBuilderException( 'The field "regionalOptions" must be a non-empty dictionary whose values are dictionaries') if args.bill_to: json_spec["billTo"] = args.bill_to
[ "def", "_validate_json_for_global_workflow", "(", "json_spec", ",", "args", ")", ":", "# TODO: verify the billTo can build the workflow", "# TODO: if the global workflow build fails add an option to interactively change billto", "# TODO: (or other simple fields) instead of failing altogether", "# TODO: get a confirmation before building a workflow that may be costly", "if", "'name'", "not", "in", "json_spec", ":", "raise", "WorkflowBuilderException", "(", "\"dxworkflow.json contains no 'name' field, but it is required to build a global workflow\"", ")", "if", "not", "dxpy", ".", "executable_builder", ".", "GLOBAL_EXEC_NAME_RE", ".", "match", "(", "json_spec", "[", "'name'", "]", ")", ":", "raise", "WorkflowBuilderException", "(", "\"The name of your workflow must match /^[a-zA-Z0-9._-]+$/\"", ")", "if", "json_spec", "[", "'name'", "]", "!=", "json_spec", "[", "'name'", "]", ".", "lower", "(", ")", ":", "logger", ".", "warn", "(", "'workflow name \"{}\" should be all lowercase'", ".", "format", "(", "json_spec", "[", "'name'", "]", ")", ")", "if", "'version'", "not", "in", "json_spec", ":", "raise", "WorkflowBuilderException", "(", "\"dxworkflow.json contains no 'version' field, but it is required to build a global workflow\"", ")", "if", "not", "dxpy", ".", "executable_builder", ".", "GLOBAL_EXEC_VERSION_RE", ".", "match", "(", "json_spec", "[", "'version'", "]", ")", ":", "logger", ".", "warn", "(", "'\"version\" {} should be semver compliant (e.g. of the form X.Y.Z)'", ".", "format", "(", "json_spec", "[", "'version'", "]", ")", ")", "if", "'details'", "in", "json_spec", ":", "if", "not", "isinstance", "(", "json_spec", "[", "'details'", "]", ",", "dict", ")", ":", "raise", "WorkflowBuilderException", "(", "'The field \"details\" must be a dictionary'", ")", "if", "'regionalOptions'", "in", "json_spec", ":", "if", "not", "(", "isinstance", "(", "json_spec", "[", "'regionalOptions'", "]", ",", "dict", ")", "and", "json_spec", "[", "'regionalOptions'", "]", "and", "all", "(", "[", "isinstance", "(", "i", ",", "dict", ")", "for", "i", "in", "json_spec", "[", "'regionalOptions'", "]", ".", "values", "(", ")", "]", ")", ")", ":", "raise", "WorkflowBuilderException", "(", "'The field \"regionalOptions\" must be a non-empty dictionary whose values are dictionaries'", ")", "if", "args", ".", "bill_to", ":", "json_spec", "[", "\"billTo\"", "]", "=", "args", ".", "bill_to" ]
Validates fields used for building a global workflow. Since building a global workflow is done after all the underlying workflows are built, which may be time-consuming, we validate as much as possible here.
[ "Validates", "fields", "used", "for", "building", "a", "global", "workflow", ".", "Since", "building", "a", "global", "workflow", "is", "done", "after", "all", "the", "underlying", "workflows", "are", "built", "which", "may", "be", "time", "-", "consuming", "we", "validate", "as", "much", "as", "possible", "here", "." ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/workflow_builder.py#L233-L271
train
Validates the JSON spec for a global workflow.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiW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aseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(48) + '\157' + '\x31' + chr(2080 - 2031) + chr(0b101000 + 0o13), ord("\x08")), nzTpIcepk0o8(chr(1658 - 1610) + chr(111) + chr(1015 - 965) + chr(1962 - 1909) + '\x37', ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + '\x33', 0b1000), nzTpIcepk0o8(chr(1636 - 1588) + chr(111) + chr(1220 - 1169) + chr(59 - 11) + chr(0b101010 + 0o11), 57902 - 57894), nzTpIcepk0o8(chr(0b110000) + chr(0b111111 + 0o60) + chr(0b110011) + chr(0b110000) + chr(794 - 745), 32751 - 32743), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(49) + '\x34' + '\x32', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1100111 + 0o10) + chr(1143 - 1093) + '\x35' + '\063', 35015 - 35007), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110001) + chr(2516 - 2464), 54078 - 54070), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(49) + chr(0b101100 + 0o4) + chr(51), ord("\x08")), nzTpIcepk0o8(chr(1374 - 1326) + chr(8036 - 7925) + '\x33' + '\067' + chr(1614 - 1564), 0o10), nzTpIcepk0o8(chr(0b11 + 0o55) + chr(2307 - 2196) + chr(0b110011) + chr(2303 - 2250) + chr(0b101110 + 0o2), 0b1000), nzTpIcepk0o8(chr(0b100110 + 0o12) + chr(0b11011 + 0o124) + chr(0b11110 + 0o24) + chr(0b110110), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(0b10100 + 0o37) + '\066' + chr(746 - 698), 0b1000), nzTpIcepk0o8(chr(0b1111 + 0o41) + '\157' + chr(577 - 526) + '\x32' + chr(0b11010 + 0o26), 8947 - 8939), nzTpIcepk0o8('\x30' + chr(0b110110 + 0o71) + '\x33' + '\064' + chr(2309 - 2258), 42340 - 42332), nzTpIcepk0o8('\x30' + chr(0b100111 + 0o110) + chr(0b110001) + chr(0b11101 + 0o25) + '\x32', 0o10), nzTpIcepk0o8(chr(48) + chr(0b11110 + 0o121) + chr(0b10011 + 0o37) + '\x37' + chr(0b110101), 10574 - 10566), nzTpIcepk0o8(chr(48) + chr(0b1000010 + 0o55) + chr(0b10110 + 0o33) + chr(0b110111) + '\061', ord("\x08")), nzTpIcepk0o8(chr(0b110 + 0o52) + chr(0b1101111) + '\x31' + '\x36' + chr(0b10000 + 0o41), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + '\x36' + chr(2341 - 2292), ord("\x08")), nzTpIcepk0o8(chr(0b11100 + 0o24) + chr(111) + chr(51) + chr(54) + '\063', 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b101010 + 0o11) + chr(0b110011) + chr(52), 20907 - 20899), nzTpIcepk0o8('\x30' + '\x6f' + chr(1003 - 954) + '\x32' + chr(0b11111 + 0o27), 58831 - 58823), nzTpIcepk0o8(chr(1096 - 1048) + chr(111) + '\067' + '\066', 0o10), nzTpIcepk0o8(chr(48) + chr(0b110001 + 0o76) + chr(1724 - 1673) + chr(0b110101) + '\065', 36937 - 36929), nzTpIcepk0o8('\060' + chr(0b110010 + 0o75) + '\x31' + chr(55) + chr(48), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110010) + chr(0b110101) + '\065', 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110010) + chr(49) + '\x32', 62283 - 62275), nzTpIcepk0o8(chr(1386 - 1338) + chr(0b1101111) + '\065' + chr(0b11000 + 0o35), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b11 + 0o57) + chr(0b11011 + 0o30) + '\x30', 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(52) + chr(599 - 548), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(51) + chr(0b110100) + chr(0b101001 + 0o14), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(8094 - 7983) + chr(645 - 590) + chr(0b110011), 27357 - 27349), nzTpIcepk0o8(chr(501 - 453) + '\x6f' + chr(299 - 249) + chr(0b1000 + 0o57) + chr(55), 0o10), nzTpIcepk0o8(chr(2167 - 2119) + chr(111) + '\062' + chr(1730 - 1678) + chr(48), 11395 - 11387), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b111 + 0o54) + chr(0b110001) + '\x34', 0b1000), nzTpIcepk0o8('\060' + '\x6f' + '\x35' + chr(0b110110 + 0o1), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b101000 + 0o107) + chr(689 - 638) + '\064', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110010) + chr(0b111 + 0o54) + '\x32', 0o10), nzTpIcepk0o8(chr(48) + chr(410 - 299) + chr(0b110010) + chr(2022 - 1972) + chr(53), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(53) + chr(1007 - 959), 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'e'), chr(100) + chr(101) + chr(5382 - 5283) + chr(111) + chr(5693 - 5593) + '\145')('\165' + chr(0b100011 + 0o121) + '\146' + '\x2d' + '\x38') + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def pweY8EIrNmUU(agxi8L4gDzUu, eemPYp2vtTSr): if roI3spqORKae(ES5oEprVxulp(b'%\xcen\xa6'), chr(0b100110 + 0o76) + chr(3663 - 3562) + '\143' + chr(111) + chr(0b1100100) + chr(0b1101 + 0o130))(chr(2833 - 2716) + chr(0b1000 + 0o154) + chr(102) + '\055' + chr(1819 - 1763)) not in agxi8L4gDzUu: raise bvzaJ98LpDhC(roI3spqORKae(ES5oEprVxulp(b"/\xd7t\xac\xb3\t\xcd`,\x8d\xc6|\x83\xbf\x8dr\xde\x16\x1fE\x92\xb58M\xcd\x16\xc2\xaa\n\xf6B\x88^\x98\x80\xaaFy\xf6\xf1g\x8fa\xb6\xb5B\xc2xc\x93\x9b6\x82\xb5\x92'\xd4\x0b\x14U\xd3\xa89\x1e\x8f\r\xc4\xe6I\xb8B\xc5\\\xd3\xcf\xaeNp\xba\xe2$\xddh\xa5\xad\r\xdc"), chr(100) + chr(101) + '\x63' + '\157' + chr(100) + chr(101))(chr(0b1110101) + chr(0b111011 + 0o71) + chr(0b100011 + 0o103) + '\x2d' + chr(0b11 + 0o65))) if not roI3spqORKae(SsdNdRxXOwsF.executable_builder.GLOBAL_EXEC_NAME_RE, roI3spqORKae(ES5oEprVxulp(b'#\xc4:\x8c\xa8\x08\xc6e\x00\xa5\x92W'), chr(100) + chr(9642 - 9541) + '\x63' + chr(0b1011101 + 0o22) + '\144' + '\145')(chr(4237 - 4120) + chr(116) + chr(7681 - 7579) + chr(1010 - 965) + chr(1542 - 1486)))(agxi8L4gDzUu[roI3spqORKae(ES5oEprVxulp(b'%\xcen\xa6'), chr(0b1100100) + '\145' + chr(99) + chr(0b101011 + 0o104) + chr(100) + chr(0b1100101))(chr(0b1110101) + chr(0b1110100) + '\146' + '\055' + chr(1898 - 1842))]): raise bvzaJ98LpDhC(roI3spqORKae(ES5oEprVxulp(b'\x1f\xc7f\xe3\xaf\x03\xc6ic\x95\x8e6\x89\xbf\x96 \x9d\x0e\x1eC\x98\xba:Q\x9aX\xc0\xff^\xec\x03\x88Z\xcb\xc3\xa4\x0f3\xc4\xce*\x82y\x82\xec8\x9b!z\xd4\xb7;\xad\xfb\xc7}'), '\144' + chr(101) + '\143' + chr(9670 - 9559) + chr(100) + '\145')(chr(0b1110101) + chr(1439 - 1323) + '\146' + chr(0b101101) + chr(0b110000 + 0o10))) if agxi8L4gDzUu[roI3spqORKae(ES5oEprVxulp(b'%\xcen\xa6'), chr(6627 - 6527) + chr(0b1100101) + chr(99) + chr(4574 - 4463) + chr(4560 - 4460) + '\x65')(chr(0b1011110 + 0o27) + '\164' + '\x66' + '\x2d' + chr(0b111000))] != roI3spqORKae(agxi8L4gDzUu[roI3spqORKae(ES5oEprVxulp(b'%\xcen\xa6'), chr(0b1000010 + 0o42) + chr(0b1100101) + chr(0b1001100 + 0o27) + chr(6668 - 6557) + '\144' + '\145')('\165' + chr(0b111111 + 0o65) + chr(765 - 663) + '\055' + chr(0b0 + 0o70))], roI3spqORKae(ES5oEprVxulp(b"\x13\xc1;\x86\x8f5\xe6V'\xb3\xbab"), '\144' + chr(0b1100101) + chr(0b1100011) + '\157' + chr(4986 - 4886) + chr(101))('\x75' + chr(0b1110100) + chr(102) + chr(0b100000 + 0o15) + chr(0b101011 + 0o15)))(): roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'8\xe5R\x95\x9e*\xda_z\x9c\x8fl'), '\x64' + '\145' + '\x63' + '\x6f' + chr(0b1100100) + '\x65')(chr(0b111011 + 0o72) + chr(0b1010101 + 0o37) + chr(102) + '\055' + chr(0b111000 + 0o0)))(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'<\xc0q\xa8\xa7\x0e\xc4{c\x94\x89{\x95\xf0\xc1)\xc0[QB\x9b\xb3#R\x89X\xcf\xef\r\xf9O\x89\x1b\xd3\xcf\xbbJn\xf9\xf48\xca'), chr(100) + '\145' + '\143' + chr(111) + '\144' + chr(3756 - 3655))('\x75' + chr(0b1110100) + chr(0b1010000 + 0o26) + '\x2d' + chr(0b11000 + 0o40)), roI3spqORKae(ES5oEprVxulp(b':\x9c0\x88\x86Q\xcdc\x12\xa5\xab\\'), '\144' + '\x65' + chr(8499 - 8400) + chr(0b10 + 0o155) + '\144' + chr(0b110100 + 0o61))(chr(0b1110101) + chr(0b1110100) + chr(2405 - 2303) + chr(1951 - 1906) + chr(56)))(agxi8L4gDzUu[roI3spqORKae(ES5oEprVxulp(b'%\xcen\xa6'), chr(0b1100100) + chr(0b1100101) + '\143' + chr(111) + '\144' + chr(0b1001010 + 0o33))(chr(117) + chr(0b1100100 + 0o20) + '\x66' + chr(2003 - 1958) + '\070')])) if roI3spqORKae(ES5oEprVxulp(b'=\xcaq\xb0\xa8\r\xc5'), '\x64' + '\145' + chr(99) + '\157' + '\x64' + chr(0b111000 + 0o55))(chr(117) + '\x74' + chr(0b1100110) + '\055' + chr(56)) not in agxi8L4gDzUu: raise bvzaJ98LpDhC(roI3spqORKae(ES5oEprVxulp(b"/\xd7t\xac\xb3\t\xcd`,\x8d\xc6|\x83\xbf\x8dr\xde\x16\x1fE\x92\xb58M\xcd\x16\xc2\xaa\n\xeeF\x97H\xd6\xcf\xa2\x08<\xfc\xfc.\xc3g\xef\xe1\x00\xdexc\x93\x9c6\x99\xa3\xc3 \xd8\x08\x04X\x81\xb92\x1e\x99\x17\x8d\xe8X\xf1O\x81\x1b\xde\x80\xabCs\xf8\xf4'\x8ft\xac\xb3\t\xcd`,\x8d"), '\x64' + '\145' + '\x63' + '\x6f' + chr(0b1001001 + 0o33) + chr(0b1100101))(chr(0b1110101) + chr(0b11100 + 0o130) + '\146' + '\x2d' + '\x38')) if not roI3spqORKae(SsdNdRxXOwsF.executable_builder.GLOBAL_EXEC_VERSION_RE, roI3spqORKae(ES5oEprVxulp(b'#\xc4:\x8c\xa8\x08\xc6e\x00\xa5\x92W'), '\x64' + chr(0b1100101) + '\x63' + '\x6f' + chr(100) + '\145')(chr(7888 - 7771) + chr(0b11100 + 0o130) + '\x66' + '\055' + chr(56)))(agxi8L4gDzUu[roI3spqORKae(ES5oEprVxulp(b'=\xcaq\xb0\xa8\r\xc5'), '\x64' + chr(101) + '\143' + chr(111) + chr(0b1011110 + 0o6) + chr(0b1100101))(chr(0b1110101) + chr(0b1110100) + chr(0b1100110) + chr(0b101101) + chr(0b111000))]): roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'8\xe5R\x95\x9e*\xda_z\x9c\x8fl'), '\144' + chr(7848 - 7747) + chr(0b1100011) + '\157' + chr(1059 - 959) + chr(9380 - 9279))(chr(0b100001 + 0o124) + chr(0b1011000 + 0o34) + chr(0b1100110) + '\055' + '\070'))(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'i\xd9f\xb1\xb2\x0b\xc4ba\xda\x93k\xd0\xa3\x8b=\xc8\x15\x15\x11\x91\xb9vM\x88\x15\xdb\xef_\xb8@\x8aV\xcf\xcc\xa5Nr\xee\xb5c\xca-\xa4\xefB\xc4jc\x8e\x80s\xd0\xb6\x8c \xd0Y)\x1f\xaa\xf2\x0c\x17'), chr(3224 - 3124) + chr(0b1000000 + 0o45) + chr(1512 - 1413) + chr(0b1101111) + chr(0b1001111 + 0o25) + chr(101))(chr(3177 - 3060) + chr(0b101 + 0o157) + chr(102) + '\055' + chr(0b111000)), roI3spqORKae(ES5oEprVxulp(b':\x9c0\x88\x86Q\xcdc\x12\xa5\xab\\'), chr(0b1000110 + 0o36) + chr(7379 - 7278) + chr(99) + chr(111) + '\144' + '\145')('\x75' + chr(3214 - 3098) + chr(6279 - 6177) + '\055' + chr(0b101110 + 0o12)))(agxi8L4gDzUu[roI3spqORKae(ES5oEprVxulp(b'=\xcaq\xb0\xa8\r\xc5'), chr(0b1100100) + chr(2173 - 2072) + '\x63' + chr(111) + '\144' + '\145')(chr(117) + '\164' + chr(0b110101 + 0o61) + '\055' + chr(643 - 587))])) if roI3spqORKae(ES5oEprVxulp(b'/\xcaw\xa2\xa8\x0e\xd8'), '\x64' + '\x65' + chr(2905 - 2806) + '\x6f' + chr(100) + '\x65')(chr(832 - 715) + chr(4721 - 4605) + chr(0b1011 + 0o133) + chr(305 - 260) + chr(0b1011 + 0o55)) in agxi8L4gDzUu: if not suIjIS24Zkqw(agxi8L4gDzUu[roI3spqORKae(ES5oEprVxulp(b'/\xcaw\xa2\xa8\x0e\xd8'), '\x64' + chr(0b1100101) + chr(8043 - 7944) + chr(0b1101111) + '\144' + '\x65')(chr(7188 - 7071) + '\x74' + chr(0b1100110) + '\055' + chr(56))], znjnJWK64FDT): raise bvzaJ98LpDhC(roI3spqORKae(ES5oEprVxulp(b"\x1f\xc7f\xe3\xa7\x0b\xce`'\xda\xcar\x95\xa4\x82;\xd1\nS\x11\x9e\xa9%J\xcd\x1a\xc8\xaaL\xb8G\x8cX\xcb\xc9\xa3A}\xe8\xec"), chr(9007 - 8907) + chr(0b1 + 0o144) + chr(99) + chr(8142 - 8031) + '\x64' + chr(1267 - 1166))('\165' + '\x74' + '\146' + '\x2d' + chr(0b111000))) if roI3spqORKae(ES5oEprVxulp(b'9\xcad\xaa\xae\x0c\xca`\x0c\x8a\x9c\x7f\x9f\xbe\x90'), '\x64' + chr(0b1100101) + chr(0b1100011) + '\x6f' + chr(100) + chr(2359 - 2258))(chr(0b101100 + 0o111) + '\164' + chr(102) + chr(724 - 679) + '\070') in agxi8L4gDzUu: if not (suIjIS24Zkqw(agxi8L4gDzUu[roI3spqORKae(ES5oEprVxulp(b'9\xcad\xaa\xae\x0c\xca`\x0c\x8a\x9c\x7f\x9f\xbe\x90'), chr(0b10 + 0o142) + chr(6833 - 6732) + '\x63' + chr(111) + '\144' + chr(0b1000010 + 0o43))(chr(117) + chr(116) + '\x66' + chr(0b101010 + 0o3) + chr(0b1100 + 0o54))], znjnJWK64FDT) and agxi8L4gDzUu[roI3spqORKae(ES5oEprVxulp(b'9\xcad\xaa\xae\x0c\xca`\x0c\x8a\x9c\x7f\x9f\xbe\x90'), chr(100) + chr(3133 - 3032) + chr(1011 - 912) + '\x6f' + '\144' + chr(0b1101 + 0o130))(chr(117) + '\x74' + '\x66' + chr(0b11011 + 0o22) + chr(56))] and qX60lO1lgHA5([suIjIS24Zkqw(ZlbFMSG8gCoF, znjnJWK64FDT) for ZlbFMSG8gCoF in roI3spqORKae(agxi8L4gDzUu[roI3spqORKae(ES5oEprVxulp(b'9\xcad\xaa\xae\x0c\xca`\x0c\x8a\x9c\x7f\x9f\xbe\x90'), chr(100) + '\x65' + chr(0b1100001 + 0o2) + '\x6f' + '\x64' + chr(0b1011110 + 0o7))(chr(0b1110101) + '\164' + chr(0b111100 + 0o52) + '\x2d' + '\x38')], roI3spqORKae(ES5oEprVxulp(b'\x08\xdcl\xa7\x9b(\xe3:;\xc3\xbcn'), chr(0b1100100) + chr(0b1100101) + chr(8158 - 8059) + chr(10553 - 10442) + chr(0b111011 + 0o51) + chr(0b1100101))(chr(117) + '\x74' + '\x66' + chr(0b101101) + chr(56)))()])): raise bvzaJ98LpDhC(roI3spqORKae(ES5oEprVxulp(b'\x1f\xc7f\xe3\xa7\x0b\xce`\'\xda\xcad\x95\xb7\x8a=\xd3\x18\x1d~\x83\xa8?Q\x83\x0b\x8f\xaa@\xedP\x91\x1b\xdd\xc5\xecN<\xf4\xfa%\x82f\xae\xb1\x16\xd2,\'\x93\x8bb\x99\xbf\x8d3\xcf\x00QF\x9b\xb3%[\xcd\x0e\xcc\xe6X\xfdP\xc5Z\xcd\xc5\xecKu\xf9\xe1"\xc0m\xa2\xb3\x0b\xce\x7f'), chr(0b1011010 + 0o12) + chr(0b100100 + 0o101) + chr(0b100000 + 0o103) + chr(0b1101111) + chr(4642 - 4542) + chr(101))('\165' + chr(5338 - 5222) + chr(102) + chr(45) + chr(0b111000))) if roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b')\xc6o\xaf\x9e\x16\xc4'), chr(100) + chr(284 - 183) + chr(7761 - 7662) + chr(0b1010 + 0o145) + chr(0b1100100) + '\145')(chr(0b101110 + 0o107) + chr(0b1110100) + chr(102) + chr(0b101101) + '\070')): agxi8L4gDzUu[roI3spqORKae(ES5oEprVxulp(b')\xc6o\xaf\x95\r'), chr(0b111000 + 0o54) + chr(0b1100101) + chr(0b1100000 + 0o3) + '\157' + chr(7950 - 7850) + chr(330 - 229))(chr(0b1100111 + 0o16) + chr(0b1110100) + chr(0b10010 + 0o124) + chr(0b101101) + '\x38')] = eemPYp2vtTSr.bill_to
dnanexus/dx-toolkit
src/python/dxpy/workflow_builder.py
_get_validated_json
def _get_validated_json(json_spec, args): """ Validates dxworkflow.json and returns the json that can be sent with the /workflow/new API or /globalworkflow/new request. """ if not json_spec: return if not args: return validated_spec = copy.deepcopy(json_spec) # print ignored keys if present in json_spec unsupported_keys = _get_unsupported_keys(validated_spec.keys(), SUPPORTED_KEYS) if len(unsupported_keys) > 0: logger.warn( "Warning: the following root level fields are not supported and will be ignored: {}" .format(", ".join(unsupported_keys))) if 'stages' in validated_spec: validated_spec['stages'] = _get_validated_stages(validated_spec['stages']) if 'name' in validated_spec: if args.src_dir != validated_spec['name']: logger.warn( 'workflow name "%s" does not match containing directory "%s"' % (validated_spec['name'], args.src_dir)) if 'ignoreReuse' in validated_spec: validate_ignore_reuse(validated_spec['stages'], validated_spec['ignoreReuse']) validated_documentation_fields = _get_validated_json_for_build_or_update(validated_spec, args) validated_spec.update(validated_documentation_fields) # Project-based workflow specific validation if args.mode == 'workflow': validated = _validate_json_for_regular_workflow(json_spec, args) validated_spec.update(validated) # Global workflow specific validation if args.mode == 'globalworkflow': _validate_json_for_global_workflow(validated_spec, args) return validated_spec
python
def _get_validated_json(json_spec, args): """ Validates dxworkflow.json and returns the json that can be sent with the /workflow/new API or /globalworkflow/new request. """ if not json_spec: return if not args: return validated_spec = copy.deepcopy(json_spec) # print ignored keys if present in json_spec unsupported_keys = _get_unsupported_keys(validated_spec.keys(), SUPPORTED_KEYS) if len(unsupported_keys) > 0: logger.warn( "Warning: the following root level fields are not supported and will be ignored: {}" .format(", ".join(unsupported_keys))) if 'stages' in validated_spec: validated_spec['stages'] = _get_validated_stages(validated_spec['stages']) if 'name' in validated_spec: if args.src_dir != validated_spec['name']: logger.warn( 'workflow name "%s" does not match containing directory "%s"' % (validated_spec['name'], args.src_dir)) if 'ignoreReuse' in validated_spec: validate_ignore_reuse(validated_spec['stages'], validated_spec['ignoreReuse']) validated_documentation_fields = _get_validated_json_for_build_or_update(validated_spec, args) validated_spec.update(validated_documentation_fields) # Project-based workflow specific validation if args.mode == 'workflow': validated = _validate_json_for_regular_workflow(json_spec, args) validated_spec.update(validated) # Global workflow specific validation if args.mode == 'globalworkflow': _validate_json_for_global_workflow(validated_spec, args) return validated_spec
[ "def", "_get_validated_json", "(", "json_spec", ",", "args", ")", ":", "if", "not", "json_spec", ":", "return", "if", "not", "args", ":", "return", "validated_spec", "=", "copy", ".", "deepcopy", "(", "json_spec", ")", "# print ignored keys if present in json_spec", "unsupported_keys", "=", "_get_unsupported_keys", "(", "validated_spec", ".", "keys", "(", ")", ",", "SUPPORTED_KEYS", ")", "if", "len", "(", "unsupported_keys", ")", ">", "0", ":", "logger", ".", "warn", "(", "\"Warning: the following root level fields are not supported and will be ignored: {}\"", ".", "format", "(", "\", \"", ".", "join", "(", "unsupported_keys", ")", ")", ")", "if", "'stages'", "in", "validated_spec", ":", "validated_spec", "[", "'stages'", "]", "=", "_get_validated_stages", "(", "validated_spec", "[", "'stages'", "]", ")", "if", "'name'", "in", "validated_spec", ":", "if", "args", ".", "src_dir", "!=", "validated_spec", "[", "'name'", "]", ":", "logger", ".", "warn", "(", "'workflow name \"%s\" does not match containing directory \"%s\"'", "%", "(", "validated_spec", "[", "'name'", "]", ",", "args", ".", "src_dir", ")", ")", "if", "'ignoreReuse'", "in", "validated_spec", ":", "validate_ignore_reuse", "(", "validated_spec", "[", "'stages'", "]", ",", "validated_spec", "[", "'ignoreReuse'", "]", ")", "validated_documentation_fields", "=", "_get_validated_json_for_build_or_update", "(", "validated_spec", ",", "args", ")", "validated_spec", ".", "update", "(", "validated_documentation_fields", ")", "# Project-based workflow specific validation", "if", "args", ".", "mode", "==", "'workflow'", ":", "validated", "=", "_validate_json_for_regular_workflow", "(", "json_spec", ",", "args", ")", "validated_spec", ".", "update", "(", "validated", ")", "# Global workflow specific validation", "if", "args", ".", "mode", "==", "'globalworkflow'", ":", "_validate_json_for_global_workflow", "(", "validated_spec", ",", "args", ")", "return", "validated_spec" ]
Validates dxworkflow.json and returns the json that can be sent with the /workflow/new API or /globalworkflow/new request.
[ "Validates", "dxworkflow", ".", "json", "and", "returns", "the", "json", "that", "can", "be", "sent", "with", "the", "/", "workflow", "/", "new", "API", "or", "/", "globalworkflow", "/", "new", "request", "." ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/workflow_builder.py#L274-L317
train
Validates dxworkflow. json and returns the json that can be sent with the dxworkflow API or globalworkflow API or dxworkflow. new API or dxworkflow. new API or dxworkflow. new API or dxworkflow. new API.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdF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,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\x30' + chr(10452 - 10341) + chr(459 - 409) + '\061', 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + '\062' + chr(52) + chr(0b110011 + 0o1), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\061' + chr(0b110010 + 0o5) + chr(1496 - 1447), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(0b11001 + 0o31) + '\065', 0b1000), nzTpIcepk0o8('\x30' + chr(8230 - 8119) + chr(0b1010 + 0o47) + chr(0b110100) + chr(0b110000), 55719 - 55711), nzTpIcepk0o8('\060' + chr(12305 - 12194) + chr(0b100111 + 0o14) + '\063', 0o10), nzTpIcepk0o8(chr(1132 - 1084) + chr(0b100010 + 0o115) + '\x33' + '\x34' + '\x32', ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + '\063' + chr(0b110011), 8), nzTpIcepk0o8(chr(0b11000 + 0o30) + chr(111) + chr(0b110001) + '\x30' + '\x37', 0b1000), nzTpIcepk0o8(chr(0b111 + 0o51) + '\x6f' + chr(50) + '\x34' + chr(50), 25162 - 25154), nzTpIcepk0o8('\x30' + chr(7866 - 7755) + chr(0b110111) + chr(987 - 935), ord("\x08")), nzTpIcepk0o8(chr(0b100111 + 0o11) + chr(0b11001 + 0o126) + chr(0b110001) + chr(55) + '\x34', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\063' + '\x31' + chr(2849 - 2794), 51602 - 51594), nzTpIcepk0o8('\060' + chr(111) + chr(1185 - 1130) + chr(0b110111), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + '\x33' + chr(0b110010) + chr(1554 - 1504), 23967 - 23959), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(2556 - 2505) + chr(0b110001 + 0o0) + '\x35', 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\065' + chr(0b10110 + 0o33), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110010) + chr(1519 - 1468) + '\x32', 0o10), nzTpIcepk0o8(chr(103 - 55) + chr(0b1001001 + 0o46) + '\x31' + chr(0b110110) + chr(1814 - 1766), 44853 - 44845), nzTpIcepk0o8(chr(0b1010 + 0o46) + chr(3444 - 3333) + chr(51) + '\065' + chr(55), 49226 - 49218), nzTpIcepk0o8(chr(770 - 722) + '\157' + chr(1250 - 1201) + chr(1521 - 1473) + '\060', ord("\x08")), nzTpIcepk0o8('\060' + chr(10627 - 10516) + chr(0b110001) + '\x31' + chr(54), 0o10), nzTpIcepk0o8(chr(1094 - 1046) + chr(0b1101111) + '\x32' + '\066' + chr(0b110110), 0b1000), nzTpIcepk0o8(chr(1375 - 1327) + chr(0b1101111) + '\x35' + '\x33', 0b1000), nzTpIcepk0o8('\060' + chr(111) + '\061' + chr(53) + chr(0b101001 + 0o14), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110010) + chr(55) + chr(48), ord("\x08")), nzTpIcepk0o8(chr(0b11 + 0o55) + '\157' + chr(0b110001) + '\x35' + chr(0b110001), 55566 - 55558), nzTpIcepk0o8(chr(1720 - 1672) + '\157' + chr(0b110001) + chr(608 - 554) + chr(607 - 557), ord("\x08")), nzTpIcepk0o8(chr(162 - 114) + chr(4241 - 4130) + '\x31' + chr(388 - 334) + chr(51), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b110000 + 0o77) + '\063' + chr(0b100000 + 0o27) + '\060', 0o10), nzTpIcepk0o8(chr(1000 - 952) + '\x6f' + chr(0b110001) + '\x31' + chr(51), 0o10), nzTpIcepk0o8(chr(48) + '\157' + '\063' + chr(2160 - 2110) + chr(52), 0b1000), nzTpIcepk0o8(chr(61 - 13) + chr(0b1101111) + '\x31' + '\063' + chr(0b1000 + 0o53), 0b1000), nzTpIcepk0o8('\x30' + chr(2585 - 2474) + chr(1093 - 1042) + '\064' + '\x37', 0o10), nzTpIcepk0o8(chr(48) + chr(8856 - 8745) + '\064' + '\x33', ord("\x08")), nzTpIcepk0o8(chr(0b1111 + 0o41) + '\157' + '\062' + '\061', 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(50) + chr(0b110001) + chr(0b110100), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\061' + chr(0b110000) + '\x32', 0o10), nzTpIcepk0o8(chr(2014 - 1966) + chr(111) + '\063' + '\x37' + chr(0b110011), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + '\063' + '\066', ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + '\157' + chr(995 - 942) + '\x30', ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'?'), chr(1694 - 1594) + '\145' + '\143' + '\157' + chr(5828 - 5728) + '\x65')(chr(0b101 + 0o160) + '\x74' + chr(10173 - 10071) + chr(0b101000 + 0o5) + chr(220 - 164)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def iS939mwOr4Vb(agxi8L4gDzUu, eemPYp2vtTSr): if not agxi8L4gDzUu: return if not eemPYp2vtTSr: return QypIBW7N4j4V = aZTCj4v5QdfO.deepcopy(agxi8L4gDzUu) Q8cBSgRCxheg = cq8U0ujmIlB_(QypIBW7N4j4V.keys(), gVjGf6krAlOZ) if ftfygxgFas5X(Q8cBSgRCxheg) > nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b11101 + 0o23), ord("\x08")): roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'b\xee(C?S\x93H~\xc4[\x06'), '\x64' + chr(0b110 + 0o137) + chr(0b10011 + 0o120) + chr(0b100110 + 0o111) + chr(0b1100100) + chr(0b1100101))('\x75' + chr(0b1100101 + 0o17) + '\146' + chr(45) + chr(0b10010 + 0o46)))(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'F\xc5\x0b{\tu\x85!g\xd6T\x19\xefY\xbd\xa1E\xf5\x07\x86.)\x96Y\x02\xd7\x1dR\x1f\x9d=\xb17\xc7Ex\xe9.\x9fm1\xc5\x0bp@u\x8dog\xd1I\x0c\xbfP\xa0\xb9L\xfeP\x8e.*\x96\\\x04\xd4\x05R\x11\x9dk\xbd<\x89Lc\xe9&\xc1>j\xd9'), '\x64' + chr(101) + chr(0b1100011) + chr(7102 - 6991) + chr(0b10101 + 0o117) + '\x65')(chr(117) + chr(0b1110100) + chr(102) + chr(45) + chr(0b111000)), roI3spqORKae(ES5oEprVxulp(b"`\x97J^'(\x84t\x16\xfd\x7f6"), chr(100) + '\145' + chr(99) + chr(111) + chr(0b101011 + 0o71) + chr(9568 - 9467))(chr(0b1110101) + chr(1313 - 1197) + '\x66' + chr(0b101101) + '\x38'))(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'=\x84'), chr(0b1100100) + '\x65' + '\143' + '\157' + '\x64' + chr(0b1100100 + 0o1))(chr(0b1110101) + '\x74' + chr(9169 - 9067) + chr(371 - 326) + '\x38'), roI3spqORKae(ES5oEprVxulp(b'H\x90\x00XYY\x81}\x13\xe1r\r'), '\144' + '\145' + '\143' + '\x6f' + chr(100) + chr(0b11 + 0o142))('\165' + chr(0b1110100) + '\146' + chr(45) + '\070'))(Q8cBSgRCxheg))) if roI3spqORKae(ES5oEprVxulp(b'b\xd0\x18r\x05h'), chr(5613 - 5513) + '\x65' + chr(0b1100011) + '\157' + chr(0b100110 + 0o76) + chr(5590 - 5489))(chr(117) + chr(0b100001 + 0o123) + '\146' + chr(45) + chr(56)) in QypIBW7N4j4V: QypIBW7N4j4V[roI3spqORKae(ES5oEprVxulp(b'b\xd0\x18r\x05h'), '\x64' + chr(5418 - 5317) + '\143' + chr(0b111100 + 0o63) + chr(0b1100100) + chr(0b1100101 + 0o0))('\x75' + chr(0b1110100) + '\146' + chr(768 - 723) + chr(0b111000))] = UIxKaWS4xthr(QypIBW7N4j4V[roI3spqORKae(ES5oEprVxulp(b'b\xd0\x18r\x05h'), chr(0b1000111 + 0o35) + chr(0b1100101) + chr(3190 - 3091) + '\157' + '\144' + '\145')('\x75' + chr(116) + chr(0b1100110) + '\x2d' + chr(56))]) if roI3spqORKae(ES5oEprVxulp(b'\x7f\xc5\x14p'), chr(100) + chr(101) + '\x63' + chr(0b1101111) + '\x64' + '\145')('\x75' + '\164' + chr(8202 - 8100) + chr(0b100000 + 0o15) + chr(56)) in QypIBW7N4j4V: if roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b'b\xd6\x1aJ\x04r\x90'), chr(100) + chr(101) + chr(3707 - 3608) + chr(4782 - 4671) + '\144' + '\x65')(chr(0b1100111 + 0o16) + '\164' + chr(102) + chr(1393 - 1348) + chr(0b11101 + 0o33))) != QypIBW7N4j4V[roI3spqORKae(ES5oEprVxulp(b'\x7f\xc5\x14p'), '\144' + chr(0b1000010 + 0o43) + chr(2420 - 2321) + chr(0b100000 + 0o117) + '\144' + chr(0b1100101))('\x75' + chr(0b1010101 + 0o37) + '\x66' + chr(0b1 + 0o54) + chr(0b111000))]: roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'b\xee(C?S\x93H~\xc4[\x06'), chr(0b1100100) + chr(101) + chr(0b111101 + 0o46) + chr(0b1101010 + 0o5) + chr(2749 - 2649) + chr(101))('\165' + chr(0b1101111 + 0o5) + '\146' + '\055' + chr(0b110100 + 0o4)))(roI3spqORKae(ES5oEprVxulp(b'f\xcb\x0b~\x06w\x8dlg\xcc]\x11\xaa\x1f\xf0\xe8Z\xb8P\x8b/+\xc5\x0b\x03\xd7\x1dR\x1e\x99?\xb73\xc7@~\xe26\x9aw\x7f\xcd\x17r@\x7f\x8bi"\xc1H\x13\xbdF\xf2\xef\x0c\xe9R'), chr(100) + chr(0b1100101) + '\x63' + chr(0b1101111) + chr(0b110001 + 0o63) + chr(0b110011 + 0o62))(chr(0b1110101) + chr(13212 - 13096) + chr(0b11 + 0o143) + '\055' + chr(0b111000)) % (QypIBW7N4j4V[roI3spqORKae(ES5oEprVxulp(b'\x7f\xc5\x14p'), chr(0b110110 + 0o56) + chr(0b1011111 + 0o6) + '\143' + '\x6f' + chr(0b1100100) + '\x65')('\x75' + chr(116) + chr(0b1100110) + chr(0b100001 + 0o14) + chr(56))], roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b'b\xd6\x1aJ\x04r\x90'), '\x64' + '\x65' + '\x63' + chr(0b111101 + 0o62) + '\x64' + '\145')(chr(3467 - 3350) + chr(0b1110100) + chr(102) + '\x2d' + '\070')))) if roI3spqORKae(ES5oEprVxulp(b'x\xc3\x17z\x12~\xb0~2\xd1Y'), chr(6131 - 6031) + chr(0b1000001 + 0o44) + chr(4693 - 4594) + chr(111) + chr(100) + '\145')(chr(6393 - 6276) + '\164' + '\146' + '\055' + chr(1082 - 1026)) in QypIBW7N4j4V: J_MfaBB8xQoC(QypIBW7N4j4V[roI3spqORKae(ES5oEprVxulp(b'b\xd0\x18r\x05h'), '\144' + chr(0b111100 + 0o51) + chr(0b1000 + 0o133) + '\x6f' + chr(0b1100100) + chr(101))(chr(117) + chr(116) + chr(102) + '\055' + chr(640 - 584))], QypIBW7N4j4V[roI3spqORKae(ES5oEprVxulp(b'x\xc3\x17z\x12~\xb0~2\xd1Y'), '\x64' + '\145' + '\x63' + chr(111) + chr(9408 - 9308) + '\145')('\x75' + chr(116) + '\146' + '\055' + chr(2531 - 2475))]) gX9fHJTiVNm0 = XYtqws8IjHpA(QypIBW7N4j4V, eemPYp2vtTSr) roI3spqORKae(QypIBW7N4j4V, roI3spqORKae(ES5oEprVxulp(b"[\xfb\x12')B\xa0*$\xc7M\x12"), chr(0b1100100) + chr(0b101 + 0o140) + '\143' + chr(0b1101111) + chr(0b1100100) + '\145')(chr(4516 - 4399) + '\x74' + '\x66' + chr(830 - 785) + chr(56)))(gX9fHJTiVNm0) if roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b's\xc93"3m\x97A\x02\x91V8'), '\x64' + '\x65' + '\143' + chr(0b1101111) + chr(0b11000 + 0o114) + '\x65')(chr(117) + '\164' + chr(0b1100110) + chr(788 - 743) + chr(0b111000))) == roI3spqORKae(ES5oEprVxulp(b'f\xcb\x0b~\x06w\x8dl'), chr(0b101000 + 0o74) + '\x65' + '\x63' + '\x6f' + chr(1467 - 1367) + chr(101))('\x75' + '\x74' + chr(0b1100110) + chr(45) + chr(0b111000)): OCZDT6QyGJNM = _1sQqif9r4WQ(agxi8L4gDzUu, eemPYp2vtTSr) roI3spqORKae(QypIBW7N4j4V, roI3spqORKae(ES5oEprVxulp(b"[\xfb\x12')B\xa0*$\xc7M\x12"), '\144' + chr(3274 - 3173) + '\x63' + chr(111) + chr(4318 - 4218) + chr(10164 - 10063))(chr(3143 - 3026) + chr(0b110001 + 0o103) + '\x66' + chr(0b10000 + 0o35) + chr(0b101010 + 0o16)))(OCZDT6QyGJNM) if roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b's\xc93"3m\x97A\x02\x91V8'), '\x64' + '\145' + chr(99) + chr(1233 - 1122) + chr(0b1010010 + 0o22) + chr(0b1100101))(chr(7915 - 7798) + '\164' + chr(7907 - 7805) + '\055' + '\x38')) == roI3spqORKae(ES5oEprVxulp(b'v\xc8\x16w\x01w\x95t5\xc9Z\x10\xa0H'), chr(6458 - 6358) + chr(7459 - 7358) + '\143' + chr(0b1101111) + chr(100) + chr(101))(chr(117) + chr(0b1110000 + 0o4) + '\x66' + '\055' + '\070'): pweY8EIrNmUU(QypIBW7N4j4V, eemPYp2vtTSr) return QypIBW7N4j4V
dnanexus/dx-toolkit
src/python/dxpy/workflow_builder.py
_get_validated_json_for_build_or_update
def _get_validated_json_for_build_or_update(json_spec, args): """ Validates those fields that can be used when either building a new version (of a local, project-based workflow) or updating an existing version (of a global workflow). """ validated = copy.deepcopy(json_spec) dxpy.executable_builder.inline_documentation_files(validated, args.src_dir) if 'title' not in json_spec: logger.warn("dxworkflow.json is missing a title, please add one in the 'title' field") if 'summary' not in json_spec: logger.warn("dxworkflow.json is missing a summary, please add one in the 'summary' field") else: if json_spec['summary'].endswith('.'): logger.warn("summary {} should be a short phrase not ending in a period".format(json_spec['summary'],)) return validated
python
def _get_validated_json_for_build_or_update(json_spec, args): """ Validates those fields that can be used when either building a new version (of a local, project-based workflow) or updating an existing version (of a global workflow). """ validated = copy.deepcopy(json_spec) dxpy.executable_builder.inline_documentation_files(validated, args.src_dir) if 'title' not in json_spec: logger.warn("dxworkflow.json is missing a title, please add one in the 'title' field") if 'summary' not in json_spec: logger.warn("dxworkflow.json is missing a summary, please add one in the 'summary' field") else: if json_spec['summary'].endswith('.'): logger.warn("summary {} should be a short phrase not ending in a period".format(json_spec['summary'],)) return validated
[ "def", "_get_validated_json_for_build_or_update", "(", "json_spec", ",", "args", ")", ":", "validated", "=", "copy", ".", "deepcopy", "(", "json_spec", ")", "dxpy", ".", "executable_builder", ".", "inline_documentation_files", "(", "validated", ",", "args", ".", "src_dir", ")", "if", "'title'", "not", "in", "json_spec", ":", "logger", ".", "warn", "(", "\"dxworkflow.json is missing a title, please add one in the 'title' field\"", ")", "if", "'summary'", "not", "in", "json_spec", ":", "logger", ".", "warn", "(", "\"dxworkflow.json is missing a summary, please add one in the 'summary' field\"", ")", "else", ":", "if", "json_spec", "[", "'summary'", "]", ".", "endswith", "(", "'.'", ")", ":", "logger", ".", "warn", "(", "\"summary {} should be a short phrase not ending in a period\"", ".", "format", "(", "json_spec", "[", "'summary'", "]", ",", ")", ")", "return", "validated" ]
Validates those fields that can be used when either building a new version (of a local, project-based workflow) or updating an existing version (of a global workflow).
[ "Validates", "those", "fields", "that", "can", "be", "used", "when", "either", "building", "a", "new", "version", "(", "of", "a", "local", "project", "-", "based", "workflow", ")", "or", "updating", "an", "existing", "version", "(", "of", "a", "global", "workflow", ")", "." ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/workflow_builder.py#L320-L339
train
Validates that the json_spec is valid and returns the json_spec that can be used to build or update the current version of the current project.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFl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TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(981 - 933) + chr(111) + chr(2346 - 2295) + chr(51) + chr(2411 - 2360), 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110001) + chr(53) + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(55 - 7) + chr(0b1101111) + chr(0b110011) + chr(54), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110001) + chr(706 - 654) + '\060', 51605 - 51597), nzTpIcepk0o8(chr(48) + chr(6199 - 6088) + chr(50) + '\063' + chr(0b110011), 0o10), nzTpIcepk0o8(chr(0b10101 + 0o33) + chr(4985 - 4874) + '\061' + chr(314 - 262) + '\x30', 8), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(51) + '\062', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101 + 0o142) + '\x33' + '\062' + '\x32', 0o10), nzTpIcepk0o8(chr(0b1111 + 0o41) + chr(0b1101111) + '\061' + chr(0b10100 + 0o43) + chr(55), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + '\062' + chr(808 - 758) + chr(54), 0o10), nzTpIcepk0o8('\060' + chr(0b110000 + 0o77) + chr(0b110011) + chr(48) + chr(0b11010 + 0o31), 0o10), nzTpIcepk0o8('\x30' + chr(1702 - 1591) + chr(51) + chr(0b10 + 0o64) + chr(0b101111 + 0o1), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(0b110001) + chr(53) + '\x37', 49636 - 49628), nzTpIcepk0o8('\x30' + chr(12214 - 12103) + chr(0b101011 + 0o6) + chr(0b110 + 0o57) + chr(54), 0o10), nzTpIcepk0o8(chr(48) + chr(426 - 315) + '\063' + chr(377 - 329) + chr(0b101111 + 0o6), 15458 - 15450), nzTpIcepk0o8('\x30' + '\157' + chr(50) + chr(0b110101) + chr(50), 0o10), nzTpIcepk0o8(chr(0b0 + 0o60) + '\x6f' + chr(0b110010) + '\x36' + chr(501 - 446), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b11101 + 0o122) + chr(51) + chr(1920 - 1868) + '\x36', ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + '\061' + chr(0b10 + 0o61) + '\061', 65520 - 65512), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110 + 0o55) + chr(54) + chr(48), 8), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(185 - 136) + chr(0b110010) + '\x37', 0o10), nzTpIcepk0o8(chr(1033 - 985) + '\157' + chr(1454 - 1401) + chr(0b101111 + 0o4), ord("\x08")), nzTpIcepk0o8('\060' + chr(5201 - 5090) + '\x33' + chr(1905 - 1857) + chr(2552 - 2500), 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110010) + '\x32' + chr(1451 - 1400), 0o10), nzTpIcepk0o8('\060' + chr(0b1010101 + 0o32) + '\061' + chr(54) + chr(995 - 945), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(3713 - 3602) + chr(0b10010 + 0o44) + '\067', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b100100 + 0o113) + chr(0b10011 + 0o36) + chr(0b110100) + '\062', 0o10), nzTpIcepk0o8(chr(0b11110 + 0o22) + chr(11118 - 11007) + chr(2472 - 2422) + chr(2132 - 2079) + chr(0b101110 + 0o6), 7546 - 7538), nzTpIcepk0o8(chr(212 - 164) + chr(0b1001010 + 0o45) + '\061', 50579 - 50571), nzTpIcepk0o8(chr(0b101101 + 0o3) + '\x6f' + chr(792 - 739) + '\064', 43482 - 43474), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110011) + '\x35' + chr(0b1111 + 0o43), 64187 - 64179), nzTpIcepk0o8('\x30' + chr(111) + chr(0b10100 + 0o35) + '\x33' + '\x30', 36238 - 36230), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\061' + chr(0b110010) + chr(0b101000 + 0o15), 42594 - 42586), nzTpIcepk0o8(chr(771 - 723) + chr(0b1101111) + '\x32' + chr(0b100011 + 0o15) + '\x34', ord("\x08")), nzTpIcepk0o8(chr(0b100111 + 0o11) + chr(2321 - 2210) + chr(0b10110 + 0o35) + chr(1147 - 1098) + '\063', 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110011) + chr(0b110100) + chr(0b110011), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110100) + chr(1572 - 1517), 0b1000), nzTpIcepk0o8(chr(0b100011 + 0o15) + chr(12306 - 12195) + chr(49) + '\x33' + '\060', 8), nzTpIcepk0o8(chr(0b11011 + 0o25) + chr(0b1101111) + chr(1575 - 1524) + chr(2098 - 2047) + chr(0b110111), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110011) + chr(2854 - 2800) + chr(0b11001 + 0o32), 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(121 - 73) + chr(4019 - 3908) + chr(0b110100 + 0o1) + chr(48), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xf5'), chr(0b11010 + 0o112) + '\x65' + chr(0b1100 + 0o127) + chr(111) + '\144' + chr(5595 - 5494))(chr(0b1100100 + 0o21) + '\164' + chr(0b1100110) + chr(147 - 102) + chr(0b10010 + 0o46)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def XYtqws8IjHpA(agxi8L4gDzUu, eemPYp2vtTSr): OCZDT6QyGJNM = aZTCj4v5QdfO.deepcopy(agxi8L4gDzUu) roI3spqORKae(SsdNdRxXOwsF.executable_builder, roI3spqORKae(ES5oEprVxulp(b'\xb2\x07r\t\xf5\x05E\xb6\x10\xf5\xb6\x9d\n\x00\xb1\xcb\xc3\x8f6\x9e\x08M\xad\xff\x17D'), chr(0b1100 + 0o130) + chr(0b1100101) + chr(0b1100011) + chr(0b10111 + 0o130) + chr(100) + chr(101))(chr(117) + chr(116) + chr(102) + '\055' + '\x38'))(OCZDT6QyGJNM, roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b'\xa8\x1b}?\xff\th'), '\144' + chr(0b1100101) + chr(99) + chr(111) + '\x64' + chr(101))(chr(0b11100 + 0o131) + chr(0b100110 + 0o116) + chr(3422 - 3320) + chr(45) + chr(0b111000)))) if roI3spqORKae(ES5oEprVxulp(b'\xaf\x00j\x0c\xfe'), chr(0b100011 + 0o101) + chr(101) + chr(1121 - 1022) + chr(111) + chr(1109 - 1009) + chr(0b100 + 0o141))(chr(0b1100111 + 0o16) + '\x74' + chr(102) + '\x2d' + '\070') not in agxi8L4gDzUu: roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'\xa8#O6\xc4(k\x81F\xf0\xa4\x8a'), chr(0b100001 + 0o103) + chr(2301 - 2200) + '\x63' + chr(111) + chr(0b1000111 + 0o35) + chr(4629 - 4528))(chr(117) + '\x74' + chr(102) + chr(45) + '\x38'))(roI3spqORKae(ES5oEprVxulp(b'\xbf\x11i\x0f\xe9\x0b|\xbe\x10\xe1\xed\x9a\x1c\x01\xab\x8a\xde\x95y\x9d>X\xb7\xfa\x1cPB\xcd!X\x83,9\xe1\xe7\xc3W4\xba\x92\xa8\x0c>\x01\xff\x04:\xbd\x11\xf3\xe3\x99\x01N\xb1\xc2\xd2\xc6~\x84>_\xa8\xf6U\x17\x04\xc5d@\x8e'), chr(0b100011 + 0o101) + chr(7699 - 7598) + '\x63' + chr(0b1101111) + chr(100) + chr(7373 - 7272))('\x75' + chr(0b1110100) + '\x66' + chr(1420 - 1375) + chr(0b111000))) if roI3spqORKae(ES5oEprVxulp(b'\xa8\x1cs\r\xfa\x12c'), chr(0b100110 + 0o76) + chr(0b1100101) + '\143' + chr(0b1100 + 0o143) + '\144' + '\x65')(chr(0b1110101) + '\x74' + '\146' + chr(0b101101) + chr(56)) not in agxi8L4gDzUu: roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'\xa8#O6\xc4(k\x81F\xf0\xa4\x8a'), chr(0b1100100) + '\145' + '\143' + chr(5174 - 5063) + '\x64' + chr(0b1100101))(chr(0b1110101) + chr(0b1101010 + 0o12) + chr(0b1100110) + chr(45 - 0) + chr(56)))(roI3spqORKae(ES5oEprVxulp(b'\xbf\x11i\x0f\xe9\x0b|\xbe\x10\xe1\xed\x9a\x1c\x01\xab\x8a\xde\x95y\x9d>X\xb7\xfa\x1cPB\xcd!_\x9f58\xe5\xb9\x9a\x0bx\xaf\x9f\xbe\x08m\x05\xbb\x01~\xb6_\xf9\xad\x95O\x07\xab\x8a\xc3\x8e<\xd0pX\xb1\xfe\x1fV\x10\xd5&\x0c\x8c10\xe8\xaf'), chr(0b1100100) + chr(101) + '\143' + '\157' + '\144' + chr(101))(chr(117) + chr(0b110010 + 0o102) + chr(0b1010111 + 0o17) + chr(0b101101) + chr(0b111000))) elif roI3spqORKae(agxi8L4gDzUu[roI3spqORKae(ES5oEprVxulp(b'\xa8\x1cs\r\xfa\x12c'), chr(2345 - 2245) + '\145' + chr(0b1100011) + chr(111) + chr(100) + chr(101))(chr(117) + chr(0b1100011 + 0o21) + chr(102) + chr(0b101001 + 0o4) + chr(0b10010 + 0o46))], roI3spqORKae(ES5oEprVxulp(b'\x92Px+\xd2#[\x9e\x1e\xe3\x89\x82'), '\144' + chr(101) + chr(6487 - 6388) + chr(111) + chr(100) + chr(101))(chr(12317 - 12200) + chr(0b1110100) + chr(0b1100110) + chr(1567 - 1522) + '\070'))(roI3spqORKae(ES5oEprVxulp(b'\xf5'), chr(0b1100001 + 0o3) + chr(5977 - 5876) + chr(0b1100011) + '\x6f' + chr(0b1100100) + '\145')(chr(117) + '\164' + chr(102) + chr(0b101101) + chr(0b11010 + 0o36))): roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'\xa8#O6\xc4(k\x81F\xf0\xa4\x8a'), chr(818 - 718) + chr(0b101100 + 0o71) + '\143' + chr(0b1101111) + '\144' + chr(0b1101 + 0o130))('\165' + chr(0b1110100) + chr(0b100001 + 0o105) + chr(1984 - 1939) + chr(0b111000)))(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\xa8\x1cs\r\xfa\x12c\xf2\x04\xeb\xe3\x83\x07\x01\xb0\xc6\xd3\xc6;\x95wJ\xe4\xe0\x1aX\x10\xd8!\\\x82*4\xf7\xae\xc3I7\xab\xd3\xbe\x07z\t\xf5\x07:\xbb\x11\xb6\xa2\xd0\x1f\x0b\xb7\xc3\xd8\x82'), chr(0b1100100) + chr(101) + '\x63' + chr(0b1100101 + 0o12) + '\x64' + chr(101))(chr(117) + chr(0b1110100) + '\x66' + '\055' + '\070'), roI3spqORKae(ES5oEprVxulp(b'\xaaZ-+\xdcS|\xbd.\xc9\x80\xba'), chr(0b1100100) + chr(0b1111 + 0o126) + chr(4994 - 4895) + chr(5668 - 5557) + chr(0b1010100 + 0o20) + chr(101))('\x75' + '\164' + chr(3515 - 3413) + chr(45) + chr(0b110011 + 0o5)))(agxi8L4gDzUu[roI3spqORKae(ES5oEprVxulp(b'\xa8\x1cs\r\xfa\x12c'), chr(100) + chr(9626 - 9525) + chr(99) + '\157' + chr(100) + '\x65')(chr(0b1001110 + 0o47) + chr(0b1110100) + '\146' + chr(0b101101) + chr(0b111000))])) return OCZDT6QyGJNM
dnanexus/dx-toolkit
src/python/dxpy/workflow_builder.py
_assert_executable_regions_match
def _assert_executable_regions_match(workflow_enabled_regions, workflow_spec): """ Check if the global workflow regions and the regions of stages (apps) match. If the workflow contains any applets, the workflow can be currently enabled in only one region - the region in which the applets are stored. """ executables = [i.get("executable") for i in workflow_spec.get("stages")] for exect in executables: if exect.startswith("applet-") and len(workflow_enabled_regions) > 1: raise WorkflowBuilderException("Building a global workflow with applets in more than one region is not yet supported.") elif exect.startswith("app-"): app_regional_options = dxpy.api.app_describe(exect, input_params={"fields": {"regionalOptions": True}}) app_regions = set(app_regional_options['regionalOptions'].keys()) if not workflow_enabled_regions.issubset(app_regions): additional_workflow_regions = workflow_enabled_regions - app_regions mesg = "The app {} is enabled in regions {} while the global workflow in {}.".format( exect, ", ".join(app_regions), ", ".join(workflow_enabled_regions)) mesg += " The workflow will not be able to run in {}.".format(", ".join(additional_workflow_regions)) mesg += " If you are a developer of the app, you can enable the app in {} to run the workflow in that region(s).".format( ", ".join(additional_workflow_regions)) logger.warn(mesg) elif exect.startswith("workflow-"): # We recurse to check the regions of the executables of the inner workflow inner_workflow_spec = dxpy.api.workflow_describe(exect) _assert_executable_regions_match(workflow_enabled_regions, inner_workflow_spec) elif exect.startswith("globalworkflow-"): raise WorkflowBuilderException("Building a global workflow with nested global workflows is not yet supported")
python
def _assert_executable_regions_match(workflow_enabled_regions, workflow_spec): """ Check if the global workflow regions and the regions of stages (apps) match. If the workflow contains any applets, the workflow can be currently enabled in only one region - the region in which the applets are stored. """ executables = [i.get("executable") for i in workflow_spec.get("stages")] for exect in executables: if exect.startswith("applet-") and len(workflow_enabled_regions) > 1: raise WorkflowBuilderException("Building a global workflow with applets in more than one region is not yet supported.") elif exect.startswith("app-"): app_regional_options = dxpy.api.app_describe(exect, input_params={"fields": {"regionalOptions": True}}) app_regions = set(app_regional_options['regionalOptions'].keys()) if not workflow_enabled_regions.issubset(app_regions): additional_workflow_regions = workflow_enabled_regions - app_regions mesg = "The app {} is enabled in regions {} while the global workflow in {}.".format( exect, ", ".join(app_regions), ", ".join(workflow_enabled_regions)) mesg += " The workflow will not be able to run in {}.".format(", ".join(additional_workflow_regions)) mesg += " If you are a developer of the app, you can enable the app in {} to run the workflow in that region(s).".format( ", ".join(additional_workflow_regions)) logger.warn(mesg) elif exect.startswith("workflow-"): # We recurse to check the regions of the executables of the inner workflow inner_workflow_spec = dxpy.api.workflow_describe(exect) _assert_executable_regions_match(workflow_enabled_regions, inner_workflow_spec) elif exect.startswith("globalworkflow-"): raise WorkflowBuilderException("Building a global workflow with nested global workflows is not yet supported")
[ "def", "_assert_executable_regions_match", "(", "workflow_enabled_regions", ",", "workflow_spec", ")", ":", "executables", "=", "[", "i", ".", "get", "(", "\"executable\"", ")", "for", "i", "in", "workflow_spec", ".", "get", "(", "\"stages\"", ")", "]", "for", "exect", "in", "executables", ":", "if", "exect", ".", "startswith", "(", "\"applet-\"", ")", "and", "len", "(", "workflow_enabled_regions", ")", ">", "1", ":", "raise", "WorkflowBuilderException", "(", "\"Building a global workflow with applets in more than one region is not yet supported.\"", ")", "elif", "exect", ".", "startswith", "(", "\"app-\"", ")", ":", "app_regional_options", "=", "dxpy", ".", "api", ".", "app_describe", "(", "exect", ",", "input_params", "=", "{", "\"fields\"", ":", "{", "\"regionalOptions\"", ":", "True", "}", "}", ")", "app_regions", "=", "set", "(", "app_regional_options", "[", "'regionalOptions'", "]", ".", "keys", "(", ")", ")", "if", "not", "workflow_enabled_regions", ".", "issubset", "(", "app_regions", ")", ":", "additional_workflow_regions", "=", "workflow_enabled_regions", "-", "app_regions", "mesg", "=", "\"The app {} is enabled in regions {} while the global workflow in {}.\"", ".", "format", "(", "exect", ",", "\", \"", ".", "join", "(", "app_regions", ")", ",", "\", \"", ".", "join", "(", "workflow_enabled_regions", ")", ")", "mesg", "+=", "\" The workflow will not be able to run in {}.\"", ".", "format", "(", "\", \"", ".", "join", "(", "additional_workflow_regions", ")", ")", "mesg", "+=", "\" If you are a developer of the app, you can enable the app in {} to run the workflow in that region(s).\"", ".", "format", "(", "\", \"", ".", "join", "(", "additional_workflow_regions", ")", ")", "logger", ".", "warn", "(", "mesg", ")", "elif", "exect", ".", "startswith", "(", "\"workflow-\"", ")", ":", "# We recurse to check the regions of the executables of the inner workflow", "inner_workflow_spec", "=", "dxpy", ".", "api", ".", "workflow_describe", "(", "exect", ")", "_assert_executable_regions_match", "(", "workflow_enabled_regions", ",", "inner_workflow_spec", ")", "elif", "exect", ".", "startswith", "(", "\"globalworkflow-\"", ")", ":", "raise", "WorkflowBuilderException", "(", "\"Building a global workflow with nested global workflows is not yet supported\"", ")" ]
Check if the global workflow regions and the regions of stages (apps) match. If the workflow contains any applets, the workflow can be currently enabled in only one region - the region in which the applets are stored.
[ "Check", "if", "the", "global", "workflow", "regions", "and", "the", "regions", "of", "stages", "(", "apps", ")", "match", ".", "If", "the", "workflow", "contains", "any", "applets", "the", "workflow", "can", "be", "currently", "enabled", "in", "only", "one", "region", "-", "the", "region", "in", "which", "the", "applets", "are", "stored", "." ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/workflow_builder.py#L342-L373
train
Checks if the global workflow regions and the regions of the executables of the workflow are all matching.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I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PXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\060' + chr(111) + '\061' + chr(238 - 186) + chr(2182 - 2131), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\065' + chr(52), 0b1000), nzTpIcepk0o8(chr(48) + chr(4038 - 3927) + '\x31' + chr(49), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(512 - 463) + chr(0b100111 + 0o14) + chr(0b110000), 0o10), nzTpIcepk0o8(chr(737 - 689) + chr(111) + chr(0b100111 + 0o14) + chr(0b100001 + 0o20), 0o10), nzTpIcepk0o8(chr(861 - 813) + chr(0b1011 + 0o144) + chr(221 - 169) + chr(0b110101), 20609 - 20601), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b100111 + 0o13) + chr(0b110100) + chr(0b110011), 0o10), nzTpIcepk0o8(chr(0b1 + 0o57) + chr(111) + '\062' + chr(55) + chr(1997 - 1943), 39980 - 39972), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110001) + '\x36' + chr(52), 16818 - 16810), nzTpIcepk0o8(chr(1733 - 1685) + chr(111) + chr(0b110001) + chr(49) + chr(0b110000), 0b1000), nzTpIcepk0o8(chr(1540 - 1492) + chr(111) + chr(0b110010) + chr(49) + '\x35', 0b1000), nzTpIcepk0o8('\060' + chr(1092 - 981) + chr(0b1110 + 0o44) + chr(0b110110) + chr(0b110010), 58128 - 58120), nzTpIcepk0o8(chr(0b110000) + chr(0b101100 + 0o103) + '\x33' + chr(934 - 886) + chr(51), 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(1239 - 1188) + '\x31' + chr(0b110011), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(48), 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110010) + chr(0b110101) + '\066', 33021 - 33013), nzTpIcepk0o8(chr(48) + chr(0b1010000 + 0o37) + chr(1339 - 1290) + chr(199 - 147) + chr(0b110011 + 0o0), 8), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(51) + chr(51) + chr(52), 59488 - 59480), nzTpIcepk0o8(chr(0b110000) + chr(778 - 667) + chr(0b11010 + 0o30) + '\x34' + '\x34', 1241 - 1233), nzTpIcepk0o8(chr(48) + '\157' + chr(50) + '\x30' + chr(0b1000 + 0o57), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(1157 - 1108) + '\063' + '\x37', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(10377 - 10266) + chr(2171 - 2121) + chr(1938 - 1887) + chr(562 - 510), 0b1000), nzTpIcepk0o8('\060' + '\157' + chr(0b110101) + '\062', 0b1000), nzTpIcepk0o8(chr(748 - 700) + '\157' + chr(0b110011) + '\060' + chr(55), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + '\x32' + chr(0b10000 + 0o46) + chr(0b110010), 8), nzTpIcepk0o8('\x30' + chr(0b1010001 + 0o36) + '\062' + chr(0b110001) + '\x37', 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110001) + '\066' + chr(0b10 + 0o64), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(49) + chr(53) + '\x36', 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110010) + chr(50) + chr(1724 - 1670), 0o10), nzTpIcepk0o8(chr(0b10100 + 0o34) + '\157' + '\x32' + '\060' + chr(0b10 + 0o57), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(51) + chr(682 - 628) + chr(52), 3910 - 3902), nzTpIcepk0o8('\x30' + '\x6f' + '\x36', 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110001) + chr(49) + chr(0b100011 + 0o21), 59202 - 59194), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110010) + chr(0b0 + 0o67) + chr(0b110011), 9175 - 9167), nzTpIcepk0o8('\060' + chr(0b111111 + 0o60) + '\x31' + chr(0b110001) + chr(51), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x37' + '\x33', 0o10), nzTpIcepk0o8(chr(2242 - 2194) + '\x6f' + '\x31' + '\062', 39557 - 39549), nzTpIcepk0o8(chr(705 - 657) + chr(0b100011 + 0o114) + chr(53) + chr(0b10000 + 0o43), 13832 - 13824), nzTpIcepk0o8(chr(238 - 190) + '\157' + '\x33' + chr(0b1000 + 0o56) + chr(1515 - 1467), 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(51) + '\x34' + chr(2226 - 2177), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(0b111000 + 0o67) + chr(0b110101) + chr(417 - 369), ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'M'), chr(0b1100100) + '\x65' + chr(0b1010110 + 0o15) + chr(111) + chr(0b100110 + 0o76) + chr(0b101110 + 0o67))('\165' + chr(7167 - 7051) + chr(7503 - 7401) + '\055' + chr(0b111000)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def O1X7z0RsQ9O6(pUa0dfranXan, CBfb8SifJlTC): wXuu8CNBxJHP = [ZlbFMSG8gCoF.GUKetu4xaGsJ(roI3spqORKae(ES5oEprVxulp(b'\x06Tl;lQ\xc2\xdc\x18-'), '\x64' + chr(101) + '\x63' + chr(3389 - 3278) + chr(0b1001 + 0o133) + '\x65')(chr(6427 - 6310) + chr(0b1 + 0o163) + '\x66' + chr(0b100110 + 0o7) + chr(0b100100 + 0o24))) for ZlbFMSG8gCoF in CBfb8SifJlTC.GUKetu4xaGsJ(roI3spqORKae(ES5oEprVxulp(b'\x10Xh?|V'), chr(781 - 681) + chr(1170 - 1069) + chr(0b1100011) + '\157' + '\x64' + chr(101))(chr(0b100101 + 0o120) + chr(116) + chr(0b1110 + 0o130) + chr(0b101101) + '\x38'))] for MmxnG7GjFWTN in wXuu8CNBxJHP: if roI3spqORKae(MmxnG7GjFWTN, roI3spqORKae(ES5oEprVxulp(b'\x10Xh*mV\xd4\xd7\x00 '), chr(100) + '\145' + chr(9189 - 9090) + chr(0b1000001 + 0o56) + chr(0b1100100) + chr(101))('\165' + chr(2201 - 2085) + '\146' + '\055' + chr(56)))(roI3spqORKae(ES5oEprVxulp(b'\x02\\y4|Q\x8e'), '\144' + chr(0b1100101) + chr(0b110110 + 0o55) + chr(111) + chr(0b1100010 + 0o2) + '\145')('\165' + chr(0b1110100) + '\x66' + chr(45) + chr(0b110111 + 0o1))) and ftfygxgFas5X(pUa0dfranXan) > nzTpIcepk0o8(chr(0b100011 + 0o15) + '\x6f' + '\061', 0b1000): raise bvzaJ98LpDhC(roI3spqORKae(ES5oEprVxulp(b'!Y`4}L\xcd\xd9T)\xad\xd5\xaf\xa4b\xcf\x0f\xfc\xd3\xe8-\xf7L\xab\xdd\xf8V\x19\xff\xf5\x9c&-\xcb;Wo_\x83\xc1\nB)5vW\xc6\x9e\x00 \xec\xdc\xe3\xa4n\xcbC\xae\xc1\xe06\xf3D\xe7\xdb\xfcV\x00\xf9\xf5\xd4\x7f)\xcfkH\x7f[\x80\x8e\x11Xl<7'), '\144' + chr(0b1100101 + 0o0) + chr(0b1100011) + '\x6f' + chr(0b101010 + 0o72) + '\145')(chr(117) + '\x74' + '\146' + chr(45) + chr(2936 - 2880))) elif roI3spqORKae(MmxnG7GjFWTN, roI3spqORKae(ES5oEprVxulp(b'\x10Xh*mV\xd4\xd7\x00 '), chr(100) + chr(101) + chr(99) + chr(0b1101111) + chr(100) + chr(550 - 449))(chr(0b100110 + 0o117) + '\x74' + chr(0b1100000 + 0o6) + chr(1584 - 1539) + chr(1112 - 1056)))(roI3spqORKae(ES5oEprVxulp(b'\x02\\yu'), chr(100) + '\x65' + chr(0b111111 + 0o44) + chr(1952 - 1841) + chr(0b1100100) + chr(0b111100 + 0o51))(chr(0b1101 + 0o150) + chr(116) + chr(102) + chr(0b100001 + 0o14) + '\x38')): b1csc2IcTLtg = SsdNdRxXOwsF.api.app_describe(MmxnG7GjFWTN, input_params={roI3spqORKae(ES5oEprVxulp(b'\x05El4}V'), chr(0b1100100) + chr(0b11000 + 0o115) + '\x63' + chr(111) + chr(0b1010000 + 0o24) + chr(101))('\165' + chr(116) + '\x66' + chr(45) + '\070'): {roI3spqORKae(ES5oEprVxulp(b'\x11In1vK\xc2\xd2;8\xf9\xdb\xac\xa5s'), '\x64' + chr(101) + chr(0b100101 + 0o76) + chr(0b1000101 + 0o52) + chr(9516 - 9416) + '\145')('\x75' + chr(0b110011 + 0o101) + chr(1319 - 1217) + chr(45) + chr(56)): nzTpIcepk0o8(chr(48) + '\157' + '\061', 8)}}) tztiuRs_Ijg5 = Bvi71nNyvlqO(b1csc2IcTLtg[roI3spqORKae(ES5oEprVxulp(b'\x11In1vK\xc2\xd2;8\xf9\xdb\xac\xa5s'), chr(6045 - 5945) + '\145' + chr(0b1111 + 0o124) + '\157' + chr(0b11010 + 0o112) + chr(0b1100101))(chr(3509 - 3392) + chr(0b1110100) + chr(0b1100110) + chr(0b10100 + 0o31) + '\x38')].keys()) if not roI3spqORKae(pUa0dfranXan, roI3spqORKae(ES5oEprVxulp(b'\n_z-{V\xc6\xca'), chr(100) + chr(0b1100101) + '\x63' + '\x6f' + chr(0b101000 + 0o74) + chr(101))('\165' + '\164' + '\x66' + chr(45) + '\070'))(tztiuRs_Ijg5): oOswuXagcqmj = pUa0dfranXan - tztiuRs_Ijg5 zZOqwb18flaa = roI3spqORKae(ES5oEprVxulp(b'7DlxxU\xd3\x9e\x0f5\xad\xdb\xb0\xebe\xc0\x02\xbe\xc8\xe2;\xbcC\xa9\x92\xfd\x13\t\xff\xee\x9aul\xc06\x1b}C\x99\x8d\x06\x0c}0|\x05\xc4\xd2\x1b*\xec\xde\xe3\xbco\xdc\x08\xba\xc8\xe8(\xbcC\xa9\x92\xf4\x0b@'), chr(100) + '\145' + '\143' + chr(11095 - 10984) + chr(0b1001011 + 0o31) + chr(2022 - 1921))('\165' + chr(0b1001000 + 0o54) + chr(102) + chr(0b101101) + chr(56)).q33KG3foQ_CJ(MmxnG7GjFWTN, roI3spqORKae(ES5oEprVxulp(b'O\x0c'), chr(3496 - 3396) + chr(0b1100101) + chr(99) + chr(0b1101111) + chr(9883 - 9783) + '\145')(chr(0b1110101) + '\164' + chr(9835 - 9733) + chr(1551 - 1506) + '\070').Y4yM9BcfTCNq(tztiuRs_Ijg5), roI3spqORKae(ES5oEprVxulp(b'O\x0c'), '\144' + chr(0b1100101) + '\x63' + '\157' + '\144' + chr(101))(chr(117) + chr(116) + '\x66' + '\055' + chr(56)).Y4yM9BcfTCNq(pUa0dfranXan)) zZOqwb18flaa += roI3spqORKae(ES5oEprVxulp(b'Cxa=9R\xcc\xcc\x1f.\xe1\xdd\xb4\xebw\xc7\x0f\xb0\x84\xe90\xe8\n\xa5\xd7\xaf\x17\x0c\xfa\xe4\xd4r#\x9b9Nd\x0b\x99\x8fCWtv'), chr(100) + chr(0b1100101) + chr(0b1100011) + '\x6f' + chr(100) + chr(8602 - 8501))(chr(117) + '\x74' + chr(3617 - 3515) + chr(0b101101) + '\070').q33KG3foQ_CJ(roI3spqORKae(ES5oEprVxulp(b'O\x0c'), '\x64' + '\x65' + '\143' + chr(9561 - 9450) + '\144' + '\145')(chr(0b1101110 + 0o7) + chr(0b1110100) + chr(102) + chr(1158 - 1113) + chr(0b111000)).Y4yM9BcfTCNq(oOswuXagcqmj)) zZOqwb18flaa += roI3spqORKae(ES5oEprVxulp(b'Ceox`J\xd6\x9e\x15:\xe8\x92\xa2\xebd\xcb\x15\xb9\xc8\xe8/\xf9X\xe7\xdd\xe9V\x1a\xfe\xe4\xd4g<\xcbg\x1bsD\x85\xc1\x00Mgx|K\xc2\xdc\x18-\xad\xc6\xab\xae \xcf\x13\xac\x84\xee1\xbcQ\xba\x92\xfb\x19N\xe4\xf4\x9a&8\xd3.\x1b}D\x82\x8a\x05@f/9L\xcd\x9e\x00 \xec\xc6\xe3\xb9e\xc9\n\xb3\xca\xaf,\xb5\x04'), chr(0b1100100) + chr(0b100011 + 0o102) + chr(1743 - 1644) + chr(9094 - 8983) + chr(0b10011 + 0o121) + '\x65')('\165' + chr(9463 - 9347) + chr(0b1000 + 0o136) + chr(0b101101) + chr(0b111000)).q33KG3foQ_CJ(roI3spqORKae(ES5oEprVxulp(b'O\x0c'), chr(100) + chr(0b10101 + 0o120) + chr(0b1011000 + 0o13) + chr(6298 - 6187) + chr(8894 - 8794) + '\145')('\x75' + chr(116) + chr(102) + chr(997 - 952) + '\070').Y4yM9BcfTCNq(oOswuXagcqmj)) roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'\x10fX\x0eFm\xd2\xedM.\xea\xc8'), chr(0b1100100) + chr(0b1001100 + 0o31) + '\143' + chr(0b1101111) + chr(0b1100100) + '\x65')(chr(12616 - 12499) + chr(11772 - 11656) + chr(0b1011001 + 0o15) + chr(0b100101 + 0o10) + chr(0b111000)))(zZOqwb18flaa) elif roI3spqORKae(MmxnG7GjFWTN, roI3spqORKae(ES5oEprVxulp(b'\x10Xh*mV\xd4\xd7\x00 '), chr(2707 - 2607) + '\x65' + chr(0b1100011) + '\x6f' + chr(100) + chr(0b1100101))('\x75' + '\164' + '\x66' + chr(0b100011 + 0o12) + chr(0b1000 + 0o60)))(roI3spqORKae(ES5oEprVxulp(b'\x14C{3\x7fI\xcc\xc9Y'), '\144' + '\x65' + chr(99) + chr(10133 - 10022) + chr(8913 - 8813) + chr(0b1000111 + 0o36))('\165' + chr(0b111000 + 0o74) + chr(0b1100110) + '\x2d' + chr(0b111000))): oEbMaZ6lyCfw = SsdNdRxXOwsF.api.workflow_describe(MmxnG7GjFWTN) O1X7z0RsQ9O6(pUa0dfranXan, oEbMaZ6lyCfw) elif roI3spqORKae(MmxnG7GjFWTN, roI3spqORKae(ES5oEprVxulp(b'\x10Xh*mV\xd4\xd7\x00 '), chr(100) + chr(101) + chr(99) + chr(111) + chr(6794 - 6694) + chr(0b1000001 + 0o44))(chr(0b1001 + 0o154) + '\164' + chr(102) + chr(0b101101) + '\070'))(roI3spqORKae(ES5oEprVxulp(b'\x04@f:xI\xd4\xd1\x06#\xeb\xde\xac\xbc-'), chr(797 - 697) + '\145' + '\143' + '\x6f' + chr(0b110 + 0o136) + chr(838 - 737))(chr(0b1011100 + 0o31) + chr(0b100110 + 0o116) + chr(0b1100011 + 0o3) + '\x2d' + chr(0b111000))): raise bvzaJ98LpDhC(roI3spqORKae(ES5oEprVxulp(b'!Y`4}L\xcd\xd9T)\xad\xd5\xaf\xa4b\xcf\x0f\xfc\xd3\xe8-\xf7L\xab\xdd\xf8V\x19\xff\xf5\x9c&"\xde8OoO\xd0\x86\x0fCk9u\x05\xd4\xd1\x06#\xeb\xde\xac\xbcs\x8e\n\xaf\x84\xe90\xe8\n\xbe\xd7\xfbV\x1d\xe3\xf1\x84i>\xcf._'), chr(0b1100100) + '\x65' + chr(99) + chr(7931 - 7820) + chr(0b1100100) + chr(101))('\165' + chr(116) + chr(0b1100110) + '\055' + chr(0b111000)))
dnanexus/dx-toolkit
src/python/dxpy/workflow_builder.py
_build_regular_workflow
def _build_regular_workflow(json_spec): """ Precondition: json_spec must be validated """ workflow_id = dxpy.api.workflow_new(json_spec)["id"] dxpy.api.workflow_close(workflow_id) return workflow_id
python
def _build_regular_workflow(json_spec): """ Precondition: json_spec must be validated """ workflow_id = dxpy.api.workflow_new(json_spec)["id"] dxpy.api.workflow_close(workflow_id) return workflow_id
[ "def", "_build_regular_workflow", "(", "json_spec", ")", ":", "workflow_id", "=", "dxpy", ".", "api", ".", "workflow_new", "(", "json_spec", ")", "[", "\"id\"", "]", "dxpy", ".", "api", ".", "workflow_close", "(", "workflow_id", ")", "return", "workflow_id" ]
Precondition: json_spec must be validated
[ "Precondition", ":", "json_spec", "must", "be", "validated" ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/workflow_builder.py#L376-L382
train
Builds a regular workflow.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfK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,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(48) + chr(0b111000 + 0o67) + chr(52) + chr(48), 39195 - 39187), nzTpIcepk0o8(chr(48) + chr(111) + chr(775 - 726) + chr(0b110001) + '\066', 30889 - 30881), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x33' + '\x35' + chr(2608 - 2555), ord("\x08")), nzTpIcepk0o8(chr(0b101110 + 0o2) + '\x6f' + chr(0b110100 + 0o3) + chr(0b100100 + 0o14), ord("\x08")), nzTpIcepk0o8('\060' + chr(6152 - 6041) + chr(1645 - 1595) + chr(0b110001) + chr(0b101101 + 0o4), 43973 - 43965), nzTpIcepk0o8(chr(0b100 + 0o54) + chr(0b11110 + 0o121) + chr(603 - 548) + chr(48), 8), nzTpIcepk0o8(chr(48) + chr(0b1100010 + 0o15) + chr(329 - 279) + '\061' + '\060', ord("\x08")), nzTpIcepk0o8(chr(1014 - 966) + '\x6f' + chr(50) + chr(2800 - 2745) + chr(0b110100), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1011 + 0o144) + chr(856 - 807) + chr(2942 - 2887) + chr(0b110111), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b100100 + 0o16) + chr(0b110001) + chr(0b101 + 0o60), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(50) + chr(0b110111) + '\x37', 0o10), nzTpIcepk0o8(chr(0b10110 + 0o32) + '\157' + '\x32' + '\x36' + chr(0b110011), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + '\x32' + chr(2458 - 2406) + chr(0b101100 + 0o12), 57055 - 57047), nzTpIcepk0o8(chr(0b101111 + 0o1) + chr(0b111100 + 0o63) + '\061' + chr(54) + '\x34', 20238 - 20230), nzTpIcepk0o8('\060' + chr(5153 - 5042) + chr(0b110011) + '\062' + chr(1902 - 1849), 0b1000), nzTpIcepk0o8(chr(663 - 615) + '\x6f' + chr(1084 - 1033) + chr(0b10010 + 0o42) + '\067', ord("\x08")), nzTpIcepk0o8(chr(0b1100 + 0o44) + chr(0b1001000 + 0o47) + chr(0b110010) + '\067', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1011101 + 0o22) + chr(0b110010) + '\x35' + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(0b11011 + 0o25) + chr(0b110000 + 0o77) + chr(868 - 814) + chr(0b110101), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x31' + chr(1987 - 1932) + chr(55), 8), nzTpIcepk0o8(chr(0b10100 + 0o34) + chr(0b1101111) + chr(0b110011) + chr(2299 - 2247) + '\x35', 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(0b101111 + 0o2) + '\x37' + chr(376 - 327), 0o10), nzTpIcepk0o8(chr(0b100011 + 0o15) + '\x6f' + chr(51) + chr(0b11010 + 0o33), ord("\x08")), nzTpIcepk0o8('\060' + chr(5420 - 5309) + chr(49) + chr(0b110110) + chr(287 - 235), 8), nzTpIcepk0o8('\x30' + chr(111) + chr(49) + chr(53) + chr(738 - 683), 51815 - 51807), nzTpIcepk0o8(chr(48) + chr(0b101110 + 0o101) + chr(2304 - 2255) + chr(1501 - 1452) + '\x31', 0b1000), nzTpIcepk0o8(chr(0b101100 + 0o4) + chr(8670 - 8559) + chr(89 - 38) + '\063' + '\x32', 0o10), nzTpIcepk0o8(chr(0b10000 + 0o40) + '\x6f' + '\063' + '\060', 0b1000), nzTpIcepk0o8(chr(0b1000 + 0o50) + chr(0b1101111) + '\063' + '\064' + chr(1206 - 1158), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110111) + chr(53), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + '\063' + chr(0b101011 + 0o5), 8), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b1000 + 0o53) + '\066' + '\064', 0o10), nzTpIcepk0o8(chr(0b10001 + 0o37) + '\x6f' + chr(0b11010 + 0o31) + chr(53) + chr(0b11100 + 0o24), ord("\x08")), nzTpIcepk0o8(chr(131 - 83) + '\x6f' + '\x32' + chr(55) + chr(55), 8), nzTpIcepk0o8(chr(614 - 566) + '\157' + chr(1448 - 1395), 0o10), nzTpIcepk0o8('\060' + chr(0b1000110 + 0o51) + chr(2127 - 2078) + chr(2749 - 2695) + chr(0b100001 + 0o24), 18864 - 18856), nzTpIcepk0o8(chr(0b110000) + '\157' + '\063' + chr(51) + '\x33', 15295 - 15287), nzTpIcepk0o8('\060' + chr(11167 - 11056) + chr(0b110010) + chr(52) + chr(0b0 + 0o63), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + '\x33' + chr(0b110011), 0o10), nzTpIcepk0o8('\060' + chr(11202 - 11091) + chr(49) + chr(1641 - 1593), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + chr(0b1101 + 0o142) + chr(53) + chr(0b110000), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x0e'), chr(4876 - 4776) + chr(101) + chr(892 - 793) + chr(111) + chr(0b10010 + 0o122) + chr(0b1100101))(chr(0b1110101) + chr(116) + chr(0b1100110) + chr(0b101100 + 0o1) + chr(0b111000)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def aEwTsxfT9joa(agxi8L4gDzUu): u5DydzxpYwfH = SsdNdRxXOwsF.api.workflow_new(agxi8L4gDzUu)[roI3spqORKae(ES5oEprVxulp(b'I*'), chr(0b1100100) + chr(101) + chr(99) + chr(111) + chr(0b1010100 + 0o20) + '\145')('\165' + '\164' + '\x66' + chr(0b101 + 0o50) + '\070')] roI3spqORKae(SsdNdRxXOwsF.api, roI3spqORKae(ES5oEprVxulp(b'W!\x9fS\xefT\xe7\xcb \xee\xd3\xdc\xd5\x11'), '\x64' + chr(0b1100101) + '\x63' + chr(0b100 + 0o153) + chr(9169 - 9069) + chr(2943 - 2842))('\x75' + '\164' + chr(3490 - 3388) + chr(0b101101) + chr(0b111000)))(u5DydzxpYwfH) return u5DydzxpYwfH
dnanexus/dx-toolkit
src/python/dxpy/workflow_builder.py
_get_validated_enabled_regions
def _get_validated_enabled_regions(json_spec, from_command_line): """ Returns a set of regions (region names) in which the global workflow should be enabled. Also validates and synchronizes the regions passed via CLI argument and in the regionalOptions field. """ enabled_regions = dxpy.executable_builder.get_enabled_regions('globalworkflow', json_spec, from_command_line, WorkflowBuilderException) if not enabled_regions: enabled_regions = [] if not dxpy.WORKSPACE_ID: msg = "A context project must be selected to enable a workflow in the project's region." msg += " You can use 'dx select' to select a project. Otherwise you can use --region option" msg += " to select a region in which the workflow should be enabled" raise(WorkflowBuilderException(msg)) region = dxpy.api.project_describe(dxpy.WORKSPACE_ID, input_params={"fields": {"region": True}})["region"] enabled_regions.append(region) if not enabled_regions: raise AssertionError("This workflow should be enabled in at least one region") return set(enabled_regions)
python
def _get_validated_enabled_regions(json_spec, from_command_line): """ Returns a set of regions (region names) in which the global workflow should be enabled. Also validates and synchronizes the regions passed via CLI argument and in the regionalOptions field. """ enabled_regions = dxpy.executable_builder.get_enabled_regions('globalworkflow', json_spec, from_command_line, WorkflowBuilderException) if not enabled_regions: enabled_regions = [] if not dxpy.WORKSPACE_ID: msg = "A context project must be selected to enable a workflow in the project's region." msg += " You can use 'dx select' to select a project. Otherwise you can use --region option" msg += " to select a region in which the workflow should be enabled" raise(WorkflowBuilderException(msg)) region = dxpy.api.project_describe(dxpy.WORKSPACE_ID, input_params={"fields": {"region": True}})["region"] enabled_regions.append(region) if not enabled_regions: raise AssertionError("This workflow should be enabled in at least one region") return set(enabled_regions)
[ "def", "_get_validated_enabled_regions", "(", "json_spec", ",", "from_command_line", ")", ":", "enabled_regions", "=", "dxpy", ".", "executable_builder", ".", "get_enabled_regions", "(", "'globalworkflow'", ",", "json_spec", ",", "from_command_line", ",", "WorkflowBuilderException", ")", "if", "not", "enabled_regions", ":", "enabled_regions", "=", "[", "]", "if", "not", "dxpy", ".", "WORKSPACE_ID", ":", "msg", "=", "\"A context project must be selected to enable a workflow in the project's region.\"", "msg", "+=", "\" You can use 'dx select' to select a project. Otherwise you can use --region option\"", "msg", "+=", "\" to select a region in which the workflow should be enabled\"", "raise", "(", "WorkflowBuilderException", "(", "msg", ")", ")", "region", "=", "dxpy", ".", "api", ".", "project_describe", "(", "dxpy", ".", "WORKSPACE_ID", ",", "input_params", "=", "{", "\"fields\"", ":", "{", "\"region\"", ":", "True", "}", "}", ")", "[", "\"region\"", "]", "enabled_regions", ".", "append", "(", "region", ")", "if", "not", "enabled_regions", ":", "raise", "AssertionError", "(", "\"This workflow should be enabled in at least one region\"", ")", "return", "set", "(", "enabled_regions", ")" ]
Returns a set of regions (region names) in which the global workflow should be enabled. Also validates and synchronizes the regions passed via CLI argument and in the regionalOptions field.
[ "Returns", "a", "set", "of", "regions", "(", "region", "names", ")", "in", "which", "the", "global", "workflow", "should", "be", "enabled", ".", "Also", "validates", "and", "synchronizes", "the", "regions", "passed", "via", "CLI", "argument", "and", "in", "the", "regionalOptions", "field", "." ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/workflow_builder.py#L385-L410
train
Returns a set of regions in which the global workflow should be enabled.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL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q,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(238 - 190) + chr(111) + chr(0b110001), 0o10), nzTpIcepk0o8(chr(0b101010 + 0o6) + chr(3321 - 3210) + '\061' + '\061' + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(0b101011 + 0o5) + chr(111) + chr(0b11000 + 0o33) + '\064' + '\x36', ord("\x08")), nzTpIcepk0o8(chr(359 - 311) + '\x6f' + chr(0b110010) + chr(1479 - 1425) + chr(0b110000), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + '\x31' + '\x37' + '\060', ord("\x08")), nzTpIcepk0o8(chr(792 - 744) + '\157' + chr(50) + chr(0b110110) + chr(2786 - 2732), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b110 + 0o151) + chr(0b11100 + 0o26) + chr(0b101111 + 0o2) + '\x33', ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(2144 - 2091) + chr(0b101100 + 0o11), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b100011 + 0o20) + chr(1370 - 1319) + chr(1103 - 1049), ord("\x08")), nzTpIcepk0o8(chr(2207 - 2159) + chr(0b1001000 + 0o47) + chr(50) + chr(0b100100 + 0o22) + chr(0b10111 + 0o31), 8), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(51) + chr(2832 - 2778) + chr(2173 - 2122), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b100001 + 0o21) + chr(0b11111 + 0o21) + '\064', 12913 - 12905), nzTpIcepk0o8(chr(0b101011 + 0o5) + chr(0b1101111) + '\064' + chr(0b110101), 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(50) + '\x37' + chr(54), 0b1000), nzTpIcepk0o8(chr(0b10011 + 0o35) + chr(9736 - 9625) + chr(0b101000 + 0o13) + chr(50) + chr(0b110010), 15577 - 15569), nzTpIcepk0o8('\060' + chr(7689 - 7578) + '\061' + chr(1729 - 1677) + chr(0b110100), 156 - 148), nzTpIcepk0o8(chr(621 - 573) + chr(748 - 637) + chr(0b11110 + 0o25) + chr(0b110000) + '\x34', 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b101010 + 0o7) + chr(0b110100) + chr(0b110010), 32914 - 32906), nzTpIcepk0o8(chr(0b0 + 0o60) + chr(5875 - 5764) + '\x33' + chr(0b110101) + '\x30', 0b1000), nzTpIcepk0o8('\060' + chr(0b1001010 + 0o45) + chr(2271 - 2221) + chr(0b100 + 0o61) + chr(0b11 + 0o64), 57914 - 57906), nzTpIcepk0o8(chr(0b11000 + 0o30) + '\x6f' + chr(55), 0o10), nzTpIcepk0o8(chr(511 - 463) + chr(2050 - 1939) + '\062' + chr(1286 - 1234) + chr(0b100011 + 0o21), 26895 - 26887), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(229 - 180) + '\065' + '\063', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\061' + '\x32' + chr(0b1 + 0o57), 0o10), nzTpIcepk0o8('\060' + '\157' + chr(0b0 + 0o62) + '\065' + chr(0b10000 + 0o46), 24044 - 24036), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\061' + chr(0b11100 + 0o30) + chr(0b110011 + 0o2), 3986 - 3978), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(1520 - 1470) + chr(0b100100 + 0o23) + chr(0b110010), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(9701 - 9590) + chr(878 - 828), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1011011 + 0o24) + '\061' + chr(0b110010 + 0o5) + '\065', 37124 - 37116), nzTpIcepk0o8(chr(0b110000) + chr(11956 - 11845) + chr(0b110010) + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(0b11100 + 0o24) + chr(111) + chr(50) + '\x34' + chr(0b110110), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b10011 + 0o134) + chr(0b110001) + chr(0b110100) + '\x31', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b11110 + 0o23) + chr(0b1111 + 0o46) + chr(1540 - 1489), 8), nzTpIcepk0o8(chr(706 - 658) + chr(11995 - 11884) + chr(50) + chr(0b11 + 0o62) + chr(1774 - 1726), 0b1000), nzTpIcepk0o8(chr(0b11000 + 0o30) + chr(0b1101111) + '\x37' + chr(0b110111), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b100100 + 0o113) + chr(0b110010) + chr(53) + '\060', 8), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(50) + chr(0b110100) + '\065', 0o10), nzTpIcepk0o8('\x30' + chr(8053 - 7942) + chr(882 - 833) + chr(55) + '\x30', 8), nzTpIcepk0o8('\060' + '\x6f' + chr(0b101011 + 0o6) + chr(0b10 + 0o57) + chr(419 - 371), 23874 - 23866), nzTpIcepk0o8('\060' + chr(9357 - 9246) + chr(51) + '\x36' + '\x37', 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(1302 - 1249) + '\060', 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'/'), chr(100) + chr(101) + chr(0b1100010 + 0o1) + chr(9644 - 9533) + chr(100) + '\x65')(chr(12301 - 12184) + chr(0b111111 + 0o65) + '\146' + chr(45) + chr(56)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def lcpTxxrMqcYu(agxi8L4gDzUu, U_Gv5TovXuzk): V25k9xiAC80M = SsdNdRxXOwsF.executable_builder.get_enabled_regions(roI3spqORKae(ES5oEprVxulp(b'f%\x89\xd2\x19\xda\xfcB\xac\xdb\x95\xe8J\xc9'), '\x64' + '\x65' + '\x63' + chr(0b1101111) + chr(100) + '\145')('\165' + chr(13442 - 13326) + '\x66' + chr(45) + chr(56)), agxi8L4gDzUu, U_Gv5TovXuzk, bvzaJ98LpDhC) if not V25k9xiAC80M: V25k9xiAC80M = [] if not roI3spqORKae(SsdNdRxXOwsF, roI3spqORKae(ES5oEprVxulp(b'V\x06\xb4\xfb+\xe6\xcan\x9b\xef\xba\xc0'), chr(0b1100000 + 0o4) + chr(0b1100101) + chr(508 - 409) + chr(0b1101111) + '\x64' + '\145')(chr(560 - 443) + chr(116) + chr(102) + chr(0b11100 + 0o21) + chr(56))): sldzbHve8G1S = roI3spqORKae(ES5oEprVxulp(b'@i\x85\xdf\x16\xc2\xeeU\xaa\x90\x83\xf6J\xd4\xb7\x07\xb0B\x85\xdat\xd0K2\xcbE\xc9g\x11t\xc5\x15\x0e\xcc\x1f\xdc\xcaX-\x99`+\x8a\xd5X\xd7\xabZ\xb1\xc2\x98\xe2I\xd1\xa5D\xad\x0c\xc8\xdbo\xc1K \xdc\n\xd0g\x1ee\x81\x12K\xdaZ\xcf\xcc\x17&\xd9'), chr(0b1001011 + 0o31) + '\x65' + '\x63' + chr(0b100100 + 0o113) + chr(335 - 235) + chr(0b1100101))(chr(0b1110101) + chr(0b1110100) + chr(0b1100110) + chr(0b0 + 0o55) + chr(354 - 298)) sldzbHve8G1S += roI3spqORKae(ES5oEprVxulp(b'!\x10\x89\xc5X\xd5\xeaC\xfe\xc5\x80\xe1\x05\x99\xb6\x1c\xe4\x11\x8d\xc3b\xc7\x1fw\x8e\x11\xd5"\x0et\xca\x04\x08\xdc\x1f\xc9\x85\x08:\x98k,\x85\xc4V\x96\xc4Y\xb6\xd5\x81\xf3L\xcd\xb7D\xbd\r\x9d\x8fd\xc5\x05p\xdb\x16\xdf"P<\xd4\x04\x0c\xc1P\xc6\x85\x178\x83h&\x88'), '\144' + '\145' + chr(99) + '\157' + chr(100) + '\145')(chr(12409 - 12292) + '\164' + '\x66' + chr(0b101101) + chr(56)) sldzbHve8G1S += roI3spqORKae(ES5oEprVxulp(b"!=\x89\x90\x0b\xd3\xe7H\xbd\xc4\xd3\xe5\x05\xcc\xb7\x03\xad\r\x86\x8fn\xcaK'\xc6\x0c\xd9j]e\xce\x04K\xdfP\xda\xce\x1e$\x98vi\x95\xd8\x17\xc3\xe7I\xfe\xd2\x96\xa4@\xd0\xb3\x06\xa8\x07\x8c"), chr(0b101110 + 0o66) + '\145' + chr(2181 - 2082) + chr(7276 - 7165) + '\144' + '\145')('\x75' + '\x74' + chr(0b1100110) + chr(0b101101) + chr(0b111000)) raise bvzaJ98LpDhC(sldzbHve8G1S) SiTpDn8thAb3 = SsdNdRxXOwsF.api.project_describe(SsdNdRxXOwsF.WORKSPACE_ID, input_params={roI3spqORKae(ES5oEprVxulp(b'g \x83\xdc\x1c\xc5'), chr(100) + chr(101) + '\x63' + chr(0b100100 + 0o113) + '\144' + '\145')('\165' + chr(2188 - 2072) + '\146' + chr(45) + '\x38'): {roI3spqORKae(ES5oEprVxulp(b's,\x81\xd9\x17\xd8'), chr(0b1010 + 0o132) + '\x65' + chr(0b1100011) + chr(0b1101111) + chr(0b1100100) + '\x65')('\165' + '\164' + '\146' + chr(0b101011 + 0o2) + chr(1320 - 1264)): nzTpIcepk0o8(chr(48) + '\x6f' + chr(184 - 135), 8)}})[roI3spqORKae(ES5oEprVxulp(b's,\x81\xd9\x17\xd8'), chr(0b1100100) + '\145' + '\x63' + chr(5674 - 5563) + '\x64' + chr(101))(chr(7839 - 7722) + chr(116) + chr(102) + chr(0b101101) + chr(0b111000))] roI3spqORKae(V25k9xiAC80M, roI3spqORKae(ES5oEprVxulp(b'I\x1d\xb5\x84\x00\xd1\xccB\xb4\xdf\xa6\xb1'), chr(0b1100100) + '\145' + chr(8908 - 8809) + chr(0b110110 + 0o71) + chr(0b1100100) + chr(3784 - 3683))('\x75' + chr(116) + chr(9182 - 9080) + chr(0b11110 + 0o17) + chr(763 - 707)))(SiTpDn8thAb3) if not V25k9xiAC80M: raise B3LV8Eo811Ma(roI3spqORKae(ES5oEprVxulp(b"U!\x8f\xc3X\xc1\xe4_\xb5\xd6\x9f\xebR\x9e\xa1\x0c\xab\x17\x84\xcb'\xc6\x0ep\xcb\x0b\xdb`\x11t\xc2A\x02\xc6\x1f\xc9\xd1X$\x92`:\x92\x90\x17\xd8\xee\r\xac\xd5\x94\xedJ\xd0"), '\x64' + chr(0b11010 + 0o113) + chr(0b1100011) + '\x6f' + chr(100) + chr(0b1010 + 0o133))('\165' + '\164' + '\146' + chr(0b101101) + '\070')) return Bvi71nNyvlqO(V25k9xiAC80M)
dnanexus/dx-toolkit
src/python/dxpy/workflow_builder.py
_create_temporary_projects
def _create_temporary_projects(enabled_regions, args): """ Creates a temporary project needed to build an underlying workflow for a global workflow. Returns a dictionary with region names as keys and project IDs as values The regions in which projects will be created can be: i. regions specified in dxworkflow.json "regionalOptions" ii. regions specified as an argument to "dx build" iii. current context project, if None of the above are set If both args and dxworkflow.json specify regions, they must match. """ # Create one temp project in each region projects_by_region = {} # Project IDs by region for region in enabled_regions: try: project_input = {"name": "Temporary build project for dx build global workflow", "region": region} if args.bill_to: project_input["billTo"] = args.bill_to temp_project = dxpy.api.project_new(project_input)["id"] projects_by_region[region] = temp_project logger.debug("Created temporary project {} to build in".format(temp_project)) except: # Clean up any temp projects that might have been created if projects_by_region: dxpy.executable_builder.delete_temporary_projects(projects_by_region.values()) err_exit() return projects_by_region
python
def _create_temporary_projects(enabled_regions, args): """ Creates a temporary project needed to build an underlying workflow for a global workflow. Returns a dictionary with region names as keys and project IDs as values The regions in which projects will be created can be: i. regions specified in dxworkflow.json "regionalOptions" ii. regions specified as an argument to "dx build" iii. current context project, if None of the above are set If both args and dxworkflow.json specify regions, they must match. """ # Create one temp project in each region projects_by_region = {} # Project IDs by region for region in enabled_regions: try: project_input = {"name": "Temporary build project for dx build global workflow", "region": region} if args.bill_to: project_input["billTo"] = args.bill_to temp_project = dxpy.api.project_new(project_input)["id"] projects_by_region[region] = temp_project logger.debug("Created temporary project {} to build in".format(temp_project)) except: # Clean up any temp projects that might have been created if projects_by_region: dxpy.executable_builder.delete_temporary_projects(projects_by_region.values()) err_exit() return projects_by_region
[ "def", "_create_temporary_projects", "(", "enabled_regions", ",", "args", ")", ":", "# Create one temp project in each region", "projects_by_region", "=", "{", "}", "# Project IDs by region", "for", "region", "in", "enabled_regions", ":", "try", ":", "project_input", "=", "{", "\"name\"", ":", "\"Temporary build project for dx build global workflow\"", ",", "\"region\"", ":", "region", "}", "if", "args", ".", "bill_to", ":", "project_input", "[", "\"billTo\"", "]", "=", "args", ".", "bill_to", "temp_project", "=", "dxpy", ".", "api", ".", "project_new", "(", "project_input", ")", "[", "\"id\"", "]", "projects_by_region", "[", "region", "]", "=", "temp_project", "logger", ".", "debug", "(", "\"Created temporary project {} to build in\"", ".", "format", "(", "temp_project", ")", ")", "except", ":", "# Clean up any temp projects that might have been created", "if", "projects_by_region", ":", "dxpy", ".", "executable_builder", ".", "delete_temporary_projects", "(", "projects_by_region", ".", "values", "(", ")", ")", "err_exit", "(", ")", "return", "projects_by_region" ]
Creates a temporary project needed to build an underlying workflow for a global workflow. Returns a dictionary with region names as keys and project IDs as values The regions in which projects will be created can be: i. regions specified in dxworkflow.json "regionalOptions" ii. regions specified as an argument to "dx build" iii. current context project, if None of the above are set If both args and dxworkflow.json specify regions, they must match.
[ "Creates", "a", "temporary", "project", "needed", "to", "build", "an", "underlying", "workflow", "for", "a", "global", "workflow", ".", "Returns", "a", "dictionary", "with", "region", "names", "as", "keys", "and", "project", "IDs", "as", "values" ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/workflow_builder.py#L413-L441
train
Creates a temporary project for each region in enabled_regions and creates a temporary project for each region in enabled_regions.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q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,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\060' + chr(119 - 8) + chr(0b110001) + chr(0b10011 + 0o42) + '\x34', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1011100 + 0o23) + chr(51) + '\x31' + '\x33', 24846 - 24838), nzTpIcepk0o8(chr(0b1010 + 0o46) + chr(0b1101011 + 0o4) + '\x31' + chr(1944 - 1896), 0b1000), nzTpIcepk0o8('\x30' + chr(11209 - 11098) + chr(0b110011) + chr(0b110 + 0o57) + chr(0b110011), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + '\x32' + '\x35' + chr(54), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110011) + '\x32' + '\061', 0o10), nzTpIcepk0o8(chr(1180 - 1132) + '\x6f' + chr(0b10001 + 0o40) + chr(0b100101 + 0o16) + chr(0b110000), 64470 - 64462), nzTpIcepk0o8(chr(1447 - 1399) + chr(111) + '\066' + chr(2260 - 2207), 0b1000), nzTpIcepk0o8('\x30' + chr(0b111000 + 0o67) + '\x32' + chr(1828 - 1773) + '\060', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(8266 - 8155) + chr(0b1010 + 0o50) + chr(0b110001) + chr(0b100011 + 0o24), 0b1000), nzTpIcepk0o8(chr(1507 - 1459) + chr(0b1101111) + '\061' + '\x30', 8), nzTpIcepk0o8(chr(0b10000 + 0o40) + chr(5809 - 5698) + chr(742 - 691) + chr(0b101010 + 0o6) + chr(1623 - 1573), 0o10), nzTpIcepk0o8('\x30' + chr(7275 - 7164) + chr(0b110011) + chr(0b1111 + 0o47), 15333 - 15325), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110001) + chr(0b110011) + chr(0b110111), 10705 - 10697), nzTpIcepk0o8('\x30' + '\x6f' + '\061' + chr(1993 - 1941) + chr(1755 - 1706), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(2529 - 2478) + '\062' + chr(0b10101 + 0o33), 0b1000), nzTpIcepk0o8(chr(2123 - 2075) + chr(0b1101111) + chr(0b1001 + 0o53) + chr(1144 - 1096), 15470 - 15462), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\066' + chr(49), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b11001 + 0o31) + '\067', 0o10), nzTpIcepk0o8('\060' + '\157' + chr(0b101000 + 0o12) + chr(0b110100) + '\x32', 5437 - 5429), nzTpIcepk0o8('\060' + chr(111) + chr(52) + chr(1155 - 1103), 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(51) + '\x30' + chr(0b110 + 0o55), 37265 - 37257), nzTpIcepk0o8('\x30' + chr(0b1110 + 0o141) + chr(0b110001) + chr(54) + chr(0b110010), 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(0b10101 + 0o36) + chr(0b110101) + chr(0b0 + 0o61), 44091 - 44083), nzTpIcepk0o8(chr(2287 - 2239) + chr(2099 - 1988) + '\x32' + '\063', 0b1000), nzTpIcepk0o8(chr(0b1001 + 0o47) + '\157' + chr(51) + chr(0b110110) + chr(52), 0o10), nzTpIcepk0o8('\060' + chr(3051 - 2940) + chr(50) + chr(50) + chr(50), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(10430 - 10319) + chr(0b10110 + 0o33) + chr(49) + chr(2347 - 2298), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\061' + chr(1458 - 1408) + chr(52), 0b1000), nzTpIcepk0o8(chr(1152 - 1104) + chr(5037 - 4926) + chr(0b110011) + chr(51) + chr(0b100 + 0o60), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\063' + '\065' + chr(2289 - 2240), 8), nzTpIcepk0o8('\x30' + chr(3407 - 3296) + chr(0b110010) + chr(0b110010) + chr(51), 4533 - 4525), nzTpIcepk0o8(chr(0b1011 + 0o45) + chr(3473 - 3362) + '\x33' + '\x34', 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(0b100110 + 0o15) + '\x35' + '\067', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b100101 + 0o15) + '\064' + '\x34', 4311 - 4303), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x35' + chr(49), 0b1000), nzTpIcepk0o8('\x30' + '\157' + '\061' + chr(0b110000) + '\x35', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\067' + '\x34', 2032 - 2024), nzTpIcepk0o8('\x30' + '\157' + chr(49) + chr(1088 - 1034) + chr(0b110110), 4115 - 4107), nzTpIcepk0o8(chr(0b11111 + 0o21) + chr(8809 - 8698) + chr(0b110001) + chr(0b110100) + chr(0b110100), 47967 - 47959)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110101) + chr(1075 - 1027), 16762 - 16754)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'B'), chr(100) + '\145' + chr(0b1100011) + chr(0b111000 + 0o67) + '\144' + chr(4014 - 3913))(chr(11824 - 11707) + chr(3733 - 3617) + chr(102) + chr(0b100000 + 0o15) + chr(279 - 223)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def T1ajvE_oNNNw(V25k9xiAC80M, eemPYp2vtTSr): dCBtLYTQ0Yd6 = {} for SiTpDn8thAb3 in V25k9xiAC80M: try: gvjEBCGn_2lp = {roI3spqORKae(ES5oEprVxulp(b'\x02\xaae\x8e'), '\x64' + chr(0b1100101) + chr(0b10011 + 0o120) + chr(0b10010 + 0o135) + chr(0b1100100) + '\145')(chr(0b1001001 + 0o54) + chr(0b101000 + 0o114) + chr(0b101001 + 0o75) + chr(138 - 93) + chr(0b111000)): roI3spqORKae(ES5oEprVxulp(b'8\xaee\x9b\xc1\xa39G\xc1\xafj\xb7w3\x05\xf0PCx\xc8A\xa0\x06\xc9u\x9b\xe0i0\xa4\xc9\xf1i\x86\xc8Me[\x1a\x0b\x0e\xaad\xcb\xd9\xbe*^\xde\xe3g\xb5'), '\144' + '\x65' + '\143' + chr(0b1101111) + chr(0b1100100) + chr(0b101101 + 0o70))(chr(0b1110101) + chr(0b111 + 0o155) + chr(0b101010 + 0o74) + chr(0b101101) + chr(56)), roI3spqORKae(ES5oEprVxulp(b'\x1e\xaeo\x82\xc1\xbf'), '\144' + '\145' + chr(99) + chr(0b1101111) + '\144' + chr(6709 - 6608))('\165' + chr(116) + chr(7013 - 6911) + chr(902 - 857) + chr(1395 - 1339)): SiTpDn8thAb3} if roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b'\x0e\xa2d\x87\xf1\xa57'), chr(0b1100100) + chr(2273 - 2172) + '\x63' + chr(2833 - 2722) + '\144' + chr(0b1010101 + 0o20))(chr(1677 - 1560) + chr(116) + chr(2291 - 2189) + chr(1178 - 1133) + '\x38')): gvjEBCGn_2lp[roI3spqORKae(ES5oEprVxulp(b'\x0e\xa2d\x87\xfa\xbe'), chr(0b1100100) + '\145' + '\x63' + '\x6f' + chr(0b1100100) + chr(0b1100101))('\165' + chr(0b111 + 0o155) + chr(0b1000011 + 0o43) + chr(0b1011 + 0o42) + chr(0b111000))] = eemPYp2vtTSr.bill_to ItKr2uj0SMda = SsdNdRxXOwsF.api.project_new(gvjEBCGn_2lp)[roI3spqORKae(ES5oEprVxulp(b'\x05\xaf'), '\144' + chr(0b1100101) + chr(99) + chr(0b1101111) + chr(9435 - 9335) + chr(0b110000 + 0o65))('\x75' + '\x74' + '\x66' + chr(45) + chr(0b111000))] dCBtLYTQ0Yd6[SiTpDn8thAb3] = ItKr2uj0SMda roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'\x0b\x8a1\xb1\x97\xb57\x03\xed\xe2M\x98'), '\144' + '\145' + chr(0b1100011) + chr(8440 - 8329) + '\x64' + '\x65')(chr(117) + chr(3281 - 3165) + '\x66' + '\055' + chr(0b111000)))(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'/\xb9m\x8a\xda\xb4<\x15\xcc\xeae\xb2q-\x00\xa2Y\x11g\xd0K\xa9\x17\x8ag\xd4\xe94t\xa8\x86\xb3~\x9a\xcdE!\x1c\x1f\n'), chr(0b1100100) + chr(0b1100101) + chr(0b11101 + 0o106) + '\x6f' + '\144' + chr(0b1100101))(chr(0b1110101) + '\164' + '\146' + '\x2d' + chr(1320 - 1264)), roI3spqORKae(ES5oEprVxulp(b'\x1d\xf8;\xa0\xe9\xe2>Z\xe9\xd0K\x88'), '\144' + '\x65' + chr(99) + chr(12287 - 12176) + chr(0b1010110 + 0o16) + '\x65')(chr(117) + chr(116) + '\x66' + chr(0b101101) + chr(56)))(ItKr2uj0SMda)) except UtiWT6f6p9yZ: if dCBtLYTQ0Yd6: roI3spqORKae(SsdNdRxXOwsF.executable_builder, roI3spqORKae(ES5oEprVxulp(b'\x08\xaed\x8e\xda\xb4\x07A\xdd\xe2x\xadl>\x13\xa9\x7fAe\xcdN\xa6\x11\x9d`'), chr(100) + chr(0b101110 + 0o67) + chr(99) + chr(111) + chr(100) + chr(0b1100101))('\165' + chr(0b1101001 + 0o13) + chr(102) + '\x2d' + chr(846 - 790)))(roI3spqORKae(dCBtLYTQ0Yd6, roI3spqORKae(ES5oEprVxulp(b'/\xb8g\x8f\xf4\x9b\x10\x03\xc0\xb6\\\xba'), chr(0b1100100) + '\145' + '\x63' + '\x6f' + chr(0b11101 + 0o107) + chr(0b1100101))(chr(117) + chr(116) + chr(2131 - 2029) + '\055' + '\x38'))()) F16fGuypkEJS() return dCBtLYTQ0Yd6
dnanexus/dx-toolkit
src/python/dxpy/workflow_builder.py
_build_underlying_workflows
def _build_underlying_workflows(enabled_regions, json_spec, args): """ Creates a workflow in a temporary project for each enabled region. Returns a tuple of dictionaries: workflow IDs by region and project IDs by region. The caller is responsible for destroying the projects if this method returns properly. """ projects_by_region = _create_temporary_projects(enabled_regions, args) workflows_by_region = {} try: for region, project in projects_by_region.items(): json_spec['project'] = project workflow_id = _build_regular_workflow(json_spec) logger.debug("Created workflow " + workflow_id + " successfully") workflows_by_region[region] = workflow_id except: # Clean up if projects_by_region: dxpy.executable_builder.delete_temporary_projects(projects_by_region.values()) raise return workflows_by_region, projects_by_region
python
def _build_underlying_workflows(enabled_regions, json_spec, args): """ Creates a workflow in a temporary project for each enabled region. Returns a tuple of dictionaries: workflow IDs by region and project IDs by region. The caller is responsible for destroying the projects if this method returns properly. """ projects_by_region = _create_temporary_projects(enabled_regions, args) workflows_by_region = {} try: for region, project in projects_by_region.items(): json_spec['project'] = project workflow_id = _build_regular_workflow(json_spec) logger.debug("Created workflow " + workflow_id + " successfully") workflows_by_region[region] = workflow_id except: # Clean up if projects_by_region: dxpy.executable_builder.delete_temporary_projects(projects_by_region.values()) raise return workflows_by_region, projects_by_region
[ "def", "_build_underlying_workflows", "(", "enabled_regions", ",", "json_spec", ",", "args", ")", ":", "projects_by_region", "=", "_create_temporary_projects", "(", "enabled_regions", ",", "args", ")", "workflows_by_region", "=", "{", "}", "try", ":", "for", "region", ",", "project", "in", "projects_by_region", ".", "items", "(", ")", ":", "json_spec", "[", "'project'", "]", "=", "project", "workflow_id", "=", "_build_regular_workflow", "(", "json_spec", ")", "logger", ".", "debug", "(", "\"Created workflow \"", "+", "workflow_id", "+", "\" successfully\"", ")", "workflows_by_region", "[", "region", "]", "=", "workflow_id", "except", ":", "# Clean up", "if", "projects_by_region", ":", "dxpy", ".", "executable_builder", ".", "delete_temporary_projects", "(", "projects_by_region", ".", "values", "(", ")", ")", "raise", "return", "workflows_by_region", ",", "projects_by_region" ]
Creates a workflow in a temporary project for each enabled region. Returns a tuple of dictionaries: workflow IDs by region and project IDs by region. The caller is responsible for destroying the projects if this method returns properly.
[ "Creates", "a", "workflow", "in", "a", "temporary", "project", "for", "each", "enabled", "region", ".", "Returns", "a", "tuple", "of", "dictionaries", ":", "workflow", "IDs", "by", "region", "and", "project", "IDs", "by", "region", ".", "The", "caller", "is", "responsible", "for", "destroying", "the", "projects", "if", "this", "method", "returns", "properly", "." ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/workflow_builder.py#L444-L465
train
Creates a workflow in a temporary project for each enabled region.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P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foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(612 - 564) + chr(3671 - 3560) + '\x35' + chr(0b110100), 0b1000), nzTpIcepk0o8('\x30' + chr(7407 - 7296) + '\x32' + '\x35' + '\x36', 57993 - 57985), nzTpIcepk0o8(chr(874 - 826) + chr(0b1101111) + '\x35' + '\x32', 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(2367 - 2317) + '\063' + chr(1668 - 1617), 0b1000), nzTpIcepk0o8(chr(48) + chr(10952 - 10841) + chr(0b100011 + 0o16) + chr(0b10101 + 0o37) + chr(48), 14614 - 14606), nzTpIcepk0o8(chr(48) + chr(111) + '\x37' + '\066', 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110001) + chr(0b0 + 0o60) + chr(0b110000), 28234 - 28226), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x32' + chr(0b110101) + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(794 - 746) + '\x6f' + chr(49) + chr(0b110010 + 0o0) + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + '\x31' + chr(1230 - 1181), 3606 - 3598), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(1835 - 1785) + '\x30' + chr(0b110011), 63995 - 63987), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x34' + '\x31', ord("\x08")), nzTpIcepk0o8('\x30' + chr(2247 - 2136) + chr(49) + chr(2170 - 2118) + '\x32', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b10100 + 0o36) + chr(0b1011 + 0o46) + chr(54), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + '\066' + chr(0b110101), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110010 + 0o4) + chr(0b110011), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1010 + 0o145) + chr(0b101001 + 0o12) + chr(1370 - 1318) + '\063', 0b1000), nzTpIcepk0o8('\x30' + '\157' + '\062' + chr(54), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(1331 - 1280) + chr(2359 - 2307) + '\x36', ord("\x08")), nzTpIcepk0o8(chr(837 - 789) + chr(0b1011110 + 0o21) + chr(0b11101 + 0o26) + '\065' + chr(0b1111 + 0o41), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b101010 + 0o10) + '\061' + '\065', 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110111) + '\x35', 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(49) + '\067' + '\060', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b100000 + 0o117) + chr(0b11100 + 0o25) + chr(1215 - 1167) + chr(1228 - 1173), 0o10), nzTpIcepk0o8(chr(0b10000 + 0o40) + '\157' + '\061' + chr(0b101 + 0o55) + chr(50), 0b1000), nzTpIcepk0o8(chr(0b101010 + 0o6) + '\157' + '\x31' + chr(0b110111) + chr(0b110010), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1010100 + 0o33) + '\062' + chr(55) + chr(1539 - 1486), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b110000 + 0o77) + '\x31' + '\x30' + chr(2776 - 2721), 8), nzTpIcepk0o8(chr(764 - 716) + chr(0b1101111) + chr(0b100101 + 0o16) + chr(0b110011) + chr(0b110011), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b100001 + 0o116) + chr(2046 - 1996) + chr(0b110110) + '\066', 0o10), nzTpIcepk0o8('\x30' + '\x6f' + '\062' + chr(0b110001) + chr(50), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x32' + '\x30' + chr(0b110110), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1100 + 0o143) + '\x31' + chr(52) + chr(0b101011 + 0o6), 35561 - 35553), nzTpIcepk0o8('\x30' + chr(8634 - 8523) + '\x37' + chr(52), 24843 - 24835), nzTpIcepk0o8('\x30' + chr(111) + chr(49) + '\x30' + chr(0b110 + 0o57), 0b1000), nzTpIcepk0o8(chr(783 - 735) + chr(0b1101111) + chr(0b101000 + 0o13) + chr(54) + chr(0b110111), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + '\x31' + '\060' + chr(0b110000 + 0o2), 0o10), nzTpIcepk0o8(chr(0b100011 + 0o15) + '\x6f' + chr(0b10111 + 0o33) + chr(0b110010) + chr(1125 - 1073), 0b1000), nzTpIcepk0o8(chr(1205 - 1157) + '\x6f' + chr(1834 - 1784) + chr(55), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(0b10110 + 0o41) + '\x37', 54145 - 54137)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(1954 - 1906) + chr(111) + chr(53) + chr(1105 - 1057), 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x02'), '\x64' + chr(0b1000001 + 0o44) + '\x63' + chr(111) + chr(0b1100100) + chr(101))(chr(0b1110101) + chr(0b1110100) + chr(0b101011 + 0o73) + '\x2d' + '\070') + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def RupyG6DtKN2R(V25k9xiAC80M, agxi8L4gDzUu, eemPYp2vtTSr): dCBtLYTQ0Yd6 = T1ajvE_oNNNw(V25k9xiAC80M, eemPYp2vtTSr) _apAe6PrWroF = {} try: for (SiTpDn8thAb3, mcjejRq_Q0_k) in roI3spqORKae(dCBtLYTQ0Yd6, roI3spqORKae(ES5oEprVxulp(b'u\xf1D\xd5%D\x08\x9dg\x7f\xdbH'), chr(0b1100100) + chr(101) + chr(0b1100011) + chr(0b1101111) + '\144' + chr(866 - 765))(chr(0b101001 + 0o114) + chr(0b1110100) + chr(102) + chr(0b1110 + 0o37) + chr(0b111000)))(): agxi8L4gDzUu[roI3spqORKae(ES5oEprVxulp(b'\\\xdcE\xf1\x05]4'), '\144' + chr(0b1100101) + '\x63' + '\157' + chr(4411 - 4311) + '\145')(chr(117) + chr(1492 - 1376) + chr(198 - 96) + chr(0b101101) + chr(0b111000))] = mcjejRq_Q0_k u5DydzxpYwfH = aEwTsxfT9joa(agxi8L4gDzUu) roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'K\xef\x13\xc1YZ/\x9f\x01d\xc6{'), chr(100) + chr(7048 - 6947) + chr(8458 - 8359) + chr(11581 - 11470) + '\144' + chr(0b1100101))(chr(0b1000011 + 0o62) + '\x74' + '\x66' + chr(0b101101) + '\x38'))(roI3spqORKae(ES5oEprVxulp(b'o\xdcO\xfa\x14[$\x89#f\xf1J\x04\xe2ZD\xc3'), chr(0b1100100) + chr(0b1100101) + chr(99) + chr(111) + chr(100) + chr(0b1100101))(chr(5415 - 5298) + chr(0b10001 + 0o143) + '\146' + chr(1927 - 1882) + chr(0b11011 + 0o35)) + u5DydzxpYwfH + roI3spqORKae(ES5oEprVxulp(b'\x0c\xdd_\xf8\x03[3\xda2|\xefM\x1b'), chr(9433 - 9333) + chr(0b1100101) + chr(6600 - 6501) + chr(0b1101111) + chr(0b1000000 + 0o44) + chr(101))('\165' + chr(116) + chr(7520 - 7418) + '\x2d' + chr(0b11101 + 0o33))) _apAe6PrWroF[SiTpDn8thAb3] = u5DydzxpYwfH except UtiWT6f6p9yZ: if dCBtLYTQ0Yd6: roI3spqORKae(SsdNdRxXOwsF.executable_builder, roI3spqORKae(ES5oEprVxulp(b'H\xcbF\xfe\x14[\x1f\xdd1d\xf3N\x10\xefGJ\xbcf\x94\x87\xe7X\x1b3!'), chr(100) + '\x65' + chr(0b10 + 0o141) + '\157' + chr(100) + chr(0b1100100 + 0o1))(chr(0b1110101) + chr(2257 - 2141) + chr(0b1100110) + chr(0b11110 + 0o17) + chr(56)))(roI3spqORKae(dCBtLYTQ0Yd6, roI3spqORKae(ES5oEprVxulp(b'o\xddE\xff:t\x08\x9f,0\xd7Y'), chr(0b1010001 + 0o23) + chr(0b1100101) + '\x63' + chr(111) + '\x64' + chr(101))('\165' + chr(2572 - 2456) + chr(0b101010 + 0o74) + chr(0b101101) + chr(1957 - 1901)))()) raise return (_apAe6PrWroF, dCBtLYTQ0Yd6)
dnanexus/dx-toolkit
src/python/dxpy/workflow_builder.py
_build_global_workflow
def _build_global_workflow(json_spec, args): """ Creates a workflow in a temporary project for each enabled region and builds a global workflow on the platform based on these workflows. """ # First determine in which regions the global workflow needs to be available enabled_regions = _get_validated_enabled_regions(json_spec, args.region) # Verify all the stages are also enabled in these regions # TODO: Add support for dx building multi-region global workflows with applets _assert_executable_regions_match(enabled_regions, json_spec) workflows_by_region, projects_by_region = {}, {} # IDs by region try: # prepare "regionalOptions" field for the globalworkflow/new input workflows_by_region, projects_by_region = \ _build_underlying_workflows(enabled_regions, json_spec, args) regional_options = {} for region, workflow_id in workflows_by_region.items(): regional_options[region] = {'workflow': workflow_id} json_spec.update({'regionalOptions': regional_options}) # leave only fields that are actually used to build the workflow gwf_provided_keys = GLOBALWF_SUPPORTED_KEYS.intersection(set(json_spec.keys())) gwf_final_json = dict((k, v) for k, v in json_spec.items() if k in gwf_provided_keys) # we don't want to print the whole documentation to the screen so we'll remove these fields print_spec = copy.deepcopy(gwf_final_json) if "description" in gwf_final_json: del print_spec["description"] if "developerNotes" in gwf_final_json: del print_spec["developerNotes"] logger.info("Will create global workflow with spec: {}".format(json.dumps(print_spec))) # Create a new global workflow version on the platform global_workflow_id = dxpy.api.global_workflow_new(gwf_final_json)["id"] logger.info("Uploaded global workflow {n}/{v} successfully".format(n=gwf_final_json["name"], v=gwf_final_json["version"])) logger.info("You can publish this workflow with:") logger.info(" dx publish {n}/{v}".format(n=gwf_final_json["name"], v=gwf_final_json["version"])) finally: # Clean up if projects_by_region: dxpy.executable_builder.delete_temporary_projects(projects_by_region.values()) # Set any additional fields on the created workflow try: _set_categories_on_workflow(global_workflow_id, gwf_final_json.get("categories", [])) except: logger.warn( "The workflow {n}/{v} was created but setting categories failed".format(n=gwf_final_json['name'], v=gwf_final_json['version'])) raise return global_workflow_id
python
def _build_global_workflow(json_spec, args): """ Creates a workflow in a temporary project for each enabled region and builds a global workflow on the platform based on these workflows. """ # First determine in which regions the global workflow needs to be available enabled_regions = _get_validated_enabled_regions(json_spec, args.region) # Verify all the stages are also enabled in these regions # TODO: Add support for dx building multi-region global workflows with applets _assert_executable_regions_match(enabled_regions, json_spec) workflows_by_region, projects_by_region = {}, {} # IDs by region try: # prepare "regionalOptions" field for the globalworkflow/new input workflows_by_region, projects_by_region = \ _build_underlying_workflows(enabled_regions, json_spec, args) regional_options = {} for region, workflow_id in workflows_by_region.items(): regional_options[region] = {'workflow': workflow_id} json_spec.update({'regionalOptions': regional_options}) # leave only fields that are actually used to build the workflow gwf_provided_keys = GLOBALWF_SUPPORTED_KEYS.intersection(set(json_spec.keys())) gwf_final_json = dict((k, v) for k, v in json_spec.items() if k in gwf_provided_keys) # we don't want to print the whole documentation to the screen so we'll remove these fields print_spec = copy.deepcopy(gwf_final_json) if "description" in gwf_final_json: del print_spec["description"] if "developerNotes" in gwf_final_json: del print_spec["developerNotes"] logger.info("Will create global workflow with spec: {}".format(json.dumps(print_spec))) # Create a new global workflow version on the platform global_workflow_id = dxpy.api.global_workflow_new(gwf_final_json)["id"] logger.info("Uploaded global workflow {n}/{v} successfully".format(n=gwf_final_json["name"], v=gwf_final_json["version"])) logger.info("You can publish this workflow with:") logger.info(" dx publish {n}/{v}".format(n=gwf_final_json["name"], v=gwf_final_json["version"])) finally: # Clean up if projects_by_region: dxpy.executable_builder.delete_temporary_projects(projects_by_region.values()) # Set any additional fields on the created workflow try: _set_categories_on_workflow(global_workflow_id, gwf_final_json.get("categories", [])) except: logger.warn( "The workflow {n}/{v} was created but setting categories failed".format(n=gwf_final_json['name'], v=gwf_final_json['version'])) raise return global_workflow_id
[ "def", "_build_global_workflow", "(", "json_spec", ",", "args", ")", ":", "# First determine in which regions the global workflow needs to be available", "enabled_regions", "=", "_get_validated_enabled_regions", "(", "json_spec", ",", "args", ".", "region", ")", "# Verify all the stages are also enabled in these regions", "# TODO: Add support for dx building multi-region global workflows with applets", "_assert_executable_regions_match", "(", "enabled_regions", ",", "json_spec", ")", "workflows_by_region", ",", "projects_by_region", "=", "{", "}", ",", "{", "}", "# IDs by region", "try", ":", "# prepare \"regionalOptions\" field for the globalworkflow/new input", "workflows_by_region", ",", "projects_by_region", "=", "_build_underlying_workflows", "(", "enabled_regions", ",", "json_spec", ",", "args", ")", "regional_options", "=", "{", "}", "for", "region", ",", "workflow_id", "in", "workflows_by_region", ".", "items", "(", ")", ":", "regional_options", "[", "region", "]", "=", "{", "'workflow'", ":", "workflow_id", "}", "json_spec", ".", "update", "(", "{", "'regionalOptions'", ":", "regional_options", "}", ")", "# leave only fields that are actually used to build the workflow", "gwf_provided_keys", "=", "GLOBALWF_SUPPORTED_KEYS", ".", "intersection", "(", "set", "(", "json_spec", ".", "keys", "(", ")", ")", ")", "gwf_final_json", "=", "dict", "(", "(", "k", ",", "v", ")", "for", "k", ",", "v", "in", "json_spec", ".", "items", "(", ")", "if", "k", "in", "gwf_provided_keys", ")", "# we don't want to print the whole documentation to the screen so we'll remove these fields", "print_spec", "=", "copy", ".", "deepcopy", "(", "gwf_final_json", ")", "if", "\"description\"", "in", "gwf_final_json", ":", "del", "print_spec", "[", "\"description\"", "]", "if", "\"developerNotes\"", "in", "gwf_final_json", ":", "del", "print_spec", "[", "\"developerNotes\"", "]", "logger", ".", "info", "(", "\"Will create global workflow with spec: {}\"", ".", "format", "(", "json", ".", "dumps", "(", "print_spec", ")", ")", ")", "# Create a new global workflow version on the platform", "global_workflow_id", "=", "dxpy", ".", "api", ".", "global_workflow_new", "(", "gwf_final_json", ")", "[", "\"id\"", "]", "logger", ".", "info", "(", "\"Uploaded global workflow {n}/{v} successfully\"", ".", "format", "(", "n", "=", "gwf_final_json", "[", "\"name\"", "]", ",", "v", "=", "gwf_final_json", "[", "\"version\"", "]", ")", ")", "logger", ".", "info", "(", "\"You can publish this workflow with:\"", ")", "logger", ".", "info", "(", "\" dx publish {n}/{v}\"", ".", "format", "(", "n", "=", "gwf_final_json", "[", "\"name\"", "]", ",", "v", "=", "gwf_final_json", "[", "\"version\"", "]", ")", ")", "finally", ":", "# Clean up", "if", "projects_by_region", ":", "dxpy", ".", "executable_builder", ".", "delete_temporary_projects", "(", "projects_by_region", ".", "values", "(", ")", ")", "# Set any additional fields on the created workflow", "try", ":", "_set_categories_on_workflow", "(", "global_workflow_id", ",", "gwf_final_json", ".", "get", "(", "\"categories\"", ",", "[", "]", ")", ")", "except", ":", "logger", ".", "warn", "(", "\"The workflow {n}/{v} was created but setting categories failed\"", ".", "format", "(", "n", "=", "gwf_final_json", "[", "'name'", "]", ",", "v", "=", "gwf_final_json", "[", "'version'", "]", ")", ")", "raise", "return", "global_workflow_id" ]
Creates a workflow in a temporary project for each enabled region and builds a global workflow on the platform based on these workflows.
[ "Creates", "a", "workflow", "in", "a", "temporary", "project", "for", "each", "enabled", "region", "and", "builds", "a", "global", "workflow", "on", "the", "platform", "based", "on", "these", "workflows", "." ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/workflow_builder.py#L468-L524
train
Builds a global workflow for each enabled region and creates a new global workflow on the platform based on these workflows.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8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bne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(266 - 218) + '\157' + chr(0b100001 + 0o23) + chr(0b110101), 48239 - 48231), nzTpIcepk0o8(chr(48) + '\157' + chr(2013 - 1963) + chr(53) + '\x33', 0b1000), nzTpIcepk0o8('\060' + chr(0b1000011 + 0o54) + '\061' + chr(0b1001 + 0o47) + '\062', 0o10), nzTpIcepk0o8(chr(48) + chr(0b110011 + 0o74) + chr(49) + '\x32' + chr(0b100100 + 0o17), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b1010 + 0o47) + '\061' + '\x31', 62184 - 62176), nzTpIcepk0o8(chr(0b110000) + chr(8877 - 8766) + chr(1916 - 1866) + '\063' + '\067', 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(51) + chr(0b1000 + 0o52) + chr(52), 0b1000), nzTpIcepk0o8('\x30' + chr(0b111100 + 0o63) + chr(1822 - 1773) + chr(0b110010) + chr(1381 - 1332), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b111111 + 0o60) + chr(0b10000 + 0o42) + '\x37' + chr(49), 18490 - 18482), nzTpIcepk0o8(chr(0b110000) + chr(4184 - 4073) + chr(2458 - 2403) + '\x31', 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(50) + chr(50) + '\x36', ord("\x08")), nzTpIcepk0o8(chr(356 - 308) + '\157' + chr(0b110000 + 0o2) + chr(0b110010), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(50) + chr(679 - 629) + '\x36', 8), nzTpIcepk0o8('\060' + '\157' + '\x32' + '\064' + '\061', 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(1073 - 1022) + chr(0b110001 + 0o0), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + '\067' + chr(50), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110001) + chr(2728 - 2673) + chr(0b110111), 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(0b1111 + 0o42) + '\x30' + chr(48), 61956 - 61948), nzTpIcepk0o8(chr(0b110000) + chr(0b111001 + 0o66) + chr(0b11011 + 0o27) + chr(0b100000 + 0o26) + chr(54), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(2748 - 2637) + chr(49) + '\x36' + chr(0b1011 + 0o47), ord("\x08")), nzTpIcepk0o8(chr(0b10110 + 0o32) + '\157' + chr(155 - 105) + '\060' + '\063', 4779 - 4771), nzTpIcepk0o8(chr(0b100110 + 0o12) + chr(0b10000 + 0o137) + chr(1667 - 1618) + chr(2792 - 2739) + chr(49), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(1817 - 1768) + chr(1007 - 953), 44976 - 44968), nzTpIcepk0o8('\x30' + chr(0b1101001 + 0o6) + '\064' + chr(0b100011 + 0o24), 0o10), nzTpIcepk0o8('\x30' + chr(10680 - 10569) + chr(0b10100 + 0o35) + chr(0b100100 + 0o17) + '\067', 63353 - 63345), nzTpIcepk0o8(chr(0b11 + 0o55) + chr(0b11100 + 0o123) + chr(0b110111) + chr(52), ord("\x08")), nzTpIcepk0o8(chr(0b101 + 0o53) + '\x6f' + '\x32' + chr(49) + '\x35', 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(51) + '\x35' + chr(1305 - 1253), 0b1000), nzTpIcepk0o8(chr(0b10010 + 0o36) + chr(8379 - 8268) + '\x33' + chr(0b110001) + chr(53), 51805 - 51797), nzTpIcepk0o8('\060' + '\157' + '\x31' + chr(0b101010 + 0o12) + chr(0b101001 + 0o16), 58166 - 58158), nzTpIcepk0o8(chr(48) + chr(419 - 308) + chr(0b101001 + 0o10) + chr(876 - 826) + chr(0b100001 + 0o20), 8), nzTpIcepk0o8(chr(1429 - 1381) + '\x6f' + chr(1692 - 1639), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x36' + '\064', 59798 - 59790), nzTpIcepk0o8(chr(0b101 + 0o53) + '\157' + chr(2492 - 2442) + chr(51) + chr(1312 - 1263), 19550 - 19542), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110011) + chr(0b101111 + 0o4) + chr(51), 0b1000), nzTpIcepk0o8('\060' + chr(1751 - 1640) + '\x33' + '\x35' + chr(49), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101 + 0o142) + chr(0b110010) + chr(49) + '\x35', 8), nzTpIcepk0o8(chr(1516 - 1468) + chr(111) + chr(1181 - 1130) + '\063' + chr(0b10111 + 0o31), 0o10), nzTpIcepk0o8(chr(316 - 268) + chr(0b111001 + 0o66) + chr(2244 - 2193) + chr(1893 - 1844) + '\x33', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1110 + 0o141) + chr(0b110001) + chr(51) + '\x36', 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + chr(0b10 + 0o155) + chr(1362 - 1309) + '\060', 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x0b'), '\x64' + chr(0b1100100 + 0o1) + chr(99) + chr(0b1101111) + chr(100) + '\x65')(chr(11096 - 10979) + chr(116) + chr(0b1100110) + '\x2d' + '\070') + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def T2l5CRHbBGM2(agxi8L4gDzUu, eemPYp2vtTSr): V25k9xiAC80M = lcpTxxrMqcYu(agxi8L4gDzUu, eemPYp2vtTSr.SiTpDn8thAb3) O1X7z0RsQ9O6(V25k9xiAC80M, agxi8L4gDzUu) (_apAe6PrWroF, dCBtLYTQ0Yd6) = ({}, {}) try: (_apAe6PrWroF, dCBtLYTQ0Yd6) = RupyG6DtKN2R(V25k9xiAC80M, agxi8L4gDzUu, eemPYp2vtTSr) Fjv0O_qYoNO7 = {} for (SiTpDn8thAb3, u5DydzxpYwfH) in roI3spqORKae(_apAe6PrWroF, roI3spqORKae(ES5oEprVxulp(b'|\xf4,\x1d\x0c\xe5\x9ce\x8aO\xce{'), '\144' + '\x65' + '\143' + chr(0b11011 + 0o124) + '\144' + chr(0b1100101))(chr(0b1110101) + '\x74' + '\x66' + chr(104 - 59) + '\x38'))(): Fjv0O_qYoNO7[SiTpDn8thAb3] = {roI3spqORKae(ES5oEprVxulp(b'R\xc408/\xf3\xbb&'), '\x64' + '\x65' + chr(0b110 + 0o135) + chr(5998 - 5887) + '\144' + '\x65')(chr(0b1110101) + chr(0b1110100) + '\x66' + '\055' + chr(0b110110 + 0o2)): u5DydzxpYwfH} roI3spqORKae(agxi8L4gDzUu, roI3spqORKae(ES5oEprVxulp(b'o\xf4)a\x00\xc6\x96`\xda\\\xe7|'), '\144' + '\145' + chr(0b101000 + 0o73) + chr(12255 - 12144) + chr(100) + chr(0b101011 + 0o72))('\x75' + chr(9098 - 8982) + '\x66' + chr(746 - 701) + chr(0b110100 + 0o4)))({roI3spqORKae(ES5oEprVxulp(b'W\xce%:&\xf1\xb5=\xf6I\xe2{\xf9\xcfj'), '\x64' + chr(0b11111 + 0o106) + '\143' + '\157' + chr(0b1100100) + '\145')(chr(117) + chr(0b1110100) + chr(6283 - 6181) + chr(0b101101) + '\x38'): Fjv0O_qYoNO7}) jXmvREobHZcH = h0ePrGaiJcg9.intersection(Bvi71nNyvlqO(agxi8L4gDzUu.keys())) XgUPZ9Wqv3R3 = znjnJWK64FDT(((B6UAF1zReOyJ, r7AA1pbLjb44) for (B6UAF1zReOyJ, r7AA1pbLjb44) in agxi8L4gDzUu.Y_nNEzH43vXi() if B6UAF1zReOyJ in jXmvREobHZcH)) Op8KbEOHF1PE = aZTCj4v5QdfO.deepcopy(XgUPZ9Wqv3R3) if roI3spqORKae(ES5oEprVxulp(b'A\xce10;\xf6\xa4%\xd0V\xf8'), chr(8910 - 8810) + chr(2849 - 2748) + chr(4644 - 4545) + chr(0b1101111) + chr(1061 - 961) + chr(0b1010101 + 0o20))('\x75' + '\x74' + chr(4257 - 4155) + chr(0b101101) + chr(0b111000)) in XgUPZ9Wqv3R3: del Op8KbEOHF1PE[roI3spqORKae(ES5oEprVxulp(b'A\xce10;\xf6\xa4%\xd0V\xf8'), chr(0b1100100) + chr(0b1100101) + chr(99) + chr(0b1101111) + '\x64' + '\145')(chr(0b111000 + 0o75) + chr(0b1110100) + '\x66' + '\x2d' + '\x38')] if roI3spqORKae(ES5oEprVxulp(b'A\xce46%\xf0\xa44\xcbw\xf9f\xf3\xd2'), chr(0b1100000 + 0o4) + chr(0b1100101) + '\x63' + chr(111) + chr(100) + chr(0b11100 + 0o111))('\165' + chr(0b101010 + 0o112) + chr(102) + '\x2d' + chr(1458 - 1402)) in XgUPZ9Wqv3R3: del Op8KbEOHF1PE[roI3spqORKae(ES5oEprVxulp(b'A\xce46%\xf0\xa44\xcbw\xf9f\xf3\xd2'), chr(0b10101 + 0o117) + chr(0b100000 + 0o105) + chr(6930 - 6831) + chr(0b1101111) + '\x64' + chr(101))('\165' + chr(0b1111 + 0o145) + chr(0b1100 + 0o132) + '\x2d' + chr(0b101001 + 0o17))] roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'L\xd3\x0c+p\xd3\xa3\x0e\x88^\xe4]'), chr(100) + '\x65' + chr(3936 - 3837) + chr(111) + chr(0b1100100) + '\x65')(chr(0b1100011 + 0o22) + '\x74' + chr(102) + chr(0b101101) + chr(1551 - 1495)))(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'r\xc2.?i\xfc\xa64\xd8M\xf32\xf1\xcdvX\x1e,\x96\x05\xec\x1beA3S\xfa\xcc\xba\x0e%m\x14\xea\xab\x8c\xee\xe2\xeb%X'), '\x64' + chr(0b1100101) + chr(99) + '\x6f' + '\144' + chr(0b1100101))('\x75' + '\164' + chr(9063 - 8961) + chr(45) + '\070'), roI3spqORKae(ES5oEprVxulp(b'T\x98q\x18\x0e\xac\xb2>\xe8f\xd5X'), chr(5069 - 4969) + '\x65' + '\x63' + chr(10259 - 10148) + '\144' + chr(8320 - 8219))('\x75' + '\x74' + chr(0b1010001 + 0o25) + chr(68 - 23) + '\x38'))(roI3spqORKae(LNUKEwZDIbyb, roI3spqORKae(ES5oEprVxulp(b'\x7f\xc1%?$\xf2\xec$\xdcW\xfdQ'), chr(100) + '\x65' + chr(2419 - 2320) + chr(0b111010 + 0o65) + chr(0b1011010 + 0o12) + chr(0b110001 + 0o64))(chr(117) + chr(0b1011100 + 0o30) + chr(102) + chr(45) + chr(0b111000)))(Op8KbEOHF1PE))) EQDyoff03KAB = SsdNdRxXOwsF.api.global_workflow_new(XgUPZ9Wqv3R3)[roI3spqORKae(ES5oEprVxulp(b'L\xcf'), chr(0b11111 + 0o105) + chr(101) + chr(6437 - 6338) + chr(111) + chr(100) + '\x65')(chr(0b1110101) + chr(0b100000 + 0o124) + chr(3548 - 3446) + chr(45) + '\070')] roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'L\xd3\x0c+p\xd3\xa3\x0e\x88^\xe4]'), chr(0b1100100) + '\x65' + '\x63' + '\157' + '\144' + '\x65')(chr(0b1110101) + '\164' + chr(6558 - 6456) + chr(0b1100 + 0o41) + chr(56)))(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b"p\xdb.<(\xfb\xb15\x99^\xfa}\xf4\xc0u\x1a\x08/\xc4\x19\xe5\x05aP\x7fG\xe3\x91\xe2\x1c'x\x14\xea\xae\x8a\xee\xbd\xb8-C\xde.?0"), chr(0b11110 + 0o106) + chr(0b1100010 + 0o3) + chr(3470 - 3371) + chr(0b10010 + 0o135) + chr(0b1100100) + '\145')('\165' + chr(11092 - 10976) + '\146' + chr(0b100100 + 0o11) + '\x38'), roI3spqORKae(ES5oEprVxulp(b'T\x98q\x18\x0e\xac\xb2>\xe8f\xd5X'), '\144' + chr(101) + '\143' + chr(111) + chr(0b110110 + 0o56) + chr(0b111110 + 0o47))('\x75' + chr(0b1110100) + chr(102) + '\055' + chr(0b111000)))(n=XgUPZ9Wqv3R3[roI3spqORKae(ES5oEprVxulp(b'K\xca/6'), chr(8697 - 8597) + '\145' + chr(99) + chr(0b1101111) + chr(100) + chr(0b1100101))(chr(0b111111 + 0o66) + chr(0b1110001 + 0o3) + '\146' + chr(1380 - 1335) + chr(0b111000))], v=XgUPZ9Wqv3R3[roI3spqORKae(ES5oEprVxulp(b'S\xce0 \xf0\xba'), chr(0b1010100 + 0o20) + chr(101) + chr(0b1100011) + chr(111) + '\144' + '\145')(chr(117) + '\164' + chr(0b111000 + 0o56) + chr(45) + '\070')])) roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'L\xd3\x0c+p\xd3\xa3\x0e\x88^\xe4]'), chr(0b1100100) + chr(9556 - 9455) + chr(0b1000110 + 0o35) + chr(111) + chr(3648 - 3548) + '\145')(chr(0b1011001 + 0o34) + '\164' + '\x66' + '\x2d' + chr(1904 - 1848)))(roI3spqORKae(ES5oEprVxulp(b'|\xc47s*\xfe\xbaq\xc9L\xf4~\xff\xd2q\x1a\x0b(\xdf\x01\xa3\x1eaU4Z\xe1\x83\xbaG&l@\xf1\xe1'), chr(100) + '\145' + chr(0b1100011) + chr(6993 - 6882) + chr(0b111010 + 0o52) + chr(101))(chr(11672 - 11555) + chr(116) + '\x66' + chr(504 - 459) + chr(0b101010 + 0o16))) roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'L\xd3\x0c+p\xd3\xa3\x0e\x88^\xe4]'), chr(100) + chr(0b101001 + 0o74) + '\x63' + chr(111) + chr(8458 - 8358) + chr(0b1100101))(chr(117) + '\x74' + chr(0b1100110) + '\055' + chr(1672 - 1616)))(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\x05\x8b&+i\xef\xa13\xd5P\xe5z\xb6\xdawGP;\xc0\x0f'), chr(100) + chr(0b11000 + 0o115) + chr(1272 - 1173) + '\157' + '\x64' + '\x65')(chr(4032 - 3915) + chr(0b1110100) + '\x66' + chr(155 - 110) + chr(0b111000)), roI3spqORKae(ES5oEprVxulp(b'T\x98q\x18\x0e\xac\xb2>\xe8f\xd5X'), chr(0b1001000 + 0o34) + chr(0b100110 + 0o77) + chr(3948 - 3849) + chr(0b10 + 0o155) + '\144' + chr(101))('\165' + chr(202 - 86) + '\x66' + chr(0b10110 + 0o27) + '\x38'))(n=XgUPZ9Wqv3R3[roI3spqORKae(ES5oEprVxulp(b'K\xca/6'), chr(100) + '\x65' + chr(0b1 + 0o142) + '\x6f' + chr(0b1100100) + chr(0b1011110 + 0o7))(chr(0b1100100 + 0o21) + chr(116) + chr(0b1111 + 0o127) + chr(1559 - 1514) + chr(0b111000))], v=XgUPZ9Wqv3R3[roI3spqORKae(ES5oEprVxulp(b'S\xce0 \xf0\xba'), chr(100) + chr(0b1100101) + '\143' + chr(10312 - 10201) + chr(0b100111 + 0o75) + '\145')('\165' + '\164' + chr(0b1100110) + chr(228 - 183) + chr(0b100000 + 0o30))])) finally: if dCBtLYTQ0Yd6: roI3spqORKae(SsdNdRxXOwsF.executable_builder, roI3spqORKae(ES5oEprVxulp(b'A\xce.6=\xfa\x8b%\xdcT\xe6}\xe4\xc0kC 0\xc4\x1d\xe9\x0cmS,'), chr(100) + '\x65' + chr(0b100000 + 0o103) + chr(0b10001 + 0o136) + chr(3997 - 3897) + '\145')('\x75' + '\x74' + chr(0b1100110) + chr(45) + chr(56)))(roI3spqORKae(dCBtLYTQ0Yd6, roI3spqORKae(ES5oEprVxulp(b'f\xd8-7\x13\xd5\x9cg\xc1\x00\xc2j'), chr(0b11101 + 0o107) + chr(101) + chr(0b1100011) + chr(0b1101111) + chr(6898 - 6798) + '\145')(chr(0b110111 + 0o76) + '\x74' + chr(102) + chr(0b11100 + 0o21) + chr(56)))()) try: ghcPaXUYPQef(EQDyoff03KAB, roI3spqORKae(XgUPZ9Wqv3R3, roI3spqORKae(ES5oEprVxulp(b'b\xfe\t6=\xea\xe0)\xd8~\xe5X'), chr(0b1100100) + '\x65' + '\143' + chr(111) + chr(100) + '\145')(chr(0b1101001 + 0o14) + chr(7488 - 7372) + chr(102) + '\055' + chr(56)))(roI3spqORKae(ES5oEprVxulp(b'F\xca66.\xf0\xa68\xdcJ'), chr(0b1100100) + chr(1851 - 1750) + '\143' + '\157' + '\144' + chr(0b1100101 + 0o0))(chr(0b1110101) + chr(9564 - 9448) + chr(102) + chr(0b10101 + 0o30) + '\x38'), [])) except UtiWT6f6p9yZ: roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'V\xe1\x13\x05\x16\xd7\xa5\x02\x80_\xf1h'), '\144' + chr(101) + '\143' + '\157' + chr(100) + '\145')('\165' + '\164' + chr(0b1100110) + chr(246 - 201) + chr(56)))(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b"q\xc3's>\xf0\xa6:\xdfU\xf9e\xb6\xdawGP;\xc0\x0f\xa3\x1eoT\x7f_\xff\x89\xac\x134a\x14\xfb\xae\x9d\xad\xab\xae*Q\xc2,4i\xfc\xb5%\xdc^\xf9`\xff\xc4j\x1a\x19!\xdf\x1e\xe6\r"), chr(3052 - 2952) + chr(0b1000110 + 0o37) + '\143' + chr(111) + chr(100) + chr(0b1100101))(chr(117) + '\164' + chr(0b111011 + 0o53) + chr(0b1001 + 0o44) + chr(2644 - 2588)), roI3spqORKae(ES5oEprVxulp(b'T\x98q\x18\x0e\xac\xb2>\xe8f\xd5X'), chr(0b1100100) + chr(101) + chr(1353 - 1254) + '\x6f' + chr(100) + '\x65')('\165' + chr(116) + chr(0b1100110) + chr(0b101101) + '\070'))(n=XgUPZ9Wqv3R3[roI3spqORKae(ES5oEprVxulp(b'K\xca/6'), '\144' + chr(0b1100101) + chr(0b1100011) + '\157' + chr(100) + '\145')('\x75' + chr(0b1110100) + chr(9618 - 9516) + '\x2d' + '\070')], v=XgUPZ9Wqv3R3[roI3spqORKae(ES5oEprVxulp(b'S\xce0 \xf0\xba'), chr(0b1100100) + '\x65' + chr(99) + '\x6f' + chr(2232 - 2132) + chr(7639 - 7538))('\x75' + chr(10174 - 10058) + '\146' + chr(0b101100 + 0o1) + chr(0b1001 + 0o57))])) raise return EQDyoff03KAB
dnanexus/dx-toolkit
src/python/dxpy/workflow_builder.py
_build_or_update_workflow
def _build_or_update_workflow(json_spec, args): """ Creates or updates a workflow on the platform. Returns the workflow ID, or None if the workflow cannot be created. """ try: if args.mode == 'workflow': json_spec = _get_validated_json(json_spec, args) workflow_id = _build_regular_workflow(json_spec) elif args.mode == 'globalworkflow': # Verify if the global workflow already exists and if the user has developer rights to it # If the global workflow name doesn't exist, the user is free to build it # If the name does exist two things can be done: # * either update the requested version, if this version already exists # * or create the version if it doesn't exist existing_workflow = dxpy.executable_builder.verify_developer_rights('globalworkflow-' + json_spec['name']) if existing_workflow and _version_exists(json_spec, existing_workflow.name, existing_workflow.version): workflow_id = _update_global_workflow(json_spec, args, existing_workflow.id) else: json_spec = _get_validated_json(json_spec, args) workflow_id = _build_global_workflow(json_spec, args) else: raise WorkflowBuilderException("Unrecognized workflow type: {}".format(args.mode)) except dxpy.exceptions.DXAPIError as e: raise e return workflow_id
python
def _build_or_update_workflow(json_spec, args): """ Creates or updates a workflow on the platform. Returns the workflow ID, or None if the workflow cannot be created. """ try: if args.mode == 'workflow': json_spec = _get_validated_json(json_spec, args) workflow_id = _build_regular_workflow(json_spec) elif args.mode == 'globalworkflow': # Verify if the global workflow already exists and if the user has developer rights to it # If the global workflow name doesn't exist, the user is free to build it # If the name does exist two things can be done: # * either update the requested version, if this version already exists # * or create the version if it doesn't exist existing_workflow = dxpy.executable_builder.verify_developer_rights('globalworkflow-' + json_spec['name']) if existing_workflow and _version_exists(json_spec, existing_workflow.name, existing_workflow.version): workflow_id = _update_global_workflow(json_spec, args, existing_workflow.id) else: json_spec = _get_validated_json(json_spec, args) workflow_id = _build_global_workflow(json_spec, args) else: raise WorkflowBuilderException("Unrecognized workflow type: {}".format(args.mode)) except dxpy.exceptions.DXAPIError as e: raise e return workflow_id
[ "def", "_build_or_update_workflow", "(", "json_spec", ",", "args", ")", ":", "try", ":", "if", "args", ".", "mode", "==", "'workflow'", ":", "json_spec", "=", "_get_validated_json", "(", "json_spec", ",", "args", ")", "workflow_id", "=", "_build_regular_workflow", "(", "json_spec", ")", "elif", "args", ".", "mode", "==", "'globalworkflow'", ":", "# Verify if the global workflow already exists and if the user has developer rights to it", "# If the global workflow name doesn't exist, the user is free to build it", "# If the name does exist two things can be done:", "# * either update the requested version, if this version already exists", "# * or create the version if it doesn't exist", "existing_workflow", "=", "dxpy", ".", "executable_builder", ".", "verify_developer_rights", "(", "'globalworkflow-'", "+", "json_spec", "[", "'name'", "]", ")", "if", "existing_workflow", "and", "_version_exists", "(", "json_spec", ",", "existing_workflow", ".", "name", ",", "existing_workflow", ".", "version", ")", ":", "workflow_id", "=", "_update_global_workflow", "(", "json_spec", ",", "args", ",", "existing_workflow", ".", "id", ")", "else", ":", "json_spec", "=", "_get_validated_json", "(", "json_spec", ",", "args", ")", "workflow_id", "=", "_build_global_workflow", "(", "json_spec", ",", "args", ")", "else", ":", "raise", "WorkflowBuilderException", "(", "\"Unrecognized workflow type: {}\"", ".", "format", "(", "args", ".", "mode", ")", ")", "except", "dxpy", ".", "exceptions", ".", "DXAPIError", "as", "e", ":", "raise", "e", "return", "workflow_id" ]
Creates or updates a workflow on the platform. Returns the workflow ID, or None if the workflow cannot be created.
[ "Creates", "or", "updates", "a", "workflow", "on", "the", "platform", ".", "Returns", "the", "workflow", "ID", "or", "None", "if", "the", "workflow", "cannot", "be", "created", "." ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/workflow_builder.py#L571-L598
train
Builds or updates a workflow on the platform.
G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SQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\060' + '\x6f' + '\x32' + '\062', 45287 - 45279), nzTpIcepk0o8(chr(0b110000) + chr(0b1011100 + 0o23) + chr(0b110011) + chr(51) + chr(0b10111 + 0o36), 21707 - 21699), nzTpIcepk0o8(chr(0b110000) + chr(0b1000 + 0o147) + chr(51) + chr(48), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b100001 + 0o116) + chr(347 - 297) + '\x31' + chr(2056 - 2008), 57854 - 57846), nzTpIcepk0o8(chr(0b110000) + chr(0b100001 + 0o116) + '\x37' + chr(54), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b100100 + 0o113) + chr(1001 - 951) + '\066' + chr(933 - 878), 50156 - 50148), nzTpIcepk0o8(chr(48) + chr(0b0 + 0o157) + '\062' + '\x35' + chr(0b101010 + 0o10), 0o10), nzTpIcepk0o8('\060' + '\x6f' + '\062' + chr(1341 - 1290) + chr(0b100001 + 0o23), 0o10), nzTpIcepk0o8(chr(1574 - 1526) + chr(0b1001111 + 0o40) + chr(0b110011) + chr(0b110110) + chr(2163 - 2113), 0o10), nzTpIcepk0o8(chr(0b10 + 0o56) + chr(153 - 42) + chr(0b110011) + chr(51) + '\x33', 20230 - 20222), nzTpIcepk0o8(chr(0b101111 + 0o1) + '\x6f' + '\x33' + chr(1840 - 1788) + chr(51), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + '\066' + chr(0b10100 + 0o43), 18797 - 18789), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(2053 - 2000) + chr(0b100001 + 0o20), 2069 - 2061), nzTpIcepk0o8(chr(760 - 712) + chr(111) + '\x32' + '\x34', 0o10), nzTpIcepk0o8(chr(72 - 24) + chr(0b1101111) + chr(0b1 + 0o62) + chr(0b110100) + '\x37', 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(830 - 779) + chr(0b11010 + 0o31) + chr(0b101111 + 0o5), ord("\x08")), nzTpIcepk0o8(chr(126 - 78) + '\x6f' + chr(50) + chr(0b110001) + chr(0b110100), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110001) + chr(0b110011) + chr(791 - 742), 0b1000), nzTpIcepk0o8(chr(2211 - 2163) + chr(0b1 + 0o156) + '\063' + chr(1041 - 989) + chr(50), 0o10), nzTpIcepk0o8(chr(0b11100 + 0o24) + chr(0b1101111) + chr(0b110001) + '\062' + '\x32', 0b1000), nzTpIcepk0o8(chr(48) + '\157' + '\063' + chr(50) + '\064', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x32' + chr(0b110000 + 0o2) + '\x37', 46439 - 46431), nzTpIcepk0o8('\060' + chr(111) + '\067' + chr(0b110110), 8), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b11011 + 0o27) + chr(0b110101) + chr(194 - 142), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(6570 - 6459) + '\x32' + chr(0b101100 + 0o6) + chr(0b110000), 0o10), nzTpIcepk0o8(chr(0b100000 + 0o20) + '\157' + chr(0b10011 + 0o43) + chr(658 - 610), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + '\061' + '\x37' + '\063', 0b1000), nzTpIcepk0o8('\x30' + chr(3936 - 3825) + chr(0b110011) + chr(0b110010) + chr(0b1101 + 0o46), 0b1000), nzTpIcepk0o8(chr(0b10001 + 0o37) + '\157' + '\x31' + chr(2005 - 1952) + chr(1676 - 1625), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(93 - 42) + chr(716 - 661) + chr(869 - 815), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110011 + 0o0) + '\066' + chr(780 - 727), 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(52) + chr(0b100011 + 0o24), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b111111 + 0o60) + chr(0b1010 + 0o51) + '\065' + chr(1865 - 1816), ord("\x08")), nzTpIcepk0o8(chr(684 - 636) + chr(6443 - 6332) + chr(1891 - 1840) + chr(0b10000 + 0o44) + chr(0b110111), 8), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b1001 + 0o52) + chr(54) + chr(746 - 692), 0o10), nzTpIcepk0o8('\060' + chr(10642 - 10531) + chr(0b100110 + 0o20) + chr(380 - 332), 8), nzTpIcepk0o8(chr(0b110000) + chr(1693 - 1582) + '\063' + chr(0b100000 + 0o26), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x31' + '\063' + '\x35', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101010 + 0o5) + chr(0b11011 + 0o26) + '\062', 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b10110 + 0o35) + chr(50) + chr(0b110100 + 0o3), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b101101 + 0o3) + chr(5070 - 4959) + chr(0b11 + 0o62) + '\x30', 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'<'), chr(100) + chr(101) + '\143' + chr(0b101101 + 0o102) + '\144' + '\x65')('\165' + chr(0b1110100) + chr(102) + chr(0b101101) + chr(0b111000)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def Luu3qfazJSjr(agxi8L4gDzUu, eemPYp2vtTSr): try: if roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b'p\xb0R\xbfm\xc1\xdf\xc6\xb7\xe8\x89s'), chr(2686 - 2586) + '\x65' + chr(0b1100011) + chr(0b1010 + 0o145) + chr(0b1100100) + chr(0b110011 + 0o62))('\165' + chr(116) + chr(102) + '\055' + chr(0b111000))) == roI3spqORKae(ES5oEprVxulp(b'e\xb2j\xe3X\xdb\xc5\xeb'), '\x64' + chr(260 - 159) + chr(5684 - 5585) + chr(0b1101111) + chr(0b1010101 + 0o17) + chr(0b111010 + 0o53))(chr(0b101001 + 0o114) + chr(0b1001 + 0o153) + chr(2023 - 1921) + '\x2d' + chr(663 - 607)): agxi8L4gDzUu = iS939mwOr4Vb(agxi8L4gDzUu, eemPYp2vtTSr) u5DydzxpYwfH = aEwTsxfT9joa(agxi8L4gDzUu) elif roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b'p\xb0R\xbfm\xc1\xdf\xc6\xb7\xe8\x89s'), chr(100) + '\145' + '\143' + chr(1588 - 1477) + chr(0b1000001 + 0o43) + chr(0b1001001 + 0o34))('\x75' + chr(0b1110100) + chr(102) + chr(45) + chr(0b111000))) == roI3spqORKae(ES5oEprVxulp(b'u\xb1w\xea_\xdb\xdd\xf3\x80\xb0\x85[Fc'), '\144' + '\145' + chr(1476 - 1377) + chr(0b1101111) + chr(0b111101 + 0o47) + '\x65')('\165' + chr(116) + chr(102) + chr(0b101101) + chr(1400 - 1344)): NbKXOvwD9E0U = SsdNdRxXOwsF.executable_builder.verify_developer_rights(roI3spqORKae(ES5oEprVxulp(b'u\xb1w\xea_\xdb\xdd\xf3\x80\xb0\x85[Fc\xca'), chr(0b101 + 0o137) + '\145' + chr(99) + chr(0b11101 + 0o122) + chr(100) + chr(0b1011111 + 0o6))('\x75' + '\164' + chr(0b1100110) + chr(991 - 946) + chr(0b10100 + 0o44)) + agxi8L4gDzUu[roI3spqORKae(ES5oEprVxulp(b'|\xbcu\xed'), chr(100) + chr(0b1010001 + 0o24) + '\143' + chr(0b1101111) + chr(0b101000 + 0o74) + '\x65')('\x75' + chr(0b100010 + 0o122) + chr(102) + '\055' + chr(0b11010 + 0o36))]) if NbKXOvwD9E0U and O0r7b6s8rCCK(agxi8L4gDzUu, roI3spqORKae(NbKXOvwD9E0U, roI3spqORKae(ES5oEprVxulp(b'A\x91N\xca\x0c\xf5\xfa\xdd\xad\xb6\xaaR'), chr(0b11101 + 0o107) + '\145' + chr(0b1100011) + chr(0b110 + 0o151) + '\x64' + '\x65')(chr(9476 - 9359) + chr(2740 - 2624) + '\146' + chr(0b100 + 0o51) + chr(0b111000))), roI3spqORKae(NbKXOvwD9E0U, roI3spqORKae(ES5oEprVxulp(b'X\xe9}\xcf\n\x8f\x9d\xef\xb8\xb9\xa2B'), chr(9431 - 9331) + '\x65' + chr(0b1100011) + chr(9905 - 9794) + '\x64' + '\x65')(chr(665 - 548) + chr(116) + chr(102) + chr(1294 - 1249) + '\070'))): u5DydzxpYwfH = K5UBD6qQdQKv(agxi8L4gDzUu, eemPYp2vtTSr, NbKXOvwD9E0U.maLnLg8O5zPT) else: agxi8L4gDzUu = iS939mwOr4Vb(agxi8L4gDzUu, eemPYp2vtTSr) u5DydzxpYwfH = T2l5CRHbBGM2(agxi8L4gDzUu, eemPYp2vtTSr) else: raise bvzaJ98LpDhC(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'G\xb3j\xed]\xd8\xcd\xf2\x9b\xa1\x86S\tc\x88\xae\xe7?\x8e=\xa3\xb7J\xd5\xe0UA\xf3\x10\x83'), chr(0b1001110 + 0o26) + chr(0b1000100 + 0o41) + '\x63' + chr(0b1101111) + '\x64' + '\145')('\x75' + chr(8412 - 8296) + chr(102) + '\x2d' + chr(1721 - 1665)), roI3spqORKae(ES5oEprVxulp(b'c\xee+\xc3y\x84\xcc\xf3\xa3\x84\xa0}'), '\144' + chr(101) + chr(0b1100011) + chr(0b1101111) + chr(0b1100100) + chr(101))(chr(0b1110101) + chr(8642 - 8526) + '\146' + '\x2d' + chr(56)))(roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b'p\xb0R\xbfm\xc1\xdf\xc6\xb7\xe8\x89s'), chr(0b1011001 + 0o13) + chr(101) + chr(0b11011 + 0o110) + chr(111) + chr(100) + chr(2836 - 2735))(chr(0b1110101) + chr(116) + chr(7896 - 7794) + chr(0b1100 + 0o41) + '\070')))) except roI3spqORKae(SsdNdRxXOwsF.exceptions, roI3spqORKae(ES5oEprVxulp(b'V\x85Y\xd8w\xf2\xd8\xee\x9d\xa9'), '\144' + chr(0b11100 + 0o111) + chr(7966 - 7867) + chr(0b1101111) + chr(100) + chr(101))('\x75' + chr(0b1110100) + '\x66' + '\055' + chr(56))) as wgf0sgcu_xPL: raise wgf0sgcu_xPL return u5DydzxpYwfH
dnanexus/dx-toolkit
src/python/dxpy/workflow_builder.py
build
def build(args, parser): """ Validates workflow source directory and creates a new (global) workflow based on it. Raises: WorkflowBuilderException if the workflow cannot be created. """ if args is None: raise Exception("arguments not provided") try: json_spec = _parse_executable_spec(args.src_dir, "dxworkflow.json", parser) workflow_id = _build_or_update_workflow(json_spec, args) _print_output(workflow_id, args) except WorkflowBuilderException as e: print("Error: %s" % (e.args,), file=sys.stderr) sys.exit(3)
python
def build(args, parser): """ Validates workflow source directory and creates a new (global) workflow based on it. Raises: WorkflowBuilderException if the workflow cannot be created. """ if args is None: raise Exception("arguments not provided") try: json_spec = _parse_executable_spec(args.src_dir, "dxworkflow.json", parser) workflow_id = _build_or_update_workflow(json_spec, args) _print_output(workflow_id, args) except WorkflowBuilderException as e: print("Error: %s" % (e.args,), file=sys.stderr) sys.exit(3)
[ "def", "build", "(", "args", ",", "parser", ")", ":", "if", "args", "is", "None", ":", "raise", "Exception", "(", "\"arguments not provided\"", ")", "try", ":", "json_spec", "=", "_parse_executable_spec", "(", "args", ".", "src_dir", ",", "\"dxworkflow.json\"", ",", "parser", ")", "workflow_id", "=", "_build_or_update_workflow", "(", "json_spec", ",", "args", ")", "_print_output", "(", "workflow_id", ",", "args", ")", "except", "WorkflowBuilderException", "as", "e", ":", "print", "(", "\"Error: %s\"", "%", "(", "e", ".", "args", ",", ")", ",", "file", "=", "sys", ".", "stderr", ")", "sys", ".", "exit", "(", "3", ")" ]
Validates workflow source directory and creates a new (global) workflow based on it. Raises: WorkflowBuilderException if the workflow cannot be created.
[ "Validates", "workflow", "source", "directory", "and", "creates", "a", "new", "(", "global", ")", "workflow", "based", "on", "it", ".", "Raises", ":", "WorkflowBuilderException", "if", "the", "workflow", "cannot", "be", "created", "." ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/workflow_builder.py#L612-L627
train
Builds a new global workflow based on the given arguments.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqW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xPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(1749 - 1701) + chr(8197 - 8086) + chr(53) + chr(55), 0b1000), nzTpIcepk0o8(chr(0b111 + 0o51) + chr(2313 - 2202) + chr(50) + chr(0b110000) + chr(1678 - 1628), ord("\x08")), nzTpIcepk0o8('\x30' + chr(2461 - 2350) + '\063' + '\060' + chr(948 - 893), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110001) + chr(0b110101) + chr(0b110001), 0b1000), nzTpIcepk0o8('\060' + '\157' + chr(0b11010 + 0o27) + '\067' + '\067', 0o10), nzTpIcepk0o8(chr(48) + chr(4744 - 4633) + '\063' + '\062' + chr(1692 - 1639), 0o10), nzTpIcepk0o8('\x30' + chr(0b10000 + 0o137) + chr(0b110001) + chr(0b110111) + chr(0b110010), 47643 - 47635), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110011) + chr(0b100001 + 0o26) + chr(289 - 241), 0o10), nzTpIcepk0o8(chr(1635 - 1587) + '\157' + '\x31' + '\060' + chr(0b110100 + 0o3), 39313 - 39305), nzTpIcepk0o8(chr(323 - 275) + chr(111) + chr(0b110011) + '\x32' + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1001111 + 0o40) + chr(1727 - 1678) + '\x34' + chr(52), 0b1000), nzTpIcepk0o8('\060' + '\157' + '\x35' + '\x30', 0b1000), nzTpIcepk0o8(chr(0b111 + 0o51) + chr(9395 - 9284) + chr(423 - 370) + chr(52), 0b1000), nzTpIcepk0o8(chr(48) + chr(419 - 308) + chr(0b101110 + 0o5) + chr(0b110110) + '\066', ord("\x08")), nzTpIcepk0o8(chr(2262 - 2214) + chr(0b100010 + 0o115) + chr(2022 - 1973) + chr(0b110010) + chr(50), 62670 - 62662), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b1101 + 0o45) + chr(0b110101) + chr(0b110110), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x31' + chr(1758 - 1705) + chr(54), 0b1000), nzTpIcepk0o8(chr(491 - 443) + chr(0b100001 + 0o116) + chr(0b110010) + chr(53) + chr(0b11011 + 0o33), 8), nzTpIcepk0o8(chr(0b10110 + 0o32) + '\157' + chr(0b10011 + 0o36) + chr(49) + chr(0b110110), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(49) + chr(1015 - 963) + chr(0b110110), 34784 - 34776), nzTpIcepk0o8('\x30' + '\157' + chr(1195 - 1141) + chr(55), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + '\063' + chr(0b10111 + 0o32), 0b1000), nzTpIcepk0o8('\060' + chr(0b110 + 0o151) + '\x33' + chr(0b1111 + 0o50) + '\067', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(11350 - 11239) + chr(2505 - 2454) + '\065' + chr(0b101111 + 0o10), 20569 - 20561), nzTpIcepk0o8(chr(906 - 858) + '\157' + '\067' + chr(53), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\062' + chr(2391 - 2341) + chr(0b110010), 35122 - 35114), nzTpIcepk0o8(chr(0b10000 + 0o40) + chr(0b1101111) + chr(296 - 246) + chr(53) + chr(0b110010 + 0o0), 0b1000), nzTpIcepk0o8(chr(0b0 + 0o60) + '\x6f' + '\063' + '\065', ord("\x08")), nzTpIcepk0o8(chr(0b1100 + 0o44) + '\157' + chr(0b110010) + chr(49) + '\x37', 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(2497 - 2447) + '\067' + '\x32', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(1047 - 997) + '\064' + chr(0b101011 + 0o12), ord("\x08")), nzTpIcepk0o8(chr(1568 - 1520) + chr(1750 - 1639) + chr(50) + chr(0b110100) + '\062', 0b1000), nzTpIcepk0o8(chr(2004 - 1956) + '\x6f' + chr(0b101 + 0o55) + chr(0b110 + 0o53) + chr(54), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110011) + chr(2292 - 2244) + chr(798 - 745), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + '\062' + chr(0b110 + 0o60) + '\x34', 37630 - 37622), nzTpIcepk0o8('\060' + chr(0b101 + 0o152) + '\x31' + chr(0b110000) + chr(0b1110 + 0o46), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110010) + chr(51) + chr(55), 7179 - 7171), nzTpIcepk0o8(chr(0b10000 + 0o40) + '\x6f' + chr(0b100001 + 0o22) + chr(50) + '\x32', 48409 - 48401), nzTpIcepk0o8('\060' + chr(0b1011111 + 0o20) + '\065' + chr(0b110110), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + '\x32' + chr(0b110000) + '\x34', 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b0 + 0o60) + chr(111) + chr(0b110101) + chr(1174 - 1126), 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x01'), chr(100) + chr(0b1100101) + '\143' + chr(8386 - 8275) + chr(0b1100100) + chr(101))(chr(0b1110101) + chr(0b1110100) + chr(0b1 + 0o145) + chr(0b11 + 0o52) + '\x38') + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def IJABSdCh941a(eemPYp2vtTSr, ELQLGvoVr2Z_): if eemPYp2vtTSr is None: raise zfo2Sgkz3IVJ(roI3spqORKae(ES5oEprVxulp(b'N\xf0\xa0\x1c\x12\xb0\x14\x8c4\xf1\nGX\xd6"\xdc\x01\xd8\'\x02R}'), chr(0b11111 + 0o105) + chr(0b1100101) + chr(99) + '\x6f' + chr(0b1010000 + 0o24) + chr(0b1100101))(chr(0b100000 + 0o125) + '\164' + chr(0b1100110) + '\x2d' + chr(2811 - 2755))) try: agxi8L4gDzUu = vm0mZOcp7az8(eemPYp2vtTSr.src_dir, roI3spqORKae(ES5oEprVxulp(b'K\xfa\xb0\x06\r\xbe\x1c\x94(\xa6JB_\x99<'), chr(0b1100100) + '\x65' + chr(99) + '\x6f' + chr(0b11010 + 0o112) + chr(6916 - 6815))(chr(11645 - 11528) + chr(4110 - 3994) + chr(0b1000111 + 0o37) + chr(0b10111 + 0o26) + '\070'), ELQLGvoVr2Z_) u5DydzxpYwfH = Luu3qfazJSjr(agxi8L4gDzUu, eemPYp2vtTSr) diQ9UHa2JSfK(u5DydzxpYwfH, eemPYp2vtTSr) except bvzaJ98LpDhC as wgf0sgcu_xPL: v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'j\xf0\xb5\x06\r\xefZ\xdd4'), chr(9026 - 8926) + '\145' + '\143' + chr(0b1101111) + chr(0b11110 + 0o106) + chr(0b11110 + 0o107))(chr(0b1101000 + 0o15) + chr(7646 - 7530) + chr(0b1100110) + chr(1653 - 1608) + chr(0b111000)) % (roI3spqORKae(wgf0sgcu_xPL, roI3spqORKae(ES5oEprVxulp(b'J\xe7\xaa9&\xa5H\x8e3\x857Z'), chr(0b1100100) + chr(0b1100101) + chr(0b1100011) + '\157' + chr(0b1000010 + 0o42) + '\145')('\165' + chr(0b10011 + 0o141) + chr(0b1100110) + '\055' + '\x38')),), file=roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'@\xd0\xf4\x1d>\xa6\x14\xb7\x06\xa1\tn'), chr(0b11 + 0o141) + '\145' + chr(934 - 835) + chr(111) + chr(0b11010 + 0o112) + '\145')(chr(0b110011 + 0o102) + chr(0b1110100) + '\146' + '\055' + chr(3022 - 2966)))) roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'u\xf7\xb5\x03\x1c\x806\xc94\xa2%\x10'), chr(0b11 + 0o141) + '\x65' + '\143' + chr(0b0 + 0o157) + chr(8194 - 8094) + chr(101))('\165' + chr(0b1110100) + '\x66' + chr(1543 - 1498) + '\x38'))(nzTpIcepk0o8(chr(48) + chr(12138 - 12027) + '\063', 0o10))
dnanexus/dx-toolkit
src/python/dxpy/cli/cp.py
cp_to_noexistent_destination
def cp_to_noexistent_destination(args, dest_path, dx_dest, dest_proj): ''' Copy the source to a destination that does not currently exist. This involves creating the target file/folder. ''' # Destination folder path is new => renaming if len(args.sources) != 1: # Can't copy and rename more than one object raise DXCLIError('The destination folder does not exist') last_slash_pos = get_last_pos_of_char('/', dest_path) if last_slash_pos == 0: dest_folder = '/' else: dest_folder = dest_path[:last_slash_pos] dest_name = dest_path[last_slash_pos + 1:].replace('\/', '/') try: dx_dest.list_folder(folder=dest_folder, only='folders') except dxpy.DXAPIError as details: if details.code == requests.codes['not_found']: raise DXCLIError('The destination folder does not exist') else: raise except: err_exit() # Clone and rename either the data object or the folder. # src_result is None if it could not be resolved to an object. src_proj, src_path, src_results = try_call(resolve_existing_path, args.sources[0], allow_mult=True, all_mult=args.all) if src_proj == dest_proj: if is_hashid(args.sources[0]): # This is the only case in which the source project is # purely assumed, so give a better error message. raise DXCLIError(fill('Error: You must specify a source project for ' + args.sources[0])) else: raise DXCLIError(fill('A source path and the destination path resolved to the ' + 'same project or container. Please specify different source ' + 'and destination containers, e.g.') + '\n dx cp source-project:source-id-or-path dest-project:dest-path') if src_results is None: try: contents = dxpy.api.project_list_folder(src_proj, {"folder": src_path, "includeHidden": True}) dxpy.api.project_new_folder(dest_proj, {"folder": dest_path}) exists = dxpy.api.project_clone(src_proj, {"folders": contents['folders'], "objects": [result['id'] for result in contents['objects']], "project": dest_proj, "destination": dest_path})['exists'] if len(exists) > 0: print(fill('The following objects already existed in the destination ' + 'container and were not copied:') + '\n ' + '\n '.join(exists)) return except: err_exit() else: try: exists = dxpy.api.project_clone(src_proj, {"objects": [result['id'] for result in src_results], "project": dest_proj, "destination": dest_folder})['exists'] if len(exists) > 0: print(fill('The following objects already existed in the destination ' + 'container and were not copied:') + '\n ' + '\n '.join(exists)) for result in src_results: if result['id'] not in exists: dxpy.DXHTTPRequest('/' + result['id'] + '/rename', {"project": dest_proj, "name": dest_name}) return except: err_exit()
python
def cp_to_noexistent_destination(args, dest_path, dx_dest, dest_proj): ''' Copy the source to a destination that does not currently exist. This involves creating the target file/folder. ''' # Destination folder path is new => renaming if len(args.sources) != 1: # Can't copy and rename more than one object raise DXCLIError('The destination folder does not exist') last_slash_pos = get_last_pos_of_char('/', dest_path) if last_slash_pos == 0: dest_folder = '/' else: dest_folder = dest_path[:last_slash_pos] dest_name = dest_path[last_slash_pos + 1:].replace('\/', '/') try: dx_dest.list_folder(folder=dest_folder, only='folders') except dxpy.DXAPIError as details: if details.code == requests.codes['not_found']: raise DXCLIError('The destination folder does not exist') else: raise except: err_exit() # Clone and rename either the data object or the folder. # src_result is None if it could not be resolved to an object. src_proj, src_path, src_results = try_call(resolve_existing_path, args.sources[0], allow_mult=True, all_mult=args.all) if src_proj == dest_proj: if is_hashid(args.sources[0]): # This is the only case in which the source project is # purely assumed, so give a better error message. raise DXCLIError(fill('Error: You must specify a source project for ' + args.sources[0])) else: raise DXCLIError(fill('A source path and the destination path resolved to the ' + 'same project or container. Please specify different source ' + 'and destination containers, e.g.') + '\n dx cp source-project:source-id-or-path dest-project:dest-path') if src_results is None: try: contents = dxpy.api.project_list_folder(src_proj, {"folder": src_path, "includeHidden": True}) dxpy.api.project_new_folder(dest_proj, {"folder": dest_path}) exists = dxpy.api.project_clone(src_proj, {"folders": contents['folders'], "objects": [result['id'] for result in contents['objects']], "project": dest_proj, "destination": dest_path})['exists'] if len(exists) > 0: print(fill('The following objects already existed in the destination ' + 'container and were not copied:') + '\n ' + '\n '.join(exists)) return except: err_exit() else: try: exists = dxpy.api.project_clone(src_proj, {"objects": [result['id'] for result in src_results], "project": dest_proj, "destination": dest_folder})['exists'] if len(exists) > 0: print(fill('The following objects already existed in the destination ' + 'container and were not copied:') + '\n ' + '\n '.join(exists)) for result in src_results: if result['id'] not in exists: dxpy.DXHTTPRequest('/' + result['id'] + '/rename', {"project": dest_proj, "name": dest_name}) return except: err_exit()
[ "def", "cp_to_noexistent_destination", "(", "args", ",", "dest_path", ",", "dx_dest", ",", "dest_proj", ")", ":", "# Destination folder path is new => renaming", "if", "len", "(", "args", ".", "sources", ")", "!=", "1", ":", "# Can't copy and rename more than one object", "raise", "DXCLIError", "(", "'The destination folder does not exist'", ")", "last_slash_pos", "=", "get_last_pos_of_char", "(", "'/'", ",", "dest_path", ")", "if", "last_slash_pos", "==", "0", ":", "dest_folder", "=", "'/'", "else", ":", "dest_folder", "=", "dest_path", "[", ":", "last_slash_pos", "]", "dest_name", "=", "dest_path", "[", "last_slash_pos", "+", "1", ":", "]", ".", "replace", "(", "'\\/'", ",", "'/'", ")", "try", ":", "dx_dest", ".", "list_folder", "(", "folder", "=", "dest_folder", ",", "only", "=", "'folders'", ")", "except", "dxpy", ".", "DXAPIError", "as", "details", ":", "if", "details", ".", "code", "==", "requests", ".", "codes", "[", "'not_found'", "]", ":", "raise", "DXCLIError", "(", "'The destination folder does not exist'", ")", "else", ":", "raise", "except", ":", "err_exit", "(", ")", "# Clone and rename either the data object or the folder.", "# src_result is None if it could not be resolved to an object.", "src_proj", ",", "src_path", ",", "src_results", "=", "try_call", "(", "resolve_existing_path", ",", "args", ".", "sources", "[", "0", "]", ",", "allow_mult", "=", "True", ",", "all_mult", "=", "args", ".", "all", ")", "if", "src_proj", "==", "dest_proj", ":", "if", "is_hashid", "(", "args", ".", "sources", "[", "0", "]", ")", ":", "# This is the only case in which the source project is", "# purely assumed, so give a better error message.", "raise", "DXCLIError", "(", "fill", "(", "'Error: You must specify a source project for '", "+", "args", ".", "sources", "[", "0", "]", ")", ")", "else", ":", "raise", "DXCLIError", "(", "fill", "(", "'A source path and the destination path resolved to the '", "+", "'same project or container. Please specify different source '", "+", "'and destination containers, e.g.'", ")", "+", "'\\n dx cp source-project:source-id-or-path dest-project:dest-path'", ")", "if", "src_results", "is", "None", ":", "try", ":", "contents", "=", "dxpy", ".", "api", ".", "project_list_folder", "(", "src_proj", ",", "{", "\"folder\"", ":", "src_path", ",", "\"includeHidden\"", ":", "True", "}", ")", "dxpy", ".", "api", ".", "project_new_folder", "(", "dest_proj", ",", "{", "\"folder\"", ":", "dest_path", "}", ")", "exists", "=", "dxpy", ".", "api", ".", "project_clone", "(", "src_proj", ",", "{", "\"folders\"", ":", "contents", "[", "'folders'", "]", ",", "\"objects\"", ":", "[", "result", "[", "'id'", "]", "for", "result", "in", "contents", "[", "'objects'", "]", "]", ",", "\"project\"", ":", "dest_proj", ",", "\"destination\"", ":", "dest_path", "}", ")", "[", "'exists'", "]", "if", "len", "(", "exists", ")", ">", "0", ":", "print", "(", "fill", "(", "'The following objects already existed in the destination '", "+", "'container and were not copied:'", ")", "+", "'\\n '", "+", "'\\n '", ".", "join", "(", "exists", ")", ")", "return", "except", ":", "err_exit", "(", ")", "else", ":", "try", ":", "exists", "=", "dxpy", ".", "api", ".", "project_clone", "(", "src_proj", ",", "{", "\"objects\"", ":", "[", "result", "[", "'id'", "]", "for", "result", "in", "src_results", "]", ",", "\"project\"", ":", "dest_proj", ",", "\"destination\"", ":", "dest_folder", "}", ")", "[", "'exists'", "]", "if", "len", "(", "exists", ")", ">", "0", ":", "print", "(", "fill", "(", "'The following objects already existed in the destination '", "+", "'container and were not copied:'", ")", "+", "'\\n '", "+", "'\\n '", ".", "join", "(", "exists", ")", ")", "for", "result", "in", "src_results", ":", "if", "result", "[", "'id'", "]", "not", "in", "exists", ":", "dxpy", ".", "DXHTTPRequest", "(", "'/'", "+", "result", "[", "'id'", "]", "+", "'/rename'", ",", "{", "\"project\"", ":", "dest_proj", ",", "\"name\"", ":", "dest_name", "}", ")", "return", "except", ":", "err_exit", "(", ")" ]
Copy the source to a destination that does not currently exist. This involves creating the target file/folder.
[ "Copy", "the", "source", "to", "a", "destination", "that", "does", "not", "currently", "exist", ".", "This", "involves", "creating", "the", "target", "file", "/", "folder", "." ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/cli/cp.py#L34-L107
train
Copy the source to a destination that does not currently have a corresponding object.
Gi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QfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(2136 - 2088) + chr(0b100000 + 0o117) + chr(0b110010) + '\065' + '\066', 0o10), nzTpIcepk0o8(chr(0b1110 + 0o42) + chr(0b1101111) + chr(0b110011) + '\066' + chr(0b110101), 813 - 805), nzTpIcepk0o8(chr(48) + chr(11025 - 10914) + chr(1985 - 1936) + chr(0b110011) + chr(2185 - 2131), 6993 - 6985), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b11100 + 0o26) + chr(51) + '\x35', 58339 - 58331), nzTpIcepk0o8('\060' + chr(5884 - 5773) + '\x33' + '\060' + chr(0b1010 + 0o46), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(452 - 401) + chr(52) + '\060', 27737 - 27729), nzTpIcepk0o8(chr(425 - 377) + chr(111) + chr(0b101101 + 0o4) + '\065' + chr(0b101110 + 0o10), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b101000 + 0o11) + '\x35' + chr(52), 0o10), nzTpIcepk0o8('\060' + chr(4672 - 4561) + '\062' + '\x37' + chr(48), 0b1000), nzTpIcepk0o8(chr(0b100110 + 0o12) + chr(0b1101111) + chr(51) + chr(53) + chr(1347 - 1296), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b10001 + 0o37), 0o10), nzTpIcepk0o8('\060' + chr(0b100010 + 0o115) + chr(0b11000 + 0o33) + '\066' + chr(0b110011), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110011) + chr(0b110001) + '\060', 0o10), nzTpIcepk0o8(chr(0b1101 + 0o43) + chr(11466 - 11355) + chr(51) + chr(0b1101 + 0o43) + '\x34', 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110001) + chr(54) + '\063', 0o10), nzTpIcepk0o8(chr(2028 - 1980) + chr(111) + '\061' + chr(0b101011 + 0o13) + chr(0b110001), 26371 - 26363), nzTpIcepk0o8(chr(48) + '\157' + '\061' + chr(49) + '\066', 0b1000), nzTpIcepk0o8(chr(0b11101 + 0o23) + '\x6f' + chr(1388 - 1337) + chr(49) + chr(0b110111), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + '\067' + '\065', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(5852 - 5741) + chr(0b110011) + chr(0b101001 + 0o11) + chr(0b110011), ord("\x08")), nzTpIcepk0o8(chr(2262 - 2214) + chr(111) + '\x31' + chr(1588 - 1540) + chr(55), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(0b100011 + 0o20) + chr(0b1010 + 0o54), 41129 - 41121), nzTpIcepk0o8(chr(278 - 230) + '\x6f' + '\063' + '\x33' + chr(0b110011), 34285 - 34277), nzTpIcepk0o8('\x30' + chr(8471 - 8360) + '\x33' + '\x30' + chr(376 - 323), 14818 - 14810), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110011) + chr(0b100001 + 0o20) + chr(0b110110), 0b1000), nzTpIcepk0o8(chr(1733 - 1685) + chr(0b1001 + 0o146) + chr(0b110011) + chr(50) + chr(107 - 57), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(0b10110 + 0o34) + '\066' + chr(0b110011), 32662 - 32654), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(50) + '\063' + chr(0b100010 + 0o25), ord("\x08")), nzTpIcepk0o8('\x30' + chr(9035 - 8924) + chr(1350 - 1300) + chr(0b10 + 0o57) + chr(0b110011), 0o10), nzTpIcepk0o8(chr(0b10111 + 0o31) + '\x6f' + '\x32' + '\064' + '\061', ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(0b11111 + 0o23) + chr(49) + chr(0b110000), 12712 - 12704), nzTpIcepk0o8(chr(1668 - 1620) + chr(111) + chr(51) + '\067' + chr(53), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(54) + chr(50), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110010) + chr(1875 - 1825) + '\x30', 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\063' + chr(0b110110) + chr(817 - 768), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b11011 + 0o124) + chr(0b11101 + 0o26) + '\x35', 0b1000), nzTpIcepk0o8(chr(48) + chr(8778 - 8667) + '\x33' + chr(0b110101) + '\067', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x31' + chr(0b110100) + '\x33', ord("\x08")), nzTpIcepk0o8(chr(0b101000 + 0o10) + '\x6f' + '\062' + '\x32' + chr(0b1 + 0o57), 8), nzTpIcepk0o8(chr(597 - 549) + chr(111) + chr(49) + chr(455 - 401) + chr(0b10101 + 0o40), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b10100 + 0o34) + '\157' + '\065' + chr(0b100001 + 0o17), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x80'), chr(0b11111 + 0o105) + chr(101) + '\x63' + '\x6f' + chr(100) + '\145')(chr(117) + chr(0b1110100) + chr(0b1100110) + '\x2d' + '\x38') + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def rdmhA0btUNEs(eemPYp2vtTSr, f_di0AMnjDLm, zd6Usbjo5oWH, ZfRSSH9DPNpK): if ftfygxgFas5X(roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b'\xea\xcc\x16\xc9\xf0\x95\x1b_\x8f\x9bO\xb1'), chr(0b1100100) + chr(101) + '\143' + '\x6f' + '\x64' + chr(101))(chr(117) + chr(116) + chr(0b11111 + 0o107) + chr(45) + '\x38'))) != nzTpIcepk0o8(chr(48) + chr(9080 - 8969) + '\x31', 8193 - 8185): raise AIt41jcDTxpM(roI3spqORKae(ES5oEprVxulp(b'\xfa\x9d;\xbd\xa4\x85\x1d\x18\xd1\x85a\x87\xa1\xab\x1dQ(\xa0Q\xb7"l\xfb\xa1\xa1\xb7\xc0\xbf\xe5\xce\xfc\xddW\xe8\x98n\x9b'), chr(0b1000110 + 0o36) + '\145' + chr(2402 - 2303) + '\157' + '\144' + chr(101))(chr(0b1110101) + chr(303 - 187) + chr(102) + chr(45) + chr(2420 - 2364))) VCWEXjgO8ttL = de6vXukRsfn1(roI3spqORKae(ES5oEprVxulp(b'\x81'), chr(0b1100100) + chr(101) + '\x63' + chr(0b111 + 0o150) + chr(0b10101 + 0o117) + chr(2981 - 2880))(chr(0b11 + 0o162) + '\164' + '\146' + '\x2d' + '\x38'), f_di0AMnjDLm) if VCWEXjgO8ttL == nzTpIcepk0o8('\060' + chr(0b101 + 0o152) + chr(48), 8): kNOgleKgMxsP = roI3spqORKae(ES5oEprVxulp(b'\x81'), chr(2756 - 2656) + chr(9950 - 9849) + '\x63' + chr(0b1101111) + chr(100) + chr(0b101111 + 0o66))(chr(6874 - 6757) + chr(0b1001010 + 0o52) + '\x66' + '\055' + '\070') else: kNOgleKgMxsP = f_di0AMnjDLm[:VCWEXjgO8ttL] VnrB0N5wy1AO = f_di0AMnjDLm[VCWEXjgO8ttL + nzTpIcepk0o8(chr(0b110000) + chr(4635 - 4524) + chr(0b110001), 8):].E91dbqOZXBpJ(roI3spqORKae(ES5oEprVxulp(b'\xf2\xda'), chr(100) + chr(101) + chr(0b101000 + 0o73) + chr(0b10000 + 0o137) + chr(100) + chr(467 - 366))(chr(0b1110101) + chr(116) + chr(102) + chr(314 - 269) + '\070'), roI3spqORKae(ES5oEprVxulp(b'\x81'), chr(9476 - 9376) + chr(0b1100101) + chr(0b1100011) + '\x6f' + '\x64' + chr(516 - 415))(chr(10328 - 10211) + chr(10182 - 10066) + chr(102) + chr(0b101101) + chr(3005 - 2949))) try: roI3spqORKae(zd6Usbjo5oWH, roI3spqORKae(ES5oEprVxulp(b'\xc2\x9c-\xe9\x9f\x86\x01\x00\xdc\x8er'), chr(0b10010 + 0o122) + chr(101) + chr(0b1100011) + chr(111) + chr(100) + chr(0b111 + 0o136))('\165' + chr(9775 - 9659) + chr(102) + chr(0b101101) + chr(56)))(folder=kNOgleKgMxsP, only=roI3spqORKae(ES5oEprVxulp(b'\xc8\x9a2\xf9\xa5\x92\x1d'), chr(0b111001 + 0o53) + chr(575 - 474) + '\143' + chr(0b1100101 + 0o12) + chr(100) + chr(0b1100101))('\165' + chr(0b1010 + 0o152) + chr(0b1000001 + 0o45) + chr(0b110 + 0o47) + chr(56))) except roI3spqORKae(SsdNdRxXOwsF, roI3spqORKae(ES5oEprVxulp(b'\xea\xad\x1f\xcd\x89\xa5\x1c\x1e\xd7\x99'), '\144' + chr(705 - 604) + '\143' + chr(6824 - 6713) + chr(0b110100 + 0o60) + chr(2425 - 2324))(chr(0b1110101) + chr(0b1110100) + '\x66' + '\055' + chr(0b101100 + 0o14))) as MSO7REb1szzF: if roI3spqORKae(MSO7REb1szzF, roI3spqORKae(ES5oEprVxulp(b'\xe3\xbf\x1b\xda\xa7\x96%_\xd6\x85E\xca'), chr(0b1001110 + 0o26) + chr(0b1100101) + '\x63' + '\157' + chr(100) + '\145')('\x75' + chr(116) + chr(0b1011011 + 0o13) + '\055' + chr(0b11101 + 0o33))) == roI3spqORKae(dDl_g5qi6_rH, roI3spqORKae(ES5oEprVxulp(b'\xd9\xad\x10\xc7\xa9\xd6\x1c(\xcc\xdbj\x94'), chr(5593 - 5493) + '\145' + chr(99) + chr(4542 - 4431) + '\x64' + chr(0b1001 + 0o134))(chr(0b1110101) + chr(0b1001000 + 0o54) + chr(0b1010001 + 0o25) + '\x2d' + chr(0b11001 + 0o37)))[roI3spqORKae(ES5oEprVxulp(b'\xc0\x9a*\xc2\xa6\x8f\x1b\x02\xdc'), chr(0b1000011 + 0o41) + chr(0b100001 + 0o104) + chr(0b1001000 + 0o33) + chr(111) + chr(100) + '\x65')('\165' + chr(0b100100 + 0o120) + chr(10101 - 9999) + chr(0b101101) + chr(0b111000))]: raise AIt41jcDTxpM(roI3spqORKae(ES5oEprVxulp(b'\xfa\x9d;\xbd\xa4\x85\x1d\x18\xd1\x85a\x87\xa1\xab\x1dQ(\xa0Q\xb7"l\xfb\xa1\xa1\xb7\xc0\xbf\xe5\xce\xfc\xddW\xe8\x98n\x9b'), chr(0b10000 + 0o124) + '\x65' + chr(99) + chr(0b1101111) + chr(0b1000101 + 0o37) + '\145')(chr(0b1110101) + chr(0b1110011 + 0o1) + chr(2941 - 2839) + chr(0b101101) + chr(0b100101 + 0o23))) else: raise except UtiWT6f6p9yZ: F16fGuypkEJS() (baGZy8zJ2fq6, _tXn180u9zX1, orqPhhxlXXKM) = UkAnB0XpZ2SP(Ct60aR558GPM, eemPYp2vtTSr.D9HT0uu37pOB[nzTpIcepk0o8(chr(0b11 + 0o55) + chr(111) + chr(0b100 + 0o54), 8)], allow_mult=nzTpIcepk0o8('\060' + chr(111) + chr(49), 8), all_mult=eemPYp2vtTSr.qX60lO1lgHA5) if baGZy8zJ2fq6 == ZfRSSH9DPNpK: if fBxieHaVkyd6(roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b'\xea\xcc\x16\xc9\xf0\x95\x1b_\x8f\x9bO\xb1'), chr(100) + chr(0b1001010 + 0o33) + chr(3039 - 2940) + chr(0b1101111) + chr(100) + chr(101))(chr(12044 - 11927) + '\164' + chr(0b1100110) + '\x2d' + chr(829 - 773)))[nzTpIcepk0o8('\x30' + '\x6f' + chr(48), 8)]): raise AIt41jcDTxpM(pPmkLCVA328e(roI3spqORKae(ES5oEprVxulp(b'\xeb\x87,\xf2\xb2\xdaN5\xd7\x9e \x9e\xbd\xb7\x07Q=\xbfX\xb0.x\xa2\xe5\xaf\xf2\xc0\xf0\xfe\xd3\xeb\x98\x12\xe0\x83r\x85\x06\xf3\x01\x8e\x931\xef\xe0'), '\x64' + '\145' + '\x63' + chr(0b1101111) + '\x64' + chr(2811 - 2710))(chr(0b1110101) + chr(0b1110100) + chr(102) + chr(0b10111 + 0o26) + chr(0b110110 + 0o2)) + roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b'\xea\xcc\x16\xc9\xf0\x95\x1b_\x8f\x9bO\xb1'), chr(0b1100100) + chr(7920 - 7819) + '\x63' + chr(0b11010 + 0o125) + chr(0b1100100) + chr(101))(chr(2391 - 2274) + chr(116) + chr(0b1100110) + chr(0b11000 + 0o25) + '\070'))[nzTpIcepk0o8('\x30' + chr(111) + chr(48), 8)])) else: raise AIt41jcDTxpM(pPmkLCVA328e(roI3spqORKae(ES5oEprVxulp(b'\xef\xd5-\xf2\xb5\x92\r\t\x98\x9ba\x87\xa0\xe4\x12\x1f*\xefI\xbb">\xbf\xa0\xbd\xa6\xda\xf1\xea\xd5\xe1\x92\\\xb0\x81|\x9b\x0b\xb0\x07\xcb\x861\xf1\xb6\x85\nL\xcc\x84 \x87\xa0\xa1S'), chr(0b1100100) + chr(3642 - 3541) + chr(0b11010 + 0o111) + '\x6f' + '\x64' + chr(5129 - 5028))(chr(9694 - 9577) + '\164' + chr(0b1100110) + '\x2d' + chr(2452 - 2396)) + roI3spqORKae(ES5oEprVxulp(b'\xdd\x943\xf8\xe0\x90\x1c\x03\xd2\x8ec\x87\xe8\xab\x01Q-\xa0S\xa7&w\xb5\xa0\xbc\xfc\x93\xbf\xdb\xcd\xed\x9cA\xf5\xd1n\x9f\x06\xf3\x1c\xc8\x8c~\xf9\xa9\x86\x08\t\xca\x8en\x87\xe8\xb7\x1c\x04<\xacX\xf3'), chr(100) + chr(0b1011 + 0o132) + '\x63' + '\157' + chr(100) + chr(150 - 49))('\165' + chr(414 - 298) + '\x66' + '\055' + chr(0b111000)) + roI3spqORKae(ES5oEprVxulp(b'\xcf\x9b:\xbd\xa4\x85\x1d\x18\xd1\x85a\x87\xa1\xab\x1dQ-\xa0S\xa7&w\xb5\xa0\xbc\xa1\x9f\xbf\xee\x8f\xef\xd3'), chr(0b1 + 0o143) + '\145' + chr(0b11011 + 0o110) + chr(5339 - 5228) + chr(100) + '\145')(chr(0b1000100 + 0o61) + chr(0b1110100) + chr(102) + '\055' + chr(56))) + roI3spqORKae(ES5oEprVxulp(b'\xa4\xd5~\xf9\xb8\xc0\r\x1c\x98\x98o\x86\xba\xa7\x16\\>\xbdR\xb9"}\xaf\xff\xbd\xbd\xc6\xed\xe8\xc4\xa5\x94V\xbd\x9eo\xc2\x13\xf1\x01\xc6\xd5:\xf8\xb3\x94C\x1c\xca\x84j\x96\xab\xb0I\x15+\xbcI\xfe7\x7f\xaf\xad'), chr(0b10010 + 0o122) + '\x65' + chr(1918 - 1819) + '\x6f' + chr(0b1100100) + chr(0b110001 + 0o64))(chr(8765 - 8648) + '\164' + chr(0b1100110) + '\055' + chr(0b10110 + 0o42))) if orqPhhxlXXKM is None: try: Pbl0gxeZ3EHD = SsdNdRxXOwsF.api.project_list_folder(baGZy8zJ2fq6, {roI3spqORKae(ES5oEprVxulp(b'\xc8\x9a2\xf9\xa5\x92'), chr(100) + '\145' + '\143' + chr(111) + chr(0b1100100) + '\x65')(chr(0b1101110 + 0o7) + '\x74' + chr(0b1001 + 0o135) + '\055' + '\x38'): _tXn180u9zX1, roI3spqORKae(ES5oEprVxulp(b'\xc7\x9b=\xf1\xb5\x84\x0b$\xd1\x8fd\x96\xa6'), chr(100) + '\x65' + chr(0b1100011) + '\x6f' + chr(1713 - 1613) + '\145')('\x75' + chr(5739 - 5623) + '\146' + '\055' + chr(2269 - 2213)): nzTpIcepk0o8('\060' + chr(0b1100111 + 0o10) + chr(1437 - 1388), 8)}) roI3spqORKae(SsdNdRxXOwsF.api, roI3spqORKae(ES5oEprVxulp(b'\xde\x871\xf7\xa5\x83\x1a3\xd6\x8ew\xac\xae\xab\x1f\x15+\xbd'), chr(8978 - 8878) + chr(101) + '\x63' + chr(0b1000101 + 0o52) + '\x64' + '\x65')(chr(0b1101010 + 0o13) + '\x74' + chr(102) + chr(280 - 235) + '\070'))(ZfRSSH9DPNpK, {roI3spqORKae(ES5oEprVxulp(b'\xc8\x9a2\xf9\xa5\x92'), chr(0b1100100) + chr(0b1100101) + '\x63' + chr(0b110010 + 0o75) + chr(0b101010 + 0o72) + chr(0b1000101 + 0o40))(chr(0b1101000 + 0o15) + chr(8371 - 8255) + chr(0b100111 + 0o77) + '\x2d' + chr(0b111000)): f_di0AMnjDLm}) zSIynPuEvlQ4 = SsdNdRxXOwsF.api.project_clone(baGZy8zJ2fq6, {roI3spqORKae(ES5oEprVxulp(b'\xc8\x9a2\xf9\xa5\x92\x1d'), chr(0b1011010 + 0o12) + chr(0b101001 + 0o74) + chr(99) + chr(0b1101111) + '\x64' + chr(0b111 + 0o136))(chr(2936 - 2819) + '\x74' + '\146' + chr(207 - 162) + chr(0b111000)): Pbl0gxeZ3EHD[roI3spqORKae(ES5oEprVxulp(b'\xc8\x9a2\xf9\xa5\x92\x1d'), chr(0b100 + 0o140) + '\x65' + chr(99) + chr(4338 - 4227) + '\x64' + chr(5075 - 4974))(chr(117) + chr(0b101001 + 0o113) + '\146' + '\055' + '\070')], roI3spqORKae(ES5oEprVxulp(b'\xc1\x974\xf8\xa3\x94\x1d'), chr(0b1100100) + chr(0b1100101) + chr(0b11101 + 0o106) + '\x6f' + chr(0b1100100) + chr(0b1100101))(chr(0b1100101 + 0o20) + chr(7180 - 7064) + '\x66' + '\055' + chr(56)): [POx95m7SPOVy[roI3spqORKae(ES5oEprVxulp(b'\xc7\x91'), chr(1714 - 1614) + chr(0b1100101) + chr(0b1100011) + '\x6f' + chr(9744 - 9644) + chr(2089 - 1988))(chr(0b1110101) + chr(0b1110100) + '\x66' + chr(0b11001 + 0o24) + '\x38')] for POx95m7SPOVy in Pbl0gxeZ3EHD[roI3spqORKae(ES5oEprVxulp(b'\xc1\x974\xf8\xa3\x94\x1d'), chr(4937 - 4837) + chr(0b1100101) + chr(5044 - 4945) + '\157' + chr(0b1100100) + chr(632 - 531))(chr(9945 - 9828) + chr(116) + '\x66' + chr(0b11 + 0o52) + chr(0b11010 + 0o36))]], roI3spqORKae(ES5oEprVxulp(b'\xde\x871\xf7\xa5\x83\x1a'), chr(9176 - 9076) + chr(0b1100101) + chr(99) + chr(1631 - 1520) + '\144' + chr(0b1100010 + 0o3))(chr(117) + chr(0b1110100) + chr(8310 - 8208) + chr(45) + chr(0b100101 + 0o23)): ZfRSSH9DPNpK, roI3spqORKae(ES5oEprVxulp(b'\xca\x90-\xe9\xa9\x8e\x0f\x18\xd1\x84n'), chr(100) + chr(0b1100101) + chr(99) + chr(9952 - 9841) + '\144' + '\x65')('\165' + chr(5653 - 5537) + chr(102) + '\055' + chr(2433 - 2377)): f_di0AMnjDLm})[roI3spqORKae(ES5oEprVxulp(b'\xcb\x8d7\xee\xb4\x93'), chr(1327 - 1227) + chr(0b1100101) + '\x63' + chr(0b1101 + 0o142) + chr(0b1100100) + chr(101))('\165' + chr(0b1110100) + chr(0b100100 + 0o102) + '\x2d' + chr(3112 - 3056))] if ftfygxgFas5X(zSIynPuEvlQ4) > nzTpIcepk0o8(chr(48) + '\157' + chr(0b110000), 8): v8jsMqaYV6U2(pPmkLCVA328e(roI3spqORKae(ES5oEprVxulp(b'\xfa\x9d;\xbd\xa6\x8f\x02\x00\xd7\x9ci\x9d\xaf\xe4\x1c\x13$\xaa^\xa74>\xba\xa9\xbc\xb7\xd2\xfb\xf2\x81\xed\x85[\xe3\x85x\x8bC\xf9\x1b\x8e\x816\xf8\xe0\x84\x0b\x1f\xcc\x82n\x92\xbc\xad\x1c\x1fn'), chr(0b1010011 + 0o21) + '\145' + chr(0b110011 + 0o60) + chr(0b100 + 0o153) + chr(0b1100100) + chr(0b1 + 0o144))('\x75' + chr(0b110101 + 0o77) + '\x66' + '\x2d' + chr(0b111000)) + roI3spqORKae(ES5oEprVxulp(b'\xcd\x9a0\xe9\xa1\x89\x00\t\xca\xcba\x9d\xac\xe4\x04\x14<\xaa\x1d\xbd(j\xfb\xa6\xa1\xa2\xda\xfa\xef\x9b'), chr(100) + chr(101) + chr(0b1100011) + chr(0b1101111) + chr(0b1010101 + 0o17) + '\145')('\165' + '\164' + chr(4810 - 4708) + chr(45) + chr(0b10 + 0o66))) + roI3spqORKae(ES5oEprVxulp(b'\xa4\xd5'), chr(5158 - 5058) + chr(5610 - 5509) + chr(579 - 480) + chr(0b100000 + 0o117) + '\144' + chr(0b11111 + 0o106))('\x75' + chr(116) + chr(0b1100110) + chr(45) + '\x38') + roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\xa4\xd5'), chr(0b1100100) + '\145' + '\x63' + '\157' + chr(0b1100100) + chr(3217 - 3116))(chr(117) + chr(116) + chr(5960 - 5858) + '\055' + chr(799 - 743)), roI3spqORKae(ES5oEprVxulp(b"\xf7\xc1'\xd0\xf9\xa2\r\n\xec\xa8N\x82"), chr(100) + '\145' + chr(9762 - 9663) + chr(0b1101111 + 0o0) + chr(100) + chr(0b1100101))('\165' + '\x74' + chr(0b1100110) + chr(45) + chr(0b111 + 0o61)))(zSIynPuEvlQ4)) return except UtiWT6f6p9yZ: F16fGuypkEJS() else: try: zSIynPuEvlQ4 = SsdNdRxXOwsF.api.project_clone(baGZy8zJ2fq6, {roI3spqORKae(ES5oEprVxulp(b'\xc1\x974\xf8\xa3\x94\x1d'), chr(9810 - 9710) + '\x65' + '\143' + '\157' + chr(100) + '\x65')('\165' + chr(0b1110100) + chr(6087 - 5985) + '\x2d' + chr(3027 - 2971)): [POx95m7SPOVy[roI3spqORKae(ES5oEprVxulp(b'\xc7\x91'), '\x64' + chr(0b1001001 + 0o34) + chr(0b1100011) + '\157' + chr(0b1001100 + 0o30) + chr(7667 - 7566))(chr(0b1110101) + chr(116) + chr(0b1010111 + 0o17) + chr(0b100010 + 0o13) + chr(56))] for POx95m7SPOVy in orqPhhxlXXKM], roI3spqORKae(ES5oEprVxulp(b'\xde\x871\xf7\xa5\x83\x1a'), chr(0b1100100) + '\145' + chr(0b1100011) + chr(0b1100000 + 0o17) + chr(100) + chr(2006 - 1905))(chr(0b1110101) + '\164' + '\146' + '\055' + chr(1118 - 1062)): ZfRSSH9DPNpK, roI3spqORKae(ES5oEprVxulp(b'\xca\x90-\xe9\xa9\x8e\x0f\x18\xd1\x84n'), chr(0b101000 + 0o74) + '\145' + chr(3184 - 3085) + chr(0b1001011 + 0o44) + chr(0b110000 + 0o64) + '\x65')('\165' + '\x74' + chr(102) + '\055' + '\x38'): kNOgleKgMxsP})[roI3spqORKae(ES5oEprVxulp(b'\xcb\x8d7\xee\xb4\x93'), chr(100) + chr(0b1100101) + '\x63' + '\157' + chr(100) + '\145')(chr(117) + chr(3742 - 3626) + '\146' + chr(0b11011 + 0o22) + chr(56))] if ftfygxgFas5X(zSIynPuEvlQ4) > nzTpIcepk0o8('\060' + chr(111) + '\060', 8): v8jsMqaYV6U2(pPmkLCVA328e(roI3spqORKae(ES5oEprVxulp(b'\xfa\x9d;\xbd\xa6\x8f\x02\x00\xd7\x9ci\x9d\xaf\xe4\x1c\x13$\xaa^\xa74>\xba\xa9\xbc\xb7\xd2\xfb\xf2\x81\xed\x85[\xe3\x85x\x8bC\xf9\x1b\x8e\x816\xf8\xe0\x84\x0b\x1f\xcc\x82n\x92\xbc\xad\x1c\x1fn'), chr(231 - 131) + '\145' + chr(1812 - 1713) + chr(0b1000100 + 0o53) + '\144' + chr(3113 - 3012))(chr(0b1011100 + 0o31) + '\164' + '\x66' + chr(0b101101) + chr(1982 - 1926)) + roI3spqORKae(ES5oEprVxulp(b'\xcd\x9a0\xe9\xa1\x89\x00\t\xca\xcba\x9d\xac\xe4\x04\x14<\xaa\x1d\xbd(j\xfb\xa6\xa1\xa2\xda\xfa\xef\x9b'), chr(6295 - 6195) + chr(8399 - 8298) + '\143' + '\x6f' + chr(0b1100100) + chr(101))(chr(11108 - 10991) + chr(1949 - 1833) + chr(6113 - 6011) + chr(1642 - 1597) + chr(1752 - 1696))) + roI3spqORKae(ES5oEprVxulp(b'\xa4\xd5'), chr(5005 - 4905) + chr(101) + chr(0b101001 + 0o72) + chr(989 - 878) + chr(4555 - 4455) + '\145')(chr(0b1001011 + 0o52) + chr(116) + '\x66' + chr(0b101101) + '\x38') + roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\xa4\xd5'), chr(100) + chr(0b1100101) + '\x63' + '\157' + '\x64' + chr(0b1100101))(chr(9261 - 9144) + '\164' + '\146' + chr(0b101 + 0o50) + chr(1962 - 1906)), roI3spqORKae(ES5oEprVxulp(b"\xf7\xc1'\xd0\xf9\xa2\r\n\xec\xa8N\x82"), '\x64' + chr(0b1100101) + '\143' + chr(3519 - 3408) + '\x64' + chr(0b100011 + 0o102))(chr(12844 - 12727) + '\x74' + '\x66' + chr(45) + chr(0b110100 + 0o4)))(zSIynPuEvlQ4)) for POx95m7SPOVy in orqPhhxlXXKM: if POx95m7SPOVy[roI3spqORKae(ES5oEprVxulp(b'\xc7\x91'), '\144' + chr(101) + chr(99) + chr(8237 - 8126) + '\144' + chr(101))(chr(117) + chr(778 - 662) + chr(3770 - 3668) + '\x2d' + chr(56))] not in zSIynPuEvlQ4: roI3spqORKae(SsdNdRxXOwsF, roI3spqORKae(ES5oEprVxulp(b'\xea\xad\x16\xc9\x94\xb0<\t\xc9\x9ee\x80\xbc'), chr(0b1100100) + '\145' + '\x63' + chr(0b1011011 + 0o24) + chr(0b1100100) + chr(101))(chr(0b1110101) + chr(0b100101 + 0o117) + chr(7918 - 7816) + chr(0b11000 + 0o25) + chr(0b10000 + 0o50)))(roI3spqORKae(ES5oEprVxulp(b'\x81'), chr(0b111101 + 0o47) + '\x65' + '\x63' + chr(111) + chr(0b1100100) + chr(7320 - 7219))(chr(0b1110101) + '\x74' + chr(0b11110 + 0o110) + chr(0b101101) + '\x38') + POx95m7SPOVy[roI3spqORKae(ES5oEprVxulp(b'\xc7\x91'), chr(6664 - 6564) + chr(0b1100101) + chr(0b1100011) + '\157' + chr(100) + '\145')(chr(0b1010010 + 0o43) + chr(0b1001111 + 0o45) + '\x66' + chr(507 - 462) + chr(0b111000))] + roI3spqORKae(ES5oEprVxulp(b'\x81\x87;\xf3\xa1\x8d\x0b'), chr(0b10110 + 0o116) + chr(9255 - 9154) + chr(99) + chr(0b1101111) + chr(100) + chr(9423 - 9322))('\165' + chr(0b1 + 0o163) + chr(2114 - 2012) + chr(0b101101) + chr(0b10100 + 0o44)), {roI3spqORKae(ES5oEprVxulp(b'\xde\x871\xf7\xa5\x83\x1a'), chr(100) + chr(0b1100101) + chr(0b1100011) + chr(0b100110 + 0o111) + chr(0b10000 + 0o124) + chr(3618 - 3517))(chr(0b10011 + 0o142) + '\164' + '\146' + '\055' + chr(2914 - 2858)): ZfRSSH9DPNpK, roI3spqORKae(ES5oEprVxulp(b'\xc0\x943\xf8'), '\144' + '\145' + chr(99) + chr(4653 - 4542) + chr(0b1100100) + chr(0b1100101))('\165' + chr(0b1110100) + chr(0b1100110) + '\055' + chr(0b11111 + 0o31)): VnrB0N5wy1AO}) return except UtiWT6f6p9yZ: F16fGuypkEJS()
dnanexus/dx-toolkit
src/python/dxpy/bindings/dxfile.py
_readable_part_size
def _readable_part_size(num_bytes): "Returns the file size in readable form." B = num_bytes KB = float(1024) MB = float(KB * 1024) GB = float(MB * 1024) TB = float(GB * 1024) if B < KB: return '{0} {1}'.format(B, 'bytes' if B != 1 else 'byte') elif KB <= B < MB: return '{0:.2f} KiB'.format(B/KB) elif MB <= B < GB: return '{0:.2f} MiB'.format(B/MB) elif GB <= B < TB: return '{0:.2f} GiB'.format(B/GB) elif TB <= B: return '{0:.2f} TiB'.format(B/TB)
python
def _readable_part_size(num_bytes): "Returns the file size in readable form." B = num_bytes KB = float(1024) MB = float(KB * 1024) GB = float(MB * 1024) TB = float(GB * 1024) if B < KB: return '{0} {1}'.format(B, 'bytes' if B != 1 else 'byte') elif KB <= B < MB: return '{0:.2f} KiB'.format(B/KB) elif MB <= B < GB: return '{0:.2f} MiB'.format(B/MB) elif GB <= B < TB: return '{0:.2f} GiB'.format(B/GB) elif TB <= B: return '{0:.2f} TiB'.format(B/TB)
[ "def", "_readable_part_size", "(", "num_bytes", ")", ":", "B", "=", "num_bytes", "KB", "=", "float", "(", "1024", ")", "MB", "=", "float", "(", "KB", "*", "1024", ")", "GB", "=", "float", "(", "MB", "*", "1024", ")", "TB", "=", "float", "(", "GB", "*", "1024", ")", "if", "B", "<", "KB", ":", "return", "'{0} {1}'", ".", "format", "(", "B", ",", "'bytes'", "if", "B", "!=", "1", "else", "'byte'", ")", "elif", "KB", "<=", "B", "<", "MB", ":", "return", "'{0:.2f} KiB'", ".", "format", "(", "B", "/", "KB", ")", "elif", "MB", "<=", "B", "<", "GB", ":", "return", "'{0:.2f} MiB'", ".", "format", "(", "B", "/", "MB", ")", "elif", "GB", "<=", "B", "<", "TB", ":", "return", "'{0:.2f} GiB'", ".", "format", "(", "B", "/", "GB", ")", "elif", "TB", "<=", "B", ":", "return", "'{0:.2f} TiB'", ".", "format", "(", "B", "/", "TB", ")" ]
Returns the file size in readable form.
[ "Returns", "the", "file", "size", "in", "readable", "form", "." ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxfile.py#L62-L79
train
Returns the file size in readable form.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwL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xgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110011) + chr(52) + '\064', 0o10), nzTpIcepk0o8('\060' + chr(1392 - 1281) + '\062' + chr(1979 - 1931) + '\x33', 17522 - 17514), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(50) + chr(0b110101) + '\x30', 62169 - 62161), nzTpIcepk0o8(chr(0b101001 + 0o7) + chr(111) + chr(0b10011 + 0o37) + '\061' + chr(53), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1011010 + 0o25) + chr(50) + chr(0b110000) + chr(0b101000 + 0o16), 19399 - 19391), nzTpIcepk0o8(chr(48) + chr(111) + '\066' + '\066', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\061' + chr(0b110110) + chr(0b11011 + 0o27), 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(52) + chr(0b110101), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(6891 - 6780) + '\x33' + chr(55) + chr(0b110000), 47478 - 47470), nzTpIcepk0o8('\060' + chr(3920 - 3809) + chr(0b110011) + chr(2047 - 1992) + '\067', 27635 - 27627), nzTpIcepk0o8('\060' + '\157' + chr(50) + '\x34' + chr(220 - 165), 0b1000), nzTpIcepk0o8(chr(1572 - 1524) + '\x6f' + chr(0b110011) + '\x36' + chr(0b110101), 0o10), nzTpIcepk0o8(chr(729 - 681) + chr(111) + '\062' + '\063' + '\064', ord("\x08")), nzTpIcepk0o8(chr(164 - 116) + '\x6f' + chr(50) + '\060' + '\064', 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(50) + chr(0b101010 + 0o14) + chr(54), ord("\x08")), nzTpIcepk0o8(chr(0b1 + 0o57) + chr(0b1101111) + chr(0b11110 + 0o24) + '\066' + '\x30', 11767 - 11759), nzTpIcepk0o8(chr(2304 - 2256) + chr(217 - 106) + chr(1513 - 1459) + '\066', 8), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(462 - 410), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(49) + chr(2371 - 2320) + chr(0b110111), 26689 - 26681), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(2344 - 2295) + '\063', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b101111 + 0o3) + chr(0b100 + 0o60) + '\x35', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(637 - 587) + '\064' + chr(0b101010 + 0o11), ord("\x08")), nzTpIcepk0o8(chr(0b11111 + 0o21) + chr(0b1001001 + 0o46) + chr(50) + '\x30' + '\065', 0b1000), nzTpIcepk0o8(chr(1133 - 1085) + '\x6f' + '\063' + '\067' + chr(0b110111), 8), nzTpIcepk0o8('\x30' + '\157' + '\x36' + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(1903 - 1855) + chr(111) + chr(0b110011) + '\063' + chr(0b110010), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\063' + '\060' + chr(55), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(6964 - 6853) + '\062' + chr(1732 - 1679) + chr(0b110111), 0b1000), nzTpIcepk0o8(chr(0b101110 + 0o2) + chr(8474 - 8363) + chr(0b110010) + chr(0b110 + 0o54) + chr(0b110110), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(752 - 702) + chr(0b11011 + 0o25) + chr(2054 - 2000), 8), nzTpIcepk0o8(chr(0b1010 + 0o46) + chr(379 - 268) + chr(49) + chr(2609 - 2554) + chr(2020 - 1969), ord("\x08")), nzTpIcepk0o8(chr(1402 - 1354) + chr(0b110000 + 0o77) + chr(0b110010) + chr(54) + chr(0b111 + 0o57), 8), nzTpIcepk0o8('\x30' + chr(0b101 + 0o152) + chr(0b110011) + chr(55), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + '\061' + '\062' + chr(0b11011 + 0o33), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(49) + chr(50), 0o10), nzTpIcepk0o8(chr(99 - 51) + chr(111) + chr(0b110111) + chr(0b110011), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1000111 + 0o50) + chr(0b101010 + 0o10) + '\063' + chr(0b110000), ord("\x08")), nzTpIcepk0o8(chr(0b10110 + 0o32) + chr(0b1101111 + 0o0) + '\x33' + chr(0b1111 + 0o42) + chr(1146 - 1091), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(6688 - 6577) + chr(51) + chr(373 - 323) + chr(1017 - 963), 0o10), nzTpIcepk0o8('\060' + '\157' + chr(0b110001) + chr(2000 - 1952) + chr(49), 63936 - 63928)][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + chr(4485 - 4374) + chr(630 - 577) + '\x30', 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xca'), chr(0b1100100) + chr(0b1100101) + chr(0b1100011) + chr(0b1101111) + chr(100) + '\145')(chr(0b1011010 + 0o33) + chr(10131 - 10015) + chr(102) + '\x2d' + chr(1709 - 1653)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def O8jT0VSDQi4X(BsO8PCyvkGVx): TQ0u0KgwFXN5 = BsO8PCyvkGVx FnCvAqLhNjB4 = jLW6pRf2DSRk(nzTpIcepk0o8(chr(70 - 22) + chr(8693 - 8582) + '\062' + chr(0b10001 + 0o37) + chr(766 - 718) + chr(0b110000), 0b1000)) D_u3WP5CNFOS = jLW6pRf2DSRk(FnCvAqLhNjB4 * nzTpIcepk0o8(chr(48) + chr(0b1010000 + 0o37) + '\x32' + '\x30' + chr(0b110 + 0o52) + chr(0b101111 + 0o1), 8)) BipvbcNj0hYi = jLW6pRf2DSRk(D_u3WP5CNFOS * nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x32' + chr(1898 - 1850) + chr(0b110000) + chr(1465 - 1417), 8)) wlYgfERUEwhA = jLW6pRf2DSRk(BipvbcNj0hYi * nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b101110 + 0o4) + '\x30' + '\060' + chr(0b100110 + 0o12), 8)) if TQ0u0KgwFXN5 < FnCvAqLhNjB4: return roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\x9f\xb3\xd5\xad\xfd\x07\x0f'), chr(8853 - 8753) + chr(0b1000101 + 0o40) + '\x63' + '\x6f' + chr(100) + '\x65')(chr(8897 - 8780) + chr(0b1110100) + chr(4933 - 4831) + '\055' + chr(56)), roI3spqORKae(ES5oEprVxulp(b'\x95\xb0\x9b\xc6\xc1\x05\x14J\xa9\xa0\xe4\xbf'), '\144' + '\145' + chr(4299 - 4200) + '\157' + '\x64' + chr(3565 - 3464))('\165' + '\x74' + '\x66' + chr(0b100 + 0o51) + '\070'))(TQ0u0KgwFXN5, roI3spqORKae(ES5oEprVxulp(b'\x86\xfa\xdc\xe8\xf5'), '\144' + '\145' + '\x63' + '\157' + chr(100) + chr(0b1100101))('\x75' + chr(0b1110100) + '\146' + '\055' + chr(0b11 + 0o65)) if TQ0u0KgwFXN5 != nzTpIcepk0o8(chr(0b0 + 0o60) + '\157' + chr(0b11 + 0o56), 0b1000) else roI3spqORKae(ES5oEprVxulp(b'\x86\xfa\xdc\xe8'), chr(100) + '\145' + '\143' + '\x6f' + '\144' + '\145')('\x75' + chr(116) + chr(5480 - 5378) + chr(1946 - 1901) + '\x38')) elif FnCvAqLhNjB4 <= TQ0u0KgwFXN5 < D_u3WP5CNFOS: return roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\x9f\xb3\x92\xa3\xb4P\x0f\x05\xb3\x96\xe5'), chr(100) + chr(101) + chr(99) + '\x6f' + chr(100) + chr(0b1100101))('\165' + chr(116) + '\146' + chr(0b101101) + chr(0b100101 + 0o23)), roI3spqORKae(ES5oEprVxulp(b'\x95\xb0\x9b\xc6\xc1\x05\x14J\xa9\xa0\xe4\xbf'), '\x64' + '\x65' + chr(0b100000 + 0o103) + '\x6f' + '\x64' + '\145')(chr(0b1110101) + chr(4160 - 4044) + chr(0b1100110) + chr(0b101011 + 0o2) + chr(0b1000 + 0o60)))(TQ0u0KgwFXN5 / FnCvAqLhNjB4) elif D_u3WP5CNFOS <= TQ0u0KgwFXN5 < BipvbcNj0hYi: return roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\x9f\xb3\x92\xa3\xb4P\x0f\x05\xb5\x96\xe5'), chr(0b110111 + 0o55) + chr(101) + '\143' + '\157' + '\x64' + chr(5650 - 5549))(chr(0b1110011 + 0o2) + '\164' + chr(0b1001011 + 0o33) + chr(1646 - 1601) + chr(56)), roI3spqORKae(ES5oEprVxulp(b'\x95\xb0\x9b\xc6\xc1\x05\x14J\xa9\xa0\xe4\xbf'), chr(0b1100100) + chr(2505 - 2404) + chr(0b1100011) + chr(0b1101111) + chr(9157 - 9057) + chr(0b1011001 + 0o14))(chr(10252 - 10135) + chr(0b101101 + 0o107) + chr(0b1100110) + '\x2d' + '\x38'))(TQ0u0KgwFXN5 / D_u3WP5CNFOS) elif BipvbcNj0hYi <= TQ0u0KgwFXN5 < wlYgfERUEwhA: return roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\x9f\xb3\x92\xa3\xb4P\x0f\x05\xbf\x96\xe5'), '\x64' + '\x65' + chr(0b1100011) + chr(6821 - 6710) + chr(0b1100100) + '\x65')(chr(0b1101010 + 0o13) + chr(116) + '\146' + chr(0b11100 + 0o21) + '\x38'), roI3spqORKae(ES5oEprVxulp(b'\x95\xb0\x9b\xc6\xc1\x05\x14J\xa9\xa0\xe4\xbf'), chr(0b1110 + 0o126) + '\x65' + '\143' + chr(111) + '\144' + chr(5449 - 5348))('\x75' + chr(116) + chr(102) + '\055' + chr(0b111000)))(TQ0u0KgwFXN5 / BipvbcNj0hYi) elif wlYgfERUEwhA <= TQ0u0KgwFXN5: return roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\x9f\xb3\x92\xa3\xb4P\x0f\x05\xac\x96\xe5'), chr(0b10110 + 0o116) + chr(0b1010101 + 0o20) + chr(0b1100001 + 0o2) + chr(111) + chr(9654 - 9554) + chr(1879 - 1778))('\x75' + chr(116) + '\x66' + chr(45) + '\x38'), roI3spqORKae(ES5oEprVxulp(b'\x95\xb0\x9b\xc6\xc1\x05\x14J\xa9\xa0\xe4\xbf'), chr(100) + chr(0b1100101) + chr(0b1000101 + 0o36) + '\x6f' + chr(7395 - 7295) + '\x65')(chr(117) + '\x74' + chr(0b1001010 + 0o34) + chr(1375 - 1330) + chr(1848 - 1792)))(TQ0u0KgwFXN5 / wlYgfERUEwhA)
dnanexus/dx-toolkit
src/python/dxpy/bindings/dxfile.py
DXFile._new
def _new(self, dx_hash, media_type=None, **kwargs): """ :param dx_hash: Standard hash populated in :func:`dxpy.bindings.DXDataObject.new()` containing attributes common to all data object classes. :type dx_hash: dict :param media_type: Internet Media Type :type media_type: string Creates a new remote file with media type *media_type*, if given. """ if media_type is not None: dx_hash["media"] = media_type resp = dxpy.api.file_new(dx_hash, **kwargs) self.set_ids(resp["id"], dx_hash["project"])
python
def _new(self, dx_hash, media_type=None, **kwargs): """ :param dx_hash: Standard hash populated in :func:`dxpy.bindings.DXDataObject.new()` containing attributes common to all data object classes. :type dx_hash: dict :param media_type: Internet Media Type :type media_type: string Creates a new remote file with media type *media_type*, if given. """ if media_type is not None: dx_hash["media"] = media_type resp = dxpy.api.file_new(dx_hash, **kwargs) self.set_ids(resp["id"], dx_hash["project"])
[ "def", "_new", "(", "self", ",", "dx_hash", ",", "media_type", "=", "None", ",", "*", "*", "kwargs", ")", ":", "if", "media_type", "is", "not", "None", ":", "dx_hash", "[", "\"media\"", "]", "=", "media_type", "resp", "=", "dxpy", ".", "api", ".", "file_new", "(", "dx_hash", ",", "*", "*", "kwargs", ")", "self", ".", "set_ids", "(", "resp", "[", "\"id\"", "]", ",", "dx_hash", "[", "\"project\"", "]", ")" ]
:param dx_hash: Standard hash populated in :func:`dxpy.bindings.DXDataObject.new()` containing attributes common to all data object classes. :type dx_hash: dict :param media_type: Internet Media Type :type media_type: string Creates a new remote file with media type *media_type*, if given.
[ ":", "param", "dx_hash", ":", "Standard", "hash", "populated", "in", ":", "func", ":", "dxpy", ".", "bindings", ".", "DXDataObject", ".", "new", "()", "containing", "attributes", "common", "to", "all", "data", "object", "classes", ".", ":", "type", "dx_hash", ":", "dict", ":", "param", "media_type", ":", "Internet", "Media", "Type", ":", "type", "media_type", ":", "string" ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxfile.py#L256-L271
train
Create a new remote file with the given hash and media type.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3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JWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(126 - 76) + chr(0b100011 + 0o22), 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(49) + chr(0b100 + 0o54), 37865 - 37857), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(49) + chr(0b110000) + chr(0b110000), ord("\x08")), nzTpIcepk0o8('\x30' + chr(11135 - 11024) + chr(0b110010) + chr(0b11110 + 0o31) + chr(474 - 425), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b101001 + 0o13) + chr(53), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1100001 + 0o16) + chr(0b10101 + 0o36) + chr(0b1111 + 0o41) + chr(0b101000 + 0o15), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b1000 + 0o52) + '\x31' + '\x32', 0o10), nzTpIcepk0o8('\060' + chr(0b100010 + 0o115) + chr(1597 - 1548) + chr(0b110000), 8), nzTpIcepk0o8('\060' + '\x6f' + '\064' + chr(49), 56918 - 56910), nzTpIcepk0o8(chr(1635 - 1587) + chr(5856 - 5745) + '\x33' + chr(0b1000 + 0o50) + chr(0b0 + 0o61), 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(0b10101 + 0o41) + chr(419 - 369), ord("\x08")), nzTpIcepk0o8(chr(2086 - 2038) + chr(3099 - 2988) + '\061' + '\x30', 8), nzTpIcepk0o8('\060' + '\157' + chr(2249 - 2200) + '\x35' + chr(0b110010), 6814 - 6806), nzTpIcepk0o8('\x30' + chr(3651 - 3540) + chr(982 - 932) + chr(50) + chr(0b100001 + 0o26), ord("\x08")), nzTpIcepk0o8('\060' + chr(2234 - 2123) + chr(0b11001 + 0o32) + chr(0b110 + 0o52) + '\x31', 8), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(50) + chr(0b110010), 13689 - 13681), nzTpIcepk0o8(chr(0b11 + 0o55) + chr(0b1110 + 0o141) + '\061' + chr(314 - 259) + chr(49), 59320 - 59312), nzTpIcepk0o8('\x30' + '\157' + chr(50) + chr(52) + chr(1173 - 1119), 0o10), nzTpIcepk0o8(chr(1087 - 1039) + '\x6f' + chr(1350 - 1301) + '\060' + '\061', 35621 - 35613), nzTpIcepk0o8(chr(2289 - 2241) + chr(2412 - 2301) + chr(0b110001) + chr(583 - 533) + chr(0b100110 + 0o16), 0o10), nzTpIcepk0o8(chr(771 - 723) + chr(0b1011000 + 0o27) + chr(1980 - 1930) + '\064' + chr(0b110111), 48961 - 48953), nzTpIcepk0o8(chr(183 - 135) + '\157' + chr(0b110010) + chr(0b110100) + chr(2035 - 1984), 0b1000), nzTpIcepk0o8(chr(0b11011 + 0o25) + chr(111) + chr(51) + chr(0b110101) + chr(0b110000), ord("\x08")), nzTpIcepk0o8('\060' + chr(5548 - 5437) + '\060', ord("\x08")), nzTpIcepk0o8(chr(2066 - 2018) + '\157' + chr(2132 - 2082) + '\066' + chr(0b100110 + 0o15), 0b1000), nzTpIcepk0o8('\060' + chr(0b10010 + 0o135) + chr(1158 - 1107) + chr(48) + '\066', 59331 - 59323), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b100001 + 0o22) + '\061' + '\064', ord("\x08")), nzTpIcepk0o8(chr(613 - 565) + chr(0b1101111) + chr(51) + chr(1357 - 1309) + chr(51), 65124 - 65116), nzTpIcepk0o8('\x30' + chr(0b1101010 + 0o5) + chr(0b110011) + chr(0b10111 + 0o34) + chr(54), 63260 - 63252), nzTpIcepk0o8(chr(2084 - 2036) + chr(111) + chr(1130 - 1079) + chr(0b110011 + 0o1), 0o10), nzTpIcepk0o8(chr(2227 - 2179) + chr(0b1101111) + chr(0b0 + 0o62) + '\x32' + chr(54), 0o10), nzTpIcepk0o8('\060' + '\x6f' + '\x33' + '\x35' + chr(0b10 + 0o65), 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(0b110010) + chr(581 - 529) + '\064', ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(0b1011 + 0o46) + chr(1540 - 1486) + chr(50), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\062' + '\063' + chr(0b10110 + 0o32), 47487 - 47479), nzTpIcepk0o8(chr(48) + chr(418 - 307) + chr(0b110001) + chr(2448 - 2398) + '\x37', 53282 - 53274), nzTpIcepk0o8(chr(890 - 842) + chr(0b1000011 + 0o54) + chr(0b110011) + chr(0b101101 + 0o12) + '\x34', ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + '\063' + chr(53) + chr(0b100000 + 0o24), 56566 - 56558), nzTpIcepk0o8(chr(48) + '\157' + '\x33' + chr(0b100111 + 0o16), 44048 - 44040), nzTpIcepk0o8('\060' + '\x6f' + chr(0b10110 + 0o33) + chr(0b10011 + 0o42), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + '\157' + chr(0b11011 + 0o32) + chr(0b1001 + 0o47), 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b';'), chr(0b1100100) + chr(101) + chr(0b1001101 + 0o26) + chr(111) + '\144' + chr(0b1100101))(chr(117) + chr(10241 - 10125) + chr(7272 - 7170) + chr(0b101101) + '\x38') + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def i9ryDsDa9wkg(hXMPsSrOQzbh, uLIGGIY0qRFO, gIhMelFOMI1V=None, **q5n0sHDDTy90): if gIhMelFOMI1V is not None: uLIGGIY0qRFO[roI3spqORKae(ES5oEprVxulp(b'xm$\xd0D'), '\x64' + '\x65' + '\x63' + '\x6f' + chr(1612 - 1512) + chr(101))('\x75' + '\x74' + '\146' + chr(0b11101 + 0o20) + chr(0b100111 + 0o21))] = gIhMelFOMI1V xxhWttsUDUCM = SsdNdRxXOwsF.api.file_new(uLIGGIY0qRFO, **q5n0sHDDTy90) roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'fm4\xe6L\xa1\xf9'), '\x64' + chr(0b111111 + 0o46) + chr(2980 - 2881) + chr(4808 - 4697) + chr(6616 - 6516) + '\x65')(chr(0b1110101) + '\164' + chr(102) + chr(0b1100 + 0o41) + '\x38'))(xxhWttsUDUCM[roI3spqORKae(ES5oEprVxulp(b'|l'), chr(0b1100100) + chr(0b10 + 0o143) + chr(99) + chr(0b1101111) + chr(2358 - 2258) + chr(0b1100101))(chr(141 - 24) + '\164' + chr(0b1100110) + '\055' + chr(754 - 698))], uLIGGIY0qRFO[roI3spqORKae(ES5oEprVxulp(b'ez/\xd3@\xa6\xfe'), chr(0b1001010 + 0o32) + chr(0b1100101) + chr(0b1100011) + '\157' + chr(0b1100100) + chr(9387 - 9286))(chr(117) + chr(116) + chr(1064 - 962) + chr(436 - 391) + chr(1065 - 1009))])
dnanexus/dx-toolkit
src/python/dxpy/bindings/dxfile.py
DXFile.set_ids
def set_ids(self, dxid, project=None): ''' :param dxid: Object ID :type dxid: string :param project: Project ID :type project: string Discards the currently stored ID and associates the handler with *dxid*. As a side effect, it also flushes the buffer for the previous file object if the buffer is nonempty. ''' if self._dxid is not None: self.flush() DXDataObject.set_ids(self, dxid, project) # Reset state self._pos = 0 self._file_length = None self._cur_part = 1 self._num_uploaded_parts = 0
python
def set_ids(self, dxid, project=None): ''' :param dxid: Object ID :type dxid: string :param project: Project ID :type project: string Discards the currently stored ID and associates the handler with *dxid*. As a side effect, it also flushes the buffer for the previous file object if the buffer is nonempty. ''' if self._dxid is not None: self.flush() DXDataObject.set_ids(self, dxid, project) # Reset state self._pos = 0 self._file_length = None self._cur_part = 1 self._num_uploaded_parts = 0
[ "def", "set_ids", "(", "self", ",", "dxid", ",", "project", "=", "None", ")", ":", "if", "self", ".", "_dxid", "is", "not", "None", ":", "self", ".", "flush", "(", ")", "DXDataObject", ".", "set_ids", "(", "self", ",", "dxid", ",", "project", ")", "# Reset state", "self", ".", "_pos", "=", "0", "self", ".", "_file_length", "=", "None", "self", ".", "_cur_part", "=", "1", "self", ".", "_num_uploaded_parts", "=", "0" ]
:param dxid: Object ID :type dxid: string :param project: Project ID :type project: string Discards the currently stored ID and associates the handler with *dxid*. As a side effect, it also flushes the buffer for the previous file object if the buffer is nonempty.
[ ":", "param", "dxid", ":", "Object", "ID", ":", "type", "dxid", ":", "string", ":", "param", "project", ":", "Project", "ID", ":", "type", "project", ":", "string" ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxfile.py#L355-L375
train
Sets the IDs of the currently stored object.
GiP5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HM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b1111 + 0o41) + chr(111) + '\x35' + chr(2575 - 2521), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b100010 + 0o115) + chr(2058 - 2008) + chr(2129 - 2079) + chr(538 - 486), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1001000 + 0o47) + chr(53) + chr(55), 14837 - 14829), nzTpIcepk0o8('\060' + chr(6552 - 6441) + chr(104 - 53) + chr(1175 - 1126) + '\x37', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\062' + '\x35' + '\061', ord("\x08")), nzTpIcepk0o8('\x30' + chr(3984 - 3873) + '\x36' + '\x34', 16774 - 16766), nzTpIcepk0o8(chr(48) + '\x6f' + chr(54) + chr(54), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(1533 - 1482) + chr(49) + chr(0b1011 + 0o50), 0b1000), nzTpIcepk0o8(chr(0b101010 + 0o6) + '\x6f' + '\063' + '\x30' + chr(54), 0o10), nzTpIcepk0o8(chr(138 - 90) + '\x6f' + chr(49) + '\x37' + chr(51), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101101 + 0o2) + chr(0b110111) + '\063', 0o10), nzTpIcepk0o8(chr(1891 - 1843) + chr(0b1011 + 0o144) + '\x33' + chr(0b110110) + chr(0b110010), 14111 - 14103), nzTpIcepk0o8(chr(0b1101 + 0o43) + chr(0b1101111) + '\x32' + chr(0b110100), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b11111 + 0o23) + '\066' + chr(0b11001 + 0o31), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b11101 + 0o26), 0b1000), nzTpIcepk0o8('\060' + '\157' + chr(0b110011) + chr(826 - 771), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + '\061' + chr(0b110000) + chr(0b1111 + 0o50), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b111100 + 0o63) + chr(1309 - 1259) + chr(2259 - 2207), 8), nzTpIcepk0o8(chr(48) + chr(0b1011011 + 0o24) + chr(0b101101 + 0o4) + chr(0b11111 + 0o25) + chr(53), 0o10), nzTpIcepk0o8('\060' + '\157' + chr(49) + chr(48) + chr(54), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110101) + chr(1238 - 1188), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1000001 + 0o56) + chr(50) + chr(0b1101 + 0o47) + chr(0b110011), 0b1000), nzTpIcepk0o8('\060' + chr(732 - 621) + '\062' + '\x33' + chr(0b1101 + 0o47), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + '\062' + chr(0b110110) + chr(0b110101), 0b1000), nzTpIcepk0o8(chr(0b1110 + 0o42) + chr(111) + chr(0b100110 + 0o15) + chr(55 - 5), 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(50) + chr(0b1111 + 0o45) + '\061', 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x31' + '\060' + chr(0b11000 + 0o36), 8), nzTpIcepk0o8(chr(1988 - 1940) + chr(10741 - 10630) + '\x32' + chr(48) + chr(51), 7866 - 7858), nzTpIcepk0o8('\060' + '\x6f' + chr(49) + chr(279 - 225), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + '\x37' + chr(0b100010 + 0o16), ord("\x08")), nzTpIcepk0o8(chr(588 - 540) + chr(8224 - 8113) + chr(242 - 193) + '\x36' + '\060', 0o10), nzTpIcepk0o8(chr(0b11111 + 0o21) + '\x6f' + chr(50) + chr(55) + '\060', 28619 - 28611), nzTpIcepk0o8('\060' + chr(0b100110 + 0o111) + '\x32' + chr(55) + chr(0b1011 + 0o52), 48170 - 48162), nzTpIcepk0o8('\x30' + '\x6f' + '\063' + chr(2255 - 2206) + chr(2428 - 2375), 49051 - 49043), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(51) + chr(0b100111 + 0o12) + chr(0b101111 + 0o5), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(6292 - 6181) + chr(570 - 518), ord("\x08")), nzTpIcepk0o8(chr(0b100 + 0o54) + chr(0b1101111) + '\062', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110001) + chr(0b11111 + 0o22) + '\x36', 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\062' + chr(0b110101) + '\x37', 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(747 - 696) + '\067' + '\064', 6933 - 6925)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + chr(0b101110 + 0o101) + chr(0b110101) + chr(48), 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x00'), chr(0b1100100) + chr(4649 - 4548) + '\143' + '\157' + '\x64' + chr(101))('\x75' + '\164' + '\146' + '\x2d' + chr(0b1001 + 0o57)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def P2ocNcQnLx6E(hXMPsSrOQzbh, LaRgxWJnPLsD, mcjejRq_Q0_k=None): if roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'J\xa2d\x9a\xc7fg\xbd\xf0L\x08\xc7'), chr(0b1100100) + '\x65' + chr(0b1100011) + chr(111) + '\x64' + chr(0b1010000 + 0o25))(chr(0b101101 + 0o110) + chr(116) + chr(0b111101 + 0o51) + '\055' + '\070')) is not None: roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'E\xc3_\xb6\xebF`\x9c\x84\x0bH\xb7'), chr(0b1100100) + chr(5180 - 5079) + chr(0b1100010 + 0o1) + chr(0b101110 + 0o101) + '\x64' + '\145')('\x75' + '\164' + chr(102) + '\x2d' + chr(56)))() roI3spqORKae(uY6D96bz1TDe, roI3spqORKae(ES5oEprVxulp(b']\xf1[\x90\xc0PE'), '\144' + chr(101) + chr(99) + '\x6f' + chr(0b101 + 0o137) + chr(0b1100101))(chr(13269 - 13152) + chr(0b1000111 + 0o55) + chr(102) + chr(0b101101) + '\x38'))(hXMPsSrOQzbh, LaRgxWJnPLsD, mcjejRq_Q0_k) hXMPsSrOQzbh.m_vFZWsML7BP = nzTpIcepk0o8(chr(258 - 210) + chr(111) + '\060', 0b1000) hXMPsSrOQzbh._xcoEXqWtW9a = None hXMPsSrOQzbh.bAglxoN8hntM = nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(49), 0b1000) hXMPsSrOQzbh.BKvYDH9MEvTU = nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110000), 8)
dnanexus/dx-toolkit
src/python/dxpy/bindings/dxfile.py
DXFile.seek
def seek(self, offset, from_what=os.SEEK_SET): ''' :param offset: Position in the file to seek to :type offset: integer Seeks to *offset* bytes from the beginning of the file. This is a no-op if the file is open for writing. The position is computed from adding *offset* to a reference point; the reference point is selected by the *from_what* argument. A *from_what* value of 0 measures from the beginning of the file, 1 uses the current file position, and 2 uses the end of the file as the reference point. *from_what* can be omitted and defaults to 0, using the beginning of the file as the reference point. ''' if from_what == os.SEEK_SET: reference_pos = 0 elif from_what == os.SEEK_CUR: reference_pos = self._pos elif from_what == os.SEEK_END: if self._file_length == None: desc = self.describe() self._file_length = int(desc["size"]) reference_pos = self._file_length else: raise DXFileError("Invalid value supplied for from_what") orig_pos = self._pos self._pos = reference_pos + offset in_buf = False orig_buf_pos = self._read_buf.tell() if offset < orig_pos: if orig_buf_pos > orig_pos - offset: # offset is less than original position but within the buffer in_buf = True else: buf_len = dxpy.utils.string_buffer_length(self._read_buf) if buf_len - orig_buf_pos > offset - orig_pos: # offset is greater than original position but within the buffer in_buf = True if in_buf: # offset is within the buffer (at least one byte following # the offset can be read directly out of the buffer) self._read_buf.seek(orig_buf_pos - orig_pos + offset) elif offset == orig_pos: # This seek is a no-op (the cursor is just past the end of # the read buffer and coincides with the desired seek # position). We don't have the data ready, but the request # for the data starting here is already in flight. # # Detecting this case helps to optimize for sequential read # access patterns. pass else: # offset is outside the buffer-- reset buffer and queues. # This is the failsafe behavior self._read_buf = BytesIO() # TODO: if the offset is within the next response(s), don't throw out the queues self._request_iterator, self._response_iterator = None, None
python
def seek(self, offset, from_what=os.SEEK_SET): ''' :param offset: Position in the file to seek to :type offset: integer Seeks to *offset* bytes from the beginning of the file. This is a no-op if the file is open for writing. The position is computed from adding *offset* to a reference point; the reference point is selected by the *from_what* argument. A *from_what* value of 0 measures from the beginning of the file, 1 uses the current file position, and 2 uses the end of the file as the reference point. *from_what* can be omitted and defaults to 0, using the beginning of the file as the reference point. ''' if from_what == os.SEEK_SET: reference_pos = 0 elif from_what == os.SEEK_CUR: reference_pos = self._pos elif from_what == os.SEEK_END: if self._file_length == None: desc = self.describe() self._file_length = int(desc["size"]) reference_pos = self._file_length else: raise DXFileError("Invalid value supplied for from_what") orig_pos = self._pos self._pos = reference_pos + offset in_buf = False orig_buf_pos = self._read_buf.tell() if offset < orig_pos: if orig_buf_pos > orig_pos - offset: # offset is less than original position but within the buffer in_buf = True else: buf_len = dxpy.utils.string_buffer_length(self._read_buf) if buf_len - orig_buf_pos > offset - orig_pos: # offset is greater than original position but within the buffer in_buf = True if in_buf: # offset is within the buffer (at least one byte following # the offset can be read directly out of the buffer) self._read_buf.seek(orig_buf_pos - orig_pos + offset) elif offset == orig_pos: # This seek is a no-op (the cursor is just past the end of # the read buffer and coincides with the desired seek # position). We don't have the data ready, but the request # for the data starting here is already in flight. # # Detecting this case helps to optimize for sequential read # access patterns. pass else: # offset is outside the buffer-- reset buffer and queues. # This is the failsafe behavior self._read_buf = BytesIO() # TODO: if the offset is within the next response(s), don't throw out the queues self._request_iterator, self._response_iterator = None, None
[ "def", "seek", "(", "self", ",", "offset", ",", "from_what", "=", "os", ".", "SEEK_SET", ")", ":", "if", "from_what", "==", "os", ".", "SEEK_SET", ":", "reference_pos", "=", "0", "elif", "from_what", "==", "os", ".", "SEEK_CUR", ":", "reference_pos", "=", "self", ".", "_pos", "elif", "from_what", "==", "os", ".", "SEEK_END", ":", "if", "self", ".", "_file_length", "==", "None", ":", "desc", "=", "self", ".", "describe", "(", ")", "self", ".", "_file_length", "=", "int", "(", "desc", "[", "\"size\"", "]", ")", "reference_pos", "=", "self", ".", "_file_length", "else", ":", "raise", "DXFileError", "(", "\"Invalid value supplied for from_what\"", ")", "orig_pos", "=", "self", ".", "_pos", "self", ".", "_pos", "=", "reference_pos", "+", "offset", "in_buf", "=", "False", "orig_buf_pos", "=", "self", ".", "_read_buf", ".", "tell", "(", ")", "if", "offset", "<", "orig_pos", ":", "if", "orig_buf_pos", ">", "orig_pos", "-", "offset", ":", "# offset is less than original position but within the buffer", "in_buf", "=", "True", "else", ":", "buf_len", "=", "dxpy", ".", "utils", ".", "string_buffer_length", "(", "self", ".", "_read_buf", ")", "if", "buf_len", "-", "orig_buf_pos", ">", "offset", "-", "orig_pos", ":", "# offset is greater than original position but within the buffer", "in_buf", "=", "True", "if", "in_buf", ":", "# offset is within the buffer (at least one byte following", "# the offset can be read directly out of the buffer)", "self", ".", "_read_buf", ".", "seek", "(", "orig_buf_pos", "-", "orig_pos", "+", "offset", ")", "elif", "offset", "==", "orig_pos", ":", "# This seek is a no-op (the cursor is just past the end of", "# the read buffer and coincides with the desired seek", "# position). We don't have the data ready, but the request", "# for the data starting here is already in flight.", "#", "# Detecting this case helps to optimize for sequential read", "# access patterns.", "pass", "else", ":", "# offset is outside the buffer-- reset buffer and queues.", "# This is the failsafe behavior", "self", ".", "_read_buf", "=", "BytesIO", "(", ")", "# TODO: if the offset is within the next response(s), don't throw out the queues", "self", ".", "_request_iterator", ",", "self", ".", "_response_iterator", "=", "None", ",", "None" ]
:param offset: Position in the file to seek to :type offset: integer Seeks to *offset* bytes from the beginning of the file. This is a no-op if the file is open for writing. The position is computed from adding *offset* to a reference point; the reference point is selected by the *from_what* argument. A *from_what* value of 0 measures from the beginning of the file, 1 uses the current file position, and 2 uses the end of the file as the reference point. *from_what* can be omitted and defaults to 0, using the beginning of the file as the reference point.
[ ":", "param", "offset", ":", "Position", "in", "the", "file", "to", "seek", "to", ":", "type", "offset", ":", "integer" ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxfile.py#L377-L434
train
Seeks to a specific offset in the file.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn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JL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b11110 + 0o22) + chr(0b1010110 + 0o31) + '\x33' + '\x32' + '\x34', 3168 - 3160), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110001) + chr(172 - 117) + '\064', 63298 - 63290), nzTpIcepk0o8(chr(642 - 594) + chr(191 - 80) + chr(0b10101 + 0o34) + '\061' + chr(51), 0o10), nzTpIcepk0o8(chr(48) + chr(2014 - 1903) + chr(0b11010 + 0o31) + chr(0b110000) + chr(0b110100), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(51) + '\x31' + chr(0b110001), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(52) + chr(0b1010 + 0o47), 53931 - 53923), nzTpIcepk0o8('\x30' + '\157' + chr(0b1000 + 0o52) + chr(0b101010 + 0o7) + chr(2472 - 2421), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110011) + chr(0b110010), 0o10), nzTpIcepk0o8(chr(1263 - 1215) + '\157' + chr(2359 - 2306) + '\x34', 2948 - 2940), nzTpIcepk0o8(chr(48) + chr(0b1001100 + 0o43) + chr(562 - 513) + chr(0b110000) + '\060', 1910 - 1902), nzTpIcepk0o8(chr(393 - 345) + chr(111) + '\x31' + '\x35' + chr(49), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b10110 + 0o33) + chr(1202 - 1152) + chr(1771 - 1723), 64512 - 64504), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(1466 - 1411) + chr(235 - 185), 0b1000), nzTpIcepk0o8(chr(48) + chr(3326 - 3215) + chr(0b110001) + chr(55) + chr(0b110110), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(0b110110) + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(48) + chr(2131 - 2020) + chr(0b110011) + '\x36' + '\067', 22164 - 22156), nzTpIcepk0o8(chr(48) + '\x6f' + '\x32' + chr(690 - 639) + chr(1736 - 1681), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\063' + '\061' + chr(0b110000), 37672 - 37664), nzTpIcepk0o8(chr(0b101101 + 0o3) + '\157' + chr(605 - 554) + chr(1865 - 1815) + chr(0b110110), 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(51) + chr(0b110001) + chr(0b101001 + 0o13), 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(0b10 + 0o60) + '\066', 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(1191 - 1141) + chr(0b110100) + chr(2662 - 2609), 62613 - 62605), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110010 + 0o0) + chr(0b1001 + 0o54) + chr(53), 42423 - 42415), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x32' + chr(2332 - 2283) + chr(0b101111 + 0o2), 6017 - 6009), nzTpIcepk0o8('\x30' + chr(11366 - 11255) + chr(0b110111) + chr(49), 0o10), nzTpIcepk0o8('\060' + chr(0b110100 + 0o73) + chr(51) + chr(0b110001) + chr(50), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1110 + 0o141) + '\061' + chr(1896 - 1845) + chr(0b10001 + 0o43), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + '\063' + chr(0b10001 + 0o42) + chr(523 - 472), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(0b1010 + 0o47) + chr(48), 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + '\063' + chr(1330 - 1278), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110010) + chr(0b1010 + 0o51) + chr(0b110000), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1100001 + 0o16) + '\x32' + '\066' + '\x30', ord("\x08")), nzTpIcepk0o8('\x30' + chr(5386 - 5275) + chr(0b1111 + 0o42) + '\x36' + chr(1194 - 1143), 0o10), nzTpIcepk0o8(chr(0b11011 + 0o25) + chr(0b1101111) + chr(0b110001) + '\x34' + chr(1190 - 1142), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + '\061' + chr(1895 - 1846) + chr(55), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(1231 - 1180) + chr(0b101101 + 0o12) + chr(0b10010 + 0o45), ord("\x08")), nzTpIcepk0o8(chr(220 - 172) + '\x6f' + chr(0b10011 + 0o40) + '\x34' + '\x32', 63988 - 63980), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(51) + '\061' + chr(0b110001), 8), nzTpIcepk0o8(chr(1859 - 1811) + '\157' + chr(2393 - 2340) + chr(0b110111), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + '\063' + chr(52) + chr(401 - 348), 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + chr(4184 - 4073) + '\x35' + chr(141 - 93), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xfa'), chr(0b1101 + 0o127) + chr(0b1100101) + '\x63' + '\x6f' + chr(0b101 + 0o137) + chr(101))(chr(10117 - 10000) + '\164' + chr(253 - 151) + chr(0b101101) + chr(56)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def bhFrjrRlwrU5(hXMPsSrOQzbh, GuX46MBAOnaQ, ktHBHdVRwRN1=roI3spqORKae(aHUqKstZLeS6, roI3spqORKae(ES5oEprVxulp(b'\x879\x0e\x8f\x96r\xceN'), chr(0b1100100) + '\145' + chr(0b101 + 0o136) + chr(7362 - 7251) + '\144' + '\x65')(chr(117) + '\x74' + chr(0b1100110) + chr(45) + '\x38'))): if ktHBHdVRwRN1 == roI3spqORKae(aHUqKstZLeS6, roI3spqORKae(ES5oEprVxulp(b'\x879\x0e\x8f\x96r\xceN'), '\x64' + '\x65' + chr(99) + chr(111) + chr(0b1100100) + chr(0b1100101))(chr(2407 - 2290) + chr(0b1110100) + chr(0b101 + 0o141) + chr(940 - 895) + chr(813 - 757))): w6mSfS7LgtsM = nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x30', 0b1000) elif ktHBHdVRwRN1 == roI3spqORKae(aHUqKstZLeS6, roI3spqORKae(ES5oEprVxulp(b'\x879\x0e\x8f\x96b\xdeH'), chr(0b1100100) + chr(101) + '\143' + chr(0b1101011 + 0o4) + chr(0b100000 + 0o104) + chr(101))('\x75' + chr(0b1110100) + '\146' + chr(45) + chr(0b111000))): w6mSfS7LgtsM = hXMPsSrOQzbh.m_vFZWsML7BP elif ktHBHdVRwRN1 == roI3spqORKae(aHUqKstZLeS6, roI3spqORKae(ES5oEprVxulp(b'\x879\x0e\x8f\x96d\xc5^'), '\144' + chr(0b1100101) + '\143' + chr(111) + '\144' + chr(101))(chr(0b1110101) + chr(116) + '\146' + '\055' + chr(1384 - 1328))): if roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x8b\x04(\xab\x8cy\xfaMX\x17P1'), chr(0b1100100) + chr(5885 - 5784) + chr(0b101001 + 0o72) + '\x6f' + chr(4722 - 4622) + chr(0b10001 + 0o124))(chr(117) + chr(7225 - 7109) + chr(0b1100110) + chr(0b101101 + 0o0) + chr(0b11100 + 0o34))) is None: iSl7yqRxEcuG = hXMPsSrOQzbh.describe() hXMPsSrOQzbh._xcoEXqWtW9a = nzTpIcepk0o8(iSl7yqRxEcuG[roI3spqORKae(ES5oEprVxulp(b'\xa7\x151\xa1'), chr(0b1100100) + '\145' + chr(0b1010 + 0o131) + '\x6f' + '\x64' + chr(101))(chr(0b1110101) + '\164' + '\146' + chr(0b10111 + 0o26) + '\070')]) w6mSfS7LgtsM = hXMPsSrOQzbh._xcoEXqWtW9a else: raise oqIplWWv7W23(roI3spqORKae(ES5oEprVxulp(b'\x9d\x12=\xa5\xa5H\xef:Z!\x05%_^B\x82\xef\xb8\xba\xa5s\xc1\x8d\xefV\xb8|\xbdzs\xf5\xef\x04\x08.\x8b'), chr(8720 - 8620) + chr(7989 - 7888) + chr(0b1100011) + chr(11562 - 11451) + chr(0b1100100) + '\x65')(chr(117) + chr(116) + chr(0b1100110) + chr(45) + chr(0b110110 + 0o2))) vNIajKh21qDK = hXMPsSrOQzbh.m_vFZWsML7BP hXMPsSrOQzbh.m_vFZWsML7BP = w6mSfS7LgtsM + GuX46MBAOnaQ pEV2xdcbyq7O = nzTpIcepk0o8(chr(48) + chr(7679 - 7568) + '\x30', 8) plvKSWwcX991 = hXMPsSrOQzbh._read_buf.tell() if GuX46MBAOnaQ < vNIajKh21qDK: if plvKSWwcX991 > vNIajKh21qDK - GuX46MBAOnaQ: pEV2xdcbyq7O = nzTpIcepk0o8(chr(2049 - 2001) + chr(5801 - 5690) + chr(0b110001), 61658 - 61650) else: MyFHaBwyzZfE = SsdNdRxXOwsF.utils.string_buffer_length(hXMPsSrOQzbh.UqDryQIqVvAa) if MyFHaBwyzZfE - plvKSWwcX991 > GuX46MBAOnaQ - vNIajKh21qDK: pEV2xdcbyq7O = nzTpIcepk0o8(chr(0b110000) + chr(1771 - 1660) + '\061', 8) if pEV2xdcbyq7O: roI3spqORKae(hXMPsSrOQzbh._read_buf, roI3spqORKae(ES5oEprVxulp(b'\xa7\x19.\xaf'), chr(100) + chr(7149 - 7048) + chr(99) + '\157' + chr(6594 - 6494) + chr(2848 - 2747))(chr(0b1110101) + chr(11562 - 11446) + '\x66' + chr(45) + '\x38'))(plvKSWwcX991 - vNIajKh21qDK + GuX46MBAOnaQ) elif GuX46MBAOnaQ == vNIajKh21qDK: pass else: hXMPsSrOQzbh.UqDryQIqVvAa = BVoKtXpmh0oX() (hXMPsSrOQzbh.pir5OXgQoSr4, hXMPsSrOQzbh.lR5HzKJ_d0vI) = (None, None)
dnanexus/dx-toolkit
src/python/dxpy/bindings/dxfile.py
DXFile.flush
def flush(self, multithread=True, **kwargs): ''' Flushes the internal write buffer. ''' if self._write_buf.tell() > 0: data = self._write_buf.getvalue() self._write_buf = BytesIO() if multithread: self._async_upload_part_request(data, index=self._cur_part, **kwargs) else: self.upload_part(data, self._cur_part, **kwargs) self._cur_part += 1 if len(self._http_threadpool_futures) > 0: dxpy.utils.wait_for_all_futures(self._http_threadpool_futures) try: for future in self._http_threadpool_futures: if future.exception() != None: raise future.exception() finally: self._http_threadpool_futures = set()
python
def flush(self, multithread=True, **kwargs): ''' Flushes the internal write buffer. ''' if self._write_buf.tell() > 0: data = self._write_buf.getvalue() self._write_buf = BytesIO() if multithread: self._async_upload_part_request(data, index=self._cur_part, **kwargs) else: self.upload_part(data, self._cur_part, **kwargs) self._cur_part += 1 if len(self._http_threadpool_futures) > 0: dxpy.utils.wait_for_all_futures(self._http_threadpool_futures) try: for future in self._http_threadpool_futures: if future.exception() != None: raise future.exception() finally: self._http_threadpool_futures = set()
[ "def", "flush", "(", "self", ",", "multithread", "=", "True", ",", "*", "*", "kwargs", ")", ":", "if", "self", ".", "_write_buf", ".", "tell", "(", ")", ">", "0", ":", "data", "=", "self", ".", "_write_buf", ".", "getvalue", "(", ")", "self", ".", "_write_buf", "=", "BytesIO", "(", ")", "if", "multithread", ":", "self", ".", "_async_upload_part_request", "(", "data", ",", "index", "=", "self", ".", "_cur_part", ",", "*", "*", "kwargs", ")", "else", ":", "self", ".", "upload_part", "(", "data", ",", "self", ".", "_cur_part", ",", "*", "*", "kwargs", ")", "self", ".", "_cur_part", "+=", "1", "if", "len", "(", "self", ".", "_http_threadpool_futures", ")", ">", "0", ":", "dxpy", ".", "utils", ".", "wait_for_all_futures", "(", "self", ".", "_http_threadpool_futures", ")", "try", ":", "for", "future", "in", "self", ".", "_http_threadpool_futures", ":", "if", "future", ".", "exception", "(", ")", "!=", "None", ":", "raise", "future", ".", "exception", "(", ")", "finally", ":", "self", ".", "_http_threadpool_futures", "=", "set", "(", ")" ]
Flushes the internal write buffer.
[ "Flushes", "the", "internal", "write", "buffer", "." ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxfile.py#L445-L467
train
Flushes the internal write buffer.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5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RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(747 - 699) + chr(0b1101111) + chr(0b100011 + 0o17) + '\x33' + chr(53), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(0b110001) + chr(0b110 + 0o54) + chr(2548 - 2493), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\066' + chr(0b110010), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(54) + chr(1694 - 1645), 55115 - 55107), nzTpIcepk0o8('\x30' + '\x6f' + chr(163 - 113) + chr(142 - 94) + chr(0b110011), ord("\x08")), nzTpIcepk0o8(chr(1407 - 1359) + '\x6f' + chr(774 - 725), 43987 - 43979), nzTpIcepk0o8('\x30' + '\x6f' + '\063' + '\067' + '\x33', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\061' + chr(2457 - 2407) + chr(0b110010), 0o10), nzTpIcepk0o8('\x30' + chr(5517 - 5406) + chr(361 - 311) + chr(0b110110) + '\x33', 43934 - 43926), nzTpIcepk0o8('\060' + '\157' + chr(0b101001 + 0o11) + chr(249 - 198) + chr(50), 41952 - 41944), nzTpIcepk0o8(chr(733 - 685) + chr(7888 - 7777) + '\x31' + chr(52) + chr(0b110111), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\063' + chr(50) + chr(0b101111 + 0o6), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b1100 + 0o53) + '\x35', 0b1000), nzTpIcepk0o8(chr(1763 - 1715) + chr(0b1101111) + chr(0b110001) + chr(0b11 + 0o61) + '\x35', ord("\x08")), nzTpIcepk0o8(chr(0b100110 + 0o12) + chr(0b1101111) + chr(54) + '\x30', 42385 - 42377), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(50) + chr(0b1111 + 0o41), 28464 - 28456), nzTpIcepk0o8(chr(1305 - 1257) + '\x6f' + '\062' + chr(0b10 + 0o60) + '\061', 0o10), nzTpIcepk0o8(chr(1666 - 1618) + chr(111) + chr(51) + '\062' + chr(0b1111 + 0o47), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + '\062' + chr(0b101000 + 0o17) + chr(53), 0o10), nzTpIcepk0o8(chr(187 - 139) + chr(0b1001111 + 0o40) + '\x32' + chr(1875 - 1821) + chr(0b110011), 8), nzTpIcepk0o8(chr(0b1111 + 0o41) + '\157' + chr(0b11111 + 0o24) + chr(0b110011) + chr(0b11 + 0o56), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b100111 + 0o110) + chr(1637 - 1586) + chr(2357 - 2308) + chr(1670 - 1622), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110010) + chr(1491 - 1440) + chr(51), 0b1000), nzTpIcepk0o8(chr(0b100101 + 0o13) + chr(4417 - 4306) + chr(0b101101 + 0o5) + chr(49) + chr(1743 - 1689), 13220 - 13212), nzTpIcepk0o8('\060' + chr(0b1101111) + '\062' + chr(218 - 164) + chr(55), 43842 - 43834), nzTpIcepk0o8(chr(1323 - 1275) + chr(0b1001010 + 0o45) + chr(0b110011 + 0o4) + chr(0b11110 + 0o25), 0b1000), nzTpIcepk0o8(chr(587 - 539) + chr(111) + chr(0b101000 + 0o12) + chr(50) + chr(775 - 723), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1010100 + 0o33) + chr(0b111 + 0o54) + '\060' + chr(2602 - 2548), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(761 - 710) + chr(53) + '\061', 56547 - 56539), nzTpIcepk0o8(chr(0b110000) + '\157' + '\061' + '\060' + chr(2172 - 2123), 0o10), nzTpIcepk0o8(chr(48) + chr(5638 - 5527) + chr(49) + chr(0b110110) + chr(0b110000), 0b1000), nzTpIcepk0o8(chr(0b11001 + 0o27) + chr(6460 - 6349) + chr(0b101001 + 0o16) + '\062', 51092 - 51084), nzTpIcepk0o8(chr(106 - 58) + chr(111) + chr(51) + chr(409 - 357) + '\063', ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + '\064' + chr(0b100011 + 0o22), 0o10), nzTpIcepk0o8(chr(0b110 + 0o52) + chr(10600 - 10489) + chr(0b101011 + 0o7) + chr(0b110111) + '\x31', 27369 - 27361), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x33' + chr(49) + chr(0b1011 + 0o51), 0o10), nzTpIcepk0o8('\x30' + chr(111) + '\x33' + chr(0b110100) + '\x35', 0b1000), nzTpIcepk0o8(chr(1253 - 1205) + chr(0b1101111) + chr(683 - 632) + '\x34', 47595 - 47587), nzTpIcepk0o8(chr(48) + chr(0b11101 + 0o122) + '\062' + chr(0b110101) + '\x30', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110010) + chr(0b10101 + 0o35) + '\x35', ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b11100 + 0o24) + chr(111) + chr(1370 - 1317) + '\060', 10244 - 10236)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xb3'), chr(0b1100100) + chr(1315 - 1214) + chr(4182 - 4083) + chr(0b1010011 + 0o34) + chr(0b1100100) + chr(8609 - 8508))(chr(0b100 + 0o161) + '\164' + chr(854 - 752) + chr(45) + chr(0b111000 + 0o0)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def kWpyBrVWBpsE(hXMPsSrOQzbh, XEeWm9N5Kgna=nzTpIcepk0o8(chr(0b110000) + '\157' + chr(253 - 204), 8), **q5n0sHDDTy90): if roI3spqORKae(hXMPsSrOQzbh._write_buf, roI3spqORKae(ES5oEprVxulp(b'\xe92^]'), '\x64' + chr(0b1100101) + chr(0b1100011) + chr(0b1100101 + 0o12) + '\x64' + chr(0b1100101))(chr(117) + chr(0b1100 + 0o150) + chr(102) + '\055' + '\x38'))() > nzTpIcepk0o8(chr(2209 - 2161) + '\157' + '\x30', 0o10): FfKOThdpoDTb = hXMPsSrOQzbh._write_buf.getvalue() hXMPsSrOQzbh.i1RQe0ItLYxX = BVoKtXpmh0oX() if XEeWm9N5Kgna: roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b"\xc26AH\xedb\xa4'\xc3\xf6\x08\xb4Y:@q\xe3\xa2\xe2\xc1\xbc\xb9\xee\xeb\xc4O"), '\x64' + chr(4524 - 4423) + chr(0b11100 + 0o107) + chr(4269 - 4158) + chr(3392 - 3292) + chr(0b1000101 + 0o40))('\165' + chr(3011 - 2895) + chr(8943 - 8841) + '\055' + chr(56)))(FfKOThdpoDTb, index=roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xff\x16U]\xfbn\xb5j\xdb\xf4\x13\x98'), chr(0b1100100) + '\145' + chr(0b111000 + 0o53) + '\x6f' + chr(2864 - 2764) + chr(0b1001010 + 0o33))(chr(0b11011 + 0o132) + chr(1582 - 1466) + chr(0b110111 + 0o57) + '\x2d' + chr(0b111000 + 0o0))), **q5n0sHDDTy90) else: roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xe8\'^^\xe2e\xa4"\xd2\xe8\x13'), chr(396 - 296) + '\x65' + chr(6324 - 6225) + chr(111) + chr(0b1100100) + chr(0b1011101 + 0o10))(chr(10537 - 10420) + '\x74' + '\x66' + '\055' + chr(56)))(FfKOThdpoDTb, roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xff\x16U]\xfbn\xb5j\xdb\xf4\x13\x98'), chr(100) + chr(0b10101 + 0o120) + chr(2000 - 1901) + '\x6f' + chr(8719 - 8619) + chr(0b11110 + 0o107))(chr(117) + '\164' + chr(102) + chr(0b101101) + '\x38')), **q5n0sHDDTy90) hXMPsSrOQzbh.bAglxoN8hntM += nzTpIcepk0o8(chr(2298 - 2250) + '\x6f' + chr(49), 8) if ftfygxgFas5X(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xc2?FE\xf3^\x8f:\xc1\xff\x06\xb1M\n_|\xce\xb0\xc8\xc7\xac\xba\xfe\xfd'), chr(0b1100100) + '\145' + chr(0b1100011) + '\x6f' + chr(0b1100100) + chr(0b1011111 + 0o6))(chr(0b1110101) + chr(7572 - 7456) + chr(0b1100110) + chr(0b11000 + 0o25) + '\070'))) > nzTpIcepk0o8('\060' + chr(0b100111 + 0o110) + chr(48), 8): roI3spqORKae(SsdNdRxXOwsF.utils, roI3spqORKae(ES5oEprVxulp(b'\xea6[E\xdcg\x94 \xec\xfb\x0b\xb9b\x03Ed\xe4\xa4\xd8\xc0'), '\144' + '\x65' + chr(0b1100011) + '\157' + chr(100) + '\145')(chr(6249 - 6132) + chr(0b1110100) + chr(993 - 891) + chr(45) + '\070'))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xc2?FE\xf3^\x8f:\xc1\xff\x06\xb1M\n_|\xce\xb0\xc8\xc7\xac\xba\xfe\xfd'), '\x64' + chr(0b100110 + 0o77) + chr(0b1000000 + 0o43) + '\x6f' + chr(0b1100100) + chr(0b1100101))(chr(117) + chr(0b1110100) + chr(7857 - 7755) + chr(1353 - 1308) + chr(0b100000 + 0o30)))) try: for pLWLL1Holwwm in roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xc2?FE\xf3^\x8f:\xc1\xff\x06\xb1M\n_|\xce\xb0\xc8\xc7\xac\xba\xfe\xfd'), chr(2547 - 2447) + chr(2257 - 2156) + chr(99) + chr(0b1101111) + '\x64' + '\145')(chr(13592 - 13475) + '\164' + '\146' + chr(1999 - 1954) + chr(0b111000))): if roI3spqORKae(pLWLL1Holwwm, roI3spqORKae(ES5oEprVxulp(b'\xef4~P\xc9c\x98\x18\xfe\xf9)\xa3'), chr(302 - 202) + chr(1567 - 1466) + chr(0b1100011) + '\x6f' + '\x64' + chr(6895 - 6794))(chr(10106 - 9989) + '\x74' + chr(0b1100110 + 0o0) + '\x2d' + '\070'))() is not None: raise roI3spqORKae(pLWLL1Holwwm, roI3spqORKae(ES5oEprVxulp(b'\xef4~P\xc9c\x98\x18\xfe\xf9)\xa3'), chr(1095 - 995) + '\x65' + '\143' + '\157' + chr(8617 - 8517) + '\x65')(chr(0b101000 + 0o115) + chr(116) + chr(0b1100110) + chr(0b101101) + chr(865 - 809)))() finally: hXMPsSrOQzbh.ivSLvJ7AoQVz = Bvi71nNyvlqO()
dnanexus/dx-toolkit
src/python/dxpy/bindings/dxfile.py
DXFile._write2
def _write2(self, data, multithread=True, **kwargs): ''' :param data: Data to be written :type data: str or mmap object :param multithread: If True, sends multiple write requests asynchronously :type multithread: boolean Writes the data *data* to the file. .. note:: Writing to remote files is append-only. Using :meth:`seek` does not affect where the next :meth:`write` will occur. ''' if not USING_PYTHON2: assert(isinstance(data, bytes)) self._ensure_write_bufsize(**kwargs) def write_request(data_for_write_req): if multithread: self._async_upload_part_request(data_for_write_req, index=self._cur_part, **kwargs) else: self.upload_part(data_for_write_req, self._cur_part, **kwargs) self._cur_part += 1 if self._write_buf.tell() == 0 and self._write_bufsize == len(data): # In the special case of a write that is the same size as # our write buffer size, and no unflushed data in the # buffer, just directly dispatch the write and bypass the # write buffer. # # This saves a buffer copy, which is especially helpful if # 'data' is actually mmap'd from a file. # # TODO: an additional optimization could be made to allow # the last request from an mmap'd upload to take this path # too (in general it won't because it's not of length # _write_bufsize). This is probably inconsequential though. write_request(data) return remaining_space = self._write_bufsize - self._write_buf.tell() if len(data) <= remaining_space: self._write_buf.write(data) else: self._write_buf.write(data[:remaining_space]) temp_data = self._write_buf.getvalue() self._write_buf = BytesIO() write_request(temp_data) # TODO: check if repeat string splitting is bad for # performance when len(data) >> _write_bufsize self.write(data[remaining_space:], **kwargs)
python
def _write2(self, data, multithread=True, **kwargs): ''' :param data: Data to be written :type data: str or mmap object :param multithread: If True, sends multiple write requests asynchronously :type multithread: boolean Writes the data *data* to the file. .. note:: Writing to remote files is append-only. Using :meth:`seek` does not affect where the next :meth:`write` will occur. ''' if not USING_PYTHON2: assert(isinstance(data, bytes)) self._ensure_write_bufsize(**kwargs) def write_request(data_for_write_req): if multithread: self._async_upload_part_request(data_for_write_req, index=self._cur_part, **kwargs) else: self.upload_part(data_for_write_req, self._cur_part, **kwargs) self._cur_part += 1 if self._write_buf.tell() == 0 and self._write_bufsize == len(data): # In the special case of a write that is the same size as # our write buffer size, and no unflushed data in the # buffer, just directly dispatch the write and bypass the # write buffer. # # This saves a buffer copy, which is especially helpful if # 'data' is actually mmap'd from a file. # # TODO: an additional optimization could be made to allow # the last request from an mmap'd upload to take this path # too (in general it won't because it's not of length # _write_bufsize). This is probably inconsequential though. write_request(data) return remaining_space = self._write_bufsize - self._write_buf.tell() if len(data) <= remaining_space: self._write_buf.write(data) else: self._write_buf.write(data[:remaining_space]) temp_data = self._write_buf.getvalue() self._write_buf = BytesIO() write_request(temp_data) # TODO: check if repeat string splitting is bad for # performance when len(data) >> _write_bufsize self.write(data[remaining_space:], **kwargs)
[ "def", "_write2", "(", "self", ",", "data", ",", "multithread", "=", "True", ",", "*", "*", "kwargs", ")", ":", "if", "not", "USING_PYTHON2", ":", "assert", "(", "isinstance", "(", "data", ",", "bytes", ")", ")", "self", ".", "_ensure_write_bufsize", "(", "*", "*", "kwargs", ")", "def", "write_request", "(", "data_for_write_req", ")", ":", "if", "multithread", ":", "self", ".", "_async_upload_part_request", "(", "data_for_write_req", ",", "index", "=", "self", ".", "_cur_part", ",", "*", "*", "kwargs", ")", "else", ":", "self", ".", "upload_part", "(", "data_for_write_req", ",", "self", ".", "_cur_part", ",", "*", "*", "kwargs", ")", "self", ".", "_cur_part", "+=", "1", "if", "self", ".", "_write_buf", ".", "tell", "(", ")", "==", "0", "and", "self", ".", "_write_bufsize", "==", "len", "(", "data", ")", ":", "# In the special case of a write that is the same size as", "# our write buffer size, and no unflushed data in the", "# buffer, just directly dispatch the write and bypass the", "# write buffer.", "#", "# This saves a buffer copy, which is especially helpful if", "# 'data' is actually mmap'd from a file.", "#", "# TODO: an additional optimization could be made to allow", "# the last request from an mmap'd upload to take this path", "# too (in general it won't because it's not of length", "# _write_bufsize). This is probably inconsequential though.", "write_request", "(", "data", ")", "return", "remaining_space", "=", "self", ".", "_write_bufsize", "-", "self", ".", "_write_buf", ".", "tell", "(", ")", "if", "len", "(", "data", ")", "<=", "remaining_space", ":", "self", ".", "_write_buf", ".", "write", "(", "data", ")", "else", ":", "self", ".", "_write_buf", ".", "write", "(", "data", "[", ":", "remaining_space", "]", ")", "temp_data", "=", "self", ".", "_write_buf", ".", "getvalue", "(", ")", "self", ".", "_write_buf", "=", "BytesIO", "(", ")", "write_request", "(", "temp_data", ")", "# TODO: check if repeat string splitting is bad for", "# performance when len(data) >> _write_bufsize", "self", ".", "write", "(", "data", "[", "remaining_space", ":", "]", ",", "*", "*", "kwargs", ")" ]
:param data: Data to be written :type data: str or mmap object :param multithread: If True, sends multiple write requests asynchronously :type multithread: boolean Writes the data *data* to the file. .. note:: Writing to remote files is append-only. Using :meth:`seek` does not affect where the next :meth:`write` will occur.
[ ":", "param", "data", ":", "Data", "to", "be", "written", ":", "type", "data", ":", "str", "or", "mmap", "object", ":", "param", "multithread", ":", "If", "True", "sends", "multiple", "write", "requests", "asynchronously", ":", "type", "multithread", ":", "boolean" ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxfile.py#L493-L549
train
Write to the file.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtb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Imz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b110000) + chr(111) + '\061' + '\x35' + '\x31', ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(1061 - 1010) + chr(2072 - 2024) + '\060', ord("\x08")), nzTpIcepk0o8(chr(1395 - 1347) + chr(111) + '\063' + chr(51), 22733 - 22725), nzTpIcepk0o8(chr(1391 - 1343) + chr(0b111000 + 0o67) + '\x31' + chr(1020 - 971) + chr(51), 46971 - 46963), nzTpIcepk0o8(chr(0b110000) + chr(3437 - 3326) + '\x37' + chr(0b10000 + 0o42), 0o10), nzTpIcepk0o8(chr(0b10111 + 0o31) + chr(0b1101111) + '\x31' + '\063' + chr(0b101010 + 0o15), 41951 - 41943), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110001) + '\x32' + chr(51), 18207 - 18199), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(2304 - 2254) + chr(0b101010 + 0o6) + '\x33', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(11041 - 10930) + chr(624 - 569) + chr(51), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b10001 + 0o42) + chr(0b11010 + 0o30) + '\065', ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + '\065' + chr(0b101100 + 0o5), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(2347 - 2296) + '\x37', 20643 - 20635), nzTpIcepk0o8(chr(1534 - 1486) + chr(9151 - 9040) + chr(182 - 131) + chr(0b110110) + chr(0b110110), 0o10), nzTpIcepk0o8(chr(0b11011 + 0o25) + '\x6f' + chr(51) + '\060' + chr(0b110001), 0o10), nzTpIcepk0o8(chr(1524 - 1476) + chr(0b110110 + 0o71) + '\x31' + chr(53), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(1515 - 1466) + chr(48) + '\x33', 51556 - 51548), nzTpIcepk0o8(chr(48) + '\157' + chr(49) + chr(50), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + '\062' + '\066' + '\x31', 0o10), nzTpIcepk0o8(chr(48) + chr(0b11 + 0o154) + chr(0b110011) + '\x34' + chr(0b110110), 0b1000), nzTpIcepk0o8('\060' + chr(10779 - 10668) + '\x31' + '\x31' + chr(0b101 + 0o57), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + '\063' + chr(0b10010 + 0o36) + chr(0b1101 + 0o43), 8), nzTpIcepk0o8(chr(170 - 122) + '\x6f' + '\061' + chr(52) + chr(0b100110 + 0o12), 37351 - 37343), nzTpIcepk0o8('\x30' + chr(0b1100101 + 0o12) + chr(1878 - 1829) + '\x36' + chr(0b10001 + 0o37), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(1279 - 1230) + chr(242 - 192) + chr(53), 0b1000), nzTpIcepk0o8('\060' + chr(4773 - 4662) + '\061' + chr(55) + '\061', 0b1000), nzTpIcepk0o8(chr(0b1000 + 0o50) + '\x6f' + '\063' + '\060' + '\064', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b111100 + 0o63) + chr(109 - 59) + '\060' + chr(2614 - 2559), 0o10), nzTpIcepk0o8(chr(0b11000 + 0o30) + chr(111) + '\062' + chr(0b11100 + 0o33) + chr(0b11101 + 0o26), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(0b110011) + '\x30' + '\x36', 12893 - 12885), nzTpIcepk0o8('\060' + '\157' + chr(55 - 4) + chr(0b100 + 0o61) + chr(0b110111), 27303 - 27295), nzTpIcepk0o8('\060' + chr(111) + chr(50) + chr(0b101110 + 0o7) + chr(0b100100 + 0o14), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + '\062' + '\063' + chr(0b11010 + 0o27), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(1072 - 1022) + '\x33' + '\060', 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110011) + chr(55) + '\x36', 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110010) + chr(51) + '\x34', ord("\x08")), nzTpIcepk0o8('\x30' + chr(5988 - 5877) + chr(50) + '\x30' + chr(0b110110), 0b1000), nzTpIcepk0o8('\060' + '\157' + chr(2621 - 2566) + chr(0b1010 + 0o53), 0o10), nzTpIcepk0o8('\060' + '\157' + chr(665 - 616) + '\x31' + chr(0b101011 + 0o12), ord("\x08")), nzTpIcepk0o8(chr(0b100100 + 0o14) + chr(111) + chr(0b110011) + chr(0b110011) + chr(0b111 + 0o57), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(49) + chr(54) + chr(0b110100), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + chr(0b1101111) + '\065' + chr(0b100000 + 0o20), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'G'), '\144' + chr(0b1100101) + chr(9562 - 9463) + chr(111) + '\x64' + chr(0b1000010 + 0o43))(chr(117) + '\164' + '\146' + chr(0b101101) + chr(56)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def ULUTTyFBkEBC(hXMPsSrOQzbh, FfKOThdpoDTb, XEeWm9N5Kgna=nzTpIcepk0o8('\x30' + chr(0b1000010 + 0o55) + chr(49), ord("\x08")), **q5n0sHDDTy90): if not Yt6GOS_tiQ1Y: assert suIjIS24Zkqw(FfKOThdpoDTb, QNQS9e6tJqMV) roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'6\xa5u8O-6\xdcL\xa7@k\x93\x9eo6l\xc2\x8f6\xa5'), '\x64' + chr(562 - 461) + chr(1011 - 912) + '\x6f' + '\144' + '\x65')(chr(117) + chr(0b1110100) + chr(0b1100110) + chr(0b100011 + 0o12) + '\070'))(**q5n0sHDDTy90) def qzEKTiRRGGX0(peGg7BxBAjex): if XEeWm9N5Kgna: roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'6\xa1h2T<\x0c\xf6K\xb9F~\x92\x9e}"x\xc5\xb9>\xa5\x11\x050\n\xb0'), chr(0b1100100) + chr(3623 - 3522) + chr(99) + '\157' + chr(100) + chr(6285 - 6184))(chr(0b1110101) + chr(0b1110100) + '\146' + chr(0b101010 + 0o3) + chr(56)))(peGg7BxBAjex, index=roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b"\x0b\x81|'B0\x1d\xbbS\xbb]R"), chr(100) + '\x65' + '\143' + '\x6f' + '\144' + chr(0b100101 + 0o100))(chr(117) + chr(0b100000 + 0o124) + chr(1532 - 1430) + chr(45) + chr(56))), **q5n0sHDDTy90) else: roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x1c\xb0w$[;\x0c\xf3Z\xa7]'), '\144' + chr(5380 - 5279) + chr(99) + '\157' + chr(100) + chr(0b1100101))(chr(0b11111 + 0o126) + chr(0b1110100) + '\146' + '\055' + chr(537 - 481)))(peGg7BxBAjex, roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b"\x0b\x81|'B0\x1d\xbbS\xbb]R"), '\x64' + chr(101) + chr(670 - 571) + chr(0b111011 + 0o64) + chr(0b1100100) + chr(0b1100101))(chr(0b1001 + 0o154) + chr(116) + '\x66' + '\055' + chr(56))), **q5n0sHDDTy90) hXMPsSrOQzbh.bAglxoN8hntM += nzTpIcepk0o8('\060' + '\x6f' + chr(226 - 177), 8) if roI3spqORKae(hXMPsSrOQzbh._write_buf, roI3spqORKae(ES5oEprVxulp(b"\x1d\xa5w'"), '\144' + chr(0b11001 + 0o114) + chr(0b1100011) + chr(0b1101111) + chr(0b1100100) + chr(0b1010101 + 0o20))('\x75' + chr(0b1110100) + '\x66' + chr(45) + chr(3072 - 3016)))() == nzTpIcepk0o8(chr(48) + chr(12206 - 12095) + '\060', 0o10) and roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'6\xb7i"N:\x0c\xe1N\xb3Zv\x8c\xa4'), chr(100) + '\145' + chr(99) + '\x6f' + chr(100) + chr(6881 - 6780))(chr(5422 - 5305) + chr(4055 - 3939) + chr(0b111001 + 0o55) + chr(0b10110 + 0o27) + chr(0b111000))) == ftfygxgFas5X(FfKOThdpoDTb): qzEKTiRRGGX0(FfKOThdpoDTb) return mRASE1cUGa3O = hXMPsSrOQzbh._write_bufsize - hXMPsSrOQzbh._write_buf.tell() if ftfygxgFas5X(FfKOThdpoDTb) <= mRASE1cUGa3O: roI3spqORKae(hXMPsSrOQzbh._write_buf, roI3spqORKae(ES5oEprVxulp(b'\x04\xac+#R/%\xb2w\xa5X-'), chr(0b100100 + 0o100) + chr(0b1100101) + chr(0b1100011) + chr(0b1101111) + chr(100) + '\145')(chr(117) + chr(116) + chr(102) + '\x2d' + chr(0b111000)))(FfKOThdpoDTb) else: roI3spqORKae(hXMPsSrOQzbh._write_buf, roI3spqORKae(ES5oEprVxulp(b'\x04\xac+#R/%\xb2w\xa5X-'), chr(100) + '\145' + '\143' + chr(11604 - 11493) + chr(0b1100000 + 0o4) + chr(0b1100101))('\x75' + '\x74' + '\146' + '\055' + chr(2720 - 2664)))(FfKOThdpoDTb[:mRASE1cUGa3O]) aCEVfmLbEh1P = hXMPsSrOQzbh._write_buf.getvalue() hXMPsSrOQzbh.i1RQe0ItLYxX = BVoKtXpmh0oX() qzEKTiRRGGX0(aCEVfmLbEh1P) roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x04\xac+#R/%\xb2w\xa5X-'), chr(100) + chr(1186 - 1085) + '\143' + chr(0b1101111) + '\x64' + chr(0b1011011 + 0o12))(chr(0b1011111 + 0o26) + '\x74' + chr(102) + chr(45) + '\070'))(FfKOThdpoDTb[mRASE1cUGa3O:], **q5n0sHDDTy90)
dnanexus/dx-toolkit
src/python/dxpy/bindings/dxfile.py
DXFile.write
def write(self, data, multithread=True, **kwargs): ''' :param data: Data to be written :type data: str or mmap object :param multithread: If True, sends multiple write requests asynchronously :type multithread: boolean Writes the data *data* to the file. .. note:: Writing to remote files is append-only. Using :meth:`seek` does not affect where the next :meth:`write` will occur. ''' if USING_PYTHON2: self._write2(data, multithread=multithread, **kwargs) else: # In python3, the underlying system methods use the 'bytes' type, not 'string' # # This is, hopefully, a temporary hack. It is not a good idea for two reasons: # 1) Performance, we need to make a pass on the data, and need to allocate # another buffer of similar size # 2) The types are wrong. The "bytes" type should be visible to the caller # of the write method, instead of being hidden. # Should we throw an exception if the file is opened in binary mode, # and the data is unicode/text? if isinstance(data, str): bt = data.encode("utf-8") elif isinstance(data, bytearray): bt = bytes(data) elif isinstance(data, bytes): bt = data elif isinstance(data, mmap.mmap): bt = bytes(data) else: raise DXFileError("Invalid type {} for write data argument".format(type(data))) assert(isinstance(bt, bytes)) self._write2(bt, multithread=multithread, **kwargs)
python
def write(self, data, multithread=True, **kwargs): ''' :param data: Data to be written :type data: str or mmap object :param multithread: If True, sends multiple write requests asynchronously :type multithread: boolean Writes the data *data* to the file. .. note:: Writing to remote files is append-only. Using :meth:`seek` does not affect where the next :meth:`write` will occur. ''' if USING_PYTHON2: self._write2(data, multithread=multithread, **kwargs) else: # In python3, the underlying system methods use the 'bytes' type, not 'string' # # This is, hopefully, a temporary hack. It is not a good idea for two reasons: # 1) Performance, we need to make a pass on the data, and need to allocate # another buffer of similar size # 2) The types are wrong. The "bytes" type should be visible to the caller # of the write method, instead of being hidden. # Should we throw an exception if the file is opened in binary mode, # and the data is unicode/text? if isinstance(data, str): bt = data.encode("utf-8") elif isinstance(data, bytearray): bt = bytes(data) elif isinstance(data, bytes): bt = data elif isinstance(data, mmap.mmap): bt = bytes(data) else: raise DXFileError("Invalid type {} for write data argument".format(type(data))) assert(isinstance(bt, bytes)) self._write2(bt, multithread=multithread, **kwargs)
[ "def", "write", "(", "self", ",", "data", ",", "multithread", "=", "True", ",", "*", "*", "kwargs", ")", ":", "if", "USING_PYTHON2", ":", "self", ".", "_write2", "(", "data", ",", "multithread", "=", "multithread", ",", "*", "*", "kwargs", ")", "else", ":", "# In python3, the underlying system methods use the 'bytes' type, not 'string'", "#", "# This is, hopefully, a temporary hack. It is not a good idea for two reasons:", "# 1) Performance, we need to make a pass on the data, and need to allocate", "# another buffer of similar size", "# 2) The types are wrong. The \"bytes\" type should be visible to the caller", "# of the write method, instead of being hidden.", "# Should we throw an exception if the file is opened in binary mode,", "# and the data is unicode/text?", "if", "isinstance", "(", "data", ",", "str", ")", ":", "bt", "=", "data", ".", "encode", "(", "\"utf-8\"", ")", "elif", "isinstance", "(", "data", ",", "bytearray", ")", ":", "bt", "=", "bytes", "(", "data", ")", "elif", "isinstance", "(", "data", ",", "bytes", ")", ":", "bt", "=", "data", "elif", "isinstance", "(", "data", ",", "mmap", ".", "mmap", ")", ":", "bt", "=", "bytes", "(", "data", ")", "else", ":", "raise", "DXFileError", "(", "\"Invalid type {} for write data argument\"", ".", "format", "(", "type", "(", "data", ")", ")", ")", "assert", "(", "isinstance", "(", "bt", ",", "bytes", ")", ")", "self", ".", "_write2", "(", "bt", ",", "multithread", "=", "multithread", ",", "*", "*", "kwargs", ")" ]
:param data: Data to be written :type data: str or mmap object :param multithread: If True, sends multiple write requests asynchronously :type multithread: boolean Writes the data *data* to the file. .. note:: Writing to remote files is append-only. Using :meth:`seek` does not affect where the next :meth:`write` will occur.
[ ":", "param", "data", ":", "Data", "to", "be", "written", ":", "type", "data", ":", "str", "or", "mmap", "object", ":", "param", "multithread", ":", "If", "True", "sends", "multiple", "write", "requests", "asynchronously", ":", "type", "multithread", ":", "boolean" ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxfile.py#L551-L590
train
Writes the data to the file.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLM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U,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(48) + chr(5218 - 5107) + '\x32' + chr(0b110101) + '\x37', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(9546 - 9435) + chr(49) + chr(0b101110 + 0o7) + chr(0b101001 + 0o14), 14695 - 14687), nzTpIcepk0o8(chr(0b11111 + 0o21) + '\x6f' + chr(0b110010) + '\x33' + '\x31', ord("\x08")), nzTpIcepk0o8(chr(0b10011 + 0o35) + chr(10649 - 10538) + chr(1917 - 1868) + '\060' + chr(0b110110), ord("\x08")), nzTpIcepk0o8(chr(0b1110 + 0o42) + chr(0b1101111) + '\066' + '\060', 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(49) + chr(2158 - 2109) + chr(0b110110), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + '\x31' + chr(0b11101 + 0o26) + '\067', 0b1000), nzTpIcepk0o8('\x30' + chr(111) + '\063' + chr(0b11001 + 0o33) + chr(2290 - 2235), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(2254 - 2205) + chr(323 - 269) + '\x32', 34538 - 34530), nzTpIcepk0o8('\x30' + '\x6f' + chr(49) + '\062' + chr(52), 29414 - 29406), nzTpIcepk0o8(chr(48) + chr(111) + '\x32' + chr(51), 34654 - 34646), nzTpIcepk0o8(chr(48) + '\157' + chr(49) + chr(0b100111 + 0o14) + '\060', 0b1000), nzTpIcepk0o8('\x30' + '\157' + '\061' + '\x30' + chr(0b10110 + 0o40), 8), nzTpIcepk0o8('\060' + chr(0b1101111) + '\061' + chr(48) + '\x32', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(4132 - 4021) + '\x31' + '\060' + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(1044 - 996) + '\x6f' + '\x34' + chr(55), 26786 - 26778), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(49) + chr(558 - 507) + '\x32', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\062' + chr(0b101111 + 0o10), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110011) + chr(0b111 + 0o53) + '\x37', 65047 - 65039), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x33' + chr(0b110011) + '\063', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110011) + chr(56 - 8), ord("\x08")), nzTpIcepk0o8('\x30' + chr(3454 - 3343) + chr(0b110111) + chr(54), 51622 - 51614), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(396 - 346) + '\067' + '\065', ord("\x08")), nzTpIcepk0o8(chr(0b10000 + 0o40) + chr(0b111101 + 0o62) + chr(0b10100 + 0o37) + chr(2694 - 2639) + '\063', 0b1000), nzTpIcepk0o8('\060' + chr(0b101101 + 0o102) + chr(780 - 728), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + '\061' + chr(0b110 + 0o57) + chr(889 - 838), 0b1000), nzTpIcepk0o8(chr(0b10101 + 0o33) + '\157' + '\x31' + '\060' + chr(50), 8), nzTpIcepk0o8(chr(48) + '\157' + chr(2358 - 2307) + chr(0b110101) + '\067', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x31' + chr(0b110010) + '\062', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(49) + chr(1483 - 1428) + chr(0b110101), 0o10), nzTpIcepk0o8(chr(0b100110 + 0o12) + chr(111) + '\061' + chr(0b10 + 0o61) + chr(0b110001), 28540 - 28532), nzTpIcepk0o8(chr(741 - 693) + '\157' + '\x31' + chr(198 - 147) + chr(0b110111 + 0o0), 8), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x31' + chr(1216 - 1163) + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(50) + '\x35' + '\061', ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + '\x33' + chr(51) + chr(0b1011 + 0o47), ord("\x08")), nzTpIcepk0o8(chr(134 - 86) + '\x6f' + chr(1698 - 1649) + chr(49) + chr(48), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(50) + chr(0b110000) + chr(2148 - 2100), 34920 - 34912), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(51) + chr(54) + chr(48), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(959 - 909) + '\065' + chr(0b110000 + 0o4), 0o10), nzTpIcepk0o8(chr(48) + chr(0b101011 + 0o104) + chr(0b110011) + chr(1207 - 1156) + chr(1618 - 1567), 8)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(1829 - 1781) + chr(111) + '\065' + chr(1197 - 1149), 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x81'), '\144' + chr(101) + '\x63' + chr(1534 - 1423) + chr(0b1011 + 0o131) + '\145')(chr(10591 - 10474) + '\164' + chr(5036 - 4934) + '\055' + chr(524 - 468)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def ml0hhpv1Lpq2(hXMPsSrOQzbh, FfKOThdpoDTb, XEeWm9N5Kgna=nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b11000 + 0o31), 0o10), **q5n0sHDDTy90): if Yt6GOS_tiQ1Y: roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xf0\x1a\xeb/D+m'), chr(7929 - 7829) + chr(4916 - 4815) + chr(0b1100011 + 0o0) + chr(5716 - 5605) + chr(2680 - 2580) + '\145')(chr(0b1001011 + 0o52) + chr(0b1101011 + 0o11) + chr(2120 - 2018) + chr(45) + chr(0b10011 + 0o45)))(FfKOThdpoDTb, multithread=XEeWm9N5Kgna, **q5n0sHDDTy90) else: if suIjIS24Zkqw(FfKOThdpoDTb, N9zlRy29S1SS): IIsaRLkW6fOx = FfKOThdpoDTb.YqIaRFfeo4Ha(roI3spqORKae(ES5oEprVxulp(b'\xda\x19\xffk\x08'), '\144' + '\145' + chr(3962 - 3863) + '\157' + chr(100) + chr(7576 - 7475))('\165' + '\x74' + '\146' + '\055' + chr(0b111000))) elif suIjIS24Zkqw(FfKOThdpoDTb, MdkNqd1bagO6): IIsaRLkW6fOx = QNQS9e6tJqMV(FfKOThdpoDTb) elif suIjIS24Zkqw(FfKOThdpoDTb, QNQS9e6tJqMV): IIsaRLkW6fOx = FfKOThdpoDTb elif suIjIS24Zkqw(FfKOThdpoDTb, roI3spqORKae(QIE48Om1ffFm, roI3spqORKae(ES5oEprVxulp(b'\xc2\x00\xf86'), chr(0b111110 + 0o46) + chr(7671 - 7570) + chr(99) + '\x6f' + chr(7185 - 7085) + chr(0b1100101))(chr(0b1110101) + chr(116) + chr(102) + chr(0b101101) + chr(0b100010 + 0o26)))): IIsaRLkW6fOx = QNQS9e6tJqMV(FfKOThdpoDTb) else: raise oqIplWWv7W23(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b"\xe6\x03\xef'\\';\xc7\x06-c=f99\x07<x\xa5\xfboL\xd4\x8faK&\x8e&\x1cy>\x1b\xce\xaf%\xe5\x9e\xd8"), '\144' + chr(0b1100101) + '\x63' + '\x6f' + '\144' + chr(0b1010101 + 0o20))(chr(5128 - 5011) + chr(116) + '\x66' + '\055' + chr(0b11000 + 0o40)), roI3spqORKae(ES5oEprVxulp(b'\xde^\xaa\rw}9\x88#\x0bP\x12'), '\144' + chr(0b11011 + 0o112) + '\x63' + '\x6f' + chr(0b1100100) + '\145')('\165' + '\x74' + chr(0b11110 + 0o110) + '\x2d' + '\x38'))(MJ07XsN5uFgW(FfKOThdpoDTb))) assert suIjIS24Zkqw(IIsaRLkW6fOx, QNQS9e6tJqMV) roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xf0\x1a\xeb/D+m'), chr(6098 - 5998) + chr(8495 - 8394) + '\x63' + chr(8028 - 7917) + chr(0b1100100) + '\145')(chr(0b1110101) + chr(0b11110 + 0o126) + chr(432 - 330) + '\x2d' + '\x38'))(IIsaRLkW6fOx, multithread=XEeWm9N5Kgna, **q5n0sHDDTy90)
dnanexus/dx-toolkit
src/python/dxpy/bindings/dxfile.py
DXFile.close
def close(self, block=False, **kwargs): ''' :param block: If True, this function blocks until the remote file has closed. :type block: boolean Attempts to close the file. .. note:: The remote file cannot be closed until all parts have been fully uploaded. An exception will be thrown if this is not the case. ''' self.flush(**kwargs) # Also populates emptyLastPartAllowed self._ensure_write_bufsize(**kwargs) if self._num_uploaded_parts == 0 and self._empty_last_part_allowed: # We haven't uploaded any parts in this session. # In case no parts have been uploaded at all and region # settings allow last empty part upload, try to upload # an empty part (otherwise files with 0 parts cannot be closed). try: if USING_PYTHON2: self.upload_part('', 1, **kwargs) else: self.upload_part(b'', 1, **kwargs) except dxpy.exceptions.InvalidState: pass if 'report_progress_fn' in kwargs: del kwargs['report_progress_fn'] dxpy.api.file_close(self._dxid, **kwargs) if block: self._wait_on_close(**kwargs)
python
def close(self, block=False, **kwargs): ''' :param block: If True, this function blocks until the remote file has closed. :type block: boolean Attempts to close the file. .. note:: The remote file cannot be closed until all parts have been fully uploaded. An exception will be thrown if this is not the case. ''' self.flush(**kwargs) # Also populates emptyLastPartAllowed self._ensure_write_bufsize(**kwargs) if self._num_uploaded_parts == 0 and self._empty_last_part_allowed: # We haven't uploaded any parts in this session. # In case no parts have been uploaded at all and region # settings allow last empty part upload, try to upload # an empty part (otherwise files with 0 parts cannot be closed). try: if USING_PYTHON2: self.upload_part('', 1, **kwargs) else: self.upload_part(b'', 1, **kwargs) except dxpy.exceptions.InvalidState: pass if 'report_progress_fn' in kwargs: del kwargs['report_progress_fn'] dxpy.api.file_close(self._dxid, **kwargs) if block: self._wait_on_close(**kwargs)
[ "def", "close", "(", "self", ",", "block", "=", "False", ",", "*", "*", "kwargs", ")", ":", "self", ".", "flush", "(", "*", "*", "kwargs", ")", "# Also populates emptyLastPartAllowed", "self", ".", "_ensure_write_bufsize", "(", "*", "*", "kwargs", ")", "if", "self", ".", "_num_uploaded_parts", "==", "0", "and", "self", ".", "_empty_last_part_allowed", ":", "# We haven't uploaded any parts in this session.", "# In case no parts have been uploaded at all and region", "# settings allow last empty part upload, try to upload", "# an empty part (otherwise files with 0 parts cannot be closed).", "try", ":", "if", "USING_PYTHON2", ":", "self", ".", "upload_part", "(", "''", ",", "1", ",", "*", "*", "kwargs", ")", "else", ":", "self", ".", "upload_part", "(", "b''", ",", "1", ",", "*", "*", "kwargs", ")", "except", "dxpy", ".", "exceptions", ".", "InvalidState", ":", "pass", "if", "'report_progress_fn'", "in", "kwargs", ":", "del", "kwargs", "[", "'report_progress_fn'", "]", "dxpy", ".", "api", ".", "file_close", "(", "self", ".", "_dxid", ",", "*", "*", "kwargs", ")", "if", "block", ":", "self", ".", "_wait_on_close", "(", "*", "*", "kwargs", ")" ]
:param block: If True, this function blocks until the remote file has closed. :type block: boolean Attempts to close the file. .. note:: The remote file cannot be closed until all parts have been fully uploaded. An exception will be thrown if this is not the case.
[ ":", "param", "block", ":", "If", "True", "this", "function", "blocks", "until", "the", "remote", "file", "has", "closed", ".", ":", "type", "block", ":", "boolean" ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxfile.py#L604-L639
train
Closes the remote file.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,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7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b100111 + 0o13) + chr(0b1101 + 0o50) + chr(942 - 890), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110 + 0o61) + chr(2640 - 2587), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(1719 - 1668) + chr(1231 - 1177) + chr(2166 - 2115), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b10000 + 0o46) + chr(0b100101 + 0o22), 0o10), nzTpIcepk0o8('\060' + chr(111) + '\061' + chr(2404 - 2353) + chr(0b1110 + 0o43), 0o10), nzTpIcepk0o8(chr(2094 - 2046) + chr(111) + chr(0b110010) + '\x36', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + '\063' + chr(0b110100) + '\066', ord("\x08")), nzTpIcepk0o8(chr(0b10000 + 0o40) + chr(111) + chr(2252 - 2202) + '\066' + chr(0b101001 + 0o11), 4783 - 4775), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b101101 + 0o4) + chr(0b110010 + 0o3) + chr(0b110000), 61665 - 61657), nzTpIcepk0o8(chr(1251 - 1203) + '\157' + chr(0b100000 + 0o21) + chr(360 - 309), ord("\x08")), nzTpIcepk0o8('\x30' + chr(11878 - 11767) + '\066' + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + '\x32' + '\063' + '\x36', 0b1000), nzTpIcepk0o8(chr(0b11001 + 0o27) + chr(111) + chr(50) + '\066' + chr(0b10101 + 0o36), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(1086 - 1037) + chr(53) + chr(0b110011 + 0o4), 14984 - 14976), nzTpIcepk0o8('\x30' + chr(111) + chr(50) + '\062' + '\063', 23686 - 23678), nzTpIcepk0o8('\060' + '\x6f' + chr(616 - 566) + '\065' + '\067', ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(50) + '\x33' + chr(2041 - 1986), ord("\x08")), nzTpIcepk0o8(chr(0b101 + 0o53) + '\157' + chr(54) + chr(50), 18545 - 18537), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x33' + '\x31' + '\x37', ord("\x08")), nzTpIcepk0o8(chr(892 - 844) + chr(0b1101111) + '\x32' + chr(48) + '\x34', 0o10), nzTpIcepk0o8(chr(1857 - 1809) + '\157' + chr(0b101011 + 0o10) + chr(51), 0o10), nzTpIcepk0o8(chr(1982 - 1934) + '\157' + chr(50) + chr(0b11000 + 0o32) + chr(0b110011), 8), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110111) + chr(0b100000 + 0o25), 8), nzTpIcepk0o8('\060' + chr(0b11100 + 0o123) + chr(913 - 864) + chr(54) + '\063', 0o10), nzTpIcepk0o8(chr(0b101 + 0o53) + chr(7987 - 7876) + chr(678 - 623) + chr(0b110111), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + '\x33' + chr(51) + chr(0b101101 + 0o7), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b110100 + 0o73) + chr(0b110001) + chr(0b11111 + 0o27) + chr(1616 - 1565), 8), nzTpIcepk0o8(chr(1884 - 1836) + '\x6f' + chr(0b101010 + 0o10) + chr(53) + chr(0b101111 + 0o2), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101 + 0o142) + chr(0b101001 + 0o12) + chr(0b110100 + 0o0) + chr(0b101001 + 0o13), 0b1000), nzTpIcepk0o8(chr(0b10000 + 0o40) + chr(111) + chr(0b110011) + chr(51) + chr(0b110100), 8), nzTpIcepk0o8('\x30' + '\157' + chr(1937 - 1888) + chr(0b1100 + 0o45) + chr(0b110000), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1010011 + 0o34) + '\x32' + '\x32' + chr(0b110000 + 0o7), 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(1310 - 1261) + '\063' + '\062', 0b1000), nzTpIcepk0o8('\060' + chr(348 - 237) + chr(0b110011) + '\066' + '\061', 62110 - 62102), nzTpIcepk0o8('\x30' + chr(0b110101 + 0o72) + '\062' + chr(0b110110 + 0o1) + chr(50), 7276 - 7268), nzTpIcepk0o8(chr(0b100111 + 0o11) + '\x6f' + chr(2053 - 2004) + '\065' + '\067', 8), nzTpIcepk0o8(chr(0b110000) + chr(11162 - 11051) + chr(1756 - 1707) + '\x35' + '\060', 8), nzTpIcepk0o8('\x30' + chr(111) + chr(1650 - 1601) + chr(2553 - 2499) + '\062', 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(0b10 + 0o63) + chr(50), 42760 - 42752), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x32' + chr(1561 - 1508) + chr(0b101101 + 0o12), 8)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(1477 - 1429) + chr(0b1100011 + 0o14) + chr(0b110101) + '\x30', 48853 - 48845)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x82'), '\144' + chr(0b1100101) + chr(0b1100011) + chr(111) + '\x64' + chr(0b1100101))(chr(0b1110101) + '\164' + '\x66' + chr(1344 - 1299) + chr(1498 - 1442)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def Zeq7Ccf9Ud8j(hXMPsSrOQzbh, TvT0D2rIGW5A=nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\060', 57551 - 57543), **q5n0sHDDTy90): roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xc7j\x83N\x1bd\xb0\xe5*{B\xdb'), chr(1930 - 1830) + chr(0b1100101) + chr(2096 - 1997) + chr(5528 - 5417) + '\144' + chr(101))('\165' + chr(116) + chr(0b1100110) + '\055' + chr(0b111000)))(**q5n0sHDDTy90) roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xf3X\x9dD,d\x83\xed\x1fyX\xea\xd60\xf1\xda\xf9A\xa6\xfe~'), chr(1170 - 1070) + '\145' + chr(0b1001101 + 0o26) + chr(5186 - 5075) + '\x64' + chr(3771 - 3670))('\165' + chr(0b100000 + 0o124) + chr(6404 - 6302) + chr(45) + chr(56)))(**q5n0sHDDTy90) if roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xeev\x85n\x1d^\xdf\xff-}e\xcb'), chr(7041 - 6941) + chr(587 - 486) + chr(0b11000 + 0o113) + '\157' + chr(0b1000001 + 0o43) + '\145')('\165' + '\x74' + '\146' + chr(45) + '\070')) == nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(48), 8) and roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xf3X\x9eG-o\xb9\xde\txE\xc1\xc3\x0e\xe1\xdb\xc0S\xa3\xe8t\xe4X\x17'), chr(100) + '\145' + chr(99) + chr(0b1101111) + chr(0b1100100) + chr(101))(chr(4929 - 4812) + '\x74' + chr(0b1100110) + '\055' + chr(0b111 + 0o61))): try: if Yt6GOS_tiQ1Y: roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xd9M\x9fX8r\xb9\xc2\tyE'), '\x64' + '\x65' + chr(99) + chr(11679 - 11568) + chr(0b1100100) + chr(101))(chr(5637 - 5520) + chr(0b100110 + 0o116) + chr(8380 - 8278) + '\055' + chr(824 - 768)))(roI3spqORKae(ES5oEprVxulp(b''), chr(2399 - 2299) + chr(2145 - 2044) + chr(0b110110 + 0o55) + chr(111) + chr(3839 - 3739) + chr(101))('\x75' + chr(12886 - 12770) + chr(102) + chr(0b101101) + '\x38'), nzTpIcepk0o8(chr(0b110000) + chr(0b110010 + 0o75) + chr(1664 - 1615), ord("\x08")), **q5n0sHDDTy90) else: roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xd9M\x9fX8r\xb9\xc2\tyE'), chr(100) + '\145' + chr(99) + '\157' + chr(0b1010110 + 0o16) + chr(101))(chr(117) + chr(116) + chr(3008 - 2906) + '\x2d' + chr(0b111000)))(ES5oEprVxulp(b''), nzTpIcepk0o8(chr(0b110000) + chr(983 - 872) + chr(0b110001 + 0o0), 8), **q5n0sHDDTy90) except roI3spqORKae(SsdNdRxXOwsF.exceptions, roI3spqORKae(ES5oEprVxulp(b'\xe5S\x85V5\x7f\x82\xe1\x1cjE\xfb'), '\x64' + chr(0b1100101) + '\x63' + '\x6f' + chr(0b1100100) + chr(0b1100101))('\x75' + '\164' + chr(5343 - 5241) + chr(0b101101) + chr(56))): pass if roI3spqORKae(ES5oEprVxulp(b'\xdeX\x83X+b\xb9\xc2\x1adV\xec\xd6\x1c\xe0\xf0\xf9\\'), '\144' + '\145' + chr(0b1100011) + chr(0b11101 + 0o122) + '\x64' + '\x65')(chr(0b1100 + 0o151) + chr(0b1001001 + 0o53) + '\x66' + chr(774 - 729) + chr(56)) in q5n0sHDDTy90: del q5n0sHDDTy90[roI3spqORKae(ES5oEprVxulp(b'\xdeX\x83X+b\xb9\xc2\x1adV\xec\xd6\x1c\xe0\xf0\xf9\\'), chr(4996 - 4896) + chr(8673 - 8572) + chr(4046 - 3947) + '\x6f' + '\x64' + chr(2068 - 1967))('\165' + '\164' + '\146' + chr(0b101101) + chr(0b1010 + 0o56))] roI3spqORKae(SsdNdRxXOwsF.api, roI3spqORKae(ES5oEprVxulp(b'\xcaT\x9fR\x06u\x8a\xdd\x1bn'), '\x64' + chr(0b1001110 + 0o27) + '\143' + chr(0b1101111) + chr(0b1100100) + '\145')(chr(0b1110000 + 0o5) + chr(2658 - 2542) + chr(102) + chr(0b11 + 0o52) + '\x38'))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xc8\x0b\xb8b7D\xb7\xc4^<\x02\xab'), chr(0b1100100) + '\145' + chr(99) + '\x6f' + chr(0b1100100) + chr(0b1100101))(chr(0b1000011 + 0o62) + '\164' + chr(102) + chr(474 - 429) + '\070')), **q5n0sHDDTy90) if TvT0D2rIGW5A: roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xf3J\x92^-I\x89\xdc7h]\xf1\xc0\n'), chr(0b1010000 + 0o24) + '\145' + chr(0b101000 + 0o73) + '\x6f' + '\144' + '\145')(chr(10447 - 10330) + chr(0b1110100) + chr(7957 - 7855) + chr(45) + chr(0b111000)))(**q5n0sHDDTy90)
dnanexus/dx-toolkit
src/python/dxpy/bindings/dxfile.py
DXFile.upload_part
def upload_part(self, data, index=None, display_progress=False, report_progress_fn=None, **kwargs): """ :param data: Data to be uploaded in this part :type data: str or mmap object, bytes on python3 :param index: Index of part to be uploaded; must be in [1, 10000] :type index: integer :param display_progress: Whether to print "." to stderr when done :type display_progress: boolean :param report_progress_fn: Optional: a function to call that takes in two arguments (self, # bytes transmitted) :type report_progress_fn: function or None :raises: :exc:`dxpy.exceptions.DXFileError` if *index* is given and is not in the correct range, :exc:`requests.exceptions.HTTPError` if upload fails Uploads the data in *data* as part number *index* for the associated file. If no value for *index* is given, *index* defaults to 1. This probably only makes sense if this is the only part to be uploaded. """ if not USING_PYTHON2: # In python3, the underlying system methods use the 'bytes' type, not 'string' assert(isinstance(data, bytes)) req_input = {} if index is not None: req_input["index"] = int(index) md5 = hashlib.md5() if hasattr(data, 'seek') and hasattr(data, 'tell'): # data is a buffer; record initial position (so we can rewind back) rewind_input_buffer_offset = data.tell() while True: bytes_read = data.read(MD5_READ_CHUNK_SIZE) if bytes_read: md5.update(bytes_read) else: break # rewind the buffer to original position data.seek(rewind_input_buffer_offset) else: md5.update(data) req_input["md5"] = md5.hexdigest() req_input["size"] = len(data) def get_upload_url_and_headers(): # This function is called from within a retry loop, so to avoid amplifying the number of retries # geometrically, we decrease the allowed number of retries for the nested API call every time. if 'max_retries' not in kwargs: kwargs['max_retries'] = dxpy.DEFAULT_RETRIES elif kwargs['max_retries'] > 0: kwargs['max_retries'] -= 1 if "timeout" not in kwargs: kwargs["timeout"] = FILE_REQUEST_TIMEOUT resp = dxpy.api.file_upload(self._dxid, req_input, **kwargs) url = resp["url"] return url, _validate_headers(resp.get("headers", {})) # The file upload API requires us to get a pre-authenticated upload URL (and headers for it) every time we # attempt an upload. Because DXHTTPRequest will retry requests under retryable conditions, we give it a callback # to ask us for a new upload URL every time it attempts a request (instead of giving them directly). dxpy.DXHTTPRequest(get_upload_url_and_headers, data, jsonify_data=False, prepend_srv=False, always_retry=True, timeout=FILE_REQUEST_TIMEOUT, auth=None, method='PUT') self._num_uploaded_parts += 1 if display_progress: warn(".") if report_progress_fn is not None: report_progress_fn(self, len(data))
python
def upload_part(self, data, index=None, display_progress=False, report_progress_fn=None, **kwargs): """ :param data: Data to be uploaded in this part :type data: str or mmap object, bytes on python3 :param index: Index of part to be uploaded; must be in [1, 10000] :type index: integer :param display_progress: Whether to print "." to stderr when done :type display_progress: boolean :param report_progress_fn: Optional: a function to call that takes in two arguments (self, # bytes transmitted) :type report_progress_fn: function or None :raises: :exc:`dxpy.exceptions.DXFileError` if *index* is given and is not in the correct range, :exc:`requests.exceptions.HTTPError` if upload fails Uploads the data in *data* as part number *index* for the associated file. If no value for *index* is given, *index* defaults to 1. This probably only makes sense if this is the only part to be uploaded. """ if not USING_PYTHON2: # In python3, the underlying system methods use the 'bytes' type, not 'string' assert(isinstance(data, bytes)) req_input = {} if index is not None: req_input["index"] = int(index) md5 = hashlib.md5() if hasattr(data, 'seek') and hasattr(data, 'tell'): # data is a buffer; record initial position (so we can rewind back) rewind_input_buffer_offset = data.tell() while True: bytes_read = data.read(MD5_READ_CHUNK_SIZE) if bytes_read: md5.update(bytes_read) else: break # rewind the buffer to original position data.seek(rewind_input_buffer_offset) else: md5.update(data) req_input["md5"] = md5.hexdigest() req_input["size"] = len(data) def get_upload_url_and_headers(): # This function is called from within a retry loop, so to avoid amplifying the number of retries # geometrically, we decrease the allowed number of retries for the nested API call every time. if 'max_retries' not in kwargs: kwargs['max_retries'] = dxpy.DEFAULT_RETRIES elif kwargs['max_retries'] > 0: kwargs['max_retries'] -= 1 if "timeout" not in kwargs: kwargs["timeout"] = FILE_REQUEST_TIMEOUT resp = dxpy.api.file_upload(self._dxid, req_input, **kwargs) url = resp["url"] return url, _validate_headers(resp.get("headers", {})) # The file upload API requires us to get a pre-authenticated upload URL (and headers for it) every time we # attempt an upload. Because DXHTTPRequest will retry requests under retryable conditions, we give it a callback # to ask us for a new upload URL every time it attempts a request (instead of giving them directly). dxpy.DXHTTPRequest(get_upload_url_and_headers, data, jsonify_data=False, prepend_srv=False, always_retry=True, timeout=FILE_REQUEST_TIMEOUT, auth=None, method='PUT') self._num_uploaded_parts += 1 if display_progress: warn(".") if report_progress_fn is not None: report_progress_fn(self, len(data))
[ "def", "upload_part", "(", "self", ",", "data", ",", "index", "=", "None", ",", "display_progress", "=", "False", ",", "report_progress_fn", "=", "None", ",", "*", "*", "kwargs", ")", ":", "if", "not", "USING_PYTHON2", ":", "# In python3, the underlying system methods use the 'bytes' type, not 'string'", "assert", "(", "isinstance", "(", "data", ",", "bytes", ")", ")", "req_input", "=", "{", "}", "if", "index", "is", "not", "None", ":", "req_input", "[", "\"index\"", "]", "=", "int", "(", "index", ")", "md5", "=", "hashlib", ".", "md5", "(", ")", "if", "hasattr", "(", "data", ",", "'seek'", ")", "and", "hasattr", "(", "data", ",", "'tell'", ")", ":", "# data is a buffer; record initial position (so we can rewind back)", "rewind_input_buffer_offset", "=", "data", ".", "tell", "(", ")", "while", "True", ":", "bytes_read", "=", "data", ".", "read", "(", "MD5_READ_CHUNK_SIZE", ")", "if", "bytes_read", ":", "md5", ".", "update", "(", "bytes_read", ")", "else", ":", "break", "# rewind the buffer to original position", "data", ".", "seek", "(", "rewind_input_buffer_offset", ")", "else", ":", "md5", ".", "update", "(", "data", ")", "req_input", "[", "\"md5\"", "]", "=", "md5", ".", "hexdigest", "(", ")", "req_input", "[", "\"size\"", "]", "=", "len", "(", "data", ")", "def", "get_upload_url_and_headers", "(", ")", ":", "# This function is called from within a retry loop, so to avoid amplifying the number of retries", "# geometrically, we decrease the allowed number of retries for the nested API call every time.", "if", "'max_retries'", "not", "in", "kwargs", ":", "kwargs", "[", "'max_retries'", "]", "=", "dxpy", ".", "DEFAULT_RETRIES", "elif", "kwargs", "[", "'max_retries'", "]", ">", "0", ":", "kwargs", "[", "'max_retries'", "]", "-=", "1", "if", "\"timeout\"", "not", "in", "kwargs", ":", "kwargs", "[", "\"timeout\"", "]", "=", "FILE_REQUEST_TIMEOUT", "resp", "=", "dxpy", ".", "api", ".", "file_upload", "(", "self", ".", "_dxid", ",", "req_input", ",", "*", "*", "kwargs", ")", "url", "=", "resp", "[", "\"url\"", "]", "return", "url", ",", "_validate_headers", "(", "resp", ".", "get", "(", "\"headers\"", ",", "{", "}", ")", ")", "# The file upload API requires us to get a pre-authenticated upload URL (and headers for it) every time we", "# attempt an upload. Because DXHTTPRequest will retry requests under retryable conditions, we give it a callback", "# to ask us for a new upload URL every time it attempts a request (instead of giving them directly).", "dxpy", ".", "DXHTTPRequest", "(", "get_upload_url_and_headers", ",", "data", ",", "jsonify_data", "=", "False", ",", "prepend_srv", "=", "False", ",", "always_retry", "=", "True", ",", "timeout", "=", "FILE_REQUEST_TIMEOUT", ",", "auth", "=", "None", ",", "method", "=", "'PUT'", ")", "self", ".", "_num_uploaded_parts", "+=", "1", "if", "display_progress", ":", "warn", "(", "\".\"", ")", "if", "report_progress_fn", "is", "not", "None", ":", "report_progress_fn", "(", "self", ",", "len", "(", "data", ")", ")" ]
:param data: Data to be uploaded in this part :type data: str or mmap object, bytes on python3 :param index: Index of part to be uploaded; must be in [1, 10000] :type index: integer :param display_progress: Whether to print "." to stderr when done :type display_progress: boolean :param report_progress_fn: Optional: a function to call that takes in two arguments (self, # bytes transmitted) :type report_progress_fn: function or None :raises: :exc:`dxpy.exceptions.DXFileError` if *index* is given and is not in the correct range, :exc:`requests.exceptions.HTTPError` if upload fails Uploads the data in *data* as part number *index* for the associated file. If no value for *index* is given, *index* defaults to 1. This probably only makes sense if this is the only part to be uploaded.
[ ":", "param", "data", ":", "Data", "to", "be", "uploaded", "in", "this", "part", ":", "type", "data", ":", "str", "or", "mmap", "object", "bytes", "on", "python3", ":", "param", "index", ":", "Index", "of", "part", "to", "be", "uploaded", ";", "must", "be", "in", "[", "1", "10000", "]", ":", "type", "index", ":", "integer", ":", "param", "display_progress", ":", "Whether", "to", "print", ".", "to", "stderr", "when", "done", ":", "type", "display_progress", ":", "boolean", ":", "param", "report_progress_fn", ":", "Optional", ":", "a", "function", "to", "call", "that", "takes", "in", "two", "arguments", "(", "self", "#", "bytes", "transmitted", ")", ":", "type", "report_progress_fn", ":", "function", "or", "None", ":", "raises", ":", ":", "exc", ":", "dxpy", ".", "exceptions", ".", "DXFileError", "if", "*", "index", "*", "is", "given", "and", "is", "not", "in", "the", "correct", "range", ":", "exc", ":", "requests", ".", "exceptions", ".", "HTTPError", "if", "upload", "fails" ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxfile.py#L651-L727
train
Uploads a part of data to the local file system.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,zn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ZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(84 - 36) + '\x6f' + '\063' + chr(0b110100) + chr(974 - 925), 0o10), nzTpIcepk0o8('\x30' + '\157' + '\x33' + '\x33' + chr(50), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b10010 + 0o135) + chr(0b1 + 0o62) + '\064' + '\x35', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(51) + chr(49), 0o10), nzTpIcepk0o8(chr(0b10111 + 0o31) + chr(0b1101111) + chr(201 - 150) + chr(0b1111 + 0o41) + chr(444 - 396), 38149 - 38141), nzTpIcepk0o8(chr(1908 - 1860) + chr(0b1101111) + chr(1178 - 1127) + chr(0b10000 + 0o40) + chr(2138 - 2087), 0b1000), nzTpIcepk0o8(chr(0b100 + 0o54) + '\x6f' + '\062' + '\x36' + chr(52), 0o10), nzTpIcepk0o8(chr(0b101 + 0o53) + chr(0b1101111) + '\x32' + chr(375 - 327) + chr(537 - 484), 0o10), nzTpIcepk0o8('\x30' + chr(0b1110 + 0o141) + '\061' + '\067' + chr(1074 - 1023), 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(0b110010) + chr(1341 - 1292) + chr(0b100101 + 0o20), 14915 - 14907), nzTpIcepk0o8(chr(0b100010 + 0o16) + chr(0b1101111) + chr(0b110010) + chr(50) + '\x33', 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110010) + chr(1182 - 1133) + chr(52), ord("\x08")), nzTpIcepk0o8(chr(0b100110 + 0o12) + chr(0b1101111) + '\x31' + '\x32' + chr(0b101000 + 0o16), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110011) + chr(50) + '\061', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\065' + chr(2375 - 2322), 0o10), nzTpIcepk0o8(chr(191 - 143) + chr(0b1101100 + 0o3) + '\061' + '\x37' + '\064', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\063' + chr(53) + chr(48), 42175 - 42167), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110110) + chr(0b101100 + 0o4), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + '\x32' + '\x34' + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(695 - 647) + chr(639 - 528) + '\x34' + '\060', 8695 - 8687), nzTpIcepk0o8(chr(1964 - 1916) + chr(0b1101111) + chr(0b101000 + 0o13) + '\x34' + '\065', 8), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x33' + '\x37' + '\065', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + '\063' + chr(54) + chr(1942 - 1889), ord("\x08")), nzTpIcepk0o8(chr(0b100110 + 0o12) + chr(0b11011 + 0o124) + '\x33' + chr(0b10101 + 0o41) + chr(1467 - 1413), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b101100 + 0o7) + chr(54) + chr(0b110100), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + '\063' + chr(1577 - 1528), 8), nzTpIcepk0o8('\060' + chr(8517 - 8406) + chr(0b110110) + chr(48), 8), nzTpIcepk0o8(chr(1627 - 1579) + chr(0b1101111) + chr(2062 - 2012) + chr(904 - 849) + chr(0b11111 + 0o22), 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(0b10011 + 0o37) + chr(49) + chr(140 - 91), 38594 - 38586), nzTpIcepk0o8(chr(1552 - 1504) + '\157' + chr(49) + chr(0b110010) + chr(54), 8), nzTpIcepk0o8(chr(0b110 + 0o52) + chr(0b100001 + 0o116) + chr(0b110010) + '\x33' + chr(0b101110 + 0o7), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110010) + chr(0b11101 + 0o30) + chr(2037 - 1988), 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(2121 - 2067) + chr(0b11010 + 0o26), 8), nzTpIcepk0o8(chr(0b110000) + chr(0b10100 + 0o133) + chr(0b11011 + 0o34) + chr(0b110110), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(1917 - 1866) + '\067', 53081 - 53073), nzTpIcepk0o8(chr(1413 - 1365) + chr(0b1101111) + chr(2253 - 2204) + chr(52) + '\061', 0b1000), nzTpIcepk0o8(chr(0b0 + 0o60) + '\x6f' + chr(0b110010) + chr(0b110011) + chr(0b111 + 0o56), 8), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x32' + '\067' + '\064', ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + '\x33' + chr(0b110001), 8), nzTpIcepk0o8('\060' + chr(0b111001 + 0o66) + '\x32' + chr(0b11010 + 0o32) + '\066', 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + chr(0b110111 + 0o70) + '\x35' + '\060', 23433 - 23425)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xcf'), '\144' + '\x65' + chr(0b1111 + 0o124) + chr(11932 - 11821) + chr(5450 - 5350) + chr(0b1111 + 0o126))('\165' + chr(116) + chr(0b1100110) + chr(238 - 193) + chr(0b111000)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def bSf03C1gTKWZ(hXMPsSrOQzbh, FfKOThdpoDTb, ZpfN5tSLaZze=None, HUgbVMvQ4Fme=nzTpIcepk0o8('\x30' + chr(0b110011 + 0o74) + chr(82 - 34), 0b1000), oQOmcNrJKYpg=None, **q5n0sHDDTy90): if not Yt6GOS_tiQ1Y: assert suIjIS24Zkqw(FfKOThdpoDTb, QNQS9e6tJqMV) D9PB5QswZBza = {} if ZpfN5tSLaZze is not None: D9PB5QswZBza[roI3spqORKae(ES5oEprVxulp(b'\x88\xb4\x81|\xb8'), '\x64' + '\145' + chr(4401 - 4302) + chr(12302 - 12191) + chr(0b1100100) + chr(0b11100 + 0o111))(chr(0b1110101) + chr(0b110000 + 0o104) + chr(0b101111 + 0o67) + '\x2d' + chr(56))] = nzTpIcepk0o8(ZpfN5tSLaZze) UkKAQVUUW5oH = SDv77BhJq2mr.UkKAQVUUW5oH() if dRKdVnHPFq7C(FfKOThdpoDTb, roI3spqORKae(ES5oEprVxulp(b'\x92\xbf\x80r'), '\x64' + chr(0b1100101) + '\x63' + chr(0b1101111) + '\144' + '\x65')(chr(0b10111 + 0o136) + chr(0b1101 + 0o147) + chr(0b1100110) + '\x2d' + '\070')) and dRKdVnHPFq7C(FfKOThdpoDTb, roI3spqORKae(ES5oEprVxulp(b'\x95\xbf\x89u'), '\144' + chr(101) + chr(99) + chr(0b1101111) + chr(100) + chr(0b1100101))('\x75' + chr(0b1110100) + chr(0b1100110) + chr(0b0 + 0o55) + '\070')): v2xJaqvkU8dz = FfKOThdpoDTb.tell() while nzTpIcepk0o8(chr(536 - 488) + '\x6f' + '\x31', 19345 - 19337): wM9U4gew62wg = FfKOThdpoDTb.eoXknH7XUn7m(DlKdpS0QHoWV) if wM9U4gew62wg: roI3spqORKae(UkKAQVUUW5oH, roI3spqORKae(ES5oEprVxulp(b'\xab\x85\x8e+\x89\x9a\xf6\xb4\x18\xe8\xe2\xe2'), chr(100) + chr(0b1100101) + '\143' + chr(0b1101111) + chr(0b1100100) + '\x65')(chr(0b1110001 + 0o4) + chr(2271 - 2155) + chr(2395 - 2293) + chr(0b101101) + '\070'))(wM9U4gew62wg) else: break roI3spqORKae(FfKOThdpoDTb, roI3spqORKae(ES5oEprVxulp(b'\x92\xbf\x80r'), '\x64' + chr(0b1100101) + chr(0b100110 + 0o75) + chr(111) + '\x64' + chr(5569 - 5468))(chr(1233 - 1116) + chr(0b1110100) + '\x66' + chr(0b101101) + chr(2144 - 2088)))(v2xJaqvkU8dz) else: roI3spqORKae(UkKAQVUUW5oH, roI3spqORKae(ES5oEprVxulp(b'\xab\x85\x8e+\x89\x9a\xf6\xb4\x18\xe8\xe2\xe2'), '\144' + '\x65' + chr(7464 - 7365) + '\157' + chr(100) + '\145')(chr(0b1110101) + chr(8991 - 8875) + chr(102) + '\055' + '\x38'))(FfKOThdpoDTb) D9PB5QswZBza[roI3spqORKae(ES5oEprVxulp(b'\x8c\xbe\xd0'), chr(5112 - 5012) + '\x65' + '\x63' + chr(111) + chr(1463 - 1363) + chr(101))(chr(2324 - 2207) + '\x74' + '\x66' + '\x2d' + chr(0b101 + 0o63))] = UkKAQVUUW5oH.QJ_O92NaVG5k() D9PB5QswZBza[roI3spqORKae(ES5oEprVxulp(b'\x92\xb3\x9f|'), '\144' + chr(7664 - 7563) + chr(7705 - 7606) + '\157' + chr(4520 - 4420) + chr(8121 - 8020))('\165' + chr(8202 - 8086) + chr(0b100 + 0o142) + chr(0b101101) + chr(881 - 825))] = ftfygxgFas5X(FfKOThdpoDTb) def kpkJEdA8yVfj(): if roI3spqORKae(ES5oEprVxulp(b'\x8c\xbb\x9dF\xb2\xa6\xc0\xf7\x12\xe8\xe0'), chr(0b10100 + 0o120) + chr(5751 - 5650) + chr(2821 - 2722) + chr(6934 - 6823) + chr(2702 - 2602) + chr(0b1001010 + 0o33))(chr(117) + '\x74' + chr(10161 - 10059) + chr(45) + chr(0b111000)) not in q5n0sHDDTy90: q5n0sHDDTy90[roI3spqORKae(ES5oEprVxulp(b'\x8c\xbb\x9dF\xb2\xa6\xc0\xf7\x12\xe8\xe0'), chr(0b100100 + 0o100) + chr(101) + '\143' + chr(0b1101111) + chr(0b110 + 0o136) + chr(101))(chr(0b1101100 + 0o11) + '\x74' + chr(0b1100110) + '\055' + chr(106 - 50))] = SsdNdRxXOwsF.DEFAULT_RETRIES elif q5n0sHDDTy90[roI3spqORKae(ES5oEprVxulp(b'\x8c\xbb\x9dF\xb2\xa6\xc0\xf7\x12\xe8\xe0'), '\x64' + '\x65' + '\x63' + chr(111) + chr(0b1100100) + chr(0b1011 + 0o132))(chr(0b1101000 + 0o15) + chr(116) + chr(0b1100110) + chr(0b11101 + 0o20) + chr(1697 - 1641))] > nzTpIcepk0o8(chr(48) + chr(111) + '\060', 8): q5n0sHDDTy90[roI3spqORKae(ES5oEprVxulp(b'\x8c\xbb\x9dF\xb2\xa6\xc0\xf7\x12\xe8\xe0'), '\144' + chr(0b1100001 + 0o4) + '\143' + chr(0b1101111) + '\144' + chr(0b11011 + 0o112))(chr(10900 - 10783) + '\164' + '\x66' + chr(45) + chr(0b10111 + 0o41))] -= nzTpIcepk0o8('\x30' + '\x6f' + '\x31', 8) if roI3spqORKae(ES5oEprVxulp(b'\x95\xb3\x88|\xaf\xb6\xc0'), chr(0b1100100) + '\x65' + chr(0b111110 + 0o45) + chr(0b1101111) + '\144' + chr(101))(chr(3805 - 3688) + chr(0b1110100) + '\146' + chr(839 - 794) + chr(56)) not in q5n0sHDDTy90: q5n0sHDDTy90[roI3spqORKae(ES5oEprVxulp(b'\x95\xb3\x88|\xaf\xb6\xc0'), chr(0b1000011 + 0o41) + chr(0b1100101) + '\x63' + chr(0b1101111) + chr(0b1100100) + '\x65')('\165' + chr(0b1110100) + chr(102) + chr(0b101101) + chr(56))] = sWZjHJYQ52Dn xxhWttsUDUCM = SsdNdRxXOwsF.api.file_upload(hXMPsSrOQzbh.d6KUnRQv6735, D9PB5QswZBza, **q5n0sHDDTy90) XuBkOpBKZJ5Z = xxhWttsUDUCM[roI3spqORKae(ES5oEprVxulp(b'\x94\xa8\x89'), '\x64' + chr(101) + chr(99) + chr(9615 - 9504) + '\x64' + chr(101))('\165' + chr(0b1110100) + '\x66' + chr(45) + '\070')] return (XuBkOpBKZJ5Z, _7oaHXA4IOMT(roI3spqORKae(xxhWttsUDUCM, roI3spqORKae(ES5oEprVxulp(b'\xa6\x8f\xae|\xb4\xb6\x80\xfd\x1a\xca\xe0\xc6'), chr(6938 - 6838) + chr(2524 - 2423) + '\x63' + chr(0b1000010 + 0o55) + chr(0b11110 + 0o106) + chr(101))('\165' + chr(0b1110100) + chr(102) + chr(0b11110 + 0o17) + chr(2916 - 2860)))(roI3spqORKae(ES5oEprVxulp(b'\x89\xbf\x84}\xa5\xb1\xc7'), '\144' + chr(5823 - 5722) + chr(0b1100011) + chr(0b100001 + 0o116) + '\x64' + chr(8588 - 8487))(chr(0b1101 + 0o150) + chr(0b1110100) + '\146' + chr(1852 - 1807) + chr(56)), {}))) roI3spqORKae(SsdNdRxXOwsF, roI3spqORKae(ES5oEprVxulp(b'\xa5\x82\xadM\x94\x93\xe6\xe0\n\xf8\xf6\xff"'), chr(0b1100100) + chr(0b110 + 0o137) + chr(99) + '\157' + chr(0b1000001 + 0o43) + chr(0b110000 + 0o65))('\165' + chr(1796 - 1680) + chr(0b100100 + 0o102) + chr(0b101101) + '\x38'))(kpkJEdA8yVfj, FfKOThdpoDTb, jsonify_data=nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b101010 + 0o6), 8), prepend_srv=nzTpIcepk0o8('\060' + '\x6f' + chr(487 - 439), 8), always_retry=nzTpIcepk0o8(chr(48) + chr(0b110001 + 0o76) + chr(0b100000 + 0o21), 8), timeout=sWZjHJYQ52Dn, auth=None, method=roI3spqORKae(ES5oEprVxulp(b'\xb1\x8f\xb1'), chr(0b1 + 0o143) + chr(101) + chr(0b10 + 0o141) + '\157' + '\144' + '\145')(chr(117) + chr(6641 - 6525) + chr(0b1010011 + 0o23) + chr(0b101101) + '\x38')) hXMPsSrOQzbh.BKvYDH9MEvTU += nzTpIcepk0o8(chr(0b110000) + '\157' + chr(1440 - 1391), 8) if HUgbVMvQ4Fme: sJQV_HqS9fgz(roI3spqORKae(ES5oEprVxulp(b'\xcf'), chr(0b1001 + 0o133) + chr(101) + '\143' + chr(111) + chr(100) + '\145')('\x75' + '\164' + '\x66' + chr(45) + '\070')) if oQOmcNrJKYpg is not None: oQOmcNrJKYpg(hXMPsSrOQzbh, ftfygxgFas5X(FfKOThdpoDTb))
dnanexus/dx-toolkit
src/python/dxpy/bindings/dxfile.py
DXFile.get_download_url
def get_download_url(self, duration=None, preauthenticated=False, filename=None, project=None, **kwargs): """ :param duration: number of seconds for which the generated URL will be valid, should only be specified when preauthenticated is True :type duration: int :param preauthenticated: if True, generates a 'preauthenticated' download URL, which embeds authentication info in the URL and does not require additional headers :type preauthenticated: bool :param filename: desired filename of the downloaded file :type filename: str :param project: ID of a project containing the file (the download URL will be associated with this project, and this may affect which billing account is billed for this download). If no project is specified, an attempt will be made to verify if the file is in the project from the DXFile handler (as specified by the user or the current project stored in dxpy.WORKSPACE_ID). Otherwise, no hint is supplied. This fall back behavior does not happen inside a job environment. A non preauthenticated URL is only valid as long as the user has access to that project and the project contains that file. :type project: str :returns: download URL and dict containing HTTP headers to be supplied with the request :rtype: tuple (str, dict) :raises: :exc:`~dxpy.exceptions.ResourceNotFound` if a project context was given and the file was not found in that project context. :raises: :exc:`~dxpy.exceptions.ResourceNotFound` if no project context was given and the file was not found in any projects. Obtains a URL that can be used to directly download the associated file. """ args = {"preauthenticated": preauthenticated} if duration is not None: args["duration"] = duration if filename is not None: args["filename"] = filename # If project=None, we fall back to the project attached to this handler # (if any). If this is supplied, it's treated as a hint: if it's a # project in which this file exists, it's passed on to the # apiserver. Otherwise, NO hint is supplied. In principle supplying a # project in the handler that doesn't contain this file ought to be an # error, but it's this way for backwards compatibility. We don't know # who might be doing downloads and creating handlers without being # careful that the project encoded in the handler contains the file # being downloaded. They may now rely on such behavior. if project is None and 'DX_JOB_ID' not in os.environ: project_from_handler = self.get_proj_id() if project_from_handler and object_exists_in_project(self.get_id(), project_from_handler): project = project_from_handler if project is not None and project is not DXFile.NO_PROJECT_HINT: args["project"] = project # Test hook to write 'project' argument passed to API call to a # local file if '_DX_DUMP_BILLED_PROJECT' in os.environ: with open(os.environ['_DX_DUMP_BILLED_PROJECT'], "w") as fd: if project is not None and project != DXFile.NO_PROJECT_HINT: fd.write(project) with self._url_download_mutex: if self._download_url is None or self._download_url_expires < time.time(): # The idea here is to cache a download URL for the entire file, that will # be good for a few minutes. This avoids each thread having to ask the # server for a URL, increasing server load. # # To avoid thread race conditions, this check/update procedure is protected # with a lock. # logging.debug("Download URL unset or expired, requesting a new one") if "timeout" not in kwargs: kwargs["timeout"] = FILE_REQUEST_TIMEOUT resp = dxpy.api.file_download(self._dxid, args, **kwargs) self._download_url = resp["url"] self._download_url_headers = _validate_headers(resp.get("headers", {})) if preauthenticated: self._download_url_expires = resp["expires"]/1000 - 60 # Try to account for drift else: self._download_url_expires = 32503680000 # doesn't expire (year 3000) # Make a copy, ensuring each thread has its own mutable # version of the headers. Note: python strings are # immutable, so we can safely give a reference to the # download url. retval_download_url = self._download_url retval_download_url_headers = copy.copy(self._download_url_headers) return retval_download_url, retval_download_url_headers
python
def get_download_url(self, duration=None, preauthenticated=False, filename=None, project=None, **kwargs): """ :param duration: number of seconds for which the generated URL will be valid, should only be specified when preauthenticated is True :type duration: int :param preauthenticated: if True, generates a 'preauthenticated' download URL, which embeds authentication info in the URL and does not require additional headers :type preauthenticated: bool :param filename: desired filename of the downloaded file :type filename: str :param project: ID of a project containing the file (the download URL will be associated with this project, and this may affect which billing account is billed for this download). If no project is specified, an attempt will be made to verify if the file is in the project from the DXFile handler (as specified by the user or the current project stored in dxpy.WORKSPACE_ID). Otherwise, no hint is supplied. This fall back behavior does not happen inside a job environment. A non preauthenticated URL is only valid as long as the user has access to that project and the project contains that file. :type project: str :returns: download URL and dict containing HTTP headers to be supplied with the request :rtype: tuple (str, dict) :raises: :exc:`~dxpy.exceptions.ResourceNotFound` if a project context was given and the file was not found in that project context. :raises: :exc:`~dxpy.exceptions.ResourceNotFound` if no project context was given and the file was not found in any projects. Obtains a URL that can be used to directly download the associated file. """ args = {"preauthenticated": preauthenticated} if duration is not None: args["duration"] = duration if filename is not None: args["filename"] = filename # If project=None, we fall back to the project attached to this handler # (if any). If this is supplied, it's treated as a hint: if it's a # project in which this file exists, it's passed on to the # apiserver. Otherwise, NO hint is supplied. In principle supplying a # project in the handler that doesn't contain this file ought to be an # error, but it's this way for backwards compatibility. We don't know # who might be doing downloads and creating handlers without being # careful that the project encoded in the handler contains the file # being downloaded. They may now rely on such behavior. if project is None and 'DX_JOB_ID' not in os.environ: project_from_handler = self.get_proj_id() if project_from_handler and object_exists_in_project(self.get_id(), project_from_handler): project = project_from_handler if project is not None and project is not DXFile.NO_PROJECT_HINT: args["project"] = project # Test hook to write 'project' argument passed to API call to a # local file if '_DX_DUMP_BILLED_PROJECT' in os.environ: with open(os.environ['_DX_DUMP_BILLED_PROJECT'], "w") as fd: if project is not None and project != DXFile.NO_PROJECT_HINT: fd.write(project) with self._url_download_mutex: if self._download_url is None or self._download_url_expires < time.time(): # The idea here is to cache a download URL for the entire file, that will # be good for a few minutes. This avoids each thread having to ask the # server for a URL, increasing server load. # # To avoid thread race conditions, this check/update procedure is protected # with a lock. # logging.debug("Download URL unset or expired, requesting a new one") if "timeout" not in kwargs: kwargs["timeout"] = FILE_REQUEST_TIMEOUT resp = dxpy.api.file_download(self._dxid, args, **kwargs) self._download_url = resp["url"] self._download_url_headers = _validate_headers(resp.get("headers", {})) if preauthenticated: self._download_url_expires = resp["expires"]/1000 - 60 # Try to account for drift else: self._download_url_expires = 32503680000 # doesn't expire (year 3000) # Make a copy, ensuring each thread has its own mutable # version of the headers. Note: python strings are # immutable, so we can safely give a reference to the # download url. retval_download_url = self._download_url retval_download_url_headers = copy.copy(self._download_url_headers) return retval_download_url, retval_download_url_headers
[ "def", "get_download_url", "(", "self", ",", "duration", "=", "None", ",", "preauthenticated", "=", "False", ",", "filename", "=", "None", ",", "project", "=", "None", ",", "*", "*", "kwargs", ")", ":", "args", "=", "{", "\"preauthenticated\"", ":", "preauthenticated", "}", "if", "duration", "is", "not", "None", ":", "args", "[", "\"duration\"", "]", "=", "duration", "if", "filename", "is", "not", "None", ":", "args", "[", "\"filename\"", "]", "=", "filename", "# If project=None, we fall back to the project attached to this handler", "# (if any). If this is supplied, it's treated as a hint: if it's a", "# project in which this file exists, it's passed on to the", "# apiserver. Otherwise, NO hint is supplied. In principle supplying a", "# project in the handler that doesn't contain this file ought to be an", "# error, but it's this way for backwards compatibility. We don't know", "# who might be doing downloads and creating handlers without being", "# careful that the project encoded in the handler contains the file", "# being downloaded. They may now rely on such behavior.", "if", "project", "is", "None", "and", "'DX_JOB_ID'", "not", "in", "os", ".", "environ", ":", "project_from_handler", "=", "self", ".", "get_proj_id", "(", ")", "if", "project_from_handler", "and", "object_exists_in_project", "(", "self", ".", "get_id", "(", ")", ",", "project_from_handler", ")", ":", "project", "=", "project_from_handler", "if", "project", "is", "not", "None", "and", "project", "is", "not", "DXFile", ".", "NO_PROJECT_HINT", ":", "args", "[", "\"project\"", "]", "=", "project", "# Test hook to write 'project' argument passed to API call to a", "# local file", "if", "'_DX_DUMP_BILLED_PROJECT'", "in", "os", ".", "environ", ":", "with", "open", "(", "os", ".", "environ", "[", "'_DX_DUMP_BILLED_PROJECT'", "]", ",", "\"w\"", ")", "as", "fd", ":", "if", "project", "is", "not", "None", "and", "project", "!=", "DXFile", ".", "NO_PROJECT_HINT", ":", "fd", ".", "write", "(", "project", ")", "with", "self", ".", "_url_download_mutex", ":", "if", "self", ".", "_download_url", "is", "None", "or", "self", ".", "_download_url_expires", "<", "time", ".", "time", "(", ")", ":", "# The idea here is to cache a download URL for the entire file, that will", "# be good for a few minutes. This avoids each thread having to ask the", "# server for a URL, increasing server load.", "#", "# To avoid thread race conditions, this check/update procedure is protected", "# with a lock.", "# logging.debug(\"Download URL unset or expired, requesting a new one\")", "if", "\"timeout\"", "not", "in", "kwargs", ":", "kwargs", "[", "\"timeout\"", "]", "=", "FILE_REQUEST_TIMEOUT", "resp", "=", "dxpy", ".", "api", ".", "file_download", "(", "self", ".", "_dxid", ",", "args", ",", "*", "*", "kwargs", ")", "self", ".", "_download_url", "=", "resp", "[", "\"url\"", "]", "self", ".", "_download_url_headers", "=", "_validate_headers", "(", "resp", ".", "get", "(", "\"headers\"", ",", "{", "}", ")", ")", "if", "preauthenticated", ":", "self", ".", "_download_url_expires", "=", "resp", "[", "\"expires\"", "]", "/", "1000", "-", "60", "# Try to account for drift", "else", ":", "self", ".", "_download_url_expires", "=", "32503680000", "# doesn't expire (year 3000)", "# Make a copy, ensuring each thread has its own mutable", "# version of the headers. Note: python strings are", "# immutable, so we can safely give a reference to the", "# download url.", "retval_download_url", "=", "self", ".", "_download_url", "retval_download_url_headers", "=", "copy", ".", "copy", "(", "self", ".", "_download_url_headers", ")", "return", "retval_download_url", ",", "retval_download_url_headers" ]
:param duration: number of seconds for which the generated URL will be valid, should only be specified when preauthenticated is True :type duration: int :param preauthenticated: if True, generates a 'preauthenticated' download URL, which embeds authentication info in the URL and does not require additional headers :type preauthenticated: bool :param filename: desired filename of the downloaded file :type filename: str :param project: ID of a project containing the file (the download URL will be associated with this project, and this may affect which billing account is billed for this download). If no project is specified, an attempt will be made to verify if the file is in the project from the DXFile handler (as specified by the user or the current project stored in dxpy.WORKSPACE_ID). Otherwise, no hint is supplied. This fall back behavior does not happen inside a job environment. A non preauthenticated URL is only valid as long as the user has access to that project and the project contains that file. :type project: str :returns: download URL and dict containing HTTP headers to be supplied with the request :rtype: tuple (str, dict) :raises: :exc:`~dxpy.exceptions.ResourceNotFound` if a project context was given and the file was not found in that project context. :raises: :exc:`~dxpy.exceptions.ResourceNotFound` if no project context was given and the file was not found in any projects. Obtains a URL that can be used to directly download the associated file.
[ ":", "param", "duration", ":", "number", "of", "seconds", "for", "which", "the", "generated", "URL", "will", "be", "valid", "should", "only", "be", "specified", "when", "preauthenticated", "is", "True", ":", "type", "duration", ":", "int", ":", "param", "preauthenticated", ":", "if", "True", "generates", "a", "preauthenticated", "download", "URL", "which", "embeds", "authentication", "info", "in", "the", "URL", "and", "does", "not", "require", "additional", "headers", ":", "type", "preauthenticated", ":", "bool", ":", "param", "filename", ":", "desired", "filename", "of", "the", "downloaded", "file", ":", "type", "filename", ":", "str", ":", "param", "project", ":", "ID", "of", "a", "project", "containing", "the", "file", "(", "the", "download", "URL", "will", "be", "associated", "with", "this", "project", "and", "this", "may", "affect", "which", "billing", "account", "is", "billed", "for", "this", "download", ")", ".", "If", "no", "project", "is", "specified", "an", "attempt", "will", "be", "made", "to", "verify", "if", "the", "file", "is", "in", "the", "project", "from", "the", "DXFile", "handler", "(", "as", "specified", "by", "the", "user", "or", "the", "current", "project", "stored", "in", "dxpy", ".", "WORKSPACE_ID", ")", ".", "Otherwise", "no", "hint", "is", "supplied", ".", "This", "fall", "back", "behavior", "does", "not", "happen", "inside", "a", "job", "environment", ".", "A", "non", "preauthenticated", "URL", "is", "only", "valid", "as", "long", "as", "the", "user", "has", "access", "to", "that", "project", "and", "the", "project", "contains", "that", "file", ".", ":", "type", "project", ":", "str", ":", "returns", ":", "download", "URL", "and", "dict", "containing", "HTTP", "headers", "to", "be", "supplied", "with", "the", "request", ":", "rtype", ":", "tuple", "(", "str", "dict", ")", ":", "raises", ":", ":", "exc", ":", "~dxpy", ".", "exceptions", ".", "ResourceNotFound", "if", "a", "project", "context", "was", "given", "and", "the", "file", "was", "not", "found", "in", "that", "project", "context", ".", ":", "raises", ":", ":", "exc", ":", "~dxpy", ".", "exceptions", ".", "ResourceNotFound", "if", "no", "project", "context", "was", "given", "and", "the", "file", "was", "not", "found", "in", "any", "projects", "." ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxfile.py#L729-L820
train
Generates a download URL for the specified file and optional duration.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,Lq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TriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(1190 - 1142) + chr(0b1101111) + chr(0b110011) + chr(406 - 358) + chr(1846 - 1798), 17694 - 17686), nzTpIcepk0o8(chr(648 - 600) + chr(111) + chr(0b101100 + 0o7) + chr(48) + '\x32', 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b100111 + 0o12) + '\067' + '\065', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b101101 + 0o6) + chr(0b11101 + 0o26) + chr(90 - 39), 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110110) + chr(880 - 827), 0b1000), nzTpIcepk0o8(chr(0b101111 + 0o1) + chr(111) + '\062' + chr(0b110110) + chr(0b10000 + 0o40), 42455 - 42447), nzTpIcepk0o8(chr(0b110000) + chr(2965 - 2854) + '\x33' + chr(0b110110), 0b1000), nzTpIcepk0o8(chr(0b11101 + 0o23) + chr(0b1101111) + '\x33' + chr(0b1001 + 0o52) + chr(0b1001 + 0o53), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(3755 - 3644) + chr(1115 - 1066) + '\066' + chr(0b10010 + 0o37), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(51) + chr(1923 - 1870) + chr(0b110111), 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(0b110011) + '\064', 0o10), nzTpIcepk0o8('\x30' + '\x6f' + '\063' + chr(2268 - 2219) + chr(2094 - 2041), 37680 - 37672), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b10100 + 0o36) + chr(369 - 318) + chr(0b111 + 0o54), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\062' + chr(0b1110 + 0o43) + chr(53), 49159 - 49151), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(51) + chr(2906 - 2851) + '\x33', 16259 - 16251), nzTpIcepk0o8(chr(356 - 308) + chr(0b1110 + 0o141) + chr(1382 - 1333) + chr(1840 - 1790), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b110111 + 0o70) + '\061' + '\063' + chr(1947 - 1893), 25913 - 25905), nzTpIcepk0o8('\x30' + chr(111) + chr(0b101101 + 0o10) + chr(49), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + '\062' + chr(0b101001 + 0o11) + chr(2725 - 2672), 6435 - 6427), nzTpIcepk0o8(chr(1833 - 1785) + chr(0b1011001 + 0o26) + chr(640 - 591) + chr(2000 - 1949) + chr(0b11 + 0o56), 32682 - 32674), nzTpIcepk0o8(chr(48) + '\x6f' + '\061' + chr(0b100111 + 0o15) + chr(474 - 426), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x31' + chr(0b111 + 0o54) + chr(692 - 643), 8), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b11111 + 0o24) + '\064' + chr(233 - 184), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(572 - 517) + chr(51), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + '\x33' + chr(1349 - 1297) + chr(0b110101), 43426 - 43418), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(49) + chr(0b110101) + '\065', ord("\x08")), nzTpIcepk0o8('\x30' + chr(7810 - 7699) + chr(0b110001) + chr(48) + chr(2346 - 2293), 5049 - 5041), nzTpIcepk0o8(chr(1460 - 1412) + '\x6f' + chr(0b110011) + chr(1886 - 1831) + '\061', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110011) + chr(1605 - 1550), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110011) + chr(0b110000) + chr(764 - 710), 29972 - 29964), nzTpIcepk0o8('\060' + chr(11946 - 11835) + '\061' + '\x30' + chr(0b111 + 0o55), 0o10), nzTpIcepk0o8(chr(0b1 + 0o57) + chr(111) + chr(1321 - 1271) + chr(0b110000) + '\x33', 0b1000), nzTpIcepk0o8(chr(0b1111 + 0o41) + '\x6f' + chr(485 - 434) + '\066' + '\x36', 0b1000), nzTpIcepk0o8(chr(0b11111 + 0o21) + '\x6f' + chr(51) + chr(0b110110) + chr(0b110000), 0b1000), nzTpIcepk0o8(chr(0b100101 + 0o13) + '\x6f' + '\x32' + '\x32' + chr(1887 - 1833), 0o10), nzTpIcepk0o8(chr(0b10101 + 0o33) + chr(2896 - 2785) + chr(52) + chr(50), 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(0b100 + 0o63) + '\066', 55418 - 55410), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110010) + chr(54) + chr(2349 - 2299), 0b1000), nzTpIcepk0o8('\060' + chr(5932 - 5821) + '\061' + chr(53) + '\x33', 0o10), nzTpIcepk0o8(chr(0b100001 + 0o17) + chr(0b1101111) + chr(0b110010) + chr(52), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + '\x6f' + chr(53) + chr(223 - 175), 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xee'), chr(5707 - 5607) + chr(0b1100101) + chr(9416 - 9317) + chr(0b10011 + 0o134) + '\144' + chr(0b1100101))(chr(0b1110101) + '\164' + chr(9432 - 9330) + '\x2d' + '\x38') + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def N6_xIPM_1ROF(hXMPsSrOQzbh, iMj2_O01ri67=None, EKcO6kzG_yq2=nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x30', 0b1000), FxZHtXEolYsL=None, mcjejRq_Q0_k=None, **q5n0sHDDTy90): eemPYp2vtTSr = {roI3spqORKae(ES5oEprVxulp(b'\xb0\xb0\x18\xba@\xc4v\xb9\x1f\x9bu\xae\xfa\xf9\x9en'), chr(100) + chr(0b1011 + 0o132) + chr(0b1100011) + chr(0b101 + 0o152) + chr(0b1100 + 0o130) + chr(0b1011 + 0o132))('\165' + chr(0b1110100) + chr(9795 - 9693) + '\x2d' + chr(0b100001 + 0o27)): EKcO6kzG_yq2} if iMj2_O01ri67 is not None: eemPYp2vtTSr[roI3spqORKae(ES5oEprVxulp(b'\xa4\xb7\x0f\xbaA\xd9q\xb2'), chr(5072 - 4972) + chr(0b1100101) + chr(0b1100011) + '\x6f' + chr(9692 - 9592) + chr(101))(chr(7216 - 7099) + chr(0b1110100) + '\146' + chr(45) + chr(0b110111 + 0o1))] = iMj2_O01ri67 if FxZHtXEolYsL is not None: eemPYp2vtTSr[roI3spqORKae(ES5oEprVxulp(b'\xa6\xab\x11\xbe[\xd1s\xb9'), '\x64' + chr(0b1000 + 0o135) + chr(4209 - 4110) + chr(0b1101111) + '\144' + chr(9803 - 9702))(chr(0b1001100 + 0o51) + chr(0b11100 + 0o130) + '\x66' + '\x2d' + chr(56))] = FxZHtXEolYsL if mcjejRq_Q0_k is None and roI3spqORKae(ES5oEprVxulp(b'\x84\x9a"\x91z\xf2A\x955'), chr(0b1100100) + chr(4032 - 3931) + chr(7587 - 7488) + chr(0b1101111) + '\144' + chr(101))(chr(0b1110101) + '\x74' + chr(102) + chr(0b101101) + chr(0b111000)) not in roI3spqORKae(aHUqKstZLeS6, roI3spqORKae(ES5oEprVxulp(b'\x89\xf1\x11\x8cL\xf3(\x83!\xb0Q\x82'), chr(0b1100100) + chr(101) + chr(99) + chr(12178 - 12067) + chr(100) + chr(0b1100101))('\x75' + chr(729 - 613) + chr(0b110111 + 0o57) + chr(45) + '\070')): xigoHj4_4SS0 = hXMPsSrOQzbh.get_proj_id() if xigoHj4_4SS0 and Xqvwwh2Bsdty(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xae\xa9)\xb5V\xfa}\x9a!\x83u\x9a'), '\144' + '\145' + chr(6139 - 6040) + chr(6148 - 6037) + chr(100) + '\145')('\x75' + '\x74' + chr(0b1001101 + 0o31) + '\055' + chr(56)))(), xigoHj4_4SS0): mcjejRq_Q0_k = xigoHj4_4SS0 if mcjejRq_Q0_k is not None and mcjejRq_Q0_k is not roI3spqORKae(raWYLn1m7863, roI3spqORKae(ES5oEprVxulp(b'\x8e\x8d"\x8bg\xffT\x992\xbbC\x85\xd2\xc3\xaf'), '\x64' + '\145' + chr(0b11001 + 0o112) + '\x6f' + '\144' + '\145')(chr(0b1110101) + '\x74' + chr(102) + chr(0b101000 + 0o5) + '\070')): eemPYp2vtTSr[roI3spqORKae(ES5oEprVxulp(b'\xb0\xb0\x12\xb1P\xd3j'), '\x64' + chr(0b111000 + 0o55) + '\143' + '\157' + chr(100) + '\145')('\x75' + chr(7400 - 7284) + '\x66' + chr(1142 - 1097) + '\070')] = mcjejRq_Q0_k if roI3spqORKae(ES5oEprVxulp(b'\x9f\x86%\x84q\xe5S\x8c.\xadU\x81\xd7\xc8\xbfU\x0e{\xda\x13%\x1a\xb5'), chr(578 - 478) + chr(0b1011011 + 0o12) + chr(0b1100011) + '\157' + '\x64' + '\x65')('\165' + chr(5500 - 5384) + chr(102) + '\055' + '\x38') in roI3spqORKae(aHUqKstZLeS6, roI3spqORKae(ES5oEprVxulp(b'\x89\xf1\x11\x8cL\xf3(\x83!\xb0Q\x82'), chr(100) + chr(101) + chr(99) + chr(0b1101111) + '\144' + chr(0b1100101))(chr(117) + '\x74' + chr(1097 - 995) + '\x2d' + chr(0b1001 + 0o57))): with DnU3Rq9N5ala(roI3spqORKae(aHUqKstZLeS6, roI3spqORKae(ES5oEprVxulp(b'\x89\xf1\x11\x8cL\xf3(\x83!\xb0Q\x82'), chr(0b100110 + 0o76) + chr(0b1100101) + chr(0b10010 + 0o121) + chr(8083 - 7972) + chr(0b101101 + 0o67) + chr(0b100001 + 0o104))('\x75' + chr(0b1110100) + chr(0b1100110) + chr(46 - 1) + chr(2605 - 2549)))[roI3spqORKae(ES5oEprVxulp(b'\x9f\x86%\x84q\xe5S\x8c.\xadU\x81\xd7\xc8\xbfU\x0e{\xda\x13%\x1a\xb5'), chr(0b1010110 + 0o16) + chr(1693 - 1592) + chr(99) + '\157' + chr(0b100000 + 0o104) + '\x65')(chr(0b1110101) + chr(116) + chr(0b1100110) + '\x2d' + chr(0b111000))], roI3spqORKae(ES5oEprVxulp(b'\xb7'), chr(100) + '\x65' + chr(1953 - 1854) + '\157' + '\144' + chr(0b1001100 + 0o31))(chr(117) + chr(0b1110100) + chr(0b1100110) + '\055' + chr(0b1101 + 0o53))) as RW6jRKOlF6C5: if mcjejRq_Q0_k is not None and mcjejRq_Q0_k != roI3spqORKae(raWYLn1m7863, roI3spqORKae(ES5oEprVxulp(b'\x8e\x8d"\x8bg\xffT\x992\xbbC\x85\xd2\xc3\xaf'), chr(934 - 834) + chr(3936 - 3835) + chr(0b1100010 + 0o1) + chr(2059 - 1948) + '\x64' + chr(0b1100101))(chr(117) + chr(116) + '\146' + chr(45) + chr(0b1010 + 0o56))): roI3spqORKae(RW6jRKOlF6C5, roI3spqORKae(ES5oEprVxulp(b'\xad\xaeM\xb3]\xc0h\xed=\x9fm\xff'), '\144' + chr(0b1100101) + chr(0b101100 + 0o67) + chr(0b1101111) + chr(0b1100100) + chr(101))(chr(0b111000 + 0o75) + '\164' + '\x66' + chr(0b1000 + 0o45) + '\070'))(mcjejRq_Q0_k) with roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x9f\xb7\x0f\xb7j\xd4q\xab\x1f\x83s\xac\xff\xd2\x96\x7f*L\xed'), chr(0b1100100) + chr(101) + '\143' + chr(0b110010 + 0o75) + chr(0b1100100) + '\x65')(chr(7132 - 7015) + chr(116) + chr(0b1100110) + chr(1477 - 1432) + '\x38')): if roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x95\xa4\x04\x81[\xc6k\x99\x17\x8d)\xbd'), chr(0b1100100) + chr(101) + chr(0b1100011) + '\157' + chr(655 - 555) + chr(8259 - 8158))(chr(12652 - 12535) + chr(0b11110 + 0o126) + chr(2772 - 2670) + chr(45) + chr(0b101111 + 0o11))) is None or roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x9f\xa6\x12\xac[\xdcq\xbd\x15\xb0i\xbf\xf7\xd2\x9er.@\xe7<\x13'), chr(100) + chr(0b1100101) + '\143' + '\157' + '\x64' + '\145')(chr(10089 - 9972) + chr(3811 - 3695) + chr(4650 - 4548) + chr(0b110 + 0o47) + chr(56))) < roI3spqORKae(oprIvDIRQyCb, roI3spqORKae(ES5oEprVxulp(b'\xaf\xb2\x0f\x92C\xf4W\x8e \x96_\xaf'), chr(0b11101 + 0o107) + chr(0b101111 + 0o66) + chr(0b1100011) + chr(4586 - 4475) + '\x64' + chr(10163 - 10062))('\165' + chr(6162 - 6046) + chr(102) + '\x2d' + chr(0b100101 + 0o23)))(): if roI3spqORKae(ES5oEprVxulp(b'\xb4\xab\x10\xbeZ\xc5j'), '\144' + chr(0b111001 + 0o54) + '\143' + chr(0b110111 + 0o70) + chr(0b100001 + 0o103) + chr(4309 - 4208))('\165' + '\x74' + chr(130 - 28) + chr(45) + chr(0b111000)) not in q5n0sHDDTy90: q5n0sHDDTy90[roI3spqORKae(ES5oEprVxulp(b'\xb4\xab\x10\xbeZ\xc5j'), chr(0b10101 + 0o117) + '\145' + '\143' + chr(2983 - 2872) + '\144' + '\145')(chr(0b1110101) + '\164' + chr(0b1001010 + 0o34) + '\055' + chr(56))] = sWZjHJYQ52Dn xxhWttsUDUCM = SsdNdRxXOwsF.api.file_download(hXMPsSrOQzbh.d6KUnRQv6735, eemPYp2vtTSr, **q5n0sHDDTy90) hXMPsSrOQzbh.UfyZnvuEfb5p = xxhWttsUDUCM[roI3spqORKae(ES5oEprVxulp(b'\xb5\xb0\x11'), chr(2778 - 2678) + chr(3092 - 2991) + chr(0b1100011) + chr(0b1101111) + chr(0b11000 + 0o114) + '\145')(chr(5163 - 5046) + '\x74' + '\x66' + '\055' + chr(0b111000))] hXMPsSrOQzbh.vesb8MqykRUp = _7oaHXA4IOMT(xxhWttsUDUCM.GUKetu4xaGsJ(roI3spqORKae(ES5oEprVxulp(b'\xa8\xa7\x1c\xbfP\xc2m'), chr(0b1100100) + chr(0b1100101) + chr(0b1100011) + chr(0b1101111) + '\x64' + chr(0b1100101))(chr(117) + '\164' + chr(0b1100110) + chr(1637 - 1592) + chr(0b101000 + 0o20)), {})) if EKcO6kzG_yq2: hXMPsSrOQzbh.NlroL2pnXCbq = xxhWttsUDUCM[roI3spqORKae(ES5oEprVxulp(b'\xa5\xba\r\xb2G\xd5m'), chr(8766 - 8666) + '\145' + chr(0b1000110 + 0o35) + '\x6f' + '\x64' + chr(0b1100001 + 0o4))(chr(1384 - 1267) + chr(0b1110100) + '\146' + '\055' + chr(0b1 + 0o67))] / nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\061' + '\x37' + chr(0b110010 + 0o3) + chr(48), 51195 - 51187) - nzTpIcepk0o8('\060' + chr(0b101100 + 0o103) + '\067' + chr(0b0 + 0o64), 0o10) else: hXMPsSrOQzbh.NlroL2pnXCbq = nzTpIcepk0o8('\060' + chr(6010 - 5899) + chr(0b100011 + 0o20) + '\x36' + chr(0b110010) + chr(823 - 774) + chr(50) + chr(0b110100 + 0o3) + '\x35' + chr(0b100 + 0o60) + chr(54) + chr(0b100100 + 0o14) + '\x30' + '\060', 0o10) bOtrhgRYyRqn = hXMPsSrOQzbh.UfyZnvuEfb5p TPLreaYMjtpJ = aZTCj4v5QdfO.copy(hXMPsSrOQzbh.vesb8MqykRUp) return (bOtrhgRYyRqn, TPLreaYMjtpJ)
dnanexus/dx-toolkit
src/python/dxpy/bindings/dxfile.py
DXFile._read2
def _read2(self, length=None, use_compression=None, project=None, **kwargs): ''' :param length: Maximum number of bytes to be read :type length: integer :param project: project to use as context for this download (may affect which billing account is billed for this download). If specified, must be a project in which this file exists. If not specified, the project ID specified in the handler is used for the download, IF it contains this file. If set to DXFile.NO_PROJECT_HINT, no project ID is supplied for the download, even if the handler specifies a project ID. :type project: str or None :rtype: string :raises: :exc:`~dxpy.exceptions.ResourceNotFound` if *project* is supplied and it does not contain this file Returns the next *length* bytes, or all the bytes until the end of file (if no *length* is given or there are fewer than *length* bytes left in the file). .. note:: After the first call to read(), the project arg and passthrough kwargs are not respected while using the same response iterator (i.e. until next seek). ''' if self._file_length == None: desc = self.describe(**kwargs) if desc["state"] != "closed": raise DXFileError("Cannot read from file until it is in the closed state") self._file_length = int(desc["size"]) # If running on a worker, wait for the first file download chunk # to come back before issuing any more requests. This ensures # that all subsequent requests can take advantage of caching, # rather than having all of the first DXFILE_HTTP_THREADS # requests simultaneously hit a cold cache. Enforce a minimum # size for this heuristic so we don't incur the overhead for # tiny files (which wouldn't contribute as much to the load # anyway). get_first_chunk_sequentially = (self._file_length > 128 * 1024 and self._pos == 0 and dxpy.JOB_ID) if self._pos == self._file_length: return b"" if length == None or length > self._file_length - self._pos: length = self._file_length - self._pos buf = self._read_buf buf_remaining_bytes = dxpy.utils.string_buffer_length(buf) - buf.tell() if length <= buf_remaining_bytes: self._pos += length return buf.read(length) else: orig_buf_pos = buf.tell() orig_file_pos = self._pos buf.seek(0, os.SEEK_END) self._pos += buf_remaining_bytes while self._pos < orig_file_pos + length: remaining_len = orig_file_pos + length - self._pos if self._response_iterator is None: self._request_iterator = self._generate_read_requests( start_pos=self._pos, project=project, **kwargs) content = self._next_response_content(get_first_chunk_sequentially=get_first_chunk_sequentially) if len(content) < remaining_len: buf.write(content) self._pos += len(content) else: # response goes beyond requested length buf.write(content[:remaining_len]) self._pos += remaining_len self._read_buf = BytesIO() self._read_buf.write(content[remaining_len:]) self._read_buf.seek(0) buf.seek(orig_buf_pos) return buf.read()
python
def _read2(self, length=None, use_compression=None, project=None, **kwargs): ''' :param length: Maximum number of bytes to be read :type length: integer :param project: project to use as context for this download (may affect which billing account is billed for this download). If specified, must be a project in which this file exists. If not specified, the project ID specified in the handler is used for the download, IF it contains this file. If set to DXFile.NO_PROJECT_HINT, no project ID is supplied for the download, even if the handler specifies a project ID. :type project: str or None :rtype: string :raises: :exc:`~dxpy.exceptions.ResourceNotFound` if *project* is supplied and it does not contain this file Returns the next *length* bytes, or all the bytes until the end of file (if no *length* is given or there are fewer than *length* bytes left in the file). .. note:: After the first call to read(), the project arg and passthrough kwargs are not respected while using the same response iterator (i.e. until next seek). ''' if self._file_length == None: desc = self.describe(**kwargs) if desc["state"] != "closed": raise DXFileError("Cannot read from file until it is in the closed state") self._file_length = int(desc["size"]) # If running on a worker, wait for the first file download chunk # to come back before issuing any more requests. This ensures # that all subsequent requests can take advantage of caching, # rather than having all of the first DXFILE_HTTP_THREADS # requests simultaneously hit a cold cache. Enforce a minimum # size for this heuristic so we don't incur the overhead for # tiny files (which wouldn't contribute as much to the load # anyway). get_first_chunk_sequentially = (self._file_length > 128 * 1024 and self._pos == 0 and dxpy.JOB_ID) if self._pos == self._file_length: return b"" if length == None or length > self._file_length - self._pos: length = self._file_length - self._pos buf = self._read_buf buf_remaining_bytes = dxpy.utils.string_buffer_length(buf) - buf.tell() if length <= buf_remaining_bytes: self._pos += length return buf.read(length) else: orig_buf_pos = buf.tell() orig_file_pos = self._pos buf.seek(0, os.SEEK_END) self._pos += buf_remaining_bytes while self._pos < orig_file_pos + length: remaining_len = orig_file_pos + length - self._pos if self._response_iterator is None: self._request_iterator = self._generate_read_requests( start_pos=self._pos, project=project, **kwargs) content = self._next_response_content(get_first_chunk_sequentially=get_first_chunk_sequentially) if len(content) < remaining_len: buf.write(content) self._pos += len(content) else: # response goes beyond requested length buf.write(content[:remaining_len]) self._pos += remaining_len self._read_buf = BytesIO() self._read_buf.write(content[remaining_len:]) self._read_buf.seek(0) buf.seek(orig_buf_pos) return buf.read()
[ "def", "_read2", "(", "self", ",", "length", "=", "None", ",", "use_compression", "=", "None", ",", "project", "=", "None", ",", "*", "*", "kwargs", ")", ":", "if", "self", ".", "_file_length", "==", "None", ":", "desc", "=", "self", ".", "describe", "(", "*", "*", "kwargs", ")", "if", "desc", "[", "\"state\"", "]", "!=", "\"closed\"", ":", "raise", "DXFileError", "(", "\"Cannot read from file until it is in the closed state\"", ")", "self", ".", "_file_length", "=", "int", "(", "desc", "[", "\"size\"", "]", ")", "# If running on a worker, wait for the first file download chunk", "# to come back before issuing any more requests. This ensures", "# that all subsequent requests can take advantage of caching,", "# rather than having all of the first DXFILE_HTTP_THREADS", "# requests simultaneously hit a cold cache. Enforce a minimum", "# size for this heuristic so we don't incur the overhead for", "# tiny files (which wouldn't contribute as much to the load", "# anyway).", "get_first_chunk_sequentially", "=", "(", "self", ".", "_file_length", ">", "128", "*", "1024", "and", "self", ".", "_pos", "==", "0", "and", "dxpy", ".", "JOB_ID", ")", "if", "self", ".", "_pos", "==", "self", ".", "_file_length", ":", "return", "b\"\"", "if", "length", "==", "None", "or", "length", ">", "self", ".", "_file_length", "-", "self", ".", "_pos", ":", "length", "=", "self", ".", "_file_length", "-", "self", ".", "_pos", "buf", "=", "self", ".", "_read_buf", "buf_remaining_bytes", "=", "dxpy", ".", "utils", ".", "string_buffer_length", "(", "buf", ")", "-", "buf", ".", "tell", "(", ")", "if", "length", "<=", "buf_remaining_bytes", ":", "self", ".", "_pos", "+=", "length", "return", "buf", ".", "read", "(", "length", ")", "else", ":", "orig_buf_pos", "=", "buf", ".", "tell", "(", ")", "orig_file_pos", "=", "self", ".", "_pos", "buf", ".", "seek", "(", "0", ",", "os", ".", "SEEK_END", ")", "self", ".", "_pos", "+=", "buf_remaining_bytes", "while", "self", ".", "_pos", "<", "orig_file_pos", "+", "length", ":", "remaining_len", "=", "orig_file_pos", "+", "length", "-", "self", ".", "_pos", "if", "self", ".", "_response_iterator", "is", "None", ":", "self", ".", "_request_iterator", "=", "self", ".", "_generate_read_requests", "(", "start_pos", "=", "self", ".", "_pos", ",", "project", "=", "project", ",", "*", "*", "kwargs", ")", "content", "=", "self", ".", "_next_response_content", "(", "get_first_chunk_sequentially", "=", "get_first_chunk_sequentially", ")", "if", "len", "(", "content", ")", "<", "remaining_len", ":", "buf", ".", "write", "(", "content", ")", "self", ".", "_pos", "+=", "len", "(", "content", ")", "else", ":", "# response goes beyond requested length", "buf", ".", "write", "(", "content", "[", ":", "remaining_len", "]", ")", "self", ".", "_pos", "+=", "remaining_len", "self", ".", "_read_buf", "=", "BytesIO", "(", ")", "self", ".", "_read_buf", ".", "write", "(", "content", "[", "remaining_len", ":", "]", ")", "self", ".", "_read_buf", ".", "seek", "(", "0", ")", "buf", ".", "seek", "(", "orig_buf_pos", ")", "return", "buf", ".", "read", "(", ")" ]
:param length: Maximum number of bytes to be read :type length: integer :param project: project to use as context for this download (may affect which billing account is billed for this download). If specified, must be a project in which this file exists. If not specified, the project ID specified in the handler is used for the download, IF it contains this file. If set to DXFile.NO_PROJECT_HINT, no project ID is supplied for the download, even if the handler specifies a project ID. :type project: str or None :rtype: string :raises: :exc:`~dxpy.exceptions.ResourceNotFound` if *project* is supplied and it does not contain this file Returns the next *length* bytes, or all the bytes until the end of file (if no *length* is given or there are fewer than *length* bytes left in the file). .. note:: After the first call to read(), the project arg and passthrough kwargs are not respected while using the same response iterator (i.e. until next seek).
[ ":", "param", "length", ":", "Maximum", "number", "of", "bytes", "to", "be", "read", ":", "type", "length", ":", "integer", ":", "param", "project", ":", "project", "to", "use", "as", "context", "for", "this", "download", "(", "may", "affect", "which", "billing", "account", "is", "billed", "for", "this", "download", ")", ".", "If", "specified", "must", "be", "a", "project", "in", "which", "this", "file", "exists", ".", "If", "not", "specified", "the", "project", "ID", "specified", "in", "the", "handler", "is", "used", "for", "the", "download", "IF", "it", "contains", "this", "file", ".", "If", "set", "to", "DXFile", ".", "NO_PROJECT_HINT", "no", "project", "ID", "is", "supplied", "for", "the", "download", "even", "if", "the", "handler", "specifies", "a", "project", "ID", ".", ":", "type", "project", ":", "str", "or", "None", ":", "rtype", ":", "string", ":", "raises", ":", ":", "exc", ":", "~dxpy", ".", "exceptions", ".", "ResourceNotFound", "if", "*", "project", "*", "is", "supplied", "and", "it", "does", "not", "contain", "this", "file" ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxfile.py#L873-L949
train
Reads a file from the file and returns the next length bytes.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3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YV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\060' + chr(111) + chr(55) + chr(55), 43922 - 43914), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\062' + '\x32' + chr(0b110000), 1120 - 1112), nzTpIcepk0o8(chr(48) + chr(111) + '\062' + '\x34', ord("\x08")), nzTpIcepk0o8(chr(0b1101 + 0o43) + chr(0b10011 + 0o134) + '\x33' + chr(0b110101) + '\061', 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(50) + chr(1862 - 1813) + '\065', ord("\x08")), nzTpIcepk0o8(chr(0b100100 + 0o14) + '\x6f' + chr(0b111 + 0o53) + chr(55) + '\x35', 0b1000), nzTpIcepk0o8(chr(0b1010 + 0o46) + chr(0b1101111) + '\x31' + chr(1760 - 1709) + chr(0b101 + 0o54), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110001) + chr(0b110010) + chr(783 - 735), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(50) + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(1631 - 1583) + '\157' + chr(49) + chr(0b110001 + 0o0) + chr(0b10110 + 0o32), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(51) + '\x32' + '\x34', 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(0b101111 + 0o4) + chr(0b110111) + '\x32', 36498 - 36490), nzTpIcepk0o8(chr(1326 - 1278) + chr(5030 - 4919) + chr(0b110011) + '\063' + chr(2501 - 2450), 11758 - 11750), nzTpIcepk0o8(chr(0b10100 + 0o34) + chr(794 - 683) + chr(50) + chr(641 - 586) + chr(0b110011), 0b1000), nzTpIcepk0o8(chr(349 - 301) + '\x6f' + chr(50) + '\061' + chr(0b10110 + 0o33), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(50) + '\x33', 65142 - 65134), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(49) + chr(926 - 871) + chr(0b1001 + 0o55), 0b1000), nzTpIcepk0o8('\060' + chr(12116 - 12005) + chr(50) + '\063' + chr(0b110100), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1010010 + 0o35) + chr(441 - 386), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b101111 + 0o100) + chr(1016 - 965) + '\x36' + '\064', 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b1010 + 0o51) + chr(0b110001) + chr(2060 - 2012), 0o10), nzTpIcepk0o8(chr(796 - 748) + chr(2997 - 2886) + chr(0b110001) + '\x36', 38949 - 38941), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(50) + '\064' + '\064', 4568 - 4560), nzTpIcepk0o8(chr(579 - 531) + chr(111) + chr(0b10 + 0o57) + '\x31' + chr(49), 0o10), nzTpIcepk0o8(chr(1514 - 1466) + chr(0b1100111 + 0o10) + '\063' + chr(2188 - 2136) + '\062', ord("\x08")), nzTpIcepk0o8('\060' + chr(8855 - 8744) + chr(0b110001) + chr(49) + chr(0b110100), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\063' + chr(0b110010) + chr(53), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(49) + chr(0b110111) + chr(0b110110), 8), nzTpIcepk0o8(chr(1727 - 1679) + chr(772 - 661) + chr(49) + '\x32' + chr(2123 - 2072), 0b1000), nzTpIcepk0o8('\060' + chr(0b1100100 + 0o13) + chr(49) + chr(0b110001) + chr(52), 8), nzTpIcepk0o8(chr(48) + chr(11772 - 11661) + '\x32' + chr(0b110110) + '\066', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110010) + chr(0b101011 + 0o10) + '\067', 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(51) + '\x34' + chr(237 - 189), 0o10), nzTpIcepk0o8('\060' + '\157' + chr(55) + chr(1087 - 1038), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x31' + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b101100 + 0o103) + chr(0b10000 + 0o41) + chr(885 - 836), 8), nzTpIcepk0o8(chr(48) + chr(7320 - 7209) + '\x33' + chr(1434 - 1379), ord("\x08")), nzTpIcepk0o8(chr(0b1010 + 0o46) + chr(0b110011 + 0o74) + chr(2275 - 2224) + chr(0b100011 + 0o24) + '\061', 14676 - 14668), nzTpIcepk0o8('\060' + chr(0b1010001 + 0o36) + '\x32' + '\x35' + '\063', 60042 - 60034), nzTpIcepk0o8(chr(1046 - 998) + chr(0b10010 + 0o135) + '\x33' + '\x32' + '\x33', 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(732 - 679) + chr(0b100110 + 0o12), ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x11'), '\x64' + '\x65' + '\143' + '\157' + chr(2197 - 2097) + '\x65')(chr(117) + '\x74' + chr(0b1100110) + chr(0b100000 + 0o15) + chr(0b1000 + 0o60)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def HY6JZHxYQfiX(hXMPsSrOQzbh, a1RCQZREo3Kd=None, PkceImm2n98X=None, mcjejRq_Q0_k=None, **q5n0sHDDTy90): if roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'`\xe8w\x86\xc8\xe5(\x07e\x1f\xed\x9b'), '\x64' + chr(0b1100101) + chr(0b1100011) + chr(6440 - 6329) + chr(0b1100100) + chr(4572 - 4471))(chr(117) + chr(9159 - 9043) + chr(102) + chr(0b11010 + 0o23) + chr(0b111000))) is None: iSl7yqRxEcuG = hXMPsSrOQzbh.describe(**q5n0sHDDTy90) if iSl7yqRxEcuG[roI3spqORKae(ES5oEprVxulp(b'L\xe4u\x9d\xe8'), chr(100) + '\x65' + chr(0b1100011) + chr(0b10110 + 0o131) + chr(0b11100 + 0o110) + chr(0b101111 + 0o66))(chr(0b110001 + 0o104) + chr(0b1110100) + '\146' + chr(0b1000 + 0o45) + chr(0b111000))] != roI3spqORKae(ES5oEprVxulp(b'\\\xfc{\x9a\xe8\xd9'), '\144' + '\x65' + '\143' + chr(0b1101111) + '\144' + chr(5466 - 5365))(chr(117) + chr(3709 - 3593) + chr(0b1100110) + chr(0b1110 + 0o37) + chr(0b10 + 0o66)): raise oqIplWWv7W23(roI3spqORKae(ES5oEprVxulp(b'|\xf1z\x87\xe2\xc9y"t)\xb0\xda\xbd\xc9\xe6~^\xfan\x98\xad.\xd1\'\x96%\xb9^:8\x96\xf6\x93\x19`g?\x8d\xc3\xb6\x1f\xf3x\x86\xfe\xd8=pb<\xb5\x8e\xbe'), '\x64' + chr(0b1100101) + chr(0b1100011) + chr(0b1011111 + 0o20) + chr(0b1100100) + chr(101))(chr(117) + '\x74' + chr(5609 - 5507) + chr(0b1010 + 0o43) + chr(56))) hXMPsSrOQzbh._xcoEXqWtW9a = nzTpIcepk0o8(iSl7yqRxEcuG[roI3spqORKae(ES5oEprVxulp(b'L\xf9n\x8c'), chr(0b110 + 0o136) + chr(101) + chr(1091 - 992) + '\157' + '\144' + '\145')('\x75' + '\x74' + '\146' + chr(1680 - 1635) + chr(0b111000))]) sV9Y0LXoD5BN = hXMPsSrOQzbh._xcoEXqWtW9a > nzTpIcepk0o8(chr(767 - 719) + chr(0b1101111) + chr(1086 - 1036) + '\x30' + '\x30', 50656 - 50648) * nzTpIcepk0o8('\060' + chr(0b1101111) + chr(2457 - 2407) + '\060' + '\060' + '\x30', ord("\x08")) and hXMPsSrOQzbh.m_vFZWsML7BP == nzTpIcepk0o8(chr(0b11100 + 0o24) + chr(0b1101111) + chr(48), 17325 - 17317) and SsdNdRxXOwsF.JOB_ID if roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'R\xcfb\xaf\xd7\xea*\x1d]\x7f\x96\xaa'), '\x64' + chr(101) + chr(610 - 511) + chr(0b1101111) + '\x64' + chr(0b100101 + 0o100))('\165' + chr(116) + chr(3390 - 3288) + chr(45) + '\070')) == roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'`\xe8w\x86\xc8\xe5(\x07e\x1f\xed\x9b'), chr(0b1100100) + '\145' + chr(7791 - 7692) + '\157' + chr(100) + '\145')(chr(3070 - 2953) + chr(0b11001 + 0o133) + chr(0b1100110) + chr(0b101101) + chr(1406 - 1350))): return ES5oEprVxulp(b'') if a1RCQZREo3Kd is None or a1RCQZREo3Kd > roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'`\xe8w\x86\xc8\xe5(\x07e\x1f\xed\x9b'), chr(9835 - 9735) + chr(101) + chr(0b101110 + 0o65) + chr(0b1 + 0o156) + chr(0b1011011 + 0o11) + chr(0b11 + 0o142))('\165' + chr(0b10100 + 0o140) + '\x66' + chr(424 - 379) + '\x38')) - roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'R\xcfb\xaf\xd7\xea*\x1d]\x7f\x96\xaa'), '\x64' + '\145' + chr(5760 - 5661) + chr(0b10010 + 0o135) + chr(0b1100100) + chr(0b100110 + 0o77))(chr(0b1110101) + chr(116) + chr(102) + '\055' + chr(0b11011 + 0o35))): a1RCQZREo3Kd = hXMPsSrOQzbh._xcoEXqWtW9a - hXMPsSrOQzbh.m_vFZWsML7BP nIuXIilShoNQ = hXMPsSrOQzbh.UqDryQIqVvAa vs0HDeuTSTNO = SsdNdRxXOwsF.utils.string_buffer_length(nIuXIilShoNQ) - nIuXIilShoNQ.tell() if a1RCQZREo3Kd <= vs0HDeuTSTNO: hXMPsSrOQzbh.m_vFZWsML7BP += a1RCQZREo3Kd return roI3spqORKae(nIuXIilShoNQ, roI3spqORKae(ES5oEprVxulp(b'Z\xffL\x82\xe3\xf5n\x08D&\xe3\x97'), chr(0b1001 + 0o133) + chr(2815 - 2714) + chr(0b1100011) + '\157' + '\x64' + '\x65')(chr(0b1001 + 0o154) + '\x74' + chr(8881 - 8779) + chr(100 - 55) + '\070'))(a1RCQZREo3Kd) else: plvKSWwcX991 = nIuXIilShoNQ.tell() mIBR1rM2iga4 = hXMPsSrOQzbh.m_vFZWsML7BP roI3spqORKae(nIuXIilShoNQ, roI3spqORKae(ES5oEprVxulp(b'L\xf5q\x82'), '\x64' + chr(4618 - 4517) + chr(0b1011010 + 0o11) + chr(111) + chr(459 - 359) + chr(1976 - 1875))(chr(117) + chr(0b111001 + 0o73) + chr(102) + chr(1295 - 1250) + chr(0b110111 + 0o1)))(nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b10011 + 0o35), 8), roI3spqORKae(aHUqKstZLeS6, roI3spqORKae(ES5oEprVxulp(b'l\xd5Q\xa2\xd2\xf8\x17\x14'), '\144' + chr(2638 - 2537) + chr(99) + chr(111) + chr(0b1100100) + chr(101))(chr(0b1110101) + chr(0b1110100) + chr(0b1100110) + chr(1068 - 1023) + chr(0b11011 + 0o35)))) hXMPsSrOQzbh.m_vFZWsML7BP += vs0HDeuTSTNO while roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'R\xcfb\xaf\xd7\xea*\x1d]\x7f\x96\xaa'), chr(100) + '\145' + '\x63' + chr(0b11 + 0o154) + chr(0b1100100) + '\x65')('\x75' + '\164' + chr(0b1100110) + chr(0b101 + 0o50) + chr(989 - 933))) < mIBR1rM2iga4 + a1RCQZREo3Kd: LhRLRyLVbicS = mIBR1rM2iga4 + a1RCQZREo3Kd - hXMPsSrOQzbh.m_vFZWsML7BP if roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'S\xc2!\xa1\xf7\xf6\x13\x0fux\xa2\xb3'), '\x64' + '\x65' + chr(0b0 + 0o143) + chr(0b1010010 + 0o35) + chr(100) + chr(0b110110 + 0o57))('\165' + '\x74' + chr(0b0 + 0o146) + chr(1592 - 1547) + '\070')) is None: hXMPsSrOQzbh.pir5OXgQoSr4 = hXMPsSrOQzbh._generate_read_requests(start_pos=hXMPsSrOQzbh.m_vFZWsML7BP, project=mcjejRq_Q0_k, **q5n0sHDDTy90) M0YikwrsEpm5 = hXMPsSrOQzbh._next_response_content(get_first_chunk_sequentially=sV9Y0LXoD5BN) if ftfygxgFas5X(M0YikwrsEpm5) < LhRLRyLVbicS: roI3spqORKae(nIuXIilShoNQ, roI3spqORKae(ES5oEprVxulp(b'R\xfc$\x81\xe5\xcd/a]8\xa5\xc8'), chr(100) + chr(9327 - 9226) + chr(3089 - 2990) + chr(10606 - 10495) + chr(0b1000000 + 0o44) + '\145')('\x75' + '\164' + chr(0b0 + 0o146) + '\x2d' + '\070'))(M0YikwrsEpm5) hXMPsSrOQzbh.m_vFZWsML7BP += ftfygxgFas5X(M0YikwrsEpm5) else: roI3spqORKae(nIuXIilShoNQ, roI3spqORKae(ES5oEprVxulp(b'R\xfc$\x81\xe5\xcd/a]8\xa5\xc8'), chr(0b1000100 + 0o40) + '\x65' + chr(0b101011 + 0o70) + chr(0b111001 + 0o66) + chr(0b1100100) + chr(0b1011100 + 0o11))(chr(0b1110101) + chr(0b1110100) + chr(4723 - 4621) + '\055' + '\x38'))(M0YikwrsEpm5[:LhRLRyLVbicS]) hXMPsSrOQzbh.m_vFZWsML7BP += LhRLRyLVbicS hXMPsSrOQzbh.UqDryQIqVvAa = BVoKtXpmh0oX() roI3spqORKae(hXMPsSrOQzbh._read_buf, roI3spqORKae(ES5oEprVxulp(b'R\xfc$\x81\xe5\xcd/a]8\xa5\xc8'), chr(0b1100100) + '\x65' + chr(0b1100011) + '\x6f' + chr(100) + chr(576 - 475))('\165' + chr(11669 - 11553) + chr(9390 - 9288) + chr(0b101101) + chr(604 - 548)))(M0YikwrsEpm5[LhRLRyLVbicS:]) roI3spqORKae(hXMPsSrOQzbh._read_buf, roI3spqORKae(ES5oEprVxulp(b'L\xf5q\x82'), chr(5289 - 5189) + chr(0b0 + 0o145) + chr(0b1100011) + chr(0b111101 + 0o62) + '\x64' + chr(9834 - 9733))('\x75' + '\164' + '\x66' + '\055' + '\x38'))(nzTpIcepk0o8(chr(0b101101 + 0o3) + chr(111) + '\x30', 8)) roI3spqORKae(nIuXIilShoNQ, roI3spqORKae(ES5oEprVxulp(b'L\xf5q\x82'), chr(100) + chr(8584 - 8483) + chr(9128 - 9029) + chr(111) + chr(100) + chr(101))(chr(117) + chr(0b1100001 + 0o23) + chr(0b1100110) + '\055' + '\x38'))(plvKSWwcX991) return roI3spqORKae(nIuXIilShoNQ, roI3spqORKae(ES5oEprVxulp(b'Z\xffL\x82\xe3\xf5n\x08D&\xe3\x97'), chr(3986 - 3886) + '\x65' + chr(99) + chr(0b1101010 + 0o5) + chr(2169 - 2069) + chr(0b1100101))('\x75' + '\x74' + chr(0b1100110) + '\x2d' + '\070'))()
dnanexus/dx-toolkit
src/python/dxpy/ssh_tunnel_app_support.py
setup_ssh_tunnel
def setup_ssh_tunnel(job_id, local_port, remote_port): """ Setup an ssh tunnel to the given job-id. This will establish the port over the given local_port to the given remote_port and then exit, keeping the tunnel in place until the job is terminated. """ cmd = ['dx', 'ssh', '--suppress-running-check', job_id, '-o', 'StrictHostKeyChecking no'] cmd += ['-f', '-L', '{0}:localhost:{1}'.format(local_port, remote_port), '-N'] subprocess.check_call(cmd)
python
def setup_ssh_tunnel(job_id, local_port, remote_port): """ Setup an ssh tunnel to the given job-id. This will establish the port over the given local_port to the given remote_port and then exit, keeping the tunnel in place until the job is terminated. """ cmd = ['dx', 'ssh', '--suppress-running-check', job_id, '-o', 'StrictHostKeyChecking no'] cmd += ['-f', '-L', '{0}:localhost:{1}'.format(local_port, remote_port), '-N'] subprocess.check_call(cmd)
[ "def", "setup_ssh_tunnel", "(", "job_id", ",", "local_port", ",", "remote_port", ")", ":", "cmd", "=", "[", "'dx'", ",", "'ssh'", ",", "'--suppress-running-check'", ",", "job_id", ",", "'-o'", ",", "'StrictHostKeyChecking no'", "]", "cmd", "+=", "[", "'-f'", ",", "'-L'", ",", "'{0}:localhost:{1}'", ".", "format", "(", "local_port", ",", "remote_port", ")", ",", "'-N'", "]", "subprocess", ".", "check_call", "(", "cmd", ")" ]
Setup an ssh tunnel to the given job-id. This will establish the port over the given local_port to the given remote_port and then exit, keeping the tunnel in place until the job is terminated.
[ "Setup", "an", "ssh", "tunnel", "to", "the", "given", "job", "-", "id", ".", "This", "will", "establish", "the", "port", "over", "the", "given", "local_port", "to", "the", "given", "remote_port", "and", "then", "exit", "keeping", "the", "tunnel", "in", "place", "until", "the", "job", "is", "terminated", "." ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/ssh_tunnel_app_support.py#L31-L40
train
Setup an ssh tunnel to the given job - id.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFc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CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(1319 - 1269) + '\x37' + '\x34', 0b1000), nzTpIcepk0o8('\x30' + chr(525 - 414) + chr(79 - 28) + '\066' + chr(2493 - 2442), 0b1000), nzTpIcepk0o8(chr(0b10111 + 0o31) + '\157' + chr(50) + chr(0b110011) + '\064', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(51) + chr(0b110101) + chr(48), 8718 - 8710), nzTpIcepk0o8(chr(128 - 80) + chr(111) + chr(2090 - 2042), 0o10), nzTpIcepk0o8(chr(0b101 + 0o53) + chr(0b10 + 0o155) + chr(0b10 + 0o60) + chr(0b110110) + chr(50), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(51) + chr(2136 - 2083) + '\x35', 56153 - 56145), nzTpIcepk0o8(chr(0b110 + 0o52) + '\157' + chr(0b1111 + 0o42) + chr(0b110100) + '\x37', 0o10), nzTpIcepk0o8('\060' + chr(0b1100111 + 0o10) + chr(54) + chr(545 - 494), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(0b100 + 0o57) + chr(0b110101) + chr(0b10111 + 0o33), 26657 - 26649), nzTpIcepk0o8('\x30' + chr(8653 - 8542) + chr(0b110010) + chr(53) + '\062', 0o10), nzTpIcepk0o8(chr(1129 - 1081) + chr(0b1101111) + chr(51) + '\x32' + '\x33', 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(422 - 373) + chr(0b1001 + 0o50) + '\x30', ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(49) + chr(0b110010) + chr(2275 - 2226), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110001) + chr(0b11011 + 0o27) + '\066', 0b1000), nzTpIcepk0o8(chr(0b10110 + 0o32) + chr(3785 - 3674) + '\062' + chr(528 - 475) + chr(2046 - 1993), 0b1000), nzTpIcepk0o8(chr(1077 - 1029) + chr(1042 - 931) + '\063' + chr(568 - 516) + '\066', 49085 - 49077), nzTpIcepk0o8('\060' + '\157' + '\061' + '\x36' + '\063', 0b1000), nzTpIcepk0o8(chr(0b11001 + 0o27) + '\x6f' + '\061' + '\060' + '\x36', ord("\x08")), nzTpIcepk0o8(chr(1928 - 1880) + '\157' + chr(49) + '\x33', 33872 - 33864), nzTpIcepk0o8(chr(0b1000 + 0o50) + '\x6f' + chr(0b11111 + 0o22) + chr(0b110110) + chr(0b10010 + 0o40), 0o10), nzTpIcepk0o8(chr(304 - 256) + '\x6f' + chr(0b110001) + chr(0b1011 + 0o54) + chr(0b1 + 0o61), 0b1000), nzTpIcepk0o8('\060' + '\157' + chr(51) + '\067' + chr(0b10001 + 0o46), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(2987 - 2876) + chr(1458 - 1406) + '\x32', ord("\x08")), nzTpIcepk0o8(chr(133 - 85) + chr(788 - 677) + '\x35' + chr(1094 - 1044), 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(0b11110 + 0o23) + chr(0b11111 + 0o21) + chr(396 - 344), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110011) + chr(0b110101) + '\x30', 8), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b11010 + 0o27) + chr(53), 0b1000), nzTpIcepk0o8('\x30' + chr(0b10101 + 0o132) + chr(0b101011 + 0o6) + chr(53) + chr(49), ord("\x08")), nzTpIcepk0o8(chr(1073 - 1025) + chr(111) + chr(0b110001 + 0o0), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b100110 + 0o111) + chr(0b110101) + '\x32', 8), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(225 - 176) + chr(48) + chr(0b11100 + 0o25), 0b1000), nzTpIcepk0o8(chr(0b1 + 0o57) + chr(111) + chr(53) + chr(0b110101), 35969 - 35961), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x32' + '\x36' + chr(792 - 743), 0b1000), nzTpIcepk0o8('\x30' + chr(4552 - 4441) + chr(0b110001) + '\x30' + chr(48), ord("\x08")), nzTpIcepk0o8(chr(1694 - 1646) + chr(111) + chr(0b110010) + '\063' + chr(0b110000), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(0b110001) + '\061' + chr(2387 - 2334), 0b1000), nzTpIcepk0o8(chr(1124 - 1076) + chr(111) + '\x32' + '\x33' + chr(0b1010 + 0o46), 8), nzTpIcepk0o8(chr(624 - 576) + '\157' + chr(0b11110 + 0o25) + chr(1442 - 1394) + '\x34', ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + '\x33' + chr(0b10010 + 0o43) + chr(48), 8)][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + '\157' + chr(0b110101) + '\x30', 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x92'), '\x64' + '\145' + '\143' + chr(1824 - 1713) + chr(0b100011 + 0o101) + '\x65')(chr(117) + '\x74' + chr(102) + chr(0b101101) + chr(0b1011 + 0o55)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def vPz6IjbG3iOL(zd8UUGOstCUJ, Ror7YZAB3xrG, kyVM7gIdTqg9): mD44XHfr1PSC = [roI3spqORKae(ES5oEprVxulp(b'\xd8\x8b'), chr(100) + chr(0b1100101) + '\143' + '\x6f' + chr(4209 - 4109) + chr(4848 - 4747))(chr(0b1110101) + '\164' + chr(0b1001100 + 0o32) + chr(1654 - 1609) + chr(0b101010 + 0o16)), roI3spqORKae(ES5oEprVxulp(b'\xcf\x80\xf4'), chr(0b1011010 + 0o12) + chr(0b110111 + 0o56) + chr(0b1100011) + '\x6f' + chr(0b1100100) + chr(0b1100101))(chr(0b1110101) + chr(4437 - 4321) + chr(0b1100110) + '\x2d' + chr(0b1011 + 0o55)), roI3spqORKae(ES5oEprVxulp(b'\x91\xde\xef\x9dp\xc2\x9f\x02@\x99\x87\xa1=?8\xc4\x88\x14kh\x1a\x1f\x9cI'), chr(6295 - 6195) + chr(5443 - 5342) + '\x63' + chr(0b1101111) + chr(7746 - 7646) + '\145')('\165' + chr(0b1011000 + 0o34) + '\x66' + chr(0b111 + 0o46) + '\070'), zd8UUGOstCUJ, roI3spqORKae(ES5oEprVxulp(b'\x91\x9c'), chr(100) + chr(0b1100101) + chr(99) + chr(0b1010111 + 0o30) + chr(0b1100100) + chr(0b1100101))('\x75' + '\x74' + chr(0b1100110) + chr(0b101101) + '\x38'), roI3spqORKae(ES5oEprVxulp(b'\xef\x87\xee\x81c\xc6\xa5\x08@\x9e\xe1\xb61\x12>\xc8\x85\x18/e\x15Z\x91M'), chr(0b1000001 + 0o43) + chr(0b1010010 + 0o23) + chr(99) + '\157' + chr(3435 - 3335) + '\145')(chr(0b110100 + 0o101) + '\164' + chr(0b1000110 + 0o40) + '\055' + chr(130 - 74))] mD44XHfr1PSC += [roI3spqORKae(ES5oEprVxulp(b'\x91\x95'), chr(8684 - 8584) + chr(8059 - 7958) + chr(99) + '\157' + chr(0b10111 + 0o115) + chr(2951 - 2850))('\x75' + chr(116) + chr(9257 - 9155) + chr(0b101000 + 0o5) + '\070'), roI3spqORKae(ES5oEprVxulp(b'\x91\xbf'), chr(100) + '\145' + chr(0b1000110 + 0o35) + chr(0b1101111) + chr(7029 - 6929) + chr(2748 - 2647))(chr(0b1101000 + 0o15) + chr(116) + chr(0b1100110) + chr(710 - 665) + chr(0b100011 + 0o25)), roI3spqORKae(ES5oEprVxulp(b'\xc7\xc3\xe1\xd2l\xdd\x8e\x06_\x82\xc5\xa0<k-\x9c\x9b'), chr(0b111001 + 0o53) + '\145' + chr(0b10100 + 0o117) + chr(0b110100 + 0o73) + '\x64' + '\145')(chr(0b1101110 + 0o7) + chr(0b1110100) + chr(0b101101 + 0o71) + chr(1645 - 1600) + '\x38').q33KG3foQ_CJ(Ror7YZAB3xrG, kyVM7gIdTqg9), roI3spqORKae(ES5oEprVxulp(b'\x91\xbd'), chr(100) + chr(101) + chr(99) + chr(7878 - 7767) + chr(100) + chr(101))('\165' + chr(0b1110100) + '\146' + chr(413 - 368) + chr(56))] roI3spqORKae(eT8Y087E_kfd, roI3spqORKae(ES5oEprVxulp(b'\xdf\x9b\xf9\x8bk\xed\x8e\x06_\x86'), chr(5562 - 5462) + '\x65' + chr(3457 - 3358) + chr(0b1101111) + chr(0b1111 + 0o125) + chr(8065 - 7964))('\165' + '\164' + chr(3456 - 3354) + chr(0b11001 + 0o24) + chr(2028 - 1972)))(mD44XHfr1PSC)
dnanexus/dx-toolkit
src/python/dxpy/ssh_tunnel_app_support.py
poll_for_server_running
def poll_for_server_running(job_id): """ Poll for the job to start running and post the SERVER_READY_TAG. """ sys.stdout.write('Waiting for server in {0} to initialize ...'.format(job_id)) sys.stdout.flush() desc = dxpy.describe(job_id) # Keep checking until the server has begun or it has failed. while(SERVER_READY_TAG not in desc['tags'] and desc['state'] != 'failed'): time.sleep(SLEEP_PERIOD) sys.stdout.write('.') sys.stdout.flush() desc = dxpy.describe(job_id) # If the server job failed, provide friendly advice. if desc['state'] == 'failed': msg = RED('Error:') + ' Server failed to run.\n' msg += 'You may want to check the job logs by running:' msg += BOLD('dx watch {0}'.format(job_id)) err_exit(msg)
python
def poll_for_server_running(job_id): """ Poll for the job to start running and post the SERVER_READY_TAG. """ sys.stdout.write('Waiting for server in {0} to initialize ...'.format(job_id)) sys.stdout.flush() desc = dxpy.describe(job_id) # Keep checking until the server has begun or it has failed. while(SERVER_READY_TAG not in desc['tags'] and desc['state'] != 'failed'): time.sleep(SLEEP_PERIOD) sys.stdout.write('.') sys.stdout.flush() desc = dxpy.describe(job_id) # If the server job failed, provide friendly advice. if desc['state'] == 'failed': msg = RED('Error:') + ' Server failed to run.\n' msg += 'You may want to check the job logs by running:' msg += BOLD('dx watch {0}'.format(job_id)) err_exit(msg)
[ "def", "poll_for_server_running", "(", "job_id", ")", ":", "sys", ".", "stdout", ".", "write", "(", "'Waiting for server in {0} to initialize ...'", ".", "format", "(", "job_id", ")", ")", "sys", ".", "stdout", ".", "flush", "(", ")", "desc", "=", "dxpy", ".", "describe", "(", "job_id", ")", "# Keep checking until the server has begun or it has failed.", "while", "(", "SERVER_READY_TAG", "not", "in", "desc", "[", "'tags'", "]", "and", "desc", "[", "'state'", "]", "!=", "'failed'", ")", ":", "time", ".", "sleep", "(", "SLEEP_PERIOD", ")", "sys", ".", "stdout", ".", "write", "(", "'.'", ")", "sys", ".", "stdout", ".", "flush", "(", ")", "desc", "=", "dxpy", ".", "describe", "(", "job_id", ")", "# If the server job failed, provide friendly advice.", "if", "desc", "[", "'state'", "]", "==", "'failed'", ":", "msg", "=", "RED", "(", "'Error:'", ")", "+", "' Server failed to run.\\n'", "msg", "+=", "'You may want to check the job logs by running:'", "msg", "+=", "BOLD", "(", "'dx watch {0}'", ".", "format", "(", "job_id", ")", ")", "err_exit", "(", "msg", ")" ]
Poll for the job to start running and post the SERVER_READY_TAG.
[ "Poll", "for", "the", "job", "to", "start", "running", "and", "post", "the", "SERVER_READY_TAG", "." ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/ssh_tunnel_app_support.py#L43-L62
train
Poll for the server to start running and post the SERVER_READY_TAG.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,a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DEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(1213 - 1165) + chr(111) + chr(51) + chr(1472 - 1424) + chr(1108 - 1054), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x31' + chr(53) + '\x34', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110111) + '\063', 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + '\065' + '\065', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(49) + chr(0b110001 + 0o1) + '\x33', 41584 - 41576), nzTpIcepk0o8(chr(48) + chr(111) + chr(49) + chr(0b101110 + 0o3) + chr(0b1111 + 0o50), 0o10), nzTpIcepk0o8(chr(2069 - 2021) + chr(111) + chr(0b101010 + 0o7) + chr(0b101 + 0o56) + chr(0b101011 + 0o5), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b111 + 0o52) + chr(0b110110) + chr(2307 - 2256), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b10001 + 0o41) + '\067' + chr(413 - 363), 42594 - 42586), nzTpIcepk0o8(chr(48) + chr(9798 - 9687) + chr(0b110001) + chr(0b110101) + chr(298 - 246), 8), nzTpIcepk0o8('\060' + chr(111) + chr(0b110000), 0b1000), nzTpIcepk0o8(chr(0b10101 + 0o33) + '\157' + '\063' + chr(1004 - 950) + chr(0b1100 + 0o50), ord("\x08")), nzTpIcepk0o8(chr(2148 - 2100) + chr(11572 - 11461) + chr(0b100101 + 0o14) + '\060' + '\x30', 0o10), nzTpIcepk0o8(chr(601 - 553) + chr(111) + '\x31' + chr(2432 - 2381) + chr(0b10011 + 0o35), 8), nzTpIcepk0o8(chr(0b110000) + chr(0b0 + 0o157) + '\063' + chr(0b1000 + 0o54) + chr(0b111 + 0o56), ord("\x08")), nzTpIcepk0o8(chr(884 - 836) + chr(8682 - 8571) + chr(0b1011 + 0o46) + chr(370 - 321) + '\x34', 0o10), nzTpIcepk0o8('\x30' + chr(111) + '\x31' + chr(55) + chr(281 - 232), ord("\x08")), nzTpIcepk0o8(chr(0b1001 + 0o47) + chr(0b1011001 + 0o26) + chr(0b10110 + 0o33) + '\x30' + chr(0b110000), 8), nzTpIcepk0o8('\x30' + chr(0b101111 + 0o100) + '\x32' + chr(55) + chr(49), 48989 - 48981), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110010) + '\x31' + chr(0b1110 + 0o50), 0o10), nzTpIcepk0o8(chr(0b101 + 0o53) + chr(0b1100000 + 0o17) + chr(51) + '\x34', 0o10), nzTpIcepk0o8(chr(1046 - 998) + chr(9669 - 9558) + chr(53) + chr(0b110011 + 0o1), 0b1000), nzTpIcepk0o8(chr(1472 - 1424) + chr(9031 - 8920) + '\063' + chr(51) + '\061', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x32' + chr(51) + chr(0b101110 + 0o5), 8805 - 8797), nzTpIcepk0o8(chr(1861 - 1813) + '\157' + chr(51) + '\064' + '\066', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\061' + '\x32' + chr(0b110111), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(5230 - 5119) + chr(1216 - 1162) + chr(0b10 + 0o65), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(1482 - 1371) + chr(0b100010 + 0o21) + chr(0b110000) + chr(0b110001), 0b1000), nzTpIcepk0o8('\x30' + chr(11683 - 11572) + '\x32' + chr(55) + chr(54), 54541 - 54533), nzTpIcepk0o8(chr(0b110000) + chr(3407 - 3296) + chr(55) + chr(0b101010 + 0o11), 8), nzTpIcepk0o8('\060' + chr(0b110111 + 0o70) + chr(1994 - 1944) + '\x37' + chr(50), 8), nzTpIcepk0o8(chr(48) + '\157' + chr(49), 30371 - 30363), nzTpIcepk0o8('\060' + '\157' + chr(0b110011) + chr(2107 - 2056) + chr(0b110101), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1010101 + 0o32) + chr(0b100101 + 0o15) + '\063' + chr(52), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(49) + '\062' + chr(0b10100 + 0o36), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x31' + '\x35' + chr(0b110111), 0b1000), nzTpIcepk0o8(chr(1009 - 961) + '\x6f' + chr(0b110001) + chr(53) + '\x36', ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + '\063' + '\064' + '\064', 0o10), nzTpIcepk0o8(chr(94 - 46) + chr(8936 - 8825) + chr(50) + '\064' + chr(844 - 794), 0o10), nzTpIcepk0o8('\060' + chr(0b1011000 + 0o27) + '\x33' + chr(0b101001 + 0o13) + '\062', 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(1509 - 1461) + chr(111) + '\065' + chr(48), ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xe8'), chr(0b1100100) + chr(0b100101 + 0o100) + chr(0b1100 + 0o127) + '\157' + chr(8279 - 8179) + '\145')(chr(4073 - 3956) + '\164' + chr(0b1100110) + chr(0b101101) + '\x38') + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def tjS5jZluY3_7(zd8UUGOstCUJ): roI3spqORKae(bpyfpu4kTbwL.stdout, roI3spqORKae(ES5oEprVxulp(b'\xab\x00\x0bE;?.B\xf6\x1cq\xc6'), chr(0b1100100) + chr(101) + chr(99) + '\x6f' + chr(0b100101 + 0o77) + chr(0b1100101))(chr(0b1110101) + chr(6499 - 6383) + chr(102) + chr(45) + chr(56)))(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\x91\rRY:!?S\xdc\x03r\xd43=\x97:\x1c2\x99\xe7r\x0c\xa2\xab\x9bwC\xae\x9eR\xd4h\xa9\xf53\x03\x07\x9e\xc7\xc2\xe8B\x15'), chr(0b1100100) + chr(101) + '\x63' + chr(2646 - 2535) + '\144' + chr(0b1100101))('\x75' + chr(0b11 + 0o161) + chr(102) + '\055' + '\070'), roI3spqORKae(ES5oEprVxulp(b'\xb7_\x08f\x14|>\x1c\xeb3C\xbe'), '\144' + chr(101) + chr(4816 - 4717) + chr(0b1011110 + 0o21) + '\x64' + '\145')('\165' + chr(116) + '\x66' + '\x2d' + chr(203 - 147)))(zd8UUGOstCUJ)) roI3spqORKae(bpyfpu4kTbwL.stdout, roI3spqORKae(ES5oEprVxulp(b'\xad;KT\x11=\x0e$\xf8\x1cs\xb1'), chr(8341 - 8241) + '\x65' + '\x63' + chr(0b100010 + 0o115) + chr(100) + chr(2571 - 2470))('\x75' + chr(0b1110100) + chr(4877 - 4775) + '\055' + chr(2056 - 2000)))() iSl7yqRxEcuG = SsdNdRxXOwsF.describe(zd8UUGOstCUJ) while YE1h2Bem9PWs not in iSl7yqRxEcuG[roI3spqORKae(ES5oEprVxulp(b'\xb2\r\\^'), '\144' + chr(1213 - 1112) + chr(0b111011 + 0o50) + chr(0b1101111) + '\144' + chr(5538 - 5437))(chr(0b1110101) + '\x74' + chr(102) + '\x2d' + chr(0b111000))] and iSl7yqRxEcuG[roI3spqORKae(ES5oEprVxulp(b'\xb5\x18ZY6'), chr(0b1101 + 0o127) + chr(964 - 863) + chr(99) + chr(0b1101111) + chr(6733 - 6633) + chr(0b1001110 + 0o27))(chr(0b0 + 0o165) + chr(0b1110100) + chr(102) + chr(45) + chr(56))] != roI3spqORKae(ES5oEprVxulp(b'\xa0\rRA6+'), '\x64' + chr(8533 - 8432) + chr(99) + '\x6f' + chr(7755 - 7655) + '\145')('\x75' + '\164' + chr(102) + chr(0b100011 + 0o12) + chr(0b111000)): roI3spqORKae(oprIvDIRQyCb, roI3spqORKae(ES5oEprVxulp(b'\xb5\x00^H#'), chr(0b1100100) + chr(0b1100101) + '\143' + '\x6f' + chr(7793 - 7693) + chr(0b1100001 + 0o4))(chr(117) + chr(116) + '\x66' + chr(0b101101) + chr(2660 - 2604)))(lrMeHz2Jz7Ih) roI3spqORKae(bpyfpu4kTbwL.stdout, roI3spqORKae(ES5oEprVxulp(b'\xab\x00\x0bE;?.B\xf6\x1cq\xc6'), '\144' + chr(3220 - 3119) + '\x63' + chr(1500 - 1389) + chr(100) + '\x65')('\x75' + chr(2186 - 2070) + chr(0b1001010 + 0o34) + chr(0b101101) + chr(246 - 190)))(roI3spqORKae(ES5oEprVxulp(b'\xe8'), chr(0b101001 + 0o73) + '\x65' + '\143' + chr(4812 - 4701) + chr(2671 - 2571) + chr(4306 - 4205))(chr(6102 - 5985) + '\x74' + chr(3955 - 3853) + chr(0b101101) + '\x38')) roI3spqORKae(bpyfpu4kTbwL.stdout, roI3spqORKae(ES5oEprVxulp(b'\xad;KT\x11=\x0e$\xf8\x1cs\xb1'), '\144' + '\145' + chr(0b1100000 + 0o3) + chr(0b1101111) + '\144' + chr(0b1000010 + 0o43))(chr(0b1110101) + '\164' + '\146' + chr(583 - 538) + chr(56)))() iSl7yqRxEcuG = SsdNdRxXOwsF.describe(zd8UUGOstCUJ) if iSl7yqRxEcuG[roI3spqORKae(ES5oEprVxulp(b'\xb5\x18ZY6'), chr(100) + chr(101) + chr(0b1100011) + chr(0b110011 + 0o74) + chr(0b110011 + 0o61) + chr(101))(chr(7747 - 7630) + '\x74' + chr(0b101011 + 0o73) + '\x2d' + '\x38')] == roI3spqORKae(ES5oEprVxulp(b'\xa0\rRA6+'), chr(7400 - 7300) + '\x65' + chr(0b11100 + 0o107) + chr(1707 - 1596) + chr(6148 - 6048) + chr(126 - 25))(chr(9381 - 9264) + chr(12733 - 12617) + chr(7595 - 7493) + chr(431 - 386) + '\070'): sldzbHve8G1S = Ey63kNacpnB6(roI3spqORKae(ES5oEprVxulp(b'\x83\x1eIB!u'), chr(0b1100100) + '\x65' + chr(99) + '\x6f' + chr(0b1100100) + chr(0b1000010 + 0o43))(chr(117) + chr(1276 - 1160) + chr(102) + '\055' + chr(0b10 + 0o66))) + roI3spqORKae(ES5oEprVxulp(b'\xe6?^_%**S\xdc\ri\x98%<\xc58\x16`\xcb\xfbr\x02\xd3'), chr(0b11001 + 0o113) + chr(2455 - 2354) + chr(99) + chr(11745 - 11634) + chr(0b1100100) + '\x65')(chr(9210 - 9093) + chr(12587 - 12471) + chr(0b1100110) + chr(631 - 586) + '\x38') sldzbHve8G1S += roI3spqORKae(ES5oEprVxulp(b'\x9f\x03N\r>.!S\xcd\rn\x80`,\x8al\x1a(\xdc\xedw\x0c\xad\xf3\x83w]\xae\xdc\x1b\xd6n\xba\xefr\r\x17\xc4\xd0\x97\xa8\x02RC4u'), '\x64' + '\145' + '\x63' + chr(0b1101111) + '\x64' + chr(0b1100101))(chr(5097 - 4980) + '\x74' + chr(0b1100110) + chr(0b10111 + 0o26) + chr(56)) sldzbHve8G1S += mYHHDOuQ88eP(roI3spqORKae(ES5oEprVxulp(b'\xa2\x14\x1bZ2;;\x1b\x9a\x170\x89'), chr(1470 - 1370) + chr(0b1011 + 0o132) + chr(0b1100011) + chr(0b1101111) + chr(0b1000001 + 0o43) + '\145')(chr(0b1001010 + 0o53) + chr(4033 - 3917) + '\146' + chr(45) + chr(56)).q33KG3foQ_CJ(zd8UUGOstCUJ)) F16fGuypkEJS(sldzbHve8G1S)
dnanexus/dx-toolkit
src/python/dxpy/ssh_tunnel_app_support.py
multi_platform_open
def multi_platform_open(cmd): """ Take the given command and use the OS to automatically open the appropriate resource. For instance, if a URL is provided, this will have the OS automatically open the URL in the default web browser. """ if platform == "linux" or platform == "linux2": cmd = ['xdg-open', cmd] elif platform == "darwin": cmd = ['open', cmd] elif platform == "win32": cmd = ['start', cmd] subprocess.check_call(cmd)
python
def multi_platform_open(cmd): """ Take the given command and use the OS to automatically open the appropriate resource. For instance, if a URL is provided, this will have the OS automatically open the URL in the default web browser. """ if platform == "linux" or platform == "linux2": cmd = ['xdg-open', cmd] elif platform == "darwin": cmd = ['open', cmd] elif platform == "win32": cmd = ['start', cmd] subprocess.check_call(cmd)
[ "def", "multi_platform_open", "(", "cmd", ")", ":", "if", "platform", "==", "\"linux\"", "or", "platform", "==", "\"linux2\"", ":", "cmd", "=", "[", "'xdg-open'", ",", "cmd", "]", "elif", "platform", "==", "\"darwin\"", ":", "cmd", "=", "[", "'open'", ",", "cmd", "]", "elif", "platform", "==", "\"win32\"", ":", "cmd", "=", "[", "'start'", ",", "cmd", "]", "subprocess", ".", "check_call", "(", "cmd", ")" ]
Take the given command and use the OS to automatically open the appropriate resource. For instance, if a URL is provided, this will have the OS automatically open the URL in the default web browser.
[ "Take", "the", "given", "command", "and", "use", "the", "OS", "to", "automatically", "open", "the", "appropriate", "resource", ".", "For", "instance", "if", "a", "URL", "is", "provided", "this", "will", "have", "the", "OS", "automatically", "open", "the", "URL", "in", "the", "default", "web", "browser", "." ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/ssh_tunnel_app_support.py#L65-L77
train
Open the given command and use the OS to automatically open the appropriate resource.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0D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HWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(919 - 871) + '\157' + chr(2478 - 2427) + chr(0b11111 + 0o22) + chr(52), 0b1000), nzTpIcepk0o8(chr(0b10111 + 0o31) + '\157' + chr(50) + chr(49) + chr(0b110000), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110001), ord("\x08")), nzTpIcepk0o8('\x30' + chr(5068 - 4957) + chr(0b101 + 0o54) + chr(0b110101) + chr(0b11100 + 0o25), 417 - 409), nzTpIcepk0o8(chr(1951 - 1903) + chr(111) + '\064' + chr(0b1101 + 0o51), 0o10), nzTpIcepk0o8('\060' + '\157' + '\x30', 18432 - 18424), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b101001 + 0o12) + chr(185 - 133) + '\x30', 26222 - 26214), nzTpIcepk0o8(chr(0b11 + 0o55) + '\157' + '\063' + chr(1625 - 1577) + chr(0b110111), 47270 - 47262), nzTpIcepk0o8(chr(48) + '\157' + chr(0b1100 + 0o46) + '\x35' + '\064', 21527 - 21519), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b1000 + 0o53) + chr(54) + '\x36', 0o10), nzTpIcepk0o8(chr(0b1 + 0o57) + '\x6f' + chr(2724 - 2670), 0b1000), nzTpIcepk0o8(chr(557 - 509) + chr(111) + chr(0b110011) + chr(49), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(5986 - 5875) + chr(0b10110 + 0o37) + chr(973 - 920), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b11000 + 0o32) + '\064' + chr(0b110100 + 0o1), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(843 - 793) + '\061' + chr(0b110100), 0b1000), nzTpIcepk0o8('\x30' + chr(4278 - 4167) + '\062' + '\x30' + '\063', 29756 - 29748), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(2140 - 2089) + chr(0b10001 + 0o46) + chr(0b110100), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x32' + '\x30' + chr(55), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(227 - 178) + '\x36' + chr(52), 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110110 + 0o1) + chr(0b100010 + 0o16), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b10010 + 0o45) + chr(50), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + '\063' + chr(2672 - 2618) + chr(49), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b111 + 0o150) + chr(55) + '\x37', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + '\062' + '\066' + chr(0b10 + 0o65), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x33' + '\060' + chr(53), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(51) + '\x30' + chr(1438 - 1389), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110010) + chr(0b101011 + 0o14) + chr(0b101100 + 0o6), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(211 - 162) + '\x34' + chr(316 - 267), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(50) + chr(51) + chr(0b110010), 0b1000), nzTpIcepk0o8(chr(1636 - 1588) + '\157' + chr(0b110001) + chr(51) + chr(393 - 339), ord("\x08")), nzTpIcepk0o8(chr(83 - 35) + chr(0b1010001 + 0o36) + '\x31' + chr(50) + '\067', 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(0b11 + 0o56) + chr(0b110111) + chr(1523 - 1470), ord("\x08")), nzTpIcepk0o8(chr(0b110 + 0o52) + '\157' + '\x35' + chr(2889 - 2834), ord("\x08")), nzTpIcepk0o8('\x30' + chr(6072 - 5961) + chr(0b110001) + chr(115 - 61) + '\067', 0b1000), nzTpIcepk0o8('\x30' + chr(10317 - 10206) + chr(49) + '\061' + '\063', 0o10), nzTpIcepk0o8(chr(1181 - 1133) + chr(10256 - 10145) + chr(0b10100 + 0o37) + chr(55) + chr(0b110000), ord("\x08")), nzTpIcepk0o8(chr(544 - 496) + chr(111) + chr(0b11000 + 0o31) + chr(0b10000 + 0o44) + '\x35', 0o10), nzTpIcepk0o8(chr(708 - 660) + chr(0b1101111) + '\x32' + '\061' + '\x36', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(394 - 344) + chr(0b110111) + chr(0b11111 + 0o30), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110001 + 0o2) + '\066' + chr(2048 - 1996), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(0b111100 + 0o63) + chr(53) + chr(126 - 78), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xe2'), '\x64' + chr(101) + chr(6662 - 6563) + '\x6f' + chr(0b110100 + 0o60) + chr(5660 - 5559))(chr(117) + chr(7117 - 7001) + '\x66' + chr(0b101101) + chr(110 - 54)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def wFiUR9A9Pu5D(mD44XHfr1PSC): if Mrg3y1GQ55C0 == roI3spqORKae(ES5oEprVxulp(b'\xa0\xe1o\x1c^'), chr(0b100 + 0o140) + chr(101) + chr(7255 - 7156) + chr(0b1101110 + 0o1) + chr(0b1001111 + 0o25) + chr(0b111101 + 0o50))(chr(0b1110101) + chr(4766 - 4650) + chr(4685 - 4583) + '\x2d' + chr(0b11011 + 0o35)) or Mrg3y1GQ55C0 == roI3spqORKae(ES5oEprVxulp(b'\xa0\xe1o\x1c^2'), '\x64' + '\145' + chr(99) + chr(111) + chr(0b1011010 + 0o12) + '\x65')('\x75' + chr(116) + chr(0b1100110) + chr(45) + '\070'): mD44XHfr1PSC = [roI3spqORKae(ES5oEprVxulp(b'\xb4\xecfDIp\x85\xa9'), chr(0b1100100) + '\145' + chr(0b100100 + 0o77) + chr(0b1101111) + '\144' + chr(101))(chr(117) + chr(8190 - 8074) + chr(0b1100110) + chr(1412 - 1367) + '\070'), mD44XHfr1PSC] elif Mrg3y1GQ55C0 == roI3spqORKae(ES5oEprVxulp(b'\xa8\xe9s\x1eOn'), '\144' + chr(0b110010 + 0o63) + chr(0b1001110 + 0o25) + chr(0b1100101 + 0o12) + chr(100) + chr(849 - 748))('\x75' + chr(2765 - 2649) + chr(9847 - 9745) + chr(949 - 904) + chr(0b111000)): mD44XHfr1PSC = [roI3spqORKae(ES5oEprVxulp(b'\xa3\xf8d\x07'), '\x64' + '\145' + chr(0b110110 + 0o55) + '\157' + chr(0b1100100) + chr(7122 - 7021))('\x75' + '\164' + chr(0b1100110) + '\x2d' + chr(0b0 + 0o70)), mD44XHfr1PSC] elif Mrg3y1GQ55C0 == roI3spqORKae(ES5oEprVxulp(b'\xbb\xe1oZ\x14'), chr(0b1100100) + '\145' + chr(9684 - 9585) + chr(0b1111 + 0o140) + '\x64' + '\145')(chr(10884 - 10767) + chr(0b1110100) + chr(0b1100010 + 0o4) + chr(45) + '\x38'): mD44XHfr1PSC = [roI3spqORKae(ES5oEprVxulp(b'\xbf\xfc`\x1bR'), '\144' + chr(0b1100101) + '\x63' + '\157' + chr(0b1010101 + 0o17) + chr(0b110101 + 0o60))(chr(117) + '\x74' + chr(0b1100110) + '\055' + chr(0b111000)), mD44XHfr1PSC] roI3spqORKae(eT8Y087E_kfd, roI3spqORKae(ES5oEprVxulp(b'\xaf\xe0d\nM_\x83\xa6\xc0\x9a'), chr(100) + '\145' + '\143' + chr(2179 - 2068) + chr(5409 - 5309) + '\145')(chr(2716 - 2599) + '\x74' + '\x66' + chr(0b101101) + chr(0b11000 + 0o40)))(mD44XHfr1PSC)
dnanexus/dx-toolkit
src/python/dxpy/ssh_tunnel_app_support.py
get_notebook_app_versions
def get_notebook_app_versions(): """ Get the valid version numbers of the notebook app. """ notebook_apps = dxpy.find_apps(name=NOTEBOOK_APP, all_versions=True) versions = [str(dxpy.describe(app['id'])['version']) for app in notebook_apps] return versions
python
def get_notebook_app_versions(): """ Get the valid version numbers of the notebook app. """ notebook_apps = dxpy.find_apps(name=NOTEBOOK_APP, all_versions=True) versions = [str(dxpy.describe(app['id'])['version']) for app in notebook_apps] return versions
[ "def", "get_notebook_app_versions", "(", ")", ":", "notebook_apps", "=", "dxpy", ".", "find_apps", "(", "name", "=", "NOTEBOOK_APP", ",", "all_versions", "=", "True", ")", "versions", "=", "[", "str", "(", "dxpy", ".", "describe", "(", "app", "[", "'id'", "]", ")", "[", "'version'", "]", ")", "for", "app", "in", "notebook_apps", "]", "return", "versions" ]
Get the valid version numbers of the notebook app.
[ "Get", "the", "valid", "version", "numbers", "of", "the", "notebook", "app", "." ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy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HWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\x30' + chr(635 - 524) + chr(0b1100 + 0o45) + '\062' + '\x37', 61413 - 61405), nzTpIcepk0o8('\x30' + chr(1750 - 1639) + chr(1059 - 1010) + chr(52) + chr(885 - 837), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(884 - 833) + chr(0b110110) + '\061', ord("\x08")), nzTpIcepk0o8('\x30' + chr(8754 - 8643) + chr(0b1001 + 0o51) + '\064' + chr(915 - 861), 21135 - 21127), nzTpIcepk0o8(chr(0b110000 + 0o0) + '\157' + chr(0b100001 + 0o21) + '\x36' + '\x36', ord("\x08")), nzTpIcepk0o8('\060' + chr(10687 - 10576) + chr(49) + chr(1459 - 1406) + '\x32', 0b1000), nzTpIcepk0o8(chr(1785 - 1737) + '\157' + chr(1326 - 1277) + chr(0b11100 + 0o31) + '\065', 0o10), nzTpIcepk0o8('\060' + chr(0b1011001 + 0o26) + chr(0b110011) + '\x36' + chr(50), 24026 - 24018), nzTpIcepk0o8(chr(2093 - 2045) + chr(1956 - 1845) + chr(0b110001) + chr(0b100110 + 0o17) + chr(53), 8), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b10101 + 0o36) + '\x33' + chr(0b110001), 0o10), nzTpIcepk0o8('\x30' + '\157' + '\x31' + chr(0b101 + 0o53) + chr(0b100011 + 0o17), 0o10), nzTpIcepk0o8(chr(471 - 423) + chr(0b100100 + 0o113) + chr(0b110011) + '\062' + chr(0b11100 + 0o32), 33250 - 33242), nzTpIcepk0o8('\x30' + '\157' + chr(999 - 950) + chr(0b110000) + chr(0b110111), ord("\x08")), nzTpIcepk0o8('\x30' + chr(5095 - 4984) + chr(0b110100) + chr(0b11110 + 0o31), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(186 - 136) + chr(2181 - 2129) + chr(323 - 272), 0o10), nzTpIcepk0o8('\060' + '\x6f' + '\063' + chr(0b110000) + chr(0b10 + 0o60), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(184 - 134) + '\062' + chr(0b110010), 0b1000), nzTpIcepk0o8('\x30' + chr(8913 - 8802) + chr(472 - 422) + chr(0b10010 + 0o42) + '\066', 8), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110010) + '\x34' + chr(0b11000 + 0o37), ord("\x08")), nzTpIcepk0o8('\060' + chr(846 - 735) + '\x33' + '\x30' + chr(1699 - 1651), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + '\061' + chr(825 - 771) + chr(1016 - 965), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(1962 - 1912) + chr(52) + chr(2264 - 2210), 8), nzTpIcepk0o8(chr(48) + chr(0b111011 + 0o64) + chr(1243 - 1193) + chr(2472 - 2418) + chr(55), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101100 + 0o3) + chr(1681 - 1631) + '\067' + chr(0b110011 + 0o0), 64515 - 64507), nzTpIcepk0o8('\060' + '\157' + '\062' + chr(50) + chr(2380 - 2330), 8), nzTpIcepk0o8(chr(345 - 297) + chr(2960 - 2849) + chr(308 - 257) + chr(0b110011), ord("\x08")), nzTpIcepk0o8(chr(423 - 375) + '\x6f' + '\063' + chr(0b101011 + 0o6) + chr(0b111 + 0o56), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(51) + chr(52) + chr(0b110100), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + '\x32' + chr(0b11111 + 0o23) + chr(0b10011 + 0o37), 8), nzTpIcepk0o8(chr(0b10100 + 0o34) + '\157' + '\x32' + '\066' + chr(0b10100 + 0o34), 1402 - 1394), nzTpIcepk0o8(chr(0b11000 + 0o30) + '\x6f' + chr(49) + '\x36', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110010) + chr(468 - 417) + chr(0b110010), 61875 - 61867), nzTpIcepk0o8(chr(48) + chr(0b1010111 + 0o30) + chr(0b110110) + chr(52), 0o10), nzTpIcepk0o8('\060' + '\157' + '\x33' + chr(0b110011 + 0o1) + chr(0b110011), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110001) + '\060' + chr(0b110010), 8), nzTpIcepk0o8(chr(0b110000) + chr(5938 - 5827) + chr(336 - 286) + chr(0b110001) + chr(0b11001 + 0o34), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(51) + chr(0b110111) + '\064', ord("\x08")), nzTpIcepk0o8(chr(2168 - 2120) + chr(0b1101111) + chr(0b11011 + 0o27) + '\x37' + '\x31', 23831 - 23823), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b100110 + 0o17) + chr(0b110001), 0o10), nzTpIcepk0o8('\060' + '\157' + chr(49) + chr(488 - 437) + chr(0b101111 + 0o3), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(0b1101001 + 0o6) + chr(1845 - 1792) + chr(1757 - 1709), 43280 - 43272)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'y'), '\144' + '\145' + '\143' + '\157' + chr(100) + chr(0b101011 + 0o72))(chr(117) + chr(0b1001111 + 0o45) + chr(0b1100110) + chr(639 - 594) + chr(56)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def eWJqMzVV1hOL(): yQbwbaBz89zG = SsdNdRxXOwsF.find_apps(name=k96ufNEGsvvA, all_versions=nzTpIcepk0o8(chr(0b1 + 0o57) + '\157' + chr(49), 55168 - 55160)) PB3_NAniTcX8 = [N9zlRy29S1SS(SsdNdRxXOwsF.describe(JmjeLO9VwkLI[roI3spqORKae(ES5oEprVxulp(b'>\x04'), chr(0b1011011 + 0o11) + chr(0b1100100 + 0o1) + chr(0b101010 + 0o71) + chr(0b1011111 + 0o20) + '\144' + chr(0b1100101))('\x75' + chr(0b1110100) + '\146' + '\055' + chr(0b101010 + 0o16))])[roI3spqORKae(ES5oEprVxulp(b'!\x05\x83\xd5\xdf\x05\x03'), '\144' + chr(101) + chr(0b1100011) + chr(111) + chr(0b10001 + 0o123) + chr(0b1100101))(chr(0b1110101) + chr(116) + chr(0b11110 + 0o110) + chr(45) + chr(56))]) for JmjeLO9VwkLI in yQbwbaBz89zG] return PB3_NAniTcX8
dnanexus/dx-toolkit
src/python/dxpy/ssh_tunnel_app_support.py
run_notebook
def run_notebook(args, ssh_config_check): """ Launch the notebook server. """ # Check that ssh is setup. Currently notebooks require ssh for tunelling. ssh_config_check() if args.only_check_config: return # If the user requested a specific version of the notebook server, # get the executable id. if args.version is not None: executable = get_app_from_path('app-{0}/{1}'.format(NOTEBOOK_APP, args.version)) if executable is not None and 'id' in executable: executable = executable['id'] else: msg = RED('Warning:') + ' Invalid notebook version: {0}\nValid versions are: '.format(args.version) msg += BOLD('{0}'.format(str(get_notebook_app_versions()))) err_exit(msg) else: executable = 'app-{0}'.format(NOTEBOOK_APP) # Compose the command to launch the notebook cmd = ['dx', 'run', executable, '-inotebook_type={0}'.format(args.notebook_type)] cmd += ['-iinput_files={0}'.format(f) for f in args.notebook_files] cmd += ['-itimeout={0}'.format(args.timeout), '-y', '--brief', '--allow-ssh', '--instance-type', args.instance_type] if args.spark: cmd += ['-iinstall_spark=true'] if args.snapshot: cmd += ['-isnapshot={0}'.format(args.snapshot)] job_id = subprocess.check_output(cmd).strip() poll_for_server_running(job_id) if args.notebook_type in {'jupyter', 'jupyter_lab', 'jupyter_notebook'}: remote_port = 8888 setup_ssh_tunnel(job_id, args.port, remote_port) if args.open_server: multi_platform_open('http://localhost:{0}'.format(args.port)) print('A web browser should have opened to connect you to your notebook.') print('If no browser appears, or if you need to reopen a browser at any point, you should be able to point your browser to http://localhost:{0}'.format(args.port))
python
def run_notebook(args, ssh_config_check): """ Launch the notebook server. """ # Check that ssh is setup. Currently notebooks require ssh for tunelling. ssh_config_check() if args.only_check_config: return # If the user requested a specific version of the notebook server, # get the executable id. if args.version is not None: executable = get_app_from_path('app-{0}/{1}'.format(NOTEBOOK_APP, args.version)) if executable is not None and 'id' in executable: executable = executable['id'] else: msg = RED('Warning:') + ' Invalid notebook version: {0}\nValid versions are: '.format(args.version) msg += BOLD('{0}'.format(str(get_notebook_app_versions()))) err_exit(msg) else: executable = 'app-{0}'.format(NOTEBOOK_APP) # Compose the command to launch the notebook cmd = ['dx', 'run', executable, '-inotebook_type={0}'.format(args.notebook_type)] cmd += ['-iinput_files={0}'.format(f) for f in args.notebook_files] cmd += ['-itimeout={0}'.format(args.timeout), '-y', '--brief', '--allow-ssh', '--instance-type', args.instance_type] if args.spark: cmd += ['-iinstall_spark=true'] if args.snapshot: cmd += ['-isnapshot={0}'.format(args.snapshot)] job_id = subprocess.check_output(cmd).strip() poll_for_server_running(job_id) if args.notebook_type in {'jupyter', 'jupyter_lab', 'jupyter_notebook'}: remote_port = 8888 setup_ssh_tunnel(job_id, args.port, remote_port) if args.open_server: multi_platform_open('http://localhost:{0}'.format(args.port)) print('A web browser should have opened to connect you to your notebook.') print('If no browser appears, or if you need to reopen a browser at any point, you should be able to point your browser to http://localhost:{0}'.format(args.port))
[ "def", "run_notebook", "(", "args", ",", "ssh_config_check", ")", ":", "# Check that ssh is setup. Currently notebooks require ssh for tunelling.", "ssh_config_check", "(", ")", "if", "args", ".", "only_check_config", ":", "return", "# If the user requested a specific version of the notebook server,", "# get the executable id.", "if", "args", ".", "version", "is", "not", "None", ":", "executable", "=", "get_app_from_path", "(", "'app-{0}/{1}'", ".", "format", "(", "NOTEBOOK_APP", ",", "args", ".", "version", ")", ")", "if", "executable", "is", "not", "None", "and", "'id'", "in", "executable", ":", "executable", "=", "executable", "[", "'id'", "]", "else", ":", "msg", "=", "RED", "(", "'Warning:'", ")", "+", "' Invalid notebook version: {0}\\nValid versions are: '", ".", "format", "(", "args", ".", "version", ")", "msg", "+=", "BOLD", "(", "'{0}'", ".", "format", "(", "str", "(", "get_notebook_app_versions", "(", ")", ")", ")", ")", "err_exit", "(", "msg", ")", "else", ":", "executable", "=", "'app-{0}'", ".", "format", "(", "NOTEBOOK_APP", ")", "# Compose the command to launch the notebook", "cmd", "=", "[", "'dx'", ",", "'run'", ",", "executable", ",", "'-inotebook_type={0}'", ".", "format", "(", "args", ".", "notebook_type", ")", "]", "cmd", "+=", "[", "'-iinput_files={0}'", ".", "format", "(", "f", ")", "for", "f", "in", "args", ".", "notebook_files", "]", "cmd", "+=", "[", "'-itimeout={0}'", ".", "format", "(", "args", ".", "timeout", ")", ",", "'-y'", ",", "'--brief'", ",", "'--allow-ssh'", ",", "'--instance-type'", ",", "args", ".", "instance_type", "]", "if", "args", ".", "spark", ":", "cmd", "+=", "[", "'-iinstall_spark=true'", "]", "if", "args", ".", "snapshot", ":", "cmd", "+=", "[", "'-isnapshot={0}'", ".", "format", "(", "args", ".", "snapshot", ")", "]", "job_id", "=", "subprocess", ".", "check_output", "(", "cmd", ")", ".", "strip", "(", ")", "poll_for_server_running", "(", "job_id", ")", "if", "args", ".", "notebook_type", "in", "{", "'jupyter'", ",", "'jupyter_lab'", ",", "'jupyter_notebook'", "}", ":", "remote_port", "=", "8888", "setup_ssh_tunnel", "(", "job_id", ",", "args", ".", "port", ",", "remote_port", ")", "if", "args", ".", "open_server", ":", "multi_platform_open", "(", "'http://localhost:{0}'", ".", "format", "(", "args", ".", "port", ")", ")", "print", "(", "'A web browser should have opened to connect you to your notebook.'", ")", "print", "(", "'If no browser appears, or if you need to reopen a browser at any point, you should be able to point your browser to http://localhost:{0}'", ".", "format", "(", "args", ".", "port", ")", ")" ]
Launch the notebook server.
[ "Launch", "the", "notebook", "server", "." ]
74befb53ad90fcf902d8983ae6d74580f402d619
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/ssh_tunnel_app_support.py#L89-L131
train
Launch the notebook server.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKt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tdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b110000) + chr(9906 - 9795) + '\x33' + chr(0b11010 + 0o34) + chr(0b101011 + 0o11), 0o10), nzTpIcepk0o8(chr(48) + chr(7863 - 7752) + '\x32' + '\066' + chr(0b110010), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + '\064' + chr(0b110110), 0o10), nzTpIcepk0o8(chr(0b101 + 0o53) + chr(0b1101111) + chr(785 - 734) + chr(0b110 + 0o54) + '\x36', 0o10), nzTpIcepk0o8(chr(1509 - 1461) + chr(10734 - 10623) + chr(0b100 + 0o56) + chr(0b110010) + chr(0b1 + 0o66), 65005 - 64997), nzTpIcepk0o8('\x30' + chr(7376 - 7265) + chr(49) + chr(54) + chr(365 - 313), ord("\x08")), nzTpIcepk0o8(chr(0b101101 + 0o3) + chr(0b1011101 + 0o22) + chr(1540 - 1485) + '\060', 0o10), nzTpIcepk0o8(chr(0b11000 + 0o30) + chr(0b100110 + 0o111) + '\x35' + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110001) + chr(618 - 565) + chr(0b110000), ord("\x08")), nzTpIcepk0o8(chr(743 - 695) + chr(0b111010 + 0o65) + '\x31' + chr(0b1 + 0o64) + chr(0b110111), ord("\x08")), nzTpIcepk0o8('\060' + chr(2753 - 2642) + chr(49) + chr(48) + chr(49), 26684 - 26676), nzTpIcepk0o8(chr(48) + chr(0b1001001 + 0o46) + chr(49) + '\060' + chr(0b1000 + 0o56), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(8969 - 8858) + '\065' + '\x36', 0b1000), nzTpIcepk0o8(chr(1988 - 1940) + '\x6f' + '\064' + chr(0b100010 + 0o25), 0b1000), nzTpIcepk0o8(chr(2058 - 2010) + chr(111) + '\062' + '\x36' + chr(0b110001), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110011) + '\x37' + chr(1769 - 1721), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b100000 + 0o22) + '\067' + '\067', 0o10), nzTpIcepk0o8(chr(1839 - 1791) + chr(2821 - 2710) + '\x32' + chr(1782 - 1729), 0b1000), nzTpIcepk0o8(chr(0b100000 + 0o20) + chr(0b1101111) + chr(49) + '\063' + chr(0b10011 + 0o42), 0o10), nzTpIcepk0o8(chr(1371 - 1323) + chr(111) + '\062' + chr(0b110010) + chr(49), 41447 - 41439), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b101100 + 0o6) + '\067' + chr(0b1101 + 0o45), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(1897 - 1848) + '\x33', 29607 - 29599), nzTpIcepk0o8(chr(1480 - 1432) + chr(7529 - 7418) + chr(0b11011 + 0o27) + '\063' + chr(1338 - 1290), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(2228 - 2179) + chr(1638 - 1583) + chr(48), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(2544 - 2490), 32310 - 32302), nzTpIcepk0o8('\060' + '\157' + chr(0b110010) + chr(1661 - 1606) + chr(50), 8), nzTpIcepk0o8('\060' + '\157' + chr(1226 - 1171), 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(49) + chr(49) + '\x35', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1011111 + 0o20) + '\067' + chr(0b110100), ord("\x08")), nzTpIcepk0o8('\x30' + chr(8526 - 8415) + '\063' + chr(53) + '\x34', 0b1000), nzTpIcepk0o8(chr(0b101100 + 0o4) + chr(0b1101111) + chr(0b1000 + 0o51) + '\x31' + chr(0b110001 + 0o0), 55729 - 55721), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(49) + '\x37' + chr(54), 34987 - 34979), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(1153 - 1104) + '\x31', ord("\x08")), nzTpIcepk0o8(chr(0b100111 + 0o11) + chr(111) + chr(0b110111) + chr(0b110110), 0o10), nzTpIcepk0o8('\060' + chr(1355 - 1244) + '\063' + chr(52) + chr(0b1011 + 0o50), 0b1000), nzTpIcepk0o8(chr(0b11101 + 0o23) + chr(111) + '\063' + '\x34' + '\x32', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(8902 - 8791) + chr(0b110001) + '\067' + chr(0b10011 + 0o44), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(51) + chr(49) + '\065', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\061' + chr(0b110010) + chr(1869 - 1815), 10407 - 10399), nzTpIcepk0o8(chr(48) + '\x6f' + '\062' + chr(0b101110 + 0o5) + '\x30', 8)][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + chr(0b111010 + 0o65) + chr(53) + '\x30', ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xda'), chr(100) + '\x65' + chr(0b110101 + 0o56) + chr(0b1010010 + 0o35) + chr(100) + chr(0b1010001 + 0o24))(chr(6481 - 6364) + '\164' + '\146' + '\x2d' + '\070') + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def ZXdesjbhOO1a(eemPYp2vtTSr, YdBKwszrZLKo): YdBKwszrZLKo() if roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b'\x9b\xdcJ\xaf\xc8\x17PL\x0b\x04\x1e%AI\xd7\x91\xd8'), chr(7409 - 7309) + chr(101) + chr(99) + chr(0b1101111) + chr(0b1100100) + chr(101))('\165' + '\x74' + '\146' + chr(65 - 20) + '\070')): return if roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b'\xbe\x86C\x91\xa3L\x0fZ"\r\x003'), '\x64' + '\x65' + '\143' + chr(0b1101111) + '\x64' + chr(0b1011111 + 0o6))(chr(0b1110101) + '\x74' + chr(0b1100110) + '\055' + chr(0b111000))) is not None: VpBMt2VU6K6a = mslSKTsqHpWf(roI3spqORKae(ES5oEprVxulp(b'\x95\xc2V\xfb\xecDE\x06\x13^<'), chr(0b1000010 + 0o42) + '\145' + '\x63' + chr(0b1101111) + chr(0b1100100) + '\145')(chr(117) + '\x74' + chr(0b1100110) + '\x2d' + chr(0b111000)).q33KG3foQ_CJ(k96ufNEGsvvA, eemPYp2vtTSr.J4eG487sJbAu)) if VpBMt2VU6K6a is not None and roI3spqORKae(ES5oEprVxulp(b'\x9d\xd6'), '\144' + chr(3888 - 3787) + chr(0b1100011) + chr(111) + chr(0b111 + 0o135) + '\145')(chr(0b1000111 + 0o56) + chr(0b1011011 + 0o31) + chr(0b1100110) + chr(691 - 646) + chr(56)) in VpBMt2VU6K6a: VpBMt2VU6K6a = VpBMt2VU6K6a[roI3spqORKae(ES5oEprVxulp(b'\x9d\xd6'), '\144' + chr(0b1100101) + '\x63' + chr(0b110 + 0o151) + '\144' + '\145')(chr(117) + chr(0b1110100) + chr(0b1100110) + chr(0b100001 + 0o14) + chr(0b11010 + 0o36))] else: sldzbHve8G1S = Ey63kNacpnB6(roI3spqORKae(ES5oEprVxulp(b'\xa3\xd3T\xb8\xfe\x1a_\x13'), chr(0b1100100) + '\145' + chr(0b1000011 + 0o40) + chr(0b10010 + 0o135) + '\144' + chr(0b1100101))(chr(0b1110101) + '\x74' + chr(102) + chr(45) + chr(56))) + roI3spqORKae(ES5oEprVxulp(b"\xd4\xfbH\xa0\xf6\x18QMH\x01.2KE\xde\x97\xd45+\xf4\xc8x\xf1\x17h\x80'6\x0c\x91C(hR\x8a\x86_\xbb3\xea\x87\xdbI\xb8\xe4TY[\rUa"), chr(4637 - 4537) + '\x65' + chr(0b1100011) + '\x6f' + chr(0b1001 + 0o133) + '\145')('\x75' + chr(2259 - 2143) + chr(801 - 699) + chr(45) + '\x38').q33KG3foQ_CJ(eemPYp2vtTSr.J4eG487sJbAu) sldzbHve8G1S += mYHHDOuQ88eP(roI3spqORKae(ES5oEprVxulp(b'\x8f\x82['), chr(100) + chr(101) + '\x63' + chr(0b1101111) + chr(0b1100100) + '\145')(chr(0b1110101) + chr(0b1110100) + chr(0b100000 + 0o106) + chr(45) + chr(0b101111 + 0o11)).q33KG3foQ_CJ(N9zlRy29S1SS(eWJqMzVV1hOL()))) F16fGuypkEJS(sldzbHve8G1S) else: VpBMt2VU6K6a = roI3spqORKae(ES5oEprVxulp(b'\x95\xc2V\xfb\xecDE'), chr(0b1100100) + chr(0b1100101) + chr(9780 - 9681) + '\157' + chr(100) + '\x65')('\x75' + chr(5134 - 5018) + chr(3793 - 3691) + chr(299 - 254) + chr(56)).q33KG3foQ_CJ(k96ufNEGsvvA) mD44XHfr1PSC = [roI3spqORKae(ES5oEprVxulp(b'\x90\xca'), chr(0b111101 + 0o47) + '\145' + chr(99) + '\157' + '\144' + '\x65')(chr(0b101001 + 0o114) + '\x74' + chr(8170 - 8068) + '\x2d' + '\070'), roI3spqORKae(ES5oEprVxulp(b'\x86\xc7H'), '\144' + '\x65' + chr(0b110100 + 0o57) + '\x6f' + chr(100) + '\145')(chr(6430 - 6313) + '\164' + chr(0b11 + 0o143) + '\x2d' + '\x38'), VpBMt2VU6K6a, roI3spqORKae(ES5oEprVxulp(b'\xd9\xdbH\xb9\xe3\x11ZF\x07\x04\x1e2WW\xd4\xc5\xc4% '), chr(0b1010101 + 0o17) + '\x65' + chr(0b1100011) + chr(0b10011 + 0o134) + chr(7041 - 6941) + chr(0b1100101))(chr(0b1110101) + '\x74' + chr(0b11101 + 0o111) + chr(976 - 931) + chr(2784 - 2728)).q33KG3foQ_CJ(eemPYp2vtTSr.notebook_type)] mD44XHfr1PSC += [roI3spqORKae(ES5oEprVxulp(b'\xd9\xdbO\xb8\xe7\x01Lv\x0e\x06-#]\x1a\xca\xc8\xc2'), chr(100) + chr(0b1100101) + chr(0b1001001 + 0o32) + chr(5313 - 5202) + chr(0b10101 + 0o117) + chr(101))('\x75' + chr(0b1100111 + 0o15) + '\x66' + chr(0b111 + 0o46) + '\x38').q33KG3foQ_CJ(_R8IKF5IwAfX) for _R8IKF5IwAfX in eemPYp2vtTSr.notebook_files] mD44XHfr1PSC += [roI3spqORKae(ES5oEprVxulp(b'\xd9\xdbR\xbf\xfa\x11W\\\x1cR:vS'), chr(100) + '\x65' + chr(8175 - 8076) + chr(1400 - 1289) + chr(0b1100100) + chr(501 - 400))(chr(0b1110101) + chr(0b1110100) + chr(0b10010 + 0o124) + chr(0b101101) + chr(567 - 511)).q33KG3foQ_CJ(eemPYp2vtTSr.ACACUUFQsMpr), roI3spqORKae(ES5oEprVxulp(b'\xd9\xcb'), chr(7743 - 7643) + chr(0b11100 + 0o111) + '\x63' + chr(6307 - 6196) + '\144' + chr(0b1111 + 0o126))('\x75' + '\164' + chr(3654 - 3552) + chr(1122 - 1077) + chr(0b111000)), roI3spqORKae(ES5oEprVxulp(b'\xd9\x9fD\xa4\xfe\x11^'), '\144' + '\x65' + '\x63' + chr(111) + chr(3394 - 3294) + '\145')(chr(5715 - 5598) + chr(2144 - 2028) + chr(0b1100110) + '\055' + '\x38'), roI3spqORKae(ES5oEprVxulp(b'\xd9\x9fG\xba\xfb\x1bO\x04\x1b\x1c)'), '\144' + chr(0b10101 + 0o120) + chr(0b1010000 + 0o23) + chr(111) + '\x64' + chr(0b1000100 + 0o41))(chr(2505 - 2388) + '\x74' + chr(2292 - 2190) + chr(0b101101) + chr(0b111000)), roI3spqORKae(ES5oEprVxulp(b'\xd9\x9fO\xb8\xe4\x00YG\x0b\nl2WW\xd4'), chr(100) + '\145' + chr(0b1100011) + '\x6f' + chr(100) + '\x65')(chr(0b1110101) + chr(4689 - 4573) + '\x66' + chr(45) + chr(0b111000)), eemPYp2vtTSr.instance_type] if roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b'\xa5\xe6\x15\x9b\xa3.nZ[5\nw'), chr(2855 - 2755) + chr(0b1100101) + chr(0b1011111 + 0o4) + chr(0b1101111) + '\144' + '\145')(chr(117) + chr(116) + chr(0b0 + 0o146) + chr(0b101101) + chr(0b1000 + 0o60))): mD44XHfr1PSC += [roI3spqORKae(ES5oEprVxulp(b'\xd9\xdbO\xb8\xe4\x00YE\x04026OU\xda\xc5\xcbg(\xf4'), chr(4859 - 4759) + chr(101) + chr(0b1100011) + '\157' + '\144' + chr(3964 - 3863))('\x75' + chr(143 - 27) + chr(4706 - 4604) + chr(1285 - 1240) + '\x38')] if roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b'\xb8\xfb\x10\xa0\xd4.Nn)-\x04)'), chr(5867 - 5767) + chr(0b101011 + 0o72) + '\x63' + chr(0b1101111) + chr(8693 - 8593) + '\145')('\x75' + '\164' + chr(102) + chr(45) + chr(0b111000))): mD44XHfr1PSC += [roI3spqORKae(ES5oEprVxulp(b'\xd9\xdbU\xb8\xf6\x04KA\x07\x1b|=\x1eZ'), '\144' + '\x65' + '\143' + chr(0b1001110 + 0o41) + chr(0b1100000 + 0o4) + '\145')(chr(8007 - 7890) + chr(0b1110010 + 0o2) + chr(0b111100 + 0o52) + chr(0b1101 + 0o40) + '\x38').q33KG3foQ_CJ(eemPYp2vtTSr.LI6vCZvGABEo)] zd8UUGOstCUJ = eT8Y087E_kfd.check_output(mD44XHfr1PSC).kdIDrcwZTCs5() tjS5jZluY3_7(zd8UUGOstCUJ) if roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b'\x9a\xddR\xb3\xf5\x1bWB7\x1b86K'), chr(0b110110 + 0o56) + '\145' + chr(7321 - 7222) + chr(0b1101111) + chr(0b1000111 + 0o35) + chr(0b10011 + 0o122))('\165' + chr(0b1010110 + 0o36) + '\146' + chr(0b101101) + '\070')) in {roI3spqORKae(ES5oEprVxulp(b'\x9e\xc7V\xaf\xe3\x11J'), '\x64' + chr(101) + '\143' + chr(0b110 + 0o151) + chr(0b1100100) + chr(7637 - 7536))('\x75' + chr(0b1110100) + chr(4665 - 4563) + chr(0b11110 + 0o17) + '\x38'), roI3spqORKae(ES5oEprVxulp(b'\x9e\xc7V\xaf\xe3\x11Jv\x04\x0e#'), chr(424 - 324) + chr(0b110010 + 0o63) + chr(0b110010 + 0o61) + chr(0b1010000 + 0o37) + '\x64' + chr(101))(chr(0b1110101) + '\164' + chr(0b1100110) + '\x2d' + '\070'), roI3spqORKae(ES5oEprVxulp(b'\x9e\xc7V\xaf\xe3\x11Jv\x06\x005#LH\xde\x93'), chr(100) + '\145' + '\143' + chr(0b1011 + 0o144) + chr(0b1100100) + '\x65')('\x75' + chr(0b1001001 + 0o53) + '\x66' + chr(45) + chr(0b110001 + 0o7))}: kyVM7gIdTqg9 = nzTpIcepk0o8(chr(2109 - 2061) + '\x6f' + chr(0b110010) + '\x31' + '\062' + '\x37' + '\x30', 0b1000) vPz6IjbG3iOL(zd8UUGOstCUJ, roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b"\xb2\xf9q\x94\xf8'|pP>2t"), '\x64' + chr(0b100 + 0o141) + '\x63' + chr(0b1101011 + 0o4) + chr(7943 - 7843) + chr(101))(chr(0b1101100 + 0o11) + chr(0b111100 + 0o70) + chr(102) + chr(224 - 179) + '\x38')), kyVM7gIdTqg9) if roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b'\x9b\xc2C\xb8\xc8\x07][\x1e\n3'), chr(100) + '\x65' + chr(0b1100011) + chr(0b101110 + 0o101) + chr(2913 - 2813) + chr(0b1100101))(chr(0b1100110 + 0o17) + chr(0b1110100) + chr(0b1100110) + chr(45) + chr(1094 - 1038))): wFiUR9A9Pu5D(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\x9c\xc6R\xa6\xad[\x17E\x07\x0c *FH\xc2\x8c\x85nm\xec'), '\144' + chr(0b1100101) + '\143' + chr(6058 - 5947) + chr(5112 - 5012) + chr(8338 - 8237))('\x75' + chr(0b100110 + 0o116) + '\x66' + '\055' + chr(0b111000)), roI3spqORKae(ES5oEprVxulp(b'\x85\x81\x15\x9d\xd0G^F90\x02\x0c'), '\144' + chr(101) + '\x63' + chr(111) + chr(0b1100100) + chr(101))(chr(117) + '\164' + chr(0b1011010 + 0o14) + chr(0b10111 + 0o26) + '\070'))(roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b"\xb2\xf9q\x94\xf8'|pP>2t"), chr(693 - 593) + chr(101) + chr(99) + chr(0b1101111) + chr(0b1100100) + chr(101))(chr(0b100010 + 0o123) + chr(12203 - 12087) + chr(0b1100110) + '\055' + chr(0b111000))))) v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\xb5\x92Q\xb3\xf5TZ[\x07\x182#\\\x07\xc2\x90\xd0`1\xf5\x9ac\xf9\x0ec\x9ah=Y\x82,\x1a)J\x8c\xc2\x1c\xa28\xf6\x91\xd1R\xf6\xee\x1bM\t\x1c\x00a?AR\xc3\xd8\xd1z)\xf4\xd8d\xf7\x13('), '\144' + chr(101) + chr(0b1100011) + chr(7250 - 7139) + chr(100) + chr(6820 - 6719))('\165' + chr(8341 - 8225) + chr(10403 - 10301) + '\055' + chr(0b111000))) v8jsMqaYV6U2(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\xbd\xd4\x06\xb8\xf8TZ[\x07\x182#\\\x07\xd0\x88\xcfp<\xe3\xc9\'\xb8\x17t\x9an+\x1c\x95&\x0b)P\x86\x87\x1b\xed"\xf7\xd4\xc0C\xb9\xe7\x11V\t\tO#4AP\xc2\x9d\xcd5<\xe5\x9aj\xf6\x01&\xcah$R\x98e^pQ\x96\xc2\x0c\xa59\xed\x98\xd6\x06\xb4\xf2TYK\x04\na2A\x07\xc1\x97\xd6{)\xb1\xc3d\xed\n&\xd8u"K\x9f,\x0c)J\x8c\xc2\x17\xb9"\xe8\xce\x9d\t\xba\xf8\x17YE\x00\x0022\x14\\\x81\x85'), chr(6179 - 6079) + '\x65' + chr(113 - 14) + '\157' + chr(1939 - 1839) + chr(0b110111 + 0o56))('\165' + chr(0b110001 + 0o103) + chr(102) + chr(373 - 328) + chr(272 - 216)), roI3spqORKae(ES5oEprVxulp(b'\x85\x81\x15\x9d\xd0G^F90\x02\x0c'), chr(0b1100100) + chr(0b1 + 0o144) + chr(4792 - 4693) + chr(0b1000 + 0o147) + chr(0b10011 + 0o121) + chr(0b100011 + 0o102))('\x75' + chr(0b1110100) + '\146' + '\055' + '\070'))(roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b"\xb2\xf9q\x94\xf8'|pP>2t"), '\x64' + chr(101) + chr(0b10011 + 0o120) + '\x6f' + '\144' + chr(0b100000 + 0o105))(chr(0b1110101) + chr(6558 - 6442) + chr(0b11101 + 0o111) + chr(0b100 + 0o51) + chr(0b111000)))))