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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
paylogic/pip-accel | pip_accel/utils.py | match_option | def match_option(argument, short_option, long_option):
"""
Match a command line argument against a short and long option.
:param argument: The command line argument (a string).
:param short_option: The short option (a string).
:param long_option: The long option (a string).
:returns: :data:`True` if the argument matches, :data:`False` otherwise.
"""
return short_option[1] in argument[1:] if is_short_option(argument) else argument == long_option | python | def match_option(argument, short_option, long_option):
"""
Match a command line argument against a short and long option.
:param argument: The command line argument (a string).
:param short_option: The short option (a string).
:param long_option: The long option (a string).
:returns: :data:`True` if the argument matches, :data:`False` otherwise.
"""
return short_option[1] in argument[1:] if is_short_option(argument) else argument == long_option | [
"def",
"match_option",
"(",
"argument",
",",
"short_option",
",",
"long_option",
")",
":",
"return",
"short_option",
"[",
"1",
"]",
"in",
"argument",
"[",
"1",
":",
"]",
"if",
"is_short_option",
"(",
"argument",
")",
"else",
"argument",
"==",
"long_option"
] | Match a command line argument against a short and long option.
:param argument: The command line argument (a string).
:param short_option: The short option (a string).
:param long_option: The long option (a string).
:returns: :data:`True` if the argument matches, :data:`False` otherwise. | [
"Match",
"a",
"command",
"line",
"argument",
"against",
"a",
"short",
"and",
"long",
"option",
"."
] | ccad1b784927a322d996db593403b1d2d2e22666 | https://github.com/paylogic/pip-accel/blob/ccad1b784927a322d996db593403b1d2d2e22666/pip_accel/utils.py#L305-L314 | train | Match a command line argument against a short and long option. | GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,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S,WtdkIpFeYozM,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('\060' + '\x6f' + chr(0b110001) + '\066' + chr(0b0 + 0o65), ord("\x08")), nzTpIcepk0o8(chr(1443 - 1395) + chr(0b1101111) + chr(186 - 135) + chr(0b110010) + chr(277 - 222), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110011) + '\x30' + chr(1376 - 1323), ord("\x08")), nzTpIcepk0o8(chr(0b11 + 0o55) + '\157' + chr(2267 - 2217) + chr(0b101100 + 0o6) + chr(55), ord("\x08")), nzTpIcepk0o8(chr(424 - 376) + '\x6f' + '\x37' + chr(982 - 934), 0b1000), nzTpIcepk0o8(chr(0b11 + 0o55) + chr(0b1101111) + chr(1852 - 1802) + chr(1281 - 1231) + chr(53), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(8912 - 8801) + chr(55) + chr(50), 14879 - 14871), nzTpIcepk0o8(chr(0b110000) + chr(2951 - 2840) + '\061' + '\065', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x32' + '\x37', ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + '\063' + '\x37' + chr(2261 - 2213), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + '\x32' + chr(0b10100 + 0o40) + chr(54), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(51) + '\x35', 44964 - 44956), nzTpIcepk0o8(chr(48) + chr(0b111111 + 0o60) + chr(2769 - 2714) + '\x30', 8), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110011) + chr(48) + '\060', 0b1000), nzTpIcepk0o8(chr(0b11001 + 0o27) + chr(9052 - 8941) + chr(0b110001) + '\x37' + chr(0b110001 + 0o4), 0o10), nzTpIcepk0o8('\060' + '\157' + chr(0b110011) + chr(592 - 537) + chr(0b110101), 0o10), nzTpIcepk0o8(chr(0b100000 + 0o20) + chr(111) + chr(49) + '\x32', 0b1000), nzTpIcepk0o8(chr(48) + chr(5361 - 5250) + chr(1267 - 1218) + chr(48) + chr(0b100111 + 0o17), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(49) + '\x33', ord("\x08")), nzTpIcepk0o8(chr(0b10000 + 0o40) + chr(111) + '\x32' + chr(0b100010 + 0o25), 8), nzTpIcepk0o8('\x30' + '\x6f' + chr(1284 - 1234) + chr(0b110001) + chr(1503 - 1455), 0b1000), nzTpIcepk0o8(chr(0b100 + 0o54) + '\157' + chr(51) + chr(50), 0o10), nzTpIcepk0o8('\x30' + '\157' + '\x34' + chr(49), ord("\x08")), nzTpIcepk0o8(chr(0b10010 + 0o36) + '\x6f' + '\x32' + chr(1220 - 1168) + chr(0b110011), 0b1000), nzTpIcepk0o8('\060' + '\157' + chr(50) + chr(0b110101 + 0o2) + chr(0b11011 + 0o30), 0b1000), nzTpIcepk0o8(chr(415 - 367) + chr(0b1101111) + chr(0b110011) + '\062' + '\064', ord("\x08")), nzTpIcepk0o8(chr(0b10010 + 0o36) + '\157' + '\x32' + '\065' + chr(0b110110), 0o10), nzTpIcepk0o8(chr(662 - 614) + '\157' + '\067' + chr(0b110010), 8), nzTpIcepk0o8('\060' + '\x6f' + chr(153 - 102) + chr(0b10001 + 0o45) + chr(0b10110 + 0o32), ord("\x08")), nzTpIcepk0o8(chr(0b101011 + 0o5) + chr(111) + '\063' + chr(0b110011 + 0o4) + chr(48), 8), nzTpIcepk0o8(chr(0b111 + 0o51) + chr(725 - 614) + chr(0b11111 + 0o23) + chr(360 - 305) + chr(0b110111), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(50) + chr(0b110111) + chr(0b110110), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1110 + 0o141) + '\063' + '\062' + chr(0b111 + 0o57), 0o10), nzTpIcepk0o8('\060' + chr(1551 - 1440) + chr(0b110001) + chr(0b110010) + chr(51), 0o10), nzTpIcepk0o8('\060' + '\157' + chr(0b110011) + '\066' + '\x33', 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110001) + '\x37' + chr(1812 - 1760), 0o10), nzTpIcepk0o8(chr(0b110000 + 0o0) + chr(2057 - 1946) + '\x33' + chr(0b110001) + chr(0b1010 + 0o51), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1010110 + 0o31) + chr(0b110001) + chr(709 - 655) + '\x35', 8), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(49) + '\063' + '\x35', 14710 - 14702), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(50) + chr(0b100 + 0o60) + chr(49), 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b101110 + 0o2) + chr(10512 - 10401) + chr(0b100110 + 0o17) + chr(0b100110 + 0o12), 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'['), '\x64' + chr(0b1100101) + '\x63' + chr(0b1101111) + chr(0b101100 + 0o70) + chr(0b1100101))('\x75' + chr(0b100111 + 0o115) + '\146' + chr(163 - 118) + chr(0b111000)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def YZ6GGii_Cns1(QiY1GFQwHchB, DexTKXwoB98N, b1NOa5Xuq09u):
return DexTKXwoB98N[nzTpIcepk0o8('\060' + chr(2500 - 2389) + '\061', 0o10)] in QiY1GFQwHchB[nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110001), 8):] if aoUEvu8qwLeR(QiY1GFQwHchB) else QiY1GFQwHchB == b1NOa5Xuq09u |
paylogic/pip-accel | pip_accel/utils.py | match_option_with_value | def match_option_with_value(arguments, option, value):
"""
Check if a list of command line options contains an option with a value.
:param arguments: The command line arguments (a list of strings).
:param option: The long option (a string).
:param value: The expected value (a string).
:returns: :data:`True` if the command line contains the option/value pair,
:data:`False` otherwise.
"""
return ('%s=%s' % (option, value) in arguments or
contains_sublist(arguments, [option, value])) | python | def match_option_with_value(arguments, option, value):
"""
Check if a list of command line options contains an option with a value.
:param arguments: The command line arguments (a list of strings).
:param option: The long option (a string).
:param value: The expected value (a string).
:returns: :data:`True` if the command line contains the option/value pair,
:data:`False` otherwise.
"""
return ('%s=%s' % (option, value) in arguments or
contains_sublist(arguments, [option, value])) | [
"def",
"match_option_with_value",
"(",
"arguments",
",",
"option",
",",
"value",
")",
":",
"return",
"(",
"'%s=%s'",
"%",
"(",
"option",
",",
"value",
")",
"in",
"arguments",
"or",
"contains_sublist",
"(",
"arguments",
",",
"[",
"option",
",",
"value",
"]",
")",
")"
] | Check if a list of command line options contains an option with a value.
:param arguments: The command line arguments (a list of strings).
:param option: The long option (a string).
:param value: The expected value (a string).
:returns: :data:`True` if the command line contains the option/value pair,
:data:`False` otherwise. | [
"Check",
"if",
"a",
"list",
"of",
"command",
"line",
"options",
"contains",
"an",
"option",
"with",
"a",
"value",
"."
] | ccad1b784927a322d996db593403b1d2d2e22666 | https://github.com/paylogic/pip-accel/blob/ccad1b784927a322d996db593403b1d2d2e22666/pip_accel/utils.py#L327-L338 | train | Checks if a list of command line options contains an option with a value pair. | 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,_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O6GAb3Xup,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(748 - 700) + '\x6f' + chr(0b110011) + chr(0b110011), ord("\x08")), nzTpIcepk0o8(chr(2062 - 2014) + chr(111) + '\x33' + chr(0b110101), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110011) + '\061' + '\x33', 30527 - 30519), nzTpIcepk0o8(chr(2223 - 2175) + chr(772 - 661) + chr(2600 - 2549) + '\061' + chr(53), 52824 - 52816), nzTpIcepk0o8(chr(0b110000) + chr(7334 - 7223) + '\065' + '\x33', 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(2035 - 1986) + chr(0b100 + 0o57) + chr(0b100101 + 0o15), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + '\063' + chr(0b110001) + '\062', 22624 - 22616), nzTpIcepk0o8('\060' + '\x6f' + chr(0b10101 + 0o35) + '\x31' + chr(229 - 176), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + '\x32' + chr(53) + chr(0b11 + 0o57), ord("\x08")), nzTpIcepk0o8(chr(0b100111 + 0o11) + '\157' + chr(0b101100 + 0o7) + chr(1379 - 1324) + chr(0b101011 + 0o12), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(0b100000 + 0o21) + chr(49) + '\066', 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(393 - 344), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(51) + chr(2139 - 2088) + chr(0b100 + 0o62), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b110010 + 0o75) + chr(0b110010) + chr(48) + '\067', 0o10), nzTpIcepk0o8(chr(48) + chr(0b111001 + 0o66) + chr(0b10101 + 0o36) + chr(548 - 498) + '\062', 0o10), nzTpIcepk0o8('\x30' + '\x6f' + '\x33' + chr(0b110010) + '\x31', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x37' + chr(0b101111 + 0o3), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x32' + '\065' + '\x34', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(2675 - 2564) + chr(50) + chr(53) + chr(53), 63435 - 63427), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110010) + '\x34' + chr(0b110111), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + '\062' + chr(261 - 210) + '\x37', 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(189 - 139) + chr(0b100011 + 0o21) + '\060', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b100000 + 0o117) + '\x32' + chr(2732 - 2678) + chr(52), 52033 - 52025), nzTpIcepk0o8('\060' + chr(0b1001101 + 0o42) + '\x31' + '\066' + chr(0b110110), 0b1000), nzTpIcepk0o8('\x30' + chr(0b11110 + 0o121) + '\061' + chr(0b110101) + chr(0b110001), 0o10), nzTpIcepk0o8('\060' + chr(111) + '\x33' + chr(0b110 + 0o52) + '\x33', 43548 - 43540), nzTpIcepk0o8(chr(0b100010 + 0o16) + chr(0b1101111) + chr(0b10111 + 0o32) + chr(51) + '\x35', ord("\x08")), nzTpIcepk0o8(chr(1125 - 1077) + chr(0b1101111) + chr(0b101010 + 0o14) + chr(51), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110010) + '\066' + chr(0b110011), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b101011 + 0o10) + chr(449 - 394) + chr(625 - 572), 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110001) + chr(0b1 + 0o65) + chr(49), 23817 - 23809), nzTpIcepk0o8(chr(0b100000 + 0o20) + chr(1688 - 1577) + chr(2070 - 2021) + chr(0b110100) + chr(0b1100 + 0o52), 42924 - 42916), nzTpIcepk0o8(chr(0b110000 + 0o0) + chr(111) + chr(0b110001) + chr(50) + chr(54), 22427 - 22419), nzTpIcepk0o8('\x30' + '\157' + chr(0b110110) + chr(1732 - 1679), 54940 - 54932), nzTpIcepk0o8('\060' + chr(111) + chr(1770 - 1716) + chr(417 - 363), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(49) + '\062', 0b1000), nzTpIcepk0o8('\x30' + '\157' + '\x36' + chr(0b101101 + 0o6), 8), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(49) + '\064' + chr(48), 54338 - 54330), nzTpIcepk0o8(chr(1603 - 1555) + '\157' + chr(0b110100) + chr(0b101110 + 0o7), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(299 - 250) + '\x36' + chr(1493 - 1439), 8)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(90 - 37) + chr(670 - 622), 59300 - 59292)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'5'), chr(100) + chr(5479 - 5378) + chr(99) + chr(0b1101111) + chr(0b1100100) + chr(411 - 310))(chr(117) + chr(7810 - 7694) + '\146' + chr(0b100000 + 0o15) + chr(2896 - 2840)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def tVpYeX4fXvLw(H5ObihiJsBjC, hAhcvAlr6Tc_, uV9iBiw0y_Mp):
return roI3spqORKae(ES5oEprVxulp(b'>n\xf6\xe8X'), chr(0b1000101 + 0o37) + chr(0b11100 + 0o111) + '\x63' + '\x6f' + chr(100) + '\145')(chr(0b110111 + 0o76) + chr(1353 - 1237) + chr(3875 - 3773) + chr(45) + '\x38') % (hAhcvAlr6Tc_, uV9iBiw0y_Mp) in H5ObihiJsBjC or gjBDVwQvOQH8(H5ObihiJsBjC, [hAhcvAlr6Tc_, uV9iBiw0y_Mp]) |
paylogic/pip-accel | pip_accel/utils.py | contains_sublist | def contains_sublist(lst, sublst):
"""
Check if one list contains the items from another list (in the same order).
:param lst: The main list.
:param sublist: The sublist to check for.
:returns: :data:`True` if the main list contains the items from the
sublist in the same order, :data:`False` otherwise.
Based on `this StackOverflow answer <http://stackoverflow.com/a/3314913>`_.
"""
n = len(sublst)
return any((sublst == lst[i:i + n]) for i in range(len(lst) - n + 1)) | python | def contains_sublist(lst, sublst):
"""
Check if one list contains the items from another list (in the same order).
:param lst: The main list.
:param sublist: The sublist to check for.
:returns: :data:`True` if the main list contains the items from the
sublist in the same order, :data:`False` otherwise.
Based on `this StackOverflow answer <http://stackoverflow.com/a/3314913>`_.
"""
n = len(sublst)
return any((sublst == lst[i:i + n]) for i in range(len(lst) - n + 1)) | [
"def",
"contains_sublist",
"(",
"lst",
",",
"sublst",
")",
":",
"n",
"=",
"len",
"(",
"sublst",
")",
"return",
"any",
"(",
"(",
"sublst",
"==",
"lst",
"[",
"i",
":",
"i",
"+",
"n",
"]",
")",
"for",
"i",
"in",
"range",
"(",
"len",
"(",
"lst",
")",
"-",
"n",
"+",
"1",
")",
")"
] | Check if one list contains the items from another list (in the same order).
:param lst: The main list.
:param sublist: The sublist to check for.
:returns: :data:`True` if the main list contains the items from the
sublist in the same order, :data:`False` otherwise.
Based on `this StackOverflow answer <http://stackoverflow.com/a/3314913>`_. | [
"Check",
"if",
"one",
"list",
"contains",
"the",
"items",
"from",
"another",
"list",
"(",
"in",
"the",
"same",
"order",
")",
"."
] | ccad1b784927a322d996db593403b1d2d2e22666 | https://github.com/paylogic/pip-accel/blob/ccad1b784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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('\060' + '\157' + chr(0b110010) + chr(2796 - 2743) + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(640 - 591) + '\061' + '\x33', 0o10), nzTpIcepk0o8('\060' + '\157' + '\063' + chr(0b1011 + 0o51) + chr(0b11000 + 0o35), 54788 - 54780), nzTpIcepk0o8('\060' + '\x6f' + chr(671 - 620) + chr(2702 - 2650) + '\066', 0o10), nzTpIcepk0o8(chr(48) + chr(111) + '\061' + chr(0b11100 + 0o33) + '\x37', 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110011) + '\066' + chr(0b100011 + 0o24), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(2086 - 2032) + '\x30', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1011100 + 0o23) + '\063' + chr(48) + chr(0b110000), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(0b100110 + 0o15) + chr(173 - 125) + chr(2052 - 1999), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110010) + chr(1463 - 1413) + chr(54), 0b1000), nzTpIcepk0o8(chr(48) + chr(6795 - 6684) + '\x31' + chr(123 - 71) + '\x35', 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(0b101011 + 0o14) + '\x34', ord("\x08")), nzTpIcepk0o8(chr(0b100100 + 0o14) + chr(1458 - 1347) + chr(0b1011 + 0o50) + chr(2191 - 2141) + chr(50), 0b1000), nzTpIcepk0o8('\060' + chr(111) + '\x31' + '\x35' + '\060', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(575 - 526) + '\061' + chr(0b101111 + 0o2), 0b1000), nzTpIcepk0o8(chr(1398 - 1350) + chr(0b1101111) + chr(0b110010) + chr(0b100000 + 0o27) + chr(311 - 261), 61841 - 61833), nzTpIcepk0o8(chr(0b101110 + 0o2) + chr(0b1101101 + 0o2) + chr(562 - 513) + chr(49) + chr(2308 - 2256), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + '\063' + chr(0b110010 + 0o2) + '\063', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(2530 - 2419) + chr(0b110100) + chr(0b110011), 39054 - 39046), nzTpIcepk0o8('\x30' + chr(111) + '\062' + chr(0b110101) + chr(1921 - 1872), 8), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\063' + '\x33' + '\061', 0o10), nzTpIcepk0o8(chr(2175 - 2127) + '\157' + '\063' + chr(0b10000 + 0o43) + chr(0b110111), 31825 - 31817), nzTpIcepk0o8(chr(0b10101 + 0o33) + chr(111) + '\x33' + chr(0b110001) + chr(0b110000), 0b1000), nzTpIcepk0o8(chr(0b10101 + 0o33) + '\x6f' + '\063' + chr(51) + chr(0b11011 + 0o32), 0o10), nzTpIcepk0o8(chr(48) + chr(8529 - 8418) + chr(51) + chr(48) + '\x30', 8), nzTpIcepk0o8('\x30' + '\x6f' + '\062' + chr(0b1011 + 0o47) + chr(53), 11641 - 11633), nzTpIcepk0o8(chr(48) + '\157' + '\064' + chr(0b110100), 18899 - 18891), nzTpIcepk0o8(chr(0b10100 + 0o34) + chr(111) + chr(1175 - 1124) + '\x32' + '\x30', 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(2303 - 2252) + chr(0b110011) + chr(1631 - 1582), 8), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110010) + chr(0b100 + 0o54) + chr(0b110101), 56273 - 56265), nzTpIcepk0o8('\060' + '\x6f' + chr(1013 - 964) + chr(0b110 + 0o52) + chr(51), 0b1000), nzTpIcepk0o8('\060' + chr(0b1101110 + 0o1) + '\x33' + chr(1483 - 1429) + chr(0b10011 + 0o37), 0b1000), nzTpIcepk0o8(chr(1007 - 959) + chr(111) + chr(0b11 + 0o55), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(49) + chr(53) + chr(1178 - 1127), 5551 - 5543), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\061' + chr(2567 - 2516) + chr(1188 - 1133), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + '\x31' + '\x32', 0o10), nzTpIcepk0o8(chr(0b110000 + 0o0) + chr(0b100010 + 0o115) + '\x32' + chr(0b110010) + chr(2760 - 2705), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b11010 + 0o125) + '\067', ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(0b11100 + 0o26) + chr(2437 - 2384) + '\063', 0b1000), nzTpIcepk0o8('\060' + chr(0b101110 + 0o101) + chr(1135 - 1084) + chr(1688 - 1634), 46396 - 46388)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b101011 + 0o12) + chr(0b110000), 25949 - 25941)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x87'), chr(0b1100010 + 0o2) + '\145' + chr(0b1100011) + chr(0b1101111) + '\144' + '\x65')(chr(0b1110101) + chr(116) + '\146' + '\x2d' + chr(1027 - 971)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def gjBDVwQvOQH8(qqHCejBNy7jf, cVD13VuIrLt9):
NoZxuO7wjArS = ftfygxgFas5X(cVD13VuIrLt9)
return VF4pKOObtlPc((cVD13VuIrLt9 == qqHCejBNy7jf[ZlbFMSG8gCoF:ZlbFMSG8gCoF + NoZxuO7wjArS] for ZlbFMSG8gCoF in bbT2xIe5pzk7(ftfygxgFas5X(qqHCejBNy7jf) - NoZxuO7wjArS + nzTpIcepk0o8('\060' + chr(0b101001 + 0o106) + chr(49), 0b1000)))) |
eyurtsev/fcsparser | fcsparser/api.py | fromfile | def fromfile(file, dtype, count, *args, **kwargs):
"""Wrapper around np.fromfile to support any file-like object."""
try:
return numpy.fromfile(file, dtype=dtype, count=count, *args, **kwargs)
except (TypeError, IOError):
return numpy.frombuffer(file.read(count * numpy.dtype(dtype).itemsize),
dtype=dtype, count=count, *args, **kwargs) | python | def fromfile(file, dtype, count, *args, **kwargs):
"""Wrapper around np.fromfile to support any file-like object."""
try:
return numpy.fromfile(file, dtype=dtype, count=count, *args, **kwargs)
except (TypeError, IOError):
return numpy.frombuffer(file.read(count * numpy.dtype(dtype).itemsize),
dtype=dtype, count=count, *args, **kwargs) | [
"def",
"fromfile",
"(",
"file",
",",
"dtype",
",",
"count",
",",
"*",
"args",
",",
"*",
"*",
"kwargs",
")",
":",
"try",
":",
"return",
"numpy",
".",
"fromfile",
"(",
"file",
",",
"dtype",
"=",
"dtype",
",",
"count",
"=",
"count",
",",
"*",
"args",
",",
"*",
"*",
"kwargs",
")",
"except",
"(",
"TypeError",
",",
"IOError",
")",
":",
"return",
"numpy",
".",
"frombuffer",
"(",
"file",
".",
"read",
"(",
"count",
"*",
"numpy",
".",
"dtype",
"(",
"dtype",
")",
".",
"itemsize",
")",
",",
"dtype",
"=",
"dtype",
",",
"count",
"=",
"count",
",",
"*",
"args",
",",
"*",
"*",
"kwargs",
")"
] | Wrapper around np.fromfile to support any file-like object. | [
"Wrapper",
"around",
"np",
".",
"fromfile",
"to",
"support",
"any",
"file",
"-",
"like",
"object",
"."
] | 710e8e31d4b09ff6e73d47d86770be6ca2f4282c | https://github.com/eyurtsev/fcsparser/blob/710e8e31d4b09ff6e73d47d86770be6ca2f4282c/fcsparser/api.py#L29-L35 | train | Wrapper around np. fromfile to support any file - like 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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V_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' + chr(0b1101111) + chr(49) + chr(54) + chr(136 - 87), 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(0b110011) + chr(0b11011 + 0o33) + chr(900 - 848), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(9133 - 9022) + chr(596 - 546) + chr(50), 0o10), nzTpIcepk0o8('\x30' + chr(4972 - 4861) + chr(0b11000 + 0o33) + '\x30' + chr(0b101000 + 0o16), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b11000 + 0o127) + chr(0b110101) + chr(416 - 364), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110011) + chr(0b1111 + 0o41) + chr(0b101 + 0o62), 33113 - 33105), nzTpIcepk0o8('\060' + '\157' + chr(0b110110), ord("\x08")), nzTpIcepk0o8(chr(289 - 241) + chr(0b1101100 + 0o3) + chr(0b1 + 0o60) + chr(0b10 + 0o63) + '\x35', ord("\x08")), nzTpIcepk0o8(chr(0b101111 + 0o1) + chr(7302 - 7191) + chr(782 - 731) + chr(663 - 611) + '\064', 14141 - 14133), nzTpIcepk0o8('\060' + '\157' + chr(2580 - 2527) + chr(0b110 + 0o60), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(1107 - 1057) + '\x30' + '\067', 0o10), nzTpIcepk0o8(chr(706 - 658) + '\x6f' + chr(0b101001 + 0o12) + chr(0b110101 + 0o1) + chr(52), 8), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\062' + '\x31' + chr(0b100110 + 0o21), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(0b11000 + 0o32) + chr(0b100010 + 0o24) + '\060', 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110110) + '\x31', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b100110 + 0o111) + chr(51) + chr(2433 - 2382) + chr(1472 - 1419), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110001) + '\061' + '\065', 0o10), nzTpIcepk0o8('\x30' + chr(9980 - 9869) + '\x32' + chr(696 - 648) + chr(0b110111), 8), nzTpIcepk0o8(chr(0b101001 + 0o7) + chr(0b1101111) + '\x35' + chr(50), 39988 - 39980), nzTpIcepk0o8(chr(114 - 66) + chr(0b1101111) + chr(0b110010) + '\060' + '\x34', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + '\063' + '\061' + '\x36', 49962 - 49954), nzTpIcepk0o8('\060' + chr(0b111100 + 0o63) + chr(0b11101 + 0o25) + chr(405 - 356) + chr(51), 39209 - 39201), nzTpIcepk0o8(chr(0b110000) + chr(2865 - 2754) + '\061' + chr(0b100101 + 0o20) + chr(54), 58880 - 58872), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110010) + chr(0b1100 + 0o53) + '\067', 0o10), nzTpIcepk0o8(chr(0b100001 + 0o17) + chr(0b111011 + 0o64) + chr(49) + chr(0b1111 + 0o50) + chr(0b10101 + 0o36), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1100010 + 0o15) + '\061' + '\062' + chr(0b1 + 0o65), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b111111 + 0o60) + '\061' + chr(0b11100 + 0o27) + chr(0b100111 + 0o16), 0b1000), nzTpIcepk0o8(chr(0b1101 + 0o43) + '\157' + chr(0b100001 + 0o21) + '\062' + chr(0b110100), 0b1000), nzTpIcepk0o8('\x30' + '\157' + '\062' + chr(0b100110 + 0o15) + '\x36', 63922 - 63914), nzTpIcepk0o8('\060' + chr(0b101000 + 0o107) + '\063' + chr(49), 0b1000), nzTpIcepk0o8('\060' + '\157' + chr(51) + '\064' + chr(0b110100), 8), nzTpIcepk0o8(chr(1144 - 1096) + chr(0b100000 + 0o117) + '\062' + chr(362 - 313) + chr(0b110111), 8), nzTpIcepk0o8('\060' + chr(1765 - 1654) + chr(451 - 401) + chr(0b0 + 0o67) + chr(344 - 289), 8), nzTpIcepk0o8(chr(0b110000) + chr(237 - 126) + chr(0b110011) + chr(0b110011) + '\067', 33123 - 33115), nzTpIcepk0o8(chr(48) + chr(10495 - 10384) + chr(51) + '\x33' + chr(0b101100 + 0o13), 8), nzTpIcepk0o8(chr(0b11001 + 0o27) + chr(6119 - 6008) + chr(0b101111 + 0o4) + '\x33' + '\064', 0b1000), nzTpIcepk0o8(chr(48) + chr(7457 - 7346) + '\062' + '\x35' + chr(0b110101), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + '\063' + chr(0b101110 + 0o7) + '\062', 32182 - 32174), nzTpIcepk0o8(chr(0b100110 + 0o12) + chr(12029 - 11918) + '\x33' + chr(0b1101 + 0o52) + chr(1926 - 1873), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x31' + chr(0b110011), 21293 - 21285)][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + chr(111) + '\065' + '\060', 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'_'), chr(0b1100100) + chr(0b1100000 + 0o5) + chr(7852 - 7753) + '\157' + chr(2524 - 2424) + chr(0b1100101))(chr(0b100011 + 0o122) + '\164' + chr(102) + '\055' + '\070') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def GSxf0bORUJRy(GtsVUCYulgYX, RcX9bbuOzh5L, sQSWKlURp7QK, *eemPYp2vtTSr, **q5n0sHDDTy90):
try:
return roI3spqORKae(L6YB9g87uxKh, roI3spqORKae(ES5oEprVxulp(b'\x17\x86}\xabJ\xaej\x08'), '\144' + chr(101) + '\x63' + chr(0b1101001 + 0o6) + '\144' + chr(0b1100101))(chr(3591 - 3474) + chr(2510 - 2394) + chr(102) + chr(0b1 + 0o54) + chr(56)))(GtsVUCYulgYX, *eemPYp2vtTSr, dtype=RcX9bbuOzh5L, count=sQSWKlURp7QK, **q5n0sHDDTy90)
except (jZIjKu8IFANs, Awc2QmWaiVq8):
return roI3spqORKae(L6YB9g87uxKh, roI3spqORKae(ES5oEprVxulp(b'\x17\x86}\xabN\xb2`\x0b\x81\\'), chr(0b110000 + 0o64) + chr(0b10101 + 0o120) + chr(99) + chr(0b1101111) + '\x64' + '\x65')('\165' + chr(0b111100 + 0o70) + chr(102) + '\055' + chr(56)))(roI3spqORKae(GtsVUCYulgYX, roI3spqORKae(ES5oEprVxulp(b'\x14\x9bJ\xadB\x8f15\xb1@\xb0\x99'), chr(5831 - 5731) + chr(9423 - 9322) + chr(9169 - 9070) + chr(111) + chr(7550 - 7450) + chr(101))(chr(117) + '\164' + '\146' + '\055' + chr(0b11110 + 0o32)))(sQSWKlURp7QK * roI3spqORKae(L6YB9g87uxKh.dtype(RcX9bbuOzh5L), roI3spqORKae(ES5oEprVxulp(b'\x18\x80w\xab_\xae|\x08'), chr(7423 - 7323) + chr(0b1010010 + 0o23) + chr(99) + '\157' + '\144' + chr(5121 - 5020))(chr(0b1110101) + chr(116) + chr(0b110101 + 0o61) + chr(1753 - 1708) + '\070'))), *eemPYp2vtTSr, dtype=RcX9bbuOzh5L, count=sQSWKlURp7QK, **q5n0sHDDTy90) |
eyurtsev/fcsparser | fcsparser/api.py | parse | def parse(path, meta_data_only=False, compensate=False, channel_naming='$PnS',
reformat_meta=False, data_set=0, dtype='float32', encoding="utf-8"):
"""Parse an fcs file at the location specified by the path.
Parameters
----------
path: str
Path of .fcs file
meta_data_only: bool
If True, the parse_fcs only returns the meta_data (the TEXT segment of the FCS file)
output_format: 'DataFrame' | 'ndarray'
If set to 'DataFrame' the returned
channel_naming: '$PnS' | '$PnN'
Determines which meta data field is used for naming the channels.
The default should be $PnS (even though it is not guaranteed to be unique)
$PnN stands for the short name (guaranteed to be unique).
Will look like 'FL1-H'
$PnS stands for the actual name (not guaranteed to be unique).
Will look like 'FSC-H' (Forward scatter)
The chosen field will be used to population self.channels
Note: These names are not flipped in the implementation.
It looks like they were swapped for some reason in the official FCS specification.
reformat_meta: bool
If true, the meta data is reformatted with the channel information organized
into a DataFrame and moved into the '_channels_' key
data_set: int
Index of retrieved data set in the fcs file.
This value specifies the data set being retrieved from an fcs file with multiple data sets.
dtype: str | None
If provided, will force convert all data into this dtype.
This is set by default to auto-convert to float32 to deal with cases in which the original
data has been stored using a smaller data type (e.g., unit8). This modifies the original
data, but should make follow up analysis safer in basically all cases.
encoding: str
Provide encoding type of the text section.
Returns
-------
if meta_data_only is True:
meta_data: dict
Contains a dictionary with the meta data information
Otherwise:
a 2-tuple with
the first element the meta_data (dictionary)
the second element the data (in either DataFrame or numpy format)
Examples
--------
fname = '../tests/data/EY_2013-05-03_EID_214_PID_1120_Piperacillin_Well_B7.001.fcs'
meta = parse_fcs(fname, meta_data_only=True)
meta, data_pandas = parse_fcs(fname, meta_data_only=False)
"""
if compensate:
raise ParserFeatureNotImplementedError(u'Compensation has not been implemented yet.')
read_data = not meta_data_only
fcs_parser = FCSParser(path, read_data=read_data, channel_naming=channel_naming,
data_set=data_set, encoding=encoding)
if reformat_meta:
fcs_parser.reformat_meta()
meta = fcs_parser.annotation
if meta_data_only:
return meta
else: # Then include both meta and dataframe.
df = fcs_parser.dataframe
df = df.astype(dtype) if dtype else df
return meta, df | python | def parse(path, meta_data_only=False, compensate=False, channel_naming='$PnS',
reformat_meta=False, data_set=0, dtype='float32', encoding="utf-8"):
"""Parse an fcs file at the location specified by the path.
Parameters
----------
path: str
Path of .fcs file
meta_data_only: bool
If True, the parse_fcs only returns the meta_data (the TEXT segment of the FCS file)
output_format: 'DataFrame' | 'ndarray'
If set to 'DataFrame' the returned
channel_naming: '$PnS' | '$PnN'
Determines which meta data field is used for naming the channels.
The default should be $PnS (even though it is not guaranteed to be unique)
$PnN stands for the short name (guaranteed to be unique).
Will look like 'FL1-H'
$PnS stands for the actual name (not guaranteed to be unique).
Will look like 'FSC-H' (Forward scatter)
The chosen field will be used to population self.channels
Note: These names are not flipped in the implementation.
It looks like they were swapped for some reason in the official FCS specification.
reformat_meta: bool
If true, the meta data is reformatted with the channel information organized
into a DataFrame and moved into the '_channels_' key
data_set: int
Index of retrieved data set in the fcs file.
This value specifies the data set being retrieved from an fcs file with multiple data sets.
dtype: str | None
If provided, will force convert all data into this dtype.
This is set by default to auto-convert to float32 to deal with cases in which the original
data has been stored using a smaller data type (e.g., unit8). This modifies the original
data, but should make follow up analysis safer in basically all cases.
encoding: str
Provide encoding type of the text section.
Returns
-------
if meta_data_only is True:
meta_data: dict
Contains a dictionary with the meta data information
Otherwise:
a 2-tuple with
the first element the meta_data (dictionary)
the second element the data (in either DataFrame or numpy format)
Examples
--------
fname = '../tests/data/EY_2013-05-03_EID_214_PID_1120_Piperacillin_Well_B7.001.fcs'
meta = parse_fcs(fname, meta_data_only=True)
meta, data_pandas = parse_fcs(fname, meta_data_only=False)
"""
if compensate:
raise ParserFeatureNotImplementedError(u'Compensation has not been implemented yet.')
read_data = not meta_data_only
fcs_parser = FCSParser(path, read_data=read_data, channel_naming=channel_naming,
data_set=data_set, encoding=encoding)
if reformat_meta:
fcs_parser.reformat_meta()
meta = fcs_parser.annotation
if meta_data_only:
return meta
else: # Then include both meta and dataframe.
df = fcs_parser.dataframe
df = df.astype(dtype) if dtype else df
return meta, df | [
"def",
"parse",
"(",
"path",
",",
"meta_data_only",
"=",
"False",
",",
"compensate",
"=",
"False",
",",
"channel_naming",
"=",
"'$PnS'",
",",
"reformat_meta",
"=",
"False",
",",
"data_set",
"=",
"0",
",",
"dtype",
"=",
"'float32'",
",",
"encoding",
"=",
"\"utf-8\"",
")",
":",
"if",
"compensate",
":",
"raise",
"ParserFeatureNotImplementedError",
"(",
"u'Compensation has not been implemented yet.'",
")",
"read_data",
"=",
"not",
"meta_data_only",
"fcs_parser",
"=",
"FCSParser",
"(",
"path",
",",
"read_data",
"=",
"read_data",
",",
"channel_naming",
"=",
"channel_naming",
",",
"data_set",
"=",
"data_set",
",",
"encoding",
"=",
"encoding",
")",
"if",
"reformat_meta",
":",
"fcs_parser",
".",
"reformat_meta",
"(",
")",
"meta",
"=",
"fcs_parser",
".",
"annotation",
"if",
"meta_data_only",
":",
"return",
"meta",
"else",
":",
"# Then include both meta and dataframe.",
"df",
"=",
"fcs_parser",
".",
"dataframe",
"df",
"=",
"df",
".",
"astype",
"(",
"dtype",
")",
"if",
"dtype",
"else",
"df",
"return",
"meta",
",",
"df"
] | Parse an fcs file at the location specified by the path.
Parameters
----------
path: str
Path of .fcs file
meta_data_only: bool
If True, the parse_fcs only returns the meta_data (the TEXT segment of the FCS file)
output_format: 'DataFrame' | 'ndarray'
If set to 'DataFrame' the returned
channel_naming: '$PnS' | '$PnN'
Determines which meta data field is used for naming the channels.
The default should be $PnS (even though it is not guaranteed to be unique)
$PnN stands for the short name (guaranteed to be unique).
Will look like 'FL1-H'
$PnS stands for the actual name (not guaranteed to be unique).
Will look like 'FSC-H' (Forward scatter)
The chosen field will be used to population self.channels
Note: These names are not flipped in the implementation.
It looks like they were swapped for some reason in the official FCS specification.
reformat_meta: bool
If true, the meta data is reformatted with the channel information organized
into a DataFrame and moved into the '_channels_' key
data_set: int
Index of retrieved data set in the fcs file.
This value specifies the data set being retrieved from an fcs file with multiple data sets.
dtype: str | None
If provided, will force convert all data into this dtype.
This is set by default to auto-convert to float32 to deal with cases in which the original
data has been stored using a smaller data type (e.g., unit8). This modifies the original
data, but should make follow up analysis safer in basically all cases.
encoding: str
Provide encoding type of the text section.
Returns
-------
if meta_data_only is True:
meta_data: dict
Contains a dictionary with the meta data information
Otherwise:
a 2-tuple with
the first element the meta_data (dictionary)
the second element the data (in either DataFrame or numpy format)
Examples
--------
fname = '../tests/data/EY_2013-05-03_EID_214_PID_1120_Piperacillin_Well_B7.001.fcs'
meta = parse_fcs(fname, meta_data_only=True)
meta, data_pandas = parse_fcs(fname, meta_data_only=False) | [
"Parse",
"an",
"fcs",
"file",
"at",
"the",
"location",
"specified",
"by",
"the",
"path",
"."
] | 710e8e31d4b09ff6e73d47d86770be6ca2f4282c | https://github.com/eyurtsev/fcsparser/blob/710e8e31d4b09ff6e73d47d86770be6ca2f4282c/fcsparser/api.py#L499-L573 | train | Parse a FCS file at the specified location. | 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,Z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PZ4,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(12266 - 12155) + '\x33' + chr(0b110111) + chr(0b101000 + 0o17), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1111 + 0o140) + chr(0b10 + 0o60) + '\x32' + chr(110 - 61), 33184 - 33176), nzTpIcepk0o8(chr(215 - 167) + '\157' + '\061' + chr(0b10110 + 0o34) + chr(1214 - 1164), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(9980 - 9869) + chr(0b11000 + 0o34) + chr(0b110101), 0b1000), nzTpIcepk0o8('\060' + '\157' + '\x33' + chr(0b110001) + '\065', 9625 - 9617), nzTpIcepk0o8(chr(0b110000) + chr(5926 - 5815) + chr(0b10101 + 0o35) + chr(0b1110 + 0o46) + chr(0b110011 + 0o1), 0b1000), nzTpIcepk0o8(chr(558 - 510) + chr(10481 - 10370) + chr(0b110001) + '\061' + chr(311 - 257), 0b1000), nzTpIcepk0o8('\060' + '\157' + chr(0b1111 + 0o44) + chr(0b110001) + chr(394 - 345), ord("\x08")), nzTpIcepk0o8(chr(0b100010 + 0o16) + chr(111) + chr(0b110010 + 0o0) + chr(0b10000 + 0o43), ord("\x08")), nzTpIcepk0o8(chr(416 - 368) + chr(0b1101111) + chr(55), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + '\062' + chr(51) + '\063', 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(52) + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(598 - 550) + chr(0b1101111) + chr(0b110011) + chr(48) + '\064', 0o10), nzTpIcepk0o8(chr(1653 - 1605) + chr(111) + '\062' + '\067' + chr(1911 - 1860), 65139 - 65131), nzTpIcepk0o8(chr(1596 - 1548) + '\x6f' + chr(50) + chr(0b10 + 0o64) + chr(0b11 + 0o60), ord("\x08")), nzTpIcepk0o8(chr(1430 - 1382) + chr(2360 - 2249) + chr(0b1000 + 0o53) + chr(54) + '\x31', 31361 - 31353), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(2462 - 2410) + chr(1740 - 1685), 0b1000), nzTpIcepk0o8(chr(0b101101 + 0o3) + chr(111) + chr(2104 - 2054) + '\x32' + chr(49), 8), nzTpIcepk0o8(chr(77 - 29) + '\x6f' + '\x34' + chr(0b101001 + 0o14), 8), nzTpIcepk0o8(chr(0b100111 + 0o11) + chr(0b1101111) + '\x32' + '\065' + '\063', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101110 + 0o1) + chr(0b110001) + chr(0b110001) + chr(0b110111), 10198 - 10190), nzTpIcepk0o8('\x30' + chr(0b111011 + 0o64) + '\x34', ord("\x08")), nzTpIcepk0o8(chr(0b1011 + 0o45) + chr(0b1011001 + 0o26) + chr(49) + '\060' + '\x34', 0b1000), nzTpIcepk0o8('\060' + chr(0b110001 + 0o76) + chr(0b110001) + chr(0b110 + 0o60) + chr(0b110000 + 0o7), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(52) + chr(49), 8), nzTpIcepk0o8('\060' + chr(111) + chr(1778 - 1729) + chr(1902 - 1849), 8061 - 8053), nzTpIcepk0o8('\060' + chr(1312 - 1201) + '\x36' + '\064', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b1011 + 0o50) + '\060' + '\064', 8), nzTpIcepk0o8('\x30' + '\157' + chr(0b100110 + 0o15) + '\060' + chr(0b110011), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1100010 + 0o15) + '\x32' + '\067', ord("\x08")), nzTpIcepk0o8(chr(0b110 + 0o52) + '\157' + chr(1962 - 1913) + chr(199 - 150) + chr(55), 8), nzTpIcepk0o8(chr(0b110000) + chr(0b10010 + 0o135) + chr(51) + chr(0b110001) + '\062', 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(759 - 708) + '\x37' + chr(55), 8), nzTpIcepk0o8('\060' + chr(111) + chr(51) + '\x37' + chr(0b110110), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1000001 + 0o56) + chr(0b100011 + 0o17) + '\062' + chr(0b11110 + 0o24), 63951 - 63943), nzTpIcepk0o8('\x30' + chr(0b1 + 0o156) + chr(1722 - 1673) + '\061', 0o10), nzTpIcepk0o8(chr(2073 - 2025) + '\157' + chr(611 - 562) + chr(0b111 + 0o57) + chr(607 - 555), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(49) + chr(884 - 832) + chr(55), 53419 - 53411), nzTpIcepk0o8(chr(0b101001 + 0o7) + '\x6f' + chr(49) + '\060' + chr(0b110001), 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(2067 - 2017) + '\064' + chr(55), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b101100 + 0o11) + chr(0b110000), 7594 - 7586)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xd1'), chr(100) + chr(101) + chr(0b1100011) + '\x6f' + '\x64' + chr(101))(chr(0b1110101) + chr(0b1110100) + chr(0b1100110) + '\055' + chr(0b10101 + 0o43)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def zgDfHOdKcvCW(_pSYqrosNb95, ksdlK7xum1jd=nzTpIcepk0o8('\060' + '\x6f' + '\060', 0o10), MiD9oi4xDzHt=nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(340 - 292), 8), uIAQklfsvQrB=roI3spqORKae(ES5oEprVxulp(b'\xdb\xc1<v'), chr(0b1100100) + chr(0b1100101) + '\143' + chr(7134 - 7023) + chr(4317 - 4217) + '\145')(chr(0b1110101) + chr(11382 - 11266) + chr(0b1100110) + chr(486 - 441) + '\070'), w9ByhCtj55E7=nzTpIcepk0o8(chr(48) + '\157' + chr(0b11 + 0o55), 8), ykEYO4hvm1OW=nzTpIcepk0o8(chr(48) + '\157' + '\x30', 8), RcX9bbuOzh5L=roI3spqORKae(ES5oEprVxulp(b'\x99\xfd=D\xb9\x97|'), '\x64' + chr(1678 - 1577) + chr(0b1100011) + chr(0b1010001 + 0o36) + '\x64' + chr(0b101 + 0o140))('\165' + chr(0b1100011 + 0o21) + '\x66' + chr(0b101101) + '\x38'), rt5yMsH2WFRk=roI3spqORKae(ES5oEprVxulp(b'\x8a\xe54\x08\xf5'), chr(0b1100100) + chr(0b10011 + 0o122) + chr(5511 - 5412) + '\157' + '\x64' + chr(0b1100101))(chr(0b1110101) + chr(0b1110100) + chr(0b1100110) + chr(0b101101) + '\070')):
if MiD9oi4xDzHt:
raise zgtq_9BoLE3Q(roI3spqORKae(ES5oEprVxulp(b'\xbc\xfe?U\xa8\xca=\xa8gn\xf4O\xe4\xd3\xd2\x82\x07\xffJ\xdfof!\x12O-]\xa9\xb3{*\xa7\x9a\x90\xe6l\x10G8\xc2\x8b\xbf'), chr(0b1100100) + chr(0b1100101) + '\x63' + chr(111) + chr(3975 - 3875) + '\145')(chr(117) + '\x74' + '\x66' + chr(205 - 160) + chr(56)))
thhz9CEcZlFP = not ksdlK7xum1jd
kFGeBwL1oDJo = jrMMOxtclgcq(_pSYqrosNb95, read_data=thhz9CEcZlFP, channel_naming=uIAQklfsvQrB, data_set=ykEYO4hvm1OW, encoding=rt5yMsH2WFRk)
if w9ByhCtj55E7:
roI3spqORKae(kFGeBwL1oDJo, roI3spqORKae(ES5oEprVxulp(b'\x8d\xf44J\xbf\xc9/\xbdLj\xfeU\xa5'), chr(6795 - 6695) + '\x65' + chr(0b111111 + 0o44) + '\x6f' + chr(0b1100100) + chr(101))(chr(8134 - 8017) + '\164' + chr(0b1011011 + 0o13) + chr(0b101101) + chr(748 - 692)))()
DCKHhI6xLX9g = kFGeBwL1oDJo.bKP0IesFF4Pq
if ksdlK7xum1jd:
return DCKHhI6xLX9g
else:
jpOn8DNZxbbx = kFGeBwL1oDJo.dataframe
jpOn8DNZxbbx = jpOn8DNZxbbx.xqAChpcBkssb(RcX9bbuOzh5L) if RcX9bbuOzh5L else jpOn8DNZxbbx
return (DCKHhI6xLX9g, jpOn8DNZxbbx) |
eyurtsev/fcsparser | fcsparser/api.py | FCSParser.load_file | def load_file(self, file_handle, data_set=0, read_data=True):
"""Load the requested parts of the file into memory."""
file_handle.seek(0, 2)
self._file_size = file_handle.tell()
file_handle.seek(0)
data_segments = 0
# seek the correct data set in fcs
nextdata_offset = 0
while data_segments <= data_set:
self.read_header(file_handle, nextdata_offset)
self.read_text(file_handle)
if '$NEXTDATA' in self.annotation:
data_segments += 1
nextdata_offset = self.annotation['$NEXTDATA']
file_handle.seek(nextdata_offset)
if nextdata_offset == 0 and data_segments < data_set:
warnings.warn("File does not contain the number of data sets.")
break
else:
if data_segments != 0:
warnings.warn('File does not contain $NEXTDATA information.')
break
if read_data:
self.read_data(file_handle) | python | def load_file(self, file_handle, data_set=0, read_data=True):
"""Load the requested parts of the file into memory."""
file_handle.seek(0, 2)
self._file_size = file_handle.tell()
file_handle.seek(0)
data_segments = 0
# seek the correct data set in fcs
nextdata_offset = 0
while data_segments <= data_set:
self.read_header(file_handle, nextdata_offset)
self.read_text(file_handle)
if '$NEXTDATA' in self.annotation:
data_segments += 1
nextdata_offset = self.annotation['$NEXTDATA']
file_handle.seek(nextdata_offset)
if nextdata_offset == 0 and data_segments < data_set:
warnings.warn("File does not contain the number of data sets.")
break
else:
if data_segments != 0:
warnings.warn('File does not contain $NEXTDATA information.')
break
if read_data:
self.read_data(file_handle) | [
"def",
"load_file",
"(",
"self",
",",
"file_handle",
",",
"data_set",
"=",
"0",
",",
"read_data",
"=",
"True",
")",
":",
"file_handle",
".",
"seek",
"(",
"0",
",",
"2",
")",
"self",
".",
"_file_size",
"=",
"file_handle",
".",
"tell",
"(",
")",
"file_handle",
".",
"seek",
"(",
"0",
")",
"data_segments",
"=",
"0",
"# seek the correct data set in fcs",
"nextdata_offset",
"=",
"0",
"while",
"data_segments",
"<=",
"data_set",
":",
"self",
".",
"read_header",
"(",
"file_handle",
",",
"nextdata_offset",
")",
"self",
".",
"read_text",
"(",
"file_handle",
")",
"if",
"'$NEXTDATA'",
"in",
"self",
".",
"annotation",
":",
"data_segments",
"+=",
"1",
"nextdata_offset",
"=",
"self",
".",
"annotation",
"[",
"'$NEXTDATA'",
"]",
"file_handle",
".",
"seek",
"(",
"nextdata_offset",
")",
"if",
"nextdata_offset",
"==",
"0",
"and",
"data_segments",
"<",
"data_set",
":",
"warnings",
".",
"warn",
"(",
"\"File does not contain the number of data sets.\"",
")",
"break",
"else",
":",
"if",
"data_segments",
"!=",
"0",
":",
"warnings",
".",
"warn",
"(",
"'File does not contain $NEXTDATA information.'",
")",
"break",
"if",
"read_data",
":",
"self",
".",
"read_data",
"(",
"file_handle",
")"
] | Load the requested parts of the file into memory. | [
"Load",
"the",
"requested",
"parts",
"of",
"the",
"file",
"into",
"memory",
"."
] | 710e8e31d4b09ff6e73d47d86770be6ca2f4282c | https://github.com/eyurtsev/fcsparser/blob/710e8e31d4b09ff6e73d47d86770be6ca2f4282c/fcsparser/api.py#L113-L136 | train | Load the requested parts of the file into memory. | 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,UB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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(0b1000000 + 0o57) + chr(49) + chr(52) + '\x30', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1010001 + 0o36) + chr(517 - 467) + chr(0b110101) + '\x35', 0b1000), nzTpIcepk0o8(chr(48) + '\157' + '\x31' + chr(1134 - 1080) + chr(0b10011 + 0o36), 32964 - 32956), nzTpIcepk0o8('\x30' + chr(0b110111 + 0o70) + '\x31' + '\x35' + chr(1452 - 1403), 7831 - 7823), nzTpIcepk0o8(chr(48) + '\x6f' + '\061' + chr(1287 - 1232) + chr(2657 - 2604), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + '\x37' + chr(48), ord("\x08")), nzTpIcepk0o8(chr(0b100100 + 0o14) + '\157' + chr(1692 - 1641) + chr(0b110100) + chr(50), 44728 - 44720), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110010) + '\x34', 49421 - 49413), nzTpIcepk0o8(chr(678 - 630) + '\x6f' + chr(0b110010) + '\065' + chr(1112 - 1063), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(399 - 349) + chr(0b10111 + 0o36) + '\x30', ord("\x08")), nzTpIcepk0o8(chr(1428 - 1380) + '\157' + chr(0b101001 + 0o11) + chr(55) + '\x31', ord("\x08")), nzTpIcepk0o8(chr(0b10000 + 0o40) + '\157' + chr(50) + chr(51) + '\062', ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b101000 + 0o17) + '\x33', 0b1000), nzTpIcepk0o8(chr(142 - 94) + chr(10741 - 10630) + chr(0b110001) + chr(0b101111 + 0o1), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110010) + '\x37' + chr(0b110000 + 0o6), 6329 - 6321), nzTpIcepk0o8(chr(0b10001 + 0o37) + chr(111) + chr(0b100001 + 0o22) + '\067', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101110 + 0o1) + chr(49) + '\x35', 12993 - 12985), nzTpIcepk0o8('\060' + chr(3112 - 3001) + chr(0b11001 + 0o31) + chr(0b101000 + 0o16) + chr(0b10010 + 0o44), 24889 - 24881), nzTpIcepk0o8('\060' + '\157' + '\x33' + chr(0b110101) + '\x33', 50671 - 50663), nzTpIcepk0o8('\x30' + chr(111) + chr(0b101 + 0o55) + chr(0b10010 + 0o44) + '\060', 63355 - 63347), nzTpIcepk0o8('\060' + chr(0b1010100 + 0o33) + '\061' + chr(51), 37613 - 37605), nzTpIcepk0o8(chr(1258 - 1210) + chr(0b1110 + 0o141) + chr(0b110011) + chr(0b100001 + 0o23) + chr(49), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(5407 - 5296) + chr(0b0 + 0o63) + chr(0b100110 + 0o17) + chr(0b110101 + 0o1), 0o10), nzTpIcepk0o8('\060' + '\x6f' + '\063' + '\060' + '\x32', 0b1000), nzTpIcepk0o8(chr(0b1 + 0o57) + chr(111) + '\x33' + chr(882 - 834) + chr(1924 - 1873), 0o10), nzTpIcepk0o8('\x30' + chr(8353 - 8242) + chr(55) + chr(0b110011), 8), nzTpIcepk0o8(chr(2179 - 2131) + chr(0b1101111) + '\x31' + '\067' + chr(2087 - 2038), 28780 - 28772), nzTpIcepk0o8(chr(0b110000) + chr(0b101111 + 0o100) + '\061' + '\066' + '\x31', 8), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x31' + chr(0b110001) + chr(54), ord("\x08")), nzTpIcepk0o8(chr(1991 - 1943) + chr(5720 - 5609) + chr(1736 - 1686) + chr(2257 - 2204) + '\x36', 38160 - 38152), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(1582 - 1532) + '\065' + '\067', ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + '\x32' + chr(1583 - 1532) + '\061', 14288 - 14280), nzTpIcepk0o8(chr(382 - 334) + chr(0b1101111) + '\x32' + '\x31' + '\x33', 22752 - 22744), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(1269 - 1220) + chr(1117 - 1069) + '\x33', 17815 - 17807), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b101100 + 0o5) + chr(1076 - 1026) + chr(55), 0o10), nzTpIcepk0o8(chr(755 - 707) + '\157' + '\x32' + chr(48) + chr(51), 0b1000), nzTpIcepk0o8(chr(0b10011 + 0o35) + chr(0b1101111) + chr(1943 - 1894) + '\067' + chr(0b110110), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110011) + chr(534 - 481) + chr(0b110001), 0o10), nzTpIcepk0o8(chr(1233 - 1185) + chr(111) + chr(0b100001 + 0o20) + '\064' + chr(49), 0b1000), nzTpIcepk0o8('\x30' + chr(0b100100 + 0o113) + chr(0b1011 + 0o47) + chr(963 - 912), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + chr(5936 - 5825) + '\x35' + chr(2183 - 2135), ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'N'), chr(100) + chr(521 - 420) + chr(6105 - 6006) + '\157' + chr(5210 - 5110) + chr(101))(chr(2501 - 2384) + chr(0b1011100 + 0o30) + '\x66' + chr(0b10000 + 0o35) + chr(429 - 373)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def g22sqnhlFwqQ(hXMPsSrOQzbh, rC115QJVCRma, ykEYO4hvm1OW=nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110000), ord("\x08")), thhz9CEcZlFP=nzTpIcepk0o8('\060' + chr(111) + '\061', 0b1000)):
roI3spqORKae(rC115QJVCRma, roI3spqORKae(ES5oEprVxulp(b'\x13\xc8\x14\x02'), chr(0b1100001 + 0o3) + chr(0b1001010 + 0o33) + chr(0b1100011) + chr(814 - 703) + chr(5608 - 5508) + chr(0b1100101))(chr(0b1110101) + '\x74' + chr(102) + chr(0b1011 + 0o42) + '\x38'))(nzTpIcepk0o8(chr(0b110000) + chr(0b1010111 + 0o30) + '\060', 8), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x32', 0o10))
hXMPsSrOQzbh.cFIyEFYnN3qE = rC115QJVCRma.tell()
roI3spqORKae(rC115QJVCRma, roI3spqORKae(ES5oEprVxulp(b'\x13\xc8\x14\x02'), chr(917 - 817) + chr(101) + '\x63' + chr(0b1101111) + chr(0b1100100) + '\145')('\165' + chr(0b11001 + 0o133) + '\x66' + '\055' + chr(56)))(nzTpIcepk0o8('\060' + chr(0b1101111) + '\x30', 8))
Ch0d36WVDXD1 = nzTpIcepk0o8('\x30' + chr(552 - 441) + chr(48), 8)
spZdwUbWAL_U = nzTpIcepk0o8('\060' + chr(0b1101111) + chr(48), 8)
while Ch0d36WVDXD1 <= ykEYO4hvm1OW:
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x12\xc8\x10\r"P\x87u\xcd\xcd\xcb'), '\x64' + chr(0b1100101) + '\x63' + chr(547 - 436) + '\x64' + chr(0b1001010 + 0o33))(chr(117) + chr(116) + chr(102) + chr(0b101101) + chr(0b111000)))(rC115QJVCRma, spZdwUbWAL_U)
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x12\xc8\x10\r"L\x87l\xdd'), chr(3722 - 3622) + chr(101) + '\x63' + chr(111) + chr(0b1100100) + chr(6458 - 6357))(chr(1032 - 915) + '\x74' + '\146' + chr(0b111 + 0o46) + chr(56)))(rC115QJVCRma)
if roI3spqORKae(ES5oEprVxulp(b'D\xe341)|\xa3@\xe8'), '\x64' + chr(0b1100101) + '\x63' + chr(111) + '\x64' + chr(0b1100101))('\165' + '\x74' + '\x66' + chr(45) + chr(0b111000)) in roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x02\xe6!Y4]\x91R\xef\x9c\xe9\xeb'), chr(100) + chr(0b10111 + 0o116) + chr(8037 - 7938) + '\157' + chr(100) + chr(5307 - 5206))('\x75' + chr(116) + chr(462 - 360) + '\055' + chr(56))):
Ch0d36WVDXD1 += nzTpIcepk0o8('\x30' + chr(0b100 + 0o153) + chr(49), 8)
spZdwUbWAL_U = hXMPsSrOQzbh.bKP0IesFF4Pq[roI3spqORKae(ES5oEprVxulp(b'D\xe341)|\xa3@\xe8'), chr(0b1100100) + chr(2623 - 2522) + '\x63' + chr(0b1101111) + chr(100) + chr(0b101001 + 0o74))(chr(0b1110101) + '\x74' + '\146' + chr(0b1011 + 0o42) + chr(56))]
roI3spqORKae(rC115QJVCRma, roI3spqORKae(ES5oEprVxulp(b'\x13\xc8\x14\x02'), chr(414 - 314) + chr(2291 - 2190) + chr(8347 - 8248) + '\x6f' + chr(4813 - 4713) + chr(101))(chr(0b1110101) + chr(0b1110100) + chr(0b1 + 0o145) + chr(1338 - 1293) + '\070'))(spZdwUbWAL_U)
if spZdwUbWAL_U == nzTpIcepk0o8('\060' + chr(4286 - 4175) + '\x30', 8) and Ch0d36WVDXD1 < ykEYO4hvm1OW:
roI3spqORKae(EyN62Frii5S5, roI3spqORKae(ES5oEprVxulp(b'\x13\xe7 ?"p\x93G\x90\xce\xde\xe0'), chr(0b1100100) + '\145' + chr(0b10110 + 0o115) + '\x6f' + '\144' + '\x65')(chr(0b1110101 + 0o0) + '\164' + chr(0b1100110) + '\x2d' + '\070'))(roI3spqORKae(ES5oEprVxulp(b'&\xc4\x1d\x0c]\\\x8dq\xda\x88\xd7\xf5O(\xddpc\xc2\x8a\xd9e\xc1\x9a\xaa\xa6\x1b\x17\x04#\xcc\xca\xeb\xab,1\xa3\x1a\x88\x15r@\xde\x14\x1d\x0e\x16'), chr(3573 - 3473) + '\145' + chr(5662 - 5563) + chr(0b1101111) + chr(0b1100100) + chr(101))(chr(11109 - 10992) + chr(0b110000 + 0o104) + '\x66' + chr(45) + '\x38'))
break
else:
if Ch0d36WVDXD1 != nzTpIcepk0o8('\060' + chr(111) + chr(0b1100 + 0o44), 8):
roI3spqORKae(EyN62Frii5S5, roI3spqORKae(ES5oEprVxulp(b'\x13\xe7 ?"p\x93G\x90\xce\xde\xe0'), chr(100) + '\145' + '\x63' + chr(0b1101111) + chr(100) + chr(0b1100101))(chr(10078 - 9961) + chr(13240 - 13124) + '\146' + chr(45) + '\x38'))(roI3spqORKae(ES5oEprVxulp(b'&\xc4\x1d\x0c]\\\x8dq\xda\x88\xd7\xf5O(\xddpc\xc2\x8a\xd9e\xc1\xca\x8c\x86c-5\x0f\xfa\xee\xb9\xe2-1\xec\x0c\x84\x00g\t\xc2\x1fG'), chr(8113 - 8013) + chr(0b110011 + 0o62) + chr(0b1100011) + chr(0b10000 + 0o137) + chr(100) + '\145')(chr(0b1110101) + chr(0b1110100) + chr(0b1100110) + chr(0b11111 + 0o16) + '\x38'))
break
if thhz9CEcZlFP:
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x14\xc5\x19\x13D{\xa7w\xf3\xc4\xff\xca'), chr(0b1100100) + '\x65' + chr(99) + chr(0b100111 + 0o110) + '\x64' + chr(7414 - 7313))(chr(0b1110101) + chr(10695 - 10579) + '\x66' + chr(0b11101 + 0o20) + '\070'))(rC115QJVCRma) |
eyurtsev/fcsparser | fcsparser/api.py | FCSParser.from_data | def from_data(cls, data):
"""Load an FCS file from a bytes-like object.
Args:
data: buffer containing contents of an FCS file.
Returns:
FCSParser instance with data loaded
"""
obj = cls()
with contextlib.closing(BytesIO(data)) as file_handle:
obj.load_file(file_handle)
return obj | python | def from_data(cls, data):
"""Load an FCS file from a bytes-like object.
Args:
data: buffer containing contents of an FCS file.
Returns:
FCSParser instance with data loaded
"""
obj = cls()
with contextlib.closing(BytesIO(data)) as file_handle:
obj.load_file(file_handle)
return obj | [
"def",
"from_data",
"(",
"cls",
",",
"data",
")",
":",
"obj",
"=",
"cls",
"(",
")",
"with",
"contextlib",
".",
"closing",
"(",
"BytesIO",
"(",
"data",
")",
")",
"as",
"file_handle",
":",
"obj",
".",
"load_file",
"(",
"file_handle",
")",
"return",
"obj"
] | Load an FCS file from a bytes-like object.
Args:
data: buffer containing contents of an FCS file.
Returns:
FCSParser instance with data loaded | [
"Load",
"an",
"FCS",
"file",
"from",
"a",
"bytes",
"-",
"like",
"object",
"."
] | 710e8e31d4b09ff6e73d47d86770be6ca2f4282c | https://github.com/eyurtsev/fcsparser/blob/710e8e31d4b09ff6e73d47d86770be6ca2f4282c/fcsparser/api.py#L139-L151 | train | Load an FCS file from a bytes - like 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,ZOd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RcrJP,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(860 - 812) + chr(0b1101111) + chr(0b10010 + 0o41) + chr(0b101110 + 0o4) + chr(0b10110 + 0o36), 59381 - 59373), nzTpIcepk0o8(chr(48) + chr(111) + chr(2021 - 1971) + chr(0b110111) + chr(0b101001 + 0o12), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + '\x33' + chr(0b110011) + '\x30', ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(50) + '\064' + '\064', 5586 - 5578), nzTpIcepk0o8(chr(0b110000) + '\157' + '\065' + chr(0b110110), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110010) + chr(54) + '\x31', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110001) + '\x31' + chr(53), 47580 - 47572), nzTpIcepk0o8(chr(1356 - 1308) + chr(111) + chr(0b110011) + chr(1185 - 1134) + chr(1416 - 1368), 8), nzTpIcepk0o8('\060' + chr(111) + '\061' + chr(53) + chr(0b110110), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1000111 + 0o50) + chr(0b110011) + '\065' + chr(0b110110), 0o10), nzTpIcepk0o8('\060' + chr(6515 - 6404) + chr(0b110 + 0o53) + '\x32' + '\060', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\062' + '\067' + chr(2486 - 2434), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b110111 + 0o70) + chr(50) + '\067' + chr(0b1010 + 0o51), 8), nzTpIcepk0o8(chr(0b1111 + 0o41) + chr(0b1101111) + chr(52), 0b1000), nzTpIcepk0o8(chr(568 - 520) + chr(111) + chr(0b110001) + chr(2041 - 1988) + chr(0b110110), 8), nzTpIcepk0o8('\x30' + '\x6f' + chr(712 - 660) + '\060', 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + '\x32' + chr(0b11001 + 0o36) + '\x37', 0o10), nzTpIcepk0o8(chr(337 - 289) + chr(0b1101111) + '\062' + '\x31' + '\067', 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b11111 + 0o24) + '\060' + chr(51), 49742 - 49734), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110110), 0o10), nzTpIcepk0o8(chr(2223 - 2175) + chr(111) + chr(681 - 631) + chr(0b100 + 0o63) + chr(1258 - 1210), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\063' + chr(0b111 + 0o54) + chr(0b100110 + 0o13), 0o10), nzTpIcepk0o8(chr(691 - 643) + '\157' + '\x33' + chr(611 - 556) + chr(2578 - 2527), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1100 + 0o143) + chr(1403 - 1352) + '\x36' + chr(52), 8716 - 8708), nzTpIcepk0o8(chr(0b110000) + chr(6493 - 6382) + chr(2031 - 1980) + chr(1281 - 1231) + '\062', 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110111) + chr(49), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + '\x33' + chr(863 - 809) + chr(2174 - 2124), 0b1000), nzTpIcepk0o8('\060' + chr(0b100 + 0o153) + chr(0b110001) + '\060' + chr(1606 - 1551), 0o10), nzTpIcepk0o8('\x30' + '\157' + '\x31' + '\061' + chr(2654 - 2601), 8), nzTpIcepk0o8(chr(0b100101 + 0o13) + chr(0b1100110 + 0o11) + '\061' + '\060' + chr(3020 - 2965), 8), nzTpIcepk0o8(chr(1839 - 1791) + '\157' + '\061' + chr(2050 - 1999) + '\x33', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b101011 + 0o6) + chr(0b110110) + chr(54), 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x32' + '\066' + chr(0b101011 + 0o12), 0o10), nzTpIcepk0o8(chr(1255 - 1207) + chr(1438 - 1327) + '\x33' + chr(48) + '\061', ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(1739 - 1690) + '\061' + '\067', 0b1000), nzTpIcepk0o8(chr(0b10110 + 0o32) + chr(0b1101110 + 0o1) + chr(0b110001) + chr(55) + chr(0b10100 + 0o36), 45255 - 45247), nzTpIcepk0o8('\x30' + chr(111) + chr(50) + chr(53) + '\061', ord("\x08")), nzTpIcepk0o8(chr(2090 - 2042) + '\x6f' + chr(0b110010 + 0o2) + chr(49), 47982 - 47974), nzTpIcepk0o8('\x30' + chr(111) + chr(164 - 115) + chr(0b101000 + 0o15) + chr(55), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(55) + chr(0b100110 + 0o16), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + chr(4129 - 4018) + chr(1937 - 1884) + chr(2020 - 1972), 16695 - 16687)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xfa'), chr(0b1011011 + 0o11) + '\x65' + chr(0b10101 + 0o116) + chr(0b101101 + 0o102) + '\144' + chr(3024 - 2923))(chr(0b1110101) + chr(0b100 + 0o160) + '\x66' + chr(1893 - 1848) + '\x38') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def z9Nh5CmBoPqZ(_1vzISbJ_R2i, FfKOThdpoDTb):
kIMfkyypPTcC = _1vzISbJ_R2i()
with roI3spqORKae(BB23SiHbVeFU, roI3spqORKae(ES5oEprVxulp(b'\xb9\xcb\xa8\xebb\xfat\x99/\x86\x0f\xff'), chr(0b1010 + 0o132) + chr(101) + '\143' + chr(9961 - 9850) + chr(9487 - 9387) + chr(1188 - 1087))('\x75' + chr(116) + '\x66' + '\x2d' + chr(56)))(BVoKtXpmh0oX(FfKOThdpoDTb)) as rC115QJVCRma:
roI3spqORKae(kIMfkyypPTcC, roI3spqORKae(ES5oEprVxulp(b'\xb3\x89\xea\xd7_\xdf%\xb4(\x99!\xed'), '\144' + chr(0b1001001 + 0o34) + chr(3837 - 3738) + chr(5824 - 5713) + chr(0b1100100) + chr(5985 - 5884))('\165' + chr(11166 - 11050) + '\146' + '\055' + chr(0b101001 + 0o17)))(rC115QJVCRma)
return kIMfkyypPTcC |
eyurtsev/fcsparser | fcsparser/api.py | FCSParser.read_header | def read_header(self, file_handle, nextdata_offset=0):
"""Read the header of the FCS file.
The header specifies where the annotation, data and analysis are located inside the binary
file.
Args:
file_handle: buffer containing FCS file.
nextdata_offset: byte offset of a set header from file start specified by $NEXTDATA
"""
header = {'FCS format': file_handle.read(6)}
file_handle.read(4) # 4 space characters after the FCS format
for field in ('text start', 'text end', 'data start', 'data end', 'analysis start',
'analysis end'):
s = file_handle.read(8)
try:
field_value = int(s)
except ValueError:
field_value = 0
header[field] = field_value + nextdata_offset
# Checking that the location of the TEXT segment is specified
for k in ('text start', 'text end'):
if header[k] == 0:
raise ValueError(u'The FCS file "{}" seems corrupted. (Parser cannot locate '
u'information about the "{}" segment.)'.format(self.path, k))
elif header[k] > self._file_size:
raise ValueError(u'The FCS file "{}" is corrupted. "{}" segment '
u'is larger than file size'.format(self.path, k))
else:
# All OK
pass
self._data_start = header['data start']
self._data_end = header['data start']
if header['analysis end'] - header['analysis start'] != 0:
warnings.warn(u'There appears to be some information in the ANALYSIS segment of file '
u'{0}. However, it might not be read correctly.'.format(self.path))
self.annotation['__header__'] = header | python | def read_header(self, file_handle, nextdata_offset=0):
"""Read the header of the FCS file.
The header specifies where the annotation, data and analysis are located inside the binary
file.
Args:
file_handle: buffer containing FCS file.
nextdata_offset: byte offset of a set header from file start specified by $NEXTDATA
"""
header = {'FCS format': file_handle.read(6)}
file_handle.read(4) # 4 space characters after the FCS format
for field in ('text start', 'text end', 'data start', 'data end', 'analysis start',
'analysis end'):
s = file_handle.read(8)
try:
field_value = int(s)
except ValueError:
field_value = 0
header[field] = field_value + nextdata_offset
# Checking that the location of the TEXT segment is specified
for k in ('text start', 'text end'):
if header[k] == 0:
raise ValueError(u'The FCS file "{}" seems corrupted. (Parser cannot locate '
u'information about the "{}" segment.)'.format(self.path, k))
elif header[k] > self._file_size:
raise ValueError(u'The FCS file "{}" is corrupted. "{}" segment '
u'is larger than file size'.format(self.path, k))
else:
# All OK
pass
self._data_start = header['data start']
self._data_end = header['data start']
if header['analysis end'] - header['analysis start'] != 0:
warnings.warn(u'There appears to be some information in the ANALYSIS segment of file '
u'{0}. However, it might not be read correctly.'.format(self.path))
self.annotation['__header__'] = header | [
"def",
"read_header",
"(",
"self",
",",
"file_handle",
",",
"nextdata_offset",
"=",
"0",
")",
":",
"header",
"=",
"{",
"'FCS format'",
":",
"file_handle",
".",
"read",
"(",
"6",
")",
"}",
"file_handle",
".",
"read",
"(",
"4",
")",
"# 4 space characters after the FCS format",
"for",
"field",
"in",
"(",
"'text start'",
",",
"'text end'",
",",
"'data start'",
",",
"'data end'",
",",
"'analysis start'",
",",
"'analysis end'",
")",
":",
"s",
"=",
"file_handle",
".",
"read",
"(",
"8",
")",
"try",
":",
"field_value",
"=",
"int",
"(",
"s",
")",
"except",
"ValueError",
":",
"field_value",
"=",
"0",
"header",
"[",
"field",
"]",
"=",
"field_value",
"+",
"nextdata_offset",
"# Checking that the location of the TEXT segment is specified",
"for",
"k",
"in",
"(",
"'text start'",
",",
"'text end'",
")",
":",
"if",
"header",
"[",
"k",
"]",
"==",
"0",
":",
"raise",
"ValueError",
"(",
"u'The FCS file \"{}\" seems corrupted. (Parser cannot locate '",
"u'information about the \"{}\" segment.)'",
".",
"format",
"(",
"self",
".",
"path",
",",
"k",
")",
")",
"elif",
"header",
"[",
"k",
"]",
">",
"self",
".",
"_file_size",
":",
"raise",
"ValueError",
"(",
"u'The FCS file \"{}\" is corrupted. \"{}\" segment '",
"u'is larger than file size'",
".",
"format",
"(",
"self",
".",
"path",
",",
"k",
")",
")",
"else",
":",
"# All OK",
"pass",
"self",
".",
"_data_start",
"=",
"header",
"[",
"'data start'",
"]",
"self",
".",
"_data_end",
"=",
"header",
"[",
"'data start'",
"]",
"if",
"header",
"[",
"'analysis end'",
"]",
"-",
"header",
"[",
"'analysis start'",
"]",
"!=",
"0",
":",
"warnings",
".",
"warn",
"(",
"u'There appears to be some information in the ANALYSIS segment of file '",
"u'{0}. However, it might not be read correctly.'",
".",
"format",
"(",
"self",
".",
"path",
")",
")",
"self",
".",
"annotation",
"[",
"'__header__'",
"]",
"=",
"header"
] | Read the header of the FCS file.
The header specifies where the annotation, data and analysis are located inside the binary
file.
Args:
file_handle: buffer containing FCS file.
nextdata_offset: byte offset of a set header from file start specified by $NEXTDATA | [
"Read",
"the",
"header",
"of",
"the",
"FCS",
"file",
"."
] | 710e8e31d4b09ff6e73d47d86770be6ca2f4282c | https://github.com/eyurtsev/fcsparser/blob/710e8e31d4b09ff6e73d47d86770be6ca2f4282c/fcsparser/api.py#L153-L195 | train | Read the header of the FCS 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,fPFTJxVnGSh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6pRf2DSRk,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(0b1101100 + 0o3) + chr(1301 - 1251) + chr(0b11010 + 0o34) + chr(0b1101 + 0o44), 47838 - 47830), nzTpIcepk0o8(chr(2182 - 2134) + '\157' + '\063' + chr(48) + chr(0b100100 + 0o16), 49476 - 49468), nzTpIcepk0o8('\060' + '\157' + chr(873 - 824) + '\x30' + '\x36', 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110010) + chr(532 - 481) + chr(0b10000 + 0o47), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + '\x31' + chr(0b110101) + '\x31', 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110010 + 0o0) + '\x31' + chr(0b110000), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(6348 - 6237) + '\067' + chr(2058 - 2004), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + '\061' + chr(1734 - 1681) + chr(629 - 580), 8), nzTpIcepk0o8(chr(0b1110 + 0o42) + chr(111) + chr(0b110010) + chr(52) + chr(0b101001 + 0o13), 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(2042 - 1991) + chr(0b110011) + chr(0b110100), 0o10), nzTpIcepk0o8(chr(0b1 + 0o57) + chr(111) + chr(806 - 755) + '\x31' + '\x30', 0o10), nzTpIcepk0o8('\x30' + chr(1846 - 1735) + chr(51) + chr(2443 - 2391) + '\062', 0b1000), nzTpIcepk0o8(chr(0b101011 + 0o5) + chr(111) + chr(0b110011) + chr(0b10010 + 0o37), 0o10), nzTpIcepk0o8('\060' + chr(0b10000 + 0o137) + '\x33' + '\x31' + '\065', 0o10), nzTpIcepk0o8(chr(0b11010 + 0o26) + '\x6f' + chr(772 - 723) + chr(722 - 671) + chr(1970 - 1920), 17910 - 17902), nzTpIcepk0o8(chr(193 - 145) + chr(111) + chr(49) + '\x37' + chr(52), 0o10), nzTpIcepk0o8(chr(48) + chr(6117 - 6006) + chr(0b10011 + 0o37) + chr(0b101100 + 0o6) + chr(52), 0o10), nzTpIcepk0o8(chr(0b11 + 0o55) + chr(0b1101111) + chr(0b101110 + 0o10) + '\066', 0o10), nzTpIcepk0o8(chr(0b1 + 0o57) + '\157' + '\x32' + chr(381 - 328) + chr(49), 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(0b110101) + chr(0b10011 + 0o43), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\063' + '\x31' + chr(51), 0b1000), nzTpIcepk0o8(chr(0b11010 + 0o26) + chr(0b1101111) + chr(0b110111) + chr(53), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(51) + chr(0b10010 + 0o36) + '\x36', 57926 - 57918), nzTpIcepk0o8(chr(0b110000 + 0o0) + chr(0b1101111) + chr(0b101010 + 0o11) + '\x30' + chr(0b10101 + 0o33), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(703 - 653) + chr(52) + '\061', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + '\061' + chr(0b11111 + 0o24) + '\x36', 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(208 - 157) + '\x35' + '\066', 0o10), nzTpIcepk0o8(chr(88 - 40) + chr(111) + chr(51) + chr(51) + '\x31', 16367 - 16359), nzTpIcepk0o8('\060' + chr(111) + chr(49) + chr(0b110010) + '\061', ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + '\x31' + chr(48) + '\x32', ord("\x08")), nzTpIcepk0o8('\x30' + chr(1214 - 1103) + chr(51) + '\x30' + chr(0b101000 + 0o17), 29992 - 29984), nzTpIcepk0o8(chr(415 - 367) + chr(111) + '\x33' + chr(0b101010 + 0o14) + chr(52), ord("\x08")), nzTpIcepk0o8(chr(1301 - 1253) + chr(111) + chr(0b110001) + chr(2301 - 2248) + '\067', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b10111 + 0o130) + '\062' + chr(2721 - 2667), 0o10), nzTpIcepk0o8(chr(0b10111 + 0o31) + chr(11832 - 11721) + '\061' + chr(0b110011) + chr(856 - 808), 352 - 344), nzTpIcepk0o8(chr(0b110000) + chr(0b1100001 + 0o16) + chr(0b11100 + 0o26) + '\065' + chr(0b110101), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1010111 + 0o30) + chr(2002 - 1952) + chr(0b110101) + '\x37', 45315 - 45307), nzTpIcepk0o8(chr(305 - 257) + chr(0b1010011 + 0o34) + '\x32' + chr(980 - 929), 0b1000), nzTpIcepk0o8(chr(1222 - 1174) + chr(111) + chr(0b110011) + chr(0b110010) + chr(50), 0b1000), nzTpIcepk0o8(chr(650 - 602) + chr(4108 - 3997) + chr(0b10010 + 0o37) + '\x35' + chr(1354 - 1306), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + '\157' + chr(53) + '\060', 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x9f'), chr(0b1100100) + chr(0b1010011 + 0o22) + chr(0b1001100 + 0o27) + '\157' + chr(100) + '\x65')(chr(117) + chr(0b1110100) + chr(0b1100110) + '\055' + '\070') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def CiZKQxoj1PMu(hXMPsSrOQzbh, rC115QJVCRma, spZdwUbWAL_U=nzTpIcepk0o8(chr(1805 - 1757) + chr(0b10110 + 0o131) + '\x30', 0o10)):
jkp_M8Pp8CIt = {roI3spqORKae(ES5oEprVxulp(b'\xf7\x81\x15\xbf\x0f\xe7L\x04\xc5\xa8'), chr(0b10111 + 0o115) + chr(101) + chr(0b1100011) + '\157' + '\144' + chr(0b1100101))(chr(117) + chr(116) + chr(102) + '\055' + chr(0b111000)): rC115QJVCRma.eoXknH7XUn7m(nzTpIcepk0o8('\x30' + chr(111) + chr(0b110110), 0b1000))}
roI3spqORKae(rC115QJVCRma, roI3spqORKae(ES5oEprVxulp(b'\xd4\xad\x1e\xf4\x07\xc0\t1\xf1\xb2\xff\x8f'), chr(958 - 858) + '\x65' + chr(3877 - 3778) + chr(0b1101111) + '\144' + '\x65')('\x75' + '\164' + chr(0b1011011 + 0o13) + chr(45) + chr(0b100000 + 0o30)))(nzTpIcepk0o8('\x30' + chr(11862 - 11751) + '\064', ord("\x08")))
for uF4zwjUGNIxR in (roI3spqORKae(ES5oEprVxulp(b'\xc5\xa7>\xebI\xfbJ\x08\xd6\xa8'), chr(2583 - 2483) + chr(0b1100101) + chr(0b110111 + 0o54) + chr(111) + chr(9015 - 8915) + chr(0b1011100 + 0o11))(chr(0b1110101) + '\x74' + chr(6627 - 6525) + chr(1073 - 1028) + chr(56)), roI3spqORKae(ES5oEprVxulp(b'\xc5\xa7>\xebI\xedP\r'), chr(0b1100100) + chr(7302 - 7201) + chr(3376 - 3277) + '\157' + '\144' + '\x65')('\165' + chr(0b1110100) + '\146' + '\055' + chr(56)), roI3spqORKae(ES5oEprVxulp(b'\xd5\xa32\xfeI\xfbJ\x08\xd6\xa8'), chr(2064 - 1964) + chr(8014 - 7913) + chr(9623 - 9524) + chr(0b1101111) + '\x64' + chr(101))(chr(0b1110101) + chr(0b1110100) + chr(9840 - 9738) + '\055' + chr(0b111000)), roI3spqORKae(ES5oEprVxulp(b'\xd5\xa32\xfeI\xedP\r'), chr(0b100100 + 0o100) + chr(101) + chr(0b1100011) + chr(0b1001111 + 0o40) + chr(6436 - 6336) + chr(8709 - 8608))('\165' + chr(3253 - 3137) + chr(0b1100110) + '\x2d' + chr(0b111000)), roI3spqORKae(ES5oEprVxulp(b"\xd0\xac'\xf3\x10\xfbW\x1a\x84\xaf\xbc\x83k\xb9"), chr(0b1100100) + chr(0b1100101) + chr(99) + '\x6f' + '\x64' + chr(101))('\165' + chr(11343 - 11227) + '\x66' + chr(0b11111 + 0o16) + chr(0b111000)), roI3spqORKae(ES5oEprVxulp(b"\xd0\xac'\xf3\x10\xfbW\x1a\x84\xb9\xa6\x86"), chr(0b101110 + 0o66) + chr(6918 - 6817) + chr(99) + chr(111) + '\x64' + chr(101))(chr(0b111001 + 0o74) + chr(0b1011110 + 0o26) + chr(0b101011 + 0o73) + chr(1695 - 1650) + chr(2297 - 2241))):
PmE5_h409JAA = rC115QJVCRma.eoXknH7XUn7m(nzTpIcepk0o8(chr(0b11000 + 0o30) + '\157' + chr(2127 - 2078) + '\060', 0o10))
try:
BTrUvRmXXDfx = nzTpIcepk0o8(PmE5_h409JAA)
except WbNHlDKpyPtQ:
BTrUvRmXXDfx = nzTpIcepk0o8(chr(779 - 731) + chr(0b110010 + 0o75) + '\x30', 8)
jkp_M8Pp8CIt[uF4zwjUGNIxR] = BTrUvRmXXDfx + spZdwUbWAL_U
for B6UAF1zReOyJ in (roI3spqORKae(ES5oEprVxulp(b'\xc5\xa7>\xebI\xfbJ\x08\xd6\xa8'), chr(0b1100100) + '\145' + chr(99) + chr(9567 - 9456) + chr(0b1100100) + chr(0b1100101))('\165' + chr(8332 - 8216) + '\146' + chr(45) + '\070'), roI3spqORKae(ES5oEprVxulp(b'\xc5\xa7>\xebI\xedP\r'), chr(0b1100100) + chr(0b1010001 + 0o24) + chr(6809 - 6710) + '\x6f' + chr(7645 - 7545) + '\145')('\165' + chr(0b111100 + 0o70) + chr(0b1100110) + '\x2d' + chr(0b111000))):
if jkp_M8Pp8CIt[B6UAF1zReOyJ] == nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(48), 8):
raise WbNHlDKpyPtQ(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\xe5\xaa#\xbf/\xcbmI\xc2\xb5\xa4\x879\xef!\x01\xb6\x16\xdaK\xaeP\xb5\xe0\xc21\x9c\xab$2\xb3\x91\x0b8x\x85\xffr\xa0\x1b\xd4\xb0f\xfc\x08\xe6P\x06\xd0\xfc\xa4\x8dz\xac.\x19\xb4_\xc7H\xa4O\xab\xa1\xd57\x81\xb7q#\xa5\x9b\x1abx\xd9\xc7v\xf2J\xca\xbfd\xbf\x1a\xedY\x04\xc1\xb2\xbc\xcc0'), chr(6253 - 6153) + '\145' + '\x63' + chr(111) + chr(0b1000010 + 0o42) + '\145')(chr(117) + chr(116) + chr(0b1100001 + 0o5) + chr(0b101101) + '\070'), roI3spqORKae(ES5oEprVxulp(b'\xc0\xf1u\xd4.\xbbX\x06\xf5\x83\x8b\xa8'), chr(9963 - 9863) + chr(101) + chr(99) + chr(111) + chr(0b1100100) + chr(0b111100 + 0o51))(chr(0b1110101) + chr(0b1001010 + 0o52) + '\x66' + chr(0b1001 + 0o44) + chr(0b101 + 0o63)))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xee\xb2\x15\xc6\x18\xfaQ\x1a\xea\xbe\xf1\xd7'), chr(9083 - 8983) + chr(0b1100101) + chr(0b1100011) + '\x6f' + chr(100) + chr(101))(chr(5993 - 5876) + '\164' + chr(6981 - 6879) + chr(45) + chr(56))), B6UAF1zReOyJ))
elif jkp_M8Pp8CIt[B6UAF1zReOyJ] > roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xd2\x84\x0f\xe6,\xceg\x07\xea\xef\xb9\xa7'), chr(100) + chr(101) + chr(0b1100011) + '\x6f' + '\144' + chr(3809 - 3708))(chr(117) + '\x74' + chr(102) + chr(611 - 566) + chr(779 - 723))):
raise WbNHlDKpyPtQ(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\xe5\xaa#\xbf/\xcbmI\xc2\xb5\xa4\x879\xef!\x01\xb6\x16\xc0]\xeb^\xa9\xb2\xd3+\x9e\xad4&\xe9\xd4Mm%\x8f\x8f`\xb7\x0f\xdc\xa7(\xebI\xe1MI\xc8\xbd\xba\x85|\xbfz\x08\xfcW\xc7\x0e\xadT\xaa\xa5\x81-\x87\xa34'), '\x64' + chr(1671 - 1570) + '\143' + chr(111) + chr(100) + chr(5661 - 5560))('\165' + chr(13239 - 13123) + '\146' + chr(0b101101) + chr(3082 - 3026)), roI3spqORKae(ES5oEprVxulp(b'\xc0\xf1u\xd4.\xbbX\x06\xf5\x83\x8b\xa8'), '\144' + '\x65' + chr(5570 - 5471) + chr(111) + '\x64' + '\145')(chr(117) + chr(0b1100000 + 0o24) + chr(0b1100110) + chr(45) + '\070'))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xee\xb2\x15\xc6\x18\xfaQ\x1a\xea\xbe\xf1\xd7'), chr(0b10001 + 0o123) + '\145' + chr(99) + chr(4122 - 4011) + '\144' + '\145')('\x75' + chr(0b1101111 + 0o5) + chr(0b1100110) + '\055' + chr(2949 - 2893))), B6UAF1zReOyJ))
else:
pass
hXMPsSrOQzbh.NBczy7brG0Hv = jkp_M8Pp8CIt[roI3spqORKae(ES5oEprVxulp(b'\xd5\xa32\xfeI\xfbJ\x08\xd6\xa8'), chr(4092 - 3992) + chr(0b1000111 + 0o36) + chr(2388 - 2289) + chr(111) + chr(0b111011 + 0o51) + '\145')(chr(6698 - 6581) + '\x74' + '\x66' + '\x2d' + '\070')]
hXMPsSrOQzbh.v77W2xAykMKB = jkp_M8Pp8CIt[roI3spqORKae(ES5oEprVxulp(b'\xd5\xa32\xfeI\xfbJ\x08\xd6\xa8'), chr(100) + chr(0b1111 + 0o126) + chr(0b1100011) + chr(0b1101111) + '\x64' + chr(0b1000110 + 0o37))(chr(0b1100011 + 0o22) + chr(13005 - 12889) + chr(102) + chr(0b11001 + 0o24) + '\070')]
if jkp_M8Pp8CIt[roI3spqORKae(ES5oEprVxulp(b"\xd0\xac'\xf3\x10\xfbW\x1a\x84\xb9\xa6\x86"), '\x64' + '\145' + chr(0b101110 + 0o65) + '\157' + chr(0b1100100) + '\145')(chr(117) + '\164' + chr(0b1000000 + 0o46) + '\055' + chr(216 - 160))] - jkp_M8Pp8CIt[roI3spqORKae(ES5oEprVxulp(b"\xd0\xac'\xf3\x10\xfbW\x1a\x84\xaf\xbc\x83k\xb9"), chr(0b1011011 + 0o11) + chr(0b1100101) + chr(0b1100011) + chr(0b1101111) + '\x64' + '\145')(chr(0b1100011 + 0o22) + chr(9346 - 9230) + chr(0b111111 + 0o47) + '\x2d' + '\x38')] != nzTpIcepk0o8(chr(0b110000) + chr(6238 - 6127) + chr(1686 - 1638), 8):
roI3spqORKae(EyN62Frii5S5, roI3spqORKae(ES5oEprVxulp(b'\xc2\x88\x17\xc96\xc0O:\x9d\xba\xaf\x98'), chr(1344 - 1244) + chr(0b1100101) + chr(0b1100011) + chr(0b1101111) + '\x64' + chr(0b1100101))('\x75' + '\x74' + '\x66' + '\x2d' + chr(56)))(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\xe5\xaa#\xed\x0c\xa8_\x19\xd4\xb9\xa9\x90j\xed.\x13\xb4T\xcc\x0e\xb8R\xab\xa5\x817\x80\xbf>0\xaa\x95\x1b\x7f7\xc3\x8fz\xbcH\xc5\xaa#\xbf(\xc6\x7f%\xfd\x8f\x81\xb19\xbe?\x1b\xf9S\xc7Z\xebR\xa0\xe0\xc77\x82\xbcq9\xf7\x89A6\x10\xc2\xd8v\xa4\r\xc3\xeef\xf6\x1d\xa8S\x00\xc3\xb4\xbc\xc2w\xa2.\\\xf6S\x89\\\xae\\\xa2\xe0\xc21\x9c\xab4!\xb3\x98\x168'), chr(0b1100100) + chr(101) + chr(0b1001110 + 0o25) + chr(8131 - 8020) + chr(100) + chr(5637 - 5536))(chr(0b1110101) + chr(0b1110100) + chr(0b1000010 + 0o44) + chr(45) + chr(2863 - 2807)), roI3spqORKae(ES5oEprVxulp(b'\xc0\xf1u\xd4.\xbbX\x06\xf5\x83\x8b\xa8'), chr(0b1100100) + '\145' + '\x63' + chr(0b1011 + 0o144) + chr(5678 - 5578) + chr(6678 - 6577))('\165' + '\x74' + chr(102) + chr(45) + chr(2886 - 2830)))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xee\xb2\x15\xc6\x18\xfaQ\x1a\xea\xbe\xf1\xd7'), chr(100) + chr(7823 - 7722) + '\x63' + '\x6f' + chr(3128 - 3028) + chr(101))(chr(117) + '\x74' + chr(103 - 1) + '\055' + chr(56)))))
hXMPsSrOQzbh.bKP0IesFF4Pq[roI3spqORKae(ES5oEprVxulp(b'\xee\x9d.\xfa\x08\xec[\x1b\xfb\x83'), '\x64' + chr(0b1100101) + '\x63' + chr(111) + chr(0b1100100) + chr(0b101111 + 0o66))(chr(154 - 37) + chr(0b1110100) + chr(0b1100110) + chr(0b1 + 0o54) + chr(56))] = jkp_M8Pp8CIt |
eyurtsev/fcsparser | fcsparser/api.py | FCSParser._extract_text_dict | def _extract_text_dict(self, raw_text):
"""Parse the TEXT segment of the FCS file into a python dictionary."""
delimiter = raw_text[0]
if raw_text[-1] != delimiter:
raw_text = raw_text.strip()
if raw_text[-1] != delimiter:
msg = (u'The first two characters were:\n {}. The last two characters were: {}\n'
u'Parser expects the same delimiter character in beginning '
u'and end of TEXT segment'.format(raw_text[:2], raw_text[-2:]))
raise ParserFeatureNotImplementedError(msg)
# The delimiter is escaped by being repeated (two consecutive delimiters). This code splits
# on the escaped delimiter first, so there is no need for extra logic to distinguish
# actual delimiters from escaped delimiters.
nested_split_list = [x.split(delimiter) for x in raw_text[1:-1].split(delimiter * 2)]
# 1:-1 above removes the first and last characters which are reserved for the delimiter.
# Flatten the nested list to a list of elements (alternating keys and values)
raw_text_elements = nested_split_list[0]
for partial_element_list in nested_split_list[1:]:
# Rejoin two parts of an element that was split by an escaped delimiter (the end and
# start of two successive sub-lists in nested_split_list)
raw_text_elements[-1] += (delimiter + partial_element_list[0])
raw_text_elements.extend(partial_element_list[1:])
keys, values = raw_text_elements[0::2], raw_text_elements[1::2]
return dict(zip(keys, values)) | python | def _extract_text_dict(self, raw_text):
"""Parse the TEXT segment of the FCS file into a python dictionary."""
delimiter = raw_text[0]
if raw_text[-1] != delimiter:
raw_text = raw_text.strip()
if raw_text[-1] != delimiter:
msg = (u'The first two characters were:\n {}. The last two characters were: {}\n'
u'Parser expects the same delimiter character in beginning '
u'and end of TEXT segment'.format(raw_text[:2], raw_text[-2:]))
raise ParserFeatureNotImplementedError(msg)
# The delimiter is escaped by being repeated (two consecutive delimiters). This code splits
# on the escaped delimiter first, so there is no need for extra logic to distinguish
# actual delimiters from escaped delimiters.
nested_split_list = [x.split(delimiter) for x in raw_text[1:-1].split(delimiter * 2)]
# 1:-1 above removes the first and last characters which are reserved for the delimiter.
# Flatten the nested list to a list of elements (alternating keys and values)
raw_text_elements = nested_split_list[0]
for partial_element_list in nested_split_list[1:]:
# Rejoin two parts of an element that was split by an escaped delimiter (the end and
# start of two successive sub-lists in nested_split_list)
raw_text_elements[-1] += (delimiter + partial_element_list[0])
raw_text_elements.extend(partial_element_list[1:])
keys, values = raw_text_elements[0::2], raw_text_elements[1::2]
return dict(zip(keys, values)) | [
"def",
"_extract_text_dict",
"(",
"self",
",",
"raw_text",
")",
":",
"delimiter",
"=",
"raw_text",
"[",
"0",
"]",
"if",
"raw_text",
"[",
"-",
"1",
"]",
"!=",
"delimiter",
":",
"raw_text",
"=",
"raw_text",
".",
"strip",
"(",
")",
"if",
"raw_text",
"[",
"-",
"1",
"]",
"!=",
"delimiter",
":",
"msg",
"=",
"(",
"u'The first two characters were:\\n {}. The last two characters were: {}\\n'",
"u'Parser expects the same delimiter character in beginning '",
"u'and end of TEXT segment'",
".",
"format",
"(",
"raw_text",
"[",
":",
"2",
"]",
",",
"raw_text",
"[",
"-",
"2",
":",
"]",
")",
")",
"raise",
"ParserFeatureNotImplementedError",
"(",
"msg",
")",
"# The delimiter is escaped by being repeated (two consecutive delimiters). This code splits",
"# on the escaped delimiter first, so there is no need for extra logic to distinguish",
"# actual delimiters from escaped delimiters.",
"nested_split_list",
"=",
"[",
"x",
".",
"split",
"(",
"delimiter",
")",
"for",
"x",
"in",
"raw_text",
"[",
"1",
":",
"-",
"1",
"]",
".",
"split",
"(",
"delimiter",
"*",
"2",
")",
"]",
"# 1:-1 above removes the first and last characters which are reserved for the delimiter.",
"# Flatten the nested list to a list of elements (alternating keys and values)",
"raw_text_elements",
"=",
"nested_split_list",
"[",
"0",
"]",
"for",
"partial_element_list",
"in",
"nested_split_list",
"[",
"1",
":",
"]",
":",
"# Rejoin two parts of an element that was split by an escaped delimiter (the end and",
"# start of two successive sub-lists in nested_split_list)",
"raw_text_elements",
"[",
"-",
"1",
"]",
"+=",
"(",
"delimiter",
"+",
"partial_element_list",
"[",
"0",
"]",
")",
"raw_text_elements",
".",
"extend",
"(",
"partial_element_list",
"[",
"1",
":",
"]",
")",
"keys",
",",
"values",
"=",
"raw_text_elements",
"[",
"0",
":",
":",
"2",
"]",
",",
"raw_text_elements",
"[",
"1",
":",
":",
"2",
"]",
"return",
"dict",
"(",
"zip",
"(",
"keys",
",",
"values",
")",
")"
] | Parse the TEXT segment of the FCS file into a python dictionary. | [
"Parse",
"the",
"TEXT",
"segment",
"of",
"the",
"FCS",
"file",
"into",
"a",
"python",
"dictionary",
"."
] | 710e8e31d4b09ff6e73d47d86770be6ca2f4282c | https://github.com/eyurtsev/fcsparser/blob/710e8e31d4b09ff6e73d47d86770be6ca2f4282c/fcsparser/api.py#L197-L224 | train | Parse the TEXT segment of the FCS file into a python 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,UBv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sP3Nc3n6e0b,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' + '\x31' + chr(2099 - 2049) + '\x36', 0o10), nzTpIcepk0o8('\x30' + chr(0b1001011 + 0o44) + chr(1281 - 1230) + chr(513 - 459) + '\x36', ord("\x08")), nzTpIcepk0o8(chr(0b100100 + 0o14) + '\157' + '\x33' + '\062' + '\x35', 28754 - 28746), nzTpIcepk0o8(chr(2136 - 2088) + '\x6f' + '\063' + chr(616 - 564) + chr(0b101111 + 0o2), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b111001 + 0o66) + chr(50) + '\060' + chr(912 - 858), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + '\x31' + '\062' + chr(0b101011 + 0o7), 0b1000), nzTpIcepk0o8('\060' + '\157' + chr(0b11101 + 0o26) + chr(0b110001) + chr(1982 - 1931), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b1010 + 0o50) + '\067' + chr(2499 - 2449), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(1832 - 1782) + '\061' + '\x35', 50753 - 50745), nzTpIcepk0o8(chr(569 - 521) + '\157' + chr(51) + '\x30' + chr(0b10100 + 0o34), 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(0b110010) + chr(54), 66 - 58), nzTpIcepk0o8(chr(0b100111 + 0o11) + chr(0b1101111) + chr(0b0 + 0o63) + '\063', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + '\061' + chr(0b110011) + chr(53), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + '\x32' + chr(0b100 + 0o55) + chr(54), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110001) + '\x37', 0b1000), nzTpIcepk0o8(chr(1196 - 1148) + chr(2796 - 2685) + chr(145 - 90), 0b1000), nzTpIcepk0o8(chr(416 - 368) + chr(780 - 669) + '\065' + '\066', 0b1000), nzTpIcepk0o8('\060' + '\157' + chr(0b101000 + 0o13) + '\x37' + chr(0b110111), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(49) + chr(0b100 + 0o57) + chr(2134 - 2086), 0o10), nzTpIcepk0o8(chr(48) + chr(0b111011 + 0o64) + chr(0b110010 + 0o1) + chr(0b11001 + 0o31) + chr(0b110111), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + '\x32' + chr(0b10011 + 0o35) + chr(0b110111), ord("\x08")), nzTpIcepk0o8('\x30' + chr(2413 - 2302) + '\x33' + chr(0b0 + 0o61), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(51), 25991 - 25983), nzTpIcepk0o8(chr(48) + chr(111) + '\x31' + chr(0b110101) + '\x34', 0b1000), nzTpIcepk0o8(chr(0b101 + 0o53) + chr(111) + '\063' + chr(0b10010 + 0o41) + chr(0b110111), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b110110 + 0o71) + chr(55) + chr(1313 - 1264), 15436 - 15428), nzTpIcepk0o8('\060' + chr(0b1011110 + 0o21) + '\063' + chr(255 - 203) + chr(0b1111 + 0o41), ord("\x08")), nzTpIcepk0o8(chr(0b100001 + 0o17) + chr(5320 - 5209) + chr(0b110010) + chr(0b1001 + 0o47) + chr(1939 - 1885), 8), nzTpIcepk0o8('\060' + chr(111) + chr(51 - 1) + '\062' + '\x36', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(51) + '\063' + chr(1566 - 1516), 0o10), nzTpIcepk0o8(chr(0b1011 + 0o45) + chr(111) + chr(83 - 32) + chr(0b10101 + 0o35) + '\062', 48155 - 48147), nzTpIcepk0o8(chr(48) + '\x6f' + chr(324 - 275) + '\064' + chr(53), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1010111 + 0o30) + chr(1784 - 1733) + chr(0b110011) + '\064', 52723 - 52715), nzTpIcepk0o8(chr(0b110000) + chr(11943 - 11832) + '\x31' + '\x35' + chr(1964 - 1909), 59587 - 59579), nzTpIcepk0o8('\x30' + '\x6f' + chr(2392 - 2342) + chr(0b100000 + 0o20) + chr(0b100110 + 0o14), 0b1000), nzTpIcepk0o8(chr(0b11000 + 0o30) + chr(0b1101111) + '\066' + '\x35', 0b1000), nzTpIcepk0o8('\x30' + '\157' + '\x32' + chr(52) + '\066', 13073 - 13065), nzTpIcepk0o8(chr(309 - 261) + chr(288 - 177) + chr(1006 - 956) + chr(0b10000 + 0o41) + chr(0b110000), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\063' + '\x30' + chr(0b110010), 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(51) + '\065' + chr(0b110100), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + chr(111) + chr(0b101 + 0o60) + chr(48), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'x'), chr(0b1100100) + chr(223 - 122) + chr(99) + chr(111) + chr(0b1100100) + chr(0b10110 + 0o117))('\165' + chr(0b101000 + 0o114) + chr(102) + chr(0b101101) + chr(0b100001 + 0o27)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def wIXaVjsUVsvk(hXMPsSrOQzbh, sEVI87Po8enD):
XRjEqJP7iUTk = sEVI87Po8enD[nzTpIcepk0o8('\x30' + chr(111) + '\060', 29417 - 29409)]
if sEVI87Po8enD[-nzTpIcepk0o8(chr(0b11101 + 0o23) + '\x6f' + chr(0b110001), ord("\x08"))] != XRjEqJP7iUTk:
sEVI87Po8enD = sEVI87Po8enD.kdIDrcwZTCs5()
if sEVI87Po8enD[-nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110001), 8)] != XRjEqJP7iUTk:
sldzbHve8G1S = roI3spqORKae(ES5oEprVxulp(b'\x02\x9e\xb0\xc1\xe0;\xb9\xc9\xf9\xe0bl2\xaeloO\x8d9\xb4\xf3|q\x1f\xffN\x85\xf4\xf3\xe0\xd8E\xa7\x12\xac\x15\xf2\xe0\xa7\xcc:\x97\xa6\x95\xa6&\xbc\xd5\xad\xa3~z/\xeflsK\x8d+\xf7\xf0|q\t\xe5\x19\x9b\xfb\x9c\x8a\xb3\x17\xaf\n\xf0\x15\xc3\xf0\xb2\x895\x82\xa6\xc1\xf2:\xae\x9a\xfe\xa1{~}\xeajkG\x921\xa3\xe2k#\x0f\xb7X\x92\xe7\xf5\xae\xb7\x17\xfc\x06\xec\x15\xc4\xed\xa5\x858\x98\xbc\x8f\xe1r\xaa\xd4\xe9\xe0su9\xae`a\x0e\xab\x1d\x8f\xd39p\t\xb8T\x85\xe8\xe2'), chr(2208 - 2108) + chr(0b1100101 + 0o0) + chr(7550 - 7451) + chr(6149 - 6038) + '\144' + chr(0b1001000 + 0o35))(chr(2049 - 1932) + chr(116) + chr(1902 - 1800) + chr(1408 - 1363) + chr(0b101011 + 0o15)).q33KG3foQ_CJ(sEVI87Po8enD[:nzTpIcepk0o8('\060' + '\x6f' + '\x32', ord("\x08"))], sEVI87Po8enD[-nzTpIcepk0o8('\x30' + '\x6f' + chr(74 - 24), 8):])
raise zgtq_9BoLE3Q(sldzbHve8G1S)
Z23B6eugnsDv = [bI5jsQ9OkQtj.LfRrQOxuDvnC(XRjEqJP7iUTk) for bI5jsQ9OkQtj in sEVI87Po8enD[nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110001), 8):-nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110001), 8)].LfRrQOxuDvnC(XRjEqJP7iUTk * nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(50), 8))]
qj9RcnrUR5WT = Z23B6eugnsDv[nzTpIcepk0o8('\060' + chr(819 - 708) + chr(589 - 541), 8)]
for yTczyxPNVJKN in Z23B6eugnsDv[nzTpIcepk0o8('\060' + '\157' + chr(0b10 + 0o57), 8):]:
qj9RcnrUR5WT[-nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\061', 8)] += XRjEqJP7iUTk + yTczyxPNVJKN[nzTpIcepk0o8(chr(0b110000) + chr(5074 - 4963) + chr(0b110000), 8)]
roI3spqORKae(qj9RcnrUR5WT, roI3spqORKae(ES5oEprVxulp(b'\x02\xa9\xe6\xac\xe96\x87\xed\xd2\x82tj'), chr(100) + chr(1925 - 1824) + '\143' + chr(111) + chr(0b111 + 0o135) + chr(101))(chr(5818 - 5701) + '\x74' + chr(102) + '\x2d' + chr(0b111000)))(yTczyxPNVJKN[nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110001), 8):])
(HOp0ZjSPeQln, CsodZJH6x9Tx) = (qj9RcnrUR5WT[nzTpIcepk0o8(chr(48) + '\x6f' + chr(48), 8)::nzTpIcepk0o8(chr(48) + '\157' + '\062', 8)], qj9RcnrUR5WT[nzTpIcepk0o8(chr(0b11001 + 0o27) + chr(0b11000 + 0o127) + '\061', 8)::nzTpIcepk0o8(chr(545 - 497) + chr(0b1101111) + chr(50), 8)])
return znjnJWK64FDT(TxMFWa_Xzviv(HOp0ZjSPeQln, CsodZJH6x9Tx)) |
eyurtsev/fcsparser | fcsparser/api.py | FCSParser.read_text | def read_text(self, file_handle):
"""Parse the TEXT segment of the FCS file.
The TEXT segment contains meta data associated with the FCS file.
Converting all meta keywords to lower case.
"""
header = self.annotation['__header__'] # For convenience
#####
# Read in the TEXT segment of the FCS file
# There are some differences in how the
file_handle.seek(header['text start'], 0)
raw_text = file_handle.read(header['text end'] - header['text start'] + 1)
try:
raw_text = raw_text.decode(self._encoding)
except UnicodeDecodeError as e:
# Catching the exception and logging it in this way kills the traceback, but
# we can worry about this later.
logger.warning(u'Encountered an illegal utf-8 byte in the header.\n Illegal utf-8 '
u'characters will be ignored.\n{}'.format(e))
raw_text = raw_text.decode(self._encoding, errors='ignore')
text = self._extract_text_dict(raw_text)
##
# Extract channel names and convert some of the channel properties
# and other fields into numeric data types (from string)
# Note: do not use regular expressions for manipulations here.
# Regular expressions are too heavy in terms of computation time.
pars = int(text['$PAR'])
if '$P0B' in text.keys(): # Checking whether channel number count starts from 0 or from 1
self.channel_numbers = range(0, pars) # Channel number count starts from 0
else:
self.channel_numbers = range(1, pars + 1) # Channel numbers start from 1
# Extract parameter names
try:
names_n = tuple([text['$P{0}N'.format(i)] for i in self.channel_numbers])
except KeyError:
names_n = []
try:
names_s = tuple([text['$P{0}S'.format(i)] for i in self.channel_numbers])
except KeyError:
names_s = []
self.channel_names_s = names_s
self.channel_names_n = names_n
# Convert some of the fields into integer values
keys_encoding_bits = ['$P{0}B'.format(i) for i in self.channel_numbers]
add_keys_to_convert_to_int = ['$NEXTDATA', '$PAR', '$TOT']
keys_to_convert_to_int = keys_encoding_bits + add_keys_to_convert_to_int
for key in keys_to_convert_to_int:
value = text[key]
text[key] = int(value)
self.annotation.update(text)
# Update data start segments if needed
if self._data_start == 0:
self._data_start = int(text['$BEGINDATA'])
if self._data_end == 0:
self._data_end = int(text['$ENDDATA']) | python | def read_text(self, file_handle):
"""Parse the TEXT segment of the FCS file.
The TEXT segment contains meta data associated with the FCS file.
Converting all meta keywords to lower case.
"""
header = self.annotation['__header__'] # For convenience
#####
# Read in the TEXT segment of the FCS file
# There are some differences in how the
file_handle.seek(header['text start'], 0)
raw_text = file_handle.read(header['text end'] - header['text start'] + 1)
try:
raw_text = raw_text.decode(self._encoding)
except UnicodeDecodeError as e:
# Catching the exception and logging it in this way kills the traceback, but
# we can worry about this later.
logger.warning(u'Encountered an illegal utf-8 byte in the header.\n Illegal utf-8 '
u'characters will be ignored.\n{}'.format(e))
raw_text = raw_text.decode(self._encoding, errors='ignore')
text = self._extract_text_dict(raw_text)
##
# Extract channel names and convert some of the channel properties
# and other fields into numeric data types (from string)
# Note: do not use regular expressions for manipulations here.
# Regular expressions are too heavy in terms of computation time.
pars = int(text['$PAR'])
if '$P0B' in text.keys(): # Checking whether channel number count starts from 0 or from 1
self.channel_numbers = range(0, pars) # Channel number count starts from 0
else:
self.channel_numbers = range(1, pars + 1) # Channel numbers start from 1
# Extract parameter names
try:
names_n = tuple([text['$P{0}N'.format(i)] for i in self.channel_numbers])
except KeyError:
names_n = []
try:
names_s = tuple([text['$P{0}S'.format(i)] for i in self.channel_numbers])
except KeyError:
names_s = []
self.channel_names_s = names_s
self.channel_names_n = names_n
# Convert some of the fields into integer values
keys_encoding_bits = ['$P{0}B'.format(i) for i in self.channel_numbers]
add_keys_to_convert_to_int = ['$NEXTDATA', '$PAR', '$TOT']
keys_to_convert_to_int = keys_encoding_bits + add_keys_to_convert_to_int
for key in keys_to_convert_to_int:
value = text[key]
text[key] = int(value)
self.annotation.update(text)
# Update data start segments if needed
if self._data_start == 0:
self._data_start = int(text['$BEGINDATA'])
if self._data_end == 0:
self._data_end = int(text['$ENDDATA']) | [
"def",
"read_text",
"(",
"self",
",",
"file_handle",
")",
":",
"header",
"=",
"self",
".",
"annotation",
"[",
"'__header__'",
"]",
"# For convenience",
"#####",
"# Read in the TEXT segment of the FCS file",
"# There are some differences in how the",
"file_handle",
".",
"seek",
"(",
"header",
"[",
"'text start'",
"]",
",",
"0",
")",
"raw_text",
"=",
"file_handle",
".",
"read",
"(",
"header",
"[",
"'text end'",
"]",
"-",
"header",
"[",
"'text start'",
"]",
"+",
"1",
")",
"try",
":",
"raw_text",
"=",
"raw_text",
".",
"decode",
"(",
"self",
".",
"_encoding",
")",
"except",
"UnicodeDecodeError",
"as",
"e",
":",
"# Catching the exception and logging it in this way kills the traceback, but",
"# we can worry about this later.",
"logger",
".",
"warning",
"(",
"u'Encountered an illegal utf-8 byte in the header.\\n Illegal utf-8 '",
"u'characters will be ignored.\\n{}'",
".",
"format",
"(",
"e",
")",
")",
"raw_text",
"=",
"raw_text",
".",
"decode",
"(",
"self",
".",
"_encoding",
",",
"errors",
"=",
"'ignore'",
")",
"text",
"=",
"self",
".",
"_extract_text_dict",
"(",
"raw_text",
")",
"##",
"# Extract channel names and convert some of the channel properties",
"# and other fields into numeric data types (from string)",
"# Note: do not use regular expressions for manipulations here.",
"# Regular expressions are too heavy in terms of computation time.",
"pars",
"=",
"int",
"(",
"text",
"[",
"'$PAR'",
"]",
")",
"if",
"'$P0B'",
"in",
"text",
".",
"keys",
"(",
")",
":",
"# Checking whether channel number count starts from 0 or from 1",
"self",
".",
"channel_numbers",
"=",
"range",
"(",
"0",
",",
"pars",
")",
"# Channel number count starts from 0",
"else",
":",
"self",
".",
"channel_numbers",
"=",
"range",
"(",
"1",
",",
"pars",
"+",
"1",
")",
"# Channel numbers start from 1",
"# Extract parameter names",
"try",
":",
"names_n",
"=",
"tuple",
"(",
"[",
"text",
"[",
"'$P{0}N'",
".",
"format",
"(",
"i",
")",
"]",
"for",
"i",
"in",
"self",
".",
"channel_numbers",
"]",
")",
"except",
"KeyError",
":",
"names_n",
"=",
"[",
"]",
"try",
":",
"names_s",
"=",
"tuple",
"(",
"[",
"text",
"[",
"'$P{0}S'",
".",
"format",
"(",
"i",
")",
"]",
"for",
"i",
"in",
"self",
".",
"channel_numbers",
"]",
")",
"except",
"KeyError",
":",
"names_s",
"=",
"[",
"]",
"self",
".",
"channel_names_s",
"=",
"names_s",
"self",
".",
"channel_names_n",
"=",
"names_n",
"# Convert some of the fields into integer values",
"keys_encoding_bits",
"=",
"[",
"'$P{0}B'",
".",
"format",
"(",
"i",
")",
"for",
"i",
"in",
"self",
".",
"channel_numbers",
"]",
"add_keys_to_convert_to_int",
"=",
"[",
"'$NEXTDATA'",
",",
"'$PAR'",
",",
"'$TOT'",
"]",
"keys_to_convert_to_int",
"=",
"keys_encoding_bits",
"+",
"add_keys_to_convert_to_int",
"for",
"key",
"in",
"keys_to_convert_to_int",
":",
"value",
"=",
"text",
"[",
"key",
"]",
"text",
"[",
"key",
"]",
"=",
"int",
"(",
"value",
")",
"self",
".",
"annotation",
".",
"update",
"(",
"text",
")",
"# Update data start segments if needed",
"if",
"self",
".",
"_data_start",
"==",
"0",
":",
"self",
".",
"_data_start",
"=",
"int",
"(",
"text",
"[",
"'$BEGINDATA'",
"]",
")",
"if",
"self",
".",
"_data_end",
"==",
"0",
":",
"self",
".",
"_data_end",
"=",
"int",
"(",
"text",
"[",
"'$ENDDATA'",
"]",
")"
] | Parse the TEXT segment of the FCS file.
The TEXT segment contains meta data associated with the FCS file.
Converting all meta keywords to lower case. | [
"Parse",
"the",
"TEXT",
"segment",
"of",
"the",
"FCS",
"file",
"."
] | 710e8e31d4b09ff6e73d47d86770be6ca2f4282c | https://github.com/eyurtsev/fcsparser/blob/710e8e31d4b09ff6e73d47d86770be6ca2f4282c/fcsparser/api.py#L226-L293 | train | Reads the TEXT segment of the FCS file and returns the entry in the 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,_1qU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Ab3Xup,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(258 - 210) + '\157' + '\x32' + chr(216 - 164) + chr(0b110111), 435 - 427), nzTpIcepk0o8(chr(0b1110 + 0o42) + chr(5306 - 5195) + chr(0b1000 + 0o57) + '\x33', 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(0b101 + 0o62) + chr(0b110000), 64051 - 64043), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(55) + chr(0b110101), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b101101 + 0o12) + chr(0b110010 + 0o0), 0o10), nzTpIcepk0o8('\x30' + chr(111) + '\x31' + chr(0b11011 + 0o30) + chr(53), 0o10), nzTpIcepk0o8(chr(48) + chr(2529 - 2418) + chr(51) + chr(0b110001) + chr(0b11001 + 0o32), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b11011 + 0o27) + chr(0b110101) + chr(1558 - 1510), 0o10), nzTpIcepk0o8(chr(0b101010 + 0o6) + chr(2229 - 2118) + chr(0b1100 + 0o45) + chr(0b110001) + chr(1150 - 1098), 0o10), nzTpIcepk0o8(chr(1595 - 1547) + chr(11911 - 11800) + chr(0b110010) + '\x36' + '\062', 26202 - 26194), nzTpIcepk0o8(chr(0b1111 + 0o41) + '\x6f' + chr(51) + chr(0b110100) + chr(0b110111), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110011) + chr(2547 - 2492), 5287 - 5279), nzTpIcepk0o8('\x30' + chr(111) + chr(51) + chr(50) + chr(50), 5551 - 5543), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x32' + '\066' + '\x30', 33037 - 33029), nzTpIcepk0o8(chr(48) + chr(111) + chr(55) + '\x36', 20775 - 20767), nzTpIcepk0o8(chr(0b110000) + chr(0b1001011 + 0o44) + chr(51) + chr(0b110111) + chr(54), 0o10), nzTpIcepk0o8(chr(193 - 145) + '\x6f' + '\x31' + chr(49) + '\061', 62033 - 62025), nzTpIcepk0o8(chr(0b101011 + 0o5) + chr(0b1101111) + chr(0b110010) + chr(0b101000 + 0o13) + chr(0b0 + 0o60), 7430 - 7422), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\062' + chr(55) + chr(52), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(50) + chr(53) + chr(2692 - 2638), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(50) + '\x33', 0o10), nzTpIcepk0o8(chr(1562 - 1514) + '\x6f' + chr(0b110000), 62609 - 62601), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110010 + 0o1) + chr(53), 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + '\062' + chr(1050 - 995) + chr(0b100111 + 0o12), 55204 - 55196), nzTpIcepk0o8('\x30' + '\157' + '\061' + '\066' + chr(288 - 237), 9040 - 9032), nzTpIcepk0o8(chr(843 - 795) + chr(111) + chr(1249 - 1198) + chr(50) + '\064', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\062' + chr(2416 - 2365), 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110001) + '\060' + '\061', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b11 + 0o60) + chr(0b110011) + '\061', 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110010) + chr(2685 - 2630) + chr(48), 61488 - 61480), nzTpIcepk0o8('\060' + chr(0b1011001 + 0o26) + chr(51) + chr(142 - 89) + '\064', 0o10), nzTpIcepk0o8(chr(1705 - 1657) + chr(111) + chr(1475 - 1426) + chr(0b10001 + 0o43) + '\x31', ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + '\062' + chr(0b110010) + chr(48), 0b1000), nzTpIcepk0o8(chr(1793 - 1745) + chr(111) + chr(50) + chr(0b110110) + '\x30', 8), nzTpIcepk0o8('\x30' + chr(8314 - 8203) + chr(0b110001) + '\067' + chr(1165 - 1113), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(50) + '\066' + chr(0b1100 + 0o52), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b101110 + 0o101) + chr(53), 0b1000), nzTpIcepk0o8(chr(0b0 + 0o60) + chr(0b1101111) + chr(50) + chr(0b1111 + 0o47) + chr(744 - 693), ord("\x08")), nzTpIcepk0o8('\x30' + chr(5154 - 5043) + chr(0b101011 + 0o6) + chr(0b10111 + 0o40), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(0b101111 + 0o4) + '\062' + chr(0b110010), 8)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x35' + chr(1765 - 1717), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x89'), '\144' + chr(0b100000 + 0o105) + chr(0b1100011) + '\x6f' + chr(0b1011100 + 0o10) + chr(101))('\x75' + chr(116) + '\x66' + chr(634 - 589) + chr(1765 - 1709)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def Oh_9HOdo0VQ4(hXMPsSrOQzbh, rC115QJVCRma):
jkp_M8Pp8CIt = hXMPsSrOQzbh.bKP0IesFF4Pq[roI3spqORKae(ES5oEprVxulp(b'\xf8dPX[9\xae\xda\x13\xed'), '\144' + '\x65' + chr(7634 - 7535) + '\157' + chr(100) + chr(101))(chr(2558 - 2441) + '\x74' + '\x66' + chr(659 - 614) + chr(0b111000))]
roI3spqORKae(rC115QJVCRma, roI3spqORKae(ES5oEprVxulp(b'\xd4^]V'), '\x64' + chr(101) + chr(0b100100 + 0o77) + chr(10720 - 10609) + chr(100) + chr(8976 - 8875))(chr(117) + chr(116) + chr(102) + chr(0b1010 + 0o43) + chr(0b111000)))(jkp_M8Pp8CIt[roI3spqORKae(ES5oEprVxulp(b'\xd3^@I\x1a.\xbf\xc9>\xc6'), chr(100) + chr(101) + chr(99) + '\157' + '\x64' + chr(0b100010 + 0o103))(chr(117) + chr(116) + chr(102) + chr(0b11010 + 0o23) + chr(833 - 777))], nzTpIcepk0o8(chr(1083 - 1035) + chr(10466 - 10355) + chr(390 - 342), 8))
sEVI87Po8enD = rC115QJVCRma.eoXknH7XUn7m(jkp_M8Pp8CIt[roI3spqORKae(ES5oEprVxulp(b'\xd3^@I\x1a8\xa5\xcc'), chr(100) + chr(0b1100101) + chr(0b1100011) + chr(111) + chr(100) + chr(0b1100101))('\165' + chr(0b110110 + 0o76) + chr(0b1001101 + 0o31) + '\x2d' + '\x38')] - jkp_M8Pp8CIt[roI3spqORKae(ES5oEprVxulp(b'\xd3^@I\x1a.\xbf\xc9>\xc6'), chr(782 - 682) + '\145' + chr(0b1100011) + '\x6f' + '\144' + chr(905 - 804))(chr(3056 - 2939) + '\x74' + '\x66' + chr(581 - 536) + chr(56))] + nzTpIcepk0o8('\x30' + chr(111) + '\x31', 0b1000))
try:
sEVI87Po8enD = sEVI87Po8enD.lfbFsdWlT3MB(hXMPsSrOQzbh._encoding)
except pZy5DBJ8WJod as wgf0sgcu_xPL:
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'\xd0ZJSS3\xac'), '\x64' + chr(1597 - 1496) + chr(0b1010101 + 0o16) + chr(0b1100110 + 0o11) + chr(0b1100100) + '\x65')('\165' + chr(0b1110100) + chr(0b1100110) + chr(45) + '\070'))(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\xe2U[RO3\xbf\xcd>\xd7\x83?\xb3\xde\x1e\x97%\xf4\xd9\xc9rl=\xcc\x07\xb2>y\xf9\xda\x95\x15\xf5\x90\x15\xd8%\xc7g\xb7\x87S]\\^8\xb9\x86F\x92\xaes\xbe\xd5Y\x9f%\xb8\xc9\xdau-%\x99\x10\xbcr3\xb8\xdb\x98\x04\xe2\xc3\\\xc1l\xdfc\xf2\xc5^\x18T]3\xa4\xda)\xd6\xc9\x15\xa9\xcd'), chr(5159 - 5059) + chr(3936 - 3835) + chr(0b1011 + 0o130) + chr(0b1101111) + chr(460 - 360) + '\145')('\x75' + chr(116) + chr(0b1100110) + chr(45) + chr(0b101000 + 0o20)), roI3spqORKae(ES5oEprVxulp(b'\xd6\x08\x0bv}n\xad\xc7\x1d\xed\xa4U'), '\144' + chr(1283 - 1182) + '\143' + '\157' + chr(100) + chr(7589 - 7488))('\x75' + chr(116) + chr(9299 - 9197) + chr(0b101101) + '\x38'))(wgf0sgcu_xPL))
sEVI87Po8enD = sEVI87Po8enD.lfbFsdWlT3MB(hXMPsSrOQzbh._encoding, errors=roI3spqORKae(ES5oEprVxulp(b'\xce\\VRH8'), chr(9326 - 9226) + chr(0b1100101) + chr(99) + chr(4775 - 4664) + chr(100) + chr(101))(chr(117) + chr(116) + chr(0b1011 + 0o133) + '\x2d' + chr(731 - 675)))
cpStk7cY1TJd = hXMPsSrOQzbh._extract_text_dict(sEVI87Po8enD)
fem5xMtGDpRf = nzTpIcepk0o8(cpStk7cY1TJd[roI3spqORKae(ES5oEprVxulp(b'\x83kyo'), chr(3117 - 3017) + '\x65' + '\x63' + '\157' + chr(9592 - 9492) + '\145')(chr(0b1110101) + chr(0b1110100 + 0o0) + chr(102) + '\x2d' + '\x38')])
if roI3spqORKae(ES5oEprVxulp(b'\x83k\x08\x7f'), chr(9590 - 9490) + chr(0b1100101) + chr(1974 - 1875) + chr(5470 - 5359) + '\144' + chr(0b1010 + 0o133))(chr(117) + chr(9531 - 9415) + chr(0b1011 + 0o133) + chr(0b10011 + 0o32) + chr(0b110001 + 0o7)) in roI3spqORKae(cpStk7cY1TJd, roI3spqORKae(ES5oEprVxulp(b'\xcc^AN'), chr(0b1100100) + chr(101) + chr(0b110000 + 0o63) + chr(0b100001 + 0o116) + chr(100) + '\145')('\x75' + '\164' + chr(0b1010 + 0o134) + '\055' + '\070'))():
hXMPsSrOQzbh.UxQEIKjwEDpI = bbT2xIe5pzk7(nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110000), 8), fem5xMtGDpRf)
else:
hXMPsSrOQzbh.UxQEIKjwEDpI = bbT2xIe5pzk7(nzTpIcepk0o8(chr(48) + '\x6f' + chr(1109 - 1060), 8), fem5xMtGDpRf + nzTpIcepk0o8('\060' + chr(111) + '\061', 8))
try:
eiKx_n9yV5uY = nfNqtJL5aRaY([cpStk7cY1TJd[roI3spqORKae(ES5oEprVxulp(b'\x83kC\rG\x13'), '\x64' + chr(101) + chr(99) + '\157' + '\x64' + chr(0b1100101))(chr(0b1110101) + chr(116) + chr(0b1100110) + chr(45) + chr(585 - 529)).q33KG3foQ_CJ(ZlbFMSG8gCoF)] for ZlbFMSG8gCoF in hXMPsSrOQzbh.UxQEIKjwEDpI])
except knUxyjfq07F9:
eiKx_n9yV5uY = []
try:
rjPdfJoNugnA = nfNqtJL5aRaY([cpStk7cY1TJd[roI3spqORKae(ES5oEprVxulp(b'\x83kC\rG\x0e'), '\144' + chr(0b101111 + 0o66) + chr(99) + chr(0b100101 + 0o112) + '\x64' + '\145')('\x75' + chr(116) + '\x66' + chr(45) + chr(0b11101 + 0o33)).q33KG3foQ_CJ(ZlbFMSG8gCoF)] for ZlbFMSG8gCoF in hXMPsSrOQzbh.UxQEIKjwEDpI])
except knUxyjfq07F9:
rjPdfJoNugnA = []
hXMPsSrOQzbh.SUVhFftYEIYI = rjPdfJoNugnA
hXMPsSrOQzbh.ir82mSA6IXya = eiKx_n9yV5uY
ViDg_je9v7mu = [roI3spqORKae(ES5oEprVxulp(b'\x83kC\rG\x1f'), '\x64' + chr(0b101100 + 0o71) + '\x63' + chr(3452 - 3341) + chr(100) + chr(0b101110 + 0o67))(chr(0b1 + 0o164) + chr(9424 - 9308) + '\x66' + chr(0b101101) + chr(730 - 674)).q33KG3foQ_CJ(ZlbFMSG8gCoF) for ZlbFMSG8gCoF in hXMPsSrOQzbh.UxQEIKjwEDpI]
tRx2Tq4VmCmb = [roI3spqORKae(ES5oEprVxulp(b'\x83u}en\x19\x8a\xfc\r'), '\x64' + chr(101) + chr(4301 - 4202) + chr(111) + chr(8746 - 8646) + chr(0b1000000 + 0o45))(chr(0b1110101) + chr(116) + chr(0b1111 + 0o127) + '\x2d' + '\x38'), roI3spqORKae(ES5oEprVxulp(b'\x83kyo'), chr(0b100000 + 0o104) + chr(0b1100101) + chr(99) + '\157' + chr(0b1100100) + chr(101))(chr(0b1110101) + chr(0b11101 + 0o127) + chr(0b1100010 + 0o4) + chr(1538 - 1493) + chr(56)), roI3spqORKae(ES5oEprVxulp(b'\x83owi'), '\x64' + '\145' + '\143' + '\x6f' + chr(100) + chr(0b1100101))(chr(0b1110101) + chr(0b1110100) + '\x66' + '\x2d' + chr(0b1100 + 0o54))]
L3DksZYXPxUe = ViDg_je9v7mu + tRx2Tq4VmCmb
for QYodcsDtoGq7 in L3DksZYXPxUe:
uV9iBiw0y_Mp = cpStk7cY1TJd[QYodcsDtoGq7]
cpStk7cY1TJd[QYodcsDtoGq7] = nzTpIcepk0o8(uV9iBiw0y_Mp)
roI3spqORKae(hXMPsSrOQzbh.annotation, roI3spqORKae(ES5oEprVxulp(b'\xeddS\x0fs\x04\x89\x99/\xd7\x96q'), chr(0b1100100) + chr(6849 - 6748) + '\143' + chr(0b1100000 + 0o17) + '\x64' + '\x65')(chr(0b1110101) + chr(0b1101 + 0o147) + '\146' + chr(816 - 771) + chr(0b111000)))(cpStk7cY1TJd)
if roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xe9y[GCj\xa9\xda\x0b\x82\xafi'), chr(100) + chr(101) + '\143' + chr(0b0 + 0o157) + chr(0b1110 + 0o126) + chr(3763 - 3662))(chr(0b1110101) + '\164' + chr(0b10100 + 0o122) + chr(0b1110 + 0o37) + '\x38')) == nzTpIcepk0o8(chr(1908 - 1860) + chr(111) + chr(503 - 455), 8):
hXMPsSrOQzbh.NBczy7brG0Hv = nzTpIcepk0o8(cpStk7cY1TJd[roI3spqORKae(ES5oEprVxulp(b'\x83y}zs\x13\x8f\xe9\x18\xf3'), chr(0b111110 + 0o46) + '\x65' + '\143' + chr(4694 - 4583) + chr(100) + chr(0b1100101))('\165' + chr(9937 - 9821) + chr(0b1100110) + chr(0b10100 + 0o31) + chr(734 - 678))])
if roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b"\xd1\x0c\x0fj\x08%\x8a\xd1'\xff\xac]"), '\x64' + '\x65' + '\143' + '\157' + chr(0b1100100) + chr(0b1100101))(chr(0b11011 + 0o132) + chr(116) + '\146' + chr(0b10011 + 0o32) + chr(0b110001 + 0o7))) == nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(48), 8):
hXMPsSrOQzbh.v77W2xAykMKB = nzTpIcepk0o8(cpStk7cY1TJd[roI3spqORKae(ES5oEprVxulp(b'\x83~vy~\x1c\x9f\xe9'), chr(100) + chr(101) + chr(0b10111 + 0o114) + chr(0b111100 + 0o63) + '\x64' + chr(0b101010 + 0o73))(chr(0b11000 + 0o135) + chr(0b1110100) + '\x66' + chr(1790 - 1745) + chr(0b11100 + 0o34))]) |
eyurtsev/fcsparser | fcsparser/api.py | FCSParser.read_analysis | def read_analysis(self, file_handle):
"""Read the ANALYSIS segment of the FCS file and store it in self.analysis.
Warning: This has never been tested with an actual fcs file that contains an
analysis segment.
Args:
file_handle: buffer containing FCS data
"""
start = self.annotation['__header__']['analysis start']
end = self.annotation['__header__']['analysis end']
if start != 0 and end != 0:
file_handle.seek(start, 0)
self._analysis = file_handle.read(end - start)
else:
self._analysis = None | python | def read_analysis(self, file_handle):
"""Read the ANALYSIS segment of the FCS file and store it in self.analysis.
Warning: This has never been tested with an actual fcs file that contains an
analysis segment.
Args:
file_handle: buffer containing FCS data
"""
start = self.annotation['__header__']['analysis start']
end = self.annotation['__header__']['analysis end']
if start != 0 and end != 0:
file_handle.seek(start, 0)
self._analysis = file_handle.read(end - start)
else:
self._analysis = None | [
"def",
"read_analysis",
"(",
"self",
",",
"file_handle",
")",
":",
"start",
"=",
"self",
".",
"annotation",
"[",
"'__header__'",
"]",
"[",
"'analysis start'",
"]",
"end",
"=",
"self",
".",
"annotation",
"[",
"'__header__'",
"]",
"[",
"'analysis end'",
"]",
"if",
"start",
"!=",
"0",
"and",
"end",
"!=",
"0",
":",
"file_handle",
".",
"seek",
"(",
"start",
",",
"0",
")",
"self",
".",
"_analysis",
"=",
"file_handle",
".",
"read",
"(",
"end",
"-",
"start",
")",
"else",
":",
"self",
".",
"_analysis",
"=",
"None"
] | Read the ANALYSIS segment of the FCS file and store it in self.analysis.
Warning: This has never been tested with an actual fcs file that contains an
analysis segment.
Args:
file_handle: buffer containing FCS data | [
"Read",
"the",
"ANALYSIS",
"segment",
"of",
"the",
"FCS",
"file",
"and",
"store",
"it",
"in",
"self",
".",
"analysis",
"."
] | 710e8e31d4b09ff6e73d47d86770be6ca2f4282c | https://github.com/eyurtsev/fcsparser/blob/710e8e31d4b09ff6e73d47d86770be6ca2f4282c/fcsparser/api.py#L295-L310 | train | Reads the ANALYSIS segment of the FCS file and stores it in self. _analysis. | GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP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WZq9QOaZbhU,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) + '\157' + '\066' + chr(0b110010), 0b1000), nzTpIcepk0o8('\060' + chr(0b1000100 + 0o53) + chr(50) + '\x30', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\061' + chr(52) + '\063', 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110010) + chr(2457 - 2403) + chr(0b110000 + 0o2), ord("\x08")), nzTpIcepk0o8(chr(95 - 47) + chr(111) + chr(0b110010) + chr(54) + chr(0b110011), 0b1000), nzTpIcepk0o8('\x30' + chr(3385 - 3274) + chr(850 - 799) + chr(2022 - 1968) + '\060', 61486 - 61478), nzTpIcepk0o8(chr(48) + chr(111) + chr(1570 - 1519) + '\065' + '\060', 0b1000), nzTpIcepk0o8(chr(1081 - 1033) + '\x6f' + chr(0b1111 + 0o44) + chr(1894 - 1842) + chr(51), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(0b110001) + chr(0b110010) + '\x37', 0o10), nzTpIcepk0o8(chr(2085 - 2037) + chr(0b1101111) + chr(51) + chr(2449 - 2394) + chr(48), 25378 - 25370), nzTpIcepk0o8('\x30' + chr(2939 - 2828) + chr(2289 - 2239) + chr(50) + '\063', 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(53) + chr(0b110101), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + '\062' + chr(53), ord("\x08")), nzTpIcepk0o8(chr(0b111 + 0o51) + chr(11562 - 11451) + chr(49) + chr(55) + '\x32', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b100100 + 0o16) + chr(1269 - 1221) + '\x30', 38639 - 38631), nzTpIcepk0o8(chr(762 - 714) + chr(0b1101111) + chr(0b1100 + 0o47) + chr(1489 - 1438) + chr(0b110111), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\063' + chr(0b110 + 0o57) + '\x34', 0b1000), nzTpIcepk0o8(chr(1923 - 1875) + chr(0b1011101 + 0o22) + chr(0b101100 + 0o5) + chr(0b1100 + 0o52) + '\x37', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(1409 - 1298) + '\x34' + chr(52), 0b1000), nzTpIcepk0o8('\x30' + chr(0b101000 + 0o107) + chr(0b110010) + chr(71 - 18) + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x32' + '\x33' + '\067', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b111 + 0o54) + chr(49) + chr(0b10001 + 0o37), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110 + 0o52), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(50) + chr(332 - 277) + chr(0b110100), 0o10), nzTpIcepk0o8(chr(1327 - 1279) + '\x6f' + '\061' + chr(0b101010 + 0o14) + chr(775 - 725), ord("\x08")), nzTpIcepk0o8(chr(0b100100 + 0o14) + chr(0b1101111) + chr(0b110000 + 0o2) + '\x35' + '\065', 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(0b100011 + 0o24) + chr(51), 0o10), nzTpIcepk0o8('\060' + chr(1577 - 1466) + chr(0b111 + 0o53) + chr(51) + chr(0b110101), ord("\x08")), nzTpIcepk0o8(chr(1254 - 1206) + chr(111) + chr(0b101001 + 0o12) + chr(52) + '\065', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b111011 + 0o64) + chr(383 - 334) + chr(0b110010) + chr(0b110010), 0o10), nzTpIcepk0o8(chr(0b11001 + 0o27) + chr(0b1001100 + 0o43) + chr(49) + '\x30' + chr(51), 6434 - 6426), nzTpIcepk0o8('\060' + chr(10230 - 10119) + chr(0b110110) + chr(0b110100), 0b1000), nzTpIcepk0o8('\060' + chr(9268 - 9157) + chr(0b100111 + 0o12) + chr(0b101 + 0o61) + chr(52), 32067 - 32059), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(50) + chr(0b110011) + chr(1025 - 974), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(12228 - 12117) + chr(0b11010 + 0o31) + '\067' + '\x36', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110110) + chr(48), 38060 - 38052), nzTpIcepk0o8('\x30' + chr(2503 - 2392) + chr(0b1101 + 0o44) + chr(0b110101) + chr(0b110011), ord("\x08")), nzTpIcepk0o8(chr(0b1111 + 0o41) + chr(0b111110 + 0o61) + '\x31' + '\062' + '\067', 8), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(50) + chr(0b110001) + '\x32', 35832 - 35824), nzTpIcepk0o8(chr(48) + '\x6f' + '\066' + '\x32', 8)][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + chr(111) + '\x35' + chr(946 - 898), 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x1c'), chr(0b11000 + 0o114) + chr(0b110001 + 0o64) + chr(0b1100011) + chr(111) + chr(0b1010000 + 0o24) + '\x65')('\165' + chr(0b1000110 + 0o56) + '\x66' + chr(0b10011 + 0o32) + chr(0b111000)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def nWAZQhX4Jt0V(hXMPsSrOQzbh, rC115QJVCRma):
KQbHFTcl_LKy = hXMPsSrOQzbh.bKP0IesFF4Pq[roI3spqORKae(ES5oEprVxulp(b'mO\x0b\xd7\xd2\x94\x8d\x91\x08\xa7'), chr(0b1011011 + 0o11) + chr(0b1100101) + chr(0b1010101 + 0o16) + '\157' + chr(0b1100100) + chr(0b100110 + 0o77))(chr(117) + chr(0b1110100) + chr(0b1111 + 0o127) + chr(414 - 369) + '\070')][roI3spqORKae(ES5oEprVxulp(b'S~\x02\xde\xca\x83\x81\x90w\x8b\xe7Lg\x0e'), '\144' + '\145' + chr(0b101100 + 0o67) + '\x6f' + '\144' + chr(1608 - 1507))('\x75' + chr(0b1001110 + 0o46) + chr(0b1100110) + '\055' + '\070')]
NiWVjAWn0l6T = hXMPsSrOQzbh.bKP0IesFF4Pq[roI3spqORKae(ES5oEprVxulp(b'mO\x0b\xd7\xd2\x94\x8d\x91\x08\xa7'), chr(0b1100100) + chr(0b100110 + 0o77) + '\x63' + '\157' + chr(0b1100100) + '\x65')(chr(10983 - 10866) + chr(116) + chr(5537 - 5435) + chr(1305 - 1260) + chr(1449 - 1393))][roI3spqORKae(ES5oEprVxulp(b'S~\x02\xde\xca\x83\x81\x90w\x9d\xfdI'), chr(100) + '\x65' + '\x63' + '\157' + chr(0b1100100) + chr(0b1001 + 0o134))(chr(0b111010 + 0o73) + '\164' + chr(102) + chr(0b100100 + 0o11) + chr(849 - 793))]
if KQbHFTcl_LKy != nzTpIcepk0o8('\x30' + '\x6f' + chr(567 - 519), 8) and NiWVjAWn0l6T != nzTpIcepk0o8(chr(0b110000) + chr(0b10001 + 0o136) + chr(0b10001 + 0o37), 8):
roI3spqORKae(rC115QJVCRma, roI3spqORKae(ES5oEprVxulp(b'Au\x06\xd9'), chr(7062 - 6962) + chr(0b1100101) + chr(1114 - 1015) + '\157' + '\x64' + chr(0b1100101))('\x75' + chr(0b10110 + 0o136) + '\146' + chr(45) + '\070'))(KQbHFTcl_LKy, nzTpIcepk0o8(chr(499 - 451) + chr(720 - 609) + chr(0b101111 + 0o1), 8))
hXMPsSrOQzbh.oVCKI5srlK2l = rC115QJVCRma.eoXknH7XUn7m(NiWVjAWn0l6T - KQbHFTcl_LKy)
else:
hXMPsSrOQzbh.oVCKI5srlK2l = None |
eyurtsev/fcsparser | fcsparser/api.py | FCSParser._verify_assumptions | def _verify_assumptions(self):
"""Verify that all assumptions made by the parser hold."""
text = self.annotation
keys = text.keys()
if '$MODE' not in text or text['$MODE'] != 'L':
raise ParserFeatureNotImplementedError(u'Mode not implemented')
if '$P0B' in keys:
raise ParserFeatureNotImplementedError(u'Not expecting a parameter starting at 0')
if text['$BYTEORD'] not in ['1,2,3,4', '4,3,2,1', '1,2', '2,1']:
raise ParserFeatureNotImplementedError(u'$BYTEORD {} '
u'not implemented'.format(text['$BYTEORD'])) | python | def _verify_assumptions(self):
"""Verify that all assumptions made by the parser hold."""
text = self.annotation
keys = text.keys()
if '$MODE' not in text or text['$MODE'] != 'L':
raise ParserFeatureNotImplementedError(u'Mode not implemented')
if '$P0B' in keys:
raise ParserFeatureNotImplementedError(u'Not expecting a parameter starting at 0')
if text['$BYTEORD'] not in ['1,2,3,4', '4,3,2,1', '1,2', '2,1']:
raise ParserFeatureNotImplementedError(u'$BYTEORD {} '
u'not implemented'.format(text['$BYTEORD'])) | [
"def",
"_verify_assumptions",
"(",
"self",
")",
":",
"text",
"=",
"self",
".",
"annotation",
"keys",
"=",
"text",
".",
"keys",
"(",
")",
"if",
"'$MODE'",
"not",
"in",
"text",
"or",
"text",
"[",
"'$MODE'",
"]",
"!=",
"'L'",
":",
"raise",
"ParserFeatureNotImplementedError",
"(",
"u'Mode not implemented'",
")",
"if",
"'$P0B'",
"in",
"keys",
":",
"raise",
"ParserFeatureNotImplementedError",
"(",
"u'Not expecting a parameter starting at 0'",
")",
"if",
"text",
"[",
"'$BYTEORD'",
"]",
"not",
"in",
"[",
"'1,2,3,4'",
",",
"'4,3,2,1'",
",",
"'1,2'",
",",
"'2,1'",
"]",
":",
"raise",
"ParserFeatureNotImplementedError",
"(",
"u'$BYTEORD {} '",
"u'not implemented'",
".",
"format",
"(",
"text",
"[",
"'$BYTEORD'",
"]",
")",
")"
] | Verify that all assumptions made by the parser hold. | [
"Verify",
"that",
"all",
"assumptions",
"made",
"by",
"the",
"parser",
"hold",
"."
] | 710e8e31d4b09ff6e73d47d86770be6ca2f4282c | https://github.com/eyurtsev/fcsparser/blob/710e8e31d4b09ff6e73d47d86770be6ca2f4282c/fcsparser/api.py#L312-L325 | train | Verify that all assumptions made by the parser hold are met. | 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,Awc2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A8,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(0b101110 + 0o2) + chr(111) + '\x32' + chr(0b110011) + '\063', 0o10), nzTpIcepk0o8(chr(1895 - 1847) + chr(111) + chr(461 - 411) + chr(50) + chr(48), 0b1000), nzTpIcepk0o8('\x30' + chr(10678 - 10567) + '\x32' + chr(48) + '\x37', 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(1943 - 1894) + chr(0b100 + 0o60) + chr(0b110101 + 0o2), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(1856 - 1807) + chr(2349 - 2294) + '\065', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b110100 + 0o73) + '\062' + chr(48) + chr(360 - 309), 0o10), nzTpIcepk0o8('\060' + '\x6f' + '\x32' + chr(1735 - 1686) + '\x33', 4281 - 4273), nzTpIcepk0o8(chr(835 - 787) + '\157' + chr(160 - 110) + chr(53) + chr(0b110101), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(4107 - 3996) + '\061' + chr(795 - 744) + chr(53), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + '\065' + chr(2120 - 2067), 1089 - 1081), nzTpIcepk0o8(chr(781 - 733) + '\157' + chr(0b110111) + chr(0b100111 + 0o15), 0o10), nzTpIcepk0o8(chr(0b10101 + 0o33) + chr(0b1101111) + '\x32' + chr(0b10010 + 0o43) + chr(0b110001), 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(51) + '\067' + chr(55), 0b1000), nzTpIcepk0o8(chr(631 - 583) + chr(0b1110 + 0o141) + chr(0b110010) + chr(48) + chr(0b110110), 8554 - 8546), nzTpIcepk0o8(chr(634 - 586) + chr(0b1101111) + chr(466 - 415) + '\065' + '\064', 0o10), nzTpIcepk0o8('\060' + chr(0b1001000 + 0o47) + chr(0b1 + 0o60) + chr(0b110001) + chr(0b10010 + 0o45), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b1011 + 0o50) + chr(54) + chr(955 - 907), 57142 - 57134), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110010) + chr(0b110000) + chr(0b11110 + 0o22), 0b1000), nzTpIcepk0o8(chr(0b10010 + 0o36) + chr(0b1101111) + chr(725 - 676) + chr(1064 - 1010) + '\060', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(51) + chr(0b110001) + chr(53), ord("\x08")), nzTpIcepk0o8(chr(0b111 + 0o51) + chr(2896 - 2785) + chr(0b110010) + chr(52) + chr(0b110011), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x32' + chr(0b101101 + 0o10) + chr(0b1111 + 0o50), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b1 + 0o63) + chr(544 - 492), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110011) + chr(446 - 398) + chr(0b110101), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b111001 + 0o66) + chr(0b110001) + chr(2556 - 2503) + '\x35', 0o10), nzTpIcepk0o8(chr(0b101 + 0o53) + chr(2146 - 2035) + chr(2226 - 2175) + chr(2504 - 2449) + '\067', 8), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110001) + chr(1729 - 1680) + '\x33', 0o10), nzTpIcepk0o8(chr(0b100100 + 0o14) + chr(0b1001101 + 0o42) + '\x31' + chr(0b110001 + 0o4) + chr(50), 1638 - 1630), nzTpIcepk0o8(chr(355 - 307) + chr(0b1010010 + 0o35) + '\x31' + chr(982 - 934) + chr(49), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(3019 - 2908) + chr(0b110011) + chr(52), 0o10), nzTpIcepk0o8('\060' + '\157' + chr(0b110011) + chr(52) + '\063', 0o10), nzTpIcepk0o8('\060' + chr(111) + '\x32' + chr(0b100110 + 0o15) + '\x32', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(49) + '\x37' + chr(1876 - 1826), 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(0b11010 + 0o27) + chr(48) + chr(52), ord("\x08")), nzTpIcepk0o8(chr(1163 - 1115) + '\x6f' + chr(0b110011) + chr(909 - 854) + chr(0b110000), ord("\x08")), nzTpIcepk0o8('\060' + chr(8842 - 8731) + '\061' + '\066' + chr(0b101101 + 0o4), 55054 - 55046), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(51) + chr(0b1111 + 0o46) + chr(54), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1011000 + 0o27) + chr(2497 - 2447) + chr(0b110101) + chr(0b100011 + 0o24), 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110 + 0o55) + '\x32' + '\x36', 0b1000), nzTpIcepk0o8(chr(0b10111 + 0o31) + '\x6f' + '\062' + '\062', ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b101 + 0o53) + '\157' + chr(53) + '\x30', ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xb5'), '\144' + chr(4930 - 4829) + '\x63' + chr(0b100101 + 0o112) + chr(9648 - 9548) + '\x65')(chr(117) + '\x74' + chr(0b1010100 + 0o22) + chr(0b101101) + chr(2986 - 2930)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def _wt1rS1oxSBu(hXMPsSrOQzbh):
cpStk7cY1TJd = hXMPsSrOQzbh.bKP0IesFF4Pq
HOp0ZjSPeQln = cpStk7cY1TJd.keys()
if roI3spqORKae(ES5oEprVxulp(b'\xbf\xdd\xc8#8'), chr(1611 - 1511) + '\145' + chr(99) + '\157' + chr(100) + chr(0b1100101))(chr(0b100000 + 0o125) + chr(116) + chr(102) + chr(0b101101) + chr(1490 - 1434)) not in cpStk7cY1TJd or cpStk7cY1TJd[roI3spqORKae(ES5oEprVxulp(b'\xbf\xdd\xc8#8'), '\144' + chr(101) + chr(99) + chr(10222 - 10111) + '\x64' + chr(0b10010 + 0o123))(chr(0b1110101) + '\164' + '\146' + chr(0b11101 + 0o20) + '\070')] != roI3spqORKae(ES5oEprVxulp(b'\xd7'), '\144' + '\145' + chr(0b1100011) + chr(0b1101111) + chr(100) + chr(0b1100101))(chr(117) + chr(116) + chr(102) + chr(770 - 725) + chr(756 - 700)):
raise zgtq_9BoLE3Q(roI3spqORKae(ES5oEprVxulp(b'\xd6\xff\xe3\x02]\xed\xe4\xd9}DQ\xd9\x93\xe3\x81*\x9e\xf4\x15\xa9'), chr(0b1000110 + 0o36) + chr(360 - 259) + chr(0b1001010 + 0o31) + '\x6f' + chr(100) + chr(0b1100101))(chr(4717 - 4600) + '\x74' + chr(0b1100110) + '\x2d' + chr(56)))
if roI3spqORKae(ES5oEprVxulp(b'\xbf\xc0\xb7%'), chr(100) + chr(0b111011 + 0o52) + chr(0b1100011) + chr(111) + '\x64' + chr(101))(chr(117) + chr(12843 - 12727) + chr(0b100110 + 0o100) + chr(0b100000 + 0o15) + chr(2492 - 2436)) in HOp0ZjSPeQln:
raise zgtq_9BoLE3Q(roI3spqORKae(ES5oEprVxulp(b'\xd5\xff\xf3G\x18\xfb\xfb\xc8>YU\xc7\x98\xa6\x8do\x80\xe1\x02\xac\xce\xcaP\xa0\x1f\xdf8\x1e n\x97\xf3\x14#\xd8\x10\x9a\x8f\xe6'), chr(0b1100100) + '\145' + '\x63' + chr(0b110011 + 0o74) + chr(0b101111 + 0o65) + chr(6676 - 6575))(chr(0b1101000 + 0o15) + chr(116) + chr(0b100100 + 0o102) + chr(0b101101) + '\070'))
if cpStk7cY1TJd[roI3spqORKae(ES5oEprVxulp(b'\xbf\xd2\xde38\xcc\xd9\xe9'), '\x64' + chr(101) + chr(99) + chr(0b11100 + 0o123) + '\144' + '\x65')('\x75' + chr(13090 - 12974) + '\x66' + chr(0b101101) + '\x38')] not in [roI3spqORKae(ES5oEprVxulp(b'\xaa\xbc\xb5KN\xaf\xbf'), chr(7584 - 7484) + '\145' + '\x63' + chr(4132 - 4021) + chr(0b1100100) + '\145')(chr(12353 - 12236) + chr(11914 - 11798) + chr(0b1100110) + chr(0b101101) + chr(0b10 + 0o66)), roI3spqORKae(ES5oEprVxulp(b'\xaf\xbc\xb4KO\xaf\xba'), '\144' + chr(5164 - 5063) + chr(99) + '\157' + chr(0b1100100) + chr(101))('\x75' + chr(0b1110100) + chr(0b11110 + 0o110) + chr(0b1111 + 0o36) + chr(0b101000 + 0o20)), roI3spqORKae(ES5oEprVxulp(b'\xaa\xbc\xb5'), chr(0b111011 + 0o51) + chr(0b1100101) + '\143' + '\157' + chr(6842 - 6742) + chr(0b1100101))('\x75' + chr(116) + chr(102) + chr(0b101101) + chr(0b111000)), roI3spqORKae(ES5oEprVxulp(b'\xa9\xbc\xb6'), chr(4960 - 4860) + chr(101) + chr(99) + chr(0b1101111) + '\x64' + '\145')('\x75' + chr(10818 - 10702) + chr(0b1001100 + 0o32) + chr(0b101101) + chr(1372 - 1316))]:
raise zgtq_9BoLE3Q(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\xbf\xd2\xde38\xcc\xd9\xe9}VA\x89\x91\xe9\x98o\x99\xed\x00\xa1\xc6\xc2A\xab\x19\x9a/'), chr(0b1001100 + 0o30) + chr(0b1100101) + chr(0b1011011 + 0o10) + chr(0b1101111) + chr(4720 - 4620) + '\x65')(chr(117) + chr(116) + chr(7860 - 7758) + chr(45) + chr(0b111000)), roI3spqORKae(ES5oEprVxulp(b'\xea\xa3\xb4,:\xb0\xed\xc2\x0cr\x7f\xe3'), chr(0b1100100) + chr(0b1001011 + 0o32) + '\143' + chr(0b11 + 0o154) + chr(0b110001 + 0o63) + chr(0b1100101))('\x75' + '\164' + '\x66' + chr(0b10001 + 0o34) + chr(0b100 + 0o64)))(cpStk7cY1TJd[roI3spqORKae(ES5oEprVxulp(b'\xbf\xd2\xde38\xcc\xd9\xe9'), chr(2627 - 2527) + chr(0b10010 + 0o123) + chr(0b100111 + 0o74) + '\x6f' + '\144' + '\145')(chr(117) + chr(116) + '\x66' + chr(0b1000 + 0o45) + chr(56))])) |
eyurtsev/fcsparser | fcsparser/api.py | FCSParser.get_channel_names | def get_channel_names(self):
"""Get list of channel names. Raises a warning if the names are not unique."""
names_s, names_n = self.channel_names_s, self.channel_names_n
# Figure out which channel names to use
if self._channel_naming == '$PnS':
channel_names, channel_names_alternate = names_s, names_n
else:
channel_names, channel_names_alternate = names_n, names_s
if len(channel_names) == 0:
channel_names = channel_names_alternate
if len(set(channel_names)) != len(channel_names):
msg = (u'The default channel names (defined by the {} '
u'parameter in the FCS file) were not unique. To avoid '
u'problems in downstream analysis, the channel names '
u'have been switched to the alternate channel names '
u'defined in the FCS file. To avoid '
u'seeing this warning message, explicitly instruct '
u'the FCS parser to use the alternate channel names by '
u'specifying the channel_naming parameter.')
msg = msg.format(self._channel_naming)
warnings.warn(msg)
channel_names = channel_names_alternate
return channel_names | python | def get_channel_names(self):
"""Get list of channel names. Raises a warning if the names are not unique."""
names_s, names_n = self.channel_names_s, self.channel_names_n
# Figure out which channel names to use
if self._channel_naming == '$PnS':
channel_names, channel_names_alternate = names_s, names_n
else:
channel_names, channel_names_alternate = names_n, names_s
if len(channel_names) == 0:
channel_names = channel_names_alternate
if len(set(channel_names)) != len(channel_names):
msg = (u'The default channel names (defined by the {} '
u'parameter in the FCS file) were not unique. To avoid '
u'problems in downstream analysis, the channel names '
u'have been switched to the alternate channel names '
u'defined in the FCS file. To avoid '
u'seeing this warning message, explicitly instruct '
u'the FCS parser to use the alternate channel names by '
u'specifying the channel_naming parameter.')
msg = msg.format(self._channel_naming)
warnings.warn(msg)
channel_names = channel_names_alternate
return channel_names | [
"def",
"get_channel_names",
"(",
"self",
")",
":",
"names_s",
",",
"names_n",
"=",
"self",
".",
"channel_names_s",
",",
"self",
".",
"channel_names_n",
"# Figure out which channel names to use",
"if",
"self",
".",
"_channel_naming",
"==",
"'$PnS'",
":",
"channel_names",
",",
"channel_names_alternate",
"=",
"names_s",
",",
"names_n",
"else",
":",
"channel_names",
",",
"channel_names_alternate",
"=",
"names_n",
",",
"names_s",
"if",
"len",
"(",
"channel_names",
")",
"==",
"0",
":",
"channel_names",
"=",
"channel_names_alternate",
"if",
"len",
"(",
"set",
"(",
"channel_names",
")",
")",
"!=",
"len",
"(",
"channel_names",
")",
":",
"msg",
"=",
"(",
"u'The default channel names (defined by the {} '",
"u'parameter in the FCS file) were not unique. To avoid '",
"u'problems in downstream analysis, the channel names '",
"u'have been switched to the alternate channel names '",
"u'defined in the FCS file. To avoid '",
"u'seeing this warning message, explicitly instruct '",
"u'the FCS parser to use the alternate channel names by '",
"u'specifying the channel_naming parameter.'",
")",
"msg",
"=",
"msg",
".",
"format",
"(",
"self",
".",
"_channel_naming",
")",
"warnings",
".",
"warn",
"(",
"msg",
")",
"channel_names",
"=",
"channel_names_alternate",
"return",
"channel_names"
] | Get list of channel names. Raises a warning if the names are not unique. | [
"Get",
"list",
"of",
"channel",
"names",
".",
"Raises",
"a",
"warning",
"if",
"the",
"names",
"are",
"not",
"unique",
"."
] | 710e8e31d4b09ff6e73d47d86770be6ca2f4282c | https://github.com/eyurtsev/fcsparser/blob/710e8e31d4b09ff6e73d47d86770be6ca2f4282c/fcsparser/api.py#L327-L353 | train | Get list of channel names. Raises a warning if the names are not unique. | 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,UIHY5MV5X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,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' + '\x6f' + chr(0b1000 + 0o56) + '\x32', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(10404 - 10293) + '\x33' + '\061' + '\x37', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(8966 - 8855) + chr(0b110011) + chr(2043 - 1993) + chr(54), 14796 - 14788), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110011) + chr(243 - 189) + '\066', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1100100 + 0o13) + chr(0b110101) + chr(0b11010 + 0o33), 0b1000), nzTpIcepk0o8(chr(834 - 786) + chr(11838 - 11727) + '\x37' + '\x34', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(1273 - 1223) + '\067' + chr(48), 12309 - 12301), nzTpIcepk0o8(chr(830 - 782) + chr(111) + chr(50) + chr(0b110011) + chr(2474 - 2423), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b1111 + 0o44) + chr(1996 - 1946) + '\x30', 26480 - 26472), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(947 - 897) + chr(0b110100) + '\066', 0o10), nzTpIcepk0o8(chr(0b100111 + 0o11) + '\157' + chr(50) + chr(0b1 + 0o63) + '\060', 24111 - 24103), nzTpIcepk0o8('\x30' + chr(6038 - 5927) + chr(0b110100) + chr(53), 36305 - 36297), nzTpIcepk0o8(chr(48) + chr(7433 - 7322) + chr(49) + chr(0b110101) + chr(51), 3899 - 3891), nzTpIcepk0o8('\060' + '\x6f' + chr(49) + '\064' + chr(0b110101), 0b1000), nzTpIcepk0o8(chr(665 - 617) + chr(0b1110 + 0o141) + chr(1044 - 994) + chr(500 - 446) + chr(0b101110 + 0o11), 13949 - 13941), nzTpIcepk0o8('\x30' + chr(4410 - 4299) + chr(49) + '\x33' + '\067', 40818 - 40810), nzTpIcepk0o8(chr(1015 - 967) + '\x6f' + '\062' + '\x33' + '\x37', 19212 - 19204), nzTpIcepk0o8('\x30' + chr(0b10011 + 0o134) + '\062' + chr(51) + '\060', 51297 - 51289), nzTpIcepk0o8(chr(1655 - 1607) + chr(0b1101111) + '\062' + chr(0b110011) + '\x36', 0b1000), nzTpIcepk0o8('\x30' + '\157' + '\x33' + chr(333 - 285) + '\064', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(50) + chr(0b100111 + 0o15) + chr(51), 29525 - 29517), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\063' + chr(0b110011) + chr(0b1010 + 0o47), 61361 - 61353), nzTpIcepk0o8(chr(48) + chr(8927 - 8816) + '\062' + chr(2348 - 2297) + chr(52), ord("\x08")), nzTpIcepk0o8('\x30' + chr(1064 - 953) + '\062' + chr(49) + '\x37', 50788 - 50780), nzTpIcepk0o8('\060' + chr(9761 - 9650) + '\063' + chr(667 - 618) + chr(0b110100), 37058 - 37050), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\063' + chr(1786 - 1732) + '\060', 0b1000), nzTpIcepk0o8('\x30' + chr(9765 - 9654) + chr(0b10001 + 0o41) + chr(50) + '\064', 53993 - 53985), nzTpIcepk0o8(chr(0b1011 + 0o45) + chr(0b101001 + 0o106) + '\x32' + chr(1629 - 1576), 20843 - 20835), nzTpIcepk0o8(chr(1869 - 1821) + '\x6f' + chr(49) + chr(0b101000 + 0o10) + chr(2896 - 2842), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + '\063' + chr(51) + chr(0b110001), 8), nzTpIcepk0o8(chr(698 - 650) + chr(0b1100110 + 0o11) + chr(0b1111 + 0o43) + chr(0b101101 + 0o12) + chr(0b110110), 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(0b110011) + chr(674 - 626), 0b1000), nzTpIcepk0o8(chr(1107 - 1059) + chr(111) + chr(1410 - 1355) + chr(0b110011), ord("\x08")), nzTpIcepk0o8(chr(0b11000 + 0o30) + chr(0b1001010 + 0o45) + '\x31' + chr(1142 - 1089) + chr(0b110110), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(467 - 417) + '\060' + chr(0b110110), 37094 - 37086), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x35' + chr(49), 6725 - 6717), nzTpIcepk0o8(chr(335 - 287) + '\157' + chr(51) + chr(0b1001 + 0o52) + chr(51), 0b1000), nzTpIcepk0o8(chr(0b1111 + 0o41) + chr(0b101111 + 0o100) + chr(0b110001) + chr(55) + chr(0b101101 + 0o7), 63219 - 63211), nzTpIcepk0o8(chr(48) + '\157' + chr(0b11100 + 0o25) + chr(0b110001) + '\x34', 41435 - 41427), nzTpIcepk0o8('\060' + chr(0b1001000 + 0o47) + '\061' + '\x30' + chr(0b110011), 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + chr(11050 - 10939) + chr(0b10011 + 0o42) + '\060', 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x1c'), '\x64' + '\145' + chr(0b1000 + 0o133) + chr(0b1101111) + chr(100) + chr(8271 - 8170))(chr(117) + '\164' + '\x66' + chr(0b101101) + '\070') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def Dpl50w0S6mtf(hXMPsSrOQzbh):
(rjPdfJoNugnA, eiKx_n9yV5uY) = (hXMPsSrOQzbh.SUVhFftYEIYI, hXMPsSrOQzbh.ir82mSA6IXya)
if roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'm\xac\xbe\x97CR\xdd\xf7\x8f\xc8\xc1H\x02\x0b\xd0'), '\144' + chr(0b1100101) + '\143' + '\157' + chr(0b11101 + 0o107) + '\x65')('\x75' + chr(116) + '\x66' + chr(0b1100 + 0o41) + chr(0b100 + 0o64))) == roI3spqORKae(ES5oEprVxulp(b'\x16\x9f\xb8\xa5'), '\x64' + chr(101) + '\143' + chr(8893 - 8782) + '\144' + chr(0b1100101))('\x75' + chr(4629 - 4513) + chr(0b1100110) + chr(0b1 + 0o54) + chr(0b101 + 0o63)):
(ZrIXpbbVUbkd, uxyUVwdzyi3w) = (rjPdfJoNugnA, eiKx_n9yV5uY)
else:
(ZrIXpbbVUbkd, uxyUVwdzyi3w) = (eiKx_n9yV5uY, rjPdfJoNugnA)
if ftfygxgFas5X(ZrIXpbbVUbkd) == nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110000 + 0o0), 0o10):
ZrIXpbbVUbkd = uxyUVwdzyi3w
if ftfygxgFas5X(Bvi71nNyvlqO(ZrIXpbbVUbkd)) != ftfygxgFas5X(ZrIXpbbVUbkd):
sldzbHve8G1S = roI3spqORKae(ES5oEprVxulp(b'f\xa7\xb3\xd6IY\xde\xfa\xa5\xca\xd4\x05\x08\r\xd61\xf1\xfd\xf2\xe4\xcd\xb8\xf1\xea\xbf\xd0\xbcq#\xbf\xd7v^\n\xa6K\xa2\\8+W\xef\xad\x8b\rL\xd9\xe9\xb1\xcb\xc5Q\x0e\x17\x976\xf1\xb8\xea\xac\xc6\xf9\xda\xcc\x9f\xd0\xf2|*\xbc\x978L\x0b\xf4L\xfb\x12#7\x12\xba\xb8\x9f\\I\xdd\xb5\xf0\xf2\xcf\x05\n\x13\xd86\xfb\xb8\xee\xb6\xcc\xbb\xf0\xea\xa1\x83\xb4|(\xf9\xdawL\x00\xf5]\xa9\x19-.\x12\xae\xb8\x97AE\xcb\xf2\xa3\x8a\x80Q\x03\x00\x97<\xf7\xf9\xf0\xaa\xc6\xb5\xbc\xe1\xad\x9d\xf1ff\xb1\xdfn^N\xe4L\xbe\x12l0E\xa6\xa2\x95EY\xdc\xbb\xa4\xc9\x80Q\x03\x00\x97>\xf3\xec\xfb\xb6\xcd\xb8\xe8\xea\xec\x93\xfct(\xb7\xdbt\x1b\x00\xe7D\xbe\x0fl\'W\xa9\xbf\x98HX\x98\xf2\xbe\x86\xd4M\x0eE\xf1\x1c\xcc\xb8\xf8\xad\xcf\xbc\xb2\xaf\x98\x9f\xb4t0\xb6\xd7|\x1b\x1d\xe3L\xb2\x12+cF\xa7\xbf\x85\rK\xd9\xe9\xbe\xcf\xceBK\x08\xd2,\xec\xf9\xf9\xa1\x8f\xf9\xf9\xf7\xbc\x9c\xfdv/\xad\xd2a\x1b\x07\xe8Z\xaf\x0e9 F\xef\xa2\x9eH\x1c\xfe\xd8\x83\x86\xd0D\x19\x16\xd2-\xbf\xec\xf1\xe4\xd6\xaa\xf9\xaf\xb8\x98\xf15\'\xb5\xca}I\x00\xe7]\xbe\\/+S\xa1\xb8\x93A\x1c\xd6\xfa\xbd\xc3\xd3\x05\t\x1c\x97,\xef\xfd\xfd\xad\xc5\xa0\xf5\xe1\xab\xd0\xe0}#\xf9\xddpZ\x00\xe8L\xb7#""_\xa6\xb8\x91\rL\xd9\xe9\xb1\xcb\xc5Q\x0e\x17\x99'), chr(100) + '\x65' + '\143' + chr(111) + '\x64' + chr(0b1100101))(chr(1248 - 1131) + '\x74' + '\146' + chr(0b101101) + '\x38')
sldzbHve8G1S = sldzbHve8G1S.q33KG3foQ_CJ(hXMPsSrOQzbh._channel_naming)
roI3spqORKae(EyN62Frii5S5, roI3spqORKae(ES5oEprVxulp(b'A\x85\x87\xa0rt\xc9\xc8\xe9\xc0\xc7_'), chr(2017 - 1917) + chr(101) + chr(9526 - 9427) + '\157' + '\x64' + '\145')(chr(117) + '\164' + chr(9611 - 9509) + '\055' + chr(0b11010 + 0o36)))(sldzbHve8G1S)
ZrIXpbbVUbkd = uxyUVwdzyi3w
return ZrIXpbbVUbkd |
eyurtsev/fcsparser | fcsparser/api.py | FCSParser.read_data | def read_data(self, file_handle):
"""Read the DATA segment of the FCS file."""
self._verify_assumptions()
text = self.annotation
if (self._data_start > self._file_size) or (self._data_end > self._file_size):
raise ValueError(u'The FCS file "{}" is corrupted. Part of the data segment '
u'is missing.'.format(self.path))
num_events = text['$TOT'] # Number of events recorded
num_pars = text['$PAR'] # Number of parameters recorded
if text['$BYTEORD'].strip() == '1,2,3,4' or text['$BYTEORD'].strip() == '1,2':
endian = '<'
elif text['$BYTEORD'].strip() == '4,3,2,1' or text['$BYTEORD'].strip() == '2,1':
endian = '>'
else:
msg = 'Unrecognized byte order ({})'.format(text['$BYTEORD'])
raise ParserFeatureNotImplementedError(msg)
# dictionary to convert from FCS format to numpy convention
conversion_dict = {'F': 'f', 'D': 'f', 'I': 'u'}
if text['$DATATYPE'] not in conversion_dict.keys():
raise ParserFeatureNotImplementedError('$DATATYPE = {0} is not yet '
'supported.'.format(text['$DATATYPE']))
# Calculations to figure out data types of each of parameters
# $PnB specifies the number of bits reserved for a measurement of parameter n
bytes_per_par_list = [int(text['$P{0}B'.format(i)] / 8) for i in self.channel_numbers]
par_numeric_type_list = [
'{endian}{type}{size}'.format(endian=endian,
type=conversion_dict[text['$DATATYPE']],
size=bytes_per_par)
for bytes_per_par in bytes_per_par_list
]
# Parser for list mode. Here, the order is a list of tuples.
# Each tuple stores event related information
file_handle.seek(self._data_start, 0) # Go to the part of the file where data starts
##
# Read in the data
if len(set(par_numeric_type_list)) > 1:
# This branch deals with files in which the different columns (channels)
# were encoded with different types; i.e., a mixed data format.
dtype = ','.join(par_numeric_type_list)
data = fromfile(file_handle, dtype, num_events)
# The dtypes in the numpy array `data` above are associated with both a name
# and a type; i.e.,
# https://docs.scipy.org/doc/numpy/reference/generated/numpy.recarray.html
# The names are assigned automatically.
# In order for this code to work correctly with the pandas DataFrame constructor,
# we convert the *names* of the dtypes to the channel names we want to use.
names = self.get_channel_names()
if six.PY2:
encoded_names = [name.encode('ascii', errors='replace') for name in names]
else: # Assume that python3 or older then.
encoded_names = [name for name in names]
data.dtype.names = tuple(encoded_names)
else:
# values saved in a single data format
dtype = par_numeric_type_list[0]
data = fromfile(file_handle, dtype, num_events * num_pars)
data = data.reshape((num_events, num_pars))
##
# Convert to native byte order
# This is needed for working with pandas data structures
native_code = '<' if (sys.byteorder == 'little') else '>'
if endian != native_code:
# swaps the actual bytes and also the endianness
data = data.byteswap().newbyteorder()
self._data = data | python | def read_data(self, file_handle):
"""Read the DATA segment of the FCS file."""
self._verify_assumptions()
text = self.annotation
if (self._data_start > self._file_size) or (self._data_end > self._file_size):
raise ValueError(u'The FCS file "{}" is corrupted. Part of the data segment '
u'is missing.'.format(self.path))
num_events = text['$TOT'] # Number of events recorded
num_pars = text['$PAR'] # Number of parameters recorded
if text['$BYTEORD'].strip() == '1,2,3,4' or text['$BYTEORD'].strip() == '1,2':
endian = '<'
elif text['$BYTEORD'].strip() == '4,3,2,1' or text['$BYTEORD'].strip() == '2,1':
endian = '>'
else:
msg = 'Unrecognized byte order ({})'.format(text['$BYTEORD'])
raise ParserFeatureNotImplementedError(msg)
# dictionary to convert from FCS format to numpy convention
conversion_dict = {'F': 'f', 'D': 'f', 'I': 'u'}
if text['$DATATYPE'] not in conversion_dict.keys():
raise ParserFeatureNotImplementedError('$DATATYPE = {0} is not yet '
'supported.'.format(text['$DATATYPE']))
# Calculations to figure out data types of each of parameters
# $PnB specifies the number of bits reserved for a measurement of parameter n
bytes_per_par_list = [int(text['$P{0}B'.format(i)] / 8) for i in self.channel_numbers]
par_numeric_type_list = [
'{endian}{type}{size}'.format(endian=endian,
type=conversion_dict[text['$DATATYPE']],
size=bytes_per_par)
for bytes_per_par in bytes_per_par_list
]
# Parser for list mode. Here, the order is a list of tuples.
# Each tuple stores event related information
file_handle.seek(self._data_start, 0) # Go to the part of the file where data starts
##
# Read in the data
if len(set(par_numeric_type_list)) > 1:
# This branch deals with files in which the different columns (channels)
# were encoded with different types; i.e., a mixed data format.
dtype = ','.join(par_numeric_type_list)
data = fromfile(file_handle, dtype, num_events)
# The dtypes in the numpy array `data` above are associated with both a name
# and a type; i.e.,
# https://docs.scipy.org/doc/numpy/reference/generated/numpy.recarray.html
# The names are assigned automatically.
# In order for this code to work correctly with the pandas DataFrame constructor,
# we convert the *names* of the dtypes to the channel names we want to use.
names = self.get_channel_names()
if six.PY2:
encoded_names = [name.encode('ascii', errors='replace') for name in names]
else: # Assume that python3 or older then.
encoded_names = [name for name in names]
data.dtype.names = tuple(encoded_names)
else:
# values saved in a single data format
dtype = par_numeric_type_list[0]
data = fromfile(file_handle, dtype, num_events * num_pars)
data = data.reshape((num_events, num_pars))
##
# Convert to native byte order
# This is needed for working with pandas data structures
native_code = '<' if (sys.byteorder == 'little') else '>'
if endian != native_code:
# swaps the actual bytes and also the endianness
data = data.byteswap().newbyteorder()
self._data = data | [
"def",
"read_data",
"(",
"self",
",",
"file_handle",
")",
":",
"self",
".",
"_verify_assumptions",
"(",
")",
"text",
"=",
"self",
".",
"annotation",
"if",
"(",
"self",
".",
"_data_start",
">",
"self",
".",
"_file_size",
")",
"or",
"(",
"self",
".",
"_data_end",
">",
"self",
".",
"_file_size",
")",
":",
"raise",
"ValueError",
"(",
"u'The FCS file \"{}\" is corrupted. Part of the data segment '",
"u'is missing.'",
".",
"format",
"(",
"self",
".",
"path",
")",
")",
"num_events",
"=",
"text",
"[",
"'$TOT'",
"]",
"# Number of events recorded",
"num_pars",
"=",
"text",
"[",
"'$PAR'",
"]",
"# Number of parameters recorded",
"if",
"text",
"[",
"'$BYTEORD'",
"]",
".",
"strip",
"(",
")",
"==",
"'1,2,3,4'",
"or",
"text",
"[",
"'$BYTEORD'",
"]",
".",
"strip",
"(",
")",
"==",
"'1,2'",
":",
"endian",
"=",
"'<'",
"elif",
"text",
"[",
"'$BYTEORD'",
"]",
".",
"strip",
"(",
")",
"==",
"'4,3,2,1'",
"or",
"text",
"[",
"'$BYTEORD'",
"]",
".",
"strip",
"(",
")",
"==",
"'2,1'",
":",
"endian",
"=",
"'>'",
"else",
":",
"msg",
"=",
"'Unrecognized byte order ({})'",
".",
"format",
"(",
"text",
"[",
"'$BYTEORD'",
"]",
")",
"raise",
"ParserFeatureNotImplementedError",
"(",
"msg",
")",
"# dictionary to convert from FCS format to numpy convention",
"conversion_dict",
"=",
"{",
"'F'",
":",
"'f'",
",",
"'D'",
":",
"'f'",
",",
"'I'",
":",
"'u'",
"}",
"if",
"text",
"[",
"'$DATATYPE'",
"]",
"not",
"in",
"conversion_dict",
".",
"keys",
"(",
")",
":",
"raise",
"ParserFeatureNotImplementedError",
"(",
"'$DATATYPE = {0} is not yet '",
"'supported.'",
".",
"format",
"(",
"text",
"[",
"'$DATATYPE'",
"]",
")",
")",
"# Calculations to figure out data types of each of parameters",
"# $PnB specifies the number of bits reserved for a measurement of parameter n",
"bytes_per_par_list",
"=",
"[",
"int",
"(",
"text",
"[",
"'$P{0}B'",
".",
"format",
"(",
"i",
")",
"]",
"/",
"8",
")",
"for",
"i",
"in",
"self",
".",
"channel_numbers",
"]",
"par_numeric_type_list",
"=",
"[",
"'{endian}{type}{size}'",
".",
"format",
"(",
"endian",
"=",
"endian",
",",
"type",
"=",
"conversion_dict",
"[",
"text",
"[",
"'$DATATYPE'",
"]",
"]",
",",
"size",
"=",
"bytes_per_par",
")",
"for",
"bytes_per_par",
"in",
"bytes_per_par_list",
"]",
"# Parser for list mode. Here, the order is a list of tuples.",
"# Each tuple stores event related information",
"file_handle",
".",
"seek",
"(",
"self",
".",
"_data_start",
",",
"0",
")",
"# Go to the part of the file where data starts",
"##",
"# Read in the data",
"if",
"len",
"(",
"set",
"(",
"par_numeric_type_list",
")",
")",
">",
"1",
":",
"# This branch deals with files in which the different columns (channels)",
"# were encoded with different types; i.e., a mixed data format.",
"dtype",
"=",
"','",
".",
"join",
"(",
"par_numeric_type_list",
")",
"data",
"=",
"fromfile",
"(",
"file_handle",
",",
"dtype",
",",
"num_events",
")",
"# The dtypes in the numpy array `data` above are associated with both a name",
"# and a type; i.e.,",
"# https://docs.scipy.org/doc/numpy/reference/generated/numpy.recarray.html",
"# The names are assigned automatically.",
"# In order for this code to work correctly with the pandas DataFrame constructor,",
"# we convert the *names* of the dtypes to the channel names we want to use.",
"names",
"=",
"self",
".",
"get_channel_names",
"(",
")",
"if",
"six",
".",
"PY2",
":",
"encoded_names",
"=",
"[",
"name",
".",
"encode",
"(",
"'ascii'",
",",
"errors",
"=",
"'replace'",
")",
"for",
"name",
"in",
"names",
"]",
"else",
":",
"# Assume that python3 or older then.",
"encoded_names",
"=",
"[",
"name",
"for",
"name",
"in",
"names",
"]",
"data",
".",
"dtype",
".",
"names",
"=",
"tuple",
"(",
"encoded_names",
")",
"else",
":",
"# values saved in a single data format",
"dtype",
"=",
"par_numeric_type_list",
"[",
"0",
"]",
"data",
"=",
"fromfile",
"(",
"file_handle",
",",
"dtype",
",",
"num_events",
"*",
"num_pars",
")",
"data",
"=",
"data",
".",
"reshape",
"(",
"(",
"num_events",
",",
"num_pars",
")",
")",
"##",
"# Convert to native byte order",
"# This is needed for working with pandas data structures",
"native_code",
"=",
"'<'",
"if",
"(",
"sys",
".",
"byteorder",
"==",
"'little'",
")",
"else",
"'>'",
"if",
"endian",
"!=",
"native_code",
":",
"# swaps the actual bytes and also the endianness",
"data",
"=",
"data",
".",
"byteswap",
"(",
")",
".",
"newbyteorder",
"(",
")",
"self",
".",
"_data",
"=",
"data"
] | Read the DATA segment of the FCS file. | [
"Read",
"the",
"DATA",
"segment",
"of",
"the",
"FCS",
"file",
"."
] | 710e8e31d4b09ff6e73d47d86770be6ca2f4282c | https://github.com/eyurtsev/fcsparser/blob/710e8e31d4b09ff6e73d47d86770be6ca2f4282c/fcsparser/api.py#L355-L433 | train | Read the DATA segment of the FCS file. | GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pK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WtdkIpFeYozM,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(0b1100 + 0o44) + chr(658 - 547) + chr(51) + chr(0b100111 + 0o17) + chr(1039 - 990), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110010) + '\x33' + chr(0b11001 + 0o30), 0o10), nzTpIcepk0o8(chr(0b110000 + 0o0) + chr(0b1101011 + 0o4) + '\x31' + chr(0b100010 + 0o16) + chr(0b110011), 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x31' + '\x34' + chr(55), 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(49) + chr(0b101011 + 0o13) + chr(1170 - 1117), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(3341 - 3230) + '\063' + chr(0b1110 + 0o46), 0b1000), nzTpIcepk0o8(chr(1228 - 1180) + chr(0b1101111) + chr(1537 - 1486) + chr(54) + chr(1832 - 1778), ord("\x08")), nzTpIcepk0o8(chr(2039 - 1991) + '\157' + chr(0b110010) + '\065' + '\063', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b10010 + 0o135) + chr(1012 - 962) + chr(0b110111) + chr(0b101101 + 0o7), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x32' + chr(0b11010 + 0o32) + chr(0b100011 + 0o15), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1010110 + 0o31) + chr(0b111 + 0o53) + chr(51), ord("\x08")), nzTpIcepk0o8(chr(1217 - 1169) + chr(11501 - 11390) + '\x35' + chr(0b10110 + 0o41), 0o10), nzTpIcepk0o8(chr(48) + '\157' + '\064' + chr(54), 0o10), nzTpIcepk0o8(chr(715 - 667) + chr(0b100011 + 0o114) + chr(2367 - 2318) + chr(0b110001 + 0o2) + '\065', 0b1000), nzTpIcepk0o8(chr(0b100011 + 0o15) + '\157' + chr(53) + '\061', 0o10), nzTpIcepk0o8(chr(1709 - 1661) + chr(0b1101111) + chr(50) + chr(0b101101 + 0o12) + '\x30', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101010 + 0o5) + chr(1671 - 1619) + '\x31', 16006 - 15998), nzTpIcepk0o8('\060' + '\157' + '\063' + chr(48) + '\x33', 7576 - 7568), nzTpIcepk0o8('\060' + '\157' + chr(837 - 786) + chr(0b110100) + '\x30', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1011001 + 0o26) + chr(1560 - 1505) + chr(0b110101), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b100 + 0o153) + chr(0b110011) + '\x36' + chr(0b100111 + 0o16), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1000110 + 0o51) + chr(49) + chr(0b100111 + 0o20) + '\x36', ord("\x08")), nzTpIcepk0o8(chr(0b100111 + 0o11) + chr(0b1101111) + chr(0b110011) + chr(2007 - 1959) + '\x36', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x33' + chr(0b11011 + 0o26), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1001101 + 0o42) + chr(0b101000 + 0o11) + '\x31' + chr(55), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x36', 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(0b100000 + 0o21) + chr(1581 - 1527) + chr(0b110000), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + '\063' + chr(0b110110) + chr(0b110111), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + '\061' + '\062' + chr(52), 15739 - 15731), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110011) + chr(0b101100 + 0o5) + chr(49), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(0b10101 + 0o35) + chr(2125 - 2070) + '\067', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x32' + chr(0b110000), 21349 - 21341), nzTpIcepk0o8(chr(0b101101 + 0o3) + chr(0b1011 + 0o144) + chr(1749 - 1699) + chr(1843 - 1794), 0o10), nzTpIcepk0o8(chr(1048 - 1000) + chr(111) + chr(0b110011) + chr(0b110101 + 0o0) + chr(0b110011), 33852 - 33844), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110001) + '\x34' + chr(216 - 166), 38405 - 38397), nzTpIcepk0o8(chr(0b101100 + 0o4) + '\157' + '\x33' + '\x36' + chr(0b110111), 8), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(905 - 854) + chr(0b110000) + chr(0b110111), 58132 - 58124), nzTpIcepk0o8(chr(0b101 + 0o53) + '\157' + chr(49) + chr(53) + chr(0b101101 + 0o11), 0o10), nzTpIcepk0o8('\x30' + chr(2881 - 2770) + chr(1412 - 1363) + '\x36' + chr(928 - 878), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(1201 - 1147), 8)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + chr(0b10100 + 0o133) + chr(53) + chr(941 - 893), 51829 - 51821)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xdf'), chr(0b1011010 + 0o12) + chr(0b1100101) + chr(0b1010100 + 0o17) + chr(0b1101111) + '\144' + chr(3836 - 3735))(chr(0b1000000 + 0o65) + '\164' + chr(0b1100110) + '\x2d' + chr(0b11 + 0o65)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def thhz9CEcZlFP(hXMPsSrOQzbh, rC115QJVCRma):
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xae\xef&\x15\x1cz\x8f\xf4\xdd\xd3`ZK-]\xd1N\xad\x93'), chr(100) + chr(9390 - 9289) + '\x63' + '\157' + chr(0b1100100) + '\x65')(chr(0b1110101) + chr(9830 - 9714) + chr(0b1100110) + '\x2d' + chr(2916 - 2860)))()
cpStk7cY1TJd = hXMPsSrOQzbh.bKP0IesFF4Pq
if roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xbf\xdb \x1d\x0c+\x94\xd9\xfb\x90[Y'), '\x64' + chr(0b1001000 + 0o35) + chr(0b1100011) + chr(111) + chr(0b1001101 + 0o27) + chr(0b11110 + 0o107))(chr(0b1110101) + chr(0b1110100) + '\146' + chr(573 - 528) + '\070')) > roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x92\xdf\n\x1e0Z\xaf\xc5\xf2\x93bj'), chr(100) + chr(0b10110 + 0o117) + chr(0b1100011) + chr(1864 - 1753) + chr(0b1100100) + chr(2140 - 2039))('\x75' + '\x74' + '\146' + chr(0b101101) + '\x38')) or roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x87\xaet0Gd\xb7\xd2\xd7\xedXm'), '\x64' + '\145' + chr(6477 - 6378) + '\x6f' + chr(100) + '\x65')('\x75' + chr(0b1110100) + chr(102) + chr(1868 - 1823) + chr(0b111 + 0o61))) > roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x92\xdf\n\x1e0Z\xaf\xc5\xf2\x93bj'), '\x64' + '\x65' + chr(0b1100011) + chr(0b1001111 + 0o40) + chr(0b1100100) + chr(0b1100 + 0o131))(chr(0b1110101) + chr(0b1110100) + chr(0b1100110) + chr(0b101101) + chr(0b111000))):
raise WbNHlDKpyPtQ(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\xa5\xf1&G3_\xa5\x8b\xda\xc9\x7fJ\x06\x7fR\xc5\x03\xe3\x89N\xd5\x1d\xa9k=s\x00\x831\xad\x910A\x8a\x10\x83\xe7\x01\x14&\x85\xf1&G\x11}\x82\xca\x9c\xd3vHK8G\xcc\x01\xaa\x93\x1d\x98\x17\xb5j&h\x17\xd9'), chr(0b1100100) + chr(0b1100101) + chr(99) + chr(111) + chr(6375 - 6275) + chr(101))(chr(117) + chr(0b111 + 0o155) + chr(0b1100110) + chr(45) + chr(0b111000 + 0o0)), roI3spqORKae(ES5oEprVxulp(b'\x80\xaap,2/\x90\xc4\xed\xffPe'), chr(1881 - 1781) + chr(0b1100101) + chr(2985 - 2886) + '\x6f' + chr(9212 - 9112) + chr(0b1010010 + 0o23))(chr(11860 - 11743) + chr(0b11010 + 0o132) + chr(1592 - 1490) + chr(0b10001 + 0o34) + chr(1025 - 969)))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xae\xe9\x10>\x04n\x99\xd8\xf2\xc2*\x1a'), '\x64' + chr(101) + '\x63' + chr(0b1101111) + chr(7967 - 7867) + chr(101))(chr(117) + chr(116) + chr(0b1100110) + '\055' + '\070'))))
ILBcnDQOAB62 = cpStk7cY1TJd[roI3spqORKae(ES5oEprVxulp(b'\xd5\xcd\x0c3'), chr(0b1100100) + chr(101) + '\143' + '\157' + chr(0b1100100) + chr(0b1010110 + 0o17))(chr(117) + chr(10343 - 10227) + chr(5082 - 4980) + chr(45) + chr(0b101011 + 0o15))]
khdJevo0hRYG = cpStk7cY1TJd[roI3spqORKae(ES5oEprVxulp(b'\xd5\xc9\x025'), '\144' + '\145' + chr(99) + chr(5915 - 5804) + chr(0b1100100) + chr(101))(chr(2957 - 2840) + chr(718 - 602) + chr(0b1000 + 0o136) + '\055' + chr(0b100101 + 0o23))]
if roI3spqORKae(cpStk7cY1TJd[roI3spqORKae(ES5oEprVxulp(b'\xd5\xdb\x1a30S\xa4\xef'), chr(100) + chr(4783 - 4682) + chr(8822 - 8723) + chr(0b110110 + 0o71) + chr(0b111101 + 0o47) + chr(0b11001 + 0o114))('\x75' + chr(116) + chr(9089 - 8987) + '\055' + chr(1427 - 1371))], roI3spqORKae(ES5oEprVxulp(b'\x9a\xfd\n#\x07\x7f\x81\xf1\xe8\xe3`\x1a'), chr(2491 - 2391) + chr(0b1111 + 0o126) + chr(0b1100011) + chr(0b11001 + 0o126) + chr(0b101000 + 0o74) + '\x65')('\165' + chr(0b1110011 + 0o1) + chr(5912 - 5810) + '\055' + chr(0b111000)))() == roI3spqORKae(ES5oEprVxulp(b'\xc0\xb5qKF0\xc2'), chr(1102 - 1002) + '\145' + chr(0b1001001 + 0o32) + '\157' + '\x64' + chr(0b1100101))(chr(0b1110101) + '\164' + chr(8426 - 8324) + chr(0b101101) + chr(0b101100 + 0o14)) or roI3spqORKae(cpStk7cY1TJd[roI3spqORKae(ES5oEprVxulp(b'\xd5\xdb\x1a30S\xa4\xef'), '\x64' + chr(128 - 27) + chr(3892 - 3793) + '\157' + '\144' + '\145')(chr(117) + chr(116) + '\x66' + chr(0b101101) + '\x38')], roI3spqORKae(ES5oEprVxulp(b'\x9a\xfd\n#\x07\x7f\x81\xf1\xe8\xe3`\x1a'), '\144' + chr(101) + chr(0b110001 + 0o62) + chr(0b1101111) + '\x64' + '\x65')('\x75' + '\164' + '\x66' + chr(0b101101) + '\070'))() == roI3spqORKae(ES5oEprVxulp(b'\xc0\xb5q'), chr(0b1011110 + 0o6) + chr(4963 - 4862) + chr(0b1010101 + 0o16) + chr(0b1001101 + 0o42) + chr(100) + '\145')('\x75' + chr(0b110001 + 0o103) + '\x66' + '\055' + '\x38'):
hSewmZURlqMY = roI3spqORKae(ES5oEprVxulp(b'\xcd'), chr(100) + chr(101) + chr(0b1100011) + chr(0b1101111) + '\144' + chr(5252 - 5151))('\x75' + chr(5782 - 5666) + chr(0b11110 + 0o110) + '\x2d' + chr(56))
elif roI3spqORKae(cpStk7cY1TJd[roI3spqORKae(ES5oEprVxulp(b'\xd5\xdb\x1a30S\xa4\xef'), chr(100) + chr(0b11 + 0o142) + '\143' + '\x6f' + chr(8904 - 8804) + '\x65')('\x75' + chr(7145 - 7029) + chr(0b1100110) + chr(0b11001 + 0o24) + chr(56))], roI3spqORKae(ES5oEprVxulp(b'\x9a\xfd\n#\x07\x7f\x81\xf1\xe8\xe3`\x1a'), chr(100) + chr(0b1100101) + chr(0b1100011) + chr(0b1010001 + 0o36) + chr(2374 - 2274) + chr(0b1100101))('\165' + chr(116) + '\x66' + chr(45) + chr(0b111000)))() == roI3spqORKae(ES5oEprVxulp(b'\xc5\xb5pKG0\xc7'), '\144' + chr(0b1100101) + '\143' + chr(0b101011 + 0o104) + chr(4769 - 4669) + chr(0b1100101))(chr(0b1110101) + chr(0b1000 + 0o154) + chr(7087 - 6985) + chr(45) + '\x38') or roI3spqORKae(cpStk7cY1TJd[roI3spqORKae(ES5oEprVxulp(b'\xd5\xdb\x1a30S\xa4\xef'), '\x64' + chr(238 - 137) + '\x63' + chr(0b1101111) + '\144' + '\x65')(chr(0b1110101) + chr(0b1110100) + '\146' + chr(45) + '\x38')], roI3spqORKae(ES5oEprVxulp(b'\x9a\xfd\n#\x07\x7f\x81\xf1\xe8\xe3`\x1a'), '\144' + chr(9398 - 9297) + chr(0b1100011) + '\157' + chr(100) + chr(0b0 + 0o145))('\x75' + chr(0b1111 + 0o145) + chr(2208 - 2106) + chr(45) + '\070'))() == roI3spqORKae(ES5oEprVxulp(b'\xc3\xb5r'), chr(0b110110 + 0o56) + chr(0b1100101) + chr(3081 - 2982) + chr(1136 - 1025) + chr(0b11010 + 0o112) + chr(3015 - 2914))(chr(0b1001001 + 0o54) + '\164' + '\x66' + chr(45) + chr(2653 - 2597)):
hSewmZURlqMY = roI3spqORKae(ES5oEprVxulp(b'\xcf'), chr(0b11010 + 0o112) + chr(0b1100101) + '\x63' + chr(0b1101111) + chr(100) + '\x65')(chr(0b1110101) + '\x74' + chr(4416 - 4314) + '\x2d' + chr(0b111000))
else:
sldzbHve8G1S = roI3spqORKae(ES5oEprVxulp(b'\xa4\xf71\x02\x16s\x91\xc5\xd5\xdavK\x06?P\xccD\xe3\x8fO\x91\x1b\xb49g}\r\xde'), chr(0b1001011 + 0o31) + chr(0b1011010 + 0o13) + '\143' + chr(111) + chr(0b10100 + 0o120) + chr(101))('\165' + chr(0b110 + 0o156) + chr(3513 - 3411) + chr(45) + chr(1215 - 1159)).q33KG3foQ_CJ(cpStk7cY1TJd[roI3spqORKae(ES5oEprVxulp(b'\xd5\xdb\x1a30S\xa4\xef'), chr(100) + chr(6275 - 6174) + chr(0b1100011) + chr(4865 - 4754) + chr(0b1100100) + chr(4995 - 4894))(chr(117) + chr(10546 - 10430) + '\x66' + '\x2d' + chr(56))])
raise zgtq_9BoLE3Q(sldzbHve8G1S)
WSEr6I3VzeJ1 = {roI3spqORKae(ES5oEprVxulp(b'\xb7'), chr(6799 - 6699) + chr(0b1100101) + chr(0b1100011) + chr(10105 - 9994) + chr(781 - 681) + chr(101))(chr(117) + '\x74' + '\146' + chr(0b101101) + chr(0b110100 + 0o4)): roI3spqORKae(ES5oEprVxulp(b'\x97'), '\144' + '\145' + chr(8449 - 8350) + '\x6f' + chr(100) + chr(9128 - 9027))(chr(5164 - 5047) + '\164' + chr(0b101111 + 0o67) + chr(0b101101) + chr(56)), roI3spqORKae(ES5oEprVxulp(b'\xb5'), chr(100) + chr(0b101 + 0o140) + chr(0b1100011) + chr(111) + chr(0b1001101 + 0o27) + chr(0b1100101))(chr(0b1001111 + 0o46) + chr(0b11100 + 0o130) + chr(102) + chr(0b11111 + 0o16) + '\070'): roI3spqORKae(ES5oEprVxulp(b'\x97'), chr(0b1100100) + chr(8672 - 8571) + chr(398 - 299) + chr(0b1101101 + 0o2) + chr(100) + chr(101))('\165' + '\164' + chr(0b1100110) + '\055' + chr(0b111000)), roI3spqORKae(ES5oEprVxulp(b'\xb8'), chr(0b1100100) + chr(0b0 + 0o145) + chr(99) + '\157' + '\144' + chr(131 - 30))('\x75' + '\x74' + '\x66' + chr(45) + chr(521 - 465)): roI3spqORKae(ES5oEprVxulp(b'\x84'), '\144' + chr(0b1100101) + chr(0b101100 + 0o67) + '\x6f' + chr(2725 - 2625) + chr(0b1100100 + 0o1))(chr(0b1010011 + 0o42) + chr(0b1101010 + 0o12) + '\x66' + '\055' + chr(56))}
if cpStk7cY1TJd[roI3spqORKae(ES5oEprVxulp(b'\xd5\xdd\x0234H\xaf\xfb\xf9'), chr(0b1100100) + chr(4016 - 3915) + chr(99) + '\x6f' + chr(5302 - 5202) + '\145')(chr(355 - 238) + chr(0b1110100) + chr(0b1100110) + chr(0b101101) + chr(0b110000 + 0o10))] not in roI3spqORKae(WSEr6I3VzeJ1, roI3spqORKae(ES5oEprVxulp(b'\x9a\xfc:\x14'), chr(0b101 + 0o137) + chr(7103 - 7002) + chr(0b1100011) + chr(111) + '\144' + '\145')('\x75' + chr(0b10011 + 0o141) + '\x66' + chr(0b101101 + 0o0) + chr(0b100111 + 0o21)))():
raise zgtq_9BoLE3Q(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\xd5\xdd\x0234H\xaf\xfb\xf9\x80.\x0f]mT\x98H\xb0\xc0S\x9a\n\xe6`*rP\x84!\xb9\xcf\x7fc\x9f\x07\x93\xe9'), '\x64' + '\x65' + '\143' + chr(0b11011 + 0o124) + chr(1337 - 1237) + chr(0b11101 + 0o110))(chr(11028 - 10911) + chr(0b1110100) + chr(102) + chr(45) + '\070'), roI3spqORKae(ES5oEprVxulp(b'\x80\xaap,2/\x90\xc4\xed\xffPe'), '\144' + chr(6783 - 6682) + chr(0b1011010 + 0o11) + chr(0b1101111) + chr(100) + chr(101))(chr(0b1110101) + chr(636 - 520) + chr(0b1100000 + 0o6) + '\055' + chr(56)))(cpStk7cY1TJd[roI3spqORKae(ES5oEprVxulp(b'\xd5\xdd\x0234H\xaf\xfb\xf9'), '\x64' + chr(101) + '\143' + '\x6f' + chr(0b1010011 + 0o21) + chr(101))(chr(6305 - 6188) + '\164' + chr(102) + chr(1848 - 1803) + chr(0b10100 + 0o44))]))
s7m_mzVazm5K = [nzTpIcepk0o8(cpStk7cY1TJd[roI3spqORKae(ES5oEprVxulp(b'\xd5\xc98W\x08^'), chr(0b1001101 + 0o27) + chr(7484 - 7383) + chr(0b1100011) + chr(111) + '\144' + chr(1659 - 1558))('\165' + chr(116) + chr(0b1011001 + 0o15) + chr(45) + chr(56)).q33KG3foQ_CJ(ZlbFMSG8gCoF)] / nzTpIcepk0o8(chr(48) + chr(9258 - 9147) + chr(0b110 + 0o53) + chr(0b100111 + 0o11), 0o10)) for ZlbFMSG8gCoF in hXMPsSrOQzbh.UxQEIKjwEDpI]
qNz2k97qOwt4 = [roI3spqORKae(ES5oEprVxulp(b'\x8a\xfc-\x03\x1c}\x98\xd6\xc7\xd4j_C R\xcbH\xb9\x85@'), chr(0b1100100) + chr(0b1000100 + 0o41) + chr(0b1100011) + '\157' + chr(9966 - 9866) + '\145')('\x75' + '\164' + chr(0b101100 + 0o72) + chr(0b101101) + chr(1156 - 1100)).q33KG3foQ_CJ(endian=hSewmZURlqMY, type=WSEr6I3VzeJ1[cpStk7cY1TJd[roI3spqORKae(ES5oEprVxulp(b'\xd5\xdd\x0234H\xaf\xfb\xf9'), chr(0b1100100) + '\x65' + chr(0b1 + 0o142) + '\x6f' + '\144' + '\145')('\x75' + chr(0b1011011 + 0o31) + '\146' + chr(0b100011 + 0o12) + chr(0b10110 + 0o42))]], size=lQ63GAUaCN8x) for lQ63GAUaCN8x in s7m_mzVazm5K]
roI3spqORKae(rC115QJVCRma, roI3spqORKae(ES5oEprVxulp(b'\x82\xfc&\x0c'), chr(100) + chr(0b1100101) + '\x63' + chr(0b1101111) + chr(100) + '\145')(chr(5333 - 5216) + '\x74' + chr(102) + chr(0b101101) + chr(0b111000)))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xbf\xdb \x1d\x0c+\x94\xd9\xfb\x90[Y'), '\x64' + '\145' + chr(99) + chr(9024 - 8913) + '\144' + chr(0b1010011 + 0o22))(chr(9104 - 8987) + chr(10395 - 10279) + '\146' + '\x2d' + '\x38')), nzTpIcepk0o8(chr(0b1010 + 0o46) + chr(9998 - 9887) + '\x30', 0o10))
if ftfygxgFas5X(Bvi71nNyvlqO(qNz2k97qOwt4)) > nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(49), 0b1000):
RcX9bbuOzh5L = roI3spqORKae(ES5oEprVxulp(b'\xdd'), '\x64' + '\x65' + '\x63' + chr(0b1100001 + 0o16) + '\x64' + '\145')(chr(117) + chr(0b1110100) + '\x66' + chr(1519 - 1474) + '\070').Y4yM9BcfTCNq(qNz2k97qOwt4)
FfKOThdpoDTb = GSxf0bORUJRy(rC115QJVCRma, RcX9bbuOzh5L, ILBcnDQOAB62)
TMMrjsiU6eED = hXMPsSrOQzbh.get_channel_names()
if roI3spqORKae(YVS_F7_wWn_o, roI3spqORKae(ES5oEprVxulp(b'\xa1\xc0q'), '\144' + '\145' + '\x63' + '\157' + chr(100) + chr(101))('\x75' + '\164' + chr(0b100110 + 0o100) + chr(750 - 705) + chr(56))):
mOxawsdaNyZg = [SLVB2BPA_mIe.YqIaRFfeo4Ha(roI3spqORKae(ES5oEprVxulp(b'\x90\xea \x0e\x1c'), chr(100) + chr(0b110001 + 0o64) + chr(99) + '\x6f' + chr(3170 - 3070) + chr(101))(chr(0b100110 + 0o117) + chr(116) + chr(0b1100110) + chr(301 - 256) + '\x38'), errors=roI3spqORKae(ES5oEprVxulp(b'\x83\xfc3\x0b\x14\x7f\x93'), chr(0b1100100) + chr(9965 - 9864) + chr(8507 - 8408) + chr(0b1101111) + chr(0b111001 + 0o53) + chr(4055 - 3954))('\165' + chr(116) + chr(0b1100110) + '\x2d' + chr(0b111000))) for SLVB2BPA_mIe in TMMrjsiU6eED]
else:
mOxawsdaNyZg = [SLVB2BPA_mIe for SLVB2BPA_mIe in TMMrjsiU6eED]
FfKOThdpoDTb.dtype.TMMrjsiU6eED = nfNqtJL5aRaY(mOxawsdaNyZg)
else:
RcX9bbuOzh5L = qNz2k97qOwt4[nzTpIcepk0o8('\060' + chr(0b101 + 0o152) + chr(48), 8)]
FfKOThdpoDTb = GSxf0bORUJRy(rC115QJVCRma, RcX9bbuOzh5L, ILBcnDQOAB62 * khdJevo0hRYG)
FfKOThdpoDTb = FfKOThdpoDTb.reshape((ILBcnDQOAB62, khdJevo0hRYG))
ucAdPLPdO_4O = roI3spqORKae(ES5oEprVxulp(b'\xcd'), chr(0b111001 + 0o53) + '\x65' + chr(0b101 + 0o136) + chr(0b1101111) + '\144' + chr(3762 - 3661))(chr(0b1110101) + chr(5374 - 5258) + chr(0b1010000 + 0o26) + chr(0b101101) + chr(56)) if bpyfpu4kTbwL.byteorder == roI3spqORKae(ES5oEprVxulp(b'\x9d\xf07\x13\x19y'), chr(0b1100100) + chr(101) + '\x63' + chr(111) + chr(0b110011 + 0o61) + chr(3967 - 3866))(chr(0b1110101) + chr(0b1101101 + 0o7) + chr(7565 - 7463) + chr(0b101101) + chr(0b111000)) else roI3spqORKae(ES5oEprVxulp(b'\xcf'), '\144' + '\145' + chr(1475 - 1376) + chr(9465 - 9354) + chr(0b1010011 + 0o21) + '\145')('\x75' + chr(0b1110100) + chr(871 - 769) + '\055' + chr(56))
if hSewmZURlqMY != ucAdPLPdO_4O:
FfKOThdpoDTb = FfKOThdpoDTb.byteswap().newbyteorder()
hXMPsSrOQzbh.Fb5XNYcWu0O5 = FfKOThdpoDTb |
eyurtsev/fcsparser | fcsparser/api.py | FCSParser.data | def data(self):
"""Get parsed DATA segment of the FCS file."""
if self._data is None:
with open(self.path, 'rb') as f:
self.read_data(f)
return self._data | python | def data(self):
"""Get parsed DATA segment of the FCS file."""
if self._data is None:
with open(self.path, 'rb') as f:
self.read_data(f)
return self._data | [
"def",
"data",
"(",
"self",
")",
":",
"if",
"self",
".",
"_data",
"is",
"None",
":",
"with",
"open",
"(",
"self",
".",
"path",
",",
"'rb'",
")",
"as",
"f",
":",
"self",
".",
"read_data",
"(",
"f",
")",
"return",
"self",
".",
"_data"
] | Get parsed DATA segment of the FCS file. | [
"Get",
"parsed",
"DATA",
"segment",
"of",
"the",
"FCS",
"file",
"."
] | 710e8e31d4b09ff6e73d47d86770be6ca2f4282c | https://github.com/eyurtsev/fcsparser/blob/710e8e31d4b09ff6e73d47d86770be6ca2f4282c/fcsparser/api.py#L436-L441 | train | Get parsed DATA segment of the FCS file. | GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2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aa,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(48) + chr(0b1101111) + chr(0b110010) + '\062' + chr(1841 - 1792), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(9177 - 9066) + chr(0b110010) + chr(55) + chr(50), 48455 - 48447), nzTpIcepk0o8('\x30' + chr(0b1001101 + 0o42) + chr(0b100110 + 0o13) + '\062' + chr(0b110110), ord("\x08")), nzTpIcepk0o8(chr(2058 - 2010) + chr(0b1101111) + chr(0b110001) + chr(0b110110) + chr(265 - 216), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(1252 - 1202) + '\x30' + chr(0b101100 + 0o6), 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(89 - 38) + chr(0b110011) + '\x31', 32905 - 32897), nzTpIcepk0o8('\060' + chr(0b1100110 + 0o11) + '\061' + chr(0b110011) + '\x30', 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110111) + chr(2531 - 2479), 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(2162 - 2111) + chr(312 - 261) + chr(0b10000 + 0o42), 0o10), nzTpIcepk0o8('\x30' + chr(3282 - 3171) + chr(167 - 116) + chr(0b1101 + 0o47) + '\060', 9160 - 9152), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\061' + chr(48) + '\x36', 31987 - 31979), nzTpIcepk0o8(chr(1638 - 1590) + chr(1496 - 1385) + chr(0b10010 + 0o40) + chr(0b110101) + chr(112 - 60), ord("\x08")), nzTpIcepk0o8(chr(879 - 831) + chr(2239 - 2128) + '\063' + chr(53) + '\061', 27562 - 27554), nzTpIcepk0o8(chr(48) + '\157' + chr(117 - 64), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(50) + chr(50), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + '\062' + '\063' + chr(0b110101), 0o10), nzTpIcepk0o8(chr(2038 - 1990) + '\157' + chr(1972 - 1923) + chr(55) + chr(53), 5359 - 5351), nzTpIcepk0o8(chr(897 - 849) + chr(0b1101111) + '\067' + chr(0b110000 + 0o1), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(50) + '\x37' + '\062', 8), nzTpIcepk0o8(chr(0b110000 + 0o0) + chr(10853 - 10742) + chr(0b110011) + chr(0b1100 + 0o52) + chr(1794 - 1744), ord("\x08")), nzTpIcepk0o8(chr(0b111 + 0o51) + chr(9374 - 9263) + chr(51) + chr(244 - 194) + '\x34', 0o10), nzTpIcepk0o8(chr(0b101011 + 0o5) + '\157' + chr(49) + chr(54) + chr(0b110111), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(5566 - 5455) + '\061' + chr(51) + '\064', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x32' + chr(2232 - 2178) + '\062', 22447 - 22439), nzTpIcepk0o8('\x30' + '\x6f' + chr(50) + chr(53) + '\x33', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(6209 - 6098) + chr(49), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(51) + chr(2047 - 1992) + '\060', 0o10), nzTpIcepk0o8(chr(116 - 68) + chr(111) + chr(51) + chr(48) + chr(2601 - 2548), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + '\061' + chr(2046 - 1995) + chr(0b100111 + 0o20), 0b1000), nzTpIcepk0o8('\060' + chr(10832 - 10721) + chr(1222 - 1169), 8), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x35' + '\063', ord("\x08")), nzTpIcepk0o8(chr(95 - 47) + chr(0b101110 + 0o101) + chr(140 - 91) + chr(1689 - 1635) + '\x35', 7790 - 7782), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x32' + chr(48), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b100110 + 0o14) + chr(0b110000) + chr(0b110000), ord("\x08")), nzTpIcepk0o8(chr(986 - 938) + chr(0b11110 + 0o121) + chr(53) + '\067', 42127 - 42119), nzTpIcepk0o8(chr(86 - 38) + chr(0b1000000 + 0o57) + '\x33' + chr(1619 - 1571) + chr(0b110110 + 0o0), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + '\063' + '\x34' + chr(1395 - 1340), 0o10), nzTpIcepk0o8(chr(0b101101 + 0o3) + chr(8636 - 8525) + chr(0b110011) + '\067' + chr(1001 - 949), 15923 - 15915), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(1518 - 1469) + '\x31' + '\063', 11634 - 11626), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x33' + chr(2388 - 2337) + '\063', 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(1822 - 1774) + '\157' + chr(53) + '\x30', 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xbf'), chr(100) + '\x65' + chr(99) + '\x6f' + '\x64' + '\145')(chr(0b101000 + 0o115) + '\x74' + '\x66' + chr(753 - 708) + chr(2188 - 2132)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def FfKOThdpoDTb(hXMPsSrOQzbh):
if roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xd7\xd8c)\xcc\x80;k\xaf\xd0\t\x99'), chr(0b1100 + 0o130) + chr(0b1100101) + chr(99) + chr(0b1011000 + 0o27) + chr(0b1100100) + chr(0b1100101))(chr(117) + chr(10802 - 10686) + '\x66' + chr(0b101101) + chr(0b111000))) is None:
with DnU3Rq9N5ala(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xce\xca\x05(\xf3\xab7O\x94\x82\x7f\x99'), '\144' + chr(0b1100101) + '\x63' + '\x6f' + chr(9231 - 9131) + '\145')(chr(0b1100010 + 0o23) + chr(0b1110100) + chr(0b1100110) + '\055' + '\x38')), roI3spqORKae(ES5oEprVxulp(b'\xe3\xd8'), '\x64' + chr(0b1001 + 0o134) + chr(0b1100011) + chr(10176 - 10065) + '\x64' + chr(0b1100101))(chr(4423 - 4306) + chr(1739 - 1623) + chr(0b1000011 + 0o43) + chr(0b10110 + 0o27) + chr(0b111000))) as _R8IKF5IwAfX:
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xe5\xd2>\x0b\xbb\x9a\x1d_\x80\x8c\x00\xfc'), chr(0b1100100) + '\145' + '\143' + chr(9496 - 9385) + chr(0b1 + 0o143) + chr(0b111111 + 0o46))(chr(0b1110101) + chr(3422 - 3306) + '\x66' + '\x2d' + '\x38'))(_R8IKF5IwAfX)
return roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xd7\xd8c)\xcc\x80;k\xaf\xd0\t\x99'), chr(0b1100100) + chr(0b111001 + 0o54) + '\x63' + chr(4820 - 4709) + '\144' + chr(0b1100101))(chr(0b1011 + 0o152) + chr(0b1110100) + '\x66' + chr(45) + '\x38')) |
eyurtsev/fcsparser | fcsparser/api.py | FCSParser.analysis | def analysis(self):
"""Get ANALYSIS segment of the FCS file."""
if self._analysis is None:
with open(self.path, 'rb') as f:
self.read_analysis(f)
return self._analysis | python | def analysis(self):
"""Get ANALYSIS segment of the FCS file."""
if self._analysis is None:
with open(self.path, 'rb') as f:
self.read_analysis(f)
return self._analysis | [
"def",
"analysis",
"(",
"self",
")",
":",
"if",
"self",
".",
"_analysis",
"is",
"None",
":",
"with",
"open",
"(",
"self",
".",
"path",
",",
"'rb'",
")",
"as",
"f",
":",
"self",
".",
"read_analysis",
"(",
"f",
")",
"return",
"self",
".",
"_analysis"
] | Get ANALYSIS segment of the FCS file. | [
"Get",
"ANALYSIS",
"segment",
"of",
"the",
"FCS",
"file",
"."
] | 710e8e31d4b09ff6e73d47d86770be6ca2f4282c | https://github.com/eyurtsev/fcsparser/blob/710e8e31d4b09ff6e73d47d86770be6ca2f4282c/fcsparser/api.py#L444-L449 | train | Get ANALYSIS segment of the FCS 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,mBmBrDJUS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urjcUL1ssA8,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) + chr(0b111 + 0o53) + '\x34' + chr(51), 0b1000), nzTpIcepk0o8(chr(0b1100 + 0o44) + chr(0b1101111) + chr(0b110010) + chr(0b110000) + '\x31', ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(0b110011) + '\064' + chr(0b110101), 0b1000), nzTpIcepk0o8('\060' + chr(0b1000110 + 0o51) + chr(1274 - 1223) + chr(0b110011 + 0o0) + chr(2072 - 2017), 0o10), nzTpIcepk0o8(chr(0b100001 + 0o17) + chr(0b1000101 + 0o52) + chr(1316 - 1263) + chr(0b110000), 23017 - 23009), nzTpIcepk0o8('\060' + '\157' + '\065' + chr(0b110001), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(50) + '\062' + chr(1211 - 1161), 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(50) + '\x37' + '\060', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110110) + chr(1885 - 1832), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(55) + chr(0b11001 + 0o33), 54073 - 54065), nzTpIcepk0o8('\060' + chr(111) + chr(0b1000 + 0o51) + chr(55) + '\066', 49741 - 49733), nzTpIcepk0o8(chr(48) + chr(6835 - 6724) + chr(0b110011) + chr(0b10111 + 0o34) + '\063', 8636 - 8628), nzTpIcepk0o8('\060' + '\157' + '\063' + '\x36' + chr(53), 0o10), nzTpIcepk0o8(chr(48) + chr(11198 - 11087) + chr(0b10011 + 0o37) + chr(232 - 177) + chr(2113 - 2064), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(199 - 150) + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(49) + chr(52) + chr(0b110111), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x32' + '\064' + chr(0b101010 + 0o15), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(51) + '\x32' + '\x35', ord("\x08")), nzTpIcepk0o8(chr(0b10000 + 0o40) + chr(0b1010111 + 0o30) + chr(0b110011) + chr(0b110010) + '\x35', 8), nzTpIcepk0o8(chr(1674 - 1626) + '\x6f' + chr(49) + '\x35' + '\062', 33212 - 33204), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\062' + chr(51), 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(49) + chr(54) + '\067', 0o10), nzTpIcepk0o8(chr(0b10000 + 0o40) + chr(1746 - 1635) + chr(51) + '\064', 19070 - 19062), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(235 - 186) + chr(1936 - 1884) + chr(0b110101 + 0o0), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110100 + 0o2) + chr(48), 14914 - 14906), nzTpIcepk0o8('\060' + '\157' + chr(580 - 529) + chr(50) + chr(55), ord("\x08")), nzTpIcepk0o8(chr(0b1 + 0o57) + chr(111) + chr(51) + '\x32' + chr(0b1111 + 0o44), 0b1000), nzTpIcepk0o8(chr(0b1111 + 0o41) + chr(0b1101111) + chr(923 - 872) + chr(289 - 241) + chr(50), 0b1000), nzTpIcepk0o8(chr(0b101000 + 0o10) + chr(0b1101111) + chr(0b10000 + 0o43) + chr(2273 - 2223) + '\062', 9224 - 9216), nzTpIcepk0o8(chr(1180 - 1132) + '\157' + '\x32' + chr(1237 - 1183) + chr(1347 - 1296), 49780 - 49772), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110110), 0o10), nzTpIcepk0o8('\060' + chr(111) + '\x33' + chr(52) + chr(52), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b101101 + 0o102) + chr(0b100111 + 0o14) + '\x31' + '\067', ord("\x08")), nzTpIcepk0o8(chr(388 - 340) + chr(0b1101111) + chr(2573 - 2521) + chr(1199 - 1150), 33786 - 33778), nzTpIcepk0o8('\x30' + '\x6f' + '\x32' + '\061' + chr(0b1 + 0o62), 0b1000), nzTpIcepk0o8(chr(280 - 232) + chr(727 - 616) + '\061' + chr(51) + chr(0b11011 + 0o27), ord("\x08")), nzTpIcepk0o8(chr(1878 - 1830) + '\x6f' + '\062' + chr(0b110111) + chr(55), 56373 - 56365), nzTpIcepk0o8(chr(0b110000) + chr(1711 - 1600) + chr(1833 - 1783) + chr(952 - 904) + chr(1932 - 1879), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\063' + chr(0b110110) + chr(53), 8), nzTpIcepk0o8(chr(48) + '\157' + '\x33' + chr(811 - 759) + chr(50), 42529 - 42521)][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x35' + chr(0b110000), 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x8d'), chr(100) + chr(10174 - 10073) + chr(3237 - 3138) + chr(0b1010001 + 0o36) + chr(0b1100100) + chr(101))(chr(177 - 60) + '\x74' + chr(6607 - 6505) + '\x2d' + '\070') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def eBWh51EcnNXz(hXMPsSrOQzbh):
if roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xcc\xd7\xa6\x94a\x1c\xe1\xcaYwL\xb7'), chr(0b1100100) + chr(0b1100101) + chr(99) + chr(111) + chr(100) + '\x65')(chr(117) + chr(0b1110100) + chr(102) + chr(0b101101 + 0o0) + chr(56))) is None:
with DnU3Rq9N5ala(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xfc\xf1\xb6\x86Y[\xfd\xcb{^G\xee'), chr(0b111101 + 0o47) + chr(7062 - 6961) + chr(99) + chr(0b110000 + 0o77) + chr(0b1100100) + chr(0b1100101))(chr(0b111011 + 0o72) + '\164' + '\x66' + '\x2d' + chr(0b111000))), roI3spqORKae(ES5oEprVxulp(b'\xd1\xe3'), '\144' + chr(834 - 733) + chr(4112 - 4013) + '\x6f' + chr(0b1100100) + '\145')(chr(117) + '\x74' + chr(102) + chr(507 - 462) + chr(0b1001 + 0o57))) as _R8IKF5IwAfX:
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xd1\xe4\x84\xbbwH\xfc\xd9YE\r\xb2\x86'), chr(100) + chr(5350 - 5249) + chr(3871 - 3772) + chr(0b1101001 + 0o6) + '\144' + chr(0b1010 + 0o133))(chr(0b1110101) + '\164' + chr(102) + chr(0b100011 + 0o12) + chr(0b10 + 0o66)))(_R8IKF5IwAfX)
return roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xcc\xd7\xa6\x94a\x1c\xe1\xcaYwL\xb7'), chr(100) + '\x65' + chr(99) + chr(0b1011100 + 0o23) + chr(0b1011 + 0o131) + chr(0b1010000 + 0o25))('\x75' + '\164' + chr(1265 - 1163) + chr(45) + '\x38')) |
eyurtsev/fcsparser | fcsparser/api.py | FCSParser.reformat_meta | def reformat_meta(self):
"""Collect the meta data information in a more user friendly format.
Function looks through the meta data, collecting the channel related information into a
dataframe and moving it into the _channels_ key.
"""
meta = self.annotation # For shorthand (passed by reference)
channel_properties = []
for key, value in meta.items():
if key[:3] == '$P1':
if key[3] not in string.digits:
channel_properties.append(key[3:])
# Capture all the channel information in a list of lists -- used to create a data frame
channel_matrix = [
[meta.get('$P{0}{1}'.format(ch, p)) for p in channel_properties]
for ch in self.channel_numbers
]
# Remove this information from the dictionary
for ch in self.channel_numbers:
for p in channel_properties:
key = '$P{0}{1}'.format(ch, p)
if key in meta:
meta.pop(key)
num_channels = meta['$PAR']
column_names = ['$Pn{0}'.format(p) for p in channel_properties]
df = pd.DataFrame(channel_matrix, columns=column_names,
index=(1 + numpy.arange(num_channels)))
if '$PnE' in column_names:
df['$PnE'] = df['$PnE'].apply(lambda x: x.split(','))
df.index.name = 'Channel Number'
meta['_channels_'] = df
meta['_channel_names_'] = self.get_channel_names() | python | def reformat_meta(self):
"""Collect the meta data information in a more user friendly format.
Function looks through the meta data, collecting the channel related information into a
dataframe and moving it into the _channels_ key.
"""
meta = self.annotation # For shorthand (passed by reference)
channel_properties = []
for key, value in meta.items():
if key[:3] == '$P1':
if key[3] not in string.digits:
channel_properties.append(key[3:])
# Capture all the channel information in a list of lists -- used to create a data frame
channel_matrix = [
[meta.get('$P{0}{1}'.format(ch, p)) for p in channel_properties]
for ch in self.channel_numbers
]
# Remove this information from the dictionary
for ch in self.channel_numbers:
for p in channel_properties:
key = '$P{0}{1}'.format(ch, p)
if key in meta:
meta.pop(key)
num_channels = meta['$PAR']
column_names = ['$Pn{0}'.format(p) for p in channel_properties]
df = pd.DataFrame(channel_matrix, columns=column_names,
index=(1 + numpy.arange(num_channels)))
if '$PnE' in column_names:
df['$PnE'] = df['$PnE'].apply(lambda x: x.split(','))
df.index.name = 'Channel Number'
meta['_channels_'] = df
meta['_channel_names_'] = self.get_channel_names() | [
"def",
"reformat_meta",
"(",
"self",
")",
":",
"meta",
"=",
"self",
".",
"annotation",
"# For shorthand (passed by reference)",
"channel_properties",
"=",
"[",
"]",
"for",
"key",
",",
"value",
"in",
"meta",
".",
"items",
"(",
")",
":",
"if",
"key",
"[",
":",
"3",
"]",
"==",
"'$P1'",
":",
"if",
"key",
"[",
"3",
"]",
"not",
"in",
"string",
".",
"digits",
":",
"channel_properties",
".",
"append",
"(",
"key",
"[",
"3",
":",
"]",
")",
"# Capture all the channel information in a list of lists -- used to create a data frame",
"channel_matrix",
"=",
"[",
"[",
"meta",
".",
"get",
"(",
"'$P{0}{1}'",
".",
"format",
"(",
"ch",
",",
"p",
")",
")",
"for",
"p",
"in",
"channel_properties",
"]",
"for",
"ch",
"in",
"self",
".",
"channel_numbers",
"]",
"# Remove this information from the dictionary",
"for",
"ch",
"in",
"self",
".",
"channel_numbers",
":",
"for",
"p",
"in",
"channel_properties",
":",
"key",
"=",
"'$P{0}{1}'",
".",
"format",
"(",
"ch",
",",
"p",
")",
"if",
"key",
"in",
"meta",
":",
"meta",
".",
"pop",
"(",
"key",
")",
"num_channels",
"=",
"meta",
"[",
"'$PAR'",
"]",
"column_names",
"=",
"[",
"'$Pn{0}'",
".",
"format",
"(",
"p",
")",
"for",
"p",
"in",
"channel_properties",
"]",
"df",
"=",
"pd",
".",
"DataFrame",
"(",
"channel_matrix",
",",
"columns",
"=",
"column_names",
",",
"index",
"=",
"(",
"1",
"+",
"numpy",
".",
"arange",
"(",
"num_channels",
")",
")",
")",
"if",
"'$PnE'",
"in",
"column_names",
":",
"df",
"[",
"'$PnE'",
"]",
"=",
"df",
"[",
"'$PnE'",
"]",
".",
"apply",
"(",
"lambda",
"x",
":",
"x",
".",
"split",
"(",
"','",
")",
")",
"df",
".",
"index",
".",
"name",
"=",
"'Channel Number'",
"meta",
"[",
"'_channels_'",
"]",
"=",
"df",
"meta",
"[",
"'_channel_names_'",
"]",
"=",
"self",
".",
"get_channel_names",
"(",
")"
] | Collect the meta data information in a more user friendly format.
Function looks through the meta data, collecting the channel related information into a
dataframe and moving it into the _channels_ key. | [
"Collect",
"the",
"meta",
"data",
"information",
"in",
"a",
"more",
"user",
"friendly",
"format",
"."
] | 710e8e31d4b09ff6e73d47d86770be6ca2f4282c | https://github.com/eyurtsev/fcsparser/blob/710e8e31d4b09ff6e73d47d86770be6ca2f4282c/fcsparser/api.py#L451-L489 | train | Collect the meta data information in a more user friendly format. | 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(chr(0b11110 + 0o22) + chr(0b1101111) + '\x37' + chr(0b110000), 34952 - 34944), nzTpIcepk0o8(chr(1969 - 1921) + '\x6f' + '\x32' + chr(55) + chr(1743 - 1693), 40092 - 40084), nzTpIcepk0o8(chr(48) + chr(111) + '\x33' + chr(53) + chr(0b11001 + 0o35), 26229 - 26221), nzTpIcepk0o8('\060' + chr(111) + chr(49) + '\x33' + chr(50), 0b1000), nzTpIcepk0o8(chr(0b101001 + 0o7) + '\x6f' + '\x32' + '\x36' + '\x35', 0o10), nzTpIcepk0o8('\060' + chr(0b100010 + 0o115) + chr(51) + chr(48) + '\x30', 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(50) + '\063' + '\x30', 30109 - 30101), nzTpIcepk0o8(chr(0b101111 + 0o1) + chr(0b1101111) + chr(2417 - 2367) + chr(54) + chr(0b110001 + 0o6), ord("\x08")), nzTpIcepk0o8(chr(1311 - 1263) + chr(0b1101111) + '\062' + chr(50) + '\x32', 45364 - 45356), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\062' + chr(51) + chr(636 - 581), ord("\x08")), nzTpIcepk0o8('\x30' + chr(7761 - 7650) + chr(53) + chr(2896 - 2841), 0b1000), nzTpIcepk0o8(chr(2282 - 2234) + chr(4706 - 4595) + chr(0b110010) + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(1710 - 1662) + '\157' + '\063' + chr(301 - 246) + chr(48), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(0b110001) + '\061' + chr(53), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x36' + chr(0b100101 + 0o17), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(49) + chr(0b1010 + 0o52) + chr(1820 - 1766), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111 - 0) + chr(51) + chr(53) + '\x30', 6635 - 6627), nzTpIcepk0o8(chr(0b110000) + chr(0b1100010 + 0o15) + chr(0b110010) + chr(2282 - 2230) + '\x33', 0b1000), nzTpIcepk0o8(chr(1832 - 1784) + chr(0b111011 + 0o64) + chr(54) + chr(1834 - 1780), 48213 - 48205), nzTpIcepk0o8(chr(48) + '\157' + chr(51) + '\065' + chr(49), ord("\x08")), nzTpIcepk0o8(chr(0b10110 + 0o32) + chr(10287 - 10176) + '\063' + chr(0b100010 + 0o20) + chr(0b110111), 16342 - 16334), nzTpIcepk0o8(chr(0b101 + 0o53) + chr(0b1101111) + chr(917 - 866) + chr(0b11011 + 0o34) + chr(0b110011), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(51) + chr(0b101000 + 0o12) + '\x33', 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b11110 + 0o26) + '\x31', 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b100001 + 0o20) + chr(1789 - 1741) + '\061', ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(0b11101 + 0o32) + chr(0b11100 + 0o32), 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(0b11000 + 0o32) + chr(0b110100) + chr(55), ord("\x08")), nzTpIcepk0o8(chr(1567 - 1519) + chr(0b100001 + 0o116) + chr(2137 - 2086) + chr(0b110010) + '\x36', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(11546 - 11435) + chr(0b110001) + '\064' + chr(0b11000 + 0o37), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110010) + chr(48) + '\063', 0o10), nzTpIcepk0o8('\060' + chr(0b1101011 + 0o4) + chr(0b110001) + chr(0b110101), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(51) + chr(51) + chr(0b110011), 0o10), nzTpIcepk0o8(chr(0b10001 + 0o37) + '\157' + '\063' + chr(0b110111 + 0o0) + chr(2250 - 2199), 8), nzTpIcepk0o8('\x30' + chr(111) + chr(901 - 850) + '\x37' + '\x30', 8), nzTpIcepk0o8(chr(48) + chr(0b1011 + 0o144) + chr(2140 - 2089) + chr(0b101000 + 0o13) + '\060', 4152 - 4144), nzTpIcepk0o8(chr(0b110000) + chr(2593 - 2482) + chr(0b100011 + 0o21) + '\x30', 33963 - 33955), nzTpIcepk0o8(chr(0b10100 + 0o34) + chr(1652 - 1541) + chr(52) + chr(0b110111), ord("\x08")), nzTpIcepk0o8(chr(1595 - 1547) + '\x6f' + '\x33' + '\x33', 0b1000), nzTpIcepk0o8('\x30' + chr(5408 - 5297) + chr(49) + chr(0b100101 + 0o21) + chr(0b100111 + 0o13), ord("\x08")), nzTpIcepk0o8(chr(0b0 + 0o60) + chr(111) + chr(707 - 657) + '\065' + chr(48), 65254 - 65246)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b1001 + 0o47) + chr(12094 - 11983) + '\065' + chr(0b110000), 60639 - 60631)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x16'), chr(100) + chr(0b100000 + 0o105) + chr(0b1100011) + chr(6822 - 6711) + '\x64' + chr(1221 - 1120))('\165' + chr(0b1001111 + 0o45) + chr(0b10111 + 0o117) + chr(0b101101) + chr(0b111 + 0o61)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def w9ByhCtj55E7(hXMPsSrOQzbh):
DCKHhI6xLX9g = hXMPsSrOQzbh.bKP0IesFF4Pq
kHsG8hhub_4J = []
for (QYodcsDtoGq7, uV9iBiw0y_Mp) in roI3spqORKae(DCKHhI6xLX9g, roI3spqORKae(ES5oEprVxulp(b'a\xe5\x80\x14\xf0\xba\xd0\x83\xa1\xe9wx'), chr(0b110110 + 0o56) + chr(0b1010 + 0o133) + chr(99) + chr(8637 - 8526) + chr(284 - 184) + '\x65')(chr(117) + chr(12394 - 12278) + '\146' + chr(0b11011 + 0o22) + chr(0b101010 + 0o16)))():
if QYodcsDtoGq7[:nzTpIcepk0o8(chr(0b101100 + 0o4) + '\157' + chr(0b1011 + 0o50), ord("\x08"))] == roI3spqORKae(ES5oEprVxulp(b'\x1c\xea\xdf'), '\x64' + chr(4074 - 3973) + chr(918 - 819) + '\x6f' + '\144' + chr(101))(chr(444 - 327) + chr(116) + chr(102) + '\x2d' + chr(0b111000)):
if QYodcsDtoGq7[nzTpIcepk0o8('\x30' + chr(0b1010100 + 0o33) + chr(51), 8)] not in roI3spqORKae(aji3jF4_nqWL, roI3spqORKae(ES5oEprVxulp(b'\\\xdd\xad8\xdc\xf2\xeb\xce\xd4\xaf^#'), '\x64' + chr(0b1100101) + '\143' + '\x6f' + chr(0b1000111 + 0o35) + '\145')(chr(0b1110001 + 0o4) + '\x74' + '\146' + chr(45) + chr(0b111000))):
roI3spqORKae(kHsG8hhub_4J, roI3spqORKae(ES5oEprVxulp(b'p\xee\xbdn\xcd\xa7\xdf\xd8\xf8\xf0z$'), chr(100) + '\145' + chr(0b101001 + 0o72) + chr(12197 - 12086) + chr(100) + '\145')(chr(117) + chr(0b1110100) + chr(102) + '\055' + chr(56)))(QYodcsDtoGq7[nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(165 - 114), 8):])
vB5GAHVHQvh_ = [[DCKHhI6xLX9g.GUKetu4xaGsJ(roI3spqORKae(ES5oEprVxulp(b'\x1c\xea\x95j\xc8\xbb\xa9\xca'), '\144' + chr(8960 - 8859) + chr(0b1010111 + 0o14) + '\x6f' + chr(0b1110 + 0o126) + chr(101))('\165' + chr(116) + chr(10136 - 10034) + chr(0b10011 + 0o32) + chr(2668 - 2612)).q33KG3foQ_CJ(uTB8aC1qrW__, fSdw5wwLo9MO)) for fSdw5wwLo9MO in kHsG8hhub_4J] for uTB8aC1qrW__ in hXMPsSrOQzbh.UxQEIKjwEDpI]
for uTB8aC1qrW__ in roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'm\xc2\xbf\x1f\xfc\x8b\xf2\xc0\xd7\xdb_X'), '\144' + chr(1545 - 1444) + '\143' + '\x6f' + chr(0b1100100) + '\x65')(chr(6493 - 6376) + '\164' + chr(3671 - 3569) + chr(1790 - 1745) + chr(56))):
for fSdw5wwLo9MO in kHsG8hhub_4J:
QYodcsDtoGq7 = roI3spqORKae(ES5oEprVxulp(b'\x1c\xea\x95j\xc8\xbb\xa9\xca'), chr(100) + '\145' + '\143' + chr(2557 - 2446) + chr(0b1100100) + chr(101))('\x75' + chr(0b1010101 + 0o37) + '\x66' + chr(0b100011 + 0o12) + chr(56)).q33KG3foQ_CJ(uTB8aC1qrW__, fSdw5wwLo9MO)
if QYodcsDtoGq7 in DCKHhI6xLX9g:
roI3spqORKae(DCKHhI6xLX9g, roI3spqORKae(ES5oEprVxulp(b'M\xf9\xb1\x03\xda\xb9\xfa\xcf\xa5\xd5\x1fX'), chr(100) + chr(0b101010 + 0o73) + chr(99) + '\157' + chr(100) + '\x65')('\x75' + '\164' + '\x66' + chr(0b101000 + 0o5) + chr(0b111000)))(QYodcsDtoGq7)
VvxEiixh9zoR = DCKHhI6xLX9g[roI3spqORKae(ES5oEprVxulp(b'\x1c\xea\xaf\x08'), '\x64' + '\145' + chr(99) + '\x6f' + chr(100) + chr(3649 - 3548))('\x75' + chr(0b1110100) + '\x66' + chr(216 - 171) + chr(0b10001 + 0o47))]
ORu_qqzPRE7h = [roI3spqORKae(ES5oEprVxulp(b'\x1c\xea\x80!\x85\xbd'), chr(5983 - 5883) + chr(0b1100101) + chr(7194 - 7095) + chr(1710 - 1599) + chr(0b1100100) + chr(0b1100101))(chr(0b1110101) + chr(0b110101 + 0o77) + chr(8213 - 8111) + chr(649 - 604) + '\070').q33KG3foQ_CJ(fSdw5wwLo9MO) for fSdw5wwLo9MO in kHsG8hhub_4J]
jpOn8DNZxbbx = HLKt4sa1j9hm.DataFrame(vB5GAHVHQvh_, columns=ORu_qqzPRE7h, index=nzTpIcepk0o8(chr(0b0 + 0o60) + '\x6f' + chr(0b1101 + 0o44), 0o10) + L6YB9g87uxKh.chmI_GMU_sEi(VvxEiixh9zoR))
if roI3spqORKae(ES5oEprVxulp(b'\x1c\xea\x80\x1f'), chr(100) + chr(0b1100101) + chr(99) + chr(0b110111 + 0o70) + chr(100) + '\x65')('\165' + chr(0b1110100) + chr(102) + '\055' + chr(0b100010 + 0o26)) in ORu_qqzPRE7h:
jpOn8DNZxbbx[roI3spqORKae(ES5oEprVxulp(b'\x1c\xea\x80\x1f'), '\x64' + chr(0b1100101) + '\143' + chr(111) + '\x64' + chr(101))(chr(0b111 + 0o156) + chr(5298 - 5182) + chr(9130 - 9028) + '\x2d' + '\070')] = jpOn8DNZxbbx[roI3spqORKae(ES5oEprVxulp(b'\x1c\xea\x80\x1f'), '\144' + chr(8465 - 8364) + chr(409 - 310) + '\157' + chr(4346 - 4246) + '\145')('\x75' + chr(116) + '\146' + chr(0b101101) + chr(0b111000))].apply(lambda bI5jsQ9OkQtj: bI5jsQ9OkQtj.LfRrQOxuDvnC(roI3spqORKae(ES5oEprVxulp(b'\x14'), chr(1619 - 1519) + '\x65' + chr(0b10111 + 0o114) + chr(6846 - 6735) + chr(0b10000 + 0o124) + chr(0b1000010 + 0o43))(chr(0b1000 + 0o155) + '\x74' + chr(7860 - 7758) + chr(0b101101) + chr(0b111000))))
jpOn8DNZxbbx.index.SLVB2BPA_mIe = roI3spqORKae(ES5oEprVxulp(b'{\xd2\x8f4\xdb\xa5\xf4\x97\xdc\xeaBs\x9d?'), chr(0b100101 + 0o77) + chr(0b1100101) + '\143' + chr(11487 - 11376) + chr(0b1100100) + chr(101))(chr(0b1110101) + '\164' + chr(942 - 840) + '\055' + chr(0b11100 + 0o34))
DCKHhI6xLX9g[roI3spqORKae(ES5oEprVxulp(b'g\xd9\x86;\xdb\xae\xfd\xdb\xe1\xc0'), chr(0b1011011 + 0o11) + chr(101) + chr(99) + '\157' + chr(100) + chr(5282 - 5181))(chr(11161 - 11044) + '\x74' + chr(0b1100110) + '\x2d' + chr(0b111000))] = jpOn8DNZxbbx
DCKHhI6xLX9g[roI3spqORKae(ES5oEprVxulp(b'g\xd9\x86;\xdb\xae\xfd\xdb\xcd\xf1N|\x9d>k'), chr(0b1100000 + 0o4) + '\x65' + '\x63' + '\x6f' + chr(0b1100100) + chr(646 - 545))(chr(0b1110101) + chr(0b1110100) + chr(5979 - 5877) + '\x2d' + chr(1203 - 1147))] = hXMPsSrOQzbh.get_channel_names() |
eyurtsev/fcsparser | fcsparser/api.py | FCSParser.dataframe | def dataframe(self):
"""Construct Pandas dataframe."""
data = self.data
channel_names = self.get_channel_names()
return pd.DataFrame(data, columns=channel_names) | python | def dataframe(self):
"""Construct Pandas dataframe."""
data = self.data
channel_names = self.get_channel_names()
return pd.DataFrame(data, columns=channel_names) | [
"def",
"dataframe",
"(",
"self",
")",
":",
"data",
"=",
"self",
".",
"data",
"channel_names",
"=",
"self",
".",
"get_channel_names",
"(",
")",
"return",
"pd",
".",
"DataFrame",
"(",
"data",
",",
"columns",
"=",
"channel_names",
")"
] | Construct Pandas dataframe. | [
"Construct",
"Pandas",
"dataframe",
"."
] | 710e8e31d4b09ff6e73d47d86770be6ca2f4282c | https://github.com/eyurtsev/fcsparser/blob/710e8e31d4b09ff6e73d47d86770be6ca2f4282c/fcsparser/api.py#L492-L496 | train | Construct Pandas dataframe. | GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiY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UhqOt5_BbS,WtdkIpFeYozM,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(0b100010 + 0o16) + '\157' + chr(0b110001) + chr(50) + chr(52), 44612 - 44604), nzTpIcepk0o8(chr(0b11011 + 0o25) + chr(0b1101111) + chr(53) + chr(0b10100 + 0o41), ord("\x08")), nzTpIcepk0o8(chr(0b10 + 0o56) + chr(10546 - 10435) + chr(50) + chr(50) + chr(0b110011 + 0o1), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1010110 + 0o31) + '\x32' + chr(0b1111 + 0o44) + chr(0b110101), 8115 - 8107), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b100101 + 0o14) + chr(0b110111) + chr(0b10011 + 0o37), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(1702 - 1652) + chr(54) + '\067', 0o10), nzTpIcepk0o8(chr(0b100111 + 0o11) + chr(0b1101111) + chr(0b110010) + '\065' + chr(0b101000 + 0o16), 27807 - 27799), nzTpIcepk0o8('\x30' + chr(0b1000000 + 0o57) + chr(51) + chr(0b110110) + chr(1073 - 1021), 0o10), nzTpIcepk0o8('\x30' + '\157' + '\063' + chr(0b110100) + chr(0b110110), 39847 - 39839), nzTpIcepk0o8(chr(1768 - 1720) + '\x6f' + chr(49) + chr(0b110000) + chr(0b100111 + 0o17), 6069 - 6061), nzTpIcepk0o8('\060' + chr(7002 - 6891) + chr(0b110010) + chr(0b11 + 0o60) + '\067', 62229 - 62221), nzTpIcepk0o8('\060' + chr(111) + '\062' + chr(0b110000) + chr(0b110011), 0o10), nzTpIcepk0o8(chr(1675 - 1627) + chr(0b11000 + 0o127) + '\063' + chr(50) + chr(1919 - 1865), 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(53), 5994 - 5986), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(382 - 332) + chr(0b110110) + chr(55), 8), nzTpIcepk0o8(chr(0b110000) + chr(4605 - 4494) + '\x31' + chr(0b110011) + '\061', 0o10), nzTpIcepk0o8('\060' + chr(2089 - 1978) + chr(799 - 749) + chr(48) + '\062', 0o10), nzTpIcepk0o8(chr(48) + chr(0b11111 + 0o120) + '\063' + '\065' + chr(2256 - 2207), 0b1000), nzTpIcepk0o8(chr(0b1101 + 0o43) + chr(10499 - 10388) + chr(0b11011 + 0o26) + '\065' + chr(2291 - 2241), 0b1000), nzTpIcepk0o8(chr(0b11000 + 0o30) + chr(8587 - 8476) + chr(0b10110 + 0o35) + '\067' + chr(2870 - 2816), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(2085 - 2034) + chr(0b110100) + '\x31', 0b1000), nzTpIcepk0o8(chr(0b0 + 0o60) + '\157' + '\062' + chr(51) + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(832 - 784) + chr(111) + chr(0b10001 + 0o42) + chr(0b11 + 0o62), 0o10), nzTpIcepk0o8('\x30' + chr(0b10011 + 0o134) + chr(49) + chr(0b101001 + 0o14) + chr(0b11010 + 0o27), 0b1000), nzTpIcepk0o8(chr(582 - 534) + chr(0b1101111) + chr(0b110101), 8), nzTpIcepk0o8('\060' + chr(0b1101111) + '\062' + '\x33' + chr(49), 8), nzTpIcepk0o8(chr(0b110000) + chr(11523 - 11412) + '\x31', 39271 - 39263), nzTpIcepk0o8(chr(0b110000 + 0o0) + chr(0b1101111) + chr(0b111 + 0o54) + '\067' + chr(51), 0o10), nzTpIcepk0o8(chr(1737 - 1689) + chr(0b1101111) + '\063' + '\x34' + '\x37', 43430 - 43422), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b10100 + 0o37) + chr(161 - 106), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + '\062' + chr(1401 - 1347), 60756 - 60748), nzTpIcepk0o8('\060' + chr(0b1010100 + 0o33) + chr(0b110100) + chr(51), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x33' + chr(54) + '\060', 0b1000), nzTpIcepk0o8(chr(0b10 + 0o56) + chr(0b1101111) + chr(0b101100 + 0o5) + chr(50) + '\x32', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1010110 + 0o31) + chr(49) + '\061' + chr(55), 6062 - 6054), nzTpIcepk0o8('\x30' + chr(111) + '\061' + chr(0b110010) + chr(0b110001 + 0o6), 48492 - 48484), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110001) + chr(307 - 259) + '\x32', 46187 - 46179), nzTpIcepk0o8(chr(48) + chr(0b1010011 + 0o34) + chr(473 - 423) + '\x37', ord("\x08")), nzTpIcepk0o8('\x30' + chr(7692 - 7581) + chr(1324 - 1275) + chr(860 - 805) + '\064', ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + '\061' + chr(0b110010) + '\067', 8)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b0 + 0o65) + chr(48), 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'z'), chr(0b1100100) + chr(0b10000 + 0o125) + chr(5040 - 4941) + chr(0b1101101 + 0o2) + chr(0b1100100) + chr(0b1100101))(chr(0b1110101) + '\164' + chr(0b1000101 + 0o41) + '\055' + chr(0b1000 + 0o60)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def JGOfJ3ibSnmm(hXMPsSrOQzbh):
FfKOThdpoDTb = hXMPsSrOQzbh.FfKOThdpoDTb
ZrIXpbbVUbkd = hXMPsSrOQzbh.get_channel_names()
return roI3spqORKae(HLKt4sa1j9hm, roI3spqORKae(ES5oEprVxulp(b'\x10L\xe0\xfc<\xc5\xcf\x99\x83'), chr(0b1100100) + chr(0b111111 + 0o46) + chr(0b1101 + 0o126) + chr(0b1101111) + chr(0b10110 + 0o116) + chr(0b1010111 + 0o16))('\165' + chr(116) + '\146' + chr(0b101101) + chr(0b101011 + 0o15)))(FfKOThdpoDTb, columns=ZrIXpbbVUbkd) |
paylogic/pip-accel | pip_accel/bdist.py | BinaryDistributionManager.get_binary_dist | def get_binary_dist(self, requirement):
"""
Get or create a cached binary distribution archive.
:param requirement: A :class:`.Requirement` object.
:returns: An iterable of tuples with two values each: A
:class:`tarfile.TarInfo` object and a file-like object.
Gets the cached binary distribution that was previously built for the
given requirement. If no binary distribution has been cached yet, a new
binary distribution is built and added to the cache.
Uses :func:`build_binary_dist()` to build binary distribution
archives. If this fails with a build error :func:`get_binary_dist()`
will use :class:`.SystemPackageManager` to check for and install
missing system packages and retry the build when missing system
packages were installed.
"""
cache_file = self.cache.get(requirement)
if cache_file:
if self.needs_invalidation(requirement, cache_file):
logger.info("Invalidating old %s binary (source has changed) ..", requirement)
cache_file = None
else:
logger.debug("%s hasn't been cached yet, doing so now.", requirement)
if not cache_file:
# Build the binary distribution.
try:
raw_file = self.build_binary_dist(requirement)
except BuildFailed:
logger.warning("Build of %s failed, checking for missing dependencies ..", requirement)
if self.system_package_manager.install_dependencies(requirement):
raw_file = self.build_binary_dist(requirement)
else:
raise
# Transform the binary distribution archive into a form that we can re-use.
fd, transformed_file = tempfile.mkstemp(prefix='pip-accel-bdist-', suffix='.tar.gz')
try:
archive = tarfile.open(transformed_file, 'w:gz')
try:
for member, from_handle in self.transform_binary_dist(raw_file):
archive.addfile(member, from_handle)
finally:
archive.close()
# Push the binary distribution archive to all available backends.
with open(transformed_file, 'rb') as handle:
self.cache.put(requirement, handle)
finally:
# Close file descriptor before removing the temporary file.
# Without closing Windows is complaining that the file cannot
# be removed because it is used by another process.
os.close(fd)
# Cleanup the temporary file.
os.remove(transformed_file)
# Get the absolute pathname of the file in the local cache.
cache_file = self.cache.get(requirement)
# Enable checksum based cache invalidation.
self.persist_checksum(requirement, cache_file)
archive = tarfile.open(cache_file, 'r:gz')
try:
for member in archive.getmembers():
yield member, archive.extractfile(member.name)
finally:
archive.close() | python | def get_binary_dist(self, requirement):
"""
Get or create a cached binary distribution archive.
:param requirement: A :class:`.Requirement` object.
:returns: An iterable of tuples with two values each: A
:class:`tarfile.TarInfo` object and a file-like object.
Gets the cached binary distribution that was previously built for the
given requirement. If no binary distribution has been cached yet, a new
binary distribution is built and added to the cache.
Uses :func:`build_binary_dist()` to build binary distribution
archives. If this fails with a build error :func:`get_binary_dist()`
will use :class:`.SystemPackageManager` to check for and install
missing system packages and retry the build when missing system
packages were installed.
"""
cache_file = self.cache.get(requirement)
if cache_file:
if self.needs_invalidation(requirement, cache_file):
logger.info("Invalidating old %s binary (source has changed) ..", requirement)
cache_file = None
else:
logger.debug("%s hasn't been cached yet, doing so now.", requirement)
if not cache_file:
# Build the binary distribution.
try:
raw_file = self.build_binary_dist(requirement)
except BuildFailed:
logger.warning("Build of %s failed, checking for missing dependencies ..", requirement)
if self.system_package_manager.install_dependencies(requirement):
raw_file = self.build_binary_dist(requirement)
else:
raise
# Transform the binary distribution archive into a form that we can re-use.
fd, transformed_file = tempfile.mkstemp(prefix='pip-accel-bdist-', suffix='.tar.gz')
try:
archive = tarfile.open(transformed_file, 'w:gz')
try:
for member, from_handle in self.transform_binary_dist(raw_file):
archive.addfile(member, from_handle)
finally:
archive.close()
# Push the binary distribution archive to all available backends.
with open(transformed_file, 'rb') as handle:
self.cache.put(requirement, handle)
finally:
# Close file descriptor before removing the temporary file.
# Without closing Windows is complaining that the file cannot
# be removed because it is used by another process.
os.close(fd)
# Cleanup the temporary file.
os.remove(transformed_file)
# Get the absolute pathname of the file in the local cache.
cache_file = self.cache.get(requirement)
# Enable checksum based cache invalidation.
self.persist_checksum(requirement, cache_file)
archive = tarfile.open(cache_file, 'r:gz')
try:
for member in archive.getmembers():
yield member, archive.extractfile(member.name)
finally:
archive.close() | [
"def",
"get_binary_dist",
"(",
"self",
",",
"requirement",
")",
":",
"cache_file",
"=",
"self",
".",
"cache",
".",
"get",
"(",
"requirement",
")",
"if",
"cache_file",
":",
"if",
"self",
".",
"needs_invalidation",
"(",
"requirement",
",",
"cache_file",
")",
":",
"logger",
".",
"info",
"(",
"\"Invalidating old %s binary (source has changed) ..\"",
",",
"requirement",
")",
"cache_file",
"=",
"None",
"else",
":",
"logger",
".",
"debug",
"(",
"\"%s hasn't been cached yet, doing so now.\"",
",",
"requirement",
")",
"if",
"not",
"cache_file",
":",
"# Build the binary distribution.",
"try",
":",
"raw_file",
"=",
"self",
".",
"build_binary_dist",
"(",
"requirement",
")",
"except",
"BuildFailed",
":",
"logger",
".",
"warning",
"(",
"\"Build of %s failed, checking for missing dependencies ..\"",
",",
"requirement",
")",
"if",
"self",
".",
"system_package_manager",
".",
"install_dependencies",
"(",
"requirement",
")",
":",
"raw_file",
"=",
"self",
".",
"build_binary_dist",
"(",
"requirement",
")",
"else",
":",
"raise",
"# Transform the binary distribution archive into a form that we can re-use.",
"fd",
",",
"transformed_file",
"=",
"tempfile",
".",
"mkstemp",
"(",
"prefix",
"=",
"'pip-accel-bdist-'",
",",
"suffix",
"=",
"'.tar.gz'",
")",
"try",
":",
"archive",
"=",
"tarfile",
".",
"open",
"(",
"transformed_file",
",",
"'w:gz'",
")",
"try",
":",
"for",
"member",
",",
"from_handle",
"in",
"self",
".",
"transform_binary_dist",
"(",
"raw_file",
")",
":",
"archive",
".",
"addfile",
"(",
"member",
",",
"from_handle",
")",
"finally",
":",
"archive",
".",
"close",
"(",
")",
"# Push the binary distribution archive to all available backends.",
"with",
"open",
"(",
"transformed_file",
",",
"'rb'",
")",
"as",
"handle",
":",
"self",
".",
"cache",
".",
"put",
"(",
"requirement",
",",
"handle",
")",
"finally",
":",
"# Close file descriptor before removing the temporary file.",
"# Without closing Windows is complaining that the file cannot",
"# be removed because it is used by another process.",
"os",
".",
"close",
"(",
"fd",
")",
"# Cleanup the temporary file.",
"os",
".",
"remove",
"(",
"transformed_file",
")",
"# Get the absolute pathname of the file in the local cache.",
"cache_file",
"=",
"self",
".",
"cache",
".",
"get",
"(",
"requirement",
")",
"# Enable checksum based cache invalidation.",
"self",
".",
"persist_checksum",
"(",
"requirement",
",",
"cache_file",
")",
"archive",
"=",
"tarfile",
".",
"open",
"(",
"cache_file",
",",
"'r:gz'",
")",
"try",
":",
"for",
"member",
"in",
"archive",
".",
"getmembers",
"(",
")",
":",
"yield",
"member",
",",
"archive",
".",
"extractfile",
"(",
"member",
".",
"name",
")",
"finally",
":",
"archive",
".",
"close",
"(",
")"
] | Get or create a cached binary distribution archive.
:param requirement: A :class:`.Requirement` object.
:returns: An iterable of tuples with two values each: A
:class:`tarfile.TarInfo` object and a file-like object.
Gets the cached binary distribution that was previously built for the
given requirement. If no binary distribution has been cached yet, a new
binary distribution is built and added to the cache.
Uses :func:`build_binary_dist()` to build binary distribution
archives. If this fails with a build error :func:`get_binary_dist()`
will use :class:`.SystemPackageManager` to check for and install
missing system packages and retry the build when missing system
packages were installed. | [
"Get",
"or",
"create",
"a",
"cached",
"binary",
"distribution",
"archive",
"."
] | ccad1b784927a322d996db593403b1d2d2e22666 | https://github.com/paylogic/pip-accel/blob/ccad1b784927a322d996db593403b1d2d2e22666/pip_accel/bdist.py#L59-L122 | train | Gets or creates a binary distribution archive for the given requirement. | 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,aFax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9N5ala,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(7875 - 7764) + '\061' + '\063' + '\x37', ord("\x08")), nzTpIcepk0o8(chr(0b1 + 0o57) + chr(0b100111 + 0o110) + '\065' + chr(50), 0b1000), nzTpIcepk0o8(chr(0b1000 + 0o50) + chr(0b1001001 + 0o46) + chr(0b110011) + '\065' + chr(0b110111), 0o10), nzTpIcepk0o8(chr(0b100111 + 0o11) + chr(0b1011101 + 0o22) + '\066' + chr(0b110000 + 0o6), ord("\x08")), nzTpIcepk0o8('\x30' + chr(4088 - 3977) + '\063' + '\061' + chr(0b101 + 0o60), 56041 - 56033), nzTpIcepk0o8(chr(2208 - 2160) + chr(0b1100 + 0o143) + '\063' + '\x34' + '\x32', 0o10), nzTpIcepk0o8('\060' + chr(3872 - 3761) + chr(0b110010) + '\065' + chr(0b110111), 0o10), nzTpIcepk0o8(chr(2096 - 2048) + chr(0b1101111) + chr(336 - 281) + '\x33', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b110101 + 0o72) + chr(0b110001) + chr(2379 - 2329) + chr(0b110111), ord("\x08")), nzTpIcepk0o8(chr(2035 - 1987) + chr(0b1101111) + chr(0b11001 + 0o32) + chr(0b110010) + chr(659 - 610), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(2126 - 2076) + '\067' + chr(795 - 743), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1100100 + 0o13) + '\063' + chr(662 - 611) + '\x31', 42528 - 42520), nzTpIcepk0o8(chr(0b1010 + 0o46) + chr(4089 - 3978) + chr(0b110011) + chr(54) + chr(0b1010 + 0o51), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(50) + '\x35' + chr(0b110011), 5695 - 5687), nzTpIcepk0o8(chr(0b10111 + 0o31) + chr(111) + '\061' + chr(51) + '\062', 53509 - 53501), nzTpIcepk0o8(chr(0b1000 + 0o50) + chr(111) + chr(0b110001) + '\066' + chr(55), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(51) + chr(0b11011 + 0o33) + chr(51), 8), nzTpIcepk0o8(chr(0b100010 + 0o16) + '\157' + chr(49) + '\x30' + '\x35', 0o10), nzTpIcepk0o8('\x30' + chr(0b1000010 + 0o55) + chr(49) + '\x36' + chr(0b111 + 0o51), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1011101 + 0o22) + chr(49) + '\062' + chr(0b1001 + 0o52), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b11101 + 0o122) + chr(50) + '\x35' + chr(50), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(51) + chr(0b110010) + chr(53), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + '\061' + chr(53) + chr(2724 - 2670), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\066' + chr(2195 - 2147), 17895 - 17887), nzTpIcepk0o8(chr(1187 - 1139) + chr(0b1101111) + '\x31' + '\063' + chr(54), 62552 - 62544), nzTpIcepk0o8(chr(0b110000) + chr(0b101111 + 0o100) + chr(49) + chr(0b1001 + 0o52) + chr(0b11001 + 0o34), 0b1000), nzTpIcepk0o8(chr(0b100101 + 0o13) + chr(0b1101111) + chr(0b110010) + chr(0b101010 + 0o13) + chr(1962 - 1907), 8), nzTpIcepk0o8(chr(48) + '\157' + chr(54) + chr(0b110011), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\062' + chr(52) + chr(0b110110), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(1056 - 1006) + '\064' + chr(2178 - 2130), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110001) + chr(0b1111 + 0o42) + chr(0b110011), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b100110 + 0o111) + chr(907 - 858) + '\x31' + '\061', 0o10), nzTpIcepk0o8('\060' + chr(7407 - 7296) + '\x33' + chr(0b110110) + chr(0b101100 + 0o6), 61262 - 61254), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b1101 + 0o45) + chr(0b110101) + chr(0b11110 + 0o26), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + '\063' + '\064' + chr(0b110101), 7048 - 7040), nzTpIcepk0o8('\x30' + chr(10466 - 10355) + chr(0b110010) + '\064', ord("\x08")), nzTpIcepk0o8(chr(1487 - 1439) + '\157' + chr(0b110001) + chr(0b110011) + chr(48), 589 - 581), nzTpIcepk0o8(chr(48) + chr(391 - 280) + chr(0b1111 + 0o42) + '\x31' + chr(48), ord("\x08")), nzTpIcepk0o8(chr(497 - 449) + chr(111) + '\x32' + chr(0b101100 + 0o10) + chr(0b10011 + 0o36), 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(1693 - 1642) + '\x30' + chr(0b110101), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + chr(0b1011111 + 0o20) + '\x35' + '\060', 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'q'), chr(1034 - 934) + chr(0b1100101) + chr(0b1100011) + '\157' + '\144' + chr(0b1010110 + 0o17))('\x75' + chr(0b110110 + 0o76) + '\146' + chr(45) + chr(1635 - 1579)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def nTA3_0DT6IrK(hXMPsSrOQzbh, NV8n4uYfBVFE):
a0w4tcI8BY8Z = hXMPsSrOQzbh.cache.GUKetu4xaGsJ(NV8n4uYfBVFE)
if a0w4tcI8BY8Z:
if roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'1O\x8aR\xbe\xbd\xc6U!\xb0\xd0\xb0\x97\xca.\x1e\x9c+'), chr(100) + chr(101) + chr(0b1001110 + 0o25) + chr(111) + '\x64' + '\x65')(chr(12589 - 12472) + chr(10146 - 10030) + chr(3514 - 3412) + chr(667 - 622) + '\x38'))(NV8n4uYfBVFE, a0w4tcI8BY8Z):
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'6R\xa1N\xf4\xae\xd8df\xb6\xce\x96'), '\144' + '\145' + chr(99) + '\x6f' + chr(100) + '\145')(chr(0b1110101) + '\x74' + '\146' + '\x2d' + chr(0b111000)))(roI3spqORKae(ES5oEprVxulp(b'\x16D\x99W\xa1\x8b\xcbZ#\xb8\xd2\xbe\xd3\xc46\x13\xd3`\x03s\xc8\xbc\x00Q,$\x8f\x1b\xd5\xcf>;\x91\xc9\xc5|9;\x81\xa67K\x81Q\xa8\x86\x86\x1by\xff'), '\x64' + chr(0b1001110 + 0o27) + chr(0b1100011) + chr(0b110110 + 0o71) + chr(100) + chr(8262 - 8161))('\x75' + '\x74' + '\146' + chr(0b101101) + chr(0b101111 + 0o11)), NV8n4uYfBVFE)
a0w4tcI8BY8Z = None
else:
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'8k\xd6l\xf4\x86\xc0\r\x02\xbc\xf9\x83'), chr(6657 - 6557) + chr(101) + chr(0b1100011) + chr(111) + chr(4873 - 4773) + chr(0b101110 + 0o67))(chr(117) + chr(12217 - 12101) + '\146' + chr(471 - 426) + '\x38'))(roI3spqORKae(ES5oEprVxulp(b"zY\xcf^\xac\x91\xc1\x1c#\xf1\xde\xbc\x96\xc5z\x14\x92&\x186\xce\xf5\x17U*q\x8fW\xc9\xc9%.\xd2\xdf\x8a46'\xd6\xeb"), chr(0b1001011 + 0o31) + '\x65' + chr(0b1100011) + chr(4362 - 4251) + chr(5674 - 5574) + '\145')('\x75' + chr(12889 - 12773) + chr(7425 - 7323) + chr(0b101101) + chr(0b111000)), NV8n4uYfBVFE)
if not a0w4tcI8BY8Z:
try:
p0wFicSvpPPl = hXMPsSrOQzbh.build_binary_dist(NV8n4uYfBVFE)
except y7b9ihM5sV5t:
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'(K\x9dX\xa4\x8c\xc8'), chr(0b11000 + 0o114) + '\145' + chr(0b1100011) + chr(0b10101 + 0o132) + chr(100) + '\145')(chr(7261 - 7144) + '\x74' + chr(0b1100110) + chr(1456 - 1411) + chr(0b111000)))(roI3spqORKae(ES5oEprVxulp(b'\x1d_\x86Z\xa9\xc2\xc0]w\xf4\xcf\xf9\x95\xca3\x1b\x96!\\s\xc9\xbd\x0bS54\xc1T\x86\xc6$;\xd2\xc1\x8cg+!\xcf\xa2\x7fN\x8aF\xa8\x8c\xcb^9\xb2\xd5\xbc\x80\x8btY'), chr(0b1100100) + chr(101) + chr(99) + chr(111) + chr(100) + chr(4267 - 4166))(chr(117) + chr(0b1011110 + 0o26) + chr(102) + chr(0b10000 + 0o35) + chr(0b100000 + 0o30)), NV8n4uYfBVFE)
if roI3spqORKae(hXMPsSrOQzbh.system_package_manager, roI3spqORKae(ES5oEprVxulp(b'6D\x9cB\xac\x8e\xc3d3\xb4\xcc\xbc\x9d\xcf?\x19\x90,\x15 '), chr(100) + chr(0b1010 + 0o133) + chr(99) + chr(0b1101111) + chr(4369 - 4269) + '\145')('\165' + chr(0b1110100) + '\146' + chr(0b101101) + chr(0b111000)))(NV8n4uYfBVFE):
p0wFicSvpPPl = hXMPsSrOQzbh.build_binary_dist(NV8n4uYfBVFE)
else:
raise
(RW6jRKOlF6C5, lkY6XfgiBjJb) = VfV2QW3Td2UZ.mkstemp(prefix=roI3spqORKae(ES5oEprVxulp(b'/C\x9f\x1b\xac\x81\xcc^;\xfc\xde\xbd\x9a\xd8.Z'), '\x64' + chr(5804 - 5703) + '\143' + '\x6f' + chr(0b1100100) + chr(3182 - 3081))(chr(0b10111 + 0o136) + chr(0b11111 + 0o125) + chr(0b111000 + 0o56) + chr(255 - 210) + chr(56)), suffix=roI3spqORKae(ES5oEprVxulp(b'q^\x8eD\xe3\x85\xd5'), chr(100) + chr(0b100111 + 0o76) + chr(1409 - 1310) + '\157' + '\144' + '\145')(chr(117) + '\164' + '\146' + '\055' + '\070'))
try:
dBcxfKxmLMYL = aDxSytA60vow.DnU3Rq9N5ala(lkY6XfgiBjJb, roI3spqORKae(ES5oEprVxulp(b'(\x10\x88L'), '\144' + '\x65' + '\143' + chr(111) + '\x64' + '\145')(chr(7416 - 7299) + chr(116) + chr(102) + '\x2d' + chr(56)))
try:
for (hpZQRtyjIUcR, zjLw4x2r9z4p) in roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'+X\x8eX\xbe\x84\xc0I:\x8e\xde\xb0\x9d\xca(\x0e\xac!\x19 \xde'), '\x64' + chr(0b101 + 0o140) + '\143' + chr(0b1101111) + chr(100) + chr(0b1100101))('\x75' + chr(0b1110100) + chr(6816 - 6714) + '\055' + '\x38'))(p0wFicSvpPPl):
roI3spqORKae(dBcxfKxmLMYL, roI3spqORKae(ES5oEprVxulp(b'>N\x8bP\xa4\x8e\xca'), chr(1713 - 1613) + chr(101) + chr(0b1100011) + chr(9148 - 9037) + '\x64' + chr(1361 - 1260))(chr(11005 - 10888) + chr(0b1110011 + 0o1) + chr(102) + chr(0b100011 + 0o12) + '\x38'))(hpZQRtyjIUcR, zjLw4x2r9z4p)
finally:
roI3spqORKae(dBcxfKxmLMYL, roI3spqORKae(ES5oEprVxulp(b'\x05O\x9e\x01\x8e\x81\xc9\x02\x02\xb5\x84\xb3'), '\144' + chr(101) + chr(0b1100011) + chr(0b100001 + 0o116) + chr(100) + chr(8433 - 8332))(chr(0b1110101) + '\x74' + '\x66' + '\055' + '\070'))()
with DnU3Rq9N5ala(lkY6XfgiBjJb, roI3spqORKae(ES5oEprVxulp(b'-H'), '\144' + chr(0b1001010 + 0o33) + '\143' + '\157' + chr(0b1000101 + 0o37) + '\145')(chr(0b1110101) + chr(116) + chr(0b110101 + 0o61) + chr(45) + chr(0b111000))) as ecbIicWlHedY:
roI3spqORKae(hXMPsSrOQzbh.cache, roI3spqORKae(ES5oEprVxulp(b'/_\x9b'), '\x64' + chr(101) + chr(2210 - 2111) + chr(0b1101111) + '\144' + chr(780 - 679))(chr(0b100 + 0o161) + chr(0b1110100) + chr(0b1100110) + chr(0b101101) + chr(2490 - 2434)))(NV8n4uYfBVFE, ecbIicWlHedY)
finally:
roI3spqORKae(aHUqKstZLeS6, roI3spqORKae(ES5oEprVxulp(b'\x05O\x9e\x01\x8e\x81\xc9\x02\x02\xb5\x84\xb3'), chr(9807 - 9707) + chr(0b1011010 + 0o13) + chr(0b1100011) + chr(111) + '\144' + '\145')(chr(0b1110101) + chr(116) + chr(0b1000111 + 0o37) + '\x2d' + '\x38'))(RW6jRKOlF6C5)
roI3spqORKae(aHUqKstZLeS6, roI3spqORKae(ES5oEprVxulp(b'/g\x83c\xa5\x86\x9dq:\x9a\xfd\x9c'), chr(100) + chr(0b1100101) + '\x63' + chr(0b1100010 + 0o15) + chr(0b110100 + 0o60) + '\x65')('\x75' + chr(5153 - 5037) + chr(0b100100 + 0o102) + chr(0b10 + 0o53) + '\x38'))(lkY6XfgiBjJb)
a0w4tcI8BY8Z = hXMPsSrOQzbh.cache.GUKetu4xaGsJ(NV8n4uYfBVFE)
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'/O\x9dE\xa4\x91\xdbd4\xb9\xd9\xba\x98\xd8/\x1a'), chr(1884 - 1784) + chr(101) + '\x63' + chr(10907 - 10796) + '\x64' + '\145')(chr(117) + '\164' + chr(0b10011 + 0o123) + chr(0b101 + 0o50) + '\070'))(NV8n4uYfBVFE, a0w4tcI8BY8Z)
dBcxfKxmLMYL = aDxSytA60vow.DnU3Rq9N5ala(a0w4tcI8BY8Z, roI3spqORKae(ES5oEprVxulp(b'-\x10\x88L'), '\144' + chr(0b1100101) + '\143' + chr(0b1101111) + '\144' + '\x65')(chr(0b1100101 + 0o20) + chr(116) + chr(102) + '\055' + chr(0b1100 + 0o54)))
try:
for hpZQRtyjIUcR in roI3spqORKae(dBcxfKxmLMYL, roI3spqORKae(ES5oEprVxulp(b'8O\x9b[\xa8\x8f\xcd^%\xa2'), '\x64' + chr(101) + chr(0b1100011) + chr(0b1011100 + 0o23) + chr(819 - 719) + '\145')(chr(0b1100111 + 0o16) + chr(0b1110100) + chr(102) + chr(0b101101) + chr(0b111000)))():
yield (hpZQRtyjIUcR, roI3spqORKae(dBcxfKxmLMYL, roI3spqORKae(ES5oEprVxulp(b':R\x9bD\xac\x81\xdb]>\xbd\xd9'), chr(100) + chr(0b1100101) + chr(6124 - 6025) + '\157' + chr(100) + chr(7789 - 7688))(chr(0b1110101) + chr(0b1110100) + chr(0b1100110) + '\x2d' + chr(56)))(roI3spqORKae(hpZQRtyjIUcR, roI3spqORKae(ES5oEprVxulp(b'\x0cf\xb9t\xff\xa0\xffz\x08\xbc\xf5\xbc'), chr(0b1100011 + 0o1) + '\x65' + chr(7332 - 7233) + chr(111) + chr(0b1100100) + chr(0b1010110 + 0o17))(chr(0b1011001 + 0o34) + chr(116) + chr(0b1100110) + '\x2d' + chr(56)))))
finally:
roI3spqORKae(dBcxfKxmLMYL, roI3spqORKae(ES5oEprVxulp(b'\x05O\x9e\x01\x8e\x81\xc9\x02\x02\xb5\x84\xb3'), '\144' + chr(0b10010 + 0o123) + chr(0b1100011) + '\x6f' + '\x64' + chr(6351 - 6250))('\165' + '\x74' + chr(0b1100110) + chr(0b101101) + '\x38'))() |
paylogic/pip-accel | pip_accel/bdist.py | BinaryDistributionManager.needs_invalidation | def needs_invalidation(self, requirement, cache_file):
"""
Check whether a cached binary distribution needs to be invalidated.
:param requirement: A :class:`.Requirement` object.
:param cache_file: The pathname of a cached binary distribution (a string).
:returns: :data:`True` if the cached binary distribution needs to be
invalidated, :data:`False` otherwise.
"""
if self.config.trust_mod_times:
return requirement.last_modified > os.path.getmtime(cache_file)
else:
checksum = self.recall_checksum(cache_file)
return checksum and checksum != requirement.checksum | python | def needs_invalidation(self, requirement, cache_file):
"""
Check whether a cached binary distribution needs to be invalidated.
:param requirement: A :class:`.Requirement` object.
:param cache_file: The pathname of a cached binary distribution (a string).
:returns: :data:`True` if the cached binary distribution needs to be
invalidated, :data:`False` otherwise.
"""
if self.config.trust_mod_times:
return requirement.last_modified > os.path.getmtime(cache_file)
else:
checksum = self.recall_checksum(cache_file)
return checksum and checksum != requirement.checksum | [
"def",
"needs_invalidation",
"(",
"self",
",",
"requirement",
",",
"cache_file",
")",
":",
"if",
"self",
".",
"config",
".",
"trust_mod_times",
":",
"return",
"requirement",
".",
"last_modified",
">",
"os",
".",
"path",
".",
"getmtime",
"(",
"cache_file",
")",
"else",
":",
"checksum",
"=",
"self",
".",
"recall_checksum",
"(",
"cache_file",
")",
"return",
"checksum",
"and",
"checksum",
"!=",
"requirement",
".",
"checksum"
] | Check whether a cached binary distribution needs to be invalidated.
:param requirement: A :class:`.Requirement` object.
:param cache_file: The pathname of a cached binary distribution (a string).
:returns: :data:`True` if the cached binary distribution needs to be
invalidated, :data:`False` otherwise. | [
"Check",
"whether",
"a",
"cached",
"binary",
"distribution",
"needs",
"to",
"be",
"invalidated",
"."
] | ccad1b784927a322d996db593403b1d2d2e22666 | https://github.com/paylogic/pip-accel/blob/ccad1b784927a322d996db593403b1d2d2e22666/pip_accel/bdist.py#L124-L137 | train | Checks whether a cached binary distribution needs to be invalidated. | GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyq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6,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('\x30' + chr(0b1101111) + chr(2786 - 2733) + chr(0b110111), 0o10), nzTpIcepk0o8('\x30' + chr(2903 - 2792) + chr(0b110010) + chr(51) + chr(0b110010), 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(49) + chr(49) + chr(55), 0o10), nzTpIcepk0o8(chr(213 - 165) + chr(9777 - 9666) + chr(0b100111 + 0o13) + '\067' + chr(0b110001 + 0o1), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(50) + chr(0b110101 + 0o1), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(920 - 870) + chr(0b110010) + chr(52), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + '\x32' + chr(0b110100 + 0o3) + chr(0b110101), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x32' + '\x34' + '\x35', 0o10), nzTpIcepk0o8(chr(0b1011 + 0o45) + chr(0b10010 + 0o135) + '\063' + chr(0b100011 + 0o16) + chr(55), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110011) + '\x33' + chr(318 - 264), 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(2748 - 2695) + chr(0b110110), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110001) + chr(0b110001 + 0o1) + chr(0b11100 + 0o32), 3717 - 3709), nzTpIcepk0o8(chr(0b1011 + 0o45) + chr(111) + chr(2005 - 1954) + chr(410 - 358) + chr(2002 - 1952), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(53) + '\x32', 0o10), nzTpIcepk0o8(chr(0b100000 + 0o20) + chr(111) + '\063' + chr(52) + '\x30', 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x31' + '\x31' + chr(0b11 + 0o57), 30225 - 30217), nzTpIcepk0o8('\x30' + chr(111) + chr(1843 - 1793) + '\067' + '\067', ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(674 - 625) + '\060' + chr(1620 - 1565), 0b1000), nzTpIcepk0o8(chr(2016 - 1968) + '\x6f' + chr(1631 - 1582) + '\x35' + chr(0b10100 + 0o35), 40821 - 40813), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b11 + 0o56) + chr(186 - 131) + chr(1683 - 1635), ord("\x08")), nzTpIcepk0o8(chr(1127 - 1079) + chr(1770 - 1659) + chr(0b110111) + chr(0b101011 + 0o14), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(50) + '\x35', 0o10), nzTpIcepk0o8(chr(564 - 516) + chr(0b1101111) + '\063' + '\060' + chr(0b110110), 53813 - 53805), nzTpIcepk0o8('\060' + '\x6f' + '\063' + chr(0b110010), 0o10), nzTpIcepk0o8(chr(1375 - 1327) + '\x6f' + '\x36' + chr(0b110100), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110001) + chr(526 - 474) + '\x31', 0o10), nzTpIcepk0o8('\060' + chr(0b10100 + 0o133) + chr(0b110011) + chr(985 - 935) + chr(0b110010), 48453 - 48445), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\061' + chr(49) + '\x34', 0b1000), nzTpIcepk0o8(chr(165 - 117) + chr(0b1101101 + 0o2) + '\x31' + '\x32' + chr(1596 - 1545), 44163 - 44155), nzTpIcepk0o8(chr(0b110000) + chr(7374 - 7263) + chr(0b1100 + 0o45) + '\065' + chr(0b11100 + 0o25), 8), nzTpIcepk0o8(chr(48) + chr(111) + chr(2631 - 2576) + chr(0b1011 + 0o53), ord("\x08")), nzTpIcepk0o8(chr(0b100010 + 0o16) + chr(0b10100 + 0o133) + '\x33' + chr(0b1 + 0o66) + chr(51), 0o10), nzTpIcepk0o8(chr(175 - 127) + chr(111) + chr(0b110011) + chr(0b110000) + '\060', 44704 - 44696), nzTpIcepk0o8(chr(48) + '\x6f' + chr(481 - 426) + '\x31', 1918 - 1910), nzTpIcepk0o8(chr(0b110000) + chr(0b1010000 + 0o37) + chr(0b11011 + 0o30) + '\067' + chr(53), 0o10), nzTpIcepk0o8(chr(0b11100 + 0o24) + '\157' + chr(0b110011) + chr(0b110001) + '\x32', 0b1000), nzTpIcepk0o8('\060' + chr(8456 - 8345) + '\x31' + chr(0b100010 + 0o17) + chr(0b11111 + 0o21), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110001) + chr(0b100110 + 0o20) + '\067', 0b1000), nzTpIcepk0o8(chr(0b11101 + 0o23) + '\157' + chr(51) + chr(0b110001) + chr(0b1 + 0o62), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b11101 + 0o26) + chr(50) + chr(54), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + chr(0b11101 + 0o122) + chr(0b101111 + 0o6) + '\060', 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x01'), chr(100) + '\145' + chr(99) + chr(0b1101111) + '\144' + chr(0b1100101))(chr(117) + chr(116) + '\x66' + chr(0b101101) + chr(0b10001 + 0o47)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def wStvFcNFFrjM(hXMPsSrOQzbh, NV8n4uYfBVFE, a0w4tcI8BY8Z):
if roI3spqORKae(hXMPsSrOQzbh.config, roI3spqORKae(ES5oEprVxulp(b'[\xe8:\xc9b\xcb\xd0\xca\xab\x81Z?\x8fO\x93'), chr(0b1100100) + chr(0b1100101 + 0o0) + '\143' + chr(111) + '\x64' + '\145')(chr(0b1010000 + 0o45) + chr(5073 - 4957) + '\x66' + chr(0b11101 + 0o20) + chr(366 - 310))):
return roI3spqORKae(NV8n4uYfBVFE, roI3spqORKae(ES5oEprVxulp(b'W\xed\x07\xcff\xf7\x8f\xc1\x9f\x99V!'), '\x64' + chr(8405 - 8304) + chr(0b1100011) + chr(8152 - 8041) + chr(100) + chr(101))(chr(117) + chr(0b10011 + 0o141) + chr(102) + chr(45) + '\070')) > roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'H\xff;\xd7b\xfd\xd0\xc0'), '\x64' + '\x65' + chr(5565 - 5466) + chr(3376 - 3265) + '\x64' + '\x65')('\165' + '\164' + '\x66' + chr(45) + chr(56)))(a0w4tcI8BY8Z)
else:
xlDjDs59gXBe = hXMPsSrOQzbh.recall_checksum(a0w4tcI8BY8Z)
return xlDjDs59gXBe and xlDjDs59gXBe != roI3spqORKae(NV8n4uYfBVFE, roI3spqORKae(ES5oEprVxulp(b'W\xf6\x0b\xd0R\xe7\x88\x9c\xa8\x86l3'), chr(9616 - 9516) + '\x65' + '\143' + '\x6f' + chr(0b110001 + 0o63) + chr(0b1011110 + 0o7))('\x75' + chr(0b111111 + 0o65) + chr(0b1011101 + 0o11) + '\055' + chr(2368 - 2312))) |
paylogic/pip-accel | pip_accel/bdist.py | BinaryDistributionManager.recall_checksum | def recall_checksum(self, cache_file):
"""
Get the checksum of the input used to generate a binary distribution archive.
:param cache_file: The pathname of the binary distribution archive (a string).
:returns: The checksum (a string) or :data:`None` (when no checksum is available).
"""
# EAFP instead of LBYL because of concurrency between pip-accel
# processes (https://docs.python.org/2/glossary.html#term-lbyl).
checksum_file = '%s.txt' % cache_file
try:
with open(checksum_file) as handle:
contents = handle.read()
return contents.strip()
except IOError as e:
if e.errno == errno.ENOENT:
# Gracefully handle missing checksum files.
return None
else:
# Don't swallow exceptions we don't expect!
raise | python | def recall_checksum(self, cache_file):
"""
Get the checksum of the input used to generate a binary distribution archive.
:param cache_file: The pathname of the binary distribution archive (a string).
:returns: The checksum (a string) or :data:`None` (when no checksum is available).
"""
# EAFP instead of LBYL because of concurrency between pip-accel
# processes (https://docs.python.org/2/glossary.html#term-lbyl).
checksum_file = '%s.txt' % cache_file
try:
with open(checksum_file) as handle:
contents = handle.read()
return contents.strip()
except IOError as e:
if e.errno == errno.ENOENT:
# Gracefully handle missing checksum files.
return None
else:
# Don't swallow exceptions we don't expect!
raise | [
"def",
"recall_checksum",
"(",
"self",
",",
"cache_file",
")",
":",
"# EAFP instead of LBYL because of concurrency between pip-accel",
"# processes (https://docs.python.org/2/glossary.html#term-lbyl).",
"checksum_file",
"=",
"'%s.txt'",
"%",
"cache_file",
"try",
":",
"with",
"open",
"(",
"checksum_file",
")",
"as",
"handle",
":",
"contents",
"=",
"handle",
".",
"read",
"(",
")",
"return",
"contents",
".",
"strip",
"(",
")",
"except",
"IOError",
"as",
"e",
":",
"if",
"e",
".",
"errno",
"==",
"errno",
".",
"ENOENT",
":",
"# Gracefully handle missing checksum files.",
"return",
"None",
"else",
":",
"# Don't swallow exceptions we don't expect!",
"raise"
] | Get the checksum of the input used to generate a binary distribution archive.
:param cache_file: The pathname of the binary distribution archive (a string).
:returns: The checksum (a string) or :data:`None` (when no checksum is available). | [
"Get",
"the",
"checksum",
"of",
"the",
"input",
"used",
"to",
"generate",
"a",
"binary",
"distribution",
"archive",
"."
] | ccad1b784927a322d996db593403b1d2d2e22666 | https://github.com/paylogic/pip-accel/blob/ccad1b784927a322d996db593403b1d2d2e22666/pip_accel/bdist.py#L139-L159 | train | Get the checksum of the input used to generate a binary distribution archive. | 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,IA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XQk26HKr,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' + chr(0b101011 + 0o6) + '\066' + chr(0b110000), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b10100 + 0o36) + chr(54) + chr(0b110110), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + '\x33' + chr(0b110100) + chr(0b10100 + 0o42), 0b1000), nzTpIcepk0o8('\x30' + chr(2110 - 1999) + '\x31' + chr(1981 - 1933) + chr(0b10100 + 0o35), 64620 - 64612), nzTpIcepk0o8(chr(0b110000) + chr(11628 - 11517) + '\x35' + chr(1938 - 1886), 0b1000), nzTpIcepk0o8(chr(0b101100 + 0o4) + '\x6f' + chr(50) + '\062' + '\067', 11454 - 11446), nzTpIcepk0o8(chr(48) + '\157' + chr(51) + chr(53) + '\x37', 23152 - 23144), nzTpIcepk0o8(chr(1321 - 1273) + chr(0b1101111) + chr(0b1001 + 0o52) + chr(0b100010 + 0o16) + '\062', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\063' + '\x33' + '\x36', 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(614 - 564) + chr(362 - 313) + chr(437 - 382), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x33' + '\x32' + '\x30', 33975 - 33967), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(49) + chr(2554 - 2500) + chr(0b101100 + 0o7), ord("\x08")), nzTpIcepk0o8(chr(0b10111 + 0o31) + '\157' + chr(0b100 + 0o55) + chr(50) + chr(0b110011), ord("\x08")), nzTpIcepk0o8(chr(576 - 528) + '\x6f' + chr(0b10111 + 0o33) + chr(2317 - 2267) + '\x36', 59531 - 59523), nzTpIcepk0o8(chr(48) + '\157' + chr(0b100000 + 0o21) + chr(0b110010) + '\067', 0o10), nzTpIcepk0o8('\x30' + chr(111) + '\x31' + '\061' + chr(0b110110), 44625 - 44617), nzTpIcepk0o8(chr(48) + chr(111) + '\061' + chr(54) + '\x32', 0b1000), nzTpIcepk0o8(chr(1070 - 1022) + chr(111) + '\062' + chr(0b101 + 0o56) + chr(0b110000), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + '\x31' + chr(0b110000) + chr(0b101111 + 0o6), 0b1000), nzTpIcepk0o8('\060' + '\157' + chr(51) + '\066' + chr(0b110000), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(1530 - 1419) + '\x33' + chr(0b10010 + 0o45) + chr(1332 - 1282), 0o10), nzTpIcepk0o8(chr(109 - 61) + '\157' + chr(49) + '\x37' + '\x35', 0o10), nzTpIcepk0o8(chr(0b101010 + 0o6) + '\x6f' + '\x33' + chr(0b110110) + chr(0b100100 + 0o22), 0b1000), nzTpIcepk0o8(chr(360 - 312) + chr(0b1101111) + '\063' + chr(468 - 420) + chr(1061 - 1012), 18330 - 18322), nzTpIcepk0o8(chr(48) + chr(111) + '\x33' + '\064' + chr(769 - 716), 0o10), nzTpIcepk0o8(chr(0b10111 + 0o31) + chr(111) + chr(0b110011) + chr(0b110100) + '\x30', 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(50) + chr(49) + '\x31', 36108 - 36100), nzTpIcepk0o8(chr(0b10100 + 0o34) + '\157' + chr(54) + '\063', 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + '\x33' + chr(0b110101) + chr(205 - 156), 56469 - 56461), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b1111 + 0o44) + '\064' + chr(0b110100 + 0o3), 0o10), nzTpIcepk0o8(chr(0b11 + 0o55) + chr(0b1101111) + chr(0b100101 + 0o16) + '\x33' + chr(0b10110 + 0o40), 8), nzTpIcepk0o8(chr(0b101010 + 0o6) + '\157' + chr(51) + '\061' + '\067', 0b1000), nzTpIcepk0o8('\x30' + chr(0b11100 + 0o123) + chr(51) + '\x35' + chr(55), 8), nzTpIcepk0o8(chr(0b10010 + 0o36) + chr(0b1101111) + chr(2668 - 2615), 0o10), nzTpIcepk0o8('\x30' + chr(9658 - 9547) + chr(1185 - 1136) + chr(2422 - 2370), 63656 - 63648), nzTpIcepk0o8('\x30' + '\x6f' + chr(2771 - 2718) + chr(0b100000 + 0o21), 43842 - 43834), nzTpIcepk0o8(chr(48) + '\157' + chr(49) + '\067' + chr(880 - 828), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1000101 + 0o52) + chr(0b101000 + 0o11) + chr(0b10111 + 0o34) + chr(0b110011), 0o10), nzTpIcepk0o8(chr(2283 - 2235) + '\157' + chr(51) + chr(0b110110) + chr(452 - 404), 8), nzTpIcepk0o8(chr(376 - 328) + chr(0b10010 + 0o135) + chr(50) + '\x34' + chr(0b1110 + 0o47), 939 - 931)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110101) + '\060', 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'^'), chr(0b10110 + 0o116) + chr(101) + '\x63' + chr(111) + '\x64' + chr(0b10000 + 0o125))(chr(9582 - 9465) + '\x74' + chr(0b100100 + 0o102) + chr(45) + '\x38') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def DODd34nm41Au(hXMPsSrOQzbh, a0w4tcI8BY8Z):
GMZStLrSqN1d = roI3spqORKae(ES5oEprVxulp(b'U\xc5\xc85T\xe3'), chr(100) + chr(0b1011001 + 0o14) + '\x63' + '\157' + chr(0b110111 + 0o55) + chr(101))('\165' + chr(116) + '\146' + chr(0b11101 + 0o20) + '\070') % a0w4tcI8BY8Z
try:
with DnU3Rq9N5ala(GMZStLrSqN1d) as ecbIicWlHedY:
Pbl0gxeZ3EHD = ecbIicWlHedY.eoXknH7XUn7m()
return roI3spqORKae(Pbl0gxeZ3EHD, roI3spqORKae(ES5oEprVxulp(b'\x1b\xd2\xaf\x05^\xf4\x98\x98\x8a\xcc\xa3F'), chr(0b1100100) + '\145' + '\143' + '\x6f' + chr(100) + chr(5116 - 5015))('\x75' + '\x74' + chr(0b1001 + 0o135) + chr(0b101101) + '\x38'))()
except Awc2QmWaiVq8 as wgf0sgcu_xPL:
if roI3spqORKae(wgf0sgcu_xPL, roI3spqORKae(ES5oEprVxulp(b'\x15\xc4\x94/C'), chr(0b1100100) + chr(0b1001100 + 0o31) + '\x63' + chr(0b1101011 + 0o4) + chr(0b1100100) + chr(9726 - 9625))('\x75' + chr(0b1110100) + chr(9138 - 9036) + '\055' + '\070')) == roI3spqORKae(h3248tw1YxI0, roI3spqORKae(ES5oEprVxulp(b'5\xf8\xa9\x04b\xc3'), chr(0b1100100) + '\x65' + chr(0b1001001 + 0o32) + chr(0b1101111) + chr(0b1001111 + 0o25) + '\145')('\165' + '\x74' + '\x66' + chr(0b100000 + 0o15) + chr(3019 - 2963))):
return None
else:
raise |
paylogic/pip-accel | pip_accel/bdist.py | BinaryDistributionManager.persist_checksum | def persist_checksum(self, requirement, cache_file):
"""
Persist the checksum of the input used to generate a binary distribution.
:param requirement: A :class:`.Requirement` object.
:param cache_file: The pathname of a cached binary distribution (a string).
.. note:: The checksum is only calculated and persisted when
:attr:`~.Config.trust_mod_times` is :data:`False`.
"""
if not self.config.trust_mod_times:
checksum_file = '%s.txt' % cache_file
with AtomicReplace(checksum_file) as temporary_file:
with open(temporary_file, 'w') as handle:
handle.write('%s\n' % requirement.checksum) | python | def persist_checksum(self, requirement, cache_file):
"""
Persist the checksum of the input used to generate a binary distribution.
:param requirement: A :class:`.Requirement` object.
:param cache_file: The pathname of a cached binary distribution (a string).
.. note:: The checksum is only calculated and persisted when
:attr:`~.Config.trust_mod_times` is :data:`False`.
"""
if not self.config.trust_mod_times:
checksum_file = '%s.txt' % cache_file
with AtomicReplace(checksum_file) as temporary_file:
with open(temporary_file, 'w') as handle:
handle.write('%s\n' % requirement.checksum) | [
"def",
"persist_checksum",
"(",
"self",
",",
"requirement",
",",
"cache_file",
")",
":",
"if",
"not",
"self",
".",
"config",
".",
"trust_mod_times",
":",
"checksum_file",
"=",
"'%s.txt'",
"%",
"cache_file",
"with",
"AtomicReplace",
"(",
"checksum_file",
")",
"as",
"temporary_file",
":",
"with",
"open",
"(",
"temporary_file",
",",
"'w'",
")",
"as",
"handle",
":",
"handle",
".",
"write",
"(",
"'%s\\n'",
"%",
"requirement",
".",
"checksum",
")"
] | Persist the checksum of the input used to generate a binary distribution.
:param requirement: A :class:`.Requirement` object.
:param cache_file: The pathname of a cached binary distribution (a string).
.. note:: The checksum is only calculated and persisted when
:attr:`~.Config.trust_mod_times` is :data:`False`. | [
"Persist",
"the",
"checksum",
"of",
"the",
"input",
"used",
"to",
"generate",
"a",
"binary",
"distribution",
"."
] | ccad1b784927a322d996db593403b1d2d2e22666 | https://github.com/paylogic/pip-accel/blob/ccad1b784927a322d996db593403b1d2d2e22666/pip_accel/bdist.py#L161-L175 | train | Persist the checksum of the input used to generate a binary distribution. | GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,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hU,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' + chr(0b1101111) + chr(1283 - 1232) + chr(0b11101 + 0o23) + '\x34', ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + '\x36' + '\064', 57959 - 57951), nzTpIcepk0o8(chr(0b1000 + 0o50) + chr(0b1101111) + chr(0b11000 + 0o33) + '\060' + chr(0b11110 + 0o22), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(49) + chr(51) + '\063', 36405 - 36397), nzTpIcepk0o8(chr(0b1 + 0o57) + '\x6f' + '\061' + chr(335 - 282) + chr(0b110100 + 0o2), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + '\x37' + chr(139 - 84), ord("\x08")), nzTpIcepk0o8(chr(0b101 + 0o53) + '\157' + chr(50) + '\x36' + chr(48), 0b1000), nzTpIcepk0o8(chr(0b101100 + 0o4) + chr(111) + chr(211 - 162) + chr(1940 - 1885) + chr(0b110110), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101011 + 0o4) + chr(50) + chr(53) + chr(0b100100 + 0o22), 41643 - 41635), nzTpIcepk0o8('\060' + chr(0b1001110 + 0o41) + '\061' + '\061' + chr(0b0 + 0o61), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b101110 + 0o101) + chr(49) + chr(0b110011 + 0o4) + chr(1589 - 1537), 0o10), nzTpIcepk0o8(chr(0b101001 + 0o7) + chr(0b1101111) + chr(1724 - 1673) + '\x33' + chr(50), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b100010 + 0o115) + '\x33' + chr(1149 - 1101) + '\x30', 8), nzTpIcepk0o8(chr(196 - 148) + chr(0b1101100 + 0o3) + '\061' + '\062' + '\x36', ord("\x08")), nzTpIcepk0o8(chr(0b0 + 0o60) + chr(111) + chr(2212 - 2163) + '\066' + '\x34', ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + '\062' + chr(919 - 868) + chr(52), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\061' + '\064' + chr(51), ord("\x08")), nzTpIcepk0o8(chr(0b101101 + 0o3) + chr(0b1000001 + 0o56) + '\x32' + chr(1873 - 1821) + chr(1478 - 1426), ord("\x08")), nzTpIcepk0o8(chr(0b1010 + 0o46) + '\x6f' + '\x31' + chr(0b11111 + 0o27) + '\060', 0b1000), nzTpIcepk0o8(chr(0b1000 + 0o50) + chr(0b101010 + 0o105) + chr(49) + '\061' + chr(476 - 428), ord("\x08")), nzTpIcepk0o8(chr(576 - 528) + '\157' + '\061' + chr(0b10111 + 0o32) + chr(0b101 + 0o61), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(807 - 758) + chr(0b101 + 0o60) + chr(0b110111), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(49) + chr(2647 - 2595) + chr(0b110101), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + '\x32' + chr(0b110000 + 0o3) + chr(1891 - 1841), ord("\x08")), nzTpIcepk0o8('\x30' + chr(321 - 210) + '\x35' + chr(2141 - 2093), 0b1000), nzTpIcepk0o8(chr(853 - 805) + chr(0b100 + 0o153) + chr(54) + '\x30', 8610 - 8602), nzTpIcepk0o8(chr(651 - 603) + chr(10072 - 9961) + '\x31' + '\066' + chr(0b100000 + 0o24), 8), nzTpIcepk0o8(chr(0b1101 + 0o43) + chr(111) + '\x31' + chr(75 - 20) + chr(53), 36988 - 36980), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b1001 + 0o52) + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b100000 + 0o22) + chr(48) + chr(0b110011 + 0o3), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + '\x33' + chr(2602 - 2550) + chr(595 - 544), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + '\062' + chr(1577 - 1523) + chr(0b110011), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110001) + chr(2503 - 2448) + '\060', 30440 - 30432), nzTpIcepk0o8(chr(48) + chr(0b101 + 0o152) + chr(49) + '\063' + chr(0b110101 + 0o0), 0o10), nzTpIcepk0o8(chr(1606 - 1558) + '\157' + '\061' + chr(0b110000), 10649 - 10641), nzTpIcepk0o8(chr(0b110000) + chr(0b110110 + 0o71) + chr(51) + chr(55) + chr(0b10111 + 0o40), 0o10), nzTpIcepk0o8(chr(1412 - 1364) + '\157' + chr(1697 - 1647) + chr(447 - 392) + chr(0b1101 + 0o47), 0o10), nzTpIcepk0o8('\x30' + '\157' + '\061' + chr(0b110010) + chr(0b110110), 8), nzTpIcepk0o8(chr(0b1011 + 0o45) + chr(10751 - 10640) + chr(51), 0o10), nzTpIcepk0o8(chr(528 - 480) + chr(0b1101111) + chr(0b10100 + 0o37) + chr(0b110000), 30944 - 30936)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(5898 - 5787) + '\065' + chr(1754 - 1706), 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xea'), chr(100) + chr(0b1100101) + '\x63' + '\157' + chr(100) + chr(0b1100101))('\165' + chr(1736 - 1620) + '\146' + '\x2d' + '\x38') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def BwOxZpq7STjL(hXMPsSrOQzbh, NV8n4uYfBVFE, a0w4tcI8BY8Z):
if not roI3spqORKae(hXMPsSrOQzbh.config, roI3spqORKae(ES5oEprVxulp(b'\xb0F\xb5(\x1a`\xdd\x11\xca\x16\x08\xb3\xad3\x07'), chr(0b10101 + 0o117) + '\x65' + chr(99) + chr(0b1101111) + chr(0b1011011 + 0o11) + chr(2342 - 2241))(chr(0b1110101) + chr(116) + chr(4920 - 4818) + chr(1618 - 1573) + chr(56))):
GMZStLrSqN1d = roI3spqORKae(ES5oEprVxulp(b'\xe1G\xee/\x16K'), '\144' + '\145' + chr(5740 - 5641) + '\157' + chr(0b100100 + 0o100) + chr(0b1011011 + 0o12))(chr(0b1101010 + 0o13) + chr(0b11111 + 0o125) + chr(102) + chr(0b100000 + 0o15) + chr(56)) % a0w4tcI8BY8Z
with TQzkL7DizE8g(GMZStLrSqN1d) as dbC_M0gPCOLc:
with DnU3Rq9N5ala(dbC_M0gPCOLc, roI3spqORKae(ES5oEprVxulp(b'\xb3'), '\144' + chr(7621 - 7520) + '\x63' + '\157' + chr(0b1000011 + 0o41) + '\145')('\165' + chr(116) + chr(102) + '\055' + chr(3111 - 3055))) as ecbIicWlHedY:
roI3spqORKae(ecbIicWlHedY, roI3spqORKae(ES5oEprVxulp(b'\xa9X\xf03\x06O\xc6O\xe29\r\xe8'), chr(100) + chr(0b1100101) + '\143' + '\157' + '\144' + chr(101))(chr(11529 - 11412) + '\164' + chr(0b110010 + 0o64) + '\x2d' + '\x38'))(roI3spqORKae(ES5oEprVxulp(b'\xe1G\xca'), chr(100) + chr(0b1100101) + chr(0b1100011) + '\157' + chr(100) + '\145')(chr(0b1110101) + chr(116) + chr(0b1100000 + 0o6) + chr(45) + chr(0b111000)) % roI3spqORKae(NV8n4uYfBVFE, roI3spqORKae(ES5oEprVxulp(b'\xbcX\x841*L\x85G\xc9\x11>\xbf'), '\x64' + chr(5804 - 5703) + '\x63' + chr(5894 - 5783) + '\x64' + chr(101))(chr(117) + chr(0b1110100) + chr(0b1100110) + chr(45) + chr(0b10101 + 0o43)))) |
paylogic/pip-accel | pip_accel/bdist.py | BinaryDistributionManager.build_binary_dist | def build_binary_dist(self, requirement):
"""
Build a binary distribution archive from an unpacked source distribution.
:param requirement: A :class:`.Requirement` object.
:returns: The pathname of a binary distribution archive (a string).
:raises: :exc:`.BinaryDistributionError` when the original command
and the fall back both fail to produce a binary distribution
archive.
This method uses the following command to build binary distributions:
.. code-block:: sh
$ python setup.py bdist_dumb --format=tar
This command can fail for two main reasons:
1. The package is missing binary dependencies.
2. The ``setup.py`` script doesn't (properly) implement ``bdist_dumb``
binary distribution format support.
The first case is dealt with in :func:`get_binary_dist()`. To deal
with the second case this method falls back to the following command:
.. code-block:: sh
$ python setup.py bdist
This fall back is almost never needed, but there are Python packages
out there which require this fall back (this method was added because
the installation of ``Paver==1.2.3`` failed, see `issue 37`_ for
details about that).
.. _issue 37: https://github.com/paylogic/pip-accel/issues/37
"""
try:
return self.build_binary_dist_helper(requirement, ['bdist_dumb', '--format=tar'])
except (BuildFailed, NoBuildOutput):
logger.warning("Build of %s failed, falling back to alternative method ..", requirement)
return self.build_binary_dist_helper(requirement, ['bdist', '--formats=gztar']) | python | def build_binary_dist(self, requirement):
"""
Build a binary distribution archive from an unpacked source distribution.
:param requirement: A :class:`.Requirement` object.
:returns: The pathname of a binary distribution archive (a string).
:raises: :exc:`.BinaryDistributionError` when the original command
and the fall back both fail to produce a binary distribution
archive.
This method uses the following command to build binary distributions:
.. code-block:: sh
$ python setup.py bdist_dumb --format=tar
This command can fail for two main reasons:
1. The package is missing binary dependencies.
2. The ``setup.py`` script doesn't (properly) implement ``bdist_dumb``
binary distribution format support.
The first case is dealt with in :func:`get_binary_dist()`. To deal
with the second case this method falls back to the following command:
.. code-block:: sh
$ python setup.py bdist
This fall back is almost never needed, but there are Python packages
out there which require this fall back (this method was added because
the installation of ``Paver==1.2.3`` failed, see `issue 37`_ for
details about that).
.. _issue 37: https://github.com/paylogic/pip-accel/issues/37
"""
try:
return self.build_binary_dist_helper(requirement, ['bdist_dumb', '--format=tar'])
except (BuildFailed, NoBuildOutput):
logger.warning("Build of %s failed, falling back to alternative method ..", requirement)
return self.build_binary_dist_helper(requirement, ['bdist', '--formats=gztar']) | [
"def",
"build_binary_dist",
"(",
"self",
",",
"requirement",
")",
":",
"try",
":",
"return",
"self",
".",
"build_binary_dist_helper",
"(",
"requirement",
",",
"[",
"'bdist_dumb'",
",",
"'--format=tar'",
"]",
")",
"except",
"(",
"BuildFailed",
",",
"NoBuildOutput",
")",
":",
"logger",
".",
"warning",
"(",
"\"Build of %s failed, falling back to alternative method ..\"",
",",
"requirement",
")",
"return",
"self",
".",
"build_binary_dist_helper",
"(",
"requirement",
",",
"[",
"'bdist'",
",",
"'--formats=gztar'",
"]",
")"
] | Build a binary distribution archive from an unpacked source distribution.
:param requirement: A :class:`.Requirement` object.
:returns: The pathname of a binary distribution archive (a string).
:raises: :exc:`.BinaryDistributionError` when the original command
and the fall back both fail to produce a binary distribution
archive.
This method uses the following command to build binary distributions:
.. code-block:: sh
$ python setup.py bdist_dumb --format=tar
This command can fail for two main reasons:
1. The package is missing binary dependencies.
2. The ``setup.py`` script doesn't (properly) implement ``bdist_dumb``
binary distribution format support.
The first case is dealt with in :func:`get_binary_dist()`. To deal
with the second case this method falls back to the following command:
.. code-block:: sh
$ python setup.py bdist
This fall back is almost never needed, but there are Python packages
out there which require this fall back (this method was added because
the installation of ``Paver==1.2.3`` failed, see `issue 37`_ for
details about that).
.. _issue 37: https://github.com/paylogic/pip-accel/issues/37 | [
"Build",
"a",
"binary",
"distribution",
"archive",
"from",
"an",
"unpacked",
"source",
"distribution",
"."
] | ccad1b784927a322d996db593403b1d2d2e22666 | https://github.com/paylogic/pip-accel/blob/ccad1b784927a322d996db593403b1d2d2e22666/pip_accel/bdist.py#L177-L217 | train | Build a binary distribution archive from an unpacked source distribution. | 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(48) + chr(0b1001010 + 0o45) + chr(49), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(9879 - 9768) + chr(0b110001) + '\x37' + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(49) + chr(0b110 + 0o53) + chr(2665 - 2610), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110000 + 0o2) + chr(49), 59683 - 59675), nzTpIcepk0o8('\x30' + chr(111) + chr(55) + '\x30', 0o10), nzTpIcepk0o8('\060' + '\157' + chr(0b1010 + 0o55) + '\064', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(49) + chr(50) + '\064', 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110010 + 0o4) + chr(53), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(12206 - 12095) + chr(0b11000 + 0o31) + chr(54) + '\x30', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101101 + 0o2) + chr(50) + chr(804 - 753) + '\x30', ord("\x08")), nzTpIcepk0o8(chr(0b1000 + 0o50) + chr(0b1101111) + '\x32' + chr(53), 48678 - 48670), nzTpIcepk0o8('\x30' + chr(3709 - 3598) + '\062' + '\x35', 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(718 - 664) + chr(0b11110 + 0o23), 0o10), nzTpIcepk0o8(chr(74 - 26) + chr(0b1101111) + chr(603 - 552) + '\063' + chr(2555 - 2503), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1001100 + 0o43) + chr(51) + chr(900 - 850) + chr(661 - 606), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110010) + '\065' + '\065', 38408 - 38400), nzTpIcepk0o8('\x30' + '\157' + chr(0b110010) + chr(351 - 301), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(11833 - 11722) + '\x31' + chr(0b110010), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b10011 + 0o40) + '\062' + '\064', 24140 - 24132), nzTpIcepk0o8(chr(0b101000 + 0o10) + chr(0b1101111) + chr(0b10110 + 0o33) + chr(0b1110 + 0o46) + chr(2275 - 2222), 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(2064 - 2013) + chr(50) + chr(2278 - 2230), ord("\x08")), nzTpIcepk0o8(chr(0b10 + 0o56) + chr(11167 - 11056) + chr(0b110001) + '\x30', 41727 - 41719), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b10100 + 0o36) + chr(54) + chr(0b101100 + 0o13), 27683 - 27675), nzTpIcepk0o8(chr(285 - 237) + '\x6f' + chr(1548 - 1498) + '\061' + '\066', 45268 - 45260), nzTpIcepk0o8('\060' + chr(0b1010011 + 0o34) + '\x31' + '\061' + chr(52), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\062' + '\063' + chr(0b110000), 8), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(2146 - 2097) + chr(1572 - 1524), 8), nzTpIcepk0o8(chr(1170 - 1122) + chr(111) + '\x33' + chr(0b101011 + 0o10) + '\061', 55713 - 55705), nzTpIcepk0o8('\060' + '\157' + '\062' + '\062' + '\x32', 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(168 - 118) + '\x30' + '\x33', 0o10), nzTpIcepk0o8(chr(2261 - 2213) + chr(111) + chr(0b110010 + 0o0) + chr(0b10 + 0o64) + '\x37', 8), nzTpIcepk0o8(chr(1378 - 1330) + chr(111) + chr(51) + chr(50) + chr(0b110100), 8), nzTpIcepk0o8('\060' + '\x6f' + chr(51) + chr(1493 - 1440) + chr(0b110001), 50879 - 50871), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110011) + chr(0b100101 + 0o15) + chr(681 - 631), 0o10), nzTpIcepk0o8(chr(0b11001 + 0o27) + '\x6f' + '\063' + '\x34' + chr(122 - 69), 44384 - 44376), nzTpIcepk0o8(chr(0b110000) + chr(0b1011011 + 0o24) + '\062' + chr(0b110100) + chr(264 - 211), 62079 - 62071), nzTpIcepk0o8('\x30' + '\157' + chr(53) + '\x34', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\063' + chr(0b110010) + chr(0b110111), 8), nzTpIcepk0o8(chr(868 - 820) + chr(3178 - 3067) + '\062' + chr(0b10 + 0o61) + chr(0b110000), 8), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(1033 - 984) + '\x31' + chr(0b110011), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b11111 + 0o21) + chr(4143 - 4032) + '\x35' + '\060', ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'/'), '\x64' + chr(0b1100101) + chr(0b1101 + 0o126) + '\157' + chr(0b1100011 + 0o1) + '\x65')(chr(0b1110101) + '\164' + chr(0b1100110) + '\x2d' + '\070') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def CLrrVua2pAc1(hXMPsSrOQzbh, NV8n4uYfBVFE):
try:
return roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'c\x0c&}\\c6\\\x1e\xf9gln\xb8\xbe\xdefU\xbc\x00\xbcx\xd2\xfc'), chr(3094 - 2994) + chr(101) + chr(99) + chr(111) + chr(100) + chr(0b111000 + 0o55))('\x75' + '\x74' + '\x66' + chr(45) + chr(0b110 + 0o62)))(NV8n4uYfBVFE, [roI3spqORKae(ES5oEprVxulp(b'c\x1d&bLc0@\x1d\xfa'), chr(0b1100100) + '\145' + chr(0b11000 + 0o113) + chr(111) + chr(0b1100100) + chr(0b1100101))('\165' + '\x74' + '\x66' + chr(0b10 + 0o53) + chr(0b111000)), roI3spqORKae(ES5oEprVxulp(b',T)~JQ5AM\xectg'), chr(0b1001000 + 0o34) + chr(0b111110 + 0o47) + chr(99) + '\x6f' + '\x64' + chr(359 - 258))(chr(0b1110101) + '\164' + '\x66' + chr(45) + '\070')])
except (y7b9ihM5sV5t, yoJQOwKurzfv):
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'v\x18=\x7fQR3'), chr(0b1100100) + '\x65' + '\x63' + '\x6f' + chr(7176 - 7076) + chr(101))(chr(0b1110101) + '\164' + chr(102) + chr(45) + chr(0b101111 + 0o11)))(roI3spqORKae(ES5oEprVxulp(b'C\x0c&}\\\x1c;SP\xbdf5W\xbd\xbe\xc1wn\xf8E\xb6i\xdb\xe2%\xf6o\xf9\xf0\xe2\xd4\xbf\xc9\xa6\x8a\x85M\xbb\xec.s\x17.eQJ1\x15\x1d\xfda}^\xb8\xf7\x83<'), chr(100) + '\145' + chr(0b1100011) + chr(0b1101111) + '\x64' + chr(101))(chr(0b1110101) + '\x74' + chr(0b100000 + 0o106) + chr(0b1 + 0o54) + chr(56)), NV8n4uYfBVFE)
return roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'c\x0c&}\\c6\\\x1e\xf9gln\xb8\xbe\xdefU\xbc\x00\xbcx\xd2\xfc'), chr(100) + '\145' + chr(3555 - 3456) + chr(0b1101111) + chr(100) + chr(0b1100101))('\x75' + '\164' + chr(0b1100110) + chr(0b0 + 0o55) + chr(2659 - 2603)))(NV8n4uYfBVFE, [roI3spqORKae(ES5oEprVxulp(b'c\x1d&bL'), '\x64' + '\x65' + '\x63' + chr(0b1101111) + '\x64' + '\145')(chr(11935 - 11818) + '\164' + chr(0b1100110) + chr(0b101101) + chr(0b111000)), roI3spqORKae(ES5oEprVxulp(b',T)~JQ5A\x03\xa5roE\xbd\xa5'), chr(100) + chr(0b100111 + 0o76) + '\143' + '\157' + '\x64' + chr(0b1100101))(chr(563 - 446) + chr(0b1110100) + chr(0b1100110) + chr(45) + '\x38')]) |
paylogic/pip-accel | pip_accel/bdist.py | BinaryDistributionManager.build_binary_dist_helper | def build_binary_dist_helper(self, requirement, setup_command):
"""
Convert an unpacked source distribution to a binary distribution.
:param requirement: A :class:`.Requirement` object.
:param setup_command: A list of strings with the arguments to
``setup.py``.
:returns: The pathname of the resulting binary distribution (a string).
:raises: :exc:`.BuildFailed` when the build reports an error (e.g.
because of missing binary dependencies like system
libraries).
:raises: :exc:`.NoBuildOutput` when the build does not produce the
expected binary distribution archive.
"""
build_timer = Timer()
# Make sure the source distribution contains a setup script.
setup_script = os.path.join(requirement.source_directory, 'setup.py')
if not os.path.isfile(setup_script):
msg = "Directory %s (%s %s) doesn't contain a source distribution!"
raise InvalidSourceDistribution(msg % (requirement.source_directory, requirement.name, requirement.version))
# Let the user know what's going on.
build_text = "Building %s binary distribution" % requirement
logger.info("%s ..", build_text)
# Cleanup previously generated distributions.
dist_directory = os.path.join(requirement.source_directory, 'dist')
if os.path.isdir(dist_directory):
logger.debug("Cleaning up previously generated distributions in %s ..", dist_directory)
shutil.rmtree(dist_directory)
# Let the user know (approximately) which command is being executed
# (I don't think it's necessary to show them the nasty details :-).
logger.debug("Executing external command: %s",
' '.join(map(pipes.quote, [self.config.python_executable, 'setup.py'] + setup_command)))
# Compose the command line needed to build the binary distribution.
# This nasty command line forces the use of setuptools (instead of
# distutils) just like pip does. This will cause the `*.egg-info'
# metadata to be written to a directory instead of a file, which
# (amongst other things) enables tracking of installed files.
command_line = [
self.config.python_executable, '-c',
';'.join([
'import setuptools',
'__file__=%r' % setup_script,
r"exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))",
])
] + setup_command
# Redirect all output of the build to a temporary file.
fd, temporary_file = tempfile.mkstemp()
try:
# Start the build.
build = subprocess.Popen(command_line, cwd=requirement.source_directory, stdout=fd, stderr=fd)
# Wait for the build to finish and provide feedback to the user in the mean time.
spinner = Spinner(label=build_text, timer=build_timer)
while build.poll() is None:
spinner.step()
# Don't tax the CPU too much.
time.sleep(0.2)
spinner.clear()
# Make sure the build succeeded and produced a binary distribution archive.
try:
# If the build reported an error we'll try to provide the user with
# some hints about what went wrong.
if build.returncode != 0:
raise BuildFailed("Failed to build {name} ({version}) binary distribution!",
name=requirement.name, version=requirement.version)
# Check if the build created the `dist' directory (the os.listdir()
# call below will raise an exception if we don't check for this).
if not os.path.isdir(dist_directory):
raise NoBuildOutput("Build of {name} ({version}) did not produce a binary distribution archive!",
name=requirement.name, version=requirement.version)
# Check if we can find the binary distribution archive.
filenames = os.listdir(dist_directory)
if len(filenames) != 1:
variables = dict(name=requirement.name,
version=requirement.version,
filenames=concatenate(sorted(filenames)))
raise NoBuildOutput("""
Build of {name} ({version}) produced more than one
distribution archive! (matches: {filenames})
""", **variables)
except Exception as e:
# Decorate the exception with the output of the failed build.
with open(temporary_file) as handle:
build_output = handle.read()
enhanced_message = compact("""
{message}
Please check the build output because it will probably
provide a hint about what went wrong.
Build output:
{output}
""", message=e.args[0], output=build_output.strip())
e.args = (enhanced_message,)
raise
logger.info("Finished building %s in %s.", requirement.name, build_timer)
return os.path.join(dist_directory, filenames[0])
finally:
# Close file descriptor before removing the temporary file.
# Without closing Windows is complaining that the file cannot
# be removed because it is used by another process.
os.close(fd)
os.unlink(temporary_file) | python | def build_binary_dist_helper(self, requirement, setup_command):
"""
Convert an unpacked source distribution to a binary distribution.
:param requirement: A :class:`.Requirement` object.
:param setup_command: A list of strings with the arguments to
``setup.py``.
:returns: The pathname of the resulting binary distribution (a string).
:raises: :exc:`.BuildFailed` when the build reports an error (e.g.
because of missing binary dependencies like system
libraries).
:raises: :exc:`.NoBuildOutput` when the build does not produce the
expected binary distribution archive.
"""
build_timer = Timer()
# Make sure the source distribution contains a setup script.
setup_script = os.path.join(requirement.source_directory, 'setup.py')
if not os.path.isfile(setup_script):
msg = "Directory %s (%s %s) doesn't contain a source distribution!"
raise InvalidSourceDistribution(msg % (requirement.source_directory, requirement.name, requirement.version))
# Let the user know what's going on.
build_text = "Building %s binary distribution" % requirement
logger.info("%s ..", build_text)
# Cleanup previously generated distributions.
dist_directory = os.path.join(requirement.source_directory, 'dist')
if os.path.isdir(dist_directory):
logger.debug("Cleaning up previously generated distributions in %s ..", dist_directory)
shutil.rmtree(dist_directory)
# Let the user know (approximately) which command is being executed
# (I don't think it's necessary to show them the nasty details :-).
logger.debug("Executing external command: %s",
' '.join(map(pipes.quote, [self.config.python_executable, 'setup.py'] + setup_command)))
# Compose the command line needed to build the binary distribution.
# This nasty command line forces the use of setuptools (instead of
# distutils) just like pip does. This will cause the `*.egg-info'
# metadata to be written to a directory instead of a file, which
# (amongst other things) enables tracking of installed files.
command_line = [
self.config.python_executable, '-c',
';'.join([
'import setuptools',
'__file__=%r' % setup_script,
r"exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))",
])
] + setup_command
# Redirect all output of the build to a temporary file.
fd, temporary_file = tempfile.mkstemp()
try:
# Start the build.
build = subprocess.Popen(command_line, cwd=requirement.source_directory, stdout=fd, stderr=fd)
# Wait for the build to finish and provide feedback to the user in the mean time.
spinner = Spinner(label=build_text, timer=build_timer)
while build.poll() is None:
spinner.step()
# Don't tax the CPU too much.
time.sleep(0.2)
spinner.clear()
# Make sure the build succeeded and produced a binary distribution archive.
try:
# If the build reported an error we'll try to provide the user with
# some hints about what went wrong.
if build.returncode != 0:
raise BuildFailed("Failed to build {name} ({version}) binary distribution!",
name=requirement.name, version=requirement.version)
# Check if the build created the `dist' directory (the os.listdir()
# call below will raise an exception if we don't check for this).
if not os.path.isdir(dist_directory):
raise NoBuildOutput("Build of {name} ({version}) did not produce a binary distribution archive!",
name=requirement.name, version=requirement.version)
# Check if we can find the binary distribution archive.
filenames = os.listdir(dist_directory)
if len(filenames) != 1:
variables = dict(name=requirement.name,
version=requirement.version,
filenames=concatenate(sorted(filenames)))
raise NoBuildOutput("""
Build of {name} ({version}) produced more than one
distribution archive! (matches: {filenames})
""", **variables)
except Exception as e:
# Decorate the exception with the output of the failed build.
with open(temporary_file) as handle:
build_output = handle.read()
enhanced_message = compact("""
{message}
Please check the build output because it will probably
provide a hint about what went wrong.
Build output:
{output}
""", message=e.args[0], output=build_output.strip())
e.args = (enhanced_message,)
raise
logger.info("Finished building %s in %s.", requirement.name, build_timer)
return os.path.join(dist_directory, filenames[0])
finally:
# Close file descriptor before removing the temporary file.
# Without closing Windows is complaining that the file cannot
# be removed because it is used by another process.
os.close(fd)
os.unlink(temporary_file) | [
"def",
"build_binary_dist_helper",
"(",
"self",
",",
"requirement",
",",
"setup_command",
")",
":",
"build_timer",
"=",
"Timer",
"(",
")",
"# Make sure the source distribution contains a setup script.",
"setup_script",
"=",
"os",
".",
"path",
".",
"join",
"(",
"requirement",
".",
"source_directory",
",",
"'setup.py'",
")",
"if",
"not",
"os",
".",
"path",
".",
"isfile",
"(",
"setup_script",
")",
":",
"msg",
"=",
"\"Directory %s (%s %s) doesn't contain a source distribution!\"",
"raise",
"InvalidSourceDistribution",
"(",
"msg",
"%",
"(",
"requirement",
".",
"source_directory",
",",
"requirement",
".",
"name",
",",
"requirement",
".",
"version",
")",
")",
"# Let the user know what's going on.",
"build_text",
"=",
"\"Building %s binary distribution\"",
"%",
"requirement",
"logger",
".",
"info",
"(",
"\"%s ..\"",
",",
"build_text",
")",
"# Cleanup previously generated distributions.",
"dist_directory",
"=",
"os",
".",
"path",
".",
"join",
"(",
"requirement",
".",
"source_directory",
",",
"'dist'",
")",
"if",
"os",
".",
"path",
".",
"isdir",
"(",
"dist_directory",
")",
":",
"logger",
".",
"debug",
"(",
"\"Cleaning up previously generated distributions in %s ..\"",
",",
"dist_directory",
")",
"shutil",
".",
"rmtree",
"(",
"dist_directory",
")",
"# Let the user know (approximately) which command is being executed",
"# (I don't think it's necessary to show them the nasty details :-).",
"logger",
".",
"debug",
"(",
"\"Executing external command: %s\"",
",",
"' '",
".",
"join",
"(",
"map",
"(",
"pipes",
".",
"quote",
",",
"[",
"self",
".",
"config",
".",
"python_executable",
",",
"'setup.py'",
"]",
"+",
"setup_command",
")",
")",
")",
"# Compose the command line needed to build the binary distribution.",
"# This nasty command line forces the use of setuptools (instead of",
"# distutils) just like pip does. This will cause the `*.egg-info'",
"# metadata to be written to a directory instead of a file, which",
"# (amongst other things) enables tracking of installed files.",
"command_line",
"=",
"[",
"self",
".",
"config",
".",
"python_executable",
",",
"'-c'",
",",
"';'",
".",
"join",
"(",
"[",
"'import setuptools'",
",",
"'__file__=%r'",
"%",
"setup_script",
",",
"r\"exec(compile(open(__file__).read().replace('\\r\\n', '\\n'), __file__, 'exec'))\"",
",",
"]",
")",
"]",
"+",
"setup_command",
"# Redirect all output of the build to a temporary file.",
"fd",
",",
"temporary_file",
"=",
"tempfile",
".",
"mkstemp",
"(",
")",
"try",
":",
"# Start the build.",
"build",
"=",
"subprocess",
".",
"Popen",
"(",
"command_line",
",",
"cwd",
"=",
"requirement",
".",
"source_directory",
",",
"stdout",
"=",
"fd",
",",
"stderr",
"=",
"fd",
")",
"# Wait for the build to finish and provide feedback to the user in the mean time.",
"spinner",
"=",
"Spinner",
"(",
"label",
"=",
"build_text",
",",
"timer",
"=",
"build_timer",
")",
"while",
"build",
".",
"poll",
"(",
")",
"is",
"None",
":",
"spinner",
".",
"step",
"(",
")",
"# Don't tax the CPU too much.",
"time",
".",
"sleep",
"(",
"0.2",
")",
"spinner",
".",
"clear",
"(",
")",
"# Make sure the build succeeded and produced a binary distribution archive.",
"try",
":",
"# If the build reported an error we'll try to provide the user with",
"# some hints about what went wrong.",
"if",
"build",
".",
"returncode",
"!=",
"0",
":",
"raise",
"BuildFailed",
"(",
"\"Failed to build {name} ({version}) binary distribution!\"",
",",
"name",
"=",
"requirement",
".",
"name",
",",
"version",
"=",
"requirement",
".",
"version",
")",
"# Check if the build created the `dist' directory (the os.listdir()",
"# call below will raise an exception if we don't check for this).",
"if",
"not",
"os",
".",
"path",
".",
"isdir",
"(",
"dist_directory",
")",
":",
"raise",
"NoBuildOutput",
"(",
"\"Build of {name} ({version}) did not produce a binary distribution archive!\"",
",",
"name",
"=",
"requirement",
".",
"name",
",",
"version",
"=",
"requirement",
".",
"version",
")",
"# Check if we can find the binary distribution archive.",
"filenames",
"=",
"os",
".",
"listdir",
"(",
"dist_directory",
")",
"if",
"len",
"(",
"filenames",
")",
"!=",
"1",
":",
"variables",
"=",
"dict",
"(",
"name",
"=",
"requirement",
".",
"name",
",",
"version",
"=",
"requirement",
".",
"version",
",",
"filenames",
"=",
"concatenate",
"(",
"sorted",
"(",
"filenames",
")",
")",
")",
"raise",
"NoBuildOutput",
"(",
"\"\"\"\n Build of {name} ({version}) produced more than one\n distribution archive! (matches: {filenames})\n \"\"\"",
",",
"*",
"*",
"variables",
")",
"except",
"Exception",
"as",
"e",
":",
"# Decorate the exception with the output of the failed build.",
"with",
"open",
"(",
"temporary_file",
")",
"as",
"handle",
":",
"build_output",
"=",
"handle",
".",
"read",
"(",
")",
"enhanced_message",
"=",
"compact",
"(",
"\"\"\"\n {message}\n\n Please check the build output because it will probably\n provide a hint about what went wrong.\n\n Build output:\n\n {output}\n \"\"\"",
",",
"message",
"=",
"e",
".",
"args",
"[",
"0",
"]",
",",
"output",
"=",
"build_output",
".",
"strip",
"(",
")",
")",
"e",
".",
"args",
"=",
"(",
"enhanced_message",
",",
")",
"raise",
"logger",
".",
"info",
"(",
"\"Finished building %s in %s.\"",
",",
"requirement",
".",
"name",
",",
"build_timer",
")",
"return",
"os",
".",
"path",
".",
"join",
"(",
"dist_directory",
",",
"filenames",
"[",
"0",
"]",
")",
"finally",
":",
"# Close file descriptor before removing the temporary file.",
"# Without closing Windows is complaining that the file cannot",
"# be removed because it is used by another process.",
"os",
".",
"close",
"(",
"fd",
")",
"os",
".",
"unlink",
"(",
"temporary_file",
")"
] | Convert an unpacked source distribution to a binary distribution.
:param requirement: A :class:`.Requirement` object.
:param setup_command: A list of strings with the arguments to
``setup.py``.
:returns: The pathname of the resulting binary distribution (a string).
:raises: :exc:`.BuildFailed` when the build reports an error (e.g.
because of missing binary dependencies like system
libraries).
:raises: :exc:`.NoBuildOutput` when the build does not produce the
expected binary distribution archive. | [
"Convert",
"an",
"unpacked",
"source",
"distribution",
"to",
"a",
"binary",
"distribution",
"."
] | ccad1b784927a322d996db593403b1d2d2e22666 | https://github.com/paylogic/pip-accel/blob/ccad1b784927a322d996db593403b1d2d2e22666/pip_accel/bdist.py#L219-L321 | train | Build a binary distribution from an unpacked source distribution. | 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,Migy1gL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hroIia,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(0b100000 + 0o23) + chr(53), 0o10), nzTpIcepk0o8('\x30' + '\157' + '\x32' + '\x35' + chr(54), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(859 - 748) + chr(0b110101) + chr(0b101111 + 0o4), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(1162 - 1113) + chr(0b110100) + '\x37', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(51) + chr(0b110011 + 0o1) + chr(0b110011), 6815 - 6807), nzTpIcepk0o8('\x30' + '\157' + '\x33' + chr(0b110100) + '\066', ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(53), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(50) + chr(53) + chr(709 - 658), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b11101 + 0o122) + chr(51) + chr(1580 - 1532) + chr(0b0 + 0o63), 0b1000), nzTpIcepk0o8(chr(0b111 + 0o51) + '\157' + '\061' + '\060', ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + '\062' + chr(1874 - 1825) + chr(55), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x32' + chr(0b110011 + 0o2) + chr(0b110000), 0b1000), nzTpIcepk0o8('\x30' + chr(6814 - 6703) + chr(1472 - 1421) + '\x32' + chr(0b10101 + 0o33), 0b1000), nzTpIcepk0o8(chr(1530 - 1482) + chr(0b1101111) + chr(50) + '\062' + chr(179 - 131), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x31' + chr(2500 - 2447), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(50) + chr(0b110000), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(0b11101 + 0o26) + chr(2176 - 2123) + chr(0b110100), ord("\x08")), nzTpIcepk0o8(chr(1611 - 1563) + '\157' + chr(0b110000 + 0o1) + chr(0b100000 + 0o26) + chr(0b1110 + 0o50), 0b1000), nzTpIcepk0o8(chr(0b10011 + 0o35) + chr(5212 - 5101) + '\x37' + chr(48), 0o10), nzTpIcepk0o8(chr(0b1110 + 0o42) + '\157' + chr(51) + chr(54) + chr(874 - 819), 0o10), nzTpIcepk0o8(chr(1963 - 1915) + chr(111) + chr(1398 - 1347) + chr(50) + chr(49), ord("\x08")), nzTpIcepk0o8(chr(2025 - 1977) + chr(111) + chr(49) + '\x36' + chr(48), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(585 - 474) + '\x34' + chr(0b100101 + 0o21), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + '\061' + chr(1047 - 996) + chr(1373 - 1323), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110011) + chr(48) + chr(50), 0o10), nzTpIcepk0o8(chr(0b11101 + 0o23) + '\157' + '\x33' + '\x36' + '\062', 0o10), nzTpIcepk0o8(chr(378 - 330) + chr(0b100110 + 0o111) + chr(0b110001 + 0o1) + chr(54) + chr(1369 - 1320), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(0b110011) + chr(0b110010) + '\065', 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b10101 + 0o35) + '\063' + chr(0b110101), 0b1000), nzTpIcepk0o8(chr(0b101000 + 0o10) + chr(0b1101111) + chr(0b110010) + '\x37' + chr(52), 0o10), nzTpIcepk0o8(chr(2056 - 2008) + chr(0b1000111 + 0o50) + chr(0b11101 + 0o24) + chr(48) + chr(2232 - 2180), 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(0b0 + 0o61) + '\x30' + chr(49), 0o10), nzTpIcepk0o8(chr(995 - 947) + chr(0b110 + 0o151) + chr(51) + chr(2581 - 2529) + '\x31', 3931 - 3923), nzTpIcepk0o8(chr(48) + chr(1349 - 1238) + chr(2359 - 2309) + chr(901 - 847) + chr(1621 - 1573), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(7469 - 7358) + chr(51) + chr(0b110110) + chr(0b1100 + 0o53), 8), nzTpIcepk0o8('\x30' + '\157' + chr(51) + '\060' + chr(0b101100 + 0o11), ord("\x08")), nzTpIcepk0o8(chr(0b100000 + 0o20) + '\157' + chr(0b110001) + chr(0b1111 + 0o44) + '\x31', 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(1088 - 1038) + chr(0b11000 + 0o35) + chr(50), 61540 - 61532), nzTpIcepk0o8(chr(1740 - 1692) + chr(5500 - 5389) + chr(49) + chr(0b110100) + '\x30', ord("\x08")), nzTpIcepk0o8(chr(103 - 55) + '\157' + chr(49) + chr(0b110000) + chr(1138 - 1083), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110101) + chr(48), 18734 - 18726)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'3'), chr(0b110100 + 0o60) + chr(0b1100101) + '\143' + chr(0b1101111) + chr(0b1100100) + chr(0b1001111 + 0o26))(chr(0b10 + 0o163) + chr(0b1000011 + 0o61) + chr(0b10010 + 0o124) + chr(0b10000 + 0o35) + chr(1724 - 1668)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def wiDdKQ99SgV1(hXMPsSrOQzbh, NV8n4uYfBVFE, M2HUYaQguAxa):
tOeYsdo8_AwO = MX_3dktPnFrU()
xvuhsU7d9yBf = aHUqKstZLeS6.path.Y4yM9BcfTCNq(NV8n4uYfBVFE.source_directory, roI3spqORKae(ES5oEprVxulp(b'n\xcb_\x12\x93\xc8u\xd2'), chr(7343 - 7243) + '\x65' + chr(0b1100011) + '\x6f' + chr(100) + '\145')(chr(117) + '\164' + '\146' + chr(0b100000 + 0o15) + chr(3073 - 3017)))
if not roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b't\xddM\x0e\x8f\x83'), '\x64' + chr(6150 - 6049) + '\x63' + chr(0b1111 + 0o140) + chr(0b100000 + 0o104) + chr(0b1100101))('\x75' + '\x74' + '\x66' + chr(0b101101) + chr(56)))(xvuhsU7d9yBf):
sldzbHve8G1S = roI3spqORKae(ES5oEprVxulp(b'Y\xc7Y\x02\x80\x92j\xd9\xba(\xaa\xdb\xf0\xb8(c\xccSK\xde\xf1\x14I?\xb1\x9c\x96\xa1\xbd\xdf+/\x95\xd1\x9e\xaby\xcb@4r\xdbY\x04\x86\xc6a\xc2\xb0|\xfd\xc1\xb2\xe5yy\x83\x18\x19'), chr(9097 - 8997) + chr(101) + '\143' + chr(111) + chr(0b1100100) + chr(101))(chr(0b1110101) + '\x74' + chr(102) + chr(1599 - 1554) + chr(1526 - 1470))
raise GG24oie4RTH4(sldzbHve8G1S % (roI3spqORKae(NV8n4uYfBVFE, roI3spqORKae(ES5oEprVxulp(b'n\xc1^\x15\x80\x83Z\xcf\xaaz\xea\xcb\xa4\xff\x7fi'), '\x64' + chr(7568 - 7467) + chr(99) + '\x6f' + chr(100) + chr(7313 - 7212))('\165' + chr(116) + '\146' + chr(306 - 261) + chr(0b110110 + 0o2))), roI3spqORKae(NV8n4uYfBVFE, roI3spqORKae(ES5oEprVxulp(b'N\xe2}%\xd1\xa4U\xea\x9ce\xc6\xcd'), chr(0b1100010 + 0o2) + '\x65' + chr(0b1100011) + '\x6f' + chr(100) + chr(0b1100101))(chr(0b11110 + 0o127) + chr(12639 - 12523) + chr(102) + chr(0b101101) + chr(0b101101 + 0o13))), roI3spqORKae(NV8n4uYfBVFE, roI3spqORKae(ES5oEprVxulp(b'W\x9aN \xd7\xde2\xd8\x89j\xce\xdd'), '\x64' + chr(9493 - 9392) + chr(0b100 + 0o137) + chr(0b1101111) + chr(3155 - 3055) + '\x65')(chr(0b1110101) + '\x74' + '\x66' + '\x2d' + '\070'))))
vetwO79MPoul = roI3spqORKae(ES5oEprVxulp(b'_\xdbB\x0b\x87\x8fk\xcc\xe3-\xfc\x88\xb2\xf9cq\x9e\x0f\x18\x93\xb8\x03R(\xab\x90\xc4\xa1\xf4\xd3*'), '\144' + chr(0b10010 + 0o123) + chr(4193 - 4094) + chr(111) + chr(100) + '\x65')('\x75' + '\x74' + '\146' + '\055' + '\x38') % NV8n4uYfBVFE
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b't\xd6e\x1f\xda\xaar\xf4\xf2o\xfd\xe7'), '\144' + chr(0b1100101) + '\x63' + chr(0b1001111 + 0o40) + chr(0b110110 + 0o56) + '\x65')(chr(0b1110 + 0o147) + chr(116) + chr(0b10000 + 0o126) + '\055' + '\070'))(roI3spqORKae(ES5oEprVxulp(b'8\xdd\x0bI\xcd'), '\x64' + '\x65' + '\x63' + '\157' + chr(100) + chr(836 - 735))('\x75' + chr(116) + '\146' + chr(0b11011 + 0o22) + '\x38'), vetwO79MPoul)
oNZtaq8cPGGk = aHUqKstZLeS6.path.Y4yM9BcfTCNq(NV8n4uYfBVFE.source_directory, roI3spqORKae(ES5oEprVxulp(b'y\xc7X\x13'), chr(5835 - 5735) + chr(9208 - 9107) + '\x63' + chr(111) + chr(0b101010 + 0o72) + '\x65')('\x75' + '\x74' + chr(102) + chr(1793 - 1748) + '\x38'))
if roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'E\xc6{V\xb9\x92G\x92\xa2Y\xf5\xea'), chr(0b1100100) + chr(101) + chr(0b111 + 0o134) + chr(1903 - 1792) + chr(8963 - 8863) + '\145')('\x75' + chr(0b1110100) + chr(102) + '\055' + '\070'))(oNZtaq8cPGGk):
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'z\xef\x12=\xda\x82j\x9d\x96e\xca\xf2'), chr(0b1100100) + '\145' + chr(0b1100011) + chr(111) + chr(3384 - 3284) + '\x65')(chr(117) + '\x74' + chr(0b1100110) + '\x2d' + chr(56)))(roI3spqORKae(ES5oEprVxulp(b'^\xc2N\x06\x8d\x8fk\xcc\xe3}\xff\x88\xa0\xe2hf\x85\x19M\x84\xbd\t\x06=\xa7\x9c\xd4\xa7\xfc\xc8!%\xc1\xd4\x9e\xb6-\xd8\t%h\xdaB\x08\x8d\x95%\xc2\xad(\xaa\xdb\xf0\xbe#'), chr(100) + chr(101) + chr(99) + '\157' + chr(0b1100100) + '\145')('\x75' + '\164' + chr(102) + '\x2d' + chr(56)), oNZtaq8cPGGk)
roI3spqORKae(zcgTfC_NSHAo, roI3spqORKae(ES5oEprVxulp(b'o\xc3_\x15\x86\x83'), chr(0b1001101 + 0o27) + '\145' + '\143' + chr(111) + '\144' + chr(9751 - 9650))(chr(0b1110101) + chr(0b1110100) + chr(0b1100110) + chr(45) + chr(56)))(oNZtaq8cPGGk)
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'z\xef\x12=\xda\x82j\x9d\x96e\xca\xf2'), '\x64' + '\x65' + '\143' + chr(111) + '\x64' + '\x65')(chr(0b1011110 + 0o27) + chr(0b1110100) + '\x66' + chr(82 - 37) + chr(744 - 688)))(roI3spqORKae(ES5oEprVxulp(b'X\xd6N\x04\x96\x92l\xc5\xa4(\xea\xd0\xa4\xf5\x7f~\x8d\x1a\x18\x94\xbe\x1dK;\xac\x96\x8b\xf5\xb8\xcf'), '\144' + chr(0b1100101) + chr(5367 - 5268) + chr(0b1101111) + chr(8177 - 8077) + chr(0b100110 + 0o77))(chr(0b1110101) + chr(0b1110100) + chr(8433 - 8331) + chr(0b101101) + '\070'), roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'='), '\144' + chr(0b1100101) + '\143' + '\x6f' + '\x64' + chr(0b1100101))('\x75' + '\164' + chr(0b1100100 + 0o2) + '\055' + chr(56)), roI3spqORKae(ES5oEprVxulp(b'D\x9aR*\xda\xa4f\xcd\x97K\xc1\xd9'), chr(3030 - 2930) + chr(0b1001100 + 0o31) + '\143' + '\157' + chr(5621 - 5521) + chr(0b1100101))(chr(117) + chr(0b1110100) + '\x66' + chr(1896 - 1851) + chr(0b1011 + 0o55)))(VVP82lOIz6CD(roI3spqORKae(vu8hFTlh1_Gi, roI3spqORKae(ES5oEprVxulp(b'l\xdbD\x13\x86'), chr(100) + chr(0b1100101) + chr(6209 - 6110) + chr(7895 - 7784) + chr(0b1100100) + chr(0b1100101))('\x75' + chr(116) + chr(102) + chr(0b1 + 0o54) + chr(1822 - 1766))), [roI3spqORKae(hXMPsSrOQzbh.config, roI3spqORKae(ES5oEprVxulp(b'm\xd7_\x0f\x8c\x88Z\xce\xbbm\xec\xdd\xa4\xf1o|\x89'), chr(0b111011 + 0o51) + chr(0b1100101) + chr(0b1100011) + '\x6f' + chr(4235 - 4135) + '\145')(chr(117) + chr(652 - 536) + '\146' + '\055' + chr(2004 - 1948))), roI3spqORKae(ES5oEprVxulp(b'n\xcb_\x12\x93\xc8u\xd2'), chr(0b1100100) + chr(101) + chr(0b11000 + 0o113) + '\157' + '\144' + chr(0b110000 + 0o65))(chr(0b1110101) + '\x74' + '\x66' + chr(0b101101) + chr(0b111000))] + M2HUYaQguAxa)))
OMPKB_AuFZpn = [hXMPsSrOQzbh.config.python_executable, roI3spqORKae(ES5oEprVxulp(b'0\xcd'), chr(0b110011 + 0o61) + chr(9280 - 9179) + '\x63' + chr(0b1101111) + chr(0b1100100) + chr(0b1001011 + 0o32))(chr(11281 - 11164) + chr(116) + chr(0b110000 + 0o66) + '\055' + '\x38'), roI3spqORKae(ES5oEprVxulp(b'&'), chr(0b110100 + 0o60) + chr(1328 - 1227) + chr(99) + chr(111) + chr(100) + chr(4843 - 4742))('\x75' + chr(0b110011 + 0o101) + chr(0b1100110) + chr(666 - 621) + chr(56)).Y4yM9BcfTCNq([roI3spqORKae(ES5oEprVxulp(b't\xc3[\x08\x91\x92%\xd8\xa6|\xfa\xd8\xa4\xffb|\x9f'), '\144' + '\145' + '\x63' + chr(0b1100100 + 0o13) + '\x64' + chr(0b1100101))('\165' + chr(116) + chr(102) + '\055' + chr(0b110011 + 0o5)), roI3spqORKae(ES5oEprVxulp(b'B\xf1M\x0e\x8f\x83Z\xf4\xfe-\xfd'), chr(262 - 162) + chr(3818 - 3717) + chr(359 - 260) + chr(111) + '\144' + chr(101))(chr(117) + '\164' + chr(269 - 167) + chr(45) + chr(0b100010 + 0o26)) % xvuhsU7d9yBf, roI3spqORKae(ES5oEprVxulp(b'x\xd6N\x04\xcb\x85j\xc6\xb3a\xe3\xcd\xf8\xff}u\x82^g\xa8\xb7\x19J?\x9d\xad\x98\xfb\xef\xd9%%\xc9\x99\xd9\xb7<\xda\x0c&~\xcb\x03@\xbf\x94Y\xc5\xe4$\xaf\x8f\x8c\xfe*9\xc0Vg\xa8\xb7\x19J?\x9d\xad\x9d\xf5\xba\xd9<$\x82\x97\xde\xec'), chr(0b1100100) + '\145' + '\x63' + '\x6f' + '\144' + '\x65')(chr(0b1110101) + chr(11519 - 11403) + chr(0b1100110) + '\055' + chr(0b101010 + 0o16))])] + M2HUYaQguAxa
(RW6jRKOlF6C5, dbC_M0gPCOLc) = VfV2QW3Td2UZ.mkstemp()
try:
IJABSdCh941a = eT8Y087E_kfd.Popen(OMPKB_AuFZpn, cwd=NV8n4uYfBVFE.source_directory, stdout=RW6jRKOlF6C5, stderr=RW6jRKOlF6C5)
e2E3ymeOk773 = N5vquCg043xs(label=vetwO79MPoul, timer=tOeYsdo8_AwO)
while roI3spqORKae(IJABSdCh941a, roI3spqORKae(ES5oEprVxulp(b'm\xc1G\x0b'), '\144' + '\x65' + chr(0b100001 + 0o102) + '\157' + chr(9560 - 9460) + '\x65')(chr(1851 - 1734) + chr(0b1110100) + '\146' + chr(1805 - 1760) + '\x38'))() is None:
roI3spqORKae(e2E3ymeOk773, roI3spqORKae(ES5oEprVxulp(b'G\xc7`%\xda\xdf]\xd8\xfa9\xc3\xc7'), chr(0b1100100) + chr(5103 - 5002) + '\x63' + chr(10101 - 9990) + '\144' + chr(0b101110 + 0o67))(chr(0b1110101) + chr(0b1110100) + '\x66' + '\x2d' + chr(1192 - 1136)))()
roI3spqORKae(oprIvDIRQyCb, roI3spqORKae(ES5oEprVxulp(b'n\xc2N\x02\x93'), chr(2819 - 2719) + chr(5292 - 5191) + chr(9064 - 8965) + chr(6821 - 6710) + '\144' + '\145')(chr(0b1101100 + 0o11) + '\164' + '\146' + chr(1460 - 1415) + chr(0b111000)))(0.2)
roI3spqORKae(e2E3ymeOk773, roI3spqORKae(ES5oEprVxulp(b'v\xcdaU\x8a\xacL\x99\xa2=\xc7\xe2'), chr(0b1100100) + chr(6833 - 6732) + '\x63' + chr(0b1101111) + chr(100) + '\145')(chr(0b1110101) + chr(8650 - 8534) + chr(102) + '\x2d' + chr(0b10110 + 0o42)))()
try:
if roI3spqORKae(IJABSdCh941a, roI3spqORKae(ES5oEprVxulp(b'o\xcb_\x12\x91\x88f\xc4\xa7m'), chr(100) + '\145' + '\143' + '\x6f' + chr(0b111111 + 0o45) + '\x65')('\x75' + chr(0b1110100) + chr(6493 - 6391) + '\x2d' + chr(0b111000))) != nzTpIcepk0o8(chr(0b10011 + 0o35) + chr(0b1101111) + '\060', 0b1000):
raise y7b9ihM5sV5t(roI3spqORKae(ES5oEprVxulp(b'[\xcfB\x0b\x86\x82%\xdf\xac(\xed\xdd\xb9\xfci0\x97\x18Y\x9a\xb4\r\x06r\xb9\x84\xd4\xa7\xee\xd5+/\x9c\x99\xd7\xa70\xc4\x015d\x8eO\x0e\x90\x92w\xc2\xa1}\xfb\xc1\xbf\xfe,'), chr(0b1100100) + chr(0b1100101) + chr(5222 - 5123) + chr(111) + chr(0b1100100) + '\x65')(chr(117) + '\164' + '\146' + '\x2d' + chr(1927 - 1871)), name=roI3spqORKae(NV8n4uYfBVFE, roI3spqORKae(ES5oEprVxulp(b'N\xe2}%\xd1\xa4U\xea\x9ce\xc6\xcd'), chr(0b101100 + 0o70) + chr(101) + '\143' + '\x6f' + '\x64' + chr(101))(chr(0b1011011 + 0o32) + chr(116) + chr(102) + '\055' + chr(0b100111 + 0o21))), version=roI3spqORKae(NV8n4uYfBVFE, roI3spqORKae(ES5oEprVxulp(b'W\x9aN \xd7\xde2\xd8\x89j\xce\xdd'), '\x64' + chr(0b101010 + 0o73) + chr(99) + chr(111) + chr(0b1100100) + chr(10062 - 9961))('\x75' + '\x74' + chr(1889 - 1787) + chr(45) + chr(0b10101 + 0o43))))
if not roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'E\xc6{V\xb9\x92G\x92\xa2Y\xf5\xea'), '\144' + chr(6397 - 6296) + '\143' + '\157' + chr(0b110 + 0o136) + chr(1491 - 1390))(chr(117) + '\x74' + chr(3634 - 3532) + chr(0b1100 + 0o41) + '\070'))(oNZtaq8cPGGk):
raise yoJQOwKurzfv(roI3spqORKae(ES5oEprVxulp(b'_\xdbB\x0b\x87\xc6j\xcd\xe3s\xe1\xc9\xbd\xf5p0\xc4\rN\x92\xa3\x03O5\xac\x8f\x98\xf5\xf9\xd5 a\x8f\xdf\x83\xe5)\xd8\x0f#h\xcdNG\x82\xc6g\xc2\xadi\xfd\xd1\xf0\xf4dc\x98\x04Q\x95\xa4\x04O5\xac\xd2\xd0\xa7\xfe\xd4-7\x84\x91'), chr(0b1000 + 0o134) + chr(184 - 83) + chr(99) + chr(0b1000111 + 0o50) + chr(0b101010 + 0o72) + chr(0b1100101))(chr(0b1110101) + '\164' + chr(0b10 + 0o144) + chr(0b101101) + '\070'), name=roI3spqORKae(NV8n4uYfBVFE, roI3spqORKae(ES5oEprVxulp(b'N\xe2}%\xd1\xa4U\xea\x9ce\xc6\xcd'), '\144' + chr(2600 - 2499) + chr(0b1010011 + 0o20) + '\157' + chr(7660 - 7560) + '\x65')(chr(3904 - 3787) + chr(0b1110100) + '\146' + chr(0b101101 + 0o0) + chr(0b111000))), version=roI3spqORKae(NV8n4uYfBVFE, roI3spqORKae(ES5oEprVxulp(b'W\x9aN \xd7\xde2\xd8\x89j\xce\xdd'), chr(0b1100100) + '\x65' + chr(2531 - 2432) + chr(111) + chr(100) + '\x65')('\x75' + '\164' + '\146' + chr(0b101101) + '\070')))
EXVYY4cgQiXQ = aHUqKstZLeS6.listdir(oNZtaq8cPGGk)
if ftfygxgFas5X(EXVYY4cgQiXQ) != nzTpIcepk0o8(chr(2167 - 2119) + '\x6f' + '\x31', 22014 - 22006):
LuMTuvwD9t2e = znjnJWK64FDT(name=NV8n4uYfBVFE.SLVB2BPA_mIe, version=NV8n4uYfBVFE.J4eG487sJbAu, filenames=cNUMWjTSOBqD(V3OlOVg98A85(EXVYY4cgQiXQ)))
raise yoJQOwKurzfv(roI3spqORKae(ES5oEprVxulp(b'\x17\x8e\x0bG\xc3\xc6%\x8b\xe3(\xaf\x88\xf0\xb0-0\xccV\x18\xd7\xf1P\x06z\xe2\xb0\xc4\xbc\xf1\xd8d.\x87\x90\x8c\xab8\xc7\x05:=\x86P\x11\x86\x94v\xc2\xacf\xf2\x81\xf0\xe0\x7f\x7f\x88\x03[\x92\xb5PK5\xb0\x97\x91\xa1\xf5\xdd*a\x8e\xde\x92\xcfy\x8a@g=\x8e\x0bG\xc3\xc6%\x8b\xe3(\xaf\x88\xf0\xb0-0\xccV\x18\xd7\xb5\x19U.\xb0\x9b\xd3\xa0\xe9\xd5+/\xc1\xd1\x85\xa61\xc3\x16"<\x8e\x03\n\x82\x92f\xc3\xa6{\xb5\x88\xab\xf6d|\x89\x18Y\x9a\xb4\x03[s\xc8\xd2\x91\xf5\xbd\x9cda\xc1\x90\xd7\xe5y\x8a@g=\x8e\x0bG\xc3'), chr(0b10001 + 0o123) + '\x65' + chr(0b1100011) + '\157' + chr(0b1100100) + '\x65')('\x75' + chr(7189 - 7073) + '\x66' + chr(0b101101) + chr(0b111000)), **LuMTuvwD9t2e)
except zfo2Sgkz3IVJ as wgf0sgcu_xPL:
with DnU3Rq9N5ala(dbC_M0gPCOLc) as ecbIicWlHedY:
mUvBcC7bgVaz = ecbIicWlHedY.eoXknH7XUn7m()
WG7iP7lH2bYM = Okjc9rqdlVOC(roI3spqORKae(ES5oEprVxulp(b'\x17\x8e\x0bG\xc3\xc6%\x8b\xe3(\xaf\x88\xf0\xb0-0\xccV\x18\xd7\xf1\x0bK?\xb1\x81\xd0\xb2\xf8\xc1NK\xc1\x90\xd7\xe5y\x8a@g=\x8e\x0bG\xc3\xc6%\x8b\xe3(\xaf\x88\x80\xfchq\x9f\x13\x18\x94\xb9\x15E1\xe2\x86\xd9\xb0\xbd\xde1(\x8d\xd4\xd7\xaa,\xde\x102i\x8eI\x02\x80\x87p\xd8\xa6(\xe6\xdc\xf0\xe7d|\x80VH\x85\xbe\x12G8\xae\x8b\xbb\xf5\xbd\x9cda\xc1\x90\xd7\xe5y\x8a@g=\x8e\x0bG\xc3\xc6%\xdb\xb1g\xf9\xc1\xb4\xf5-q\xcc\x1eQ\x99\xa5PG8\xad\x87\xc5\xf5\xea\xd4%5\xc1\xc7\x92\xab-\x8a\x175r\xc0LI\xe9\xec%\x8b\xe3(\xaf\x88\xf0\xb0-0\xccV\x18\xd7\xf1P\x06z\xe2\xd2\xf3\xa0\xf4\xd0 a\x8e\xc5\x83\xb5,\xdeZM\x17\x8e\x0bG\xc3\xc6%\x8b\xe3(\xaf\x88\xf0\xb0-0\xccV\x18\xd7\xf1\x0bI/\xb6\x82\xc4\xa1\xe0\xb6da\xc1\x90\xd7\xe5y\x8a@g=\x8e\x0bG\xc3\xc6'), '\x64' + '\x65' + chr(99) + '\x6f' + chr(0b0 + 0o144) + '\145')(chr(0b10111 + 0o136) + chr(116) + chr(8246 - 8144) + chr(0b10000 + 0o35) + chr(0b1101 + 0o53)), message=wgf0sgcu_xPL.eemPYp2vtTSr[nzTpIcepk0o8(chr(0b10111 + 0o31) + chr(0b1101111) + '\x30', 8)], output=mUvBcC7bgVaz.kdIDrcwZTCs5())
wgf0sgcu_xPL.eemPYp2vtTSr = (WG7iP7lH2bYM,)
raise
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b't\xd6e\x1f\xda\xaar\xf4\xf2o\xfd\xe7'), chr(0b101001 + 0o73) + '\145' + '\x63' + chr(0b1100110 + 0o11) + chr(0b1100100) + chr(0b1100101))(chr(117) + chr(0b10110 + 0o136) + '\146' + chr(0b101101) + chr(0b111000)))(roI3spqORKae(ES5oEprVxulp(b'[\xc7E\x0e\x90\x8e`\xcf\xe3j\xfa\xc1\xbc\xf4d~\x8bV\x1d\x84\xf1\x19Hz\xe7\x81\x9f'), '\144' + '\x65' + chr(0b1111 + 0o124) + chr(0b1001000 + 0o47) + '\x64' + chr(101))(chr(6119 - 6002) + chr(0b1001101 + 0o47) + chr(102) + '\055' + chr(0b111000)), roI3spqORKae(NV8n4uYfBVFE, roI3spqORKae(ES5oEprVxulp(b'N\xe2}%\xd1\xa4U\xea\x9ce\xc6\xcd'), chr(100) + chr(3436 - 3335) + chr(8877 - 8778) + chr(0b1101111) + chr(100) + chr(0b1100101))(chr(0b1110101) + '\x74' + chr(0b1100110) + chr(1741 - 1696) + '\x38')), tOeYsdo8_AwO)
return roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'D\x9aR*\xda\xa4f\xcd\x97K\xc1\xd9'), chr(100) + chr(0b101100 + 0o71) + chr(99) + chr(0b1101111) + '\144' + chr(2299 - 2198))(chr(2308 - 2191) + '\x74' + chr(953 - 851) + '\055' + chr(1471 - 1415)))(oNZtaq8cPGGk, EXVYY4cgQiXQ[nzTpIcepk0o8(chr(0b100100 + 0o14) + '\157' + '\060', 8)])
finally:
roI3spqORKae(aHUqKstZLeS6, roI3spqORKae(ES5oEprVxulp(b'G\xcbZP\xa0\x85c\x92\x96l\xb7\xc2'), chr(0b1100100) + chr(0b1100101) + chr(0b1010001 + 0o22) + chr(0b1101111) + chr(0b10011 + 0o121) + chr(0b1100101))(chr(0b1110101) + chr(116) + chr(102) + '\x2d' + chr(3116 - 3060)))(RW6jRKOlF6C5)
roI3spqORKae(aHUqKstZLeS6, roI3spqORKae(ES5oEprVxulp(b'h\xc0G\x0e\x8d\x8d'), chr(0b1010001 + 0o23) + chr(0b110010 + 0o63) + chr(0b1100011) + '\157' + '\144' + chr(0b1100101))(chr(0b1110101) + chr(116) + chr(0b100010 + 0o104) + '\055' + '\x38'))(dbC_M0gPCOLc) |
paylogic/pip-accel | pip_accel/bdist.py | BinaryDistributionManager.transform_binary_dist | def transform_binary_dist(self, archive_path):
"""
Transform binary distributions into a form that can be cached for future use.
:param archive_path: The pathname of the original binary distribution archive.
:returns: An iterable of tuples with two values each:
1. A :class:`tarfile.TarInfo` object.
2. A file-like object.
This method transforms a binary distribution archive created by
:func:`build_binary_dist()` into a form that can be cached for future
use. This comes down to making the pathnames inside the archive
relative to the `prefix` that the binary distribution was built for.
"""
# Copy the tar archive file by file so we can rewrite the pathnames.
logger.debug("Transforming binary distribution: %s.", archive_path)
archive = tarfile.open(archive_path, 'r')
for member in archive.getmembers():
# Some source distribution archives on PyPI that are distributed as ZIP
# archives contain really weird permissions: the world readable bit is
# missing. I've encountered this with the httplib2 (0.9) and
# google-api-python-client (1.2) packages. I assume this is a bug of
# some kind in the packaging process on "their" side.
if member.mode & stat.S_IXUSR:
# If the owner has execute permissions we'll give everyone read and
# execute permissions (only the owner gets write permissions).
member.mode = 0o755
else:
# If the owner doesn't have execute permissions we'll give everyone
# read permissions (only the owner gets write permissions).
member.mode = 0o644
# In my testing the `dumb' tar files created with the `python
# setup.py bdist' and `python setup.py bdist_dumb' commands contain
# pathnames that are relative to `/' in one way or another:
#
# - In almost all cases the pathnames look like this:
#
# ./home/peter/.virtualenvs/pip-accel/lib/python2.7/site-packages/pip_accel/__init__.py
#
# - After working on pip-accel for several years I encountered
# a pathname like this (Python 2.6 on Mac OS X 10.10.5):
#
# Users/peter/.virtualenvs/pip-accel/lib/python2.6/site-packages/pip_accel/__init__.py
#
# Both of the above pathnames are relative to `/' but in different
# ways :-). The following normpath(join('/', ...))) pathname
# manipulation logic is intended to handle both cases.
original_pathname = member.name
absolute_pathname = os.path.normpath(os.path.join('/', original_pathname))
if member.isdev():
logger.warn("Ignoring device file: %s.", absolute_pathname)
elif not member.isdir():
modified_pathname = os.path.relpath(absolute_pathname, self.config.install_prefix)
if os.path.isabs(modified_pathname):
logger.warn("Failed to transform pathname in binary distribution"
" to relative path! (original: %r, modified: %r)",
original_pathname, modified_pathname)
else:
# Rewrite /usr/local to /usr (same goes for all prefixes of course).
modified_pathname = re.sub('^local/', '', modified_pathname)
# Rewrite /dist-packages/ to /site-packages/. For details see
# https://wiki.debian.org/Python#Deviations_from_upstream.
if self.config.on_debian:
modified_pathname = modified_pathname.replace('/dist-packages/', '/site-packages/')
# Enable operators to debug the transformation process.
logger.debug("Transformed %r -> %r.", original_pathname, modified_pathname)
# Get the file data from the input archive.
handle = archive.extractfile(original_pathname)
# Yield the modified metadata and a handle to the data.
member.name = modified_pathname
yield member, handle
archive.close() | python | def transform_binary_dist(self, archive_path):
"""
Transform binary distributions into a form that can be cached for future use.
:param archive_path: The pathname of the original binary distribution archive.
:returns: An iterable of tuples with two values each:
1. A :class:`tarfile.TarInfo` object.
2. A file-like object.
This method transforms a binary distribution archive created by
:func:`build_binary_dist()` into a form that can be cached for future
use. This comes down to making the pathnames inside the archive
relative to the `prefix` that the binary distribution was built for.
"""
# Copy the tar archive file by file so we can rewrite the pathnames.
logger.debug("Transforming binary distribution: %s.", archive_path)
archive = tarfile.open(archive_path, 'r')
for member in archive.getmembers():
# Some source distribution archives on PyPI that are distributed as ZIP
# archives contain really weird permissions: the world readable bit is
# missing. I've encountered this with the httplib2 (0.9) and
# google-api-python-client (1.2) packages. I assume this is a bug of
# some kind in the packaging process on "their" side.
if member.mode & stat.S_IXUSR:
# If the owner has execute permissions we'll give everyone read and
# execute permissions (only the owner gets write permissions).
member.mode = 0o755
else:
# If the owner doesn't have execute permissions we'll give everyone
# read permissions (only the owner gets write permissions).
member.mode = 0o644
# In my testing the `dumb' tar files created with the `python
# setup.py bdist' and `python setup.py bdist_dumb' commands contain
# pathnames that are relative to `/' in one way or another:
#
# - In almost all cases the pathnames look like this:
#
# ./home/peter/.virtualenvs/pip-accel/lib/python2.7/site-packages/pip_accel/__init__.py
#
# - After working on pip-accel for several years I encountered
# a pathname like this (Python 2.6 on Mac OS X 10.10.5):
#
# Users/peter/.virtualenvs/pip-accel/lib/python2.6/site-packages/pip_accel/__init__.py
#
# Both of the above pathnames are relative to `/' but in different
# ways :-). The following normpath(join('/', ...))) pathname
# manipulation logic is intended to handle both cases.
original_pathname = member.name
absolute_pathname = os.path.normpath(os.path.join('/', original_pathname))
if member.isdev():
logger.warn("Ignoring device file: %s.", absolute_pathname)
elif not member.isdir():
modified_pathname = os.path.relpath(absolute_pathname, self.config.install_prefix)
if os.path.isabs(modified_pathname):
logger.warn("Failed to transform pathname in binary distribution"
" to relative path! (original: %r, modified: %r)",
original_pathname, modified_pathname)
else:
# Rewrite /usr/local to /usr (same goes for all prefixes of course).
modified_pathname = re.sub('^local/', '', modified_pathname)
# Rewrite /dist-packages/ to /site-packages/. For details see
# https://wiki.debian.org/Python#Deviations_from_upstream.
if self.config.on_debian:
modified_pathname = modified_pathname.replace('/dist-packages/', '/site-packages/')
# Enable operators to debug the transformation process.
logger.debug("Transformed %r -> %r.", original_pathname, modified_pathname)
# Get the file data from the input archive.
handle = archive.extractfile(original_pathname)
# Yield the modified metadata and a handle to the data.
member.name = modified_pathname
yield member, handle
archive.close() | [
"def",
"transform_binary_dist",
"(",
"self",
",",
"archive_path",
")",
":",
"# Copy the tar archive file by file so we can rewrite the pathnames.",
"logger",
".",
"debug",
"(",
"\"Transforming binary distribution: %s.\"",
",",
"archive_path",
")",
"archive",
"=",
"tarfile",
".",
"open",
"(",
"archive_path",
",",
"'r'",
")",
"for",
"member",
"in",
"archive",
".",
"getmembers",
"(",
")",
":",
"# Some source distribution archives on PyPI that are distributed as ZIP",
"# archives contain really weird permissions: the world readable bit is",
"# missing. I've encountered this with the httplib2 (0.9) and",
"# google-api-python-client (1.2) packages. I assume this is a bug of",
"# some kind in the packaging process on \"their\" side.",
"if",
"member",
".",
"mode",
"&",
"stat",
".",
"S_IXUSR",
":",
"# If the owner has execute permissions we'll give everyone read and",
"# execute permissions (only the owner gets write permissions).",
"member",
".",
"mode",
"=",
"0o755",
"else",
":",
"# If the owner doesn't have execute permissions we'll give everyone",
"# read permissions (only the owner gets write permissions).",
"member",
".",
"mode",
"=",
"0o644",
"# In my testing the `dumb' tar files created with the `python",
"# setup.py bdist' and `python setup.py bdist_dumb' commands contain",
"# pathnames that are relative to `/' in one way or another:",
"#",
"# - In almost all cases the pathnames look like this:",
"#",
"# ./home/peter/.virtualenvs/pip-accel/lib/python2.7/site-packages/pip_accel/__init__.py",
"#",
"# - After working on pip-accel for several years I encountered",
"# a pathname like this (Python 2.6 on Mac OS X 10.10.5):",
"#",
"# Users/peter/.virtualenvs/pip-accel/lib/python2.6/site-packages/pip_accel/__init__.py",
"#",
"# Both of the above pathnames are relative to `/' but in different",
"# ways :-). The following normpath(join('/', ...))) pathname",
"# manipulation logic is intended to handle both cases.",
"original_pathname",
"=",
"member",
".",
"name",
"absolute_pathname",
"=",
"os",
".",
"path",
".",
"normpath",
"(",
"os",
".",
"path",
".",
"join",
"(",
"'/'",
",",
"original_pathname",
")",
")",
"if",
"member",
".",
"isdev",
"(",
")",
":",
"logger",
".",
"warn",
"(",
"\"Ignoring device file: %s.\"",
",",
"absolute_pathname",
")",
"elif",
"not",
"member",
".",
"isdir",
"(",
")",
":",
"modified_pathname",
"=",
"os",
".",
"path",
".",
"relpath",
"(",
"absolute_pathname",
",",
"self",
".",
"config",
".",
"install_prefix",
")",
"if",
"os",
".",
"path",
".",
"isabs",
"(",
"modified_pathname",
")",
":",
"logger",
".",
"warn",
"(",
"\"Failed to transform pathname in binary distribution\"",
"\" to relative path! (original: %r, modified: %r)\"",
",",
"original_pathname",
",",
"modified_pathname",
")",
"else",
":",
"# Rewrite /usr/local to /usr (same goes for all prefixes of course).",
"modified_pathname",
"=",
"re",
".",
"sub",
"(",
"'^local/'",
",",
"''",
",",
"modified_pathname",
")",
"# Rewrite /dist-packages/ to /site-packages/. For details see",
"# https://wiki.debian.org/Python#Deviations_from_upstream.",
"if",
"self",
".",
"config",
".",
"on_debian",
":",
"modified_pathname",
"=",
"modified_pathname",
".",
"replace",
"(",
"'/dist-packages/'",
",",
"'/site-packages/'",
")",
"# Enable operators to debug the transformation process.",
"logger",
".",
"debug",
"(",
"\"Transformed %r -> %r.\"",
",",
"original_pathname",
",",
"modified_pathname",
")",
"# Get the file data from the input archive.",
"handle",
"=",
"archive",
".",
"extractfile",
"(",
"original_pathname",
")",
"# Yield the modified metadata and a handle to the data.",
"member",
".",
"name",
"=",
"modified_pathname",
"yield",
"member",
",",
"handle",
"archive",
".",
"close",
"(",
")"
] | Transform binary distributions into a form that can be cached for future use.
:param archive_path: The pathname of the original binary distribution archive.
:returns: An iterable of tuples with two values each:
1. A :class:`tarfile.TarInfo` object.
2. A file-like object.
This method transforms a binary distribution archive created by
:func:`build_binary_dist()` into a form that can be cached for future
use. This comes down to making the pathnames inside the archive
relative to the `prefix` that the binary distribution was built for. | [
"Transform",
"binary",
"distributions",
"into",
"a",
"form",
"that",
"can",
"be",
"cached",
"for",
"future",
"use",
"."
] | ccad1b784927a322d996db593403b1d2d2e22666 | https://github.com/paylogic/pip-accel/blob/ccad1b784927a322d996db593403b1d2d2e22666/pip_accel/bdist.py#L323-L395 | train | Transform a binary distribution archive into a form that can be cached for future use. | 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_CdZfvi,N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oqWT,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' + '\x33' + '\x30' + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(0b100001 + 0o17) + '\157' + chr(50) + '\x34' + chr(0b100100 + 0o22), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b101010 + 0o105) + chr(0b110001) + chr(2368 - 2318) + chr(51), 19023 - 19015), nzTpIcepk0o8(chr(48) + chr(0b10 + 0o155) + chr(358 - 307) + '\065' + chr(0b101000 + 0o16), 0o10), nzTpIcepk0o8('\060' + chr(0b110110 + 0o71) + chr(50) + chr(0b10100 + 0o36), 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(50) + '\064' + chr(0b110000), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b10110 + 0o37) + chr(0b101101 + 0o3), 0o10), nzTpIcepk0o8(chr(0b1100 + 0o44) + chr(4702 - 4591) + '\x31' + chr(51) + chr(52), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(51) + chr(53), 16655 - 16647), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110011) + '\067' + '\x36', ord("\x08")), nzTpIcepk0o8(chr(1722 - 1674) + '\x6f' + chr(0b110010) + chr(50) + chr(0b1101 + 0o47), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110010) + chr(0b110001) + chr(54), 52218 - 52210), nzTpIcepk0o8('\x30' + '\x6f' + chr(491 - 442) + chr(54) + chr(2763 - 2710), 0o10), nzTpIcepk0o8(chr(0b10110 + 0o32) + chr(10353 - 10242) + '\061' + '\067' + chr(54), 22706 - 22698), nzTpIcepk0o8(chr(0b101100 + 0o4) + '\x6f' + chr(0b110010) + '\062' + chr(0b110110), 51654 - 51646), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110011) + chr(0b111 + 0o60) + chr(0b110011), 0o10), nzTpIcepk0o8('\060' + chr(0b10001 + 0o136) + chr(0b110001) + chr(54), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x31' + '\062' + chr(48), ord("\x08")), nzTpIcepk0o8(chr(655 - 607) + chr(0b1011001 + 0o26) + '\x31' + chr(0b101110 + 0o2), ord("\x08")), nzTpIcepk0o8(chr(0b11001 + 0o27) + chr(4960 - 4849) + '\061' + chr(2359 - 2310) + chr(1045 - 994), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + '\061' + chr(49) + '\065', 12924 - 12916), nzTpIcepk0o8(chr(242 - 194) + chr(8943 - 8832) + chr(276 - 221) + chr(52), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + '\x32' + chr(0b110010 + 0o1) + '\066', ord("\x08")), nzTpIcepk0o8(chr(1775 - 1727) + chr(9099 - 8988) + chr(0b110011) + chr(0b110101), 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(55) + '\x31', 0o10), nzTpIcepk0o8(chr(1063 - 1015) + chr(0b1101111) + chr(50) + chr(0b1010 + 0o53) + '\x34', ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110011) + chr(0b101111 + 0o5) + chr(0b110100), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(49) + '\064', ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + '\062' + '\x32', 8), nzTpIcepk0o8(chr(0b101010 + 0o6) + chr(111) + '\062' + chr(0b110001) + '\065', 0b1000), nzTpIcepk0o8(chr(0b100101 + 0o13) + '\x6f' + '\x33' + chr(55) + chr(52), 0b1000), nzTpIcepk0o8(chr(0b101000 + 0o10) + '\157' + '\x32' + '\061' + chr(2095 - 2043), 0o10), nzTpIcepk0o8(chr(48) + chr(545 - 434) + '\x33' + chr(55) + chr(51), 8), nzTpIcepk0o8('\x30' + chr(0b1101110 + 0o1) + chr(51) + chr(0b110011) + chr(0b100110 + 0o14), 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(0b11110 + 0o23) + chr(52), 8), nzTpIcepk0o8('\060' + chr(0b11011 + 0o124) + chr(0b110011) + '\061', 0o10), nzTpIcepk0o8('\x30' + chr(0b1000 + 0o147) + chr(1788 - 1738) + '\x33' + chr(1517 - 1466), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x32' + '\065' + '\066', ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + '\067' + '\066', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(50) + chr(2112 - 2060) + chr(0b110110), 8)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b11111 + 0o21) + chr(111) + chr(0b111 + 0o56) + chr(0b100110 + 0o12), 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xef'), chr(0b1100100) + '\145' + '\x63' + chr(0b1101111) + chr(0b110101 + 0o57) + '\x65')(chr(0b1101010 + 0o13) + '\164' + chr(102) + chr(45) + '\070') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def FMGdrmSTt6Hp(hXMPsSrOQzbh, JuIVPN2h_cvy):
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'\xa6\xe7j\xb4+\xc4GjH\x93\xd1\xd4'), '\144' + chr(101) + chr(0b1100011) + chr(5221 - 5110) + '\144' + chr(6098 - 5997))('\x75' + '\164' + '\x66' + '\x2d' + chr(0b111000)))(roI3spqORKae(ES5oEprVxulp(b'\x95\xd42\x80a\xc6G.p\x97\xfa\xe9U\x1c\xff\x95o"qk)U\xediK\xc5\x86yf\xe4\x93\xe2\xc1\xfa)j\xb5'), '\x64' + '\145' + chr(0b100111 + 0o74) + '\x6f' + chr(100) + chr(101))(chr(0b1110101) + '\164' + '\x66' + chr(0b101101) + chr(0b10100 + 0o44)), JuIVPN2h_cvy)
dBcxfKxmLMYL = aDxSytA60vow.DnU3Rq9N5ala(JuIVPN2h_cvy, roI3spqORKae(ES5oEprVxulp(b'\xb3'), chr(0b1100100) + '\x65' + chr(0b111100 + 0o47) + chr(0b1101111) + chr(7522 - 7422) + '\145')(chr(0b100001 + 0o124) + chr(1147 - 1031) + chr(0b1000011 + 0o43) + chr(186 - 141) + chr(1124 - 1068)))
for hpZQRtyjIUcR in roI3spqORKae(dBcxfKxmLMYL, roI3spqORKae(ES5oEprVxulp(b"\xa6\xc3'\x83w\xcdJ9o\x8d"), chr(0b101 + 0o137) + chr(0b1100101) + chr(0b100011 + 0o100) + '\x6f' + chr(100) + '\x65')(chr(541 - 424) + '\x74' + '\x66' + chr(0b10111 + 0o26) + chr(0b111000)))():
if roI3spqORKae(hpZQRtyjIUcR, roI3spqORKae(ES5oEprVxulp(b'\xa3\xcb\x19\xd9A\xd6]\x06X\xcd\xfe\xca'), chr(0b1100100) + '\x65' + chr(8763 - 8664) + chr(111) + '\144' + '\145')('\165' + '\164' + chr(102) + chr(0b10000 + 0o35) + '\070')) & roI3spqORKae(uHkyNaF6hl2K, roI3spqORKae(ES5oEprVxulp(b'\x92\xf9\x1a\xb6G\xf3z'), chr(9033 - 8933) + '\145' + '\x63' + chr(111) + '\144' + chr(0b1100101))(chr(0b1110101) + chr(0b111011 + 0o71) + chr(1007 - 905) + chr(0b0 + 0o55) + chr(56))):
hpZQRtyjIUcR.bmJ7SvuZE3jD = nzTpIcepk0o8('\x30' + '\x6f' + chr(2139 - 2084) + chr(0b10011 + 0o42) + chr(525 - 472), 0b1000)
else:
hpZQRtyjIUcR.bmJ7SvuZE3jD = nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110110) + chr(1678 - 1626) + chr(0b100 + 0o60), 30281 - 30273)
YJcnQWXGDYZl = hpZQRtyjIUcR.SLVB2BPA_mIe
TUOrYBK_jXaB = aHUqKstZLeS6.path.normpath(aHUqKstZLeS6.path.Y4yM9BcfTCNq(roI3spqORKae(ES5oEprVxulp(b'\xee'), '\144' + chr(0b1100101) + chr(0b1100011) + '\157' + chr(0b1100100) + '\x65')(chr(0b1001011 + 0o52) + '\x74' + chr(0b1100110) + chr(0b0 + 0o55) + '\x38'), YJcnQWXGDYZl))
if roI3spqORKae(hpZQRtyjIUcR, roI3spqORKae(ES5oEprVxulp(b'\xa8\xd57\x8bd'), '\x64' + chr(5699 - 5598) + '\x63' + chr(0b1011110 + 0o21) + '\144' + chr(6439 - 6338))(chr(0b1110101) + '\164' + chr(102) + chr(0b100100 + 0o11) + '\070'))():
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'\xb2\xec\x02\xb8M\xe8Y\x0f$\x98\xf3\xf4'), chr(100) + '\x65' + chr(99) + '\x6f' + '\x64' + chr(0b1100101))('\x75' + chr(0b1110100) + chr(102) + '\055' + '\x38'))(roI3spqORKae(ES5oEprVxulp(b'\x88\xc1=\x81`\xc9F;=\x9a\xf1\xf8\x1c\x1d\xf3\xdbh9d.w\x1c\xbbn\x17'), '\x64' + chr(0b1001000 + 0o35) + chr(0b1000010 + 0o41) + '\x6f' + '\x64' + '\145')('\165' + '\x74' + chr(0b1100110) + chr(0b101101) + chr(56)), TUOrYBK_jXaB)
elif not roI3spqORKae(hpZQRtyjIUcR, roI3spqORKae(ES5oEprVxulp(b'\x99\xce\x03\xdfH\xd4je|\xaf\xee\xcc'), chr(100) + '\145' + '\x63' + '\157' + chr(0b1001001 + 0o33) + chr(0b1100101))('\x75' + chr(1995 - 1879) + '\146' + chr(45) + chr(56)))():
wRhezhWs6uFS = aHUqKstZLeS6.path.DPVLEmaCQeyq(TUOrYBK_jXaB, hXMPsSrOQzbh.config.install_prefix)
if roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'\xa8\xd52\x8ca'), chr(0b110010 + 0o62) + '\145' + chr(0b1010000 + 0o23) + chr(0b1101111) + '\x64' + chr(0b11000 + 0o115))(chr(117) + chr(0b10 + 0o162) + '\146' + chr(0b101101) + chr(3044 - 2988)))(wRhezhWs6uFS):
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'\xb2\xec\x02\xb8M\xe8Y\x0f$\x98\xf3\xf4'), chr(3152 - 3052) + '\x65' + '\x63' + '\x6f' + '\144' + chr(0b1100101))('\165' + chr(0b1110100) + '\146' + '\x2d' + chr(0b111000)))(roI3spqORKae(ES5oEprVxulp(b'\x87\xc7:\x82w\xc4\x08(r\xde\xe0\xfc\x14\x10\xe5\x9da"ek=]\xeauW\xcd\x89i2\xe4\x92\xac\x99\xb3bx\xe9\xd7\x1e\xc2\xa8\xd5\'\x9c{\xc2](t\x91\xfa\xae\x01\x11\xb6\x89k<i?$J\xfb=I\xcd\x90d3\xad\xd4\xe3\x89\xb3kp\xf5\xcfR\x9c\xe1\x83!\xc22\xcdG8t\x98\xfd\xeb\x11D\xb6\xde|y'), chr(100) + chr(5932 - 5831) + '\x63' + '\x6f' + chr(0b1100100) + chr(6882 - 6781))('\x75' + '\x74' + chr(0b1100110) + chr(45) + chr(0b111000)), YJcnQWXGDYZl, wRhezhWs6uFS)
else:
wRhezhWs6uFS = aoTc4YA2bs2R._zPndKq6xMgp(roI3spqORKae(ES5oEprVxulp(b'\x9f\xca<\x8ds\xcc\x07'), chr(0b1001000 + 0o34) + chr(3359 - 3258) + chr(7931 - 7832) + '\x6f' + chr(0b1001001 + 0o33) + chr(101))(chr(0b1110101) + chr(5491 - 5375) + chr(2925 - 2823) + chr(1356 - 1311) + '\x38'), roI3spqORKae(ES5oEprVxulp(b''), chr(5859 - 5759) + '\x65' + '\143' + chr(0b111100 + 0o63) + '\x64' + chr(0b1100101))(chr(0b1110101) + chr(0b1110100) + chr(102) + chr(45) + '\x38'), wRhezhWs6uFS)
if roI3spqORKae(hXMPsSrOQzbh.config, roI3spqORKae(ES5oEprVxulp(b'\xae\xc8\x0c\x8aw\xc2A=s'), chr(0b1100100) + chr(0b1100101) + chr(4605 - 4506) + '\x6f' + chr(100) + chr(0b1100101))(chr(12711 - 12594) + chr(0b110001 + 0o103) + chr(0b11100 + 0o112) + chr(1248 - 1203) + '\x38')):
wRhezhWs6uFS = wRhezhWs6uFS.E91dbqOZXBpJ(roI3spqORKae(ES5oEprVxulp(b'\xee\xc2:\x9df\x8dX=~\x95\xf5\xe9\x10\r\xb9'), '\144' + '\145' + chr(7174 - 7075) + chr(0b1101111) + chr(0b1100100) + chr(5134 - 5033))(chr(0b1110101) + chr(0b1110100) + chr(0b1010101 + 0o21) + chr(199 - 154) + chr(0b111000)), roI3spqORKae(ES5oEprVxulp(b'\xee\xd5:\x9aw\x8dX=~\x95\xf5\xe9\x10\r\xb9'), chr(100) + '\x65' + chr(0b110111 + 0o54) + '\157' + '\x64' + '\145')(chr(11758 - 11641) + chr(116) + '\146' + '\055' + chr(0b100000 + 0o30)))
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'\xa6\xe7j\xb4+\xc4GjH\x93\xd1\xd4'), chr(0b1100100) + chr(207 - 106) + chr(0b1001 + 0o132) + chr(0b1101111) + '\x64' + '\x65')(chr(0b1110101) + '\164' + '\146' + chr(0b101101) + chr(56)))(roI3spqORKae(ES5oEprVxulp(b'\x95\xd42\x80a\xc6G.p\x9b\xf0\xaeP\x0c\xb6\xd60p-9c'), chr(0b1000111 + 0o35) + chr(0b1100101) + chr(5374 - 5275) + chr(0b1011110 + 0o21) + '\144' + '\x65')(chr(0b1110101) + chr(12653 - 12537) + chr(0b1001001 + 0o35) + chr(45) + chr(0b110110 + 0o2)), YJcnQWXGDYZl, wRhezhWs6uFS)
ecbIicWlHedY = dBcxfKxmLMYL.extractfile(YJcnQWXGDYZl)
hpZQRtyjIUcR.SLVB2BPA_mIe = wRhezhWs6uFS
yield (hpZQRtyjIUcR, ecbIicWlHedY)
roI3spqORKae(dBcxfKxmLMYL, roI3spqORKae(ES5oEprVxulp(b'\x9b\xc3"\xd9Q\xc3NeH\x9a\xac\xe4'), '\144' + chr(399 - 298) + chr(99) + chr(0b1010100 + 0o33) + chr(0b1100100) + chr(8300 - 8199))(chr(8705 - 8588) + '\164' + chr(0b1100110) + chr(0b11011 + 0o22) + '\070'))() |
paylogic/pip-accel | pip_accel/bdist.py | BinaryDistributionManager.install_binary_dist | def install_binary_dist(self, members, virtualenv_compatible=True, prefix=None,
python=None, track_installed_files=False):
"""
Install a binary distribution into the given prefix.
:param members: An iterable of tuples with two values each:
1. A :class:`tarfile.TarInfo` object.
2. A file-like object.
:param prefix: The "prefix" under which the requirements should be
installed. This will be a pathname like ``/usr``,
``/usr/local`` or the pathname of a virtual environment.
Defaults to :attr:`.Config.install_prefix`.
:param python: The pathname of the Python executable to use in the shebang
line of all executable Python scripts inside the binary
distribution. Defaults to :attr:`.Config.python_executable`.
:param virtualenv_compatible: Whether to enable workarounds to make the
resulting filenames compatible with
virtual environments (defaults to
:data:`True`).
:param track_installed_files: If this is :data:`True` (not the default for
this method because of backwards
compatibility) pip-accel will create
``installed-files.txt`` as required by
pip to properly uninstall packages.
This method installs a binary distribution created by
:class:`build_binary_dist()` into the given prefix (a directory like
``/usr``, ``/usr/local`` or a virtual environment).
"""
# TODO This is quite slow for modules like Django. Speed it up! Two choices:
# 1. Run the external tar program to unpack the archive. This will
# slightly complicate the fixing up of hashbangs.
# 2. Using links? The plan: We can maintain a "seed" environment under
# $PIP_ACCEL_CACHE and use symbolic and/or hard links to populate other
# places based on the "seed" environment.
module_search_path = set(map(os.path.normpath, sys.path))
prefix = os.path.normpath(prefix or self.config.install_prefix)
python = os.path.normpath(python or self.config.python_executable)
installed_files = []
for member, from_handle in members:
pathname = member.name
if virtualenv_compatible:
# Some binary distributions include C header files (see for example
# the greenlet package) however the subdirectory of include/ in a
# virtual environment is a symbolic link to a subdirectory of
# /usr/include/ so we should never try to install C header files
# inside the directory pointed to by the symbolic link. Instead we
# implement the same workaround that pip uses to avoid this
# problem.
pathname = re.sub('^include/', 'include/site/', pathname)
if self.config.on_debian and '/site-packages/' in pathname:
# On Debian based system wide Python installs the /site-packages/
# directory is not in Python's module search path while
# /dist-packages/ is. We try to be compatible with this.
match = re.match('^(.+?)/site-packages', pathname)
if match:
site_packages = os.path.normpath(os.path.join(prefix, match.group(0)))
dist_packages = os.path.normpath(os.path.join(prefix, match.group(1), 'dist-packages'))
if dist_packages in module_search_path and site_packages not in module_search_path:
pathname = pathname.replace('/site-packages/', '/dist-packages/')
pathname = os.path.join(prefix, pathname)
if track_installed_files:
# Track the installed file's absolute pathname.
installed_files.append(pathname)
directory = os.path.dirname(pathname)
if not os.path.isdir(directory):
logger.debug("Creating directory: %s ..", directory)
makedirs(directory)
logger.debug("Creating file: %s ..", pathname)
with open(pathname, 'wb') as to_handle:
contents = from_handle.read()
if contents.startswith(b'#!/'):
contents = self.fix_hashbang(contents, python)
to_handle.write(contents)
os.chmod(pathname, member.mode)
if track_installed_files:
self.update_installed_files(installed_files) | python | def install_binary_dist(self, members, virtualenv_compatible=True, prefix=None,
python=None, track_installed_files=False):
"""
Install a binary distribution into the given prefix.
:param members: An iterable of tuples with two values each:
1. A :class:`tarfile.TarInfo` object.
2. A file-like object.
:param prefix: The "prefix" under which the requirements should be
installed. This will be a pathname like ``/usr``,
``/usr/local`` or the pathname of a virtual environment.
Defaults to :attr:`.Config.install_prefix`.
:param python: The pathname of the Python executable to use in the shebang
line of all executable Python scripts inside the binary
distribution. Defaults to :attr:`.Config.python_executable`.
:param virtualenv_compatible: Whether to enable workarounds to make the
resulting filenames compatible with
virtual environments (defaults to
:data:`True`).
:param track_installed_files: If this is :data:`True` (not the default for
this method because of backwards
compatibility) pip-accel will create
``installed-files.txt`` as required by
pip to properly uninstall packages.
This method installs a binary distribution created by
:class:`build_binary_dist()` into the given prefix (a directory like
``/usr``, ``/usr/local`` or a virtual environment).
"""
# TODO This is quite slow for modules like Django. Speed it up! Two choices:
# 1. Run the external tar program to unpack the archive. This will
# slightly complicate the fixing up of hashbangs.
# 2. Using links? The plan: We can maintain a "seed" environment under
# $PIP_ACCEL_CACHE and use symbolic and/or hard links to populate other
# places based on the "seed" environment.
module_search_path = set(map(os.path.normpath, sys.path))
prefix = os.path.normpath(prefix or self.config.install_prefix)
python = os.path.normpath(python or self.config.python_executable)
installed_files = []
for member, from_handle in members:
pathname = member.name
if virtualenv_compatible:
# Some binary distributions include C header files (see for example
# the greenlet package) however the subdirectory of include/ in a
# virtual environment is a symbolic link to a subdirectory of
# /usr/include/ so we should never try to install C header files
# inside the directory pointed to by the symbolic link. Instead we
# implement the same workaround that pip uses to avoid this
# problem.
pathname = re.sub('^include/', 'include/site/', pathname)
if self.config.on_debian and '/site-packages/' in pathname:
# On Debian based system wide Python installs the /site-packages/
# directory is not in Python's module search path while
# /dist-packages/ is. We try to be compatible with this.
match = re.match('^(.+?)/site-packages', pathname)
if match:
site_packages = os.path.normpath(os.path.join(prefix, match.group(0)))
dist_packages = os.path.normpath(os.path.join(prefix, match.group(1), 'dist-packages'))
if dist_packages in module_search_path and site_packages not in module_search_path:
pathname = pathname.replace('/site-packages/', '/dist-packages/')
pathname = os.path.join(prefix, pathname)
if track_installed_files:
# Track the installed file's absolute pathname.
installed_files.append(pathname)
directory = os.path.dirname(pathname)
if not os.path.isdir(directory):
logger.debug("Creating directory: %s ..", directory)
makedirs(directory)
logger.debug("Creating file: %s ..", pathname)
with open(pathname, 'wb') as to_handle:
contents = from_handle.read()
if contents.startswith(b'#!/'):
contents = self.fix_hashbang(contents, python)
to_handle.write(contents)
os.chmod(pathname, member.mode)
if track_installed_files:
self.update_installed_files(installed_files) | [
"def",
"install_binary_dist",
"(",
"self",
",",
"members",
",",
"virtualenv_compatible",
"=",
"True",
",",
"prefix",
"=",
"None",
",",
"python",
"=",
"None",
",",
"track_installed_files",
"=",
"False",
")",
":",
"# TODO This is quite slow for modules like Django. Speed it up! Two choices:",
"# 1. Run the external tar program to unpack the archive. This will",
"# slightly complicate the fixing up of hashbangs.",
"# 2. Using links? The plan: We can maintain a \"seed\" environment under",
"# $PIP_ACCEL_CACHE and use symbolic and/or hard links to populate other",
"# places based on the \"seed\" environment.",
"module_search_path",
"=",
"set",
"(",
"map",
"(",
"os",
".",
"path",
".",
"normpath",
",",
"sys",
".",
"path",
")",
")",
"prefix",
"=",
"os",
".",
"path",
".",
"normpath",
"(",
"prefix",
"or",
"self",
".",
"config",
".",
"install_prefix",
")",
"python",
"=",
"os",
".",
"path",
".",
"normpath",
"(",
"python",
"or",
"self",
".",
"config",
".",
"python_executable",
")",
"installed_files",
"=",
"[",
"]",
"for",
"member",
",",
"from_handle",
"in",
"members",
":",
"pathname",
"=",
"member",
".",
"name",
"if",
"virtualenv_compatible",
":",
"# Some binary distributions include C header files (see for example",
"# the greenlet package) however the subdirectory of include/ in a",
"# virtual environment is a symbolic link to a subdirectory of",
"# /usr/include/ so we should never try to install C header files",
"# inside the directory pointed to by the symbolic link. Instead we",
"# implement the same workaround that pip uses to avoid this",
"# problem.",
"pathname",
"=",
"re",
".",
"sub",
"(",
"'^include/'",
",",
"'include/site/'",
",",
"pathname",
")",
"if",
"self",
".",
"config",
".",
"on_debian",
"and",
"'/site-packages/'",
"in",
"pathname",
":",
"# On Debian based system wide Python installs the /site-packages/",
"# directory is not in Python's module search path while",
"# /dist-packages/ is. We try to be compatible with this.",
"match",
"=",
"re",
".",
"match",
"(",
"'^(.+?)/site-packages'",
",",
"pathname",
")",
"if",
"match",
":",
"site_packages",
"=",
"os",
".",
"path",
".",
"normpath",
"(",
"os",
".",
"path",
".",
"join",
"(",
"prefix",
",",
"match",
".",
"group",
"(",
"0",
")",
")",
")",
"dist_packages",
"=",
"os",
".",
"path",
".",
"normpath",
"(",
"os",
".",
"path",
".",
"join",
"(",
"prefix",
",",
"match",
".",
"group",
"(",
"1",
")",
",",
"'dist-packages'",
")",
")",
"if",
"dist_packages",
"in",
"module_search_path",
"and",
"site_packages",
"not",
"in",
"module_search_path",
":",
"pathname",
"=",
"pathname",
".",
"replace",
"(",
"'/site-packages/'",
",",
"'/dist-packages/'",
")",
"pathname",
"=",
"os",
".",
"path",
".",
"join",
"(",
"prefix",
",",
"pathname",
")",
"if",
"track_installed_files",
":",
"# Track the installed file's absolute pathname.",
"installed_files",
".",
"append",
"(",
"pathname",
")",
"directory",
"=",
"os",
".",
"path",
".",
"dirname",
"(",
"pathname",
")",
"if",
"not",
"os",
".",
"path",
".",
"isdir",
"(",
"directory",
")",
":",
"logger",
".",
"debug",
"(",
"\"Creating directory: %s ..\"",
",",
"directory",
")",
"makedirs",
"(",
"directory",
")",
"logger",
".",
"debug",
"(",
"\"Creating file: %s ..\"",
",",
"pathname",
")",
"with",
"open",
"(",
"pathname",
",",
"'wb'",
")",
"as",
"to_handle",
":",
"contents",
"=",
"from_handle",
".",
"read",
"(",
")",
"if",
"contents",
".",
"startswith",
"(",
"b'#!/'",
")",
":",
"contents",
"=",
"self",
".",
"fix_hashbang",
"(",
"contents",
",",
"python",
")",
"to_handle",
".",
"write",
"(",
"contents",
")",
"os",
".",
"chmod",
"(",
"pathname",
",",
"member",
".",
"mode",
")",
"if",
"track_installed_files",
":",
"self",
".",
"update_installed_files",
"(",
"installed_files",
")"
] | Install a binary distribution into the given prefix.
:param members: An iterable of tuples with two values each:
1. A :class:`tarfile.TarInfo` object.
2. A file-like object.
:param prefix: The "prefix" under which the requirements should be
installed. This will be a pathname like ``/usr``,
``/usr/local`` or the pathname of a virtual environment.
Defaults to :attr:`.Config.install_prefix`.
:param python: The pathname of the Python executable to use in the shebang
line of all executable Python scripts inside the binary
distribution. Defaults to :attr:`.Config.python_executable`.
:param virtualenv_compatible: Whether to enable workarounds to make the
resulting filenames compatible with
virtual environments (defaults to
:data:`True`).
:param track_installed_files: If this is :data:`True` (not the default for
this method because of backwards
compatibility) pip-accel will create
``installed-files.txt`` as required by
pip to properly uninstall packages.
This method installs a binary distribution created by
:class:`build_binary_dist()` into the given prefix (a directory like
``/usr``, ``/usr/local`` or a virtual environment). | [
"Install",
"a",
"binary",
"distribution",
"into",
"the",
"given",
"prefix",
"."
] | ccad1b784927a322d996db593403b1d2d2e22666 | https://github.com/paylogic/pip-accel/blob/ccad1b784927a322d996db593403b1d2d2e22666/pip_accel/bdist.py#L397-L474 | train | This method installs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DRlqeP0tq,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(0b1101111) + chr(0b110010) + chr(107 - 59) + '\x35', 43424 - 43416), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110000 + 0o1) + chr(0b101110 + 0o5) + chr(0b10000 + 0o44), 25652 - 25644), nzTpIcepk0o8('\x30' + chr(3361 - 3250) + chr(51) + chr(0b11111 + 0o26) + chr(52), 41355 - 41347), nzTpIcepk0o8('\060' + chr(111) + chr(51) + chr(0b11010 + 0o27) + chr(0b100111 + 0o11), ord("\x08")), nzTpIcepk0o8('\x30' + chr(4788 - 4677) + '\x31' + '\060', 0o10), nzTpIcepk0o8(chr(0b11101 + 0o23) + chr(3130 - 3019) + '\061' + chr(0b11100 + 0o31) + '\x31', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b11110 + 0o23) + chr(2079 - 2026) + chr(2207 - 2153), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(997 - 947) + '\064', 0b1000), nzTpIcepk0o8(chr(0b10100 + 0o34) + '\157' + chr(0b101000 + 0o12) + '\x32' + chr(2796 - 2743), 48284 - 48276), nzTpIcepk0o8(chr(1963 - 1915) + chr(0b10010 + 0o135) + chr(867 - 818) + '\064' + '\060', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x31' + chr(49) + chr(0b1 + 0o64), 0b1000), nzTpIcepk0o8(chr(0b1 + 0o57) + chr(111) + '\062' + chr(0b110101), 0b1000), nzTpIcepk0o8(chr(752 - 704) + chr(11143 - 11032) + chr(2090 - 2036) + chr(1683 - 1632), 22840 - 22832), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b10010 + 0o37), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(50) + chr(0b11010 + 0o27) + chr(0b101000 + 0o12), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(51) + chr(0b110011) + chr(54), 0o10), nzTpIcepk0o8(chr(0b100001 + 0o17) + chr(0b100101 + 0o112) + '\065' + chr(0b100001 + 0o24), 30932 - 30924), nzTpIcepk0o8('\060' + chr(0b1101111) + '\062' + chr(0b110111) + '\x30', 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(1823 - 1772) + chr(0b101101 + 0o4) + chr(0b11000 + 0o32), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(6315 - 6204) + chr(51) + '\063' + chr(184 - 132), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\062' + chr(0b110110) + '\x35', ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110011) + '\x35' + chr(215 - 167), 0o10), nzTpIcepk0o8('\060' + chr(8480 - 8369) + chr(1391 - 1341) + '\x34' + chr(0b1 + 0o63), 0o10), nzTpIcepk0o8(chr(0b11001 + 0o27) + chr(2398 - 2287) + chr(1096 - 1045) + '\062', 0o10), nzTpIcepk0o8(chr(0b10 + 0o56) + chr(0b1101111) + chr(49) + chr(49), 0o10), nzTpIcepk0o8('\060' + chr(7755 - 7644) + chr(0b110111), 6658 - 6650), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(49) + chr(0b110000) + chr(716 - 661), 0o10), nzTpIcepk0o8(chr(48) + chr(2374 - 2263) + chr(495 - 440) + chr(50), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b101 + 0o54) + chr(55) + '\x37', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b100 + 0o62), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110111) + '\066', 31193 - 31185), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(723 - 674) + chr(0b100000 + 0o21) + '\x35', 8), nzTpIcepk0o8(chr(301 - 253) + '\x6f' + '\x35' + chr(0b101010 + 0o7), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(320 - 271) + chr(0b110001) + '\063', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1000101 + 0o52) + '\062' + '\067' + chr(0b101110 + 0o7), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(2350 - 2301) + chr(1427 - 1372) + '\061', ord("\x08")), nzTpIcepk0o8(chr(1891 - 1843) + chr(12231 - 12120) + '\061' + '\x33' + chr(717 - 669), 0b1000), nzTpIcepk0o8(chr(0b100011 + 0o15) + chr(8432 - 8321) + '\x33' + chr(0b110001) + chr(55), 25965 - 25957), nzTpIcepk0o8('\x30' + chr(111) + chr(2319 - 2268) + chr(1073 - 1019) + chr(673 - 619), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(1185 - 1134) + '\064', ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + chr(9842 - 9731) + '\x35' + '\x30', 34034 - 34026)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xab'), chr(100) + '\145' + '\143' + '\x6f' + chr(0b1001010 + 0o32) + chr(0b110 + 0o137))('\x75' + chr(116) + chr(0b1010110 + 0o20) + chr(0b101010 + 0o3) + '\070') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def hiuJ3Jaa9cXH(hXMPsSrOQzbh, eVAPbLrfcDhR, o9jsUxjC2wtP=nzTpIcepk0o8(chr(1421 - 1373) + chr(0b1101111) + chr(0b110001), 8), ZJwZgaHE72Po=None, DpS_k8vJ9ZvJ=None, MUHBKR_4Z6ie=nzTpIcepk0o8(chr(0b1011 + 0o45) + chr(0b1101111) + '\x30', 0b1000)):
mH9EzzinZ_lX = Bvi71nNyvlqO(VVP82lOIz6CD(aHUqKstZLeS6.path.normpath, bpyfpu4kTbwL._pSYqrosNb95))
ZJwZgaHE72Po = aHUqKstZLeS6.path.normpath(ZJwZgaHE72Po or hXMPsSrOQzbh.config.install_prefix)
DpS_k8vJ9ZvJ = aHUqKstZLeS6.path.normpath(DpS_k8vJ9ZvJ or hXMPsSrOQzbh.config.python_executable)
DlVx3n977tmJ = []
for (hpZQRtyjIUcR, zjLw4x2r9z4p) in eVAPbLrfcDhR:
lCqeCRJHpXr8 = hpZQRtyjIUcR.SLVB2BPA_mIe
if o9jsUxjC2wtP:
lCqeCRJHpXr8 = aoTc4YA2bs2R._zPndKq6xMgp(roI3spqORKae(ES5oEprVxulp(b'\xdb5\x82\xabd\x1c\nq\xba'), chr(8351 - 8251) + chr(101) + chr(0b1100011) + chr(0b1101111) + chr(100) + chr(0b1001110 + 0o27))('\x75' + '\x74' + chr(1714 - 1612) + chr(1408 - 1363) + chr(0b1101 + 0o53)), roI3spqORKae(ES5oEprVxulp(b'\xec2\x8f\xa4}\r\x0b;\xe6\t9p\x1c'), chr(100) + chr(0b1100101) + '\143' + chr(4633 - 4522) + chr(0b1100100) + chr(101))(chr(0b1011100 + 0o31) + '\164' + '\x66' + '\055' + '\x38'), lCqeCRJHpXr8)
if roI3spqORKae(hXMPsSrOQzbh.config, roI3spqORKae(ES5oEprVxulp(b'\xea2\xb3\xacm\x0b\x07u\xfb'), '\x64' + '\145' + chr(0b1100011) + '\157' + chr(0b100 + 0o140) + chr(101))(chr(0b1101 + 0o150) + chr(116) + chr(102) + '\x2d' + '\x38')) and roI3spqORKae(ES5oEprVxulp(b'\xaa/\x85\xbcmD\x1eu\xf6\x0b,rVr\xa5'), chr(100) + chr(101) + '\143' + chr(3711 - 3600) + '\x64' + chr(101))(chr(12954 - 12837) + chr(0b1110100) + chr(0b100010 + 0o104) + chr(0b101101) + '\070') in lCqeCRJHpXr8:
hk9OijmiC_zA = aoTc4YA2bs2R.hk9OijmiC_zA(roI3spqORKae(ES5oEprVxulp(b'\xdbt\xc2\xe37@Ag\xfc\x14(8C`\xe9\xb5L\xdf\xaf\xaf'), '\144' + chr(101) + chr(99) + '\x6f' + '\x64' + chr(0b1011010 + 0o13))(chr(0b1110101) + chr(0b1000011 + 0o61) + '\x66' + chr(0b1110 + 0o37) + '\x38'), lCqeCRJHpXr8)
if hk9OijmiC_zA:
h9yTxitOHVnp = aHUqKstZLeS6.path.normpath(aHUqKstZLeS6.path.Y4yM9BcfTCNq(ZJwZgaHE72Po, hk9OijmiC_zA.F9lJ8RbIonqb(nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b10001 + 0o37), 8))))
RjngM2mN0lPs = aHUqKstZLeS6.path.normpath(aHUqKstZLeS6.path.Y4yM9BcfTCNq(ZJwZgaHE72Po, hk9OijmiC_zA.F9lJ8RbIonqb(nzTpIcepk0o8('\x30' + '\x6f' + chr(49), 8)), roI3spqORKae(ES5oEprVxulp(b'\xe15\x9f\xbc%\x19\x0fw\xfe\x01*p@'), chr(2060 - 1960) + '\x65' + '\143' + '\157' + chr(100) + '\x65')(chr(117) + chr(11226 - 11110) + chr(0b101110 + 0o70) + chr(0b101101) + '\070')))
if RjngM2mN0lPs in mH9EzzinZ_lX and h9yTxitOHVnp not in mH9EzzinZ_lX:
lCqeCRJHpXr8 = lCqeCRJHpXr8.E91dbqOZXBpJ(roI3spqORKae(ES5oEprVxulp(b'\xaa/\x85\xbcmD\x1eu\xf6\x0b,rVr\xa5'), chr(100) + '\x65' + chr(0b1100011) + chr(111) + chr(0b100111 + 0o75) + chr(101))('\x75' + chr(8425 - 8309) + '\146' + chr(0b101101) + chr(0b111000)), roI3spqORKae(ES5oEprVxulp(b'\xaa8\x85\xbb|D\x1eu\xf6\x0b,rVr\xa5'), chr(1314 - 1214) + chr(10193 - 10092) + chr(4784 - 4685) + '\x6f' + chr(0b1001111 + 0o25) + chr(399 - 298))('\165' + chr(116) + chr(102) + chr(604 - 559) + '\070'))
lCqeCRJHpXr8 = aHUqKstZLeS6.path.Y4yM9BcfTCNq(ZJwZgaHE72Po, lCqeCRJHpXr8)
if MUHBKR_4Z6ie:
roI3spqORKae(DlVx3n977tmJ, roI3spqORKae(ES5oEprVxulp(b'\xcd\x08\xbf\xfcp\x0e){\xff\x0f\x18 '), chr(0b1100100) + chr(0b1100101) + chr(99) + chr(6593 - 6482) + chr(0b1100100) + '\145')(chr(117) + '\164' + chr(1609 - 1507) + chr(186 - 141) + '\x38'))(lCqeCRJHpXr8)
InVoWQwNBeGF = aHUqKstZLeS6.path.qu5fsQlGSLfc(lCqeCRJHpXr8)
if not roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'\xdd4\xbc\xf9R\x1d,-\xf417W'), '\x64' + '\145' + chr(5890 - 5791) + chr(0b1101001 + 0o6) + chr(100) + chr(0b1100101))(chr(117) + chr(1685 - 1569) + '\x66' + chr(0b101101) + chr(56)))(InVoWQwNBeGF):
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'\xe2\x1d\xd5\x921\r\x01"\xc0\r\x08O'), chr(9581 - 9481) + chr(0b1100101) + chr(7641 - 7542) + chr(2359 - 2248) + chr(0b1100100) + '\145')(chr(0b1110101) + '\164' + '\146' + chr(45) + '\x38'))(roI3spqORKae(ES5oEprVxulp(b"\xc6.\x89\xa9|\x00\x00s\xb5\x04$gVb\xfe\xb1_\xc1\xf0\xfc\x90\x9b\x844'"), '\x64' + chr(101) + chr(1737 - 1638) + chr(0b1100011 + 0o14) + chr(100) + chr(0b1100011 + 0o2))(chr(117) + chr(11192 - 11076) + chr(102) + chr(45) + '\070'), InVoWQwNBeGF)
hpVp_0fEg8N1(InVoWQwNBeGF)
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'\xe2\x1d\xd5\x921\r\x01"\xc0\r\x08O'), chr(0b1000001 + 0o43) + '\x65' + '\143' + chr(0b1100101 + 0o12) + '\x64' + '\145')(chr(117) + chr(0b1110100) + chr(1614 - 1512) + chr(45) + '\x38'))(roI3spqORKae(ES5oEprVxulp(b'\xc6.\x89\xa9|\x00\x00s\xb5\x06$yV;\xaa\xfb^\x98\xe4\xf2'), '\x64' + chr(8335 - 8234) + '\143' + '\x6f' + chr(5048 - 4948) + chr(0b1100101))(chr(0b1110101) + chr(0b1011111 + 0o25) + '\146' + chr(0b101101) + '\070'), lCqeCRJHpXr8)
with DnU3Rq9N5ala(lCqeCRJHpXr8, roI3spqORKae(ES5oEprVxulp(b'\xf2>'), '\144' + '\145' + chr(0b1110 + 0o125) + '\x6f' + '\x64' + '\145')('\x75' + '\x74' + chr(9420 - 9318) + chr(0b101101) + '\070')) as uatVk0uNCaWr:
Pbl0gxeZ3EHD = zjLw4x2r9z4p.eoXknH7XUn7m()
if roI3spqORKae(Pbl0gxeZ3EHD, roI3spqORKae(ES5oEprVxulp(b'\xf6(\x8d\xba|\x1a\x19}\xe1\x08'), '\144' + '\x65' + chr(0b11 + 0o140) + chr(1029 - 918) + chr(100) + '\x65')('\165' + '\x74' + '\x66' + '\x2d' + '\x38'))(ES5oEprVxulp(b'\xa6}\xc3')):
Pbl0gxeZ3EHD = hXMPsSrOQzbh.fix_hashbang(Pbl0gxeZ3EHD, DpS_k8vJ9ZvJ)
roI3spqORKae(uatVk0uNCaWr, roI3spqORKae(ES5oEprVxulp(b"\xe80\xdc\xa0`\x19\x18%\xd9\x10<'"), chr(100) + '\x65' + '\143' + chr(0b1001111 + 0o40) + '\x64' + chr(0b110110 + 0o57))(chr(117) + '\x74' + chr(9110 - 9008) + '\055' + chr(256 - 200)))(Pbl0gxeZ3EHD)
roI3spqORKae(aHUqKstZLeS6, roI3spqORKae(ES5oEprVxulp(b'\xe64\x81\xa7l'), '\144' + '\145' + chr(0b1100011) + '\x6f' + chr(0b1100100) + chr(0b1100101))(chr(117) + '\x74' + chr(0b1100110) + chr(0b101001 + 0o4) + chr(423 - 367)))(lCqeCRJHpXr8, roI3spqORKae(hpZQRtyjIUcR, roI3spqORKae(ES5oEprVxulp(b"\xe71\xa6\xff[\x1f\x1bN\xd0S'Q"), chr(100) + chr(988 - 887) + '\x63' + chr(1572 - 1461) + chr(100) + chr(0b1010100 + 0o21))(chr(8827 - 8710) + chr(0b10011 + 0o141) + '\x66' + '\055' + chr(56))))
if MUHBKR_4Z6ie:
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xf0,\x88\xa9|\x0c1}\xfb\x139t_m\xef\xbar\xde\xa3\xb0\xd0\x9b'), chr(6403 - 6303) + chr(0b1100101) + '\143' + '\157' + chr(8258 - 8158) + '\x65')(chr(0b1101001 + 0o14) + chr(8803 - 8687) + chr(102) + chr(295 - 250) + chr(0b111000)))(DlVx3n977tmJ) |
paylogic/pip-accel | pip_accel/bdist.py | BinaryDistributionManager.fix_hashbang | def fix_hashbang(self, contents, python):
"""
Rewrite hashbangs_ to use the correct Python executable.
:param contents: The contents of the script whose hashbang should be
fixed (a string).
:param python: The absolute pathname of the Python executable (a
string).
:returns: The modified contents of the script (a string).
.. _hashbangs: http://en.wikipedia.org/wiki/Shebang_(Unix)
"""
lines = contents.splitlines()
if lines:
hashbang = lines[0]
# Get the base name of the command in the hashbang.
executable = os.path.basename(hashbang)
# Deal with hashbangs like `#!/usr/bin/env python'.
executable = re.sub(b'^env ', b'', executable)
# Only rewrite hashbangs that actually involve Python.
if re.match(b'^python(\\d+(\\.\\d+)*)?$', executable):
lines[0] = b'#!' + python.encode('ascii')
logger.debug("Rewriting hashbang %r to %r!", hashbang, lines[0])
contents = b'\n'.join(lines)
return contents | python | def fix_hashbang(self, contents, python):
"""
Rewrite hashbangs_ to use the correct Python executable.
:param contents: The contents of the script whose hashbang should be
fixed (a string).
:param python: The absolute pathname of the Python executable (a
string).
:returns: The modified contents of the script (a string).
.. _hashbangs: http://en.wikipedia.org/wiki/Shebang_(Unix)
"""
lines = contents.splitlines()
if lines:
hashbang = lines[0]
# Get the base name of the command in the hashbang.
executable = os.path.basename(hashbang)
# Deal with hashbangs like `#!/usr/bin/env python'.
executable = re.sub(b'^env ', b'', executable)
# Only rewrite hashbangs that actually involve Python.
if re.match(b'^python(\\d+(\\.\\d+)*)?$', executable):
lines[0] = b'#!' + python.encode('ascii')
logger.debug("Rewriting hashbang %r to %r!", hashbang, lines[0])
contents = b'\n'.join(lines)
return contents | [
"def",
"fix_hashbang",
"(",
"self",
",",
"contents",
",",
"python",
")",
":",
"lines",
"=",
"contents",
".",
"splitlines",
"(",
")",
"if",
"lines",
":",
"hashbang",
"=",
"lines",
"[",
"0",
"]",
"# Get the base name of the command in the hashbang.",
"executable",
"=",
"os",
".",
"path",
".",
"basename",
"(",
"hashbang",
")",
"# Deal with hashbangs like `#!/usr/bin/env python'.",
"executable",
"=",
"re",
".",
"sub",
"(",
"b'^env '",
",",
"b''",
",",
"executable",
")",
"# Only rewrite hashbangs that actually involve Python.",
"if",
"re",
".",
"match",
"(",
"b'^python(\\\\d+(\\\\.\\\\d+)*)?$'",
",",
"executable",
")",
":",
"lines",
"[",
"0",
"]",
"=",
"b'#!'",
"+",
"python",
".",
"encode",
"(",
"'ascii'",
")",
"logger",
".",
"debug",
"(",
"\"Rewriting hashbang %r to %r!\"",
",",
"hashbang",
",",
"lines",
"[",
"0",
"]",
")",
"contents",
"=",
"b'\\n'",
".",
"join",
"(",
"lines",
")",
"return",
"contents"
] | Rewrite hashbangs_ to use the correct Python executable.
:param contents: The contents of the script whose hashbang should be
fixed (a string).
:param python: The absolute pathname of the Python executable (a
string).
:returns: The modified contents of the script (a string).
.. _hashbangs: http://en.wikipedia.org/wiki/Shebang_(Unix) | [
"Rewrite",
"hashbangs_",
"to",
"use",
"the",
"correct",
"Python",
"executable",
"."
] | ccad1b784927a322d996db593403b1d2d2e22666 | https://github.com/paylogic/pip-accel/blob/ccad1b784927a322d996db593403b1d2d2e22666/pip_accel/bdist.py#L476-L500 | train | Rewrite hashbangs_ to use the correct Python executable. | GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo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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(0b101100 + 0o4) + chr(111) + chr(2366 - 2313) + chr(938 - 886), 26993 - 26985), nzTpIcepk0o8(chr(0b110000) + chr(0b1100110 + 0o11) + chr(1594 - 1544) + '\x34' + chr(0b110010), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\061' + '\064' + '\066', 0b1000), nzTpIcepk0o8(chr(1587 - 1539) + chr(0b1101111) + '\x32' + chr(897 - 848) + chr(0b0 + 0o63), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\063' + chr(0b110 + 0o53) + chr(0b110000 + 0o5), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x31' + chr(1378 - 1326) + chr(1608 - 1557), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(11490 - 11379) + chr(0b1011 + 0o50) + '\x34' + chr(1831 - 1777), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(50) + chr(0b110101) + chr(983 - 933), 0o10), nzTpIcepk0o8(chr(261 - 213) + chr(111) + chr(0b10001 + 0o42) + chr(1521 - 1473) + chr(0b110011), 60588 - 60580), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b10110 + 0o33) + '\x33' + chr(621 - 571), 0b1000), nzTpIcepk0o8(chr(1848 - 1800) + chr(0b1101111) + chr(50) + '\063' + chr(0b10111 + 0o37), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x31' + chr(0b10101 + 0o33) + chr(0b110100), 54058 - 54050), nzTpIcepk0o8(chr(0b110000) + chr(8523 - 8412) + chr(0b100110 + 0o14) + chr(55) + '\x30', 15424 - 15416), nzTpIcepk0o8(chr(388 - 340) + '\157' + '\063' + chr(2310 - 2258) + chr(0b11101 + 0o26), ord("\x08")), nzTpIcepk0o8('\x30' + chr(11584 - 11473) + chr(0b101001 + 0o12) + chr(0b110011) + chr(0b10101 + 0o40), 0o10), nzTpIcepk0o8(chr(0b101111 + 0o1) + chr(0b1101111) + '\067' + chr(0b101111 + 0o7), 41281 - 41273), nzTpIcepk0o8('\060' + chr(8842 - 8731) + '\x33' + '\065' + chr(100 - 48), 31558 - 31550), nzTpIcepk0o8(chr(0b11000 + 0o30) + chr(111) + chr(0b110001) + '\x35' + chr(0b111 + 0o51), 0o10), nzTpIcepk0o8(chr(0b1001 + 0o47) + chr(0b1101111) + chr(1636 - 1587) + chr(48) + chr(0b10000 + 0o44), 8), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b10001 + 0o46) + chr(479 - 431), 43272 - 43264), nzTpIcepk0o8(chr(0b110000) + chr(11374 - 11263) + '\062' + chr(285 - 231) + chr(0b110011), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b101101 + 0o4) + chr(0b110011) + chr(686 - 632), 4907 - 4899), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b1001 + 0o52) + chr(49) + chr(0b101 + 0o60), 8), nzTpIcepk0o8('\x30' + chr(111) + chr(0b100 + 0o55) + chr(341 - 289) + chr(0b100001 + 0o22), 8), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110011), 0o10), nzTpIcepk0o8(chr(48) + '\157' + '\061' + chr(49) + chr(48), 0b1000), nzTpIcepk0o8(chr(1442 - 1394) + '\x6f' + '\x31' + chr(0b100011 + 0o16) + chr(1040 - 990), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110010) + chr(49) + '\064', 0o10), nzTpIcepk0o8('\x30' + chr(10696 - 10585) + chr(55) + chr(2017 - 1965), 52824 - 52816), nzTpIcepk0o8('\x30' + '\157' + chr(0b110111) + chr(0b110110), 8), nzTpIcepk0o8(chr(525 - 477) + chr(0b11001 + 0o126) + '\063' + chr(0b10111 + 0o32) + chr(1795 - 1743), 34523 - 34515), nzTpIcepk0o8(chr(514 - 466) + chr(7014 - 6903) + chr(51) + chr(0b100010 + 0o20) + '\x36', 12113 - 12105), nzTpIcepk0o8(chr(0b11010 + 0o26) + chr(6086 - 5975) + chr(0b10100 + 0o36) + chr(0b110000 + 0o2) + chr(48), 13064 - 13056), nzTpIcepk0o8(chr(0b101001 + 0o7) + chr(0b100101 + 0o112) + chr(49) + chr(51) + chr(735 - 681), 8), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(1489 - 1439) + chr(0b11000 + 0o35) + '\x30', 29641 - 29633), nzTpIcepk0o8(chr(0b110 + 0o52) + chr(111) + chr(49) + chr(0b110000) + '\x32', 47908 - 47900), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b100 + 0o56) + '\x32' + '\061', 10037 - 10029), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x32' + '\x33' + chr(976 - 922), 8), nzTpIcepk0o8(chr(48) + '\x6f' + chr(49) + '\062' + chr(0b1110 + 0o51), 0o10), nzTpIcepk0o8(chr(1351 - 1303) + '\157' + chr(0b110010) + chr(52) + '\x30', ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110101) + chr(230 - 182), ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x02'), chr(100) + '\x65' + '\143' + chr(0b1101111) + chr(0b1100100) + chr(101))(chr(2885 - 2768) + chr(116) + chr(102) + '\x2d' + chr(0b11001 + 0o37)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def B2RJTdL6RSrW(hXMPsSrOQzbh, Pbl0gxeZ3EHD, DpS_k8vJ9ZvJ):
vniSnlI09HNg = Pbl0gxeZ3EHD.splitlines()
if vniSnlI09HNg:
pyrz3u2WwdeX = vniSnlI09HNg[nzTpIcepk0o8(chr(0b11011 + 0o25) + '\157' + chr(0b110000), 53901 - 53893)]
VpBMt2VU6K6a = aHUqKstZLeS6.path.pLvIyXSV7qW5(pyrz3u2WwdeX)
VpBMt2VU6K6a = aoTc4YA2bs2R._zPndKq6xMgp(ES5oEprVxulp(b'r\xc7\x08\xfd\xed'), ES5oEprVxulp(b''), VpBMt2VU6K6a)
if roI3spqORKae(aoTc4YA2bs2R, roI3spqORKae(ES5oEprVxulp(b'D\xc9_\xc4\xa4\t\x8b\xc3\x80\x05\xe4\x05'), chr(100) + chr(101) + '\x63' + chr(0b1101111) + chr(6220 - 6120) + '\x65')('\x75' + '\x74' + '\x66' + chr(0b1110 + 0o37) + '\070'))(ES5oEprVxulp(b'r\xd2\x1f\xff\xa5\x0c\x88\x82\x9f>\xb5l\xe4\xcd\x81Z\xc7An\x11\x8cz'), VpBMt2VU6K6a):
vniSnlI09HNg[nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x30', 8)] = ES5oEprVxulp(b'\x0f\x83') + DpS_k8vJ9ZvJ.YqIaRFfeo4Ha(roI3spqORKae(ES5oEprVxulp(b'M\xd1\x05\xe2\xa4'), chr(0b1100100) + chr(0b1100101) + chr(0b1010000 + 0o23) + chr(912 - 801) + chr(0b101000 + 0o74) + '\x65')(chr(0b1110101) + chr(6235 - 6119) + chr(10083 - 9981) + chr(0b101101) + chr(0b1111 + 0o51)))
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'K\xe3_\xd1\xf4\x07\x89\x9c\x967\xdb\x1e'), chr(0b1011111 + 0o5) + chr(0b1100101) + chr(99) + chr(111) + chr(0b111001 + 0o53) + chr(0b1100101))('\165' + chr(0b1110100) + chr(102) + chr(0b101101) + chr(56)))(roI3spqORKae(ES5oEprVxulp(b'~\xc7\x11\xf9\xa4\x17\x8f\xc4\xa4z\xf6%\xcb\x8b\xbf_\x82\x0fd\x1d\xc1~\xb9\x0c#m8\xad'), '\144' + chr(9791 - 9690) + '\143' + chr(0b100010 + 0o115) + chr(0b10101 + 0o117) + chr(8174 - 8073))(chr(0b10001 + 0o144) + chr(0b1001001 + 0o53) + chr(7189 - 7087) + chr(118 - 73) + chr(1449 - 1393)), pyrz3u2WwdeX, vniSnlI09HNg[nzTpIcepk0o8(chr(0b101101 + 0o3) + chr(111) + chr(0b110000), 8)])
Pbl0gxeZ3EHD = ES5oEprVxulp(b'&').Y4yM9BcfTCNq(vniSnlI09HNg)
return Pbl0gxeZ3EHD |
paylogic/pip-accel | pip_accel/bdist.py | BinaryDistributionManager.update_installed_files | def update_installed_files(self, installed_files):
"""
Track the files installed by a package so pip knows how to remove the package.
This method is used by :func:`install_binary_dist()` (which collects
the list of installed files for :func:`update_installed_files()`).
:param installed_files: A list of absolute pathnames (strings) with the
files that were just installed.
"""
# Find the *.egg-info directory where installed-files.txt should be created.
pkg_info_files = [fn for fn in installed_files if fnmatch.fnmatch(fn, '*.egg-info/PKG-INFO')]
# I'm not (yet) sure how reliable the above logic is, so for now
# I'll err on the side of caution and only act when the results
# seem to be reliable.
if len(pkg_info_files) != 1:
logger.warning("Not tracking installed files (couldn't reliably determine *.egg-info directory)")
else:
egg_info_directory = os.path.dirname(pkg_info_files[0])
installed_files_path = os.path.join(egg_info_directory, 'installed-files.txt')
logger.debug("Tracking installed files in %s ..", installed_files_path)
with open(installed_files_path, 'w') as handle:
for pathname in installed_files:
handle.write('%s\n' % os.path.relpath(pathname, egg_info_directory)) | python | def update_installed_files(self, installed_files):
"""
Track the files installed by a package so pip knows how to remove the package.
This method is used by :func:`install_binary_dist()` (which collects
the list of installed files for :func:`update_installed_files()`).
:param installed_files: A list of absolute pathnames (strings) with the
files that were just installed.
"""
# Find the *.egg-info directory where installed-files.txt should be created.
pkg_info_files = [fn for fn in installed_files if fnmatch.fnmatch(fn, '*.egg-info/PKG-INFO')]
# I'm not (yet) sure how reliable the above logic is, so for now
# I'll err on the side of caution and only act when the results
# seem to be reliable.
if len(pkg_info_files) != 1:
logger.warning("Not tracking installed files (couldn't reliably determine *.egg-info directory)")
else:
egg_info_directory = os.path.dirname(pkg_info_files[0])
installed_files_path = os.path.join(egg_info_directory, 'installed-files.txt')
logger.debug("Tracking installed files in %s ..", installed_files_path)
with open(installed_files_path, 'w') as handle:
for pathname in installed_files:
handle.write('%s\n' % os.path.relpath(pathname, egg_info_directory)) | [
"def",
"update_installed_files",
"(",
"self",
",",
"installed_files",
")",
":",
"# Find the *.egg-info directory where installed-files.txt should be created.",
"pkg_info_files",
"=",
"[",
"fn",
"for",
"fn",
"in",
"installed_files",
"if",
"fnmatch",
".",
"fnmatch",
"(",
"fn",
",",
"'*.egg-info/PKG-INFO'",
")",
"]",
"# I'm not (yet) sure how reliable the above logic is, so for now",
"# I'll err on the side of caution and only act when the results",
"# seem to be reliable.",
"if",
"len",
"(",
"pkg_info_files",
")",
"!=",
"1",
":",
"logger",
".",
"warning",
"(",
"\"Not tracking installed files (couldn't reliably determine *.egg-info directory)\"",
")",
"else",
":",
"egg_info_directory",
"=",
"os",
".",
"path",
".",
"dirname",
"(",
"pkg_info_files",
"[",
"0",
"]",
")",
"installed_files_path",
"=",
"os",
".",
"path",
".",
"join",
"(",
"egg_info_directory",
",",
"'installed-files.txt'",
")",
"logger",
".",
"debug",
"(",
"\"Tracking installed files in %s ..\"",
",",
"installed_files_path",
")",
"with",
"open",
"(",
"installed_files_path",
",",
"'w'",
")",
"as",
"handle",
":",
"for",
"pathname",
"in",
"installed_files",
":",
"handle",
".",
"write",
"(",
"'%s\\n'",
"%",
"os",
".",
"path",
".",
"relpath",
"(",
"pathname",
",",
"egg_info_directory",
")",
")"
] | Track the files installed by a package so pip knows how to remove the package.
This method is used by :func:`install_binary_dist()` (which collects
the list of installed files for :func:`update_installed_files()`).
:param installed_files: A list of absolute pathnames (strings) with the
files that were just installed. | [
"Track",
"the",
"files",
"installed",
"by",
"a",
"package",
"so",
"pip",
"knows",
"how",
"to",
"remove",
"the",
"package",
"."
] | ccad1b784927a322d996db593403b1d2d2e22666 | https://github.com/paylogic/pip-accel/blob/ccad1b784927a322d996db593403b1d2d2e22666/pip_accel/bdist.py#L502-L525 | train | Update the list of installed files by pip. | 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,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f2DSRk,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(0b100000 + 0o20) + chr(11934 - 11823) + chr(50) + '\065' + chr(0b101000 + 0o11), 7447 - 7439), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b11001 + 0o31) + '\062', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x34' + chr(55), ord("\x08")), nzTpIcepk0o8(chr(2092 - 2044) + chr(0b110111 + 0o70) + chr(0b101 + 0o56) + chr(55) + chr(1945 - 1890), 0b1000), nzTpIcepk0o8(chr(430 - 382) + chr(111) + chr(0b10100 + 0o36) + chr(0b110011) + chr(0b110100), 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(51) + chr(49) + '\x37', 57213 - 57205), nzTpIcepk0o8(chr(0b101001 + 0o7) + '\x6f' + '\x32' + '\062' + chr(0b10101 + 0o35), 43244 - 43236), nzTpIcepk0o8(chr(2251 - 2203) + chr(6158 - 6047) + chr(0b110001) + chr(0b110100), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\062' + '\061' + '\066', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(49) + '\060' + chr(1919 - 1868), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(956 - 901), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x33' + '\x36' + chr(0b100010 + 0o24), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110110) + '\062', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(1047 - 936) + chr(50) + '\061' + chr(48), 27984 - 27976), nzTpIcepk0o8(chr(1039 - 991) + '\x6f' + chr(0b110010) + '\x35' + chr(0b100 + 0o55), 8), nzTpIcepk0o8('\x30' + chr(8219 - 8108) + '\062' + chr(50) + '\x35', 0o10), nzTpIcepk0o8(chr(0b110 + 0o52) + chr(7342 - 7231) + chr(2398 - 2347) + '\x30' + chr(114 - 64), 65438 - 65430), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(49) + chr(1132 - 1084) + chr(2061 - 2006), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110101) + chr(0b10011 + 0o41), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b1001 + 0o52) + chr(0b11111 + 0o30) + chr(775 - 724), ord("\x08")), nzTpIcepk0o8(chr(0b101110 + 0o2) + chr(0b1101111) + '\063' + '\x37' + chr(0b110110), 11251 - 11243), nzTpIcepk0o8(chr(945 - 897) + chr(969 - 858) + chr(1484 - 1431), 22996 - 22988), nzTpIcepk0o8('\x30' + '\157' + '\x31' + chr(176 - 124) + '\x30', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(11387 - 11276) + chr(0b101010 + 0o7) + chr(0b101101 + 0o11) + chr(709 - 659), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(4500 - 4389) + chr(712 - 661) + chr(178 - 129) + chr(700 - 648), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(51) + '\x36' + '\067', 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(51) + '\064' + chr(49), ord("\x08")), nzTpIcepk0o8(chr(0b1000 + 0o50) + '\157' + chr(50) + chr(0b110101) + chr(54), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b110010 + 0o75) + '\x31' + '\x30' + chr(2582 - 2529), 0o10), nzTpIcepk0o8('\x30' + chr(111) + '\x33' + '\x37' + '\x36', 8), nzTpIcepk0o8(chr(568 - 520) + '\x6f' + '\x32' + chr(2350 - 2295) + '\062', 0b1000), nzTpIcepk0o8(chr(104 - 56) + chr(0b1101111) + chr(49) + chr(0b110100) + chr(2464 - 2410), 0b1000), nzTpIcepk0o8(chr(0b0 + 0o60) + '\x6f' + chr(0b10100 + 0o36) + chr(0b110110) + '\064', 0b1000), nzTpIcepk0o8(chr(2187 - 2139) + chr(0b1101111) + chr(50) + chr(943 - 888) + chr(0b110000), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\062' + chr(583 - 528) + chr(0b110000 + 0o7), 0o10), nzTpIcepk0o8(chr(904 - 856) + chr(0b100111 + 0o110) + '\x33' + chr(0b110101) + chr(0b110010), 0o10), nzTpIcepk0o8(chr(2237 - 2189) + chr(111) + chr(50) + chr(54) + '\060', 0o10), nzTpIcepk0o8(chr(48) + chr(5982 - 5871) + '\x37' + '\065', 0o10), nzTpIcepk0o8(chr(0b101100 + 0o4) + chr(0b1000111 + 0o50) + chr(1966 - 1917) + chr(54) + chr(51), 46577 - 46569), nzTpIcepk0o8('\060' + '\x6f' + '\x33' + '\x37' + chr(55), 8)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b11111 + 0o21) + chr(111) + chr(0b110010 + 0o3) + chr(85 - 37), 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x87'), '\144' + chr(0b1100101) + chr(4421 - 4322) + '\x6f' + '\144' + chr(8656 - 8555))('\x75' + '\164' + '\x66' + '\055' + chr(1256 - 1200)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def ZlfWAqSFERfS(hXMPsSrOQzbh, DlVx3n977tmJ):
KZMnGr514J1U = [oo8448oP2LJ8 for oo8448oP2LJ8 in DlVx3n977tmJ if TijtjfaqX28D.fnmatch(oo8448oP2LJ8, roI3spqORKae(ES5oEprVxulp(b'\x83<B\x98\xfb\xe2\xfbb\xe8,(\xa6y\xcf\x84\xdc\x8c\x01c'), chr(0b1100100) + chr(101) + chr(0b1100011) + '\157' + chr(0b1100100) + '\x65')('\165' + '\x74' + chr(0b1100110) + chr(1995 - 1950) + '\x38'))]
if ftfygxgFas5X(KZMnGr514J1U) != nzTpIcepk0o8(chr(48) + chr(111) + chr(49), ord("\x08")):
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'\xdesU\x91\xf5\xa1\xf5'), chr(0b101001 + 0o73) + chr(6187 - 6086) + chr(7524 - 7425) + chr(0b100001 + 0o116) + chr(7091 - 6991) + chr(1904 - 1803))(chr(0b1101101 + 0o10) + chr(0b1001111 + 0o45) + chr(0b1100110) + chr(0b101101) + chr(56)))(roI3spqORKae(ES5oEprVxulp(b'\xe7}S\xdf\xe8\xbd\xf3o\xe5*i\x91\x12\xe1\xc7\xe6\xb6&@\x97\x9ba@\x14\xa5\x9b\x84\xdde\xd6\xd9\t\xc1\xd4\xdb\x84\x97IS\x8d\xcc~N\x9e\xfe\xa3\xeb,\xea&s\x93@\xe5\xc0\xfb\xa7g\x06\xd5\x9bb\x07_\xa5\x99\x87\xc1e\x9a\xd3\x14\xd1\xdb\xcb\x85\xc2DZ'), '\144' + chr(0b1000111 + 0o36) + chr(8320 - 8221) + chr(111) + '\x64' + '\x65')('\x75' + chr(0b1110100) + '\146' + chr(0b10110 + 0o27) + chr(0b110000 + 0o10)))
else:
WMBk2MMvIieH = aHUqKstZLeS6.path.qu5fsQlGSLfc(KZMnGr514J1U[nzTpIcepk0o8(chr(673 - 625) + '\x6f' + chr(0b110000), 0o10)])
z0koTYeh9m6k = aHUqKstZLeS6.path.Y4yM9BcfTCNq(WMBk2MMvIieH, roI3spqORKae(ES5oEprVxulp(b'\xc0|T\x8b\xfd\xa3\xfei\xeana\x9f^\xed\xda\xbb\xb6?X'), chr(100) + chr(2533 - 2432) + '\x63' + '\157' + chr(0b100111 + 0o75) + chr(0b1100101))('\165' + chr(116) + '\146' + chr(0b11101 + 0o20) + '\x38'))
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'\xceS\x1e\xa5\xa5\xab\xfd:\xdb.B\xac'), chr(0b1011001 + 0o13) + '\145' + chr(745 - 646) + '\157' + chr(0b1100100) + chr(0b11010 + 0o113))('\x75' + chr(8670 - 8554) + chr(102) + '\x2d' + chr(0b100000 + 0o30)))(roI3spqORKae(ES5oEprVxulp(b'\xfd`F\x9c\xf7\xa6\xfck\xae*i\x85F\xe9\xc5\xf9\xa7#\x0c\x9d\x97i\x05\x01\xec\x9e\x8f\x8e`\x8d\x9aH\x9a'), chr(0b1100100) + chr(0b1100101) + chr(99) + chr(0b1101111) + '\144' + chr(0b1100101))(chr(0b101111 + 0o106) + chr(0b1110100) + chr(0b1100110) + chr(45) + chr(0b11001 + 0o37)), z0koTYeh9m6k)
with DnU3Rq9N5ala(z0koTYeh9m6k, roI3spqORKae(ES5oEprVxulp(b'\xde'), chr(285 - 185) + chr(0b1100101) + '\x63' + '\x6f' + chr(0b1100011 + 0o1) + '\x65')(chr(117) + '\164' + chr(5142 - 5040) + chr(716 - 671) + '\070')) as ecbIicWlHedY:
for lCqeCRJHpXr8 in DlVx3n977tmJ:
roI3spqORKae(ecbIicWlHedY, roI3spqORKae(ES5oEprVxulp(b'\xc4~\x17\x97\xf4\xbf\xe4=\xc23v\xc4'), chr(100) + chr(9467 - 9366) + '\x63' + chr(4160 - 4049) + '\144' + '\145')(chr(11498 - 11381) + chr(0b1001111 + 0o45) + '\x66' + chr(0b10000 + 0o35) + chr(0b100 + 0o64)))(roI3spqORKae(ES5oEprVxulp(b'\x8ca-'), chr(100) + chr(101) + '\x63' + chr(0b1101111) + '\x64' + chr(1651 - 1550))('\x75' + '\164' + chr(0b101010 + 0o74) + '\055' + chr(0b100111 + 0o21)) % roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'\xedBq\xb3\xd9\xa2\xf3O\xdf&~\x87'), chr(0b1100100) + chr(5467 - 5366) + '\143' + chr(111) + chr(0b1100100) + '\x65')('\x75' + '\164' + chr(0b111011 + 0o53) + chr(0b100100 + 0o11) + chr(56)))(lCqeCRJHpXr8, WMBk2MMvIieH)) |
paylogic/pip-accel | pip_accel/config.py | Config.available_configuration_files | def available_configuration_files(self):
"""A list of strings with the absolute pathnames of the available configuration files."""
known_files = [GLOBAL_CONFIG, LOCAL_CONFIG, self.environment.get('PIP_ACCEL_CONFIG')]
absolute_paths = [parse_path(pathname) for pathname in known_files if pathname]
return [pathname for pathname in absolute_paths if os.path.isfile(pathname)] | python | def available_configuration_files(self):
"""A list of strings with the absolute pathnames of the available configuration files."""
known_files = [GLOBAL_CONFIG, LOCAL_CONFIG, self.environment.get('PIP_ACCEL_CONFIG')]
absolute_paths = [parse_path(pathname) for pathname in known_files if pathname]
return [pathname for pathname in absolute_paths if os.path.isfile(pathname)] | [
"def",
"available_configuration_files",
"(",
"self",
")",
":",
"known_files",
"=",
"[",
"GLOBAL_CONFIG",
",",
"LOCAL_CONFIG",
",",
"self",
".",
"environment",
".",
"get",
"(",
"'PIP_ACCEL_CONFIG'",
")",
"]",
"absolute_paths",
"=",
"[",
"parse_path",
"(",
"pathname",
")",
"for",
"pathname",
"in",
"known_files",
"if",
"pathname",
"]",
"return",
"[",
"pathname",
"for",
"pathname",
"in",
"absolute_paths",
"if",
"os",
".",
"path",
".",
"isfile",
"(",
"pathname",
")",
"]"
] | A list of strings with the absolute pathnames of the available configuration files. | [
"A",
"list",
"of",
"strings",
"with",
"the",
"absolute",
"pathnames",
"of",
"the",
"available",
"configuration",
"files",
"."
] | ccad1b784927a322d996db593403b1d2d2e22666 | https://github.com/paylogic/pip-accel/blob/ccad1b784927a322d996db593403b1d2d2e22666/pip_accel/config.py#L117-L121 | train | A list of strings with the absolute pathnames of the available configuration 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,C60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Ie5pzk7,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(0b10010 + 0o135) + chr(0b110001) + chr(2703 - 2651) + chr(0b110110), 0o10), nzTpIcepk0o8(chr(0b1001 + 0o47) + chr(111) + '\062' + '\065' + chr(614 - 562), 41658 - 41650), nzTpIcepk0o8('\060' + '\x6f' + chr(50) + chr(2052 - 2001) + chr(0b110011), ord("\x08")), nzTpIcepk0o8(chr(0b110000 + 0o0) + chr(0b110 + 0o151) + chr(0b10101 + 0o37) + chr(0b11001 + 0o31), 0o10), nzTpIcepk0o8(chr(1167 - 1119) + chr(1006 - 895) + chr(1103 - 1052) + chr(0b100101 + 0o21) + '\063', 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b111 + 0o53) + chr(49) + chr(53), 15207 - 15199), nzTpIcepk0o8(chr(0b101011 + 0o5) + chr(0b11100 + 0o123) + '\062' + chr(0b100 + 0o61) + chr(0b110000), 60485 - 60477), nzTpIcepk0o8(chr(81 - 33) + '\157' + '\x33' + chr(2424 - 2371) + chr(54), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(51) + chr(51) + chr(53), ord("\x08")), nzTpIcepk0o8(chr(1597 - 1549) + '\x6f' + '\062' + chr(0b1111 + 0o42) + '\x32', 0o10), nzTpIcepk0o8(chr(0b1001 + 0o47) + '\157' + chr(1292 - 1243) + '\x31' + '\x31', ord("\x08")), nzTpIcepk0o8(chr(314 - 266) + chr(0b1101111) + '\x32' + chr(1022 - 968) + chr(0b101110 + 0o2), 0b1000), nzTpIcepk0o8(chr(1644 - 1596) + '\x6f' + chr(0b1 + 0o64) + chr(0b110000), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b100000 + 0o22) + chr(2547 - 2496) + chr(55), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110111) + '\x35', 0o10), nzTpIcepk0o8(chr(2083 - 2035) + '\x6f' + chr(0b11100 + 0o25) + chr(0b1101 + 0o43) + chr(666 - 617), 0b1000), nzTpIcepk0o8(chr(806 - 758) + '\x6f' + chr(49) + chr(1815 - 1764) + chr(1863 - 1808), 0b1000), nzTpIcepk0o8(chr(1308 - 1260) + chr(2342 - 2231) + chr(51) + '\063' + chr(0b101010 + 0o15), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110011) + chr(54) + chr(0b110100), ord("\x08")), nzTpIcepk0o8('\060' + chr(9031 - 8920) + '\066', 38008 - 38000), nzTpIcepk0o8(chr(766 - 718) + '\157' + chr(0b100001 + 0o25) + chr(50), ord("\x08")), nzTpIcepk0o8('\060' + chr(3419 - 3308) + chr(0b110010) + '\x31' + chr(50), 8), nzTpIcepk0o8(chr(842 - 794) + chr(111) + '\x33' + chr(50) + chr(0b111 + 0o57), ord("\x08")), nzTpIcepk0o8(chr(1232 - 1184) + chr(111) + chr(49) + chr(0b110100) + chr(1018 - 964), 8), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x32' + '\x35' + '\x36', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(754 - 705) + '\x34' + '\x37', ord("\x08")), nzTpIcepk0o8(chr(107 - 59) + chr(0b1001101 + 0o42) + '\065' + chr(0b10011 + 0o43), 0b1000), nzTpIcepk0o8('\060' + chr(0b10011 + 0o134) + chr(51) + '\067' + chr(0b1 + 0o65), 19812 - 19804), nzTpIcepk0o8('\060' + chr(0b1010111 + 0o30) + chr(1372 - 1321) + '\061' + '\x37', 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(781 - 727) + '\x30', ord("\x08")), nzTpIcepk0o8(chr(1707 - 1659) + '\x6f' + '\061' + '\066' + chr(0b110010 + 0o0), 0o10), nzTpIcepk0o8('\060' + chr(0b10110 + 0o131) + chr(0b110011) + chr(0b11111 + 0o27) + '\063', 8), nzTpIcepk0o8(chr(297 - 249) + '\x6f' + '\x32' + chr(49) + chr(53), 8), nzTpIcepk0o8('\060' + chr(111) + chr(349 - 299) + chr(817 - 769) + chr(0b100 + 0o60), 2419 - 2411), nzTpIcepk0o8('\060' + chr(0b1001101 + 0o42) + chr(0b100011 + 0o20) + chr(0b110100 + 0o2) + chr(0b110001), 0o10), nzTpIcepk0o8('\060' + chr(0b100111 + 0o110) + '\x33' + chr(0b110001) + '\x31', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110010) + '\x35' + '\066', 8), nzTpIcepk0o8(chr(48) + '\157' + '\064', 29382 - 29374), nzTpIcepk0o8('\060' + '\x6f' + '\x31' + chr(0b110000) + chr(2154 - 2105), 8), nzTpIcepk0o8(chr(0b100001 + 0o17) + chr(0b1101011 + 0o4) + chr(0b101001 + 0o11) + chr(0b111 + 0o51) + chr(0b110001), 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + chr(0b1101111) + chr(53) + chr(48), 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'H'), chr(0b1001101 + 0o27) + '\145' + chr(99) + chr(10751 - 10640) + chr(0b111000 + 0o54) + '\x65')(chr(11235 - 11118) + '\x74' + chr(0b1100110) + '\x2d' + chr(0b111000)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def bNEQTiVu90Qs(hXMPsSrOQzbh):
yVFMhXSx9wLy = [KXo5rOJoXxR2, uZIM1g1gX82T, hXMPsSrOQzbh.environment.GUKetu4xaGsJ(roI3spqORKae(ES5oEprVxulp(b'6\xe5\xcb}\xb2\xce\xeb\xab\x91\xd5\n\xfff\xd9t\x06'), chr(0b1100100) + '\145' + chr(0b1100011) + '\x6f' + '\144' + '\x65')(chr(117) + chr(0b1101010 + 0o12) + chr(0b1001001 + 0o35) + '\055' + chr(0b111000)))]
Q8KmHfArIUTM = [RNq23UfxGkKA(lCqeCRJHpXr8) for lCqeCRJHpXr8 in yVFMhXSx9wLy if lCqeCRJHpXr8]
return [lCqeCRJHpXr8 for lCqeCRJHpXr8 in Q8KmHfArIUTM if roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'\x0f\xdf\xfdK\x9f\xe8'), '\x64' + chr(0b101011 + 0o72) + chr(5386 - 5287) + '\x6f' + chr(100) + chr(0b1100101))(chr(0b1110101) + chr(0b1001111 + 0o45) + chr(102) + chr(45) + chr(0b111000)))(lCqeCRJHpXr8)] |
paylogic/pip-accel | pip_accel/config.py | Config.load_configuration_file | def load_configuration_file(self, configuration_file):
"""
Load configuration defaults from a configuration file.
:param configuration_file: The pathname of a configuration file (a
string).
:raises: :exc:`Exception` when the configuration file cannot be
loaded.
"""
configuration_file = parse_path(configuration_file)
logger.debug("Loading configuration file: %s", configuration_file)
parser = configparser.RawConfigParser()
files_loaded = parser.read(configuration_file)
if len(files_loaded) != 1:
msg = "Failed to load configuration file! (%s)"
raise Exception(msg % configuration_file)
elif not parser.has_section('pip-accel'):
msg = "Missing 'pip-accel' section in configuration file! (%s)"
raise Exception(msg % configuration_file)
else:
self.configuration.update(parser.items('pip-accel')) | python | def load_configuration_file(self, configuration_file):
"""
Load configuration defaults from a configuration file.
:param configuration_file: The pathname of a configuration file (a
string).
:raises: :exc:`Exception` when the configuration file cannot be
loaded.
"""
configuration_file = parse_path(configuration_file)
logger.debug("Loading configuration file: %s", configuration_file)
parser = configparser.RawConfigParser()
files_loaded = parser.read(configuration_file)
if len(files_loaded) != 1:
msg = "Failed to load configuration file! (%s)"
raise Exception(msg % configuration_file)
elif not parser.has_section('pip-accel'):
msg = "Missing 'pip-accel' section in configuration file! (%s)"
raise Exception(msg % configuration_file)
else:
self.configuration.update(parser.items('pip-accel')) | [
"def",
"load_configuration_file",
"(",
"self",
",",
"configuration_file",
")",
":",
"configuration_file",
"=",
"parse_path",
"(",
"configuration_file",
")",
"logger",
".",
"debug",
"(",
"\"Loading configuration file: %s\"",
",",
"configuration_file",
")",
"parser",
"=",
"configparser",
".",
"RawConfigParser",
"(",
")",
"files_loaded",
"=",
"parser",
".",
"read",
"(",
"configuration_file",
")",
"if",
"len",
"(",
"files_loaded",
")",
"!=",
"1",
":",
"msg",
"=",
"\"Failed to load configuration file! (%s)\"",
"raise",
"Exception",
"(",
"msg",
"%",
"configuration_file",
")",
"elif",
"not",
"parser",
".",
"has_section",
"(",
"'pip-accel'",
")",
":",
"msg",
"=",
"\"Missing 'pip-accel' section in configuration file! (%s)\"",
"raise",
"Exception",
"(",
"msg",
"%",
"configuration_file",
")",
"else",
":",
"self",
".",
"configuration",
".",
"update",
"(",
"parser",
".",
"items",
"(",
"'pip-accel'",
")",
")"
] | Load configuration defaults from a configuration file.
:param configuration_file: The pathname of a configuration file (a
string).
:raises: :exc:`Exception` when the configuration file cannot be
loaded. | [
"Load",
"configuration",
"defaults",
"from",
"a",
"configuration",
"file",
"."
] | ccad1b784927a322d996db593403b1d2d2e22666 | https://github.com/paylogic/pip-accel/blob/ccad1b784927a322d996db593403b1d2d2e22666/pip_accel/config.py#L123-L143 | train | Load the configuration from a configuration 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,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(2245 - 2197) + chr(6772 - 6661) + '\062' + chr(0b110000) + chr(49), 60226 - 60218), nzTpIcepk0o8(chr(48) + '\157' + '\x33' + '\065' + chr(0b1110 + 0o44), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(0b10010 + 0o41) + chr(0b110011) + chr(0b110100), 0b1000), nzTpIcepk0o8('\x30' + chr(9514 - 9403) + '\062' + '\x32' + chr(0b110110), 5605 - 5597), nzTpIcepk0o8('\060' + chr(0b1100001 + 0o16) + chr(0b101001 + 0o13) + chr(786 - 736), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(53) + chr(0b10 + 0o61), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x32' + '\x32' + chr(48), 24532 - 24524), nzTpIcepk0o8(chr(0b100100 + 0o14) + '\x6f' + '\x33' + '\x37' + chr(0b110101), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x33' + chr(0b111 + 0o52) + chr(1529 - 1481), 0o10), nzTpIcepk0o8(chr(0b11101 + 0o23) + chr(0b1101111) + chr(0b110001) + chr(0b110100) + '\063', 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b1001 + 0o51) + chr(55) + chr(54), 27270 - 27262), nzTpIcepk0o8(chr(605 - 557) + chr(111) + '\x37' + '\066', ord("\x08")), nzTpIcepk0o8(chr(1547 - 1499) + chr(0b1000101 + 0o52) + chr(193 - 143) + chr(0b11011 + 0o27) + chr(48), 8), nzTpIcepk0o8('\x30' + '\157' + chr(49) + chr(432 - 382) + chr(0b110 + 0o54), 0b1000), nzTpIcepk0o8(chr(856 - 808) + chr(111) + '\x34' + chr(50), 8), nzTpIcepk0o8('\060' + '\157' + chr(0b110011) + chr(52) + chr(51), 0b1000), nzTpIcepk0o8(chr(0b11010 + 0o26) + chr(0b1101111) + chr(418 - 368) + chr(0b10001 + 0o40) + chr(0b1100 + 0o46), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + '\x33' + chr(0b110111) + '\065', 8), nzTpIcepk0o8('\060' + chr(3985 - 3874) + chr(0b110010) + chr(0b110110) + '\x34', 50199 - 50191), nzTpIcepk0o8(chr(1399 - 1351) + chr(10733 - 10622) + chr(0b110010) + '\060' + '\x35', ord("\x08")), nzTpIcepk0o8(chr(963 - 915) + '\157' + chr(0b10001 + 0o41) + chr(0b100110 + 0o13) + chr(0b110111), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + '\061' + '\062' + '\067', 21198 - 21190), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110011) + '\x33' + '\x36', 0o10), nzTpIcepk0o8(chr(48) + chr(7915 - 7804) + '\x32' + chr(1993 - 1943) + '\064', 0o10), nzTpIcepk0o8(chr(48) + chr(0b1000111 + 0o50) + chr(1314 - 1263) + chr(0b110100) + chr(53), 39803 - 39795), nzTpIcepk0o8('\060' + '\x6f' + '\063' + chr(0b110011 + 0o0) + chr(48), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + '\x31' + chr(0b110010) + chr(1917 - 1866), 0b1000), nzTpIcepk0o8(chr(419 - 371) + chr(9838 - 9727) + chr(49) + '\064' + chr(51), 8), nzTpIcepk0o8(chr(0b110000 + 0o0) + chr(0b110100 + 0o73) + '\x31' + chr(2662 - 2609) + chr(0b110000), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(49) + '\x37' + '\x32', 0o10), nzTpIcepk0o8(chr(48) + chr(897 - 786) + chr(824 - 775) + '\x33' + '\x33', 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(345 - 296) + chr(0b110000), ord("\x08")), nzTpIcepk0o8(chr(1181 - 1133) + '\157' + chr(0b110101) + '\067', 38865 - 38857), nzTpIcepk0o8(chr(0b110000) + '\157' + '\061' + chr(2535 - 2484) + chr(0b1000 + 0o50), 0b1000), nzTpIcepk0o8(chr(510 - 462) + '\x6f' + chr(1743 - 1694) + '\x30' + '\x31', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(51) + chr(0b110101) + chr(399 - 346), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(2024 - 1975) + '\067' + chr(0b1010 + 0o50), 8), nzTpIcepk0o8(chr(48) + '\x6f' + chr(799 - 750) + chr(0b110011) + chr(0b110101), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\062' + chr(0b110111) + chr(0b101111 + 0o2), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(53), 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b10000 + 0o40) + chr(0b11 + 0o154) + chr(0b110000 + 0o5) + chr(1736 - 1688), 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xaf'), '\144' + '\145' + chr(99) + chr(111) + '\144' + chr(0b1100010 + 0o3))('\165' + chr(116) + '\146' + chr(45) + chr(0b10101 + 0o43)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def cvnPXnz_Ozhf(hXMPsSrOQzbh, apcBHnlotrXc):
apcBHnlotrXc = RNq23UfxGkKA(apcBHnlotrXc)
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'\xe6\xab\xe5\xcc\x1bO\xff\xcb\x9d\x0e\xfbd'), chr(0b100101 + 0o77) + '\145' + '\143' + chr(111) + chr(0b10000 + 0o124) + '\x65')(chr(0b1001001 + 0o54) + chr(0b1010 + 0o152) + chr(4500 - 4398) + chr(0b100010 + 0o13) + '\x38'))(roI3spqORKae(ES5oEprVxulp(b'\xcd\x85\xbd\xf2KE\xf7\xdd\xab\x0c\xd0X\xf95W\x91\xeb\x89\xdd\xea\xe1w\xb8\xfd\x89\xbdiCM\t'), chr(4318 - 4218) + chr(0b100111 + 0o76) + '\143' + '\x6f' + chr(100) + chr(101))(chr(117) + '\x74' + '\146' + '\055' + chr(0b1 + 0o67)), apcBHnlotrXc)
ELQLGvoVr2Z_ = xeH8FsndixYz.RawConfigParser()
BfPkreKxIjkm = ELQLGvoVr2Z_.eoXknH7XUn7m(apcBHnlotrXc)
if ftfygxgFas5X(BfPkreKxIjkm) != nzTpIcepk0o8(chr(48) + chr(0b1100110 + 0o11) + chr(0b101011 + 0o6), ord("\x08")):
sldzbHve8G1S = roI3spqORKae(ES5oEprVxulp(b'\xc7\x8b\xb5\xfaGO\xb0\x89\xa7C\xd2Q\xf16\x02\x80\xe5\x93\xd2\xec\xe8"\xac\xf5\x91\xb1<\rH\x1c2dJya\xc5_.\x90'), chr(100) + '\145' + '\x63' + '\x6f' + chr(100) + chr(3751 - 3650))(chr(0b1100111 + 0o16) + chr(116) + chr(102) + chr(1027 - 982) + chr(0b110001 + 0o7))
raise zfo2Sgkz3IVJ(sldzbHve8G1S % apcBHnlotrXc)
elif not roI3spqORKae(ELQLGvoVr2Z_, roI3spqORKae(ES5oEprVxulp(b'\xe9\x8b\xaf\xc9QN\xf3\x89\xa1\x0c\xd0'), chr(100) + chr(7121 - 7020) + '\143' + chr(111) + chr(0b111110 + 0o46) + '\x65')('\165' + chr(0b1010101 + 0o37) + chr(0b1100110) + chr(45) + chr(0b110000 + 0o10)))(roI3spqORKae(ES5oEprVxulp(b'\xf1\x83\xac\xbbCH\xf3\x98\xa4'), chr(5737 - 5637) + chr(0b1100101) + chr(99) + chr(111) + chr(0b1000011 + 0o41) + '\x65')(chr(0b1110101) + chr(0b111001 + 0o73) + chr(102) + chr(45) + chr(0b11100 + 0o34))):
sldzbHve8G1S = roI3spqORKae(ES5oEprVxulp(b"\xcc\x83\xaf\xe5KE\xf7\xdd\xef\x13\xd7N\xbd3A\x80\xef\x91\x93\xa5\xfc2\xbd\xe0\x8c\xb7=C\x01\x14{k@6'\x84\x1d(\xcbd\xf5\x83\xb3\xf8\x02M\xf9\x91\xadB\x9e\x16\xb5!\x0b"), '\144' + '\145' + chr(5722 - 5623) + '\x6f' + '\144' + '\x65')('\x75' + '\164' + chr(0b1100110) + chr(45) + chr(0b111000))
raise zfo2Sgkz3IVJ(sldzbHve8G1S % apcBHnlotrXc)
else:
roI3spqORKae(hXMPsSrOQzbh.configuration, roI3spqORKae(ES5oEprVxulp(b'\xcb\xb5\xb7\xa4kr\xd2\xcc\xab\x06\xcfP'), '\x64' + chr(9454 - 9353) + '\143' + '\157' + chr(9141 - 9041) + chr(101))(chr(0b111001 + 0o74) + chr(0b100101 + 0o117) + chr(6391 - 6289) + '\x2d' + chr(56)))(roI3spqORKae(ELQLGvoVr2Z_, roI3spqORKae(ES5oEprVxulp(b'\xd8\xb5\xb2\xd8gQ\xd8\xc9\xfb\x15\xe6W'), chr(100) + '\145' + chr(0b1100011) + '\157' + '\144' + '\145')('\165' + '\164' + chr(0b101011 + 0o73) + chr(45) + chr(2476 - 2420)))(roI3spqORKae(ES5oEprVxulp(b'\xf1\x83\xac\xbbCH\xf3\x98\xa4'), chr(0b1100100 + 0o0) + chr(0b1100101) + '\x63' + chr(0b1101111) + chr(4650 - 4550) + chr(101))(chr(0b1110101) + chr(0b1011100 + 0o30) + '\146' + chr(0b101101) + '\x38'))) |
paylogic/pip-accel | pip_accel/config.py | Config.get | def get(self, property_name=None, environment_variable=None, configuration_option=None, default=None):
"""
Internal shortcut to get a configuration option's value.
:param property_name: The name of the property that users can set on
the :class:`Config` class (a string).
:param environment_variable: The name of the environment variable (a
string).
:param configuration_option: The name of the option in the
configuration file (a string).
:param default: The default value.
:returns: The value of the environment variable or configuration file
option or the default value.
"""
if self.overrides.get(property_name) is not None:
return self.overrides[property_name]
elif environment_variable and self.environment.get(environment_variable):
return self.environment[environment_variable]
elif self.configuration.get(configuration_option) is not None:
return self.configuration[configuration_option]
else:
return default | python | def get(self, property_name=None, environment_variable=None, configuration_option=None, default=None):
"""
Internal shortcut to get a configuration option's value.
:param property_name: The name of the property that users can set on
the :class:`Config` class (a string).
:param environment_variable: The name of the environment variable (a
string).
:param configuration_option: The name of the option in the
configuration file (a string).
:param default: The default value.
:returns: The value of the environment variable or configuration file
option or the default value.
"""
if self.overrides.get(property_name) is not None:
return self.overrides[property_name]
elif environment_variable and self.environment.get(environment_variable):
return self.environment[environment_variable]
elif self.configuration.get(configuration_option) is not None:
return self.configuration[configuration_option]
else:
return default | [
"def",
"get",
"(",
"self",
",",
"property_name",
"=",
"None",
",",
"environment_variable",
"=",
"None",
",",
"configuration_option",
"=",
"None",
",",
"default",
"=",
"None",
")",
":",
"if",
"self",
".",
"overrides",
".",
"get",
"(",
"property_name",
")",
"is",
"not",
"None",
":",
"return",
"self",
".",
"overrides",
"[",
"property_name",
"]",
"elif",
"environment_variable",
"and",
"self",
".",
"environment",
".",
"get",
"(",
"environment_variable",
")",
":",
"return",
"self",
".",
"environment",
"[",
"environment_variable",
"]",
"elif",
"self",
".",
"configuration",
".",
"get",
"(",
"configuration_option",
")",
"is",
"not",
"None",
":",
"return",
"self",
".",
"configuration",
"[",
"configuration_option",
"]",
"else",
":",
"return",
"default"
] | Internal shortcut to get a configuration option's value.
:param property_name: The name of the property that users can set on
the :class:`Config` class (a string).
:param environment_variable: The name of the environment variable (a
string).
:param configuration_option: The name of the option in the
configuration file (a string).
:param default: The default value.
:returns: The value of the environment variable or configuration file
option or the default value. | [
"Internal",
"shortcut",
"to",
"get",
"a",
"configuration",
"option",
"s",
"value",
"."
] | ccad1b784927a322d996db593403b1d2d2e22666 | https://github.com/paylogic/pip-accel/blob/ccad1b784927a322d996db593403b1d2d2e22666/pip_accel/config.py#L158-L179 | train | Gets the value of a configuration option in the configuration 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,CJFGX4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oA26ON7iG,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(0b110011) + chr(0b11110 + 0o25), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(51) + chr(1921 - 1869) + chr(0b0 + 0o60), 0b1000), nzTpIcepk0o8(chr(48) + chr(3145 - 3034) + '\063' + chr(0b110111) + chr(54), 28869 - 28861), nzTpIcepk0o8('\x30' + '\x6f' + '\061' + '\x32' + chr(48), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(0b1100 + 0o47) + chr(0b100110 + 0o17) + '\060', 0b1000), nzTpIcepk0o8(chr(0b100000 + 0o20) + chr(0b1101111) + chr(49) + chr(0b110110), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\062' + '\066' + chr(50), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\061' + chr(0b11010 + 0o30) + '\061', 0b1000), nzTpIcepk0o8(chr(0b100 + 0o54) + chr(0b1011011 + 0o24) + chr(0b110100) + chr(0b10010 + 0o36), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110001) + '\x33', 0b1000), nzTpIcepk0o8(chr(1108 - 1060) + chr(111) + chr(53), 0o10), nzTpIcepk0o8(chr(0b10000 + 0o40) + '\x6f' + chr(51) + chr(1710 - 1656), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1100011 + 0o14) + chr(54) + chr(2321 - 2270), 41652 - 41644), nzTpIcepk0o8('\x30' + '\157' + '\063' + chr(1991 - 1943) + '\x30', 0b1000), nzTpIcepk0o8(chr(0b11110 + 0o22) + chr(111) + chr(0b110110), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(1054 - 1004) + chr(0b110111) + '\x34', 0b1000), nzTpIcepk0o8('\060' + '\157' + '\x33' + chr(53) + chr(50), 0b1000), nzTpIcepk0o8(chr(1251 - 1203) + chr(111) + chr(49) + chr(48) + '\061', ord("\x08")), nzTpIcepk0o8('\060' + '\157' + '\062' + chr(54) + chr(51), 0b1000), nzTpIcepk0o8(chr(0b11101 + 0o23) + '\x6f' + '\063' + '\x34', 0b1000), nzTpIcepk0o8(chr(0b1000 + 0o50) + chr(0b1101111) + chr(0b110010) + chr(52) + chr(0b110110), ord("\x08")), nzTpIcepk0o8(chr(292 - 244) + '\157' + chr(0b1000 + 0o56), 8), nzTpIcepk0o8('\x30' + chr(3677 - 3566) + '\063' + chr(2519 - 2468), 8), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x32' + chr(0b110111) + chr(0b11110 + 0o24), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(5314 - 5203) + chr(54), 8), nzTpIcepk0o8(chr(461 - 413) + chr(0b110111 + 0o70) + chr(0b110011) + chr(51) + chr(53), 0o10), nzTpIcepk0o8('\x30' + chr(0b1001001 + 0o46) + chr(0b110010), 13048 - 13040), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110100) + chr(0b110000), 8), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b10000 + 0o45) + chr(2321 - 2272), 34015 - 34007), nzTpIcepk0o8(chr(0b111 + 0o51) + chr(111) + chr(0b100100 + 0o15) + chr(0b110111 + 0o0) + '\061', 60803 - 60795), nzTpIcepk0o8(chr(1700 - 1652) + '\x6f' + chr(0b110011) + chr(0b110000) + chr(0b110101), 49317 - 49309), nzTpIcepk0o8(chr(82 - 34) + chr(0b1101111) + chr(1085 - 1035) + chr(48) + '\060', 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + '\062' + chr(0b110011) + chr(0b1101 + 0o52), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1001110 + 0o41) + chr(0b10001 + 0o42) + chr(55) + chr(1656 - 1607), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101010 + 0o5) + chr(0b110010) + chr(49) + chr(2106 - 2055), 37581 - 37573), nzTpIcepk0o8(chr(0b11 + 0o55) + '\157' + chr(1188 - 1137) + '\x35' + '\x32', 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x33' + '\x33' + '\x30', ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110001) + chr(53) + chr(48), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1010101 + 0o32) + '\x31' + chr(51) + '\060', 52163 - 52155), nzTpIcepk0o8(chr(0b1001 + 0o47) + chr(8840 - 8729) + chr(0b11001 + 0o32) + chr(0b110100) + chr(0b110011 + 0o4), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + chr(0b0 + 0o157) + chr(680 - 627) + chr(0b110000), 40583 - 40575)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'5'), chr(0b1100100) + chr(0b10111 + 0o116) + chr(5819 - 5720) + chr(11972 - 11861) + chr(100) + '\145')('\165' + chr(0b1000100 + 0o60) + chr(5523 - 5421) + chr(808 - 763) + '\x38') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def GUKetu4xaGsJ(hXMPsSrOQzbh, AKMxc6RNBM5q=None, AJPHZmxj80IL=None, ltWvIraRmnRX=None, WmRBchRTeaDt=None):
if roI3spqORKae(hXMPsSrOQzbh.overrides, roI3spqORKae(ES5oEprVxulp(b'\\\xb5\xb55\x9c{\x86)ALvT'), chr(8977 - 8877) + chr(0b1100101) + chr(0b1100011) + chr(0b1010 + 0o145) + '\x64' + chr(5612 - 5511))('\165' + '\x74' + chr(6763 - 6661) + chr(0b10100 + 0o31) + chr(0b111000)))(AKMxc6RNBM5q) is not None:
return roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b't\x96\x9b"\x9ag\xd64S'), chr(0b110101 + 0o57) + chr(0b1000001 + 0o44) + chr(99) + chr(0b1101111) + chr(0b1100100) + chr(0b1011000 + 0o15))(chr(0b1110101) + chr(116) + chr(10373 - 10271) + chr(45) + '\070'))[AKMxc6RNBM5q]
elif AJPHZmxj80IL and roI3spqORKae(hXMPsSrOQzbh.environment, roI3spqORKae(ES5oEprVxulp(b'\\\xb5\xb55\x9c{\x86)ALvT'), chr(0b11110 + 0o106) + chr(0b1100101) + '\143' + '\157' + chr(100) + chr(101))(chr(0b1110 + 0o147) + chr(0b1110100) + chr(9112 - 9010) + chr(0b101101) + chr(1301 - 1245)))(AJPHZmxj80IL):
return roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'q\xa8\xa4)\x98O\xed\x16GAwO'), '\x64' + chr(0b1100101) + '\x63' + '\x6f' + '\144' + chr(0b1110 + 0o127))('\x75' + '\164' + '\146' + chr(0b1110 + 0o37) + chr(0b110101 + 0o3)))[AJPHZmxj80IL]
elif roI3spqORKae(hXMPsSrOQzbh.configuration, roI3spqORKae(ES5oEprVxulp(b'\\\xb5\xb55\x9c{\x86)ALvT'), '\144' + '\145' + '\143' + chr(0b1100100 + 0o13) + chr(100) + '\145')('\165' + '\164' + chr(6219 - 6117) + chr(533 - 488) + chr(0b111000)))(ltWvIraRmnRX) is not None:
return roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'R\x8b\x93\x13\xab?\xd1\x0ejIrG'), chr(0b1111 + 0o125) + chr(9971 - 9870) + chr(476 - 377) + chr(111) + '\144' + '\x65')('\x75' + chr(116) + chr(1285 - 1183) + '\x2d' + '\070'))[ltWvIraRmnRX]
else:
return WmRBchRTeaDt |
paylogic/pip-accel | pip_accel/config.py | Config.source_index | def source_index(self):
"""
The absolute pathname of pip-accel's source index directory (a string).
This is the ``sources`` subdirectory of :data:`data_directory`.
"""
return self.get(property_name='source_index',
default=os.path.join(self.data_directory, 'sources')) | python | def source_index(self):
"""
The absolute pathname of pip-accel's source index directory (a string).
This is the ``sources`` subdirectory of :data:`data_directory`.
"""
return self.get(property_name='source_index',
default=os.path.join(self.data_directory, 'sources')) | [
"def",
"source_index",
"(",
"self",
")",
":",
"return",
"self",
".",
"get",
"(",
"property_name",
"=",
"'source_index'",
",",
"default",
"=",
"os",
".",
"path",
".",
"join",
"(",
"self",
".",
"data_directory",
",",
"'sources'",
")",
")"
] | The absolute pathname of pip-accel's source index directory (a string).
This is the ``sources`` subdirectory of :data:`data_directory`. | [
"The",
"absolute",
"pathname",
"of",
"pip",
"-",
"accel",
"s",
"source",
"index",
"directory",
"(",
"a",
"string",
")",
"."
] | ccad1b784927a322d996db593403b1d2d2e22666 | https://github.com/paylogic/pip-accel/blob/ccad1b784927a322d996db593403b1d2d2e22666/pip_accel/config.py#L194-L201 | train | The absolute pathname of pip - accel s source index 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,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(chr(0b100001 + 0o17) + chr(0b1101111) + '\x31' + chr(1947 - 1898) + chr(0b110010), 50474 - 50466), nzTpIcepk0o8(chr(0b11010 + 0o26) + '\157' + chr(119 - 69) + chr(1909 - 1854) + chr(0b110000), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1010001 + 0o36) + chr(1604 - 1553) + chr(52) + '\x30', 0o10), nzTpIcepk0o8(chr(1592 - 1544) + chr(0b1101111) + '\x32' + chr(1322 - 1274) + '\x35', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x36' + chr(52), 0o10), nzTpIcepk0o8('\060' + chr(7284 - 7173) + '\x33' + chr(2606 - 2551) + chr(509 - 457), 41635 - 41627), nzTpIcepk0o8(chr(0b100110 + 0o12) + '\x6f' + chr(0b0 + 0o63) + chr(2743 - 2689) + '\067', ord("\x08")), nzTpIcepk0o8(chr(1568 - 1520) + chr(11187 - 11076) + '\062' + '\062' + chr(52), 0b1000), nzTpIcepk0o8(chr(0b10001 + 0o37) + '\x6f' + chr(53), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1110 + 0o141) + chr(0b1101 + 0o45) + chr(55) + '\x30', 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1011001 + 0o26) + chr(0b10010 + 0o37) + '\064', 0o10), nzTpIcepk0o8(chr(876 - 828) + chr(111) + chr(0b111 + 0o53) + '\x36' + chr(55), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110010) + chr(1259 - 1210) + '\x33', 13645 - 13637), nzTpIcepk0o8(chr(0b10110 + 0o32) + chr(0b1101111) + '\063' + chr(48) + chr(0b10111 + 0o40), 0b1000), nzTpIcepk0o8(chr(1813 - 1765) + '\157' + '\061' + chr(49) + chr(2438 - 2384), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(1406 - 1295) + chr(2239 - 2187) + chr(0b100101 + 0o21), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\062' + '\061' + chr(0b100110 + 0o15), 8), nzTpIcepk0o8(chr(48) + chr(0b10110 + 0o131) + chr(51) + chr(2246 - 2193) + chr(0b0 + 0o64), 0o10), nzTpIcepk0o8(chr(0b100111 + 0o11) + chr(0b1101111) + chr(232 - 182) + chr(1142 - 1090) + chr(0b100111 + 0o16), 34173 - 34165), nzTpIcepk0o8(chr(48) + '\157' + chr(50) + chr(50) + chr(0b110110), 0b1000), nzTpIcepk0o8(chr(431 - 383) + chr(111) + '\061' + '\x34' + '\060', 41443 - 41435), nzTpIcepk0o8(chr(48) + chr(0b1101100 + 0o3) + '\x32' + '\x36' + chr(1786 - 1732), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + '\x37' + '\064', 5861 - 5853), nzTpIcepk0o8(chr(48) + chr(5123 - 5012) + chr(0b101010 + 0o10) + chr(0b110101) + chr(1346 - 1292), 43127 - 43119), nzTpIcepk0o8('\060' + chr(0b1001 + 0o146) + chr(2238 - 2189) + chr(0b11110 + 0o23) + chr(2248 - 2193), 0o10), nzTpIcepk0o8(chr(532 - 484) + chr(12198 - 12087) + chr(2470 - 2420) + '\060' + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110111) + chr(2013 - 1959), 34241 - 34233), nzTpIcepk0o8(chr(48) + chr(111) + '\063' + chr(0b1101 + 0o45) + chr(0b110010 + 0o5), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(1433 - 1382) + chr(48) + chr(0b10101 + 0o34), 0b1000), nzTpIcepk0o8('\x30' + chr(8056 - 7945) + '\063' + '\x32' + chr(1564 - 1514), 0o10), nzTpIcepk0o8(chr(0b111 + 0o51) + '\x6f' + chr(0b110011) + '\062' + chr(1491 - 1440), 0b1000), nzTpIcepk0o8(chr(2255 - 2207) + chr(0b1101111) + chr(1851 - 1801) + chr(0b110010) + chr(1076 - 1026), 0b1000), nzTpIcepk0o8(chr(1429 - 1381) + '\x6f' + chr(2188 - 2138) + chr(0b110001) + chr(51), 8), nzTpIcepk0o8(chr(48) + chr(0b1011100 + 0o23) + '\063' + '\x34' + chr(50), 65193 - 65185), nzTpIcepk0o8(chr(1507 - 1459) + chr(111) + '\x31' + chr(0b100001 + 0o22) + chr(1489 - 1441), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(54), 14760 - 14752), nzTpIcepk0o8(chr(48) + '\157' + '\062' + '\x37' + chr(48), 8), nzTpIcepk0o8(chr(333 - 285) + '\x6f' + chr(0b110001) + '\061' + chr(1078 - 1026), 12952 - 12944), nzTpIcepk0o8(chr(48) + chr(6897 - 6786) + chr(0b100001 + 0o20) + '\x33' + chr(49), 0b1000), nzTpIcepk0o8('\060' + chr(6346 - 6235) + chr(50) + chr(2713 - 2658) + chr(0b1101 + 0o46), 7042 - 7034)][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + '\157' + chr(2229 - 2176) + chr(48), 19782 - 19774)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'd'), '\144' + chr(695 - 594) + chr(8503 - 8404) + chr(0b1100111 + 0o10) + '\144' + '\145')(chr(2957 - 2840) + '\164' + chr(0b11011 + 0o113) + chr(162 - 117) + chr(56)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def _ebiEzwmYeEM(hXMPsSrOQzbh):
return roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\r\xed\xab\xe0@\x89\xc3\xecd\xff\x7f\xfd'), '\144' + chr(0b1100101) + chr(5324 - 5225) + '\x6f' + chr(8046 - 7946) + chr(101))(chr(0b1110101) + '\x74' + chr(0b101011 + 0o73) + chr(1128 - 1083) + chr(0b111000)))(property_name=roI3spqORKae(ES5oEprVxulp(b'9\xd7\x95\xf7W\x99\xa8\xfdk\xdci\xcf'), '\144' + '\x65' + '\143' + chr(0b1101111) + chr(3179 - 3079) + chr(101))(chr(10808 - 10691) + chr(0b111 + 0o155) + chr(0b1100110) + chr(45) + chr(0b10010 + 0o46)), default=roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'\x13\x8c\x99\xc8\r\xbe\x94\xf2Q\xfbB\xc6'), '\x64' + chr(0b1100101) + chr(99) + chr(0b1101111) + chr(0b1100100) + '\x65')('\x75' + chr(387 - 271) + chr(0b110011 + 0o63) + chr(45) + chr(0b111000)))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'.\xd9\x94\xe4k\x98\x9e\xe6`\xdbx\xd8\xf9\xbe'), '\144' + chr(861 - 760) + '\143' + chr(111) + chr(5861 - 5761) + chr(0b110101 + 0o60))(chr(9468 - 9351) + '\164' + '\x66' + '\055' + chr(0b11011 + 0o35))), roI3spqORKae(ES5oEprVxulp(b'9\xd7\x95\xf7W\x99\x84'), chr(100) + chr(0b1100100 + 0o1) + '\143' + chr(1995 - 1884) + chr(6073 - 5973) + chr(0b1001100 + 0o31))(chr(0b1010000 + 0o45) + '\x74' + chr(1880 - 1778) + chr(0b101101) + chr(0b111000)))) |
paylogic/pip-accel | pip_accel/config.py | Config.data_directory | def data_directory(self):
"""
The absolute pathname of the directory where pip-accel's data files are stored (a string).
- Environment variable: ``$PIP_ACCEL_CACHE``
- Configuration option: ``data-directory``
- Default: ``/var/cache/pip-accel`` if running as ``root``, ``~/.pip-accel`` otherwise
"""
return expand_path(self.get(property_name='data_directory',
environment_variable='PIP_ACCEL_CACHE',
configuration_option='data-directory',
default='/var/cache/pip-accel' if is_root() else '~/.pip-accel')) | python | def data_directory(self):
"""
The absolute pathname of the directory where pip-accel's data files are stored (a string).
- Environment variable: ``$PIP_ACCEL_CACHE``
- Configuration option: ``data-directory``
- Default: ``/var/cache/pip-accel`` if running as ``root``, ``~/.pip-accel`` otherwise
"""
return expand_path(self.get(property_name='data_directory',
environment_variable='PIP_ACCEL_CACHE',
configuration_option='data-directory',
default='/var/cache/pip-accel' if is_root() else '~/.pip-accel')) | [
"def",
"data_directory",
"(",
"self",
")",
":",
"return",
"expand_path",
"(",
"self",
".",
"get",
"(",
"property_name",
"=",
"'data_directory'",
",",
"environment_variable",
"=",
"'PIP_ACCEL_CACHE'",
",",
"configuration_option",
"=",
"'data-directory'",
",",
"default",
"=",
"'/var/cache/pip-accel'",
"if",
"is_root",
"(",
")",
"else",
"'~/.pip-accel'",
")",
")"
] | The absolute pathname of the directory where pip-accel's data files are stored (a string).
- Environment variable: ``$PIP_ACCEL_CACHE``
- Configuration option: ``data-directory``
- Default: ``/var/cache/pip-accel`` if running as ``root``, ``~/.pip-accel`` otherwise | [
"The",
"absolute",
"pathname",
"of",
"the",
"directory",
"where",
"pip",
"-",
"accel",
"s",
"data",
"files",
"are",
"stored",
"(",
"a",
"string",
")",
"."
] | ccad1b784927a322d996db593403b1d2d2e22666 | https://github.com/paylogic/pip-accel/blob/ccad1b784927a322d996db593403b1d2d2e22666/pip_accel/config.py#L226-L237 | train | Returns the absolute pathname of the directory where pip - accel s data files are stored. | 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,UBvEe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3Nc3n6e0b,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(0b101 + 0o53) + chr(0b1000001 + 0o56) + chr(49) + chr(0b11110 + 0o24) + chr(0b1001 + 0o47), 938 - 930), nzTpIcepk0o8(chr(0b110 + 0o52) + '\x6f' + chr(1665 - 1616) + chr(0b110000) + chr(48), 0o10), nzTpIcepk0o8(chr(549 - 501) + chr(0b11110 + 0o121) + chr(0b110001) + '\x30' + chr(2207 - 2158), 0b1000), nzTpIcepk0o8(chr(0b100111 + 0o11) + chr(0b1101111) + chr(0b100100 + 0o17) + '\x31' + chr(0b11010 + 0o35), 29358 - 29350), nzTpIcepk0o8(chr(0b100010 + 0o16) + chr(111) + '\x33' + '\064' + chr(0b10001 + 0o43), 0o10), nzTpIcepk0o8(chr(405 - 357) + chr(111) + chr(50) + '\x36' + chr(51), 0o10), nzTpIcepk0o8(chr(48) + chr(0b110010 + 0o75) + '\x32' + '\062', 54033 - 54025), nzTpIcepk0o8('\060' + chr(0b110111 + 0o70) + chr(556 - 506) + chr(0b10011 + 0o36) + chr(53), 18889 - 18881), nzTpIcepk0o8(chr(0b110000) + chr(0b1011011 + 0o24) + chr(285 - 235) + chr(50) + chr(49), 0o10), nzTpIcepk0o8(chr(0b0 + 0o60) + '\157' + '\x33' + chr(0b110010), 46815 - 46807), nzTpIcepk0o8(chr(48) + chr(111) + '\x32' + chr(48) + chr(53), 0b1000), nzTpIcepk0o8(chr(671 - 623) + chr(0b100100 + 0o113) + chr(0b11111 + 0o23) + chr(0b0 + 0o66) + '\x32', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + '\062' + chr(0b11110 + 0o23) + '\x32', 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(0b110010) + chr(142 - 93) + '\060', ord("\x08")), nzTpIcepk0o8(chr(1703 - 1655) + '\157' + chr(0b101011 + 0o6) + chr(477 - 424) + '\065', 6714 - 6706), nzTpIcepk0o8('\060' + '\157' + chr(52) + chr(51), 0o10), nzTpIcepk0o8(chr(2265 - 2217) + chr(9843 - 9732) + chr(0b100100 + 0o17) + chr(1363 - 1313) + '\064', 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110010) + '\063' + chr(0b110101), 3632 - 3624), nzTpIcepk0o8(chr(656 - 608) + chr(0b1101111) + '\x32' + chr(2030 - 1979) + chr(823 - 770), 8), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110010) + chr(0b101101 + 0o10) + chr(1975 - 1926), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110001) + chr(0b110100) + chr(53), 0o10), nzTpIcepk0o8('\060' + chr(111) + '\x31' + chr(51) + chr(969 - 919), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b101010 + 0o7) + chr(52) + chr(0b110001), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(49) + chr(997 - 948) + '\063', 5790 - 5782), nzTpIcepk0o8('\060' + chr(0b111100 + 0o63) + '\x33' + chr(52), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(2023 - 1974) + chr(0b110110), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(49) + chr(50) + chr(0b110000), 8), nzTpIcepk0o8('\060' + chr(11819 - 11708) + '\062' + chr(0b1 + 0o66) + chr(907 - 858), 4426 - 4418), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\062' + chr(0b110101) + chr(0b110011), 13108 - 13100), nzTpIcepk0o8('\060' + '\157' + chr(50) + chr(218 - 166) + chr(54), 14942 - 14934), nzTpIcepk0o8('\x30' + chr(1764 - 1653) + '\x35' + chr(61 - 9), 0b1000), nzTpIcepk0o8(chr(0b101100 + 0o4) + '\x6f' + '\062' + chr(53) + chr(328 - 277), 8), nzTpIcepk0o8(chr(475 - 427) + '\157' + chr(1943 - 1894) + chr(564 - 514) + '\065', ord("\x08")), nzTpIcepk0o8(chr(0b11110 + 0o22) + '\x6f' + chr(0b110010) + '\063' + chr(0b100010 + 0o22), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110010) + chr(48) + chr(0b110001 + 0o4), 8), nzTpIcepk0o8(chr(48) + '\157' + chr(0b1101 + 0o46) + chr(0b101110 + 0o6) + chr(0b110111), 34732 - 34724), nzTpIcepk0o8(chr(48) + chr(0b1011100 + 0o23) + '\x33' + chr(2577 - 2525) + chr(53), ord("\x08")), nzTpIcepk0o8(chr(0b10110 + 0o32) + chr(111) + chr(0b110011) + '\x33' + chr(0b110 + 0o61), 0o10), nzTpIcepk0o8(chr(359 - 311) + chr(0b101101 + 0o102) + chr(49) + '\060' + '\x34', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1010111 + 0o30) + '\x31' + chr(0b110000) + chr(0b110101), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + chr(111) + '\065' + '\x30', 34894 - 34886)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'~'), chr(3510 - 3410) + chr(101) + '\x63' + '\x6f' + chr(100) + '\145')(chr(11644 - 11527) + chr(4065 - 3949) + '\146' + chr(0b1101 + 0o40) + '\x38') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def ByrYG4tOZyeH(hXMPsSrOQzbh):
return Tx_psKNi1k2S(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x17\x15\n\xaa\x90\xc6&\xf5\xf0]\xf6\xf8'), '\x64' + chr(101) + chr(8449 - 8350) + chr(2795 - 2684) + '\144' + '\x65')('\x75' + chr(0b1100000 + 0o24) + '\146' + '\x2d' + chr(0b110101 + 0o3)))(property_name=roI3spqORKae(ES5oEprVxulp(b'4!5\xae\xbb\xd7{\xff\xf4y\xf1\xdd\xf8\xf1'), chr(0b1100100) + chr(0b1100101) + chr(0b11100 + 0o107) + chr(6559 - 6448) + chr(0b1010010 + 0o22) + chr(7347 - 7246))('\x75' + chr(0b1 + 0o163) + chr(102) + chr(45) + chr(56)), environment_variable=roI3spqORKae(ES5oEprVxulp(b'\x00\t\x11\x90\xa5\xf0Q\xc8\xddE\xc6\xf3\xc9\xc0('), chr(0b1100100) + '\145' + chr(0b1100011) + chr(0b10011 + 0o134) + '\x64' + chr(0b110100 + 0o61))(chr(0b1110101) + chr(4236 - 4120) + '\x66' + chr(0b101101) + chr(2473 - 2417)), configuration_option=roI3spqORKae(ES5oEprVxulp(b'4!5\xae\xc9\xd7{\xff\xf4y\xf1\xdd\xf8\xf1'), chr(2267 - 2167) + chr(6587 - 6486) + chr(0b1100011) + chr(111) + '\144' + chr(0b1100101))('\165' + '\x74' + '\146' + chr(460 - 415) + chr(0b111000)), default=roI3spqORKae(ES5oEprVxulp(b'\x7f6 \xbd\xcb\xd0s\xee\xf9\x7f\xaa\xc2\xe3\xf8@B\xb7\xfe\xf8\xc5'), chr(7626 - 7526) + chr(0b1100101) + '\143' + '\157' + chr(0b11111 + 0o105) + chr(4991 - 4890))('\165' + chr(0b1110100) + '\x66' + chr(1066 - 1021) + chr(341 - 285)) if oDelH9Bbt28I() else roI3spqORKae(ES5oEprVxulp(b'.oo\xbf\x8d\xc3?\xec\xf2y\xe0\xde'), '\144' + chr(101) + chr(0b1100011) + chr(9753 - 9642) + chr(0b1100100) + chr(0b111110 + 0o47))(chr(0b111100 + 0o71) + chr(0b1110100) + '\146' + chr(0b101101) + '\x38'))) |
paylogic/pip-accel | pip_accel/config.py | Config.install_prefix | def install_prefix(self):
"""
The absolute pathname of the installation prefix to use (a string).
This property is based on :data:`sys.prefix` except that when
:data:`sys.prefix` is ``/usr`` and we're running on a Debian derived
system ``/usr/local`` is used instead.
The reason for this is that on Debian derived systems only apt (dpkg)
should be allowed to touch files in ``/usr/lib/pythonX.Y/dist-packages``
and ``python setup.py install`` knows this (see the ``posix_local``
installation scheme in ``/usr/lib/pythonX.Y/sysconfig.py`` on Debian
derived systems). Because pip-accel replaces ``python setup.py
install`` it has to replicate this logic. Inferring all of this from
the :mod:`sysconfig` module would be nice but that module wasn't
available in Python 2.6.
"""
return self.get(property_name='install_prefix',
default='/usr/local' if sys.prefix == '/usr' and self.on_debian else sys.prefix) | python | def install_prefix(self):
"""
The absolute pathname of the installation prefix to use (a string).
This property is based on :data:`sys.prefix` except that when
:data:`sys.prefix` is ``/usr`` and we're running on a Debian derived
system ``/usr/local`` is used instead.
The reason for this is that on Debian derived systems only apt (dpkg)
should be allowed to touch files in ``/usr/lib/pythonX.Y/dist-packages``
and ``python setup.py install`` knows this (see the ``posix_local``
installation scheme in ``/usr/lib/pythonX.Y/sysconfig.py`` on Debian
derived systems). Because pip-accel replaces ``python setup.py
install`` it has to replicate this logic. Inferring all of this from
the :mod:`sysconfig` module would be nice but that module wasn't
available in Python 2.6.
"""
return self.get(property_name='install_prefix',
default='/usr/local' if sys.prefix == '/usr' and self.on_debian else sys.prefix) | [
"def",
"install_prefix",
"(",
"self",
")",
":",
"return",
"self",
".",
"get",
"(",
"property_name",
"=",
"'install_prefix'",
",",
"default",
"=",
"'/usr/local'",
"if",
"sys",
".",
"prefix",
"==",
"'/usr'",
"and",
"self",
".",
"on_debian",
"else",
"sys",
".",
"prefix",
")"
] | The absolute pathname of the installation prefix to use (a string).
This property is based on :data:`sys.prefix` except that when
:data:`sys.prefix` is ``/usr`` and we're running on a Debian derived
system ``/usr/local`` is used instead.
The reason for this is that on Debian derived systems only apt (dpkg)
should be allowed to touch files in ``/usr/lib/pythonX.Y/dist-packages``
and ``python setup.py install`` knows this (see the ``posix_local``
installation scheme in ``/usr/lib/pythonX.Y/sysconfig.py`` on Debian
derived systems). Because pip-accel replaces ``python setup.py
install`` it has to replicate this logic. Inferring all of this from
the :mod:`sysconfig` module would be nice but that module wasn't
available in Python 2.6. | [
"The",
"absolute",
"pathname",
"of",
"the",
"installation",
"prefix",
"to",
"use",
"(",
"a",
"string",
")",
"."
] | ccad1b784927a322d996db593403b1d2d2e22666 | https://github.com/paylogic/pip-accel/blob/ccad1b784927a322d996db593403b1d2d2e22666/pip_accel/config.py#L246-L264 | train | Returns the absolute pathname of the installation prefix to use for this 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,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,YikX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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(0b10110 + 0o32) + '\157' + chr(0b101000 + 0o12) + chr(1719 - 1669) + '\060', 18855 - 18847), nzTpIcepk0o8('\x30' + '\157' + chr(49) + '\065' + '\x35', ord("\x08")), nzTpIcepk0o8('\060' + chr(3973 - 3862) + chr(0b11010 + 0o30) + '\067', 0o10), nzTpIcepk0o8(chr(0b1 + 0o57) + chr(0b1101 + 0o142) + '\062' + chr(0b101101 + 0o3) + chr(0b110011), 0o10), nzTpIcepk0o8(chr(1300 - 1252) + chr(111) + chr(0b110011) + chr(0b10000 + 0o45), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b10110 + 0o131) + chr(0b110010) + chr(0b110110) + chr(1383 - 1333), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(49) + '\061' + '\x34', ord("\x08")), nzTpIcepk0o8(chr(1130 - 1082) + chr(0b1001 + 0o146) + '\x33' + '\x33' + chr(474 - 423), 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(1091 - 1042) + '\x36' + chr(48), 8399 - 8391), nzTpIcepk0o8(chr(0b111 + 0o51) + chr(0b1101111) + '\x34' + chr(773 - 722), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + '\062' + chr(0b11000 + 0o30) + '\062', 0b1000), nzTpIcepk0o8(chr(0b101101 + 0o3) + '\x6f' + '\x31' + chr(2585 - 2530) + '\x30', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110001) + chr(0b101101 + 0o11) + '\061', 0o10), nzTpIcepk0o8(chr(0b101101 + 0o3) + chr(0b1101111) + '\062' + chr(0b110001) + chr(0b110100), 0b1000), nzTpIcepk0o8('\x30' + chr(10228 - 10117) + '\x31' + '\060' + chr(0b110110), 8275 - 8267), nzTpIcepk0o8(chr(725 - 677) + chr(4872 - 4761) + '\x31' + '\x31' + chr(50), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b1111 + 0o43) + chr(0b10100 + 0o34) + chr(50), 8), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110001) + chr(0b110111) + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(300 - 245) + chr(0b1000 + 0o52), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(52) + chr(51), 8), nzTpIcepk0o8('\x30' + '\157' + '\061' + chr(48) + chr(0b110001), 43687 - 43679), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110001) + '\x34' + chr(0b0 + 0o67), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110 + 0o55) + chr(51) + chr(48), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(1495 - 1446) + chr(0b110000) + chr(276 - 222), 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b101000 + 0o12) + '\x34' + chr(0b10111 + 0o37), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(11155 - 11044) + chr(55) + '\064', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b11011 + 0o124) + '\062' + chr(814 - 765) + '\062', 20328 - 20320), nzTpIcepk0o8(chr(0b110000) + chr(0b101111 + 0o100) + chr(51) + chr(0b110000) + chr(0b110101), 0o10), nzTpIcepk0o8(chr(48) + chr(5347 - 5236) + chr(0b101 + 0o56) + chr(840 - 786) + chr(891 - 842), 0b1000), nzTpIcepk0o8(chr(1051 - 1003) + '\157' + chr(49) + chr(0b110011) + chr(53), 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(0b110001) + chr(0b110000) + '\x32', 0o10), nzTpIcepk0o8(chr(1473 - 1425) + chr(0b1101111) + chr(0b10111 + 0o32) + chr(0b10 + 0o60) + chr(0b101100 + 0o10), 0b1000), nzTpIcepk0o8(chr(2192 - 2144) + chr(0b1001111 + 0o40) + chr(0b110010) + chr(0b110101) + '\060', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(7864 - 7753) + chr(355 - 304) + '\x37' + chr(582 - 527), ord("\x08")), nzTpIcepk0o8(chr(1116 - 1068) + chr(0b1101111) + '\061' + '\x34' + chr(0b110010), ord("\x08")), nzTpIcepk0o8(chr(0b1110 + 0o42) + chr(296 - 185) + chr(0b110001) + chr(1097 - 1044) + chr(1857 - 1807), 0o10), nzTpIcepk0o8(chr(0b0 + 0o60) + chr(8425 - 8314) + '\064' + '\x31', ord("\x08")), nzTpIcepk0o8(chr(0b10000 + 0o40) + chr(8593 - 8482) + chr(1931 - 1883), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110001) + chr(51) + chr(872 - 824), 0o10), nzTpIcepk0o8(chr(0b1010 + 0o46) + chr(0b1101111) + chr(0b110011) + '\x37' + '\065', ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(1674 - 1626) + chr(0b1101111) + chr(0b110101) + chr(48), 50713 - 50705)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xbe'), '\x64' + '\145' + chr(3397 - 3298) + chr(10193 - 10082) + chr(100) + chr(0b1010 + 0o133))(chr(0b101011 + 0o112) + chr(0b100001 + 0o123) + chr(7734 - 7632) + '\055' + chr(2216 - 2160)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def MVwexT4bfggR(hXMPsSrOQzbh):
return roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xd78\\\xe6i\xc7x\xa3\x11d\xf12'), chr(0b11100 + 0o110) + chr(810 - 709) + chr(99) + chr(0b11010 + 0o125) + '\144' + chr(0b1100101))('\x75' + '\x74' + '\146' + chr(0b10101 + 0o30) + chr(0b111000)))(property_name=roI3spqORKae(ES5oEprVxulp(b'\xf9\x03d\xf7|\xde \x84\x00Q\xe7\x1e\x18\xf4'), '\144' + chr(0b1100101) + chr(1667 - 1568) + chr(0b101001 + 0o106) + '\144' + chr(0b1100101))('\x75' + chr(116) + chr(0b1100110) + chr(1984 - 1939) + chr(0b111000)), default=roI3spqORKae(ES5oEprVxulp(b'\xbf\x18d\xf12\xde#\xb8\x11O'), chr(100) + chr(0b1100101) + chr(0b111111 + 0o44) + '\157' + '\144' + chr(0b1100101))('\165' + chr(0b1110100) + chr(0b11001 + 0o115) + '\055' + chr(0b111000)) if roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b"\xca'`\xd9z\xd3\x04\x9eG\x11\xd2\x17"), chr(0b0 + 0o144) + chr(4483 - 4382) + chr(0b1100011) + chr(10256 - 10145) + chr(100) + chr(101))('\x75' + chr(0b101001 + 0o113) + '\146' + chr(0b100101 + 0o10) + chr(0b111000))) == roI3spqORKae(ES5oEprVxulp(b'\xbf\x18d\xf1'), chr(0b1100100) + '\145' + chr(0b1100011) + chr(0b1001101 + 0o42) + chr(0b11000 + 0o114) + chr(101))(chr(5693 - 5576) + chr(0b1010101 + 0o37) + chr(0b111111 + 0o47) + chr(1954 - 1909) + chr(0b111000)) and roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xff\x03H\xe7x\xd0%\xba\x1e'), chr(0b1100100) + '\x65' + '\143' + chr(0b111111 + 0o60) + '\x64' + '\x65')(chr(117) + '\164' + chr(0b1100011 + 0o3) + '\055' + chr(2944 - 2888))) else roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b"\xca'`\xd9z\xd3\x04\x9eG\x11\xd2\x17"), chr(0b10100 + 0o120) + '\145' + '\x63' + chr(10410 - 10299) + chr(100) + chr(101))('\x75' + chr(0b11100 + 0o130) + '\146' + chr(0b101101 + 0o0) + chr(2901 - 2845)))) |
paylogic/pip-accel | pip_accel/config.py | Config.python_executable | def python_executable(self):
"""The absolute pathname of the Python executable (a string)."""
return self.get(property_name='python_executable',
default=sys.executable or os.path.join(self.install_prefix, 'bin', 'python')) | python | def python_executable(self):
"""The absolute pathname of the Python executable (a string)."""
return self.get(property_name='python_executable',
default=sys.executable or os.path.join(self.install_prefix, 'bin', 'python')) | [
"def",
"python_executable",
"(",
"self",
")",
":",
"return",
"self",
".",
"get",
"(",
"property_name",
"=",
"'python_executable'",
",",
"default",
"=",
"sys",
".",
"executable",
"or",
"os",
".",
"path",
".",
"join",
"(",
"self",
".",
"install_prefix",
",",
"'bin'",
",",
"'python'",
")",
")"
] | The absolute pathname of the Python executable (a string). | [
"The",
"absolute",
"pathname",
"of",
"the",
"Python",
"executable",
"(",
"a",
"string",
")",
"."
] | ccad1b784927a322d996db593403b1d2d2e22666 | https://github.com/paylogic/pip-accel/blob/ccad1b784927a322d996db593403b1d2d2e22666/pip_accel/config.py#L267-L270 | train | The absolute pathname of the Python 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,Qn0k4xGfJpu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24Zkqw,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(0b101101 + 0o3) + '\157' + chr(0b110010) + chr(0b110001) + chr(0b10101 + 0o36), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(6939 - 6828) + chr(0b110001) + chr(1571 - 1522) + chr(0b110000), 35959 - 35951), nzTpIcepk0o8(chr(914 - 866) + chr(0b1101111) + chr(0b110011) + chr(0b110001 + 0o0) + chr(0b101111 + 0o10), 0b1000), nzTpIcepk0o8(chr(0b10001 + 0o37) + chr(0b1101111) + '\x34' + '\062', 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(49) + chr(0b110111) + chr(0b110111), 24150 - 24142), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\061' + chr(0b100101 + 0o15) + chr(0b1 + 0o65), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(1468 - 1417) + chr(0b0 + 0o64) + chr(0b110011), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + '\x32' + '\x35' + chr(0b110001 + 0o1), 55395 - 55387), nzTpIcepk0o8(chr(1510 - 1462) + chr(0b1000101 + 0o52) + chr(0b110001) + chr(0b11111 + 0o26) + '\064', 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\062' + chr(0b1100 + 0o52) + chr(2305 - 2256), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(49) + chr(0b101 + 0o56) + '\x36', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b101101 + 0o10), 7392 - 7384), nzTpIcepk0o8(chr(294 - 246) + chr(0b101001 + 0o106) + chr(0b110011) + '\066' + chr(0b100 + 0o57), 0o10), nzTpIcepk0o8('\x30' + chr(0b10111 + 0o130) + '\x33' + '\x36', 0o10), nzTpIcepk0o8(chr(0b1 + 0o57) + '\157' + chr(456 - 402) + '\x33', ord("\x08")), nzTpIcepk0o8('\x30' + chr(3482 - 3371) + chr(0b110010) + '\066' + chr(0b110001), 8), nzTpIcepk0o8('\x30' + chr(143 - 32) + chr(0b10101 + 0o35) + chr(0b110101) + chr(0b101101 + 0o10), 10586 - 10578), nzTpIcepk0o8('\060' + chr(111) + chr(51) + chr(490 - 439) + chr(0b110010), 33673 - 33665), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110001) + chr(0b110111) + chr(0b110101), 0o10), nzTpIcepk0o8('\060' + '\157' + chr(0b101001 + 0o10) + chr(54) + chr(0b101 + 0o61), 0o10), nzTpIcepk0o8(chr(48) + '\157' + '\063' + '\x35' + chr(1555 - 1501), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(912 - 862) + '\x35' + chr(0b110001), 63803 - 63795), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b101000 + 0o12) + chr(0b110011) + chr(0b110101), 8171 - 8163), nzTpIcepk0o8(chr(48) + '\157' + '\x33' + chr(0b110111) + chr(0b110000), 34842 - 34834), nzTpIcepk0o8('\x30' + '\157' + '\062' + chr(48) + chr(1726 - 1676), 15560 - 15552), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(51) + '\065', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(7288 - 7177) + '\062' + chr(0b1100 + 0o51) + chr(0b110 + 0o60), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\062' + chr(0b100111 + 0o17) + '\061', 8), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110011) + chr(55) + chr(0b0 + 0o60), 8), nzTpIcepk0o8(chr(621 - 573) + chr(0b1101111) + chr(1751 - 1701) + chr(48) + chr(0b110100), 25023 - 25015), nzTpIcepk0o8(chr(0b100100 + 0o14) + chr(0b1001 + 0o146) + '\062' + chr(50) + chr(51), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + '\061' + chr(54) + chr(1958 - 1905), 57068 - 57060), nzTpIcepk0o8(chr(48) + '\157' + chr(0b1001 + 0o53) + chr(1699 - 1644), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110011) + '\065' + '\x30', 28268 - 28260), nzTpIcepk0o8('\x30' + chr(111) + chr(0b100010 + 0o17) + chr(1971 - 1923) + chr(452 - 404), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(51) + chr(52) + chr(286 - 234), 1711 - 1703), nzTpIcepk0o8(chr(48) + '\157' + '\x37' + chr(1300 - 1248), 0o10), nzTpIcepk0o8(chr(1978 - 1930) + chr(111) + '\062' + '\060' + chr(0b110100), 8), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(53) + chr(52), 0o10), nzTpIcepk0o8('\x30' + chr(4138 - 4027) + '\x31' + '\x30' + chr(0b100101 + 0o13), 8)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b0 + 0o60) + '\x6f' + chr(53) + chr(0b110000), 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xa5'), chr(0b1100100) + '\x65' + chr(0b10000 + 0o123) + chr(111) + chr(0b111110 + 0o46) + chr(2547 - 2446))(chr(0b1110101) + chr(0b1110100) + chr(102) + chr(45) + chr(0b11 + 0o65)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def uYPeVivfb08B(hXMPsSrOQzbh):
return roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xcc\x1d\x84G\x0b#\xd7\xd2\r\xf6-O'), '\x64' + chr(0b1100101) + chr(99) + chr(668 - 557) + chr(100) + chr(6903 - 6802))(chr(117) + '\164' + chr(102) + chr(45) + '\070'))(property_name=roI3spqORKae(ES5oEprVxulp(b'\xfb1\xbbJ\x108\xbc\xcf\x14\xd4=p\x87\x7fQ\xdd\xc8'), chr(1247 - 1147) + chr(2019 - 1918) + chr(99) + '\x6f' + chr(9978 - 9878) + '\145')(chr(0b1110101) + chr(0b10 + 0o162) + chr(0b1100110) + chr(0b101101) + '\070'), default=roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\xdd8\x8do\x0bd\xb5\xffZ\xfahd'), chr(0b1100100) + chr(0b1100101 + 0o0) + '\143' + chr(6674 - 6563) + '\x64' + '\145')('\165' + chr(116) + chr(102) + chr(0b101101) + '\070')) or roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'\xd2|\xb6oF\x14\x80\xcc8\xf2\x10t'), '\144' + chr(7080 - 6979) + chr(0b1100011) + chr(0b1101111) + chr(0b1100100) + chr(0b111101 + 0o50))(chr(0b1110101) + chr(0b1110100) + chr(102) + '\x2d' + chr(0b111000)))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xe2&\xbcV\x1e:\x8f\xf5\x1c\xc3;c\x9af'), chr(100) + '\145' + chr(2072 - 1973) + chr(111) + chr(0b110100 + 0o60) + chr(0b101101 + 0o70))(chr(117) + chr(0b111110 + 0o66) + '\x66' + chr(45) + '\070')), roI3spqORKae(ES5oEprVxulp(b'\xe9!\xa1'), chr(100) + chr(6104 - 6003) + chr(99) + '\157' + chr(0b1100100) + '\145')('\x75' + chr(0b1010111 + 0o35) + chr(0b1100110) + chr(0b101101) + chr(0b110011 + 0o5)), roI3spqORKae(ES5oEprVxulp(b'\xfb1\xbbJ\x108'), '\x64' + chr(0b1100101) + chr(99) + chr(0b1101111) + '\x64' + '\x65')(chr(11813 - 11696) + chr(0b1000100 + 0o60) + chr(0b1100110) + chr(0b100 + 0o51) + '\070'))) |
paylogic/pip-accel | pip_accel/config.py | Config.auto_install | def auto_install(self):
"""
Whether automatic installation of missing system packages is enabled.
:data:`True` if automatic installation of missing system packages is
enabled, :data:`False` if it is disabled, :data:`None` otherwise (in this case
the user will be prompted at the appropriate time).
- Environment variable: ``$PIP_ACCEL_AUTO_INSTALL`` (refer to
:func:`~humanfriendly.coerce_boolean()` for details on how the
value of the environment variable is interpreted)
- Configuration option: ``auto-install`` (also parsed using
:func:`~humanfriendly.coerce_boolean()`)
- Default: :data:`None`
"""
value = self.get(property_name='auto_install',
environment_variable='PIP_ACCEL_AUTO_INSTALL',
configuration_option='auto-install')
if value is not None:
return coerce_boolean(value) | python | def auto_install(self):
"""
Whether automatic installation of missing system packages is enabled.
:data:`True` if automatic installation of missing system packages is
enabled, :data:`False` if it is disabled, :data:`None` otherwise (in this case
the user will be prompted at the appropriate time).
- Environment variable: ``$PIP_ACCEL_AUTO_INSTALL`` (refer to
:func:`~humanfriendly.coerce_boolean()` for details on how the
value of the environment variable is interpreted)
- Configuration option: ``auto-install`` (also parsed using
:func:`~humanfriendly.coerce_boolean()`)
- Default: :data:`None`
"""
value = self.get(property_name='auto_install',
environment_variable='PIP_ACCEL_AUTO_INSTALL',
configuration_option='auto-install')
if value is not None:
return coerce_boolean(value) | [
"def",
"auto_install",
"(",
"self",
")",
":",
"value",
"=",
"self",
".",
"get",
"(",
"property_name",
"=",
"'auto_install'",
",",
"environment_variable",
"=",
"'PIP_ACCEL_AUTO_INSTALL'",
",",
"configuration_option",
"=",
"'auto-install'",
")",
"if",
"value",
"is",
"not",
"None",
":",
"return",
"coerce_boolean",
"(",
"value",
")"
] | Whether automatic installation of missing system packages is enabled.
:data:`True` if automatic installation of missing system packages is
enabled, :data:`False` if it is disabled, :data:`None` otherwise (in this case
the user will be prompted at the appropriate time).
- Environment variable: ``$PIP_ACCEL_AUTO_INSTALL`` (refer to
:func:`~humanfriendly.coerce_boolean()` for details on how the
value of the environment variable is interpreted)
- Configuration option: ``auto-install`` (also parsed using
:func:`~humanfriendly.coerce_boolean()`)
- Default: :data:`None` | [
"Whether",
"automatic",
"installation",
"of",
"missing",
"system",
"packages",
"is",
"enabled",
"."
] | ccad1b784927a322d996db593403b1d2d2e22666 | https://github.com/paylogic/pip-accel/blob/ccad1b784927a322d996db593403b1d2d2e22666/pip_accel/config.py#L273-L292 | train | Returns a boolean value indicating whether automatic installation of missing system packages is enabled. | 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,Migy1gLCcY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ia,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(2765 - 2654) + '\x33' + chr(0b110011) + chr(1600 - 1552), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b101000 + 0o13) + chr(0b110001) + chr(0b110111), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(51) + '\x34' + chr(1091 - 1040), 48624 - 48616), nzTpIcepk0o8(chr(0b101110 + 0o2) + chr(111) + '\x32' + '\x32' + chr(0b110101), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b100 + 0o153) + '\x31' + '\x34' + chr(0b110110), ord("\x08")), nzTpIcepk0o8(chr(2246 - 2198) + chr(111) + chr(0b110001) + '\x36' + '\x35', 0o10), nzTpIcepk0o8(chr(0b101010 + 0o6) + chr(0b1101111) + chr(547 - 496) + chr(0b101000 + 0o10) + '\x36', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + '\063' + chr(0b110001) + chr(865 - 810), 8), nzTpIcepk0o8(chr(48) + chr(111) + '\x32' + chr(0b101000 + 0o11) + '\x35', 0o10), nzTpIcepk0o8(chr(413 - 365) + chr(0b101110 + 0o101) + '\x33' + chr(1312 - 1263) + chr(354 - 303), 0o10), nzTpIcepk0o8(chr(48) + chr(9193 - 9082) + chr(1744 - 1693) + chr(52) + chr(53), 0b1000), nzTpIcepk0o8(chr(48) + chr(832 - 721) + chr(0b110001) + chr(0b100 + 0o61) + chr(54), 60470 - 60462), nzTpIcepk0o8('\060' + '\x6f' + '\x33' + chr(1470 - 1422) + chr(0b110001 + 0o5), 8), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b11000 + 0o36) + chr(0b110111), 43096 - 43088), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110111) + '\060', 0b1000), nzTpIcepk0o8(chr(977 - 929) + chr(2761 - 2650) + '\062' + chr(54) + chr(0b101111 + 0o3), ord("\x08")), nzTpIcepk0o8(chr(0b1100 + 0o44) + '\x6f' + chr(0b1100 + 0o45) + '\x37' + '\x33', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b10011 + 0o43) + chr(51), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b10 + 0o61) + chr(0b1010 + 0o51) + '\x32', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110100) + chr(50), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b101 + 0o152) + '\x32' + chr(0b10111 + 0o33) + '\x33', 0b1000), nzTpIcepk0o8(chr(1463 - 1415) + chr(0b1101111) + '\x33' + chr(52) + '\x34', 0o10), nzTpIcepk0o8(chr(0b0 + 0o60) + chr(111) + chr(0b10010 + 0o37) + chr(743 - 694) + chr(0b100011 + 0o15), ord("\x08")), nzTpIcepk0o8(chr(1231 - 1183) + chr(4781 - 4670) + chr(830 - 779) + '\066' + chr(0b101110 + 0o6), 38692 - 38684), nzTpIcepk0o8('\x30' + chr(8760 - 8649) + chr(52) + chr(517 - 462), 60820 - 60812), nzTpIcepk0o8(chr(0b10001 + 0o37) + chr(0b1101111) + chr(2592 - 2541) + chr(0b110010) + chr(0b110111), 0b1000), nzTpIcepk0o8(chr(1784 - 1736) + chr(0b1101111) + chr(50) + chr(55) + chr(0b101011 + 0o7), 0b1000), nzTpIcepk0o8(chr(954 - 906) + chr(0b1101111) + chr(1505 - 1455) + chr(0b110100) + '\x31', 0b1000), nzTpIcepk0o8(chr(1907 - 1859) + chr(111) + '\064' + '\x32', 8), nzTpIcepk0o8(chr(48) + chr(111) + '\x31' + chr(54) + chr(53), 8), nzTpIcepk0o8(chr(0b100111 + 0o11) + chr(1212 - 1101) + chr(0b110010) + '\x35' + chr(2393 - 2340), 47676 - 47668), nzTpIcepk0o8('\x30' + chr(2596 - 2485) + chr(888 - 838) + chr(0b1 + 0o62), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(2374 - 2324) + chr(49) + chr(109 - 56), 8), nzTpIcepk0o8(chr(1855 - 1807) + '\157' + chr(50) + '\x34' + '\x30', ord("\x08")), nzTpIcepk0o8(chr(0b10011 + 0o35) + chr(9804 - 9693) + chr(0b10001 + 0o40) + '\x30' + '\063', 0o10), nzTpIcepk0o8(chr(1075 - 1027) + chr(0b110101 + 0o72) + chr(50) + chr(0b110011 + 0o4) + chr(54), ord("\x08")), nzTpIcepk0o8(chr(443 - 395) + chr(6896 - 6785) + '\x32' + chr(0b11011 + 0o31) + chr(307 - 258), 8), nzTpIcepk0o8(chr(1226 - 1178) + chr(434 - 323) + chr(50) + chr(1315 - 1267) + chr(52), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b10010 + 0o37) + chr(0b100011 + 0o24) + '\063', 8), nzTpIcepk0o8(chr(1162 - 1114) + chr(2688 - 2577) + '\x33' + chr(54) + chr(0b10101 + 0o40), 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b10100 + 0o34) + chr(111) + chr(0b101110 + 0o7) + chr(0b110000), 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xf6'), chr(100) + chr(0b1100101) + '\x63' + chr(111) + chr(0b11001 + 0o113) + '\145')(chr(9276 - 9159) + chr(116) + chr(0b1100110) + '\055' + '\x38') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def HwWmhuHOk0AG(hXMPsSrOQzbh):
uV9iBiw0y_Mp = hXMPsSrOQzbh.GUKetu4xaGsJ(property_name=roI3spqORKae(ES5oEprVxulp(b'\xb9\xba\x97\xfa9\x1c\xa8\xbc\xf9\xaa\x89\x02'), chr(0b1010001 + 0o23) + chr(4166 - 4065) + '\x63' + '\157' + '\x64' + chr(0b1100101))(chr(0b100001 + 0o124) + chr(5126 - 5010) + chr(102) + '\x2d' + '\070'), environment_variable=roI3spqORKae(ES5oEprVxulp(b"\x88\x86\xb3\xca'6\x85\x8a\xc1\x94\xa4;\x92xg\xfb5`\x8ec\xdf\xa8"), '\x64' + '\x65' + '\x63' + '\x6f' + chr(0b1000000 + 0o44) + chr(3978 - 3877))(chr(0b1110101) + '\x74' + chr(102) + '\x2d' + '\x38'), configuration_option=roI3spqORKae(ES5oEprVxulp(b'\xb9\xba\x97\xfaK\x1c\xa8\xbc\xf9\xaa\x89\x02'), chr(0b1100100) + chr(101) + '\x63' + chr(0b1100 + 0o143) + chr(100) + chr(8782 - 8681))(chr(0b1110101) + chr(1644 - 1528) + chr(102) + chr(1427 - 1382) + '\070'))
if uV9iBiw0y_Mp is not None:
return NeIUmVf9AwkO(uV9iBiw0y_Mp) |
paylogic/pip-accel | pip_accel/config.py | Config.trust_mod_times | def trust_mod_times(self):
"""
Whether to trust file modification times for cache invalidation.
- Environment variable: ``$PIP_ACCEL_TRUST_MOD_TIMES``
- Configuration option: ``trust-mod-times``
- Default: :data:`True` unless the AppVeyor_ continuous integration
environment is detected (see `issue 62`_).
.. _AppVeyor: http://www.appveyor.com
.. _issue 62: https://github.com/paylogic/pip-accel/issues/62
"""
on_appveyor = coerce_boolean(os.environ.get('APPVEYOR', 'False'))
return coerce_boolean(self.get(property_name='trust_mod_times',
environment_variable='PIP_ACCEL_TRUST_MOD_TIMES',
configuration_option='trust-mod-times',
default=(not on_appveyor))) | python | def trust_mod_times(self):
"""
Whether to trust file modification times for cache invalidation.
- Environment variable: ``$PIP_ACCEL_TRUST_MOD_TIMES``
- Configuration option: ``trust-mod-times``
- Default: :data:`True` unless the AppVeyor_ continuous integration
environment is detected (see `issue 62`_).
.. _AppVeyor: http://www.appveyor.com
.. _issue 62: https://github.com/paylogic/pip-accel/issues/62
"""
on_appveyor = coerce_boolean(os.environ.get('APPVEYOR', 'False'))
return coerce_boolean(self.get(property_name='trust_mod_times',
environment_variable='PIP_ACCEL_TRUST_MOD_TIMES',
configuration_option='trust-mod-times',
default=(not on_appveyor))) | [
"def",
"trust_mod_times",
"(",
"self",
")",
":",
"on_appveyor",
"=",
"coerce_boolean",
"(",
"os",
".",
"environ",
".",
"get",
"(",
"'APPVEYOR'",
",",
"'False'",
")",
")",
"return",
"coerce_boolean",
"(",
"self",
".",
"get",
"(",
"property_name",
"=",
"'trust_mod_times'",
",",
"environment_variable",
"=",
"'PIP_ACCEL_TRUST_MOD_TIMES'",
",",
"configuration_option",
"=",
"'trust-mod-times'",
",",
"default",
"=",
"(",
"not",
"on_appveyor",
")",
")",
")"
] | Whether to trust file modification times for cache invalidation.
- Environment variable: ``$PIP_ACCEL_TRUST_MOD_TIMES``
- Configuration option: ``trust-mod-times``
- Default: :data:`True` unless the AppVeyor_ continuous integration
environment is detected (see `issue 62`_).
.. _AppVeyor: http://www.appveyor.com
.. _issue 62: https://github.com/paylogic/pip-accel/issues/62 | [
"Whether",
"to",
"trust",
"file",
"modification",
"times",
"for",
"cache",
"invalidation",
"."
] | ccad1b784927a322d996db593403b1d2d2e22666 | https://github.com/paylogic/pip-accel/blob/ccad1b784927a322d996db593403b1d2d2e22666/pip_accel/config.py#L342-L358 | train | Determines whether to trust file modification times for cache invalidation. | GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByL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_BbS,WtdkIpFeYozM,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(48) + '\x6f' + '\061' + '\x35', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b11110 + 0o25) + chr(2102 - 2053) + chr(0b110100), 4751 - 4743), nzTpIcepk0o8(chr(2208 - 2160) + chr(0b1001011 + 0o44) + '\061' + chr(0b110000) + '\x30', ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(55), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(2067 - 2016) + '\x33' + '\x37', ord("\x08")), nzTpIcepk0o8('\060' + chr(2916 - 2805) + '\062' + '\x36' + '\x34', 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(56 - 2) + chr(0b110001 + 0o4), 37173 - 37165), nzTpIcepk0o8(chr(0b110000) + chr(0b1000101 + 0o52) + '\063' + chr(2272 - 2219) + chr(0b110011 + 0o2), 40657 - 40649), nzTpIcepk0o8('\x30' + '\157' + chr(50) + chr(50) + '\x35', 0o10), nzTpIcepk0o8(chr(844 - 796) + chr(111) + chr(0b10111 + 0o32) + chr(2395 - 2346) + chr(0b10111 + 0o31), 12160 - 12152), nzTpIcepk0o8('\x30' + chr(9849 - 9738) + '\063' + '\061' + chr(0b110000), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b1111 + 0o44) + chr(0b110111) + chr(1039 - 989), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + '\x33' + chr(53) + chr(48), 654 - 646), nzTpIcepk0o8(chr(1177 - 1129) + chr(0b1101111) + chr(0b10111 + 0o34) + chr(2422 - 2369) + chr(0b110110), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(1311 - 1261) + '\x30' + '\x37', 0b1000), nzTpIcepk0o8(chr(48) + '\157' + '\062' + chr(740 - 692) + chr(0b101110 + 0o7), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(51) + '\x30' + chr(1495 - 1442), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b10011 + 0o37) + chr(224 - 173) + chr(49), ord("\x08")), nzTpIcepk0o8(chr(2118 - 2070) + chr(6812 - 6701) + chr(0b10001 + 0o40) + chr(0b11001 + 0o35), 0o10), nzTpIcepk0o8(chr(1366 - 1318) + chr(0b110011 + 0o74) + chr(0b10000 + 0o42) + chr(0b1000 + 0o51) + chr(0b110101), 0o10), nzTpIcepk0o8('\060' + chr(0b11 + 0o154) + chr(262 - 211) + '\065' + chr(53), 8), nzTpIcepk0o8(chr(0b101010 + 0o6) + chr(6958 - 6847) + '\x32' + chr(0b101010 + 0o15) + '\064', ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(0b110110) + chr(0b110010), 0o10), nzTpIcepk0o8('\060' + chr(283 - 172) + chr(51) + chr(0b110100) + '\064', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(50) + '\x30' + chr(0b110010), 0b1000), nzTpIcepk0o8(chr(606 - 558) + chr(6863 - 6752) + chr(2586 - 2535) + chr(0b100011 + 0o22) + '\x36', 8), nzTpIcepk0o8('\x30' + chr(6280 - 6169) + chr(49) + '\065' + chr(0b110110), 0o10), nzTpIcepk0o8('\060' + chr(111) + '\062' + '\066' + chr(0b110111), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b10000 + 0o42) + '\x34' + '\067', 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110000 + 0o2) + chr(0b10010 + 0o36) + chr(50), 8), nzTpIcepk0o8('\060' + chr(0b1011111 + 0o20) + chr(0b101 + 0o55) + chr(0b110010) + chr(0b110110), 3398 - 3390), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(51) + chr(2665 - 2610) + chr(0b11111 + 0o23), 8), nzTpIcepk0o8('\x30' + chr(3791 - 3680) + '\063' + chr(0b1001 + 0o47) + '\x31', 0o10), nzTpIcepk0o8(chr(48) + chr(12151 - 12040) + '\062' + '\x34' + chr(0b110111), 8), nzTpIcepk0o8('\x30' + '\x6f' + chr(2520 - 2469) + chr(672 - 624) + '\066', 33583 - 33575), nzTpIcepk0o8(chr(520 - 472) + '\157' + chr(0b11011 + 0o34) + chr(0b101100 + 0o4), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1 + 0o156) + chr(0b110011) + chr(0b110001) + chr(779 - 724), ord("\x08")), nzTpIcepk0o8(chr(1745 - 1697) + '\x6f' + chr(0b100100 + 0o15) + '\x34' + '\x36', 56082 - 56074), nzTpIcepk0o8('\060' + chr(10374 - 10263) + '\x32' + '\063' + '\x36', 0o10), nzTpIcepk0o8(chr(0b10101 + 0o33) + chr(111) + chr(54) + chr(0b10000 + 0o42), 8)][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + '\x6f' + '\x35' + chr(0b110000), ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'#'), '\x64' + chr(101) + '\143' + chr(5859 - 5748) + '\144' + chr(0b1011111 + 0o6))(chr(6945 - 6828) + chr(0b101000 + 0o114) + chr(0b1001010 + 0o34) + '\x2d' + '\070') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def cKlQJNGp9VZ6(hXMPsSrOQzbh):
d5hoWQs_27FT = NeIUmVf9AwkO(aHUqKstZLeS6.environ.GUKetu4xaGsJ(roI3spqORKae(ES5oEprVxulp(b'L\x9c\x10Q\x9a\xedz\xbf'), chr(0b1100100) + chr(0b101010 + 0o73) + chr(0b1100011) + '\157' + chr(100) + chr(0b1100101))(chr(117) + chr(116) + '\x66' + '\x2d' + '\070'), roI3spqORKae(ES5oEprVxulp(b'K\xad,t\xba'), chr(0b1010010 + 0o22) + '\x65' + chr(99) + '\x6f' + chr(0b1100100) + chr(101))('\165' + chr(116) + chr(9690 - 9588) + chr(0b101101) + chr(0b111000))))
return NeIUmVf9AwkO(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'J\x99\x0bb\xab\xc1\x01\x95\xf4\x0f\xbb\xb0'), '\x64' + '\x65' + chr(4112 - 4013) + '\x6f' + chr(0b1010000 + 0o24) + '\145')(chr(1701 - 1584) + chr(116) + '\146' + chr(736 - 691) + chr(0b111000)))(property_name=roI3spqORKae(ES5oEprVxulp(b'y\xbe5t\xab\xebX\x82\xf1\x17\xbc\x93\x85\x8b\xf4'), chr(0b11111 + 0o105) + '\x65' + '\143' + '\157' + '\144' + chr(101))(chr(0b1110101) + chr(0b1110001 + 0o3) + chr(2224 - 2122) + chr(45) + chr(56)), environment_variable=roI3spqORKae(ES5oEprVxulp(b']\x85\x10X\x9e\xf7v\xa8\xd9\x17\x9c\xa8\xbd\xbd\xd3\xda\x88\xd6J\xd2\xb9\xf5\x7f\xa1\xd1'), chr(4117 - 4017) + chr(0b1001110 + 0o27) + chr(99) + '\x6f' + '\144' + chr(101))('\165' + chr(116) + chr(3185 - 3083) + chr(45) + chr(0b111000)), configuration_option=roI3spqORKae(ES5oEprVxulp(b'y\xbe5t\xab\x99X\x82\xf1e\xbc\x93\x85\x8b\xf4'), '\144' + chr(0b10111 + 0o116) + chr(0b1100011) + chr(0b1101111) + '\144' + '\145')('\x75' + chr(116) + '\146' + chr(0b101101) + chr(0b111000)), default=not d5hoWQs_27FT)) |
paylogic/pip-accel | pip_accel/config.py | Config.s3_cache_readonly | def s3_cache_readonly(self):
"""
Whether the Amazon S3 bucket is considered read only.
If this is :data:`True` then the Amazon S3 bucket will only be used for
:class:`~pip_accel.caches.s3.S3CacheBackend.get()` operations (all
:class:`~pip_accel.caches.s3.S3CacheBackend.put()` operations will
be disabled).
- Environment variable: ``$PIP_ACCEL_S3_READONLY`` (refer to
:func:`~humanfriendly.coerce_boolean()` for details on how the
value of the environment variable is interpreted)
- Configuration option: ``s3-readonly`` (also parsed using
:func:`~humanfriendly.coerce_boolean()`)
- Default: :data:`False`
For details please refer to the :mod:`pip_accel.caches.s3` module.
"""
return coerce_boolean(self.get(property_name='s3_cache_readonly',
environment_variable='PIP_ACCEL_S3_READONLY',
configuration_option='s3-readonly',
default=False)) | python | def s3_cache_readonly(self):
"""
Whether the Amazon S3 bucket is considered read only.
If this is :data:`True` then the Amazon S3 bucket will only be used for
:class:`~pip_accel.caches.s3.S3CacheBackend.get()` operations (all
:class:`~pip_accel.caches.s3.S3CacheBackend.put()` operations will
be disabled).
- Environment variable: ``$PIP_ACCEL_S3_READONLY`` (refer to
:func:`~humanfriendly.coerce_boolean()` for details on how the
value of the environment variable is interpreted)
- Configuration option: ``s3-readonly`` (also parsed using
:func:`~humanfriendly.coerce_boolean()`)
- Default: :data:`False`
For details please refer to the :mod:`pip_accel.caches.s3` module.
"""
return coerce_boolean(self.get(property_name='s3_cache_readonly',
environment_variable='PIP_ACCEL_S3_READONLY',
configuration_option='s3-readonly',
default=False)) | [
"def",
"s3_cache_readonly",
"(",
"self",
")",
":",
"return",
"coerce_boolean",
"(",
"self",
".",
"get",
"(",
"property_name",
"=",
"'s3_cache_readonly'",
",",
"environment_variable",
"=",
"'PIP_ACCEL_S3_READONLY'",
",",
"configuration_option",
"=",
"'s3-readonly'",
",",
"default",
"=",
"False",
")",
")"
] | Whether the Amazon S3 bucket is considered read only.
If this is :data:`True` then the Amazon S3 bucket will only be used for
:class:`~pip_accel.caches.s3.S3CacheBackend.get()` operations (all
:class:`~pip_accel.caches.s3.S3CacheBackend.put()` operations will
be disabled).
- Environment variable: ``$PIP_ACCEL_S3_READONLY`` (refer to
:func:`~humanfriendly.coerce_boolean()` for details on how the
value of the environment variable is interpreted)
- Configuration option: ``s3-readonly`` (also parsed using
:func:`~humanfriendly.coerce_boolean()`)
- Default: :data:`False`
For details please refer to the :mod:`pip_accel.caches.s3` module. | [
"Whether",
"the",
"Amazon",
"S3",
"bucket",
"is",
"considered",
"read",
"only",
"."
] | ccad1b784927a322d996db593403b1d2d2e22666 | https://github.com/paylogic/pip-accel/blob/ccad1b784927a322d996db593403b1d2d2e22666/pip_accel/config.py#L427-L448 | train | Determines if the Amazon S3 bucket is considered read only. | GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5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dkNqd1bagO6,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' + '\157' + '\x31' + chr(0b110101 + 0o2) + '\063', 44707 - 44699), nzTpIcepk0o8('\x30' + chr(111) + chr(51), 0b1000), nzTpIcepk0o8('\060' + '\157' + chr(1819 - 1769) + chr(50) + chr(0b101001 + 0o16), ord("\x08")), nzTpIcepk0o8(chr(565 - 517) + chr(0b100101 + 0o112) + chr(52) + chr(0b11010 + 0o27), ord("\x08")), nzTpIcepk0o8(chr(1600 - 1552) + chr(10881 - 10770) + chr(0b10000 + 0o47) + chr(0b110000), 49803 - 49795), nzTpIcepk0o8(chr(48) + '\157' + '\061' + chr(50) + '\x31', 50180 - 50172), nzTpIcepk0o8(chr(0b10101 + 0o33) + chr(111) + '\x32' + chr(48) + chr(1700 - 1648), 0o10), nzTpIcepk0o8(chr(0b100111 + 0o11) + chr(0b111001 + 0o66) + '\x31' + chr(1065 - 1012) + '\067', 55785 - 55777), nzTpIcepk0o8('\060' + '\157' + '\x32' + chr(0b101111 + 0o3) + chr(2003 - 1948), 8), nzTpIcepk0o8(chr(0b1101 + 0o43) + chr(11274 - 11163) + '\x31' + chr(0b10 + 0o62), 0o10), nzTpIcepk0o8(chr(0b110000 + 0o0) + chr(331 - 220) + '\062' + chr(0b10001 + 0o37) + '\060', ord("\x08")), nzTpIcepk0o8('\060' + '\157' + '\065' + '\064', 0o10), nzTpIcepk0o8(chr(0b10000 + 0o40) + '\x6f' + '\x31' + chr(0b110011), 52392 - 52384), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b101011 + 0o7) + chr(0b11001 + 0o33) + '\060', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(8651 - 8540) + '\061' + chr(0b1011 + 0o52) + chr(277 - 228), 34747 - 34739), nzTpIcepk0o8('\x30' + chr(111) + chr(0b10010 + 0o37) + chr(569 - 514) + chr(0b110100 + 0o2), 0b1000), nzTpIcepk0o8(chr(0b1 + 0o57) + '\x6f' + chr(50) + chr(504 - 449) + chr(422 - 374), ord("\x08")), nzTpIcepk0o8(chr(0b10 + 0o56) + chr(0b1101111) + chr(49) + '\x35' + chr(50), 0o10), nzTpIcepk0o8('\060' + chr(0b1000011 + 0o54) + chr(251 - 199) + '\x37', 34626 - 34618), nzTpIcepk0o8(chr(48) + '\x6f' + '\x31' + chr(55) + chr(844 - 796), 0b1000), nzTpIcepk0o8(chr(0b101010 + 0o6) + chr(111) + '\061' + chr(52) + chr(1749 - 1699), 40923 - 40915), nzTpIcepk0o8(chr(0b101010 + 0o6) + '\157' + chr(0b101011 + 0o7) + '\065' + chr(663 - 608), 58072 - 58064), nzTpIcepk0o8(chr(1505 - 1457) + chr(111) + '\063' + chr(0b110111) + '\062', 8504 - 8496), nzTpIcepk0o8(chr(0b100010 + 0o16) + chr(5808 - 5697) + '\062' + chr(1861 - 1812) + chr(2033 - 1982), ord("\x08")), nzTpIcepk0o8(chr(0b11101 + 0o23) + chr(111) + '\x31' + chr(55) + chr(2610 - 2555), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110010) + chr(0b10011 + 0o35) + chr(49), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110010) + chr(0b110101) + '\062', 0o10), nzTpIcepk0o8('\x30' + chr(7443 - 7332) + '\061' + '\060' + chr(0b101 + 0o62), 17779 - 17771), nzTpIcepk0o8('\x30' + '\x6f' + '\061' + chr(0b110000 + 0o1) + '\x33', 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(49) + chr(0b10001 + 0o44) + chr(50), 8), nzTpIcepk0o8(chr(48) + chr(4606 - 4495) + chr(0b110011) + '\060' + '\061', 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(50) + '\x36' + chr(0b110010), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(588 - 477) + chr(50) + chr(519 - 466) + '\062', 8), nzTpIcepk0o8('\x30' + chr(111) + '\061' + chr(0b110100) + chr(0b11000 + 0o35), 0o10), nzTpIcepk0o8(chr(947 - 899) + '\157' + chr(0b100 + 0o61) + chr(55), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(49) + '\x32' + chr(53), 0o10), nzTpIcepk0o8(chr(0b100101 + 0o13) + '\157' + chr(2654 - 2602), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1100 + 0o143) + chr(50) + chr(0b110110) + '\x36', 0o10), nzTpIcepk0o8(chr(2287 - 2239) + chr(9923 - 9812) + chr(54) + '\x37', 45589 - 45581), nzTpIcepk0o8('\x30' + chr(0b1011110 + 0o21) + '\x33' + '\x34', ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b11 + 0o55) + chr(111) + '\065' + '\x30', 42439 - 42431)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'U'), '\x64' + '\x65' + chr(0b111101 + 0o46) + chr(0b1101010 + 0o5) + '\x64' + chr(0b101111 + 0o66))(chr(0b1011110 + 0o27) + chr(0b101001 + 0o113) + '\x66' + '\055' + chr(2909 - 2853)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def l6Jwghb7Sf1u(hXMPsSrOQzbh):
return NeIUmVf9AwkO(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'<V\xdcDL$\xb0\x17\xf6K\xf3f'), chr(100) + '\145' + chr(99) + chr(980 - 869) + chr(0b1011111 + 0o5) + chr(101))('\165' + '\x74' + '\146' + chr(0b111 + 0o46) + chr(56)))(property_name=roI3spqORKae(ES5oEprVxulp(b'\x080\xc8BY2\xec\n\xc8~\xe5Mo\xcf\x07\x12\xc1'), chr(0b1100100) + chr(101) + chr(0b1101 + 0o126) + chr(7142 - 7031) + chr(0b1100100 + 0o0) + '\x65')(chr(6870 - 6753) + '\164' + chr(0b101011 + 0o73) + chr(45) + chr(1025 - 969)), environment_variable=roI3spqORKae(ES5oEprVxulp(b'+J\xc7~y\x12\xc7*\xdbS\xd3\x1fT\xf2,?\xfc%i4;'), chr(9623 - 9523) + chr(222 - 121) + chr(0b1110 + 0o125) + chr(0b1101111) + chr(100) + '\145')('\x75' + chr(7890 - 7774) + '\146' + '\055' + chr(0b1111 + 0o51)), configuration_option=roI3spqORKae(ES5oEprVxulp(b'\x080\xbaS]0\xe0\x00\xf9`\xf9'), '\144' + '\x65' + chr(0b1100011) + '\x6f' + chr(100) + chr(5921 - 5820))('\165' + chr(4491 - 4375) + chr(0b1100110) + chr(108 - 63) + chr(0b111000)), default=nzTpIcepk0o8('\060' + '\157' + '\x30', 0o10))) |
paylogic/pip-accel | pip_accel/config.py | Config.s3_cache_timeout | def s3_cache_timeout(self):
"""
The socket timeout in seconds for connections to Amazon S3 (an integer).
This value is injected into Boto's configuration to override the
default socket timeout used for connections to Amazon S3.
- Environment variable: ``$PIP_ACCEL_S3_TIMEOUT``
- Configuration option: ``s3-timeout``
- Default: ``60`` (`Boto's default`_)
.. _Boto's default: http://boto.readthedocs.org/en/latest/boto_config_tut.html
"""
value = self.get(property_name='s3_cache_timeout',
environment_variable='PIP_ACCEL_S3_TIMEOUT',
configuration_option='s3-timeout')
try:
n = int(value)
if n >= 0:
return n
except:
return 60 | python | def s3_cache_timeout(self):
"""
The socket timeout in seconds for connections to Amazon S3 (an integer).
This value is injected into Boto's configuration to override the
default socket timeout used for connections to Amazon S3.
- Environment variable: ``$PIP_ACCEL_S3_TIMEOUT``
- Configuration option: ``s3-timeout``
- Default: ``60`` (`Boto's default`_)
.. _Boto's default: http://boto.readthedocs.org/en/latest/boto_config_tut.html
"""
value = self.get(property_name='s3_cache_timeout',
environment_variable='PIP_ACCEL_S3_TIMEOUT',
configuration_option='s3-timeout')
try:
n = int(value)
if n >= 0:
return n
except:
return 60 | [
"def",
"s3_cache_timeout",
"(",
"self",
")",
":",
"value",
"=",
"self",
".",
"get",
"(",
"property_name",
"=",
"'s3_cache_timeout'",
",",
"environment_variable",
"=",
"'PIP_ACCEL_S3_TIMEOUT'",
",",
"configuration_option",
"=",
"'s3-timeout'",
")",
"try",
":",
"n",
"=",
"int",
"(",
"value",
")",
"if",
"n",
">=",
"0",
":",
"return",
"n",
"except",
":",
"return",
"60"
] | The socket timeout in seconds for connections to Amazon S3 (an integer).
This value is injected into Boto's configuration to override the
default socket timeout used for connections to Amazon S3.
- Environment variable: ``$PIP_ACCEL_S3_TIMEOUT``
- Configuration option: ``s3-timeout``
- Default: ``60`` (`Boto's default`_)
.. _Boto's default: http://boto.readthedocs.org/en/latest/boto_config_tut.html | [
"The",
"socket",
"timeout",
"in",
"seconds",
"for",
"connections",
"to",
"Amazon",
"S3",
"(",
"an",
"integer",
")",
"."
] | ccad1b784927a322d996db593403b1d2d2e22666 | https://github.com/paylogic/pip-accel/blob/ccad1b784927a322d996db593403b1d2d2e22666/pip_accel/config.py#L451-L472 | train | Get the socket timeout in seconds for connections to Amazon S3. | 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(chr(0b110000) + chr(10968 - 10857) + chr(0b110001) + '\066' + chr(53), 42849 - 42841), nzTpIcepk0o8(chr(1089 - 1041) + chr(111) + chr(0b100101 + 0o21) + chr(0b100000 + 0o27), 0b1000), nzTpIcepk0o8(chr(0b10110 + 0o32) + '\157' + '\x32' + chr(108 - 60) + chr(0b110010), 26569 - 26561), nzTpIcepk0o8(chr(48) + '\157' + chr(54), 52059 - 52051), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(50) + '\060' + '\x30', 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(140 - 91) + chr(2113 - 2059) + chr(0b110100), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110011) + chr(50) + chr(0b110101), 12425 - 12417), nzTpIcepk0o8('\x30' + '\x6f' + chr(2210 - 2160) + chr(53) + '\065', 56361 - 56353), nzTpIcepk0o8('\x30' + '\157' + chr(1161 - 1108) + chr(53), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + '\x31' + chr(0b11101 + 0o27) + chr(53), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b100 + 0o153) + '\x32' + chr(545 - 497) + '\060', 8), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110010) + '\065' + chr(0b1 + 0o60), 0o10), nzTpIcepk0o8(chr(1533 - 1485) + '\157' + chr(49) + chr(54) + chr(898 - 844), 0o10), nzTpIcepk0o8(chr(958 - 910) + chr(9199 - 9088) + '\061' + '\x30' + chr(0b110000), 12369 - 12361), nzTpIcepk0o8(chr(0b10110 + 0o32) + chr(0b110111 + 0o70) + chr(0b11100 + 0o33) + chr(0b111 + 0o56), 0o10), nzTpIcepk0o8(chr(0b101 + 0o53) + chr(0b1101111) + chr(49) + '\063', 10499 - 10491), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b100000 + 0o25) + chr(635 - 586), ord("\x08")), nzTpIcepk0o8(chr(670 - 622) + '\157' + '\062' + '\x37' + chr(0b10111 + 0o33), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110010) + chr(54), 0o10), nzTpIcepk0o8('\060' + chr(11041 - 10930) + '\062' + chr(0b110010 + 0o0) + chr(0b110001), 5248 - 5240), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\063' + chr(784 - 732) + chr(0b11010 + 0o35), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110011) + chr(0b100001 + 0o25) + chr(53), 0b1000), nzTpIcepk0o8(chr(1976 - 1928) + chr(111) + '\063' + '\067', ord("\x08")), nzTpIcepk0o8(chr(1495 - 1447) + '\157' + '\063' + chr(1607 - 1554) + chr(50), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(50) + '\061' + chr(2659 - 2606), 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(50) + chr(0b1101 + 0o47) + chr(0b110000), ord("\x08")), nzTpIcepk0o8(chr(1334 - 1286) + chr(3325 - 3214) + chr(53) + chr(51), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b10001 + 0o136) + chr(0b100000 + 0o23) + '\x31' + '\x35', 32363 - 32355), nzTpIcepk0o8(chr(0b1001 + 0o47) + chr(0b1101111) + '\x33' + '\066' + chr(50), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\063' + chr(51), 0b1000), nzTpIcepk0o8('\x30' + chr(0b10011 + 0o134) + chr(51) + '\x32' + chr(0b11101 + 0o26), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(49) + chr(0b110111) + chr(0b100010 + 0o17), 22197 - 22189), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(801 - 751) + chr(53), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(51) + '\061' + '\x31', ord("\x08")), nzTpIcepk0o8('\060' + chr(7374 - 7263) + chr(50) + chr(54), 8), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110010) + '\060' + '\066', 18928 - 18920), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110011) + chr(1380 - 1330) + chr(417 - 365), 0b1000), nzTpIcepk0o8('\060' + chr(0b1011001 + 0o26) + chr(49) + chr(0b110000) + '\x31', 40326 - 40318), nzTpIcepk0o8('\x30' + chr(111) + '\064' + '\x34', 0o10), nzTpIcepk0o8(chr(0b100011 + 0o15) + chr(0b1101111) + chr(0b110011) + chr(0b100111 + 0o17) + '\x32', 8)][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + chr(1752 - 1641) + '\x35' + chr(0b1101 + 0o43), 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'['), '\144' + chr(101) + '\143' + chr(0b100100 + 0o113) + chr(0b1100100) + '\145')('\165' + chr(0b1110011 + 0o1) + chr(1033 - 931) + chr(45) + '\070') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def hiOmnXTvOLFQ(hXMPsSrOQzbh):
uV9iBiw0y_Mp = hXMPsSrOQzbh.GUKetu4xaGsJ(property_name=roI3spqORKae(ES5oEprVxulp(b'\x06\x04\xdde\xe1\x17\xbd\xc8r\x11\xe9\xc4\x13/H\x7f'), '\144' + chr(6453 - 6352) + chr(0b1100011) + chr(769 - 658) + chr(0b1100100) + chr(0b1100101))(chr(0b1110101) + chr(5781 - 5665) + chr(102) + chr(0b101101) + '\x38'), environment_variable=roI3spqORKae(ES5oEprVxulp(b'%~\xd2Y\xc17\x96\xe8a:\xd3\x9a)\x14tFl\xf5C\xc5'), chr(4649 - 4549) + chr(0b1100101) + '\x63' + chr(111) + chr(100) + chr(1525 - 1424))(chr(117) + chr(0b1001010 + 0o52) + '\x66' + chr(0b10100 + 0o31) + chr(180 - 124)), configuration_option=roI3spqORKae(ES5oEprVxulp(b'\x06\x04\xafr\xe9\x19\xb0\xc2X\x11'), '\x64' + chr(0b1100101) + chr(99) + chr(8917 - 8806) + chr(100) + chr(8808 - 8707))(chr(117) + '\164' + '\146' + chr(0b101101) + '\x38'))
try:
NoZxuO7wjArS = nzTpIcepk0o8(uV9iBiw0y_Mp)
if NoZxuO7wjArS >= nzTpIcepk0o8(chr(1730 - 1682) + chr(0b1011111 + 0o20) + chr(0b101111 + 0o1), ord("\x08")):
return NoZxuO7wjArS
except UtiWT6f6p9yZ:
return nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(55) + chr(0b101100 + 0o10), 0o10) |
paylogic/pip-accel | pip_accel/caches/s3.py | S3CacheBackend.get | def get(self, filename):
"""
Download a distribution archive from the configured Amazon S3 bucket.
:param filename: The filename of the distribution archive (a string).
:returns: The pathname of a distribution archive on the local file
system or :data:`None`.
:raises: :exc:`.CacheBackendError` when any underlying method fails.
"""
timer = Timer()
self.check_prerequisites()
with PatchedBotoConfig():
# Check if the distribution archive is available.
raw_key = self.get_cache_key(filename)
logger.info("Checking if distribution archive is available in S3 bucket: %s", raw_key)
key = self.s3_bucket.get_key(raw_key)
if key is None:
logger.debug("Distribution archive is not available in S3 bucket.")
else:
# Download the distribution archive to the local binary index.
# TODO Shouldn't this use LocalCacheBackend.put() instead of
# implementing the same steps manually?!
logger.info("Downloading distribution archive from S3 bucket ..")
file_in_cache = os.path.join(self.config.binary_cache, filename)
makedirs(os.path.dirname(file_in_cache))
with AtomicReplace(file_in_cache) as temporary_file:
key.get_contents_to_filename(temporary_file)
logger.debug("Finished downloading distribution archive from S3 bucket in %s.", timer)
return file_in_cache | python | def get(self, filename):
"""
Download a distribution archive from the configured Amazon S3 bucket.
:param filename: The filename of the distribution archive (a string).
:returns: The pathname of a distribution archive on the local file
system or :data:`None`.
:raises: :exc:`.CacheBackendError` when any underlying method fails.
"""
timer = Timer()
self.check_prerequisites()
with PatchedBotoConfig():
# Check if the distribution archive is available.
raw_key = self.get_cache_key(filename)
logger.info("Checking if distribution archive is available in S3 bucket: %s", raw_key)
key = self.s3_bucket.get_key(raw_key)
if key is None:
logger.debug("Distribution archive is not available in S3 bucket.")
else:
# Download the distribution archive to the local binary index.
# TODO Shouldn't this use LocalCacheBackend.put() instead of
# implementing the same steps manually?!
logger.info("Downloading distribution archive from S3 bucket ..")
file_in_cache = os.path.join(self.config.binary_cache, filename)
makedirs(os.path.dirname(file_in_cache))
with AtomicReplace(file_in_cache) as temporary_file:
key.get_contents_to_filename(temporary_file)
logger.debug("Finished downloading distribution archive from S3 bucket in %s.", timer)
return file_in_cache | [
"def",
"get",
"(",
"self",
",",
"filename",
")",
":",
"timer",
"=",
"Timer",
"(",
")",
"self",
".",
"check_prerequisites",
"(",
")",
"with",
"PatchedBotoConfig",
"(",
")",
":",
"# Check if the distribution archive is available.",
"raw_key",
"=",
"self",
".",
"get_cache_key",
"(",
"filename",
")",
"logger",
".",
"info",
"(",
"\"Checking if distribution archive is available in S3 bucket: %s\"",
",",
"raw_key",
")",
"key",
"=",
"self",
".",
"s3_bucket",
".",
"get_key",
"(",
"raw_key",
")",
"if",
"key",
"is",
"None",
":",
"logger",
".",
"debug",
"(",
"\"Distribution archive is not available in S3 bucket.\"",
")",
"else",
":",
"# Download the distribution archive to the local binary index.",
"# TODO Shouldn't this use LocalCacheBackend.put() instead of",
"# implementing the same steps manually?!",
"logger",
".",
"info",
"(",
"\"Downloading distribution archive from S3 bucket ..\"",
")",
"file_in_cache",
"=",
"os",
".",
"path",
".",
"join",
"(",
"self",
".",
"config",
".",
"binary_cache",
",",
"filename",
")",
"makedirs",
"(",
"os",
".",
"path",
".",
"dirname",
"(",
"file_in_cache",
")",
")",
"with",
"AtomicReplace",
"(",
"file_in_cache",
")",
"as",
"temporary_file",
":",
"key",
".",
"get_contents_to_filename",
"(",
"temporary_file",
")",
"logger",
".",
"debug",
"(",
"\"Finished downloading distribution archive from S3 bucket in %s.\"",
",",
"timer",
")",
"return",
"file_in_cache"
] | Download a distribution archive from the configured Amazon S3 bucket.
:param filename: The filename of the distribution archive (a string).
:returns: The pathname of a distribution archive on the local file
system or :data:`None`.
:raises: :exc:`.CacheBackendError` when any underlying method fails. | [
"Download",
"a",
"distribution",
"archive",
"from",
"the",
"configured",
"Amazon",
"S3",
"bucket",
"."
] | ccad1b784927a322d996db593403b1d2d2e22666 | https://github.com/paylogic/pip-accel/blob/ccad1b784927a322d996db593403b1d2d2e22666/pip_accel/caches/s3.py#L143-L171 | train | Download a distribution archive from the configured Amazon S3 bucket. | 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(chr(0b100011 + 0o15) + '\x6f' + chr(356 - 306) + chr(0b110010) + '\x33', 0o10), nzTpIcepk0o8(chr(789 - 741) + '\157' + chr(0b110001) + chr(0b101001 + 0o14) + chr(0b100 + 0o60), 0o10), nzTpIcepk0o8(chr(0b1110 + 0o42) + chr(0b101101 + 0o102) + chr(0b110011) + chr(2035 - 1987) + chr(2934 - 2879), 55321 - 55313), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x32' + chr(0b101101 + 0o10) + '\064', 0o10), nzTpIcepk0o8('\060' + '\157' + chr(0b101010 + 0o7) + '\067' + '\x35', ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(0b101010 + 0o7) + chr(0b110000) + chr(0b1100 + 0o52), 0o10), nzTpIcepk0o8('\060' + chr(6763 - 6652) + chr(517 - 468) + chr(0b110001) + '\x37', 0b1000), nzTpIcepk0o8(chr(0b1010 + 0o46) + '\x6f' + '\x33' + chr(1211 - 1159) + chr(0b100110 + 0o16), ord("\x08")), nzTpIcepk0o8(chr(1690 - 1642) + chr(111) + '\x33' + chr(0b110010) + chr(0b11111 + 0o27), 0b1000), nzTpIcepk0o8(chr(673 - 625) + chr(0b110110 + 0o71) + '\x32' + chr(0b110001) + chr(50), 0o10), nzTpIcepk0o8(chr(0b0 + 0o60) + chr(0b11 + 0o154) + chr(158 - 107) + chr(143 - 88) + chr(49), ord("\x08")), nzTpIcepk0o8(chr(905 - 857) + '\157' + chr(51) + chr(0b110111) + chr(2132 - 2078), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(0b11010 + 0o31) + chr(52) + chr(930 - 878), 8), nzTpIcepk0o8(chr(48) + '\x6f' + chr(49) + chr(50) + '\064', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b101011 + 0o14) + chr(51), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b110 + 0o151) + '\063' + chr(1187 - 1136) + chr(0b1101 + 0o51), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1011100 + 0o23) + chr(0b10100 + 0o35) + chr(54) + '\x36', 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + '\063' + '\060', 60615 - 60607), nzTpIcepk0o8('\060' + chr(9760 - 9649) + chr(51) + chr(0b110110) + '\067', ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + '\x31' + chr(0b101011 + 0o6) + '\x33', 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(0b10000 + 0o43) + chr(0b110111) + '\061', 8), nzTpIcepk0o8(chr(677 - 629) + chr(111) + chr(0b110001) + '\x32' + '\x30', 0o10), nzTpIcepk0o8('\x30' + chr(0b101110 + 0o101) + '\x33' + '\x34', ord("\x08")), nzTpIcepk0o8('\x30' + chr(3729 - 3618) + chr(49) + chr(0b110111) + '\x33', 0o10), nzTpIcepk0o8(chr(0b100000 + 0o20) + chr(3289 - 3178) + '\062' + chr(0b110011) + chr(722 - 674), 0b1000), nzTpIcepk0o8(chr(0b10010 + 0o36) + chr(111) + chr(646 - 597) + chr(0b110110) + chr(0b11110 + 0o26), 0b1000), nzTpIcepk0o8(chr(0b101011 + 0o5) + chr(8248 - 8137) + chr(730 - 677) + '\067', 34970 - 34962), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(50) + chr(818 - 768) + chr(204 - 151), 49043 - 49035), nzTpIcepk0o8('\060' + chr(111) + '\062' + '\067' + chr(0b110101), 32827 - 32819), nzTpIcepk0o8(chr(48) + chr(0b111001 + 0o66) + chr(49) + '\x37' + chr(48), 17378 - 17370), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(2039 - 1988) + chr(0b10011 + 0o36) + chr(1792 - 1744), 11217 - 11209), nzTpIcepk0o8('\060' + chr(0b100100 + 0o113) + '\x34' + chr(49), 0o10), nzTpIcepk0o8(chr(0b101100 + 0o4) + chr(111) + chr(50) + chr(1858 - 1804) + chr(1080 - 1026), 7638 - 7630), nzTpIcepk0o8('\060' + chr(8444 - 8333) + chr(49) + '\x31' + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(0b11010 + 0o26) + chr(4890 - 4779) + chr(0b110001) + chr(0b110011) + '\061', 15073 - 15065), nzTpIcepk0o8(chr(48) + chr(11910 - 11799) + chr(0b110010) + chr(51) + chr(0b110101), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b11001 + 0o30) + '\x33' + '\067', ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(0b11000 + 0o32) + chr(0b110000) + '\064', ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + '\067' + chr(51), 8), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x36' + chr(49), 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + '\x6f' + '\x35' + chr(48), 24382 - 24374)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xbd'), chr(3569 - 3469) + chr(0b1100101) + chr(1532 - 1433) + chr(111) + '\144' + '\145')('\165' + chr(116) + chr(0b1100110) + chr(0b10110 + 0o27) + chr(0b111000)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def GUKetu4xaGsJ(hXMPsSrOQzbh, FxZHtXEolYsL):
QpQhPtpeU4jL = MX_3dktPnFrU()
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xf0\x04\xa2\xcf\x16\x19?\x96\xb3\xf8\x9c\x8f\x91=H\xb7\x02}\x84'), chr(9255 - 9155) + '\145' + chr(0b1100011) + chr(710 - 599) + chr(100) + '\145')(chr(2089 - 1972) + chr(0b111100 + 0o70) + chr(102) + '\x2d' + chr(856 - 800)))()
with tBrw2CURARQC():
ac11zdRoCEym = hXMPsSrOQzbh.get_cache_key(FxZHtXEolYsL)
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'\xfa\x14\x89\xd4D\n8\xbb\xe7\xed\x8b\xb1'), chr(100) + chr(0b1100101) + chr(0b1100011) + '\x6f' + chr(100) + chr(101))('\x75' + chr(0b1110100) + '\x66' + chr(45) + '\070'))(roI3spqORKae(ES5oEprVxulp(b'\xd0\x04\xa2\xcf\x16/!\x83\xf6\xe3\x9f\xde\x80=H\xaa\x04q\x95>\x8d9s\x15\xb8\x15]\xf6\xd5\x11\xbeD\x96%*\xbd>\xf2ZX\xff\r\xa5\xc0\x18f&\x8a\xf6\xd9\xca\xde\x86!X\xb5\x13l\xcdk\xdc#'), chr(0b1100100) + chr(101) + '\143' + '\x6f' + chr(3328 - 3228) + chr(544 - 443))('\165' + chr(0b1110100) + chr(102) + chr(283 - 238) + chr(0b101101 + 0o13)), ac11zdRoCEym)
QYodcsDtoGq7 = hXMPsSrOQzbh.s3_bucket.UYvQ64lH2W9r(ac11zdRoCEym)
if QYodcsDtoGq7 is None:
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'\xf4-\xfe\xf6D" \xd2\x83\xe7\xbc\xa4'), chr(5531 - 5431) + '\x65' + '\143' + chr(0b1101111) + '\x64' + chr(101))('\x75' + '\164' + '\x66' + chr(530 - 485) + '\x38'))(roI3spqORKae(ES5oEprVxulp(b'\xd7\x05\xb4\xd8\x0f/-\x91\xa2\xe3\x96\x90\xc45I\xbd\x1eq\x81.\xd99o[\xf6\x1b[\xb5\xdc\x0e\xa9H\xda-;\xf1:\xa4R_\xb3?\xf4\x8c\x1f3,\x8f\xb3\xfe\xd7'), '\144' + '\145' + chr(4121 - 4022) + chr(111) + chr(100) + '\145')(chr(0b1110101) + chr(116) + '\x66' + chr(0b101101) + chr(0b11000 + 0o40)))
else:
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'\xfa\x14\x89\xd4D\n8\xbb\xe7\xed\x8b\xb1'), chr(6441 - 6341) + chr(0b1100101) + chr(0b101100 + 0o67) + chr(111) + '\144' + chr(7258 - 7157))('\x75' + chr(0b111111 + 0o65) + chr(0b1100110) + '\x2d' + chr(0b100111 + 0o21)))(roI3spqORKae(ES5oEprVxulp(b'\xd7\x03\xb0\xc2\x11).\x80\xbf\xe4\x9e\xde\x80=H\xaa\x04q\x95>\x8d9s\x15\xb8\x15]\xf6\xd5\x11\xbeD\x96*+\xf22\xa4h\x02\xb3\x0e\xb2\xcf\x16#;\xc4\xf8\xa4'), chr(0b1100100) + '\145' + chr(1078 - 979) + '\157' + chr(0b1000011 + 0o41) + '\145')('\x75' + chr(7575 - 7459) + chr(102) + chr(1115 - 1070) + chr(56)))
VBmWpDLrzj7n = aHUqKstZLeS6.path.Y4yM9BcfTCNq(hXMPsSrOQzbh.config.binary_cache, FxZHtXEolYsL)
hpVp_0fEg8N1(roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'\xe2\x19\xf2\xca\x0e\x17#\xa3\x85\xc6\x9f\x9d'), chr(1159 - 1059) + chr(0b111000 + 0o55) + '\143' + '\157' + '\x64' + chr(0b1100101))('\165' + '\164' + chr(0b10100 + 0o122) + '\055' + '\070'))(VBmWpDLrzj7n))
with TQzkL7DizE8g(VBmWpDLrzj7n) as dbC_M0gPCOLc:
roI3spqORKae(QYodcsDtoGq7, roI3spqORKae(ES5oEprVxulp(b'\xf4\t\xb3\xf3\x1e)!\x90\xb3\xe4\x8d\x8d\xbb T\x81\x10q\x9b.\x971q\x1e'), '\x64' + chr(10172 - 10071) + chr(4067 - 3968) + chr(111) + '\x64' + chr(0b1100101))(chr(117) + '\164' + '\x66' + chr(0b1011 + 0o42) + '\x38'))(dbC_M0gPCOLc)
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'\xf4-\xfe\xf6D" \xd2\x83\xe7\xbc\xa4'), chr(100) + chr(101) + chr(0b1100011) + chr(111) + chr(100) + chr(0b101001 + 0o74))(chr(7903 - 7786) + chr(116) + chr(0b1100110) + '\x2d' + chr(0b111000)))(roI3spqORKae(ES5oEprVxulp(b'\xd5\x05\xa9\xc5\x0e.*\x80\xf6\xee\x96\x89\x8a8T\xbf\x12q\x99,\xd94u\x08\xec\x06F\xf7\xc8\x0c\xa1N\xd8l8\xef<\xecRG\xf6L\xa1\xde\x12+o\xb7\xe5\xaa\x9b\x8b\x87?^\xaaVq\x99k\xdc#2'), chr(0b100 + 0o140) + chr(101) + '\143' + chr(8975 - 8864) + chr(0b1100100) + '\145')('\x75' + '\x74' + '\146' + chr(0b101011 + 0o2) + '\x38'), QpQhPtpeU4jL)
return VBmWpDLrzj7n |
paylogic/pip-accel | pip_accel/caches/s3.py | S3CacheBackend.put | def put(self, filename, handle):
"""
Upload a distribution archive to the configured Amazon S3 bucket.
If the :attr:`~.Config.s3_cache_readonly` configuration option is
enabled this method does nothing.
:param filename: The filename of the distribution archive (a string).
:param handle: A file-like object that provides access to the
distribution archive.
:raises: :exc:`.CacheBackendError` when any underlying method fails.
"""
if self.config.s3_cache_readonly:
logger.info('Skipping upload to S3 bucket (using S3 in read only mode).')
else:
timer = Timer()
self.check_prerequisites()
with PatchedBotoConfig():
from boto.s3.key import Key
raw_key = self.get_cache_key(filename)
logger.info("Uploading distribution archive to S3 bucket: %s", raw_key)
key = Key(self.s3_bucket)
key.key = raw_key
try:
key.set_contents_from_file(handle)
except Exception as e:
logger.info("Encountered error writing to S3 bucket, "
"falling back to read only mode (exception: %s)", e)
self.config.s3_cache_readonly = True
else:
logger.info("Finished uploading distribution archive to S3 bucket in %s.", timer) | python | def put(self, filename, handle):
"""
Upload a distribution archive to the configured Amazon S3 bucket.
If the :attr:`~.Config.s3_cache_readonly` configuration option is
enabled this method does nothing.
:param filename: The filename of the distribution archive (a string).
:param handle: A file-like object that provides access to the
distribution archive.
:raises: :exc:`.CacheBackendError` when any underlying method fails.
"""
if self.config.s3_cache_readonly:
logger.info('Skipping upload to S3 bucket (using S3 in read only mode).')
else:
timer = Timer()
self.check_prerequisites()
with PatchedBotoConfig():
from boto.s3.key import Key
raw_key = self.get_cache_key(filename)
logger.info("Uploading distribution archive to S3 bucket: %s", raw_key)
key = Key(self.s3_bucket)
key.key = raw_key
try:
key.set_contents_from_file(handle)
except Exception as e:
logger.info("Encountered error writing to S3 bucket, "
"falling back to read only mode (exception: %s)", e)
self.config.s3_cache_readonly = True
else:
logger.info("Finished uploading distribution archive to S3 bucket in %s.", timer) | [
"def",
"put",
"(",
"self",
",",
"filename",
",",
"handle",
")",
":",
"if",
"self",
".",
"config",
".",
"s3_cache_readonly",
":",
"logger",
".",
"info",
"(",
"'Skipping upload to S3 bucket (using S3 in read only mode).'",
")",
"else",
":",
"timer",
"=",
"Timer",
"(",
")",
"self",
".",
"check_prerequisites",
"(",
")",
"with",
"PatchedBotoConfig",
"(",
")",
":",
"from",
"boto",
".",
"s3",
".",
"key",
"import",
"Key",
"raw_key",
"=",
"self",
".",
"get_cache_key",
"(",
"filename",
")",
"logger",
".",
"info",
"(",
"\"Uploading distribution archive to S3 bucket: %s\"",
",",
"raw_key",
")",
"key",
"=",
"Key",
"(",
"self",
".",
"s3_bucket",
")",
"key",
".",
"key",
"=",
"raw_key",
"try",
":",
"key",
".",
"set_contents_from_file",
"(",
"handle",
")",
"except",
"Exception",
"as",
"e",
":",
"logger",
".",
"info",
"(",
"\"Encountered error writing to S3 bucket, \"",
"\"falling back to read only mode (exception: %s)\"",
",",
"e",
")",
"self",
".",
"config",
".",
"s3_cache_readonly",
"=",
"True",
"else",
":",
"logger",
".",
"info",
"(",
"\"Finished uploading distribution archive to S3 bucket in %s.\"",
",",
"timer",
")"
] | Upload a distribution archive to the configured Amazon S3 bucket.
If the :attr:`~.Config.s3_cache_readonly` configuration option is
enabled this method does nothing.
:param filename: The filename of the distribution archive (a string).
:param handle: A file-like object that provides access to the
distribution archive.
:raises: :exc:`.CacheBackendError` when any underlying method fails. | [
"Upload",
"a",
"distribution",
"archive",
"to",
"the",
"configured",
"Amazon",
"S3",
"bucket",
"."
] | ccad1b784927a322d996db593403b1d2d2e22666 | https://github.com/paylogic/pip-accel/blob/ccad1b784927a322d996db593403b1d2d2e22666/pip_accel/caches/s3.py#L173-L203 | train | Uploads a distribution archive to the configured Amazon S3 bucket. | 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,zsedr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0vTMWcJQBa,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(52) + '\061', 0b1000), nzTpIcepk0o8('\060' + '\157' + '\x33' + '\063' + '\x31', 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(49) + chr(0b110100) + chr(0b110111), 0o10), nzTpIcepk0o8(chr(0b100010 + 0o16) + '\157' + chr(0b1111 + 0o44) + chr(50) + chr(2265 - 2216), 0o10), nzTpIcepk0o8('\x30' + chr(0b10001 + 0o136) + chr(50) + chr(0b10000 + 0o40) + chr(0b11101 + 0o24), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + '\x33' + chr(0b110000) + chr(0b110011 + 0o4), ord("\x08")), nzTpIcepk0o8(chr(1635 - 1587) + '\157' + chr(0b100110 + 0o15) + chr(0b110100) + chr(0b10001 + 0o40), 0b1000), nzTpIcepk0o8(chr(0b11 + 0o55) + chr(0b1101111) + '\061' + chr(0b110000) + chr(0b110010 + 0o1), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(50) + chr(323 - 273) + '\067', 0o10), nzTpIcepk0o8(chr(1943 - 1895) + '\157' + chr(0b110101 + 0o0), ord("\x08")), nzTpIcepk0o8(chr(857 - 809) + chr(0b1010001 + 0o36) + chr(314 - 263) + '\065' + chr(51), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x33' + chr(0b100011 + 0o23) + chr(0b11 + 0o57), 13612 - 13604), nzTpIcepk0o8('\x30' + chr(111) + '\063' + chr(54) + chr(251 - 196), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110100) + chr(0b101010 + 0o7), 8), nzTpIcepk0o8('\060' + '\x6f' + '\062' + chr(1741 - 1690) + chr(1459 - 1409), 56916 - 56908), nzTpIcepk0o8(chr(0b10101 + 0o33) + chr(0b1101111) + chr(49) + chr(54) + chr(1458 - 1409), 0o10), nzTpIcepk0o8(chr(0b101100 + 0o4) + chr(111) + chr(49) + chr(0b110011) + '\062', 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(2576 - 2522) + chr(48), 53126 - 53118), nzTpIcepk0o8(chr(0b111 + 0o51) + '\x6f' + chr(1649 - 1598) + chr(2683 - 2630) + '\062', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(537 - 487) + '\065' + chr(2781 - 2727), 0b1000), nzTpIcepk0o8(chr(245 - 197) + chr(9370 - 9259) + chr(0b110110) + '\x33', 0o10), nzTpIcepk0o8(chr(0b100011 + 0o15) + '\157' + chr(0b110011 + 0o0) + chr(0b100010 + 0o20) + chr(0b110010), 0b1000), nzTpIcepk0o8(chr(1001 - 953) + chr(111) + chr(2111 - 2060) + '\x34' + '\065', 55535 - 55527), nzTpIcepk0o8(chr(0b100 + 0o54) + chr(7608 - 7497) + chr(461 - 409) + chr(1839 - 1787), ord("\x08")), nzTpIcepk0o8(chr(507 - 459) + chr(0b10101 + 0o132) + chr(49) + chr(1198 - 1149) + chr(78 - 26), 0o10), nzTpIcepk0o8(chr(0b11101 + 0o23) + chr(111) + chr(0b110111) + chr(55), 54675 - 54667), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b10001 + 0o42) + chr(0b10110 + 0o41) + chr(1045 - 995), ord("\x08")), nzTpIcepk0o8(chr(795 - 747) + '\x6f' + '\x32' + chr(0b110101) + chr(0b110110), 8), nzTpIcepk0o8('\x30' + chr(2349 - 2238) + chr(55) + chr(0b110000), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(50) + '\x30' + chr(0b100111 + 0o11), 8480 - 8472), nzTpIcepk0o8('\x30' + '\157' + chr(1207 - 1155) + chr(0b100 + 0o54), ord("\x08")), nzTpIcepk0o8(chr(1696 - 1648) + '\157' + '\x33' + chr(0b10 + 0o60) + chr(0b1011 + 0o54), 0b1000), nzTpIcepk0o8(chr(1791 - 1743) + '\x6f' + chr(0b0 + 0o61) + chr(51) + '\062', 8), nzTpIcepk0o8(chr(400 - 352) + chr(111) + chr(50) + '\x33' + chr(1992 - 1940), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1001100 + 0o43) + chr(0b11000 + 0o33) + chr(0b11010 + 0o31) + '\x37', ord("\x08")), nzTpIcepk0o8(chr(0b100101 + 0o13) + '\157' + chr(49) + '\x37' + chr(0b10000 + 0o44), 25254 - 25246), nzTpIcepk0o8(chr(427 - 379) + '\157' + '\061' + chr(0b110101) + chr(55), 0o10), nzTpIcepk0o8('\x30' + chr(0b101001 + 0o106) + chr(1696 - 1647) + chr(790 - 738) + chr(48), ord("\x08")), nzTpIcepk0o8(chr(0b101101 + 0o3) + chr(111) + chr(0b110010) + '\x35' + chr(0b110111), 0b1000), nzTpIcepk0o8(chr(0b1111 + 0o41) + chr(8925 - 8814) + chr(411 - 361) + chr(446 - 398) + chr(0b11111 + 0o27), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b10101 + 0o33) + '\x6f' + chr(53) + chr(48), ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x0f'), chr(0b1 + 0o143) + chr(101) + chr(0b1001001 + 0o32) + chr(111) + chr(0b1100100) + chr(0b1100101))(chr(404 - 287) + chr(4820 - 4704) + chr(102) + '\x2d' + '\070') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def ZD2Lr269ntjx(hXMPsSrOQzbh, FxZHtXEolYsL, ecbIicWlHedY):
if roI3spqORKae(hXMPsSrOQzbh.config, roI3spqORKae(ES5oEprVxulp(b'R\xea8\xb2\xe0\xa4\x89&\xc8w\x8e\x93\x93N\xf4\x1d#'), chr(0b1100100) + chr(101) + chr(99) + chr(111) + chr(9741 - 9641) + chr(0b1100101))('\x75' + '\x74' + '\x66' + chr(45) + chr(56))):
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'H\xa1)\xa9\xb8\x8b\x96\x1c\xa6b\x99\xbd'), chr(4442 - 4342) + chr(0b1100101) + chr(99) + chr(111) + '\x64' + chr(0b1100101))(chr(117) + chr(10764 - 10648) + chr(0b1100110) + chr(0b101101) + chr(2082 - 2026)))(roI3spqORKae(ES5oEprVxulp(b'r\xb2\x0e\xa1\xf1\xae\x8f$\xb7p\x9b\x9e\x98@\xfeQ._\xca\xfd\x00\xf2\x87Q/T\x9f\xda\x18\xa8U\xa43\xf2\xb8\\<S\x8f\xefO\xf9\x15\xb4\xe0\xa3\xc1,\xf9i\x92\xd2\x9aN\xfe\x14s\x1e'), chr(0b1100100) + chr(0b1100101) + chr(99) + chr(0b1101111) + chr(0b11 + 0o141) + '\145')('\165' + chr(0b100110 + 0o116) + chr(0b1100110) + chr(0b101101) + chr(0b111000)))
else:
QpQhPtpeU4jL = MX_3dktPnFrU()
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'B\xb1\x02\xb2\xea\x98\x911\xf2w\x8e\x83\x82H\xe9\x18.U\x99'), '\144' + '\145' + chr(0b1100010 + 0o1) + chr(111) + '\x64' + chr(0b11101 + 0o110))('\x75' + chr(116) + chr(0b1100110) + chr(422 - 377) + '\070'))()
with tBrw2CURARQC():
(NA5nKXNfn5U5,) = (roI3spqORKae(roI3spqORKae(roI3spqORKae(rFFUeiYWzOhx(roI3spqORKae(ES5oEprVxulp(b'C\xb6\x13\xbe\xaf\xb4\xd2m\xfc`\x92'), '\144' + chr(2483 - 2382) + '\x63' + chr(0b11010 + 0o125) + chr(100) + chr(680 - 579))('\x75' + chr(6862 - 6746) + chr(0b1000000 + 0o46) + chr(45) + chr(0b111000)), roI3spqORKae(ES5oEprVxulp(b'j\xbc\x1e'), chr(6064 - 5964) + '\x65' + '\x63' + '\157' + chr(0b1100100) + '\145')(chr(117) + chr(116) + '\146' + chr(0b101101) + chr(0b11000 + 0o40))), roI3spqORKae(ES5oEprVxulp(b'R\xea'), '\x64' + '\x65' + chr(0b110001 + 0o62) + chr(0b11111 + 0o120) + chr(0b11100 + 0o110) + chr(6733 - 6632))(chr(8685 - 8568) + chr(0b1110100) + chr(102) + chr(45) + chr(0b10010 + 0o46))), roI3spqORKae(ES5oEprVxulp(b'J\xbc\x1e'), chr(0b1100100) + '\x65' + chr(99) + '\157' + chr(100) + '\145')('\165' + '\x74' + chr(241 - 139) + '\055' + chr(0b111000))), roI3spqORKae(ES5oEprVxulp(b'j\xbc\x1e'), '\x64' + chr(4957 - 4856) + '\x63' + chr(0b1101111) + '\144' + chr(7297 - 7196))(chr(0b1010001 + 0o44) + chr(116) + chr(102) + chr(45) + chr(56))),)
ac11zdRoCEym = hXMPsSrOQzbh.get_cache_key(FxZHtXEolYsL)
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'H\xa1)\xa9\xb8\x8b\x96\x1c\xa6b\x99\xbd'), chr(3056 - 2956) + chr(101) + chr(4676 - 4577) + '\x6f' + '\144' + '\x65')(chr(0b1010010 + 0o43) + chr(0b1010000 + 0o44) + '\146' + '\x2d' + '\070'))(roI3spqORKae(ES5oEprVxulp(b't\xa9\x0b\xbe\xe0\xa3\x88-\xf0%\x8f\x9b\x84U\xe8\x188E\x9e\xc7\\\xbc\xc5E>\\\x92\xc7N\xe5\x00\xa35\xbc\x8cOO\x02\xda\xe5J\xbc\x13\xeb\xa1\xe2\x92'), chr(0b1101 + 0o127) + '\145' + chr(99) + chr(111) + '\144' + chr(4524 - 4423))('\x75' + '\x74' + '\146' + '\055' + chr(56)), ac11zdRoCEym)
QYodcsDtoGq7 = NA5nKXNfn5U5(hXMPsSrOQzbh.s3_bucket)
QYodcsDtoGq7.QYodcsDtoGq7 = ac11zdRoCEym
try:
roI3spqORKae(QYodcsDtoGq7, roI3spqORKae(ES5oEprVxulp(b'R\xbc\x13\x8e\xe2\xa8\x8f7\xf2k\x9f\x81\xa8G\xe8\x1e7o\x8c\xc7_\xb7'), chr(100) + '\x65' + chr(4882 - 4783) + chr(1859 - 1748) + chr(7691 - 7591) + chr(0b100011 + 0o102))('\165' + chr(116) + chr(0b1100110) + chr(0b11000 + 0o25) + chr(1693 - 1637)))(ecbIicWlHedY)
except zfo2Sgkz3IVJ as wgf0sgcu_xPL:
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'H\xa1)\xa9\xb8\x8b\x96\x1c\xa6b\x99\xbd'), chr(0b1100100) + chr(101) + chr(0b1111 + 0o124) + '\157' + '\144' + chr(0b1100101))('\165' + chr(0b1110100) + '\146' + '\x2d' + '\070'))(roI3spqORKae(ES5oEprVxulp(b'd\xb7\x04\xbe\xf4\xa9\x95&\xe5`\x8f\xd2\x92S\xe8\x1e(\x10\x9d\xdcZ\xa6\x8cJ+\x1f\x8e\xc1\x18\xd3\x13\xf78\xe9\xbc\x17\n\x14\x83\xa6G\xb8\x0b\xbd\xe8\xa9\x86c\xf5d\x88\x99\xd7U\xf5Q(U\x8b\xca\x13\xbd\x8bH5\x1f\x97\xc1\\\xe5\x00\xff?\xe4\xbc\x19\x1f\x14\xc6\xe9O\xe3G\xf4\xf2\xee'), chr(0b1100100) + chr(5094 - 4993) + chr(0b11111 + 0o104) + chr(111) + chr(2918 - 2818) + chr(101))('\x75' + chr(6777 - 6661) + chr(102) + chr(45) + chr(0b111000)), wgf0sgcu_xPL)
hXMPsSrOQzbh.config.l6Jwghb7Sf1u = nzTpIcepk0o8(chr(0b10011 + 0o35) + chr(0b11010 + 0o125) + chr(49), ord("\x08"))
else:
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'H\xa1)\xa9\xb8\x8b\x96\x1c\xa6b\x99\xbd'), '\144' + chr(0b100101 + 0o100) + chr(0b1000110 + 0o35) + chr(10444 - 10333) + chr(5193 - 5093) + '\145')(chr(0b1110101) + '\x74' + chr(102) + '\x2d' + chr(2669 - 2613)))(roI3spqORKae(ES5oEprVxulp(b"g\xb0\t\xb8\xf2\xaf\x84'\xb7p\x9b\x9e\x98@\xfe\x184W\xca\xcaZ\xa1\x91V%]\x8f\xdaQ\xefN\xf7;\xee\xbc\x14\x06\x16\xca\xa6U\xb6G\x82\xb2\xe7\x836\xf4n\x8e\x86\xd7H\xf4Q\x7fC\xc4"), chr(8247 - 8147) + chr(101) + chr(0b1100011) + chr(111) + chr(100) + chr(0b1 + 0o144))(chr(117) + chr(116) + chr(6506 - 6404) + chr(1345 - 1300) + chr(56)), QpQhPtpeU4jL) |
paylogic/pip-accel | pip_accel/caches/s3.py | S3CacheBackend.s3_bucket | def s3_bucket(self):
"""
Connect to the user defined Amazon S3 bucket.
Called on demand by :func:`get()` and :func:`put()`. Caches its
return value so that only a single connection is created.
:returns: A :class:`boto.s3.bucket.Bucket` object.
:raises: :exc:`.CacheBackendDisabledError` when the user hasn't
defined :attr:`.Config.s3_cache_bucket`.
:raises: :exc:`.CacheBackendError` when the connection to the Amazon
S3 bucket fails.
"""
if not hasattr(self, 'cached_bucket'):
self.check_prerequisites()
with PatchedBotoConfig():
from boto.exception import BotoClientError, BotoServerError, S3ResponseError
# The following try/except block translates unexpected exceptions
# raised by Boto into a CacheBackendError exception.
try:
# The following try/except block handles the expected exception
# raised by Boto when an Amazon S3 bucket does not exist.
try:
logger.debug("Connecting to Amazon S3 bucket: %s", self.config.s3_cache_bucket)
self.cached_bucket = self.s3_connection.get_bucket(self.config.s3_cache_bucket)
except S3ResponseError as e:
if e.status == 404 and self.config.s3_cache_create_bucket:
logger.info("Amazon S3 bucket doesn't exist yet, creating it now: %s",
self.config.s3_cache_bucket)
self.s3_connection.create_bucket(self.config.s3_cache_bucket)
self.cached_bucket = self.s3_connection.get_bucket(self.config.s3_cache_bucket)
else:
# Don't swallow exceptions we can't handle.
raise
except (BotoClientError, BotoServerError):
raise CacheBackendError("""
Failed to connect to the configured Amazon S3 bucket
{bucket}! Are you sure the bucket exists and is accessible
using the provided credentials? The Amazon S3 cache backend
will be disabled for now.
""", bucket=repr(self.config.s3_cache_bucket))
return self.cached_bucket | python | def s3_bucket(self):
"""
Connect to the user defined Amazon S3 bucket.
Called on demand by :func:`get()` and :func:`put()`. Caches its
return value so that only a single connection is created.
:returns: A :class:`boto.s3.bucket.Bucket` object.
:raises: :exc:`.CacheBackendDisabledError` when the user hasn't
defined :attr:`.Config.s3_cache_bucket`.
:raises: :exc:`.CacheBackendError` when the connection to the Amazon
S3 bucket fails.
"""
if not hasattr(self, 'cached_bucket'):
self.check_prerequisites()
with PatchedBotoConfig():
from boto.exception import BotoClientError, BotoServerError, S3ResponseError
# The following try/except block translates unexpected exceptions
# raised by Boto into a CacheBackendError exception.
try:
# The following try/except block handles the expected exception
# raised by Boto when an Amazon S3 bucket does not exist.
try:
logger.debug("Connecting to Amazon S3 bucket: %s", self.config.s3_cache_bucket)
self.cached_bucket = self.s3_connection.get_bucket(self.config.s3_cache_bucket)
except S3ResponseError as e:
if e.status == 404 and self.config.s3_cache_create_bucket:
logger.info("Amazon S3 bucket doesn't exist yet, creating it now: %s",
self.config.s3_cache_bucket)
self.s3_connection.create_bucket(self.config.s3_cache_bucket)
self.cached_bucket = self.s3_connection.get_bucket(self.config.s3_cache_bucket)
else:
# Don't swallow exceptions we can't handle.
raise
except (BotoClientError, BotoServerError):
raise CacheBackendError("""
Failed to connect to the configured Amazon S3 bucket
{bucket}! Are you sure the bucket exists and is accessible
using the provided credentials? The Amazon S3 cache backend
will be disabled for now.
""", bucket=repr(self.config.s3_cache_bucket))
return self.cached_bucket | [
"def",
"s3_bucket",
"(",
"self",
")",
":",
"if",
"not",
"hasattr",
"(",
"self",
",",
"'cached_bucket'",
")",
":",
"self",
".",
"check_prerequisites",
"(",
")",
"with",
"PatchedBotoConfig",
"(",
")",
":",
"from",
"boto",
".",
"exception",
"import",
"BotoClientError",
",",
"BotoServerError",
",",
"S3ResponseError",
"# The following try/except block translates unexpected exceptions",
"# raised by Boto into a CacheBackendError exception.",
"try",
":",
"# The following try/except block handles the expected exception",
"# raised by Boto when an Amazon S3 bucket does not exist.",
"try",
":",
"logger",
".",
"debug",
"(",
"\"Connecting to Amazon S3 bucket: %s\"",
",",
"self",
".",
"config",
".",
"s3_cache_bucket",
")",
"self",
".",
"cached_bucket",
"=",
"self",
".",
"s3_connection",
".",
"get_bucket",
"(",
"self",
".",
"config",
".",
"s3_cache_bucket",
")",
"except",
"S3ResponseError",
"as",
"e",
":",
"if",
"e",
".",
"status",
"==",
"404",
"and",
"self",
".",
"config",
".",
"s3_cache_create_bucket",
":",
"logger",
".",
"info",
"(",
"\"Amazon S3 bucket doesn't exist yet, creating it now: %s\"",
",",
"self",
".",
"config",
".",
"s3_cache_bucket",
")",
"self",
".",
"s3_connection",
".",
"create_bucket",
"(",
"self",
".",
"config",
".",
"s3_cache_bucket",
")",
"self",
".",
"cached_bucket",
"=",
"self",
".",
"s3_connection",
".",
"get_bucket",
"(",
"self",
".",
"config",
".",
"s3_cache_bucket",
")",
"else",
":",
"# Don't swallow exceptions we can't handle.",
"raise",
"except",
"(",
"BotoClientError",
",",
"BotoServerError",
")",
":",
"raise",
"CacheBackendError",
"(",
"\"\"\"\n Failed to connect to the configured Amazon S3 bucket\n {bucket}! Are you sure the bucket exists and is accessible\n using the provided credentials? The Amazon S3 cache backend\n will be disabled for now.\n \"\"\"",
",",
"bucket",
"=",
"repr",
"(",
"self",
".",
"config",
".",
"s3_cache_bucket",
")",
")",
"return",
"self",
".",
"cached_bucket"
] | Connect to the user defined Amazon S3 bucket.
Called on demand by :func:`get()` and :func:`put()`. Caches its
return value so that only a single connection is created.
:returns: A :class:`boto.s3.bucket.Bucket` object.
:raises: :exc:`.CacheBackendDisabledError` when the user hasn't
defined :attr:`.Config.s3_cache_bucket`.
:raises: :exc:`.CacheBackendError` when the connection to the Amazon
S3 bucket fails. | [
"Connect",
"to",
"the",
"user",
"defined",
"Amazon",
"S3",
"bucket",
"."
] | ccad1b784927a322d996db593403b1d2d2e22666 | https://github.com/paylogic/pip-accel/blob/ccad1b784927a322d996db593403b1d2d2e22666/pip_accel/caches/s3.py#L206-L247 | train | Connect to the user defined Amazon S3 bucket. | 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,IA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XQk26HKr,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(71 - 21) + chr(0b110111) + '\x31', ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(0b1011 + 0o47) + '\065' + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(0b101001 + 0o7) + '\x6f' + '\x31' + '\061' + chr(346 - 298), 50701 - 50693), nzTpIcepk0o8('\x30' + '\x6f' + '\x31' + chr(52) + chr(0b101000 + 0o15), 0b1000), nzTpIcepk0o8('\060' + chr(111) + '\x33' + chr(0b100000 + 0o27) + '\x37', 0b1000), nzTpIcepk0o8(chr(48) + chr(4960 - 4849) + chr(0b1100 + 0o46) + chr(0b101100 + 0o4) + '\x37', 36086 - 36078), nzTpIcepk0o8(chr(0b1011 + 0o45) + chr(0b1101111) + chr(0b110001) + '\x30' + '\x31', 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110011) + chr(1061 - 1006) + chr(52), 16041 - 16033), nzTpIcepk0o8(chr(0b110000) + chr(5953 - 5842) + chr(50) + '\x34' + '\063', 18143 - 18135), nzTpIcepk0o8(chr(0b110000) + '\157' + '\062' + chr(0b110001) + chr(1171 - 1117), ord("\x08")), nzTpIcepk0o8(chr(95 - 47) + chr(0b1101111) + chr(49) + '\x37' + chr(0b110000), 0b1000), nzTpIcepk0o8(chr(0b11101 + 0o23) + '\157' + chr(0b110001) + chr(55), 4844 - 4836), nzTpIcepk0o8(chr(0b0 + 0o60) + '\x6f' + '\061' + '\x30' + '\x37', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1000000 + 0o57) + '\062' + chr(0b1001 + 0o54) + chr(0b100110 + 0o12), 58868 - 58860), nzTpIcepk0o8('\x30' + chr(2744 - 2633) + '\x33' + chr(50), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110001) + chr(48) + '\x33', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1100 + 0o143) + chr(49) + chr(52) + chr(0b110110), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(1325 - 1276) + chr(0b101101 + 0o3) + chr(0b101101 + 0o6), 8), nzTpIcepk0o8(chr(0b101111 + 0o1) + chr(1756 - 1645) + chr(0b101001 + 0o10) + chr(0b110111) + chr(53), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b11011 + 0o27) + '\061', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + '\061' + chr(0b1000 + 0o52) + '\x33', 0o10), nzTpIcepk0o8(chr(48) + '\157' + '\063' + chr(2544 - 2490) + chr(0b1001 + 0o54), 0b1000), nzTpIcepk0o8(chr(0b101111 + 0o1) + chr(846 - 735) + chr(198 - 147) + '\x31' + chr(51), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(50) + chr(0b1101 + 0o46), 0o10), nzTpIcepk0o8('\060' + chr(0b111110 + 0o61) + chr(0b110011) + chr(0b110010) + '\067', 25465 - 25457), nzTpIcepk0o8(chr(1023 - 975) + '\157' + chr(827 - 777) + '\063' + chr(2098 - 2045), 15613 - 15605), nzTpIcepk0o8(chr(0b110000) + chr(10769 - 10658) + chr(0b110010) + '\x31' + chr(0b11100 + 0o27), ord("\x08")), nzTpIcepk0o8(chr(0b100001 + 0o17) + chr(111) + chr(0b11100 + 0o26) + '\x37' + '\x37', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b101001 + 0o10) + '\x37' + chr(51), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(1290 - 1240) + '\x33' + chr(0b10110 + 0o40), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + '\062' + '\x36' + chr(2268 - 2216), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b101000 + 0o107) + chr(49) + '\x33' + chr(0b100100 + 0o16), 201 - 193), nzTpIcepk0o8('\060' + chr(0b1101011 + 0o4) + '\061' + chr(1175 - 1124), 0o10), nzTpIcepk0o8(chr(0b101001 + 0o7) + chr(111) + chr(1593 - 1544) + '\x33' + chr(0b101111 + 0o2), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(51) + '\x32' + '\x37', 8), nzTpIcepk0o8('\060' + '\x6f' + chr(0b10100 + 0o36) + chr(0b101100 + 0o5) + chr(2517 - 2466), 8), nzTpIcepk0o8(chr(0b10111 + 0o31) + chr(10447 - 10336) + chr(0b110010) + chr(49) + chr(0b110100 + 0o1), 0o10), nzTpIcepk0o8(chr(618 - 570) + chr(111) + chr(0b110010) + chr(0b100000 + 0o27) + '\x31', 8), nzTpIcepk0o8(chr(48) + chr(111) + '\066' + '\063', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1011001 + 0o26) + chr(49) + chr(184 - 130) + chr(1802 - 1750), 32974 - 32966)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(0b110110 + 0o71) + chr(0b100111 + 0o16) + chr(212 - 164), 38222 - 38214)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x97'), chr(0b1000101 + 0o37) + chr(0b1100101) + '\x63' + chr(7165 - 7054) + chr(0b1100100) + '\145')(chr(1051 - 934) + chr(116) + chr(102) + '\x2d' + '\x38') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def erar6UdqUJGg(hXMPsSrOQzbh):
if not dRKdVnHPFq7C(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xda\xcd+\r\x9a\xe3\x1e\x9e\xd6\xed\x13j3'), chr(0b1100100) + chr(4097 - 3996) + chr(1200 - 1101) + chr(7602 - 7491) + chr(100) + chr(0b1100101))('\165' + '\164' + chr(0b10100 + 0o122) + '\x2d' + chr(56))):
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xda\xc4-\x06\x94\xd81\x8e\xc6\xfc\x1d~2\xc1i*\x12&\x0e'), chr(100) + chr(0b1100101) + chr(99) + chr(0b1101111) + chr(0b1100100) + chr(0b1100101))('\165' + chr(116) + '\x66' + '\055' + chr(1607 - 1551)))()
with tBrw2CURARQC():
(R5isoz7CsquZ, eEs7_L8gUDCT, U7xts9CBzfQK) = (roI3spqORKae(roI3spqORKae(rFFUeiYWzOhx(roI3spqORKae(ES5oEprVxulp(b'\xdb\xc3<\n\xd1\xe29\x9f\xc6\xfe\x0cf(\xc6'), chr(100) + '\145' + chr(99) + chr(11955 - 11844) + '\144' + chr(5333 - 5232))(chr(0b1010001 + 0o44) + chr(0b11111 + 0o125) + chr(0b1100110) + chr(45) + '\070'), roI3spqORKae(ES5oEprVxulp(b'\xfb\xc3<\n\xbc\xeb(\x99\xcd\xfa=}5\xc7h'), chr(5451 - 5351) + chr(3960 - 3859) + chr(4701 - 4602) + chr(866 - 755) + chr(5362 - 5262) + '\x65')(chr(117) + '\164' + chr(0b1010101 + 0o21) + chr(0b101011 + 0o2) + chr(174 - 118))), roI3spqORKae(ES5oEprVxulp(b'\xdc\xd4+\x00\x8f\xf3(\x93\xcd'), '\144' + chr(0b1100101) + chr(0b1100011) + chr(0b1101111) + chr(0b111 + 0o135) + '\x65')(chr(6619 - 6502) + chr(116) + '\x66' + chr(0b11 + 0o52) + chr(1802 - 1746))), roI3spqORKae(ES5oEprVxulp(b'\xfb\xc3<\n\xbc\xeb(\x99\xcd\xfa=}5\xc7h'), '\x64' + chr(101) + '\x63' + chr(0b110010 + 0o75) + chr(0b1000011 + 0o41) + chr(0b110110 + 0o57))(chr(0b11010 + 0o133) + chr(0b1000010 + 0o62) + chr(0b1100110) + '\x2d' + chr(0b111000))), roI3spqORKae(roI3spqORKae(rFFUeiYWzOhx(roI3spqORKae(ES5oEprVxulp(b'\xdb\xc3<\n\xd1\xe29\x9f\xc6\xfe\x0cf(\xc6'), chr(1924 - 1824) + '\x65' + chr(0b1011010 + 0o11) + chr(0b1101111) + chr(4193 - 4093) + '\x65')(chr(0b110011 + 0o102) + chr(0b1110100) + '\146' + chr(0b100 + 0o51) + chr(56)), roI3spqORKae(ES5oEprVxulp(b'\xfb\xc3<\n\xac\xe23\x8a\xc6\xfc=}5\xc7h'), chr(0b1100100) + chr(0b1010011 + 0o22) + chr(99) + '\157' + '\x64' + '\x65')('\165' + '\164' + chr(0b1100110) + chr(0b101011 + 0o2) + chr(1038 - 982))), roI3spqORKae(ES5oEprVxulp(b'\xdc\xd4+\x00\x8f\xf3(\x93\xcd'), chr(100) + '\x65' + '\143' + '\157' + '\x64' + chr(0b10101 + 0o120))('\165' + '\x74' + chr(8148 - 8046) + '\055' + chr(0b111000))), roI3spqORKae(ES5oEprVxulp(b'\xfb\xc3<\n\xac\xe23\x8a\xc6\xfc=}5\xc7h'), chr(0b1100100) + chr(0b1100101) + chr(0b100110 + 0o75) + '\157' + '\144' + chr(903 - 802))(chr(0b1110101) + chr(116) + chr(0b11001 + 0o115) + chr(45) + chr(0b111000))), roI3spqORKae(roI3spqORKae(rFFUeiYWzOhx(roI3spqORKae(ES5oEprVxulp(b'\xdb\xc3<\n\xd1\xe29\x9f\xc6\xfe\x0cf(\xc6'), chr(100) + '\145' + chr(99) + chr(11286 - 11175) + chr(0b1100100) + '\x65')(chr(117) + chr(11356 - 11240) + chr(102) + chr(0b101101) + '\x38'), roI3spqORKae(ES5oEprVxulp(b'\xea\x9f\x1a\x00\x8c\xf7.\x92\xd0\xeb=}5\xc7h'), chr(0b1100100) + chr(101) + '\143' + '\x6f' + chr(0b11011 + 0o111) + chr(101))(chr(8848 - 8731) + chr(116) + '\x66' + chr(1676 - 1631) + chr(0b111000))), roI3spqORKae(ES5oEprVxulp(b'\xdc\xd4+\x00\x8f\xf3(\x93\xcd'), chr(3051 - 2951) + '\145' + chr(99) + chr(111) + chr(9534 - 9434) + '\x65')(chr(117) + '\x74' + '\146' + chr(0b11101 + 0o20) + chr(0b10011 + 0o45))), roI3spqORKae(ES5oEprVxulp(b'\xea\x9f\x1a\x00\x8c\xf7.\x92\xd0\xeb=}5\xc7h'), '\144' + chr(0b1100101) + chr(99) + chr(10502 - 10391) + chr(100) + chr(7829 - 7728))('\165' + '\x74' + '\x66' + chr(0b1110 + 0o37) + chr(0b111000))))
try:
try:
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'\xde\xedq?\xc6\xe3.\xca\xf6\xe3=U'), '\x64' + chr(1554 - 1453) + '\143' + chr(1635 - 1524) + '\x64' + chr(101))(chr(0b1110101) + '\164' + chr(473 - 371) + chr(0b11011 + 0o22) + chr(0b11000 + 0o40)))(roI3spqORKae(ES5oEprVxulp(b'\xfa\xc3&\x0b\x9a\xe45\x95\xcd\xe9X{(\x88[.\x079\x12\x7fs\xa6\xf83\xb5\xe8\xe8\xd4\x1e\xea\x8ez.*'), '\144' + chr(0b100101 + 0o100) + '\x63' + chr(0b100100 + 0o113) + chr(4929 - 4829) + chr(0b111001 + 0o54))(chr(0b1110101) + chr(116) + chr(102) + chr(0b101101) + '\x38'), roI3spqORKae(hXMPsSrOQzbh.config, roI3spqORKae(ES5oEprVxulp(b'\xca\x9f\x17\x06\x9e\xe4)\x99\xfc\xec\rl,\xcdn'), chr(8035 - 7935) + chr(101) + chr(99) + chr(0b1010010 + 0o35) + chr(100) + chr(9982 - 9881))(chr(117) + chr(0b1110100) + chr(0b1100110) + '\x2d' + chr(0b100100 + 0o24))))
hXMPsSrOQzbh.rtgqlqbLmGB6 = hXMPsSrOQzbh.s3_connection.get_bucket(hXMPsSrOQzbh.config.s3_cache_bucket)
except U7xts9CBzfQK as wgf0sgcu_xPL:
if roI3spqORKae(wgf0sgcu_xPL, roI3spqORKae(ES5oEprVxulp(b'\xed\xc5\n\x0c\xb2\xf41\xb1\xf3\xd6=C'), chr(0b1100100) + chr(7656 - 7555) + '\143' + chr(0b1010110 + 0o31) + chr(0b1100100) + chr(101))('\x75' + '\x74' + chr(102) + chr(0b101101 + 0o0) + chr(0b111000))) == nzTpIcepk0o8(chr(0b110000) + '\157' + chr(1505 - 1451) + '\x32' + '\x34', 7773 - 7765) and roI3spqORKae(hXMPsSrOQzbh.config, roI3spqORKae(ES5oEprVxulp(b'\xca\x9f\x17\x06\x9e\xe4)\x99\xfc\xed\nj&\xdc\x7f\x1c\x046\x1ez6\x81'), '\144' + chr(1678 - 1577) + chr(0b1001000 + 0o33) + chr(3570 - 3459) + '\x64' + chr(2780 - 2679))('\x75' + chr(0b1110100) + chr(0b1100110) + chr(557 - 512) + chr(677 - 621))):
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'\xd0\xd4\x06\x1d\xc6\xcb6\xa3\x92\xe9\n@'), '\x64' + chr(5709 - 5608) + '\x63' + '\157' + '\x64' + chr(0b110000 + 0o65))('\165' + '\x74' + chr(0b1100110) + '\x2d' + '\070'))(roI3spqORKae(ES5oEprVxulp(b"\xf8\xc1)\x1f\x90\xe9a\xaf\x90\xae\x1az$\xc3\x7f7F'\x12t \x9b\xecg\xf7\xf8\xf3\xd6\x08\xea\x94#n-\xfb\xab\xee\xcbV\x15\xcd\xc5&\x02\xdf\xee5\xdc\xcd\xe1\x0f5g\x8di"), '\x64' + chr(1187 - 1086) + chr(1648 - 1549) + '\x6f' + chr(6234 - 6134) + chr(101))('\x75' + chr(116) + '\146' + chr(0b10001 + 0o34) + '\x38'), roI3spqORKae(hXMPsSrOQzbh.config, roI3spqORKae(ES5oEprVxulp(b'\xca\x9f\x17\x06\x9e\xe4)\x99\xfc\xec\rl,\xcdn'), chr(0b1100100) + chr(101) + chr(99) + chr(3248 - 3137) + chr(100) + '\x65')('\x75' + chr(0b1110100) + '\x66' + chr(45) + '\x38')))
roI3spqORKae(hXMPsSrOQzbh.s3_connection, roI3spqORKae(ES5oEprVxulp(b'\xda\xde-\x04\x8b\xe2\x1e\x9e\xd6\xed\x13j3'), '\144' + '\145' + '\143' + chr(9433 - 9322) + chr(5212 - 5112) + chr(0b1100101))(chr(0b111011 + 0o72) + chr(12529 - 12413) + '\146' + chr(0b101101) + '\070'))(roI3spqORKae(hXMPsSrOQzbh.config, roI3spqORKae(ES5oEprVxulp(b'\xca\x9f\x17\x06\x9e\xe4)\x99\xfc\xec\rl,\xcdn'), '\144' + chr(101) + chr(99) + chr(0b10011 + 0o134) + '\x64' + chr(2549 - 2448))(chr(0b1110101) + chr(0b1100111 + 0o15) + chr(299 - 197) + chr(0b101101) + '\070')))
hXMPsSrOQzbh.rtgqlqbLmGB6 = hXMPsSrOQzbh.s3_connection.get_bucket(hXMPsSrOQzbh.config.s3_cache_bucket)
else:
raise
except (R5isoz7CsquZ, eEs7_L8gUDCT):
raise IkupoAUW523t(roI3spqORKae(ES5oEprVxulp(b"\xb3\x8chE\xdf\xa7a\xdc\x83\xaeX/g\x88:cFc]1s\xd5\xeb3\xf7\xdb\xea\xd6\x17\xfb\xd0z\x7f6\xf7\xe8\xe2\xd7]\x11\xda\xd8h\x11\x90\xa75\x94\xc6\xae\x1b`)\xces$\x131\x18us\xb4\xa6r\xad\xf2\xe5\x9f(\xad\x948~:\xbc\xee\xf9\xb3\x13T\x99\x8chE\xdf\xa7a\xdc\x83\xaeX/g\x88:cFc]1s\xd5\xb0q\xa2\xfe\xe0\xda\x0f\xe3\x95zJ+\xb2\xab\xf4\xd6FT\xca\xd9:\x00\xdf\xf3)\x99\x83\xec\rl,\xcdnc\x03;\x14b'\x86\xebr\xb9\xf9\xab\xd6\x08\xbe\xd59h<\xa4\xf8\xe4\xdb_\x11\xb3\x8chE\xdf\xa7a\xdc\x83\xaeX/g\x88:cFc]1s\xd5\xeb3\xf7\xe8\xf8\xd6\x15\xf9\x94.c<\xf7\xfb\xff\xd6E\x1d\xdd\xc9,E\x9c\xf5$\x98\xc6\xe0\x0cf&\xc4i|F\x17\x15ts\xb4\xa6r\xad\xf2\xe5\x9f(\xad\x949j:\xbf\xee\xad\xdbR\x17\xd2\xc9&\x01\xf5\xa7a\xdc\x83\xaeX/g\x88:cFc]1s\xd5\xeb3\xf7\xbd\xab\x9f[\xe9\xdd6gy\xb5\xee\xad\xddZ\x07\xd8\xce$\x00\x9b\xa7'\x93\xd1\xae\x16`0\x86\x10cFc]1s\xd5\xeb3\xf7\xbd\xab\x9f[\xbe\x94z+y\xf7"), chr(687 - 587) + chr(7423 - 7322) + chr(0b100000 + 0o103) + '\157' + '\144' + '\x65')(chr(0b1010111 + 0o36) + '\x74' + chr(102) + '\x2d' + '\070'), bucket=VWshwTzZfwvC(roI3spqORKae(hXMPsSrOQzbh.config, roI3spqORKae(ES5oEprVxulp(b'\xca\x9f\x17\x06\x9e\xe4)\x99\xfc\xec\rl,\xcdn'), chr(0b1011001 + 0o13) + chr(4627 - 4526) + '\x63' + chr(0b100 + 0o153) + chr(0b1100100) + chr(8271 - 8170))('\x75' + '\164' + chr(0b101100 + 0o72) + '\x2d' + '\070'))))
return roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xcb\xd8/\x14\x93\xf6#\xb0\xce\xc9:9'), chr(2301 - 2201) + chr(0b1100101) + '\x63' + '\x6f' + '\x64' + chr(0b1100101))('\x75' + chr(0b11011 + 0o131) + '\x66' + chr(274 - 229) + '\070')) |
paylogic/pip-accel | pip_accel/caches/s3.py | S3CacheBackend.s3_connection | def s3_connection(self):
"""
Connect to the Amazon S3 API.
If the connection attempt fails because Boto can't find credentials the
attempt is retried once with an anonymous connection.
Called on demand by :attr:`s3_bucket`.
:returns: A :class:`boto.s3.connection.S3Connection` object.
:raises: :exc:`.CacheBackendError` when the connection to the Amazon
S3 API fails.
"""
if not hasattr(self, 'cached_connection'):
self.check_prerequisites()
with PatchedBotoConfig():
import boto
from boto.exception import BotoClientError, BotoServerError, NoAuthHandlerFound
from boto.s3.connection import S3Connection, SubdomainCallingFormat, OrdinaryCallingFormat
try:
# Configure the number of retries and the socket timeout used
# by Boto. Based on the snippet given in the following email:
# https://groups.google.com/d/msg/boto-users/0osmP0cUl5Y/X4NdlMGWKiEJ
if not boto.config.has_section(BOTO_CONFIG_SECTION):
boto.config.add_section(BOTO_CONFIG_SECTION)
boto.config.set(BOTO_CONFIG_SECTION,
BOTO_CONFIG_NUM_RETRIES_OPTION,
str(self.config.s3_cache_retries))
boto.config.set(BOTO_CONFIG_SECTION,
BOTO_CONFIG_SOCKET_TIMEOUT_OPTION,
str(self.config.s3_cache_timeout))
logger.debug("Connecting to Amazon S3 API ..")
endpoint = urlparse(self.config.s3_cache_url)
host, _, port = endpoint.netloc.partition(':')
kw = dict(
host=host,
port=int(port) if port else None,
is_secure=(endpoint.scheme == 'https'),
calling_format=(SubdomainCallingFormat() if host == S3Connection.DefaultHost
else OrdinaryCallingFormat()),
)
try:
self.cached_connection = S3Connection(**kw)
except NoAuthHandlerFound:
logger.debug("Amazon S3 API credentials missing, retrying with anonymous connection ..")
self.cached_connection = S3Connection(anon=True, **kw)
except (BotoClientError, BotoServerError):
raise CacheBackendError("""
Failed to connect to the Amazon S3 API! Most likely your
credentials are not correctly configured. The Amazon S3
cache backend will be disabled for now.
""")
return self.cached_connection | python | def s3_connection(self):
"""
Connect to the Amazon S3 API.
If the connection attempt fails because Boto can't find credentials the
attempt is retried once with an anonymous connection.
Called on demand by :attr:`s3_bucket`.
:returns: A :class:`boto.s3.connection.S3Connection` object.
:raises: :exc:`.CacheBackendError` when the connection to the Amazon
S3 API fails.
"""
if not hasattr(self, 'cached_connection'):
self.check_prerequisites()
with PatchedBotoConfig():
import boto
from boto.exception import BotoClientError, BotoServerError, NoAuthHandlerFound
from boto.s3.connection import S3Connection, SubdomainCallingFormat, OrdinaryCallingFormat
try:
# Configure the number of retries and the socket timeout used
# by Boto. Based on the snippet given in the following email:
# https://groups.google.com/d/msg/boto-users/0osmP0cUl5Y/X4NdlMGWKiEJ
if not boto.config.has_section(BOTO_CONFIG_SECTION):
boto.config.add_section(BOTO_CONFIG_SECTION)
boto.config.set(BOTO_CONFIG_SECTION,
BOTO_CONFIG_NUM_RETRIES_OPTION,
str(self.config.s3_cache_retries))
boto.config.set(BOTO_CONFIG_SECTION,
BOTO_CONFIG_SOCKET_TIMEOUT_OPTION,
str(self.config.s3_cache_timeout))
logger.debug("Connecting to Amazon S3 API ..")
endpoint = urlparse(self.config.s3_cache_url)
host, _, port = endpoint.netloc.partition(':')
kw = dict(
host=host,
port=int(port) if port else None,
is_secure=(endpoint.scheme == 'https'),
calling_format=(SubdomainCallingFormat() if host == S3Connection.DefaultHost
else OrdinaryCallingFormat()),
)
try:
self.cached_connection = S3Connection(**kw)
except NoAuthHandlerFound:
logger.debug("Amazon S3 API credentials missing, retrying with anonymous connection ..")
self.cached_connection = S3Connection(anon=True, **kw)
except (BotoClientError, BotoServerError):
raise CacheBackendError("""
Failed to connect to the Amazon S3 API! Most likely your
credentials are not correctly configured. The Amazon S3
cache backend will be disabled for now.
""")
return self.cached_connection | [
"def",
"s3_connection",
"(",
"self",
")",
":",
"if",
"not",
"hasattr",
"(",
"self",
",",
"'cached_connection'",
")",
":",
"self",
".",
"check_prerequisites",
"(",
")",
"with",
"PatchedBotoConfig",
"(",
")",
":",
"import",
"boto",
"from",
"boto",
".",
"exception",
"import",
"BotoClientError",
",",
"BotoServerError",
",",
"NoAuthHandlerFound",
"from",
"boto",
".",
"s3",
".",
"connection",
"import",
"S3Connection",
",",
"SubdomainCallingFormat",
",",
"OrdinaryCallingFormat",
"try",
":",
"# Configure the number of retries and the socket timeout used",
"# by Boto. Based on the snippet given in the following email:",
"# https://groups.google.com/d/msg/boto-users/0osmP0cUl5Y/X4NdlMGWKiEJ",
"if",
"not",
"boto",
".",
"config",
".",
"has_section",
"(",
"BOTO_CONFIG_SECTION",
")",
":",
"boto",
".",
"config",
".",
"add_section",
"(",
"BOTO_CONFIG_SECTION",
")",
"boto",
".",
"config",
".",
"set",
"(",
"BOTO_CONFIG_SECTION",
",",
"BOTO_CONFIG_NUM_RETRIES_OPTION",
",",
"str",
"(",
"self",
".",
"config",
".",
"s3_cache_retries",
")",
")",
"boto",
".",
"config",
".",
"set",
"(",
"BOTO_CONFIG_SECTION",
",",
"BOTO_CONFIG_SOCKET_TIMEOUT_OPTION",
",",
"str",
"(",
"self",
".",
"config",
".",
"s3_cache_timeout",
")",
")",
"logger",
".",
"debug",
"(",
"\"Connecting to Amazon S3 API ..\"",
")",
"endpoint",
"=",
"urlparse",
"(",
"self",
".",
"config",
".",
"s3_cache_url",
")",
"host",
",",
"_",
",",
"port",
"=",
"endpoint",
".",
"netloc",
".",
"partition",
"(",
"':'",
")",
"kw",
"=",
"dict",
"(",
"host",
"=",
"host",
",",
"port",
"=",
"int",
"(",
"port",
")",
"if",
"port",
"else",
"None",
",",
"is_secure",
"=",
"(",
"endpoint",
".",
"scheme",
"==",
"'https'",
")",
",",
"calling_format",
"=",
"(",
"SubdomainCallingFormat",
"(",
")",
"if",
"host",
"==",
"S3Connection",
".",
"DefaultHost",
"else",
"OrdinaryCallingFormat",
"(",
")",
")",
",",
")",
"try",
":",
"self",
".",
"cached_connection",
"=",
"S3Connection",
"(",
"*",
"*",
"kw",
")",
"except",
"NoAuthHandlerFound",
":",
"logger",
".",
"debug",
"(",
"\"Amazon S3 API credentials missing, retrying with anonymous connection ..\"",
")",
"self",
".",
"cached_connection",
"=",
"S3Connection",
"(",
"anon",
"=",
"True",
",",
"*",
"*",
"kw",
")",
"except",
"(",
"BotoClientError",
",",
"BotoServerError",
")",
":",
"raise",
"CacheBackendError",
"(",
"\"\"\"\n Failed to connect to the Amazon S3 API! Most likely your\n credentials are not correctly configured. The Amazon S3\n cache backend will be disabled for now.\n \"\"\"",
")",
"return",
"self",
".",
"cached_connection"
] | Connect to the Amazon S3 API.
If the connection attempt fails because Boto can't find credentials the
attempt is retried once with an anonymous connection.
Called on demand by :attr:`s3_bucket`.
:returns: A :class:`boto.s3.connection.S3Connection` object.
:raises: :exc:`.CacheBackendError` when the connection to the Amazon
S3 API fails. | [
"Connect",
"to",
"the",
"Amazon",
"S3",
"API",
"."
] | ccad1b784927a322d996db593403b1d2d2e22666 | https://github.com/paylogic/pip-accel/blob/ccad1b784927a322d996db593403b1d2d2e22666/pip_accel/caches/s3.py#L250-L302 | train | Connect to the Amazon S3 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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B3XhPy2rYf,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(0b10000 + 0o40) + chr(2352 - 2241) + '\065' + '\x32', 0o10), nzTpIcepk0o8(chr(0b101 + 0o53) + chr(0b110110 + 0o71) + chr(50) + chr(0b110010) + chr(0b110110), 19642 - 19634), nzTpIcepk0o8(chr(0b10010 + 0o36) + '\157' + chr(0b110010) + '\065' + chr(50), 0b1000), nzTpIcepk0o8('\x30' + chr(713 - 602) + '\061' + chr(55) + chr(0b110010), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1001 + 0o146) + '\066' + '\060', 39350 - 39342), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b1101 + 0o44) + '\x34' + '\x37', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(490 - 441) + chr(49), 0b1000), nzTpIcepk0o8(chr(0b101101 + 0o3) + chr(3399 - 3288) + '\x34' + '\062', 17968 - 17960), nzTpIcepk0o8('\x30' + chr(3147 - 3036) + '\062' + '\x35' + chr(1694 - 1639), 4109 - 4101), nzTpIcepk0o8(chr(48) + chr(2740 - 2629) + '\062' + chr(0b110110) + chr(0b110000 + 0o7), 0b1000), nzTpIcepk0o8('\x30' + chr(0b101111 + 0o100) + chr(0b10101 + 0o35) + chr(0b110010) + chr(0b101101 + 0o5), 0b1000), nzTpIcepk0o8(chr(48) + chr(480 - 369) + chr(0b11110 + 0o24) + chr(0b110000) + '\064', 20372 - 20364), nzTpIcepk0o8(chr(0b100101 + 0o13) + chr(0b1010111 + 0o30) + chr(0b110001) + chr(0b110000) + chr(48), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(235 - 124) + '\061' + chr(0b110111) + '\060', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b101100 + 0o6) + '\x34' + '\060', 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(49) + chr(51) + chr(408 - 359), 7009 - 7001), nzTpIcepk0o8(chr(0b10010 + 0o36) + chr(0b1101111) + chr(49) + chr(0b110000) + chr(1954 - 1905), 0b1000), nzTpIcepk0o8(chr(1452 - 1404) + chr(0b1101111) + chr(50) + chr(48) + '\x30', 22277 - 22269), nzTpIcepk0o8(chr(48) + '\x6f' + chr(2238 - 2189) + chr(870 - 817) + chr(0b110101), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x31' + chr(0b110010 + 0o2) + chr(0b101001 + 0o10), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x33' + chr(0b101111 + 0o6) + '\067', 0o10), nzTpIcepk0o8(chr(0b100111 + 0o11) + chr(0b1011010 + 0o25) + chr(2156 - 2107) + '\x30', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + '\062' + chr(0b110 + 0o57) + chr(0b0 + 0o65), 40444 - 40436), nzTpIcepk0o8('\060' + '\157' + chr(280 - 229) + chr(0b110011) + chr(53), 61292 - 61284), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110011) + chr(266 - 212) + chr(55), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + '\061' + chr(0b110111), 62263 - 62255), nzTpIcepk0o8(chr(0b101110 + 0o2) + chr(0b110101 + 0o72) + chr(50) + '\066', 5542 - 5534), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(49) + chr(51) + '\066', ord("\x08")), nzTpIcepk0o8(chr(332 - 284) + chr(0b1101111) + '\061' + '\x34', 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(655 - 606) + '\060' + chr(53), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x31' + '\x35' + chr(52), 31146 - 31138), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b100010 + 0o17) + chr(1093 - 1038), 8), nzTpIcepk0o8('\x30' + '\157' + '\062' + chr(51) + chr(0b110110), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(4863 - 4752) + chr(1030 - 975) + chr(0b110001), 20408 - 20400), nzTpIcepk0o8(chr(0b10 + 0o56) + chr(11137 - 11026) + chr(0b10011 + 0o40) + '\060', ord("\x08")), nzTpIcepk0o8('\060' + chr(11809 - 11698) + chr(0b110001) + '\060' + chr(0b1011 + 0o45), 8), nzTpIcepk0o8('\x30' + '\x6f' + chr(2290 - 2241) + '\x34' + '\067', 8), nzTpIcepk0o8(chr(1922 - 1874) + chr(0b10011 + 0o134) + chr(51) + '\064' + chr(0b1011 + 0o45), 50832 - 50824), nzTpIcepk0o8(chr(0b100 + 0o54) + chr(111) + chr(2326 - 2277) + chr(1056 - 1006), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(1470 - 1419) + chr(100 - 50) + '\x35', ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + '\157' + '\065' + chr(0b100101 + 0o13), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x04'), '\x64' + chr(101) + '\143' + '\157' + '\x64' + chr(101))(chr(117) + chr(7568 - 7452) + chr(102) + '\055' + chr(56)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def fw4DCH0wY1bo(hXMPsSrOQzbh):
if not dRKdVnHPFq7C(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'I\xf7\xc9\x12U\x03VA\xc0\xd9\xfc\xe1#\x0c\xc96/'), '\144' + chr(0b1100101) + chr(0b1100011) + chr(0b1011010 + 0o25) + '\144' + chr(0b1100101))('\x75' + chr(0b1110100) + chr(6018 - 5916) + '\x2d' + chr(2841 - 2785))):
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'I\xfe\xcf\x19[8yP\xca\xc5\xf7\xf55\x11\xd305\xe5\x1e'), chr(8836 - 8736) + chr(0b1100101) + '\x63' + chr(111) + '\x64' + chr(0b1100101))('\165' + '\x74' + chr(0b1100110) + '\055' + chr(0b101100 + 0o14)))()
with tBrw2CURARQC():
(qCmOZHFimcQt,) = (zGgTE_CdZfvi(roI3spqORKae(ES5oEprVxulp(b'H\xf9\xde\x15'), chr(100) + chr(9655 - 9554) + chr(0b1000111 + 0o34) + chr(12023 - 11912) + chr(8430 - 8330) + '\145')('\x75' + chr(0b111010 + 0o72) + chr(0b1100110) + chr(0b101101) + chr(0b100101 + 0o23))),)
(R5isoz7CsquZ, eEs7_L8gUDCT, huZikGkk7Rr5) = (roI3spqORKae(roI3spqORKae(rFFUeiYWzOhx(roI3spqORKae(ES5oEprVxulp(b'H\xf9\xde\x15\x1e\x02qA\xca\xc7\xe6\xed/\x16'), chr(100) + '\x65' + '\143' + chr(11317 - 11206) + '\144' + chr(0b0 + 0o145))(chr(1356 - 1239) + chr(0b1110100) + chr(0b1100110) + chr(0b101101) + chr(56)), roI3spqORKae(ES5oEprVxulp(b'h\xf9\xde\x15s\x0b`G\xc1\xc3\xd7\xf62\x17\xd2'), '\144' + chr(0b101101 + 0o70) + '\x63' + chr(111) + chr(2279 - 2179) + chr(3118 - 3017))(chr(0b1010011 + 0o42) + chr(0b1110100) + chr(0b1100110) + '\055' + '\070')), roI3spqORKae(ES5oEprVxulp(b'O\xee\xc9\x1f@\x13`M\xc1'), '\x64' + '\145' + chr(99) + chr(0b1000001 + 0o56) + '\144' + '\145')(chr(0b1011000 + 0o35) + chr(0b101110 + 0o106) + '\146' + chr(0b101101) + chr(0b111000))), roI3spqORKae(ES5oEprVxulp(b'h\xf9\xde\x15s\x0b`G\xc1\xc3\xd7\xf62\x17\xd2'), chr(0b1100100) + chr(101) + chr(99) + chr(0b1001110 + 0o41) + chr(7325 - 7225) + '\145')(chr(0b1100010 + 0o23) + '\x74' + '\146' + '\x2d' + chr(0b111000))), roI3spqORKae(roI3spqORKae(rFFUeiYWzOhx(roI3spqORKae(ES5oEprVxulp(b'H\xf9\xde\x15\x1e\x02qA\xca\xc7\xe6\xed/\x16'), '\x64' + chr(0b1100101) + chr(99) + '\157' + '\144' + chr(128 - 27))(chr(0b100011 + 0o122) + '\x74' + chr(102) + chr(0b101101) + '\x38'), roI3spqORKae(ES5oEprVxulp(b'h\xf9\xde\x15c\x02{T\xca\xc5\xd7\xf62\x17\xd2'), '\144' + '\x65' + '\143' + chr(3216 - 3105) + chr(0b1100100) + chr(0b11000 + 0o115))(chr(0b111001 + 0o74) + chr(116) + chr(0b1010000 + 0o26) + '\x2d' + '\070')), roI3spqORKae(ES5oEprVxulp(b'O\xee\xc9\x1f@\x13`M\xc1'), chr(7405 - 7305) + chr(0b110001 + 0o64) + chr(0b1100011) + '\x6f' + chr(1935 - 1835) + '\x65')(chr(0b111100 + 0o71) + '\164' + '\x66' + chr(45) + chr(0b111000))), roI3spqORKae(ES5oEprVxulp(b'h\xf9\xde\x15c\x02{T\xca\xc5\xd7\xf62\x17\xd2'), chr(0b1000100 + 0o40) + chr(101) + chr(8664 - 8565) + chr(0b1101111) + chr(100) + chr(4386 - 4285))(chr(0b1110101) + chr(2070 - 1954) + '\x66' + '\x2d' + chr(56))), roI3spqORKae(roI3spqORKae(rFFUeiYWzOhx(roI3spqORKae(ES5oEprVxulp(b'H\xf9\xde\x15\x1e\x02qA\xca\xc7\xe6\xed/\x16'), chr(0b1100100) + chr(0b1100101) + chr(3580 - 3481) + '\157' + chr(0b10 + 0o142) + chr(0b1100101))(chr(117) + chr(0b111110 + 0o66) + chr(102) + chr(0b101101) + chr(0b110 + 0o62)), roI3spqORKae(ES5oEprVxulp(b'd\xf9\xeb\x0fD\x0fAC\xc1\xd3\xfe\xe12>\xcf,/\xe4'), chr(0b1000001 + 0o43) + chr(0b1100010 + 0o3) + chr(0b1011000 + 0o13) + chr(0b1101111) + chr(100) + '\x65')('\165' + '\164' + chr(102) + chr(0b101101) + '\070')), roI3spqORKae(ES5oEprVxulp(b'O\xee\xc9\x1f@\x13`M\xc1'), chr(0b1010111 + 0o15) + chr(9478 - 9377) + chr(99) + chr(0b1000010 + 0o55) + chr(100) + '\x65')('\x75' + '\x74' + chr(102) + '\x2d' + chr(684 - 628))), roI3spqORKae(ES5oEprVxulp(b'd\xf9\xeb\x0fD\x0fAC\xc1\xd3\xfe\xe12>\xcf,/\xe4'), chr(4866 - 4766) + chr(101) + '\x63' + chr(0b0 + 0o157) + chr(0b10000 + 0o124) + chr(0b1100101))(chr(0b1001011 + 0o52) + chr(116) + chr(0b1100110) + chr(0b101101) + chr(56))))
(q5QjBT3IC3QG, nuOXf_j5_LsL, KlHoxstoKLfW) = (roI3spqORKae(roI3spqORKae(roI3spqORKae(rFFUeiYWzOhx(roI3spqORKae(ES5oEprVxulp(b'H\xf9\xde\x15\x1e\x14:\x0c\xcc\xd8\xfc\xea%\x1b\xd40.\xee'), '\x64' + chr(0b1100101) + chr(0b1010110 + 0o15) + chr(0b1101111) + '\x64' + chr(101))('\x75' + chr(0b1100011 + 0o21) + '\146' + '\x2d' + chr(56)), roI3spqORKae(ES5oEprVxulp(b'y\xa5\xe9\x15^\tlA\xdb\xde\xfd\xea'), chr(0b10001 + 0o123) + '\x65' + '\x63' + chr(2062 - 1951) + '\x64' + '\145')('\x75' + '\164' + '\146' + chr(0b101101) + chr(0b111000))), roI3spqORKae(ES5oEprVxulp(b'Y\xa5'), chr(100) + chr(101) + chr(0b1100011) + chr(111) + chr(516 - 416) + '\145')('\165' + chr(12622 - 12506) + chr(0b1100110) + chr(1680 - 1635) + chr(0b110101 + 0o3))), roI3spqORKae(ES5oEprVxulp(b'I\xf9\xc4\x14U\x04}K\xc0\xd9'), chr(8950 - 8850) + chr(101) + chr(99) + chr(7052 - 6941) + '\x64' + '\145')(chr(117) + chr(0b1001100 + 0o50) + chr(0b100001 + 0o105) + chr(1915 - 1870) + chr(0b111000))), roI3spqORKae(ES5oEprVxulp(b'y\xa5\xe9\x15^\tlA\xdb\xde\xfd\xea'), '\144' + chr(101) + chr(0b11100 + 0o107) + chr(1928 - 1817) + chr(100) + chr(0b1100101))(chr(0b1000001 + 0o64) + '\164' + chr(0b1000001 + 0o45) + chr(45) + '\070')), roI3spqORKae(roI3spqORKae(roI3spqORKae(rFFUeiYWzOhx(roI3spqORKae(ES5oEprVxulp(b'H\xf9\xde\x15\x1e\x14:\x0c\xcc\xd8\xfc\xea%\x1b\xd40.\xee'), chr(0b111110 + 0o46) + chr(0b1100101) + chr(99) + chr(0b1100110 + 0o11) + '\144' + '\x65')(chr(10994 - 10877) + chr(806 - 690) + chr(102) + '\055' + '\x38'), roI3spqORKae(ES5oEprVxulp(b'y\xe3\xc8\x1e_\nhK\xc1\xf4\xf3\xe8,\x11\xce>\x07\xef\x1f\x0c\x8e|'), chr(0b1011101 + 0o7) + chr(101) + chr(0b1100011) + '\157' + chr(100) + chr(9853 - 9752))(chr(0b111100 + 0o71) + '\164' + '\146' + chr(0b101101) + chr(56))), roI3spqORKae(ES5oEprVxulp(b'Y\xa5'), chr(2018 - 1918) + chr(101) + '\x63' + chr(0b101111 + 0o100) + '\x64' + '\145')('\165' + chr(10927 - 10811) + chr(102) + chr(45) + chr(1114 - 1058))), roI3spqORKae(ES5oEprVxulp(b'I\xf9\xc4\x14U\x04}K\xc0\xd9'), '\144' + chr(101) + chr(3859 - 3760) + '\x6f' + chr(0b1100100) + '\x65')(chr(0b1100001 + 0o24) + chr(0b100001 + 0o123) + chr(0b110000 + 0o66) + '\055' + chr(0b111000))), roI3spqORKae(ES5oEprVxulp(b'y\xe3\xc8\x1e_\nhK\xc1\xf4\xf3\xe8,\x11\xce>\x07\xef\x1f\x0c\x8e|'), chr(9511 - 9411) + chr(6597 - 6496) + '\143' + chr(1066 - 955) + '\x64' + chr(560 - 459))('\165' + chr(0b111000 + 0o74) + chr(0b1100110) + chr(0b101101) + chr(56))), roI3spqORKae(roI3spqORKae(roI3spqORKae(rFFUeiYWzOhx(roI3spqORKae(ES5oEprVxulp(b'H\xf9\xde\x15\x1e\x14:\x0c\xcc\xd8\xfc\xea%\x1b\xd40.\xee'), chr(100) + chr(0b1011 + 0o132) + chr(0b1100011) + '\x6f' + chr(0b1000110 + 0o36) + chr(101))(chr(873 - 756) + chr(0b1110100) + chr(102) + '\055' + chr(0b11100 + 0o34)), roI3spqORKae(ES5oEprVxulp(b'e\xe4\xce\x13^\x06{[\xec\xd6\xfe\xe8)\x16\xc7\x1f.\xf2\x00\x00\x9b'), chr(100) + chr(0b1100101) + chr(99) + chr(0b1011111 + 0o20) + chr(0b1011001 + 0o13) + chr(101))(chr(0b1110101) + chr(7312 - 7196) + '\146' + chr(0b111 + 0o46) + chr(0b111000))), roI3spqORKae(ES5oEprVxulp(b'Y\xa5'), chr(578 - 478) + chr(3240 - 3139) + chr(0b1100011) + chr(111) + chr(0b1100100) + '\145')(chr(0b1110101) + '\164' + chr(102) + '\x2d' + '\070')), roI3spqORKae(ES5oEprVxulp(b'I\xf9\xc4\x14U\x04}K\xc0\xd9'), chr(0b1100100) + chr(0b1100101) + chr(0b10110 + 0o115) + '\x6f' + '\144' + chr(0b1100101))(chr(12948 - 12831) + chr(0b1110100) + '\x66' + chr(45) + '\x38')), roI3spqORKae(ES5oEprVxulp(b'e\xe4\xce\x13^\x06{[\xec\xd6\xfe\xe8)\x16\xc7\x1f.\xf2\x00\x00\x9b'), chr(0b1100100) + '\145' + chr(8211 - 8112) + '\x6f' + '\x64' + chr(101))('\x75' + chr(0b0 + 0o164) + '\x66' + chr(0b101101) + chr(56))))
try:
if not roI3spqORKae(qCmOZHFimcQt.config, roI3spqORKae(ES5oEprVxulp(b'B\xf7\xd9%C\x02jV\xc6\xd8\xfc'), '\x64' + '\145' + chr(0b1011011 + 0o10) + chr(3314 - 3203) + chr(100) + '\x65')(chr(8980 - 8863) + chr(0b1110100) + '\x66' + '\055' + chr(0b10 + 0o66)))(hDXU22k1djxR):
roI3spqORKae(qCmOZHFimcQt.config, roI3spqORKae(ES5oEprVxulp(b'K\xf2\xce%C\x02jV\xc6\xd8\xfc'), '\144' + chr(0b1100101) + chr(0b1100011) + '\157' + chr(100) + chr(0b1100101))(chr(117) + chr(0b1110100) + chr(0b1100110) + chr(0b101101) + chr(0b100010 + 0o26)))(hDXU22k1djxR)
roI3spqORKae(qCmOZHFimcQt.config, roI3spqORKae(ES5oEprVxulp(b'h\xe0\xc3M\x01\tG[\xd9\xdb\xe3\xcb'), '\144' + '\145' + chr(0b1011110 + 0o5) + '\157' + chr(0b10001 + 0o123) + chr(101))(chr(275 - 158) + chr(0b1100000 + 0o24) + chr(0b1100110) + '\x2d' + chr(0b111000)))(hDXU22k1djxR, TyRWgclwGs9J, N9zlRy29S1SS(roI3spqORKae(hXMPsSrOQzbh.config, roI3spqORKae(ES5oEprVxulp(b'Y\xa5\xf5\x19Q\x04aG\xf0\xc5\xf7\xf02\x11\xc5*'), chr(100) + chr(0b1010011 + 0o22) + chr(0b10001 + 0o122) + chr(111) + chr(0b1100100) + chr(101))(chr(10989 - 10872) + chr(0b1001001 + 0o53) + chr(102) + chr(1265 - 1220) + chr(56)))))
roI3spqORKae(qCmOZHFimcQt.config, roI3spqORKae(ES5oEprVxulp(b'h\xe0\xc3M\x01\tG[\xd9\xdb\xe3\xcb'), chr(0b1100100) + '\145' + '\x63' + chr(0b1101111) + chr(0b1100100) + '\145')(chr(117) + '\x74' + chr(0b1100110) + chr(45) + chr(56)))(hDXU22k1djxR, o_NgxebELFLq, N9zlRy29S1SS(roI3spqORKae(hXMPsSrOQzbh.config, roI3spqORKae(ES5oEprVxulp(b'Y\xa5\xf5\x19Q\x04aG\xf0\xc3\xfb\xe9%\x17\xd5-'), chr(100) + chr(101) + chr(99) + chr(111) + chr(0b100100 + 0o100) + chr(101))(chr(117) + chr(0b1110100) + chr(102) + chr(0b101101) + '\070'))))
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'M\xd7\x93 \t\x03f\x14\xfa\xda\xd7\xde'), chr(100) + '\145' + chr(4599 - 4500) + chr(1241 - 1130) + chr(100) + '\145')(chr(0b111011 + 0o72) + '\x74' + chr(0b1100110) + chr(45) + chr(2782 - 2726)))(roI3spqORKae(ES5oEprVxulp(b'i\xf9\xc4\x14U\x04}K\xc1\xd0\xb2\xf0/X\xe14 \xfa\x02\x0f\xcf[\x9e\xfd\xb6__~"k'), chr(0b1100100) + chr(0b1100101) + chr(0b1000 + 0o133) + chr(111) + '\x64' + chr(0b1100101))('\x75' + chr(0b1110100) + '\146' + chr(0b11101 + 0o20) + '\x38'))
IxaNW2_TJHzE = cBkYfihkXwhl(hXMPsSrOQzbh.config.s3_cache_url)
(UcZofMadI5hD, zIqcgNgQ9U6F, FKWBoSDY8Qs2) = IxaNW2_TJHzE.netloc.y6tm5LzgZc_E(roI3spqORKae(ES5oEprVxulp(b'\x10'), '\x64' + '\145' + chr(99) + chr(111) + chr(0b1100100) + chr(9961 - 9860))(chr(117) + '\x74' + '\x66' + chr(45) + chr(1683 - 1627)))
n_DqV9fOWrXc = znjnJWK64FDT(host=UcZofMadI5hD, port=nzTpIcepk0o8(FKWBoSDY8Qs2) if FKWBoSDY8Qs2 else None, is_secure=IxaNW2_TJHzE.otwfNxezSivc == roI3spqORKae(ES5oEprVxulp(b'B\xe2\xde\nC'), chr(0b10001 + 0o123) + chr(0b1100101) + '\143' + '\x6f' + '\144' + '\145')(chr(117) + '\164' + '\146' + chr(45) + chr(0b111000)), calling_format=nuOXf_j5_LsL() if UcZofMadI5hD == q5QjBT3IC3QG.DefaultHost else KlHoxstoKLfW())
try:
hXMPsSrOQzbh.Mw_56ct4mexn = q5QjBT3IC3QG(**n_DqV9fOWrXc)
except huZikGkk7Rr5:
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'M\xd7\x93 \t\x03f\x14\xfa\xda\xd7\xde'), '\x64' + '\145' + '\143' + '\157' + chr(100) + chr(4104 - 4003))(chr(6619 - 6502) + chr(2354 - 2238) + '\146' + chr(1307 - 1262) + chr(2706 - 2650)))(roI3spqORKae(ES5oEprVxulp(b'k\xfb\xcb\x00_\t)q\x9c\x97\xd3\xd4\tX\xc3+$\xe4\x08\x0f\x9ba\xcc\xb1\x84/{7\x7f6\x05a\xf9\x1582\x02\x94x\xacC\xf8\xcdZG\x0e}J\x8f\xd6\xfc\xeb.\x01\xcd64\xf3M\x02\x80f\xc3\xb8\x94{\x7f1beB!'), chr(0b1100100) + '\145' + chr(99) + '\157' + '\x64' + chr(9681 - 9580))(chr(0b1110101) + chr(0b1110100) + '\146' + chr(0b101101) + '\070'))
hXMPsSrOQzbh.Mw_56ct4mexn = q5QjBT3IC3QG(anon=nzTpIcepk0o8(chr(48) + '\157' + chr(1430 - 1381), 0b1000), **n_DqV9fOWrXc)
except (R5isoz7CsquZ, eEs7_L8gUDCT):
raise IkupoAUW523t(roI3spqORKae(ES5oEprVxulp(b' \xb6\x8aZ\x10G)\x02\x8f\x97\xb2\xa4`X\x80ya\xa0MA\xcf(\x8d\xfd\xd7Iw7` \x08/\xeaV8#\x08\x8ed\xb0I\xe2\x8a\x0e_G}J\xca\x97\xd3\xe9!\x02\xcf7a\xd3^A\xaeX\xe4\xfc\xd7By-xe\x00f\xf5\\t9G\x99e\xa0X\x9c\x8aZ\x10G)\x02\x8f\x97\xb2\xa4`X\x80ya\xa0MA\xcf(\x8d\xfd\xd7/u,i!\ta\xeaPy,\x14\xc0k\xa7O\xb6\xc4\x15DGjM\xdd\xc5\xf7\xe74\x14\xd9y"\xef\x03\x07\x86o\xd8\xaf\x92k8~X-\t/\xdfTy:\x08\x8e*\x86\x19\x9c\x8aZ\x10G)\x02\x8f\x97\xb2\xa4`X\x80ya\xa0MA\xcf(\x8d\xfd\xd7/u?o-\t/\xfcX{+\x02\x8en\xf5]\xff\xc6\x16\x10\x05l\x02\xcb\xde\xe1\xe5"\x14\xc5=a\xe6\x02\x13\xcff\xc2\xaa\xd9\x056~,eL/\xbe\x198`G\xc0*\xf5\n\xb6\x8aZ\x10G'), chr(0b1100100) + chr(0b11110 + 0o107) + chr(0b1000011 + 0o40) + chr(0b1101111) + chr(100) + chr(101))(chr(0b101010 + 0o113) + chr(0b1110100) + chr(0b1000111 + 0o37) + chr(0b1000 + 0o45) + chr(0b111000)))
return roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'g\xe1\xf5O\x06\x04}\x16\xc2\xd2\xea\xea'), chr(9124 - 9024) + chr(101) + '\143' + chr(5656 - 5545) + '\144' + '\x65')(chr(2507 - 2390) + chr(116) + chr(0b1100110) + chr(0b101101) + chr(2041 - 1985))) |
paylogic/pip-accel | pip_accel/caches/s3.py | PatchedBotoConfig.get | def get(self, section, name, default=None, **kw):
"""Replacement for :func:`boto.pyami.config.Config.get()`."""
try:
return self.unbound_method(self.instance, section, name, **kw)
except Exception:
return default | python | def get(self, section, name, default=None, **kw):
"""Replacement for :func:`boto.pyami.config.Config.get()`."""
try:
return self.unbound_method(self.instance, section, name, **kw)
except Exception:
return default | [
"def",
"get",
"(",
"self",
",",
"section",
",",
"name",
",",
"default",
"=",
"None",
",",
"*",
"*",
"kw",
")",
":",
"try",
":",
"return",
"self",
".",
"unbound_method",
"(",
"self",
".",
"instance",
",",
"section",
",",
"name",
",",
"*",
"*",
"kw",
")",
"except",
"Exception",
":",
"return",
"default"
] | Replacement for :func:`boto.pyami.config.Config.get()`. | [
"Replacement",
"for",
":",
"func",
":",
"boto",
".",
"pyami",
".",
"config",
".",
"Config",
".",
"get",
"()",
"."
] | ccad1b784927a322d996db593403b1d2d2e22666 | https://github.com/paylogic/p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FQ8o,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(1833 - 1785) + chr(6849 - 6738) + chr(51) + '\x37' + chr(52), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1000100 + 0o53) + chr(0b110010) + '\065', 0o10), nzTpIcepk0o8(chr(1801 - 1753) + chr(0b1001100 + 0o43) + '\061' + '\062' + '\067', 0b1000), nzTpIcepk0o8('\x30' + chr(0b11 + 0o154) + '\x34' + chr(1758 - 1705), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b10101 + 0o132) + '\061' + chr(53) + '\060', 10009 - 10001), nzTpIcepk0o8('\060' + '\157' + '\x32' + chr(997 - 944) + chr(55), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(2236 - 2187) + '\064' + chr(0b101 + 0o62), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(49) + '\x33' + '\x35', 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + '\061' + '\x34' + chr(0b110010), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x32' + chr(48) + chr(0b110110), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110111) + chr(50), 0o10), nzTpIcepk0o8(chr(48) + chr(12241 - 12130) + '\x32' + chr(0b101011 + 0o14), 0b1000), nzTpIcepk0o8(chr(0b10001 + 0o37) + chr(0b110110 + 0o71) + chr(52) + '\x30', 44235 - 44227), nzTpIcepk0o8('\x30' + '\157' + chr(0b110011) + '\x35', 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110010 + 0o2) + chr(0b10000 + 0o42), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b11110 + 0o121) + '\x33' + chr(0b10110 + 0o35) + chr(1776 - 1721), 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(2045 - 1996) + chr(0b10 + 0o56) + chr(852 - 804), 22572 - 22564), nzTpIcepk0o8(chr(0b110000) + chr(7125 - 7014) + chr(0b100101 + 0o16) + chr(0b100011 + 0o23) + '\x32', 0b1000), nzTpIcepk0o8('\060' + '\x6f' + '\x32' + chr(55) + chr(0b110001 + 0o1), 0b1000), nzTpIcepk0o8(chr(0b101110 + 0o2) + chr(0b110 + 0o151) + '\063' + chr(0b100100 + 0o17) + chr(0b110111), 8), nzTpIcepk0o8(chr(48) + '\157' + '\061' + '\x35', 12284 - 12276), nzTpIcepk0o8(chr(2191 - 2143) + '\157' + chr(0b100 + 0o56) + chr(2315 - 2264) + chr(0b110001), 0o10), nzTpIcepk0o8(chr(48) + chr(0b11000 + 0o127) + chr(0b110011) + '\066' + chr(1531 - 1479), 0o10), nzTpIcepk0o8('\x30' + chr(0b101101 + 0o102) + chr(0b11001 + 0o32) + chr(461 - 408) + chr(2372 - 2320), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110001) + '\062' + chr(52), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110010) + '\065' + chr(51), 0b1000), nzTpIcepk0o8(chr(2128 - 2080) + chr(111) + chr(49) + '\x34' + '\x31', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1100101 + 0o12) + chr(0b110001 + 0o1) + '\x34' + chr(1812 - 1763), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110110) + chr(51), 0o10), nzTpIcepk0o8(chr(0b1101 + 0o43) + chr(0b1101111) + chr(0b11100 + 0o27) + '\063' + '\067', 8), nzTpIcepk0o8('\060' + '\157' + '\063' + '\066' + chr(0b101011 + 0o6), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(11129 - 11018) + chr(55) + chr(55), 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(2239 - 2190) + chr(0b110011) + chr(0b110100), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + '\x32' + chr(54) + chr(2123 - 2075), 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x33' + '\x30' + chr(50), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\065' + chr(52), 45410 - 45402), nzTpIcepk0o8('\x30' + chr(0b1010101 + 0o32) + '\061' + chr(1131 - 1077) + '\x37', 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + '\x35' + '\064', 8), nzTpIcepk0o8('\x30' + chr(0b1011101 + 0o22) + chr(0b110101) + '\x36', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x33' + '\060' + chr(1819 - 1766), 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b111 + 0o51) + chr(111) + '\x35' + chr(0b110000), 39190 - 39182)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xd2'), '\x64' + '\145' + '\143' + chr(0b1101111) + chr(0b1100100) + chr(0b1100101))('\x75' + chr(0b110111 + 0o75) + chr(102) + chr(0b10100 + 0o31) + chr(0b111000)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def GUKetu4xaGsJ(hXMPsSrOQzbh, qpII1aNYuV7Z, SLVB2BPA_mIe, WmRBchRTeaDt=None, **n_DqV9fOWrXc):
try:
return roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x89{5J\x1d\xc1\x03\x02\x0f\xe3N\x7fOy'), chr(0b1100100) + chr(101) + chr(99) + chr(111) + chr(1322 - 1222) + chr(4172 - 4071))(chr(0b1011111 + 0o26) + chr(116) + chr(0b10010 + 0o124) + chr(0b101101) + chr(0b111000)))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x8c\x7f$d"\xddP\x16%\xcc\x0fA'), chr(0b1000110 + 0o36) + chr(0b1100101) + '\x63' + chr(10086 - 9975) + chr(0b1011100 + 0o10) + '\x65')(chr(117) + '\x74' + chr(0b1001101 + 0o31) + chr(1525 - 1480) + '\x38')), qpII1aNYuV7Z, SLVB2BPA_mIe, **n_DqV9fOWrXc)
except zfo2Sgkz3IVJ:
return WmRBchRTeaDt |
paylogic/pip-accel | pip_accel/req.py | Requirement.related_archives | def related_archives(self):
"""
The pathnames of the source distribution(s) for this requirement (a list of strings).
.. note:: This property is very new in pip-accel and its logic may need
some time to mature. For now any misbehavior by this property
shouldn't be too much of a problem because the pathnames
reported by this property are only used for cache
invalidation (see the :attr:`last_modified` and
:attr:`checksum` properties).
"""
# Escape the requirement's name for use in a regular expression.
name_pattern = escape_name(self.name)
# Escape the requirement's version for in a regular expression.
version_pattern = re.escape(self.version)
# Create a regular expression that matches any of the known source
# distribution archive extensions.
extension_pattern = '|'.join(re.escape(ext) for ext in ARCHIVE_EXTENSIONS if ext != '.whl')
# Compose the regular expression pattern to match filenames of source
# distribution archives in the local source index directory.
pattern = '^%s-%s(%s)$' % (name_pattern, version_pattern, extension_pattern)
# Compile the regular expression for case insensitive matching.
compiled_pattern = re.compile(pattern, re.IGNORECASE)
# Find the matching source distribution archives.
return [os.path.join(self.config.source_index, fn)
for fn in os.listdir(self.config.source_index)
if compiled_pattern.match(fn)] | python | def related_archives(self):
"""
The pathnames of the source distribution(s) for this requirement (a list of strings).
.. note:: This property is very new in pip-accel and its logic may need
some time to mature. For now any misbehavior by this property
shouldn't be too much of a problem because the pathnames
reported by this property are only used for cache
invalidation (see the :attr:`last_modified` and
:attr:`checksum` properties).
"""
# Escape the requirement's name for use in a regular expression.
name_pattern = escape_name(self.name)
# Escape the requirement's version for in a regular expression.
version_pattern = re.escape(self.version)
# Create a regular expression that matches any of the known source
# distribution archive extensions.
extension_pattern = '|'.join(re.escape(ext) for ext in ARCHIVE_EXTENSIONS if ext != '.whl')
# Compose the regular expression pattern to match filenames of source
# distribution archives in the local source index directory.
pattern = '^%s-%s(%s)$' % (name_pattern, version_pattern, extension_pattern)
# Compile the regular expression for case insensitive matching.
compiled_pattern = re.compile(pattern, re.IGNORECASE)
# Find the matching source distribution archives.
return [os.path.join(self.config.source_index, fn)
for fn in os.listdir(self.config.source_index)
if compiled_pattern.match(fn)] | [
"def",
"related_archives",
"(",
"self",
")",
":",
"# Escape the requirement's name for use in a regular expression.",
"name_pattern",
"=",
"escape_name",
"(",
"self",
".",
"name",
")",
"# Escape the requirement's version for in a regular expression.",
"version_pattern",
"=",
"re",
".",
"escape",
"(",
"self",
".",
"version",
")",
"# Create a regular expression that matches any of the known source",
"# distribution archive extensions.",
"extension_pattern",
"=",
"'|'",
".",
"join",
"(",
"re",
".",
"escape",
"(",
"ext",
")",
"for",
"ext",
"in",
"ARCHIVE_EXTENSIONS",
"if",
"ext",
"!=",
"'.whl'",
")",
"# Compose the regular expression pattern to match filenames of source",
"# distribution archives in the local source index directory.",
"pattern",
"=",
"'^%s-%s(%s)$'",
"%",
"(",
"name_pattern",
",",
"version_pattern",
",",
"extension_pattern",
")",
"# Compile the regular expression for case insensitive matching.",
"compiled_pattern",
"=",
"re",
".",
"compile",
"(",
"pattern",
",",
"re",
".",
"IGNORECASE",
")",
"# Find the matching source distribution archives.",
"return",
"[",
"os",
".",
"path",
".",
"join",
"(",
"self",
".",
"config",
".",
"source_index",
",",
"fn",
")",
"for",
"fn",
"in",
"os",
".",
"listdir",
"(",
"self",
".",
"config",
".",
"source_index",
")",
"if",
"compiled_pattern",
".",
"match",
"(",
"fn",
")",
"]"
] | The pathnames of the source distribution(s) for this requirement (a list of strings).
.. note:: This property is very new in pip-accel and its logic may need
some time to mature. For now any misbehavior by this property
shouldn't be too much of a problem because the pathnames
reported by this property are only used for cache
invalidation (see the :attr:`last_modified` and
:attr:`checksum` properties). | [
"The",
"pathnames",
"of",
"the",
"source",
"distribution",
"(",
"s",
")",
"for",
"this",
"requirement",
"(",
"a",
"list",
"of",
"strings",
")",
"."
] | ccad1b784927a322d996db593403b1d2d2e22666 | https://github.com/paylogic/pip-accel/blob/ccad1b784927a322d996db593403b1d2d2e22666/pip_accel/req.py#L96-L122 | train | Returns a list of the pathnames of the source distribution archives that this requirement is related to. | GiP5xwVCF98Z,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yfT9sfj2=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' + '\x6f' + '\x32' + chr(0b110100) + chr(0b110010), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(1237 - 1183) + chr(0b110001), 41523 - 41515), nzTpIcepk0o8('\060' + chr(111) + chr(0b110010) + chr(0b110101) + chr(0b110110), 0b1000), nzTpIcepk0o8(chr(48) + chr(9512 - 9401) + chr(320 - 271) + chr(50) + '\064', 0o10), nzTpIcepk0o8('\060' + '\x6f' + '\x33' + chr(0b10010 + 0o40) + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110010) + '\066' + chr(0b110000), 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b10001 + 0o40) + chr(52) + '\x35', 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b101 + 0o54) + chr(2202 - 2147) + '\x31', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x33' + chr(0b110001) + chr(0b100011 + 0o16), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(50) + chr(0b110101) + chr(1253 - 1202), 39625 - 39617), nzTpIcepk0o8(chr(1703 - 1655) + chr(1580 - 1469) + chr(0b110011) + chr(0b101011 + 0o11) + chr(2152 - 2104), 0b1000), nzTpIcepk0o8('\060' + chr(0b101100 + 0o103) + chr(50) + '\064' + '\x36', 0b1000), nzTpIcepk0o8(chr(0b1011 + 0o45) + chr(111) + chr(534 - 483) + chr(0b11 + 0o56) + chr(1144 - 1092), 19712 - 19704), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b10111 + 0o33) + '\x35' + chr(1923 - 1869), 8), nzTpIcepk0o8(chr(48) + chr(0b111101 + 0o62) + '\x31' + chr(0b110101) + chr(0b101011 + 0o7), 0o10), nzTpIcepk0o8('\060' + chr(0b101010 + 0o105) + '\x33' + chr(0b110100) + '\x33', 41720 - 41712), nzTpIcepk0o8('\x30' + '\157' + chr(53) + chr(0b101111 + 0o6), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(11582 - 11471) + '\x32' + chr(0b10100 + 0o37) + '\066', 0b1000), nzTpIcepk0o8(chr(0b11001 + 0o27) + '\x6f' + '\061' + chr(2249 - 2196) + '\060', 0o10), nzTpIcepk0o8(chr(48) + chr(10272 - 10161) + chr(0b110010) + chr(0b110000) + chr(0b110110), 0o10), nzTpIcepk0o8('\x30' + chr(4183 - 4072) + chr(1929 - 1878) + chr(51) + chr(55), 0o10), nzTpIcepk0o8('\060' + '\157' + chr(0b101101 + 0o4) + chr(0b101001 + 0o10), 0b1000), nzTpIcepk0o8('\060' + '\157' + chr(830 - 780) + chr(51) + '\062', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1001000 + 0o47) + chr(2156 - 2107) + '\065' + '\x37', 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + '\067' + chr(0b1001 + 0o52), 52035 - 52027), nzTpIcepk0o8(chr(0b10 + 0o56) + chr(1255 - 1144) + chr(1526 - 1474) + chr(0b110100 + 0o3), 38295 - 38287), nzTpIcepk0o8('\060' + '\157' + chr(51) + '\x37' + chr(55), 0o10), nzTpIcepk0o8('\060' + chr(111) + '\x33' + chr(290 - 238) + '\x33', 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x34' + chr(55), 8), nzTpIcepk0o8(chr(1502 - 1454) + chr(0b1011000 + 0o27) + chr(50) + chr(0b110010), 0b1000), nzTpIcepk0o8(chr(0b101000 + 0o10) + chr(0b11111 + 0o120) + chr(603 - 554) + '\062' + '\x33', 64508 - 64500), nzTpIcepk0o8('\x30' + '\x6f' + '\x33' + '\x36', ord("\x08")), nzTpIcepk0o8(chr(1237 - 1189) + '\x6f' + chr(0b110010) + '\x36' + '\061', 0b1000), nzTpIcepk0o8('\060' + chr(0b100011 + 0o114) + '\062' + '\x37' + chr(0b111 + 0o54), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\067' + chr(2899 - 2845), 18293 - 18285), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x33' + chr(0b101100 + 0o7) + '\x31', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x33' + chr(0b110010) + '\x36', 12243 - 12235), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110001) + '\x35' + chr(0b110011), 0o10), nzTpIcepk0o8('\060' + chr(9212 - 9101) + chr(0b110010) + '\067' + chr(51), 8), nzTpIcepk0o8(chr(0b1001 + 0o47) + chr(1447 - 1336) + '\063' + '\x35' + chr(0b110100), 1868 - 1860)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(1189 - 1141) + '\x6f' + chr(53) + chr(48), ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x8c'), chr(100) + chr(101) + chr(99) + chr(0b1101111) + chr(0b1011100 + 0o10) + chr(0b1100101))(chr(4985 - 4868) + chr(116) + '\x66' + chr(0b101101) + chr(56)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def Mi_Q2oLCOp38(hXMPsSrOQzbh):
_cUlQ6RZVdlL = mzt5PLrCCjYt(hXMPsSrOQzbh.SLVB2BPA_mIe)
MsPAVO7gJ99w = aoTc4YA2bs2R.lfFf1I73PDZv(hXMPsSrOQzbh.J4eG487sJbAu)
ZQtbgXCydFxQ = roI3spqORKae(ES5oEprVxulp(b'\xde'), chr(100) + chr(0b1100010 + 0o3) + chr(0b1010100 + 0o17) + '\x6f' + chr(0b1100100) + '\x65')('\165' + chr(6274 - 6158) + '\146' + chr(1925 - 1880) + '\070').Y4yM9BcfTCNq((aoTc4YA2bs2R.lfFf1I73PDZv(MEyQziOWmxIx) for MEyQziOWmxIx in rN5SZCCJ2UbI if MEyQziOWmxIx != roI3spqORKae(ES5oEprVxulp(b'\x8cF\xc68'), '\144' + '\x65' + '\143' + chr(3438 - 3327) + chr(5418 - 5318) + chr(5361 - 5260))(chr(0b1110101) + '\x74' + chr(1929 - 1827) + chr(0b1001 + 0o44) + '\070')))
UYtHA0XyNB9C = roI3spqORKae(ES5oEprVxulp(b'\xfc\x14\xddy\xf4\xc3M\\\xba\x82\xc4'), '\144' + chr(5114 - 5013) + '\x63' + chr(111) + chr(0b1101 + 0o127) + '\145')(chr(0b1110101) + chr(11938 - 11822) + chr(0b1100110) + '\x2d' + chr(902 - 846)) % (_cUlQ6RZVdlL, MsPAVO7gJ99w, ZQtbgXCydFxQ)
JSunoTSJyC1C = aoTc4YA2bs2R.compile(UYtHA0XyNB9C, aoTc4YA2bs2R.IGNORECASE)
return [roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'\xfb\x05\xd7\x19\xe8\xf2\x06\x1f\x9d\xe8\xae\xd7'), '\x64' + chr(101) + chr(99) + chr(0b1101111) + chr(0b101 + 0o137) + chr(0b101001 + 0o74))('\x75' + '\164' + chr(0b1100110) + chr(45) + '\x38'))(roI3spqORKae(hXMPsSrOQzbh.config, roI3spqORKae(ES5oEprVxulp(b'\xd1^\xdb&\xb2\xd5:\x10\xa7\xcf\x85\xde'), '\x64' + '\145' + chr(1126 - 1027) + '\x6f' + '\x64' + chr(6512 - 6411))(chr(4953 - 4836) + '\x74' + chr(8329 - 8227) + chr(0b100010 + 0o13) + chr(0b111000))), oo8448oP2LJ8) for oo8448oP2LJ8 in roI3spqORKae(aHUqKstZLeS6, roI3spqORKae(ES5oEprVxulp(b'\xceX\xdd \xb5\xd9\x17'), chr(0b111100 + 0o50) + chr(101) + chr(0b100101 + 0o76) + chr(0b111001 + 0o66) + '\144' + chr(101))(chr(0b1000001 + 0o64) + chr(1982 - 1866) + chr(0b1100110) + chr(0b101101) + '\x38'))(roI3spqORKae(hXMPsSrOQzbh.config, roI3spqORKae(ES5oEprVxulp(b'\xd1^\xdb&\xb2\xd5:\x10\xa7\xcf\x85\xde'), '\144' + '\145' + chr(0b1100011) + '\x6f' + chr(100) + '\x65')('\x75' + '\164' + chr(1527 - 1425) + chr(0b101 + 0o50) + chr(2313 - 2257)))) if roI3spqORKae(JSunoTSJyC1C, roI3spqORKae(ES5oEprVxulp(b'\xcaZ\x97\x1b\xb8\xda\x08\x10\x8a\xf4\x9a\xe7'), chr(0b11000 + 0o114) + '\x65' + chr(0b1100011) + chr(0b1010001 + 0o36) + chr(100) + '\145')('\165' + chr(0b101010 + 0o112) + chr(0b1100110) + chr(0b1100 + 0o41) + chr(2695 - 2639)))(oo8448oP2LJ8)] |
paylogic/pip-accel | pip_accel/req.py | Requirement.last_modified | def last_modified(self):
"""
The last modified time of the requirement's source distribution archive(s) (a number).
The value of this property is based on the :attr:`related_archives`
property. If no related archives are found the current time is
reported. In the balance between not invalidating cached binary
distributions enough and invalidating them too frequently, this
property causes the latter to happen.
"""
mtimes = list(map(os.path.getmtime, self.related_archives))
return max(mtimes) if mtimes else time.time() | python | def last_modified(self):
"""
The last modified time of the requirement's source distribution archive(s) (a number).
The value of this property is based on the :attr:`related_archives`
property. If no related archives are found the current time is
reported. In the balance between not invalidating cached binary
distributions enough and invalidating them too frequently, this
property causes the latter to happen.
"""
mtimes = list(map(os.path.getmtime, self.related_archives))
return max(mtimes) if mtimes else time.time() | [
"def",
"last_modified",
"(",
"self",
")",
":",
"mtimes",
"=",
"list",
"(",
"map",
"(",
"os",
".",
"path",
".",
"getmtime",
",",
"self",
".",
"related_archives",
")",
")",
"return",
"max",
"(",
"mtimes",
")",
"if",
"mtimes",
"else",
"time",
".",
"time",
"(",
")"
] | The last modified time of the requirement's source distribution archive(s) (a number).
The value of this property is based on the :attr:`related_archives`
property. If no related archives are found the current time is
reported. In the balance between not invalidating cached binary
distributions enough and invalidating them too frequently, this
property causes the latter to happen. | [
"The",
"last",
"modified",
"time",
"of",
"the",
"requirement",
"s",
"source",
"distribution",
"archive",
"(",
"s",
")",
"(",
"a",
"number",
")",
"."
] | ccad1b784927a322d996db593403b1d2d2e22666 | https://github.com/paylogic/pip-accel/blob/ccad1b784927a322d996db593403b1d2d2e22666/pip_accel/req.py#L125-L136 | train | Returns the last modified time of the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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(0b101110 + 0o4) + chr(0b110000 + 0o2) + chr(0b110010), 54306 - 54298), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110011) + chr(0b110000 + 0o2) + chr(0b10111 + 0o36), 0o10), nzTpIcepk0o8(chr(435 - 387) + chr(111) + '\x31' + chr(0b110011) + '\x32', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b100010 + 0o20) + chr(49) + chr(48), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b101010 + 0o105) + chr(0b110111) + chr(272 - 222), 0o10), nzTpIcepk0o8(chr(0b1001 + 0o47) + chr(5408 - 5297) + '\x33' + chr(55), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(12226 - 12115) + chr(0b11000 + 0o31) + chr(797 - 747) + '\x35', 58854 - 58846), nzTpIcepk0o8('\x30' + chr(0b1001011 + 0o44) + chr(273 - 224) + chr(300 - 245) + chr(0b11 + 0o61), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(0b111 + 0o53) + chr(0b110101) + '\x37', 17363 - 17355), nzTpIcepk0o8(chr(0b1101 + 0o43) + '\157' + chr(0b101111 + 0o3) + chr(51) + '\x36', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(11468 - 11357) + chr(0b110010) + '\061' + '\066', ord("\x08")), nzTpIcepk0o8(chr(319 - 271) + chr(0b1101111) + '\x32' + '\061' + '\063', 0b1000), nzTpIcepk0o8(chr(0b10100 + 0o34) + chr(2817 - 2706) + chr(0b110001) + chr(50) + chr(992 - 942), 0o10), nzTpIcepk0o8('\x30' + chr(0b11111 + 0o120) + chr(2282 - 2232) + '\x37' + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(0b11000 + 0o30) + chr(0b1101111) + chr(55) + chr(0b110111), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + '\x32' + chr(0b1100 + 0o52) + '\x35', 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + '\062' + '\067' + '\067', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1010011 + 0o34) + chr(509 - 459) + chr(0b110111 + 0o0) + '\x33', 1740 - 1732), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(50) + chr(0b110010) + chr(0b110001), 12348 - 12340), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110010) + chr(0b110011) + '\x32', 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(49) + chr(0b110000), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(779 - 730) + chr(48) + chr(52), 0b1000), nzTpIcepk0o8('\060' + '\157' + chr(2209 - 2159) + '\067' + chr(0b110111), 8), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b0 + 0o61) + chr(0b110011) + chr(0b110011), 60743 - 60735), nzTpIcepk0o8(chr(0b11001 + 0o27) + chr(2042 - 1931) + chr(49) + '\x36' + chr(0b1001 + 0o53), ord("\x08")), nzTpIcepk0o8(chr(815 - 767) + chr(0b1101111) + chr(0b1 + 0o61) + chr(50) + chr(0b110011), 28581 - 28573), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\062' + chr(2211 - 2158) + '\067', 8), nzTpIcepk0o8(chr(48) + chr(12020 - 11909) + '\061' + '\064' + '\061', 0o10), nzTpIcepk0o8(chr(1654 - 1606) + chr(111) + '\x31' + chr(0b110001) + chr(0b101001 + 0o11), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(51) + chr(801 - 753) + chr(0b1010 + 0o54), 65333 - 65325), nzTpIcepk0o8(chr(48) + '\157' + '\x32' + '\060', 0o10), nzTpIcepk0o8(chr(0b1 + 0o57) + '\x6f' + chr(0b110010 + 0o1) + chr(53) + chr(0b100011 + 0o21), 34914 - 34906), nzTpIcepk0o8(chr(1421 - 1373) + chr(0b1101111) + chr(0b110010) + chr(0b100110 + 0o20) + '\x37', 10297 - 10289), nzTpIcepk0o8(chr(48) + '\x6f' + '\061' + '\061' + chr(1444 - 1392), 37572 - 37564), nzTpIcepk0o8(chr(0b100101 + 0o13) + chr(111) + '\062' + chr(0b10100 + 0o37) + '\060', 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\061' + '\061' + chr(2592 - 2540), 8), nzTpIcepk0o8(chr(2185 - 2137) + '\157' + chr(0b110010) + '\063' + '\063', 0b1000), nzTpIcepk0o8('\x30' + chr(225 - 114) + chr(0b101100 + 0o10) + chr(0b110000), 36259 - 36251), nzTpIcepk0o8(chr(1677 - 1629) + chr(0b1101111) + '\x32' + chr(0b1001 + 0o56) + '\x34', 8), nzTpIcepk0o8('\x30' + chr(111) + chr(50) + '\x33' + '\x37', 38839 - 38831)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(1976 - 1928) + chr(0b1101111) + chr(2649 - 2596) + chr(1882 - 1834), 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xbc'), '\x64' + '\x65' + chr(0b1100011) + chr(561 - 450) + chr(0b1010111 + 0o15) + chr(7420 - 7319))(chr(11468 - 11351) + chr(116) + chr(0b1100110) + chr(45) + '\x38') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def xwHupc2dPGxw(hXMPsSrOQzbh):
Kb32_sHrUdPc = H4NoA26ON7iG(VVP82lOIz6CD(aHUqKstZLeS6.path.getmtime, hXMPsSrOQzbh.related_archives))
return KV9ckIhroIia(Kb32_sHrUdPc) if Kb32_sHrUdPc else roI3spqORKae(oprIvDIRQyCb, roI3spqORKae(ES5oEprVxulp(b'\xfd\xa5(\xc1L[\x1c.\xfe\xe7\xcd\xe9'), chr(5960 - 5860) + '\145' + chr(0b111100 + 0o47) + chr(0b1101111) + chr(100) + chr(101))('\x75' + chr(116) + chr(0b100100 + 0o102) + '\055' + chr(2808 - 2752)))() |
paylogic/pip-accel | pip_accel/req.py | Requirement.is_wheel | def is_wheel(self):
"""
:data:`True` when the requirement is a wheel, :data:`False` otherwise.
.. note:: To my surprise it seems to be non-trivial to determine
whether a given :class:`pip.req.InstallRequirement` object
produced by pip's internal Python API concerns a source
distribution or a wheel distribution.
There's a :class:`pip.req.InstallRequirement.is_wheel`
property but I'm currently looking at a wheel distribution
whose ``is_wheel`` property returns :data:`None`, apparently
because the requirement's ``url`` property is also :data:`None`.
Whether this is an obscure implementation detail of pip or
caused by the way pip-accel invokes pip, I really can't tell
(yet).
"""
probably_sdist = os.path.isfile(os.path.join(self.source_directory, 'setup.py'))
probably_wheel = len(glob.glob(os.path.join(self.source_directory, '*.dist-info', 'WHEEL'))) > 0
if probably_wheel and not probably_sdist:
return True
elif probably_sdist and not probably_wheel:
return False
elif probably_sdist and probably_wheel:
variables = dict(requirement=self.setuptools_requirement,
directory=self.source_directory)
raise UnknownDistributionFormat("""
The unpacked distribution of {requirement} in {directory} looks
like a source distribution and a wheel distribution, I'm
confused!
""", **variables)
else:
variables = dict(requirement=self.setuptools_requirement,
directory=self.source_directory)
raise UnknownDistributionFormat("""
The unpacked distribution of {requirement} in {directory}
doesn't look like a source distribution and also doesn't look
like a wheel distribution, I'm confused!
""", **variables) | python | def is_wheel(self):
"""
:data:`True` when the requirement is a wheel, :data:`False` otherwise.
.. note:: To my surprise it seems to be non-trivial to determine
whether a given :class:`pip.req.InstallRequirement` object
produced by pip's internal Python API concerns a source
distribution or a wheel distribution.
There's a :class:`pip.req.InstallRequirement.is_wheel`
property but I'm currently looking at a wheel distribution
whose ``is_wheel`` property returns :data:`None`, apparently
because the requirement's ``url`` property is also :data:`None`.
Whether this is an obscure implementation detail of pip or
caused by the way pip-accel invokes pip, I really can't tell
(yet).
"""
probably_sdist = os.path.isfile(os.path.join(self.source_directory, 'setup.py'))
probably_wheel = len(glob.glob(os.path.join(self.source_directory, '*.dist-info', 'WHEEL'))) > 0
if probably_wheel and not probably_sdist:
return True
elif probably_sdist and not probably_wheel:
return False
elif probably_sdist and probably_wheel:
variables = dict(requirement=self.setuptools_requirement,
directory=self.source_directory)
raise UnknownDistributionFormat("""
The unpacked distribution of {requirement} in {directory} looks
like a source distribution and a wheel distribution, I'm
confused!
""", **variables)
else:
variables = dict(requirement=self.setuptools_requirement,
directory=self.source_directory)
raise UnknownDistributionFormat("""
The unpacked distribution of {requirement} in {directory}
doesn't look like a source distribution and also doesn't look
like a wheel distribution, I'm confused!
""", **variables) | [
"def",
"is_wheel",
"(",
"self",
")",
":",
"probably_sdist",
"=",
"os",
".",
"path",
".",
"isfile",
"(",
"os",
".",
"path",
".",
"join",
"(",
"self",
".",
"source_directory",
",",
"'setup.py'",
")",
")",
"probably_wheel",
"=",
"len",
"(",
"glob",
".",
"glob",
"(",
"os",
".",
"path",
".",
"join",
"(",
"self",
".",
"source_directory",
",",
"'*.dist-info'",
",",
"'WHEEL'",
")",
")",
")",
">",
"0",
"if",
"probably_wheel",
"and",
"not",
"probably_sdist",
":",
"return",
"True",
"elif",
"probably_sdist",
"and",
"not",
"probably_wheel",
":",
"return",
"False",
"elif",
"probably_sdist",
"and",
"probably_wheel",
":",
"variables",
"=",
"dict",
"(",
"requirement",
"=",
"self",
".",
"setuptools_requirement",
",",
"directory",
"=",
"self",
".",
"source_directory",
")",
"raise",
"UnknownDistributionFormat",
"(",
"\"\"\"\n The unpacked distribution of {requirement} in {directory} looks\n like a source distribution and a wheel distribution, I'm\n confused!\n \"\"\"",
",",
"*",
"*",
"variables",
")",
"else",
":",
"variables",
"=",
"dict",
"(",
"requirement",
"=",
"self",
".",
"setuptools_requirement",
",",
"directory",
"=",
"self",
".",
"source_directory",
")",
"raise",
"UnknownDistributionFormat",
"(",
"\"\"\"\n The unpacked distribution of {requirement} in {directory}\n doesn't look like a source distribution and also doesn't look\n like a wheel distribution, I'm confused!\n \"\"\"",
",",
"*",
"*",
"variables",
")"
] | :data:`True` when the requirement is a wheel, :data:`False` otherwise.
.. note:: To my surprise it seems to be non-trivial to determine
whether a given :class:`pip.req.InstallRequirement` object
produced by pip's internal Python API concerns a source
distribution or a wheel distribution.
There's a :class:`pip.req.InstallRequirement.is_wheel`
property but I'm currently looking at a wheel distribution
whose ``is_wheel`` property returns :data:`None`, apparently
because the requirement's ``url`` property is also :data:`None`.
Whether this is an obscure implementation detail of pip or
caused by the way pip-accel invokes pip, I really can't tell
(yet). | [
":",
"data",
":",
"True",
"when",
"the",
"requirement",
"is",
"a",
"wheel",
":",
"data",
":",
"False",
"otherwise",
"."
] | ccad1b784927a322d996db593403b1d2d2e22666 | https://github.com/paylogic/pip-accel/blob/ccad1b784927a322d996db593403b1d2d2e22666/pip_accel/req.py#L160-L199 | train | Determines if the given requirement is a wheel. | 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,Zt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vXSAOQt,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(100 - 51) + chr(0b100111 + 0o12), 0b1000), nzTpIcepk0o8(chr(0b100111 + 0o11) + '\157' + chr(2007 - 1958) + '\x33' + '\062', 5753 - 5745), nzTpIcepk0o8(chr(0b101001 + 0o7) + chr(0b1101111) + '\x33' + chr(0b11100 + 0o32) + '\067', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(1482 - 1432) + chr(0b110101) + chr(0b101100 + 0o4), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + '\x31' + '\x30' + '\065', 0o10), nzTpIcepk0o8(chr(0b11010 + 0o26) + chr(0b1001001 + 0o46) + chr(2243 - 2193) + chr(0b110011) + '\063', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110001) + chr(0b110001) + '\x32', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110010) + chr(2792 - 2737) + chr(0b11110 + 0o26), 0b1000), nzTpIcepk0o8('\060' + chr(11808 - 11697) + chr(0b11010 + 0o30) + '\060' + '\x34', 0o10), nzTpIcepk0o8(chr(1582 - 1534) + chr(111) + '\x31' + chr(340 - 288) + chr(0b110111), 56846 - 56838), nzTpIcepk0o8(chr(0b11101 + 0o23) + '\157' + chr(2417 - 2362) + chr(53), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(2568 - 2517) + chr(762 - 711), 0b1000), nzTpIcepk0o8(chr(0b110000 + 0o0) + '\x6f' + chr(0b110011) + chr(0b110010 + 0o4) + chr(0b110101), 0o10), nzTpIcepk0o8(chr(108 - 60) + '\157' + '\062' + '\064', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(891 - 840) + chr(0b110010) + chr(0b110011), ord("\x08")), nzTpIcepk0o8(chr(1820 - 1772) + chr(111) + chr(0b110101) + '\060', 55279 - 55271), nzTpIcepk0o8('\x30' + chr(1064 - 953) + '\x32' + chr(55) + chr(0b110110), 58964 - 58956), nzTpIcepk0o8(chr(0b1101 + 0o43) + chr(5471 - 5360) + chr(0b110011) + chr(54), 0o10), nzTpIcepk0o8('\x30' + chr(0b111 + 0o150) + '\061' + chr(953 - 900) + chr(0b110100), 55218 - 55210), nzTpIcepk0o8('\x30' + chr(9823 - 9712) + chr(50) + chr(0b110101 + 0o1) + chr(0b110011), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(50) + '\064' + chr(2047 - 1995), 29280 - 29272), nzTpIcepk0o8(chr(114 - 66) + chr(1656 - 1545) + chr(615 - 565) + chr(48) + chr(1751 - 1699), 8), nzTpIcepk0o8(chr(1272 - 1224) + chr(0b1010010 + 0o35) + chr(0b110011) + '\064' + chr(0b110100), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b101000 + 0o11) + chr(55) + chr(54), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b11111 + 0o120) + chr(315 - 266) + chr(52) + '\x34', ord("\x08")), nzTpIcepk0o8(chr(0b11010 + 0o26) + '\157' + chr(51) + chr(0b101010 + 0o6), 0b1000), nzTpIcepk0o8('\060' + chr(0b1100001 + 0o16) + chr(1745 - 1695) + chr(0b110101) + '\063', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1001010 + 0o45) + chr(0b110010) + chr(52) + chr(806 - 754), 8), nzTpIcepk0o8(chr(48) + chr(7849 - 7738) + '\063' + '\x34', 34021 - 34013), nzTpIcepk0o8(chr(48) + chr(10388 - 10277) + chr(0b110001 + 0o1) + '\x33' + chr(2416 - 2363), 29283 - 29275), nzTpIcepk0o8(chr(48) + '\157' + '\x33' + chr(0b110111) + chr(0b110100), 58601 - 58593), nzTpIcepk0o8(chr(48) + '\x6f' + '\x33' + chr(1534 - 1486) + chr(2386 - 2337), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(396 - 345) + chr(82 - 31) + chr(0b100000 + 0o22), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b101011 + 0o7) + '\067' + chr(0b110010), 734 - 726), nzTpIcepk0o8(chr(238 - 190) + chr(0b1101111) + chr(121 - 72) + '\061' + '\065', 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(1936 - 1886) + '\x31' + chr(0b110001), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(6762 - 6651) + chr(0b101100 + 0o6) + chr(53) + chr(54), 44427 - 44419), nzTpIcepk0o8(chr(0b10 + 0o56) + chr(111) + '\061' + chr(0b110010), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b11001 + 0o31) + '\x33' + '\060', 35347 - 35339), nzTpIcepk0o8(chr(48) + '\x6f' + '\x31' + chr(0b110000 + 0o7) + chr(0b11 + 0o57), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + '\157' + chr(0b110101) + chr(0b110000), 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b"'"), chr(100) + chr(0b1100101) + chr(99) + chr(111) + '\144' + chr(0b1010101 + 0o20))(chr(117) + chr(5782 - 5666) + '\x66' + chr(0b10000 + 0o35) + '\x38') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def rx9YGTHoi3rF(hXMPsSrOQzbh):
izjxZF20PSQ8 = aHUqKstZLeS6.path.isfile(aHUqKstZLeS6.path.Y4yM9BcfTCNq(hXMPsSrOQzbh.source_directory, roI3spqORKae(ES5oEprVxulp(b'z?\x83\xdd5\xb5:\xc5'), '\x64' + chr(101) + chr(99) + chr(0b1011111 + 0o20) + chr(0b111100 + 0o50) + chr(0b1100101))('\x75' + chr(0b100101 + 0o117) + '\x66' + chr(1383 - 1338) + chr(0b110011 + 0o5))))
vUboquHMNzdL = ftfygxgFas5X(mtVuHd9cGi1a.glob(aHUqKstZLeS6.path.Y4yM9BcfTCNq(hXMPsSrOQzbh.source_directory, roI3spqORKae(ES5oEprVxulp(b'#t\x93\xc16\xefg\xd5\xea\x01R'), '\x64' + '\x65' + chr(3633 - 3534) + chr(2849 - 2738) + chr(0b1100100) + '\145')(chr(11619 - 11502) + chr(116) + chr(0b1100 + 0o132) + chr(0b101101) + '\x38'), roI3spqORKae(ES5oEprVxulp(b'^\x12\xb2\xed\t'), chr(0b101111 + 0o65) + chr(0b11100 + 0o111) + chr(0b1100011) + chr(0b1101111 + 0o0) + chr(8469 - 8369) + chr(101))('\165' + chr(0b1110100) + chr(8219 - 8117) + '\055' + '\070')))) > nzTpIcepk0o8(chr(0b100010 + 0o16) + chr(0b1101111) + '\060', 0o10)
if vUboquHMNzdL and (not izjxZF20PSQ8):
return nzTpIcepk0o8(chr(48) + chr(0b10000 + 0o137) + chr(0b110001), 0b1000)
elif izjxZF20PSQ8 and (not vUboquHMNzdL):
return nzTpIcepk0o8(chr(48) + '\157' + chr(2140 - 2092), 8)
elif izjxZF20PSQ8 and vUboquHMNzdL:
LuMTuvwD9t2e = znjnJWK64FDT(requirement=hXMPsSrOQzbh.setuptools_requirement, directory=hXMPsSrOQzbh.source_directory)
raise OzQgPr1E6KS8(roI3spqORKae(ES5oEprVxulp(b'\x03z\xd7\x88e\xbbj\x9c\xa4G\x1d;\xd54\xf3\x08\x9eJ\x04\xd6\x84\xf1\x8a\x0e\x05{\xc0\xc1x\xbd\x98\xa8\xa9\xce?\xe0\xcc\x7f\xec\x13f4\xd7\xc7#\xbb1\xce\xe1\x16Hr\x87q\xbeM\xd0j\x11\x93\xcd\xea\xc4\x05\x00q\xd9\xc1\x7f\xe9\x93\xb3\xa3\xc7m\xe5\xc1e\xf3\t\x03z\xd7\x88e\xbbj\x9c\xa4G\x1d;\xd54\xf3\x08\x9er\x05\xd8\xc1\xa4\x85^\x17w\xde\xd6\x7f\xf8\xdc\xa5\xb3\xc99\xfb\xc7h\xed\x0e`5\x99\x88$\xf5.\x9c\xe5GJs\x90q\xbf\x08\xdaw\x1f\xc7\xd6\xed\x86\x0b\x10q\xc4\xca0\xbd\xb5\xe6\xb7\xb0m\xa9\x8e*\xb8Z)z\xd7\x88e\xbbj\x9c\xa4G^t\x9br\xa6[\xdbzM\xb9\x84\xa4\xc4^D8\x8b\x84<\xbd\xdc\xe1'), '\x64' + '\145' + '\x63' + chr(0b1101111) + chr(0b1010110 + 0o16) + chr(0b1100101))('\165' + '\x74' + chr(102) + chr(45) + chr(0b101100 + 0o14)), **LuMTuvwD9t2e)
else:
LuMTuvwD9t2e = znjnJWK64FDT(requirement=hXMPsSrOQzbh.setuptools_requirement, directory=hXMPsSrOQzbh.source_directory)
raise OzQgPr1E6KS8(roI3spqORKae(ES5oEprVxulp(b"\x03z\xd7\x88e\xbbj\x9c\xa4G\x1d;\xd54\xf3\x08\x9eJ\x04\xd6\x84\xf1\x8a\x0e\x05{\xc0\xc1x\xbd\x98\xa8\xa9\xce?\xe0\xcc\x7f\xec\x13f4\xd7\xc7#\xbb1\xce\xe1\x16Hr\x87q\xbeM\xd0j\x11\x93\xcd\xea\xc4\x05\x00q\xd9\xc1\x7f\xe9\x93\xb3\xa3\xc7G\xa9\x8e*\xb8Z)z\xd7\x88e\xbbj\x9c\xa4G\x1d\x7f\x9aq\xa0F\x99jL\xdf\xcb\xeb\x8f^\x08q\xc0\xc1<\xfc\xdc\xb2\xb5\xcf?\xea\xcb*\xfc\x13z.\x85\xc1'\xee>\xd5\xeb\t\x1dz\x9bp\xf3I\xd2m\x03\x93\xc0\xeb\x81\r\n?\xdf\x84p\xf2\x93\xaa\xd0\x9am\xa9\x8e*\xb8Z)z\xd7\x88e\xbbj\x9c\xa4\x0bTp\x904\xb2\x08\xc9v\t\xd6\xc8\xa4\x80\x17\x17l\xd9\xcd~\xe8\x88\xa8\xb5\xd4a\xa9\xe7-\xf5Zj5\x99\xce0\xe8/\xd8\xa5m\x1d;\xd54\xf3\x08\x9e>L\x93\x84\xa4"), '\x64' + chr(0b101110 + 0o67) + chr(0b1100011) + '\x6f' + '\x64' + chr(101))(chr(0b1110101) + '\x74' + chr(0b1100110) + chr(1622 - 1577) + chr(56)), **LuMTuvwD9t2e) |
paylogic/pip-accel | pip_accel/req.py | Requirement.wheel_metadata | def wheel_metadata(self):
"""Get the distribution metadata of an unpacked wheel distribution."""
if not self.is_wheel:
raise TypeError("Requirement is not a wheel distribution!")
for distribution in find_distributions(self.source_directory):
return distribution
msg = "pkg_resources didn't find a wheel distribution in %s!"
raise Exception(msg % self.source_directory) | python | def wheel_metadata(self):
"""Get the distribution metadata of an unpacked wheel distribution."""
if not self.is_wheel:
raise TypeError("Requirement is not a wheel distribution!")
for distribution in find_distributions(self.source_directory):
return distribution
msg = "pkg_resources didn't find a wheel distribution in %s!"
raise Exception(msg % self.source_directory) | [
"def",
"wheel_metadata",
"(",
"self",
")",
":",
"if",
"not",
"self",
".",
"is_wheel",
":",
"raise",
"TypeError",
"(",
"\"Requirement is not a wheel distribution!\"",
")",
"for",
"distribution",
"in",
"find_distributions",
"(",
"self",
".",
"source_directory",
")",
":",
"return",
"distribution",
"msg",
"=",
"\"pkg_resources didn't find a wheel distribution in %s!\"",
"raise",
"Exception",
"(",
"msg",
"%",
"self",
".",
"source_directory",
")"
] | Get the distribution metadata of an unpacked wheel distribution. | [
"Get",
"the",
"distribution",
"metadata",
"of",
"an",
"unpacked",
"wheel",
"distribution",
"."
] | ccad1b784927a322d996db593403b1d2d2e22666 | https://github.com/paylogic/pip-accel/blob/ccad1b784927a322d996db593403b1d2d2e22666/pip_accel/req.py#L238-L245 | train | Get the distribution metadata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DRlqeP0tq,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(0b11010 + 0o125) + chr(51) + chr(0b110010) + '\064', ord("\x08")), nzTpIcepk0o8(chr(1974 - 1926) + '\157' + '\x31' + chr(484 - 431) + chr(2202 - 2153), 0o10), nzTpIcepk0o8('\060' + chr(0b101101 + 0o102) + '\063' + chr(2356 - 2301) + chr(0b110010), 0b1000), nzTpIcepk0o8('\060' + chr(0b110101 + 0o72) + chr(1227 - 1177) + '\x33', 0b1000), nzTpIcepk0o8('\060' + chr(0b10000 + 0o137) + chr(0b110011) + chr(1376 - 1322) + chr(0b10011 + 0o42), 0o10), nzTpIcepk0o8(chr(0b100110 + 0o12) + chr(10967 - 10856) + chr(0b110001) + chr(1503 - 1451), 796 - 788), nzTpIcepk0o8(chr(0b110000 + 0o0) + chr(0b1101111) + chr(0b100010 + 0o20) + '\067' + '\x33', 11181 - 11173), nzTpIcepk0o8(chr(48) + chr(0b1110 + 0o141) + '\062' + '\x37' + chr(607 - 559), 0o10), nzTpIcepk0o8('\x30' + '\157' + '\x32' + '\063', 8), nzTpIcepk0o8(chr(48) + chr(10445 - 10334) + chr(0b100100 + 0o15) + chr(0b110101) + chr(738 - 685), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\063' + '\065', 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + '\062' + chr(0b110001), 0o10), nzTpIcepk0o8(chr(0b11011 + 0o25) + chr(111) + chr(0b11010 + 0o27) + chr(0b1011 + 0o51), 8), nzTpIcepk0o8(chr(0b101 + 0o53) + '\157' + '\062' + chr(0b11001 + 0o30), 8), nzTpIcepk0o8('\060' + chr(111) + chr(0b1011 + 0o50) + chr(53) + '\062', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(10360 - 10249) + '\x32' + '\x30' + chr(0b110100), 21152 - 21144), nzTpIcepk0o8(chr(0b1111 + 0o41) + chr(0b1101111) + chr(0b110010) + chr(0b110101) + chr(0b100 + 0o60), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(49) + chr(0b110001) + chr(0b1110 + 0o47), ord("\x08")), nzTpIcepk0o8(chr(1829 - 1781) + chr(0b1101111) + '\066' + chr(53), 13264 - 13256), nzTpIcepk0o8('\x30' + '\x6f' + chr(51) + chr(0b101 + 0o56) + chr(0b1110 + 0o42), 13767 - 13759), nzTpIcepk0o8(chr(1689 - 1641) + '\x6f' + chr(0b1101 + 0o44) + chr(2551 - 2500) + '\061', 0b1000), nzTpIcepk0o8(chr(383 - 335) + chr(111) + '\063' + chr(121 - 72) + '\x33', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110010) + chr(55) + '\067', 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(2365 - 2315) + '\061' + '\062', 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(80 - 30) + '\x32', ord("\x08")), nzTpIcepk0o8(chr(2034 - 1986) + chr(0b10001 + 0o136) + chr(0b10110 + 0o36) + chr(0b110000), 12952 - 12944), nzTpIcepk0o8(chr(0b11110 + 0o22) + '\157' + chr(0b110011) + chr(2469 - 2418) + chr(0b11011 + 0o27), ord("\x08")), nzTpIcepk0o8(chr(0b1001 + 0o47) + chr(10937 - 10826) + chr(0b110001) + chr(0b110001) + chr(1438 - 1385), 8), nzTpIcepk0o8('\060' + chr(0b1001010 + 0o45) + chr(1407 - 1356) + chr(0b110100) + chr(2138 - 2088), 19661 - 19653), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(1737 - 1688) + '\x36' + '\x36', 18211 - 18203), nzTpIcepk0o8(chr(1100 - 1052) + chr(111) + chr(0b110001) + chr(0b110111) + chr(0b101000 + 0o10), 0b1000), nzTpIcepk0o8('\060' + chr(1597 - 1486) + '\x31' + chr(0b1011 + 0o45) + chr(0b110001), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1100001 + 0o16) + chr(50) + '\x33' + chr(54), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110010) + chr(0b1111 + 0o46) + '\x33', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x33' + chr(0b1110 + 0o42) + chr(131 - 78), 0o10), nzTpIcepk0o8('\060' + chr(11109 - 10998) + chr(0b110110) + chr(0b110111), 17461 - 17453), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110011) + chr(409 - 358) + '\062', 8), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\062' + chr(117 - 68) + chr(2142 - 2088), 22869 - 22861), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(49) + '\061' + '\x31', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(49) + '\060' + chr(1804 - 1749), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + chr(11958 - 11847) + chr(0b110101) + chr(1650 - 1602), 34116 - 34108)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xfa'), chr(0b1100100) + '\145' + '\x63' + chr(0b1011110 + 0o21) + chr(1377 - 1277) + chr(1450 - 1349))(chr(11657 - 11540) + chr(0b1110100) + chr(102) + chr(45) + chr(0b111000)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def U8KAbEZDEo07(hXMPsSrOQzbh):
if not roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xbd\x1a\xa5d\x9di\xde\xd4'), chr(100) + '\145' + chr(0b111111 + 0o44) + '\157' + chr(349 - 249) + '\x65')('\165' + chr(0b1110 + 0o146) + '\146' + chr(1285 - 1240) + chr(623 - 567))):
raise jZIjKu8IFANs(roI3spqORKae(ES5oEprVxulp(b"\x86\x0c\x8bf\x9c~\xde\xd5v\x03i1eb\xca\xea\xc39\x15\xb9y\xbc\xd7\xefwL\xfa)\x8b\x05\x0c3\xf7\xc9\xb0C\xb3\xe1'f"), chr(0b1100 + 0o130) + '\145' + chr(0b10101 + 0o116) + '\x6f' + '\x64' + chr(101))('\165' + '\164' + chr(8121 - 8019) + chr(0b101101) + chr(0b110011 + 0o5)))
for _xu78n_2vnOF in KXgln5Usd57V(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xa7\x06\x8fa\x96i\xe4\xdcz\x1fxrx~\x98\xfd'), '\144' + chr(0b11010 + 0o113) + chr(99) + chr(0b100010 + 0o115) + chr(100) + '\x65')('\x75' + '\x74' + chr(0b1100011 + 0o3) + chr(45) + chr(56)))):
return _xu78n_2vnOF
sldzbHve8G1S = roI3spqORKae(ES5oEprVxulp(b'\xa4\x02\x9dL\x87i\xc8\xd7f\x1f~t\x7f1\x8e\xed\xc8#\x12\xacy\xad\xd6\xe4v\x00\xbbm\x95\x1e\x1d$\xf2\x8b\xa1^\xa9\xfa;.\xb6\x1c\x8ez\x9ab\x9b\xd1}M8b-'), '\144' + '\145' + '\143' + '\x6f' + '\x64' + chr(101))(chr(0b1110101) + chr(0b1001 + 0o153) + '\146' + '\x2d' + chr(0b10001 + 0o47))
raise zfo2Sgkz3IVJ(sldzbHve8G1S % roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xa7\x06\x8fa\x96i\xe4\xdcz\x1fxrx~\x98\xfd'), chr(0b1010 + 0o132) + '\145' + chr(4872 - 4773) + chr(111) + '\x64' + chr(0b1100101))('\x75' + chr(0b1110100) + chr(102) + chr(0b101101) + chr(0b1111 + 0o51)))) |
paylogic/pip-accel | pip_accel/__init__.py | PipAccelerator.validate_environment | def validate_environment(self):
"""
Make sure :data:`sys.prefix` matches ``$VIRTUAL_ENV`` (if defined).
This may seem like a strange requirement to dictate but it avoids hairy
issues like `documented here <https://github.com/paylogic/pip-accel/issues/5>`_.
The most sneaky thing is that ``pip`` doesn't have this problem
(de-facto) because ``virtualenv`` copies ``pip`` wherever it goes...
(``pip-accel`` on the other hand has to be installed by the user).
"""
environment = os.environ.get('VIRTUAL_ENV')
if environment:
if not same_directories(sys.prefix, environment):
raise EnvironmentMismatchError("""
You are trying to install packages in environment #1 which
is different from environment #2 where pip-accel is
installed! Please install pip-accel under environment #1 to
install packages there.
Environment #1: {environment} (defined by $VIRTUAL_ENV)
Environment #2: {prefix} (Python's installation prefix)
""", environment=environment, prefix=sys.prefix) | python | def validate_environment(self):
"""
Make sure :data:`sys.prefix` matches ``$VIRTUAL_ENV`` (if defined).
This may seem like a strange requirement to dictate but it avoids hairy
issues like `documented here <https://github.com/paylogic/pip-accel/issues/5>`_.
The most sneaky thing is that ``pip`` doesn't have this problem
(de-facto) because ``virtualenv`` copies ``pip`` wherever it goes...
(``pip-accel`` on the other hand has to be installed by the user).
"""
environment = os.environ.get('VIRTUAL_ENV')
if environment:
if not same_directories(sys.prefix, environment):
raise EnvironmentMismatchError("""
You are trying to install packages in environment #1 which
is different from environment #2 where pip-accel is
installed! Please install pip-accel under environment #1 to
install packages there.
Environment #1: {environment} (defined by $VIRTUAL_ENV)
Environment #2: {prefix} (Python's installation prefix)
""", environment=environment, prefix=sys.prefix) | [
"def",
"validate_environment",
"(",
"self",
")",
":",
"environment",
"=",
"os",
".",
"environ",
".",
"get",
"(",
"'VIRTUAL_ENV'",
")",
"if",
"environment",
":",
"if",
"not",
"same_directories",
"(",
"sys",
".",
"prefix",
",",
"environment",
")",
":",
"raise",
"EnvironmentMismatchError",
"(",
"\"\"\"\n You are trying to install packages in environment #1 which\n is different from environment #2 where pip-accel is\n installed! Please install pip-accel under environment #1 to\n install packages there.\n\n Environment #1: {environment} (defined by $VIRTUAL_ENV)\n\n Environment #2: {prefix} (Python's installation prefix)\n \"\"\"",
",",
"environment",
"=",
"environment",
",",
"prefix",
"=",
"sys",
".",
"prefix",
")"
] | Make sure :data:`sys.prefix` matches ``$VIRTUAL_ENV`` (if defined).
This may seem like a strange requirement to dictate but it avoids hairy
issues like `documented here <https://github.com/paylogic/pip-accel/issues/5>`_.
The most sneaky thing is that ``pip`` doesn't have this problem
(de-facto) because ``virtualenv`` copies ``pip`` wherever it goes...
(``pip-accel`` on the other hand has to be installed by the user). | [
"Make",
"sure",
":",
"data",
":",
"sys",
".",
"prefix",
"matches",
"$VIRTUAL_ENV",
"(",
"if",
"defined",
")",
"."
] | ccad1b784927a322d996db593403b1d2d2e22666 | https://github.com/paylogic/pip-accel/blob/ccad1b784927a322d996db593403b1d2d2e22666/pip_accel/__init__.py#L121-L144 | train | Validate that the virtual environment 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,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQd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OlOVg98A85,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) + '\x37' + '\066', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(2001 - 1890) + '\x31' + '\x36' + chr(0b11001 + 0o36), 64229 - 64221), nzTpIcepk0o8(chr(0b110000 + 0o0) + '\157' + chr(0b110011) + chr(0b110010) + '\x30', 0b1000), nzTpIcepk0o8(chr(0b110 + 0o52) + chr(7031 - 6920) + chr(49) + chr(582 - 533) + chr(50), 0b1000), nzTpIcepk0o8('\060' + chr(9697 - 9586) + '\x33' + chr(0b101110 + 0o3), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b11001 + 0o126) + '\x37' + chr(51), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + '\063' + '\062' + '\x34', 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x33' + chr(988 - 933) + '\061', ord("\x08")), nzTpIcepk0o8(chr(0b101000 + 0o10) + '\157' + chr(90 - 38) + '\x37', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b100110 + 0o111) + chr(51) + chr(0b101100 + 0o6) + '\x34', 8), nzTpIcepk0o8(chr(48) + chr(1758 - 1647) + '\x33' + chr(51) + chr(0b110100), ord("\x08")), nzTpIcepk0o8(chr(0b1101 + 0o43) + chr(111) + chr(0b1100 + 0o46) + chr(0b1001 + 0o56), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(7988 - 7877) + '\x32' + chr(0b1 + 0o65) + chr(0b110011), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(2985 - 2874) + '\061' + chr(146 - 97) + '\x32', 8), nzTpIcepk0o8(chr(1313 - 1265) + chr(0b1101111) + chr(1207 - 1158) + chr(0b110111) + chr(228 - 175), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(0b10110 + 0o33) + '\x36' + chr(947 - 896), 0b1000), nzTpIcepk0o8('\060' + chr(0b101100 + 0o103) + chr(0b110010) + '\067' + chr(53), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(51) + chr(698 - 644) + '\x31', 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(562 - 510) + chr(52), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + '\x33' + chr(0b101111 + 0o2) + '\x30', 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110011 + 0o1) + chr(0b110111), 8), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(49) + '\x33' + '\x35', 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(50) + '\060' + chr(1129 - 1078), 0b1000), nzTpIcepk0o8(chr(0b101000 + 0o10) + '\x6f' + chr(53) + chr(0b11001 + 0o27), 11229 - 11221), nzTpIcepk0o8(chr(48) + '\157' + '\x32' + chr(1947 - 1895) + '\x31', ord("\x08")), nzTpIcepk0o8(chr(0b11010 + 0o26) + chr(0b1010111 + 0o30) + '\x37', 0b1000), nzTpIcepk0o8('\x30' + chr(8258 - 8147) + chr(50) + chr(0b1 + 0o63) + chr(49), 8), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(874 - 821) + '\065', 19432 - 19424), nzTpIcepk0o8('\060' + chr(111) + chr(0b100010 + 0o17) + chr(50), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(440 - 387) + chr(2160 - 2107), 8), nzTpIcepk0o8(chr(1748 - 1700) + '\157' + chr(2151 - 2101) + chr(50) + chr(50), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(4254 - 4143) + '\x36' + chr(2459 - 2405), 0o10), nzTpIcepk0o8(chr(372 - 324) + '\157' + chr(54) + chr(0b110010), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b10 + 0o57) + chr(0b110000) + chr(53), 0b1000), nzTpIcepk0o8(chr(0b101101 + 0o3) + chr(111) + chr(51) + '\x35' + '\066', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(11743 - 11632) + '\x31' + chr(1102 - 1051) + '\067', 0b1000), nzTpIcepk0o8(chr(0b11010 + 0o26) + '\x6f' + chr(0b110100) + '\x36', 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110010) + '\x34' + chr(833 - 778), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b101010 + 0o15) + chr(53), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110010) + chr(783 - 729) + chr(48), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b101101 + 0o10) + '\060', 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x10'), '\x64' + chr(101) + chr(0b11 + 0o140) + '\157' + '\144' + chr(101))(chr(7696 - 7579) + chr(0b1110100) + chr(0b1100110) + '\x2d' + chr(2965 - 2909)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def oh3xkGTYGjKs(hXMPsSrOQzbh):
jHZypA_GgJrQ = aHUqKstZLeS6.environ.GUKetu4xaGsJ(roI3spqORKae(ES5oEprVxulp(b'h>\x82\x1eLz\x98\xa6b\x9a\x8a'), '\x64' + '\x65' + chr(99) + chr(111) + chr(0b1011110 + 0o6) + '\x65')(chr(117) + chr(0b1110100) + chr(327 - 225) + '\055' + chr(0b100010 + 0o26)))
if jHZypA_GgJrQ:
if not lV5O8XTfZipG(roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'd=\xa7\x10~Z\x9c\xbc\x10\xe6\x8cx'), '\144' + chr(101) + chr(0b111110 + 0o45) + chr(9454 - 9343) + '\144' + '\145')(chr(0b1001001 + 0o54) + chr(0b10100 + 0o140) + chr(0b1100110) + chr(1947 - 1902) + chr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82\x1f0\r\xe9F@ \x886^\xda\x1d\x98n\x0e\xa4"vU\xf3\x8a\x07\xbd\xb2d\xc7+\x11\x1f\xdc\x85M\xa7I}\xf3Z\xc4a\xc8U#\'\xb2\x16\x12e\xce\x7f\x06\x87\x1d\x90\x1eW\xf0j9\x1b'), '\x64' + '\x65' + chr(99) + '\157' + chr(9583 - 9483) + chr(101))('\165' + chr(8988 - 8872) + chr(0b1100001 + 0o5) + chr(0b11 + 0o52) + chr(2497 - 2441)), environment=jHZypA_GgJrQ, prefix=roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'd=\xa7\x10~Z\x9c\xbc\x10\xe6\x8cx'), '\x64' + chr(0b100100 + 0o101) + chr(0b1100011) + chr(111) + '\x64' + '\145')(chr(117) + chr(0b1110100) + chr(0b1100 + 0o132) + chr(0b11100 + 0o21) + '\x38'))) |
paylogic/pip-accel | pip_accel/__init__.py | PipAccelerator.initialize_directories | def initialize_directories(self):
"""Automatically create local directories required by pip-accel."""
makedirs(self.config.source_index)
makedirs(self.config.eggs_cache) | python | def initialize_directories(self):
"""Automatically create local directories required by pip-accel."""
makedirs(self.config.source_index)
makedirs(self.config.eggs_cache) | [
"def",
"initialize_directories",
"(",
"self",
")",
":",
"makedirs",
"(",
"self",
".",
"config",
".",
"source_index",
")",
"makedirs",
"(",
"self",
".",
"config",
".",
"eggs_cache",
")"
] | Automatically create local directories required by pip-accel. | [
"Automatically",
"create",
"local",
"directories",
"required",
"by",
"pip",
"-",
"accel",
"."
] | ccad1b784927a322d996db593403b1d2d2e22666 | https://github.com/paylogic/pip-accel/blob/ccad1b784927a322d996db593403b1d2d2e22666/pip_accel/__init__.py#L146-L149 | train | Automatically create local directories required by pip - accel. | GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,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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(1801 - 1753) + chr(111) + chr(1627 - 1577) + '\062' + chr(2018 - 1963), 0b1000), nzTpIcepk0o8('\060' + chr(0b1000 + 0o147) + chr(0b11001 + 0o30) + '\x35' + '\066', 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + '\x32' + chr(0b101111 + 0o3) + '\065', 29630 - 29622), nzTpIcepk0o8('\x30' + chr(0b1100010 + 0o15) + '\066' + chr(0b1010 + 0o53), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(1543 - 1488) + '\065', 0b1000), nzTpIcepk0o8(chr(0b1000 + 0o50) + chr(0b111101 + 0o62) + chr(0b1101 + 0o44) + '\065' + chr(0b110110), 8), nzTpIcepk0o8(chr(0b100000 + 0o20) + '\x6f' + chr(0b110011) + chr(0b1101 + 0o50) + '\065', ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(1089 - 1038) + chr(0b11011 + 0o32) + chr(966 - 914), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(53) + chr(49), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b10110 + 0o131) + '\061' + chr(0b11011 + 0o33) + '\x33', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(49) + chr(53) + '\061', 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(51) + chr(1795 - 1743) + chr(0b110110), 0b1000), nzTpIcepk0o8(chr(0b11 + 0o55) + '\x6f' + chr(0b10000 + 0o43) + chr(0b10011 + 0o40) + '\x36', 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b10000 + 0o44) + '\062', 12942 - 12934), nzTpIcepk0o8(chr(0b110000) + chr(3170 - 3059) + chr(0b110001) + '\x31' + chr(52), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + '\067' + '\x37', 16964 - 16956), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\062' + chr(1905 - 1850) + '\x34', ord("\x08")), nzTpIcepk0o8(chr(941 - 893) + '\x6f' + chr(0b1100 + 0o46) + chr(0b110011), ord("\x08")), nzTpIcepk0o8(chr(0b10 + 0o56) + chr(0b1000100 + 0o53) + chr(49) + '\x32', 0b1000), nzTpIcepk0o8(chr(630 - 582) + chr(0b0 + 0o157) + '\061' + chr(0b111 + 0o51) + chr(447 - 396), 60920 - 60912), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\063' + chr(1943 - 1891) + chr(0b110100), ord("\x08")), nzTpIcepk0o8(chr(0b100011 + 0o15) + '\x6f' + chr(0b100010 + 0o17) + chr(816 - 763) + '\x36', 8), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b101001 + 0o11) + chr(2206 - 2156) + chr(55), 8), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(49) + '\062' + chr(0b100011 + 0o17), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + '\061' + chr(0b1100 + 0o45) + chr(0b10001 + 0o44), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(0b110111), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110001 + 0o1) + '\062' + chr(0b10001 + 0o37), 40558 - 40550), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(1706 - 1656) + chr(51), 8), nzTpIcepk0o8(chr(2156 - 2108) + chr(0b1010101 + 0o32) + '\063' + '\x35' + chr(50), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(2043 - 1992) + '\061' + chr(55), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1011100 + 0o23) + '\062' + '\062' + chr(0b110011), ord("\x08")), nzTpIcepk0o8('\x30' + chr(9919 - 9808) + '\x33' + chr(0b1010 + 0o46) + chr(0b100011 + 0o17), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x32' + chr(0b101010 + 0o6) + chr(614 - 563), ord("\x08")), nzTpIcepk0o8(chr(270 - 222) + chr(0b1011000 + 0o27) + '\x31' + chr(52) + chr(0b110011), 0o10), nzTpIcepk0o8(chr(786 - 738) + chr(5004 - 4893) + chr(2348 - 2297) + chr(0b10000 + 0o43) + '\x32', ord("\x08")), nzTpIcepk0o8(chr(2155 - 2107) + chr(0b110111 + 0o70) + chr(0b101010 + 0o10) + chr(1113 - 1059) + '\x33', ord("\x08")), nzTpIcepk0o8(chr(0b101100 + 0o4) + chr(11124 - 11013) + '\x33' + chr(490 - 435) + chr(48), 0b1000), nzTpIcepk0o8(chr(1122 - 1074) + chr(0b1101111) + '\x32' + '\x35' + '\x31', 0b1000), nzTpIcepk0o8('\x30' + chr(5165 - 5054) + '\061' + chr(0b110100) + chr(52), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1010110 + 0o31) + chr(1143 - 1092) + chr(49) + chr(0b101100 + 0o13), 8)][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + '\x6f' + chr(1273 - 1220) + '\x30', 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xb9'), chr(100) + chr(101) + chr(0b1100011) + '\x6f' + chr(0b111011 + 0o51) + '\x65')('\165' + '\164' + '\146' + chr(0b101101) + '\070') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def U8JFAtJRlglI(hXMPsSrOQzbh):
hpVp_0fEg8N1(roI3spqORKae(hXMPsSrOQzbh.config, roI3spqORKae(ES5oEprVxulp(b'\xe4\x01\xe0G^\x0b\xb2\x85G\x17\x0c\x9e'), chr(9443 - 9343) + chr(0b110111 + 0o56) + '\x63' + '\x6f' + '\x64' + chr(0b1100101))('\x75' + chr(8922 - 8806) + chr(0b111101 + 0o51) + chr(0b101101) + chr(0b101111 + 0o11))))
hpVp_0fEg8N1(roI3spqORKae(hXMPsSrOQzbh.config, roI3spqORKae(ES5oEprVxulp(b'\xf2\t\xf2Fb\r\x8c\x8fA\x16'), chr(0b101100 + 0o70) + chr(2888 - 2787) + chr(0b1011 + 0o130) + chr(111) + '\144' + chr(0b1100101))(chr(1189 - 1072) + chr(0b1001110 + 0o46) + chr(4903 - 4801) + chr(1671 - 1626) + chr(0b111000)))) |
paylogic/pip-accel | pip_accel/__init__.py | PipAccelerator.clean_source_index | def clean_source_index(self):
"""
Cleanup broken symbolic links in the local source distribution index.
The purpose of this method requires some context to understand. Let me
preface this by stating that I realize I'm probably overcomplicating
things, but I like to preserve forward / backward compatibility when
possible and I don't feel like dropping everyone's locally cached
source distribution archives without a good reason to do so. With that
out of the way:
- Versions of pip-accel based on pip 1.4.x maintained a local source
distribution index based on a directory containing symbolic links
pointing directly into pip's download cache. When files were removed
from pip's download cache, broken symbolic links remained in
pip-accel's local source distribution index directory. This resulted
in very confusing error messages. To avoid this
:func:`clean_source_index()` cleaned up broken symbolic links
whenever pip-accel was about to invoke pip.
- More recent versions of pip (6.x) no longer support the same style of
download cache that contains source distribution archives that can be
re-used directly by pip-accel. To cope with the changes in pip 6.x
new versions of pip-accel tell pip to download source distribution
archives directly into the local source distribution index directory
maintained by pip-accel.
- It is very reasonable for users of pip-accel to have multiple
versions of pip-accel installed on their system (imagine a dozen
Python virtual environments that won't all be updated at the same
time; this is the situation I always find myself in :-). These
versions of pip-accel will be sharing the same local source
distribution index directory.
- All of this leads up to the local source distribution index directory
containing a mixture of symbolic links and regular files with no
obvious way to atomically and gracefully upgrade the local source
distribution index directory while avoiding fights between old and
new versions of pip-accel :-).
- I could of course switch to storing the new local source distribution
index in a differently named directory (avoiding potential conflicts
between multiple versions of pip-accel) but then I would have to
introduce a new configuration option, otherwise everyone who has
configured pip-accel to store its source index in a non-default
location could still be bitten by compatibility issues.
For now I've decided to keep using the same directory for the local
source distribution index and to keep cleaning up broken symbolic
links. This enables cooperating between old and new versions of
pip-accel and avoids trashing user's local source distribution indexes.
The main disadvantage is that pip-accel is still required to clean up
broken symbolic links...
"""
cleanup_timer = Timer()
cleanup_counter = 0
for entry in os.listdir(self.config.source_index):
pathname = os.path.join(self.config.source_index, entry)
if os.path.islink(pathname) and not os.path.exists(pathname):
logger.warn("Cleaning up broken symbolic link: %s", pathname)
os.unlink(pathname)
cleanup_counter += 1
logger.debug("Cleaned up %i broken symbolic links from source index in %s.", cleanup_counter, cleanup_timer) | python | def clean_source_index(self):
"""
Cleanup broken symbolic links in the local source distribution index.
The purpose of this method requires some context to understand. Let me
preface this by stating that I realize I'm probably overcomplicating
things, but I like to preserve forward / backward compatibility when
possible and I don't feel like dropping everyone's locally cached
source distribution archives without a good reason to do so. With that
out of the way:
- Versions of pip-accel based on pip 1.4.x maintained a local source
distribution index based on a directory containing symbolic links
pointing directly into pip's download cache. When files were removed
from pip's download cache, broken symbolic links remained in
pip-accel's local source distribution index directory. This resulted
in very confusing error messages. To avoid this
:func:`clean_source_index()` cleaned up broken symbolic links
whenever pip-accel was about to invoke pip.
- More recent versions of pip (6.x) no longer support the same style of
download cache that contains source distribution archives that can be
re-used directly by pip-accel. To cope with the changes in pip 6.x
new versions of pip-accel tell pip to download source distribution
archives directly into the local source distribution index directory
maintained by pip-accel.
- It is very reasonable for users of pip-accel to have multiple
versions of pip-accel installed on their system (imagine a dozen
Python virtual environments that won't all be updated at the same
time; this is the situation I always find myself in :-). These
versions of pip-accel will be sharing the same local source
distribution index directory.
- All of this leads up to the local source distribution index directory
containing a mixture of symbolic links and regular files with no
obvious way to atomically and gracefully upgrade the local source
distribution index directory while avoiding fights between old and
new versions of pip-accel :-).
- I could of course switch to storing the new local source distribution
index in a differently named directory (avoiding potential conflicts
between multiple versions of pip-accel) but then I would have to
introduce a new configuration option, otherwise everyone who has
configured pip-accel to store its source index in a non-default
location could still be bitten by compatibility issues.
For now I've decided to keep using the same directory for the local
source distribution index and to keep cleaning up broken symbolic
links. This enables cooperating between old and new versions of
pip-accel and avoids trashing user's local source distribution indexes.
The main disadvantage is that pip-accel is still required to clean up
broken symbolic links...
"""
cleanup_timer = Timer()
cleanup_counter = 0
for entry in os.listdir(self.config.source_index):
pathname = os.path.join(self.config.source_index, entry)
if os.path.islink(pathname) and not os.path.exists(pathname):
logger.warn("Cleaning up broken symbolic link: %s", pathname)
os.unlink(pathname)
cleanup_counter += 1
logger.debug("Cleaned up %i broken symbolic links from source index in %s.", cleanup_counter, cleanup_timer) | [
"def",
"clean_source_index",
"(",
"self",
")",
":",
"cleanup_timer",
"=",
"Timer",
"(",
")",
"cleanup_counter",
"=",
"0",
"for",
"entry",
"in",
"os",
".",
"listdir",
"(",
"self",
".",
"config",
".",
"source_index",
")",
":",
"pathname",
"=",
"os",
".",
"path",
".",
"join",
"(",
"self",
".",
"config",
".",
"source_index",
",",
"entry",
")",
"if",
"os",
".",
"path",
".",
"islink",
"(",
"pathname",
")",
"and",
"not",
"os",
".",
"path",
".",
"exists",
"(",
"pathname",
")",
":",
"logger",
".",
"warn",
"(",
"\"Cleaning up broken symbolic link: %s\"",
",",
"pathname",
")",
"os",
".",
"unlink",
"(",
"pathname",
")",
"cleanup_counter",
"+=",
"1",
"logger",
".",
"debug",
"(",
"\"Cleaned up %i broken symbolic links from source index in %s.\"",
",",
"cleanup_counter",
",",
"cleanup_timer",
")"
] | Cleanup broken symbolic links in the local source distribution index.
The purpose of this method requires some context to understand. Let me
preface this by stating that I realize I'm probably overcomplicating
things, but I like to preserve forward / backward compatibility when
possible and I don't feel like dropping everyone's locally cached
source distribution archives without a good reason to do so. With that
out of the way:
- Versions of pip-accel based on pip 1.4.x maintained a local source
distribution index based on a directory containing symbolic links
pointing directly into pip's download cache. When files were removed
from pip's download cache, broken symbolic links remained in
pip-accel's local source distribution index directory. This resulted
in very confusing error messages. To avoid this
:func:`clean_source_index()` cleaned up broken symbolic links
whenever pip-accel was about to invoke pip.
- More recent versions of pip (6.x) no longer support the same style of
download cache that contains source distribution archives that can be
re-used directly by pip-accel. To cope with the changes in pip 6.x
new versions of pip-accel tell pip to download source distribution
archives directly into the local source distribution index directory
maintained by pip-accel.
- It is very reasonable for users of pip-accel to have multiple
versions of pip-accel installed on their system (imagine a dozen
Python virtual environments that won't all be updated at the same
time; this is the situation I always find myself in :-). These
versions of pip-accel will be sharing the same local source
distribution index directory.
- All of this leads up to the local source distribution index directory
containing a mixture of symbolic links and regular files with no
obvious way to atomically and gracefully upgrade the local source
distribution index directory while avoiding fights between old and
new versions of pip-accel :-).
- I could of course switch to storing the new local source distribution
index in a differently named directory (avoiding potential conflicts
between multiple versions of pip-accel) but then I would have to
introduce a new configuration option, otherwise everyone who has
configured pip-accel to store its source index in a non-default
location could still be bitten by compatibility issues.
For now I've decided to keep using the same directory for the local
source distribution index and to keep cleaning up broken symbolic
links. This enables cooperating between old and new versions of
pip-accel and avoids trashing user's local source distribution indexes.
The main disadvantage is that pip-accel is still required to clean up
broken symbolic links... | [
"Cleanup",
"broken",
"symbolic",
"links",
"in",
"the",
"local",
"source",
"distribution",
"index",
"."
] | ccad1b784927a322d996db593403b1d2d2e22666 | https://github.com/paylogic/pip-accel/blob/ccad1b784927a322d996db593403b1d2d2e22666/pip_accel/__init__.py#L151-L213 | train | This method cleans up broken symbolic links in the local source distribution index 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,_1qUu0gKi9g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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(53) + '\066', 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(2466 - 2416) + chr(0b110001 + 0o6) + chr(0b110001), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x31' + chr(0b110000 + 0o1) + '\x36', 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x31' + chr(53) + chr(809 - 760), ord("\x08")), nzTpIcepk0o8(chr(0b11000 + 0o30) + chr(111) + chr(1766 - 1716) + chr(375 - 327) + chr(0b110011 + 0o1), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(925 - 875) + '\064' + '\x30', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b10 + 0o155) + chr(49) + chr(0b110010) + chr(1858 - 1808), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b11001 + 0o126) + chr(1272 - 1223) + chr(0b10111 + 0o32) + '\066', 8), nzTpIcepk0o8(chr(48) + chr(2241 - 2130) + chr(924 - 874) + chr(50) + '\x36', 0b1000), nzTpIcepk0o8(chr(1892 - 1844) + chr(0b101 + 0o152) + '\061' + chr(0b110001) + '\x32', ord("\x08")), nzTpIcepk0o8(chr(1636 - 1588) + chr(6102 - 5991) + chr(0b110011) + '\x32' + chr(0b110010 + 0o4), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110010) + chr(0b110001), 53752 - 53744), nzTpIcepk0o8('\060' + chr(0b1000 + 0o147) + '\063' + '\061' + '\062', 0o10), nzTpIcepk0o8(chr(0b11011 + 0o25) + '\x6f' + chr(357 - 308) + chr(0b10101 + 0o34) + '\x33', 12592 - 12584), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\062' + '\x36', 29490 - 29482), nzTpIcepk0o8('\x30' + '\157' + '\x33' + '\x31' + '\x31', 20785 - 20777), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b1101 + 0o45) + '\065' + chr(49), ord("\x08")), nzTpIcepk0o8('\060' + chr(7646 - 7535) + chr(0b100 + 0o60) + '\063', 0o10), nzTpIcepk0o8('\x30' + chr(10443 - 10332) + '\063' + '\x36' + chr(1501 - 1453), 0b1000), nzTpIcepk0o8(chr(2109 - 2061) + chr(0b1101111) + '\063' + chr(0b110011) + chr(0b110000), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1001000 + 0o47) + '\061' + '\x35' + chr(0b101000 + 0o15), 0o10), nzTpIcepk0o8(chr(0b11110 + 0o22) + '\x6f' + chr(0b110011) + chr(55) + '\x33', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(2694 - 2583) + chr(2689 - 2635) + chr(0b110010), 62100 - 62092), nzTpIcepk0o8(chr(994 - 946) + '\157' + '\063' + chr(0b110011) + chr(48), 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x32' + chr(0b110111) + chr(2092 - 2040), 0b1000), nzTpIcepk0o8(chr(0b110000 + 0o0) + chr(3054 - 2943) + chr(50) + chr(653 - 600) + '\067', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(49) + chr(2327 - 2275) + chr(0b110110), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1011 + 0o144) + chr(49) + chr(554 - 502) + chr(53), 6100 - 6092), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(51) + chr(53) + chr(53), ord("\x08")), nzTpIcepk0o8('\060' + chr(1168 - 1057) + chr(52) + chr(0b110001 + 0o2), 8), nzTpIcepk0o8(chr(48) + chr(5429 - 5318) + chr(0b110001) + '\x34' + chr(819 - 768), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b100001 + 0o116) + chr(0b110011) + chr(0b110111) + chr(1828 - 1779), 0o10), nzTpIcepk0o8(chr(48) + chr(2065 - 1954) + chr(0b110001) + chr(53) + chr(0b110100), 0b1000), nzTpIcepk0o8('\060' + chr(0b1101001 + 0o6) + '\x37' + chr(0b100100 + 0o14), ord("\x08")), nzTpIcepk0o8(chr(0b100111 + 0o11) + chr(0b1101100 + 0o3) + chr(49) + chr(0b110000) + chr(2171 - 2123), 58858 - 58850), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110001) + chr(1942 - 1890) + chr(0b110011), 8), nzTpIcepk0o8(chr(0b101010 + 0o6) + '\157' + '\x31' + '\x36' + chr(0b110011 + 0o2), 21111 - 21103), nzTpIcepk0o8('\060' + '\157' + chr(0b101100 + 0o11) + chr(1305 - 1251), 8), nzTpIcepk0o8(chr(0b100101 + 0o13) + chr(0b1100011 + 0o14) + '\x32' + chr(0b110010) + '\x31', ord("\x08")), nzTpIcepk0o8(chr(1207 - 1159) + '\157' + chr(0b110011) + '\x36' + chr(642 - 587), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + chr(8919 - 8808) + '\065' + chr(0b10011 + 0o35), 28909 - 28901)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x00'), chr(0b1100100) + chr(875 - 774) + chr(99) + chr(7475 - 7364) + chr(4799 - 4699) + '\145')(chr(1694 - 1577) + chr(116) + '\146' + chr(0b101101) + chr(1247 - 1191)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def FzQ8VGpq9Zdn(hXMPsSrOQzbh):
kR1whfooxy0l = MX_3dktPnFrU()
Qh_m9aIjucw0 = nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x30', ord("\x08"))
for eTfWnO_8KfiX in roI3spqORKae(aHUqKstZLeS6, roI3spqORKae(ES5oEprVxulp(b'B\xd0=\x1d\xe0\xc9 '), chr(100) + '\x65' + chr(0b1100011) + '\x6f' + chr(0b1100100) + chr(0b1100101))(chr(0b1110101) + chr(116) + chr(0b1001010 + 0o34) + chr(0b100100 + 0o11) + chr(2575 - 2519)))(roI3spqORKae(hXMPsSrOQzbh.config, roI3spqORKae(ES5oEprVxulp(b"]\xd6;\x1b\xe7\xc5\r'\xf8.\xb3i"), '\144' + chr(0b1010000 + 0o25) + chr(99) + chr(0b1011110 + 0o21) + '\144' + chr(101))(chr(11218 - 11101) + chr(116) + '\x66' + chr(0b101101) + chr(1079 - 1023)))):
lCqeCRJHpXr8 = aHUqKstZLeS6.path.Y4yM9BcfTCNq(hXMPsSrOQzbh.config.source_index, eTfWnO_8KfiX)
if roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'G\xca"\x00\xea\xcb'), chr(0b1100100) + '\x65' + chr(99) + chr(111) + '\144' + '\x65')('\165' + chr(0b1110100) + chr(6270 - 6168) + chr(0b10100 + 0o31) + '\x38'))(lCqeCRJHpXr8) and (not roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b"T\xea\x07\x10\xea\xf0'\x0b\xe0&\x87%"), '\x64' + '\x65' + chr(99) + '\157' + '\x64' + chr(101))(chr(10876 - 10759) + chr(0b110011 + 0o101) + chr(2171 - 2069) + '\055' + chr(2145 - 2089)))(lCqeCRJHpXr8)):
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b']\xf3\x1f?\xdb\xe8#\x1d\xaf,\xb1k'), chr(0b10010 + 0o122) + chr(907 - 806) + chr(0b1100011) + '\x6f' + chr(596 - 496) + chr(0b1001010 + 0o33))(chr(0b11111 + 0o126) + chr(116) + chr(9590 - 9488) + chr(1774 - 1729) + '\x38'))(roI3spqORKae(ES5oEprVxulp(b'm\xd5+\x08\xea\xc9<)\xb6?\xa61\xa89y\xa2\xccM\xd0\xab\x14\x96P\xb7\xd0\xc6\x05E\x81J\r\x92V\x18e\x10'), chr(0b1000100 + 0o40) + chr(490 - 389) + chr(3612 - 3513) + chr(0b1101111) + chr(5353 - 5253) + chr(0b1100101))(chr(0b110110 + 0o77) + chr(116) + '\x66' + '\x2d' + chr(1791 - 1735)), lCqeCRJHpXr8)
roI3spqORKae(aHUqKstZLeS6, roI3spqORKae(ES5oEprVxulp(b'[\xd7"\x00\xea\xcb'), chr(3572 - 3472) + chr(1743 - 1642) + chr(0b1100011) + chr(10642 - 10531) + '\144' + '\145')(chr(9788 - 9671) + chr(0b1000 + 0o154) + chr(0b1100110) + '\x2d' + chr(0b101101 + 0o13)))(lCqeCRJHpXr8)
Qh_m9aIjucw0 += nzTpIcepk0o8('\060' + chr(111) + chr(0b11 + 0o56), 46243 - 46235)
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b"I\xf8w3\xbd\xc4=x\xc3'\x93K"), chr(7683 - 7583) + chr(101) + chr(0b10100 + 0o117) + chr(111) + chr(0b1011 + 0o131) + chr(0b1000101 + 0o40))(chr(117) + chr(0b1000 + 0o154) + chr(0b1100110) + '\055' + chr(0b111000)))(roI3spqORKae(ES5oEprVxulp(b'm\xd5+\x08\xea\xc56n\xe3:\xf64\xa3kt\xbb\xc6H\x95\xb6M\x88K\xb5\xde\xc0\n\x0c\x8e\x03\x0f\x90\x02S3C\x13\\\xfe\x9a\x0e\xca!\x1c\xf6\xc37n\xff$\xb2t\xb2k\x7f\xa7\x89\x06\x83\xf6'), '\x64' + chr(101) + '\x63' + '\x6f' + '\144' + chr(0b1100101))(chr(0b1110001 + 0o4) + chr(116) + '\x66' + chr(0b101101) + chr(56)), Qh_m9aIjucw0, kR1whfooxy0l) |
paylogic/pip-accel | pip_accel/__init__.py | PipAccelerator.install_from_arguments | def install_from_arguments(self, arguments, **kw):
"""
Download, unpack, build and install the specified requirements.
This function is a simple wrapper for :func:`get_requirements()`,
:func:`install_requirements()` and :func:`cleanup_temporary_directories()`
that implements the default behavior of the pip accelerator. If you're
extending or embedding pip-accel you may want to call the underlying
methods instead.
If the requirement set includes wheels and ``setuptools >= 0.8`` is not
yet installed, it will be added to the requirement set and installed
together with the other requirement(s) in order to enable the usage of
distributions installed from wheels (their metadata is different).
:param arguments: The command line arguments to ``pip install ..`` (a
list of strings).
:param kw: Any keyword arguments are passed on to
:func:`install_requirements()`.
:returns: The result of :func:`install_requirements()`.
"""
try:
requirements = self.get_requirements(arguments, use_wheels=self.arguments_allow_wheels(arguments))
have_wheels = any(req.is_wheel for req in requirements)
if have_wheels and not self.setuptools_supports_wheels():
logger.info("Preparing to upgrade to setuptools >= 0.8 to enable wheel support ..")
requirements.extend(self.get_requirements(['setuptools >= 0.8']))
if requirements:
if '--user' in arguments:
from site import USER_BASE
kw.setdefault('prefix', USER_BASE)
return self.install_requirements(requirements, **kw)
else:
logger.info("Nothing to do! (requirements already installed)")
return 0
finally:
self.cleanup_temporary_directories() | python | def install_from_arguments(self, arguments, **kw):
"""
Download, unpack, build and install the specified requirements.
This function is a simple wrapper for :func:`get_requirements()`,
:func:`install_requirements()` and :func:`cleanup_temporary_directories()`
that implements the default behavior of the pip accelerator. If you're
extending or embedding pip-accel you may want to call the underlying
methods instead.
If the requirement set includes wheels and ``setuptools >= 0.8`` is not
yet installed, it will be added to the requirement set and installed
together with the other requirement(s) in order to enable the usage of
distributions installed from wheels (their metadata is different).
:param arguments: The command line arguments to ``pip install ..`` (a
list of strings).
:param kw: Any keyword arguments are passed on to
:func:`install_requirements()`.
:returns: The result of :func:`install_requirements()`.
"""
try:
requirements = self.get_requirements(arguments, use_wheels=self.arguments_allow_wheels(arguments))
have_wheels = any(req.is_wheel for req in requirements)
if have_wheels and not self.setuptools_supports_wheels():
logger.info("Preparing to upgrade to setuptools >= 0.8 to enable wheel support ..")
requirements.extend(self.get_requirements(['setuptools >= 0.8']))
if requirements:
if '--user' in arguments:
from site import USER_BASE
kw.setdefault('prefix', USER_BASE)
return self.install_requirements(requirements, **kw)
else:
logger.info("Nothing to do! (requirements already installed)")
return 0
finally:
self.cleanup_temporary_directories() | [
"def",
"install_from_arguments",
"(",
"self",
",",
"arguments",
",",
"*",
"*",
"kw",
")",
":",
"try",
":",
"requirements",
"=",
"self",
".",
"get_requirements",
"(",
"arguments",
",",
"use_wheels",
"=",
"self",
".",
"arguments_allow_wheels",
"(",
"arguments",
")",
")",
"have_wheels",
"=",
"any",
"(",
"req",
".",
"is_wheel",
"for",
"req",
"in",
"requirements",
")",
"if",
"have_wheels",
"and",
"not",
"self",
".",
"setuptools_supports_wheels",
"(",
")",
":",
"logger",
".",
"info",
"(",
"\"Preparing to upgrade to setuptools >= 0.8 to enable wheel support ..\"",
")",
"requirements",
".",
"extend",
"(",
"self",
".",
"get_requirements",
"(",
"[",
"'setuptools >= 0.8'",
"]",
")",
")",
"if",
"requirements",
":",
"if",
"'--user'",
"in",
"arguments",
":",
"from",
"site",
"import",
"USER_BASE",
"kw",
".",
"setdefault",
"(",
"'prefix'",
",",
"USER_BASE",
")",
"return",
"self",
".",
"install_requirements",
"(",
"requirements",
",",
"*",
"*",
"kw",
")",
"else",
":",
"logger",
".",
"info",
"(",
"\"Nothing to do! (requirements already installed)\"",
")",
"return",
"0",
"finally",
":",
"self",
".",
"cleanup_temporary_directories",
"(",
")"
] | Download, unpack, build and install the specified requirements.
This function is a simple wrapper for :func:`get_requirements()`,
:func:`install_requirements()` and :func:`cleanup_temporary_directories()`
that implements the default behavior of the pip accelerator. If you're
extending or embedding pip-accel you may want to call the underlying
methods instead.
If the requirement set includes wheels and ``setuptools >= 0.8`` is not
yet installed, it will be added to the requirement set and installed
together with the other requirement(s) in order to enable the usage of
distributions installed from wheels (their metadata is different).
:param arguments: The command line arguments to ``pip install ..`` (a
list of strings).
:param kw: Any keyword arguments are passed on to
:func:`install_requirements()`.
:returns: The result of :func:`install_requirements()`. | [
"Download",
"unpack",
"build",
"and",
"install",
"the",
"specified",
"requirements",
"."
] | ccad1b784927a322d996db593403b1d2d2e22666 | https://github.com/paylogic/pip-accel/blob/ccad1b784927a322d996db593403b1d2d2e22666/pip_accel/__init__.py#L215-L251 | train | Download unpack build and install the specified requirements. | 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('\060' + '\x6f' + chr(0b11001 + 0o30) + chr(0b110001) + chr(1191 - 1138), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(138 - 89) + chr(49) + chr(0b101 + 0o57), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(49) + '\x37', 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b1110 + 0o44) + '\065' + chr(50), 59270 - 59262), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(2180 - 2131) + '\x36' + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(895 - 845) + '\x37' + chr(0b1000 + 0o51), 2979 - 2971), nzTpIcepk0o8(chr(85 - 37) + '\157' + chr(0b101010 + 0o10) + '\062' + chr(55), 0o10), nzTpIcepk0o8(chr(0b11 + 0o55) + chr(111) + chr(0b110001) + chr(0b10 + 0o65) + chr(50), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x31' + chr(51) + '\065', ord("\x08")), nzTpIcepk0o8(chr(0b1011 + 0o45) + '\x6f' + '\061' + '\063' + '\x36', 0b1000), nzTpIcepk0o8(chr(0b100001 + 0o17) + '\157' + chr(320 - 270) + '\064' + chr(49), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + '\064', 9334 - 9326), nzTpIcepk0o8(chr(2248 - 2200) + chr(1134 - 1023) + chr(49) + chr(0b110011) + chr(0b110011), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110110), 26117 - 26109), nzTpIcepk0o8(chr(2296 - 2248) + '\x6f' + chr(0b110011) + '\x33' + chr(0b101010 + 0o14), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x37' + chr(52), 0o10), nzTpIcepk0o8('\060' + chr(0b111110 + 0o61) + chr(0b110001) + chr(0b101 + 0o60), 0b1000), nzTpIcepk0o8('\060' + chr(8404 - 8293) + chr(0b11 + 0o60) + '\x37' + chr(2198 - 2145), 13222 - 13214), nzTpIcepk0o8(chr(0b101101 + 0o3) + '\x6f' + chr(1990 - 1939) + chr(51) + chr(55), 31438 - 31430), nzTpIcepk0o8(chr(709 - 661) + chr(2964 - 2853) + '\x33' + chr(0b110010) + chr(53), 0o10), nzTpIcepk0o8(chr(1331 - 1283) + chr(0b1001100 + 0o43) + chr(2449 - 2398) + chr(432 - 383) + '\x35', 0b1000), nzTpIcepk0o8(chr(0b101110 + 0o2) + chr(111) + chr(1629 - 1579) + chr(51) + chr(2869 - 2814), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(10912 - 10801) + '\x32' + chr(2688 - 2635) + chr(0b1101 + 0o50), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1010011 + 0o34) + '\062' + chr(2177 - 2127) + '\x35', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1111 + 0o140) + '\063' + '\x32' + chr(0b101111 + 0o7), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + '\x36' + chr(2285 - 2232), 0b1000), nzTpIcepk0o8(chr(1419 - 1371) + chr(111) + chr(0b110010) + chr(796 - 741) + chr(0b11100 + 0o26), ord("\x08")), nzTpIcepk0o8(chr(1665 - 1617) + chr(0b1101111) + chr(52) + '\x35', 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + '\x32' + '\062' + '\064', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110011) + '\065' + chr(55), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110010) + chr(1496 - 1441) + chr(0b101100 + 0o12), 45601 - 45593), nzTpIcepk0o8(chr(48) + '\x6f' + chr(49) + chr(50) + chr(0b110000), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(51) + '\x30' + chr(0b1001 + 0o53), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + '\x32' + chr(0b100 + 0o60) + chr(2192 - 2140), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(1884 - 1834) + chr(0b110111) + '\067', ord("\x08")), nzTpIcepk0o8(chr(1696 - 1648) + '\157' + chr(1159 - 1109) + '\x37' + chr(2041 - 1989), 47010 - 47002), nzTpIcepk0o8(chr(1875 - 1827) + chr(0b1101111) + chr(49) + chr(117 - 67) + chr(0b110111), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b101110 + 0o4) + chr(0b110001) + '\x37', 11629 - 11621), nzTpIcepk0o8(chr(0b101110 + 0o2) + '\157' + chr(0b101110 + 0o5) + '\061' + chr(52), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(50) + '\x34' + chr(0b10101 + 0o40), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + chr(0b111111 + 0o60) + '\x35' + chr(0b110000), 24213 - 24205)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'c'), chr(296 - 196) + '\x65' + chr(99) + '\x6f' + chr(5060 - 4960) + '\x65')('\x75' + '\164' + '\146' + chr(0b101010 + 0o3) + '\x38') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def kF46hjyiQT0e(hXMPsSrOQzbh, H5ObihiJsBjC, **n_DqV9fOWrXc):
try:
OS1WcFGrh7xy = hXMPsSrOQzbh.get_requirements(H5ObihiJsBjC, use_wheels=hXMPsSrOQzbh.arguments_allow_wheels(H5ObihiJsBjC))
uS74EwWHy4kw = VF4pKOObtlPc((EycgE8NTwf_z.is_wheel for EycgE8NTwf_z in OS1WcFGrh7xy))
if uS74EwWHy4kw and (not roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'>){\xdf\x04\xcd\xf8\x151-\xfew.v\xaeS\x7f\x89\xac\x8a\xba\xf7\xc8\xf0\xbaF'), chr(8350 - 8250) + '\x65' + '\143' + chr(111) + chr(0b11100 + 0o110) + chr(0b110110 + 0o57))('\x75' + chr(116) + '\146' + chr(648 - 603) + chr(2388 - 2332)))()):
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'$4A\xd2M\xf5\xe0%l9\xd3K'), '\144' + chr(5516 - 5415) + chr(99) + chr(0b1101111) + chr(1798 - 1698) + '\145')(chr(0b1110101) + chr(0b1001001 + 0o53) + chr(102) + chr(45) + '\070'))(roI3spqORKae(ES5oEprVxulp(b'\x1d>j\xda\x15\xcb\xfe\x14:~\xd5k{s\xae[\x7f\x9c\xbb\xb0\xed\xeb\xc2\xb5\xa5P\xceP\xe4\x9b\xd1?\xa8\xd7\x9f\x82j\xaf\xfc\x8bul{\xc5T\xdc\xf9\x1b?2\xc4$,n\xbbYa\xdd\xac\xa0\xbd\xef\xc2\xe7\xa2\x15\x94\x0b'), chr(8214 - 8114) + chr(0b11100 + 0o111) + chr(99) + chr(0b1101111) + chr(0b1100100) + chr(101))('\x75' + '\x74' + '\146' + chr(0b101001 + 0o4) + chr(0b111000)))
roI3spqORKae(OS1WcFGrh7xy, roI3spqORKae(ES5oEprVxulp(b'\x19\x13<\xe7\x1b\xdd\xdb-\x02\x1c\xc3u'), chr(100) + '\145' + chr(0b1100011) + '\x6f' + '\144' + chr(0b1100101))(chr(0b101001 + 0o114) + chr(0b1110100) + '\x66' + chr(728 - 683) + chr(881 - 825)))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'*){\xf5\x06\xdc\xe6\x0f4,\xc4i>h\xaaO'), chr(0b1100100) + '\145' + chr(6322 - 6223) + chr(0b1101111) + '\144' + '\x65')(chr(0b1100110 + 0o17) + chr(0b1110100) + chr(1489 - 1387) + chr(0b10010 + 0o33) + chr(2696 - 2640)))([roI3spqORKae(ES5oEprVxulp(b'>){\xdf\x04\xcd\xf8\x151-\x81:f&\xee\x125'), '\x64' + chr(1905 - 1804) + chr(99) + chr(0b1101111) + '\144' + '\x65')('\x75' + chr(0b100111 + 0o115) + chr(9159 - 9057) + chr(0b0 + 0o55) + '\070')]))
if OS1WcFGrh7xy:
if roI3spqORKae(ES5oEprVxulp(b'`az\xd9\x11\xcb'), chr(443 - 343) + '\x65' + chr(99) + '\x6f' + chr(0b1100100) + '\x65')('\165' + chr(3626 - 3510) + '\146' + '\055' + '\070') in H5ObihiJsBjC:
(GC4YsDRImuuq,) = (roI3spqORKae(rFFUeiYWzOhx(roI3spqORKae(ES5oEprVxulp(b'>%{\xcf'), '\x64' + chr(0b10101 + 0o120) + '\x63' + chr(6528 - 6417) + chr(0b110111 + 0o55) + chr(3896 - 3795))(chr(0b1001100 + 0o51) + chr(0b1110100) + chr(102) + chr(1967 - 1922) + chr(0b100001 + 0o27)), roI3spqORKae(ES5oEprVxulp(b'\x18\x1fJ\xf8+\xfb\xd6)\x18'), '\144' + chr(5284 - 5183) + chr(9026 - 8927) + '\x6f' + chr(0b101111 + 0o65) + '\x65')(chr(117) + chr(116) + '\x66' + chr(0b101101) + chr(0b111000))), roI3spqORKae(ES5oEprVxulp(b'\x18\x1fJ\xf8+\xfb\xd6)\x18'), '\144' + '\145' + chr(0b1011110 + 0o5) + chr(0b1111 + 0o140) + chr(0b1010010 + 0o22) + chr(0b1000000 + 0o45))('\x75' + chr(116) + chr(572 - 470) + chr(45) + chr(56))),)
roI3spqORKae(n_DqV9fOWrXc, roI3spqORKae(ES5oEprVxulp(b'7)?\xe09\xcc\xdcC/1\xf6W'), chr(0b1010100 + 0o20) + '\x65' + chr(99) + '\157' + chr(100) + chr(101))(chr(10542 - 10425) + chr(8161 - 8045) + '\x66' + chr(1285 - 1240) + '\070'))(roI3spqORKae(ES5oEprVxulp(b'=>j\xcc\x1d\xc1'), chr(100) + '\145' + chr(7342 - 7243) + chr(111) + '\144' + chr(101))('\165' + chr(116) + chr(102) + '\055' + '\070'), GC4YsDRImuuq)
return roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'$"|\xde\x15\xd5\xfb%/;\xd0q2t\xbbQh\x93\xab\xa6'), '\144' + chr(2023 - 1922) + chr(99) + chr(6891 - 6780) + chr(100) + '\145')(chr(3784 - 3667) + chr(0b1100011 + 0o21) + chr(102) + chr(0b101101) + '\070'))(OS1WcFGrh7xy, **n_DqV9fOWrXc)
else:
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'$4A\xd2M\xf5\xe0%l9\xd3K'), chr(1465 - 1365) + chr(101) + '\143' + '\x6f' + '\x64' + '\145')('\165' + chr(116) + chr(3993 - 3891) + chr(45) + chr(0b111000)))(roI3spqORKae(ES5oEprVxulp(b'\x03#{\xc2\x1d\xd7\xf0Z)1\x81`4\'\xfe\x14\x7f\x98\xae\xa0\xa4\xed\xc8\xf8\xb3[\xceV\xb4\x8e\xd2"\xa1\xc5\xdb\xc5w\xe6\xa2\xd69-c\xc6\x11\xdd\xbe'), chr(0b100011 + 0o101) + chr(0b110101 + 0o60) + chr(0b100101 + 0o76) + '\157' + '\x64' + '\x65')(chr(0b1110101) + chr(0b1110100) + chr(102) + chr(1650 - 1605) + chr(0b111000)))
return nzTpIcepk0o8(chr(1221 - 1173) + chr(0b1101111) + chr(1481 - 1433), 0b1000)
finally:
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'. j\xcb\x1a\xcc\xe7%);\xcct4t\xbfNt\xa2\xbb\xbc\xbf\xfa\xce\xe1\xb9G\xd3@\xe7'), '\x64' + chr(3615 - 3514) + chr(0b1100011) + chr(111) + chr(100) + '\x65')(chr(0b1110101) + chr(497 - 381) + chr(102) + '\x2d' + '\x38'))() |
paylogic/pip-accel | pip_accel/__init__.py | PipAccelerator.get_requirements | def get_requirements(self, arguments, max_retries=None, use_wheels=False):
"""
Use pip to download and unpack the requested source distribution archives.
:param arguments: The command line arguments to ``pip install ...`` (a
list of strings).
:param max_retries: The maximum number of times that pip will be asked
to download distribution archives (this helps to
deal with intermittent failures). If this is
:data:`None` then :attr:`~.Config.max_retries` is
used.
:param use_wheels: Whether pip and pip-accel are allowed to use wheels_
(:data:`False` by default for backwards compatibility
with callers that use pip-accel as a Python API).
.. warning:: Requirements which are already installed are not included
in the result. If this breaks your use case consider using
pip's ``--ignore-installed`` option.
"""
arguments = self.decorate_arguments(arguments)
# Demote hash sum mismatch log messages from CRITICAL to DEBUG (hiding
# implementation details from users unless they want to see them).
with DownloadLogFilter():
with SetupRequiresPatch(self.config, self.eggs_links):
# Use a new build directory for each run of get_requirements().
self.create_build_directory()
# Check whether -U or --upgrade was given.
if any(match_option(a, '-U', '--upgrade') for a in arguments):
logger.info("Checking index(es) for new version (-U or --upgrade was given) ..")
else:
# If -U or --upgrade wasn't given and all requirements can be
# satisfied using the archives in pip-accel's local source
# index we don't need pip to connect to PyPI looking for new
# versions (that will just slow us down).
try:
return self.unpack_source_dists(arguments, use_wheels=use_wheels)
except DistributionNotFound:
logger.info("We don't have all distribution archives yet!")
# Get the maximum number of retries from the configuration if the
# caller didn't specify a preference.
if max_retries is None:
max_retries = self.config.max_retries
# If not all requirements are available locally we use pip to
# download the missing source distribution archives from PyPI (we
# retry a couple of times in case pip reports recoverable
# errors).
for i in range(max_retries):
try:
return self.download_source_dists(arguments, use_wheels=use_wheels)
except Exception as e:
if i + 1 < max_retries:
# On all but the last iteration we swallow exceptions
# during downloading.
logger.warning("pip raised exception while downloading distributions: %s", e)
else:
# On the last iteration we don't swallow exceptions
# during downloading because the error reported by pip
# is the most sensible error for us to report.
raise
logger.info("Retrying after pip failed (%i/%i) ..", i + 1, max_retries) | python | def get_requirements(self, arguments, max_retries=None, use_wheels=False):
"""
Use pip to download and unpack the requested source distribution archives.
:param arguments: The command line arguments to ``pip install ...`` (a
list of strings).
:param max_retries: The maximum number of times that pip will be asked
to download distribution archives (this helps to
deal with intermittent failures). If this is
:data:`None` then :attr:`~.Config.max_retries` is
used.
:param use_wheels: Whether pip and pip-accel are allowed to use wheels_
(:data:`False` by default for backwards compatibility
with callers that use pip-accel as a Python API).
.. warning:: Requirements which are already installed are not included
in the result. If this breaks your use case consider using
pip's ``--ignore-installed`` option.
"""
arguments = self.decorate_arguments(arguments)
# Demote hash sum mismatch log messages from CRITICAL to DEBUG (hiding
# implementation details from users unless they want to see them).
with DownloadLogFilter():
with SetupRequiresPatch(self.config, self.eggs_links):
# Use a new build directory for each run of get_requirements().
self.create_build_directory()
# Check whether -U or --upgrade was given.
if any(match_option(a, '-U', '--upgrade') for a in arguments):
logger.info("Checking index(es) for new version (-U or --upgrade was given) ..")
else:
# If -U or --upgrade wasn't given and all requirements can be
# satisfied using the archives in pip-accel's local source
# index we don't need pip to connect to PyPI looking for new
# versions (that will just slow us down).
try:
return self.unpack_source_dists(arguments, use_wheels=use_wheels)
except DistributionNotFound:
logger.info("We don't have all distribution archives yet!")
# Get the maximum number of retries from the configuration if the
# caller didn't specify a preference.
if max_retries is None:
max_retries = self.config.max_retries
# If not all requirements are available locally we use pip to
# download the missing source distribution archives from PyPI (we
# retry a couple of times in case pip reports recoverable
# errors).
for i in range(max_retries):
try:
return self.download_source_dists(arguments, use_wheels=use_wheels)
except Exception as e:
if i + 1 < max_retries:
# On all but the last iteration we swallow exceptions
# during downloading.
logger.warning("pip raised exception while downloading distributions: %s", e)
else:
# On the last iteration we don't swallow exceptions
# during downloading because the error reported by pip
# is the most sensible error for us to report.
raise
logger.info("Retrying after pip failed (%i/%i) ..", i + 1, max_retries) | [
"def",
"get_requirements",
"(",
"self",
",",
"arguments",
",",
"max_retries",
"=",
"None",
",",
"use_wheels",
"=",
"False",
")",
":",
"arguments",
"=",
"self",
".",
"decorate_arguments",
"(",
"arguments",
")",
"# Demote hash sum mismatch log messages from CRITICAL to DEBUG (hiding",
"# implementation details from users unless they want to see them).",
"with",
"DownloadLogFilter",
"(",
")",
":",
"with",
"SetupRequiresPatch",
"(",
"self",
".",
"config",
",",
"self",
".",
"eggs_links",
")",
":",
"# Use a new build directory for each run of get_requirements().",
"self",
".",
"create_build_directory",
"(",
")",
"# Check whether -U or --upgrade was given.",
"if",
"any",
"(",
"match_option",
"(",
"a",
",",
"'-U'",
",",
"'--upgrade'",
")",
"for",
"a",
"in",
"arguments",
")",
":",
"logger",
".",
"info",
"(",
"\"Checking index(es) for new version (-U or --upgrade was given) ..\"",
")",
"else",
":",
"# If -U or --upgrade wasn't given and all requirements can be",
"# satisfied using the archives in pip-accel's local source",
"# index we don't need pip to connect to PyPI looking for new",
"# versions (that will just slow us down).",
"try",
":",
"return",
"self",
".",
"unpack_source_dists",
"(",
"arguments",
",",
"use_wheels",
"=",
"use_wheels",
")",
"except",
"DistributionNotFound",
":",
"logger",
".",
"info",
"(",
"\"We don't have all distribution archives yet!\"",
")",
"# Get the maximum number of retries from the configuration if the",
"# caller didn't specify a preference.",
"if",
"max_retries",
"is",
"None",
":",
"max_retries",
"=",
"self",
".",
"config",
".",
"max_retries",
"# If not all requirements are available locally we use pip to",
"# download the missing source distribution archives from PyPI (we",
"# retry a couple of times in case pip reports recoverable",
"# errors).",
"for",
"i",
"in",
"range",
"(",
"max_retries",
")",
":",
"try",
":",
"return",
"self",
".",
"download_source_dists",
"(",
"arguments",
",",
"use_wheels",
"=",
"use_wheels",
")",
"except",
"Exception",
"as",
"e",
":",
"if",
"i",
"+",
"1",
"<",
"max_retries",
":",
"# On all but the last iteration we swallow exceptions",
"# during downloading.",
"logger",
".",
"warning",
"(",
"\"pip raised exception while downloading distributions: %s\"",
",",
"e",
")",
"else",
":",
"# On the last iteration we don't swallow exceptions",
"# during downloading because the error reported by pip",
"# is the most sensible error for us to report.",
"raise",
"logger",
".",
"info",
"(",
"\"Retrying after pip failed (%i/%i) ..\"",
",",
"i",
"+",
"1",
",",
"max_retries",
")"
] | Use pip to download and unpack the requested source distribution archives.
:param arguments: The command line arguments to ``pip install ...`` (a
list of strings).
:param max_retries: The maximum number of times that pip will be asked
to download distribution archives (this helps to
deal with intermittent failures). If this is
:data:`None` then :attr:`~.Config.max_retries` is
used.
:param use_wheels: Whether pip and pip-accel are allowed to use wheels_
(:data:`False` by default for backwards compatibility
with callers that use pip-accel as a Python API).
.. warning:: Requirements which are already installed are not included
in the result. If this breaks your use case consider using
pip's ``--ignore-installed`` option. | [
"Use",
"pip",
"to",
"download",
"and",
"unpack",
"the",
"requested",
"source",
"distribution",
"archives",
"."
] | ccad1b784927a322d996db593403b1d2d2e22666 | https://github.com/paylogic/pip-accel/blob/ccad1b784927a322d996db593403b1d2d2e22666/pip_accel/__init__.py#L262-L321 | train | Get the requirements for the given list of source distribution archives. | 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_,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mPuEWCNF,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(1755 - 1707) + '\157' + chr(0b1111 + 0o44) + chr(51) + chr(1121 - 1068), 64359 - 64351), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110001) + chr(2904 - 2849) + chr(52), 0b1000), nzTpIcepk0o8(chr(2126 - 2078) + chr(111) + chr(0b101011 + 0o7) + chr(0b10101 + 0o36) + chr(50), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(0b101 + 0o61) + chr(0b110100), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110011) + chr(53) + chr(0b110100), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(49) + chr(1280 - 1229) + chr(0b10001 + 0o40), ord("\x08")), nzTpIcepk0o8(chr(0b11 + 0o55) + chr(111) + chr(0b100 + 0o56) + chr(0b10100 + 0o36) + chr(0b10 + 0o56), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101011 + 0o4) + chr(1658 - 1609) + chr(0b110100) + chr(0b1010 + 0o51), 0o10), nzTpIcepk0o8(chr(2006 - 1958) + '\157' + chr(49) + chr(0b110100) + '\x33', 8), nzTpIcepk0o8(chr(48) + chr(2517 - 2406) + chr(50) + chr(1311 - 1262) + chr(0b110111), 56554 - 56546), nzTpIcepk0o8('\x30' + '\x6f' + '\062' + '\x32' + '\066', 0b1000), nzTpIcepk0o8(chr(0b100 + 0o54) + chr(0b1101111) + chr(0b100 + 0o61) + chr(49), 4449 - 4441), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(49) + '\x35' + '\060', 0o10), nzTpIcepk0o8('\x30' + chr(2060 - 1949) + '\063' + '\062' + '\061', 64803 - 64795), nzTpIcepk0o8(chr(580 - 532) + '\x6f' + chr(0b10101 + 0o35) + '\x31' + chr(49), 0o10), nzTpIcepk0o8(chr(0b11010 + 0o26) + chr(111) + chr(0b110001) + '\x36' + chr(238 - 184), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(1153 - 1103) + chr(0b101111 + 0o2), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(51) + chr(1319 - 1264) + chr(52), 19346 - 19338), nzTpIcepk0o8(chr(0b110 + 0o52) + chr(111) + chr(0b110100), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(49) + '\x35' + chr(2705 - 2652), 61677 - 61669), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(49) + chr(0b10001 + 0o46) + chr(0b101011 + 0o14), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110011) + chr(48) + chr(50), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(1119 - 1068) + chr(2203 - 2151) + chr(52), 2857 - 2849), nzTpIcepk0o8(chr(0b110000) + chr(0b1011101 + 0o22) + chr(0b110010 + 0o1) + chr(0b110110) + chr(0b110101), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b11000 + 0o32) + chr(174 - 123) + chr(2009 - 1958), 0o10), nzTpIcepk0o8(chr(0b101011 + 0o5) + '\x6f' + chr(51) + chr(0b110001) + chr(0b110000 + 0o5), 0b1000), nzTpIcepk0o8('\060' + chr(0b111101 + 0o62) + chr(0b1 + 0o62) + '\x36' + '\x30', 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\061' + chr(53) + '\x32', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1000010 + 0o55) + '\065' + '\x33', 23758 - 23750), nzTpIcepk0o8(chr(0b110000) + chr(0b110001 + 0o76) + '\x33' + chr(0b1110 + 0o50), 0o10), nzTpIcepk0o8(chr(1978 - 1930) + chr(156 - 45) + chr(718 - 668) + chr(55) + chr(0b110011 + 0o0), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + '\063' + chr(0b100011 + 0o22), 0b1000), nzTpIcepk0o8(chr(0b10 + 0o56) + chr(111) + chr(0b110010) + '\x34' + '\065', 40979 - 40971), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110011) + chr(2396 - 2347) + chr(1180 - 1132), 0o10), nzTpIcepk0o8('\x30' + chr(4014 - 3903) + chr(50) + '\x32' + chr(0b110011), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x37' + '\x37', ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + '\x31' + chr(0b1 + 0o60) + chr(49), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(49) + '\x32', 17812 - 17804), nzTpIcepk0o8('\x30' + chr(8103 - 7992) + chr(49) + chr(0b11011 + 0o34) + '\x32', 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(0b110011) + chr(2310 - 2257) + chr(0b110111), 40244 - 40236)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110101) + '\060', 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xf3'), chr(3043 - 2943) + chr(0b1100101) + chr(0b1100011) + chr(111) + chr(100) + chr(101))('\165' + chr(6406 - 6290) + '\x66' + '\055' + '\070') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def JLYakhkK1h1R(hXMPsSrOQzbh, H5ObihiJsBjC, egwxxHE5P7VT=None, Dc7Hj2yQ0tyN=nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110000), 38509 - 38501)):
H5ObihiJsBjC = hXMPsSrOQzbh.decorate_arguments(H5ObihiJsBjC)
with __WKnEDX6uyt():
with Q1OFM1aQ4GcK(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xb6\x1b\xf1\x7f\xb9:\xd4PU\xe3\xfaZ'), '\144' + '\x65' + '\x63' + chr(0b1101111) + '\144' + chr(0b11010 + 0o113))(chr(0b1000010 + 0o63) + '\x74' + '\x66' + chr(45) + chr(56))), roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xb8\x1b\xfdG\xb35\xf9\r\x08\xfc'), chr(0b100000 + 0o104) + '\145' + '\x63' + chr(111) + '\144' + chr(101))(chr(0b1100011 + 0o22) + chr(0b1001000 + 0o54) + chr(6280 - 6178) + chr(0b101000 + 0o5) + chr(0b111000)))):
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xbe\x0e\xffU\x98<\xcf\x01\x16\xe6\xfaM7\xb5\xe0\x04t\x9fp\x02\r\xbb'), chr(100) + '\x65' + '\x63' + chr(111) + chr(7534 - 7434) + '\x65')('\165' + '\164' + chr(7759 - 7657) + chr(0b101101) + chr(0b111000)))()
if VF4pKOObtlPc((YZ6GGii_Cns1(AQ9ceR9AaoT1, roI3spqORKae(ES5oEprVxulp(b'\xf0)'), chr(0b11101 + 0o107) + chr(0b110 + 0o137) + chr(5206 - 5107) + '\x6f' + chr(0b1100100) + chr(0b111010 + 0o53))(chr(3270 - 3153) + chr(0b1110100) + chr(1251 - 1149) + '\x2d' + chr(56)), roI3spqORKae(ES5oEprVxulp(b'\xf0Q\xefD\x8b+\xf1\x07\x06'), chr(100) + chr(0b110010 + 0o63) + '\x63' + chr(8984 - 8873) + chr(9536 - 9436) + chr(0b1100101))(chr(117) + chr(9567 - 9451) + '\x66' + chr(365 - 320) + '\070')) for AQ9ceR9AaoT1 in H5ObihiJsBjC)):
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'\xb4\x04\xd4L\xd5\x15\xe7<R\xe8\xe4f'), chr(100) + chr(101) + chr(99) + chr(9326 - 9215) + '\x64' + '\x65')(chr(0b100101 + 0o120) + chr(0b1110100) + chr(0b1100110) + '\x2d' + chr(0b111000)))(roI3spqORKae(ES5oEprVxulp(b'\x9e\x14\xffW\x870\xfe\x04C\xe6\xf8M\r\xa9\xa1\x13b\xd5$\x0b\x10\xb0\xc4\x9b\xfe\xba\xd0\x1cNl\xc8t\xca\xa6\xb3\x17d_Z\x80\xaf\\\xb7\x19\x99)\xf7\x11\x02\xeb\xf3\t\x1f\xb0\xfaVv\x95r\x08\x11\xeb\xc4\xdb\xb5'), '\x64' + chr(9105 - 9004) + chr(0b111111 + 0o44) + chr(111) + chr(100) + '\x65')(chr(0b1110101) + '\164' + '\146' + '\055' + '\070'))
else:
try:
return roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xa8\x12\xeaU\x8f2\xcf\x10\x0c\xfa\xe4J\r\x8e\xed\x1fb\x88w'), chr(0b1100100) + chr(0b1100101) + chr(3450 - 3351) + chr(0b1101111) + chr(0b11110 + 0o106) + chr(5727 - 5626))(chr(0b111010 + 0o73) + '\164' + '\x66' + '\055' + chr(0b111000)))(H5ObihiJsBjC, use_wheels=Dc7Hj2yQ0tyN)
except WYGh4hemFxJn:
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'\xb4\x04\xd4L\xd5\x15\xe7<R\xe8\xe4f'), chr(0b1100100) + chr(8428 - 8327) + chr(99) + chr(1559 - 1448) + chr(2834 - 2734) + '\145')(chr(117) + chr(9920 - 9804) + chr(102) + '\x2d' + chr(2380 - 2324)))(roI3spqORKae(ES5oEprVxulp(b'\x8a\x19\xbaP\x837\xb7\x17C\xe7\xf7_\r\xf1\xe8\x1a}\xdc`\x04\x0c\xb6\x96\x9c\xf9\xb8\x84\x03Dp\x9b|\xd7\xab\xfbV?o\t\xcf\xa4\x19\xee\x15'), '\144' + chr(2373 - 2272) + '\x63' + chr(0b1001100 + 0o43) + chr(0b10101 + 0o117) + '\x65')(chr(0b1110101) + '\x74' + chr(0b1100110) + chr(118 - 73) + chr(56)))
if egwxxHE5P7VT is None:
egwxxHE5P7VT = hXMPsSrOQzbh.config.egwxxHE5P7VT
for ZlbFMSG8gCoF in bbT2xIe5pzk7(egwxxHE5P7VT):
try:
return roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xb9\x13\xedZ\x806\xf1\x07<\xfc\xf9\\\x1a\xb2\xec)u\x95w\x19\x0c'), chr(0b1000000 + 0o44) + chr(1113 - 1012) + chr(99) + '\157' + chr(0b1001000 + 0o34) + chr(0b1100101))('\x75' + chr(0b100011 + 0o121) + chr(3870 - 3768) + chr(1637 - 1592) + '\x38'))(H5ObihiJsBjC, use_wheels=Dc7Hj2yQ0tyN)
except zfo2Sgkz3IVJ as wgf0sgcu_xPL:
if ZlbFMSG8gCoF + nzTpIcepk0o8(chr(1807 - 1759) + chr(0b1101111) + '\061', ord("\x08")) < egwxxHE5P7VT:
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'\xaa\x1d\xe8Z\x857\xf7'), chr(6009 - 5909) + chr(101) + chr(99) + chr(7726 - 7615) + chr(100) + chr(0b111000 + 0o55))(chr(117) + '\x74' + chr(0b1100110) + chr(421 - 376) + '\070'))(roI3spqORKae(ES5oEprVxulp(b"\xad\x15\xea\x14\x9e8\xf9\x10\x06\xeb\xb6L\x10\xb2\xec\x06e\x95k\x03_\xb5\x8c\x9c\xf7\xa8\xd0\x0eDi\xd5q\xca\xa9\xf7V'mZ\x8b\xb4\x0f\xeeF\x85;\xe5\x17\n\xe0\xf8ZR\xf1\xac\x05"), chr(100) + '\145' + chr(99) + chr(0b1101111) + '\144' + chr(101))('\165' + '\164' + chr(0b1100000 + 0o6) + chr(0b101101) + '\070'), wgf0sgcu_xPL)
else:
raise
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'\xb4\x04\xd4L\xd5\x15\xe7<R\xe8\xe4f'), '\x64' + chr(0b11101 + 0o110) + chr(0b1011111 + 0o4) + chr(111) + chr(100) + chr(8830 - 8729))(chr(0b1110101) + chr(7507 - 7391) + '\x66' + '\055' + '\070'))(roI3spqORKae(ES5oEprVxulp(b'\x8f\x19\xeeF\x950\xfe\x04C\xee\xf0]\r\xa3\xa9\x06x\x8c$\x0b\x1e\xab\x88\x90\xff\xed\xd8OB1\x9et\x8c\xe8\xbd\x11'), chr(0b1100100) + chr(101) + chr(0b1000000 + 0o43) + chr(0b1101111) + chr(0b110 + 0o136) + chr(0b1011101 + 0o10))(chr(0b1110101) + chr(5542 - 5426) + '\146' + chr(0b10001 + 0o34) + '\x38'), ZlbFMSG8gCoF + nzTpIcepk0o8(chr(0b110000) + chr(111) + '\061', 8), egwxxHE5P7VT) |
paylogic/pip-accel | pip_accel/__init__.py | PipAccelerator.decorate_arguments | def decorate_arguments(self, arguments):
"""
Change pathnames of local files into ``file://`` URLs with ``#md5=...`` fragments.
:param arguments: The command line arguments to ``pip install ...`` (a
list of strings).
:returns: A copy of the command line arguments with pathnames of local
files rewritten to ``file://`` URLs.
When pip-accel calls pip to download missing distribution archives and
the user specified the pathname of a local distribution archive on the
command line, pip will (by default) *not* copy the archive into the
download directory if an archive for the same package name and
version is already present.
This can lead to the confusing situation where the user specifies a
local distribution archive to install, a different (older) archive for
the same package and version is present in the download directory and
`pip-accel` installs the older archive instead of the newer archive.
To avoid this confusing behavior, the :func:`decorate_arguments()`
method rewrites the command line arguments given to ``pip install`` so
that pathnames of local archives are changed into ``file://`` URLs that
include a fragment with the hash of the file's contents. Here's an
example:
- Local pathname: ``/tmp/pep8-1.6.3a0.tar.gz``
- File URL: ``file:///tmp/pep8-1.6.3a0.tar.gz#md5=19cbf0b633498ead63fb3c66e5f1caf6``
When pip fills the download directory and encounters a previously
cached distribution archive it will check the hash, realize the
contents have changed and replace the archive in the download
directory.
"""
arguments = list(arguments)
for i, value in enumerate(arguments):
is_constraint_file = (i >= 1 and match_option(arguments[i - 1], '-c', '--constraint'))
is_requirement_file = (i >= 1 and match_option(arguments[i - 1], '-r', '--requirement'))
if not is_constraint_file and not is_requirement_file and os.path.isfile(value):
arguments[i] = '%s#md5=%s' % (create_file_url(value), hash_files('md5', value))
return arguments | python | def decorate_arguments(self, arguments):
"""
Change pathnames of local files into ``file://`` URLs with ``#md5=...`` fragments.
:param arguments: The command line arguments to ``pip install ...`` (a
list of strings).
:returns: A copy of the command line arguments with pathnames of local
files rewritten to ``file://`` URLs.
When pip-accel calls pip to download missing distribution archives and
the user specified the pathname of a local distribution archive on the
command line, pip will (by default) *not* copy the archive into the
download directory if an archive for the same package name and
version is already present.
This can lead to the confusing situation where the user specifies a
local distribution archive to install, a different (older) archive for
the same package and version is present in the download directory and
`pip-accel` installs the older archive instead of the newer archive.
To avoid this confusing behavior, the :func:`decorate_arguments()`
method rewrites the command line arguments given to ``pip install`` so
that pathnames of local archives are changed into ``file://`` URLs that
include a fragment with the hash of the file's contents. Here's an
example:
- Local pathname: ``/tmp/pep8-1.6.3a0.tar.gz``
- File URL: ``file:///tmp/pep8-1.6.3a0.tar.gz#md5=19cbf0b633498ead63fb3c66e5f1caf6``
When pip fills the download directory and encounters a previously
cached distribution archive it will check the hash, realize the
contents have changed and replace the archive in the download
directory.
"""
arguments = list(arguments)
for i, value in enumerate(arguments):
is_constraint_file = (i >= 1 and match_option(arguments[i - 1], '-c', '--constraint'))
is_requirement_file = (i >= 1 and match_option(arguments[i - 1], '-r', '--requirement'))
if not is_constraint_file and not is_requirement_file and os.path.isfile(value):
arguments[i] = '%s#md5=%s' % (create_file_url(value), hash_files('md5', value))
return arguments | [
"def",
"decorate_arguments",
"(",
"self",
",",
"arguments",
")",
":",
"arguments",
"=",
"list",
"(",
"arguments",
")",
"for",
"i",
",",
"value",
"in",
"enumerate",
"(",
"arguments",
")",
":",
"is_constraint_file",
"=",
"(",
"i",
">=",
"1",
"and",
"match_option",
"(",
"arguments",
"[",
"i",
"-",
"1",
"]",
",",
"'-c'",
",",
"'--constraint'",
")",
")",
"is_requirement_file",
"=",
"(",
"i",
">=",
"1",
"and",
"match_option",
"(",
"arguments",
"[",
"i",
"-",
"1",
"]",
",",
"'-r'",
",",
"'--requirement'",
")",
")",
"if",
"not",
"is_constraint_file",
"and",
"not",
"is_requirement_file",
"and",
"os",
".",
"path",
".",
"isfile",
"(",
"value",
")",
":",
"arguments",
"[",
"i",
"]",
"=",
"'%s#md5=%s'",
"%",
"(",
"create_file_url",
"(",
"value",
")",
",",
"hash_files",
"(",
"'md5'",
",",
"value",
")",
")",
"return",
"arguments"
] | Change pathnames of local files into ``file://`` URLs with ``#md5=...`` fragments.
:param arguments: The command line arguments to ``pip install ...`` (a
list of strings).
:returns: A copy of the command line arguments with pathnames of local
files rewritten to ``file://`` URLs.
When pip-accel calls pip to download missing distribution archives and
the user specified the pathname of a local distribution archive on the
command line, pip will (by default) *not* copy the archive into the
download directory if an archive for the same package name and
version is already present.
This can lead to the confusing situation where the user specifies a
local distribution archive to install, a different (older) archive for
the same package and version is present in the download directory and
`pip-accel` installs the older archive instead of the newer archive.
To avoid this confusing behavior, the :func:`decorate_arguments()`
method rewrites the command line arguments given to ``pip install`` so
that pathnames of local archives are changed into ``file://`` URLs that
include a fragment with the hash of the file's contents. Here's an
example:
- Local pathname: ``/tmp/pep8-1.6.3a0.tar.gz``
- File URL: ``file:///tmp/pep8-1.6.3a0.tar.gz#md5=19cbf0b633498ead63fb3c66e5f1caf6``
When pip fills the download directory and encounters a previously
cached distribution archive it will check the hash, realize the
contents have changed and replace the archive in the download
directory. | [
"Change",
"pathnames",
"of",
"local",
"files",
"into",
"file",
":",
"//",
"URLs",
"with",
"#md5",
"=",
"...",
"fragments",
"."
] | ccad1b784927a322d996db593403b1d2d2e22666 | https://github.com/paylogic/pip-accel/blob/ccad1b784927a322d996db593403b1d2d2e22666/pip_accel/__init__.py#L323-L363 | train | This method is used to decorate the command line arguments given to pip install. | 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,z18h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fNqtJL5aRaY,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(0b10100 + 0o133) + chr(51) + chr(0b1001 + 0o52) + chr(0b110001), 57323 - 57315), nzTpIcepk0o8(chr(0b110000) + chr(2393 - 2282) + chr(843 - 792) + chr(54) + '\061', 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + '\062' + '\065' + '\063', 19745 - 19737), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x31' + chr(50) + chr(0b101011 + 0o14), 15661 - 15653), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110010) + '\x32' + '\x33', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b110100 + 0o73) + chr(0b110010) + chr(49) + '\x37', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(1723 - 1673) + chr(1300 - 1249), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\062' + chr(55) + chr(51), 0b1000), nzTpIcepk0o8(chr(1531 - 1483) + chr(111) + '\062' + '\x33' + '\x36', 0o10), nzTpIcepk0o8(chr(0b1100 + 0o44) + chr(0b101111 + 0o100) + chr(49) + chr(0b100000 + 0o26) + chr(52), 0o10), nzTpIcepk0o8(chr(0b101001 + 0o7) + chr(0b1001111 + 0o40) + '\x31' + chr(0b110001 + 0o1) + '\064', ord("\x08")), nzTpIcepk0o8(chr(656 - 608) + chr(111) + '\x32' + chr(50) + '\064', 0o10), nzTpIcepk0o8('\x30' + '\x6f' + '\x32', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(49) + chr(615 - 567) + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(0b1110 + 0o42) + chr(0b1000011 + 0o54) + chr(50) + chr(0b110001) + chr(0b101000 + 0o11), 50282 - 50274), nzTpIcepk0o8(chr(896 - 848) + chr(111) + '\066' + chr(1392 - 1343), 11042 - 11034), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(50) + chr(226 - 178) + '\063', 21011 - 21003), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110010) + chr(0b110010) + chr(1705 - 1650), 44055 - 44047), nzTpIcepk0o8(chr(0b110000) + '\157' + '\067' + chr(51), 0b1000), nzTpIcepk0o8('\x30' + chr(0b11010 + 0o125) + chr(0b110010) + chr(50) + '\063', 8), nzTpIcepk0o8(chr(0b11 + 0o55) + chr(6997 - 6886) + chr(51) + chr(1587 - 1539), 21696 - 21688), nzTpIcepk0o8('\x30' + chr(0b101000 + 0o107) + '\x31' + chr(0b110100) + chr(1220 - 1166), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + '\x33' + '\062' + chr(0b100101 + 0o13), 0b1000), nzTpIcepk0o8('\060' + chr(7726 - 7615) + chr(0b100010 + 0o20) + chr(1535 - 1484) + chr(53), 0b1000), nzTpIcepk0o8(chr(617 - 569) + '\x6f' + chr(1967 - 1918) + chr(1728 - 1676) + chr(51), 16586 - 16578), nzTpIcepk0o8('\060' + chr(0b1010100 + 0o33) + chr(0b110010) + '\064' + '\064', ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(0b110010) + chr(49) + chr(0b10000 + 0o46), 0b1000), nzTpIcepk0o8('\060' + chr(111) + '\x32' + chr(55) + chr(0b110111), 10062 - 10054), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110011) + chr(2059 - 2008) + chr(0b11 + 0o62), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(2377 - 2328) + chr(1504 - 1451) + '\x33', 13867 - 13859), nzTpIcepk0o8(chr(0b110000) + chr(4073 - 3962) + '\061' + chr(0b110101) + chr(0b110110), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110001) + chr(0b110110) + '\x33', 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + '\x31' + chr(185 - 133) + '\x31', 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110001) + '\065' + chr(0b10101 + 0o33), 47578 - 47570), nzTpIcepk0o8('\060' + '\157' + chr(51) + '\x31' + '\x30', ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(48), 63874 - 63866), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b1000 + 0o53) + chr(0b110101) + chr(52), 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110001) + '\x31' + chr(53), 40771 - 40763), nzTpIcepk0o8(chr(0b110000) + chr(0b1010100 + 0o33) + chr(0b110010 + 0o1) + chr(0b10 + 0o62) + chr(0b1100 + 0o52), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(5813 - 5702) + chr(0b101110 + 0o5) + chr(55) + '\x31', 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(53) + chr(48), 16910 - 16902)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xf7'), '\144' + chr(0b1100101) + chr(0b1001101 + 0o26) + chr(8593 - 8482) + chr(0b101000 + 0o74) + '\x65')(chr(117) + '\164' + '\146' + chr(0b101101) + chr(3042 - 2986)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def jjNOSXXcL3og(hXMPsSrOQzbh, H5ObihiJsBjC):
H5ObihiJsBjC = H4NoA26ON7iG(H5ObihiJsBjC)
for (ZlbFMSG8gCoF, uV9iBiw0y_Mp) in _kV_Bomx8PZ4(H5ObihiJsBjC):
tRSiGLQiYYZD = ZlbFMSG8gCoF >= nzTpIcepk0o8(chr(0b110000) + chr(8425 - 8314) + chr(0b110001), 0o10) and YZ6GGii_Cns1(H5ObihiJsBjC[ZlbFMSG8gCoF - nzTpIcepk0o8(chr(0b110 + 0o52) + chr(111) + chr(49), 8)], roI3spqORKae(ES5oEprVxulp(b'\xf4\x92'), chr(0b1000110 + 0o36) + chr(3448 - 3347) + chr(0b1100011) + chr(111) + chr(0b10000 + 0o124) + '\x65')(chr(117) + chr(0b1110100) + '\146' + '\x2d' + '\x38'), roI3spqORKae(ES5oEprVxulp(b'\xf4\xdc\xc88\xfd\xfcg\xc9\xff\x1d:\xe0'), chr(3238 - 3138) + chr(101) + chr(0b1000000 + 0o43) + chr(4217 - 4106) + '\x64' + '\145')(chr(0b1110101) + '\x74' + chr(0b10101 + 0o121) + chr(0b101101) + '\x38'))
le3XFhdOlf19 = ZlbFMSG8gCoF >= nzTpIcepk0o8('\x30' + '\157' + '\061', 8) and YZ6GGii_Cns1(H5ObihiJsBjC[ZlbFMSG8gCoF - nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x31', 8)], roI3spqORKae(ES5oEprVxulp(b'\xf4\x83'), chr(6497 - 6397) + chr(101) + '\x63' + '\x6f' + chr(100) + chr(0b1100101))(chr(117) + '\164' + chr(0b1100110) + chr(0b101100 + 0o1) + chr(0b111000)), roI3spqORKae(ES5oEprVxulp(b'\xf4\xdc\xd92\xe2\xfaz\xc9\xfb\x191\xfav'), chr(2412 - 2312) + chr(0b0 + 0o145) + chr(0b1000000 + 0o43) + chr(111) + chr(9436 - 9336) + '\145')(chr(117) + '\164' + chr(0b101000 + 0o76) + chr(964 - 919) + '\070'))
if not tRSiGLQiYYZD and (not le3XFhdOlf19) and roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'\xb0\x82\xcd>\xff\xea'), chr(0b100110 + 0o76) + chr(0b1100101) + '\143' + chr(0b1100101 + 0o12) + '\144' + chr(101))(chr(117) + '\164' + '\x66' + chr(0b101101) + chr(56)))(uV9iBiw0y_Mp):
H5ObihiJsBjC[ZlbFMSG8gCoF] = roI3spqORKae(ES5oEprVxulp(b'\xfc\x82\x88:\xf7\xba.\x9e\xed'), chr(7229 - 7129) + chr(101) + '\143' + chr(0b1110 + 0o141) + chr(100) + '\x65')(chr(117) + chr(9768 - 9652) + chr(0b1100110) + '\x2d' + '\070') % (pODe8opp4KbM(uV9iBiw0y_Mp), OVYVTOLAoBDx(roI3spqORKae(ES5oEprVxulp(b'\xb4\x95\x9e'), chr(0b1100100) + chr(101) + chr(1553 - 1454) + chr(111) + chr(100) + chr(101))(chr(0b1110101) + chr(0b1110100) + chr(102) + chr(45) + chr(1211 - 1155)), uV9iBiw0y_Mp))
return H5ObihiJsBjC |
paylogic/pip-accel | pip_accel/__init__.py | PipAccelerator.unpack_source_dists | def unpack_source_dists(self, arguments, use_wheels=False):
"""
Find and unpack local source distributions and discover their metadata.
:param arguments: The command line arguments to ``pip install ...`` (a
list of strings).
:param use_wheels: Whether pip and pip-accel are allowed to use wheels_
(:data:`False` by default for backwards compatibility
with callers that use pip-accel as a Python API).
:returns: A list of :class:`pip_accel.req.Requirement` objects.
:raises: Any exceptions raised by pip, for example
:exc:`pip.exceptions.DistributionNotFound` when not all
requirements can be satisfied.
This function checks whether there are local source distributions
available for all requirements, unpacks the source distribution
archives and finds the names and versions of the requirements. By using
the ``pip install --download`` command we avoid reimplementing the
following pip features:
- Parsing of ``requirements.txt`` (including recursive parsing).
- Resolution of possibly conflicting pinned requirements.
- Unpacking source distributions in multiple formats.
- Finding the name & version of a given source distribution.
"""
unpack_timer = Timer()
logger.info("Unpacking distribution(s) ..")
with PatchedAttribute(pip_install_module, 'PackageFinder', CustomPackageFinder):
requirements = self.get_pip_requirement_set(arguments, use_remote_index=False, use_wheels=use_wheels)
logger.info("Finished unpacking %s in %s.", pluralize(len(requirements), "distribution"), unpack_timer)
return requirements | python | def unpack_source_dists(self, arguments, use_wheels=False):
"""
Find and unpack local source distributions and discover their metadata.
:param arguments: The command line arguments to ``pip install ...`` (a
list of strings).
:param use_wheels: Whether pip and pip-accel are allowed to use wheels_
(:data:`False` by default for backwards compatibility
with callers that use pip-accel as a Python API).
:returns: A list of :class:`pip_accel.req.Requirement` objects.
:raises: Any exceptions raised by pip, for example
:exc:`pip.exceptions.DistributionNotFound` when not all
requirements can be satisfied.
This function checks whether there are local source distributions
available for all requirements, unpacks the source distribution
archives and finds the names and versions of the requirements. By using
the ``pip install --download`` command we avoid reimplementing the
following pip features:
- Parsing of ``requirements.txt`` (including recursive parsing).
- Resolution of possibly conflicting pinned requirements.
- Unpacking source distributions in multiple formats.
- Finding the name & version of a given source distribution.
"""
unpack_timer = Timer()
logger.info("Unpacking distribution(s) ..")
with PatchedAttribute(pip_install_module, 'PackageFinder', CustomPackageFinder):
requirements = self.get_pip_requirement_set(arguments, use_remote_index=False, use_wheels=use_wheels)
logger.info("Finished unpacking %s in %s.", pluralize(len(requirements), "distribution"), unpack_timer)
return requirements | [
"def",
"unpack_source_dists",
"(",
"self",
",",
"arguments",
",",
"use_wheels",
"=",
"False",
")",
":",
"unpack_timer",
"=",
"Timer",
"(",
")",
"logger",
".",
"info",
"(",
"\"Unpacking distribution(s) ..\"",
")",
"with",
"PatchedAttribute",
"(",
"pip_install_module",
",",
"'PackageFinder'",
",",
"CustomPackageFinder",
")",
":",
"requirements",
"=",
"self",
".",
"get_pip_requirement_set",
"(",
"arguments",
",",
"use_remote_index",
"=",
"False",
",",
"use_wheels",
"=",
"use_wheels",
")",
"logger",
".",
"info",
"(",
"\"Finished unpacking %s in %s.\"",
",",
"pluralize",
"(",
"len",
"(",
"requirements",
")",
",",
"\"distribution\"",
")",
",",
"unpack_timer",
")",
"return",
"requirements"
] | Find and unpack local source distributions and discover their metadata.
:param arguments: The command line arguments to ``pip install ...`` (a
list of strings).
:param use_wheels: Whether pip and pip-accel are allowed to use wheels_
(:data:`False` by default for backwards compatibility
with callers that use pip-accel as a Python API).
:returns: A list of :class:`pip_accel.req.Requirement` objects.
:raises: Any exceptions raised by pip, for example
:exc:`pip.exceptions.DistributionNotFound` when not all
requirements can be satisfied.
This function checks whether there are local source distributions
available for all requirements, unpacks the source distribution
archives and finds the names and versions of the requirements. By using
the ``pip install --download`` command we avoid reimplementing the
following pip features:
- Parsing of ``requirements.txt`` (including recursive parsing).
- Resolution of possibly conflicting pinned requirements.
- Unpacking source distributions in multiple formats.
- Finding the name & version of a given source distribution. | [
"Find",
"and",
"unpack",
"local",
"source",
"distributions",
"and",
"discover",
"their",
"metadata",
"."
] | ccad1b784927a322d996db593403b1d2d2e22666 | https://github.com/paylogic/pip-accel/blob/ccad1b784927a322d996db593403b1d2d2e22666/pip_accel/__init__.py#L365-L395 | train | Find and unpack local source distributions and discover their metadata. | 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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5Z,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' + '\063' + chr(0b11 + 0o62), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110010) + chr(55) + chr(54), 15840 - 15832), nzTpIcepk0o8(chr(0b110000) + chr(0b110100 + 0o73) + chr(0b1010 + 0o47) + chr(55) + chr(48), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + '\064' + '\x37', 0o10), nzTpIcepk0o8('\x30' + chr(1543 - 1432) + chr(52) + '\x34', 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110101) + chr(54), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\062' + chr(0b110011) + '\066', 13083 - 13075), nzTpIcepk0o8(chr(0b1100 + 0o44) + '\157' + '\061' + chr(0b110110) + chr(54), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + '\063' + chr(50) + chr(53), ord("\x08")), nzTpIcepk0o8(chr(1065 - 1017) + '\x6f' + chr(1765 - 1716) + '\060' + '\063', 7598 - 7590), nzTpIcepk0o8(chr(80 - 32) + chr(2664 - 2553) + chr(1065 - 1015) + '\066' + '\x35', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110011) + '\063' + chr(0b11111 + 0o23), 0o10), nzTpIcepk0o8(chr(61 - 13) + chr(111) + chr(0b110011) + '\066' + chr(0b100000 + 0o25), 0b1000), nzTpIcepk0o8(chr(0b101110 + 0o2) + '\157' + chr(51) + chr(51) + '\067', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x32' + chr(2378 - 2326) + chr(0b101001 + 0o12), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110010) + '\065' + '\x33', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b111110 + 0o61) + chr(49) + '\063' + '\x35', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(51) + chr(1958 - 1905) + chr(0b101010 + 0o13), 29677 - 29669), nzTpIcepk0o8(chr(243 - 195) + '\x6f' + chr(0b110111) + chr(0b110011), 39352 - 39344), nzTpIcepk0o8(chr(0b11100 + 0o24) + '\157' + chr(50) + chr(0b1101 + 0o43) + '\x31', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(860 - 749) + '\x33' + chr(0b110000) + '\061', ord("\x08")), nzTpIcepk0o8(chr(1340 - 1292) + chr(111) + chr(0b11010 + 0o31) + '\060' + '\x32', ord("\x08")), nzTpIcepk0o8(chr(0b101001 + 0o7) + chr(0b1011110 + 0o21) + '\x33' + chr(0b110100) + chr(0b110011), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1000001 + 0o56) + chr(63 - 12) + '\x34' + '\x34', 4665 - 4657), nzTpIcepk0o8(chr(1423 - 1375) + chr(111) + chr(49) + chr(0b10001 + 0o44) + chr(0b110100), 0o10), nzTpIcepk0o8('\060' + chr(6620 - 6509) + '\062' + '\067' + '\x30', 46612 - 46604), nzTpIcepk0o8(chr(0b10011 + 0o35) + chr(111) + chr(1067 - 1018) + chr(0b100010 + 0o16) + '\062', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(10076 - 9965) + chr(0b111 + 0o52) + chr(0b110110), 39696 - 39688), nzTpIcepk0o8(chr(0b1010 + 0o46) + '\x6f' + chr(52) + chr(0b100 + 0o61), 27901 - 27893), nzTpIcepk0o8(chr(0b1001 + 0o47) + chr(0b1101111) + chr(0b110001) + chr(49) + '\061', 3277 - 3269), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110001) + '\x35' + chr(51), 57692 - 57684), nzTpIcepk0o8(chr(1765 - 1717) + '\x6f' + chr(51) + '\067' + '\x36', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1000001 + 0o56) + chr(0b110100 + 0o2) + chr(0b10 + 0o61), 0b1000), nzTpIcepk0o8('\x30' + '\157' + '\x32' + '\x36' + chr(0b110100 + 0o3), ord("\x08")), nzTpIcepk0o8(chr(0b1101 + 0o43) + chr(1811 - 1700) + chr(0b1000 + 0o51) + chr(563 - 510) + '\x33', 8), nzTpIcepk0o8(chr(48) + chr(5696 - 5585) + chr(171 - 120) + chr(0b100010 + 0o23) + chr(0b1001 + 0o50), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + '\x31' + chr(0b110110) + chr(0b100011 + 0o20), 0b1000), nzTpIcepk0o8(chr(0b11000 + 0o30) + chr(5355 - 5244) + chr(1089 - 1038) + chr(284 - 235) + '\x37', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(613 - 502) + chr(1106 - 1057) + '\x31' + chr(266 - 213), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + '\x32' + chr(0b110101) + chr(0b101011 + 0o6), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(1479 - 1431) + '\157' + chr(245 - 192) + chr(0b110000), 9300 - 9292)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'3'), chr(100) + chr(0b1011001 + 0o14) + chr(0b10110 + 0o115) + '\x6f' + '\144' + chr(0b1100101))(chr(0b1101000 + 0o15) + chr(116) + chr(0b1011010 + 0o14) + chr(0b101101) + chr(56)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def cbJo6OT3uG0S(hXMPsSrOQzbh, H5ObihiJsBjC, Dc7Hj2yQ0tyN=nzTpIcepk0o8('\060' + '\x6f' + chr(0b110000), ord("\x08"))):
LDHqVlKP3fww = MX_3dktPnFrU()
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b't\xc66_\x1db\xe9)\xe4$\xc7\x95'), chr(100) + '\145' + '\143' + chr(111) + chr(0b1 + 0o143) + chr(8930 - 8829))(chr(117) + chr(5220 - 5104) + '\146' + chr(0b101100 + 0o1) + '\070'))(roI3spqORKae(ES5oEprVxulp(b'H\xd0\x08FGE\xf7\x18\xb2c\xd1\xb3\x86\xab\xd1\xc2?\x98O\xe8\xae\xac\xcb\x97E\x98l '), '\x64' + '\145' + chr(7370 - 7271) + chr(3562 - 3451) + chr(100) + chr(101))('\x75' + chr(8272 - 8156) + chr(102) + chr(45) + chr(236 - 180)))
with Lb7mycSOc2LE(btLX6bN70KF6, roI3spqORKae(ES5oEprVxulp(b'M\xdf\x1bLEI\xfb0\xbc-\xd1\xbf\x87'), '\144' + '\145' + chr(99) + '\157' + chr(0b111 + 0o135) + chr(1392 - 1291))('\165' + '\x74' + '\x66' + chr(0b1010 + 0o43) + chr(0b10 + 0o66)), BBYzM4lP15zD):
OS1WcFGrh7xy = hXMPsSrOQzbh.get_pip_requirement_set(H5ObihiJsBjC, use_remote_index=nzTpIcepk0o8(chr(0b1101 + 0o43) + '\x6f' + chr(0b101101 + 0o3), 8), use_wheels=Dc7Hj2yQ0tyN)
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b't\xc66_\x1db\xe9)\xe4$\xc7\x95'), chr(8138 - 8038) + chr(0b1100101) + chr(0b111010 + 0o51) + chr(0b111101 + 0o62) + chr(100) + chr(0b1100101))(chr(0b101101 + 0o110) + chr(0b101100 + 0o110) + '\146' + chr(45) + chr(56)))(roI3spqORKae(ES5oEprVxulp(b'[\xd7\x16NWF\xfb\x12\xf56\xdb\xaa\x94\xbc\xc8\xc23\x8a\x1b\xa4\xb2\xe2\x8a\x8aL\x9d1 '), chr(5547 - 5447) + chr(101) + chr(0b1100011) + chr(111) + chr(0b1001100 + 0o30) + chr(0b1100101))(chr(0b1110101) + '\164' + chr(0b1011110 + 0o10) + chr(990 - 945) + chr(0b1011 + 0o55)), hAX37lTuKJhF(ftfygxgFas5X(OS1WcFGrh7xy), roI3spqORKae(ES5oEprVxulp(b'y\xd7\x0bSVG\xfc\x03\xa1*\xda\xb4'), chr(9960 - 9860) + chr(0b1100101) + chr(4676 - 4577) + chr(0b1010010 + 0o35) + chr(100) + chr(0b1100101))(chr(0b101000 + 0o115) + chr(0b1110100) + '\146' + chr(1135 - 1090) + chr(56))), LDHqVlKP3fww)
return OS1WcFGrh7xy |
paylogic/pip-accel | pip_accel/__init__.py | PipAccelerator.download_source_dists | def download_source_dists(self, arguments, use_wheels=False):
"""
Download missing source distributions.
:param arguments: The command line arguments to ``pip install ...`` (a
list of strings).
:param use_wheels: Whether pip and pip-accel are allowed to use wheels_
(:data:`False` by default for backwards compatibility
with callers that use pip-accel as a Python API).
:raises: Any exceptions raised by pip.
"""
download_timer = Timer()
logger.info("Downloading missing distribution(s) ..")
requirements = self.get_pip_requirement_set(arguments, use_remote_index=True, use_wheels=use_wheels)
logger.info("Finished downloading distribution(s) in %s.", download_timer)
return requirements | python | def download_source_dists(self, arguments, use_wheels=False):
"""
Download missing source distributions.
:param arguments: The command line arguments to ``pip install ...`` (a
list of strings).
:param use_wheels: Whether pip and pip-accel are allowed to use wheels_
(:data:`False` by default for backwards compatibility
with callers that use pip-accel as a Python API).
:raises: Any exceptions raised by pip.
"""
download_timer = Timer()
logger.info("Downloading missing distribution(s) ..")
requirements = self.get_pip_requirement_set(arguments, use_remote_index=True, use_wheels=use_wheels)
logger.info("Finished downloading distribution(s) in %s.", download_timer)
return requirements | [
"def",
"download_source_dists",
"(",
"self",
",",
"arguments",
",",
"use_wheels",
"=",
"False",
")",
":",
"download_timer",
"=",
"Timer",
"(",
")",
"logger",
".",
"info",
"(",
"\"Downloading missing distribution(s) ..\"",
")",
"requirements",
"=",
"self",
".",
"get_pip_requirement_set",
"(",
"arguments",
",",
"use_remote_index",
"=",
"True",
",",
"use_wheels",
"=",
"use_wheels",
")",
"logger",
".",
"info",
"(",
"\"Finished downloading distribution(s) in %s.\"",
",",
"download_timer",
")",
"return",
"requirements"
] | Download missing source distributions.
:param arguments: The command line arguments to ``pip install ...`` (a
list of strings).
:param use_wheels: Whether pip and pip-accel are allowed to use wheels_
(:data:`False` by default for backwards compatibility
with callers that use pip-accel as a Python API).
:raises: Any exceptions raised by pip. | [
"Download",
"missing",
"source",
"distributions",
"."
] | ccad1b784927a322d996db593403b1d2d2e22666 | https://github.com/paylogic/pip-accel/blob/ccad1b784927a322d996db593403b1d2d2e22666/pip_accel/__init__.py#L397-L412 | train | Download missing source distributions. | 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_4UfQ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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(0b1101111) + chr(0b110010) + '\062' + chr(0b100011 + 0o20), 63872 - 63864), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x36' + chr(0b100010 + 0o24), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(930 - 880) + chr(0b11011 + 0o25) + chr(0b110011), 36420 - 36412), nzTpIcepk0o8(chr(0b100100 + 0o14) + '\157' + '\061' + chr(52) + '\x37', ord("\x08")), nzTpIcepk0o8(chr(370 - 322) + '\157' + chr(0b101101 + 0o5) + '\063', 55474 - 55466), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\061' + '\x37' + chr(54), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x36', 1314 - 1306), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x31' + chr(48) + chr(0b10110 + 0o34), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(2469 - 2418) + '\064' + '\062', 52707 - 52699), nzTpIcepk0o8(chr(0b101110 + 0o2) + '\x6f' + chr(0b110111) + chr(2899 - 2845), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + '\x31' + chr(49) + chr(51), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(49) + chr(54) + chr(0b110011), 0o10), nzTpIcepk0o8(chr(443 - 395) + chr(5641 - 5530) + chr(49) + chr(50) + '\063', 37546 - 37538), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b100011 + 0o16) + chr(0b110111) + chr(177 - 126), ord("\x08")), nzTpIcepk0o8(chr(0b100101 + 0o13) + '\157' + '\063' + '\x31' + chr(0b110101), 0b1000), nzTpIcepk0o8(chr(271 - 223) + chr(9914 - 9803) + '\063' + chr(0b110011 + 0o0) + chr(0b111 + 0o55), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + '\x33' + chr(0b11000 + 0o35) + chr(51), 0b1000), nzTpIcepk0o8(chr(122 - 74) + chr(0b1101100 + 0o3) + chr(0b110011) + chr(566 - 516), 0o10), nzTpIcepk0o8(chr(475 - 427) + chr(0b1010101 + 0o32) + chr(0b110001) + '\x33' + chr(0b101001 + 0o15), 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(2407 - 2356) + chr(0b100111 + 0o16) + '\060', 52016 - 52008), nzTpIcepk0o8('\060' + '\157' + chr(0b100 + 0o55) + chr(1946 - 1898) + chr(0b101101 + 0o7), ord("\x08")), nzTpIcepk0o8(chr(0b11000 + 0o30) + chr(111) + chr(523 - 473) + chr(53) + '\066', 0o10), nzTpIcepk0o8(chr(2045 - 1997) + chr(0b1101111) + '\x32' + '\x34' + chr(0b11000 + 0o36), 27955 - 27947), nzTpIcepk0o8('\060' + '\157' + chr(53) + '\062', 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110111) + '\060', 34543 - 34535), nzTpIcepk0o8(chr(940 - 892) + chr(111) + '\x32' + '\x37' + chr(0b11000 + 0o36), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110010) + chr(55) + chr(511 - 462), 43525 - 43517), nzTpIcepk0o8(chr(0b110000) + chr(1080 - 969) + chr(744 - 693) + '\x34' + '\064', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(584 - 533) + '\x37' + chr(0b11111 + 0o27), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(50) + chr(0b100110 + 0o17) + chr(233 - 183), 0b1000), nzTpIcepk0o8(chr(866 - 818) + '\157' + '\x31' + chr(0b101001 + 0o7) + chr(1312 - 1259), ord("\x08")), nzTpIcepk0o8(chr(598 - 550) + chr(6316 - 6205) + chr(0b1011 + 0o50), 57271 - 57263), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(121 - 72) + chr(51) + chr(54), 8), nzTpIcepk0o8(chr(501 - 453) + '\157' + chr(0b101100 + 0o7) + chr(0b11000 + 0o36) + '\x31', 60155 - 60147), nzTpIcepk0o8(chr(251 - 203) + '\157' + chr(0b111 + 0o52) + chr(2087 - 2037) + chr(2366 - 2312), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + '\x31' + '\x33' + chr(0b110000), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1000010 + 0o55) + chr(49) + '\062' + chr(48), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110000 + 0o5) + chr(0b110011), 0o10), nzTpIcepk0o8(chr(0b11111 + 0o21) + '\x6f' + chr(1238 - 1189) + chr(0b10001 + 0o46) + '\067', 16670 - 16662), nzTpIcepk0o8(chr(1258 - 1210) + chr(0b1101111) + chr(0b100001 + 0o21) + chr(0b101000 + 0o16), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\065' + chr(0b110000), ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xbd'), '\x64' + chr(0b1100101) + chr(7158 - 7059) + chr(111) + chr(1415 - 1315) + chr(0b1100101))('\x75' + '\x74' + chr(0b1100110) + '\055' + chr(0b101100 + 0o14)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def ZZgxaMxk4TsA(hXMPsSrOQzbh, H5ObihiJsBjC, Dc7Hj2yQ0tyN=nzTpIcepk0o8(chr(1176 - 1128) + '\157' + chr(0b110000), 0b1000)):
p2uCJXP5psEg = MX_3dktPnFrU()
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'\xfaN\xcd\x1f*2q\x1d\xd3Y9<'), chr(0b1000111 + 0o35) + chr(0b1100100 + 0o1) + chr(4934 - 4835) + chr(0b1101110 + 0o1) + '\144' + chr(0b10000 + 0o125))(chr(0b100011 + 0o122) + chr(0b1110100) + chr(102) + chr(1520 - 1475) + '\070'))(roI3spqORKae(ES5oEprVxulp(b'\xd7Y\xf4\t\x7f\x11g&\x8bP,S>\x12\xbe\xaf\x82t9\xc8 \xc7\xd5^J\xd7\xdb\x91\x8a\xc3*mv\x82\x7fx~\x05'), chr(100) + '\145' + chr(6295 - 6196) + chr(0b1101111) + chr(0b101100 + 0o70) + chr(0b1100101))(chr(0b1110101) + chr(0b10 + 0o162) + chr(0b1000011 + 0o43) + chr(1626 - 1581) + chr(56)))
OS1WcFGrh7xy = hXMPsSrOQzbh.get_pip_requirement_set(H5ObihiJsBjC, use_remote_index=nzTpIcepk0o8(chr(1964 - 1916) + '\157' + '\x31', 0b1000), use_wheels=Dc7Hj2yQ0tyN)
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'\xfaN\xcd\x1f*2q\x1d\xd3Y9<'), chr(9097 - 8997) + chr(566 - 465) + chr(0b111000 + 0o53) + chr(0b1101111) + chr(100) + chr(101))(chr(8986 - 8869) + '\164' + chr(102) + '\x2d' + chr(599 - 543)))(roI3spqORKae(ES5oEprVxulp(b'\xd5_\xed\x0e`\x16c&\xc2Z$\x04=\x17\xa2\xbd\x8fs0\x8fd\xca\xcfYL\xcc\xd0\x86\x8b\xde,l0\xd9%qpB\x116\xb6E\xad'), chr(100) + '\145' + chr(5019 - 4920) + '\157' + chr(100) + '\145')(chr(0b110011 + 0o102) + '\164' + '\x66' + chr(0b101101) + '\070'), p2uCJXP5psEg)
return OS1WcFGrh7xy |
paylogic/pip-accel | pip_accel/__init__.py | PipAccelerator.get_pip_requirement_set | def get_pip_requirement_set(self, arguments, use_remote_index, use_wheels=False):
"""
Get the unpacked requirement(s) specified by the caller by running pip.
:param arguments: The command line arguments to ``pip install ...`` (a
list of strings).
:param use_remote_index: A boolean indicating whether pip is allowed to
connect to the main package index
(http://pypi.python.org by default).
:param use_wheels: Whether pip and pip-accel are allowed to use wheels_
(:data:`False` by default for backwards compatibility
with callers that use pip-accel as a Python API).
:returns: A :class:`pip.req.RequirementSet` object created by pip.
:raises: Any exceptions raised by pip.
"""
# Compose the pip command line arguments. This is where a lot of the
# core logic of pip-accel is hidden and it uses some esoteric features
# of pip so this method is heavily commented.
command_line = []
# Use `--download' to instruct pip to download requirement(s) into
# pip-accel's local source distribution index directory. This has the
# following documented side effects (see `pip install --help'):
# 1. It disables the installation of requirements (without using the
# `--no-install' option which is deprecated and slated for removal
# in pip 7.x).
# 2. It ignores requirements that are already installed (because
# pip-accel doesn't actually need to re-install requirements that
# are already installed we will have work around this later, but
# that seems fairly simple to do).
command_line.append('--download=%s' % self.config.source_index)
# Use `--find-links' to point pip at pip-accel's local source
# distribution index directory. This ensures that source distribution
# archives are never downloaded more than once (regardless of the HTTP
# cache that was introduced in pip 6.x).
command_line.append('--find-links=%s' % create_file_url(self.config.source_index))
# Use `--no-binary=:all:' to ignore wheel distributions by default in
# order to preserve backwards compatibility with callers that expect a
# requirement set consisting only of source distributions that can be
# converted to `dumb binary distributions'.
if not use_wheels and self.arguments_allow_wheels(arguments):
command_line.append('--no-binary=:all:')
# Use `--no-index' to force pip to only consider source distribution
# archives contained in pip-accel's local source distribution index
# directory. This enables pip-accel to ask pip "Can the local source
# distribution index satisfy all requirements in the given requirement
# set?" which enables pip-accel to keep pip off the internet unless
# absolutely necessary :-).
if not use_remote_index:
command_line.append('--no-index')
# Use `--no-clean' to instruct pip to unpack the source distribution
# archives and *not* clean up the unpacked source distributions
# afterwards. This enables pip-accel to replace pip's installation
# logic with cached binary distribution archives.
command_line.append('--no-clean')
# Use `--build-directory' to instruct pip to unpack the source
# distribution archives to a temporary directory managed by pip-accel.
# We will clean up the build directory when we're done using the
# unpacked source distributions.
command_line.append('--build-directory=%s' % self.build_directory)
# Append the user's `pip install ...' arguments to the command line
# that we just assembled.
command_line.extend(arguments)
logger.info("Executing command: pip install %s", ' '.join(command_line))
# Clear the build directory to prevent PreviousBuildDirError exceptions.
self.clear_build_directory()
# During the pip 6.x upgrade pip-accel switched to using `pip install
# --download' which can produce an interactive prompt as described in
# issue 51 [1]. The documented way [2] to get rid of this interactive
# prompt is pip's --exists-action option, but due to what is most
# likely a bug in pip this doesn't actually work. The environment
# variable $PIP_EXISTS_ACTION does work however, so if the user didn't
# set it we will set a reasonable default for them.
# [1] https://github.com/paylogic/pip-accel/issues/51
# [2] https://pip.pypa.io/en/latest/reference/pip.html#exists-action-option
os.environ.setdefault('PIP_EXISTS_ACTION', 'w')
# Initialize and run the `pip install' command.
command = InstallCommand()
opts, args = command.parse_args(command_line)
if not opts.ignore_installed:
# If the user didn't supply the -I, --ignore-installed option we
# will forcefully disable the option. Refer to the documentation of
# the AttributeOverrides class for further details.
opts = AttributeOverrides(opts, ignore_installed=False)
requirement_set = command.run(opts, args)
# Make sure the output of pip and pip-accel are not intermingled.
sys.stdout.flush()
if requirement_set is None:
raise NothingToDoError("""
pip didn't generate a requirement set, most likely you
specified an empty requirements file?
""")
else:
return self.transform_pip_requirement_set(requirement_set) | python | def get_pip_requirement_set(self, arguments, use_remote_index, use_wheels=False):
"""
Get the unpacked requirement(s) specified by the caller by running pip.
:param arguments: The command line arguments to ``pip install ...`` (a
list of strings).
:param use_remote_index: A boolean indicating whether pip is allowed to
connect to the main package index
(http://pypi.python.org by default).
:param use_wheels: Whether pip and pip-accel are allowed to use wheels_
(:data:`False` by default for backwards compatibility
with callers that use pip-accel as a Python API).
:returns: A :class:`pip.req.RequirementSet` object created by pip.
:raises: Any exceptions raised by pip.
"""
# Compose the pip command line arguments. This is where a lot of the
# core logic of pip-accel is hidden and it uses some esoteric features
# of pip so this method is heavily commented.
command_line = []
# Use `--download' to instruct pip to download requirement(s) into
# pip-accel's local source distribution index directory. This has the
# following documented side effects (see `pip install --help'):
# 1. It disables the installation of requirements (without using the
# `--no-install' option which is deprecated and slated for removal
# in pip 7.x).
# 2. It ignores requirements that are already installed (because
# pip-accel doesn't actually need to re-install requirements that
# are already installed we will have work around this later, but
# that seems fairly simple to do).
command_line.append('--download=%s' % self.config.source_index)
# Use `--find-links' to point pip at pip-accel's local source
# distribution index directory. This ensures that source distribution
# archives are never downloaded more than once (regardless of the HTTP
# cache that was introduced in pip 6.x).
command_line.append('--find-links=%s' % create_file_url(self.config.source_index))
# Use `--no-binary=:all:' to ignore wheel distributions by default in
# order to preserve backwards compatibility with callers that expect a
# requirement set consisting only of source distributions that can be
# converted to `dumb binary distributions'.
if not use_wheels and self.arguments_allow_wheels(arguments):
command_line.append('--no-binary=:all:')
# Use `--no-index' to force pip to only consider source distribution
# archives contained in pip-accel's local source distribution index
# directory. This enables pip-accel to ask pip "Can the local source
# distribution index satisfy all requirements in the given requirement
# set?" which enables pip-accel to keep pip off the internet unless
# absolutely necessary :-).
if not use_remote_index:
command_line.append('--no-index')
# Use `--no-clean' to instruct pip to unpack the source distribution
# archives and *not* clean up the unpacked source distributions
# afterwards. This enables pip-accel to replace pip's installation
# logic with cached binary distribution archives.
command_line.append('--no-clean')
# Use `--build-directory' to instruct pip to unpack the source
# distribution archives to a temporary directory managed by pip-accel.
# We will clean up the build directory when we're done using the
# unpacked source distributions.
command_line.append('--build-directory=%s' % self.build_directory)
# Append the user's `pip install ...' arguments to the command line
# that we just assembled.
command_line.extend(arguments)
logger.info("Executing command: pip install %s", ' '.join(command_line))
# Clear the build directory to prevent PreviousBuildDirError exceptions.
self.clear_build_directory()
# During the pip 6.x upgrade pip-accel switched to using `pip install
# --download' which can produce an interactive prompt as described in
# issue 51 [1]. The documented way [2] to get rid of this interactive
# prompt is pip's --exists-action option, but due to what is most
# likely a bug in pip this doesn't actually work. The environment
# variable $PIP_EXISTS_ACTION does work however, so if the user didn't
# set it we will set a reasonable default for them.
# [1] https://github.com/paylogic/pip-accel/issues/51
# [2] https://pip.pypa.io/en/latest/reference/pip.html#exists-action-option
os.environ.setdefault('PIP_EXISTS_ACTION', 'w')
# Initialize and run the `pip install' command.
command = InstallCommand()
opts, args = command.parse_args(command_line)
if not opts.ignore_installed:
# If the user didn't supply the -I, --ignore-installed option we
# will forcefully disable the option. Refer to the documentation of
# the AttributeOverrides class for further details.
opts = AttributeOverrides(opts, ignore_installed=False)
requirement_set = command.run(opts, args)
# Make sure the output of pip and pip-accel are not intermingled.
sys.stdout.flush()
if requirement_set is None:
raise NothingToDoError("""
pip didn't generate a requirement set, most likely you
specified an empty requirements file?
""")
else:
return self.transform_pip_requirement_set(requirement_set) | [
"def",
"get_pip_requirement_set",
"(",
"self",
",",
"arguments",
",",
"use_remote_index",
",",
"use_wheels",
"=",
"False",
")",
":",
"# Compose the pip command line arguments. This is where a lot of the",
"# core logic of pip-accel is hidden and it uses some esoteric features",
"# of pip so this method is heavily commented.",
"command_line",
"=",
"[",
"]",
"# Use `--download' to instruct pip to download requirement(s) into",
"# pip-accel's local source distribution index directory. This has the",
"# following documented side effects (see `pip install --help'):",
"# 1. It disables the installation of requirements (without using the",
"# `--no-install' option which is deprecated and slated for removal",
"# in pip 7.x).",
"# 2. It ignores requirements that are already installed (because",
"# pip-accel doesn't actually need to re-install requirements that",
"# are already installed we will have work around this later, but",
"# that seems fairly simple to do).",
"command_line",
".",
"append",
"(",
"'--download=%s'",
"%",
"self",
".",
"config",
".",
"source_index",
")",
"# Use `--find-links' to point pip at pip-accel's local source",
"# distribution index directory. This ensures that source distribution",
"# archives are never downloaded more than once (regardless of the HTTP",
"# cache that was introduced in pip 6.x).",
"command_line",
".",
"append",
"(",
"'--find-links=%s'",
"%",
"create_file_url",
"(",
"self",
".",
"config",
".",
"source_index",
")",
")",
"# Use `--no-binary=:all:' to ignore wheel distributions by default in",
"# order to preserve backwards compatibility with callers that expect a",
"# requirement set consisting only of source distributions that can be",
"# converted to `dumb binary distributions'.",
"if",
"not",
"use_wheels",
"and",
"self",
".",
"arguments_allow_wheels",
"(",
"arguments",
")",
":",
"command_line",
".",
"append",
"(",
"'--no-binary=:all:'",
")",
"# Use `--no-index' to force pip to only consider source distribution",
"# archives contained in pip-accel's local source distribution index",
"# directory. This enables pip-accel to ask pip \"Can the local source",
"# distribution index satisfy all requirements in the given requirement",
"# set?\" which enables pip-accel to keep pip off the internet unless",
"# absolutely necessary :-).",
"if",
"not",
"use_remote_index",
":",
"command_line",
".",
"append",
"(",
"'--no-index'",
")",
"# Use `--no-clean' to instruct pip to unpack the source distribution",
"# archives and *not* clean up the unpacked source distributions",
"# afterwards. This enables pip-accel to replace pip's installation",
"# logic with cached binary distribution archives.",
"command_line",
".",
"append",
"(",
"'--no-clean'",
")",
"# Use `--build-directory' to instruct pip to unpack the source",
"# distribution archives to a temporary directory managed by pip-accel.",
"# We will clean up the build directory when we're done using the",
"# unpacked source distributions.",
"command_line",
".",
"append",
"(",
"'--build-directory=%s'",
"%",
"self",
".",
"build_directory",
")",
"# Append the user's `pip install ...' arguments to the command line",
"# that we just assembled.",
"command_line",
".",
"extend",
"(",
"arguments",
")",
"logger",
".",
"info",
"(",
"\"Executing command: pip install %s\"",
",",
"' '",
".",
"join",
"(",
"command_line",
")",
")",
"# Clear the build directory to prevent PreviousBuildDirError exceptions.",
"self",
".",
"clear_build_directory",
"(",
")",
"# During the pip 6.x upgrade pip-accel switched to using `pip install",
"# --download' which can produce an interactive prompt as described in",
"# issue 51 [1]. The documented way [2] to get rid of this interactive",
"# prompt is pip's --exists-action option, but due to what is most",
"# likely a bug in pip this doesn't actually work. The environment",
"# variable $PIP_EXISTS_ACTION does work however, so if the user didn't",
"# set it we will set a reasonable default for them.",
"# [1] https://github.com/paylogic/pip-accel/issues/51",
"# [2] https://pip.pypa.io/en/latest/reference/pip.html#exists-action-option",
"os",
".",
"environ",
".",
"setdefault",
"(",
"'PIP_EXISTS_ACTION'",
",",
"'w'",
")",
"# Initialize and run the `pip install' command.",
"command",
"=",
"InstallCommand",
"(",
")",
"opts",
",",
"args",
"=",
"command",
".",
"parse_args",
"(",
"command_line",
")",
"if",
"not",
"opts",
".",
"ignore_installed",
":",
"# If the user didn't supply the -I, --ignore-installed option we",
"# will forcefully disable the option. Refer to the documentation of",
"# the AttributeOverrides class for further details.",
"opts",
"=",
"AttributeOverrides",
"(",
"opts",
",",
"ignore_installed",
"=",
"False",
")",
"requirement_set",
"=",
"command",
".",
"run",
"(",
"opts",
",",
"args",
")",
"# Make sure the output of pip and pip-accel are not intermingled.",
"sys",
".",
"stdout",
".",
"flush",
"(",
")",
"if",
"requirement_set",
"is",
"None",
":",
"raise",
"NothingToDoError",
"(",
"\"\"\"\n pip didn't generate a requirement set, most likely you\n specified an empty requirements file?\n \"\"\"",
")",
"else",
":",
"return",
"self",
".",
"transform_pip_requirement_set",
"(",
"requirement_set",
")"
] | Get the unpacked requirement(s) specified by the caller by running pip.
:param arguments: The command line arguments to ``pip install ...`` (a
list of strings).
:param use_remote_index: A boolean indicating whether pip is allowed to
connect to the main package index
(http://pypi.python.org by default).
:param use_wheels: Whether pip and pip-accel are allowed to use wheels_
(:data:`False` by default for backwards compatibility
with callers that use pip-accel as a Python API).
:returns: A :class:`pip.req.RequirementSet` object created by pip.
:raises: Any exceptions raised by pip. | [
"Get",
"the",
"unpacked",
"requirement",
"(",
"s",
")",
"specified",
"by",
"the",
"caller",
"by",
"running",
"pip",
"."
] | ccad1b784927a322d996db593403b1d2d2e22666 | https://github.com/paylogic/pip-accel/blob/ccad1b784927a322d996db593403b1d2d2e22666/pip_accel/__init__.py#L414-L506 | train | Returns a pip. req. RequirementSet object for the given pip arguments. | GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,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bhU,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' + chr(8077 - 7966) + chr(0b110011) + chr(48) + chr(0b100010 + 0o20), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b100001 + 0o22) + '\066', 44924 - 44916), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(2313 - 2264) + '\x34' + chr(1128 - 1075), 52296 - 52288), nzTpIcepk0o8(chr(48) + chr(0b1010101 + 0o32) + '\x31' + '\060' + chr(0b10010 + 0o40), ord("\x08")), nzTpIcepk0o8(chr(0b1101 + 0o43) + '\x6f' + chr(0b110001) + chr(0b110000) + chr(50), 8), nzTpIcepk0o8('\x30' + chr(0b111001 + 0o66) + chr(0b110010) + '\x37' + chr(0b110100), ord("\x08")), nzTpIcepk0o8(chr(2004 - 1956) + chr(0b10101 + 0o132) + chr(1644 - 1594) + chr(0b110000) + '\x32', 14295 - 14287), nzTpIcepk0o8('\x30' + chr(0b101010 + 0o105) + '\061' + chr(55), 0b1000), nzTpIcepk0o8(chr(1100 - 1052) + chr(0b1101111) + chr(0b1101 + 0o44) + chr(445 - 395) + chr(0b101011 + 0o10), 50234 - 50226), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110110) + '\061', 0o10), nzTpIcepk0o8(chr(48) + chr(111) + '\063' + chr(790 - 738) + chr(61 - 12), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110010) + chr(0b11 + 0o55) + chr(54), 0o10), nzTpIcepk0o8(chr(1731 - 1683) + chr(706 - 595) + '\062' + chr(53) + '\x30', 0b1000), nzTpIcepk0o8(chr(0b101111 + 0o1) + chr(111) + chr(0b110001 + 0o2) + '\065' + chr(0b110000), 0b1000), nzTpIcepk0o8(chr(0b11000 + 0o30) + '\x6f' + chr(2325 - 2275) + '\x31' + chr(0b100010 + 0o17), 37879 - 37871), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110001) + '\062' + chr(402 - 347), 8204 - 8196), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\061' + chr(1587 - 1539) + chr(51), 50961 - 50953), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(49) + chr(0b100111 + 0o11) + '\x30', ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b1001 + 0o51) + chr(0b110000) + '\060', ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(0b1001 + 0o50) + '\064' + chr(50), 51936 - 51928), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110010) + '\x37' + '\066', 0b1000), nzTpIcepk0o8(chr(0b11100 + 0o24) + chr(0b101101 + 0o102) + '\061' + chr(1180 - 1131) + chr(547 - 492), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(53) + '\064', ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(53) + chr(0b110101), 25600 - 25592), nzTpIcepk0o8(chr(0b110000) + chr(7183 - 7072) + chr(2490 - 2439) + chr(52) + chr(53), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110011) + chr(966 - 917) + chr(52), 49374 - 49366), nzTpIcepk0o8(chr(0b11001 + 0o27) + chr(111) + '\067', 0o10), nzTpIcepk0o8('\x30' + chr(1373 - 1262) + chr(51) + '\065' + chr(0b110010), 0b1000), nzTpIcepk0o8(chr(0b100110 + 0o12) + chr(0b1101111) + chr(0b11101 + 0o26) + '\064' + chr(55), ord("\x08")), nzTpIcepk0o8(chr(322 - 274) + chr(0b101110 + 0o101) + chr(49) + chr(0b10011 + 0o41) + chr(2041 - 1986), 0b1000), nzTpIcepk0o8(chr(0b1100 + 0o44) + chr(111) + chr(0b110010) + chr(0b110110) + chr(430 - 382), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(0b11010 + 0o30) + '\060' + chr(0b110110), 8), nzTpIcepk0o8(chr(48) + chr(0b10111 + 0o130) + chr(49) + chr(49) + chr(0b1000 + 0o52), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110011) + '\066' + chr(1252 - 1202), 0o10), nzTpIcepk0o8('\060' + chr(0b110 + 0o151) + chr(0b10 + 0o60) + '\x37' + chr(49), ord("\x08")), nzTpIcepk0o8(chr(1419 - 1371) + '\157' + chr(236 - 186) + chr(0b100100 + 0o16) + '\064', 19343 - 19335), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\067' + '\061', ord("\x08")), nzTpIcepk0o8(chr(0b11110 + 0o22) + chr(0b1101111) + chr(0b110011) + chr(48) + chr(53), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110010) + chr(0b110100) + chr(0b110011), 0b1000), nzTpIcepk0o8(chr(66 - 18) + chr(0b110111 + 0o70) + chr(0b11001 + 0o30) + chr(2161 - 2112) + '\x31', ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(1856 - 1808) + '\x6f' + '\x35' + '\060', 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xec'), '\144' + chr(5921 - 5820) + chr(9418 - 9319) + '\157' + chr(100) + '\145')(chr(0b110 + 0o157) + chr(0b1101110 + 0o6) + chr(0b1100110) + chr(0b101101) + chr(56)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def dR0eEOM6LyVy(hXMPsSrOQzbh, H5ObihiJsBjC, jh8vB3D9g4mS, Dc7Hj2yQ0tyN=nzTpIcepk0o8(chr(1448 - 1400) + chr(0b110001 + 0o76) + '\060', ord("\x08"))):
OMPKB_AuFZpn = []
roI3spqORKae(OMPKB_AuFZpn, roI3spqORKae(ES5oEprVxulp(b'\x8aJ6v:\xdb\xc5`9^\xb4\xb3'), '\x64' + '\145' + chr(8162 - 8063) + '\157' + '\144' + chr(0b1 + 0o144))(chr(0b1110101) + chr(0b11111 + 0o125) + chr(0b1000011 + 0o43) + '\055' + '\070'))(roI3spqORKae(ES5oEprVxulp(b'\xef3\x01-5\xd2\xee`2U\xdc\xa3\xdb'), chr(0b1100100) + '\145' + chr(0b1100011) + chr(0b1101111) + chr(0b110001 + 0o63) + chr(6582 - 6481))(chr(117) + chr(116) + chr(6007 - 5905) + '\055' + '\x38') % roI3spqORKae(hXMPsSrOQzbh.config, roI3spqORKae(ES5oEprVxulp(b'\xb1q\x100!\xd9\xddf=U\x84\xfe'), '\x64' + chr(101) + chr(0b10111 + 0o114) + chr(0b1101111) + chr(0b1100100) + '\x65')('\x75' + chr(116) + chr(0b11100 + 0o112) + chr(1242 - 1197) + chr(0b100100 + 0o24))))
roI3spqORKae(OMPKB_AuFZpn, roI3spqORKae(ES5oEprVxulp(b'\x8aJ6v:\xdb\xc5`9^\xb4\xb3'), chr(100) + '\x65' + '\x63' + chr(1167 - 1056) + '\x64' + chr(4567 - 4466))('\x75' + '\164' + chr(102) + '\055' + chr(3082 - 3026)))(roI3spqORKae(ES5oEprVxulp(b'\xef3\x03+,\xd8\xafc:_\x8a\xf5\x95\xcd\xfa'), '\144' + chr(0b1000 + 0o135) + '\143' + chr(6651 - 6540) + '\x64' + chr(101))(chr(0b101010 + 0o113) + chr(0b1110100) + chr(0b1011100 + 0o12) + '\055' + chr(56)) % pODe8opp4KbM(roI3spqORKae(hXMPsSrOQzbh.config, roI3spqORKae(ES5oEprVxulp(b'\xb1q\x100!\xd9\xddf=U\x84\xfe'), '\x64' + '\x65' + '\x63' + chr(5441 - 5330) + '\144' + chr(0b1100101))('\165' + '\x74' + '\x66' + '\x2d' + chr(56)))))
if not Dc7Hj2yQ0tyN and roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xa3l\x027/\xd9\xec{ n\x80\xea\xc4\x87\xfe\x084(\xe5\x07\xd2<'), '\144' + chr(101) + '\143' + chr(111) + chr(0b11110 + 0o106) + '\x65')(chr(117) + chr(10437 - 10321) + '\x66' + chr(1593 - 1548) + chr(0b100 + 0o64)))(H5ObihiJsBjC):
roI3spqORKae(OMPKB_AuFZpn, roI3spqORKae(ES5oEprVxulp(b'\x8aJ6v:\xdb\xc5`9^\xb4\xb3'), chr(0b1100100) + chr(4160 - 4059) + '\x63' + '\157' + '\144' + chr(0b1100101))('\x75' + '\x74' + chr(1325 - 1223) + chr(0b101101) + chr(0b111000)))(roI3spqORKae(ES5oEprVxulp(b'\xef3\x0b-o\xde\xeba2C\x98\xbb\x92\x89\xe5;y'), chr(100) + chr(8783 - 8682) + chr(7887 - 7788) + chr(10323 - 10212) + '\144' + chr(101))(chr(0b1010010 + 0o43) + chr(0b111110 + 0o66) + chr(102) + chr(1709 - 1664) + '\x38'))
if not jh8vB3D9g4mS:
roI3spqORKae(OMPKB_AuFZpn, roI3spqORKae(ES5oEprVxulp(b'\x8aJ6v:\xdb\xc5`9^\xb4\xb3'), chr(100) + chr(0b1100101) + chr(0b100101 + 0o76) + chr(0b1101111) + '\144' + chr(101))('\x75' + '\164' + '\x66' + chr(0b10010 + 0o33) + '\070'))(roI3spqORKae(ES5oEprVxulp(b'\xef3\x0b-o\xd5\xeck6I'), chr(0b1100100) + chr(0b1100101) + '\143' + chr(111) + chr(0b1100100) + chr(1123 - 1022))(chr(0b1110101) + chr(116) + chr(0b110011 + 0o63) + '\055' + chr(1594 - 1538)))
roI3spqORKae(OMPKB_AuFZpn, roI3spqORKae(ES5oEprVxulp(b'\x8aJ6v:\xdb\xc5`9^\xb4\xb3'), '\x64' + chr(0b1001 + 0o134) + chr(4670 - 4571) + '\x6f' + '\x64' + chr(101))('\165' + chr(11963 - 11847) + '\x66' + chr(45) + chr(0b110011 + 0o5)))(roI3spqORKae(ES5oEprVxulp(b'\xef3\x0b-o\xdf\xeej2_'), chr(100) + chr(101) + '\143' + chr(111) + chr(0b1011010 + 0o12) + chr(0b1100101))(chr(0b10111 + 0o136) + chr(7720 - 7604) + '\x66' + '\055' + chr(395 - 339)))
roI3spqORKae(OMPKB_AuFZpn, roI3spqORKae(ES5oEprVxulp(b'\x8aJ6v:\xdb\xc5`9^\xb4\xb3'), chr(2805 - 2705) + chr(8439 - 8338) + '\x63' + chr(0b1101111) + chr(8101 - 8001) + '\145')(chr(13106 - 12989) + chr(0b1110100) + '\146' + chr(0b101101) + '\070'))(roI3spqORKae(ES5oEprVxulp(b'\xef3\x077+\xd0\xe6"7X\x93\xe3\xcb\x9c\xe6%:}\xa5\x11'), chr(0b1100100) + chr(101) + '\x63' + chr(0b1101111) + chr(0b1011110 + 0o6) + chr(101))('\x75' + '\164' + chr(0b1100100 + 0o2) + chr(0b101101) + chr(0b111000)) % roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xa0k\x0c.&\xe3\xe6f!T\x82\xf2\xc7\x9a\xf0'), chr(0b1100100) + chr(10045 - 9944) + '\143' + chr(2938 - 2827) + '\144' + chr(101))(chr(117) + chr(2745 - 2629) + chr(0b100 + 0o142) + chr(1123 - 1078) + '\x38')))
roI3spqORKae(OMPKB_AuFZpn, roI3spqORKae(ES5oEprVxulp(b'\x96AV\x0f-\xd8\xceX\x0cs\x83\xf7'), chr(100) + chr(8616 - 8515) + chr(0b1100011) + chr(111) + chr(852 - 752) + chr(101))('\x75' + '\164' + '\x66' + '\x2d' + chr(0b10000 + 0o50)))(H5ObihiJsBjC)
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'\xabf+:{\xf0\xf5PbV\x93\xc9'), chr(9949 - 9849) + '\145' + chr(4427 - 4328) + chr(0b101110 + 0o101) + chr(100) + chr(0b110011 + 0o62))(chr(6885 - 6768) + chr(0b1110100) + chr(0b100011 + 0o103) + '\x2d' + chr(56)))(roI3spqORKae(ES5oEprVxulp(b"\x87f\x00!7\xc8\xeba4\x11\x82\xe9\xc5\x85\xe89'z\xa0\x12\xd7?\x0cD\x8b\xbfs\x8b\x8b\x0b\x90\xa39"), '\144' + chr(101) + chr(0b1100011) + '\x6f' + chr(0b1100100) + chr(0b1100101))(chr(117) + chr(4803 - 4687) + chr(0b1001001 + 0o35) + chr(0b111 + 0o46) + chr(0b111000)), roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\xe2'), chr(5314 - 5214) + '\145' + chr(99) + chr(0b1101111) + chr(100) + '\145')(chr(0b1110101) + '\164' + chr(1718 - 1616) + chr(0b101101) + chr(2467 - 2411)), roI3spqORKae(ES5oEprVxulp(b'\x9b*\x1c\x0f{\xfe\xe1i\x07r\xaf\xf7'), '\144' + chr(1558 - 1457) + chr(6977 - 6878) + '\x6f' + '\144' + chr(1512 - 1411))(chr(0b1110101) + chr(3906 - 3790) + chr(3170 - 3068) + chr(0b101100 + 0o1) + chr(0b10011 + 0o45)))(OMPKB_AuFZpn))
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xa1r\x00#0\xe3\xe0z:]\x85\xd9\xcc\x81\xfb2 4\xef\x10\xc7'), '\144' + chr(0b1100101) + chr(99) + '\x6f' + chr(100) + '\145')('\165' + '\164' + '\146' + chr(0b101101) + '\x38'))()
roI3spqORKae(aHUqKstZLeS6.environ, roI3spqORKae(ES5oEprVxulp(b'\xb8{U\x08\x0f\xc9\xc96!^\xb6\xd5'), '\144' + chr(4942 - 4841) + chr(0b1100011) + '\x6f' + chr(0b1100100) + chr(0b1100101))(chr(0b10011 + 0o142) + chr(2687 - 2571) + chr(0b1001 + 0o135) + '\055' + chr(56)))(roI3spqORKae(ES5oEprVxulp(b'\x92W5\x1d\x07\xe4\xcb\\\x07b\xbe\xc7\xeb\xbc\xc0\x18\r'), '\x64' + chr(101) + chr(3891 - 3792) + '\157' + '\144' + chr(808 - 707))(chr(0b1110101) + '\x74' + chr(0b1100110) + chr(45) + chr(0b111000)), roI3spqORKae(ES5oEprVxulp(b'\xb5'), chr(0b1100100) + '\x65' + chr(0b1100011) + chr(0b1010111 + 0o30) + chr(0b1100100) + '\x65')(chr(0b1110101) + chr(8333 - 8217) + '\146' + '\x2d' + '\x38'))
rZO0j44B8n0L = RCESME5G4bG2()
(M8wfvmpEewAe, eemPYp2vtTSr) = rZO0j44B8n0L.JvKYHysdS3LV(OMPKB_AuFZpn)
if not roI3spqORKae(M8wfvmpEewAe, roI3spqORKae(ES5oEprVxulp(b'\xaby\x0b-0\xd9\xddf=B\x95\xe7\xc4\x84\xec3'), chr(0b1100100) + chr(101) + chr(0b1100011) + '\157' + '\x64' + '\145')(chr(0b1110101) + chr(116) + chr(8517 - 8415) + chr(45) + '\070')):
M8wfvmpEewAe = D2RBOUk38rgS(M8wfvmpEewAe, ignore_installed=nzTpIcepk0o8(chr(0b11101 + 0o23) + chr(7304 - 7193) + chr(0b110000), 8))
r6z0ucM1mLNh = rZO0j44B8n0L.qnPOIdBQJdzY(M8wfvmpEewAe, eemPYp2vtTSr)
roI3spqORKae(bpyfpu4kTbwL.stdout, roI3spqORKae(ES5oEprVxulp(b'\xa9I\x15;\x00\xce\xd4X\x11A\x92\xc3'), '\x64' + chr(101) + chr(9770 - 9671) + chr(111) + chr(100) + chr(0b1100101))('\x75' + chr(0b1110100) + chr(4990 - 4888) + '\055' + chr(0b111000)))()
if r6z0ucM1mLNh is None:
raise OkSIRoEbaLPs(roI3spqORKae(ES5oEprVxulp(b"\xc8>Ebb\x9c\xa2/s\x11\xc1\xa6\x88\xc8\xa9wc0\xe9\x12\x9e+EI\x8b\xebs\xca\x80\x02\xde\xe38\x93\xcd\xf1\x19\xa4\x83;\xa7o\x10+0\xd9\xefj=E\xc1\xf5\xcd\x9c\xa5w./\xf3\x16\x9e#EF\x80\xa0~\xca\x9e\x08\xc5\x8cj\xd2\x99\xb4\x19\xe5\x83i\xe2>Ebb\x9c\xa2/ A\x84\xe5\xc1\x8e\xe02'`\xe1\x0c\x9e*A]\x91\xb5'\x98\x82\x16\xc5\xef8\x97\xd4\xf1W\xb1\xd0i\xa4w\t'}\xb6\xa2/s\x11\xc1\xa6\x88\xc8\xa9wc`"), '\144' + '\x65' + chr(8944 - 8845) + chr(111) + '\144' + chr(0b1100101))('\x75' + '\164' + chr(102) + '\x2d' + chr(0b111000)))
else:
return roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xb6l\x04,1\xda\xed}>n\x91\xef\xd8\xb7\xfb225\xe9\x10\xdb"IC\x91\x93t\x8f\x93'), chr(0b1100100) + chr(101) + chr(0b100000 + 0o103) + '\x6f' + chr(100) + '\x65')(chr(117) + chr(116) + chr(102) + '\x2d' + '\070'))(r6z0ucM1mLNh) |
paylogic/pip-accel | pip_accel/__init__.py | PipAccelerator.transform_pip_requirement_set | def transform_pip_requirement_set(self, requirement_set):
"""
Transform pip's requirement set into one that `pip-accel` can work with.
:param requirement_set: The :class:`pip.req.RequirementSet` object
reported by pip.
:returns: A list of :class:`pip_accel.req.Requirement` objects.
This function converts the :class:`pip.req.RequirementSet` object
reported by pip into a list of :class:`pip_accel.req.Requirement`
objects.
"""
filtered_requirements = []
for requirement in requirement_set.requirements.values():
# The `satisfied_by' property is set by pip when a requirement is
# already satisfied (i.e. a version of the package that satisfies
# the requirement is already installed) and -I, --ignore-installed
# is not used. We filter out these requirements because pip never
# unpacks distributions for these requirements, so pip-accel can't
# do anything useful with such requirements.
if requirement.satisfied_by:
continue
# The `constraint' property marks requirement objects that
# constrain the acceptable version(s) of another requirement but
# don't define a requirement themselves, so we filter them out.
if requirement.constraint:
continue
# All other requirements are reported to callers.
filtered_requirements.append(requirement)
self.reported_requirements.append(requirement)
return sorted([Requirement(self.config, r) for r in filtered_requirements],
key=lambda r: r.name.lower()) | python | def transform_pip_requirement_set(self, requirement_set):
"""
Transform pip's requirement set into one that `pip-accel` can work with.
:param requirement_set: The :class:`pip.req.RequirementSet` object
reported by pip.
:returns: A list of :class:`pip_accel.req.Requirement` objects.
This function converts the :class:`pip.req.RequirementSet` object
reported by pip into a list of :class:`pip_accel.req.Requirement`
objects.
"""
filtered_requirements = []
for requirement in requirement_set.requirements.values():
# The `satisfied_by' property is set by pip when a requirement is
# already satisfied (i.e. a version of the package that satisfies
# the requirement is already installed) and -I, --ignore-installed
# is not used. We filter out these requirements because pip never
# unpacks distributions for these requirements, so pip-accel can't
# do anything useful with such requirements.
if requirement.satisfied_by:
continue
# The `constraint' property marks requirement objects that
# constrain the acceptable version(s) of another requirement but
# don't define a requirement themselves, so we filter them out.
if requirement.constraint:
continue
# All other requirements are reported to callers.
filtered_requirements.append(requirement)
self.reported_requirements.append(requirement)
return sorted([Requirement(self.config, r) for r in filtered_requirements],
key=lambda r: r.name.lower()) | [
"def",
"transform_pip_requirement_set",
"(",
"self",
",",
"requirement_set",
")",
":",
"filtered_requirements",
"=",
"[",
"]",
"for",
"requirement",
"in",
"requirement_set",
".",
"requirements",
".",
"values",
"(",
")",
":",
"# The `satisfied_by' property is set by pip when a requirement is",
"# already satisfied (i.e. a version of the package that satisfies",
"# the requirement is already installed) and -I, --ignore-installed",
"# is not used. We filter out these requirements because pip never",
"# unpacks distributions for these requirements, so pip-accel can't",
"# do anything useful with such requirements.",
"if",
"requirement",
".",
"satisfied_by",
":",
"continue",
"# The `constraint' property marks requirement objects that",
"# constrain the acceptable version(s) of another requirement but",
"# don't define a requirement themselves, so we filter them out.",
"if",
"requirement",
".",
"constraint",
":",
"continue",
"# All other requirements are reported to callers.",
"filtered_requirements",
".",
"append",
"(",
"requirement",
")",
"self",
".",
"reported_requirements",
".",
"append",
"(",
"requirement",
")",
"return",
"sorted",
"(",
"[",
"Requirement",
"(",
"self",
".",
"config",
",",
"r",
")",
"for",
"r",
"in",
"filtered_requirements",
"]",
",",
"key",
"=",
"lambda",
"r",
":",
"r",
".",
"name",
".",
"lower",
"(",
")",
")"
] | Transform pip's requirement set into one that `pip-accel` can work with.
:param requirement_set: The :class:`pip.req.RequirementSet` object
reported by pip.
:returns: A list of :class:`pip_accel.req.Requirement` objects.
This function converts the :class:`pip.req.RequirementSet` object
reported by pip into a list of :class:`pip_accel.req.Requirement`
objects. | [
"Transform",
"pip",
"s",
"requirement",
"set",
"into",
"one",
"that",
"pip",
"-",
"accel",
"can",
"work",
"with",
"."
] | ccad1b784927a322d996db593403b1d2d2e22666 | https://github.com/paylogic/pip-accel/blob/ccad1b784927a322d996db593403b1d2d2e22666/pip_accel/__init__.py#L508-L539 | train | Transform pip s requirement set into one that pip - accel can work with. | GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5w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nI,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(48) + chr(111) + chr(0b110001) + '\065' + chr(721 - 672), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(1449 - 1399) + chr(0b1100 + 0o50), 11214 - 11206), nzTpIcepk0o8('\060' + '\x6f' + '\063' + chr(1848 - 1797) + chr(54), 37838 - 37830), nzTpIcepk0o8('\060' + '\157' + '\062' + '\060' + chr(0b101101 + 0o6), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(456 - 405) + '\x31' + '\x35', 0b1000), nzTpIcepk0o8('\x30' + chr(0b110111 + 0o70) + '\x32' + chr(2540 - 2486) + chr(0b110000), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + '\061' + '\063' + chr(0b110010), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + '\x37' + '\x35', 0o10), nzTpIcepk0o8(chr(0b100111 + 0o11) + chr(0b1101111) + '\061' + '\x33' + chr(0b110010), 8), nzTpIcepk0o8(chr(0b11101 + 0o23) + '\x6f' + chr(545 - 495) + chr(0b110000) + '\061', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110001 + 0o0) + chr(0b100100 + 0o17) + '\065', 13035 - 13027), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\061' + chr(0b110000) + '\x33', 3844 - 3836), nzTpIcepk0o8('\060' + chr(111) + '\062' + '\x30' + chr(0b11101 + 0o30), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(0b10010 + 0o41) + '\x36' + chr(0b110101), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b10001 + 0o41) + chr(1781 - 1733) + chr(0b110110), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + '\062' + '\064', 8), nzTpIcepk0o8(chr(0b1110 + 0o42) + '\x6f' + chr(195 - 144) + chr(0b110101), ord("\x08")), nzTpIcepk0o8(chr(712 - 664) + chr(0b111 + 0o150) + chr(1073 - 1022) + chr(382 - 332) + chr(0b110011), 0o10), nzTpIcepk0o8('\060' + chr(0b1000011 + 0o54) + chr(51) + '\065' + '\062', 35150 - 35142), nzTpIcepk0o8(chr(1425 - 1377) + '\x6f' + chr(0b1101 + 0o46) + chr(50) + chr(0b110101), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(124 - 74) + '\x35' + '\064', ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + '\064' + chr(52), 39231 - 39223), nzTpIcepk0o8(chr(0b110000) + chr(5269 - 5158) + '\x31' + chr(0b111 + 0o52) + chr(0b110010), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110001) + chr(0b10100 + 0o41) + '\064', 0b1000), nzTpIcepk0o8(chr(0b101100 + 0o4) + chr(6559 - 6448) + '\x31' + '\060' + '\067', 52078 - 52070), nzTpIcepk0o8(chr(369 - 321) + '\157' + chr(0b110011) + chr(941 - 887) + chr(2256 - 2205), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110001) + chr(0b100010 + 0o22) + '\x32', 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b10110 + 0o34) + chr(0b10000 + 0o42) + chr(0b110110), 0b1000), nzTpIcepk0o8(chr(1533 - 1485) + '\157' + chr(1993 - 1944) + '\x34' + '\x31', 52873 - 52865), nzTpIcepk0o8(chr(0b110000) + chr(10248 - 10137) + chr(463 - 413) + chr(0b100111 + 0o16) + chr(0b10 + 0o61), 0o10), nzTpIcepk0o8(chr(0b10011 + 0o35) + '\x6f' + chr(2486 - 2433) + '\061', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b100110 + 0o111) + chr(51) + chr(0b110011) + chr(0b1011 + 0o52), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(2325 - 2276) + chr(0b10001 + 0o37) + '\x36', 5828 - 5820), nzTpIcepk0o8('\x30' + chr(7829 - 7718) + '\063' + '\061' + '\x32', ord("\x08")), nzTpIcepk0o8(chr(0b100100 + 0o14) + chr(111) + chr(320 - 271) + chr(49) + chr(55), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\063' + chr(0b1011 + 0o54) + '\065', 0o10), nzTpIcepk0o8(chr(0b101001 + 0o7) + chr(111) + chr(853 - 802) + chr(50) + chr(0b1000 + 0o53), 8), nzTpIcepk0o8(chr(0b100011 + 0o15) + '\x6f' + chr(0b0 + 0o67) + chr(956 - 908), 0b1000), nzTpIcepk0o8(chr(1011 - 963) + chr(0b1101111) + chr(0b101 + 0o56) + '\061', 43953 - 43945), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110001) + chr(0b110100) + '\061', 8)][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + chr(111) + chr(1634 - 1581) + chr(48), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'G'), '\144' + chr(101) + chr(0b1010111 + 0o14) + chr(1306 - 1195) + chr(6444 - 6344) + chr(101))(chr(117) + '\164' + chr(0b1000011 + 0o43) + chr(45) + '\070') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def sDsXvFn0zgTL(hXMPsSrOQzbh, r6z0ucM1mLNh):
EeMkDWp46F_i = []
for NV8n4uYfBVFE in roI3spqORKae(r6z0ucM1mLNh.requirements, roI3spqORKae(ES5oEprVxulp(b'*g\xb1\xe7\x97\xfa\x12\x0b"\xb8\t;'), chr(100) + '\x65' + chr(0b1100011) + chr(0b111000 + 0o67) + chr(0b1100100) + chr(1561 - 1460))(chr(8414 - 8297) + chr(0b1110100) + chr(102) + chr(0b101101) + chr(0b100001 + 0o27)))():
if roI3spqORKae(NV8n4uYfBVFE, roI3spqORKae(ES5oEprVxulp(b'\x08x\x99\xce\x95\xc6#O6\xec\x04.'), '\144' + chr(0b1010100 + 0o21) + '\143' + '\x6f' + '\x64' + chr(0b1100101))(chr(4355 - 4238) + chr(0b1100001 + 0o23) + '\146' + chr(0b101101) + chr(0b100 + 0o64))):
continue
if roI3spqORKae(NV8n4uYfBVFE, roI3spqORKae(ES5oEprVxulp(b'\x06|\x9b\xf6\x87\x88\x13V \xd6,2'), chr(0b1100100) + '\145' + '\x63' + chr(111) + chr(0b1100100) + chr(0b1100101))(chr(117) + '\x74' + chr(2746 - 2644) + '\055' + chr(0b100101 + 0o23))):
continue
roI3spqORKae(EeMkDWp46F_i, roI3spqORKae(ES5oEprVxulp(b'!@\x8d\xb7\xb5\xd7\x1dR0\xee\x08v'), chr(100) + chr(101) + '\143' + chr(5958 - 5847) + chr(0b1100100) + chr(0b1100101))(chr(117) + chr(116) + '\x66' + '\055' + chr(0b111000)))(NV8n4uYfBVFE)
roI3spqORKae(hXMPsSrOQzbh.reported_requirements, roI3spqORKae(ES5oEprVxulp(b'!@\x8d\xb7\xb5\xd7\x1dR0\xee\x08v'), chr(100) + chr(0b1100101) + '\143' + chr(0b1101111) + chr(0b1100100) + chr(0b110111 + 0o56))('\x75' + chr(7097 - 6981) + chr(102) + chr(0b101101) + chr(0b1001 + 0o57)))(NV8n4uYfBVFE)
return V3OlOVg98A85([fx7pS51Pv6gl(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x02s\xb5\xc8\x98\xd3\x1e\x0el\xed10'), '\x64' + chr(7844 - 7743) + chr(0b1100011) + chr(111) + chr(0b1001011 + 0o31) + '\x65')(chr(0b1110101) + chr(0b0 + 0o164) + chr(9653 - 9551) + '\x2d' + chr(0b11000 + 0o40))), LCrwg7lcbmU9) for LCrwg7lcbmU9 in EeMkDWp46F_i], key=lambda LCrwg7lcbmU9: roI3spqORKae(LCrwg7lcbmU9.name, roI3spqORKae(ES5oEprVxulp(b'1z\xe6\xc6\x83\xe7\x17g>\xc8\x0f7'), chr(100) + chr(0b1100101) + chr(236 - 137) + chr(0b1100 + 0o143) + chr(9869 - 9769) + chr(101))(chr(117) + '\164' + chr(0b1100110) + chr(0b101101) + chr(0b11000 + 0o40)))()) |
paylogic/pip-accel | pip_accel/__init__.py | PipAccelerator.install_requirements | def install_requirements(self, requirements, **kw):
"""
Manually install a requirement set from binary and/or wheel distributions.
:param requirements: A list of :class:`pip_accel.req.Requirement` objects.
:param kw: Any keyword arguments are passed on to
:func:`~pip_accel.bdist.BinaryDistributionManager.install_binary_dist()`.
:returns: The number of packages that were just installed (an integer).
"""
install_timer = Timer()
install_types = []
if any(not req.is_wheel for req in requirements):
install_types.append('binary')
if any(req.is_wheel for req in requirements):
install_types.append('wheel')
logger.info("Installing from %s distributions ..", concatenate(install_types))
# Track installed files by default (unless the caller specifically opted out).
kw.setdefault('track_installed_files', True)
num_installed = 0
for requirement in requirements:
# When installing setuptools we need to uninstall distribute,
# otherwise distribute will shadow setuptools and all sorts of
# strange issues can occur (e.g. upgrading to the latest
# setuptools to gain wheel support and then having everything
# blow up because distribute doesn't know about wheels).
if requirement.name == 'setuptools' and is_installed('distribute'):
uninstall('distribute')
if requirement.is_editable:
logger.debug("Installing %s in editable form using pip.", requirement)
with TransactionalUpdate(requirement):
command = InstallCommand()
opts, args = command.parse_args(['--no-deps', '--editable', requirement.source_directory])
command.run(opts, args)
elif requirement.is_wheel:
logger.info("Installing %s wheel distribution using pip ..", requirement)
with TransactionalUpdate(requirement):
wheel_version = pip_wheel_module.wheel_version(requirement.source_directory)
pip_wheel_module.check_compatibility(wheel_version, requirement.name)
requirement.pip_requirement.move_wheel_files(requirement.source_directory)
else:
logger.info("Installing %s binary distribution using pip-accel ..", requirement)
with TransactionalUpdate(requirement):
binary_distribution = self.bdists.get_binary_dist(requirement)
self.bdists.install_binary_dist(binary_distribution, **kw)
num_installed += 1
logger.info("Finished installing %s in %s.",
pluralize(num_installed, "requirement"),
install_timer)
return num_installed | python | def install_requirements(self, requirements, **kw):
"""
Manually install a requirement set from binary and/or wheel distributions.
:param requirements: A list of :class:`pip_accel.req.Requirement` objects.
:param kw: Any keyword arguments are passed on to
:func:`~pip_accel.bdist.BinaryDistributionManager.install_binary_dist()`.
:returns: The number of packages that were just installed (an integer).
"""
install_timer = Timer()
install_types = []
if any(not req.is_wheel for req in requirements):
install_types.append('binary')
if any(req.is_wheel for req in requirements):
install_types.append('wheel')
logger.info("Installing from %s distributions ..", concatenate(install_types))
# Track installed files by default (unless the caller specifically opted out).
kw.setdefault('track_installed_files', True)
num_installed = 0
for requirement in requirements:
# When installing setuptools we need to uninstall distribute,
# otherwise distribute will shadow setuptools and all sorts of
# strange issues can occur (e.g. upgrading to the latest
# setuptools to gain wheel support and then having everything
# blow up because distribute doesn't know about wheels).
if requirement.name == 'setuptools' and is_installed('distribute'):
uninstall('distribute')
if requirement.is_editable:
logger.debug("Installing %s in editable form using pip.", requirement)
with TransactionalUpdate(requirement):
command = InstallCommand()
opts, args = command.parse_args(['--no-deps', '--editable', requirement.source_directory])
command.run(opts, args)
elif requirement.is_wheel:
logger.info("Installing %s wheel distribution using pip ..", requirement)
with TransactionalUpdate(requirement):
wheel_version = pip_wheel_module.wheel_version(requirement.source_directory)
pip_wheel_module.check_compatibility(wheel_version, requirement.name)
requirement.pip_requirement.move_wheel_files(requirement.source_directory)
else:
logger.info("Installing %s binary distribution using pip-accel ..", requirement)
with TransactionalUpdate(requirement):
binary_distribution = self.bdists.get_binary_dist(requirement)
self.bdists.install_binary_dist(binary_distribution, **kw)
num_installed += 1
logger.info("Finished installing %s in %s.",
pluralize(num_installed, "requirement"),
install_timer)
return num_installed | [
"def",
"install_requirements",
"(",
"self",
",",
"requirements",
",",
"*",
"*",
"kw",
")",
":",
"install_timer",
"=",
"Timer",
"(",
")",
"install_types",
"=",
"[",
"]",
"if",
"any",
"(",
"not",
"req",
".",
"is_wheel",
"for",
"req",
"in",
"requirements",
")",
":",
"install_types",
".",
"append",
"(",
"'binary'",
")",
"if",
"any",
"(",
"req",
".",
"is_wheel",
"for",
"req",
"in",
"requirements",
")",
":",
"install_types",
".",
"append",
"(",
"'wheel'",
")",
"logger",
".",
"info",
"(",
"\"Installing from %s distributions ..\"",
",",
"concatenate",
"(",
"install_types",
")",
")",
"# Track installed files by default (unless the caller specifically opted out).",
"kw",
".",
"setdefault",
"(",
"'track_installed_files'",
",",
"True",
")",
"num_installed",
"=",
"0",
"for",
"requirement",
"in",
"requirements",
":",
"# When installing setuptools we need to uninstall distribute,",
"# otherwise distribute will shadow setuptools and all sorts of",
"# strange issues can occur (e.g. upgrading to the latest",
"# setuptools to gain wheel support and then having everything",
"# blow up because distribute doesn't know about wheels).",
"if",
"requirement",
".",
"name",
"==",
"'setuptools'",
"and",
"is_installed",
"(",
"'distribute'",
")",
":",
"uninstall",
"(",
"'distribute'",
")",
"if",
"requirement",
".",
"is_editable",
":",
"logger",
".",
"debug",
"(",
"\"Installing %s in editable form using pip.\"",
",",
"requirement",
")",
"with",
"TransactionalUpdate",
"(",
"requirement",
")",
":",
"command",
"=",
"InstallCommand",
"(",
")",
"opts",
",",
"args",
"=",
"command",
".",
"parse_args",
"(",
"[",
"'--no-deps'",
",",
"'--editable'",
",",
"requirement",
".",
"source_directory",
"]",
")",
"command",
".",
"run",
"(",
"opts",
",",
"args",
")",
"elif",
"requirement",
".",
"is_wheel",
":",
"logger",
".",
"info",
"(",
"\"Installing %s wheel distribution using pip ..\"",
",",
"requirement",
")",
"with",
"TransactionalUpdate",
"(",
"requirement",
")",
":",
"wheel_version",
"=",
"pip_wheel_module",
".",
"wheel_version",
"(",
"requirement",
".",
"source_directory",
")",
"pip_wheel_module",
".",
"check_compatibility",
"(",
"wheel_version",
",",
"requirement",
".",
"name",
")",
"requirement",
".",
"pip_requirement",
".",
"move_wheel_files",
"(",
"requirement",
".",
"source_directory",
")",
"else",
":",
"logger",
".",
"info",
"(",
"\"Installing %s binary distribution using pip-accel ..\"",
",",
"requirement",
")",
"with",
"TransactionalUpdate",
"(",
"requirement",
")",
":",
"binary_distribution",
"=",
"self",
".",
"bdists",
".",
"get_binary_dist",
"(",
"requirement",
")",
"self",
".",
"bdists",
".",
"install_binary_dist",
"(",
"binary_distribution",
",",
"*",
"*",
"kw",
")",
"num_installed",
"+=",
"1",
"logger",
".",
"info",
"(",
"\"Finished installing %s in %s.\"",
",",
"pluralize",
"(",
"num_installed",
",",
"\"requirement\"",
")",
",",
"install_timer",
")",
"return",
"num_installed"
] | Manually install a requirement set from binary and/or wheel distributions.
:param requirements: A list of :class:`pip_accel.req.Requirement` objects.
:param kw: Any keyword arguments are passed on to
:func:`~pip_accel.bdist.BinaryDistributionManager.install_binary_dist()`.
:returns: The number of packages that were just installed (an integer). | [
"Manually",
"install",
"a",
"requirement",
"set",
"from",
"binary",
"and",
"/",
"or",
"wheel",
"distributions",
"."
] | ccad1b784927a322d996db593403b1d2d2e22666 | https://github.com/paylogic/pip-accel/blob/ccad1b784927a322d996db593403b1d2d2e22666/pip_accel/__init__.py#L541-L589 | train | Manually install a set of requirements from binary or wheel distributions. | 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,pZy5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uzpaIUMv,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(0b1100011 + 0o14) + chr(0b100010 + 0o17) + '\063' + chr(0b11110 + 0o30), 0b1000), nzTpIcepk0o8(chr(1414 - 1366) + chr(111) + '\x33' + '\063', 0b1000), nzTpIcepk0o8(chr(1540 - 1492) + '\157' + '\x32' + chr(0b100001 + 0o26), 0o10), nzTpIcepk0o8(chr(48) + chr(11832 - 11721) + chr(0b110011) + chr(53) + chr(0b11111 + 0o22), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(5484 - 5373) + chr(0b110001) + chr(1020 - 972) + chr(51), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b100011 + 0o23) + chr(53), 38793 - 38785), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x32' + chr(2138 - 2085) + chr(0b11100 + 0o33), 0o10), nzTpIcepk0o8(chr(1964 - 1916) + '\157' + '\x36' + chr(213 - 160), 8), nzTpIcepk0o8(chr(709 - 661) + '\x6f' + '\x32' + '\065' + '\x32', 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + '\x31' + chr(51) + chr(147 - 99), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + '\x31' + chr(0b110110), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(49) + chr(0b110111) + chr(0b110100), 0o10), nzTpIcepk0o8(chr(0b11100 + 0o24) + chr(0b1101111) + chr(0b10000 + 0o42) + chr(52), 4155 - 4147), nzTpIcepk0o8(chr(589 - 541) + '\x6f' + '\061' + chr(0b100001 + 0o26) + '\x30', 31570 - 31562), nzTpIcepk0o8(chr(0b110000) + chr(3410 - 3299) + '\061' + '\063' + '\x30', 8), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(1296 - 1246) + chr(297 - 245) + '\064', 7751 - 7743), nzTpIcepk0o8(chr(48) + chr(9101 - 8990) + chr(0b110010) + chr(0b110101 + 0o1) + chr(0b110110), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + '\x34' + chr(52), 0b1000), nzTpIcepk0o8('\x30' + chr(10974 - 10863) + '\x32' + chr(0b0 + 0o63), 0b1000), nzTpIcepk0o8(chr(0b10 + 0o56) + '\x6f' + '\x33' + chr(49) + chr(48), 0b1000), nzTpIcepk0o8(chr(0b10001 + 0o37) + chr(0b110 + 0o151) + chr(0b110101) + '\x36', 50277 - 50269), nzTpIcepk0o8('\060' + chr(111) + chr(2877 - 2822) + chr(54), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(882 - 833) + '\061' + chr(570 - 519), 0o10), nzTpIcepk0o8('\x30' + chr(2266 - 2155) + '\061' + chr(0b101111 + 0o1) + chr(0b110001), 0o10), nzTpIcepk0o8(chr(48) + chr(2888 - 2777) + chr(0b10011 + 0o36) + '\x33' + '\064', 2904 - 2896), nzTpIcepk0o8('\060' + chr(0b1101111) + '\062' + chr(52) + '\060', ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(50) + chr(0b110001 + 0o6) + '\x30', 61797 - 61789), nzTpIcepk0o8('\060' + '\157' + chr(0b110010) + chr(2117 - 2064) + '\x34', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\062' + '\061' + '\x36', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b111001 + 0o66) + chr(0b110010) + '\065' + chr(0b110001), 0o10), nzTpIcepk0o8('\060' + chr(111) + '\x31' + chr(52) + chr(0b110001), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\062' + chr(49) + '\x35', 0b1000), nzTpIcepk0o8('\x30' + chr(4137 - 4026) + chr(0b110001) + '\x30' + '\065', 37380 - 37372), nzTpIcepk0o8(chr(48) + chr(111) + '\062' + chr(0b10100 + 0o36) + chr(51), ord("\x08")), nzTpIcepk0o8(chr(1713 - 1665) + chr(111) + chr(0b110110) + chr(1366 - 1316), 32789 - 32781), nzTpIcepk0o8('\060' + chr(0b1001100 + 0o43) + chr(49) + '\x35' + chr(0b101000 + 0o15), 0b1000), nzTpIcepk0o8(chr(48) + chr(11786 - 11675) + '\x31' + '\x32' + chr(0b110010), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(51) + chr(0b110000) + chr(2432 - 2377), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b0 + 0o67) + chr(0b11100 + 0o30), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1011010 + 0o25) + chr(0b110010) + chr(79 - 26) + chr(0b101000 + 0o10), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + chr(7206 - 7095) + '\x35' + '\060', 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'p'), chr(4467 - 4367) + chr(0b1000110 + 0o37) + chr(1827 - 1728) + chr(0b101011 + 0o104) + '\144' + chr(3643 - 3542))(chr(9934 - 9817) + chr(10903 - 10787) + chr(102) + '\055' + '\070') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def kXFkI90ZLTfW(hXMPsSrOQzbh, OS1WcFGrh7xy, **n_DqV9fOWrXc):
DQKmK8rgMRJ7 = MX_3dktPnFrU()
fLCh0ezbc0Lp = []
if VF4pKOObtlPc((not roI3spqORKae(EycgE8NTwf_z, roI3spqORKae(ES5oEprVxulp(b'7hH\x9e+P\xcaY'), chr(0b100101 + 0o77) + chr(101) + chr(99) + chr(0b1101111) + chr(0b1100100) + chr(0b1100101))(chr(0b110111 + 0o76) + chr(0b11110 + 0o126) + '\x66' + '\x2d' + chr(2695 - 2639))) for EycgE8NTwf_z in OS1WcFGrh7xy)):
roI3spqORKae(fLCh0ezbc0Lp, roI3spqORKae(ES5oEprVxulp(b'\x16OD\xdd;R\xe8Z\xc07[I'), chr(142 - 42) + chr(0b1100101) + chr(8895 - 8796) + '\157' + chr(0b10100 + 0o120) + chr(1403 - 1302))('\165' + chr(3358 - 3242) + chr(9107 - 9005) + '\055' + chr(56)))(roI3spqORKae(ES5oEprVxulp(b'<ry\x881L'), chr(0b1100100) + '\145' + chr(0b1100011) + chr(0b11 + 0o154) + '\144' + chr(0b1001110 + 0o27))('\x75' + chr(0b111101 + 0o67) + '\x66' + chr(0b101101) + chr(0b111000)))
if VF4pKOObtlPc((roI3spqORKae(EycgE8NTwf_z, roI3spqORKae(ES5oEprVxulp(b'7hH\x9e+P\xcaY'), '\144' + chr(0b1100001 + 0o4) + '\143' + chr(0b1101111) + chr(4902 - 4802) + chr(101))(chr(117) + chr(0b1110100) + '\x66' + chr(0b101000 + 0o5) + chr(2421 - 2365))) for EycgE8NTwf_z in OS1WcFGrh7xy)):
roI3spqORKae(fLCh0ezbc0Lp, roI3spqORKae(ES5oEprVxulp(b'\x16OD\xdd;R\xe8Z\xc07[I'), chr(0b1000000 + 0o44) + chr(134 - 33) + chr(99) + '\157' + chr(0b1100100) + chr(3320 - 3219))(chr(0b1110101) + chr(0b11101 + 0o127) + chr(1325 - 1223) + '\x2d' + '\070'))(roI3spqORKae(ES5oEprVxulp(b')sr\x8c/'), '\144' + chr(0b101111 + 0o66) + '\143' + chr(2082 - 1971) + '\x64' + chr(0b111101 + 0o50))(chr(0b1110101) + chr(116) + chr(0b1100110) + chr(45) + chr(56)))
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'7cY\x91zy\xd8j\x9b?|3'), chr(0b1011100 + 0o10) + chr(101) + chr(99) + '\x6f' + chr(8984 - 8884) + chr(0b1100101))('\165' + chr(116) + '\146' + chr(0b11000 + 0o25) + '\070'))(roI3spqORKae(ES5oEprVxulp(b'\x17ud\x9d"Y\xc3\\\xc4?.\x1af\x175\x84\x93W3\xacGM?35\xc2\xcd\xd8\xe7\xc6\x0f\xfee\xbd\x1c'), chr(2591 - 2491) + chr(2048 - 1947) + '\x63' + chr(10964 - 10853) + '\144' + chr(0b10100 + 0o121))('\165' + chr(0b1010111 + 0o35) + '\146' + '\x2d' + '\070'), cNUMWjTSOBqD(fLCh0ezbc0Lp))
roI3spqORKae(n_DqV9fOWrXc, roI3spqORKae(ES5oEprVxulp(b"$~'\xa3\x0e@\xe4\x0c\xd87Y/"), chr(0b1001001 + 0o33) + chr(101) + '\x63' + chr(111) + '\144' + chr(9829 - 9728))('\x75' + chr(0b1110100) + '\x66' + chr(45) + chr(1815 - 1759)))(roI3spqORKae(ES5oEprVxulp(b'*iv\x8a(j\xc6[\xd9,o\x10x\x1d<\xfb\xd0M\x7f\xad]'), chr(100) + '\145' + '\x63' + chr(111) + chr(0b1011 + 0o131) + '\x65')(chr(117) + chr(0b1001111 + 0o45) + '\146' + chr(0b11100 + 0o21) + chr(1563 - 1507)), nzTpIcepk0o8('\x30' + chr(111) + '\061', 0o10))
bPpFPKgkYT7L = nzTpIcepk0o8(chr(0b1010 + 0o46) + '\x6f' + '\x30', ord("\x08"))
for NV8n4uYfBVFE in OS1WcFGrh7xy:
if roI3spqORKae(NV8n4uYfBVFE, roI3spqORKae(ES5oEprVxulp(b'\rWA\xabqw\xfft\xf55G\x19'), chr(0b1100100) + chr(101) + '\143' + chr(111) + '\144' + '\x65')(chr(0b100100 + 0o121) + chr(116) + chr(0b1011010 + 0o14) + chr(0b1100 + 0o41) + chr(0b1000 + 0o60))) == roI3spqORKae(ES5oEprVxulp(b'-~c\x9c3A\xc0Z\xc6+'), chr(9105 - 9005) + chr(101) + '\x63' + chr(0b1101 + 0o142) + '\144' + '\x65')(chr(8954 - 8837) + chr(116) + chr(0b1100110) + chr(0b11100 + 0o21) + chr(2346 - 2290)) and ExPNiVcYCmjm(roI3spqORKae(ES5oEprVxulp(b':rd\x9d1\\\xcd@\xde='), chr(6284 - 6184) + '\x65' + chr(99) + chr(111) + chr(0b1100100) + chr(5520 - 5419))('\x75' + chr(0b1010001 + 0o43) + chr(0b1100110) + '\x2d' + chr(56))):
jeiKTO4sOXWU(roI3spqORKae(ES5oEprVxulp(b':rd\x9d1\\\xcd@\xde='), '\x64' + '\145' + chr(0b111101 + 0o46) + chr(0b1101111) + '\144' + '\145')('\165' + chr(116) + chr(3342 - 3240) + '\055' + '\x38'))
if roI3spqORKae(NV8n4uYfBVFE, roI3spqORKae(ES5oEprVxulp(b"7hH\x8c'\\\xdbT\xc84k"), chr(504 - 404) + chr(0b1000111 + 0o36) + '\143' + '\157' + chr(0b1100100) + chr(6263 - 6162))(chr(0b1100001 + 0o24) + '\164' + '\146' + '\055' + '\070')):
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'9Z.\xb3zQ\xc0\x03\xff5K&'), '\144' + chr(0b1100101) + chr(0b1100011) + chr(111) + chr(100) + chr(0b1100101))('\x75' + chr(116) + chr(102) + chr(0b1011 + 0o42) + '\x38'))(roI3spqORKae(ES5oEprVxulp(b'\x17ud\x9d"Y\xc3\\\xc4?.YgX1\xca\x96Aw\xa1Z_)-9\x80\xde\xc3\xfc\xc4A\xf86\xfa\\\nr\xb7U\xd8p'), '\x64' + chr(0b1100101) + chr(0b1100011) + '\157' + '\144' + '\145')(chr(0b1110101) + '\x74' + '\x66' + chr(45) + '\x38'), NV8n4uYfBVFE)
with U0JbqHNOYzK4(NV8n4uYfBVFE):
rZO0j44B8n0L = RCESME5G4bG2()
(M8wfvmpEewAe, eemPYp2vtTSr) = rZO0j44B8n0L.JvKYHysdS3LV([roI3spqORKae(ES5oEprVxulp(b's6y\x86nQ\xcaE\xd9'), chr(100) + chr(1263 - 1162) + chr(99) + chr(3279 - 3168) + chr(0b1100100) + chr(0b1010100 + 0o21))(chr(0b100111 + 0o116) + chr(1476 - 1360) + '\x66' + chr(0b100110 + 0o7) + chr(0b111000)), roI3spqORKae(ES5oEprVxulp(b's6r\x8d*A\xceW\xc6='), chr(0b1100100) + chr(101) + chr(99) + '\x6f' + chr(0b1100100) + '\145')('\x75' + chr(0b1110100) + chr(0b1100110) + '\055' + chr(0b111000)), NV8n4uYfBVFE.source_directory])
roI3spqORKae(rZO0j44B8n0L, roI3spqORKae(ES5oEprVxulp(b'/uG\xa6\nQ\xedd\xe0<t%'), chr(8141 - 8041) + chr(8417 - 8316) + '\143' + '\157' + chr(0b111101 + 0o47) + chr(4528 - 4427))(chr(0b11111 + 0o126) + chr(0b111000 + 0o74) + chr(0b1100110) + chr(45) + chr(0b10100 + 0o44)))(M8wfvmpEewAe, eemPYp2vtTSr)
elif roI3spqORKae(NV8n4uYfBVFE, roI3spqORKae(ES5oEprVxulp(b'7hH\x9e+P\xcaY'), '\144' + '\145' + '\143' + '\x6f' + '\144' + chr(7572 - 7471))(chr(0b1110101) + chr(0b1110100) + chr(5948 - 5846) + chr(0b100101 + 0o10) + chr(56))):
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'7cY\x91zy\xd8j\x9b?|3'), chr(8412 - 8312) + chr(101) + '\x63' + chr(111) + chr(0b1100100) + '\x65')('\x75' + '\164' + chr(1695 - 1593) + chr(0b101101) + chr(0b111000)))(roI3spqORKae(ES5oEprVxulp(b'\x17ud\x9d"Y\xc3\\\xc4?.YgX/\xcc\xd3A\x7f\xe8JW85.\xc9\xda\xd9\xfa\xc0\x0e\xe3e\xe6A\x04<\xa0\x1c\xd87k7\xc7m'), chr(5348 - 5248) + chr(101) + chr(4604 - 4505) + '\x6f' + chr(0b1100100) + '\145')(chr(0b1110101) + chr(116) + chr(0b1100110) + chr(45) + '\x38'), NV8n4uYfBVFE)
with U0JbqHNOYzK4(NV8n4uYfBVFE):
G8YxJBEWZyej = wybuCL1nHCmq.wheel_version(NV8n4uYfBVFE.source_directory)
roI3spqORKae(wybuCL1nHCmq, roI3spqORKae(ES5oEprVxulp(b'=sr\x8a(j\xccZ\xc7(o\x08}\x1a1\xc8\xdfPj'), chr(0b1010111 + 0o15) + chr(0b1100101) + chr(99) + chr(0b1101111) + chr(0b1100100) + '\x65')(chr(117) + chr(0b1101 + 0o147) + chr(102) + chr(965 - 920) + chr(1083 - 1027)))(G8YxJBEWZyej, roI3spqORKae(NV8n4uYfBVFE, roI3spqORKae(ES5oEprVxulp(b'\rWA\xabqw\xfft\xf55G\x19'), '\x64' + chr(0b10010 + 0o123) + chr(99) + chr(0b1000110 + 0o51) + chr(100) + chr(0b1100101))('\x75' + chr(1294 - 1178) + chr(102) + chr(0b101101) + chr(446 - 390))))
roI3spqORKae(NV8n4uYfBVFE.pip_requirement, roI3spqORKae(ES5oEprVxulp(b'3ta\x8c\x1cB\xc7P\xcf4Q\x1a}\x14=\xd7'), chr(5935 - 5835) + '\x65' + chr(99) + chr(1571 - 1460) + chr(0b1100100) + chr(0b1100101))(chr(0b1110101) + '\x74' + chr(7401 - 7299) + '\x2d' + chr(3071 - 3015)))(roI3spqORKae(NV8n4uYfBVFE, roI3spqORKae(ES5oEprVxulp(b'-tb\x9b P\xf0Q\xc3*k\x1f`\x17*\xdd'), chr(100) + '\145' + chr(0b1100011) + chr(111) + chr(0b1100100) + chr(101))('\165' + chr(116) + chr(0b1100110) + '\x2d' + '\070')))
else:
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'7cY\x91zy\xd8j\x9b?|3'), chr(100) + chr(0b1100101) + chr(99) + chr(0b1000111 + 0o50) + chr(0b110010 + 0o62) + '\145')(chr(0b100001 + 0o124) + chr(10073 - 9957) + '\146' + '\055' + '\x38'))(roI3spqORKae(ES5oEprVxulp(b'\x17ud\x9d"Y\xc3\\\xc4?.YgX:\xcd\xd8Ea\xb1\x0eZ"2(\xd2\xd1\xce\xfb\xdd\x08\xe2+\xb3G\x1e;\xa9[\x88.rg\xc4"V\xccP\xc6x R'), chr(9187 - 9087) + chr(0b1001111 + 0o26) + chr(2183 - 2084) + chr(0b1000111 + 0o50) + '\x64' + chr(0b1000101 + 0o40))(chr(117) + chr(10124 - 10008) + chr(1137 - 1035) + chr(0b11010 + 0o23) + '\x38'), NV8n4uYfBVFE)
with U0JbqHNOYzK4(NV8n4uYfBVFE):
_QvLflt0tIFJ = hXMPsSrOQzbh.bdists.get_binary_dist(NV8n4uYfBVFE)
roI3spqORKae(hXMPsSrOQzbh.bdists, roI3spqORKae(ES5oEprVxulp(b'7ud\x9d"Y\xc3j\xc81`\x1df\x01\x07\xc0\xdfWg'), '\144' + chr(4371 - 4270) + '\143' + chr(11908 - 11797) + '\x64' + chr(0b1100101))('\x75' + chr(116) + chr(3802 - 3700) + '\055' + chr(479 - 423)))(_QvLflt0tIFJ, **n_DqV9fOWrXc)
bPpFPKgkYT7L += nzTpIcepk0o8('\x30' + chr(0b10010 + 0o135) + '\x31', 8)
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'7cY\x91zy\xd8j\x9b?|3'), chr(100) + chr(0b1100101) + '\x63' + chr(0b1101111) + chr(0b1100100) + '\x65')('\x75' + '\x74' + '\146' + chr(0b101101) + '\070'))(roI3spqORKae(ES5oEprVxulp(b'\x18ry\x800]\xcaQ\x8a1`\x0f`\x194\xc8\xdfJt\xe8\x0bMk(2\x80\x9d\xdf\xa0'), chr(100) + '\145' + '\x63' + '\x6f' + '\144' + chr(0b1011010 + 0o13))(chr(0b1110101) + chr(3990 - 3874) + '\146' + chr(0b11110 + 0o17) + chr(56)), hAX37lTuKJhF(bPpFPKgkYT7L, roI3spqORKae(ES5oEprVxulp(b',~f\x9c*G\xcaX\xcf6z'), chr(0b1100100) + '\x65' + '\x63' + chr(2042 - 1931) + chr(100) + '\145')(chr(2247 - 2130) + '\x74' + '\146' + '\x2d' + chr(0b111000))), DQKmK8rgMRJ7)
return bPpFPKgkYT7L |
paylogic/pip-accel | pip_accel/__init__.py | PipAccelerator.clear_build_directory | def clear_build_directory(self):
"""Clear the build directory where pip unpacks the source distribution archives."""
stat = os.stat(self.build_directory)
shutil.rmtree(self.build_directory)
os.makedirs(self.build_directory, stat.st_mode) | python | def clear_build_directory(self):
"""Clear the build directory where pip unpacks the source distribution archives."""
stat = os.stat(self.build_directory)
shutil.rmtree(self.build_directory)
os.makedirs(self.build_directory, stat.st_mode) | [
"def",
"clear_build_directory",
"(",
"self",
")",
":",
"stat",
"=",
"os",
".",
"stat",
"(",
"self",
".",
"build_directory",
")",
"shutil",
".",
"rmtree",
"(",
"self",
".",
"build_directory",
")",
"os",
".",
"makedirs",
"(",
"self",
".",
"build_directory",
",",
"stat",
".",
"st_mode",
")"
] | Clear the build directory where pip unpacks the source distribution archives. | [
"Clear",
"the",
"build",
"directory",
"where",
"pip",
"unpacks",
"the",
"source",
"distribution",
"archives",
"."
] | ccad1b784927a322d996db593403b1d2d2e22666 | https://github.com/paylogic/pip-accel/blob/ccad1b784927a322d996db593403b1d2d2e22666/pip_accel/__init__.py#L612-L616 | train | Clear the build directory where pip unpacks the source distribution archives. | 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,Y1otPT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fygxgFas5X,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' + '\157' + chr(248 - 197) + chr(50) + chr(0b11001 + 0o31), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110011) + '\x31' + chr(52), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b111100 + 0o63) + chr(0b1101 + 0o52), 0b1000), nzTpIcepk0o8(chr(1498 - 1450) + chr(5991 - 5880) + '\061' + chr(258 - 210) + '\066', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110011) + chr(0b110101) + '\067', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b11011 + 0o31) + chr(1818 - 1764), 0b1000), nzTpIcepk0o8(chr(0b101111 + 0o1) + chr(0b1101011 + 0o4) + chr(0b110010) + '\x30' + '\x32', 17672 - 17664), nzTpIcepk0o8(chr(0b110000) + chr(8822 - 8711) + chr(0b110001) + chr(0b110110) + chr(48), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1000 + 0o147) + chr(49) + chr(1087 - 1038) + chr(0b11100 + 0o33), 0o10), nzTpIcepk0o8(chr(0b100010 + 0o16) + '\x6f' + chr(0b110011) + chr(0b11 + 0o61) + chr(1821 - 1772), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(50) + chr(51) + chr(2067 - 2017), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(51) + chr(1325 - 1274) + '\064', ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(0b110011) + '\062' + chr(0b100001 + 0o22), 0o10), nzTpIcepk0o8(chr(0b100001 + 0o17) + '\x6f' + '\x34' + chr(0b101010 + 0o12), 18279 - 18271), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(50) + '\x30' + chr(0b110101), 37859 - 37851), nzTpIcepk0o8('\060' + chr(0b1100111 + 0o10) + '\062' + chr(0b110101) + chr(0b110100), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110011) + chr(54) + chr(0b100101 + 0o21), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(2376 - 2327) + '\066' + chr(0b110100), 0o10), nzTpIcepk0o8(chr(1757 - 1709) + chr(111) + chr(0b11 + 0o56) + chr(0b110000 + 0o5) + '\x34', 0b1000), nzTpIcepk0o8('\060' + chr(9309 - 9198) + chr(0b11100 + 0o27) + chr(2204 - 2154) + '\064', 57279 - 57271), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b11111 + 0o22) + '\x31' + '\062', 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x32' + '\060' + '\060', 0o10), nzTpIcepk0o8('\060' + '\157' + chr(49) + chr(0b110100) + '\063', 0b1000), nzTpIcepk0o8(chr(0b1110 + 0o42) + chr(111) + '\062' + '\x33' + chr(0b100000 + 0o27), 0b1000), nzTpIcepk0o8('\x30' + '\157' + '\x33' + chr(0b110111) + chr(0b1011 + 0o53), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\062' + chr(0b110011) + '\x32', 8), nzTpIcepk0o8('\060' + '\157' + '\x34', 0b1000), nzTpIcepk0o8(chr(1588 - 1540) + '\x6f' + chr(2785 - 2730) + chr(52), 59440 - 59432), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x32' + chr(0b110011) + chr(0b10100 + 0o34), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b10010 + 0o135) + chr(0b110010) + chr(0b110000), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(1448 - 1399) + chr(1525 - 1473) + '\062', 0b1000), nzTpIcepk0o8(chr(745 - 697) + '\x6f' + chr(0b110011 + 0o0) + '\062' + chr(0b110100), 8), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b100011 + 0o16) + chr(0b10111 + 0o37), 0b1000), nzTpIcepk0o8(chr(0b10000 + 0o40) + chr(0b11110 + 0o121) + chr(378 - 329) + chr(0b110110) + '\x35', 0o10), nzTpIcepk0o8('\060' + chr(8165 - 8054) + '\x32' + chr(0b0 + 0o67) + chr(2240 - 2188), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(501 - 450) + '\064' + '\062', 0o10), nzTpIcepk0o8('\060' + chr(0b100010 + 0o115) + chr(0b100011 + 0o16) + chr(50) + chr(0b110000), 0b1000), nzTpIcepk0o8(chr(0b10110 + 0o32) + chr(0b110111 + 0o70) + chr(1942 - 1892) + '\x34' + chr(0b1100 + 0o45), 0o10), nzTpIcepk0o8(chr(193 - 145) + chr(0b10001 + 0o136) + chr(2300 - 2251) + chr(0b11010 + 0o31) + '\x35', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(50) + '\064' + chr(51), 10672 - 10664)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b1001 + 0o47) + '\157' + '\065' + '\060', 1899 - 1891)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xfc'), '\x64' + '\x65' + '\x63' + chr(111) + chr(2000 - 1900) + chr(0b10010 + 0o123))(chr(117) + chr(458 - 342) + '\x66' + chr(1650 - 1605) + '\070') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def LX9jYTcYKZHx(hXMPsSrOQzbh):
uHkyNaF6hl2K = aHUqKstZLeS6.uHkyNaF6hl2K(hXMPsSrOQzbh.build_directory)
roI3spqORKae(zcgTfC_NSHAo, roI3spqORKae(ES5oEprVxulp(b'\xa0\xa1s4\x8aC'), '\144' + chr(9952 - 9851) + '\143' + chr(3200 - 3089) + chr(100) + '\145')(chr(0b1110101) + '\164' + chr(0b100010 + 0o104) + '\x2d' + '\x38'))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xb0\xb9n*\x8by\xe6\x19=\x84\xf9\xa8\xbcV\xfc'), chr(0b1100100) + chr(0b1100101) + '\143' + '\x6f' + chr(100) + chr(0b1100101))(chr(0b1110101) + '\164' + chr(0b1100110) + chr(0b11100 + 0o21) + chr(0b111000))))
roI3spqORKae(aHUqKstZLeS6, roI3spqORKae(ES5oEprVxulp(b'\xbf\xadl#\x8bO\xf0\x03'), chr(0b1100001 + 0o3) + chr(101) + chr(0b1100011) + chr(0b100011 + 0o114) + chr(7092 - 6992) + chr(0b1100101))('\x75' + chr(0b1110100) + chr(0b1100110) + chr(45) + chr(56)))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xb0\xb9n*\x8by\xe6\x19=\x84\xf9\xa8\xbcV\xfc'), chr(100) + chr(9922 - 9821) + chr(0b1100011) + chr(0b1101111) + '\x64' + chr(245 - 144))('\x75' + chr(0b1110100) + chr(0b111010 + 0o54) + chr(0b11100 + 0o21) + '\070')), roI3spqORKae(uHkyNaF6hl2K, roI3spqORKae(ES5oEprVxulp(b'\xa1\xb8X+\x80B\xe7'), '\144' + chr(0b1100101) + '\143' + '\x6f' + '\144' + '\x65')(chr(0b1 + 0o164) + '\x74' + '\x66' + chr(45) + '\x38'))) |
paylogic/pip-accel | pip_accel/__init__.py | PipAccelerator.cleanup_temporary_directories | def cleanup_temporary_directories(self):
"""Delete the build directories and any temporary directories created by pip."""
while self.build_directories:
shutil.rmtree(self.build_directories.pop())
for requirement in self.reported_requirements:
requirement.remove_temporary_source()
while self.eggs_links:
symbolic_link = self.eggs_links.pop()
if os.path.islink(symbolic_link):
os.unlink(symbolic_link) | python | def cleanup_temporary_directories(self):
"""Delete the build directories and any temporary directories created by pip."""
while self.build_directories:
shutil.rmtree(self.build_directories.pop())
for requirement in self.reported_requirements:
requirement.remove_temporary_source()
while self.eggs_links:
symbolic_link = self.eggs_links.pop()
if os.path.islink(symbolic_link):
os.unlink(symbolic_link) | [
"def",
"cleanup_temporary_directories",
"(",
"self",
")",
":",
"while",
"self",
".",
"build_directories",
":",
"shutil",
".",
"rmtree",
"(",
"self",
".",
"build_directories",
".",
"pop",
"(",
")",
")",
"for",
"requirement",
"in",
"self",
".",
"reported_requirements",
":",
"requirement",
".",
"remove_temporary_source",
"(",
")",
"while",
"self",
".",
"eggs_links",
":",
"symbolic_link",
"=",
"self",
".",
"eggs_links",
".",
"pop",
"(",
")",
"if",
"os",
".",
"path",
".",
"islink",
"(",
"symbolic_link",
")",
":",
"os",
".",
"unlink",
"(",
"symbolic_link",
")"
] | Delete the build directories and any temporary directories created by pip. | [
"Delete",
"the",
"build",
"directories",
"and",
"any",
"temporary",
"directories",
"created",
"by",
"pip",
"."
] | ccad1b784927a322d996db593403b1d2d2e22666 | https://github.com/paylogic/pip-accel/blob/ccad1b784927a322d996db593403b1d2d2e22666/pip_accel/__init__.py#L618-L627 | train | Delete the build directories and any temporary directories created by pip. | GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCt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sImz86v,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(0b1110 + 0o42) + chr(0b1001001 + 0o46) + chr(0b100110 + 0o13) + chr(828 - 780) + chr(50), 0o10), nzTpIcepk0o8(chr(889 - 841) + chr(0b1011010 + 0o25) + '\061' + chr(0b110010) + chr(0b1111 + 0o42), 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(0b110101) + chr(1415 - 1364), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\064' + chr(0b100101 + 0o14), 18506 - 18498), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(539 - 490) + chr(394 - 343) + chr(0b110111), 0o10), nzTpIcepk0o8('\060' + chr(111) + '\063' + '\060' + '\064', 1730 - 1722), nzTpIcepk0o8(chr(0b10000 + 0o40) + chr(11582 - 11471) + '\063' + chr(443 - 393) + chr(0b110011), 59503 - 59495), nzTpIcepk0o8('\060' + chr(9825 - 9714) + chr(0b1 + 0o65) + '\060', 0o10), nzTpIcepk0o8(chr(1189 - 1141) + '\157' + '\x34' + chr(2174 - 2120), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x35' + chr(313 - 265), ord("\x08")), nzTpIcepk0o8('\060' + chr(7059 - 6948) + chr(49) + '\x37' + '\067', 0b1000), nzTpIcepk0o8(chr(0b1111 + 0o41) + '\x6f' + chr(50) + chr(0b10101 + 0o35) + '\x32', 60393 - 60385), nzTpIcepk0o8(chr(0b100010 + 0o16) + chr(111) + chr(51) + chr(0b101100 + 0o6) + chr(0b110100 + 0o0), ord("\x08")), nzTpIcepk0o8(chr(1233 - 1185) + chr(4125 - 4014) + '\x32' + chr(52) + chr(52), 0o10), nzTpIcepk0o8(chr(1662 - 1614) + '\x6f' + chr(0b100111 + 0o12) + chr(0b11110 + 0o31) + '\066', 0o10), nzTpIcepk0o8(chr(131 - 83) + '\157' + '\x35' + '\065', 58724 - 58716), nzTpIcepk0o8('\x30' + '\157' + chr(579 - 528) + '\062', 17480 - 17472), nzTpIcepk0o8('\x30' + '\157' + chr(0b11101 + 0o24) + '\x37' + chr(54), 8), nzTpIcepk0o8(chr(48) + chr(0b1010111 + 0o30) + '\065' + chr(188 - 139), 0b1000), nzTpIcepk0o8(chr(0b101010 + 0o6) + chr(111) + '\x37' + chr(1570 - 1518), 0o10), nzTpIcepk0o8(chr(1458 - 1410) + '\157' + '\x31' + '\x34' + chr(51), ord("\x08")), nzTpIcepk0o8(chr(2210 - 2162) + chr(111) + chr(468 - 419) + chr(51) + '\067', 8), nzTpIcepk0o8(chr(0b1101 + 0o43) + '\157' + '\062' + chr(0b10011 + 0o42) + chr(0b10 + 0o60), 0b1000), nzTpIcepk0o8(chr(0b101100 + 0o4) + chr(0b110001 + 0o76) + chr(0b1000 + 0o53) + chr(0b110010) + chr(0b11 + 0o64), 0o10), nzTpIcepk0o8(chr(0b1100 + 0o44) + chr(422 - 311) + chr(0b11001 + 0o32) + chr(0b110110), 36403 - 36395), nzTpIcepk0o8(chr(0b1000 + 0o50) + chr(111) + '\x31' + chr(0b110001 + 0o0) + chr(49), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b101010 + 0o7) + '\x35' + chr(2108 - 2058), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(0b10101 + 0o35) + chr(0b100001 + 0o26), 29835 - 29827), nzTpIcepk0o8(chr(0b110000) + chr(4220 - 4109) + chr(0b110010) + chr(0b110111) + chr(49), 58063 - 58055), nzTpIcepk0o8('\x30' + chr(5121 - 5010) + '\063' + '\063' + chr(1510 - 1461), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b100100 + 0o15) + chr(49) + chr(1775 - 1720), 0o10), nzTpIcepk0o8(chr(0b11011 + 0o25) + chr(0b1101111) + chr(0b101101 + 0o10) + chr(0b110010), 0b1000), nzTpIcepk0o8(chr(1249 - 1201) + '\157' + chr(918 - 868) + '\x35' + '\066', ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + '\063' + chr(51) + '\060', 0b1000), nzTpIcepk0o8(chr(2082 - 2034) + chr(0b1001101 + 0o42) + chr(49) + chr(0b110011) + chr(0b110000), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(51) + chr(0b101 + 0o56) + '\064', ord("\x08")), nzTpIcepk0o8(chr(0b11 + 0o55) + '\x6f' + chr(0b101000 + 0o13), 0o10), nzTpIcepk0o8(chr(0b10100 + 0o34) + chr(111) + chr(0b1011 + 0o50) + chr(0b101 + 0o53), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + '\063' + chr(929 - 879), 8), nzTpIcepk0o8(chr(572 - 524) + chr(5268 - 5157) + chr(1124 - 1073), 8)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b101001 + 0o7) + chr(0b1101111) + '\065' + chr(0b101011 + 0o5), 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'l'), '\144' + chr(0b101100 + 0o71) + '\143' + chr(111) + chr(100) + '\145')(chr(0b100001 + 0o124) + chr(0b100100 + 0o120) + chr(2815 - 2713) + chr(0b11 + 0o52) + chr(56)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def yGB0SqaGnpvk(hXMPsSrOQzbh):
while roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b' $BM;\x9b\xb7YTM\x1c\xe6\xbb\xd6\x17Hi'), chr(100) + '\145' + chr(99) + chr(0b110011 + 0o74) + chr(100) + chr(0b1100101))(chr(117) + '\x74' + chr(3696 - 3594) + '\055' + '\070')):
roI3spqORKae(zcgTfC_NSHAo, roI3spqORKae(ES5oEprVxulp(b'0<_S:\xa1'), '\x64' + '\145' + '\x63' + '\x6f' + '\144' + chr(0b1000100 + 0o41))(chr(5362 - 5245) + chr(116) + chr(0b1011101 + 0o11) + chr(45) + '\x38'))(roI3spqORKae(hXMPsSrOQzbh.build_directories, roI3spqORKae(ES5oEprVxulp(b'7\x12tx0\xbd\xb1H\x11bO\xdb'), chr(0b1001101 + 0o27) + chr(3377 - 3276) + '\143' + chr(6699 - 6588) + '\x64' + '\x65')(chr(0b1110101) + '\x74' + chr(102) + '\x2d' + chr(0b111000)))())
for NV8n4uYfBVFE in roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'04[N-\xb0\xb6TyZ\x1a\xe3\xa1\xcd\x0cHw\x1bGH\x10'), '\144' + chr(9330 - 9229) + chr(1558 - 1459) + chr(7685 - 7574) + chr(0b101000 + 0o74) + '\145')('\165' + chr(0b1010001 + 0o43) + '\x66' + chr(0b101101) + chr(593 - 537))):
roI3spqORKae(NV8n4uYfBVFE, roI3spqORKae(ES5oEprVxulp(b'04FN)\xa1\x8cDCE\x0f\xfd\xa6\xc5\x0cTE\rFI\x11<\xcf'), chr(0b1100100) + chr(0b100100 + 0o101) + chr(99) + chr(7187 - 7076) + '\x64' + '\145')('\x75' + chr(116) + '\x66' + chr(0b10011 + 0o32) + chr(0b111000)))()
while roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b"'6LR\x00\xa8\xba^M["), chr(100) + '\x65' + '\143' + chr(5895 - 5784) + chr(100) + chr(0b1010110 + 0o17))(chr(117) + chr(0b1110100) + '\146' + chr(0b101101) + chr(56))):
nLxzXHKvR5_I = hXMPsSrOQzbh.eggs_links.uC_Yoybx7J0I()
if roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'+"GH1\xaf'), '\x64' + '\x65' + '\143' + chr(7603 - 7492) + chr(0b1100100) + chr(101))('\x75' + chr(116) + '\x66' + chr(1534 - 1489) + chr(56)))(nLxzXHKvR5_I):
roI3spqORKae(aHUqKstZLeS6, roI3spqORKae(ES5oEprVxulp(b'7?GH1\xaf'), chr(0b1100100) + chr(0b1100101) + chr(99) + '\157' + chr(0b110100 + 0o60) + chr(6652 - 6551))(chr(9243 - 9126) + '\164' + '\146' + '\x2d' + chr(56)))(nLxzXHKvR5_I) |
paylogic/pip-accel | pip_accel/__init__.py | DownloadLogFilter.filter | def filter(self, record):
"""Change the severity of selected log records."""
if isinstance(record.msg, basestring):
message = record.msg.lower()
if all(kw in message for kw in self.KEYWORDS):
record.levelname = 'DEBUG'
record.levelno = logging.DEBUG
return 1 | python | def filter(self, record):
"""Change the severity of selected log records."""
if isinstance(record.msg, basestring):
message = record.msg.lower()
if all(kw in message for kw in self.KEYWORDS):
record.levelname = 'DEBUG'
record.levelno = logging.DEBUG
return 1 | [
"def",
"filter",
"(",
"self",
",",
"record",
")",
":",
"if",
"isinstance",
"(",
"record",
".",
"msg",
",",
"basestring",
")",
":",
"message",
"=",
"record",
".",
"msg",
".",
"lower",
"(",
")",
"if",
"all",
"(",
"kw",
"in",
"message",
"for",
"kw",
"in",
"self",
".",
"KEYWORDS",
")",
":",
"record",
".",
"levelname",
"=",
"'DEBUG'",
"record",
".",
"levelno",
"=",
"logging",
".",
"DEBUG",
"return",
"1"
] | Change the severity of selected log records. | [
"Change",
"the",
"severity",
"of",
"selected",
"log",
"records",
"."
] | ccad1b784927a322d996db593403b1d2d2e22666 | https://github.com/paylogic/pip-accel/blob/ccad1b784927a322d996db593403b1d2d2e22666/pip_accel/__init__.py#L662-L669 | train | Change the severity of selected log records. | 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,Migy1g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IhroIia,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) + '\157' + chr(51) + '\x33' + chr(0b110011), 0o10), nzTpIcepk0o8(chr(0b111 + 0o51) + chr(0b1101111) + '\x32' + chr(0b110011) + chr(0b110001), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + '\x32' + '\x30' + '\x31', 33433 - 33425), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b1101 + 0o45) + '\066' + chr(0b11101 + 0o24), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(50) + chr(51), ord("\x08")), nzTpIcepk0o8('\060' + chr(4519 - 4408) + chr(51) + chr(50), ord("\x08")), nzTpIcepk0o8(chr(1763 - 1715) + chr(111) + chr(2343 - 2293) + chr(0b110100), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b11000 + 0o127) + chr(0b110101 + 0o0) + '\x33', 51379 - 51371), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x32' + chr(1712 - 1664), 47122 - 47114), nzTpIcepk0o8(chr(48) + '\157' + '\062' + chr(0b110101) + chr(0b10101 + 0o35), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x33' + '\066' + chr(674 - 623), 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110011) + chr(0b10010 + 0o37) + '\064', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b100100 + 0o113) + '\062' + '\063' + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(49) + chr(0b110001) + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(2198 - 2150) + chr(0b100011 + 0o114) + chr(0b110010) + '\x36' + chr(222 - 172), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(51) + chr(1288 - 1237) + chr(550 - 495), 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(2502 - 2451) + chr(51) + chr(1683 - 1628), 8), nzTpIcepk0o8('\x30' + '\x6f' + '\x31' + '\066' + chr(52), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(51) + '\x37' + '\x34', 0b1000), nzTpIcepk0o8(chr(1894 - 1846) + '\x6f' + chr(0b110010) + chr(49) + chr(0b101011 + 0o14), 0b1000), nzTpIcepk0o8(chr(0b11101 + 0o23) + chr(0b1101111) + chr(49) + chr(0b11010 + 0o33) + chr(0b110011), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b101000 + 0o12) + chr(49) + chr(50), 0o10), nzTpIcepk0o8('\060' + '\157' + '\x33' + chr(0b0 + 0o61) + chr(0b10000 + 0o45), 0b1000), nzTpIcepk0o8('\x30' + chr(0b10001 + 0o136) + chr(0b110010) + '\067' + chr(0b110 + 0o54), 0b1000), nzTpIcepk0o8(chr(0b101100 + 0o4) + chr(111) + '\x37' + '\064', 32510 - 32502), nzTpIcepk0o8('\x30' + '\157' + chr(0b110011) + chr(53) + chr(0b101100 + 0o5), 34629 - 34621), nzTpIcepk0o8(chr(1393 - 1345) + chr(0b1101111) + chr(0b0 + 0o61) + '\x32', 9463 - 9455), nzTpIcepk0o8(chr(48) + chr(0b1100001 + 0o16) + chr(0b11011 + 0o33) + chr(0b100111 + 0o15), 49614 - 49606), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b1000 + 0o51) + chr(0b11010 + 0o35) + chr(2491 - 2440), 53667 - 53659), nzTpIcepk0o8('\x30' + '\x6f' + chr(50) + '\x31' + chr(0b110000), ord("\x08")), nzTpIcepk0o8('\060' + chr(11632 - 11521) + chr(0b11 + 0o56) + chr(0b110011), 0o10), nzTpIcepk0o8('\x30' + chr(11527 - 11416) + chr(0b110011) + chr(0b100 + 0o56) + chr(1902 - 1849), 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(0b110011) + chr(0b100011 + 0o20) + chr(0b110111), 8), nzTpIcepk0o8(chr(0b101100 + 0o4) + chr(111) + chr(0b110011) + chr(1132 - 1084) + '\x35', 0b1000), nzTpIcepk0o8('\060' + chr(0b1001000 + 0o47) + chr(0b11101 + 0o26) + chr(50) + '\067', 58688 - 58680), nzTpIcepk0o8(chr(0b100010 + 0o16) + chr(0b1101111) + chr(51) + '\064' + chr(48), 0b1000), nzTpIcepk0o8(chr(0b101100 + 0o4) + '\x6f' + '\x31' + chr(0b10111 + 0o31), ord("\x08")), nzTpIcepk0o8('\060' + chr(7549 - 7438) + chr(0b10110 + 0o34) + chr(0b110111) + chr(0b100001 + 0o24), ord("\x08")), nzTpIcepk0o8(chr(1450 - 1402) + chr(2803 - 2692) + '\063' + chr(51) + chr(1024 - 973), 8), nzTpIcepk0o8('\060' + chr(111) + '\063' + chr(0b110000) + '\x30', 16730 - 16722)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(937 - 826) + chr(53) + '\x30', ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xf5'), chr(3548 - 3448) + chr(7351 - 7250) + chr(6433 - 6334) + chr(0b1101111) + '\x64' + chr(101))(chr(117) + chr(697 - 581) + '\x66' + chr(0b10100 + 0o31) + '\070') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def qEahrGEDF7Tq(hXMPsSrOQzbh, etqFPAml7P5R):
if suIjIS24Zkqw(roI3spqORKae(etqFPAml7P5R, roI3spqORKae(ES5oEprVxulp(b'\xa8\xf5\xe5\xcbqRbN(\xed\xc2\x9f'), chr(7571 - 7471) + chr(101) + chr(0b1001010 + 0o31) + chr(5996 - 5885) + chr(100) + chr(0b1100101))('\165' + chr(116) + chr(0b101001 + 0o75) + chr(0b10011 + 0o32) + '\070')), JaQstSroDWOP):
FksNMH1w_ns6 = etqFPAml7P5R.msg.Xn8ENWMZdIRt()
if qX60lO1lgHA5((n_DqV9fOWrXc in FksNMH1w_ns6 for n_DqV9fOWrXc in roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x90\xdc\xd8\xe6\\HPx'), chr(0b100 + 0o140) + '\x65' + chr(99) + chr(466 - 355) + chr(0b1000100 + 0o40) + chr(3265 - 3164))(chr(117) + chr(0b1110100) + chr(0b1100110) + '\055' + chr(1616 - 1560))))):
etqFPAml7P5R.cNS4_uwyOv3O = roI3spqORKae(ES5oEprVxulp(b'\x9f\xdc\xc3\xe4T'), chr(0b1011000 + 0o14) + chr(7969 - 7868) + chr(99) + chr(6238 - 6127) + '\144' + '\x65')('\x75' + chr(0b110100 + 0o100) + '\x66' + '\x2d' + '\x38')
etqFPAml7P5R.Cb2F_HjoKfpd = Lj4gcNafqrcl.XCtmWrNp_YK6
return nzTpIcepk0o8(chr(688 - 640) + chr(8759 - 8648) + chr(49), 57191 - 57183) |
paylogic/pip-accel | pip_accel/cli.py | main | def main():
"""The command line interface for the ``pip-accel`` program."""
arguments = sys.argv[1:]
# If no arguments are given, the help text of pip-accel is printed.
if not arguments:
usage()
sys.exit(0)
# If no install subcommand is given we pass the command line straight
# to pip without any changes and exit immediately afterwards.
if 'install' not in arguments:
# This will not return.
os.execvp('pip', ['pip'] + arguments)
else:
arguments = [arg for arg in arguments if arg != 'install']
config = Config()
# Initialize logging output.
coloredlogs.install(
fmt=config.log_format,
level=config.log_verbosity,
)
# Adjust verbosity based on -v, -q, --verbose, --quiet options.
for argument in list(arguments):
if match_option(argument, '-v', '--verbose'):
coloredlogs.increase_verbosity()
elif match_option(argument, '-q', '--quiet'):
coloredlogs.decrease_verbosity()
# Perform the requested action(s).
try:
accelerator = PipAccelerator(config)
accelerator.install_from_arguments(arguments)
except NothingToDoError as e:
# Don't print a traceback for this (it's not very user friendly) and
# exit with status zero to stay compatible with pip. For more details
# please refer to https://github.com/paylogic/pip-accel/issues/47.
logger.warning("%s", e)
sys.exit(0)
except Exception:
logger.exception("Caught unhandled exception!")
sys.exit(1) | python | def main():
"""The command line interface for the ``pip-accel`` program."""
arguments = sys.argv[1:]
# If no arguments are given, the help text of pip-accel is printed.
if not arguments:
usage()
sys.exit(0)
# If no install subcommand is given we pass the command line straight
# to pip without any changes and exit immediately afterwards.
if 'install' not in arguments:
# This will not return.
os.execvp('pip', ['pip'] + arguments)
else:
arguments = [arg for arg in arguments if arg != 'install']
config = Config()
# Initialize logging output.
coloredlogs.install(
fmt=config.log_format,
level=config.log_verbosity,
)
# Adjust verbosity based on -v, -q, --verbose, --quiet options.
for argument in list(arguments):
if match_option(argument, '-v', '--verbose'):
coloredlogs.increase_verbosity()
elif match_option(argument, '-q', '--quiet'):
coloredlogs.decrease_verbosity()
# Perform the requested action(s).
try:
accelerator = PipAccelerator(config)
accelerator.install_from_arguments(arguments)
except NothingToDoError as e:
# Don't print a traceback for this (it's not very user friendly) and
# exit with status zero to stay compatible with pip. For more details
# please refer to https://github.com/paylogic/pip-accel/issues/47.
logger.warning("%s", e)
sys.exit(0)
except Exception:
logger.exception("Caught unhandled exception!")
sys.exit(1) | [
"def",
"main",
"(",
")",
":",
"arguments",
"=",
"sys",
".",
"argv",
"[",
"1",
":",
"]",
"# If no arguments are given, the help text of pip-accel is printed.",
"if",
"not",
"arguments",
":",
"usage",
"(",
")",
"sys",
".",
"exit",
"(",
"0",
")",
"# If no install subcommand is given we pass the command line straight",
"# to pip without any changes and exit immediately afterwards.",
"if",
"'install'",
"not",
"in",
"arguments",
":",
"# This will not return.",
"os",
".",
"execvp",
"(",
"'pip'",
",",
"[",
"'pip'",
"]",
"+",
"arguments",
")",
"else",
":",
"arguments",
"=",
"[",
"arg",
"for",
"arg",
"in",
"arguments",
"if",
"arg",
"!=",
"'install'",
"]",
"config",
"=",
"Config",
"(",
")",
"# Initialize logging output.",
"coloredlogs",
".",
"install",
"(",
"fmt",
"=",
"config",
".",
"log_format",
",",
"level",
"=",
"config",
".",
"log_verbosity",
",",
")",
"# Adjust verbosity based on -v, -q, --verbose, --quiet options.",
"for",
"argument",
"in",
"list",
"(",
"arguments",
")",
":",
"if",
"match_option",
"(",
"argument",
",",
"'-v'",
",",
"'--verbose'",
")",
":",
"coloredlogs",
".",
"increase_verbosity",
"(",
")",
"elif",
"match_option",
"(",
"argument",
",",
"'-q'",
",",
"'--quiet'",
")",
":",
"coloredlogs",
".",
"decrease_verbosity",
"(",
")",
"# Perform the requested action(s).",
"try",
":",
"accelerator",
"=",
"PipAccelerator",
"(",
"config",
")",
"accelerator",
".",
"install_from_arguments",
"(",
"arguments",
")",
"except",
"NothingToDoError",
"as",
"e",
":",
"# Don't print a traceback for this (it's not very user friendly) and",
"# exit with status zero to stay compatible with pip. For more details",
"# please refer to https://github.com/paylogic/pip-accel/issues/47.",
"logger",
".",
"warning",
"(",
"\"%s\"",
",",
"e",
")",
"sys",
".",
"exit",
"(",
"0",
")",
"except",
"Exception",
":",
"logger",
".",
"exception",
"(",
"\"Caught unhandled exception!\"",
")",
"sys",
".",
"exit",
"(",
"1",
")"
] | The command line interface for the ``pip-accel`` program. | [
"The",
"command",
"line",
"interface",
"for",
"the",
"pip",
"-",
"accel",
"program",
"."
] | ccad1b784927a322d996db593403b1d2d2e22666 | https://github.com/paylogic/pip-accel/blob/ccad1b784927a322d996db593403b1d2d2e22666/pip_accel/cli.py#L28-L66 | train | The main function for pip - accel. | GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f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,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(0b11010 + 0o26) + chr(111) + '\x31' + chr(0b110011) + chr(52), 0o10), nzTpIcepk0o8('\060' + chr(111) + '\061' + chr(1802 - 1751) + chr(1660 - 1605), 23342 - 23334), nzTpIcepk0o8(chr(2188 - 2140) + '\157' + '\x32' + '\x32' + chr(0b110100), ord("\x08")), nzTpIcepk0o8(chr(0b11111 + 0o21) + chr(111) + chr(1977 - 1926) + chr(480 - 432) + chr(0b101000 + 0o11), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b10 + 0o155) + chr(0b110100) + '\060', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(2503 - 2452) + chr(55) + chr(592 - 542), 37724 - 37716), nzTpIcepk0o8('\x30' + chr(8070 - 7959) + '\x33' + chr(2279 - 2227) + '\063', 0b1000), nzTpIcepk0o8(chr(0b11001 + 0o27) + chr(111) + chr(0b110010) + chr(2110 - 2060) + chr(0b1100 + 0o51), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + '\061' + chr(0b100101 + 0o14) + chr(49), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(1052 - 1001) + '\x37' + chr(53), 0o10), nzTpIcepk0o8(chr(0b110 + 0o52) + chr(1375 - 1264) + chr(0b1001 + 0o50) + '\x34' + chr(0b110101), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110010) + '\x30' + chr(2199 - 2151), 17653 - 17645), nzTpIcepk0o8(chr(1476 - 1428) + '\157' + chr(709 - 657) + '\x33', 64903 - 64895), nzTpIcepk0o8('\060' + chr(0b1001 + 0o146) + chr(563 - 514), 31913 - 31905), nzTpIcepk0o8(chr(2003 - 1955) + '\x6f' + '\061' + chr(55) + '\063', 43160 - 43152), nzTpIcepk0o8('\060' + '\x6f' + '\062' + chr(0b110100) + chr(0b110111), 17500 - 17492), nzTpIcepk0o8('\060' + chr(5516 - 5405) + '\x33' + chr(0b1111 + 0o43) + chr(0b110111), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(11727 - 11616) + chr(0b100110 + 0o15) + '\066' + '\065', ord("\x08")), nzTpIcepk0o8(chr(0b100110 + 0o12) + '\157' + chr(50) + '\x37' + chr(0b1001 + 0o53), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1100110 + 0o11) + chr(0b1000 + 0o51) + chr(0b10011 + 0o36), 29092 - 29084), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110010) + chr(0b101101 + 0o4) + chr(48), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(2564 - 2509) + '\x33', 37215 - 37207), nzTpIcepk0o8(chr(0b10111 + 0o31) + chr(0b1101111) + chr(54) + chr(0b110001 + 0o3), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110010) + chr(50) + '\x34', 8), nzTpIcepk0o8(chr(1799 - 1751) + chr(0b10101 + 0o132) + chr(0b110011) + '\x36' + chr(0b11101 + 0o31), 43494 - 43486), nzTpIcepk0o8(chr(48) + '\157' + chr(51) + '\x32' + chr(1703 - 1655), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b100101 + 0o14) + '\x30' + chr(0b10100 + 0o43), 0o10), nzTpIcepk0o8(chr(48) + chr(0b100011 + 0o114) + '\063' + '\x35' + chr(0b110001), 27541 - 27533), nzTpIcepk0o8(chr(48) + '\157' + '\063' + chr(0b110010) + chr(0b110000), 8), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(53) + '\x32', 7732 - 7724), nzTpIcepk0o8(chr(0b110000) + chr(2585 - 2474) + chr(0b100011 + 0o20) + chr(1408 - 1357) + chr(0b100111 + 0o13), 0o10), nzTpIcepk0o8('\060' + '\157' + '\x34' + '\x31', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1000111 + 0o50) + chr(709 - 659) + chr(217 - 162) + chr(1864 - 1816), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(51) + chr(0b10110 + 0o32) + '\x33', 0b1000), nzTpIcepk0o8('\x30' + chr(111) + '\x31' + '\x30' + chr(0b110101), 0b1000), nzTpIcepk0o8(chr(0b11010 + 0o26) + chr(6945 - 6834) + '\x32' + chr(0b1101 + 0o45) + '\066', 0o10), nzTpIcepk0o8('\x30' + chr(111) + '\063' + chr(53) + '\062', 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(50) + '\066' + chr(0b1010 + 0o51), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b101101 + 0o102) + '\x31' + chr(0b110010) + chr(0b0 + 0o61), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + '\x33' + chr(50), 16323 - 16315)][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + '\157' + chr(2050 - 1997) + '\x30', 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'r'), chr(0b101111 + 0o65) + chr(0b110110 + 0o57) + chr(1271 - 1172) + chr(111) + chr(1694 - 1594) + chr(9980 - 9879))(chr(10157 - 10040) + chr(7537 - 7421) + '\146' + '\x2d' + chr(0b111000)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def BXHXH_QeD6rL():
H5ObihiJsBjC = bpyfpu4kTbwL.ajIDWyXMBa3b[nzTpIcepk0o8(chr(0b110000) + '\157' + '\061', 8):]
if not H5ObihiJsBjC:
GWGBt2l9y_FA()
roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\x06*\xe6\xabC\xaf\xaf\xa4:\x8e$\xb8'), '\x64' + chr(3424 - 3323) + chr(99) + '\157' + '\144' + '\145')(chr(3223 - 3106) + '\x74' + chr(0b100100 + 0o102) + chr(0b101101) + chr(3055 - 2999)))(nzTpIcepk0o8(chr(0b101000 + 0o10) + '\x6f' + '\x30', 0o10))
if roI3spqORKae(ES5oEprVxulp(b'51\xe7\xb5A\x96\x8f'), chr(100) + chr(101) + chr(9285 - 9186) + chr(7739 - 7628) + chr(0b1100100) + '\145')('\165' + '\x74' + chr(0b1100110) + chr(0b101101) + chr(0b0 + 0o70)) not in H5ObihiJsBjC:
roI3spqORKae(aHUqKstZLeS6, roI3spqORKae(ES5oEprVxulp(b"9'\xf1\xa2V\x8a"), '\x64' + '\x65' + chr(99) + chr(10126 - 10015) + chr(0b100 + 0o140) + chr(2940 - 2839))('\165' + chr(6320 - 6204) + '\x66' + '\x2d' + '\x38'))(roI3spqORKae(ES5oEprVxulp(b',6\xe4'), chr(0b1100100) + chr(6576 - 6475) + chr(99) + '\x6f' + chr(5564 - 5464) + '\145')(chr(0b1001101 + 0o50) + '\164' + '\x66' + '\055' + chr(0b111000)), [roI3spqORKae(ES5oEprVxulp(b',6\xe4'), chr(0b1001 + 0o133) + chr(101) + '\x63' + chr(7749 - 7638) + chr(100) + chr(0b1110 + 0o127))(chr(117) + chr(116) + chr(102) + chr(0b100011 + 0o12) + chr(56))] + H5ObihiJsBjC)
else:
H5ObihiJsBjC = [S6EI_gyMl2nC for S6EI_gyMl2nC in H5ObihiJsBjC if S6EI_gyMl2nC != roI3spqORKae(ES5oEprVxulp(b'51\xe7\xb5A\x96\x8f'), '\144' + chr(8168 - 8067) + chr(99) + '\x6f' + chr(2545 - 2445) + chr(0b1010001 + 0o24))(chr(0b10111 + 0o136) + chr(8851 - 8735) + chr(9921 - 9819) + chr(45) + '\070')]
kgkKUcD36lls = iL77XetGSFdV()
roI3spqORKae(SY5Jx3cLzEj2, roI3spqORKae(ES5oEprVxulp(b'51\xe7\xb5A\x96\x8f'), chr(0b101100 + 0o70) + chr(101) + chr(3845 - 3746) + '\157' + chr(0b1100100) + chr(0b1001000 + 0o35))('\x75' + chr(8730 - 8614) + chr(102) + chr(45) + chr(544 - 488)))(fmt=roI3spqORKae(kgkKUcD36lls, roI3spqORKae(ES5oEprVxulp(b'7(\xa0\xb0s\xc2\x8e\xf8=\xcf:\xe1'), '\144' + chr(101) + chr(0b1010011 + 0o20) + chr(0b1100001 + 0o16) + chr(100) + '\x65')('\x75' + '\164' + chr(0b1011101 + 0o11) + chr(0b101101) + '\070')), level=roI3spqORKae(kgkKUcD36lls, roI3spqORKae(ES5oEprVxulp(b'00\xf3\x9eV\x9f\x91\xf7&\x8e\x0c\xf4Z'), chr(0b1100100) + chr(101) + chr(6535 - 6436) + '\157' + '\144' + chr(6171 - 6070))('\165' + '\164' + chr(0b1100110) + chr(45) + chr(3074 - 3018))))
for QiY1GFQwHchB in H4NoA26ON7iG(H5ObihiJsBjC):
if YZ6GGii_Cns1(QiY1GFQwHchB, roI3spqORKae(ES5oEprVxulp(b'q)'), '\x64' + chr(2545 - 2444) + chr(99) + chr(111) + '\x64' + '\x65')('\165' + chr(0b100001 + 0o123) + chr(102) + '\055' + '\x38'), roI3spqORKae(ES5oEprVxulp(b'qr\xe2\xa4R\x98\x8c\xe6,'), chr(4769 - 4669) + chr(101) + chr(0b1000 + 0o133) + chr(10157 - 10046) + chr(0b1100100) + chr(10115 - 10014))('\165' + chr(7612 - 7496) + chr(102) + chr(0b10 + 0o53) + '\x38')):
roI3spqORKae(SY5Jx3cLzEj2, roI3spqORKae(ES5oEprVxulp(b'51\xf7\xb3E\x9b\x90\xf0\x16\x8b\x00\xf2An\x08\xce\xa3\x8c'), chr(0b11011 + 0o111) + chr(4375 - 4274) + chr(7397 - 7298) + chr(3275 - 3164) + chr(100) + chr(101))('\165' + '\164' + chr(0b1100110) + chr(1467 - 1422) + chr(821 - 765)))()
elif YZ6GGii_Cns1(QiY1GFQwHchB, roI3spqORKae(ES5oEprVxulp(b'q.'), chr(0b11011 + 0o111) + chr(101) + '\143' + chr(0b1101111) + chr(6636 - 6536) + chr(0b0 + 0o145))('\x75' + '\x74' + '\146' + chr(0b101101) + '\x38'), roI3spqORKae(ES5oEprVxulp(b'qr\xe5\xb4I\x9f\x97'), chr(6079 - 5979) + '\145' + '\x63' + '\157' + chr(306 - 206) + chr(1518 - 1417))('\x75' + '\x74' + chr(687 - 585) + chr(45) + chr(0b110110 + 0o2))):
roI3spqORKae(SY5Jx3cLzEj2, roI3spqORKae(ES5oEprVxulp(b'8:\xf7\xb3E\x9b\x90\xf0\x16\x8b\x00\xf2An\x08\xce\xa3\x8c'), chr(100) + '\x65' + chr(99) + chr(0b101110 + 0o101) + chr(1405 - 1305) + chr(0b1010110 + 0o17))(chr(8925 - 8808) + chr(0b1110100) + chr(0b1100110) + '\x2d' + chr(0b100010 + 0o26)))()
try:
uQfvtoj8xHr0 = BToVVG7phhJo(kgkKUcD36lls)
roI3spqORKae(uQfvtoj8xHr0, roI3spqORKae(ES5oEprVxulp(b'51\xe7\xb5A\x96\x8f\xca/\x8f\n\xed|`\t\xc0\xa2\x98\xd9g\xfcH'), '\x64' + '\145' + chr(99) + '\157' + '\x64' + chr(307 - 206))(chr(117) + chr(116) + '\146' + '\055' + chr(56)))(H5ObihiJsBjC)
except OkSIRoEbaLPs as wgf0sgcu_xPL:
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'+>\xe6\xafI\x94\x84'), chr(100) + chr(0b1100101) + chr(99) + '\157' + chr(100) + chr(1858 - 1757))('\x75' + chr(0b10010 + 0o142) + chr(8097 - 7995) + chr(0b1001 + 0o44) + chr(599 - 543)))(roI3spqORKae(ES5oEprVxulp(b'y,'), chr(3824 - 3724) + chr(101) + '\143' + chr(111) + chr(0b1100100) + '\x65')(chr(0b1110101) + '\x74' + '\x66' + chr(462 - 417) + '\070'), wgf0sgcu_xPL)
roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\x06*\xe6\xabC\xaf\xaf\xa4:\x8e$\xb8'), '\x64' + chr(0b1100101) + chr(99) + chr(0b10011 + 0o134) + '\x64' + chr(101))('\x75' + '\x74' + chr(0b111000 + 0o56) + chr(45) + '\x38'))(nzTpIcepk0o8('\x30' + chr(0b1101111) + '\060', 8))
except zfo2Sgkz3IVJ:
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'.<\xd8\xa0j\x98\x80\xdf\x04\x9e+\xf6'), chr(0b1100100) + chr(0b1100101) + chr(0b1100011) + chr(111) + chr(0b100011 + 0o101) + '\x65')(chr(117) + chr(6132 - 6016) + '\146' + chr(0b101101) + chr(0b111000)))(roI3spqORKae(ES5oEprVxulp(b"\x1f>\xe1\xa6H\x8e\xc3\xe0'\x95\x04\xeeGm\x1e\xc3\xf7\x90\xc4j\xedK@\xfd\x99\xbef"), '\x64' + '\145' + chr(2903 - 2804) + '\157' + '\x64' + '\x65')(chr(117) + '\164' + chr(0b10011 + 0o123) + chr(1305 - 1260) + '\x38'))
roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\x06*\xe6\xabC\xaf\xaf\xa4:\x8e$\xb8'), '\x64' + chr(101) + '\x63' + '\157' + '\144' + chr(0b1100101))(chr(117) + '\164' + chr(2684 - 2582) + chr(0b101101) + chr(0b11101 + 0o33)))(nzTpIcepk0o8('\060' + '\157' + chr(49), 8)) |
paylogic/pip-accel | pip_accel/caches/local.py | LocalCacheBackend.get | def get(self, filename):
"""
Check if a distribution archive exists in the local cache.
:param filename: The filename of the distribution archive (a string).
:returns: The pathname of a distribution archive on the local file
system or :data:`None`.
"""
pathname = os.path.join(self.config.binary_cache, filename)
if os.path.isfile(pathname):
logger.debug("Distribution archive exists in local cache (%s).", pathname)
return pathname
else:
logger.debug("Distribution archive doesn't exist in local cache (%s).", pathname)
return None | python | def get(self, filename):
"""
Check if a distribution archive exists in the local cache.
:param filename: The filename of the distribution archive (a string).
:returns: The pathname of a distribution archive on the local file
system or :data:`None`.
"""
pathname = os.path.join(self.config.binary_cache, filename)
if os.path.isfile(pathname):
logger.debug("Distribution archive exists in local cache (%s).", pathname)
return pathname
else:
logger.debug("Distribution archive doesn't exist in local cache (%s).", pathname)
return None | [
"def",
"get",
"(",
"self",
",",
"filename",
")",
":",
"pathname",
"=",
"os",
".",
"path",
".",
"join",
"(",
"self",
".",
"config",
".",
"binary_cache",
",",
"filename",
")",
"if",
"os",
".",
"path",
".",
"isfile",
"(",
"pathname",
")",
":",
"logger",
".",
"debug",
"(",
"\"Distribution archive exists in local cache (%s).\"",
",",
"pathname",
")",
"return",
"pathname",
"else",
":",
"logger",
".",
"debug",
"(",
"\"Distribution archive doesn't exist in local cache (%s).\"",
",",
"pathname",
")",
"return",
"None"
] | Check if a distribution archive exists in the local cache.
:param filename: The filename of the distribution archive (a string).
:returns: The pathname of a distribution archive on the local file
system or :data:`None`. | [
"Check",
"if",
"a",
"distribution",
"archive",
"exists",
"in",
"the",
"local",
"cache",
"."
] | ccad1b784927a322d996db593403b1d2d2e22666 | https://github.com/paylogic/pip-accel/blob/ccad1b784927a322d996db593403b1d2d2e22666/pip_accel/caches/local.py#L40-L54 | train | Check if a distribution archive exists in the local cache. | 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,aFaxROHyT7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,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(0b100 + 0o153) + chr(50) + chr(0b110111) + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(1230 - 1182) + '\x6f' + chr(50) + '\066' + '\x34', ord("\x08")), nzTpIcepk0o8(chr(1669 - 1621) + chr(111) + chr(0b110011) + '\061' + chr(0b110100 + 0o2), 17645 - 17637), nzTpIcepk0o8(chr(664 - 616) + '\157' + chr(0b0 + 0o61) + chr(51) + chr(0b11100 + 0o30), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1001 + 0o146) + chr(0b11101 + 0o25) + chr(0b10111 + 0o33) + chr(48), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(1051 - 1001) + chr(0b1011 + 0o54) + '\x35', 0o10), nzTpIcepk0o8('\060' + '\157' + chr(1849 - 1799) + chr(0b110101 + 0o1) + chr(0b110010 + 0o5), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + '\x32' + '\062' + chr(0b110011), 0o10), nzTpIcepk0o8(chr(0b10010 + 0o36) + chr(111) + chr(49) + '\x30' + '\067', ord("\x08")), nzTpIcepk0o8(chr(1136 - 1088) + chr(0b1101111) + '\x31' + chr(54) + chr(48), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(8198 - 8087) + '\061' + chr(1614 - 1566) + '\065', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110011) + '\065' + '\x32', 0o10), nzTpIcepk0o8('\x30' + chr(11535 - 11424) + '\062' + '\x35' + '\x35', 0o10), nzTpIcepk0o8('\060' + '\157' + chr(1293 - 1243) + '\060', 0o10), nzTpIcepk0o8(chr(0b1101 + 0o43) + chr(0b1101001 + 0o6) + '\062' + chr(0b110111) + '\065', 8), nzTpIcepk0o8(chr(113 - 65) + chr(0b10110 + 0o131) + '\x31' + chr(0b11001 + 0o30) + chr(52), 16205 - 16197), nzTpIcepk0o8(chr(0b10110 + 0o32) + chr(3108 - 2997) + chr(798 - 747) + '\x34', 0b1000), nzTpIcepk0o8('\060' + '\157' + chr(0b110010) + chr(0b1 + 0o63) + chr(0b110100), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101010 + 0o5) + chr(0b1 + 0o61) + '\x37' + chr(0b110100), 42710 - 42702), nzTpIcepk0o8('\x30' + chr(0b110 + 0o151) + '\x31' + chr(0b101010 + 0o6) + chr(1336 - 1287), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110011 + 0o0) + '\x37' + chr(2123 - 2068), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(49) + chr(0b100010 + 0o22) + chr(0b110 + 0o52), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110010) + chr(0b100001 + 0o24), 1973 - 1965), nzTpIcepk0o8(chr(0b10110 + 0o32) + '\157' + '\x31' + chr(0b110111) + '\x31', 0o10), nzTpIcepk0o8(chr(120 - 72) + '\x6f' + '\062' + chr(0b110110) + chr(0b110111), 8), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x37' + chr(1580 - 1530), 4471 - 4463), nzTpIcepk0o8(chr(0b110000) + chr(5479 - 5368) + '\x32' + chr(0b111 + 0o53) + '\065', ord("\x08")), nzTpIcepk0o8('\060' + chr(1731 - 1620) + '\x31' + chr(1532 - 1484) + '\x32', ord("\x08")), nzTpIcepk0o8(chr(0b10111 + 0o31) + chr(2881 - 2770) + '\x36' + '\061', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(2298 - 2249) + '\066' + chr(0b110101), 0b1000), nzTpIcepk0o8(chr(0b10101 + 0o33) + chr(111) + chr(0b10111 + 0o34) + chr(48) + '\x32', 0o10), nzTpIcepk0o8('\x30' + chr(8943 - 8832) + chr(51) + chr(0b1001 + 0o55) + '\060', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\063' + '\067' + chr(0b110101), 50631 - 50623), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(50) + '\060' + chr(0b110100 + 0o2), ord("\x08")), nzTpIcepk0o8(chr(1888 - 1840) + chr(0b1101111) + '\065' + chr(0b110011), 0b1000), nzTpIcepk0o8('\060' + chr(5207 - 5096) + chr(0b10010 + 0o37) + chr(0b110000) + chr(54), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(5560 - 5449) + chr(1914 - 1865) + '\x34' + chr(0b1000 + 0o57), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + '\x33' + chr(0b110100) + chr(0b110001 + 0o5), 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(49) + chr(0b110101) + '\061', 0b1000), nzTpIcepk0o8('\060' + chr(0b1100011 + 0o14) + chr(918 - 867) + '\066' + '\066', 16216 - 16208)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(404 - 356) + '\157' + '\065' + chr(1137 - 1089), 36679 - 36671)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x97'), chr(0b101100 + 0o70) + chr(101) + chr(99) + '\157' + chr(0b1100100) + chr(0b1100101))(chr(117) + chr(0b1110100) + chr(1997 - 1895) + chr(0b101101) + chr(1809 - 1753)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def GUKetu4xaGsJ(hXMPsSrOQzbh, FxZHtXEolYsL):
lCqeCRJHpXr8 = aHUqKstZLeS6.path.Y4yM9BcfTCNq(hXMPsSrOQzbh.config.binary_cache, FxZHtXEolYsL)
if roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'\xd0\xc7\xa85\xfc\xd8'), chr(4129 - 4029) + '\145' + '\x63' + '\157' + chr(100) + chr(0b1100101))('\165' + chr(135 - 19) + '\x66' + '\055' + chr(0b1011 + 0o55)))(lCqeCRJHpXr8):
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'\xde\xf5\xf7\x06\xa9\xd9\xd8\xa5\x12\x1d\x00\xb0'), chr(0b1101 + 0o127) + chr(0b1 + 0o144) + chr(0b110110 + 0o55) + '\x6f' + '\144' + '\x65')(chr(8152 - 8035) + '\x74' + chr(8815 - 8713) + '\055' + chr(56)))(roI3spqORKae(ES5oEprVxulp(b'\xfd\xdd\xbd(\xe2\xd4\xd5\xe63\x19*\x84\x8dq\xcf/t\xcd\xca$\xdf\x05m\x10\xc4N\xe6bX\x1b\xe2\x9c\x92\xe5J*G\x85\x08\x95\xd1\xd1\xeet\xb5\xce\x9e\xbd'), '\x64' + chr(0b1100101) + chr(0b1100011) + '\x6f' + chr(2971 - 2871) + chr(9404 - 9303))('\x75' + '\x74' + chr(4218 - 4116) + chr(0b101101) + chr(0b111000)), lCqeCRJHpXr8)
return lCqeCRJHpXr8
else:
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'\xde\xf5\xf7\x06\xa9\xd9\xd8\xa5\x12\x1d\x00\xb0'), chr(100) + chr(101) + '\x63' + chr(0b1101111) + chr(100) + chr(2745 - 2644))('\165' + chr(0b1110010 + 0o2) + chr(0b1001111 + 0o27) + chr(298 - 253) + chr(0b111000)))(roI3spqORKae(ES5oEprVxulp(b'\xfd\xdd\xbd(\xe2\xd4\xd5\xe63\x19*\x84\x8dq\xcf/t\xcd\xca$\xdf\x04z\x1c\xc4T\xb26\x11\x10\xba\x99\x8e\xf2\x0b/\t\xc6\x05\x99\xda\xd5\xa2|\xf3\xdc\xd4\xfb"Pm\xcf\xde9\x93'), chr(0b101100 + 0o70) + '\145' + chr(99) + chr(0b1101111) + chr(0b11010 + 0o112) + chr(0b1100101))('\165' + chr(0b1110100) + chr(7721 - 7619) + '\x2d' + chr(56)), lCqeCRJHpXr8)
return None |
paylogic/pip-accel | pip_accel/caches/local.py | LocalCacheBackend.put | def put(self, filename, handle):
"""
Store a distribution archive in the local cache.
:param filename: The filename of the distribution archive (a string).
:param handle: A file-like object that provides access to the
distribution archive.
"""
file_in_cache = os.path.join(self.config.binary_cache, filename)
logger.debug("Storing distribution archive in local cache: %s", file_in_cache)
makedirs(os.path.dirname(file_in_cache))
# Stream the contents of the distribution archive to a temporary file
# to avoid race conditions (e.g. partial reads) between multiple
# processes that are using the local cache at the same time.
with AtomicReplace(file_in_cache) as temporary_file:
with open(temporary_file, 'wb') as temporary_file_handle:
shutil.copyfileobj(handle, temporary_file_handle)
logger.debug("Finished caching distribution archive in local cache.") | python | def put(self, filename, handle):
"""
Store a distribution archive in the local cache.
:param filename: The filename of the distribution archive (a string).
:param handle: A file-like object that provides access to the
distribution archive.
"""
file_in_cache = os.path.join(self.config.binary_cache, filename)
logger.debug("Storing distribution archive in local cache: %s", file_in_cache)
makedirs(os.path.dirname(file_in_cache))
# Stream the contents of the distribution archive to a temporary file
# to avoid race conditions (e.g. partial reads) between multiple
# processes that are using the local cache at the same time.
with AtomicReplace(file_in_cache) as temporary_file:
with open(temporary_file, 'wb') as temporary_file_handle:
shutil.copyfileobj(handle, temporary_file_handle)
logger.debug("Finished caching distribution archive in local cache.") | [
"def",
"put",
"(",
"self",
",",
"filename",
",",
"handle",
")",
":",
"file_in_cache",
"=",
"os",
".",
"path",
".",
"join",
"(",
"self",
".",
"config",
".",
"binary_cache",
",",
"filename",
")",
"logger",
".",
"debug",
"(",
"\"Storing distribution archive in local cache: %s\"",
",",
"file_in_cache",
")",
"makedirs",
"(",
"os",
".",
"path",
".",
"dirname",
"(",
"file_in_cache",
")",
")",
"# Stream the contents of the distribution archive to a temporary file",
"# to avoid race conditions (e.g. partial reads) between multiple",
"# processes that are using the local cache at the same time.",
"with",
"AtomicReplace",
"(",
"file_in_cache",
")",
"as",
"temporary_file",
":",
"with",
"open",
"(",
"temporary_file",
",",
"'wb'",
")",
"as",
"temporary_file_handle",
":",
"shutil",
".",
"copyfileobj",
"(",
"handle",
",",
"temporary_file_handle",
")",
"logger",
".",
"debug",
"(",
"\"Finished caching distribution archive in local cache.\"",
")"
] | Store a distribution archive in the local cache.
:param filename: The filename of the distribution archive (a string).
:param handle: A file-like object that provides access to the
distribution archive. | [
"Store",
"a",
"distribution",
"archive",
"in",
"the",
"local",
"cache",
"."
] | ccad1b784927a322d996db593403b1d2d2e22666 | https://github.com/paylogic/pip-accel/blob/ccad1b784927a322d996db593403b1d2d2e22666/pip_accel/caches/local.py#L56-L73 | train | Store a distribution archive in the local cache. | 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_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WcJQBa,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(0b100111 + 0o12) + '\x30' + chr(0b101011 + 0o7), 0b1000), nzTpIcepk0o8(chr(0b100000 + 0o20) + chr(0b1000 + 0o147) + chr(55) + chr(0b1001 + 0o54), 0o10), nzTpIcepk0o8(chr(2273 - 2225) + '\x6f' + '\x32' + '\063' + chr(0b110101), 4074 - 4066), nzTpIcepk0o8(chr(0b1011 + 0o45) + '\157' + '\x32' + chr(0b101110 + 0o10) + '\x34', 0b1000), nzTpIcepk0o8(chr(0b110000 + 0o0) + chr(10422 - 10311) + chr(49) + chr(52) + chr(2172 - 2123), 0b1000), nzTpIcepk0o8(chr(0b11111 + 0o21) + '\157' + chr(0b11000 + 0o33) + '\060' + chr(0b10 + 0o65), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\061' + chr(0b110101) + chr(51), 0b1000), nzTpIcepk0o8(chr(48) + chr(5515 - 5404) + chr(0b100 + 0o57) + chr(0b110000) + chr(0b100010 + 0o21), 0b1000), nzTpIcepk0o8(chr(0b100111 + 0o11) + chr(11747 - 11636) + '\063' + chr(0b110110) + chr(0b110000), 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(0b11010 + 0o30) + chr(51) + '\063', ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + '\x30', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x32' + chr(0b110101) + chr(0b110011), 0b1000), nzTpIcepk0o8('\060' + chr(0b1000 + 0o147) + chr(54) + '\x36', 15412 - 15404), nzTpIcepk0o8(chr(0b110000) + chr(0b101100 + 0o103) + '\x31' + '\065' + chr(0b101 + 0o62), 0b1000), nzTpIcepk0o8(chr(0b101100 + 0o4) + chr(8175 - 8064) + chr(50) + '\061' + chr(0b100110 + 0o13), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1011001 + 0o26) + chr(0b110010) + '\063' + chr(859 - 805), 16650 - 16642), nzTpIcepk0o8(chr(48) + chr(12215 - 12104) + chr(2581 - 2530) + chr(0b1111 + 0o44) + chr(0b100 + 0o54), 16584 - 16576), nzTpIcepk0o8(chr(134 - 86) + '\157' + chr(0b1011 + 0o46) + chr(0b110110) + chr(54), 45558 - 45550), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110010) + chr(1375 - 1327) + chr(52), 0b1000), nzTpIcepk0o8('\x30' + chr(2303 - 2192) + chr(0b10110 + 0o37) + '\x36', 54883 - 54875), nzTpIcepk0o8(chr(0b110000) + chr(11460 - 11349) + chr(49) + chr(52), 18205 - 18197), nzTpIcepk0o8('\x30' + chr(0b1010000 + 0o37) + chr(50) + '\067' + chr(2591 - 2539), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\061' + chr(0b110101) + chr(0b110011), 8), nzTpIcepk0o8(chr(2068 - 2020) + chr(0b10 + 0o155) + chr(0b110001) + chr(50) + chr(0b1011 + 0o46), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(2731 - 2620) + chr(0b11 + 0o60) + chr(0b11011 + 0o31) + '\x30', ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(894 - 845) + chr(260 - 212) + chr(0b110000), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b1011 + 0o47) + chr(0b100000 + 0o26) + chr(1930 - 1877), 9220 - 9212), nzTpIcepk0o8('\x30' + chr(111) + chr(0b10001 + 0o40) + chr(49) + '\x31', 0o10), nzTpIcepk0o8(chr(1342 - 1294) + chr(111) + chr(0b110001) + chr(0b10100 + 0o37) + chr(53), 9024 - 9016), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110001) + chr(0b110111) + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(481 - 433) + '\157' + chr(1147 - 1098) + chr(0b10011 + 0o44) + chr(0b11100 + 0o30), 0b1000), nzTpIcepk0o8(chr(444 - 396) + chr(0b111 + 0o150) + '\x31' + '\065' + chr(54), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + '\x31' + chr(0b100010 + 0o17), 24846 - 24838), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b100000 + 0o21), 41049 - 41041), nzTpIcepk0o8(chr(48) + chr(111) + '\x31' + chr(2027 - 1977) + chr(0b101010 + 0o13), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(4211 - 4100) + '\061' + '\061', 8), nzTpIcepk0o8(chr(635 - 587) + chr(111) + '\061' + chr(51) + '\x31', 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + '\061' + chr(2271 - 2219) + '\067', 34227 - 34219), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b101010 + 0o10) + chr(0b101111 + 0o6), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110001) + '\x37' + '\066', 31793 - 31785)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(830 - 782) + chr(0b1101111) + chr(53) + chr(0b111 + 0o51), 52112 - 52104)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'l'), '\x64' + chr(0b1100101) + '\143' + chr(3819 - 3708) + '\144' + chr(0b1100101))(chr(117) + chr(0b1110100) + '\x66' + chr(459 - 414) + '\x38') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def ZD2Lr269ntjx(hXMPsSrOQzbh, FxZHtXEolYsL, ecbIicWlHedY):
VBmWpDLrzj7n = aHUqKstZLeS6.path.Y4yM9BcfTCNq(hXMPsSrOQzbh.config.binary_cache, FxZHtXEolYsL)
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'%|\xa4\xeeX\xa3\x04\xf5\xa5\xf6E\xf1'), '\x64' + chr(0b1100101) + chr(0b1011110 + 0o5) + chr(111) + '\x64' + '\x65')(chr(117) + chr(0b1010011 + 0o41) + chr(0b11101 + 0o111) + '\x2d' + chr(56)))(roI3spqORKae(ES5oEprVxulp(b'\x11I\xf2\xc6\x08\xa9\x0c\xe3\x94\xf2s\xdfD\x06\xeb\xeb\xac\x1f\xeb@,\xdd\x192\x88)\xc3,}\x10\x12Nen6h5Gv\x1f!U\xf8\x8eA\xe2\x18'), chr(100) + '\145' + chr(8563 - 8464) + chr(111) + chr(100) + chr(7518 - 7417))(chr(524 - 407) + '\164' + '\146' + chr(45) + chr(2491 - 2435)), VBmWpDLrzj7n)
hpVp_0fEg8N1(roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'3H\xa8\xd2\x12\x96\x07\x84\xa3\xd7f\xc8'), chr(0b1001101 + 0o27) + '\145' + chr(0b100101 + 0o76) + '\157' + chr(0b11010 + 0o112) + '\x65')(chr(0b1101111 + 0o6) + chr(7442 - 7326) + chr(8206 - 8104) + chr(0b101101) + chr(0b100000 + 0o30)))(VBmWpDLrzj7n))
with TQzkL7DizE8g(VBmWpDLrzj7n) as dbC_M0gPCOLc:
with DnU3Rq9N5ala(dbC_M0gPCOLc, roI3spqORKae(ES5oEprVxulp(b'5_'), chr(0b1100100) + chr(2663 - 2562) + chr(0b1001011 + 0o30) + '\x6f' + chr(0b1001010 + 0o32) + chr(101))('\x75' + '\164' + '\x66' + '\055' + '\x38')) as dcU53jz8SSB7:
roI3spqORKae(zcgTfC_NSHAo, roI3spqORKae(ES5oEprVxulp(b'!R\xed\xcd\x07\xae\x07\xa6\x9f\xf9j'), chr(100) + chr(2707 - 2606) + '\143' + '\157' + '\144' + chr(0b1100101))('\x75' + chr(4256 - 4140) + chr(0b1100110) + chr(0b101011 + 0o2) + chr(56)))(ecbIicWlHedY, dcU53jz8SSB7)
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'%|\xa4\xeeX\xa3\x04\xf5\xa5\xf6E\xf1'), chr(0b1100100) + chr(0b1100101) + chr(0b1100011) + '\x6f' + '\x64' + '\x65')(chr(117) + chr(0b110011 + 0o101) + '\146' + chr(45) + chr(56)))(roI3spqORKae(ES5oEprVxulp(b'\x04T\xf3\xdd\x12\xaf\x0e\xa7\xd0\xf8a\xc8^\x06\xe7\xf9\xf8\x12\xed]x\xce\x023\x954\xdc&3Y\x1d\x1cji<\x7f<G|\x10bQ\xf2\xd7\x00\xabK\xa0\x91\xf8h\xce\x18'), '\144' + chr(0b100000 + 0o105) + chr(3093 - 2994) + chr(6513 - 6402) + '\144' + '\145')(chr(0b1000001 + 0o64) + chr(7936 - 7820) + '\146' + chr(0b101101) + '\070')) |
fle/django-multi-email-field | multi_email_field/forms.py | MultiEmailField.to_python | def to_python(self, value):
"Normalize data to a list of strings."
# Return None if no input was given.
if not value:
return []
return [v.strip() for v in value.splitlines() if v != ""] | python | def to_python(self, value):
"Normalize data to a list of strings."
# Return None if no input was given.
if not value:
return []
return [v.strip() for v in value.splitlines() if v != ""] | [
"def",
"to_python",
"(",
"self",
",",
"value",
")",
":",
"# Return None if no input was given.",
"if",
"not",
"value",
":",
"return",
"[",
"]",
"return",
"[",
"v",
".",
"strip",
"(",
")",
"for",
"v",
"in",
"value",
".",
"splitlines",
"(",
")",
"if",
"v",
"!=",
"\"\"",
"]"
] | Normalize data to a list of strings. | [
"Normalize",
"data",
"to",
"a",
"list",
"of",
"strings",
"."
] | 5488ab91053b8f7ed6c36a07c28d56efe85b1daf | https://github.com/fle/django-multi-email-field/blob/5488ab91053b8f7ed6c36a07c28d56efe85b1daf/multi_email_field/forms.py#L14-L19 | train | Normalize data to a list of strings. | 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,QhZRiM1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8DLjA_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(0b10110 + 0o35) + '\063' + chr(0b100110 + 0o16), 0b1000), nzTpIcepk0o8('\060' + '\157' + chr(0b1 + 0o61) + chr(2200 - 2151) + chr(0b110111), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x31' + '\x37', 0o10), nzTpIcepk0o8('\060' + chr(7351 - 7240) + '\062' + '\066' + '\x35', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1000010 + 0o55) + '\062' + '\x33' + chr(0b110001), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(55) + '\x31', 0o10), nzTpIcepk0o8(chr(1694 - 1646) + chr(111) + chr(51) + chr(0b110011) + chr(0b110100), 8), nzTpIcepk0o8('\x30' + '\157' + '\063' + chr(337 - 288), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(280 - 169) + '\x33' + chr(0b101111 + 0o5) + '\x33', ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110101) + chr(0b10010 + 0o36), 45847 - 45839), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\062' + '\x35' + '\062', 11145 - 11137), nzTpIcepk0o8(chr(0b1100 + 0o44) + '\x6f' + chr(50) + chr(706 - 658) + chr(50), 48026 - 48018), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x32' + '\062' + '\x31', 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110100 + 0o3) + chr(52), ord("\x08")), nzTpIcepk0o8(chr(2256 - 2208) + chr(0b1101111) + '\x32' + chr(48) + chr(54), 0o10), nzTpIcepk0o8(chr(0b100000 + 0o20) + '\x6f' + chr(0b110110) + chr(0b110100), 0o10), nzTpIcepk0o8('\060' + chr(111) + '\x33' + chr(882 - 832), 0b1000), nzTpIcepk0o8(chr(2239 - 2191) + chr(10836 - 10725) + chr(0b11001 + 0o33) + chr(0b101110 + 0o10), 0b1000), nzTpIcepk0o8('\060' + chr(6210 - 6099) + '\x32' + chr(984 - 930) + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(1460 - 1412) + chr(111) + '\061' + chr(0b11111 + 0o30) + '\x36', 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(49) + chr(0b110110) + chr(0b110111), ord("\x08")), nzTpIcepk0o8('\060' + chr(1091 - 980) + chr(0b110010) + chr(1439 - 1388), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110011) + chr(151 - 98) + chr(0b100101 + 0o21), 0o10), nzTpIcepk0o8(chr(0b100011 + 0o15) + chr(0b1101111) + chr(0b110011) + '\x34' + chr(51), 8), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b1001 + 0o52) + '\x32' + chr(48), 0o10), nzTpIcepk0o8(chr(0b101101 + 0o3) + '\157' + '\062' + chr(53) + '\063', 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110001) + chr(0b110011) + '\x36', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(1900 - 1789) + chr(0b1000 + 0o55) + chr(0b110111), 0o10), nzTpIcepk0o8(chr(516 - 468) + chr(111) + '\062' + chr(0b100101 + 0o20) + '\x36', 16594 - 16586), nzTpIcepk0o8(chr(0b10 + 0o56) + chr(0b1101111) + '\062' + chr(1304 - 1251) + '\062', 8), nzTpIcepk0o8(chr(0b110000) + chr(11736 - 11625) + '\x32' + '\x33' + chr(0b110010 + 0o1), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(1914 - 1865) + '\060' + chr(0b10011 + 0o35), 0b1000), nzTpIcepk0o8('\060' + chr(0b1001 + 0o146) + '\062' + '\x31' + chr(0b110110), 60488 - 60480), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b101011 + 0o6) + '\062' + chr(0b101000 + 0o15), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(1172 - 1121) + chr(0b110110) + chr(971 - 920), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b10011 + 0o40) + chr(51) + '\x37', 0o10), nzTpIcepk0o8('\x30' + chr(0b100 + 0o153) + chr(50) + '\x34' + chr(0b11 + 0o55), 720 - 712), nzTpIcepk0o8(chr(48) + chr(111) + chr(1402 - 1353) + chr(0b110001) + chr(1827 - 1774), 0o10), nzTpIcepk0o8(chr(0b100011 + 0o15) + chr(0b1101111) + chr(1055 - 1006) + chr(50) + '\x33', ord("\x08")), nzTpIcepk0o8(chr(1002 - 954) + chr(6472 - 6361) + chr(0b110010) + chr(49) + chr(53), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + '\x6f' + '\065' + '\x30', 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xf2'), '\x64' + '\145' + '\143' + chr(111) + '\x64' + chr(0b101110 + 0o67))(chr(0b1110101) + '\x74' + '\146' + chr(0b101101) + chr(679 - 623)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def VapMw8LQ4cQ2(hXMPsSrOQzbh, uV9iBiw0y_Mp):
if not uV9iBiw0y_Mp:
return []
return [roI3spqORKae(r7AA1pbLjb44, roI3spqORKae(ES5oEprVxulp(b'\xb7\xebF\xf1\xebZ\xabC\xb7k\xd9\xb7'), chr(100) + chr(101) + chr(0b111101 + 0o46) + '\157' + chr(0b1001110 + 0o26) + chr(5546 - 5445))(chr(117) + chr(0b1110100) + chr(0b100 + 0o142) + chr(45) + '\x38'))() for r7AA1pbLjb44 in roI3spqORKae(uV9iBiw0y_Mp, roI3spqORKae(ES5oEprVxulp(b'\xaf\xffc\xdc\xedU\xb5w\x86['), chr(100) + '\x65' + chr(0b1100011) + '\157' + chr(0b1011 + 0o131) + '\x65')(chr(117) + '\164' + '\x66' + '\x2d' + chr(765 - 709)))() if r7AA1pbLjb44 != roI3spqORKae(ES5oEprVxulp(b''), chr(100) + chr(101) + '\143' + chr(111) + chr(0b111010 + 0o52) + chr(0b1010011 + 0o22))(chr(0b1110101) + chr(0b1110001 + 0o3) + chr(102) + chr(624 - 579) + chr(0b111000))] |
fle/django-multi-email-field | multi_email_field/forms.py | MultiEmailField.validate | def validate(self, value):
"Check if value consists only of valid emails."
# Use the parent's handling of required fields, etc.
super(MultiEmailField, self).validate(value)
try:
for email in value:
validate_email(email)
except ValidationError:
raise ValidationError(self.message, code=self.code) | python | def validate(self, value):
"Check if value consists only of valid emails."
# Use the parent's handling of required fields, etc.
super(MultiEmailField, self).validate(value)
try:
for email in value:
validate_email(email)
except ValidationError:
raise ValidationError(self.message, code=self.code) | [
"def",
"validate",
"(",
"self",
",",
"value",
")",
":",
"# Use the parent's handling of required fields, etc.",
"super",
"(",
"MultiEmailField",
",",
"self",
")",
".",
"validate",
"(",
"value",
")",
"try",
":",
"for",
"email",
"in",
"value",
":",
"validate_email",
"(",
"email",
")",
"except",
"ValidationError",
":",
"raise",
"ValidationError",
"(",
"self",
".",
"message",
",",
"code",
"=",
"self",
".",
"code",
")"
] | Check if value consists only of valid emails. | [
"Check",
"if",
"value",
"consists",
"only",
"of",
"valid",
"emails",
"."
] | 5488ab91053b8f7ed6c36a07c28d56efe85b1daf | https://github.com/fle/django-multi-email-field/blob/5488ab91053b8f7ed6c36a07c28d56efe85b1daf/multi_email_field/forms.py#L21-L30 | train | Check if value consists only of valid emails. | GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5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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(0b101011 + 0o5) + chr(7577 - 7466) + chr(0b10101 + 0o36) + '\062' + chr(51), 59660 - 59652), nzTpIcepk0o8('\x30' + chr(111) + chr(2239 - 2184) + '\065', 44123 - 44115), nzTpIcepk0o8(chr(0b100010 + 0o16) + chr(0b1100010 + 0o15) + chr(50) + chr(0b110011) + chr(0b10010 + 0o45), 0o10), nzTpIcepk0o8('\x30' + '\157' + '\063' + '\065' + '\067', ord("\x08")), nzTpIcepk0o8(chr(1074 - 1026) + chr(0b1101111) + chr(0b110010) + chr(0b10001 + 0o45) + chr(1887 - 1839), 0o10), nzTpIcepk0o8(chr(1564 - 1516) + chr(111) + chr(0b110010) + chr(0b110000 + 0o5) + chr(1377 - 1328), ord("\x08")), nzTpIcepk0o8(chr(0b11110 + 0o22) + chr(111) + '\062' + chr(543 - 495) + '\x34', 48969 - 48961), nzTpIcepk0o8(chr(48) + chr(7386 - 7275) + chr(1982 - 1931) + chr(2051 - 2001) + '\x36', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b0 + 0o63) + chr(0b110100) + chr(136 - 83), 0o10), nzTpIcepk0o8(chr(48) + chr(4810 - 4699) + chr(969 - 920) + chr(0b110110) + chr(55), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(0b100100 + 0o16) + chr(0b110010) + '\064', 46075 - 46067), nzTpIcepk0o8(chr(2180 - 2132) + chr(8458 - 8347) + '\063' + chr(0b110110) + chr(0b110111), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(4788 - 4677) + '\x31' + '\062' + chr(0b100 + 0o55), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b10101 + 0o132) + chr(598 - 547) + chr(50) + '\x33', 8), nzTpIcepk0o8('\060' + chr(0b1101111) + '\062' + chr(54) + chr(0b100011 + 0o16), 0b1000), nzTpIcepk0o8(chr(1345 - 1297) + chr(0b1101111) + chr(50) + chr(0b1011 + 0o51) + chr(2063 - 2012), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(1733 - 1684) + '\066' + '\x36', 0b1000), nzTpIcepk0o8(chr(0b101000 + 0o10) + '\157' + chr(0b110010) + '\x33' + '\x31', ord("\x08")), nzTpIcepk0o8(chr(628 - 580) + '\157' + chr(1051 - 1002) + chr(2344 - 2293) + '\x31', 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(51) + '\x37' + chr(0b110111), 23783 - 23775), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b10100 + 0o36) + chr(1049 - 994) + chr(527 - 475), 40447 - 40439), nzTpIcepk0o8(chr(0b110000) + '\157' + '\067' + chr(837 - 789), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(1695 - 1644) + '\067' + chr(2073 - 2020), 0b1000), nzTpIcepk0o8(chr(0b1100 + 0o44) + '\157' + chr(1149 - 1100) + '\062' + chr(1311 - 1261), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1000000 + 0o57) + '\062' + '\x36' + chr(2238 - 2188), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + '\063' + chr(0b101 + 0o53) + chr(0b110011), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(2355 - 2302) + '\x30', 0b1000), nzTpIcepk0o8(chr(0b11101 + 0o23) + chr(111) + chr(2182 - 2133) + chr(0b110010) + chr(0b1010 + 0o53), 55397 - 55389), nzTpIcepk0o8(chr(615 - 567) + '\x6f' + chr(52) + '\062', 0b1000), nzTpIcepk0o8(chr(1377 - 1329) + chr(0b110001 + 0o76) + chr(0b10 + 0o61) + chr(0b110000 + 0o7) + '\x37', 8), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(468 - 418) + '\x36' + chr(1460 - 1411), 8), nzTpIcepk0o8('\x30' + chr(0b10110 + 0o131) + '\063' + '\067' + chr(0b100001 + 0o26), 8), nzTpIcepk0o8(chr(0b100 + 0o54) + '\x6f' + '\x31' + chr(0b110110) + chr(0b110010), ord("\x08")), nzTpIcepk0o8(chr(1519 - 1471) + '\157' + chr(0b110011) + chr(0b10000 + 0o40) + chr(1054 - 1005), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110001) + chr(53) + '\x34', 35940 - 35932), nzTpIcepk0o8(chr(1967 - 1919) + '\157' + chr(1857 - 1807) + chr(1642 - 1594) + chr(49), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(51) + chr(0b10101 + 0o40) + chr(1457 - 1404), 0o10), nzTpIcepk0o8('\060' + chr(0b100110 + 0o111) + chr(83 - 34) + chr(0b101001 + 0o12) + chr(0b110011), 0o10), nzTpIcepk0o8('\x30' + chr(0b1110 + 0o141) + chr(0b110010) + chr(0b110001) + '\x37', ord("\x08")), nzTpIcepk0o8(chr(0b101010 + 0o6) + '\157' + chr(51) + '\063' + chr(52), 20342 - 20334)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(1784 - 1736) + chr(111) + chr(0b110101) + '\060', 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xfd'), chr(0b1100100) + '\145' + chr(99) + '\x6f' + '\144' + '\x65')(chr(0b1 + 0o164) + '\164' + chr(0b1100110) + chr(0b101101) + chr(0b111000)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def G40dcSccAFaB(hXMPsSrOQzbh, uV9iBiw0y_Mp):
roI3spqORKae(CO2YiXoIEhJY(C8jI25DY8ccB, hXMPsSrOQzbh), roI3spqORKae(ES5oEprVxulp(b'\x94\t\xaf\x8b\xd3\xfa\xe7\xb5\xa41\xf5\xb5'), chr(0b1100100) + chr(0b1011000 + 0o15) + '\x63' + chr(0b1011101 + 0o22) + '\x64' + chr(101))(chr(13105 - 12988) + chr(4018 - 3902) + chr(0b1100110) + '\x2d' + chr(0b110010 + 0o6)))(uV9iBiw0y_Mp)
try:
for BhwKvDaXtiJh in uV9iBiw0y_Mp:
NsHARGzPaRhE(BhwKvDaXtiJh)
except NvSA9vIojSzD:
raise NvSA9vIojSzD(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x95V\xec\xa1\xfd\xe1\xb5\xa1\xba\x19\xe7\xc1'), chr(0b11111 + 0o105) + '\x65' + chr(99) + chr(0b1101111) + chr(0b1000011 + 0o41) + '\145')(chr(10113 - 9996) + '\164' + chr(102) + chr(0b10000 + 0o35) + chr(0b111000))), code=roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x9ew\xda\xa8\xd7\xdf\xcf\xe5\x8b\x19\xd1\xce'), chr(1374 - 1274) + chr(1963 - 1862) + chr(99) + '\157' + chr(9912 - 9812) + chr(101))(chr(0b1001010 + 0o53) + '\164' + chr(0b1100110) + '\x2d' + '\070'))) |
fle/django-multi-email-field | multi_email_field/widgets.py | MultiEmailWidget.prep_value | def prep_value(self, value):
""" Prepare value before effectively render widget """
if value in MULTI_EMAIL_FIELD_EMPTY_VALUES:
return ""
elif isinstance(value, six.string_types):
return value
elif isinstance(value, list):
return "\n".join(value)
raise ValidationError('Invalid format.') | python | def prep_value(self, value):
""" Prepare value before effectively render widget """
if value in MULTI_EMAIL_FIELD_EMPTY_VALUES:
return ""
elif isinstance(value, six.string_types):
return value
elif isinstance(value, list):
return "\n".join(value)
raise ValidationError('Invalid format.') | [
"def",
"prep_value",
"(",
"self",
",",
"value",
")",
":",
"if",
"value",
"in",
"MULTI_EMAIL_FIELD_EMPTY_VALUES",
":",
"return",
"\"\"",
"elif",
"isinstance",
"(",
"value",
",",
"six",
".",
"string_types",
")",
":",
"return",
"value",
"elif",
"isinstance",
"(",
"value",
",",
"list",
")",
":",
"return",
"\"\\n\"",
".",
"join",
"(",
"value",
")",
"raise",
"ValidationError",
"(",
"'Invalid format.'",
")"
] | Prepare value before effectively render widget | [
"Prepare",
"value",
"before",
"effectively",
"render",
"widget"
] | 5488ab91053b8f7ed6c36a07c28d56efe85b1daf | https://github.com/fle/django-multi-email-field/blob/5488ab91053b8f7ed6c36a07c28d56efe85b1daf/multi_email_field/widgets.py#L14-L22 | train | Prepare value before effectively render widget | GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdI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,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(0b1101101 + 0o2) + '\061' + chr(50) + chr(2412 - 2361), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + '\x31' + '\x34' + chr(0b110000), 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(0b110010) + '\064' + chr(0b111 + 0o60), 9732 - 9724), nzTpIcepk0o8(chr(48) + chr(3533 - 3422) + chr(1078 - 1026), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + '\x32' + chr(0b110100) + chr(1204 - 1150), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(50) + chr(0b110101) + chr(0b11001 + 0o35), 32309 - 32301), nzTpIcepk0o8(chr(48) + chr(0b1011000 + 0o27) + '\062' + chr(0b101111 + 0o7) + chr(0b110110), 2327 - 2319), nzTpIcepk0o8(chr(48) + '\157' + chr(0b100000 + 0o23) + '\061' + chr(50), 0o10), nzTpIcepk0o8(chr(2152 - 2104) + '\157' + '\x32' + chr(51) + chr(0b110101), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(11503 - 11392) + '\063' + '\x36' + chr(51), ord("\x08")), nzTpIcepk0o8(chr(1258 - 1210) + chr(7977 - 7866) + chr(2127 - 2077) + chr(0b110000) + chr(51), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1010001 + 0o36) + '\x32' + chr(0b1100 + 0o47) + '\060', 0b1000), nzTpIcepk0o8('\x30' + chr(0b100101 + 0o112) + chr(0b110001) + chr(764 - 713), 10477 - 10469), nzTpIcepk0o8(chr(788 - 740) + '\157' + '\x33' + '\x36' + chr(2215 - 2166), 0o10), nzTpIcepk0o8('\x30' + chr(3778 - 3667) + chr(293 - 243) + '\x31' + chr(0b110101), ord("\x08")), nzTpIcepk0o8('\060' + chr(4780 - 4669) + chr(0b1 + 0o62) + chr(0b110011) + '\x33', 0b1000), nzTpIcepk0o8(chr(1315 - 1267) + '\x6f' + '\061' + chr(0b101101 + 0o5) + chr(0b10110 + 0o32), 0b1000), nzTpIcepk0o8(chr(0b0 + 0o60) + chr(0b1101111) + '\062' + chr(0b1000 + 0o54) + '\066', 8), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110011), 0o10), nzTpIcepk0o8(chr(0b100001 + 0o17) + chr(0b111010 + 0o65) + '\062' + '\x31' + chr(0b110111), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + '\x33' + '\061' + chr(55), 0b1000), nzTpIcepk0o8(chr(1052 - 1004) + '\157' + chr(51) + chr(0b1110 + 0o51) + chr(545 - 495), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + '\063' + chr(52) + chr(54), 0o10), nzTpIcepk0o8(chr(0b101011 + 0o5) + '\x6f' + chr(51) + chr(0b101100 + 0o7) + '\x33', 8), nzTpIcepk0o8('\x30' + chr(10598 - 10487) + '\x32' + chr(0b10010 + 0o42) + chr(0b110110 + 0o0), 8), nzTpIcepk0o8('\060' + chr(0b1000110 + 0o51) + chr(49) + '\x37' + chr(0b1011 + 0o50), 61344 - 61336), nzTpIcepk0o8(chr(0b100111 + 0o11) + '\157' + '\062' + chr(48) + chr(1891 - 1842), 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + '\062' + chr(0b110000) + chr(1390 - 1342), 15858 - 15850), nzTpIcepk0o8(chr(1637 - 1589) + '\x6f' + chr(2445 - 2394) + chr(48) + chr(0b11 + 0o61), 35206 - 35198), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(1007 - 957) + chr(0b11000 + 0o30), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + '\x32' + chr(0b110111) + '\x36', 30496 - 30488), nzTpIcepk0o8('\x30' + '\x6f' + '\062' + chr(52) + '\x35', 49433 - 49425), nzTpIcepk0o8('\060' + '\x6f' + '\x33' + chr(667 - 617) + chr(49), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\067' + chr(0b110100), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(50) + '\x31' + chr(0b1111 + 0o41), ord("\x08")), nzTpIcepk0o8(chr(0b101001 + 0o7) + chr(111) + chr(0b10110 + 0o33) + chr(49) + chr(51), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b100100 + 0o15) + '\x33' + '\065', 0o10), nzTpIcepk0o8('\x30' + '\157' + '\x33' + chr(0b100101 + 0o14) + '\x32', 8), nzTpIcepk0o8('\x30' + chr(2752 - 2641) + chr(2099 - 2050) + chr(0b10111 + 0o34) + chr(786 - 733), 8), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(49) + chr(2847 - 2792) + chr(0b110011), 8)][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + chr(0b0 + 0o157) + '\x35' + '\x30', ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'}'), chr(100) + '\145' + chr(99) + chr(0b1101111) + chr(100) + '\x65')(chr(3068 - 2951) + '\164' + chr(0b1100110) + '\x2d' + chr(835 - 779)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def S2R4o_1QWMC5(hXMPsSrOQzbh, uV9iBiw0y_Mp):
if uV9iBiw0y_Mp in DDiPufk1_7sA:
return roI3spqORKae(ES5oEprVxulp(b''), chr(0b1100100) + chr(10081 - 9980) + chr(99) + chr(0b1101111) + chr(624 - 524) + chr(0b10100 + 0o121))(chr(117) + '\164' + chr(102) + chr(1167 - 1122) + chr(2914 - 2858))
elif suIjIS24Zkqw(uV9iBiw0y_Mp, roI3spqORKae(YVS_F7_wWn_o, roI3spqORKae(ES5oEprVxulp(b' \x14\xd5m\xc8\xc9\xe9\xbe\xe4\x83\xe6\xeb'), '\x64' + chr(5587 - 5486) + chr(0b1100011) + chr(0b1101111) + '\x64' + chr(101))('\165' + chr(0b110 + 0o156) + '\146' + chr(0b11011 + 0o22) + '\x38'))):
return uV9iBiw0y_Mp
elif suIjIS24Zkqw(uV9iBiw0y_Mp, H4NoA26ON7iG):
return roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'Y'), chr(0b1100100) + '\145' + chr(9757 - 9658) + chr(111) + chr(0b1100100) + chr(0b1100101))(chr(117) + chr(11440 - 11324) + chr(1161 - 1059) + chr(45) + chr(0b111000)), roI3spqORKae(ES5oEprVxulp(b'\nT\xdeI\x9f\xec\xd5\xac\xc9\xb0\xcd\xe9'), chr(0b110100 + 0o60) + chr(101) + '\143' + '\x6f' + chr(100) + '\x65')(chr(0b1110101) + chr(0b1001100 + 0o50) + '\x66' + '\055' + '\x38'))(uV9iBiw0y_Mp)
raise NvSA9vIojSzD(roI3spqORKae(ES5oEprVxulp(b'\x1a\x0e\xd1e\xca\xc7\xd2\xea\xfb\x9c\xf1\xf5j\x85\xa3'), chr(100) + chr(0b1100101) + chr(99) + chr(0b1101111) + '\x64' + chr(0b1100101))('\x75' + '\x74' + chr(0b1100110) + chr(45) + '\070')) |
ElementAI/greensim | greensim/__init__.py | pause | def pause() -> None:
"""
Pauses the current process indefinitely -- it will require another process to `resume()` it. When this resumption
happens, the process returns from this function.
"""
if _logger is not None:
_log(INFO, "Process", local.name, "pause")
Process.current().rsim()._gr.switch() | python | def pause() -> None:
"""
Pauses the current process indefinitely -- it will require another process to `resume()` it. When this resumption
happens, the process returns from this function.
"""
if _logger is not None:
_log(INFO, "Process", local.name, "pause")
Process.current().rsim()._gr.switch() | [
"def",
"pause",
"(",
")",
"->",
"None",
":",
"if",
"_logger",
"is",
"not",
"None",
":",
"_log",
"(",
"INFO",
",",
"\"Process\"",
",",
"local",
".",
"name",
",",
"\"pause\"",
")",
"Process",
".",
"current",
"(",
")",
".",
"rsim",
"(",
")",
".",
"_gr",
".",
"switch",
"(",
")"
] | Pauses the current process indefinitely -- it will require another process to `resume()` it. When this resumption
happens, the process returns from this function. | [
"Pauses",
"the",
"current",
"process",
"indefinitely",
"--",
"it",
"will",
"require",
"another",
"process",
"to",
"resume",
"()",
"it",
".",
"When",
"this",
"resumption",
"happens",
"the",
"process",
"returns",
"from",
"this",
"function",
"."
] | f160e8b57d69f6ef469f2e991cc07b7721e08a91 | https://github.com/ElementAI/greensim/blob/f160e8b57d69f6ef469f2e991cc07b7721e08a91/greensim/__init__.py#L552-L559 | train | Pauses the current process indefinitely. | GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f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,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(0b110000 + 0o77) + chr(0b101110 + 0o4) + chr(1523 - 1471) + chr(2282 - 2232), 23620 - 23612), nzTpIcepk0o8(chr(48) + '\157' + chr(49) + chr(52) + '\x36', 50383 - 50375), nzTpIcepk0o8(chr(48) + '\157' + chr(2271 - 2220) + chr(0b110000) + chr(0b110100), 4114 - 4106), nzTpIcepk0o8(chr(1651 - 1603) + '\157' + chr(2556 - 2505) + '\066' + '\x37', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1011001 + 0o26) + '\x33' + chr(741 - 692) + chr(54), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(50) + chr(53) + chr(0b110000 + 0o1), 0b1000), nzTpIcepk0o8(chr(1666 - 1618) + '\157' + chr(0b10000 + 0o43) + chr(2456 - 2404) + chr(50), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1000011 + 0o54) + chr(0b110011) + chr(0b110101) + '\x37', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(1842 - 1791) + chr(54) + chr(0b110011 + 0o3), ord("\x08")), nzTpIcepk0o8(chr(0b101110 + 0o2) + '\157' + '\063' + '\066' + '\062', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(1489 - 1378) + chr(0b100110 + 0o13) + chr(669 - 615) + chr(0b110010), ord("\x08")), nzTpIcepk0o8('\x30' + chr(4415 - 4304) + chr(0b100100 + 0o17) + chr(0b11010 + 0o32), 47221 - 47213), nzTpIcepk0o8(chr(1759 - 1711) + chr(8725 - 8614) + chr(50) + '\x32' + '\x30', 0o10), nzTpIcepk0o8(chr(48) + chr(6447 - 6336) + chr(0b101110 + 0o5) + '\x30' + chr(2016 - 1964), 8), nzTpIcepk0o8('\060' + chr(1771 - 1660) + chr(2365 - 2316) + '\x33' + chr(1606 - 1555), 1312 - 1304), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(1535 - 1485) + '\x33' + '\x33', 0b1000), nzTpIcepk0o8(chr(0b100010 + 0o16) + chr(0b100100 + 0o113) + chr(49) + '\x33' + chr(562 - 510), 0o10), nzTpIcepk0o8(chr(0b101 + 0o53) + '\x6f' + chr(51) + chr(0b110100) + chr(931 - 882), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(2366 - 2315) + chr(54) + chr(0b11111 + 0o30), 8), nzTpIcepk0o8(chr(1590 - 1542) + '\x6f' + '\062' + chr(0b110111) + chr(0b100 + 0o63), 0b1000), nzTpIcepk0o8(chr(0b11011 + 0o25) + chr(111) + '\x33' + '\x32' + chr(0b100000 + 0o22), 35516 - 35508), nzTpIcepk0o8(chr(48) + chr(0b10110 + 0o131) + '\x32' + chr(0b110011 + 0o2) + chr(51), 11576 - 11568), nzTpIcepk0o8(chr(1902 - 1854) + chr(0b1001100 + 0o43) + chr(49) + chr(152 - 104) + '\060', 17065 - 17057), nzTpIcepk0o8(chr(0b10101 + 0o33) + chr(1882 - 1771) + '\x33' + '\065' + chr(0b100101 + 0o14), 49514 - 49506), nzTpIcepk0o8(chr(0b1001 + 0o47) + chr(1411 - 1300) + chr(0b110010) + '\x30' + '\x35', 0o10), nzTpIcepk0o8(chr(484 - 436) + '\157' + chr(1727 - 1677) + chr(48) + chr(0b100111 + 0o13), 0o10), nzTpIcepk0o8(chr(593 - 545) + '\157' + '\062' + chr(0b110100) + '\x31', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(637 - 588) + '\060' + '\x30', 8), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b10010 + 0o41) + chr(0b110000) + chr(50), 56570 - 56562), nzTpIcepk0o8('\060' + chr(0b1011100 + 0o23) + chr(0b110011) + chr(0b110100) + '\x32', 8), nzTpIcepk0o8(chr(641 - 593) + chr(0b1101111) + chr(2050 - 2001) + '\067' + '\x37', 0o10), nzTpIcepk0o8(chr(1986 - 1938) + chr(6063 - 5952) + chr(55) + chr(48), 49568 - 49560), nzTpIcepk0o8(chr(0b10100 + 0o34) + chr(0b110010 + 0o75) + '\062' + chr(0b10100 + 0o41) + chr(49), 8), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(50) + '\x34' + '\063', 0o10), nzTpIcepk0o8(chr(0b11101 + 0o23) + chr(0b10111 + 0o130) + chr(0b110011) + '\064' + chr(49), 8), nzTpIcepk0o8(chr(1172 - 1124) + '\157' + '\062' + chr(0b110111) + chr(0b110001 + 0o1), 59693 - 59685), nzTpIcepk0o8(chr(0b110000) + chr(0b1 + 0o156) + chr(54) + chr(1678 - 1628), 0b1000), nzTpIcepk0o8(chr(48) + chr(7718 - 7607) + chr(49) + chr(0b110111) + chr(50), ord("\x08")), nzTpIcepk0o8(chr(0b100 + 0o54) + chr(0b1000 + 0o147) + '\x31' + chr(50) + '\x33', 39191 - 39183), nzTpIcepk0o8('\060' + chr(0b10100 + 0o133) + '\x32' + chr(0b110111) + '\060', 42856 - 42848)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + '\157' + chr(0b10000 + 0o45) + chr(48), 31066 - 31058)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x8c'), '\144' + '\x65' + chr(99) + chr(2884 - 2773) + chr(0b1100100) + chr(101))(chr(8425 - 8308) + chr(12490 - 12374) + chr(0b10001 + 0o125) + chr(400 - 355) + '\x38') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def W8DIze30Tee2() -> None:
if xDaRFG__qcx4 is not None:
vnyQSo3tqW2h(tNK1nzOSYtNR, roI3spqORKae(ES5oEprVxulp(b'\xf2\x14\xab\x94\xab\xda\x91'), chr(0b1100100) + chr(2435 - 2334) + chr(3338 - 3239) + chr(1606 - 1495) + chr(0b1001000 + 0o34) + chr(0b111011 + 0o52))(chr(0b100111 + 0o116) + '\x74' + '\146' + '\055' + chr(1112 - 1056)), roI3spqORKae(Z0opTG2WJcp8, roI3spqORKae(ES5oEprVxulp(b'\xf1*\x92\xb5\xfc\xeb\xb2\xae\xa9\x9f;y'), '\144' + '\145' + chr(0b1010110 + 0o15) + chr(9769 - 9658) + '\x64' + '\x65')(chr(4954 - 4837) + '\x74' + chr(0b111101 + 0o51) + chr(45) + '\070')), roI3spqORKae(ES5oEprVxulp(b'\xd2\x07\xb1\x84\xab'), chr(6592 - 6492) + chr(0b101111 + 0o66) + chr(0b111101 + 0o46) + chr(0b1101111) + chr(0b1001010 + 0o32) + chr(101))(chr(117) + chr(0b1101010 + 0o12) + '\x66' + chr(45) + chr(1956 - 1900)))
roI3spqORKae(bE3SqjreW2iy.current().rsim()._gr, roI3spqORKae(ES5oEprVxulp(b'\xd5\x17\xf7\xce\x99\x91\xa4\xa7\xc3\x9bJI'), '\144' + '\145' + '\143' + '\x6f' + '\x64' + chr(0b1100101))(chr(0b1000101 + 0o60) + chr(116) + chr(0b1100110) + chr(1934 - 1889) + '\070'))() |
ElementAI/greensim | greensim/__init__.py | advance | def advance(delay: float) -> None:
"""
Pauses the current process for the given delay (in simulated time). The process will be resumed when the simulation
has advanced to the moment corresponding to `now() + delay`.
"""
if _logger is not None:
_log(INFO, "Process", local.name, "advance", delay=delay)
curr = Process.current()
rsim = curr.rsim
id_wakeup = rsim()._schedule(delay, curr.switch) # type: ignore
try:
rsim()._gr.switch() # type: ignore
except Interrupt:
rsim()._cancel(id_wakeup) # type: ignore
raise | python | def advance(delay: float) -> None:
"""
Pauses the current process for the given delay (in simulated time). The process will be resumed when the simulation
has advanced to the moment corresponding to `now() + delay`.
"""
if _logger is not None:
_log(INFO, "Process", local.name, "advance", delay=delay)
curr = Process.current()
rsim = curr.rsim
id_wakeup = rsim()._schedule(delay, curr.switch) # type: ignore
try:
rsim()._gr.switch() # type: ignore
except Interrupt:
rsim()._cancel(id_wakeup) # type: ignore
raise | [
"def",
"advance",
"(",
"delay",
":",
"float",
")",
"->",
"None",
":",
"if",
"_logger",
"is",
"not",
"None",
":",
"_log",
"(",
"INFO",
",",
"\"Process\"",
",",
"local",
".",
"name",
",",
"\"advance\"",
",",
"delay",
"=",
"delay",
")",
"curr",
"=",
"Process",
".",
"current",
"(",
")",
"rsim",
"=",
"curr",
".",
"rsim",
"id_wakeup",
"=",
"rsim",
"(",
")",
".",
"_schedule",
"(",
"delay",
",",
"curr",
".",
"switch",
")",
"# type: ignore",
"try",
":",
"rsim",
"(",
")",
".",
"_gr",
".",
"switch",
"(",
")",
"# type: ignore",
"except",
"Interrupt",
":",
"rsim",
"(",
")",
".",
"_cancel",
"(",
"id_wakeup",
")",
"# type: ignore",
"raise"
] | Pauses the current process for the given delay (in simulated time). The process will be resumed when the simulation
has advanced to the moment corresponding to `now() + delay`. | [
"Pauses",
"the",
"current",
"process",
"for",
"the",
"given",
"delay",
"(",
"in",
"simulated",
"time",
")",
".",
"The",
"process",
"will",
"be",
"resumed",
"when",
"the",
"simulation",
"has",
"advanced",
"to",
"the",
"moment",
"corresponding",
"to",
"now",
"()",
"+",
"delay",
"."
] | f160e8b57d69f6ef469f2e991cc07b7721e08a91 | https://github.com/ElementAI/greensim/blob/f160e8b57d69f6ef469f2e991cc07b7721e08a91/greensim/__init__.py#L562-L577 | train | Pauses the current process for the given delay in simulated time. | 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('\060' + chr(0b1101111) + chr(0b110011) + chr(0b110001) + chr(48), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(2169 - 2118) + '\x30' + chr(0b101100 + 0o6), 33426 - 33418), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x37' + chr(0b110110), ord("\x08")), nzTpIcepk0o8(chr(0b11001 + 0o27) + chr(0b1101111) + chr(0b101101 + 0o6) + chr(1875 - 1820) + '\066', 0o10), nzTpIcepk0o8(chr(0b10101 + 0o33) + chr(4233 - 4122) + chr(0b110010) + chr(51), 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(1158 - 1107) + chr(0b101000 + 0o15) + chr(0b110101), 0o10), nzTpIcepk0o8(chr(48) + '\157' + '\062' + chr(50) + chr(1725 - 1671), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x33' + chr(54) + chr(0b110010), 43550 - 43542), nzTpIcepk0o8('\x30' + '\157' + chr(0b11 + 0o57) + chr(0b11001 + 0o31), 0o10), nzTpIcepk0o8('\060' + '\157' + chr(0b101001 + 0o10) + chr(0b10111 + 0o33) + '\065', 61439 - 61431), nzTpIcepk0o8('\x30' + '\x6f' + '\x31' + '\x32' + chr(54), 18157 - 18149), nzTpIcepk0o8('\x30' + chr(9741 - 9630) + chr(0b110010) + '\x35' + chr(2144 - 2090), 6644 - 6636), nzTpIcepk0o8('\x30' + '\157' + chr(468 - 417) + '\x30' + chr(0b10100 + 0o40), 0o10), nzTpIcepk0o8(chr(0b110000 + 0o0) + chr(0b11101 + 0o122) + '\x33' + '\x36' + chr(678 - 624), 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(52) + '\x32', 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b101110 + 0o3) + '\067', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(51) + '\066' + '\065', 44143 - 44135), nzTpIcepk0o8('\x30' + chr(0b10010 + 0o135) + chr(0b110010) + '\064', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101100 + 0o3) + chr(0b110001) + chr(54) + chr(0b110 + 0o61), 63017 - 63009), nzTpIcepk0o8('\060' + '\x6f' + chr(0b100011 + 0o20) + chr(0b101 + 0o55) + chr(910 - 855), 61174 - 61166), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x32' + chr(48) + '\063', 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(49) + chr(1570 - 1518) + '\063', 45671 - 45663), nzTpIcepk0o8('\060' + chr(0b1100111 + 0o10) + chr(0b110001) + chr(0b10001 + 0o46) + '\x34', 0o10), nzTpIcepk0o8('\060' + chr(9396 - 9285) + '\062' + '\x30' + chr(55), 23486 - 23478), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(2429 - 2378) + '\065' + '\066', 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110011) + chr(0b110111) + chr(0b1101 + 0o52), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + '\061' + '\x33' + chr(0b110111), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x31' + chr(0b110101) + chr(0b110101), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110001) + chr(0b101000 + 0o11) + chr(2160 - 2108), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(49) + chr(829 - 777) + chr(0b11011 + 0o27), 0o10), nzTpIcepk0o8('\x30' + chr(10674 - 10563) + chr(0b110010) + '\x34' + chr(1562 - 1511), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110010) + '\067', 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(2009 - 1959) + chr(50) + chr(0b110110), 8), nzTpIcepk0o8(chr(48) + '\x6f' + '\063' + '\x31' + '\x34', 38331 - 38323), nzTpIcepk0o8('\060' + chr(0b1101111) + '\063' + chr(0b110000) + '\x35', ord("\x08")), nzTpIcepk0o8(chr(0b100 + 0o54) + '\157' + '\061' + chr(0b10011 + 0o43) + chr(54), 0b1000), nzTpIcepk0o8('\060' + chr(5759 - 5648) + chr(0b110101), 0b1000), nzTpIcepk0o8(chr(1268 - 1220) + chr(0b1101111) + chr(55) + chr(50), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b110010 + 0o75) + chr(0b101010 + 0o7) + chr(148 - 96) + chr(0b100101 + 0o15), 8), nzTpIcepk0o8('\x30' + chr(111) + '\x33' + '\065' + '\061', 63541 - 63533)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(486 - 433) + '\x30', 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xe6'), chr(0b1011001 + 0o13) + '\145' + chr(0b110110 + 0o55) + chr(8986 - 8875) + '\144' + '\145')('\165' + '\x74' + '\x66' + chr(45) + chr(0b111000)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def _n648RG75cgK(At656iyyS8xP) -> None:
if xDaRFG__qcx4 is not None:
vnyQSo3tqW2h(tNK1nzOSYtNR, roI3spqORKae(ES5oEprVxulp(b'\x98\xb0Q\x9dv\x9e\xe5'), chr(0b1100100) + '\145' + chr(0b1100011) + chr(111) + chr(100) + '\145')(chr(0b100100 + 0o121) + '\x74' + chr(0b1100110) + chr(45) + chr(0b11 + 0o65)), roI3spqORKae(Z0opTG2WJcp8, roI3spqORKae(ES5oEprVxulp(b'\x9b\x8eh\xbc!\xaf\xc6\xb3M8\x1f\xcb'), chr(9915 - 9815) + chr(0b1100101) + '\143' + '\157' + '\x64' + chr(0b1100101))(chr(0b1010010 + 0o43) + chr(116) + chr(1700 - 1598) + chr(991 - 946) + '\070')), roI3spqORKae(ES5oEprVxulp(b'\xa9\xa6H\x9f}\x8e\xf3'), '\144' + '\x65' + chr(99) + chr(0b1101111) + chr(0b1100100) + '\x65')(chr(6182 - 6065) + chr(0b1110100) + chr(0b1100110) + chr(0b11000 + 0o25) + chr(636 - 580)), delay=At656iyyS8xP)
TRcKLkhtHqf1 = bE3SqjreW2iy.btnZMuSDwyyx()
LlihQL3IPD2q = TRcKLkhtHqf1.rsim
FTpmBcfdT4nJ = LlihQL3IPD2q().me16XW5e3Lf1(At656iyyS8xP, TRcKLkhtHqf1.wq39W8FH5i8U)
try:
roI3spqORKae(LlihQL3IPD2q()._gr, roI3spqORKae(ES5oEprVxulp(b"\xbf\xb3\r\xc7D\xd5\xd0\xba'<n\xfb"), chr(100) + chr(0b11 + 0o142) + chr(99) + chr(0b1101111) + chr(0b1100100) + chr(0b100010 + 0o103))(chr(0b10111 + 0o136) + '\164' + chr(0b1100110) + '\055' + chr(0b100010 + 0o26)))()
except fIpwvhWIob9v:
roI3spqORKae(LlihQL3IPD2q(), roI3spqORKae(ES5oEprVxulp(b'\x97\xa1_\x90p\x88\xfa'), chr(0b11110 + 0o106) + chr(0b111011 + 0o52) + '\143' + chr(111) + chr(0b1100100) + chr(6719 - 6618))(chr(5083 - 4966) + '\164' + chr(0b1100110) + '\x2d' + chr(0b111000)))(FTpmBcfdT4nJ)
raise |
ElementAI/greensim | greensim/__init__.py | happens | def happens(intervals: Iterable[float], name: Optional[str] = None) -> Callable:
"""
Decorator used to set up a process that adds a new instance of another process at intervals dictated by the given
sequence (which may be infinite).
Example: the following program runs process named `my_process` 5 times, each time spaced by 2.0 time units.
```
from itertools import repeat
sim = Simulator()
log = []
@happens(repeat(2.0, 5))
def my_process(the_log):
the_log.append(now())
sim.add(my_process, log)
sim.run()
print(str(log)) # Expect: [2.0, 4.0, 6.0, 8.0, 10.0]
```
"""
def hook(event: Callable):
def make_happen(*args_event: Any, **kwargs_event: Any) -> None:
if name is not None:
local.name = cast(str, name)
for interval in intervals:
advance(interval)
add(event, *args_event, **kwargs_event)
return make_happen
return hook | python | def happens(intervals: Iterable[float], name: Optional[str] = None) -> Callable:
"""
Decorator used to set up a process that adds a new instance of another process at intervals dictated by the given
sequence (which may be infinite).
Example: the following program runs process named `my_process` 5 times, each time spaced by 2.0 time units.
```
from itertools import repeat
sim = Simulator()
log = []
@happens(repeat(2.0, 5))
def my_process(the_log):
the_log.append(now())
sim.add(my_process, log)
sim.run()
print(str(log)) # Expect: [2.0, 4.0, 6.0, 8.0, 10.0]
```
"""
def hook(event: Callable):
def make_happen(*args_event: Any, **kwargs_event: Any) -> None:
if name is not None:
local.name = cast(str, name)
for interval in intervals:
advance(interval)
add(event, *args_event, **kwargs_event)
return make_happen
return hook | [
"def",
"happens",
"(",
"intervals",
":",
"Iterable",
"[",
"float",
"]",
",",
"name",
":",
"Optional",
"[",
"str",
"]",
"=",
"None",
")",
"->",
"Callable",
":",
"def",
"hook",
"(",
"event",
":",
"Callable",
")",
":",
"def",
"make_happen",
"(",
"*",
"args_event",
":",
"Any",
",",
"*",
"*",
"kwargs_event",
":",
"Any",
")",
"->",
"None",
":",
"if",
"name",
"is",
"not",
"None",
":",
"local",
".",
"name",
"=",
"cast",
"(",
"str",
",",
"name",
")",
"for",
"interval",
"in",
"intervals",
":",
"advance",
"(",
"interval",
")",
"add",
"(",
"event",
",",
"*",
"args_event",
",",
"*",
"*",
"kwargs_event",
")",
"return",
"make_happen",
"return",
"hook"
] | Decorator used to set up a process that adds a new instance of another process at intervals dictated by the given
sequence (which may be infinite).
Example: the following program runs process named `my_process` 5 times, each time spaced by 2.0 time units.
```
from itertools import repeat
sim = Simulator()
log = []
@happens(repeat(2.0, 5))
def my_process(the_log):
the_log.append(now())
sim.add(my_process, log)
sim.run()
print(str(log)) # Expect: [2.0, 4.0, 6.0, 8.0, 10.0]
``` | [
"Decorator",
"used",
"to",
"set",
"up",
"a",
"process",
"that",
"adds",
"a",
"new",
"instance",
"of",
"another",
"process",
"at",
"intervals",
"dictated",
"by",
"the",
"given",
"sequence",
"(",
"which",
"may",
"be",
"infinite",
")",
"."
] | f160e8b57d69f6ef469f2e991cc07b7721e08a91 | https://github.com/ElementAI/greensim/blob/f160e8b57d69f6ef469f2e991cc07b7721e08a91/greensim/__init__.py#L606-L637 | train | Decorator that returns a function that runs a process at a given set of intervals. | 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,aHx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N96r1,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(421 - 310) + '\x33' + chr(0b110010) + '\063', 0o10), nzTpIcepk0o8(chr(673 - 625) + '\x6f' + '\061' + chr(0b110101), 0o10), nzTpIcepk0o8(chr(665 - 617) + '\x6f' + chr(0b10000 + 0o47), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1011111 + 0o20) + chr(256 - 207) + '\066', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(8304 - 8193) + chr(0b1000 + 0o56), 0o10), nzTpIcepk0o8(chr(301 - 253) + chr(9799 - 9688) + chr(51) + '\x30' + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(655 - 604) + '\062' + chr(54), 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(0b11 + 0o56) + chr(0b101100 + 0o6) + chr(0b1010 + 0o50), 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(1122 - 1071) + chr(0b110011) + chr(0b101001 + 0o7), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(49), 0o10), nzTpIcepk0o8('\x30' + chr(8603 - 8492) + chr(54) + '\063', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\062' + chr(0b11011 + 0o27) + chr(0b101001 + 0o7), 0o10), nzTpIcepk0o8(chr(0b11001 + 0o27) + chr(652 - 541) + chr(1809 - 1760) + '\061' + chr(2658 - 2605), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1001010 + 0o45) + chr(0b110001) + '\063' + '\x30', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1100011 + 0o14) + chr(0b1111 + 0o43) + chr(0b110000) + '\065', 0b1000), nzTpIcepk0o8('\060' + '\157' + chr(511 - 461) + chr(0b1001 + 0o55) + chr(49), 1161 - 1153), nzTpIcepk0o8(chr(0b101 + 0o53) + '\x6f' + chr(0b10111 + 0o32) + chr(0b110110 + 0o0) + chr(819 - 771), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b1111 + 0o44) + chr(50) + chr(258 - 206), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(0b10101 + 0o34) + '\x31', 0b1000), nzTpIcepk0o8(chr(0b100101 + 0o13) + chr(0b1101111) + chr(2184 - 2134) + '\x35' + chr(0b11110 + 0o25), 0o10), nzTpIcepk0o8(chr(1527 - 1479) + '\157' + chr(2310 - 2259) + chr(639 - 587) + chr(53), 29050 - 29042), nzTpIcepk0o8(chr(48) + chr(0b100101 + 0o112) + chr(51) + chr(49) + '\063', 0b1000), nzTpIcepk0o8(chr(1913 - 1865) + chr(111) + '\x33' + chr(0b1000 + 0o50) + chr(49), 8), nzTpIcepk0o8('\060' + '\x6f' + chr(0b1110 + 0o45) + chr(51) + '\064', 0o10), nzTpIcepk0o8(chr(0b101001 + 0o7) + chr(3948 - 3837) + '\061' + chr(51) + chr(0b110001), 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(49) + chr(0b110100) + chr(0b110011), ord("\x08")), nzTpIcepk0o8(chr(0b100110 + 0o12) + chr(111) + '\x33' + chr(0b110001) + chr(0b110000), 21242 - 21234), nzTpIcepk0o8('\x30' + '\x6f' + chr(187 - 137) + chr(358 - 310) + '\x30', 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + '\x33' + chr(124 - 76) + '\063', 33977 - 33969), nzTpIcepk0o8(chr(0b1000 + 0o50) + chr(111) + chr(0b110001) + chr(0b10110 + 0o33) + chr(0b110111), 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(0b100101 + 0o16) + '\x35' + chr(0b110010), 0b1000), nzTpIcepk0o8('\060' + chr(111) + '\063' + chr(0b110101), 44079 - 44071), nzTpIcepk0o8('\060' + '\x6f' + '\x32' + chr(0b10110 + 0o37) + chr(52), 0b1000), nzTpIcepk0o8(chr(0b1010 + 0o46) + chr(0b1101111) + chr(989 - 940) + '\062' + chr(0b110011), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + '\x33' + chr(52) + '\060', 0o10), nzTpIcepk0o8(chr(646 - 598) + chr(0b1101111) + chr(888 - 838) + chr(0b110011) + '\x36', 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + '\061' + '\065' + '\x34', ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(1655 - 1606) + chr(0b101001 + 0o14) + chr(0b101 + 0o54), 0o10), nzTpIcepk0o8('\x30' + chr(0b111001 + 0o66) + chr(0b110010) + chr(0b100100 + 0o15) + '\x36', 0o10), nzTpIcepk0o8(chr(0b1000 + 0o50) + '\x6f' + '\x33' + '\060' + '\063', 8)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b10011 + 0o42) + chr(48), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xfd'), '\x64' + chr(1808 - 1707) + chr(5493 - 5394) + chr(111) + '\144' + '\145')(chr(0b1110101) + '\x74' + chr(0b1100110) + '\055' + '\x38') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def p0CrSadGG6De(eGH9bsCkdK5J, SLVB2BPA_mIe=None) -> vY9OIunT2gYH:
def ZFYg6ImZMjws(D4ybylS07yGH):
def MI7OY7u1JmEz(*r86TU8DHOzr5, **AknslzRGUJaX) -> None:
if SLVB2BPA_mIe is not None:
Z0opTG2WJcp8.SLVB2BPA_mIe = wSl4bAa1dokg(N9zlRy29S1SS, SLVB2BPA_mIe)
for n1CVRUxWAiaX in eGH9bsCkdK5J:
_n648RG75cgK(n1CVRUxWAiaX)
u3QdisIqDfCd(D4ybylS07yGH, *r86TU8DHOzr5, **AknslzRGUJaX)
return MI7OY7u1JmEz
return ZFYg6ImZMjws |
ElementAI/greensim | greensim/__init__.py | tagged | def tagged(*tags: Tags) -> Callable:
global GREENSIM_TAG_ATTRIBUTE
"""
Decorator for adding a label to the process.
These labels are applied to any child Processes produced by event
"""
def hook(event: Callable):
def wrapper(*args, **kwargs):
event(*args, **kwargs)
setattr(wrapper, GREENSIM_TAG_ATTRIBUTE, tags)
return wrapper
return hook | python | def tagged(*tags: Tags) -> Callable:
global GREENSIM_TAG_ATTRIBUTE
"""
Decorator for adding a label to the process.
These labels are applied to any child Processes produced by event
"""
def hook(event: Callable):
def wrapper(*args, **kwargs):
event(*args, **kwargs)
setattr(wrapper, GREENSIM_TAG_ATTRIBUTE, tags)
return wrapper
return hook | [
"def",
"tagged",
"(",
"*",
"tags",
":",
"Tags",
")",
"->",
"Callable",
":",
"global",
"GREENSIM_TAG_ATTRIBUTE",
"def",
"hook",
"(",
"event",
":",
"Callable",
")",
":",
"def",
"wrapper",
"(",
"*",
"args",
",",
"*",
"*",
"kwargs",
")",
":",
"event",
"(",
"*",
"args",
",",
"*",
"*",
"kwargs",
")",
"setattr",
"(",
"wrapper",
",",
"GREENSIM_TAG_ATTRIBUTE",
",",
"tags",
")",
"return",
"wrapper",
"return",
"hook"
] | Decorator for adding a label to the process.
These labels are applied to any child Processes produced by event | [
"Decorator",
"for",
"adding",
"a",
"label",
"to",
"the",
"process",
".",
"These",
"labels",
"are",
"applied",
"to",
"any",
"child",
"Processes",
"produced",
"by",
"event"
] | f160e8b57d69f6ef469f2e991cc07b7721e08a91 | https://github.com/ElementAI/greensim/blob/f160e8b57d69f6ef469f2e991cc07b7721e08a91/greensim/__init__.py#L640-L651 | train | Decorator for adding a label to the process. | 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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,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(49) + chr(87 - 36), 0o10), nzTpIcepk0o8(chr(2165 - 2117) + chr(0b1101111) + '\x37' + '\x32', 0o10), nzTpIcepk0o8(chr(2100 - 2052) + '\157' + chr(49) + chr(0b110011), 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x33' + '\060' + chr(48), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110010) + chr(54) + chr(53), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1011011 + 0o24) + chr(50) + chr(51) + chr(1348 - 1299), ord("\x08")), nzTpIcepk0o8(chr(656 - 608) + '\x6f' + chr(50) + '\x36' + chr(0b110110), 0o10), nzTpIcepk0o8(chr(433 - 385) + '\x6f' + chr(1552 - 1501) + chr(0b110011) + '\061', 34155 - 34147), nzTpIcepk0o8('\x30' + chr(8922 - 8811) + '\x32' + '\060' + chr(0b110111), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b10101 + 0o34) + chr(0b110010) + chr(0b110010), ord("\x08")), nzTpIcepk0o8('\060' + chr(1946 - 1835) + chr(0b11010 + 0o27) + chr(311 - 263) + '\x31', 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(0b110010) + chr(0b110000) + chr(0b1110 + 0o44), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b10110 + 0o131) + chr(50) + chr(49) + '\x35', 0o10), nzTpIcepk0o8(chr(968 - 920) + chr(0b1101111) + '\063' + chr(0b11011 + 0o26) + '\x35', 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(49) + chr(0b11011 + 0o25) + chr(1411 - 1361), 0b1000), nzTpIcepk0o8(chr(1393 - 1345) + chr(2878 - 2767) + chr(50), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b100000 + 0o22) + chr(0b110010) + '\064', 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b100000 + 0o21) + '\064' + '\067', 0b1000), nzTpIcepk0o8(chr(48) + chr(6303 - 6192) + chr(1831 - 1780) + '\x30' + chr(0b100011 + 0o16), 43503 - 43495), nzTpIcepk0o8('\060' + chr(0b1001110 + 0o41) + '\063' + chr(53) + '\061', 20740 - 20732), nzTpIcepk0o8('\x30' + chr(0b1011101 + 0o22) + chr(49) + '\064', 0b1000), nzTpIcepk0o8('\060' + '\x6f' + '\x31' + chr(0b110110) + chr(0b101001 + 0o12), ord("\x08")), nzTpIcepk0o8(chr(0b10100 + 0o34) + '\x6f' + '\063' + chr(0b110110) + chr(2889 - 2835), 12959 - 12951), nzTpIcepk0o8(chr(1900 - 1852) + chr(0b1101111) + '\x34' + chr(0b110101), 28686 - 28678), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110011) + '\063' + chr(0b110100), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(53), ord("\x08")), nzTpIcepk0o8(chr(2194 - 2146) + chr(3324 - 3213) + chr(51) + '\064', ord("\x08")), nzTpIcepk0o8(chr(862 - 814) + chr(0b1101111) + chr(0b110011) + '\x32' + chr(0b1100 + 0o52), 0o10), nzTpIcepk0o8(chr(0b11000 + 0o30) + chr(0b1101111) + '\063' + '\067' + chr(2754 - 2699), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101100 + 0o3) + chr(339 - 290) + chr(735 - 681) + chr(53), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(49) + chr(0b10010 + 0o44) + chr(49), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110001) + chr(0b110001), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b110110 + 0o71) + '\x35' + chr(185 - 137), 0o10), nzTpIcepk0o8(chr(48) + chr(0b110000 + 0o77) + '\x31' + chr(0b110111) + chr(0b110110), 0b1000), nzTpIcepk0o8(chr(0b1100 + 0o44) + chr(111) + chr(0b110010) + '\x37', 36300 - 36292), nzTpIcepk0o8(chr(0b10 + 0o56) + chr(0b1101111) + chr(1545 - 1495) + chr(55) + chr(0b10111 + 0o37), 0o10), nzTpIcepk0o8(chr(1786 - 1738) + chr(111) + chr(0b101101 + 0o5) + '\x30' + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x33' + chr(1425 - 1377) + '\x35', 0b1000), nzTpIcepk0o8(chr(0b11001 + 0o27) + chr(8898 - 8787) + '\061' + '\064' + chr(0b110000), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b10110 + 0o33) + chr(0b10100 + 0o36) + '\x35', 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b10110 + 0o32) + '\157' + chr(0b11100 + 0o31) + '\x30', 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'%'), chr(0b111010 + 0o52) + '\145' + chr(953 - 854) + chr(0b1101111) + chr(0b1000101 + 0o37) + chr(0b1011101 + 0o10))(chr(8074 - 7957) + chr(12324 - 12208) + chr(4575 - 4473) + '\055' + chr(0b111000)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def CFEJDp_F7CPG(*TFpYP2_05oSC) -> vY9OIunT2gYH:
global iz7DNfInEPUc
def ZFYg6ImZMjws(D4ybylS07yGH):
def uN64ftXQVLOv(*eemPYp2vtTSr, **q5n0sHDDTy90):
D4ybylS07yGH(*eemPYp2vtTSr, **q5n0sHDDTy90)
lCf1uzpaIUMv(uN64ftXQVLOv, iz7DNfInEPUc, TFpYP2_05oSC)
return uN64ftXQVLOv
return ZFYg6ImZMjws |
ElementAI/greensim | greensim/__init__.py | select | def select(*signals: Signal, **kwargs) -> List[Signal]:
"""
Allows the current process to wait for multiple concurrent signals. Waits until one of the signals turns on, at
which point this signal is returned.
:param timeout:
If this parameter is not ``None``, it is taken as a delay at the end of which the process times out, and
stops waiting on the set of :py:class:`Signal`s. In such a situation, a :py:class:`Timeout` exception is raised
on the process.
"""
class CleanUp(Interrupt):
pass
timeout = kwargs.get("timeout", None)
if not isinstance(timeout, (float, int, type(None))):
raise ValueError("The timeout keyword parameter can be either None or a number.")
def wait_one(signal: Signal, common: Signal) -> None:
try:
signal.wait()
common.turn_on()
except CleanUp:
pass
# We simply sets up multiple sub-processes respectively waiting for one of the signals. Once one of them has fired,
# the others will all run no-op eventually, so no need for any explicit clean-up.
common = Signal(name=local.name + "-selector").turn_off()
if _logger is not None:
_log(INFO, "select", "select", "select", signals=[sig.name for sig in signals])
procs = []
for signal in signals:
procs.append(add(wait_one, signal, common))
try:
common.wait(timeout)
finally:
for proc in procs: # Clean up the support processes.
proc.interrupt(CleanUp())
return [signal for signal in signals if signal.is_on] | python | def select(*signals: Signal, **kwargs) -> List[Signal]:
"""
Allows the current process to wait for multiple concurrent signals. Waits until one of the signals turns on, at
which point this signal is returned.
:param timeout:
If this parameter is not ``None``, it is taken as a delay at the end of which the process times out, and
stops waiting on the set of :py:class:`Signal`s. In such a situation, a :py:class:`Timeout` exception is raised
on the process.
"""
class CleanUp(Interrupt):
pass
timeout = kwargs.get("timeout", None)
if not isinstance(timeout, (float, int, type(None))):
raise ValueError("The timeout keyword parameter can be either None or a number.")
def wait_one(signal: Signal, common: Signal) -> None:
try:
signal.wait()
common.turn_on()
except CleanUp:
pass
# We simply sets up multiple sub-processes respectively waiting for one of the signals. Once one of them has fired,
# the others will all run no-op eventually, so no need for any explicit clean-up.
common = Signal(name=local.name + "-selector").turn_off()
if _logger is not None:
_log(INFO, "select", "select", "select", signals=[sig.name for sig in signals])
procs = []
for signal in signals:
procs.append(add(wait_one, signal, common))
try:
common.wait(timeout)
finally:
for proc in procs: # Clean up the support processes.
proc.interrupt(CleanUp())
return [signal for signal in signals if signal.is_on] | [
"def",
"select",
"(",
"*",
"signals",
":",
"Signal",
",",
"*",
"*",
"kwargs",
")",
"->",
"List",
"[",
"Signal",
"]",
":",
"class",
"CleanUp",
"(",
"Interrupt",
")",
":",
"pass",
"timeout",
"=",
"kwargs",
".",
"get",
"(",
"\"timeout\"",
",",
"None",
")",
"if",
"not",
"isinstance",
"(",
"timeout",
",",
"(",
"float",
",",
"int",
",",
"type",
"(",
"None",
")",
")",
")",
":",
"raise",
"ValueError",
"(",
"\"The timeout keyword parameter can be either None or a number.\"",
")",
"def",
"wait_one",
"(",
"signal",
":",
"Signal",
",",
"common",
":",
"Signal",
")",
"->",
"None",
":",
"try",
":",
"signal",
".",
"wait",
"(",
")",
"common",
".",
"turn_on",
"(",
")",
"except",
"CleanUp",
":",
"pass",
"# We simply sets up multiple sub-processes respectively waiting for one of the signals. Once one of them has fired,",
"# the others will all run no-op eventually, so no need for any explicit clean-up.",
"common",
"=",
"Signal",
"(",
"name",
"=",
"local",
".",
"name",
"+",
"\"-selector\"",
")",
".",
"turn_off",
"(",
")",
"if",
"_logger",
"is",
"not",
"None",
":",
"_log",
"(",
"INFO",
",",
"\"select\"",
",",
"\"select\"",
",",
"\"select\"",
",",
"signals",
"=",
"[",
"sig",
".",
"name",
"for",
"sig",
"in",
"signals",
"]",
")",
"procs",
"=",
"[",
"]",
"for",
"signal",
"in",
"signals",
":",
"procs",
".",
"append",
"(",
"add",
"(",
"wait_one",
",",
"signal",
",",
"common",
")",
")",
"try",
":",
"common",
".",
"wait",
"(",
"timeout",
")",
"finally",
":",
"for",
"proc",
"in",
"procs",
":",
"# Clean up the support processes.",
"proc",
".",
"interrupt",
"(",
"CleanUp",
"(",
")",
")",
"return",
"[",
"signal",
"for",
"signal",
"in",
"signals",
"if",
"signal",
".",
"is_on",
"]"
] | Allows the current process to wait for multiple concurrent signals. Waits until one of the signals turns on, at
which point this signal is returned.
:param timeout:
If this parameter is not ``None``, it is taken as a delay at the end of which the process times out, and
stops waiting on the set of :py:class:`Signal`s. In such a situation, a :py:class:`Timeout` exception is raised
on the process. | [
"Allows",
"the",
"current",
"process",
"to",
"wait",
"for",
"multiple",
"concurrent",
"signals",
".",
"Waits",
"until",
"one",
"of",
"the",
"signals",
"turns",
"on",
"at",
"which",
"point",
"this",
"signal",
"is",
"returned",
"."
] | f160e8b57d69f6ef469f2e991cc07b7721e08a91 | https://github.com/ElementAI/greensim/blob/f160e8b57d69f6ef469f2e991cc07b7721e08a91/greensim/__init__.py#L834-L873 | train | Allows the current process to wait for multiple concurrent signals. | 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,aFax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9N5ala,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(0b101001 + 0o106) + '\065' + chr(0b11100 + 0o30), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x33' + chr(0b110110) + '\064', 0o10), nzTpIcepk0o8('\x30' + chr(0b1110 + 0o141) + '\x31' + '\062' + chr(81 - 26), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + '\061' + '\x32' + '\061', 31188 - 31180), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b11000 + 0o32) + chr(959 - 911) + chr(0b110100), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(0b10110 + 0o33) + chr(0b0 + 0o63) + '\065', 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b101101 + 0o4) + '\060' + chr(0b101001 + 0o14), ord("\x08")), nzTpIcepk0o8(chr(0b10001 + 0o37) + chr(0b111101 + 0o62) + '\x33' + '\066' + '\x31', 0b1000), nzTpIcepk0o8('\060' + chr(0b1100010 + 0o15) + chr(54) + chr(0b110011), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(50) + chr(0b110011) + chr(0b110101), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b1010 + 0o53) + chr(0b101 + 0o61), ord("\x08")), nzTpIcepk0o8(chr(0b1100 + 0o44) + chr(353 - 242) + '\x32' + chr(55) + chr(398 - 346), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(51) + chr(0b110 + 0o57) + '\063', 0o10), nzTpIcepk0o8(chr(48) + '\157' + '\x36', 12154 - 12146), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110 + 0o54) + '\061' + chr(342 - 288), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b10110 + 0o34) + chr(1845 - 1794) + '\063', 0o10), nzTpIcepk0o8(chr(48) + chr(2989 - 2878) + '\063' + chr(1110 - 1061), 16702 - 16694), nzTpIcepk0o8(chr(2019 - 1971) + chr(0b1101111) + chr(0b110001) + '\066', 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x33' + chr(1650 - 1597) + '\062', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1100110 + 0o11) + '\063' + '\x31' + chr(1563 - 1513), 26552 - 26544), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b100111 + 0o13) + chr(0b10100 + 0o40) + chr(1914 - 1859), 0b1000), nzTpIcepk0o8(chr(0b11100 + 0o24) + '\x6f' + chr(1812 - 1763) + chr(0b100111 + 0o11) + chr(0b110001), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + '\062' + chr(1966 - 1918) + chr(0b110111), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(597 - 542), ord("\x08")), nzTpIcepk0o8(chr(0b101101 + 0o3) + chr(0b1101111) + chr(0b110001) + chr(390 - 339) + '\x36', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b110011 + 0o74) + '\063' + chr(49) + chr(574 - 519), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(0b10 + 0o65) + chr(0b11111 + 0o30), ord("\x08")), nzTpIcepk0o8(chr(0b10 + 0o56) + '\x6f' + chr(50) + '\x35' + '\x32', 15246 - 15238), nzTpIcepk0o8(chr(48) + chr(6396 - 6285) + chr(51) + '\x35', 0b1000), nzTpIcepk0o8('\060' + chr(0b11000 + 0o127) + '\061' + '\x31' + chr(0b11101 + 0o30), 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110001), 0o10), nzTpIcepk0o8(chr(475 - 427) + '\157' + '\063' + '\060' + chr(1769 - 1718), 59564 - 59556), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110001) + chr(0b110001) + chr(0b110101), 8), nzTpIcepk0o8('\060' + chr(11073 - 10962) + '\x31' + chr(0b110111) + '\x34', 13059 - 13051), nzTpIcepk0o8(chr(0b100110 + 0o12) + '\157' + chr(0b110011) + chr(1259 - 1208), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b11 + 0o154) + chr(0b110011), 0b1000), nzTpIcepk0o8(chr(1782 - 1734) + chr(111) + chr(0b110011) + chr(0b110001) + chr(0b100011 + 0o23), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + '\061' + chr(0b110100) + chr(53), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(2201 - 2148) + chr(2466 - 2412), 8), nzTpIcepk0o8(chr(0b100111 + 0o11) + chr(0b1101111) + chr(49) + chr(1717 - 1665) + chr(0b110110), 1180 - 1172)][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + chr(111) + chr(1147 - 1094) + chr(889 - 841), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x02'), chr(6891 - 6791) + '\x65' + chr(0b110101 + 0o56) + '\x6f' + chr(0b110110 + 0o56) + chr(0b1100101))(chr(117) + chr(0b1110100) + '\146' + '\x2d' + '\070') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def ioyOAbFuCaaE(*pOkbSzW18VY5, **q5n0sHDDTy90) -> Ib_tefg0jVuf[bJu1rrs1Zyg6]:
class a4NnnLIFIFTY(fIpwvhWIob9v):
pass
ACACUUFQsMpr = q5n0sHDDTy90.GUKetu4xaGsJ(roI3spqORKae(ES5oEprVxulp(b'X\x9d:4\xeb(1'), chr(100) + chr(0b1100101) + chr(99) + chr(111) + chr(8879 - 8779) + '\x65')(chr(117) + '\x74' + chr(102) + chr(45) + '\070'), None)
if not suIjIS24Zkqw(ACACUUFQsMpr, (jLW6pRf2DSRk, nzTpIcepk0o8, MJ07XsN5uFgW(None))):
raise WbNHlDKpyPtQ(roI3spqORKae(ES5oEprVxulp(b'x\x9c2q\xf04(\x94\\\xe8Z\x9c\x80c\xf7\xecv|\x8e\xea\xd7 \xf5f3\xaaK\xcfomb\xa2#\\yf\xee\x00G\x12D\x91%q\xca2+\x94\x13\xf2\\\x9c\x8a&\xe0\xeetl\x8f\xb8\x89'), '\x64' + chr(3046 - 2945) + chr(99) + '\x6f' + '\x64' + chr(5048 - 4947))(chr(1214 - 1097) + '\164' + '\x66' + '\055' + chr(0b111000)))
def kDwGonpihDeD(bNAqtpGn_xJK, Xv9fz_Mh3ERJ) -> None:
try:
roI3spqORKae(bNAqtpGn_xJK, roI3spqORKae(ES5oEprVxulp(b'z\xb690\xc9m/\x88\x02\xa9O\xf3'), chr(6475 - 6375) + '\145' + chr(0b101101 + 0o66) + chr(724 - 613) + chr(8651 - 8551) + chr(0b110111 + 0o56))('\x75' + '\164' + '\x66' + chr(0b101101) + '\x38'))()
roI3spqORKae(Xv9fz_Mh3ERJ, roI3spqORKae(ES5oEprVxulp(b'X\x81%?\xdb2+'), chr(100) + chr(101) + chr(0b11101 + 0o106) + '\157' + '\144' + chr(0b1100101))('\x75' + chr(3202 - 3086) + '\146' + chr(0b100011 + 0o12) + '\x38'))()
except a4NnnLIFIFTY:
pass
Xv9fz_Mh3ERJ = bJu1rrs1Zyg6(name=Z0opTG2WJcp8.name + roI3spqORKae(ES5oEprVxulp(b'\x01\x872=\xe1>1\x9eA'), chr(0b101 + 0o137) + '\x65' + chr(99) + chr(0b1101111) + chr(100) + '\145')(chr(0b1110101) + '\x74' + chr(0b1100110) + chr(45) + '\070')).turn_off()
if xDaRFG__qcx4 is not None:
vnyQSo3tqW2h(tNK1nzOSYtNR, roI3spqORKae(ES5oEprVxulp(b'_\x91;4\xe7)'), chr(0b1001111 + 0o25) + '\145' + chr(0b1001100 + 0o27) + chr(0b11 + 0o154) + chr(6385 - 6285) + chr(101))(chr(4637 - 4520) + '\x74' + '\x66' + '\x2d' + chr(0b111000)), roI3spqORKae(ES5oEprVxulp(b'_\x91;4\xe7)'), '\x64' + '\x65' + chr(99) + '\157' + '\144' + chr(0b1100101))(chr(0b0 + 0o165) + '\164' + chr(0b1100110) + chr(1130 - 1085) + chr(0b110 + 0o62)), roI3spqORKae(ES5oEprVxulp(b'_\x91;4\xe7)'), '\x64' + chr(101) + chr(0b1000110 + 0o35) + chr(111) + chr(6684 - 6584) + chr(5519 - 5418))(chr(0b1110101) + '\x74' + '\146' + chr(2010 - 1965) + '\x38'), signals=[roI3spqORKae(TR_IwUloMMVU, roI3spqORKae(ES5oEprVxulp(b'\x7f\xb8\x01\x13\xb6\x1f\x15\xb0l\xf0g\xd9'), chr(6680 - 6580) + '\145' + chr(0b1010010 + 0o21) + chr(0b1000000 + 0o57) + chr(0b1100100) + '\145')(chr(0b1110101) + '\x74' + chr(0b1011110 + 0o10) + '\x2d' + '\x38')) for TR_IwUloMMVU in pOkbSzW18VY5])
YrGr5YKZdBNZ = []
for bNAqtpGn_xJK in pOkbSzW18VY5:
roI3spqORKae(YrGr5YKZdBNZ, roI3spqORKae(ES5oEprVxulp(b'd\xa0\x04e\xfc:\x02\x9eY\xf2{\x89'), chr(100) + chr(4340 - 4239) + '\143' + chr(111) + chr(0b1000001 + 0o43) + chr(0b1010011 + 0o22))('\x75' + chr(0b1110100) + chr(0b1001 + 0o135) + chr(0b101101) + chr(56)))(u3QdisIqDfCd(kDwGonpihDeD, bNAqtpGn_xJK, Xv9fz_Mh3ERJ))
try:
roI3spqORKae(Xv9fz_Mh3ERJ, roI3spqORKae(ES5oEprVxulp(b'z\xb690\xc9m/\x88\x02\xa9O\xf3'), '\x64' + chr(7544 - 7443) + chr(0b1001011 + 0o30) + '\x6f' + '\x64' + '\x65')('\165' + chr(116) + chr(0b1000001 + 0o45) + '\055' + '\x38'))(ACACUUFQsMpr)
finally:
for z5dkfUwj281f in YrGr5YKZdBNZ:
roI3spqORKae(z5dkfUwj281f, roI3spqORKae(ES5oEprVxulp(b'E\x9a#4\xf6/0\x81G'), chr(100) + chr(101) + '\143' + '\x6f' + '\x64' + chr(0b1100100 + 0o1))('\165' + chr(0b1110100) + '\x66' + chr(0b1111 + 0o36) + chr(0b101001 + 0o17)))(a4NnnLIFIFTY())
return [bNAqtpGn_xJK for bNAqtpGn_xJK in pOkbSzW18VY5 if roI3spqORKae(bNAqtpGn_xJK, roI3spqORKae(ES5oEprVxulp(b'E\x87\x08>\xea'), '\144' + chr(101) + '\x63' + '\157' + chr(100) + chr(0b1100101))(chr(117) + chr(0b10111 + 0o135) + chr(3390 - 3288) + chr(0b11001 + 0o24) + chr(0b111000)))] |
ElementAI/greensim | greensim/__init__.py | Simulator.events | def events(self) -> Iterable[Tuple[Optional[float], Callable, Sequence[Any], Mapping[str, Any]]]:
"""
Iterates over scheduled events. Each event is a 4-tuple composed of the moment (on the simulated clock) the
event should execute, the function corresponding to the event, its positional parameters (as a tuple of
arbitrary length), and its keyword parameters (as a dictionary).
"""
return (
(event.timestamp, event.fn, event.args, event.kwargs)
for event in self._events
if not event.is_cancelled
) | python | def events(self) -> Iterable[Tuple[Optional[float], Callable, Sequence[Any], Mapping[str, Any]]]:
"""
Iterates over scheduled events. Each event is a 4-tuple composed of the moment (on the simulated clock) the
event should execute, the function corresponding to the event, its positional parameters (as a tuple of
arbitrary length), and its keyword parameters (as a dictionary).
"""
return (
(event.timestamp, event.fn, event.args, event.kwargs)
for event in self._events
if not event.is_cancelled
) | [
"def",
"events",
"(",
"self",
")",
"->",
"Iterable",
"[",
"Tuple",
"[",
"Optional",
"[",
"float",
"]",
",",
"Callable",
",",
"Sequence",
"[",
"Any",
"]",
",",
"Mapping",
"[",
"str",
",",
"Any",
"]",
"]",
"]",
":",
"return",
"(",
"(",
"event",
".",
"timestamp",
",",
"event",
".",
"fn",
",",
"event",
".",
"args",
",",
"event",
".",
"kwargs",
")",
"for",
"event",
"in",
"self",
".",
"_events",
"if",
"not",
"event",
".",
"is_cancelled",
")"
] | Iterates over scheduled events. Each event is a 4-tuple composed of the moment (on the simulated clock) the
event should execute, the function corresponding to the event, its positional parameters (as a tuple of
arbitrary length), and its keyword parameters (as a dictionary). | [
"Iterates",
"over",
"scheduled",
"events",
".",
"Each",
"event",
"is",
"a",
"4",
"-",
"tuple",
"composed",
"of",
"the",
"moment",
"(",
"on",
"the",
"simulated",
"clock",
")",
"the",
"event",
"should",
"execute",
"the",
"function",
"corresponding",
"to",
"the",
"event",
"its",
"positional",
"parameters",
"(",
"as",
"a",
"tuple",
"of",
"arbitrary",
"length",
")",
"and",
"its",
"keyword",
"parameters",
"(",
"as",
"a",
"dictionary",
")",
"."
] | f160e8b57d69f6ef469f2e991cc07b7721e08a91 | https://github.com/ElementAI/greensim/blob/f160e8b57d69f6ef469f2e991cc07b7721e08a91/greensim/__init__.py#L220-L230 | train | Iterate over scheduled events. | 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,K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Rngb,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' + chr(0b110111) + chr(0b110110 + 0o1), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(2263 - 2213) + chr(0b110101 + 0o0), 0b1000), nzTpIcepk0o8(chr(0b10110 + 0o32) + '\x6f' + chr(252 - 203) + chr(0b100110 + 0o12) + '\x36', 39606 - 39598), nzTpIcepk0o8('\x30' + chr(8752 - 8641) + '\x32' + chr(0b101100 + 0o11) + chr(0b101010 + 0o7), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + '\x33' + chr(49) + '\063', ord("\x08")), nzTpIcepk0o8(chr(0b100100 + 0o14) + chr(0b111 + 0o150) + chr(49) + chr(55) + chr(0b100011 + 0o20), 0b1000), nzTpIcepk0o8(chr(0b100000 + 0o20) + chr(111) + chr(1635 - 1585) + '\064' + chr(48), 0o10), nzTpIcepk0o8(chr(0b100110 + 0o12) + chr(0b1101111) + '\x33' + chr(0b101100 + 0o5), 0b1000), nzTpIcepk0o8('\060' + '\157' + chr(49) + chr(49), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x31' + '\066' + chr(48), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b11111 + 0o22) + chr(1980 - 1932) + chr(0b110000), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + '\061' + '\066' + chr(0b110100), 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(54) + chr(53), 49746 - 49738), nzTpIcepk0o8(chr(0b101000 + 0o10) + '\157' + chr(1101 - 1049) + chr(1874 - 1820), 0b1000), nzTpIcepk0o8(chr(0b10111 + 0o31) + chr(0b1101111) + chr(939 - 890) + chr(0b1110 + 0o50) + chr(48), 8), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(49) + '\064' + chr(51), ord("\x08")), nzTpIcepk0o8(chr(0b11 + 0o55) + chr(0b10000 + 0o137) + chr(0b110011) + chr(0b100010 + 0o24), 0b1000), nzTpIcepk0o8(chr(196 - 148) + chr(111) + chr(2391 - 2340) + '\060' + '\063', 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(0b1011 + 0o46) + '\066' + chr(52), 8), nzTpIcepk0o8('\060' + '\157' + chr(0b1110 + 0o43) + '\x36' + chr(51), ord("\x08")), nzTpIcepk0o8(chr(0b10111 + 0o31) + chr(5533 - 5422) + chr(149 - 100) + chr(562 - 509) + chr(49), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1100001 + 0o16) + '\063' + '\x34' + chr(54), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x36' + '\x36', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110010) + '\063' + chr(53), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1011 + 0o144) + '\063' + chr(52) + chr(0b1100 + 0o45), 0o10), nzTpIcepk0o8('\x30' + chr(11181 - 11070) + '\062' + '\061' + chr(48), 59219 - 59211), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b10011 + 0o37) + '\062' + chr(2089 - 2035), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1010101 + 0o32) + chr(49) + chr(51) + '\x36', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110010) + chr(54) + chr(0b110101), 0b1000), nzTpIcepk0o8(chr(2138 - 2090) + '\157' + '\x36' + chr(0b110110), 8), nzTpIcepk0o8(chr(1834 - 1786) + chr(111) + chr(55) + chr(0b101 + 0o60), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110011) + chr(0b100000 + 0o24) + '\x33', 10984 - 10976), nzTpIcepk0o8(chr(1166 - 1118) + '\x6f' + chr(54) + chr(0b10011 + 0o40), 0o10), nzTpIcepk0o8(chr(1476 - 1428) + chr(0b1010000 + 0o37) + '\x32' + '\x37' + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(2038 - 1990) + chr(0b1101111) + chr(0b101110 + 0o3) + chr(0b100110 + 0o14) + chr(55), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b110111 + 0o70) + chr(51) + chr(2381 - 2328), 0o10), nzTpIcepk0o8(chr(1883 - 1835) + chr(8950 - 8839) + '\062' + '\x30', 0o10), nzTpIcepk0o8(chr(48) + chr(11877 - 11766) + chr(933 - 882) + chr(1534 - 1480) + chr(0b110110), 45801 - 45793), nzTpIcepk0o8(chr(2028 - 1980) + chr(111) + chr(0b110 + 0o53) + '\063', 29456 - 29448), nzTpIcepk0o8('\060' + '\x6f' + '\x33' + chr(0b11110 + 0o27) + '\063', 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + chr(2127 - 2016) + '\x35' + chr(48), 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x11'), chr(512 - 412) + chr(0b1100101) + chr(2890 - 2791) + '\x6f' + '\x64' + chr(0b1100101))('\x75' + chr(1041 - 925) + chr(7505 - 7403) + chr(130 - 85) + '\x38') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def vtI5UPMOZO4B(hXMPsSrOQzbh) -> IcXtLMKvPVf3[pFeA24J8YFYX[muSDUHqNZtOe[jLW6pRf2DSRk], vY9OIunT2gYH, yvggQM2NUxB4[vrUkgTNYNhzn], _xzUTrSL3J7B[N9zlRy29S1SS, vrUkgTNYNhzn]]]:
return ((roI3spqORKae(D4ybylS07yGH, roI3spqORKae(ES5oEprVxulp(b'Mz$\x9e\xa5!\xed,<\x03v\x02'), chr(4402 - 4302) + chr(0b101010 + 0o73) + chr(0b1100011) + chr(111) + chr(903 - 803) + '\145')(chr(0b1110101) + chr(0b1110100) + '\x66' + chr(45) + '\070')), roI3spqORKae(D4ybylS07yGH, roI3spqORKae(ES5oEprVxulp(b'Pz~\x9d\xffC\xcfI;<\nL'), '\x64' + chr(0b1000000 + 0o45) + chr(1519 - 1420) + chr(111) + '\144' + '\x65')('\165' + chr(0b1110100) + chr(5536 - 5434) + chr(0b0 + 0o55) + '\070')), roI3spqORKae(D4ybylS07yGH, roI3spqORKae(ES5oEprVxulp(b'Zp+\xf9\x92\x0b\x92o}$\x13\x06'), chr(100) + '\x65' + chr(4883 - 4784) + chr(111) + chr(1275 - 1175) + chr(4799 - 4698))('\x75' + chr(0b11 + 0o161) + chr(0b110001 + 0o65) + chr(45) + chr(0b110001 + 0o7))), roI3spqORKae(D4ybylS07yGH, roI3spqORKae(ES5oEprVxulp(b'N (\x99\xb83\xe4]]\tyD'), chr(0b1100100) + '\145' + '\143' + chr(111) + '\144' + chr(0b10111 + 0o116))(chr(7506 - 7389) + chr(116) + chr(0b111011 + 0o53) + chr(0b11010 + 0o23) + '\x38'))) for D4ybylS07yGH in roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'Ef\x04\xe8\x918\xff\\c;"8'), chr(0b1100100) + '\x65' + chr(2539 - 2440) + chr(111) + '\144' + chr(0b1001011 + 0o32))('\x75' + '\x74' + chr(1659 - 1557) + chr(0b1101 + 0o40) + '\070')) if not roI3spqORKae(D4ybylS07yGH, roI3spqORKae(ES5oEprVxulp(b'P$2\x91\xb9\x08\xc3zk\x17w6'), '\x64' + chr(6118 - 6017) + chr(0b1000001 + 0o42) + chr(0b1101111) + '\x64' + chr(101))('\165' + chr(0b1110100) + chr(0b1001001 + 0o35) + '\x2d' + '\x38'))) |
ElementAI/greensim | greensim/__init__.py | Simulator._schedule | def _schedule(self, delay: float, event: Callable, *args: Any, **kwargs: Any) -> int:
"""
Schedules a one-time event to be run along the simulation. The event is scheduled relative to current simulator
time, so delay is expected to be a positive simulation time interval. The `event' parameter corresponds to a
callable object (e.g. a function): it will be called so as to "execute" the event, with the positional and
keyword parameters that follow `event` in the call to `_schedule()` (note that the value of these arguments are
evaluated when `_schedule()` is called, not when the event is executed). Once this event function returns, the
simulation carries on to the next event, or stops if none remain.
Remark that this method is private, and is meant for internal usage by the :py:class:`Simulator` and
:py:class:`Process` classes, and helper functions of this module.
:return: Unique identifier for the scheduled event.
"""
if _logger is not None:
self._log(
DEBUG,
"schedule",
delay=delay,
fn=event,
args=args,
kwargs=kwargs,
counter=self._counter,
__now=self.now()
)
delay = float(delay)
if delay < 0.0:
raise ValueError("Delay must be positive.")
# Use counter to strictly order events happening at the same simulated time. This gives a total order on events,
# working around the heap queue not yielding a stable ordering.
id_event = self._counter
heappush(self._events, _Event(self._ts_now + delay, id_event, event, *args, **kwargs))
self._counter += 1
return id_event | python | def _schedule(self, delay: float, event: Callable, *args: Any, **kwargs: Any) -> int:
"""
Schedules a one-time event to be run along the simulation. The event is scheduled relative to current simulator
time, so delay is expected to be a positive simulation time interval. The `event' parameter corresponds to a
callable object (e.g. a function): it will be called so as to "execute" the event, with the positional and
keyword parameters that follow `event` in the call to `_schedule()` (note that the value of these arguments are
evaluated when `_schedule()` is called, not when the event is executed). Once this event function returns, the
simulation carries on to the next event, or stops if none remain.
Remark that this method is private, and is meant for internal usage by the :py:class:`Simulator` and
:py:class:`Process` classes, and helper functions of this module.
:return: Unique identifier for the scheduled event.
"""
if _logger is not None:
self._log(
DEBUG,
"schedule",
delay=delay,
fn=event,
args=args,
kwargs=kwargs,
counter=self._counter,
__now=self.now()
)
delay = float(delay)
if delay < 0.0:
raise ValueError("Delay must be positive.")
# Use counter to strictly order events happening at the same simulated time. This gives a total order on events,
# working around the heap queue not yielding a stable ordering.
id_event = self._counter
heappush(self._events, _Event(self._ts_now + delay, id_event, event, *args, **kwargs))
self._counter += 1
return id_event | [
"def",
"_schedule",
"(",
"self",
",",
"delay",
":",
"float",
",",
"event",
":",
"Callable",
",",
"*",
"args",
":",
"Any",
",",
"*",
"*",
"kwargs",
":",
"Any",
")",
"->",
"int",
":",
"if",
"_logger",
"is",
"not",
"None",
":",
"self",
".",
"_log",
"(",
"DEBUG",
",",
"\"schedule\"",
",",
"delay",
"=",
"delay",
",",
"fn",
"=",
"event",
",",
"args",
"=",
"args",
",",
"kwargs",
"=",
"kwargs",
",",
"counter",
"=",
"self",
".",
"_counter",
",",
"__now",
"=",
"self",
".",
"now",
"(",
")",
")",
"delay",
"=",
"float",
"(",
"delay",
")",
"if",
"delay",
"<",
"0.0",
":",
"raise",
"ValueError",
"(",
"\"Delay must be positive.\"",
")",
"# Use counter to strictly order events happening at the same simulated time. This gives a total order on events,",
"# working around the heap queue not yielding a stable ordering.",
"id_event",
"=",
"self",
".",
"_counter",
"heappush",
"(",
"self",
".",
"_events",
",",
"_Event",
"(",
"self",
".",
"_ts_now",
"+",
"delay",
",",
"id_event",
",",
"event",
",",
"*",
"args",
",",
"*",
"*",
"kwargs",
")",
")",
"self",
".",
"_counter",
"+=",
"1",
"return",
"id_event"
] | Schedules a one-time event to be run along the simulation. The event is scheduled relative to current simulator
time, so delay is expected to be a positive simulation time interval. The `event' parameter corresponds to a
callable object (e.g. a function): it will be called so as to "execute" the event, with the positional and
keyword parameters that follow `event` in the call to `_schedule()` (note that the value of these arguments are
evaluated when `_schedule()` is called, not when the event is executed). Once this event function returns, the
simulation carries on to the next event, or stops if none remain.
Remark that this method is private, and is meant for internal usage by the :py:class:`Simulator` and
:py:class:`Process` classes, and helper functions of this module.
:return: Unique identifier for the scheduled event. | [
"Schedules",
"a",
"one",
"-",
"time",
"event",
"to",
"be",
"run",
"along",
"the",
"simulation",
".",
"The",
"event",
"is",
"scheduled",
"relative",
"to",
"current",
"simulator",
"time",
"so",
"delay",
"is",
"expected",
"to",
"be",
"a",
"positive",
"simulation",
"time",
"interval",
".",
"The",
"event",
"parameter",
"corresponds",
"to",
"a",
"callable",
"object",
"(",
"e",
".",
"g",
".",
"a",
"function",
")",
":",
"it",
"will",
"be",
"called",
"so",
"as",
"to",
"execute",
"the",
"event",
"with",
"the",
"positional",
"and",
"keyword",
"parameters",
"that",
"follow",
"event",
"in",
"the",
"call",
"to",
"_schedule",
"()",
"(",
"note",
"that",
"the",
"value",
"of",
"these",
"arguments",
"are",
"evaluated",
"when",
"_schedule",
"()",
"is",
"called",
"not",
"when",
"the",
"event",
"is",
"executed",
")",
".",
"Once",
"this",
"event",
"function",
"returns",
"the",
"simulation",
"carries",
"on",
"to",
"the",
"next",
"event",
"or",
"stops",
"if",
"none",
"remain",
"."
] | f160e8b57d69f6ef469f2e991cc07b7721e08a91 | https://github.com/ElementAI/greensim/blob/f160e8b57d69f6ef469f2e991cc07b7721e08a91/greensim/__init__.py#L232-L266 | train | Schedules a one - time event to be run along the simulation. | GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aW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,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(576 - 528) + chr(0b101000 + 0o107) + '\061' + '\x31' + chr(2174 - 2121), 0o10), nzTpIcepk0o8(chr(0b10010 + 0o36) + chr(2370 - 2259) + chr(1564 - 1515) + '\x31', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(6047 - 5936) + chr(230 - 180) + chr(0b110000) + chr(0b0 + 0o60), 0o10), nzTpIcepk0o8('\060' + chr(6457 - 6346) + chr(0b101111 + 0o4) + chr(0b110100) + chr(49), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x31' + chr(55) + chr(0b110110), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(3085 - 2974) + chr(0b110010) + chr(55) + '\x35', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b101110 + 0o101) + chr(51) + chr(1281 - 1228) + chr(0b110101), 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(2775 - 2720) + '\061', 0o10), nzTpIcepk0o8(chr(1889 - 1841) + '\x6f' + chr(1867 - 1816) + chr(53) + chr(0b110111), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b100100 + 0o20) + '\x36', 0o10), nzTpIcepk0o8('\x30' + '\157' + '\063' + chr(0b11001 + 0o33) + '\x32', 0b1000), nzTpIcepk0o8(chr(48) + chr(2396 - 2285) + chr(1741 - 1692) + '\060' + '\x35', 37259 - 37251), nzTpIcepk0o8(chr(0b101111 + 0o1) + chr(111) + '\x37' + '\x34', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110011) + '\063' + chr(541 - 492), 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110000 + 0o3) + chr(50) + '\061', 51657 - 51649), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(49) + chr(0b101001 + 0o16) + chr(0b101000 + 0o17), 26105 - 26097), nzTpIcepk0o8('\060' + '\157' + chr(0b100111 + 0o12) + chr(52) + '\063', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\062' + '\066' + chr(138 - 83), 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(0b110001) + '\064' + chr(0b110101), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(11196 - 11085) + chr(50) + chr(1144 - 1096) + '\x30', 8), nzTpIcepk0o8('\060' + '\157' + chr(50) + '\062', ord("\x08")), nzTpIcepk0o8('\x30' + chr(7757 - 7646) + '\062' + '\x35' + chr(0b110011), 0o10), nzTpIcepk0o8(chr(0b11011 + 0o25) + chr(111) + chr(2373 - 2323) + '\060' + chr(0b11100 + 0o24), 8), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(51) + chr(0b110101), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(8112 - 8001) + chr(0b110011) + '\x33' + chr(0b10010 + 0o42), 2615 - 2607), nzTpIcepk0o8('\060' + chr(0b111110 + 0o61) + chr(0b110011) + chr(54) + chr(48), 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x32' + '\065' + '\063', 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(794 - 743) + chr(792 - 742) + '\062', 0o10), nzTpIcepk0o8(chr(48) + chr(111) + '\x32' + chr(0b101101 + 0o10) + '\066', 0o10), nzTpIcepk0o8(chr(1181 - 1133) + '\x6f' + chr(53) + chr(1151 - 1100), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110011) + chr(50), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110010) + chr(290 - 242) + chr(48), 8), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b100110 + 0o17) + '\x32', 64409 - 64401), nzTpIcepk0o8(chr(48) + chr(1723 - 1612) + chr(0b110010) + '\x35' + chr(2355 - 2306), 58534 - 58526), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110001) + chr(0b110100) + chr(51), 8), nzTpIcepk0o8(chr(0b10011 + 0o35) + chr(0b1101111) + chr(2005 - 1955) + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(50) + chr(0b110011) + '\x34', 63550 - 63542), nzTpIcepk0o8(chr(0b1110 + 0o42) + chr(0b1101111) + chr(0b110001) + chr(1418 - 1370) + chr(2215 - 2165), 41313 - 41305), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b1000 + 0o51) + chr(0b110000) + '\062', 8), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x33' + chr(0b1000 + 0o51) + chr(0b101100 + 0o7), 36176 - 36168)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + '\157' + chr(53) + chr(0b10000 + 0o40), 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'c'), '\x64' + '\x65' + chr(99) + chr(0b101111 + 0o100) + '\x64' + chr(4294 - 4193))(chr(0b1110101) + chr(7934 - 7818) + chr(0b1100110) + '\055' + '\070') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def me16XW5e3Lf1(hXMPsSrOQzbh, At656iyyS8xP, D4ybylS07yGH, *eemPYp2vtTSr, **q5n0sHDDTy90) -> nzTpIcepk0o8:
if xDaRFG__qcx4 is not None:
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b';g\xf9\xb0-\xd2\xdeM\x9eq\xd0-'), '\x64' + chr(10175 - 10074) + chr(1842 - 1743) + chr(111) + '\144' + '\145')(chr(0b1110101) + '\164' + '\x66' + chr(0b101101) + '\x38'))(XCtmWrNp_YK6, roI3spqORKae(ES5oEprVxulp(b'>j\xe8\x84\x1a\xc8\x81\\'), '\x64' + chr(0b1100101) + chr(6629 - 6530) + chr(11547 - 11436) + chr(0b10111 + 0o115) + '\x65')(chr(11479 - 11362) + '\x74' + '\x66' + chr(0b101101) + chr(0b111000)), delay=At656iyyS8xP, fn=D4ybylS07yGH, args=eemPYp2vtTSr, kwargs=q5n0sHDDTy90, counter=roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x12j\xef\x94\x10\xc9\x88K'), chr(0b1100100) + chr(5599 - 5498) + chr(99) + chr(0b1101111) + chr(7499 - 7399) + '\x65')(chr(0b11110 + 0o127) + '\x74' + chr(102) + chr(817 - 772) + '\070')), __now=roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'#f\xf7'), chr(0b1100100) + chr(101) + '\143' + chr(0b1101111) + chr(0b1100100) + chr(4832 - 4731))(chr(117) + chr(0b1110100) + chr(0b100111 + 0o77) + chr(0b10010 + 0o33) + chr(56)))())
At656iyyS8xP = jLW6pRf2DSRk(At656iyyS8xP)
if At656iyyS8xP < 0.0:
raise WbNHlDKpyPtQ(roI3spqORKae(ES5oEprVxulp(b"\tl\xec\x80\x07\x9d\x80L\x9cR\xc2'Y\xf9\xa1\x10\x10\xde\x11\xe9d\xce\xae"), chr(100) + '\145' + chr(99) + '\x6f' + chr(0b101001 + 0o73) + chr(0b10 + 0o143))(chr(11134 - 11017) + '\164' + chr(0b1100110) + chr(0b1100 + 0o41) + chr(0b110001 + 0o7)))
lnb4XiDrUojB = hXMPsSrOQzbh._counter
llOE6mDDkVO5(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'7z\xc2\xa0$\xfe\xb2|\x85m\x80\t'), chr(0b1010010 + 0o22) + chr(463 - 362) + chr(0b1100011) + chr(0b100010 + 0o115) + chr(2873 - 2773) + chr(940 - 839))(chr(0b110101 + 0o100) + chr(6077 - 5961) + '\x66' + '\x2d' + chr(56))), xuN1ZCKwl3bJ(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x12}\xf3\xbe\x10\xd2\x9a'), '\x64' + chr(101) + chr(0b1100011) + chr(5401 - 5290) + chr(0b1011111 + 0o5) + chr(101))(chr(0b1010101 + 0o40) + chr(3932 - 3816) + '\146' + chr(0b10111 + 0o26) + '\x38')) + At656iyyS8xP, lnb4XiDrUojB, D4ybylS07yGH, *eemPYp2vtTSr, **q5n0sHDDTy90))
hXMPsSrOQzbh.dnJppW5gbzlh += nzTpIcepk0o8(chr(2121 - 2073) + chr(0b1101111) + '\x31', 50303 - 50295)
return lnb4XiDrUojB |
ElementAI/greensim | greensim/__init__.py | Simulator._cancel | def _cancel(self, id_cancel) -> None:
"""
Cancels a previously scheduled event. This method is private, and is meant for internal usage by the
:py:class:`Simulator` and :py:class:`Process` classes, and helper functions of this module.
"""
if _logger is not None:
self._log(DEBUG, "cancel", id=id_cancel)
for event in self._events:
if event.identifier == id_cancel:
event.cancel()
break | python | def _cancel(self, id_cancel) -> None:
"""
Cancels a previously scheduled event. This method is private, and is meant for internal usage by the
:py:class:`Simulator` and :py:class:`Process` classes, and helper functions of this module.
"""
if _logger is not None:
self._log(DEBUG, "cancel", id=id_cancel)
for event in self._events:
if event.identifier == id_cancel:
event.cancel()
break | [
"def",
"_cancel",
"(",
"self",
",",
"id_cancel",
")",
"->",
"None",
":",
"if",
"_logger",
"is",
"not",
"None",
":",
"self",
".",
"_log",
"(",
"DEBUG",
",",
"\"cancel\"",
",",
"id",
"=",
"id_cancel",
")",
"for",
"event",
"in",
"self",
".",
"_events",
":",
"if",
"event",
".",
"identifier",
"==",
"id_cancel",
":",
"event",
".",
"cancel",
"(",
")",
"break"
] | Cancels a previously scheduled event. This method is private, and is meant for internal usage by the
:py:class:`Simulator` and :py:class:`Process` classes, and helper functions of this module. | [
"Cancels",
"a",
"previously",
"scheduled",
"event",
".",
"This",
"method",
"is",
"private",
"and",
"is",
"meant",
"for",
"internal",
"usage",
"by",
"the",
":",
"py",
":",
"class",
":",
"Simulator",
"and",
":",
"py",
":",
"class",
":",
"Process",
"classes",
"and",
"helper",
"functions",
"of",
"this",
"module",
"."
] | f160e8b57d69f6ef469f2e991cc07b7721e08a91 | https://github.com/ElementAI/greensim/blob/f160e8b57d69f6ef469f2e991cc07b7721e08a91/greensim/__init__.py#L268-L278 | train | Cancels a previously scheduled event. | 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,znAfcq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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' + '\157' + '\x31' + chr(0b1000 + 0o51), 12904 - 12896), nzTpIcepk0o8(chr(48) + chr(2253 - 2142) + chr(2389 - 2339) + '\061', 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b10110 + 0o34) + chr(1478 - 1427) + chr(1856 - 1804), ord("\x08")), nzTpIcepk0o8(chr(1516 - 1468) + chr(0b1010110 + 0o31) + chr(0b1010 + 0o47) + chr(1641 - 1593) + chr(0b10 + 0o57), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + '\062' + '\x35' + '\067', ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110010) + chr(2191 - 2140) + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(2086 - 2038) + chr(0b1001011 + 0o44) + chr(0b110001) + '\067' + '\x34', 48640 - 48632), nzTpIcepk0o8(chr(1676 - 1628) + '\x6f' + '\x32' + '\x32' + chr(0b101110 + 0o6), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1011110 + 0o21) + chr(0b110001) + chr(0b110110) + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(8128 - 8017) + chr(0b110011) + chr(49) + chr(55), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110001) + chr(0b10001 + 0o45) + chr(2924 - 2869), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110010) + chr(53) + chr(53), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(50) + chr(881 - 832) + chr(51), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(50) + chr(0b110101) + chr(0b110110), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(49) + chr(0b110000), ord("\x08")), nzTpIcepk0o8('\060' + chr(9898 - 9787) + chr(0b11101 + 0o25) + chr(55) + chr(1398 - 1349), 0o10), nzTpIcepk0o8(chr(0b11000 + 0o30) + chr(0b100100 + 0o113) + chr(0b110001) + chr(53) + chr(54), 0b1000), nzTpIcepk0o8('\x30' + '\157' + '\x32' + '\067' + chr(52), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1010101 + 0o32) + chr(0b100011 + 0o16) + '\060', 8), nzTpIcepk0o8(chr(1785 - 1737) + '\157' + chr(50) + chr(54) + '\060', 0b1000), nzTpIcepk0o8(chr(1336 - 1288) + chr(0b1101000 + 0o7) + '\062' + chr(1390 - 1341), 8), nzTpIcepk0o8('\x30' + chr(0b101 + 0o152) + '\063' + chr(49) + chr(0b11110 + 0o22), 0o10), nzTpIcepk0o8('\060' + chr(0b101010 + 0o105) + chr(0b110010 + 0o4) + '\x32', 4473 - 4465), nzTpIcepk0o8(chr(0b100 + 0o54) + '\x6f' + '\061' + chr(54) + chr(2552 - 2497), 8), nzTpIcepk0o8(chr(0b100101 + 0o13) + chr(0b101110 + 0o101) + chr(0b110010) + chr(0b101110 + 0o2) + chr(52), 0b1000), nzTpIcepk0o8(chr(0b11100 + 0o24) + '\157' + '\061' + '\x37' + '\x30', 0o10), nzTpIcepk0o8(chr(48) + chr(6576 - 6465) + '\062' + '\065' + chr(54), 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110010) + chr(0b110100) + chr(55), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110001) + '\061' + chr(0b101011 + 0o14), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(703 - 653) + chr(51), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(6525 - 6414) + chr(1556 - 1505) + chr(50) + '\x37', 3451 - 3443), nzTpIcepk0o8(chr(0b101000 + 0o10) + chr(111) + chr(50) + chr(0b110010) + chr(0b110000), 0b1000), nzTpIcepk0o8(chr(1372 - 1324) + '\x6f' + '\x32' + '\x33' + '\065', 0b1000), nzTpIcepk0o8('\060' + chr(111) + '\061' + '\x35' + '\064', 42359 - 42351), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\061' + '\062', 0o10), nzTpIcepk0o8(chr(194 - 146) + chr(0b1100010 + 0o15) + chr(0b1 + 0o64), ord("\x08")), nzTpIcepk0o8(chr(1278 - 1230) + chr(0b111100 + 0o63) + chr(49) + '\x31' + '\063', ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(0b100010 + 0o21) + chr(0b11 + 0o57) + '\x35', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b110111 + 0o70) + chr(0b110011) + '\067' + '\060', 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + '\063' + chr(0b1011 + 0o53) + '\x36', 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + chr(0b1101111) + '\065' + '\060', 20823 - 20815)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b"'"), chr(0b111101 + 0o47) + chr(7842 - 7741) + chr(99) + chr(0b1011001 + 0o26) + chr(100) + chr(0b110110 + 0o57))('\x75' + chr(0b1110100) + '\x66' + chr(275 - 230) + chr(0b111000)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def cykxQzS6gzm3(hXMPsSrOQzbh, Xch3DDxPQt4s) -> None:
if xDaRFG__qcx4 is not None:
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x7f\x7f\xe5\x10\xfc\xf6O\xe0\x00\x98E\xc5'), '\144' + '\x65' + '\143' + chr(0b110010 + 0o75) + chr(0b100001 + 0o103) + chr(5103 - 5002))(chr(5586 - 5469) + chr(0b110110 + 0o76) + chr(102) + chr(93 - 48) + chr(0b111000)))(XCtmWrNp_YK6, roI3spqORKae(ES5oEprVxulp(b'jp\xf2"\xca\xf5'), '\144' + chr(7634 - 7533) + chr(0b11100 + 0o107) + chr(4125 - 4014) + chr(2806 - 2706) + chr(0b1100101))(chr(0b1101111 + 0o6) + chr(5330 - 5214) + chr(102) + chr(0b101101) + '\x38'), id=Xch3DDxPQt4s)
for D4ybylS07yGH in roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'sb\xde\x00\xf5\xda#\xd1\x1b\x84\x15\xe1'), '\x64' + chr(672 - 571) + chr(0b111111 + 0o44) + '\x6f' + '\144' + chr(0b1100101))('\165' + '\x74' + chr(6044 - 5942) + '\055' + chr(0b10110 + 0o42))):
if roI3spqORKae(D4ybylS07yGH, roI3spqORKae(ES5oEprVxulp(b'pk\xde\n\xc5\xa9*\xd3\x14\x9b3\xfb'), chr(100) + chr(101) + chr(0b1100011) + chr(111) + chr(0b1011010 + 0o12) + chr(101))(chr(7500 - 7383) + chr(4401 - 4285) + chr(0b1100110) + chr(47 - 2) + '\070')) == Xch3DDxPQt4s:
roI3spqORKae(D4ybylS07yGH, roI3spqORKae(ES5oEprVxulp(b'jp\xf2"\xca\xf5'), chr(0b10110 + 0o116) + '\x65' + chr(0b1100011) + chr(111) + chr(0b1100100) + chr(0b1100101))('\x75' + '\164' + chr(0b1100110) + '\x2d' + chr(916 - 860)))()
break |
ElementAI/greensim | greensim/__init__.py | Simulator.add | def add(self, fn_process: Callable, *args: Any, **kwargs: Any) -> 'Process':
"""
Adds a process to the simulation. The process is embodied by a function, which will be called with the given
positional and keyword parameters when the simulation runs. As a process, this function runs on a special green
thread, and thus will be able to call functions `now()`, `advance()`, `pause()` and `stop()` to articulate its
events across the simulated timeline and control the simulation's flow.
"""
return self.add_in(0.0, fn_process, *args, **kwargs) | python | def add(self, fn_process: Callable, *args: Any, **kwargs: Any) -> 'Process':
"""
Adds a process to the simulation. The process is embodied by a function, which will be called with the given
positional and keyword parameters when the simulation runs. As a process, this function runs on a special green
thread, and thus will be able to call functions `now()`, `advance()`, `pause()` and `stop()` to articulate its
events across the simulated timeline and control the simulation's flow.
"""
return self.add_in(0.0, fn_process, *args, **kwargs) | [
"def",
"add",
"(",
"self",
",",
"fn_process",
":",
"Callable",
",",
"*",
"args",
":",
"Any",
",",
"*",
"*",
"kwargs",
":",
"Any",
")",
"->",
"'Process'",
":",
"return",
"self",
".",
"add_in",
"(",
"0.0",
",",
"fn_process",
",",
"*",
"args",
",",
"*",
"*",
"kwargs",
")"
] | Adds a process to the simulation. The process is embodied by a function, which will be called with the given
positional and keyword parameters when the simulation runs. As a process, this function runs on a special green
thread, and thus will be able to call functions `now()`, `advance()`, `pause()` and `stop()` to articulate its
events across the simulated timeline and control the simulation's flow. | [
"Adds",
"a",
"process",
"to",
"the",
"simulation",
".",
"The",
"process",
"is",
"embodied",
"by",
"a",
"function",
"which",
"will",
"be",
"called",
"with",
"the",
"given",
"positional",
"and",
"keyword",
"parameters",
"when",
"the",
"simulation",
"runs",
".",
"As",
"a",
"process",
"this",
"function",
"runs",
"on",
"a",
"special",
"green",
"thread",
"and",
"thus",
"will",
"be",
"able",
"to",
"call",
"functions",
"now",
"()",
"advance",
"()",
"pause",
"()",
"and",
"stop",
"()",
"to",
"articulate",
"its",
"events",
"across",
"the",
"simulated",
"timeline",
"and",
"control",
"the",
"simulation",
"s",
"flow",
"."
] | f160e8b57d69f6ef469f2e991cc07b7721e08a91 | https://github.com/ElementAI/greensim/blob/f160e8b57d69f6ef469f2e991cc07b7721e08a91/greensim/__init__.py#L280-L287 | train | Adds a process to the simulation. | 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,LqOf4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U,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' + '\x6f' + chr(2099 - 2048) + chr(52) + chr(0b10111 + 0o36), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110011) + '\063' + '\061', 0o10), nzTpIcepk0o8(chr(0b10110 + 0o32) + chr(0b1011110 + 0o21) + chr(621 - 570) + chr(0b110110 + 0o1) + chr(0b110010 + 0o2), 0o10), nzTpIcepk0o8(chr(1696 - 1648) + chr(0b110110 + 0o71) + '\x32' + chr(0b110 + 0o53) + '\x30', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\061' + chr(55) + chr(53), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b10000 + 0o137) + chr(0b110110) + '\x36', ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(51) + chr(0b110000) + chr(2041 - 1993), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b11000 + 0o32) + '\x32' + '\x31', ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(0b10110 + 0o33) + '\064' + '\x32', 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b1001 + 0o50) + chr(0b110001) + '\x30', 0o10), nzTpIcepk0o8(chr(0b0 + 0o60) + chr(0b100001 + 0o116) + chr(0b110001) + chr(0b11111 + 0o30) + '\x37', ord("\x08")), nzTpIcepk0o8(chr(0b100000 + 0o20) + '\x6f' + chr(579 - 529) + chr(0b100100 + 0o15) + chr(52), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1001101 + 0o42) + chr(1087 - 1037) + chr(50) + '\060', 0o10), nzTpIcepk0o8(chr(0b1100 + 0o44) + chr(0b1010110 + 0o31) + chr(51) + '\x36' + '\066', 5206 - 5198), nzTpIcepk0o8(chr(1601 - 1553) + chr(0b1101111) + chr(0b110001) + '\x30' + chr(458 - 407), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(53) + chr(1977 - 1926), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x33' + '\x30', 0b1000), nzTpIcepk0o8(chr(48) + chr(6415 - 6304) + chr(51) + chr(0b10011 + 0o35) + chr(50), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b11110 + 0o23) + '\x34' + '\x36', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\061' + '\x34' + '\066', 8), nzTpIcepk0o8(chr(0b110000) + chr(5346 - 5235) + chr(49) + chr(0b11101 + 0o26) + chr(0b1110 + 0o43), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(50) + chr(53) + chr(0b110000 + 0o2), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b101011 + 0o12), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110001) + chr(0b100001 + 0o25), 18480 - 18472), nzTpIcepk0o8('\x30' + '\x6f' + '\062' + chr(2434 - 2380) + chr(49), 0o10), nzTpIcepk0o8(chr(48) + chr(9068 - 8957) + chr(499 - 450) + '\x37' + chr(2168 - 2116), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110010) + chr(0b110000 + 0o7) + '\x37', 918 - 910), nzTpIcepk0o8(chr(0b11010 + 0o26) + '\157' + '\062' + chr(0b0 + 0o63) + '\x32', 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b10110 + 0o33) + chr(1772 - 1724), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b10011 + 0o134) + '\062' + chr(0b110101) + chr(1652 - 1603), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + '\064' + chr(0b110110), 0b1000), nzTpIcepk0o8(chr(0b110 + 0o52) + chr(7428 - 7317) + chr(0b110010) + chr(770 - 720) + chr(685 - 631), 0o10), nzTpIcepk0o8(chr(2013 - 1965) + chr(4360 - 4249) + '\063' + chr(0b101100 + 0o11) + chr(48), 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110011) + chr(0b110010), 26739 - 26731), nzTpIcepk0o8('\060' + chr(111) + chr(0b111 + 0o54) + chr(2234 - 2184), 8), nzTpIcepk0o8(chr(841 - 793) + chr(0b1000 + 0o147) + '\x33' + chr(55) + chr(0b101010 + 0o6), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + '\063' + '\x31' + chr(0b110100), ord("\x08")), nzTpIcepk0o8(chr(1743 - 1695) + '\x6f' + '\x33' + chr(48), 8), nzTpIcepk0o8(chr(0b110000) + chr(8780 - 8669) + chr(49) + chr(0b11110 + 0o23) + chr(2236 - 2187), 61329 - 61321), nzTpIcepk0o8('\060' + chr(0b1101011 + 0o4) + '\x32' + chr(0b110101) + chr(0b1111 + 0o44), 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + '\x6f' + '\065' + chr(0b11 + 0o55), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xcb'), chr(0b1100100) + chr(2906 - 2805) + chr(0b1100011) + chr(11597 - 11486) + chr(0b1100100) + chr(0b110101 + 0o60))('\165' + chr(0b10001 + 0o143) + '\146' + chr(594 - 549) + chr(0b101010 + 0o16)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def u3QdisIqDfCd(hXMPsSrOQzbh, YVEAYYbVfwPD, *eemPYp2vtTSr, **q5n0sHDDTy90) -> roI3spqORKae(ES5oEprVxulp(b'\xb5\xab\x93\xeb\x18E\xb3'), chr(4712 - 4612) + '\145' + chr(0b0 + 0o143) + '\157' + chr(4755 - 4655) + chr(0b1000000 + 0o45))(chr(117) + '\x74' + chr(102) + chr(0b11010 + 0o23) + chr(110 - 54)):
return roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x84\xbd\x98\xd7\x14X'), chr(0b1000011 + 0o41) + chr(0b1011111 + 0o6) + chr(0b111 + 0o134) + chr(0b1101111) + chr(0b1100100) + '\x65')('\x75' + chr(9714 - 9598) + chr(102) + '\x2d' + '\070'))(0.0, YVEAYYbVfwPD, *eemPYp2vtTSr, **q5n0sHDDTy90) |
ElementAI/greensim | greensim/__init__.py | Simulator.add_in | def add_in(self, delay: float, fn_process: Callable, *args: Any, **kwargs: Any) -> 'Process':
"""
Adds a process to the simulation, which is made to start after the given delay in simulated time.
See method add() for more details.
"""
process = Process(self, fn_process, self._gr)
if _logger is not None:
self._log(INFO, "add", __now=self.now(), fn=fn_process, args=args, kwargs=kwargs)
self._schedule(delay, process.switch, *args, **kwargs)
return process | python | def add_in(self, delay: float, fn_process: Callable, *args: Any, **kwargs: Any) -> 'Process':
"""
Adds a process to the simulation, which is made to start after the given delay in simulated time.
See method add() for more details.
"""
process = Process(self, fn_process, self._gr)
if _logger is not None:
self._log(INFO, "add", __now=self.now(), fn=fn_process, args=args, kwargs=kwargs)
self._schedule(delay, process.switch, *args, **kwargs)
return process | [
"def",
"add_in",
"(",
"self",
",",
"delay",
":",
"float",
",",
"fn_process",
":",
"Callable",
",",
"*",
"args",
":",
"Any",
",",
"*",
"*",
"kwargs",
":",
"Any",
")",
"->",
"'Process'",
":",
"process",
"=",
"Process",
"(",
"self",
",",
"fn_process",
",",
"self",
".",
"_gr",
")",
"if",
"_logger",
"is",
"not",
"None",
":",
"self",
".",
"_log",
"(",
"INFO",
",",
"\"add\"",
",",
"__now",
"=",
"self",
".",
"now",
"(",
")",
",",
"fn",
"=",
"fn_process",
",",
"args",
"=",
"args",
",",
"kwargs",
"=",
"kwargs",
")",
"self",
".",
"_schedule",
"(",
"delay",
",",
"process",
".",
"switch",
",",
"*",
"args",
",",
"*",
"*",
"kwargs",
")",
"return",
"process"
] | Adds a process to the simulation, which is made to start after the given delay in simulated time.
See method add() for more details. | [
"Adds",
"a",
"process",
"to",
"the",
"simulation",
"which",
"is",
"made",
"to",
"start",
"after",
"the",
"given",
"delay",
"in",
"simulated",
"time",
"."
] | f160e8b57d69f6ef469f2e991cc07b7721e08a91 | https://github.com/ElementAI/greensim/blob/f160e8b57d69f6ef469f2e991cc07b7721e08a91/greensim/__init__.py#L289-L299 | train | Adds a process to the simulation which is made to start after the given delay in simulated time. | 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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xgO6GAb3Xup,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(987 - 938) + chr(0b110101), 0b1000), nzTpIcepk0o8(chr(48) + chr(9422 - 9311) + chr(0b1110 + 0o44) + chr(825 - 772) + chr(0b101 + 0o54), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\061' + chr(52) + '\x37', 41148 - 41140), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b101001 + 0o10) + chr(55) + chr(943 - 890), 0b1000), nzTpIcepk0o8(chr(562 - 514) + chr(0b1101111) + '\063' + chr(51) + chr(53), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + '\063' + chr(0b101010 + 0o15) + '\x37', 0o10), nzTpIcepk0o8(chr(838 - 790) + '\157' + chr(0b110010) + chr(0b1001 + 0o56), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(51) + chr(1640 - 1587) + '\060', 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + '\061' + '\062' + chr(0b11100 + 0o24), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(49) + chr(51) + chr(1515 - 1462), ord("\x08")), nzTpIcepk0o8(chr(0b11100 + 0o24) + chr(0b1101111) + chr(0b110101) + chr(171 - 121), 0o10), nzTpIcepk0o8(chr(48) + '\157' + '\x31' + chr(0b110100) + '\067', 8), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110010) + '\064' + '\x36', 0b1000), nzTpIcepk0o8('\060' + '\157' + chr(0b110010) + chr(1127 - 1077) + chr(1291 - 1243), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(1423 - 1374) + '\x36' + chr(0b100101 + 0o20), 64271 - 64263), nzTpIcepk0o8('\060' + chr(0b1010110 + 0o31) + chr(0b110001) + chr(1832 - 1781) + chr(0b101100 + 0o12), 0o10), nzTpIcepk0o8(chr(0b10111 + 0o31) + '\x6f' + chr(1559 - 1509) + '\x32' + '\064', ord("\x08")), nzTpIcepk0o8(chr(0b11 + 0o55) + chr(0b1101111) + chr(49) + '\x33' + chr(0b110111), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + '\063' + '\x30' + chr(52), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1100111 + 0o10) + '\x32' + chr(1469 - 1421) + '\x30', 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110011) + chr(0b110011), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + '\063' + '\067', ord("\x08")), nzTpIcepk0o8(chr(0b100110 + 0o12) + chr(111) + chr(0b10010 + 0o37) + chr(0b110111) + '\063', 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(2029 - 1979) + '\064', 37301 - 37293), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(51) + chr(0b110101) + chr(53), 21002 - 20994), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110001) + '\065' + chr(1678 - 1628), 64690 - 64682), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(49) + chr(1311 - 1263) + '\x36', 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(0b11111 + 0o30) + '\x35', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(1946 - 1897) + chr(49) + chr(49), 0b1000), nzTpIcepk0o8(chr(0b1 + 0o57) + chr(0b11 + 0o154) + chr(0b101001 + 0o10) + chr(48) + chr(0b110001 + 0o6), 50893 - 50885), nzTpIcepk0o8(chr(1957 - 1909) + chr(0b1101111) + chr(0b110010) + chr(0b100011 + 0o22) + chr(2419 - 2369), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(0b110001) + chr(0b100001 + 0o20) + '\x30', 0o10), nzTpIcepk0o8('\060' + chr(0b1101011 + 0o4) + chr(1293 - 1243) + chr(0b101000 + 0o12) + '\061', 4727 - 4719), nzTpIcepk0o8(chr(1076 - 1028) + chr(540 - 429) + '\x36' + '\x30', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\062' + '\x32' + '\062', 0b1000), nzTpIcepk0o8(chr(504 - 456) + chr(1516 - 1405) + chr(0b101001 + 0o11) + '\066' + chr(0b110001), 0o10), nzTpIcepk0o8('\x30' + chr(10544 - 10433) + chr(1288 - 1237) + chr(1117 - 1065) + chr(0b110100), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(0b10 + 0o61) + '\x31' + '\063', 18178 - 18170), nzTpIcepk0o8(chr(0b110000) + chr(891 - 780) + chr(0b1010 + 0o52) + chr(1481 - 1428), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(200 - 151) + chr(2721 - 2668) + chr(142 - 93), 22317 - 22309)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(53) + chr(0b101 + 0o53), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xe3'), chr(769 - 669) + chr(516 - 415) + chr(99) + '\x6f' + '\144' + '\145')('\165' + chr(11130 - 11014) + chr(0b11 + 0o143) + chr(408 - 363) + chr(0b111000)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def YdYdoyJ2I7O2(hXMPsSrOQzbh, At656iyyS8xP, YVEAYYbVfwPD, *eemPYp2vtTSr, **q5n0sHDDTy90) -> roI3spqORKae(ES5oEprVxulp(b'\x9d\xdb\x08\x1e\xb8\x8cd'), '\144' + chr(101) + chr(2586 - 2487) + '\x6f' + '\x64' + chr(8063 - 7962))(chr(117) + '\x74' + '\146' + chr(0b10001 + 0o34) + chr(0b101111 + 0o11)):
conU5pBPX9i7 = bE3SqjreW2iy(hXMPsSrOQzbh, YVEAYYbVfwPD, hXMPsSrOQzbh._gr)
if xDaRFG__qcx4 is not None:
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xbb\xc7\x1e,\x8e\x90$\x9c!\n\x18\x0f'), '\x64' + chr(101) + chr(0b1100011) + chr(0b1101111) + chr(6901 - 6801) + chr(101))(chr(6001 - 5884) + '\x74' + '\146' + '\x2d' + '\x38'))(tNK1nzOSYtNR, roI3spqORKae(ES5oEprVxulp(b'\xac\xcd\x03'), '\144' + chr(0b1100101) + chr(2135 - 2036) + chr(0b1101111) + '\144' + chr(5783 - 5682))('\165' + '\x74' + chr(0b111111 + 0o47) + chr(45) + chr(0b11 + 0o65)), __now=roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xa3\xc6\x10'), '\144' + '\145' + '\143' + chr(0b1101111) + chr(100) + chr(101))(chr(0b1110101) + chr(0b101100 + 0o110) + chr(0b1100110) + '\x2d' + chr(0b111000)))(), fn=YVEAYYbVfwPD, args=eemPYp2vtTSr, kwargs=q5n0sHDDTy90)
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xa0\xccVK\x85\xa8"\x8dc\x11LV'), '\144' + chr(0b1100101) + chr(4471 - 4372) + '\x6f' + chr(100) + chr(0b1100101))(chr(0b110000 + 0o105) + chr(0b1110100) + chr(5061 - 4959) + chr(45) + '\070'))(At656iyyS8xP, roI3spqORKae(conU5pBPX9i7, roI3spqORKae(ES5oEprVxulp(b'\xba\xd8TD\x8a\xc7Q\xa0e4\x122'), '\x64' + '\x65' + '\143' + '\x6f' + chr(0b10001 + 0o123) + chr(5208 - 5107))(chr(117) + '\164' + chr(102) + '\x2d' + chr(0b101 + 0o63))), *eemPYp2vtTSr, **q5n0sHDDTy90)
return conU5pBPX9i7 |
ElementAI/greensim | greensim/__init__.py | Simulator.run | def run(self, duration: float = inf) -> None:
"""
Runs the simulation until a stopping condition is met (no more events, or an event invokes method stop()), or
until the simulated clock hits the given duration.
"""
if _logger is not None:
self._log(INFO, "run", __now=self.now(), duration=duration)
counter_stop_event = None
if duration != inf:
counter_stop_event = self._counter
self._schedule(duration, self.stop)
self._is_running = True
while self.is_running and len(self._events) > 0:
event = heappop(self._events)
self._ts_now = event.timestamp or self._ts_now
event.execute(self)
if len(self._events) == 0:
if _logger is not None:
self._log(DEBUG, "out-of-events", __now=self.now())
self.stop()
if counter_stop_event is not None:
# Change the planned stop to a no-op. We would rather eliminate it, but this would force a re-sort of the
# event queue.
for (i, event) in enumerate(self._events):
if event.identifier == counter_stop_event:
if _logger is not None:
self._log(DEBUG, "cancel-stop", counter=counter_stop_event)
event.cancel()
break | python | def run(self, duration: float = inf) -> None:
"""
Runs the simulation until a stopping condition is met (no more events, or an event invokes method stop()), or
until the simulated clock hits the given duration.
"""
if _logger is not None:
self._log(INFO, "run", __now=self.now(), duration=duration)
counter_stop_event = None
if duration != inf:
counter_stop_event = self._counter
self._schedule(duration, self.stop)
self._is_running = True
while self.is_running and len(self._events) > 0:
event = heappop(self._events)
self._ts_now = event.timestamp or self._ts_now
event.execute(self)
if len(self._events) == 0:
if _logger is not None:
self._log(DEBUG, "out-of-events", __now=self.now())
self.stop()
if counter_stop_event is not None:
# Change the planned stop to a no-op. We would rather eliminate it, but this would force a re-sort of the
# event queue.
for (i, event) in enumerate(self._events):
if event.identifier == counter_stop_event:
if _logger is not None:
self._log(DEBUG, "cancel-stop", counter=counter_stop_event)
event.cancel()
break | [
"def",
"run",
"(",
"self",
",",
"duration",
":",
"float",
"=",
"inf",
")",
"->",
"None",
":",
"if",
"_logger",
"is",
"not",
"None",
":",
"self",
".",
"_log",
"(",
"INFO",
",",
"\"run\"",
",",
"__now",
"=",
"self",
".",
"now",
"(",
")",
",",
"duration",
"=",
"duration",
")",
"counter_stop_event",
"=",
"None",
"if",
"duration",
"!=",
"inf",
":",
"counter_stop_event",
"=",
"self",
".",
"_counter",
"self",
".",
"_schedule",
"(",
"duration",
",",
"self",
".",
"stop",
")",
"self",
".",
"_is_running",
"=",
"True",
"while",
"self",
".",
"is_running",
"and",
"len",
"(",
"self",
".",
"_events",
")",
">",
"0",
":",
"event",
"=",
"heappop",
"(",
"self",
".",
"_events",
")",
"self",
".",
"_ts_now",
"=",
"event",
".",
"timestamp",
"or",
"self",
".",
"_ts_now",
"event",
".",
"execute",
"(",
"self",
")",
"if",
"len",
"(",
"self",
".",
"_events",
")",
"==",
"0",
":",
"if",
"_logger",
"is",
"not",
"None",
":",
"self",
".",
"_log",
"(",
"DEBUG",
",",
"\"out-of-events\"",
",",
"__now",
"=",
"self",
".",
"now",
"(",
")",
")",
"self",
".",
"stop",
"(",
")",
"if",
"counter_stop_event",
"is",
"not",
"None",
":",
"# Change the planned stop to a no-op. We would rather eliminate it, but this would force a re-sort of the",
"# event queue.",
"for",
"(",
"i",
",",
"event",
")",
"in",
"enumerate",
"(",
"self",
".",
"_events",
")",
":",
"if",
"event",
".",
"identifier",
"==",
"counter_stop_event",
":",
"if",
"_logger",
"is",
"not",
"None",
":",
"self",
".",
"_log",
"(",
"DEBUG",
",",
"\"cancel-stop\"",
",",
"counter",
"=",
"counter_stop_event",
")",
"event",
".",
"cancel",
"(",
")",
"break"
] | Runs the simulation until a stopping condition is met (no more events, or an event invokes method stop()), or
until the simulated clock hits the given duration. | [
"Runs",
"the",
"simulation",
"until",
"a",
"stopping",
"condition",
"is",
"met",
"(",
"no",
"more",
"events",
"or",
"an",
"event",
"invokes",
"method",
"stop",
"()",
")",
"or",
"until",
"the",
"simulated",
"clock",
"hits",
"the",
"given",
"duration",
"."
] | f160e8b57d69f6ef469f2e991cc07b7721e08a91 | https://github.com/ElementAI/greensim/blob/f160e8b57d69f6ef469f2e991cc07b7721e08a91/greensim/__init__.py#L315-L346 | train | Runs the simulation until a stopping condition is met. | 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,GA4AN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L4sFo6RhVJa,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(7181 - 7070) + chr(51) + '\x36' + chr(51), 47417 - 47409), nzTpIcepk0o8(chr(0b100000 + 0o20) + chr(0b10000 + 0o137) + '\x37' + '\x31', 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(0b10011 + 0o37) + chr(2834 - 2780) + '\x35', ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + '\063' + chr(52) + '\060', 0o10), nzTpIcepk0o8(chr(0b100001 + 0o17) + chr(111) + chr(0b110001 + 0o0) + chr(0b110001) + '\x30', 0b1000), nzTpIcepk0o8('\060' + chr(0b1100001 + 0o16) + chr(1961 - 1911) + chr(54), 44036 - 44028), nzTpIcepk0o8(chr(1123 - 1075) + '\157' + '\062' + chr(54) + chr(50), 0b1000), nzTpIcepk0o8(chr(48) + chr(2339 - 2228) + chr(473 - 423) + chr(2207 - 2156) + chr(0b11001 + 0o30), 54428 - 54420), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(50) + '\060' + '\x30', 44663 - 44655), nzTpIcepk0o8(chr(153 - 105) + chr(0b1101111) + chr(51) + chr(2004 - 1953), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(11205 - 11094) + chr(0b110010) + chr(54) + chr(0b100101 + 0o15), 8), nzTpIcepk0o8(chr(0b1101 + 0o43) + chr(111) + '\x36' + chr(1857 - 1806), ord("\x08")), nzTpIcepk0o8(chr(253 - 205) + chr(111) + chr(0b110001) + '\067' + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(0b110000 + 0o0) + chr(6956 - 6845) + chr(54) + chr(0b110011), 8), nzTpIcepk0o8('\060' + '\x6f' + '\x31' + '\x34' + chr(48), 31340 - 31332), nzTpIcepk0o8('\060' + chr(0b100011 + 0o114) + chr(2374 - 2325) + '\066' + chr(0b10 + 0o56), 54030 - 54022), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b10011 + 0o44) + chr(55), 7781 - 7773), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(582 - 531) + chr(48) + chr(0b110111), 8418 - 8410), nzTpIcepk0o8('\060' + chr(0b1011000 + 0o27) + chr(51) + chr(2374 - 2321) + '\x34', 0b1000), nzTpIcepk0o8(chr(0b10110 + 0o32) + '\x6f' + '\061' + chr(49) + '\061', 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(1676 - 1626) + chr(52) + chr(1221 - 1169), ord("\x08")), nzTpIcepk0o8(chr(2293 - 2245) + '\x6f' + '\060', 0o10), nzTpIcepk0o8('\060' + chr(0b1000 + 0o147) + chr(825 - 776) + chr(49) + chr(0b110010 + 0o3), 1984 - 1976), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(2583 - 2529) + chr(0b110001), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(49) + '\x35' + chr(0b110010), 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(51) + chr(0b1111 + 0o41) + '\062', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x33' + '\x30' + chr(49), 3694 - 3686), nzTpIcepk0o8(chr(0b110 + 0o52) + chr(0b1010011 + 0o34) + '\062' + chr(0b110111) + '\062', 0b1000), nzTpIcepk0o8(chr(0b10010 + 0o36) + chr(0b1101111) + chr(49) + '\060' + chr(0b110011), 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(2117 - 2068) + chr(2574 - 2519) + '\x37', ord("\x08")), nzTpIcepk0o8(chr(1267 - 1219) + '\x6f' + chr(581 - 532) + chr(54) + '\x36', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x32' + chr(0b110111) + chr(0b110000), 0b1000), nzTpIcepk0o8(chr(0b10011 + 0o35) + chr(111) + '\061' + chr(0b110011) + chr(0b110000), 14036 - 14028), nzTpIcepk0o8(chr(520 - 472) + '\157' + chr(49) + chr(53) + '\066', 0o10), nzTpIcepk0o8(chr(0b100 + 0o54) + chr(2424 - 2313) + '\062' + '\065' + chr(0b11000 + 0o33), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(0b110011) + chr(0b11011 + 0o33) + chr(51), 8), nzTpIcepk0o8(chr(0b110000 + 0o0) + chr(0b1101111) + chr(0b11111 + 0o22) + chr(223 - 172) + '\065', ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b100 + 0o57) + '\x32', 0o10), nzTpIcepk0o8('\x30' + chr(0b1010101 + 0o32) + chr(2235 - 2185) + chr(0b101000 + 0o11) + chr(0b110000), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b101101 + 0o12) + chr(0b110000), 60730 - 60722)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(2292 - 2244) + chr(0b1101111) + chr(53) + '\x30', 63204 - 63196)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xdd'), chr(896 - 796) + chr(101) + '\143' + chr(111) + chr(0b1000111 + 0o35) + '\x65')(chr(11177 - 11060) + chr(116) + chr(0b1010100 + 0o22) + '\x2d' + chr(551 - 495)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def qnPOIdBQJdzY(hXMPsSrOQzbh, iMj2_O01ri67=fMNxX9dGa5H9) -> None:
if xDaRFG__qcx4 is not None:
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x85W\xcc\xb1\x1by\x81\xed\xf1L\x80['), chr(4090 - 3990) + chr(0b1100101) + '\143' + chr(111) + chr(9993 - 9893) + chr(0b101001 + 0o74))('\x75' + chr(0b101111 + 0o105) + chr(0b11011 + 0o113) + '\x2d' + chr(2096 - 2040)))(tNK1nzOSYtNR, roI3spqORKae(ES5oEprVxulp(b'\x81L\xdb'), chr(100) + chr(0b111011 + 0o52) + chr(0b1001111 + 0o24) + chr(111) + '\144' + '\x65')(chr(117) + chr(116) + chr(0b101010 + 0o74) + chr(45) + chr(0b111000)), __now=roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x9dV\xc2'), '\x64' + chr(0b1100101 + 0o0) + chr(0b111111 + 0o44) + chr(10884 - 10773) + chr(0b1100100) + '\145')('\x75' + chr(0b1001010 + 0o52) + chr(0b1000 + 0o136) + chr(0b100010 + 0o13) + chr(277 - 221)))(), duration=iMj2_O01ri67)
_M1UAUhvKiwq = None
if iMj2_O01ri67 != fMNxX9dGa5H9:
_M1UAUhvKiwq = hXMPsSrOQzbh.dnJppW5gbzlh
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x9e\\\x84\xd6\x10A\x87\xfc\xb3W\xd4\x02'), chr(100) + chr(0b1010110 + 0o17) + chr(0b10110 + 0o115) + chr(11560 - 11449) + chr(3939 - 3839) + chr(0b1110 + 0o127))('\165' + chr(0b1110100) + chr(102) + chr(1833 - 1788) + '\070'))(iMj2_O01ri67, roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x97`\xff\x82\n\x7f\xeb\xd6\xdfu\xf5v'), chr(0b110100 + 0o60) + chr(0b1110 + 0o127) + chr(0b1001111 + 0o24) + '\x6f' + chr(5905 - 5805) + '\x65')(chr(117) + '\164' + '\146' + '\055' + chr(2381 - 2325))))
hXMPsSrOQzbh.QI7XW2oRazBw = nzTpIcepk0o8('\x30' + '\x6f' + chr(0b1001 + 0o50), ord("\x08"))
while roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x8a~\x8c\xb4|c\xdd\xee\xe8h\x80F'), chr(0b1100100) + '\x65' + chr(3152 - 3053) + chr(0b1101111) + chr(4205 - 4105) + chr(2808 - 2707))(chr(117) + chr(116) + chr(5999 - 5897) + chr(45) + '\x38')) and ftfygxgFas5X(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x89J\xf7\xa1\x12U\xed\xdc\xeaP\xd0\x7f'), '\144' + '\145' + chr(99) + chr(111) + chr(100) + chr(101))(chr(9750 - 9633) + '\x74' + '\x66' + '\x2d' + chr(0b100011 + 0o25)))) > nzTpIcepk0o8(chr(962 - 914) + chr(12220 - 12109) + '\x30', 8):
D4ybylS07yGH = OkilouMdFJvr(hXMPsSrOQzbh.zsBAZC_EjKbL)
hXMPsSrOQzbh.Qu4LkdPrDbmZ = D4ybylS07yGH.rob7nZM55s6v or hXMPsSrOQzbh.Qu4LkdPrDbmZ
roI3spqORKae(D4ybylS07yGH, roI3spqORKae(ES5oEprVxulp(b'\xb0j\x81\xb3\x7fD\xde\xd7\xe4O\xc1J'), chr(2606 - 2506) + '\x65' + '\143' + chr(111) + '\144' + '\x65')('\165' + chr(0b1110100) + chr(9881 - 9779) + chr(0b101101) + '\070'))(hXMPsSrOQzbh)
if ftfygxgFas5X(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x89J\xf7\xa1\x12U\xed\xdc\xeaP\xd0\x7f'), chr(0b1100100) + chr(0b1001001 + 0o34) + chr(0b1100011) + chr(0b1010110 + 0o31) + '\x64' + chr(0b101100 + 0o71))(chr(0b1111 + 0o146) + chr(0b1000001 + 0o63) + '\x66' + '\055' + '\070'))) == nzTpIcepk0o8('\x30' + '\157' + chr(48), 8):
if xDaRFG__qcx4 is not None:
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x85W\xcc\xb1\x1by\x81\xed\xf1L\x80['), '\x64' + '\x65' + chr(9797 - 9698) + chr(111) + chr(0b101111 + 0o65) + '\145')(chr(3045 - 2928) + chr(0b1110100) + chr(0b1100110) + chr(45) + chr(0b111000)))(XCtmWrNp_YK6, roI3spqORKae(ES5oEprVxulp(b"\x9cL\xc1\xcd'p\x9f\xfc\xf6~\xdcG\n"), '\x64' + chr(0b1100101) + chr(7516 - 7417) + chr(0b1101111) + '\144' + chr(0b1010011 + 0o22))('\165' + '\x74' + chr(102) + '\055' + chr(0b111000)), __now=roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x9dV\xc2'), chr(0b1100100) + '\145' + chr(99) + '\x6f' + chr(0b11101 + 0o107) + chr(0b10001 + 0o124))('\x75' + '\164' + chr(0b1100110) + chr(0b101101) + chr(1748 - 1692)))())
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x97`\xff\x82\n\x7f\xeb\xd6\xdfu\xf5v'), chr(1343 - 1243) + chr(6167 - 6066) + chr(99) + '\157' + chr(100) + chr(101))('\165' + '\164' + chr(102) + '\055' + chr(0b111000)))()
if _M1UAUhvKiwq is not None:
for (ZlbFMSG8gCoF, D4ybylS07yGH) in _kV_Bomx8PZ4(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x89J\xf7\xa1\x12U\xed\xdc\xeaP\xd0\x7f'), '\x64' + chr(7083 - 6982) + chr(99) + '\x6f' + '\x64' + chr(6241 - 6140))(chr(12318 - 12201) + chr(0b10000 + 0o144) + '\x66' + '\055' + chr(417 - 361)))):
if roI3spqORKae(D4ybylS07yGH, roI3spqORKae(ES5oEprVxulp(b'\x8aC\xf7\xab"&\xe4\xde\xe5O\xf6e'), chr(485 - 385) + chr(3906 - 3805) + chr(9416 - 9317) + '\x6f' + '\144' + '\145')(chr(8776 - 8659) + chr(5845 - 5729) + chr(102) + '\055' + chr(0b111000))) == _M1UAUhvKiwq:
if xDaRFG__qcx4 is not None:
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x85W\xcc\xb1\x1by\x81\xed\xf1L\x80['), chr(0b101110 + 0o66) + chr(0b1010000 + 0o25) + chr(0b1100011) + chr(0b1011000 + 0o27) + chr(0b1001011 + 0o31) + chr(289 - 188))(chr(0b1011000 + 0o35) + chr(5658 - 5542) + chr(5086 - 4984) + chr(1927 - 1882) + '\070'))(XCtmWrNp_YK6, roI3spqORKae(ES5oEprVxulp(b'\x90X\xdb\x83-z\x9f\xea\xf4t\xc2'), chr(5729 - 5629) + '\x65' + chr(1592 - 1493) + chr(4644 - 4533) + chr(0b101000 + 0o74) + chr(0b1100101))(chr(117) + '\164' + chr(0b101011 + 0o73) + '\x2d' + chr(956 - 900)), counter=_M1UAUhvKiwq)
roI3spqORKae(D4ybylS07yGH, roI3spqORKae(ES5oEprVxulp(b'\x90X\xdb\x83-z'), chr(0b1011110 + 0o6) + chr(101) + chr(0b100000 + 0o103) + chr(0b1110 + 0o141) + chr(100) + chr(0b100010 + 0o103))(chr(117) + '\164' + '\x66' + chr(289 - 244) + chr(0b0 + 0o70)))()
break |
ElementAI/greensim | greensim/__init__.py | Simulator.step | def step(self) -> None:
"""
Runs a single event of the simulation.
"""
event = heappop(self._events)
self._ts_now = event.timestamp or self._ts_now
event.execute(self) | python | def step(self) -> None:
"""
Runs a single event of the simulation.
"""
event = heappop(self._events)
self._ts_now = event.timestamp or self._ts_now
event.execute(self) | [
"def",
"step",
"(",
"self",
")",
"->",
"None",
":",
"event",
"=",
"heappop",
"(",
"self",
".",
"_events",
")",
"self",
".",
"_ts_now",
"=",
"event",
".",
"timestamp",
"or",
"self",
".",
"_ts_now",
"event",
".",
"execute",
"(",
"self",
")"
] | Runs a single event of the simulation. | [
"Runs",
"a",
"single",
"event",
"of",
"the",
"simulation",
"."
] | f160e8b57d69f6ef469f2e991cc07b7721e08a91 | https://github.com/ElementAI/greensim/blob/f160e8b57d69f6ef469f2e991cc07b7721e08a91/greensim/__init__.py#L348-L354 | train | Runs a single event of the simulation. | GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,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86v,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(154 - 43) + chr(0b110010) + '\x36' + '\x36', 45552 - 45544), nzTpIcepk0o8(chr(370 - 322) + chr(0b1101111) + '\x32' + '\065' + chr(1696 - 1644), 48492 - 48484), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b100101 + 0o14) + chr(0b11000 + 0o32) + chr(0b100110 + 0o17), 42673 - 42665), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b10011 + 0o36) + chr(0b1000 + 0o54) + '\x34', 0o10), nzTpIcepk0o8(chr(0b101101 + 0o3) + chr(0b100110 + 0o111) + '\x33' + '\062' + '\x33', ord("\x08")), nzTpIcepk0o8(chr(0b11101 + 0o23) + chr(111) + '\062' + chr(111 - 58) + chr(54), 0o10), nzTpIcepk0o8(chr(0b100100 + 0o14) + chr(111) + chr(51) + '\067' + chr(0b110010), 27005 - 26997), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110010) + chr(1798 - 1745) + chr(0b110101), 13347 - 13339), nzTpIcepk0o8(chr(2031 - 1983) + chr(0b111000 + 0o67) + chr(0b110010) + chr(0b110111) + '\061', 56399 - 56391), nzTpIcepk0o8(chr(0b10010 + 0o36) + '\157' + '\x32' + chr(2392 - 2340) + chr(0b110111), ord("\x08")), nzTpIcepk0o8(chr(1892 - 1844) + chr(4142 - 4031) + chr(0b11111 + 0o22) + '\x31' + chr(2238 - 2187), 0o10), nzTpIcepk0o8(chr(48) + chr(5393 - 5282) + chr(0b11010 + 0o27) + chr(825 - 774) + '\060', 0o10), nzTpIcepk0o8('\060' + chr(0b1 + 0o156) + chr(55) + chr(0b11000 + 0o31), 3238 - 3230), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110001) + '\x31' + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(52), 58930 - 58922), nzTpIcepk0o8(chr(0b110000) + chr(0b1 + 0o156) + chr(0b101010 + 0o10) + chr(0b110001) + '\060', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b111110 + 0o61) + chr(0b110010) + chr(0b1110 + 0o51) + chr(0b111 + 0o51), 0b1000), nzTpIcepk0o8(chr(2194 - 2146) + chr(111) + '\063' + chr(48), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(51) + chr(0b110101) + chr(48), 38463 - 38455), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110010) + chr(1782 - 1732) + chr(51), 62902 - 62894), nzTpIcepk0o8(chr(48) + '\157' + '\061' + '\063' + chr(0b110000), 8), nzTpIcepk0o8('\060' + chr(0b1011000 + 0o27) + '\063' + chr(0b110011) + chr(0b11010 + 0o30), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(0b101111 + 0o6) + '\064', 33618 - 33610), nzTpIcepk0o8(chr(1586 - 1538) + '\157' + chr(2129 - 2079) + chr(0b110010), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(2114 - 2065) + chr(2102 - 2054) + '\063', ord("\x08")), nzTpIcepk0o8(chr(619 - 571) + '\157' + chr(50) + chr(1427 - 1377) + chr(243 - 189), 0o10), nzTpIcepk0o8(chr(1348 - 1300) + '\157' + chr(52), 8), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b100101 + 0o14) + chr(0b110110) + chr(2299 - 2249), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b11100 + 0o27) + '\063' + chr(48), 0b1000), nzTpIcepk0o8(chr(0b101001 + 0o7) + '\x6f' + chr(1959 - 1910) + chr(0b10 + 0o63) + chr(1922 - 1867), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + '\062' + '\x35' + chr(0b101111 + 0o5), 8), nzTpIcepk0o8(chr(48) + chr(2979 - 2868) + chr(0b11011 + 0o26) + chr(0b110110) + '\x33', 62878 - 62870), nzTpIcepk0o8(chr(0b1010 + 0o46) + chr(0b1101111) + chr(0b110010) + chr(0b110000) + chr(54), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\061' + '\066' + '\065', 0o10), nzTpIcepk0o8('\x30' + chr(313 - 202) + chr(1442 - 1393) + chr(0b110111) + '\x30', 0o10), nzTpIcepk0o8(chr(890 - 842) + '\x6f' + chr(0b110111) + chr(0b101000 + 0o12), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + '\x32' + '\066' + chr(52), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + '\x33' + chr(0b110101) + chr(399 - 351), 8), nzTpIcepk0o8('\x30' + chr(7650 - 7539) + chr(51) + '\062' + chr(1499 - 1445), 0o10), nzTpIcepk0o8(chr(48) + chr(2301 - 2190) + '\063' + '\x35', 61379 - 61371)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x35' + '\060', 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x98'), chr(0b101011 + 0o71) + chr(8450 - 8349) + '\x63' + chr(2464 - 2353) + chr(0b1100100) + '\x65')('\x75' + chr(1800 - 1684) + '\x66' + '\055' + chr(56)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def ZiKB99Xs91Lo(hXMPsSrOQzbh) -> None:
D4ybylS07yGH = OkilouMdFJvr(hXMPsSrOQzbh.zsBAZC_EjKbL)
hXMPsSrOQzbh.Qu4LkdPrDbmZ = D4ybylS07yGH.rob7nZM55s6v or hXMPsSrOQzbh.Qu4LkdPrDbmZ
roI3spqORKae(D4ybylS07yGH, roI3spqORKae(ES5oEprVxulp(b'\xf5\xffa7\xe4\xfc\x96\xe3\xdd\xf38!'), chr(0b111 + 0o135) + '\145' + chr(0b111011 + 0o50) + chr(111) + '\144' + chr(0b1100101))('\165' + chr(0b1110100) + '\x66' + chr(0b101 + 0o50) + '\070'))(hXMPsSrOQzbh) |
ElementAI/greensim | greensim/__init__.py | Simulator.stop | def stop(self) -> None:
"""
Stops the running simulation once the current event is done executing.
"""
if self.is_running:
if _logger is not None:
self._log(INFO, "stop", __now=self.now())
self._is_running = False | python | def stop(self) -> None:
"""
Stops the running simulation once the current event is done executing.
"""
if self.is_running:
if _logger is not None:
self._log(INFO, "stop", __now=self.now())
self._is_running = False | [
"def",
"stop",
"(",
"self",
")",
"->",
"None",
":",
"if",
"self",
".",
"is_running",
":",
"if",
"_logger",
"is",
"not",
"None",
":",
"self",
".",
"_log",
"(",
"INFO",
",",
"\"stop\"",
",",
"__now",
"=",
"self",
".",
"now",
"(",
")",
")",
"self",
".",
"_is_running",
"=",
"False"
] | Stops the running simulation once the current event is done executing. | [
"Stops",
"the",
"running",
"simulation",
"once",
"the",
"current",
"event",
"is",
"done",
"executing",
"."
] | f160e8b57d69f6ef469f2e991cc07b7721e08a91 | https://github.com/ElementAI/greensim/blob/f160e8b57d69f6ef469f2e991cc07b7721e08a91/greensim/__init__.py#L356-L363 | train | Stops the running simulation once the current event is done executing. | 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_4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8A,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(1659 - 1611) + chr(0b1010001 + 0o36) + chr(49) + chr(0b110001) + '\067', 38304 - 38296), nzTpIcepk0o8('\x30' + '\x6f' + chr(1046 - 995) + chr(0b11 + 0o63) + chr(0b110111), 0o10), nzTpIcepk0o8(chr(0b111 + 0o51) + chr(0b110011 + 0o74) + chr(2213 - 2159) + chr(0b10110 + 0o40), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101011 + 0o4) + chr(0b110010) + chr(2573 - 2522) + chr(851 - 798), 0o10), nzTpIcepk0o8(chr(936 - 888) + chr(0b10 + 0o155) + '\062' + chr(0b110111) + chr(1531 - 1478), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(1699 - 1647) + '\x33', 0b1000), nzTpIcepk0o8(chr(180 - 132) + '\157' + chr(51) + chr(52), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(51) + '\061' + chr(0b1010 + 0o54), ord("\x08")), nzTpIcepk0o8(chr(1651 - 1603) + chr(0b1101111) + '\062' + '\062', 0b1000), nzTpIcepk0o8('\x30' + '\157' + '\x32' + chr(0b110010) + chr(49), 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(0b110010) + '\065' + '\x30', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b100100 + 0o113) + chr(50) + chr(524 - 476) + '\x36', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x32' + '\x32' + chr(0b110000), 53470 - 53462), nzTpIcepk0o8('\060' + '\157' + chr(0b110001) + '\067' + chr(0b1011 + 0o45), 9001 - 8993), nzTpIcepk0o8(chr(800 - 752) + '\157' + '\x32' + '\x31' + '\065', 0o10), nzTpIcepk0o8(chr(885 - 837) + '\157' + '\062' + chr(0b10001 + 0o46) + chr(0b1101 + 0o52), ord("\x08")), nzTpIcepk0o8('\x30' + chr(10581 - 10470) + chr(49) + '\x34' + '\067', 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b10100 + 0o35) + '\x32' + '\062', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b101011 + 0o7) + '\x37' + chr(0b101001 + 0o15), ord("\x08")), nzTpIcepk0o8(chr(331 - 283) + chr(0b1101111) + chr(0b110001) + chr(2123 - 2075) + '\064', 0o10), nzTpIcepk0o8('\060' + chr(111) + '\061' + chr(53) + chr(48), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110001) + chr(1204 - 1152) + chr(48), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(8361 - 8250) + '\061' + '\061' + '\062', 0b1000), nzTpIcepk0o8(chr(0b1100 + 0o44) + '\157' + chr(0b1 + 0o60) + chr(53) + '\x35', 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(1361 - 1312) + '\063' + chr(0b1110 + 0o44), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(52) + chr(949 - 900), 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(251 - 201) + chr(0b110001), 25511 - 25503), nzTpIcepk0o8(chr(0b101011 + 0o5) + chr(308 - 197) + '\061' + chr(0b110001) + chr(0b110101), ord("\x08")), nzTpIcepk0o8(chr(0b11101 + 0o23) + '\157' + '\x31' + chr(960 - 912) + chr(52), 8), nzTpIcepk0o8(chr(0b110000) + chr(12091 - 11980) + chr(718 - 669) + '\066' + chr(2435 - 2383), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(2127 - 2076) + chr(0b100 + 0o56) + chr(0b101 + 0o55), 44206 - 44198), nzTpIcepk0o8('\x30' + chr(4854 - 4743) + chr(611 - 562) + '\x34' + chr(48), 8), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110111) + chr(0b110011), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110001) + '\067' + chr(0b11010 + 0o33), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110011) + chr(0b110010 + 0o5) + '\x35', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(12131 - 12020) + '\x32' + '\x32' + chr(53), 39420 - 39412), nzTpIcepk0o8('\060' + '\x6f' + '\x32' + chr(2341 - 2291) + chr(1419 - 1368), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(863 - 752) + '\063' + chr(48) + chr(55), 51702 - 51694), nzTpIcepk0o8(chr(0b1110 + 0o42) + '\x6f' + chr(0b110010) + chr(1073 - 1025) + '\060', 0b1000), nzTpIcepk0o8(chr(0b11111 + 0o21) + '\x6f' + '\062' + chr(412 - 361) + chr(2021 - 1973), 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(0b1001101 + 0o42) + chr(0b11001 + 0o34) + chr(1021 - 973), ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'a'), '\144' + chr(0b1100101) + chr(7867 - 7768) + '\157' + chr(1597 - 1497) + chr(9036 - 8935))(chr(2952 - 2835) + chr(116) + chr(9944 - 9842) + '\055' + '\x38') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def dYJbBiYO_nGE(hXMPsSrOQzbh) -> None:
if roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'6\xb0\x0f\xc9\x89Vs\xb9z\xe2\x9a\xf3'), '\x64' + chr(0b1100101) + chr(0b1100011) + chr(3785 - 3674) + chr(0b100010 + 0o102) + chr(0b1100101))(chr(0b1110101) + '\x74' + chr(102) + chr(1832 - 1787) + chr(0b10100 + 0o44))):
if xDaRFG__qcx4 is not None:
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'9\x99O\xcc\xeeL/\xbac\xc6\x9a\xee'), chr(0b1010010 + 0o22) + chr(6621 - 6520) + chr(1740 - 1641) + chr(0b1101111) + chr(0b1100100) + '\145')(chr(117) + chr(0b1011001 + 0o33) + chr(0b1100110) + chr(0b101101) + chr(0b111000)))(tNK1nzOSYtNR, roI3spqORKae(ES5oEprVxulp(b'<\x83Y\xed'), chr(1663 - 1563) + '\x65' + '\x63' + chr(111) + chr(100) + chr(101))('\x75' + chr(0b1000010 + 0o62) + '\x66' + chr(45) + chr(56)), __now=roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'!\x98A'), chr(100) + chr(101) + '\143' + '\x6f' + chr(0b1000110 + 0o36) + chr(101))(chr(0b1110101) + chr(10266 - 10150) + chr(0b1100110) + chr(0b101101) + '\070'))())
hXMPsSrOQzbh.QI7XW2oRazBw = nzTpIcepk0o8('\060' + chr(0b10 + 0o155) + chr(0b110000), 53379 - 53371) |
ElementAI/greensim | greensim/__init__.py | Simulator._clear | def _clear(self) -> None:
"""
Resets the internal state of the simulator, and sets the simulated clock back to 0.0. This discards all
outstanding events and tears down hanging process instances.
"""
for _, event, _, _ in self.events():
if hasattr(event, "__self__") and isinstance(event.__self__, Process): # type: ignore
event.__self__.throw() # type: ignore
self._events.clear()
self._ts_now = 0.0 | python | def _clear(self) -> None:
"""
Resets the internal state of the simulator, and sets the simulated clock back to 0.0. This discards all
outstanding events and tears down hanging process instances.
"""
for _, event, _, _ in self.events():
if hasattr(event, "__self__") and isinstance(event.__self__, Process): # type: ignore
event.__self__.throw() # type: ignore
self._events.clear()
self._ts_now = 0.0 | [
"def",
"_clear",
"(",
"self",
")",
"->",
"None",
":",
"for",
"_",
",",
"event",
",",
"_",
",",
"_",
"in",
"self",
".",
"events",
"(",
")",
":",
"if",
"hasattr",
"(",
"event",
",",
"\"__self__\"",
")",
"and",
"isinstance",
"(",
"event",
".",
"__self__",
",",
"Process",
")",
":",
"# type: ignore",
"event",
".",
"__self__",
".",
"throw",
"(",
")",
"# type: ignore",
"self",
".",
"_events",
".",
"clear",
"(",
")",
"self",
".",
"_ts_now",
"=",
"0.0"
] | Resets the internal state of the simulator, and sets the simulated clock back to 0.0. This discards all
outstanding events and tears down hanging process instances. | [
"Resets",
"the",
"internal",
"state",
"of",
"the",
"simulator",
"and",
"sets",
"the",
"simulated",
"clock",
"back",
"to",
"0",
".",
"0",
".",
"This",
"discards",
"all",
"outstanding",
"events",
"and",
"tears",
"down",
"hanging",
"process",
"instances",
"."
] | f160e8b57d69f6ef469f2e991cc07b7721e08a91 | https://github.com/ElementAI/greensim/blob/f160e8b57d69f6ef469f2e991cc07b7721e08a91/greensim/__init__.py#L372-L381 | train | Clears the internal state of the simulation and resets the simulated clock to 0. 0. | 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,DB9Ra8FN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6dh4OT,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(0b1111 + 0o140) + '\x32' + chr(0b110101) + chr(50), 0b1000), nzTpIcepk0o8('\060' + chr(4839 - 4728) + '\062' + chr(0b110111) + chr(1136 - 1081), 13341 - 13333), nzTpIcepk0o8(chr(48) + chr(0b110010 + 0o75) + '\062' + '\x34' + chr(0b10000 + 0o46), 63738 - 63730), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(910 - 860) + chr(1210 - 1157) + '\067', 0b1000), nzTpIcepk0o8(chr(0b110 + 0o52) + chr(111) + '\x33' + chr(2008 - 1958) + chr(0b11001 + 0o34), 0b1000), nzTpIcepk0o8(chr(477 - 429) + chr(0b1100100 + 0o13) + chr(0b110001) + chr(0b110111) + chr(0b1100 + 0o47), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1100111 + 0o10) + chr(0b110010) + chr(1639 - 1585) + '\063', 62712 - 62704), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(1292 - 1239) + chr(1315 - 1263), 36779 - 36771), nzTpIcepk0o8('\x30' + chr(5384 - 5273) + '\x37' + chr(50), ord("\x08")), nzTpIcepk0o8('\x30' + chr(8035 - 7924) + chr(0b11011 + 0o27) + chr(566 - 513) + chr(54), 0o10), nzTpIcepk0o8(chr(0b101011 + 0o5) + chr(111) + chr(923 - 874) + chr(2084 - 2035) + chr(0b110111), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b111000 + 0o67) + chr(50) + chr(0b110100), ord("\x08")), nzTpIcepk0o8(chr(0b10111 + 0o31) + chr(6744 - 6633) + '\063' + '\064' + chr(2069 - 2021), 0o10), nzTpIcepk0o8(chr(0b111 + 0o51) + chr(111) + chr(49) + chr(0b11001 + 0o32) + chr(0b11100 + 0o24), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(2367 - 2312) + chr(49), 0o10), nzTpIcepk0o8('\060' + chr(0b10011 + 0o134) + '\x33' + chr(0b101011 + 0o12) + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(2373 - 2262) + chr(1107 - 1056) + chr(1717 - 1667) + chr(0b110000), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b100000 + 0o117) + '\062' + chr(48), 0b1000), nzTpIcepk0o8(chr(2140 - 2092) + '\x6f' + '\062' + chr(0b110110) + chr(299 - 250), 63926 - 63918), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(263 - 213) + chr(2250 - 2200) + '\x32', ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(2055 - 2006) + chr(0b10110 + 0o33) + chr(0b100010 + 0o17), 49906 - 49898), nzTpIcepk0o8('\060' + '\x6f' + '\066' + chr(2585 - 2533), 42891 - 42883), nzTpIcepk0o8('\060' + chr(281 - 170) + chr(1165 - 1116) + '\062' + chr(0b100000 + 0o23), 65254 - 65246), nzTpIcepk0o8('\x30' + '\x6f' + '\x36' + chr(1325 - 1275), 0o10), nzTpIcepk0o8(chr(0b10 + 0o56) + '\157' + chr(2076 - 2026) + chr(0b110001) + chr(0b110110), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101001 + 0o6) + chr(51) + chr(1401 - 1351) + chr(0b110111), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(6616 - 6505) + chr(0b110001) + chr(0b110100), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + '\x33' + '\x30' + chr(2115 - 2063), 0b1000), nzTpIcepk0o8('\x30' + chr(6813 - 6702) + '\062' + chr(2729 - 2675) + chr(0b110001), 8), nzTpIcepk0o8(chr(778 - 730) + chr(111) + '\x32' + chr(1880 - 1832) + '\x36', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x31' + chr(0b110011) + '\x33', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1010101 + 0o32) + chr(49) + chr(0b110000) + chr(0b110111), 0b1000), nzTpIcepk0o8(chr(0b10100 + 0o34) + chr(0b1100001 + 0o16) + '\063' + '\x37' + chr(0b110100), 0b1000), nzTpIcepk0o8('\060' + chr(111) + '\x32' + '\067' + '\062', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b100101 + 0o112) + chr(413 - 362) + chr(0b110010), 48422 - 48414), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110001) + chr(50) + '\062', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b11101 + 0o122) + '\x31' + chr(0b110011) + '\062', 51443 - 51435), nzTpIcepk0o8(chr(124 - 76) + '\x6f' + chr(0b110000 + 0o2) + chr(658 - 604), 0o10), nzTpIcepk0o8(chr(861 - 813) + chr(111) + chr(161 - 110) + '\x32' + chr(0b10101 + 0o35), 42984 - 42976), nzTpIcepk0o8('\060' + chr(0b11010 + 0o125) + '\x32' + '\x32' + '\064', ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + chr(3366 - 3255) + '\065' + chr(0b100000 + 0o20), 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x84'), chr(6822 - 6722) + '\145' + '\x63' + chr(8319 - 8208) + chr(0b1010001 + 0o23) + chr(0b1100101))('\165' + '\x74' + chr(102) + chr(0b101101) + chr(56)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def tP7MFix0lAcA(hXMPsSrOQzbh) -> None:
for (zIqcgNgQ9U6F, D4ybylS07yGH, zIqcgNgQ9U6F, zIqcgNgQ9U6F) in roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xdc\xcb\xef\x9a\x80+\xfec`\xe1{V'), chr(0b1100100) + '\x65' + '\143' + chr(111) + chr(100) + '\145')(chr(0b1110101) + chr(116) + '\146' + chr(0b100001 + 0o14) + chr(0b110 + 0o62)))():
if dRKdVnHPFq7C(D4ybylS07yGH, roI3spqORKae(ES5oEprVxulp(b'\xf5\xe0\xd5\xca\xb9\x1d\xecs'), chr(100) + chr(0b1100101) + chr(0b100010 + 0o101) + '\157' + chr(0b1010110 + 0o16) + '\145')('\x75' + '\164' + '\146' + chr(0b101 + 0o50) + chr(353 - 297))) and suIjIS24Zkqw(roI3spqORKae(D4ybylS07yGH, roI3spqORKae(ES5oEprVxulp(b'\xf5\xe0\xd5\xca\xb9\x1d\xecs'), chr(100) + chr(101) + '\x63' + '\157' + chr(100) + chr(0b1011000 + 0o15))('\x75' + '\164' + '\146' + chr(0b100001 + 0o14) + chr(0b10001 + 0o47))), bE3SqjreW2iy):
roI3spqORKae(D4ybylS07yGH.__self__, roI3spqORKae(ES5oEprVxulp(b'\xf9\xd4\xe4\xcc\xe0(\xf4\x1eR\x98\x0bu'), chr(0b1100100) + '\145' + '\143' + chr(0b1101111) + chr(0b1100100) + '\x65')('\165' + chr(8841 - 8725) + '\x66' + chr(0b10000 + 0o35) + '\070'))()
roI3spqORKae(hXMPsSrOQzbh._events, roI3spqORKae(ES5oEprVxulp(b'\xc1\xdc\xec\x9d\xbc1\xfa\x1e[\x9b\x07^'), '\144' + '\145' + chr(0b1100011) + chr(7550 - 7439) + chr(0b1100100) + '\145')(chr(0b1110101) + '\x74' + chr(0b1100110) + chr(133 - 88) + chr(207 - 151)))()
hXMPsSrOQzbh.Qu4LkdPrDbmZ = 0.0 |
ElementAI/greensim | greensim/__init__.py | Process._run | def _run(self, *args: Any, **kwargs: Any) -> None:
"""
Wraps around the process body (the function that implements a process within the simulation) so as to catch the
eventual Interrupt that may terminate the process.
"""
try:
self._body(*args, **kwargs)
if _logger is not None:
_log(INFO, "Process", self.local.name, "die-finish")
except Interrupt:
if _logger is not None:
_log(INFO, "Process", self.local.name, "die-interrupt") | python | def _run(self, *args: Any, **kwargs: Any) -> None:
"""
Wraps around the process body (the function that implements a process within the simulation) so as to catch the
eventual Interrupt that may terminate the process.
"""
try:
self._body(*args, **kwargs)
if _logger is not None:
_log(INFO, "Process", self.local.name, "die-finish")
except Interrupt:
if _logger is not None:
_log(INFO, "Process", self.local.name, "die-interrupt") | [
"def",
"_run",
"(",
"self",
",",
"*",
"args",
":",
"Any",
",",
"*",
"*",
"kwargs",
":",
"Any",
")",
"->",
"None",
":",
"try",
":",
"self",
".",
"_body",
"(",
"*",
"args",
",",
"*",
"*",
"kwargs",
")",
"if",
"_logger",
"is",
"not",
"None",
":",
"_log",
"(",
"INFO",
",",
"\"Process\"",
",",
"self",
".",
"local",
".",
"name",
",",
"\"die-finish\"",
")",
"except",
"Interrupt",
":",
"if",
"_logger",
"is",
"not",
"None",
":",
"_log",
"(",
"INFO",
",",
"\"Process\"",
",",
"self",
".",
"local",
".",
"name",
",",
"\"die-interrupt\"",
")"
] | Wraps around the process body (the function that implements a process within the simulation) so as to catch the
eventual Interrupt that may terminate the process. | [
"Wraps",
"around",
"the",
"process",
"body",
"(",
"the",
"function",
"that",
"implements",
"a",
"process",
"within",
"the",
"simulation",
")",
"so",
"as",
"to",
"catch",
"the",
"eventual",
"Interrupt",
"that",
"may",
"terminate",
"the",
"process",
"."
] | f160e8b57d69f6ef469f2e991cc07b7721e08a91 | https://github.com/ElementAI/greensim/blob/f160e8b57d69f6ef469f2e991cc07b7721e08a91/greensim/__init__.py#L467-L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KGkaWkPPkT2,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(0b110110 + 0o71) + '\062' + chr(0b10001 + 0o42) + '\x35', 0b1000), nzTpIcepk0o8('\x30' + '\157' + '\061' + '\065' + '\060', 0o10), nzTpIcepk0o8(chr(48) + '\157' + '\x31' + chr(0b110010), ord("\x08")), nzTpIcepk0o8(chr(2182 - 2134) + '\157' + chr(0b101011 + 0o6) + chr(0b10100 + 0o36) + chr(0b110001), 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(0b100100 + 0o16) + chr(2442 - 2392) + chr(0b101011 + 0o7), 0o10), nzTpIcepk0o8('\060' + '\157' + '\061' + chr(649 - 601) + '\x33', 59486 - 59478), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\062' + '\067', 10053 - 10045), nzTpIcepk0o8(chr(48) + chr(1614 - 1503) + '\061' + chr(48) + chr(1049 - 997), 0o10), nzTpIcepk0o8(chr(48) + chr(1753 - 1642) + chr(0b110110), 22813 - 22805), nzTpIcepk0o8('\060' + chr(0b1100011 + 0o14) + '\063' + chr(48) + '\067', 0b1000), nzTpIcepk0o8(chr(2002 - 1954) + chr(3978 - 3867) + chr(0b10110 + 0o33) + chr(0b11101 + 0o30) + '\x33', 0b1000), nzTpIcepk0o8(chr(1713 - 1665) + chr(11347 - 11236) + '\x32' + '\062' + '\064', 0o10), nzTpIcepk0o8(chr(48) + chr(111) + '\x34' + chr(0b110100), ord("\x08")), nzTpIcepk0o8(chr(230 - 182) + chr(0b1001 + 0o146) + '\x31' + chr(0b101001 + 0o12) + chr(0b101001 + 0o14), 0b1000), nzTpIcepk0o8(chr(195 - 147) + '\157' + chr(50) + '\x35' + chr(0b10101 + 0o33), 39776 - 39768), nzTpIcepk0o8(chr(2207 - 2159) + chr(0b1101111) + chr(49) + chr(1339 - 1289) + '\060', 43074 - 43066), nzTpIcepk0o8(chr(48) + '\157' + '\x31' + '\061' + '\x33', 0b1000), nzTpIcepk0o8(chr(0b1100 + 0o44) + chr(0b101100 + 0o103) + chr(0b1100 + 0o52), 8), nzTpIcepk0o8('\x30' + '\157' + chr(52) + '\066', 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110010) + chr(0b11111 + 0o22) + '\060', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(5522 - 5411) + '\x32' + '\x31' + '\x34', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(1253 - 1202) + chr(54) + '\067', 27879 - 27871), nzTpIcepk0o8(chr(48) + '\157' + '\x33' + chr(50) + '\x33', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(1304 - 1253) + chr(0b110001), 0o10), nzTpIcepk0o8('\060' + chr(0b111111 + 0o60) + chr(2726 - 2671) + '\065', 22867 - 22859), nzTpIcepk0o8('\060' + chr(0b111 + 0o150) + chr(50) + chr(0b100001 + 0o25) + chr(0b101101 + 0o11), ord("\x08")), nzTpIcepk0o8(chr(0b1011 + 0o45) + chr(111) + chr(0b101001 + 0o10) + chr(0b110011 + 0o2) + chr(2525 - 2472), 40894 - 40886), nzTpIcepk0o8(chr(1484 - 1436) + '\157' + '\063' + chr(54) + chr(553 - 501), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + '\x31' + chr(0b110001) + chr(183 - 130), 0b1000), nzTpIcepk0o8('\060' + '\157' + chr(0b10000 + 0o42) + chr(382 - 328) + chr(0b110110), 8), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\062' + chr(0b110110) + chr(51), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1100000 + 0o17) + chr(0b110001) + chr(2059 - 2011) + '\x37', 0b1000), nzTpIcepk0o8('\060' + chr(3121 - 3010) + '\x33' + chr(270 - 219) + '\x37', 0o10), nzTpIcepk0o8('\x30' + chr(3938 - 3827) + '\x33' + chr(0b110011) + '\063', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1001011 + 0o44) + '\062' + chr(1305 - 1255) + '\061', 34611 - 34603), nzTpIcepk0o8(chr(0b100101 + 0o13) + chr(12234 - 12123) + chr(0b110001) + chr(55) + chr(0b111 + 0o53), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + '\061' + chr(1355 - 1305) + chr(0b10100 + 0o43), 16779 - 16771), nzTpIcepk0o8('\060' + '\x6f' + chr(51) + '\x36' + '\063', 0o10), nzTpIcepk0o8('\x30' + chr(8180 - 8069) + chr(1704 - 1655) + chr(2048 - 1997) + '\066', 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(0b100111 + 0o14) + '\064' + chr(0b101100 + 0o11), 5667 - 5659)][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + chr(0b1011110 + 0o21) + chr(1935 - 1882) + '\060', 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xb3'), chr(4695 - 4595) + '\x65' + chr(3151 - 3052) + '\x6f' + chr(0b1011101 + 0o7) + chr(0b1100101))(chr(8340 - 8223) + '\164' + '\146' + chr(573 - 528) + '\070') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def w878a10420A4(hXMPsSrOQzbh, *eemPYp2vtTSr, **q5n0sHDDTy90) -> None:
try:
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xd4)<\x1b\xd6$&3B\x82\x19\xf3'), '\x64' + chr(0b1011010 + 0o13) + chr(99) + '\157' + chr(6905 - 6805) + chr(0b11100 + 0o111))(chr(0b11001 + 0o134) + '\x74' + chr(0b1100110) + chr(0b11100 + 0o21) + chr(0b111000)))(*eemPYp2vtTSr, **q5n0sHDDTy90)
if xDaRFG__qcx4 is not None:
vnyQSo3tqW2h(tNK1nzOSYtNR, roI3spqORKae(ES5oEprVxulp(b'\xcd\x1ae2\xf70d'), chr(0b1000010 + 0o42) + '\145' + chr(0b1000010 + 0o41) + '\157' + '\x64' + chr(0b1100101))(chr(0b1110101) + chr(0b1110100) + chr(0b1100110) + chr(45) + chr(0b111000)), roI3spqORKae(hXMPsSrOQzbh.local, roI3spqORKae(ES5oEprVxulp(b'\xce$\\\x13\xa0\x01G\x05Y\xaa"\xf1'), '\144' + chr(0b1000010 + 0o43) + chr(0b11110 + 0o105) + '\157' + chr(3767 - 3667) + '\145')(chr(0b11011 + 0o132) + chr(0b101000 + 0o114) + chr(0b10000 + 0o126) + chr(45) + chr(0b111000))), roI3spqORKae(ES5oEprVxulp(b'\xf9\x01o|\xf4*y-u\xaf'), chr(0b1100100) + chr(0b1100101) + chr(1259 - 1160) + chr(111) + chr(0b1100100) + '\x65')(chr(0b110 + 0o157) + chr(116) + chr(2127 - 2025) + chr(0b100110 + 0o7) + '\x38'))
except fIpwvhWIob9v:
if xDaRFG__qcx4 is not None:
vnyQSo3tqW2h(tNK1nzOSYtNR, roI3spqORKae(ES5oEprVxulp(b'\xcd\x1ae2\xf70d'), chr(0b1100100) + chr(101) + chr(0b1010111 + 0o14) + '\157' + chr(0b1100100) + '\145')('\x75' + chr(12445 - 12329) + '\x66' + chr(45) + chr(0b11010 + 0o36)), roI3spqORKae(hXMPsSrOQzbh.local, roI3spqORKae(ES5oEprVxulp(b'\xce$\\\x13\xa0\x01G\x05Y\xaa"\xf1'), '\144' + chr(352 - 251) + '\x63' + chr(0b100111 + 0o110) + chr(100) + chr(0b1100101))(chr(0b1001010 + 0o53) + '\x74' + chr(102) + chr(45) + '\070')), roI3spqORKae(ES5oEprVxulp(b'\xf9\x01o|\xfb-c!t\xb5\x1e\xe4P'), chr(177 - 77) + chr(0b1001110 + 0o27) + chr(99) + chr(11449 - 11338) + '\144' + '\145')(chr(117) + '\164' + chr(0b110110 + 0o60) + '\x2d' + chr(56))) |
ElementAI/greensim | greensim/__init__.py | Process._bind_and_call_constructor | def _bind_and_call_constructor(self, t: type, *args) -> None:
"""
Accesses the __init__ method of a type directly and calls it with *args
This allows the constructors of both superclasses to be called, as described in get_binding.md
This could be done using two calls to super() with a hack based on how Python searches __mro__:
```
super().__init__(run, parent) # calls greenlet.greenlet.__init__
super(greenlet.greenlet, self).__init__() # calls TaggedObject.__init__
```
Python will always find greenlet.greenlet first since it is specified first, but will ignore it if it is
the first argument to super, which is meant to indicate the subclass and thus is not meant to be called on
See: https://docs.python.org/3.7/library/functions.html#super
This is indirect, confusing, and not in following with the purpose of super(), so the direct method was used
"""
t.__init__.__get__(self)(*args) | python | def _bind_and_call_constructor(self, t: type, *args) -> None:
"""
Accesses the __init__ method of a type directly and calls it with *args
This allows the constructors of both superclasses to be called, as described in get_binding.md
This could be done using two calls to super() with a hack based on how Python searches __mro__:
```
super().__init__(run, parent) # calls greenlet.greenlet.__init__
super(greenlet.greenlet, self).__init__() # calls TaggedObject.__init__
```
Python will always find greenlet.greenlet first since it is specified first, but will ignore it if it is
the first argument to super, which is meant to indicate the subclass and thus is not meant to be called on
See: https://docs.python.org/3.7/library/functions.html#super
This is indirect, confusing, and not in following with the purpose of super(), so the direct method was used
"""
t.__init__.__get__(self)(*args) | [
"def",
"_bind_and_call_constructor",
"(",
"self",
",",
"t",
":",
"type",
",",
"*",
"args",
")",
"->",
"None",
":",
"t",
".",
"__init__",
".",
"__get__",
"(",
"self",
")",
"(",
"*",
"args",
")"
] | Accesses the __init__ method of a type directly and calls it with *args
This allows the constructors of both superclasses to be called, as described in get_binding.md
This could be done using two calls to super() with a hack based on how Python searches __mro__:
```
super().__init__(run, parent) # calls greenlet.greenlet.__init__
super(greenlet.greenlet, self).__init__() # calls TaggedObject.__init__
```
Python will always find greenlet.greenlet first since it is specified first, but will ignore it if it is
the first argument to super, which is meant to indicate the subclass and thus is not meant to be called on
See: https://docs.python.org/3.7/library/functions.html#super
This is indirect, confusing, and not in following with the purpose of super(), so the direct method was used | [
"Accesses",
"the",
"__init__",
"method",
"of",
"a",
"type",
"directly",
"and",
"calls",
"it",
"with",
"*",
"args"
] | f160e8b57d69f6ef469f2e991cc07b7721e08a91 | https://github.com/ElementAI/greensim/blob/f160e8b57d69f6ef469f2e991cc07b7721e08a91/greensim/__init__.py#L480-L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d_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(0b1101111) + chr(0b10 + 0o60) + chr(0b110110) + chr(1176 - 1127), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x32' + chr(0b110001), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(51) + chr(1946 - 1895) + chr(0b110010), 0o10), nzTpIcepk0o8(chr(0b11111 + 0o21) + chr(0b11110 + 0o121) + chr(0b110010) + '\x30' + '\x36', 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(50) + chr(0b100100 + 0o16) + chr(54), 7682 - 7674), nzTpIcepk0o8(chr(0b110000) + chr(0b1001110 + 0o41) + chr(581 - 532) + chr(1582 - 1530) + chr(0b101010 + 0o15), 0o10), nzTpIcepk0o8(chr(0b101101 + 0o3) + '\157' + chr(765 - 715) + chr(0b101101 + 0o6), 0o10), nzTpIcepk0o8('\060' + chr(0b101011 + 0o104) + chr(0b110001) + chr(51), 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(51) + chr(52) + chr(0b100110 + 0o12), ord("\x08")), nzTpIcepk0o8(chr(910 - 862) + chr(0b1100100 + 0o13) + chr(872 - 817) + chr(0b100110 + 0o17), 0b1000), nzTpIcepk0o8(chr(0b11010 + 0o26) + chr(111) + '\x33' + chr(0b110011) + chr(365 - 311), 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(0b10001 + 0o41) + '\x34' + chr(0b110000), 0o10), nzTpIcepk0o8(chr(0b1000 + 0o50) + chr(0b1101111) + chr(0b11110 + 0o23) + chr(50) + '\x30', ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + '\067' + '\x35', 8), nzTpIcepk0o8(chr(0b11001 + 0o27) + chr(0b1101111) + chr(0b11000 + 0o31) + '\065', 0b1000), nzTpIcepk0o8(chr(1017 - 969) + '\157' + '\062' + chr(50) + '\x30', 0b1000), nzTpIcepk0o8(chr(1954 - 1906) + chr(7573 - 7462) + chr(0b11000 + 0o33) + chr(0b11100 + 0o27) + '\x35', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1100110 + 0o11) + '\062' + '\067' + '\062', 0b1000), nzTpIcepk0o8(chr(0b10010 + 0o36) + chr(0b1101111) + chr(49) + chr(52) + chr(0b110001 + 0o1), 50115 - 50107), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x33' + '\x31' + chr(587 - 537), 0b1000), nzTpIcepk0o8(chr(0b1111 + 0o41) + chr(0b1001001 + 0o46) + chr(303 - 252) + chr(50), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110010) + chr(0b110011) + '\063', ord("\x08")), nzTpIcepk0o8(chr(0b1001 + 0o47) + '\x6f' + '\061' + chr(0b110010) + chr(0b100000 + 0o26), 30901 - 30893), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x33' + chr(49) + chr(54), ord("\x08")), nzTpIcepk0o8(chr(0b10000 + 0o40) + chr(6712 - 6601) + chr(1140 - 1090) + chr(0b10000 + 0o44) + chr(0b11001 + 0o27), 8), nzTpIcepk0o8('\x30' + chr(0b11010 + 0o125) + chr(2187 - 2137) + chr(0b101111 + 0o7) + chr(0b110000), ord("\x08")), nzTpIcepk0o8(chr(1821 - 1773) + chr(111) + chr(2581 - 2530) + chr(0b100101 + 0o16) + chr(50), 8), nzTpIcepk0o8(chr(48) + '\157' + '\x32' + chr(2398 - 2349) + chr(48), ord("\x08")), nzTpIcepk0o8(chr(0b1011 + 0o45) + '\x6f' + '\063' + '\061' + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110011) + chr(0b110 + 0o55) + chr(52), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + '\067' + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(0b1110 + 0o42) + chr(111) + '\x32' + chr(1434 - 1383) + chr(48), 21648 - 21640), nzTpIcepk0o8('\060' + chr(0b101110 + 0o101) + chr(0b11111 + 0o24) + '\062' + '\060', 44878 - 44870), nzTpIcepk0o8('\060' + '\157' + chr(0b110001) + chr(0b110011) + chr(55), 30745 - 30737), nzTpIcepk0o8(chr(48) + chr(111) + chr(825 - 776) + '\064' + chr(0b110010 + 0o0), 8), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110101) + '\x36', 15111 - 15103), nzTpIcepk0o8(chr(0b11100 + 0o24) + chr(10443 - 10332) + chr(990 - 939) + chr(53) + chr(2121 - 2068), 0o10), nzTpIcepk0o8(chr(0b11111 + 0o21) + '\x6f' + chr(50) + chr(938 - 888) + chr(0b110100), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(658 - 607) + chr(51) + '\062', 8), nzTpIcepk0o8(chr(0b11101 + 0o23) + '\x6f' + chr(0b110011) + '\067' + chr(0b11100 + 0o30), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110101) + chr(48), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x9f'), chr(100) + chr(4401 - 4300) + chr(0b101110 + 0o65) + '\157' + chr(0b1100100) + chr(2394 - 2293))('\165' + chr(2609 - 2493) + '\x66' + chr(0b100000 + 0o15) + chr(56)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def r84ux1vvFEvn(hXMPsSrOQzbh, h3Vc_4wxEbgd, *eemPYp2vtTSr) -> None:
roI3spqORKae(h3Vc_4wxEbgd.__init__, roI3spqORKae(ES5oEprVxulp(b'\xeeN\xbd\xe3\xe28L'), chr(100) + '\145' + chr(0b1100011) + '\157' + chr(100) + chr(0b1011111 + 0o6))(chr(0b1101101 + 0o10) + chr(0b1110100) + '\146' + '\055' + chr(0b111000)))(hXMPsSrOQzbh)(*eemPYp2vtTSr) |
ElementAI/greensim | greensim/__init__.py | Process.current | def current() -> 'Process':
"""
Returns the instance of the process that is executing at the current moment.
"""
curr = greenlet.getcurrent()
if not isinstance(curr, Process):
raise TypeError("Current greenlet does not correspond to a Process instance.")
return cast(Process, greenlet.getcurrent()) | python | def current() -> 'Process':
"""
Returns the instance of the process that is executing at the current moment.
"""
curr = greenlet.getcurrent()
if not isinstance(curr, Process):
raise TypeError("Current greenlet does not correspond to a Process instance.")
return cast(Process, greenlet.getcurrent()) | [
"def",
"current",
"(",
")",
"->",
"'Process'",
":",
"curr",
"=",
"greenlet",
".",
"getcurrent",
"(",
")",
"if",
"not",
"isinstance",
"(",
"curr",
",",
"Process",
")",
":",
"raise",
"TypeError",
"(",
"\"Current greenlet does not correspond to a Process instance.\"",
")",
"return",
"cast",
"(",
"Process",
",",
"greenlet",
".",
"getcurrent",
"(",
")",
")"
] | Returns the instance of the process that is executing at the current moment. | [
"Returns",
"the",
"instance",
"of",
"the",
"process",
"that",
"is",
"executing",
"at",
"the",
"current",
"moment",
"."
] | f160e8b57d69f6ef469f2e991cc07b7721e08a91 | https://github.com/ElementAI/greensim/blob/f160e8b57d69f6ef469f2e991cc07b7721e08a91/greensim/__init__.py#L503-L510 | train | Returns the current process instance. | 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,a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d5N96r1,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(0b11101 + 0o25) + '\x33' + '\x32', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110001) + chr(1057 - 1006) + '\x33', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(1923 - 1874) + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(296 - 248) + '\157' + chr(478 - 428) + '\067' + chr(435 - 382), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b100 + 0o153) + '\062' + '\x37' + chr(0b1011 + 0o47), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b1011 + 0o53) + chr(0b100111 + 0o16), 0o10), nzTpIcepk0o8(chr(0b11100 + 0o24) + chr(0b1101111) + chr(0b10110 + 0o34) + '\x32' + chr(0b100111 + 0o16), 34346 - 34338), nzTpIcepk0o8(chr(0b100100 + 0o14) + chr(111) + chr(55) + chr(0b1010 + 0o55), ord("\x08")), nzTpIcepk0o8('\x30' + chr(5089 - 4978) + '\066' + chr(108 - 58), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(1293 - 1242) + chr(1101 - 1050) + chr(0b110111), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(50) + '\x35' + '\066', ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + '\x32' + chr(668 - 614) + chr(52), 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(0b110110) + chr(54), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101010 + 0o5) + chr(0b110011) + '\065' + '\x36', 0o10), nzTpIcepk0o8('\x30' + chr(0b101 + 0o152) + '\063' + chr(48) + chr(1781 - 1730), ord("\x08")), nzTpIcepk0o8(chr(1618 - 1570) + '\157' + chr(49) + '\x31' + chr(1353 - 1302), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b111 + 0o60) + '\065', 11459 - 11451), nzTpIcepk0o8(chr(0b110000) + chr(5075 - 4964) + chr(0b110010) + '\x34' + '\x34', 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(199 - 149) + chr(2265 - 2210) + chr(50), 8), nzTpIcepk0o8(chr(2210 - 2162) + '\157' + chr(2595 - 2544) + chr(0b11100 + 0o31) + '\064', 0b1000), nzTpIcepk0o8(chr(220 - 172) + chr(0b1101010 + 0o5) + '\x32' + '\065' + chr(54), 8), nzTpIcepk0o8('\060' + chr(0b111000 + 0o67) + '\062' + chr(49) + chr(51), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b101001 + 0o10) + chr(48) + '\063', 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(49) + chr(0b11011 + 0o30) + '\061', 0b1000), nzTpIcepk0o8(chr(1981 - 1933) + '\157' + chr(0b100011 + 0o20) + chr(2553 - 2502) + chr(0b110001), 44654 - 44646), nzTpIcepk0o8(chr(744 - 696) + chr(0b1001110 + 0o41) + chr(0b11010 + 0o31) + chr(0b110010) + '\065', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110011) + chr(0b10111 + 0o40) + chr(0b110100), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b111011 + 0o64) + chr(49) + '\x34' + chr(55), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b110010 + 0o75) + chr(0b100000 + 0o21) + chr(0b110010) + chr(2290 - 2241), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110010) + '\062' + chr(0b100101 + 0o14), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110011) + chr(1699 - 1650) + chr(53), 0b1000), nzTpIcepk0o8(chr(320 - 272) + chr(1913 - 1802) + chr(0b110001) + chr(0b100111 + 0o15), ord("\x08")), nzTpIcepk0o8(chr(0b10110 + 0o32) + '\x6f' + chr(52), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110001) + chr(48) + '\067', 47200 - 47192), nzTpIcepk0o8('\x30' + chr(0b10110 + 0o131) + chr(1569 - 1520) + chr(0b0 + 0o67) + '\x32', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x31' + chr(0b1100 + 0o47) + '\062', 0b1000), nzTpIcepk0o8(chr(0b1111 + 0o41) + chr(111) + chr(0b110010) + chr(0b110110) + '\x36', 61555 - 61547), nzTpIcepk0o8(chr(198 - 150) + chr(0b1101111) + chr(50) + chr(1618 - 1569) + '\x33', 8), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b1011 + 0o47) + chr(0b101 + 0o54) + chr(0b11110 + 0o24), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(51) + chr(54) + '\x34', ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(266 - 218) + chr(0b111 + 0o150) + chr(0b110101) + '\060', 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xb4'), '\144' + chr(0b1100101) + '\143' + '\157' + '\144' + chr(0b1100101))(chr(5913 - 5796) + '\x74' + '\x66' + chr(45) + chr(2769 - 2713)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def btnZMuSDwyyx() -> roI3spqORKae(ES5oEprVxulp(b'\xca)f\xde\xdfF\xe6'), chr(100) + chr(101) + chr(99) + '\x6f' + chr(0b1100100) + chr(2067 - 1966))(chr(9863 - 9746) + chr(116) + chr(2378 - 2276) + chr(45) + '\x38'):
TRcKLkhtHqf1 = WPjEaULY9ON4.getcurrent()
if not suIjIS24Zkqw(TRcKLkhtHqf1, bE3SqjreW2iy):
raise jZIjKu8IFANs(roI3spqORKae(ES5oEprVxulp(b'\xd9.{\xcf\xdf[\xe1\x1fU\xad\xcb\xd1X\x82\xa6?\x1d\xc0\xd5\x89\xdd\xab-6\xad\xf5\x9f\x08#\xe3\xa8\x7ft(\x14>\x96\xff\xe5\xd4\xfb{Y\xcf\xd5V\xf0LA\xff\xc7\xdaE\x9a\xa2%^\xc1\x94'), '\x64' + '\145' + chr(99) + chr(0b1011011 + 0o24) + chr(100) + chr(0b1100101))('\x75' + chr(116) + chr(0b1100110) + chr(0b11011 + 0o22) + chr(0b111000)))
return wSl4bAa1dokg(bE3SqjreW2iy, roI3spqORKae(WPjEaULY9ON4, roI3spqORKae(ES5oEprVxulp(b'\xfd>}\xde\xcfG\xe7Z\\\xab'), chr(1493 - 1393) + chr(0b1100101) + chr(99) + '\x6f' + chr(4466 - 4366) + '\x65')(chr(0b10000 + 0o145) + chr(0b10011 + 0o141) + chr(102) + '\x2d' + '\x38'))()) |
ElementAI/greensim | greensim/__init__.py | Process.resume | def resume(self) -> None:
"""
Resumes a process that has been previously paused by invoking function `pause()`. This does not interrupt the
current process or event: it merely schedules again the target process, so that its execution carries on at the
return of the `pause()` function, when this new wake-up event fires.
"""
if _logger is not None:
_log(INFO, "Process", self.local.name, "resume")
self.rsim()._schedule(0.0, self.switch) | python | def resume(self) -> None:
"""
Resumes a process that has been previously paused by invoking function `pause()`. This does not interrupt the
current process or event: it merely schedules again the target process, so that its execution carries on at the
return of the `pause()` function, when this new wake-up event fires.
"""
if _logger is not None:
_log(INFO, "Process", self.local.name, "resume")
self.rsim()._schedule(0.0, self.switch) | [
"def",
"resume",
"(",
"self",
")",
"->",
"None",
":",
"if",
"_logger",
"is",
"not",
"None",
":",
"_log",
"(",
"INFO",
",",
"\"Process\"",
",",
"self",
".",
"local",
".",
"name",
",",
"\"resume\"",
")",
"self",
".",
"rsim",
"(",
")",
".",
"_schedule",
"(",
"0.0",
",",
"self",
".",
"switch",
")"
] | Resumes a process that has been previously paused by invoking function `pause()`. This does not interrupt the
current process or event: it merely schedules again the target process, so that its execution carries on at the
return of the `pause()` function, when this new wake-up event fires. | [
"Resumes",
"a",
"process",
"that",
"has",
"been",
"previously",
"paused",
"by",
"invoking",
"function",
"pause",
"()",
".",
"This",
"does",
"not",
"interrupt",
"the",
"current",
"process",
"or",
"event",
":",
"it",
"merely",
"schedules",
"again",
"the",
"target",
"process",
"so",
"that",
"its",
"execution",
"carries",
"on",
"at",
"the",
"return",
"of",
"the",
"pause",
"()",
"function",
"when",
"this",
"new",
"wake",
"-",
"up",
"event",
"fires",
"."
] | f160e8b57d69f6ef469f2e991cc07b7721e08a91 | https://github.com/ElementAI/greensim/blob/f160e8b57d69f6ef469f2e991cc07b7721e08a91/greensim/__init__.py#L519-L527 | train | Resumes a process that has been previously paused by invoking function resume. | 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('\060' + '\157' + chr(0b110101) + chr(0b100 + 0o60), ord("\x08")), nzTpIcepk0o8(chr(1743 - 1695) + '\x6f' + '\065' + '\062', 0b1000), nzTpIcepk0o8(chr(0b10000 + 0o40) + '\157' + '\061' + chr(55), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(797 - 748) + chr(0b110011) + chr(722 - 672), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b11010 + 0o35) + chr(0b110101), 12843 - 12835), nzTpIcepk0o8(chr(429 - 381) + '\x6f' + chr(69 - 18) + '\066' + chr(49), 0o10), nzTpIcepk0o8(chr(2049 - 2001) + chr(111) + chr(0b110010) + '\063' + chr(594 - 544), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(49) + chr(48) + chr(2003 - 1952), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(49) + chr(0b110101) + chr(0b110110), 43778 - 43770), nzTpIcepk0o8('\x30' + '\157' + chr(0b11101 + 0o27) + chr(0b110110), 0b1000), nzTpIcepk0o8(chr(763 - 715) + chr(4145 - 4034) + '\062' + chr(0b1000 + 0o54) + '\x36', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\061' + '\064' + '\x31', ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + '\x32' + chr(0b110111) + chr(2055 - 2002), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110001) + '\066' + chr(0b110000), 11659 - 11651), nzTpIcepk0o8(chr(2226 - 2178) + chr(0b1101111) + chr(0b110010) + '\066' + chr(2597 - 2544), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(0b10010 + 0o37), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + '\x32' + chr(0b110111 + 0o0), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b11 + 0o56) + '\066', 19518 - 19510), nzTpIcepk0o8(chr(851 - 803) + '\x6f' + '\x32' + '\x37' + chr(0b110001), 0o10), nzTpIcepk0o8(chr(597 - 549) + chr(10804 - 10693) + '\062' + '\x31' + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(2399 - 2348) + chr(48) + '\x35', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(7267 - 7156) + chr(50) + chr(0b10100 + 0o36), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1000100 + 0o53) + chr(2121 - 2072) + '\x31' + '\x34', 0b1000), nzTpIcepk0o8(chr(0b101100 + 0o4) + '\157' + chr(0b100111 + 0o14) + chr(0b1000 + 0o53) + chr(0b110011), 8454 - 8446), nzTpIcepk0o8(chr(0b111 + 0o51) + chr(0b1101111) + '\061' + '\x32' + chr(0b110011), 4606 - 4598), nzTpIcepk0o8(chr(0b100010 + 0o16) + chr(0b1101111) + chr(618 - 567) + chr(0b11100 + 0o33) + '\x34', 59559 - 59551), nzTpIcepk0o8('\060' + chr(0b1001001 + 0o46) + chr(1348 - 1297) + chr(48) + chr(656 - 606), 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(51) + '\x37' + '\065', 0b1000), nzTpIcepk0o8(chr(0b100101 + 0o13) + '\x6f' + '\062' + chr(789 - 739) + chr(639 - 587), 64647 - 64639), nzTpIcepk0o8('\060' + chr(0b100010 + 0o115) + '\062' + chr(53) + chr(0b1010 + 0o51), ord("\x08")), nzTpIcepk0o8('\x30' + chr(6911 - 6800) + chr(50) + chr(336 - 285) + chr(0b1 + 0o65), 55308 - 55300), nzTpIcepk0o8(chr(48) + chr(8923 - 8812) + chr(0b100101 + 0o16) + '\x36' + '\062', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(547 - 498) + '\064' + '\065', ord("\x08")), nzTpIcepk0o8(chr(902 - 854) + chr(364 - 253) + chr(0b110010) + chr(0b100001 + 0o21) + '\060', 33311 - 33303), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b10100 + 0o35) + chr(79 - 26) + '\x33', ord("\x08")), nzTpIcepk0o8(chr(251 - 203) + '\x6f' + chr(0b110011) + '\066' + '\x31', 8), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110011) + chr(508 - 458) + chr(0b110110), ord("\x08")), nzTpIcepk0o8(chr(1147 - 1099) + chr(0b1101111) + '\062' + chr(0b10111 + 0o35), 0o10), nzTpIcepk0o8(chr(0b11 + 0o55) + chr(0b1101111) + chr(0b110010) + '\x31' + chr(0b110110), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(52) + chr(0b110111), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + chr(0b111000 + 0o67) + chr(0b10 + 0o63) + '\x30', 52486 - 52478)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x02'), '\144' + chr(101) + chr(99) + chr(3299 - 3188) + chr(100) + chr(0b1000110 + 0o37))(chr(0b110110 + 0o77) + chr(0b1110100) + chr(3861 - 3759) + chr(0b101101) + chr(0b101000 + 0o20)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def WaBuTgQxgBLf(hXMPsSrOQzbh) -> None:
if xDaRFG__qcx4 is not None:
vnyQSo3tqW2h(tNK1nzOSYtNR, roI3spqORKae(ES5oEprVxulp(b'|X`9X\x82\xe9'), chr(2867 - 2767) + '\x65' + chr(0b1100001 + 0o2) + chr(8398 - 8287) + chr(2943 - 2843) + chr(0b1100101))('\x75' + '\x74' + chr(0b1100110) + chr(301 - 256) + chr(0b111000)), roI3spqORKae(hXMPsSrOQzbh.local, roI3spqORKae(ES5oEprVxulp(b'\x7ffY\x18\x0f\xb3\xca\x021K\xef\x04'), chr(0b1100100) + '\145' + chr(4142 - 4043) + chr(0b1101111) + chr(1208 - 1108) + chr(0b100111 + 0o76))('\x75' + '\x74' + chr(0b1100110) + '\055' + '\070')), roI3spqORKae(ES5oEprVxulp(b'^O|/P\x94'), chr(0b1100100) + chr(0b1010010 + 0o23) + '\143' + chr(0b1101111) + '\144' + chr(0b1100101))(chr(0b1110101) + chr(0b1110100) + chr(0b100001 + 0o105) + chr(1512 - 1467) + chr(0b111000)))
roI3spqORKae(hXMPsSrOQzbh.rsim(), roI3spqORKae(ES5oEprVxulp(b'AO>le\xa6\xaf&]j\xc0P'), chr(100) + '\145' + '\x63' + chr(0b1100101 + 0o12) + chr(100) + chr(0b1011001 + 0o14))(chr(117) + '\x74' + chr(0b100111 + 0o77) + chr(0b101101) + chr(2343 - 2287)))(0.0, roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'[[<cj\xc9\xdc\x0b[O\x9e4'), chr(100) + chr(101) + chr(9071 - 8972) + chr(0b1101111) + chr(0b1100100) + '\x65')(chr(4373 - 4256) + chr(0b1110100) + '\x66' + chr(0b1110 + 0o37) + '\070'))) |
ElementAI/greensim | greensim/__init__.py | Process.interrupt | def interrupt(self, inter: Optional[Interrupt] = None) -> None:
"""
Interrupts a process that has been previously :py:meth:`pause`d or made to :py:meth:`advance`, by resuming it
immediately and raising an :py:class:`Interrupt` exception on it. This exception can be captured by the
interrupted process and leveraged for various purposes, such as timing out on a wait or generating activity
prompting immediate reaction.
:param inter:
Exception to raise on the :py:class:`Process`; if ``None`` is given, an instance of :py:class:`Interrupt` is
raised. This allows one to use specialized :py:class:`Interrupt` subclasses to as to implement
non-interfering mixed interruption stacks. For instance, a process may advance towards a certain timeout as
it waits for multiple resources concurrently. Should it hit the timeout, it would :py:meth:`interrupt` the
waiting processes so as to clean up after itself. If these processes have themselves a timeout mechanism of
their own, also based on interrupts, using a subclass can help them distinguish between these and the
clean-up interrupts.
"""
if inter is None:
inter = Interrupt()
if _logger is not None:
_log(INFO, "Process", self.local.name, "interrupt", type=type(inter).__name__)
self.rsim()._schedule(0.0, self.throw, inter) | python | def interrupt(self, inter: Optional[Interrupt] = None) -> None:
"""
Interrupts a process that has been previously :py:meth:`pause`d or made to :py:meth:`advance`, by resuming it
immediately and raising an :py:class:`Interrupt` exception on it. This exception can be captured by the
interrupted process and leveraged for various purposes, such as timing out on a wait or generating activity
prompting immediate reaction.
:param inter:
Exception to raise on the :py:class:`Process`; if ``None`` is given, an instance of :py:class:`Interrupt` is
raised. This allows one to use specialized :py:class:`Interrupt` subclasses to as to implement
non-interfering mixed interruption stacks. For instance, a process may advance towards a certain timeout as
it waits for multiple resources concurrently. Should it hit the timeout, it would :py:meth:`interrupt` the
waiting processes so as to clean up after itself. If these processes have themselves a timeout mechanism of
their own, also based on interrupts, using a subclass can help them distinguish between these and the
clean-up interrupts.
"""
if inter is None:
inter = Interrupt()
if _logger is not None:
_log(INFO, "Process", self.local.name, "interrupt", type=type(inter).__name__)
self.rsim()._schedule(0.0, self.throw, inter) | [
"def",
"interrupt",
"(",
"self",
",",
"inter",
":",
"Optional",
"[",
"Interrupt",
"]",
"=",
"None",
")",
"->",
"None",
":",
"if",
"inter",
"is",
"None",
":",
"inter",
"=",
"Interrupt",
"(",
")",
"if",
"_logger",
"is",
"not",
"None",
":",
"_log",
"(",
"INFO",
",",
"\"Process\"",
",",
"self",
".",
"local",
".",
"name",
",",
"\"interrupt\"",
",",
"type",
"=",
"type",
"(",
"inter",
")",
".",
"__name__",
")",
"self",
".",
"rsim",
"(",
")",
".",
"_schedule",
"(",
"0.0",
",",
"self",
".",
"throw",
",",
"inter",
")"
] | Interrupts a process that has been previously :py:meth:`pause`d or made to :py:meth:`advance`, by resuming it
immediately and raising an :py:class:`Interrupt` exception on it. This exception can be captured by the
interrupted process and leveraged for various purposes, such as timing out on a wait or generating activity
prompting immediate reaction.
:param inter:
Exception to raise on the :py:class:`Process`; if ``None`` is given, an instance of :py:class:`Interrupt` is
raised. This allows one to use specialized :py:class:`Interrupt` subclasses to as to implement
non-interfering mixed interruption stacks. For instance, a process may advance towards a certain timeout as
it waits for multiple resources concurrently. Should it hit the timeout, it would :py:meth:`interrupt` the
waiting processes so as to clean up after itself. If these processes have themselves a timeout mechanism of
their own, also based on interrupts, using a subclass can help them distinguish between these and the
clean-up interrupts. | [
"Interrupts",
"a",
"process",
"that",
"has",
"been",
"previously",
":",
"py",
":",
"meth",
":",
"pause",
"d",
"or",
"made",
"to",
":",
"py",
":",
"meth",
":",
"advance",
"by",
"resuming",
"it",
"immediately",
"and",
"raising",
"an",
":",
"py",
":",
"class",
":",
"Interrupt",
"exception",
"on",
"it",
".",
"This",
"exception",
"can",
"be",
"captured",
"by",
"the",
"interrupted",
"process",
"and",
"leveraged",
"for",
"various",
"purposes",
"such",
"as",
"timing",
"out",
"on",
"a",
"wait",
"or",
"generating",
"activity",
"prompting",
"immediate",
"reaction",
"."
] | f160e8b57d69f6ef469f2e991cc07b7721e08a91 | https://github.com/ElementAI/greensim/blob/f160e8b57d69f6ef469f2e991cc07b7721e08a91/greensim/__init__.py#L529-L549 | train | Interrupts a process that has been previously paused or made to advance or raise an Interrupt exception on it. | 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,YikXQdxs3Vo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98A85,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' + '\062' + chr(1357 - 1302) + '\x34', 0o10), nzTpIcepk0o8('\060' + chr(0b1001110 + 0o41) + chr(1822 - 1773) + chr(216 - 163), 11356 - 11348), nzTpIcepk0o8('\060' + '\157' + chr(0b10111 + 0o32) + '\067' + '\x37', 0o10), nzTpIcepk0o8(chr(0b100101 + 0o13) + '\157' + chr(277 - 223) + '\x31', 27941 - 27933), nzTpIcepk0o8(chr(704 - 656) + chr(0b1101111) + '\x31' + chr(51) + chr(53), 0o10), nzTpIcepk0o8('\060' + '\x6f' + '\x34' + chr(854 - 806), ord("\x08")), nzTpIcepk0o8('\x30' + chr(10727 - 10616) + chr(0b11001 + 0o34) + chr(49), 34018 - 34010), nzTpIcepk0o8('\x30' + chr(3589 - 3478) + '\064' + chr(49), ord("\x08")), nzTpIcepk0o8(chr(1681 - 1633) + '\157' + chr(0b110001) + chr(0b110100) + chr(53), 0o10), nzTpIcepk0o8(chr(0b11001 + 0o27) + '\x6f' + chr(2733 - 2680) + chr(0b110101), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(6855 - 6744) + '\x32' + '\x34' + chr(2388 - 2336), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110001) + chr(0b100101 + 0o20) + '\064', ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + '\061' + chr(2235 - 2184), 4449 - 4441), nzTpIcepk0o8(chr(48) + chr(0b1011011 + 0o24) + '\x31' + '\066' + chr(989 - 939), 0o10), nzTpIcepk0o8('\060' + chr(111) + '\x31' + chr(54) + chr(48), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110101) + chr(0b1011 + 0o50), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101100 + 0o3) + chr(2318 - 2269) + chr(249 - 200) + chr(48), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b101011 + 0o104) + '\x35' + chr(2438 - 2386), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + '\063' + chr(0b110000) + '\x32', 48389 - 48381), nzTpIcepk0o8(chr(0b110000) + chr(0b1100100 + 0o13) + chr(49) + chr(0b110010 + 0o1) + '\x32', ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + '\062' + chr(54) + chr(751 - 702), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110010) + '\x33' + '\062', 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110001) + '\x35' + '\060', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\062' + '\x32' + chr(0b10011 + 0o35), 61663 - 61655), nzTpIcepk0o8(chr(2174 - 2126) + chr(0b0 + 0o157) + chr(1902 - 1851) + chr(0b110000) + chr(50), 8), nzTpIcepk0o8(chr(415 - 367) + chr(0b1101111) + '\061' + chr(0b100011 + 0o20), 8), nzTpIcepk0o8(chr(48) + chr(111) + '\062' + '\x30' + chr(0b110010 + 0o1), 48936 - 48928), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110001) + '\x36' + chr(54), 0b1000), nzTpIcepk0o8(chr(0b101100 + 0o4) + chr(111) + '\062' + '\x35' + '\x30', 0b1000), nzTpIcepk0o8(chr(1965 - 1917) + '\x6f' + '\x31' + chr(0b100101 + 0o21), 35472 - 35464), nzTpIcepk0o8('\060' + '\x6f' + chr(49) + chr(48) + chr(0b110110), 0b1000), nzTpIcepk0o8('\060' + chr(1185 - 1074) + chr(0b110010 + 0o0) + chr(0b100011 + 0o17) + '\x30', 8), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x31' + chr(0b110011) + chr(2124 - 2074), 8), nzTpIcepk0o8(chr(0b101010 + 0o6) + chr(0b110000 + 0o77) + chr(50) + chr(303 - 252) + '\x30', 0b1000), nzTpIcepk0o8(chr(0b10 + 0o56) + '\x6f' + chr(51) + chr(0b1101 + 0o46) + chr(0b10100 + 0o34), 0b1000), nzTpIcepk0o8(chr(2302 - 2254) + chr(1833 - 1722) + chr(1887 - 1836) + chr(0b10001 + 0o43) + chr(999 - 947), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + '\062' + '\061' + chr(0b110110 + 0o0), 63483 - 63475), nzTpIcepk0o8(chr(48) + '\157' + chr(1901 - 1851) + chr(1514 - 1463) + chr(0b110001), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110101) + chr(0b10101 + 0o34), 8), nzTpIcepk0o8('\x30' + chr(382 - 271) + chr(0b110101) + '\061', 8)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b101110 + 0o2) + chr(111) + chr(0b110101) + chr(48), 47154 - 47146)] 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) + chr(111) + '\144' + chr(0b10000 + 0o125))(chr(0b0 + 0o165) + '\x74' + '\146' + chr(0b101 + 0o50) + '\x38') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def E6QEueHlDtps(hXMPsSrOQzbh, Acv0_ZtizQ5n=None) -> None:
if Acv0_ZtizQ5n is None:
Acv0_ZtizQ5n = fIpwvhWIob9v()
if xDaRFG__qcx4 is not None:
vnyQSo3tqW2h(tNK1nzOSYtNR, roI3spqORKae(ES5oEprVxulp(b'\xec\x7f\x10R8SZ'), '\144' + chr(101) + chr(0b1100011) + chr(0b1010111 + 0o30) + '\x64' + chr(101))('\165' + '\164' + chr(8030 - 7928) + chr(571 - 526) + '\070'), roI3spqORKae(hXMPsSrOQzbh.local, roI3spqORKae(ES5oEprVxulp(b'\xefA)soby`:@\xed\t'), '\x64' + '\145' + chr(99) + chr(0b1101111) + chr(7613 - 7513) + chr(475 - 374))(chr(117) + '\x74' + chr(3462 - 3360) + chr(849 - 804) + chr(0b111000))), roI3spqORKae(ES5oEprVxulp(b'\xd5c\x0bT/R\\Q\x11'), chr(100) + chr(10075 - 9974) + '\143' + chr(0b1100101 + 0o12) + chr(0b1100100) + chr(1879 - 1778))('\x75' + '\x74' + chr(102) + chr(643 - 598) + '\x38'), type=roI3spqORKae(MJ07XsN5uFgW(Acv0_ZtizQ5n), roI3spqORKae(ES5oEprVxulp(b'\xfdT\x0bu\x0fLXD5\x1d\xd0\x1d'), '\x64' + '\x65' + chr(0b1100011) + chr(0b1101111) + chr(7703 - 7603) + chr(0b1100101))('\x75' + chr(116) + chr(0b1100110) + chr(0b101101) + '\x38')))
roI3spqORKae(hXMPsSrOQzbh.rsim(), roI3spqORKae(ES5oEprVxulp(b'\xd1hN\x07\x05w\x1cDVa\xc2]'), '\144' + chr(3630 - 3529) + '\143' + chr(0b1101111) + chr(100) + chr(0b1100101))(chr(0b1110101) + '\164' + chr(8543 - 8441) + '\055' + chr(1284 - 1228)))(0.0, roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xeff=Rhsn\x13\r\x1b\xe0\r'), chr(0b1100100) + chr(0b10111 + 0o116) + chr(0b10110 + 0o115) + chr(5882 - 5771) + '\x64' + chr(0b1001000 + 0o35))('\x75' + '\x74' + chr(1205 - 1103) + chr(0b101101) + chr(0b111000))), Acv0_ZtizQ5n) |
ElementAI/greensim | greensim/__init__.py | Queue.join | def join(self, timeout: Optional[float] = None):
"""
Can be invoked only by a process: makes it join the queue. The order token is computed once for the process,
before it is enqueued. Another process or event, or control code of some sort, must invoke method `pop()` of the
queue so that the process can eventually leave the queue and carry on with its execution.
:param timeout:
If this parameter is not ``None``, it is taken as a delay at the end of which the process times out, and
leaves the queue forcibly. In such a situation, a :py:class:`Timeout` exception is raised on the process.
"""
class CancelBalk(Interrupt):
pass
self._counter += 1
if _logger is not None:
self._log(INFO, "join")
heappush(self._waiting, (self._get_order_token(self._counter), Process.current()))
proc_balk = None
if timeout is not None:
def balk(proc):
nonlocal proc_balk
try:
advance(cast(float, timeout))
proc.interrupt(Timeout())
except CancelBalk:
pass
finally:
proc_balk = None
# The balking process is started here.
proc_balk = add(balk, Process.current())
try:
pause()
except Interrupt:
current = Process.current()
for index in reversed([i for i, (_, proc) in enumerate(self._waiting) if proc is current]):
del self._waiting[index]
heapify(self._waiting)
raise
finally:
# Three situations can prompt a process to exit a queue:
#
# 1. The process is pop()ped out of the queue by a peer.
# 2. The process balk()s out after a timeout.
# 3. The process leaves the queue because of a distinct interrupt (besides CancelBalk).
#
# In cases 1 and 3, the balking process has never exited and is still in the advance() call. In both these
# cases, the balking process should itself be interrupted, otherwise it may prompt the balking of a future
# queue traversal. However, if we exit the queue because of case no. 2, the balking process is finished.
# Interrupting it would do no harm (it has been tested by accident), but we mean to be deliberate about when
# this interruption is necessary. So we perform the interrupt of the balking process only in cases 1 and 3;
# in case 2, the balk() function exits, thereby clearing the reference we have here to it. Do remark that
# whenever a timeout is not set, proc_balk remains None all the way, reducing the situation to case 1.
if proc_balk is not None:
proc_balk.interrupt(CancelBalk()) | python | def join(self, timeout: Optional[float] = None):
"""
Can be invoked only by a process: makes it join the queue. The order token is computed once for the process,
before it is enqueued. Another process or event, or control code of some sort, must invoke method `pop()` of the
queue so that the process can eventually leave the queue and carry on with its execution.
:param timeout:
If this parameter is not ``None``, it is taken as a delay at the end of which the process times out, and
leaves the queue forcibly. In such a situation, a :py:class:`Timeout` exception is raised on the process.
"""
class CancelBalk(Interrupt):
pass
self._counter += 1
if _logger is not None:
self._log(INFO, "join")
heappush(self._waiting, (self._get_order_token(self._counter), Process.current()))
proc_balk = None
if timeout is not None:
def balk(proc):
nonlocal proc_balk
try:
advance(cast(float, timeout))
proc.interrupt(Timeout())
except CancelBalk:
pass
finally:
proc_balk = None
# The balking process is started here.
proc_balk = add(balk, Process.current())
try:
pause()
except Interrupt:
current = Process.current()
for index in reversed([i for i, (_, proc) in enumerate(self._waiting) if proc is current]):
del self._waiting[index]
heapify(self._waiting)
raise
finally:
# Three situations can prompt a process to exit a queue:
#
# 1. The process is pop()ped out of the queue by a peer.
# 2. The process balk()s out after a timeout.
# 3. The process leaves the queue because of a distinct interrupt (besides CancelBalk).
#
# In cases 1 and 3, the balking process has never exited and is still in the advance() call. In both these
# cases, the balking process should itself be interrupted, otherwise it may prompt the balking of a future
# queue traversal. However, if we exit the queue because of case no. 2, the balking process is finished.
# Interrupting it would do no harm (it has been tested by accident), but we mean to be deliberate about when
# this interruption is necessary. So we perform the interrupt of the balking process only in cases 1 and 3;
# in case 2, the balk() function exits, thereby clearing the reference we have here to it. Do remark that
# whenever a timeout is not set, proc_balk remains None all the way, reducing the situation to case 1.
if proc_balk is not None:
proc_balk.interrupt(CancelBalk()) | [
"def",
"join",
"(",
"self",
",",
"timeout",
":",
"Optional",
"[",
"float",
"]",
"=",
"None",
")",
":",
"class",
"CancelBalk",
"(",
"Interrupt",
")",
":",
"pass",
"self",
".",
"_counter",
"+=",
"1",
"if",
"_logger",
"is",
"not",
"None",
":",
"self",
".",
"_log",
"(",
"INFO",
",",
"\"join\"",
")",
"heappush",
"(",
"self",
".",
"_waiting",
",",
"(",
"self",
".",
"_get_order_token",
"(",
"self",
".",
"_counter",
")",
",",
"Process",
".",
"current",
"(",
")",
")",
")",
"proc_balk",
"=",
"None",
"if",
"timeout",
"is",
"not",
"None",
":",
"def",
"balk",
"(",
"proc",
")",
":",
"nonlocal",
"proc_balk",
"try",
":",
"advance",
"(",
"cast",
"(",
"float",
",",
"timeout",
")",
")",
"proc",
".",
"interrupt",
"(",
"Timeout",
"(",
")",
")",
"except",
"CancelBalk",
":",
"pass",
"finally",
":",
"proc_balk",
"=",
"None",
"# The balking process is started here.",
"proc_balk",
"=",
"add",
"(",
"balk",
",",
"Process",
".",
"current",
"(",
")",
")",
"try",
":",
"pause",
"(",
")",
"except",
"Interrupt",
":",
"current",
"=",
"Process",
".",
"current",
"(",
")",
"for",
"index",
"in",
"reversed",
"(",
"[",
"i",
"for",
"i",
",",
"(",
"_",
",",
"proc",
")",
"in",
"enumerate",
"(",
"self",
".",
"_waiting",
")",
"if",
"proc",
"is",
"current",
"]",
")",
":",
"del",
"self",
".",
"_waiting",
"[",
"index",
"]",
"heapify",
"(",
"self",
".",
"_waiting",
")",
"raise",
"finally",
":",
"# Three situations can prompt a process to exit a queue:",
"#",
"# 1. The process is pop()ped out of the queue by a peer.",
"# 2. The process balk()s out after a timeout.",
"# 3. The process leaves the queue because of a distinct interrupt (besides CancelBalk).",
"#",
"# In cases 1 and 3, the balking process has never exited and is still in the advance() call. In both these",
"# cases, the balking process should itself be interrupted, otherwise it may prompt the balking of a future",
"# queue traversal. However, if we exit the queue because of case no. 2, the balking process is finished.",
"# Interrupting it would do no harm (it has been tested by accident), but we mean to be deliberate about when",
"# this interruption is necessary. So we perform the interrupt of the balking process only in cases 1 and 3;",
"# in case 2, the balk() function exits, thereby clearing the reference we have here to it. Do remark that",
"# whenever a timeout is not set, proc_balk remains None all the way, reducing the situation to case 1.",
"if",
"proc_balk",
"is",
"not",
"None",
":",
"proc_balk",
".",
"interrupt",
"(",
"CancelBalk",
"(",
")",
")"
] | Can be invoked only by a process: makes it join the queue. The order token is computed once for the process,
before it is enqueued. Another process or event, or control code of some sort, must invoke method `pop()` of the
queue so that the process can eventually leave the queue and carry on with its execution.
:param timeout:
If this parameter is not ``None``, it is taken as a delay at the end of which the process times out, and
leaves the queue forcibly. In such a situation, a :py:class:`Timeout` exception is raised on the process. | [
"Can",
"be",
"invoked",
"only",
"by",
"a",
"process",
":",
"makes",
"it",
"join",
"the",
"queue",
".",
"The",
"order",
"token",
"is",
"computed",
"once",
"for",
"the",
"process",
"before",
"it",
"is",
"enqueued",
".",
"Another",
"process",
"or",
"event",
"or",
"control",
"code",
"of",
"some",
"sort",
"must",
"invoke",
"method",
"pop",
"()",
"of",
"the",
"queue",
"so",
"that",
"the",
"process",
"can",
"eventually",
"leave",
"the",
"queue",
"and",
"carry",
"on",
"with",
"its",
"execution",
"."
] | f160e8b57d69f6ef469f2e991cc07b7721e08a91 | https://github.com/ElementAI/greensim/blob/f160e8b57d69f6ef469f2e991cc07b7721e08a91/greensim/__init__.py#L705-L761 | train | This method is used to join the process queue. | 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,QhZRi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clC8DLjA_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(0b1101111) + chr(49) + chr(50), 6381 - 6373), nzTpIcepk0o8('\x30' + '\x6f' + chr(53), 0b1000), nzTpIcepk0o8(chr(1631 - 1583) + '\157' + '\x32' + '\064' + '\x32', 25623 - 25615), nzTpIcepk0o8(chr(0b1000 + 0o50) + chr(10182 - 10071) + '\063' + '\x31' + '\x32', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(8403 - 8292) + chr(1691 - 1642) + chr(50) + chr(0b110001), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(51) + chr(2096 - 2046) + '\x34', 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(421 - 372) + chr(49) + '\x33', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(51) + chr(48), 0o10), nzTpIcepk0o8(chr(48) + chr(0b110001 + 0o76) + chr(51) + '\065' + '\062', 0b1000), nzTpIcepk0o8(chr(1531 - 1483) + chr(0b1101111) + chr(49) + '\x30' + chr(0b110110), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(9656 - 9545) + '\061' + '\x35' + chr(49), 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(0b11100 + 0o25) + chr(54) + chr(48), ord("\x08")), nzTpIcepk0o8(chr(1053 - 1005) + chr(0b111001 + 0o66) + chr(0b110000 + 0o6) + chr(51), 19863 - 19855), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(51) + chr(1841 - 1791) + chr(48), 0o10), nzTpIcepk0o8('\x30' + chr(2055 - 1944) + chr(0b100011 + 0o17) + chr(0b10110 + 0o35) + chr(0b110000), 48059 - 48051), nzTpIcepk0o8('\060' + chr(0b1001011 + 0o44) + '\061' + chr(2073 - 2023) + '\x37', 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110100) + chr(0b110110), 0o10), nzTpIcepk0o8(chr(271 - 223) + '\x6f' + '\061' + chr(524 - 471) + '\061', 8), nzTpIcepk0o8(chr(254 - 206) + chr(111) + chr(830 - 780) + chr(55) + '\066', ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(53) + '\x32', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b101001 + 0o106) + '\x32' + chr(905 - 856) + chr(1523 - 1472), 0o10), nzTpIcepk0o8(chr(0b101110 + 0o2) + chr(0b1101111) + chr(0b110011) + chr(0b100111 + 0o15) + chr(0b11 + 0o62), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(2219 - 2167) + chr(538 - 488), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(2463 - 2413) + chr(51) + chr(0b11 + 0o60), 0b1000), nzTpIcepk0o8(chr(687 - 639) + '\x6f' + chr(50) + chr(48) + '\x33', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b100000 + 0o117) + chr(0b110001) + chr(0b110001) + '\x34', 0o10), nzTpIcepk0o8(chr(48) + chr(0b100110 + 0o111) + chr(0b110011) + chr(0b110011) + chr(246 - 197), 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x33' + chr(54) + chr(1053 - 1005), 0o10), nzTpIcepk0o8(chr(2240 - 2192) + chr(0b110001 + 0o76) + '\063' + chr(53) + chr(1148 - 1100), 0o10), nzTpIcepk0o8(chr(0b10000 + 0o40) + chr(0b1100110 + 0o11) + '\065' + chr(0b101110 + 0o10), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b11010 + 0o31) + '\x35' + '\067', ord("\x08")), nzTpIcepk0o8(chr(344 - 296) + chr(0b1101111) + chr(0b100000 + 0o21) + chr(0b110101), 44284 - 44276), nzTpIcepk0o8(chr(2225 - 2177) + chr(11124 - 11013) + chr(0b101000 + 0o11) + chr(0b110011) + chr(0b110010), 0o10), nzTpIcepk0o8(chr(1298 - 1250) + chr(0b1001010 + 0o45) + '\x31' + chr(0b111 + 0o60) + chr(51), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(0b110001) + chr(0b11100 + 0o32) + '\x31', 0o10), nzTpIcepk0o8(chr(0b1 + 0o57) + chr(111) + chr(2460 - 2410) + chr(48) + chr(54), 0b1000), nzTpIcepk0o8('\x30' + chr(0b11001 + 0o126) + '\061', 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110011) + chr(0b10100 + 0o35) + chr(0b100111 + 0o11), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(715 - 664) + chr(2355 - 2303) + '\x37', 0o10), nzTpIcepk0o8(chr(0b1010 + 0o46) + chr(0b1001 + 0o146) + chr(0b110100) + '\x33', ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + '\x6f' + chr(53) + '\060', 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'$'), chr(1871 - 1771) + chr(0b1100101) + chr(5458 - 5359) + chr(111) + chr(0b100101 + 0o77) + chr(1548 - 1447))(chr(0b1110101) + chr(116) + '\146' + '\x2d' + chr(0b111000)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def Y4yM9BcfTCNq(hXMPsSrOQzbh, ACACUUFQsMpr=None):
class ToF3RY5bSPoI(fIpwvhWIob9v):
pass
hXMPsSrOQzbh.dnJppW5gbzlh += nzTpIcepk0o8(chr(48) + chr(0b11000 + 0o127) + chr(0b110001), 8)
if xDaRFG__qcx4 is not None:
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'|k\xdb\x9b\x02\xbbxl\x9b\x11[\x18'), chr(0b1100100) + '\145' + chr(0b1001 + 0o132) + '\157' + chr(8247 - 8147) + chr(0b1100101))(chr(0b110101 + 0o100) + '\164' + chr(2301 - 2199) + chr(0b101101 + 0o0) + '\070'))(tNK1nzOSYtNR, roI3spqORKae(ES5oEprVxulp(b'`j\xcb\xa4'), chr(100) + chr(101) + chr(99) + chr(10098 - 9987) + chr(0b1011111 + 0o5) + '\x65')(chr(0b1100000 + 0o25) + '\164' + '\146' + chr(1444 - 1399) + chr(56)))
llOE6mDDkVO5(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'Ur\xc3\xa3%\xbd%\x7f'), chr(0b1100100) + chr(101) + '\143' + chr(2941 - 2830) + chr(0b1100100) + chr(0b1001111 + 0o26))('\165' + chr(6810 - 6694) + chr(3133 - 3031) + '\055' + chr(0b110101 + 0o3))), (roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'Ub\xc7\xbe\x0e\xbb9|\x8f46\x04\\\xbb\xfd9'), chr(0b1011100 + 0o10) + chr(0b111 + 0o136) + chr(0b1100011) + chr(0b1101111) + chr(100) + chr(0b110100 + 0o61))('\x75' + chr(3296 - 3180) + chr(6922 - 6820) + chr(0b101101) + chr(0b100100 + 0o24)))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'nk\xe8\xba!\x83~\x7f\x88<\x05\x18'), '\x64' + chr(101) + chr(99) + '\157' + '\144' + chr(101))(chr(10782 - 10665) + chr(0b1011101 + 0o27) + chr(0b111100 + 0o52) + '\055' + chr(0b100011 + 0o25)))), roI3spqORKae(bE3SqjreW2iy, roI3spqORKae(ES5oEprVxulp(b'hq\xcc\x90\x1c\xa1\x18\\\x9d?\x10\x08'), chr(0b1001100 + 0o30) + '\145' + '\x63' + '\157' + chr(0b1100100) + '\145')('\x75' + chr(0b1010101 + 0o37) + chr(5125 - 5023) + chr(0b11110 + 0o17) + chr(56)))()))
AopWTTlermHV = None
if ACACUUFQsMpr is not None:
def xW5JMQfRT70d(z5dkfUwj281f):
nonlocal proc_balk
try:
_n648RG75cgK(wSl4bAa1dokg(jLW6pRf2DSRk, ACACUUFQsMpr))
roI3spqORKae(z5dkfUwj281f, roI3spqORKae(ES5oEprVxulp(b'ck\xd6\xaf#\xa6>h\x9e'), '\144' + chr(0b1100101) + chr(8602 - 8503) + chr(111) + chr(100) + '\x65')(chr(0b1110101) + chr(0b1100110 + 0o16) + chr(4408 - 4306) + chr(0b101101) + chr(0b110001 + 0o7)))(i5SCCJ7I1X3D())
except ToF3RY5bSPoI:
pass
finally:
AopWTTlermHV = None
AopWTTlermHV = u3QdisIqDfCd(xW5JMQfRT70d, bE3SqjreW2iy.btnZMuSDwyyx())
try:
W8DIze30Tee2()
except fIpwvhWIob9v:
btnZMuSDwyyx = bE3SqjreW2iy.btnZMuSDwyyx()
for ZpfN5tSLaZze in DoS4vLAglV8A([ZlbFMSG8gCoF for (ZlbFMSG8gCoF, (zIqcgNgQ9U6F, z5dkfUwj281f)) in _kV_Bomx8PZ4(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'Ur\xc3\xa3%\xbd%\x7f'), chr(100) + '\x65' + chr(0b100111 + 0o74) + chr(0b1101111) + chr(0b1100100) + chr(101))(chr(1203 - 1086) + chr(0b1101 + 0o147) + chr(0b1100110) + chr(0b11 + 0o52) + chr(56)))) if z5dkfUwj281f is btnZMuSDwyyx]):
del roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'Ur\xc3\xa3%\xbd%\x7f'), chr(0b10100 + 0o120) + '\x65' + chr(99) + chr(0b1101111) + chr(0b1100100) + '\x65')(chr(0b1110101) + chr(0b1110100) + chr(3659 - 3557) + '\055' + chr(0b101110 + 0o12)))[ZpfN5tSLaZze]
mLdCxzvjly6n(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'Ur\xc3\xa3%\xbd%\x7f'), chr(0b1100100) + chr(0b1100101) + chr(99) + '\157' + chr(0b1011000 + 0o14) + '\145')(chr(0b1110101) + chr(0b110 + 0o156) + chr(102) + chr(0b1000 + 0o45) + chr(0b111000))))
raise
finally:
if AopWTTlermHV is not None:
roI3spqORKae(AopWTTlermHV, roI3spqORKae(ES5oEprVxulp(b'ck\xd6\xaf#\xa6>h\x9e'), chr(100) + '\145' + '\x63' + chr(3647 - 3536) + chr(0b1100 + 0o130) + chr(7425 - 7324))('\165' + chr(0b1110100) + chr(102) + chr(45) + '\x38'))(ToF3RY5bSPoI()) |
ElementAI/greensim | greensim/__init__.py | Queue.pop | def pop(self):
"""
Removes the top process from the queue, and resumes its execution. For an empty queue, this method is a no-op.
This method may be invoked from anywhere (its use is not confined to processes, as method `join()` is).
"""
if not self.is_empty():
_, process = heappop(self._waiting)
if _logger is not None:
self._log(INFO, "pop", process=process.local.name)
process.resume() | python | def pop(self):
"""
Removes the top process from the queue, and resumes its execution. For an empty queue, this method is a no-op.
This method may be invoked from anywhere (its use is not confined to processes, as method `join()` is).
"""
if not self.is_empty():
_, process = heappop(self._waiting)
if _logger is not None:
self._log(INFO, "pop", process=process.local.name)
process.resume() | [
"def",
"pop",
"(",
"self",
")",
":",
"if",
"not",
"self",
".",
"is_empty",
"(",
")",
":",
"_",
",",
"process",
"=",
"heappop",
"(",
"self",
".",
"_waiting",
")",
"if",
"_logger",
"is",
"not",
"None",
":",
"self",
".",
"_log",
"(",
"INFO",
",",
"\"pop\"",
",",
"process",
"=",
"process",
".",
"local",
".",
"name",
")",
"process",
".",
"resume",
"(",
")"
] | Removes the top process from the queue, and resumes its execution. For an empty queue, this method is a no-op.
This method may be invoked from anywhere (its use is not confined to processes, as method `join()` is). | [
"Removes",
"the",
"top",
"process",
"from",
"the",
"queue",
"and",
"resumes",
"its",
"execution",
".",
"For",
"an",
"empty",
"queue",
"this",
"method",
"is",
"a",
"no",
"-",
"op",
".",
"This",
"method",
"may",
"be",
"invoked",
"from",
"anywhere",
"(",
"its",
"use",
"is",
"not",
"confined",
"to",
"processes",
"as",
"method",
"join",
"()",
"is",
")",
"."
] | f160e8b57d69f6ef469f2e991cc07b7721e08a91 | https://github.com/ElementAI/greensim/blob/f160e8b57d69f6ef469f2e991cc07b7721e08a91/greensim/__init__.py#L763-L772 | train | Removes the top process from the queue and resumes its execution. | 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,gCu7Qd75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xj4JFQ8o,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(1983 - 1935) + chr(3192 - 3081) + '\x33' + chr(1542 - 1490) + chr(49), 8887 - 8879), nzTpIcepk0o8(chr(0b10100 + 0o34) + chr(0b1101111) + chr(0b110011) + chr(2561 - 2507) + '\061', 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110001) + chr(617 - 567) + chr(694 - 641), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(576 - 526) + chr(1660 - 1611) + chr(48), 16328 - 16320), nzTpIcepk0o8(chr(74 - 26) + chr(111) + '\061' + chr(0b110100) + chr(693 - 645), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(50) + chr(0b1 + 0o61) + chr(1581 - 1531), 0o10), nzTpIcepk0o8('\060' + '\157' + '\061' + chr(0b11101 + 0o27) + '\x36', 1798 - 1790), nzTpIcepk0o8(chr(852 - 804) + '\x6f' + chr(0b110111) + '\x30', 38662 - 38654), nzTpIcepk0o8('\060' + chr(111) + chr(939 - 884) + chr(93 - 41), 0o10), nzTpIcepk0o8(chr(48) + '\157' + '\061' + chr(55) + '\064', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110011) + chr(52) + chr(0b10 + 0o56), ord("\x08")), nzTpIcepk0o8(chr(1800 - 1752) + chr(111) + '\x31' + chr(0b101101 + 0o10), 0b1000), nzTpIcepk0o8(chr(0b10010 + 0o36) + '\157' + '\x33' + chr(0b110110) + chr(0b110011), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(49) + '\064' + '\065', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x33' + chr(573 - 524), 0o10), nzTpIcepk0o8(chr(48) + chr(9525 - 9414) + chr(50) + '\067' + '\x30', 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b101 + 0o55) + '\x34', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(51) + chr(0b11000 + 0o35) + '\063', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(50) + '\x35', 13127 - 13119), nzTpIcepk0o8('\060' + chr(12006 - 11895) + chr(0b110011) + chr(0b101010 + 0o6) + chr(52), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b101100 + 0o103) + '\063' + chr(0b101011 + 0o6) + chr(0b110001), 18617 - 18609), nzTpIcepk0o8('\060' + '\157' + '\x32' + '\x30' + '\x37', 10782 - 10774), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(895 - 846) + chr(1516 - 1463) + chr(0b110111), 32090 - 32082), nzTpIcepk0o8(chr(0b101110 + 0o2) + '\x6f' + '\x35' + chr(0b1101 + 0o45), 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(49) + chr(1245 - 1195) + chr(52), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b11 + 0o61) + chr(295 - 247), 0b1000), nzTpIcepk0o8('\060' + chr(0b11000 + 0o127) + chr(49) + chr(52) + chr(0b11011 + 0o30), 62110 - 62102), nzTpIcepk0o8('\060' + chr(111) + chr(0b110001) + chr(0b11111 + 0o26) + chr(0b110111), 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110101) + '\061', 0o10), nzTpIcepk0o8('\x30' + chr(0b1110 + 0o141) + chr(888 - 838) + chr(55) + '\x32', 0o10), nzTpIcepk0o8('\060' + chr(3114 - 3003) + chr(51) + chr(0b110010) + '\065', 25789 - 25781), nzTpIcepk0o8('\x30' + '\157' + chr(49) + '\063' + chr(0b101101 + 0o4), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + '\064' + chr(0b110111), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110000), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(50) + '\066' + '\x33', ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + '\063' + chr(0b10 + 0o56) + chr(0b11100 + 0o32), 10473 - 10465), nzTpIcepk0o8('\x30' + '\x6f' + '\064' + chr(54), ord("\x08")), nzTpIcepk0o8(chr(1139 - 1091) + chr(0b1100111 + 0o10) + '\067' + chr(0b11100 + 0o30), 8), nzTpIcepk0o8('\060' + chr(4351 - 4240) + '\x32' + chr(434 - 386), 0o10), nzTpIcepk0o8('\060' + chr(3611 - 3500) + chr(741 - 690) + '\x36' + chr(349 - 300), 8)][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + chr(111) + chr(53) + chr(2215 - 2167), 48134 - 48126)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xcf'), '\144' + '\x65' + chr(99) + chr(111) + chr(0b1100001 + 0o3) + chr(101))(chr(0b1110101) + '\164' + chr(3030 - 2928) + chr(0b101101) + '\070') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def uC_Yoybx7J0I(hXMPsSrOQzbh):
if not roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xa2\x82\x11\xe3&\xfa\t\x01Z\x15\xb1L'), chr(100) + chr(0b110101 + 0o60) + chr(0b1100011) + chr(5915 - 5804) + chr(9080 - 8980) + chr(0b1100101))(chr(4549 - 4432) + chr(116) + chr(5149 - 5047) + chr(0b101101) + '\070'))():
(zIqcgNgQ9U6F, conU5pBPX9i7) = OkilouMdFJvr(hXMPsSrOQzbh._waiting)
if xDaRFG__qcx4 is not None:
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x97\x9f,\xd93\xfdULM+\xd2e'), '\144' + '\x65' + chr(2836 - 2737) + chr(0b1010 + 0o145) + chr(100) + chr(7507 - 7406))('\165' + chr(0b1110100) + '\x66' + '\x2d' + chr(0b111000)))(tNK1nzOSYtNR, roI3spqORKae(ES5oEprVxulp(b'\x91\x9e%'), chr(8176 - 8076) + chr(7051 - 6950) + chr(0b1000110 + 0o35) + chr(0b1101111) + chr(5452 - 5352) + '\x65')(chr(117) + chr(13246 - 13130) + chr(102) + chr(0b11 + 0o52) + chr(2329 - 2273)), process=roI3spqORKae(conU5pBPX9i7.local, roI3spqORKae(ES5oEprVxulp(b'\xb2\xbd\x03\xcaR\xd06yc\x11\xa9h'), chr(100) + chr(4327 - 4226) + chr(0b1100000 + 0o3) + chr(0b1101011 + 0o4) + chr(8609 - 8509) + chr(0b1100101))('\165' + '\164' + chr(0b110010 + 0o64) + chr(45) + '\070')))
roI3spqORKae(conU5pBPX9i7, roI3spqORKae(ES5oEprVxulp(b'\x93\x94&\xfd\r\xf7'), chr(0b1010011 + 0o21) + '\145' + '\143' + chr(0b1101111) + chr(100) + chr(4435 - 4334))(chr(117) + chr(116) + chr(8331 - 8229) + chr(1188 - 1143) + chr(2476 - 2420)))() |
ElementAI/greensim | greensim/__init__.py | Signal.turn_on | def turn_on(self) -> "Signal":
"""
Turns on the signal. If processes are waiting, they are all resumed. This may be invoked from any code.
Remark that while processes are simultaneously resumed in simulated time, they are effectively resumed in the
sequence corresponding to the queue discipline. Therefore, if one of the resumed processes turns the signal back
off, remaining resumed processes join back the queue. If the queue discipline is not monotonic (for instance,
if it bears a random component), then this toggling of the signal may reorder the processes.
"""
if _logger is not None:
self._log(INFO, "turn-on")
self._is_on = True
while not self._queue.is_empty():
self._queue.pop()
return self | python | def turn_on(self) -> "Signal":
"""
Turns on the signal. If processes are waiting, they are all resumed. This may be invoked from any code.
Remark that while processes are simultaneously resumed in simulated time, they are effectively resumed in the
sequence corresponding to the queue discipline. Therefore, if one of the resumed processes turns the signal back
off, remaining resumed processes join back the queue. If the queue discipline is not monotonic (for instance,
if it bears a random component), then this toggling of the signal may reorder the processes.
"""
if _logger is not None:
self._log(INFO, "turn-on")
self._is_on = True
while not self._queue.is_empty():
self._queue.pop()
return self | [
"def",
"turn_on",
"(",
"self",
")",
"->",
"\"Signal\"",
":",
"if",
"_logger",
"is",
"not",
"None",
":",
"self",
".",
"_log",
"(",
"INFO",
",",
"\"turn-on\"",
")",
"self",
".",
"_is_on",
"=",
"True",
"while",
"not",
"self",
".",
"_queue",
".",
"is_empty",
"(",
")",
":",
"self",
".",
"_queue",
".",
"pop",
"(",
")",
"return",
"self"
] | Turns on the signal. If processes are waiting, they are all resumed. This may be invoked from any code.
Remark that while processes are simultaneously resumed in simulated time, they are effectively resumed in the
sequence corresponding to the queue discipline. Therefore, if one of the resumed processes turns the signal back
off, remaining resumed processes join back the queue. If the queue discipline is not monotonic (for instance,
if it bears a random component), then this toggling of the signal may reorder the processes. | [
"Turns",
"on",
"the",
"signal",
".",
"If",
"processes",
"are",
"waiting",
"they",
"are",
"all",
"resumed",
".",
"This",
"may",
"be",
"invoked",
"from",
"any",
"code",
"."
] | f160e8b57d69f6ef469f2e991cc07b7721e08a91 | https://github.com/ElementAI/greensim/blob/f160e8b57d69f6ef469f2e991cc07b7721e08a91/greensim/__init__.py#L794-L808 | train | Turns on the signal. | 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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eeBr,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' + '\157' + chr(0b100 + 0o55) + chr(53) + '\061', 62987 - 62979), nzTpIcepk0o8(chr(0b110000) + chr(839 - 728) + chr(0b11000 + 0o34) + chr(0b11010 + 0o31), ord("\x08")), nzTpIcepk0o8('\060' + chr(3564 - 3453) + '\062' + chr(2179 - 2129), 0b1000), nzTpIcepk0o8('\x30' + chr(0b110111 + 0o70) + chr(53), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110001 + 0o0) + chr(758 - 710), 24452 - 24444), nzTpIcepk0o8(chr(900 - 852) + chr(111) + chr(49) + chr(0b110001) + chr(0b110000), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110010) + chr(0b101100 + 0o7) + chr(0b110000), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + '\x31' + chr(1299 - 1245) + '\066', 0o10), nzTpIcepk0o8('\060' + chr(5621 - 5510) + chr(51) + '\060' + chr(649 - 597), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(52) + chr(52), 26010 - 26002), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b0 + 0o62) + '\060' + chr(53), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110111) + chr(0b110000), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110011) + chr(0b110011), ord("\x08")), nzTpIcepk0o8(chr(0b1000 + 0o50) + '\157' + chr(2569 - 2517) + '\064', 8), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b11110 + 0o24), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(305 - 254) + chr(48) + chr(676 - 621), 26828 - 26820), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b1111 + 0o42) + '\x33' + chr(651 - 603), ord("\x08")), nzTpIcepk0o8(chr(338 - 290) + '\157' + chr(50) + '\060', 35669 - 35661), nzTpIcepk0o8('\x30' + '\x6f' + chr(49) + chr(51) + '\065', 62833 - 62825), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x33' + chr(0b101110 + 0o6), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1011110 + 0o21) + chr(49) + chr(49) + '\x34', 0o10), nzTpIcepk0o8(chr(0b1111 + 0o41) + '\157' + chr(0b10100 + 0o36) + '\066' + chr(55), 0b1000), nzTpIcepk0o8(chr(831 - 783) + chr(0b1011000 + 0o27) + '\063' + chr(53) + chr(0b110010), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(5379 - 5268) + '\062' + chr(53) + chr(54), 0b1000), nzTpIcepk0o8('\x30' + '\157' + '\x31' + chr(48) + '\063', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b10110 + 0o34) + '\x31' + '\067', ord("\x08")), nzTpIcepk0o8(chr(2163 - 2115) + '\x6f' + '\x31' + chr(52) + chr(0b110110), 0o10), nzTpIcepk0o8(chr(0b11110 + 0o22) + chr(0b1101111) + chr(51) + chr(0b110110) + '\067', 0b1000), nzTpIcepk0o8(chr(0b101110 + 0o2) + chr(111) + chr(0b1101 + 0o45) + '\063' + chr(50), 35418 - 35410), nzTpIcepk0o8(chr(48) + '\x6f' + '\063' + chr(0b110001) + chr(0b110000), 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(53) + chr(345 - 290), 0o10), nzTpIcepk0o8('\060' + '\x6f' + '\x36' + '\064', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\063' + '\062' + chr(0b110010), 0b1000), nzTpIcepk0o8(chr(0b101010 + 0o6) + '\x6f' + chr(0b101101 + 0o4) + chr(1840 - 1792), 8), nzTpIcepk0o8(chr(0b110000) + chr(0b100010 + 0o115) + chr(2399 - 2349) + chr(0b110010) + chr(0b100101 + 0o20), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(423 - 374) + chr(0b110100) + chr(0b11010 + 0o27), 0b1000), nzTpIcepk0o8(chr(0b101010 + 0o6) + chr(0b1101111) + chr(581 - 531) + '\x33' + chr(51), 0b1000), nzTpIcepk0o8('\060' + chr(11781 - 11670) + '\061', 9738 - 9730), nzTpIcepk0o8(chr(48) + chr(0b1001001 + 0o46) + '\061' + '\061' + chr(0b110010), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + '\x31' + chr(0b1111 + 0o46) + chr(2312 - 2260), 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b101000 + 0o10) + chr(0b1010010 + 0o35) + chr(0b110101) + chr(0b110000), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'G'), chr(692 - 592) + chr(0b1100101) + chr(99) + '\157' + chr(787 - 687) + chr(0b1100101))(chr(0b1110101) + '\164' + '\x66' + '\x2d' + '\x38') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def oc1ukQhqrbno(hXMPsSrOQzbh) -> roI3spqORKae(ES5oEprVxulp(b':Juki$'), '\x64' + '\145' + '\143' + '\157' + chr(0b101101 + 0o67) + chr(101))(chr(0b1110101) + chr(0b10010 + 0o142) + chr(9968 - 9866) + '\x2d' + chr(0b100000 + 0o30)):
if xDaRFG__qcx4 is not None:
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b"\x1fMkT['\xab\x02\xb5s\xb7P"), chr(0b1100100) + chr(101) + '\x63' + chr(0b1110 + 0o141) + chr(0b1100100) + chr(101))('\165' + chr(0b1110100) + chr(954 - 852) + '\x2d' + '\070'))(tNK1nzOSYtNR, roI3spqORKae(ES5oEprVxulp(b"\x1dV`k%'\xf6"), chr(7348 - 7248) + chr(4798 - 4697) + chr(0b11111 + 0o104) + chr(0b1101111) + '\144' + chr(101))(chr(117) + chr(0b1110100) + chr(102) + '\x2d' + chr(2280 - 2224)))
hXMPsSrOQzbh.yA9YfOUzQKcw = nzTpIcepk0o8(chr(0b10011 + 0o35) + chr(0b1100000 + 0o17) + chr(49), 8)
while not roI3spqORKae(hXMPsSrOQzbh._queue, roI3spqORKae(ES5oEprVxulp(b'*PVnN \xf7O\xa2M\xd4y'), '\144' + chr(0b1100101) + chr(99) + chr(0b1101111) + chr(100) + chr(0b1000000 + 0o45))('\165' + '\x74' + chr(102) + '\x2d' + chr(56)))():
roI3spqORKae(hXMPsSrOQzbh._queue, roI3spqORKae(ES5oEprVxulp(b'\x1c`M\\g1\xfa\x0e\xf3n\xb5q'), chr(0b1100100) + chr(685 - 584) + chr(642 - 543) + '\x6f' + chr(3126 - 3026) + '\145')('\165' + '\x74' + '\146' + chr(0b100100 + 0o11) + chr(0b111000)))()
return hXMPsSrOQzbh |
ElementAI/greensim | greensim/__init__.py | Signal.turn_off | def turn_off(self) -> "Signal":
"""
Turns off the signal. This may be invoked from any code.
"""
if _logger is not None:
self._log(INFO, "turn-off")
self._is_on = False
return self | python | def turn_off(self) -> "Signal":
"""
Turns off the signal. This may be invoked from any code.
"""
if _logger is not None:
self._log(INFO, "turn-off")
self._is_on = False
return self | [
"def",
"turn_off",
"(",
"self",
")",
"->",
"\"Signal\"",
":",
"if",
"_logger",
"is",
"not",
"None",
":",
"self",
".",
"_log",
"(",
"INFO",
",",
"\"turn-off\"",
")",
"self",
".",
"_is_on",
"=",
"False",
"return",
"self"
] | Turns off the signal. This may be invoked from any code. | [
"Turns",
"off",
"the",
"signal",
".",
"This",
"may",
"be",
"invoked",
"from",
"any",
"code",
"."
] | f160e8b57d69f6ef469f2e991cc07b7721e08a91 | https://github.com/ElementAI/greensim/blob/f160e8b57d69f6ef469f2e991cc07b7721e08a91/greensim/__init__.py#L810-L817 | train | Turn off the signal. | 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,ZtIuyIq3ta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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(0b1101111) + chr(0b100000 + 0o22) + chr(0b101101 + 0o3) + '\064', ord("\x08")), nzTpIcepk0o8(chr(0b1100 + 0o44) + chr(111) + chr(49) + chr(0b11000 + 0o32) + chr(0b110000), 47789 - 47781), nzTpIcepk0o8(chr(0b100011 + 0o15) + chr(3808 - 3697) + chr(0b10001 + 0o41) + '\x36' + chr(49), 0o10), nzTpIcepk0o8('\060' + '\157' + chr(50) + chr(0b110110) + chr(0b1101 + 0o46), 0o10), nzTpIcepk0o8(chr(358 - 310) + chr(0b1101111) + '\x32' + '\065' + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(362 - 314) + chr(10110 - 9999) + chr(784 - 733) + chr(0b110101) + chr(180 - 132), 61235 - 61227), nzTpIcepk0o8(chr(48) + chr(10736 - 10625) + chr(0b10110 + 0o41) + chr(0b110100), 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(2086 - 2037) + chr(0b1110 + 0o51) + chr(51), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\061' + chr(49) + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(6239 - 6128) + chr(0b101101 + 0o5) + '\x30' + chr(0b110000), 0o10), nzTpIcepk0o8(chr(48) + chr(7402 - 7291) + chr(1189 - 1138) + chr(0b100001 + 0o22) + chr(55), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + '\067' + chr(0b110110), 30941 - 30933), nzTpIcepk0o8('\x30' + chr(111) + '\061' + chr(0b110011) + chr(51), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(0b110010) + chr(0b110101) + chr(819 - 771), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101001 + 0o6) + chr(0b110 + 0o53) + chr(0b1000 + 0o54) + chr(0b110110), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110011) + chr(0b110011) + chr(54), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + '\x32' + chr(2228 - 2180) + '\067', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(718 - 667) + chr(0b110100) + chr(0b11 + 0o64), 56328 - 56320), nzTpIcepk0o8(chr(0b101111 + 0o1) + chr(0b1000111 + 0o50) + '\063' + chr(936 - 881) + chr(0b100111 + 0o20), 46336 - 46328), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110010) + chr(0b100011 + 0o16), 5739 - 5731), nzTpIcepk0o8(chr(0b110000) + chr(0b1000100 + 0o53) + chr(0b101011 + 0o7) + chr(0b110010) + '\x35', 49885 - 49877), nzTpIcepk0o8(chr(1900 - 1852) + chr(0b1101111) + chr(0b110001) + chr(0b110000) + '\x30', 0o10), nzTpIcepk0o8('\060' + '\157' + chr(0b110001 + 0o2) + '\x32' + chr(48), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x32' + '\x30' + chr(51), 0o10), nzTpIcepk0o8(chr(0b100110 + 0o12) + chr(0b1001000 + 0o47) + chr(0b1010 + 0o51) + '\063' + chr(0b10011 + 0o44), 8), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110010) + chr(0b110011 + 0o4) + '\063', 0b1000), nzTpIcepk0o8('\x30' + chr(111) + '\x32' + '\060' + chr(0b101001 + 0o11), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(10388 - 10277) + chr(0b110110) + '\062', 0b1000), nzTpIcepk0o8(chr(1172 - 1124) + chr(111) + '\x31' + '\066' + '\x31', 0o10), nzTpIcepk0o8('\x30' + chr(0b1011001 + 0o26) + '\x32' + '\063', 63652 - 63644), nzTpIcepk0o8(chr(48) + '\157' + '\063' + chr(50), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(52) + chr(53), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + '\x32' + '\x32' + chr(55), 15608 - 15600), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(49) + chr(501 - 447) + chr(0b100001 + 0o17), 0o10), nzTpIcepk0o8(chr(228 - 180) + chr(2088 - 1977) + chr(888 - 839) + chr(0b110100) + chr(54), 8), nzTpIcepk0o8(chr(48) + chr(9036 - 8925) + '\x33' + chr(51) + '\x37', 8), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(50) + '\x30' + chr(0b110001), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b100111 + 0o110) + chr(51) + '\061' + '\x36', 51794 - 51786), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110101) + '\x35', 63529 - 63521), nzTpIcepk0o8('\060' + chr(111) + '\x31' + '\x33' + chr(51), 8)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(0b1001111 + 0o40) + chr(0b110101) + '\060', ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xaa'), chr(5576 - 5476) + chr(0b1100101) + '\x63' + chr(0b1101111) + chr(2171 - 2071) + chr(2709 - 2608))(chr(0b1001110 + 0o47) + chr(116) + chr(0b1100110) + chr(45) + '\x38') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def MFzVV63G_474(hXMPsSrOQzbh) -> roI3spqORKae(ES5oEprVxulp(b'\xd79\xd6\xdd\xcd\x84'), '\x64' + '\145' + '\x63' + chr(0b1101111) + '\x64' + chr(0b1100101))(chr(12986 - 12869) + '\x74' + chr(102) + '\x2d' + chr(2310 - 2254)):
if xDaRFG__qcx4 is not None:
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xf2>\xc8\xe2\xff\x87\x0f\x0f8\xd7\xedV'), chr(100) + '\145' + '\x63' + chr(0b1101111) + chr(5574 - 5474) + '\x65')(chr(0b100110 + 0o117) + chr(0b10 + 0o162) + chr(8143 - 8041) + '\x2d' + '\x38'))(tNK1nzOSYtNR, roI3spqORKae(ES5oEprVxulp(b'\xf0%\xc3\xdd\x81\x87Z\x1d'), '\144' + '\145' + chr(8499 - 8400) + '\x6f' + chr(0b101000 + 0o74) + '\145')('\165' + chr(0b1110100) + chr(0b1100110) + '\x2d' + '\070'))
hXMPsSrOQzbh.yA9YfOUzQKcw = nzTpIcepk0o8(chr(48) + chr(0b11111 + 0o120) + '\060', ord("\x08"))
return hXMPsSrOQzbh |
ElementAI/greensim | greensim/__init__.py | Signal.wait | def wait(self, timeout: Optional[float] = None) -> None:
"""
Makes the current process wait for the signal. If it is closed, it will join the signal's queue.
:param timeout:
If this parameter is not ``None``, it is taken as a delay at the end of which the process times out, and
stops waiting for the :py:class:`Signal`. In such a situation, a :py:class:`Timeout` exception is raised on
the process.
"""
if _logger is not None:
self._log(INFO, "wait")
while not self.is_on:
self._queue.join(timeout) | python | def wait(self, timeout: Optional[float] = None) -> None:
"""
Makes the current process wait for the signal. If it is closed, it will join the signal's queue.
:param timeout:
If this parameter is not ``None``, it is taken as a delay at the end of which the process times out, and
stops waiting for the :py:class:`Signal`. In such a situation, a :py:class:`Timeout` exception is raised on
the process.
"""
if _logger is not None:
self._log(INFO, "wait")
while not self.is_on:
self._queue.join(timeout) | [
"def",
"wait",
"(",
"self",
",",
"timeout",
":",
"Optional",
"[",
"float",
"]",
"=",
"None",
")",
"->",
"None",
":",
"if",
"_logger",
"is",
"not",
"None",
":",
"self",
".",
"_log",
"(",
"INFO",
",",
"\"wait\"",
")",
"while",
"not",
"self",
".",
"is_on",
":",
"self",
".",
"_queue",
".",
"join",
"(",
"timeout",
")"
] | Makes the current process wait for the signal. If it is closed, it will join the signal's queue.
:param timeout:
If this parameter is not ``None``, it is taken as a delay at the end of which the process times out, and
stops waiting for the :py:class:`Signal`. In such a situation, a :py:class:`Timeout` exception is raised on
the process. | [
"Makes",
"the",
"current",
"process",
"wait",
"for",
"the",
"signal",
".",
"If",
"it",
"is",
"closed",
"it",
"will",
"join",
"the",
"signal",
"s",
"queue",
"."
] | f160e8b57d69f6ef469f2e991cc07b7721e08a91 | https://github.com/ElementAI/greensim/blob/f160e8b57d69f6ef469f2e991cc07b7721e08a91/greensim/__init__.py#L819-L831 | train | Waits for the current process to exit. | 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(chr(0b110000) + chr(0b1101111) + chr(0b11 + 0o62) + chr(0b110000), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110011) + '\061' + '\060', 0b1000), nzTpIcepk0o8(chr(1439 - 1391) + chr(111) + '\x32' + '\x31' + chr(0b0 + 0o65), 38611 - 38603), nzTpIcepk0o8('\x30' + chr(2279 - 2168) + chr(338 - 289) + '\x30' + chr(0b110001), 54446 - 54438), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b11100 + 0o26) + chr(54) + chr(2242 - 2188), 99 - 91), nzTpIcepk0o8('\x30' + '\157' + chr(2141 - 2092) + chr(2491 - 2440) + chr(0b110101), ord("\x08")), nzTpIcepk0o8(chr(0b10010 + 0o36) + chr(0b10011 + 0o134) + chr(49) + chr(2135 - 2084) + '\x32', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\063' + chr(0b10110 + 0o34), 51854 - 51846), nzTpIcepk0o8('\060' + '\x6f' + '\x31' + chr(0b1001 + 0o54) + chr(50), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x33' + chr(50) + '\067', 0o10), nzTpIcepk0o8('\060' + '\x6f' + '\x31' + chr(53) + chr(0b110100), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1001 + 0o146) + chr(0b110011) + '\060' + chr(568 - 513), 0o10), nzTpIcepk0o8(chr(0b10110 + 0o32) + '\x6f' + chr(0b110010) + '\064' + '\063', 20572 - 20564), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(1783 - 1732) + chr(0b110011) + chr(49), 22187 - 22179), nzTpIcepk0o8('\x30' + '\x6f' + '\062' + chr(0b110101 + 0o2) + chr(545 - 493), 0o10), nzTpIcepk0o8(chr(0b10100 + 0o34) + chr(111) + chr(1145 - 1095) + '\x35' + chr(0b110000), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b11110 + 0o25) + chr(0b101000 + 0o17) + chr(50), 56923 - 56915), nzTpIcepk0o8(chr(0b110000) + chr(0b1010011 + 0o34) + '\x31' + '\064' + chr(1008 - 954), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\062' + chr(0b110011) + chr(0b110100), ord("\x08")), nzTpIcepk0o8(chr(194 - 146) + '\x6f' + chr(0b1111 + 0o42) + '\065' + chr(1283 - 1231), 8), nzTpIcepk0o8(chr(48) + chr(0b11011 + 0o124) + chr(1079 - 1030) + '\x32' + chr(0b101110 + 0o2), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b110010 + 0o75) + chr(0b110001) + chr(0b110110) + chr(0b101010 + 0o11), 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110001) + '\x37' + '\x33', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b100 + 0o153) + '\x32' + chr(0b1000 + 0o51), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b110000 + 0o77) + '\x32' + chr(0b11000 + 0o32) + '\064', 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b100110 + 0o14) + '\x37' + chr(1010 - 957), ord("\x08")), nzTpIcepk0o8(chr(673 - 625) + chr(12087 - 11976) + chr(55) + chr(895 - 845), 0b1000), nzTpIcepk0o8(chr(1378 - 1330) + chr(613 - 502) + '\x31' + '\x37' + '\066', 3300 - 3292), nzTpIcepk0o8('\060' + chr(10784 - 10673) + '\065' + chr(0b11 + 0o56), 22043 - 22035), nzTpIcepk0o8('\x30' + '\157' + chr(2245 - 2194) + chr(0b110110) + '\065', ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + '\x31' + chr(686 - 636) + chr(0b110010), 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(1729 - 1680) + '\x33' + '\x32', 8), nzTpIcepk0o8(chr(1177 - 1129) + '\157' + '\x33' + chr(477 - 426) + chr(0b1101 + 0o43), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(473 - 424) + chr(0b1111 + 0o47) + chr(50), ord("\x08")), nzTpIcepk0o8(chr(0b11111 + 0o21) + '\157' + chr(1525 - 1475) + chr(49) + chr(48), 20847 - 20839), nzTpIcepk0o8(chr(0b1011 + 0o45) + '\x6f' + chr(120 - 69) + '\x35' + chr(0b1100 + 0o53), 0o10), nzTpIcepk0o8('\x30' + chr(0b1011 + 0o144) + '\x32' + '\060' + chr(852 - 798), 63814 - 63806), nzTpIcepk0o8('\060' + chr(0b1001000 + 0o47) + '\063' + chr(0b110110) + '\064', 46289 - 46281), nzTpIcepk0o8(chr(48) + chr(0b1010 + 0o145) + '\061' + chr(0b1011 + 0o46) + chr(54), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110010) + chr(54), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + chr(0b1101111) + chr(205 - 152) + chr(0b100 + 0o54), 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x06'), chr(0b1100100) + chr(8685 - 8584) + chr(0b1000001 + 0o42) + chr(0b1101111) + chr(0b111100 + 0o50) + '\x65')('\165' + '\164' + chr(7116 - 7014) + '\055' + chr(1554 - 1498)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def VBnaM0jy14aO(hXMPsSrOQzbh, ACACUUFQsMpr=None) -> None:
if xDaRFG__qcx4 is not None:
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'^\xa6\xf4\x10\xe52in\x1b\x80^\xaf'), chr(727 - 627) + '\x65' + '\143' + chr(111) + chr(0b1100100) + '\x65')('\x75' + '\164' + '\146' + '\x2d' + chr(728 - 672)))(tNK1nzOSYtNR, roI3spqORKae(ES5oEprVxulp(b'_\xa9\xe45'), '\x64' + '\145' + chr(0b100001 + 0o102) + chr(0b1100110 + 0o11) + chr(0b1100100) + '\145')('\165' + chr(116) + '\146' + chr(789 - 744) + chr(0b110010 + 0o6)))
while not roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'A\xbb\xd2.\xd8'), chr(0b1100100) + '\x65' + chr(0b101111 + 0o64) + chr(111) + chr(100) + chr(0b1110 + 0o127))(chr(0b1110101) + chr(116) + '\x66' + chr(0b100010 + 0o13) + '\x38')):
roI3spqORKae(hXMPsSrOQzbh._queue, roI3spqORKae(ES5oEprVxulp(b'q\xfc\xf4\x0c\x8f\x1f9|>\x94"\xb6'), chr(100) + '\145' + chr(0b101110 + 0o65) + '\x6f' + '\144' + chr(9465 - 9364))(chr(7072 - 6955) + '\164' + '\x66' + chr(0b101000 + 0o5) + chr(0b111000)))(ACACUUFQsMpr) |
ElementAI/greensim | greensim/__init__.py | Resource.take | def take(self, num_instances: int = 1, timeout: Optional[float] = None) -> None:
"""
The current process reserves a certain number of instances. If there are not enough instances available, the
process is made to join a queue. When this method returns, the process holds the instances it has requested to
take.
:param num_instances:
Number of resource instances to take.
:param timeout:
If this parameter is not ``None``, it is taken as a delay at the end of which the process times out, and
leaves the queue forcibly. In such a situation, a :py:class:`Timeout` exception is raised on the process.
"""
if num_instances < 1:
raise ValueError(f"Process must request at least 1 instance; here requested {num_instances}.")
if num_instances > self.num_instances_total:
raise ValueError(
f"Process must request at most {self.num_instances_total} instances; here requested {num_instances}."
)
if _logger is not None:
self._log(INFO, "take", num_instances=num_instances, free=self.num_instances_free)
proc = Process.current()
if self._num_instances_free < num_instances:
proc.local.__num_instances_required = num_instances
try:
self._waiting.join(timeout)
finally:
del proc.local.__num_instances_required
self._num_instances_free -= num_instances
if _logger is not None and proc in self._usage:
self._log(WARNING, "take-again", already=self._usage[proc], more=num_instances)
self._usage.setdefault(proc, 0)
self._usage[proc] += num_instances | python | def take(self, num_instances: int = 1, timeout: Optional[float] = None) -> None:
"""
The current process reserves a certain number of instances. If there are not enough instances available, the
process is made to join a queue. When this method returns, the process holds the instances it has requested to
take.
:param num_instances:
Number of resource instances to take.
:param timeout:
If this parameter is not ``None``, it is taken as a delay at the end of which the process times out, and
leaves the queue forcibly. In such a situation, a :py:class:`Timeout` exception is raised on the process.
"""
if num_instances < 1:
raise ValueError(f"Process must request at least 1 instance; here requested {num_instances}.")
if num_instances > self.num_instances_total:
raise ValueError(
f"Process must request at most {self.num_instances_total} instances; here requested {num_instances}."
)
if _logger is not None:
self._log(INFO, "take", num_instances=num_instances, free=self.num_instances_free)
proc = Process.current()
if self._num_instances_free < num_instances:
proc.local.__num_instances_required = num_instances
try:
self._waiting.join(timeout)
finally:
del proc.local.__num_instances_required
self._num_instances_free -= num_instances
if _logger is not None and proc in self._usage:
self._log(WARNING, "take-again", already=self._usage[proc], more=num_instances)
self._usage.setdefault(proc, 0)
self._usage[proc] += num_instances | [
"def",
"take",
"(",
"self",
",",
"num_instances",
":",
"int",
"=",
"1",
",",
"timeout",
":",
"Optional",
"[",
"float",
"]",
"=",
"None",
")",
"->",
"None",
":",
"if",
"num_instances",
"<",
"1",
":",
"raise",
"ValueError",
"(",
"f\"Process must request at least 1 instance; here requested {num_instances}.\"",
")",
"if",
"num_instances",
">",
"self",
".",
"num_instances_total",
":",
"raise",
"ValueError",
"(",
"f\"Process must request at most {self.num_instances_total} instances; here requested {num_instances}.\"",
")",
"if",
"_logger",
"is",
"not",
"None",
":",
"self",
".",
"_log",
"(",
"INFO",
",",
"\"take\"",
",",
"num_instances",
"=",
"num_instances",
",",
"free",
"=",
"self",
".",
"num_instances_free",
")",
"proc",
"=",
"Process",
".",
"current",
"(",
")",
"if",
"self",
".",
"_num_instances_free",
"<",
"num_instances",
":",
"proc",
".",
"local",
".",
"__num_instances_required",
"=",
"num_instances",
"try",
":",
"self",
".",
"_waiting",
".",
"join",
"(",
"timeout",
")",
"finally",
":",
"del",
"proc",
".",
"local",
".",
"__num_instances_required",
"self",
".",
"_num_instances_free",
"-=",
"num_instances",
"if",
"_logger",
"is",
"not",
"None",
"and",
"proc",
"in",
"self",
".",
"_usage",
":",
"self",
".",
"_log",
"(",
"WARNING",
",",
"\"take-again\"",
",",
"already",
"=",
"self",
".",
"_usage",
"[",
"proc",
"]",
",",
"more",
"=",
"num_instances",
")",
"self",
".",
"_usage",
".",
"setdefault",
"(",
"proc",
",",
"0",
")",
"self",
".",
"_usage",
"[",
"proc",
"]",
"+=",
"num_instances"
] | The current process reserves a certain number of instances. If there are not enough instances available, the
process is made to join a queue. When this method returns, the process holds the instances it has requested to
take.
:param num_instances:
Number of resource instances to take.
:param timeout:
If this parameter is not ``None``, it is taken as a delay at the end of which the process times out, and
leaves the queue forcibly. In such a situation, a :py:class:`Timeout` exception is raised on the process. | [
"The",
"current",
"process",
"reserves",
"a",
"certain",
"number",
"of",
"instances",
".",
"If",
"there",
"are",
"not",
"enough",
"instances",
"available",
"the",
"process",
"is",
"made",
"to",
"join",
"a",
"queue",
".",
"When",
"this",
"method",
"returns",
"the",
"process",
"holds",
"the",
"instances",
"it",
"has",
"requested",
"to",
"take",
"."
] | f160e8b57d69f6ef469f2e991cc07b7721e08a91 | https://github.com/ElementAI/greensim/blob/f160e8b57d69f6ef469f2e991cc07b7721e08a91/greensim/__init__.py#L912-L944 | train | Take the specified number of resource instances from the queue. | GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO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e6tJqMV,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(1666 - 1618) + chr(8802 - 8691) + chr(0b110000 + 0o1) + chr(0b110111) + '\x34', ord("\x08")), nzTpIcepk0o8(chr(292 - 244) + chr(111) + chr(0b11010 + 0o30) + '\x35' + '\x33', ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + '\064' + chr(52), 0b1000), nzTpIcepk0o8(chr(0b101000 + 0o10) + '\x6f' + '\x33' + '\060' + chr(0b10001 + 0o44), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\061' + chr(0b110001) + '\063', 0b1000), nzTpIcepk0o8(chr(0b1010 + 0o46) + chr(0b1101111) + chr(0b110010) + '\x30' + chr(0b110000), 0o10), nzTpIcepk0o8(chr(48) + chr(9656 - 9545) + '\062' + chr(0b110001) + '\067', 0b1000), nzTpIcepk0o8('\x30' + chr(1085 - 974) + '\063' + chr(0b110000) + chr(48), 57301 - 57293), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(824 - 775) + chr(0b101001 + 0o15) + '\067', 0o10), nzTpIcepk0o8(chr(1077 - 1029) + '\x6f' + chr(1577 - 1526) + chr(0b11100 + 0o33) + '\065', 0o10), nzTpIcepk0o8(chr(1967 - 1919) + '\x6f' + chr(549 - 498) + chr(0b10010 + 0o43) + chr(0b110000), 61064 - 61056), nzTpIcepk0o8('\060' + chr(11975 - 11864) + chr(49) + chr(2280 - 2225) + chr(0b110001), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(2584 - 2533) + chr(2342 - 2291) + '\x33', 27839 - 27831), nzTpIcepk0o8(chr(1775 - 1727) + chr(2684 - 2573) + chr(0b110111) + chr(1666 - 1617), 0o10), nzTpIcepk0o8(chr(48) + chr(7229 - 7118) + chr(0b110001) + chr(0b101111 + 0o6) + '\060', ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(50) + chr(55) + chr(2177 - 2127), 13314 - 13306), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110010) + '\061' + chr(0b110111), 8), nzTpIcepk0o8(chr(0b11000 + 0o30) + '\157' + chr(51) + chr(0b100011 + 0o17) + chr(1973 - 1922), 60879 - 60871), nzTpIcepk0o8(chr(2019 - 1971) + chr(111) + '\x35' + chr(1043 - 992), 0b1000), nzTpIcepk0o8('\060' + '\157' + chr(0b110010) + chr(864 - 813) + chr(53), 22206 - 22198), nzTpIcepk0o8(chr(0b11110 + 0o22) + '\157' + '\x32' + '\x33' + chr(50), 30599 - 30591), nzTpIcepk0o8('\060' + '\157' + '\062' + chr(2099 - 2047) + chr(0b110111), 0b1000), nzTpIcepk0o8(chr(1133 - 1085) + chr(111) + chr(0b110011) + chr(53) + chr(0b110111), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(0b10101 + 0o36) + '\063' + '\065', 48175 - 48167), nzTpIcepk0o8(chr(2078 - 2030) + chr(111) + chr(2493 - 2442) + chr(2227 - 2175) + chr(0b110101), 0o10), nzTpIcepk0o8(chr(0b10001 + 0o37) + chr(0b110011 + 0o74) + '\063' + '\066' + chr(0b10101 + 0o34), ord("\x08")), nzTpIcepk0o8(chr(0b11000 + 0o30) + chr(111) + chr(403 - 354) + '\x30' + chr(1710 - 1662), 35757 - 35749), nzTpIcepk0o8('\060' + chr(406 - 295) + '\063' + chr(0b110010 + 0o1) + '\x34', ord("\x08")), nzTpIcepk0o8(chr(0b101000 + 0o10) + chr(5577 - 5466) + chr(469 - 414) + chr(0b100101 + 0o13), 36294 - 36286), nzTpIcepk0o8('\060' + chr(0b100011 + 0o114) + '\x31' + chr(52) + chr(0b110110), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(50) + chr(0b10 + 0o65) + '\062', 8), nzTpIcepk0o8(chr(48) + chr(8379 - 8268) + chr(0b110011) + chr(1120 - 1066) + chr(716 - 661), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(178 - 129) + '\x34' + '\x34', ord("\x08")), nzTpIcepk0o8('\060' + chr(5816 - 5705) + '\062' + chr(684 - 633) + chr(741 - 690), 0b1000), nzTpIcepk0o8(chr(1380 - 1332) + chr(0b1101111) + chr(0b110101) + chr(0b1011 + 0o50), 8), nzTpIcepk0o8('\x30' + chr(0b10100 + 0o133) + chr(50) + chr(54) + '\x33', 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b11101 + 0o24) + chr(1989 - 1937) + chr(0b100001 + 0o24), 0o10), nzTpIcepk0o8(chr(1078 - 1030) + chr(5817 - 5706) + chr(187 - 137) + '\064' + chr(0b110110), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(2178 - 2067) + chr(51) + chr(54) + chr(0b110011), 0o10), nzTpIcepk0o8(chr(1886 - 1838) + chr(0b11010 + 0o125) + chr(0b1101 + 0o51), 36276 - 36268)][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + chr(111) + '\065' + chr(0b110000), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'R'), '\x64' + chr(6388 - 6287) + chr(988 - 889) + '\x6f' + chr(100) + chr(6902 - 6801))(chr(117) + chr(116) + '\x66' + chr(45) + chr(0b1011 + 0o55)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def rsCvcerQ1_8f(hXMPsSrOQzbh, yMlqrXAkp__f=nzTpIcepk0o8('\060' + chr(0b10110 + 0o131) + chr(49), 0o10), ACACUUFQsMpr=None) -> None:
if yMlqrXAkp__f < nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110001), 8):
raise WbNHlDKpyPtQ(f'Process must request at least 1 instance; here requested {yMlqrXAkp__f}.')
if yMlqrXAkp__f > roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x12\xdeI\x9a"\xee\xfc\xb4\x16\x93\x8b\x1c\xa8f\x1c\xd5\xfb\xb2G'), chr(4000 - 3900) + chr(0b1100101) + chr(99) + chr(0b1101111) + '\144' + chr(101))(chr(0b1010001 + 0o44) + '\x74' + chr(0b1010000 + 0o26) + chr(0b101101) + '\070')):
raise WbNHlDKpyPtQ(f"Process must request at most {roI3spqORKae(hXMPsSrOQzbh, chr(110) + chr(0b1110101) + chr(4017 - 3908) + chr(8183 - 8088) + chr(0b111101 + 0o54) + chr(0b1101110) + chr(0b1110011) + chr(7788 - 7672) + chr(0b1100001) + chr(5815 - 5705) + chr(0b1100011) + chr(418 - 317) + chr(11652 - 11537) + chr(0b1010 + 0o125) + chr(0b100011 + 0o121) + chr(0b10000 + 0o137) + chr(0b1110100) + chr(97) + chr(108))} instances; here requested {yMlqrXAkp__f}.")
if xDaRFG__qcx4 is not None:
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\n\xc5]\x94\x18\xef\xbc\xb4\x06\xaa\xda\x11'), chr(100) + '\145' + chr(0b100001 + 0o102) + '\x6f' + chr(5236 - 5136) + chr(3058 - 2957))(chr(0b1000011 + 0o62) + chr(0b1110100) + chr(0b1100110) + chr(45) + chr(1551 - 1495)))(tNK1nzOSYtNR, roI3spqORKae(ES5oEprVxulp(b'\x08\xcaO\xa0'), '\x64' + chr(7761 - 7660) + '\x63' + chr(0b1000100 + 0o53) + '\144' + '\x65')(chr(0b1110101) + chr(116) + chr(0b11011 + 0o113) + '\055' + chr(1637 - 1581)), num_instances=yMlqrXAkp__f, free=roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x12\xdeI\x9a"\xee\xfc\xb4\x16\x93\x8b\x1c\xa8f\x0e\xc8\xea\xb6'), chr(8370 - 8270) + '\x65' + chr(9260 - 9161) + '\157' + '\144' + chr(101))(chr(1226 - 1109) + chr(0b110110 + 0o76) + '\x66' + chr(0b1000 + 0o45) + '\070')))
z5dkfUwj281f = bE3SqjreW2iy.btnZMuSDwyyx()
if roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'#\xc5Q\xa8\x14\xe9\xe1\xb3\x03\x9c\x86\x1a\xbeJ7\xdc\xfd\xb6N'), chr(0b1100100) + chr(0b10111 + 0o116) + chr(0b1011111 + 0o4) + chr(111) + chr(0b0 + 0o144) + chr(8912 - 8811))(chr(0b1110101) + chr(116) + chr(7424 - 7322) + chr(1649 - 1604) + chr(1242 - 1186))) < yMlqrXAkp__f:
z5dkfUwj281f.local.lDykK1M0zUS7 = yMlqrXAkp__f
try:
roI3spqORKae(hXMPsSrOQzbh._waiting, roI3spqORKae(ES5oEprVxulp(b'%\x9f]\x88r\xc2\xec\xa6#\xbe\xa6\x08'), chr(0b1100100) + chr(0b1100101) + chr(0b1100011) + chr(0b1101111) + chr(100) + chr(6857 - 6756))(chr(117) + '\164' + chr(0b1000000 + 0o46) + '\x2d' + '\x38'))(ACACUUFQsMpr)
finally:
del roI3spqORKae(z5dkfUwj281f.local, roI3spqORKae(ES5oEprVxulp(b'\x10\xef]\xae\x00\xb1\xc2\xf0\r\xa8\xbbN'), chr(8287 - 8187) + chr(0b1100101) + chr(99) + chr(111) + chr(100) + chr(0b1000001 + 0o44))(chr(0b1110101) + chr(0b101101 + 0o107) + chr(0b1100110) + chr(1886 - 1841) + chr(56)))
hXMPsSrOQzbh.sBx8G4DD5cHc -= yMlqrXAkp__f
if xDaRFG__qcx4 is not None and z5dkfUwj281f in roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'#\xdeW\xa4,\xe5'), chr(4040 - 3940) + chr(4837 - 4736) + chr(0b110110 + 0o55) + chr(7770 - 7659) + '\x64' + chr(0b1100101))(chr(0b10111 + 0o136) + '\164' + chr(102) + '\055' + '\070')):
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\n\xc5]\x94\x18\xef\xbc\xb4\x06\xaa\xda\x11'), chr(100) + chr(101) + chr(6978 - 6879) + '\x6f' + chr(0b1100100) + chr(4761 - 4660))(chr(0b1110101) + chr(116) + '\x66' + chr(0b101101) + chr(1730 - 1674)))(yh09sU491bzC, roI3spqORKae(ES5oEprVxulp(b'\x08\xcaO\xa0f\xe1\xe8\xa1\x1e\x93'), chr(0b1100100) + chr(5715 - 5614) + chr(0b10001 + 0o122) + chr(10256 - 10145) + '\x64' + chr(0b1001111 + 0o26))(chr(10706 - 10589) + chr(0b1001100 + 0o50) + '\146' + chr(0b101101) + chr(56)), already=roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'#\xdeW\xa4,\xe5'), '\144' + chr(0b10 + 0o143) + chr(0b1000001 + 0o42) + chr(0b1101111) + chr(0b1100100) + chr(0b1001011 + 0o32))('\x75' + chr(116) + '\x66' + chr(45) + '\x38'))[z5dkfUwj281f], more=yMlqrXAkp__f)
roI3spqORKae(hXMPsSrOQzbh._usage, roI3spqORKae(ES5oEprVxulp(b'\x06\xce\x14\x8f\x06\xf5\xc4\xf9\x05\x92\xbf*'), '\x64' + '\x65' + '\143' + chr(0b1110 + 0o141) + '\144' + chr(0b1100101))(chr(0b1110101) + chr(116) + chr(102) + chr(0b101101) + chr(1654 - 1598)))(z5dkfUwj281f, nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b101101 + 0o3), 24123 - 24115))
hXMPsSrOQzbh.n2eAuPP4MssC[z5dkfUwj281f] += yMlqrXAkp__f |
ElementAI/greensim | greensim/__init__.py | Resource.release | def release(self, num_instances: int = 1) -> None:
"""
The current process releases instances it has previously taken. It may thus release less than it has taken.
These released instances become free. If the total number of free instances then satisfy the request of the top
process of the waiting queue, it is popped off the queue and resumed.
"""
proc = Process.current()
error_format = "Process %s holds %s instances, but requests to release more (%s)"
if self._usage.get(proc, 0) > 0:
if num_instances > self._usage[proc]:
raise ValueError(
error_format % (proc.local.name, self._usage[proc], num_instances)
)
self._usage[proc] -= num_instances
self._num_instances_free += num_instances
if _logger is not None:
self._log(
INFO,
"release",
num_instances=num_instances,
keeping=self._usage[proc],
free=self.num_instances_free
)
if self._usage[proc] <= 0:
del self._usage[proc]
if not self._waiting.is_empty():
num_instances_next = cast(int, self._waiting.peek().local.__num_instances_required)
if num_instances_next <= self.num_instances_free:
self._waiting.pop()
elif _logger is not None:
self._log(DEBUG, "release-nopop", next_requires=num_instances_next, free=self.num_instances_free)
elif _logger is not None:
self._log(DEBUG, "release-queueempty")
else:
raise RuntimeError(
f"Process {proc.local.name} tries to release {num_instances} instances, but is holding none.)"
) | python | def release(self, num_instances: int = 1) -> None:
"""
The current process releases instances it has previously taken. It may thus release less than it has taken.
These released instances become free. If the total number of free instances then satisfy the request of the top
process of the waiting queue, it is popped off the queue and resumed.
"""
proc = Process.current()
error_format = "Process %s holds %s instances, but requests to release more (%s)"
if self._usage.get(proc, 0) > 0:
if num_instances > self._usage[proc]:
raise ValueError(
error_format % (proc.local.name, self._usage[proc], num_instances)
)
self._usage[proc] -= num_instances
self._num_instances_free += num_instances
if _logger is not None:
self._log(
INFO,
"release",
num_instances=num_instances,
keeping=self._usage[proc],
free=self.num_instances_free
)
if self._usage[proc] <= 0:
del self._usage[proc]
if not self._waiting.is_empty():
num_instances_next = cast(int, self._waiting.peek().local.__num_instances_required)
if num_instances_next <= self.num_instances_free:
self._waiting.pop()
elif _logger is not None:
self._log(DEBUG, "release-nopop", next_requires=num_instances_next, free=self.num_instances_free)
elif _logger is not None:
self._log(DEBUG, "release-queueempty")
else:
raise RuntimeError(
f"Process {proc.local.name} tries to release {num_instances} instances, but is holding none.)"
) | [
"def",
"release",
"(",
"self",
",",
"num_instances",
":",
"int",
"=",
"1",
")",
"->",
"None",
":",
"proc",
"=",
"Process",
".",
"current",
"(",
")",
"error_format",
"=",
"\"Process %s holds %s instances, but requests to release more (%s)\"",
"if",
"self",
".",
"_usage",
".",
"get",
"(",
"proc",
",",
"0",
")",
">",
"0",
":",
"if",
"num_instances",
">",
"self",
".",
"_usage",
"[",
"proc",
"]",
":",
"raise",
"ValueError",
"(",
"error_format",
"%",
"(",
"proc",
".",
"local",
".",
"name",
",",
"self",
".",
"_usage",
"[",
"proc",
"]",
",",
"num_instances",
")",
")",
"self",
".",
"_usage",
"[",
"proc",
"]",
"-=",
"num_instances",
"self",
".",
"_num_instances_free",
"+=",
"num_instances",
"if",
"_logger",
"is",
"not",
"None",
":",
"self",
".",
"_log",
"(",
"INFO",
",",
"\"release\"",
",",
"num_instances",
"=",
"num_instances",
",",
"keeping",
"=",
"self",
".",
"_usage",
"[",
"proc",
"]",
",",
"free",
"=",
"self",
".",
"num_instances_free",
")",
"if",
"self",
".",
"_usage",
"[",
"proc",
"]",
"<=",
"0",
":",
"del",
"self",
".",
"_usage",
"[",
"proc",
"]",
"if",
"not",
"self",
".",
"_waiting",
".",
"is_empty",
"(",
")",
":",
"num_instances_next",
"=",
"cast",
"(",
"int",
",",
"self",
".",
"_waiting",
".",
"peek",
"(",
")",
".",
"local",
".",
"__num_instances_required",
")",
"if",
"num_instances_next",
"<=",
"self",
".",
"num_instances_free",
":",
"self",
".",
"_waiting",
".",
"pop",
"(",
")",
"elif",
"_logger",
"is",
"not",
"None",
":",
"self",
".",
"_log",
"(",
"DEBUG",
",",
"\"release-nopop\"",
",",
"next_requires",
"=",
"num_instances_next",
",",
"free",
"=",
"self",
".",
"num_instances_free",
")",
"elif",
"_logger",
"is",
"not",
"None",
":",
"self",
".",
"_log",
"(",
"DEBUG",
",",
"\"release-queueempty\"",
")",
"else",
":",
"raise",
"RuntimeError",
"(",
"f\"Process {proc.local.name} tries to release {num_instances} instances, but is holding none.)\"",
")"
] | The current process releases instances it has previously taken. It may thus release less than it has taken.
These released instances become free. If the total number of free instances then satisfy the request of the top
process of the waiting queue, it is popped off the queue and resumed. | [
"The",
"current",
"process",
"releases",
"instances",
"it",
"has",
"previously",
"taken",
".",
"It",
"may",
"thus",
"release",
"less",
"than",
"it",
"has",
"taken",
".",
"These",
"released",
"instances",
"become",
"free",
".",
"If",
"the",
"total",
"number",
"of",
"free",
"instances",
"then",
"satisfy",
"the",
"request",
"of",
"the",
"top",
"process",
"of",
"the",
"waiting",
"queue",
"it",
"is",
"popped",
"off",
"the",
"queue",
"and",
"resumed",
"."
] | f160e8b57d69f6ef469f2e991cc07b7721e08a91 | https://github.com/ElementAI/greensim/blob/f160e8b57d69f6ef469f2e991cc07b7721e08a91/greensim/__init__.py#L946-L982 | train | Release the specified number of instances. | GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,Ut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,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(617 - 569) + chr(12033 - 11922) + chr(50) + chr(0b110011) + chr(0b110111), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(1851 - 1740) + '\067' + '\061', 0b1000), nzTpIcepk0o8(chr(0b10100 + 0o34) + '\x6f' + '\x31' + '\x34' + chr(0b110000), 17443 - 17435), nzTpIcepk0o8('\x30' + '\157' + chr(0b110001) + '\067' + '\x33', 31800 - 31792), nzTpIcepk0o8('\x30' + chr(0b111100 + 0o63) + chr(2390 - 2340) + chr(51) + chr(0b110010), 0b1000), nzTpIcepk0o8(chr(743 - 695) + chr(0b1101111) + chr(51) + chr(196 - 147), 48683 - 48675), nzTpIcepk0o8('\060' + '\x6f' + '\x37' + chr(2685 - 2632), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110001) + chr(48) + chr(378 - 328), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(261 - 207) + chr(0b110110), 29161 - 29153), nzTpIcepk0o8('\060' + chr(111) + '\x33' + chr(0b1101 + 0o45) + '\061', 0o10), nzTpIcepk0o8('\x30' + chr(0b1011100 + 0o23) + chr(0b110100) + '\x34', 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b100010 + 0o22) + chr(54), 0o10), nzTpIcepk0o8(chr(0b111 + 0o51) + chr(2825 - 2714) + '\063' + '\062' + chr(2246 - 2198), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + '\061' + chr(54) + chr(0b10110 + 0o40), 57221 - 57213), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b11 + 0o60) + chr(0b11 + 0o55) + chr(323 - 273), 12226 - 12218), nzTpIcepk0o8('\060' + '\x6f' + '\062' + chr(0b100110 + 0o17) + chr(0b10011 + 0o44), 12894 - 12886), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b100111 + 0o14) + '\065', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110010) + '\x32' + chr(591 - 539), 3750 - 3742), nzTpIcepk0o8(chr(548 - 500) + chr(111) + chr(0b110001) + chr(0b110100) + chr(0b110110), 16303 - 16295), nzTpIcepk0o8(chr(48) + '\157' + '\x32' + chr(55) + chr(0b110000), 0o10), nzTpIcepk0o8('\x30' + chr(0b1011000 + 0o27) + '\x31' + '\x34' + chr(0b110001), 16435 - 16427), nzTpIcepk0o8(chr(1965 - 1917) + chr(0b100111 + 0o110) + chr(1823 - 1772) + chr(0b100101 + 0o14) + chr(52), 43681 - 43673), nzTpIcepk0o8(chr(0b110000) + chr(0b1101011 + 0o4) + '\061' + chr(49) + chr(0b110010), 0o10), nzTpIcepk0o8(chr(0b100110 + 0o12) + chr(111) + '\063' + chr(0b110010) + '\067', ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(0b101111 + 0o10) + chr(0b1011 + 0o54), 10945 - 10937), nzTpIcepk0o8(chr(1092 - 1044) + '\x6f' + '\x32' + chr(1067 - 1015) + '\x35', 0o10), nzTpIcepk0o8(chr(299 - 251) + chr(111) + '\x33' + chr(1573 - 1518) + chr(0b110111), 16824 - 16816), nzTpIcepk0o8(chr(1018 - 970) + chr(3410 - 3299) + chr(0b110011) + chr(800 - 746) + chr(0b110111), 0b1000), nzTpIcepk0o8(chr(2098 - 2050) + '\157' + chr(0b110111) + chr(0b110000 + 0o4), 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(0b110100) + '\066', 8), nzTpIcepk0o8('\060' + chr(11151 - 11040) + chr(735 - 686) + chr(0b110100), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110111), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(49) + '\x36' + chr(55), 0o10), nzTpIcepk0o8(chr(532 - 484) + '\157' + '\x33', 0o10), nzTpIcepk0o8(chr(0b1000 + 0o50) + chr(0b110100 + 0o73) + chr(0b10100 + 0o36) + chr(1102 - 1054), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b10101 + 0o35) + '\x36' + '\060', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110011) + '\x32' + chr(0b110011), 11870 - 11862), nzTpIcepk0o8('\060' + chr(11880 - 11769) + chr(0b110010) + chr(55) + chr(49), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(50) + chr(0b10011 + 0o37) + chr(49), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110011) + chr(55) + '\065', ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + '\157' + '\x35' + chr(0b110000), ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xb1'), chr(3284 - 3184) + '\x65' + chr(99) + '\x6f' + '\144' + chr(9394 - 9293))(chr(0b1000 + 0o155) + chr(0b1110100) + chr(102) + chr(0b101101) + chr(0b111000)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def aUHj5BkBa9ON(hXMPsSrOQzbh, yMlqrXAkp__f=nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(1044 - 995), ord("\x08"))) -> None:
z5dkfUwj281f = bE3SqjreW2iy.btnZMuSDwyyx()
FGAf9xVWDF8_ = roI3spqORKae(ES5oEprVxulp(b'\xcfK\x0f\x18\xffjNb\x13\xa2\x04N\xbf\x1a\xa6\xdc=\xb1\x15\x98\x08\xa29\xa3^\xcb\x9c\x92O\n,e\x02w0\xc2\xb6\xc8\xe4\x98\xecM\x13[\xeev\x1d0S\xbdAG\xa3\x13\xe2\xc2r\xe6\x03\x98I\xe99\xfe'), chr(1603 - 1503) + chr(0b1100 + 0o131) + chr(0b1100011) + chr(6271 - 6160) + chr(0b1100100) + '\145')(chr(0b1110101) + chr(12691 - 12575) + chr(0b1100110) + chr(45) + chr(2965 - 2909))
if roI3spqORKae(hXMPsSrOQzbh._usage, roI3spqORKae(ES5oEprVxulp(b'\xd8l+\x1e\xeel\t:W\x96Wl'), chr(6808 - 6708) + chr(5719 - 5618) + '\143' + '\157' + chr(0b1100100) + chr(101))(chr(0b1110101) + '\x74' + chr(0b1100110) + chr(0b101101) + chr(0b111000)))(z5dkfUwj281f, nzTpIcepk0o8(chr(1359 - 1311) + chr(0b1010011 + 0o34) + '\060', ord("\x08"))) > nzTpIcepk0o8(chr(48) + chr(0b1011101 + 0o22) + chr(48), 8):
if yMlqrXAkp__f > roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xf1\x0b\x05:\xefImv{\xa2We'), '\x64' + chr(101) + '\143' + '\x6f' + chr(0b1001000 + 0o34) + '\145')(chr(0b1110101 + 0o0) + chr(1680 - 1564) + chr(6364 - 6262) + '\x2d' + '\x38'))[z5dkfUwj281f]:
raise WbNHlDKpyPtQ(FGAf9xVWDF8_ % (roI3spqORKae(z5dkfUwj281f.local, roI3spqORKae(ES5oEprVxulp(b'\xccu69\xa8[m\x03i\xbcmC'), chr(0b100000 + 0o104) + '\x65' + chr(0b1100011) + '\157' + '\x64' + chr(7163 - 7062))(chr(0b10001 + 0o144) + '\164' + chr(0b1011110 + 0o10) + chr(0b101101) + chr(249 - 193))), roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xf1\x0b\x05:\xefImv{\xa2We'), chr(100) + '\x65' + chr(0b100011 + 0o100) + chr(0b1101111) + chr(2614 - 2514) + '\145')('\x75' + chr(116) + chr(102) + '\x2d' + '\070'))[z5dkfUwj281f], yMlqrXAkp__f))
hXMPsSrOQzbh.n2eAuPP4MssC[z5dkfUwj281f] -= yMlqrXAkp__f
hXMPsSrOQzbh.sBx8G4DD5cHc += yMlqrXAkp__f
if xDaRFG__qcx4 is not None:
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xe9W\x19*\xc9v\x0e6G\x86\x16N'), '\x64' + chr(9813 - 9712) + chr(99) + chr(111) + '\144' + chr(432 - 331))('\x75' + '\x74' + chr(0b1010001 + 0o25) + chr(45) + chr(0b101 + 0o63)))(tNK1nzOSYtNR, roI3spqORKae(ES5oEprVxulp(b'\xed\\\x0c\x1e\xfbjX'), chr(100) + chr(0b1011000 + 0o15) + chr(0b1100011) + '\157' + chr(0b1100100) + chr(0b1100101))(chr(0b1110101) + chr(1755 - 1639) + chr(0b1100110) + chr(45) + chr(0b111000)), num_instances=yMlqrXAkp__f, keeping=roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xf1\x0b\x05:\xefImv{\xa2We'), chr(100) + '\x65' + chr(6974 - 6875) + chr(0b1101111) + '\144' + chr(101))('\x75' + chr(8088 - 7972) + '\x66' + chr(1406 - 1361) + '\070'))[z5dkfUwj281f], free=roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xf1L\r$\xf3wN6W\xbfGC\xa3)\xa4\xddx\xf1'), chr(0b11101 + 0o107) + '\x65' + chr(99) + '\x6f' + chr(100) + chr(0b1100101))(chr(6470 - 6353) + chr(0b10010 + 0o142) + chr(6317 - 6215) + chr(45) + '\070')))
if roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xf1\x0b\x05:\xefImv{\xa2We'), chr(0b111110 + 0o46) + '\145' + chr(0b1100011) + '\157' + chr(100) + chr(6463 - 6362))('\165' + chr(0b111111 + 0o65) + '\146' + '\055' + chr(0b111000)))[z5dkfUwj281f] <= nzTpIcepk0o8('\x30' + chr(0b1001 + 0o146) + chr(0b101010 + 0o6), 8):
del roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xf1\x0b\x05:\xefImv{\xa2We'), chr(4744 - 4644) + chr(974 - 873) + '\x63' + chr(4433 - 4322) + chr(100) + chr(0b1100101))('\165' + '\164' + chr(0b101111 + 0o67) + '\x2d' + '\x38'))[z5dkfUwj281f]
if not roI3spqORKae(hXMPsSrOQzbh._waiting, roI3spqORKae(ES5oEprVxulp(b'\xdcJ$\x10\xdcqR{P\xb8ug'), chr(100) + chr(101) + chr(0b110110 + 0o55) + '\x6f' + '\x64' + '\145')(chr(0b1110101) + chr(0b1110100) + chr(9681 - 9579) + chr(1543 - 1498) + chr(0b111000)))():
Azn6M45K_4Ew = wSl4bAa1dokg(nzTpIcepk0o8, hXMPsSrOQzbh._waiting.peek().local.lDykK1M0zUS7)
if Azn6M45K_4Ew <= roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xf1L\r$\xf3wN6W\xbfGC\xa3)\xa4\xddx\xf1'), chr(0b11010 + 0o112) + '\x65' + '\143' + chr(111) + chr(4062 - 3962) + '\145')(chr(0b1110101) + chr(116) + chr(102) + '\055' + chr(56))):
roI3spqORKae(hXMPsSrOQzbh._waiting, roI3spqORKae(ES5oEprVxulp(b'\xeaz?"\xf5`_:\x01\x9b\x14o'), '\x64' + chr(0b11 + 0o142) + '\x63' + chr(111) + chr(8794 - 8694) + '\x65')(chr(0b10000 + 0o145) + chr(7512 - 7396) + chr(102) + chr(1150 - 1105) + chr(0b11001 + 0o37)))()
elif xDaRFG__qcx4 is not None:
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xe9W\x19*\xc9v\x0e6G\x86\x16N'), chr(0b1100100) + chr(101) + '\x63' + chr(240 - 129) + chr(0b1000101 + 0o37) + '\145')(chr(0b100111 + 0o116) + chr(11442 - 11326) + '\146' + chr(0b110 + 0o47) + chr(0b11011 + 0o35)))(XCtmWrNp_YK6, roI3spqORKae(ES5oEprVxulp(b'\xed\\\x0c\x1e\xfbjXoX\xbeTI\xa0'), chr(0b111110 + 0o46) + chr(0b1000111 + 0o36) + chr(6883 - 6784) + chr(0b1101111) + chr(100) + chr(101))('\165' + '\x74' + '\146' + '\x2d' + chr(0b111000)), next_requires=Azn6M45K_4Ew, free=roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xf1L\r$\xf3wN6W\xbfGC\xa3)\xa4\xddx\xf1'), chr(0b1100100) + chr(5409 - 5308) + chr(1085 - 986) + chr(0b1001100 + 0o43) + '\144' + chr(3383 - 3282))(chr(117) + '\x74' + chr(0b101001 + 0o75) + chr(45) + '\070')))
elif xDaRFG__qcx4 is not None:
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xe9W\x19*\xc9v\x0e6G\x86\x16N'), chr(0b1100100) + chr(101) + '\x63' + '\157' + '\144' + chr(101))(chr(0b1010000 + 0o45) + '\x74' + '\x66' + '\055' + chr(56)))(XCtmWrNp_YK6, roI3spqORKae(ES5oEprVxulp(b'\xed\\\x0c\x1e\xfbjXoG\xa4AS\xb5\x13\xaf\xdfi\xed'), chr(5515 - 5415) + chr(4961 - 4860) + chr(99) + chr(111) + chr(100) + chr(0b1100101))('\x75' + chr(0b100100 + 0o120) + '\146' + chr(758 - 713) + chr(0b111000)))
else:
raise _1qUu0gKi9gH(f"Process {roI3spqORKae(z5dkfUwj281f.local, chr(0b1010011) + chr(76) + chr(0b1010110) + chr(0b1000010) + chr(0b1001 + 0o51) + chr(0b11101 + 0o45) + chr(80) + chr(65) + chr(0b1011111) + chr(109) + chr(73) + chr(0b110011 + 0o62))} tries to release {yMlqrXAkp__f} instances, but is holding none.)") |
ElementAI/greensim | greensim/__init__.py | Resource.using | def using(self, num_instances: int = 1, timeout: Optional[float] = None):
"""
Context manager around resource reservation: when the code block under the with statement is entered, the
current process holds the instances it requested. When it exits, all these instances are released.
Do not explicitly `release()` instances within the context block, at the risk of breaking instance management.
If one needs to `release()` instances piecemeal, it should instead reserve the instances using `take()`.
:param num_instances:
Number of resource instances to take.
:param timeout:
If this parameter is not ``None``, it is taken as a delay at the end of which the process times out, and
leaves the queue forcibly. In such a situation, a :py:class:`Timeout` exception is raised on the process.
"""
self.take(num_instances, timeout)
yield self
self.release(num_instances) | python | def using(self, num_instances: int = 1, timeout: Optional[float] = None):
"""
Context manager around resource reservation: when the code block under the with statement is entered, the
current process holds the instances it requested. When it exits, all these instances are released.
Do not explicitly `release()` instances within the context block, at the risk of breaking instance management.
If one needs to `release()` instances piecemeal, it should instead reserve the instances using `take()`.
:param num_instances:
Number of resource instances to take.
:param timeout:
If this parameter is not ``None``, it is taken as a delay at the end of which the process times out, and
leaves the queue forcibly. In such a situation, a :py:class:`Timeout` exception is raised on the process.
"""
self.take(num_instances, timeout)
yield self
self.release(num_instances) | [
"def",
"using",
"(",
"self",
",",
"num_instances",
":",
"int",
"=",
"1",
",",
"timeout",
":",
"Optional",
"[",
"float",
"]",
"=",
"None",
")",
":",
"self",
".",
"take",
"(",
"num_instances",
",",
"timeout",
")",
"yield",
"self",
"self",
".",
"release",
"(",
"num_instances",
")"
] | Context manager around resource reservation: when the code block under the with statement is entered, the
current process holds the instances it requested. When it exits, all these instances are released.
Do not explicitly `release()` instances within the context block, at the risk of breaking instance management.
If one needs to `release()` instances piecemeal, it should instead reserve the instances using `take()`.
:param num_instances:
Number of resource instances to take.
:param timeout:
If this parameter is not ``None``, it is taken as a delay at the end of which the process times out, and
leaves the queue forcibly. In such a situation, a :py:class:`Timeout` exception is raised on the process. | [
"Context",
"manager",
"around",
"resource",
"reservation",
":",
"when",
"the",
"code",
"block",
"under",
"the",
"with",
"statement",
"is",
"entered",
"the",
"current",
"process",
"holds",
"the",
"instances",
"it",
"requested",
".",
"When",
"it",
"exits",
"all",
"these",
"instances",
"are",
"released",
"."
] | f160e8b57d69f6ef469f2e991cc07b7721e08a91 | https://github.com/ElementAI/greensim/blob/f160e8b57d69f6ef469f2e991cc07b7721e08a91/greensim/__init__.py#L985-L1001 | train | Context manager around resource reservation. | GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJH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NQ06Xw,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(70 - 22) + '\157' + chr(0b1010 + 0o47) + chr(980 - 931) + chr(1885 - 1836), 0b1000), nzTpIcepk0o8('\x30' + '\157' + '\061' + '\x36' + chr(0b110100), 0o10), nzTpIcepk0o8(chr(48) + '\157' + '\x31' + '\x30' + chr(0b11111 + 0o25), 55360 - 55352), nzTpIcepk0o8(chr(0b1010 + 0o46) + '\x6f' + '\062' + chr(0b110010) + '\x33', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + '\064', 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110010) + '\065' + chr(0b110100), 33348 - 33340), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b11010 + 0o31) + '\x32' + chr(0b110000), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(4438 - 4327) + '\x32' + '\061' + chr(0b110001), 8337 - 8329), nzTpIcepk0o8(chr(0b110000) + chr(361 - 250) + chr(49) + chr(0b1010 + 0o54), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + '\x32' + chr(0b101000 + 0o11) + '\064', 57521 - 57513), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b0 + 0o63) + chr(0b1000 + 0o56) + chr(54), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1011111 + 0o20) + chr(0b110010) + '\061' + '\x35', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b101 + 0o54) + chr(0b110011) + '\064', ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(0b111 + 0o52) + chr(50) + chr(52), ord("\x08")), nzTpIcepk0o8(chr(2020 - 1972) + chr(0b101001 + 0o106) + '\x32' + chr(120 - 67) + chr(0b110011), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(51) + chr(51) + chr(0b110011), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + '\x33' + chr(0b110100) + chr(0b110011), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(56 - 5) + '\063' + chr(1829 - 1775), 26352 - 26344), nzTpIcepk0o8('\060' + chr(111) + chr(432 - 383) + chr(0b110110), 8), nzTpIcepk0o8(chr(2276 - 2228) + chr(111) + chr(0b101001 + 0o12) + chr(0b111 + 0o55) + chr(0b11111 + 0o23), 0b1000), nzTpIcepk0o8(chr(0b1000 + 0o50) + '\x6f' + chr(0b110001) + chr(2120 - 2071) + chr(0b110000), 12285 - 12277), nzTpIcepk0o8(chr(48) + '\x6f' + '\x31' + chr(1146 - 1092) + chr(52), 8), nzTpIcepk0o8('\x30' + chr(111) + '\x31' + chr(1715 - 1665) + chr(0b101000 + 0o12), ord("\x08")), nzTpIcepk0o8(chr(0b10000 + 0o40) + chr(0b1101111) + chr(0b110 + 0o60) + chr(0b101110 + 0o7), ord("\x08")), nzTpIcepk0o8(chr(0b1101 + 0o43) + chr(0b100110 + 0o111) + chr(1591 - 1541) + chr(0b110001) + '\066', 62785 - 62777), nzTpIcepk0o8(chr(0b1001 + 0o47) + '\157' + chr(0b110001) + '\062' + chr(0b11101 + 0o27), 8), nzTpIcepk0o8('\x30' + chr(9698 - 9587) + chr(614 - 565) + chr(2749 - 2696) + '\065', 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(996 - 947) + chr(49) + chr(0b1101 + 0o50), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(0b110010) + chr(0b110010 + 0o2) + '\x31', 60464 - 60456), nzTpIcepk0o8('\x30' + '\157' + '\x35' + chr(52), 56688 - 56680), nzTpIcepk0o8('\x30' + chr(428 - 317) + chr(49) + chr(0b100111 + 0o14) + '\x35', 0b1000), nzTpIcepk0o8(chr(0b100101 + 0o13) + '\x6f' + '\064' + chr(0b10100 + 0o37), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1 + 0o156) + '\x32' + chr(51) + '\066', 62601 - 62593), nzTpIcepk0o8('\x30' + chr(111) + '\x31' + chr(208 - 157) + chr(0b110011), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(8147 - 8036) + chr(0b110011) + chr(0b11110 + 0o30) + '\062', ord("\x08")), nzTpIcepk0o8(chr(1338 - 1290) + '\x6f' + '\x31' + chr(0b110110), 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1000111 + 0o50) + '\x31' + chr(54) + chr(1543 - 1493), 0b1000), nzTpIcepk0o8(chr(0b10001 + 0o37) + chr(8756 - 8645) + chr(0b10001 + 0o42) + chr(0b110101) + chr(0b1 + 0o62), 23268 - 23260), nzTpIcepk0o8(chr(48) + chr(0b1010111 + 0o30) + chr(930 - 881) + '\063' + chr(2292 - 2243), 18677 - 18669), nzTpIcepk0o8('\060' + chr(0b1011111 + 0o20) + '\063' + chr(0b11010 + 0o33) + '\x31', ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(53) + chr(0b1110 + 0o42), ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'g'), chr(0b1000000 + 0o44) + chr(1915 - 1814) + chr(0b110000 + 0o63) + chr(111) + chr(0b1100100) + chr(101))('\165' + '\164' + chr(0b111001 + 0o55) + '\x2d' + '\070') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def U7ZeMp0cWWdU(hXMPsSrOQzbh, yMlqrXAkp__f=nzTpIcepk0o8(chr(543 - 495) + chr(111) + chr(0b1011 + 0o46), 0o10), ACACUUFQsMpr=None):
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'=\x15/\xf6'), chr(0b1010000 + 0o24) + chr(1201 - 1100) + '\143' + chr(5133 - 5022) + chr(4356 - 4256) + chr(0b1100101))('\x75' + '\x74' + '\x66' + chr(0b101101) + chr(580 - 524)))(yMlqrXAkp__f, ACACUUFQsMpr)
yield hXMPsSrOQzbh
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'(!\x0c\xf91\xee\xbb\xcbo\xb5\xb9\xc3'), chr(7673 - 7573) + '\x65' + '\x63' + '\157' + '\x64' + '\x65')(chr(13212 - 13095) + '\x74' + '\x66' + '\055' + chr(0b1 + 0o67)))(yMlqrXAkp__f) |
ElementAI/greensim | greensim/progress.py | track_progress | def track_progress(
measure: MeasureProgress,
target: MetricProgress,
interval_check: float,
capture_maybe: Optional[CaptureProgress] = None
) -> None:
"""
Tracks progress against a certain end condition of the simulation (for instance, a certain duration on the simulated
clock), reporting this progress as the simulation chugs along. Stops the simulation once the target has been
reached. By default, the progress is reported as printout on standard output, in a manner that works best for
digital terminals.
"""
def measure_to_target() -> MeasureComparison:
return list(zip(measure(), target))
def is_finished(progress: MeasureComparison) -> bool:
return all(p >= t for p, t in progress)
capture = capture_maybe or capture_print()
rt_started = now_real()
while True:
advance(interval_check)
rt_elapsed = now_real() - rt_started
progress = measure_to_target()
ratio_progress_min = min(m / t for m, t in progress)
if ratio_progress_min == 0.0:
rt_total_projected = inf
else:
rt_total_projected = rt_elapsed / ratio_progress_min
capture(ratio_progress_min, rt_total_projected - rt_elapsed, progress)
if is_finished(progress):
stop()
break | python | def track_progress(
measure: MeasureProgress,
target: MetricProgress,
interval_check: float,
capture_maybe: Optional[CaptureProgress] = None
) -> None:
"""
Tracks progress against a certain end condition of the simulation (for instance, a certain duration on the simulated
clock), reporting this progress as the simulation chugs along. Stops the simulation once the target has been
reached. By default, the progress is reported as printout on standard output, in a manner that works best for
digital terminals.
"""
def measure_to_target() -> MeasureComparison:
return list(zip(measure(), target))
def is_finished(progress: MeasureComparison) -> bool:
return all(p >= t for p, t in progress)
capture = capture_maybe or capture_print()
rt_started = now_real()
while True:
advance(interval_check)
rt_elapsed = now_real() - rt_started
progress = measure_to_target()
ratio_progress_min = min(m / t for m, t in progress)
if ratio_progress_min == 0.0:
rt_total_projected = inf
else:
rt_total_projected = rt_elapsed / ratio_progress_min
capture(ratio_progress_min, rt_total_projected - rt_elapsed, progress)
if is_finished(progress):
stop()
break | [
"def",
"track_progress",
"(",
"measure",
":",
"MeasureProgress",
",",
"target",
":",
"MetricProgress",
",",
"interval_check",
":",
"float",
",",
"capture_maybe",
":",
"Optional",
"[",
"CaptureProgress",
"]",
"=",
"None",
")",
"->",
"None",
":",
"def",
"measure_to_target",
"(",
")",
"->",
"MeasureComparison",
":",
"return",
"list",
"(",
"zip",
"(",
"measure",
"(",
")",
",",
"target",
")",
")",
"def",
"is_finished",
"(",
"progress",
":",
"MeasureComparison",
")",
"->",
"bool",
":",
"return",
"all",
"(",
"p",
">=",
"t",
"for",
"p",
",",
"t",
"in",
"progress",
")",
"capture",
"=",
"capture_maybe",
"or",
"capture_print",
"(",
")",
"rt_started",
"=",
"now_real",
"(",
")",
"while",
"True",
":",
"advance",
"(",
"interval_check",
")",
"rt_elapsed",
"=",
"now_real",
"(",
")",
"-",
"rt_started",
"progress",
"=",
"measure_to_target",
"(",
")",
"ratio_progress_min",
"=",
"min",
"(",
"m",
"/",
"t",
"for",
"m",
",",
"t",
"in",
"progress",
")",
"if",
"ratio_progress_min",
"==",
"0.0",
":",
"rt_total_projected",
"=",
"inf",
"else",
":",
"rt_total_projected",
"=",
"rt_elapsed",
"/",
"ratio_progress_min",
"capture",
"(",
"ratio_progress_min",
",",
"rt_total_projected",
"-",
"rt_elapsed",
",",
"progress",
")",
"if",
"is_finished",
"(",
"progress",
")",
":",
"stop",
"(",
")",
"break"
] | Tracks progress against a certain end condition of the simulation (for instance, a certain duration on the simulated
clock), reporting this progress as the simulation chugs along. Stops the simulation once the target has been
reached. By default, the progress is reported as printout on standard output, in a manner that works best for
digital terminals. | [
"Tracks",
"progress",
"against",
"a",
"certain",
"end",
"condition",
"of",
"the",
"simulation",
"(",
"for",
"instance",
"a",
"certain",
"duration",
"on",
"the",
"simulated",
"clock",
")",
"reporting",
"this",
"progress",
"as",
"the",
"simulation",
"chugs",
"along",
".",
"Stops",
"the",
"simulation",
"once",
"the",
"target",
"has",
"been",
"reached",
".",
"By",
"default",
"the",
"progress",
"is",
"reported",
"as",
"printout",
"on",
"standard",
"output",
"in",
"a",
"manner",
"that",
"works",
"best",
"for",
"digital",
"terminals",
"."
] | f160e8b57d69f6ef469f2e991cc07b7721e08a91 | https://github.com/ElementAI/greensim/blob/f160e8b57d69f6ef469f2e991cc07b7721e08a91/greensim/progress.py#L49-L84 | train | Track the progress of a given measure against a target. | GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByL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_BbS,WtdkIpFeYozM,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(0b1101111) + '\x33' + chr(726 - 671) + chr(0b110010), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x33' + chr(51) + chr(1904 - 1854), ord("\x08")), nzTpIcepk0o8(chr(0b101 + 0o53) + chr(0b1101100 + 0o3) + chr(0b110010) + chr(0b11101 + 0o23) + chr(1659 - 1611), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b101110 + 0o101) + chr(50) + chr(54) + '\x36', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\062' + '\x35' + '\063', 39943 - 39935), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110111) + chr(48), 58582 - 58574), nzTpIcepk0o8(chr(0b110000) + chr(0b111010 + 0o65) + chr(1341 - 1293), ord("\x08")), nzTpIcepk0o8(chr(101 - 53) + chr(4630 - 4519) + '\063' + chr(52), 5640 - 5632), nzTpIcepk0o8(chr(0b110000) + chr(7588 - 7477) + chr(50) + '\x31' + chr(0b110111), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(548 - 498) + '\x37' + '\060', 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(1737 - 1688) + chr(0b110111), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + '\x31' + '\062' + chr(0b110000), 55462 - 55454), nzTpIcepk0o8(chr(0b10101 + 0o33) + chr(0b100110 + 0o111) + chr(0b110011 + 0o2) + chr(0b1000 + 0o52), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b1010 + 0o47) + '\x33' + '\060', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101011 + 0o4) + chr(0b11000 + 0o31) + chr(0b1011 + 0o52), 0b1000), nzTpIcepk0o8(chr(0b101 + 0o53) + chr(111) + chr(0b110011) + chr(0b100010 + 0o21) + chr(0b110100), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(0b11110 + 0o31) + chr(213 - 162), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110011) + '\062' + chr(0b100101 + 0o15), ord("\x08")), nzTpIcepk0o8(chr(1366 - 1318) + '\x6f' + chr(0b1 + 0o60) + chr(0b110011) + chr(55), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(49) + chr(1833 - 1780) + chr(54), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110110) + '\x33', 49288 - 49280), nzTpIcepk0o8(chr(48) + chr(111) + '\x31' + chr(0b110001 + 0o0) + chr(0b110001), 16902 - 16894), nzTpIcepk0o8(chr(0b101100 + 0o4) + chr(0b111001 + 0o66) + '\x32' + chr(0b10011 + 0o43) + chr(51), 0o10), nzTpIcepk0o8('\x30' + chr(8627 - 8516) + chr(0b110 + 0o55) + chr(0b110100 + 0o2) + chr(0b11110 + 0o26), 38887 - 38879), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110101) + '\067', 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + '\061' + chr(50) + '\x30', 8), nzTpIcepk0o8('\060' + chr(0b11001 + 0o126) + '\x33' + chr(53) + chr(49), 62147 - 62139), nzTpIcepk0o8(chr(1605 - 1557) + '\157' + chr(54) + chr(1262 - 1214), 30894 - 30886), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(2259 - 2208) + chr(0b1000 + 0o57) + chr(0b100 + 0o61), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\061' + chr(51) + chr(0b10100 + 0o35), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x33' + '\x36' + chr(0b101 + 0o53), 29041 - 29033), nzTpIcepk0o8('\x30' + chr(0b11000 + 0o127) + chr(246 - 195) + chr(0b11100 + 0o26) + chr(164 - 111), 0b1000), nzTpIcepk0o8(chr(0b100101 + 0o13) + chr(11632 - 11521) + chr(0b11100 + 0o27) + chr(54) + chr(2205 - 2152), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b111011 + 0o64) + chr(0b11000 + 0o32) + '\061' + chr(0b10000 + 0o41), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110000 + 0o2) + chr(0b100001 + 0o26) + chr(0b101010 + 0o15), ord("\x08")), nzTpIcepk0o8(chr(1482 - 1434) + '\x6f' + chr(0b1111 + 0o43) + '\x35' + chr(0b1101 + 0o51), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1001101 + 0o42) + '\062' + chr(0b110111) + chr(53), 57093 - 57085), nzTpIcepk0o8(chr(0b101 + 0o53) + '\157' + chr(0b101101 + 0o4) + chr(52) + chr(52), ord("\x08")), nzTpIcepk0o8('\060' + chr(10009 - 9898) + chr(0b110010) + chr(54) + chr(1774 - 1720), 8), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x37' + chr(51), 8)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b100001 + 0o17) + chr(0b1101111) + '\x35' + chr(0b1001 + 0o47), ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xd4'), chr(0b111 + 0o135) + chr(0b1000110 + 0o37) + chr(0b1100011) + chr(0b1101111) + '\x64' + chr(5751 - 5650))(chr(0b1110101) + chr(3175 - 3059) + '\x66' + '\055' + chr(56)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def lay3ZJvkvCq3(eD5Jw5KZkmIm, qc_AZrsvdJzx, djXHB1PqbArs, Wpf0JysZ75nf=None) -> None:
def Bxt6tblsElgB() -> jCGQl66zPqJJ:
return H4NoA26ON7iG(TxMFWa_Xzviv(eD5Jw5KZkmIm(), qc_AZrsvdJzx))
def FaeNawqXSlbp(CbDdmuO451no) -> TVUhqOt5_BbS:
return qX60lO1lgHA5((fSdw5wwLo9MO >= h3Vc_4wxEbgd for (fSdw5wwLo9MO, h3Vc_4wxEbgd) in CbDdmuO451no))
B393Bv8eJfn6 = Wpf0JysZ75nf or UU2DDEbcIrG2()
WuupZEW70Qnd = v8dmBiOs7FoY()
while nzTpIcepk0o8(chr(0b110000) + chr(1218 - 1107) + chr(49), 24003 - 23995):
_n648RG75cgK(djXHB1PqbArs)
T6hpFugiZt1b = v8dmBiOs7FoY() - WuupZEW70Qnd
CbDdmuO451no = Bxt6tblsElgB()
nScIOAZN8jLA = XURpmPuEWCNF((tF75nqoNENFL / h3Vc_4wxEbgd for (tF75nqoNENFL, h3Vc_4wxEbgd) in CbDdmuO451no))
if nScIOAZN8jLA == 0.0:
eOfUP97xxi90 = fMNxX9dGa5H9
else:
eOfUP97xxi90 = T6hpFugiZt1b / nScIOAZN8jLA
B393Bv8eJfn6(nScIOAZN8jLA, eOfUP97xxi90 - T6hpFugiZt1b, CbDdmuO451no)
if FaeNawqXSlbp(CbDdmuO451no):
dYJbBiYO_nGE()
break |
libnano/primer3-py | primer3/wrappers.py | calcTm | def calcTm(seq, mv_conc=50, dv_conc=0, dntp_conc=0.8, dna_conc=50,
max_nn_length=60, tm_method='santalucia',
salt_corrections_method='santalucia'):
''' Return the tm of `seq` as a float.
'''
tm_meth = _tm_methods.get(tm_method)
if tm_meth is None:
raise ValueError('{} is not a valid tm calculation method'.format(
tm_method))
salt_meth = _salt_corrections_methods.get(salt_corrections_method)
if salt_meth is None:
raise ValueError('{} is not a valid salt correction method'.format(
salt_corrections_method))
# For whatever reason mv_conc and dna_conc have to be ints
args = [pjoin(PRIMER3_HOME, 'oligotm'),
'-mv', str(mv_conc),
'-dv', str(dv_conc),
'-n', str(dntp_conc),
'-d', str(dna_conc),
'-tp', str(tm_meth),
'-sc', str(salt_meth),
seq]
tm = subprocess.check_output(args, stderr=DEV_NULL,
env=os.environ)
return float(tm) | python | def calcTm(seq, mv_conc=50, dv_conc=0, dntp_conc=0.8, dna_conc=50,
max_nn_length=60, tm_method='santalucia',
salt_corrections_method='santalucia'):
''' Return the tm of `seq` as a float.
'''
tm_meth = _tm_methods.get(tm_method)
if tm_meth is None:
raise ValueError('{} is not a valid tm calculation method'.format(
tm_method))
salt_meth = _salt_corrections_methods.get(salt_corrections_method)
if salt_meth is None:
raise ValueError('{} is not a valid salt correction method'.format(
salt_corrections_method))
# For whatever reason mv_conc and dna_conc have to be ints
args = [pjoin(PRIMER3_HOME, 'oligotm'),
'-mv', str(mv_conc),
'-dv', str(dv_conc),
'-n', str(dntp_conc),
'-d', str(dna_conc),
'-tp', str(tm_meth),
'-sc', str(salt_meth),
seq]
tm = subprocess.check_output(args, stderr=DEV_NULL,
env=os.environ)
return float(tm) | [
"def",
"calcTm",
"(",
"seq",
",",
"mv_conc",
"=",
"50",
",",
"dv_conc",
"=",
"0",
",",
"dntp_conc",
"=",
"0.8",
",",
"dna_conc",
"=",
"50",
",",
"max_nn_length",
"=",
"60",
",",
"tm_method",
"=",
"'santalucia'",
",",
"salt_corrections_method",
"=",
"'santalucia'",
")",
":",
"tm_meth",
"=",
"_tm_methods",
".",
"get",
"(",
"tm_method",
")",
"if",
"tm_meth",
"is",
"None",
":",
"raise",
"ValueError",
"(",
"'{} is not a valid tm calculation method'",
".",
"format",
"(",
"tm_method",
")",
")",
"salt_meth",
"=",
"_salt_corrections_methods",
".",
"get",
"(",
"salt_corrections_method",
")",
"if",
"salt_meth",
"is",
"None",
":",
"raise",
"ValueError",
"(",
"'{} is not a valid salt correction method'",
".",
"format",
"(",
"salt_corrections_method",
")",
")",
"# For whatever reason mv_conc and dna_conc have to be ints",
"args",
"=",
"[",
"pjoin",
"(",
"PRIMER3_HOME",
",",
"'oligotm'",
")",
",",
"'-mv'",
",",
"str",
"(",
"mv_conc",
")",
",",
"'-dv'",
",",
"str",
"(",
"dv_conc",
")",
",",
"'-n'",
",",
"str",
"(",
"dntp_conc",
")",
",",
"'-d'",
",",
"str",
"(",
"dna_conc",
")",
",",
"'-tp'",
",",
"str",
"(",
"tm_meth",
")",
",",
"'-sc'",
",",
"str",
"(",
"salt_meth",
")",
",",
"seq",
"]",
"tm",
"=",
"subprocess",
".",
"check_output",
"(",
"args",
",",
"stderr",
"=",
"DEV_NULL",
",",
"env",
"=",
"os",
".",
"environ",
")",
"return",
"float",
"(",
"tm",
")"
] | Return the tm of `seq` as a float. | [
"Return",
"the",
"tm",
"of",
"seq",
"as",
"a",
"float",
"."
] | 0901c0ef3ac17afd69329d23db71136c00bcb635 | https://github.com/libnano/primer3-py/blob/0901c0ef3ac17afd69329d23db71136c00bcb635/primer3/wrappers.py#L70-L94 | train | Calculate the tm of a sequence. | 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_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Fo6RhVJa,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(0b1110 + 0o42) + '\x6f' + chr(0b110100 + 0o3) + chr(0b1110 + 0o42), 0o10), nzTpIcepk0o8(chr(48) + chr(4043 - 3932) + chr(1754 - 1703) + chr(0b110111) + chr(0b11100 + 0o25), 0o10), nzTpIcepk0o8(chr(2212 - 2164) + chr(8116 - 8005) + '\x31' + chr(0b110111) + '\060', ord("\x08")), nzTpIcepk0o8(chr(0b101010 + 0o6) + chr(9765 - 9654) + chr(914 - 864) + '\064' + '\064', 34027 - 34019), nzTpIcepk0o8(chr(260 - 212) + chr(0b1101111) + '\x32' + chr(1886 - 1836) + '\062', ord("\x08")), nzTpIcepk0o8(chr(0b101010 + 0o6) + chr(0b110 + 0o151) + chr(50) + chr(0b100001 + 0o20) + '\060', ord("\x08")), nzTpIcepk0o8(chr(0b10111 + 0o31) + chr(0b1010001 + 0o36) + chr(0b110010) + chr(976 - 921), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101101 + 0o2) + '\065' + '\x32', 0o10), nzTpIcepk0o8(chr(484 - 436) + chr(0b1011011 + 0o24) + chr(52) + chr(51), ord("\x08")), nzTpIcepk0o8(chr(651 - 603) + chr(0b1001110 + 0o41) + '\x31' + chr(1922 - 1867) + chr(1022 - 969), 4828 - 4820), nzTpIcepk0o8(chr(0b10111 + 0o31) + '\x6f' + chr(0b11100 + 0o25) + chr(0b110101) + chr(53), 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(658 - 609) + chr(0b110100), 2852 - 2844), nzTpIcepk0o8(chr(48) + chr(1194 - 1083) + '\063' + '\067' + '\063', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(55) + chr(0b110100 + 0o1), 26100 - 26092), nzTpIcepk0o8(chr(0b110000) + '\157' + '\066' + chr(1855 - 1806), 0o10), nzTpIcepk0o8('\x30' + '\157' + '\061' + chr(2225 - 2175) + '\x34', 0b1000), nzTpIcepk0o8(chr(1224 - 1176) + chr(111) + chr(0b100100 + 0o23) + chr(0b10111 + 0o36), 8), nzTpIcepk0o8('\x30' + '\x6f' + '\061' + chr(2247 - 2196) + chr(0b10010 + 0o41), ord("\x08")), nzTpIcepk0o8(chr(1327 - 1279) + chr(111) + '\062' + '\063' + chr(0b1110 + 0o46), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(50) + chr(55) + chr(0b1110 + 0o46), 55854 - 55846), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110001) + '\x36' + '\066', 0b1000), nzTpIcepk0o8('\060' + chr(0b1100010 + 0o15) + chr(2095 - 2046) + '\x35' + chr(0b110000), 61854 - 61846), nzTpIcepk0o8('\060' + chr(1673 - 1562) + '\063' + chr(48) + chr(54), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\062' + '\060' + '\064', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(7653 - 7542) + chr(1221 - 1172) + chr(1833 - 1781) + chr(0b110001), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(7505 - 7394) + chr(49) + chr(0b10100 + 0o36) + '\x34', 8), nzTpIcepk0o8(chr(1106 - 1058) + '\x6f' + chr(0b10100 + 0o36) + '\061' + '\x30', 8), nzTpIcepk0o8(chr(278 - 230) + chr(0b1111 + 0o140) + chr(0b110011) + chr(0b110111) + chr(1598 - 1550), 0o10), nzTpIcepk0o8(chr(876 - 828) + chr(11792 - 11681) + chr(50) + chr(53) + chr(49), ord("\x08")), nzTpIcepk0o8(chr(0b101010 + 0o6) + '\x6f' + chr(0b110001) + chr(0b11 + 0o57) + chr(53), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b100100 + 0o16) + chr(51) + chr(2430 - 2380), 45106 - 45098), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b100001 + 0o22) + chr(53) + '\064', 1192 - 1184), nzTpIcepk0o8(chr(424 - 376) + '\x6f' + '\x34' + '\x31', 0o10), nzTpIcepk0o8('\060' + chr(0b100011 + 0o114) + chr(51) + chr(0b110 + 0o54) + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x31' + chr(53) + chr(53), 8), nzTpIcepk0o8(chr(48) + chr(0b110010 + 0o75) + chr(0b11111 + 0o23) + chr(934 - 886) + chr(0b110100), 8), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x32' + chr(678 - 627) + chr(0b101100 + 0o10), 8), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\066' + chr(1470 - 1417), 0o10), nzTpIcepk0o8('\x30' + chr(2328 - 2217) + chr(1634 - 1585) + chr(0b100 + 0o62) + chr(0b110000), 0o10), nzTpIcepk0o8('\060' + '\x6f' + '\065' + chr(0b101110 + 0o2), 17524 - 17516)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(2265 - 2217) + '\x6f' + chr(0b110101) + chr(0b110000), 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x16'), '\x64' + chr(101) + chr(0b1010000 + 0o23) + chr(0b1101111) + chr(0b1100100) + chr(101))(chr(9248 - 9131) + chr(0b1110100) + chr(102) + chr(0b101101) + chr(56)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def CW2CV8AtGFWn(ftk9lc7G5FOo, AvX0hwlWiTIv=nzTpIcepk0o8(chr(0b110 + 0o52) + chr(7281 - 7170) + chr(54) + chr(1551 - 1501), ord("\x08")), K18LaWmI4Oec=nzTpIcepk0o8(chr(1229 - 1181) + chr(111) + chr(0b110000), ord("\x08")), i3gq36XlZQc8=0.8, zbsFo9YBqdsz=nzTpIcepk0o8(chr(0b11100 + 0o24) + chr(6459 - 6348) + '\x36' + chr(0b110010), 8), DxqHtZKlGih_=nzTpIcepk0o8(chr(1908 - 1860) + chr(111) + chr(0b110111) + '\x34', 41447 - 41439), azSAU6jHWo9p=roI3spqORKae(ES5oEprVxulp(b'K\x98\x16\xd0\xf3\xe4bIJ\x1c'), chr(100) + chr(0b111011 + 0o52) + chr(99) + chr(0b1101100 + 0o3) + chr(0b1100100) + chr(3628 - 3527))('\165' + '\164' + chr(4078 - 3976) + chr(45) + chr(0b101101 + 0o13)), zkSIhPRYgsUh=roI3spqORKae(ES5oEprVxulp(b'K\x98\x16\xd0\xf3\xe4bIJ\x1c'), chr(1585 - 1485) + '\x65' + '\143' + '\157' + '\x64' + chr(6947 - 6846))(chr(0b100 + 0o161) + chr(0b111111 + 0o65) + chr(0b1100110) + chr(45) + chr(164 - 108))):
DRXOIoDtSOxm = z2lKQGv9px6X.GUKetu4xaGsJ(azSAU6jHWo9p)
if DRXOIoDtSOxm is None:
raise WbNHlDKpyPtQ(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'C\x84X\xcd\xe1\xa8yEW]\x0c,\x8d\\]=Y{\xe8\xd1V\x0b\xa7\xe8\x02!\xe4\x99\xdd<\xf5\x82\x01\xbc\x08\xf0\xf4Z\x14'), chr(0b1100100) + chr(0b1100101) + chr(0b100011 + 0o100) + chr(0b1101111) + '\144' + chr(3104 - 3003))('\165' + '\164' + chr(936 - 834) + '\x2d' + chr(0b111000)), roI3spqORKae(ES5oEprVxulp(b'I\xcaK\xef\xd5\xbbqEr".F'), chr(100) + '\x65' + chr(0b1001101 + 0o26) + chr(0b1101111) + chr(2423 - 2323) + chr(0b1100101))('\x75' + chr(0b1110010 + 0o2) + chr(1769 - 1667) + '\055' + '\x38'))(azSAU6jHWo9p))
ZjRavSarCyQb = WqzYMcbk4IPA.GUKetu4xaGsJ(zkSIhPRYgsUh)
if ZjRavSarCyQb is None:
raise WbNHlDKpyPtQ(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'C\x84X\xcd\xe1\xa8yEW]\x0c,\x8d\\]=Y{\xef\xdd\x1a\x1c\xe6\xe7\x0e&\xfa\x9d\xca!\xf3\x83O\xf1\x00\xe1\xe8]\x1fL'), chr(0b111 + 0o135) + '\145' + '\x63' + '\x6f' + chr(626 - 526) + chr(793 - 692))(chr(0b1101000 + 0o15) + chr(0b1110100) + chr(0b1000010 + 0o44) + chr(0b101101) + chr(56)), roI3spqORKae(ES5oEprVxulp(b'I\xcaK\xef\xd5\xbbqEr".F'), '\x64' + chr(7234 - 7133) + chr(0b1100011) + chr(0b1101111) + '\144' + chr(101))(chr(0b1110101) + chr(116) + chr(102) + chr(0b1 + 0o54) + '\070'))(zkSIhPRYgsUh))
eemPYp2vtTSr = [sl4lpVyym_WD(gxNpFP32FIDP, roI3spqORKae(ES5oEprVxulp(b'W\x95\x11\xc3\xfd\xfcz'), '\144' + chr(1101 - 1000) + chr(0b1100011) + '\157' + chr(0b1100100) + '\145')('\165' + chr(116) + chr(102) + '\x2d' + chr(0b111000))), roI3spqORKae(ES5oEprVxulp(b'\x15\x94\x0e'), chr(0b10001 + 0o123) + chr(101) + chr(99) + chr(0b1101111) + chr(100) + '\x65')(chr(6230 - 6113) + chr(116) + chr(102) + '\055' + chr(56)), N9zlRy29S1SS(AvX0hwlWiTIv), roI3spqORKae(ES5oEprVxulp(b'\x15\x9d\x0e'), '\x64' + chr(0b1100101) + '\143' + chr(0b111100 + 0o63) + chr(100) + chr(101))(chr(117) + chr(116) + chr(0b1100110) + '\x2d' + '\070'), N9zlRy29S1SS(K18LaWmI4Oec), roI3spqORKae(ES5oEprVxulp(b'\x15\x97'), chr(100) + chr(1207 - 1106) + chr(0b0 + 0o143) + chr(11444 - 11333) + chr(100) + chr(0b111111 + 0o46))('\x75' + chr(0b1110100) + chr(1877 - 1775) + chr(45) + '\x38'), N9zlRy29S1SS(i3gq36XlZQc8), roI3spqORKae(ES5oEprVxulp(b'\x15\x9d'), chr(100) + chr(101) + '\x63' + chr(0b1101111) + '\144' + chr(0b1100101))(chr(0b1110101) + chr(0b101000 + 0o114) + chr(0b1100000 + 0o6) + chr(45) + '\x38'), N9zlRy29S1SS(zbsFo9YBqdsz), roI3spqORKae(ES5oEprVxulp(b'\x15\x8d\x08'), chr(0b1011001 + 0o13) + chr(0b111010 + 0o53) + chr(0b1100011) + '\157' + chr(0b1100100) + chr(958 - 857))('\165' + chr(0b1110100) + chr(0b1011001 + 0o15) + '\055' + chr(56)), N9zlRy29S1SS(DRXOIoDtSOxm), roI3spqORKae(ES5oEprVxulp(b'\x15\x8a\x1b'), '\x64' + '\145' + chr(99) + chr(0b1101111) + chr(0b1100100) + chr(0b1000011 + 0o42))('\x75' + '\x74' + chr(0b1011110 + 0o10) + '\055' + chr(0b111000)), N9zlRy29S1SS(ZjRavSarCyQb), ftk9lc7G5FOo]
VH5NUDuH5Da3 = eT8Y087E_kfd.check_output(eemPYp2vtTSr, stderr=TBTYgEW8geui, env=aHUqKstZLeS6.I3lWyC6_P_MO)
return jLW6pRf2DSRk(VH5NUDuH5Da3) |
libnano/primer3-py | primer3/wrappers.py | _parse_ntthal | def _parse_ntthal(ntthal_output):
''' Helper method that uses regex to parse ntthal output. '''
parsed_vals = re.search(_ntthal_re, ntthal_output)
return THERMORESULT(
True, # Structure found
float(parsed_vals.group(1)), # dS
float(parsed_vals.group(2)), # dH
float(parsed_vals.group(3)), # dG
float(parsed_vals.group(4)) # tm
) if parsed_vals else NULLTHERMORESULT | python | def _parse_ntthal(ntthal_output):
''' Helper method that uses regex to parse ntthal output. '''
parsed_vals = re.search(_ntthal_re, ntthal_output)
return THERMORESULT(
True, # Structure found
float(parsed_vals.group(1)), # dS
float(parsed_vals.group(2)), # dH
float(parsed_vals.group(3)), # dG
float(parsed_vals.group(4)) # tm
) if parsed_vals else NULLTHERMORESULT | [
"def",
"_parse_ntthal",
"(",
"ntthal_output",
")",
":",
"parsed_vals",
"=",
"re",
".",
"search",
"(",
"_ntthal_re",
",",
"ntthal_output",
")",
"return",
"THERMORESULT",
"(",
"True",
",",
"# Structure found",
"float",
"(",
"parsed_vals",
".",
"group",
"(",
"1",
")",
")",
",",
"# dS",
"float",
"(",
"parsed_vals",
".",
"group",
"(",
"2",
")",
")",
",",
"# dH",
"float",
"(",
"parsed_vals",
".",
"group",
"(",
"3",
")",
")",
",",
"# dG",
"float",
"(",
"parsed_vals",
".",
"group",
"(",
"4",
")",
")",
"# tm",
")",
"if",
"parsed_vals",
"else",
"NULLTHERMORESULT"
] | Helper method that uses regex to parse ntthal output. | [
"Helper",
"method",
"that",
"uses",
"regex",
"to",
"parse",
"ntthal",
"output",
"."
] | 0901c0ef3ac17afd69329d23db71136c00bcb635 | https://github.com/libnano/primer3-py/blob/0901c0ef3ac17afd69329d23db71136c00bcb635/primer3/wrappers.py#L110-L119 | train | Helper method that uses regex to parse ntthal output. | 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,aF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rq9N5ala,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(0b10101 + 0o40) + chr(0b110101), 0b1000), nzTpIcepk0o8(chr(0b1110 + 0o42) + chr(111) + chr(2020 - 1971) + chr(0b100000 + 0o27), ord("\x08")), nzTpIcepk0o8(chr(269 - 221) + chr(1670 - 1559) + '\x31' + '\065' + '\063', 52749 - 52741), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b10010 + 0o41) + chr(0b110000) + '\x36', 42935 - 42927), nzTpIcepk0o8(chr(509 - 461) + chr(111) + chr(0b101011 + 0o7) + chr(0b110001) + '\060', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(53) + chr(53), 8), nzTpIcepk0o8(chr(1135 - 1087) + chr(0b1101111) + chr(0b1100 + 0o46) + chr(0b110010) + '\x32', 0o10), nzTpIcepk0o8(chr(1039 - 991) + chr(0b1101111) + '\x35' + chr(0b110100), 0o10), nzTpIcepk0o8(chr(0b100110 + 0o12) + '\x6f' + chr(769 - 720) + '\x36' + chr(89 - 34), 0b1000), nzTpIcepk0o8(chr(0b101100 + 0o4) + chr(0b1101111) + chr(49) + chr(52) + '\061', 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(849 - 798) + chr(979 - 925) + '\x35', 49223 - 49215), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110011) + chr(52) + chr(0b11111 + 0o30), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\062' + chr(0b110111) + chr(0b100101 + 0o15), 46749 - 46741), nzTpIcepk0o8(chr(0b110000) + chr(0b110001 + 0o76) + chr(51) + chr(50) + '\067', ord("\x08")), nzTpIcepk0o8(chr(0b100000 + 0o20) + chr(0b1011101 + 0o22) + chr(915 - 865) + '\062' + chr(55), 0b1000), nzTpIcepk0o8(chr(48) + chr(1006 - 895) + '\062' + '\066' + chr(0b1110 + 0o46), 0o10), nzTpIcepk0o8('\x30' + chr(1259 - 1148) + '\063' + chr(0b110101) + chr(1773 - 1721), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(0b11110 + 0o25) + chr(53) + chr(0b110100), 8), nzTpIcepk0o8(chr(0b110000) + chr(10117 - 10006) + chr(1938 - 1887) + chr(0b1100 + 0o46) + chr(49), 19462 - 19454), nzTpIcepk0o8('\x30' + '\157' + chr(0b110101) + '\065', 8), nzTpIcepk0o8(chr(1386 - 1338) + chr(111) + '\x33' + chr(52) + chr(1819 - 1770), 45221 - 45213), nzTpIcepk0o8('\060' + chr(11028 - 10917) + chr(0b110010) + chr(0b110 + 0o55) + chr(0b110111), 24814 - 24806), nzTpIcepk0o8('\x30' + '\x6f' + '\x31' + chr(2667 - 2615), 22761 - 22753), nzTpIcepk0o8('\x30' + '\x6f' + '\062' + '\060' + '\061', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b110101 + 0o72) + chr(0b110010) + '\x36' + chr(2061 - 2006), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(0b110011 + 0o0) + chr(52) + chr(52), ord("\x08")), nzTpIcepk0o8(chr(0b1111 + 0o41) + chr(0b10000 + 0o137) + chr(1112 - 1063) + chr(2149 - 2097) + '\x31', 8), nzTpIcepk0o8(chr(312 - 264) + '\157' + '\x32' + chr(0b110001) + '\066', ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + '\063' + chr(0b10010 + 0o40) + chr(725 - 673), 17519 - 17511), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(1278 - 1229) + chr(0b110101) + chr(49), ord("\x08")), nzTpIcepk0o8(chr(0b10100 + 0o34) + chr(0b1101111) + chr(49) + chr(0b110000) + chr(0b100110 + 0o21), ord("\x08")), nzTpIcepk0o8(chr(978 - 930) + chr(0b1101111) + '\x32' + chr(2454 - 2402) + chr(0b110010), 31019 - 31011), nzTpIcepk0o8('\060' + '\x6f' + '\063' + chr(53) + chr(0b110111), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b100110 + 0o111) + '\063' + chr(0b11110 + 0o24) + '\x30', 1230 - 1222), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(54) + chr(55), 8387 - 8379), nzTpIcepk0o8('\x30' + chr(0b1111 + 0o140) + chr(0b100100 + 0o17) + chr(50) + '\x37', 8), nzTpIcepk0o8('\x30' + '\x6f' + '\x32' + chr(54) + chr(0b110011), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b101010 + 0o10) + '\x32' + '\061', 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + '\061' + '\x33' + '\x35', 0o10), nzTpIcepk0o8('\x30' + chr(0b1001010 + 0o45) + chr(52) + chr(0b11010 + 0o26), 38423 - 38415)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110101) + '\x30', 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x03'), chr(0b1100100) + chr(6935 - 6834) + chr(0b11110 + 0o105) + '\157' + '\x64' + chr(0b110100 + 0o61))(chr(0b110001 + 0o104) + '\164' + '\x66' + chr(0b101101) + '\070') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def Nt_g0kjP3uAP(XI8zeCKlol4g):
mI1HqYIW2Kqv = aoTc4YA2bs2R.DaZ8InzQgFJv(chRsFCauj7B_, XI8zeCKlol4g)
return Jjqhya_xmS75(nzTpIcepk0o8('\060' + chr(0b1000101 + 0o52) + chr(0b1011 + 0o46), 0b1000), jLW6pRf2DSRk(roI3spqORKae(mI1HqYIW2Kqv, roI3spqORKae(ES5oEprVxulp(b'k6\x07\x8c\xb0\x7f\xf0e\x18\x0f\x84\x85'), '\x64' + chr(0b1101 + 0o130) + chr(99) + chr(8710 - 8599) + chr(7139 - 7039) + chr(0b1100101))('\165' + '\164' + chr(0b1000000 + 0o46) + chr(0b100111 + 0o6) + '\070'))(nzTpIcepk0o8(chr(48) + '\x6f' + '\061', 8))), jLW6pRf2DSRk(roI3spqORKae(mI1HqYIW2Kqv, roI3spqORKae(ES5oEprVxulp(b'k6\x07\x8c\xb0\x7f\xf0e\x18\x0f\x84\x85'), '\144' + chr(0b1100101) + chr(2331 - 2232) + '\157' + '\144' + chr(101))(chr(0b1101001 + 0o14) + chr(0b1110010 + 0o2) + chr(0b1100110) + chr(0b1111 + 0o36) + '\x38'))(nzTpIcepk0o8(chr(0b10 + 0o56) + '\157' + '\062', 27969 - 27961))), jLW6pRf2DSRk(roI3spqORKae(mI1HqYIW2Kqv, roI3spqORKae(ES5oEprVxulp(b'k6\x07\x8c\xb0\x7f\xf0e\x18\x0f\x84\x85'), chr(7635 - 7535) + '\x65' + '\x63' + chr(0b1101111) + chr(5653 - 5553) + chr(0b100010 + 0o103))('\x75' + '\x74' + chr(8318 - 8216) + chr(299 - 254) + '\x38'))(nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b101011 + 0o10), 0o10))), jLW6pRf2DSRk(roI3spqORKae(mI1HqYIW2Kqv, roI3spqORKae(ES5oEprVxulp(b'k6\x07\x8c\xb0\x7f\xf0e\x18\x0f\x84\x85'), '\x64' + '\145' + chr(0b1100011) + chr(5924 - 5813) + chr(7368 - 7268) + '\x65')('\165' + '\164' + chr(0b1100110) + '\055' + chr(0b111000)))(nzTpIcepk0o8('\x30' + '\x6f' + chr(0b1110 + 0o46), 0o10)))) if mI1HqYIW2Kqv else QzBcbhPBl52f |
libnano/primer3-py | primer3/wrappers.py | calcThermo | def calcThermo(seq1, seq2, calc_type='ANY', mv_conc=50, dv_conc=0,
dntp_conc=0.8, dna_conc=50, temp_c=37, max_loop=30,
temp_only=False):
""" Main subprocess wrapper for calls to the ntthal executable.
Returns a named tuple with tm, ds, dh, and dg values or None if no
structure / complex could be computed.
"""
args = [pjoin(PRIMER3_HOME, 'ntthal'),
'-a', str(calc_type),
'-mv', str(mv_conc),
'-dv', str(dv_conc),
'-n', str(dntp_conc),
'-d', str(dna_conc),
'-t', str(temp_c),
'-maxloop', str(max_loop),
'-path', THERMO_PATH,
'-s1', seq1,
'-s2', seq2]
if temp_only:
args += ['-r']
out = subprocess.check_output(args, stderr=DEV_NULL,
env=os.environ)
return _parse_ntthal(out) | python | def calcThermo(seq1, seq2, calc_type='ANY', mv_conc=50, dv_conc=0,
dntp_conc=0.8, dna_conc=50, temp_c=37, max_loop=30,
temp_only=False):
""" Main subprocess wrapper for calls to the ntthal executable.
Returns a named tuple with tm, ds, dh, and dg values or None if no
structure / complex could be computed.
"""
args = [pjoin(PRIMER3_HOME, 'ntthal'),
'-a', str(calc_type),
'-mv', str(mv_conc),
'-dv', str(dv_conc),
'-n', str(dntp_conc),
'-d', str(dna_conc),
'-t', str(temp_c),
'-maxloop', str(max_loop),
'-path', THERMO_PATH,
'-s1', seq1,
'-s2', seq2]
if temp_only:
args += ['-r']
out = subprocess.check_output(args, stderr=DEV_NULL,
env=os.environ)
return _parse_ntthal(out) | [
"def",
"calcThermo",
"(",
"seq1",
",",
"seq2",
",",
"calc_type",
"=",
"'ANY'",
",",
"mv_conc",
"=",
"50",
",",
"dv_conc",
"=",
"0",
",",
"dntp_conc",
"=",
"0.8",
",",
"dna_conc",
"=",
"50",
",",
"temp_c",
"=",
"37",
",",
"max_loop",
"=",
"30",
",",
"temp_only",
"=",
"False",
")",
":",
"args",
"=",
"[",
"pjoin",
"(",
"PRIMER3_HOME",
",",
"'ntthal'",
")",
",",
"'-a'",
",",
"str",
"(",
"calc_type",
")",
",",
"'-mv'",
",",
"str",
"(",
"mv_conc",
")",
",",
"'-dv'",
",",
"str",
"(",
"dv_conc",
")",
",",
"'-n'",
",",
"str",
"(",
"dntp_conc",
")",
",",
"'-d'",
",",
"str",
"(",
"dna_conc",
")",
",",
"'-t'",
",",
"str",
"(",
"temp_c",
")",
",",
"'-maxloop'",
",",
"str",
"(",
"max_loop",
")",
",",
"'-path'",
",",
"THERMO_PATH",
",",
"'-s1'",
",",
"seq1",
",",
"'-s2'",
",",
"seq2",
"]",
"if",
"temp_only",
":",
"args",
"+=",
"[",
"'-r'",
"]",
"out",
"=",
"subprocess",
".",
"check_output",
"(",
"args",
",",
"stderr",
"=",
"DEV_NULL",
",",
"env",
"=",
"os",
".",
"environ",
")",
"return",
"_parse_ntthal",
"(",
"out",
")"
] | Main subprocess wrapper for calls to the ntthal executable.
Returns a named tuple with tm, ds, dh, and dg values or None if no
structure / complex could be computed. | [
"Main",
"subprocess",
"wrapper",
"for",
"calls",
"to",
"the",
"ntthal",
"executable",
"."
] | 0901c0ef3ac17afd69329d23db71136c00bcb635 | https://github.com/libnano/primer3-py/blob/0901c0ef3ac17afd69329d23db71136c00bcb635/primer3/wrappers.py#L122-L145 | train | This function calls the ntthal executable and returns the output of the ntthal 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,fPFT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tq,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(0b1101 + 0o43) + '\x6f' + '\062' + chr(0b11010 + 0o35) + '\064', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x33' + chr(0b110100) + chr(0b100011 + 0o23), 0b1000), nzTpIcepk0o8(chr(1708 - 1660) + chr(0b1000011 + 0o54) + '\x32' + '\x35' + '\x31', ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(49) + chr(53) + '\x34', 53907 - 53899), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(647 - 596) + '\x35' + chr(0b110010 + 0o3), 0o10), nzTpIcepk0o8(chr(1020 - 972) + '\x6f' + '\x31' + chr(55), 0o10), nzTpIcepk0o8('\x30' + '\157' + '\061' + chr(0b110011) + chr(691 - 640), 0o10), nzTpIcepk0o8(chr(0b11 + 0o55) + chr(111) + chr(51) + '\x37' + '\x35', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(50) + '\067', 0o10), nzTpIcepk0o8(chr(1250 - 1202) + chr(111) + chr(0b110011) + chr(0b110 + 0o61) + chr(49), 32469 - 32461), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110001) + '\060' + '\061', 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(50) + chr(0b100110 + 0o14) + chr(0b0 + 0o61), 48372 - 48364), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\063' + '\066' + '\x37', 0b1000), nzTpIcepk0o8(chr(1575 - 1527) + chr(0b1101111) + chr(51) + '\x35' + chr(882 - 827), 28050 - 28042), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b100110 + 0o14) + '\x35' + chr(51), 7606 - 7598), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110110) + chr(48), ord("\x08")), nzTpIcepk0o8(chr(0b101001 + 0o7) + chr(2537 - 2426) + chr(51) + chr(0b110011) + '\x31', 41921 - 41913), nzTpIcepk0o8(chr(0b101 + 0o53) + '\x6f' + chr(0b110010) + '\060' + chr(48), 0o10), nzTpIcepk0o8(chr(1449 - 1401) + chr(0b110010 + 0o75) + chr(0b110010) + chr(0b110000) + chr(0b110101), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b11010 + 0o34) + chr(717 - 669), 8), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b101010 + 0o14), ord("\x08")), nzTpIcepk0o8(chr(647 - 599) + '\x6f' + '\x32' + chr(52), ord("\x08")), nzTpIcepk0o8(chr(1619 - 1571) + '\157' + chr(0b100101 + 0o20) + chr(2128 - 2073), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110001) + '\064' + chr(0b110 + 0o60), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(50) + chr(0b11010 + 0o34) + '\x34', 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(49) + '\063' + '\065', ord("\x08")), nzTpIcepk0o8(chr(0b1110 + 0o42) + chr(0b1000001 + 0o56) + '\x32' + chr(0b110010), 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(50) + chr(0b110000), 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(0b101111 + 0o2) + '\x34', 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x33' + '\x32' + chr(48), 57735 - 57727), nzTpIcepk0o8(chr(48) + chr(0b110010 + 0o75) + '\x33' + '\x33' + chr(49), 8), nzTpIcepk0o8('\060' + chr(3109 - 2998) + chr(0b110010) + chr(853 - 804) + '\x34', 34304 - 34296), nzTpIcepk0o8('\060' + chr(111) + chr(56 - 6) + chr(1737 - 1683) + chr(0b110000), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + '\062' + chr(51) + chr(759 - 710), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(8174 - 8063) + chr(0b110110) + '\x32', ord("\x08")), nzTpIcepk0o8(chr(0b101001 + 0o7) + '\157' + '\x33' + chr(0b110100) + chr(0b110110), 8), nzTpIcepk0o8('\060' + chr(0b101110 + 0o101) + chr(0b11010 + 0o30) + chr(938 - 883) + chr(52), 8), nzTpIcepk0o8(chr(2134 - 2086) + chr(111) + chr(705 - 654) + chr(0b110101 + 0o2) + chr(50), 0b1000), nzTpIcepk0o8(chr(0b100000 + 0o20) + chr(111) + '\062' + chr(55) + chr(0b110010), 23604 - 23596), nzTpIcepk0o8(chr(48) + '\157' + chr(0b100101 + 0o14) + chr(55) + chr(0b10010 + 0o42), 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000 + 0o0) + chr(0b1101111) + chr(0b110101) + '\x30', 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x92'), chr(2709 - 2609) + '\x65' + chr(99) + chr(3268 - 3157) + '\x64' + '\145')('\165' + chr(0b1110100) + chr(3349 - 3247) + chr(231 - 186) + '\x38') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def FHxkczDhvM80(Z07cYIkH3qqX, _oKJXqrc_wFk, GngDBdr9eTpL=roI3spqORKae(ES5oEprVxulp(b'\xfd\xa8\xf0'), chr(0b1100100) + chr(0b1100101) + chr(3653 - 3554) + '\x6f' + '\144' + chr(0b1010000 + 0o25))('\165' + chr(0b111111 + 0o65) + chr(6137 - 6035) + chr(529 - 484) + chr(56)), AvX0hwlWiTIv=nzTpIcepk0o8(chr(2044 - 1996) + '\157' + '\066' + '\062', 8), K18LaWmI4Oec=nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(2291 - 2243), 0b1000), i3gq36XlZQc8=0.8, zbsFo9YBqdsz=nzTpIcepk0o8(chr(0b110000) + chr(4476 - 4365) + chr(0b110110) + chr(0b110010), 8), mtzjmD8EwyIs=nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b1101 + 0o47) + chr(210 - 157), 47775 - 47767), mLlBIetVSX89=nzTpIcepk0o8('\x30' + chr(12170 - 12059) + chr(51) + chr(54), ord("\x08")), K5ELwrp5gNAQ=nzTpIcepk0o8(chr(1832 - 1784) + chr(8958 - 8847) + chr(0b101110 + 0o2), 8)):
eemPYp2vtTSr = [sl4lpVyym_WD(gxNpFP32FIDP, roI3spqORKae(ES5oEprVxulp(b'\xd2\x92\xdd\x04\x8cc'), chr(0b1100100) + '\145' + '\143' + chr(0b1101001 + 0o6) + chr(100) + chr(101))(chr(117) + '\x74' + chr(0b1100110) + '\x2d' + chr(1220 - 1164))), roI3spqORKae(ES5oEprVxulp(b'\x91\x87'), chr(3414 - 3314) + chr(101) + '\143' + '\x6f' + chr(0b1100000 + 0o4) + '\x65')('\165' + chr(0b1110100) + chr(0b1100110) + chr(0b101101) + '\x38'), N9zlRy29S1SS(GngDBdr9eTpL), roI3spqORKae(ES5oEprVxulp(b'\x91\x8b\xdf'), '\144' + chr(0b1100101) + '\143' + chr(0b1101111) + chr(100) + '\x65')(chr(0b110101 + 0o100) + chr(11063 - 10947) + '\x66' + chr(1974 - 1929) + '\x38'), N9zlRy29S1SS(AvX0hwlWiTIv), roI3spqORKae(ES5oEprVxulp(b'\x91\x82\xdf'), chr(100) + chr(101) + '\143' + '\x6f' + chr(0b11000 + 0o114) + chr(2224 - 2123))(chr(7535 - 7418) + chr(9928 - 9812) + '\146' + chr(0b101101) + chr(0b111000)), N9zlRy29S1SS(K18LaWmI4Oec), roI3spqORKae(ES5oEprVxulp(b'\x91\x88'), chr(8805 - 8705) + chr(1867 - 1766) + chr(99) + chr(111) + '\144' + chr(0b1100101))(chr(7321 - 7204) + chr(6749 - 6633) + chr(0b1001000 + 0o36) + '\x2d' + chr(56)), N9zlRy29S1SS(i3gq36XlZQc8), roI3spqORKae(ES5oEprVxulp(b'\x91\x82'), chr(0b10 + 0o142) + chr(101) + chr(0b1100011) + '\x6f' + '\x64' + chr(8930 - 8829))(chr(0b10011 + 0o142) + '\x74' + chr(8588 - 8486) + '\x2d' + chr(421 - 365)), N9zlRy29S1SS(zbsFo9YBqdsz), roI3spqORKae(ES5oEprVxulp(b'\x91\x92'), chr(100) + chr(0b1100101) + chr(0b1100011) + '\157' + '\144' + chr(0b1100101))(chr(11430 - 11313) + chr(13339 - 13223) + chr(0b10011 + 0o123) + chr(0b101101) + chr(56)), N9zlRy29S1SS(mtzjmD8EwyIs), roI3spqORKae(ES5oEprVxulp(b'\x91\x8b\xc8\x14\x81`4\x8d'), '\144' + chr(0b1011000 + 0o15) + chr(0b11001 + 0o112) + chr(7262 - 7151) + chr(7791 - 7691) + chr(5125 - 5024))(chr(117) + '\164' + chr(0b1100110) + chr(1411 - 1366) + '\070'), N9zlRy29S1SS(mLlBIetVSX89), roI3spqORKae(ES5oEprVxulp(b'\x91\x96\xc8\x18\x85'), chr(100) + '\x65' + chr(0b10010 + 0o121) + chr(0b1101111) + chr(7056 - 6956) + chr(0b1100101))('\165' + '\x74' + chr(102) + '\055' + '\070'), Q0Gob59QbqrA, roI3spqORKae(ES5oEprVxulp(b'\x91\x95\x98'), '\144' + '\x65' + chr(0b11101 + 0o106) + chr(0b101010 + 0o105) + '\x64' + chr(0b1100101))('\x75' + chr(116) + '\x66' + chr(45) + chr(0b111000)), Z07cYIkH3qqX, roI3spqORKae(ES5oEprVxulp(b'\x91\x95\x9b'), chr(6691 - 6591) + chr(0b100110 + 0o77) + '\143' + chr(0b1101111) + chr(2589 - 2489) + chr(0b1100101))(chr(117) + chr(116) + chr(0b1100110) + '\055' + '\070'), _oKJXqrc_wFk]
if K5ELwrp5gNAQ:
eemPYp2vtTSr += [roI3spqORKae(ES5oEprVxulp(b'\x91\x94'), chr(0b1000110 + 0o36) + chr(10101 - 10000) + chr(0b1100011) + chr(0b1101111) + '\144' + chr(101))('\165' + chr(6636 - 6520) + '\x66' + chr(1806 - 1761) + chr(2000 - 1944))]
VwOu8WkJ9cpc = eT8Y087E_kfd.check_output(eemPYp2vtTSr, stderr=TBTYgEW8geui, env=aHUqKstZLeS6.I3lWyC6_P_MO)
return Nt_g0kjP3uAP(VwOu8WkJ9cpc) |
libnano/primer3-py | primer3/wrappers.py | calcHairpin | def calcHairpin(seq, mv_conc=50, dv_conc=0, dntp_conc=0.8, dna_conc=50,
temp_c=37, max_loop=30, temp_only=False):
''' Return a namedtuple of the dS, dH, dG, and Tm of any hairpin struct
present.
'''
return calcThermo(seq, seq, 'HAIRPIN', mv_conc, dv_conc, dntp_conc,
dna_conc, temp_c, max_loop, temp_only) | python | def calcHairpin(seq, mv_conc=50, dv_conc=0, dntp_conc=0.8, dna_conc=50,
temp_c=37, max_loop=30, temp_only=False):
''' Return a namedtuple of the dS, dH, dG, and Tm of any hairpin struct
present.
'''
return calcThermo(seq, seq, 'HAIRPIN', mv_conc, dv_conc, dntp_conc,
dna_conc, temp_c, max_loop, temp_only) | [
"def",
"calcHairpin",
"(",
"seq",
",",
"mv_conc",
"=",
"50",
",",
"dv_conc",
"=",
"0",
",",
"dntp_conc",
"=",
"0.8",
",",
"dna_conc",
"=",
"50",
",",
"temp_c",
"=",
"37",
",",
"max_loop",
"=",
"30",
",",
"temp_only",
"=",
"False",
")",
":",
"return",
"calcThermo",
"(",
"seq",
",",
"seq",
",",
"'HAIRPIN'",
",",
"mv_conc",
",",
"dv_conc",
",",
"dntp_conc",
",",
"dna_conc",
",",
"temp_c",
",",
"max_loop",
",",
"temp_only",
")"
] | Return a namedtuple of the dS, dH, dG, and Tm of any hairpin struct
present. | [
"Return",
"a",
"namedtuple",
"of",
"the",
"dS",
"dH",
"dG",
"and",
"Tm",
"of",
"any",
"hairpin",
"struct",
"present",
"."
] | 0901c0ef3ac17afd69329d23db71136c00bcb635 | https://github.com/libnano/primer3-py/blob/0901c0ef3ac17afd69329d23db71136c00bcb635/primer3/wrappers.py#L148-L154 | train | Calculates the thermo of the hairpin structure. | 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,Wd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Z,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(0b1000 + 0o147) + '\061' + '\x32' + chr(49), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(1158 - 1108) + '\063' + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(0b101011 + 0o5) + '\157' + '\x31' + chr(0b101001 + 0o15) + chr(1002 - 953), 0o10), nzTpIcepk0o8(chr(0b1101 + 0o43) + chr(0b1001 + 0o146) + '\x31' + chr(0b101011 + 0o10) + '\066', 0o10), nzTpIcepk0o8(chr(0b10010 + 0o36) + chr(0b1101111) + chr(49) + '\x36' + '\061', 8), nzTpIcepk0o8(chr(0b10111 + 0o31) + chr(111) + '\x36' + '\062', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110100) + chr(1248 - 1197), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110010) + '\x30' + chr(53), 0o10), nzTpIcepk0o8(chr(0b100000 + 0o20) + '\157' + '\x32' + '\062' + chr(54), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + '\063' + chr(0b110000) + '\x32', 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + '\x31' + chr(52) + chr(2570 - 2517), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1100 + 0o143) + chr(49) + chr(1148 - 1100), 49979 - 49971), nzTpIcepk0o8('\x30' + '\157' + chr(0b110001) + '\063' + chr(50), 6585 - 6577), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\063' + '\065' + chr(51), 0o10), nzTpIcepk0o8(chr(0b1100 + 0o44) + '\x6f' + chr(0b11100 + 0o27) + chr(0b1111 + 0o43) + chr(0b100111 + 0o12), 23716 - 23708), nzTpIcepk0o8(chr(0b1011 + 0o45) + chr(0b101001 + 0o106) + chr(0b101001 + 0o10) + chr(48) + '\x33', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b100000 + 0o21) + chr(55) + chr(0b10111 + 0o36), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(50) + chr(0b110111) + chr(0b100001 + 0o20), 0b1000), nzTpIcepk0o8('\060' + '\157' + '\x33' + '\x33', 0b1000), nzTpIcepk0o8('\x30' + chr(0b110 + 0o151) + chr(49) + chr(53), 0b1000), nzTpIcepk0o8(chr(0b0 + 0o60) + '\x6f' + chr(49) + chr(49), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(1737 - 1688) + '\x32' + chr(0b110100), ord("\x08")), nzTpIcepk0o8(chr(1499 - 1451) + chr(0b1111 + 0o140) + '\x31' + '\065' + chr(2036 - 1984), 27899 - 27891), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\063' + chr(0b100010 + 0o20) + chr(0b110110), 58136 - 58128), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\063' + '\060', 52220 - 52212), nzTpIcepk0o8(chr(0b110000) + chr(8241 - 8130) + chr(1368 - 1318) + chr(308 - 257) + '\x30', 0b1000), nzTpIcepk0o8(chr(528 - 480) + '\157' + chr(0b110001) + chr(54) + '\063', 0o10), nzTpIcepk0o8(chr(0b11 + 0o55) + chr(0b1101111) + '\x33' + chr(1292 - 1244) + '\060', 0o10), nzTpIcepk0o8('\x30' + chr(10446 - 10335) + chr(0b110000 + 0o4), 0o10), nzTpIcepk0o8(chr(48) + '\157' + '\x32' + '\060' + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(995 - 947) + chr(111) + chr(0b1001 + 0o50) + '\065' + chr(0b110001), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110011) + chr(0b101111 + 0o10) + chr(1808 - 1759), 0b1000), nzTpIcepk0o8('\060' + chr(5802 - 5691) + '\062' + chr(0b101110 + 0o6) + chr(619 - 565), 19190 - 19182), nzTpIcepk0o8('\x30' + chr(111) + chr(2201 - 2150) + chr(81 - 33), 8), nzTpIcepk0o8(chr(0b110000) + chr(233 - 122) + chr(49) + chr(0b10101 + 0o36) + chr(52), ord("\x08")), nzTpIcepk0o8(chr(1444 - 1396) + chr(0b1101111) + chr(0b110000 + 0o1) + chr(0b0 + 0o64) + chr(50), 7052 - 7044), nzTpIcepk0o8(chr(431 - 383) + chr(11504 - 11393) + chr(1151 - 1101) + '\060' + chr(55), 0o10), nzTpIcepk0o8(chr(2258 - 2210) + chr(0b1101111) + chr(0b100100 + 0o16) + chr(55) + chr(2700 - 2645), ord("\x08")), nzTpIcepk0o8(chr(0b10101 + 0o33) + '\x6f' + chr(52) + '\062', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(50) + chr(50) + chr(0b101111 + 0o10), 10349 - 10341)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b10100 + 0o34) + chr(0b1101110 + 0o1) + chr(1438 - 1385) + chr(0b110000), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x7f'), chr(100) + chr(9252 - 9151) + '\143' + '\x6f' + chr(0b1100100) + chr(101))(chr(0b1010000 + 0o45) + '\x74' + '\x66' + chr(0b1010 + 0o43) + chr(0b111 + 0o61)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def rBV3xUmHNm3D(ftk9lc7G5FOo, AvX0hwlWiTIv=nzTpIcepk0o8(chr(48) + '\157' + chr(54) + chr(0b10011 + 0o37), 8), K18LaWmI4Oec=nzTpIcepk0o8(chr(48) + '\x6f' + chr(877 - 829), ord("\x08")), i3gq36XlZQc8=0.8, zbsFo9YBqdsz=nzTpIcepk0o8(chr(48) + '\x6f' + '\066' + chr(50), 8), mtzjmD8EwyIs=nzTpIcepk0o8(chr(2217 - 2169) + chr(0b1011101 + 0o22) + chr(52) + chr(53), 0o10), mLlBIetVSX89=nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(51) + chr(0b110110), 0b1000), K5ELwrp5gNAQ=nzTpIcepk0o8(chr(0b100101 + 0o13) + chr(3255 - 3144) + '\060', 8)):
return FHxkczDhvM80(ftk9lc7G5FOo, ftk9lc7G5FOo, roI3spqORKae(ES5oEprVxulp(b'\x19\xdd8\x0c!{m'), chr(4207 - 4107) + '\x65' + chr(0b1010010 + 0o21) + chr(0b1101111) + chr(0b1001001 + 0o33) + chr(101))('\x75' + chr(0b1010010 + 0o42) + chr(0b1000010 + 0o44) + chr(0b1110 + 0o37) + chr(0b111000)), AvX0hwlWiTIv, K18LaWmI4Oec, i3gq36XlZQc8, zbsFo9YBqdsz, mtzjmD8EwyIs, mLlBIetVSX89, K5ELwrp5gNAQ) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.