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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
wecatch/app-turbo | turbo/model.py | BaseBaseModel.update_one | def update_one(self, filter_, document, **kwargs):
"""update method
"""
self._valide_update_document(document)
return self.__collect.update_one(filter_, document, **kwargs) | python | def update_one(self, filter_, document, **kwargs):
"""update method
"""
self._valide_update_document(document)
return self.__collect.update_one(filter_, document, **kwargs) | [
"def",
"update_one",
"(",
"self",
",",
"filter_",
",",
"document",
",",
"*",
"*",
"kwargs",
")",
":",
"self",
".",
"_valide_update_document",
"(",
"document",
")",
"return",
"self",
".",
"__collect",
".",
"update_one",
"(",
"filter_",
",",
"document",
",",
"*",
"*",
"kwargs",
")"
] | update method | [
"update",
"method"
] | 75faf97371a9a138c53f92168d0a486636cb8a9c | https://github.com/wecatch/app-turbo/blob/75faf97371a9a138c53f92168d0a486636cb8a9c/turbo/model.py#L142-L146 | train | update one document in the collection | 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,uKsHT175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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(531 - 480) + '\061' + chr(52), 17307 - 17299), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110011) + chr(0b11110 + 0o26), 33465 - 33457), nzTpIcepk0o8(chr(1554 - 1506) + '\x6f' + chr(51) + chr(55) + chr(0b110 + 0o54), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(50) + chr(0b10111 + 0o31), 21154 - 21146), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(49) + '\062' + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(565 - 517) + chr(8520 - 8409) + '\062' + '\x32' + chr(0b110111), 0o10), nzTpIcepk0o8(chr(0b11011 + 0o25) + chr(0b11001 + 0o126) + chr(0b110011) + chr(0b110010) + chr(0b10 + 0o56), 41243 - 41235), nzTpIcepk0o8(chr(0b100101 + 0o13) + chr(5147 - 5036) + chr(0b10000 + 0o41) + chr(51) + chr(0b110000), 45101 - 45093), nzTpIcepk0o8(chr(0b110000) + chr(8562 - 8451) + chr(0b110001) + chr(0b111 + 0o57) + '\x31', 0b1000), nzTpIcepk0o8('\060' + chr(0b101111 + 0o100) + chr(227 - 176) + chr(0b110011) + chr(0b100000 + 0o25), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(2885 - 2774) + '\062' + chr(51) + chr(52), 4405 - 4397), nzTpIcepk0o8('\x30' + chr(2477 - 2366) + chr(1672 - 1621) + chr(0b1010 + 0o47) + chr(2064 - 2014), 0o10), nzTpIcepk0o8(chr(895 - 847) + '\x6f' + chr(0b100101 + 0o15) + chr(49) + chr(48), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + '\061' + '\060' + chr(1386 - 1333), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110011) + chr(1480 - 1429) + '\063', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(50) + chr(49) + chr(49), 0o10), nzTpIcepk0o8('\x30' + chr(111) + '\x33' + chr(0b110111), 0b1000), nzTpIcepk0o8(chr(48) + chr(1886 - 1775) + chr(0b110010 + 0o1) + '\062' + '\060', 8), nzTpIcepk0o8(chr(0b11010 + 0o26) + chr(0b1101111) + chr(53) + chr(50), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x37' + chr(2734 - 2679), 0o10), nzTpIcepk0o8(chr(0b100101 + 0o13) + chr(111) + chr(1161 - 1111) + chr(0b110001) + chr(0b110011), 0b1000), nzTpIcepk0o8('\x30' + chr(0b110011 + 0o74) + chr(53) + '\067', 26237 - 26229), nzTpIcepk0o8('\x30' + chr(0b100110 + 0o111) + chr(757 - 707) + chr(0b110011) + '\067', 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + '\063' + '\x30' + chr(0b100000 + 0o22), 0o10), nzTpIcepk0o8(chr(48) + chr(0b11001 + 0o126) + chr(751 - 700) + chr(0b100011 + 0o20) + chr(55), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(50) + '\x30' + '\x31', 0o10), nzTpIcepk0o8('\060' + chr(0b1000110 + 0o51) + chr(53) + chr(853 - 803), 8), nzTpIcepk0o8(chr(48) + '\157' + chr(55) + '\x34', ord("\x08")), nzTpIcepk0o8(chr(0b1010 + 0o46) + '\157' + '\062' + chr(2634 - 2581) + chr(2118 - 2065), 0b1000), nzTpIcepk0o8(chr(0b1011 + 0o45) + chr(6377 - 6266) + '\063' + chr(0b110000) + '\062', 8), nzTpIcepk0o8('\060' + '\157' + chr(1500 - 1451) + '\x37' + '\064', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b100111 + 0o110) + '\x32' + chr(2466 - 2411) + chr(2543 - 2491), 48697 - 48689), nzTpIcepk0o8('\x30' + chr(6139 - 6028) + chr(0b1101 + 0o46) + chr(0b100111 + 0o14) + '\066', ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(0b110010 + 0o1) + chr(0b11100 + 0o30) + chr(0b101110 + 0o5), 9965 - 9957), nzTpIcepk0o8('\x30' + chr(111) + '\063' + '\066' + chr(266 - 213), ord("\x08")), nzTpIcepk0o8(chr(1236 - 1188) + chr(0b1101111) + chr(0b1010 + 0o51) + '\x35' + chr(1648 - 1593), ord("\x08")), nzTpIcepk0o8(chr(0b0 + 0o60) + chr(111) + '\061' + '\x31' + '\x35', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(50) + chr(2357 - 2303) + chr(0b100101 + 0o22), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + '\x33' + chr(732 - 683) + chr(53), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110001) + chr(0b11 + 0o64) + '\060', 16046 - 16038)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(1759 - 1711) + chr(111) + chr(53) + '\x30', 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xe2'), chr(100) + chr(0b111 + 0o136) + '\x63' + '\x6f' + chr(100) + chr(2250 - 2149))(chr(0b100001 + 0o124) + chr(116) + chr(102) + '\055' + chr(0b10001 + 0o47)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def JakGcGvZ9bqA(hXMPsSrOQzbh, PlIxHziOrMgz, K6an18Ylsl3S, **q5n0sHDDTy90):
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x93j\x9b|8\xf3\xb5\x07\x04\xad\xf8\xab\xfc \x84\xedp\xb3_R\xeeA\xeb'), '\144' + '\145' + '\x63' + chr(111) + chr(0b1100100) + '\145')(chr(0b1001111 + 0o46) + chr(116) + '\x66' + '\055' + '\x38'))(K6an18Ylsl3S)
return roI3spqORKae(hXMPsSrOQzbh.__collect, roI3spqORKae(ES5oEprVxulp(b'\xb9l\x9eq%\xf2\x8f7\x1f\xb8'), chr(100) + chr(9380 - 9279) + chr(8573 - 8474) + chr(3535 - 3424) + chr(8151 - 8051) + chr(101))(chr(13541 - 13424) + '\164' + chr(2380 - 2278) + chr(0b1011 + 0o42) + chr(0b111000)))(PlIxHziOrMgz, K6an18Ylsl3S, **q5n0sHDDTy90) |
wecatch/app-turbo | turbo/model.py | BaseBaseModel.find_by_id | def find_by_id(self, _id, projection=None):
"""find record by _id
"""
if isinstance(_id, list) or isinstance(_id, tuple):
return list(self.__collect.find(
{'_id': {'$in': [self._to_primary_key(i) for i in _id]}}, projection))
document_id = self._to_primary_key(_id)
if document_id is None:
return None
return self.__collect.find_one({'_id': document_id}, projection) | python | def find_by_id(self, _id, projection=None):
"""find record by _id
"""
if isinstance(_id, list) or isinstance(_id, tuple):
return list(self.__collect.find(
{'_id': {'$in': [self._to_primary_key(i) for i in _id]}}, projection))
document_id = self._to_primary_key(_id)
if document_id is None:
return None
return self.__collect.find_one({'_id': document_id}, projection) | [
"def",
"find_by_id",
"(",
"self",
",",
"_id",
",",
"projection",
"=",
"None",
")",
":",
"if",
"isinstance",
"(",
"_id",
",",
"list",
")",
"or",
"isinstance",
"(",
"_id",
",",
"tuple",
")",
":",
"return",
"list",
"(",
"self",
".",
"__collect",
".",
"find",
"(",
"{",
"'_id'",
":",
"{",
"'$in'",
":",
"[",
"self",
".",
"_to_primary_key",
"(",
"i",
")",
"for",
"i",
"in",
"_id",
"]",
"}",
"}",
",",
"projection",
")",
")",
"document_id",
"=",
"self",
".",
"_to_primary_key",
"(",
"_id",
")",
"if",
"document_id",
"is",
"None",
":",
"return",
"None",
"return",
"self",
".",
"__collect",
".",
"find_one",
"(",
"{",
"'_id'",
":",
"document_id",
"}",
",",
"projection",
")"
] | find record by _id | [
"find",
"record",
"by",
"_id"
] | 75faf97371a9a138c53f92168d0a486636cb8a9c | https://github.com/wecatch/app-turbo/blob/75faf97371a9a138c53f92168d0a486636cb8a9c/turbo/model.py#L161-L173 | train | find record by _id | GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reR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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(2744 - 2633) + chr(322 - 271) + '\060' + '\066', 0o10), nzTpIcepk0o8(chr(0b10011 + 0o35) + chr(0b1101111) + chr(0b110001) + '\x31' + '\x37', 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(55 - 6) + chr(806 - 755) + '\x35', 12013 - 12005), nzTpIcepk0o8('\x30' + chr(111) + '\061' + '\x36' + chr(0b11010 + 0o31), 8154 - 8146), nzTpIcepk0o8('\x30' + '\157' + '\061' + '\064' + '\066', 52655 - 52647), nzTpIcepk0o8('\x30' + '\157' + chr(0b110011) + '\060' + chr(0b110001), 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(669 - 620) + '\x34' + chr(0b110010), 31240 - 31232), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\061' + chr(0b110010) + chr(53), 47869 - 47861), nzTpIcepk0o8('\060' + chr(111) + chr(50) + chr(0b110100 + 0o3), 0b1000), nzTpIcepk0o8('\060' + '\157' + chr(50) + chr(0b110100) + chr(0b110000), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110010) + chr(1653 - 1598) + chr(2233 - 2178), 0o10), nzTpIcepk0o8(chr(446 - 398) + '\x6f' + '\061' + chr(0b101010 + 0o7) + '\x34', 44758 - 44750), nzTpIcepk0o8(chr(0b1100 + 0o44) + chr(8417 - 8306) + '\x33' + '\060' + '\x37', 0o10), nzTpIcepk0o8(chr(48) + chr(9903 - 9792) + chr(0b101 + 0o54) + '\x32' + chr(0b101 + 0o56), ord("\x08")), nzTpIcepk0o8(chr(0b1001 + 0o47) + chr(0b100010 + 0o115) + chr(0b110010) + chr(840 - 792) + '\065', 0b1000), nzTpIcepk0o8(chr(1390 - 1342) + chr(0b1 + 0o156) + '\061' + '\064' + chr(2003 - 1948), 25704 - 25696), nzTpIcepk0o8(chr(0b110000) + chr(0b110111 + 0o70) + '\x32' + chr(54), 0o10), nzTpIcepk0o8(chr(1466 - 1418) + '\157' + chr(0b11101 + 0o24) + chr(2512 - 2460) + chr(0b1111 + 0o41), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(104 - 54) + '\067' + chr(0b101 + 0o61), 1290 - 1282), nzTpIcepk0o8(chr(261 - 213) + '\x6f' + '\x33' + chr(0b110100) + chr(364 - 313), 34414 - 34406), nzTpIcepk0o8(chr(0b11000 + 0o30) + chr(0b1101111) + chr(0b1010 + 0o50) + chr(0b110010) + chr(0b110111), 39528 - 39520), nzTpIcepk0o8('\060' + '\157' + chr(0b1100 + 0o45) + chr(0b100010 + 0o23) + '\063', 0o10), nzTpIcepk0o8('\060' + '\157' + '\063' + chr(0b110001 + 0o3) + chr(0b100 + 0o54), 23632 - 23624), nzTpIcepk0o8(chr(800 - 752) + chr(1401 - 1290) + chr(51) + chr(49) + '\067', 47396 - 47388), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(53), 63806 - 63798), nzTpIcepk0o8(chr(1658 - 1610) + '\x6f' + '\062' + chr(0b11 + 0o56) + '\x33', ord("\x08")), nzTpIcepk0o8(chr(0b1010 + 0o46) + chr(0b1101111) + chr(0b101101 + 0o5) + chr(1505 - 1457) + '\065', 8), nzTpIcepk0o8('\x30' + '\x6f' + chr(60 - 11) + chr(0b110001), 0o10), nzTpIcepk0o8(chr(0b11110 + 0o22) + chr(0b1101111) + chr(50) + '\067' + '\x31', 0o10), nzTpIcepk0o8(chr(682 - 634) + '\x6f' + chr(510 - 461) + chr(53) + chr(0b100001 + 0o22), 8), nzTpIcepk0o8(chr(48) + chr(6938 - 6827) + chr(0b11111 + 0o24) + '\x32' + chr(54), 23369 - 23361), nzTpIcepk0o8('\060' + chr(0b100100 + 0o113) + '\062' + chr(0b110100) + chr(0b110100 + 0o1), 0b1000), nzTpIcepk0o8(chr(1622 - 1574) + chr(9933 - 9822) + chr(0b110011) + chr(2004 - 1955) + chr(55), 8), nzTpIcepk0o8('\x30' + '\x6f' + '\x33' + chr(0b110000) + '\x36', 8), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110001) + chr(2741 - 2686) + chr(2405 - 2354), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(523 - 474) + chr(55) + chr(0b110111), ord("\x08")), nzTpIcepk0o8(chr(0b11000 + 0o30) + chr(0b1001110 + 0o41) + '\063' + chr(0b110100) + '\065', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x33' + '\064' + '\x35', 8), nzTpIcepk0o8(chr(0b101100 + 0o4) + chr(0b101001 + 0o106) + chr(533 - 484) + chr(0b110011) + chr(52), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + '\066' + chr(55), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + '\157' + chr(0b110101) + chr(0b110000), 7547 - 7539)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xe8'), chr(2863 - 2763) + chr(101) + chr(99) + chr(0b1101111) + chr(9182 - 9082) + chr(6067 - 5966))('\x75' + '\x74' + chr(102) + chr(45) + '\070') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def SvtErqv9kJZg(hXMPsSrOQzbh, s6qz6_dsXihz, LtOdF6zYAKaQ=None):
if suIjIS24Zkqw(s6qz6_dsXihz, H4NoA26ON7iG) or suIjIS24Zkqw(s6qz6_dsXihz, nfNqtJL5aRaY):
return H4NoA26ON7iG(roI3spqORKae(hXMPsSrOQzbh.__collect, roI3spqORKae(ES5oEprVxulp(b'\xab#\x11#\x1c\xb9\x15"!\xea\x8a}'), '\144' + '\145' + '\143' + '\157' + chr(0b1000111 + 0o35) + chr(1059 - 958))(chr(117) + chr(0b1101011 + 0o11) + chr(0b1100110) + chr(700 - 655) + chr(0b100010 + 0o26)))({roI3spqORKae(ES5oEprVxulp(b'\x99&9'), chr(0b101010 + 0o72) + chr(0b11 + 0o142) + chr(0b1011010 + 0o11) + chr(0b1101111) + chr(0b1100100) + chr(7043 - 6942))(chr(0b1110101) + chr(116) + '\x66' + chr(1027 - 982) + '\070'): {roI3spqORKae(ES5oEprVxulp(b'\xe2&3'), '\144' + chr(0b1100101) + '\x63' + chr(4600 - 4489) + chr(0b1011000 + 0o14) + chr(0b1010001 + 0o24))('\x75' + chr(0b1011110 + 0o26) + chr(0b1100110) + chr(0b101101) + chr(56)): [roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x99;2,\x16\xb3\x0b8v\xd2\xc6\x13\xac6\xfc'), chr(0b1100100) + chr(101) + chr(99) + '\x6f' + '\144' + chr(5395 - 5294))(chr(117) + chr(0b1100100 + 0o20) + chr(0b10100 + 0o122) + '\055' + chr(0b111000)))(ZlbFMSG8gCoF) for ZlbFMSG8gCoF in s6qz6_dsXihz]}}, LtOdF6zYAKaQ))
pnclOr5H1jXQ = hXMPsSrOQzbh._to_primary_key(s6qz6_dsXihz)
if pnclOr5H1jXQ is None:
return None
return roI3spqORKae(hXMPsSrOQzbh.__collect, roI3spqORKae(ES5oEprVxulp(b'\xa0&3\x179\xae\x0c0'), chr(1725 - 1625) + '\x65' + chr(0b1100011) + '\157' + '\x64' + '\x65')(chr(0b1110101) + '\164' + '\146' + '\x2d' + '\070'))({roI3spqORKae(ES5oEprVxulp(b'\x99&9'), '\144' + chr(0b1100101) + chr(4017 - 3918) + chr(0b1101111) + '\x64' + chr(0b1001101 + 0o30))('\165' + '\164' + chr(1482 - 1380) + chr(45) + '\x38'): pnclOr5H1jXQ}, LtOdF6zYAKaQ) |
wecatch/app-turbo | turbo/model.py | BaseModel.create_model | def create_model(cls, name, field=None):
"""dynamic create new model
:args field table field, if field is None or {}, this model can not use create method
"""
if field:
attrs = {'name': name, 'field': field}
else:
attrs = {'name': name, 'field': {'_id': ObjectId()}}
return type(str(name), (cls, ), attrs)() | python | def create_model(cls, name, field=None):
"""dynamic create new model
:args field table field, if field is None or {}, this model can not use create method
"""
if field:
attrs = {'name': name, 'field': field}
else:
attrs = {'name': name, 'field': {'_id': ObjectId()}}
return type(str(name), (cls, ), attrs)() | [
"def",
"create_model",
"(",
"cls",
",",
"name",
",",
"field",
"=",
"None",
")",
":",
"if",
"field",
":",
"attrs",
"=",
"{",
"'name'",
":",
"name",
",",
"'field'",
":",
"field",
"}",
"else",
":",
"attrs",
"=",
"{",
"'name'",
":",
"name",
",",
"'field'",
":",
"{",
"'_id'",
":",
"ObjectId",
"(",
")",
"}",
"}",
"return",
"type",
"(",
"str",
"(",
"name",
")",
",",
"(",
"cls",
",",
")",
",",
"attrs",
")",
"(",
")"
] | dynamic create new model
:args field table field, if field is None or {}, this model can not use create method | [
"dynamic",
"create",
"new",
"model",
":",
"args",
"field",
"table",
"field",
"if",
"field",
"is",
"None",
"or",
"{}",
"this",
"model",
"can",
"not",
"use",
"create",
"method"
] | 75faf97371a9a138c53f92168d0a486636cb8a9c | https://github.com/wecatch/app-turbo/blob/75faf97371a9a138c53f92168d0a486636cb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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(0b100111 + 0o13) + '\066' + '\062', 38092 - 38084), nzTpIcepk0o8(chr(0b11010 + 0o26) + chr(111) + chr(0b10111 + 0o33) + chr(2392 - 2338) + chr(0b100001 + 0o20), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b11111 + 0o120) + '\x35' + '\064', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(53) + chr(49), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b111000 + 0o67) + chr(2274 - 2225) + chr(0b110010), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + '\061' + chr(0b110001) + chr(0b110100), 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(51) + '\x31' + chr(53), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b100110 + 0o111) + chr(284 - 235) + chr(0b11111 + 0o23) + chr(51), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b101001 + 0o106) + chr(1639 - 1589) + chr(844 - 796) + '\x36', 0o10), nzTpIcepk0o8(chr(48) + chr(7549 - 7438) + chr(0b110001) + chr(0b110100) + '\x37', 0b1000), nzTpIcepk0o8(chr(0b10101 + 0o33) + '\157' + chr(0b110010) + '\064' + chr(1203 - 1154), ord("\x08")), nzTpIcepk0o8(chr(0b11010 + 0o26) + '\157' + chr(1764 - 1714) + chr(0b10100 + 0o35) + '\x37', ord("\x08")), nzTpIcepk0o8(chr(0b111 + 0o51) + chr(12162 - 12051) + chr(0b110010) + '\060' + chr(0b10010 + 0o45), 0b1000), nzTpIcepk0o8(chr(0b10101 + 0o33) + chr(0b1101111) + chr(0b1011 + 0o47) + '\064' + '\x36', 0o10), nzTpIcepk0o8(chr(1399 - 1351) + chr(10467 - 10356) + chr(0b11111 + 0o22) + '\065' + chr(0b110001), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(1842 - 1793) + '\067' + chr(0b101110 + 0o6), 0o10), nzTpIcepk0o8(chr(1380 - 1332) + chr(111) + '\063' + chr(0b1010 + 0o47) + '\065', 8), nzTpIcepk0o8('\x30' + '\x6f' + '\x31' + '\061' + '\063', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1010101 + 0o32) + chr(1328 - 1279) + '\x37', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(217 - 106) + '\x33' + chr(1144 - 1090) + chr(0b1000 + 0o57), 0b1000), nzTpIcepk0o8(chr(0b1001 + 0o47) + chr(7044 - 6933) + chr(0b110011) + chr(0b110001) + chr(207 - 157), 61291 - 61283), nzTpIcepk0o8('\060' + '\157' + '\x31' + chr(1511 - 1460) + chr(53), 46972 - 46964), nzTpIcepk0o8('\060' + chr(0b101 + 0o152) + chr(947 - 892) + '\x30', 33163 - 33155), nzTpIcepk0o8('\x30' + '\x6f' + '\x32' + chr(358 - 303) + chr(0b100100 + 0o22), ord("\x08")), nzTpIcepk0o8(chr(2105 - 2057) + chr(111) + chr(50) + chr(0b10100 + 0o36) + '\x35', 60961 - 60953), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b11101 + 0o25) + '\062' + chr(0b110101), 8), nzTpIcepk0o8('\x30' + chr(111) + '\x31' + '\066' + chr(1802 - 1752), 48525 - 48517), nzTpIcepk0o8('\060' + chr(2423 - 2312) + '\x31' + '\063' + '\x37', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b101110 + 0o5) + chr(1579 - 1529) + '\x35', 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(51) + chr(0b11101 + 0o24) + chr(1326 - 1274), 32342 - 32334), nzTpIcepk0o8(chr(48) + chr(0b110 + 0o151) + chr(1702 - 1651) + chr(511 - 460) + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(0b101000 + 0o10) + chr(111) + '\x33' + chr(881 - 832) + chr(51), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + '\061' + chr(48) + chr(49), 23975 - 23967), nzTpIcepk0o8(chr(48) + '\157' + chr(50) + chr(0b110011) + chr(55), 43941 - 43933), nzTpIcepk0o8('\060' + '\157' + chr(1326 - 1275) + chr(50) + chr(0b11100 + 0o33), 22409 - 22401), nzTpIcepk0o8('\x30' + chr(0b111000 + 0o67) + chr(0b110001) + chr(2302 - 2252) + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110010) + '\066' + '\061', 8), nzTpIcepk0o8('\060' + chr(111) + chr(51) + chr(0b10100 + 0o41) + '\x30', 64824 - 64816), nzTpIcepk0o8(chr(48) + chr(7432 - 7321) + chr(584 - 533) + chr(655 - 603), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\061' + chr(0b100111 + 0o13) + chr(0b100011 + 0o24), 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(0b1001000 + 0o47) + 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'\x9c'), chr(0b1100100) + chr(5380 - 5279) + chr(0b1100011) + chr(4309 - 4198) + '\144' + '\x65')(chr(0b1110101) + chr(0b1010101 + 0o37) + chr(0b1100110) + '\x2d' + chr(0b111000)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def O73qU_bp8grO(_1vzISbJ_R2i, SLVB2BPA_mIe, uF4zwjUGNIxR=None):
if uF4zwjUGNIxR:
rxk5FTRcV25J = {roI3spqORKae(ES5oEprVxulp(b'\xdc\xd0AL'), chr(0b1011000 + 0o14) + chr(101) + chr(0b1100001 + 0o2) + chr(0b1001001 + 0o46) + chr(1965 - 1865) + chr(101))(chr(117) + chr(116) + chr(102) + '\055' + chr(0b111000)): SLVB2BPA_mIe, roI3spqORKae(ES5oEprVxulp(b'\xd4\xd8IEn'), '\x64' + chr(1539 - 1438) + chr(0b1000000 + 0o43) + chr(111) + chr(0b1100100) + chr(101))('\165' + '\x74' + '\146' + chr(0b101101) + chr(0b110 + 0o62)): uF4zwjUGNIxR}
else:
rxk5FTRcV25J = {roI3spqORKae(ES5oEprVxulp(b'\xdc\xd0AL'), '\x64' + chr(101) + '\x63' + '\157' + chr(0b1001111 + 0o25) + chr(0b0 + 0o145))('\x75' + '\x74' + chr(0b10010 + 0o124) + '\055' + chr(3114 - 3058)): SLVB2BPA_mIe, roI3spqORKae(ES5oEprVxulp(b'\xd4\xd8IEn'), chr(0b111110 + 0o46) + chr(0b11111 + 0o106) + '\143' + chr(4740 - 4629) + chr(0b1110 + 0o126) + '\x65')(chr(0b1110101) + chr(0b1110100) + '\146' + '\x2d' + '\070'): {roI3spqORKae(ES5oEprVxulp(b'\xed\xd8H'), chr(4623 - 4523) + chr(101) + chr(99) + chr(0b1101111) + chr(100) + '\145')('\165' + chr(116) + chr(0b1000110 + 0o40) + '\055' + '\x38'): Oi5aZemV14Rf()}}
return MJ07XsN5uFgW(N9zlRy29S1SS(SLVB2BPA_mIe), (_1vzISbJ_R2i,), rxk5FTRcV25J)() |
wecatch/app-turbo | turbo/util.py | to_list_str | def to_list_str(value, encode=None):
"""recursively convert list content into string
:arg list value: The list that need to be converted.
:arg function encode: Function used to encode object.
"""
result = []
for index, v in enumerate(value):
if isinstance(v, dict):
result.append(to_dict_str(v, encode))
continue
if isinstance(v, list):
result.append(to_list_str(v, encode))
continue
if encode:
result.append(encode(v))
else:
result.append(default_encode(v))
return result | python | def to_list_str(value, encode=None):
"""recursively convert list content into string
:arg list value: The list that need to be converted.
:arg function encode: Function used to encode object.
"""
result = []
for index, v in enumerate(value):
if isinstance(v, dict):
result.append(to_dict_str(v, encode))
continue
if isinstance(v, list):
result.append(to_list_str(v, encode))
continue
if encode:
result.append(encode(v))
else:
result.append(default_encode(v))
return result | [
"def",
"to_list_str",
"(",
"value",
",",
"encode",
"=",
"None",
")",
":",
"result",
"=",
"[",
"]",
"for",
"index",
",",
"v",
"in",
"enumerate",
"(",
"value",
")",
":",
"if",
"isinstance",
"(",
"v",
",",
"dict",
")",
":",
"result",
".",
"append",
"(",
"to_dict_str",
"(",
"v",
",",
"encode",
")",
")",
"continue",
"if",
"isinstance",
"(",
"v",
",",
"list",
")",
":",
"result",
".",
"append",
"(",
"to_list_str",
"(",
"v",
",",
"encode",
")",
")",
"continue",
"if",
"encode",
":",
"result",
".",
"append",
"(",
"encode",
"(",
"v",
")",
")",
"else",
":",
"result",
".",
"append",
"(",
"default_encode",
"(",
"v",
")",
")",
"return",
"result"
] | recursively convert list content into string
:arg list value: The list that need to be converted.
:arg function encode: Function used to encode object. | [
"recursively",
"convert",
"list",
"content",
"into",
"string"
] | 75faf97371a9a138c53f92168d0a486636cb8a9c | https://github.com/wecatch/app-turbo/blob/75faf97371a9a138c53f92168d0a486636cb8a9c/turbo/util.py#L29-L50 | train | recursively convert list content into string | 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,IAGRfZDRy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,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(0b10001 + 0o37) + chr(111) + '\061' + chr(0b110101) + chr(2334 - 2280), 0o10), nzTpIcepk0o8('\060' + '\157' + '\x33' + chr(1481 - 1427) + chr(0b110000), 4312 - 4304), nzTpIcepk0o8(chr(0b110000) + chr(8156 - 8045) + '\067' + chr(0b110100 + 0o2), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b1101 + 0o46) + '\064' + chr(55), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + '\x33' + chr(0b110100) + chr(0b110011), ord("\x08")), nzTpIcepk0o8(chr(2067 - 2019) + '\x6f' + chr(0b110010) + chr(51) + chr(2228 - 2175), 0o10), nzTpIcepk0o8(chr(0b10111 + 0o31) + chr(0b1000000 + 0o57) + '\065' + chr(0b110110), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110001 + 0o6) + '\067', 38375 - 38367), nzTpIcepk0o8('\x30' + '\157' + '\x33' + chr(53), 0o10), nzTpIcepk0o8(chr(1690 - 1642) + chr(0b1111 + 0o140) + chr(0b101110 + 0o5) + chr(0b1000 + 0o54) + chr(1935 - 1881), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\063' + chr(0b10010 + 0o40) + chr(0b110101), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + '\062' + '\061' + chr(1051 - 998), 0o10), nzTpIcepk0o8(chr(569 - 521) + '\157' + chr(0b101100 + 0o7) + chr(683 - 635) + chr(0b110000), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x32' + chr(0b110101) + chr(917 - 868), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(230 - 119) + '\063' + chr(0b110001) + chr(1384 - 1331), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(1485 - 1435) + '\x30' + chr(2697 - 2642), 0o10), nzTpIcepk0o8(chr(325 - 277) + chr(6426 - 6315) + '\061' + chr(0b110010) + chr(0b110111), 0o10), nzTpIcepk0o8(chr(48) + chr(0b100110 + 0o111) + '\060', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b10100 + 0o133) + '\x33' + chr(54) + '\x31', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b101000 + 0o12) + chr(0b0 + 0o64) + chr(0b110100 + 0o1), 26862 - 26854), nzTpIcepk0o8('\x30' + chr(5726 - 5615) + '\x33' + '\x32' + '\x33', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110 + 0o53) + chr(51), ord("\x08")), nzTpIcepk0o8(chr(0b11000 + 0o30) + chr(0b11001 + 0o126) + '\x32' + '\064' + '\x31', 34088 - 34080), nzTpIcepk0o8('\060' + '\157' + chr(2414 - 2364) + '\060' + '\060', 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(49) + chr(0b110000) + '\x34', 65470 - 65462), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110011) + chr(0b11011 + 0o31) + '\x30', 49540 - 49532), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b10001 + 0o42) + chr(1703 - 1651) + chr(0b110111), 8), nzTpIcepk0o8('\060' + chr(8943 - 8832) + chr(0b110011) + chr(0b110010) + '\x36', 54795 - 54787), nzTpIcepk0o8('\060' + chr(0b1100100 + 0o13) + chr(51) + '\x32' + chr(115 - 64), 8), nzTpIcepk0o8('\060' + chr(10736 - 10625) + chr(2063 - 2012) + chr(0b10110 + 0o41) + chr(0b1011 + 0o52), 19872 - 19864), nzTpIcepk0o8(chr(1654 - 1606) + '\x6f' + '\063' + chr(481 - 428) + '\x36', 7238 - 7230), nzTpIcepk0o8(chr(0b11110 + 0o22) + chr(111) + chr(1823 - 1772) + '\x34' + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110010) + chr(2320 - 2265) + chr(52), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(0b101111 + 0o3) + '\060' + '\065', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x31' + chr(2198 - 2148), ord("\x08")), nzTpIcepk0o8(chr(0b11110 + 0o22) + '\x6f' + chr(50) + chr(0b110010) + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b11101 + 0o26) + '\x36' + chr(0b100101 + 0o13), 8), nzTpIcepk0o8(chr(0b100111 + 0o11) + chr(8648 - 8537) + '\061' + chr(50) + '\x31', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(267 - 216) + '\x31' + '\063', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(51) + chr(55) + chr(0b110110), 45195 - 45187)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(0b1010100 + 0o33) + chr(0b101000 + 0o15) + chr(833 - 785), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'@'), '\144' + chr(4674 - 4573) + chr(99) + '\x6f' + '\x64' + '\x65')(chr(117) + chr(0b1110100) + chr(0b11101 + 0o111) + '\x2d' + chr(0b111000)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def MbOilwLzZg20(uV9iBiw0y_Mp, YqIaRFfeo4Ha=None):
POx95m7SPOVy = []
for (ZpfN5tSLaZze, r7AA1pbLjb44) in _kV_Bomx8PZ4(uV9iBiw0y_Mp):
if suIjIS24Zkqw(r7AA1pbLjb44, znjnJWK64FDT):
roI3spqORKae(POx95m7SPOVy, roI3spqORKae(ES5oEprVxulp(b'&\xa4m\xd3\x9b\xfaiPw\x89\x80\xb8'), chr(0b11001 + 0o113) + '\145' + chr(0b1100011) + '\x6f' + '\144' + chr(0b1100101))(chr(0b1110010 + 0o3) + chr(0b1110100) + '\146' + chr(0b10001 + 0o34) + chr(0b111000)))(u2NRS8mn9nNS(r7AA1pbLjb44, YqIaRFfeo4Ha))
continue
if suIjIS24Zkqw(r7AA1pbLjb44, H4NoA26ON7iG):
roI3spqORKae(POx95m7SPOVy, roI3spqORKae(ES5oEprVxulp(b'&\xa4m\xd3\x9b\xfaiPw\x89\x80\xb8'), chr(100) + '\x65' + '\x63' + chr(111) + chr(0b1100100) + chr(101))('\x75' + chr(116) + chr(6383 - 6281) + '\055' + chr(56)))(MbOilwLzZg20(r7AA1pbLjb44, YqIaRFfeo4Ha))
continue
if YqIaRFfeo4Ha:
roI3spqORKae(POx95m7SPOVy, roI3spqORKae(ES5oEprVxulp(b'&\xa4m\xd3\x9b\xfaiPw\x89\x80\xb8'), chr(8365 - 8265) + chr(101) + chr(99) + chr(0b1101111) + '\x64' + chr(101))(chr(0b1110101 + 0o0) + chr(0b1001011 + 0o51) + chr(8134 - 8032) + chr(45) + chr(2431 - 2375)))(YqIaRFfeo4Ha(r7AA1pbLjb44))
else:
roI3spqORKae(POx95m7SPOVy, roI3spqORKae(ES5oEprVxulp(b'&\xa4m\xd3\x9b\xfaiPw\x89\x80\xb8'), '\x64' + chr(0b1101 + 0o130) + chr(9745 - 9646) + '\157' + chr(100) + '\x65')(chr(0b1011010 + 0o33) + '\x74' + chr(102) + '\055' + chr(957 - 901)))(yj10PATR5uRb(r7AA1pbLjb44))
return POx95m7SPOVy |
wecatch/app-turbo | turbo/util.py | to_dict_str | def to_dict_str(origin_value, encode=None):
"""recursively convert dict content into string
"""
value = copy.deepcopy(origin_value)
for k, v in value.items():
if isinstance(v, dict):
value[k] = to_dict_str(v, encode)
continue
if isinstance(v, list):
value[k] = to_list_str(v, encode)
continue
if encode:
value[k] = encode(v)
else:
value[k] = default_encode(v)
return value | python | def to_dict_str(origin_value, encode=None):
"""recursively convert dict content into string
"""
value = copy.deepcopy(origin_value)
for k, v in value.items():
if isinstance(v, dict):
value[k] = to_dict_str(v, encode)
continue
if isinstance(v, list):
value[k] = to_list_str(v, encode)
continue
if encode:
value[k] = encode(v)
else:
value[k] = default_encode(v)
return value | [
"def",
"to_dict_str",
"(",
"origin_value",
",",
"encode",
"=",
"None",
")",
":",
"value",
"=",
"copy",
".",
"deepcopy",
"(",
"origin_value",
")",
"for",
"k",
",",
"v",
"in",
"value",
".",
"items",
"(",
")",
":",
"if",
"isinstance",
"(",
"v",
",",
"dict",
")",
":",
"value",
"[",
"k",
"]",
"=",
"to_dict_str",
"(",
"v",
",",
"encode",
")",
"continue",
"if",
"isinstance",
"(",
"v",
",",
"list",
")",
":",
"value",
"[",
"k",
"]",
"=",
"to_list_str",
"(",
"v",
",",
"encode",
")",
"continue",
"if",
"encode",
":",
"value",
"[",
"k",
"]",
"=",
"encode",
"(",
"v",
")",
"else",
":",
"value",
"[",
"k",
"]",
"=",
"default_encode",
"(",
"v",
")",
"return",
"value"
] | recursively convert dict content into string | [
"recursively",
"convert",
"dict",
"content",
"into",
"string"
] | 75faf97371a9a138c53f92168d0a486636cb8a9c | https://github.com/wecatch/app-turbo/blob/75faf97371a9a138c53f92168d0a486636cb8a9c/turbo/util.py#L53-L71 | train | recursively convert dict content into string | GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvt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1bagO6,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(0b11 + 0o55) + chr(2160 - 2049) + '\062' + '\x35', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110001) + '\066' + '\x30', 0b1000), nzTpIcepk0o8(chr(1021 - 973) + chr(111) + chr(1105 - 1055) + '\062' + chr(0b110110), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101101 + 0o2) + '\x35', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b100111 + 0o12) + chr(0b110001) + '\065', 62261 - 62253), nzTpIcepk0o8('\060' + '\x6f' + chr(53) + chr(49), 48156 - 48148), nzTpIcepk0o8('\060' + chr(0b10101 + 0o132) + '\x32' + chr(50) + chr(0b110111), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110001) + '\x35' + chr(54), ord("\x08")), nzTpIcepk0o8(chr(0b10100 + 0o34) + chr(111) + '\x32' + chr(51), ord("\x08")), nzTpIcepk0o8(chr(2080 - 2032) + chr(0b101001 + 0o106) + chr(49) + chr(49) + '\066', 0o10), nzTpIcepk0o8('\x30' + chr(0b1100000 + 0o17) + chr(0b110010) + '\061' + chr(0b110111), 15712 - 15704), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\061' + '\x35' + chr(1467 - 1415), 0b1000), nzTpIcepk0o8(chr(0b100011 + 0o15) + chr(0b111 + 0o150) + '\063' + '\062' + chr(0b11001 + 0o33), ord("\x08")), nzTpIcepk0o8(chr(0b10111 + 0o31) + chr(0b1011110 + 0o21) + chr(352 - 303) + chr(0b10001 + 0o45) + chr(0b10101 + 0o34), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(0b1001 + 0o52) + '\067' + chr(0b110100), 60877 - 60869), nzTpIcepk0o8(chr(1171 - 1123) + chr(7443 - 7332) + chr(445 - 394) + chr(54) + chr(568 - 513), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(1738 - 1688) + chr(0b110111) + chr(2250 - 2199), 0b1000), nzTpIcepk0o8(chr(0b101010 + 0o6) + chr(0b1101111) + chr(50) + '\063' + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b10100 + 0o133) + '\x31' + chr(459 - 405) + '\x33', ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + '\x31' + '\x36' + chr(0b110 + 0o60), 0b1000), nzTpIcepk0o8(chr(0b0 + 0o60) + '\x6f' + chr(49) + chr(51) + chr(2383 - 2333), ord("\x08")), nzTpIcepk0o8(chr(0b10010 + 0o36) + chr(5548 - 5437) + chr(50) + '\062' + '\067', 8), nzTpIcepk0o8(chr(0b110000) + chr(0b10100 + 0o133) + chr(0b110101) + chr(49), 8), nzTpIcepk0o8(chr(0b110000) + chr(8098 - 7987) + '\x34' + chr(51), 0b1000), nzTpIcepk0o8(chr(2286 - 2238) + chr(0b101010 + 0o105) + chr(49) + '\x37' + chr(0b11110 + 0o24), 27698 - 27690), nzTpIcepk0o8(chr(0b10110 + 0o32) + chr(111) + chr(1677 - 1626) + chr(0b110001) + chr(1700 - 1646), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(1116 - 1065) + chr(0b110100) + chr(2814 - 2760), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(1662 - 1609) + chr(144 - 93), 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(0b110001) + chr(0b110000 + 0o3) + chr(55), 42964 - 42956), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b100 + 0o57) + '\065' + chr(0b110000 + 0o5), ord("\x08")), nzTpIcepk0o8(chr(1102 - 1054) + chr(0b1100110 + 0o11) + chr(0b101101 + 0o5) + '\067' + '\063', 8), nzTpIcepk0o8(chr(1728 - 1680) + chr(373 - 262) + chr(51) + '\064' + chr(2162 - 2108), 8), nzTpIcepk0o8(chr(48) + '\x6f' + chr(50) + chr(0b110001) + chr(0b110010), 55522 - 55514), nzTpIcepk0o8(chr(48) + '\x6f' + '\x30', 0o10), nzTpIcepk0o8('\060' + chr(10742 - 10631) + chr(1922 - 1867) + '\066', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b0 + 0o157) + chr(0b10001 + 0o41) + chr(0b110100) + chr(51), 36209 - 36201), nzTpIcepk0o8(chr(0b11010 + 0o26) + '\157' + chr(0b11110 + 0o24) + chr(55) + chr(55), 11790 - 11782), nzTpIcepk0o8(chr(2156 - 2108) + '\x6f' + chr(2372 - 2323) + chr(55) + chr(0b110010), 8), nzTpIcepk0o8(chr(1929 - 1881) + chr(0b1101111) + chr(1454 - 1405) + '\x34' + '\065', ord("\x08")), nzTpIcepk0o8(chr(187 - 139) + '\x6f' + '\062' + '\062' + '\x35', ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b10010 + 0o36) + '\x6f' + '\x35' + chr(0b110000), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b';'), chr(100) + chr(101) + chr(425 - 326) + '\x6f' + '\x64' + chr(7192 - 7091))(chr(117) + chr(0b1110100) + chr(102) + chr(0b101101) + chr(1535 - 1479)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def u2NRS8mn9nNS(uC8bHRoHVwzH, YqIaRFfeo4Ha=None):
uV9iBiw0y_Mp = aZTCj4v5QdfO.deepcopy(uC8bHRoHVwzH)
for (B6UAF1zReOyJ, r7AA1pbLjb44) in roI3spqORKae(uV9iBiw0y_Mp, roI3spqORKae(ES5oEprVxulp(b'L/\xf8K\x08S\xdfZ 8\xd7\x05'), chr(0b1100100) + '\x65' + '\143' + chr(0b1001111 + 0o40) + '\144' + chr(1842 - 1741))(chr(117) + chr(116) + chr(6501 - 6399) + '\055' + chr(2155 - 2099)))():
if suIjIS24Zkqw(r7AA1pbLjb44, znjnJWK64FDT):
uV9iBiw0y_Mp[B6UAF1zReOyJ] = u2NRS8mn9nNS(r7AA1pbLjb44, YqIaRFfeo4Ha)
continue
if suIjIS24Zkqw(r7AA1pbLjb44, H4NoA26ON7iG):
uV9iBiw0y_Mp[B6UAF1zReOyJ] = MbOilwLzZg20(r7AA1pbLjb44, YqIaRFfeo4Ha)
continue
if YqIaRFfeo4Ha:
uV9iBiw0y_Mp[B6UAF1zReOyJ] = YqIaRFfeo4Ha(r7AA1pbLjb44)
else:
uV9iBiw0y_Mp[B6UAF1zReOyJ] = yj10PATR5uRb(r7AA1pbLjb44)
return uV9iBiw0y_Mp |
wecatch/app-turbo | turbo/util.py | default_encode | def default_encode(v):
"""convert ObjectId, datetime, date into string
"""
if isinstance(v, ObjectId):
return unicode_type(v)
if isinstance(v, datetime):
return format_time(v)
if isinstance(v, date):
return format_time(v)
return v | python | def default_encode(v):
"""convert ObjectId, datetime, date into string
"""
if isinstance(v, ObjectId):
return unicode_type(v)
if isinstance(v, datetime):
return format_time(v)
if isinstance(v, date):
return format_time(v)
return v | [
"def",
"default_encode",
"(",
"v",
")",
":",
"if",
"isinstance",
"(",
"v",
",",
"ObjectId",
")",
":",
"return",
"unicode_type",
"(",
"v",
")",
"if",
"isinstance",
"(",
"v",
",",
"datetime",
")",
":",
"return",
"format_time",
"(",
"v",
")",
"if",
"isinstance",
"(",
"v",
",",
"date",
")",
":",
"return",
"format_time",
"(",
"v",
")",
"return",
"v"
] | convert ObjectId, datetime, date into string | [
"convert",
"ObjectId",
"datetime",
"date",
"into",
"string"
] | 75faf97371a9a138c53f92168d0a486636cb8a9c | https://github.com/wecatch/app-turbo/blob/75faf97371a9a138c53f92168d0a486636cb8a9c/turbo/util.py#L74-L86 | train | convert ObjectId datetime date into string
| 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,Kqv3Z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,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(0b1101011 + 0o4) + chr(51) + chr(55) + chr(0b1000 + 0o55), 6680 - 6672), nzTpIcepk0o8('\x30' + chr(5924 - 5813) + '\063' + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(0b100100 + 0o14) + chr(111) + chr(0b10001 + 0o45) + '\x30', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(49) + chr(2118 - 2070) + chr(0b110101), 15678 - 15670), nzTpIcepk0o8('\060' + chr(111) + chr(2842 - 2787) + chr(54), 0b1000), nzTpIcepk0o8(chr(1975 - 1927) + '\x6f' + chr(0b110011) + chr(627 - 575) + '\x36', 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(2238 - 2189) + chr(53) + chr(0b110110), 0b1000), nzTpIcepk0o8(chr(0b101011 + 0o5) + '\x6f' + chr(0b110011) + '\064' + '\x34', 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110111) + '\067', ord("\x08")), nzTpIcepk0o8(chr(0b111 + 0o51) + chr(0b1101111) + '\x31' + chr(52) + '\x33', 14936 - 14928), nzTpIcepk0o8(chr(538 - 490) + chr(0b1101111) + '\061' + chr(0b10101 + 0o33) + '\066', 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110001) + chr(0b101101 + 0o4) + chr(2445 - 2395), 0o10), nzTpIcepk0o8(chr(0b10110 + 0o32) + chr(0b101101 + 0o102) + chr(814 - 765) + chr(0b110111) + '\x32', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b100110 + 0o13) + chr(0b110011) + chr(1844 - 1792), 0o10), nzTpIcepk0o8(chr(48) + chr(5932 - 5821) + chr(50) + chr(698 - 648) + '\x35', 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(50) + chr(50), 0o10), nzTpIcepk0o8(chr(1037 - 989) + chr(8040 - 7929) + chr(0b11001 + 0o32) + '\064' + '\x34', 8), nzTpIcepk0o8(chr(48) + '\x6f' + '\063' + '\x37' + '\x30', 13157 - 13149), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b10100 + 0o36) + chr(1123 - 1068) + '\060', 0o10), nzTpIcepk0o8(chr(182 - 134) + chr(111) + chr(50) + chr(0b10001 + 0o41) + chr(0b100 + 0o61), 8), nzTpIcepk0o8(chr(48) + '\157' + chr(0b101111 + 0o4) + chr(0b110010) + '\064', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(4218 - 4107) + '\062' + '\064' + '\065', 0b1000), nzTpIcepk0o8(chr(0b1000 + 0o50) + chr(5806 - 5695) + chr(0b100100 + 0o16) + '\x31' + chr(2448 - 2395), 11985 - 11977), nzTpIcepk0o8(chr(0b100100 + 0o14) + chr(0b110101 + 0o72) + chr(2179 - 2128) + chr(1029 - 977) + chr(49), 0b1000), nzTpIcepk0o8(chr(962 - 914) + chr(0b110 + 0o151) + chr(0b110110), 0o10), nzTpIcepk0o8('\060' + chr(0b111100 + 0o63) + '\x37', 10747 - 10739), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b11001 + 0o32) + chr(54) + '\060', 0o10), nzTpIcepk0o8('\060' + chr(0b101010 + 0o105) + chr(0b110011) + chr(48) + chr(53), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110010) + chr(0b10100 + 0o35) + chr(2058 - 2009), 0o10), nzTpIcepk0o8(chr(1821 - 1773) + chr(0b11011 + 0o124) + chr(0b100001 + 0o25) + chr(0b110101 + 0o1), 0o10), nzTpIcepk0o8(chr(0b11011 + 0o25) + chr(0b1001000 + 0o47) + '\063' + chr(0b11100 + 0o25) + '\x36', 3313 - 3305), nzTpIcepk0o8('\060' + chr(0b1010 + 0o145) + '\x31' + '\x34' + chr(1985 - 1935), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1011101 + 0o22) + chr(1797 - 1748) + chr(50) + chr(0b110 + 0o53), 0o10), nzTpIcepk0o8('\060' + chr(8155 - 8044) + chr(0b10111 + 0o32) + chr(0b110011) + '\x34', 8), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110010) + chr(54), 53253 - 53245), nzTpIcepk0o8(chr(48) + '\x6f' + chr(53) + '\x34', 0o10), nzTpIcepk0o8(chr(1203 - 1155) + chr(0b1101111) + chr(0b110001) + chr(2188 - 2137) + chr(52), 8), nzTpIcepk0o8(chr(0b101001 + 0o7) + chr(111) + chr(0b110001) + '\063' + '\067', 26212 - 26204), nzTpIcepk0o8('\x30' + '\157' + chr(0b110010) + chr(1350 - 1299), 1067 - 1059), nzTpIcepk0o8(chr(48) + chr(0b101101 + 0o102) + chr(52) + '\x37', 6434 - 6426)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b100110 + 0o12) + chr(0b1101111) + chr(53) + chr(0b101111 + 0o1), 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xd3'), chr(0b1100100) + '\x65' + '\143' + '\157' + '\144' + '\x65')('\x75' + '\164' + '\146' + '\x2d' + '\x38') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def yj10PATR5uRb(r7AA1pbLjb44):
if suIjIS24Zkqw(r7AA1pbLjb44, Oi5aZemV14Rf):
return LxmbYdOwMxlT(r7AA1pbLjb44)
if suIjIS24Zkqw(r7AA1pbLjb44, pGZg2NXRxBup):
return xuCOSoprVeqg(r7AA1pbLjb44)
if suIjIS24Zkqw(r7AA1pbLjb44, Q4ZiDCds3gUR):
return xuCOSoprVeqg(r7AA1pbLjb44)
return r7AA1pbLjb44 |
wecatch/app-turbo | turbo/util.py | to_str | def to_str(v, encode=None):
"""convert any list, dict, iterable and primitives object to string
"""
if isinstance(v, basestring_type):
return v
if isinstance(v, dict):
return to_dict_str(v, encode)
if isinstance(v, Iterable):
return to_list_str(v, encode)
if encode:
return encode(v)
else:
return default_encode(v) | python | def to_str(v, encode=None):
"""convert any list, dict, iterable and primitives object to string
"""
if isinstance(v, basestring_type):
return v
if isinstance(v, dict):
return to_dict_str(v, encode)
if isinstance(v, Iterable):
return to_list_str(v, encode)
if encode:
return encode(v)
else:
return default_encode(v) | [
"def",
"to_str",
"(",
"v",
",",
"encode",
"=",
"None",
")",
":",
"if",
"isinstance",
"(",
"v",
",",
"basestring_type",
")",
":",
"return",
"v",
"if",
"isinstance",
"(",
"v",
",",
"dict",
")",
":",
"return",
"to_dict_str",
"(",
"v",
",",
"encode",
")",
"if",
"isinstance",
"(",
"v",
",",
"Iterable",
")",
":",
"return",
"to_list_str",
"(",
"v",
",",
"encode",
")",
"if",
"encode",
":",
"return",
"encode",
"(",
"v",
")",
"else",
":",
"return",
"default_encode",
"(",
"v",
")"
] | convert any list, dict, iterable and primitives object to string | [
"convert",
"any",
"list",
"dict",
"iterable",
"and",
"primitives",
"object",
"to",
"string"
] | 75faf97371a9a138c53f92168d0a486636cb8a9c | https://github.com/wecatch/app-turbo/blob/75faf97371a9a138c53f92168d0a486636cb8a9c/turbo/util.py#L89-L104 | train | convert any list dict iterable and primitives object to string | 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,Q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SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__
ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\x30' + '\157' + chr(0b110010) + chr(2509 - 2456) + chr(0b110011), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\062' + chr(0b110100 + 0o2), 0o10), nzTpIcepk0o8('\060' + chr(111) + '\x32' + '\064' + chr(397 - 342), 50868 - 50860), nzTpIcepk0o8(chr(0b110000) + chr(9544 - 9433) + '\x32' + chr(0b110111) + chr(0b100000 + 0o20), 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(50) + '\x35' + chr(1090 - 1038), ord("\x08")), nzTpIcepk0o8('\060' + chr(10527 - 10416) + '\062' + chr(0b110011) + chr(51), 8349 - 8341), nzTpIcepk0o8('\x30' + '\x6f' + chr(242 - 193) + '\x37', 15938 - 15930), nzTpIcepk0o8(chr(48) + '\157' + chr(0b101010 + 0o10) + chr(696 - 646) + chr(0b1111 + 0o46), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + '\x37' + '\x34', 0o10), nzTpIcepk0o8(chr(2295 - 2247) + chr(111) + chr(0b110010) + chr(54) + chr(1549 - 1497), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110001) + '\x35' + chr(0b10010 + 0o43), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110001) + chr(485 - 434) + chr(49), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b10110 + 0o131) + chr(0b110010) + chr(0b1101 + 0o47) + chr(51), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x32' + '\x34' + chr(55), 8), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\065' + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\061' + chr(2598 - 2547) + chr(0b101111 + 0o2), 8), nzTpIcepk0o8(chr(0b100001 + 0o17) + chr(0b1010011 + 0o34) + chr(214 - 165) + chr(2113 - 2062) + chr(0b110010), 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(51) + chr(347 - 298) + '\x32', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1000101 + 0o52) + chr(51) + '\062', 0b1000), nzTpIcepk0o8(chr(537 - 489) + chr(111) + chr(0b1011 + 0o50) + '\x37' + '\067', 0o10), nzTpIcepk0o8('\060' + '\157' + '\x33' + '\062' + chr(0b110100), 14804 - 14796), nzTpIcepk0o8('\060' + '\x6f' + '\063' + '\060', 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\064' + '\x32', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\062' + chr(0b110101) + '\063', 8), nzTpIcepk0o8(chr(0b110000) + chr(1347 - 1236) + chr(1344 - 1292) + chr(0b100 + 0o61), 0b1000), nzTpIcepk0o8('\060' + '\157' + chr(51) + chr(0b101100 + 0o5) + chr(0b101000 + 0o16), 0o10), nzTpIcepk0o8(chr(642 - 594) + chr(111) + chr(52) + '\x30', 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(54) + '\x36', 0o10), nzTpIcepk0o8(chr(0b101010 + 0o6) + chr(0b1011 + 0o144) + chr(1332 - 1280) + chr(0b10000 + 0o47), 0o10), nzTpIcepk0o8(chr(48) + chr(464 - 353) + '\x31' + chr(863 - 808) + '\065', 0b1000), nzTpIcepk0o8('\060' + chr(0b100101 + 0o112) + chr(1709 - 1659) + '\067' + chr(54), 18398 - 18390), nzTpIcepk0o8(chr(0b100011 + 0o15) + chr(11304 - 11193) + chr(892 - 842) + chr(0b1000 + 0o57) + '\x34', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(51) + '\x32' + chr(53), 0o10), nzTpIcepk0o8(chr(48) + chr(7712 - 7601) + chr(0b110110) + chr(52), 0b1000), nzTpIcepk0o8(chr(48) + chr(4560 - 4449) + chr(2107 - 2055) + '\063', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b101011 + 0o10) + chr(1938 - 1889) + chr(1602 - 1551), 0o10), nzTpIcepk0o8('\x30' + chr(0b1010010 + 0o35) + chr(2559 - 2505) + '\061', 17414 - 17406), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(578 - 527) + chr(55) + chr(2285 - 2234), 0b1000), nzTpIcepk0o8(chr(0b1011 + 0o45) + chr(111) + chr(0b110010) + chr(53) + chr(1550 - 1497), 0o10), nzTpIcepk0o8('\060' + chr(111) + '\066' + chr(0b1100 + 0o47), 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b100 + 0o54) + chr(4584 - 4473) + '\065' + chr(0b10 + 0o56), ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x85'), '\144' + '\x65' + chr(0b11101 + 0o106) + chr(0b110111 + 0o70) + chr(648 - 548) + '\x65')(chr(0b111110 + 0o67) + chr(0b1110100) + '\x66' + chr(0b0 + 0o55) + '\070') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def qgxDIk9d9oC2(r7AA1pbLjb44, YqIaRFfeo4Ha=None):
if suIjIS24Zkqw(r7AA1pbLjb44, tjGEo4HNW8SW):
return r7AA1pbLjb44
if suIjIS24Zkqw(r7AA1pbLjb44, znjnJWK64FDT):
return u2NRS8mn9nNS(r7AA1pbLjb44, YqIaRFfeo4Ha)
if suIjIS24Zkqw(r7AA1pbLjb44, IcXtLMKvPVf3):
return MbOilwLzZg20(r7AA1pbLjb44, YqIaRFfeo4Ha)
if YqIaRFfeo4Ha:
return YqIaRFfeo4Ha(r7AA1pbLjb44)
else:
return yj10PATR5uRb(r7AA1pbLjb44) |
wecatch/app-turbo | turbo/util.py | to_objectid | def to_objectid(objid):
"""字符对象转换成objectid
"""
if objid is None:
return objid
try:
objid = ObjectId(objid)
except:
util_log.error('%s is invalid objectid' % objid)
return None
return objid | python | def to_objectid(objid):
"""字符对象转换成objectid
"""
if objid is None:
return objid
try:
objid = ObjectId(objid)
except:
util_log.error('%s is invalid objectid' % objid)
return None
return objid | [
"def",
"to_objectid",
"(",
"objid",
")",
":",
"if",
"objid",
"is",
"None",
":",
"return",
"objid",
"try",
":",
"objid",
"=",
"ObjectId",
"(",
"objid",
")",
"except",
":",
"util_log",
".",
"error",
"(",
"'%s is invalid objectid'",
"%",
"objid",
")",
"return",
"None",
"return",
"objid"
] | 字符对象转换成objectid | [
"字符对象转换成objectid"
] | 75faf97371a9a138c53f92168d0a486636cb8a9c | https://github.com/wecatch/app-turbo/blob/75faf97371a9a138c53f92168d0a486636cb8a9c/turbo/util.py#L113-L125 | train | Convert an ObjectId to a base objectid | GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ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D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__
ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\x30' + '\x6f' + chr(51) + chr(0b110010) + chr(52), 7454 - 7446), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(2473 - 2423) + chr(2311 - 2260) + chr(2651 - 2596), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b111011 + 0o64) + chr(1628 - 1579) + '\x32' + '\x31', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(10386 - 10275) + chr(2318 - 2263) + chr(55), 49307 - 49299), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110 + 0o53) + '\x31' + '\x30', 0o10), nzTpIcepk0o8(chr(0b1011 + 0o45) + chr(111) + '\x33' + chr(2000 - 1951) + '\064', ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + '\063' + '\065' + chr(0b110101), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(11794 - 11683) + chr(0b11100 + 0o27) + chr(0b101100 + 0o10) + chr(0b101001 + 0o15), 0o10), nzTpIcepk0o8(chr(0b100001 + 0o17) + '\x6f' + chr(0b1011 + 0o50) + '\x33' + chr(0b110110), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(49) + chr(389 - 340), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + '\063' + chr(228 - 179) + chr(53), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x33' + chr(50) + chr(50), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b0 + 0o61) + chr(2226 - 2171) + '\063', 0b1000), nzTpIcepk0o8(chr(1952 - 1904) + chr(0b101101 + 0o102) + '\x32' + chr(0b110111) + chr(0b110000 + 0o4), 0b1000), nzTpIcepk0o8('\060' + chr(1672 - 1561) + '\061' + chr(0b101111 + 0o10) + '\x36', 0o10), nzTpIcepk0o8(chr(48) + chr(0b100000 + 0o117) + chr(0b110010) + chr(0b100000 + 0o25) + chr(1460 - 1406), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(51) + '\062' + chr(0b110000), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(11423 - 11312) + chr(0b110001) + chr(0b110110), 0o10), nzTpIcepk0o8(chr(751 - 703) + chr(7168 - 7057) + '\x33' + chr(0b110101) + chr(52), 63949 - 63941), nzTpIcepk0o8(chr(83 - 35) + chr(0b1101111) + '\067' + chr(0b110010 + 0o0), 0b1000), nzTpIcepk0o8(chr(48) + chr(1590 - 1479) + '\x31' + '\x33', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(2047 - 1936) + '\x32' + chr(0b110110) + chr(1452 - 1402), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b1100 + 0o46) + '\062' + chr(1982 - 1932), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x33' + chr(0b11100 + 0o24) + '\065', ord("\x08")), nzTpIcepk0o8(chr(0b11100 + 0o24) + '\x6f' + '\066' + chr(55), 45684 - 45676), nzTpIcepk0o8('\060' + '\x6f' + '\x31' + chr(0b10111 + 0o37) + '\065', 59485 - 59477), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110010) + chr(48) + chr(953 - 903), ord("\x08")), nzTpIcepk0o8(chr(0b100011 + 0o15) + '\157' + '\x33' + chr(0b110101) + chr(1247 - 1192), 47535 - 47527), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b11110 + 0o25) + chr(48) + chr(48), 0o10), nzTpIcepk0o8(chr(1973 - 1925) + chr(0b1101111) + chr(0b10000 + 0o43) + chr(0b10 + 0o65) + '\060', 37578 - 37570), nzTpIcepk0o8(chr(1381 - 1333) + chr(0b1110 + 0o141) + chr(2287 - 2238) + '\062' + '\x37', 960 - 952), nzTpIcepk0o8('\060' + chr(0b1011111 + 0o20) + chr(0b11111 + 0o23) + '\062' + '\064', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(984 - 873) + chr(50) + chr(0b110101) + '\060', 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(53) + chr(0b101101 + 0o3), 0b1000), nzTpIcepk0o8('\060' + '\157' + chr(50) + chr(0b10 + 0o62) + '\062', 11532 - 11524), nzTpIcepk0o8(chr(0b100101 + 0o13) + '\x6f' + chr(2053 - 2003) + '\x31' + '\066', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1010010 + 0o35) + '\066' + chr(1688 - 1637), ord("\x08")), nzTpIcepk0o8(chr(0b10011 + 0o35) + chr(0b101001 + 0o106) + chr(0b1 + 0o61) + chr(0b110100) + chr(49), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\063' + chr(1078 - 1026) + '\x34', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(5253 - 5142) + chr(0b1101 + 0o44) + chr(48) + '\063', ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(2199 - 2151) + '\157' + chr(0b110101) + chr(48), 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xfa'), chr(0b10 + 0o142) + '\145' + chr(7117 - 7018) + '\157' + '\x64' + '\145')(chr(0b1110101) + chr(0b1110100) + chr(6322 - 6220) + chr(0b100110 + 0o7) + chr(56)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def iXzl8Hboc5HI(Jx2t4un6_XhN):
if Jx2t4un6_XhN is None:
return Jx2t4un6_XhN
try:
Jx2t4un6_XhN = Oi5aZemV14Rf(Jx2t4un6_XhN)
except UtiWT6f6p9yZ:
roI3spqORKae(q89GBE1dLp72, roI3spqORKae(ES5oEprVxulp(b'\xa5\xf6`H!\xbc\xbd\xb0\xa8L\x86\xb6'), chr(0b1100100) + chr(0b1010110 + 0o17) + chr(8753 - 8654) + chr(0b1000 + 0o147) + '\144' + chr(101))(chr(5841 - 5724) + chr(116) + chr(0b1010010 + 0o24) + chr(0b101101) + chr(56)))(roI3spqORKae(ES5oEprVxulp(b'\xf1\xecqV;\xec\x84\x88\xa8h\xa1\xbb\x1f\x9c\x11\xcc\xbak\x8fNb\xd6'), chr(1491 - 1391) + '\145' + chr(0b1100011) + chr(111) + '\x64' + chr(101))(chr(0b1110101) + chr(0b1110100) + chr(102) + '\x2d' + chr(1733 - 1677)) % Jx2t4un6_XhN)
return None
return Jx2t4un6_XhN |
wecatch/app-turbo | turbo/util.py | get_base_dir | def get_base_dir(currfile, dir_level_num=3):
"""
find certain path according to currfile
"""
root_path = os.path.abspath(currfile)
for i in range(0, dir_level_num):
root_path = os.path.dirname(root_path)
return root_path | python | def get_base_dir(currfile, dir_level_num=3):
"""
find certain path according to currfile
"""
root_path = os.path.abspath(currfile)
for i in range(0, dir_level_num):
root_path = os.path.dirname(root_path)
return root_path | [
"def",
"get_base_dir",
"(",
"currfile",
",",
"dir_level_num",
"=",
"3",
")",
":",
"root_path",
"=",
"os",
".",
"path",
".",
"abspath",
"(",
"currfile",
")",
"for",
"i",
"in",
"range",
"(",
"0",
",",
"dir_level_num",
")",
":",
"root_path",
"=",
"os",
".",
"path",
".",
"dirname",
"(",
"root_path",
")",
"return",
"root_path"
] | find certain path according to currfile | [
"find",
"certain",
"path",
"according",
"to",
"currfile"
] | 75faf97371a9a138c53f92168d0a486636cb8a9c | https://github.com/wecatch/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PEZPhm,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(0b101011 + 0o104) + '\061' + chr(0b11011 + 0o31) + chr(49), 0o10), nzTpIcepk0o8(chr(0b101000 + 0o10) + '\157' + chr(0b1100 + 0o45) + '\061' + chr(0b10110 + 0o32), 64929 - 64921), nzTpIcepk0o8('\x30' + '\157' + '\062' + chr(0b1101 + 0o50) + '\x35', 0o10), nzTpIcepk0o8(chr(48) + chr(0b111010 + 0o65) + chr(0b110001) + chr(50) + chr(55), 0b1000), nzTpIcepk0o8(chr(0b11110 + 0o22) + chr(0b1101111) + chr(0b101100 + 0o12) + chr(1972 - 1922), 45860 - 45852), nzTpIcepk0o8('\060' + chr(0b110111 + 0o70) + chr(0b100101 + 0o14) + chr(0b110000) + chr(0b110111), 46078 - 46070), nzTpIcepk0o8(chr(0b110000) + chr(0b101000 + 0o107) + chr(0b110011) + '\064' + chr(53), 0o10), nzTpIcepk0o8(chr(48) + chr(0b100100 + 0o113) + '\x31' + '\065' + '\x32', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1 + 0o156) + '\x31' + chr(918 - 865) + chr(0b1000 + 0o55), 47593 - 47585), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(50) + '\x32', 7531 - 7523), nzTpIcepk0o8(chr(0b11111 + 0o21) + '\157' + '\x35' + chr(861 - 813), 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(1294 - 1244) + '\066', 0o10), nzTpIcepk0o8(chr(48) + chr(0b110001 + 0o76) + '\063' + '\x30' + '\064', 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(52) + '\063', 0o10), nzTpIcepk0o8('\060' + '\157' + chr(1377 - 1328) + chr(900 - 847) + chr(0b110111), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110101) + chr(0b110101), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(7721 - 7610) + chr(0b110101) + chr(0b110000), 8), nzTpIcepk0o8(chr(1775 - 1727) + chr(0b1101111) + chr(2571 - 2519) + chr(0b100 + 0o61), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110 + 0o53) + chr(0b110101) + chr(0b110001 + 0o2), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(4446 - 4335) + '\063' + chr(2057 - 2007) + '\x32', 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(49) + chr(0b110111) + chr(51), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b101010 + 0o105) + chr(51) + chr(0b110100) + '\064', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x31' + '\063' + chr(0b110100), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(10278 - 10167) + '\062' + chr(0b110010) + '\x37', 29702 - 29694), nzTpIcepk0o8(chr(48) + chr(111) + chr(1609 - 1560) + '\065' + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1011111 + 0o20) + '\x32' + chr(693 - 642) + chr(0b1011 + 0o52), ord("\x08")), nzTpIcepk0o8(chr(0b11111 + 0o21) + chr(111) + chr(1552 - 1503) + chr(2081 - 2026) + '\x37', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(49) + chr(51) + chr(0b110111), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + '\062' + '\064' + chr(54), ord("\x08")), nzTpIcepk0o8(chr(0b101010 + 0o6) + chr(0b1111 + 0o140) + chr(0b110001) + chr(55), ord("\x08")), nzTpIcepk0o8(chr(2049 - 2001) + '\x6f' + '\061' + chr(0b10100 + 0o42) + chr(2131 - 2079), 62372 - 62364), nzTpIcepk0o8('\x30' + chr(111) + chr(0b100100 + 0o17) + '\x32' + chr(0b110100 + 0o0), 33298 - 33290), nzTpIcepk0o8(chr(1099 - 1051) + chr(0b1000011 + 0o54) + chr(0b1010 + 0o47) + '\x32' + chr(49), 0o10), nzTpIcepk0o8('\060' + chr(111) + '\061' + '\x36' + chr(49), ord("\x08")), nzTpIcepk0o8(chr(0b100001 + 0o17) + '\157' + chr(0b101000 + 0o12) + chr(52), 0b1000), nzTpIcepk0o8(chr(1269 - 1221) + '\x6f' + chr(0b110010) + '\061' + '\x36', 0b1000), nzTpIcepk0o8('\060' + chr(0b1010010 + 0o35) + '\x33' + '\066' + chr(2505 - 2452), 41 - 33), nzTpIcepk0o8(chr(48) + chr(111) + chr(2081 - 2032) + '\062' + chr(313 - 261), ord("\x08")), nzTpIcepk0o8(chr(0b11111 + 0o21) + chr(0b1010011 + 0o34) + chr(0b11000 + 0o32) + chr(1451 - 1401) + chr(0b110110), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + '\x31' + chr(1927 - 1877), 34467 - 34459)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b10 + 0o56) + '\157' + chr(0b110101) + '\x30', 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'O'), chr(2262 - 2162) + chr(0b11000 + 0o115) + chr(7044 - 6945) + '\157' + chr(0b1100 + 0o130) + chr(101))(chr(2958 - 2841) + '\164' + '\146' + '\x2d' + '\070') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def M7eQgzaHl6K1(Ce6U5ilYvAjt, wFrZR7N85Zo6=nzTpIcepk0o8('\060' + chr(8525 - 8414) + '\063', 0b1000)):
C9SAnDa5_ruk = aHUqKstZLeS6.path.abspath(Ce6U5ilYvAjt)
for ZlbFMSG8gCoF in bbT2xIe5pzk7(nzTpIcepk0o8('\x30' + '\x6f' + chr(48), 0o10), wFrZR7N85Zo6):
C9SAnDa5_ruk = aHUqKstZLeS6.path.qu5fsQlGSLfc(C9SAnDa5_ruk)
return C9SAnDa5_ruk |
wecatch/app-turbo | turbo/util.py | join_sys_path | def join_sys_path(currfile, dir_level_num=3):
"""
find certain path then load into sys path
"""
if os.path.isdir(currfile):
root_path = currfile
else:
root_path = get_base_dir(currfile, dir_level_num)
sys.path.append(root_path) | python | def join_sys_path(currfile, dir_level_num=3):
"""
find certain path then load into sys path
"""
if os.path.isdir(currfile):
root_path = currfile
else:
root_path = get_base_dir(currfile, dir_level_num)
sys.path.append(root_path) | [
"def",
"join_sys_path",
"(",
"currfile",
",",
"dir_level_num",
"=",
"3",
")",
":",
"if",
"os",
".",
"path",
".",
"isdir",
"(",
"currfile",
")",
":",
"root_path",
"=",
"currfile",
"else",
":",
"root_path",
"=",
"get_base_dir",
"(",
"currfile",
",",
"dir_level_num",
")",
"sys",
".",
"path",
".",
"append",
"(",
"root_path",
")"
] | find certain path then load into sys path | [
"find",
"certain",
"path",
"then",
"load",
"into",
"sys",
"path"
] | 75faf97371a9a138c53f92168d0a486636cb8a9c | https://github.com/wecatch/app-turbo/blob/75faf97371a9a138c53f92168d0a486636cb8a9c/turbo/util.py#L199-L208 | train | find certain path then load into sys. path | GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,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T,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(0b11000 + 0o127) + '\062' + chr(1509 - 1460) + '\061', ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110001) + chr(0b100100 + 0o14) + chr(0b11 + 0o60), 4684 - 4676), nzTpIcepk0o8('\x30' + '\157' + chr(49) + chr(1746 - 1697) + chr(1512 - 1459), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + '\062' + chr(1867 - 1819) + '\x36', ord("\x08")), nzTpIcepk0o8(chr(0b10 + 0o56) + chr(10559 - 10448) + chr(718 - 667) + '\x34' + chr(50), 0b1000), nzTpIcepk0o8(chr(48) + chr(3981 - 3870) + chr(1986 - 1932) + '\x33', 0o10), nzTpIcepk0o8(chr(48) + chr(111) + '\x31' + chr(0b100110 + 0o17) + '\x30', 62863 - 62855), nzTpIcepk0o8(chr(272 - 224) + '\157' + chr(0b11 + 0o56) + '\x37' + chr(1684 - 1636), 0b1000), nzTpIcepk0o8(chr(878 - 830) + chr(10268 - 10157) + '\063' + '\061' + chr(0b110011), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\061' + chr(0b101100 + 0o11) + chr(49), 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(2264 - 2214) + chr(0b110111) + chr(0b110010), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\062' + chr(0b10010 + 0o37) + '\x30', 0b1000), nzTpIcepk0o8(chr(1844 - 1796) + chr(0b1101111) + '\062' + chr(0b110000) + '\063', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(8442 - 8331) + '\x31' + '\060' + chr(49), 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(1675 - 1626) + '\064' + chr(0b101110 + 0o5), 0o10), nzTpIcepk0o8(chr(1279 - 1231) + chr(0b1101111) + chr(2485 - 2435) + chr(50) + '\x33', 58726 - 58718), nzTpIcepk0o8(chr(0b110000) + chr(5195 - 5084) + '\x31' + chr(55), 0o10), nzTpIcepk0o8(chr(0b11101 + 0o23) + chr(111) + '\062' + chr(0b100001 + 0o17) + chr(1201 - 1149), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110011) + chr(0b1001 + 0o52) + chr(0b101001 + 0o12), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(50) + chr(51) + chr(1890 - 1836), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + '\x36' + '\066', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1001000 + 0o47) + chr(0b110010) + chr(1127 - 1079) + chr(761 - 707), 8), nzTpIcepk0o8(chr(0b100110 + 0o12) + '\x6f' + chr(0b101001 + 0o11) + '\x33' + '\x37', 0b1000), nzTpIcepk0o8(chr(2004 - 1956) + chr(0b1101011 + 0o4) + chr(50), 3267 - 3259), nzTpIcepk0o8(chr(0b110000) + chr(0b110000 + 0o77) + '\063' + chr(0b110111) + '\064', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b110110 + 0o71) + chr(51) + chr(0b1010 + 0o50) + chr(0b11111 + 0o22), 20377 - 20369), nzTpIcepk0o8('\060' + chr(111) + '\x33' + '\061' + chr(0b110001), 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110010) + chr(2611 - 2559), 0b1000), nzTpIcepk0o8(chr(48) + chr(11726 - 11615) + chr(0b100001 + 0o20) + chr(0b100 + 0o63), 8), nzTpIcepk0o8('\060' + '\x6f' + '\x33' + chr(0b110011) + chr(0b110 + 0o61), 0b1000), nzTpIcepk0o8(chr(0b10101 + 0o33) + chr(8307 - 8196) + '\x32' + '\x33' + chr(0b10011 + 0o43), 8), nzTpIcepk0o8('\060' + '\157' + chr(49) + chr(1063 - 1014) + chr(1954 - 1905), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x33' + '\067' + '\x37', 0o10), nzTpIcepk0o8('\060' + '\x6f' + '\061' + chr(0b1101 + 0o47) + chr(825 - 775), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b100110 + 0o111) + '\x33' + chr(0b100011 + 0o16) + '\x35', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\062' + '\x36' + chr(2521 - 2469), 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x35' + chr(49), 0b1000), nzTpIcepk0o8('\x30' + '\157' + '\061' + chr(0b110100) + '\061', 0b1000), nzTpIcepk0o8(chr(204 - 156) + '\157' + '\x35' + '\x33', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1100000 + 0o17) + chr(0b110010) + '\x31' + '\x30', 8)][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + chr(4295 - 4184) + chr(0b110101) + chr(0b110000), 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xa7'), chr(0b1110 + 0o126) + '\x65' + '\143' + chr(8540 - 8429) + chr(0b1010101 + 0o17) + '\145')('\x75' + chr(116) + chr(0b1100110) + chr(1618 - 1573) + '\070') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def xy9fxtvdmY8i(Ce6U5ilYvAjt, wFrZR7N85Zo6=nzTpIcepk0o8(chr(0b110000) + '\157' + chr(51), 16652 - 16644)):
if roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'\xd1+\x1d\xb7\xb8G*A\xaa8\xc0\xca'), '\x64' + chr(101) + chr(0b1100011) + chr(0b101110 + 0o101) + chr(0b101001 + 0o73) + '\x65')(chr(0b1110101) + chr(10765 - 10649) + '\146' + '\x2d' + chr(56)))(Ce6U5ilYvAjt):
C9SAnDa5_ruk = Ce6U5ilYvAjt
else:
C9SAnDa5_ruk = M7eQgzaHl6K1(Ce6U5ilYvAjt, wFrZR7N85Zo6)
roI3spqORKae(bpyfpu4kTbwL.path, roI3spqORKae(ES5oEprVxulp(b'\xc1\x17\x1e\xb2\x9aT/\x17\xa1\x06\xef\xbd'), '\144' + '\145' + chr(0b1100011) + chr(3974 - 3863) + chr(0b1100100) + '\145')(chr(9042 - 8925) + chr(0b1110100) + '\146' + '\x2d' + chr(604 - 548)))(C9SAnDa5_ruk) |
wecatch/app-turbo | turbo/util.py | camel_to_underscore | def camel_to_underscore(name):
"""
convert CamelCase style to under_score_case
"""
as_list = []
length = len(name)
for index, i in enumerate(name):
if index != 0 and index != length - 1 and i.isupper():
as_list.append('_%s' % i.lower())
else:
as_list.append(i.lower())
return ''.join(as_list) | python | def camel_to_underscore(name):
"""
convert CamelCase style to under_score_case
"""
as_list = []
length = len(name)
for index, i in enumerate(name):
if index != 0 and index != length - 1 and i.isupper():
as_list.append('_%s' % i.lower())
else:
as_list.append(i.lower())
return ''.join(as_list) | [
"def",
"camel_to_underscore",
"(",
"name",
")",
":",
"as_list",
"=",
"[",
"]",
"length",
"=",
"len",
"(",
"name",
")",
"for",
"index",
",",
"i",
"in",
"enumerate",
"(",
"name",
")",
":",
"if",
"index",
"!=",
"0",
"and",
"index",
"!=",
"length",
"-",
"1",
"and",
"i",
".",
"isupper",
"(",
")",
":",
"as_list",
".",
"append",
"(",
"'_%s'",
"%",
"i",
".",
"lower",
"(",
")",
")",
"else",
":",
"as_list",
".",
"append",
"(",
"i",
".",
"lower",
"(",
")",
")",
"return",
"''",
".",
"join",
"(",
"as_list",
")"
] | convert CamelCase style to under_score_case | [
"convert",
"CamelCase",
"style",
"to",
"under_score_case"
] | 75faf97371a9a138c53f92168d0a486636cb8a9c | https://github.com/wecatch/app-turbo/blob/75faf97371a9a138c53f92168d0a486636cb8a9c/turbo/util.py#L224-L236 | train | convert CamelCase style to under_score_case
| 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,jZ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2Ofrbne,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(49) + '\061' + '\063', 19517 - 19509), nzTpIcepk0o8(chr(48) + chr(11441 - 11330) + chr(2225 - 2176) + chr(78 - 26) + chr(1778 - 1727), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + '\x32' + '\x36' + '\x33', 14043 - 14035), nzTpIcepk0o8(chr(48) + chr(0b1101110 + 0o1) + chr(0b110010) + chr(50) + '\x33', 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110011) + chr(0b10 + 0o64) + '\063', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(10665 - 10554) + '\062' + '\067' + '\x37', ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(1091 - 1041) + '\x30' + '\062', 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(49) + '\063' + chr(884 - 830), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + '\062' + chr(1638 - 1587) + chr(53), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(502 - 449) + chr(0b110111), 0b1000), nzTpIcepk0o8(chr(0b1011 + 0o45) + chr(0b1101111) + chr(50) + '\061' + '\x36', 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(50) + chr(0b110000 + 0o5) + chr(52), 0o10), nzTpIcepk0o8('\x30' + chr(0b10000 + 0o137) + chr(2107 - 2053) + chr(135 - 83), ord("\x08")), nzTpIcepk0o8(chr(0b10011 + 0o35) + '\x6f' + '\062' + '\066' + chr(0b110001), 0o10), nzTpIcepk0o8(chr(152 - 104) + chr(2692 - 2581) + chr(50) + '\x33' + chr(0b110011), 0b1000), nzTpIcepk0o8(chr(0b101 + 0o53) + '\157' + chr(52) + '\061', 8033 - 8025), nzTpIcepk0o8(chr(0b0 + 0o60) + chr(3156 - 3045) + chr(0b101011 + 0o6) + chr(1430 - 1380) + chr(0b110111), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b11010 + 0o125) + chr(1218 - 1163), ord("\x08")), nzTpIcepk0o8(chr(0b110 + 0o52) + chr(8944 - 8833) + chr(52) + '\x30', 0o10), nzTpIcepk0o8('\060' + '\157' + '\061' + chr(1289 - 1239) + '\x36', 20575 - 20567), nzTpIcepk0o8('\x30' + '\157' + chr(0b110011) + chr(51) + chr(0b110010), 58275 - 58267), nzTpIcepk0o8('\x30' + '\157' + '\061' + chr(1635 - 1581) + chr(0b110101 + 0o2), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x32' + chr(0b101011 + 0o5) + chr(0b110010), 8), nzTpIcepk0o8('\x30' + chr(0b100101 + 0o112) + '\x33' + chr(49) + chr(0b100011 + 0o15), 0b1000), nzTpIcepk0o8(chr(1893 - 1845) + chr(0b1101111) + chr(0b100100 + 0o20) + chr(2403 - 2350), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(274 - 224) + chr(0b110100) + chr(49), 0b1000), nzTpIcepk0o8('\060' + chr(7372 - 7261) + '\061' + '\x32' + chr(0b110111), 8), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(2006 - 1953) + chr(52), 0b1000), nzTpIcepk0o8('\x30' + '\157' + '\x31' + chr(53) + chr(49), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(51) + chr(0b110111) + chr(0b110001), 8567 - 8559), nzTpIcepk0o8('\060' + '\157' + chr(1392 - 1343) + chr(1614 - 1561) + chr(48), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b100110 + 0o14) + chr(1350 - 1299) + chr(0b11111 + 0o24), 8), nzTpIcepk0o8(chr(48) + chr(111) + '\x33' + '\x31' + chr(48), 8), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x31' + '\x32' + '\061', 26450 - 26442), nzTpIcepk0o8(chr(0b10 + 0o56) + chr(111) + chr(53) + chr(0b110010), 0b1000), nzTpIcepk0o8(chr(0b101001 + 0o7) + chr(111) + chr(0b11100 + 0o27) + '\x32' + chr(0b100110 + 0o14), 0b1000), nzTpIcepk0o8('\060' + chr(6619 - 6508) + chr(0b110010) + '\066' + chr(0b110011), 8), nzTpIcepk0o8('\x30' + '\x6f' + chr(50) + '\063' + '\x31', 53607 - 53599), nzTpIcepk0o8('\060' + chr(111) + chr(0b110010) + chr(52) + '\x31', 8), nzTpIcepk0o8(chr(125 - 77) + chr(8976 - 8865) + '\x33' + '\061' + '\067', 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b101000 + 0o15) + chr(0b11011 + 0o25), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'e'), chr(8676 - 8576) + chr(4243 - 4142) + chr(99) + '\157' + chr(0b1100100) + chr(7110 - 7009))(chr(6452 - 6335) + chr(0b11011 + 0o131) + chr(2766 - 2664) + '\x2d' + chr(2037 - 1981)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def fM2f1xXsDTa7(SLVB2BPA_mIe):
eAj2YpNCY8op = []
a1RCQZREo3Kd = ftfygxgFas5X(SLVB2BPA_mIe)
for (ZpfN5tSLaZze, ZlbFMSG8gCoF) in _kV_Bomx8PZ4(SLVB2BPA_mIe):
if ZpfN5tSLaZze != nzTpIcepk0o8(chr(1511 - 1463) + '\157' + chr(0b11010 + 0o26), 0b1000) and ZpfN5tSLaZze != a1RCQZREo3Kd - nzTpIcepk0o8(chr(2137 - 2089) + '\157' + '\061', 0o10) and roI3spqORKae(ZlbFMSG8gCoF, roI3spqORKae(ES5oEprVxulp(b'"\x10\xc6\xe3\x83\xda\xf0'), '\x64' + chr(0b1100101) + chr(0b11111 + 0o104) + chr(0b1011001 + 0o26) + '\144' + chr(0b1100101))(chr(1010 - 893) + chr(0b1100100 + 0o20) + chr(102) + chr(866 - 821) + '\x38'))():
roI3spqORKae(eAj2YpNCY8op, roI3spqORKae(ES5oEprVxulp(b'\x037\xe0\xa7\x8b\xd8\xc51\xf7@\xdb\x99'), chr(0b1100100) + chr(0b1001001 + 0o34) + chr(0b111100 + 0o47) + '\x6f' + chr(0b1011 + 0o131) + chr(7513 - 7412))('\x75' + chr(10320 - 10204) + chr(0b1100110) + chr(0b101101) + chr(0b1001 + 0o57)))(roI3spqORKae(ES5oEprVxulp(b'\x14F\xc0'), '\x64' + '\145' + '\x63' + chr(0b1101111) + '\144' + chr(1567 - 1466))(chr(0b1110101) + chr(0b1110100) + chr(102) + chr(1975 - 1930) + chr(0b11010 + 0o36)) % roI3spqORKae(ZlbFMSG8gCoF, roI3spqORKae(ES5oEprVxulp(b'\x13\r\x8b\xd6\xbd\xe8\xcf\x04\xf9f\xdc\xd8'), '\144' + chr(6048 - 5947) + chr(0b1100011) + '\x6f' + '\144' + chr(0b111010 + 0o53))(chr(0b100011 + 0o122) + chr(0b1011101 + 0o27) + '\146' + '\055' + '\070'))())
else:
roI3spqORKae(eAj2YpNCY8op, roI3spqORKae(ES5oEprVxulp(b'\x037\xe0\xa7\x8b\xd8\xc51\xf7@\xdb\x99'), chr(6620 - 6520) + '\145' + chr(99) + chr(0b1101111) + chr(0b101010 + 0o72) + chr(101))(chr(0b1110101) + chr(0b1110100) + '\146' + chr(0b101101) + chr(958 - 902)))(roI3spqORKae(ZlbFMSG8gCoF, roI3spqORKae(ES5oEprVxulp(b'\x13\r\x8b\xd6\xbd\xe8\xcf\x04\xf9f\xdc\xd8'), chr(100) + chr(4612 - 4511) + chr(2622 - 2523) + chr(0b1101111) + chr(100) + '\x65')(chr(215 - 98) + chr(0b10101 + 0o137) + '\146' + chr(0b101000 + 0o5) + '\070'))())
return roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b''), '\144' + '\x65' + '\x63' + chr(111) + '\144' + '\145')(chr(117) + '\x74' + '\146' + '\x2d' + chr(56)), roI3spqORKae(ES5oEprVxulp(b'\x12W\xca\xde\xca\xfd\xe18\xc9l\xc0\xdd'), chr(100) + chr(0b11110 + 0o107) + chr(0b10 + 0o141) + chr(0b1101111) + chr(0b100001 + 0o103) + chr(0b1100101))(chr(117) + chr(0b1101100 + 0o10) + chr(0b1001000 + 0o36) + chr(653 - 608) + '\x38'))(eAj2YpNCY8op) |
wecatch/app-turbo | turbo/util.py | to_basestring | def to_basestring(value):
"""Converts a string argument to a subclass of basestring.
In python2, byte and unicode strings are mostly interchangeable,
so functions that deal with a user-supplied argument in combination
with ascii string constants can use either and should return the type
the user supplied. In python3, the two types are not interchangeable,
so this method is needed to convert byte strings to unicode.
"""
if isinstance(value, _BASESTRING_TYPES):
return value
if not isinstance(value, bytes):
raise TypeError(
"Expected bytes, unicode, or None; got %r" % type(value)
)
return value.decode("utf-8") | python | def to_basestring(value):
"""Converts a string argument to a subclass of basestring.
In python2, byte and unicode strings are mostly interchangeable,
so functions that deal with a user-supplied argument in combination
with ascii string constants can use either and should return the type
the user supplied. In python3, the two types are not interchangeable,
so this method is needed to convert byte strings to unicode.
"""
if isinstance(value, _BASESTRING_TYPES):
return value
if not isinstance(value, bytes):
raise TypeError(
"Expected bytes, unicode, or None; got %r" % type(value)
)
return value.decode("utf-8") | [
"def",
"to_basestring",
"(",
"value",
")",
":",
"if",
"isinstance",
"(",
"value",
",",
"_BASESTRING_TYPES",
")",
":",
"return",
"value",
"if",
"not",
"isinstance",
"(",
"value",
",",
"bytes",
")",
":",
"raise",
"TypeError",
"(",
"\"Expected bytes, unicode, or None; got %r\"",
"%",
"type",
"(",
"value",
")",
")",
"return",
"value",
".",
"decode",
"(",
"\"utf-8\"",
")"
] | Converts a string argument to a subclass of basestring.
In python2, byte and unicode strings are mostly interchangeable,
so functions that deal with a user-supplied argument in combination
with ascii string constants can use either and should return the type
the user supplied. In python3, the two types are not interchangeable,
so this method is needed to convert byte strings to unicode. | [
"Converts",
"a",
"string",
"argument",
"to",
"a",
"subclass",
"of",
"basestring",
"."
] | 75faf97371a9a138c53f92168d0a486636cb8a9c | https://github.com/wecatch/app-turbo/blob/75faf97371a9a138c53f92168d0a486636cb8a9c/turbo/util.py#L364-L379 | train | Converts a string argument to a subclass of basestring. | 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,jZI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Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__
ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(48) + '\x6f' + chr(57 - 4) + chr(0b1010 + 0o54), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\067' + '\060', 0b1000), nzTpIcepk0o8(chr(1847 - 1799) + chr(0b1101111) + '\063' + '\x35' + '\x31', 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110001) + '\x32' + chr(50), ord("\x08")), nzTpIcepk0o8(chr(1089 - 1041) + chr(0b1101111) + chr(51) + chr(0b110010), 24354 - 24346), nzTpIcepk0o8(chr(48) + '\157' + '\063' + '\061' + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(324 - 276) + chr(3031 - 2920) + chr(0b110100) + chr(51), 60532 - 60524), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(50) + '\x30' + '\062', 46716 - 46708), nzTpIcepk0o8(chr(48) + chr(0b1001 + 0o146) + chr(0b110110) + chr(0b110110), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(0b110010) + '\x30', ord("\x08")), nzTpIcepk0o8(chr(0b10100 + 0o34) + '\157' + chr(623 - 574) + '\062' + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(7148 - 7037) + '\067' + chr(54), 0b1000), nzTpIcepk0o8(chr(1552 - 1504) + '\157' + chr(0b1110 + 0o45) + '\x32' + chr(1742 - 1688), 42396 - 42388), nzTpIcepk0o8(chr(48) + '\157' + chr(0b11111 + 0o24) + '\063' + chr(53), 0b1000), nzTpIcepk0o8(chr(1124 - 1076) + '\x6f' + chr(51) + chr(2237 - 2184) + '\x31', 8), nzTpIcepk0o8('\060' + '\x6f' + '\x32' + chr(48) + chr(0b110011), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b10 + 0o62) + chr(50), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(49) + chr(1782 - 1733) + chr(0b101010 + 0o13), 23016 - 23008), nzTpIcepk0o8(chr(2068 - 2020) + chr(0b1101111) + chr(866 - 817) + chr(1165 - 1115) + '\062', 8), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110100) + chr(2387 - 2336), 8), nzTpIcepk0o8(chr(1510 - 1462) + chr(111) + '\061' + chr(0b110001) + chr(2416 - 2362), 0o10), nzTpIcepk0o8(chr(0b100101 + 0o13) + chr(0b1101111) + chr(0b110 + 0o57) + '\x35', 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(55) + chr(0b110011), 889 - 881), nzTpIcepk0o8(chr(349 - 301) + '\x6f' + '\x32' + chr(2697 - 2643) + chr(283 - 231), 58070 - 58062), nzTpIcepk0o8(chr(0b10011 + 0o35) + chr(262 - 151) + chr(51) + chr(0b110101) + '\x31', 8), nzTpIcepk0o8('\x30' + '\157' + '\061' + '\x35' + chr(122 - 71), 63725 - 63717), nzTpIcepk0o8(chr(2155 - 2107) + '\157' + chr(51) + '\060' + chr(0b11100 + 0o26), 49207 - 49199), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x31' + '\064' + '\x31', 0o10), nzTpIcepk0o8('\060' + '\157' + '\x32' + chr(55) + chr(52), 10182 - 10174), nzTpIcepk0o8(chr(0b110000) + chr(10266 - 10155) + '\x34' + '\x35', 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(0b110011) + chr(0b110110) + chr(2135 - 2082), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110001) + chr(52) + '\x32', 0b1000), nzTpIcepk0o8('\x30' + chr(111) + '\x32' + chr(49) + chr(49), ord("\x08")), nzTpIcepk0o8(chr(1183 - 1135) + chr(5961 - 5850) + '\x33' + chr(0b110000) + '\067', ord("\x08")), nzTpIcepk0o8(chr(0b101101 + 0o3) + chr(0b1101101 + 0o2) + chr(797 - 744) + chr(0b110011), 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110010) + chr(396 - 342) + chr(49), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(53) + chr(2089 - 2036), 8), nzTpIcepk0o8('\x30' + chr(11159 - 11048) + chr(1075 - 1025) + chr(1770 - 1717) + chr(495 - 447), 0b1000), nzTpIcepk0o8(chr(1764 - 1716) + chr(111) + chr(50) + chr(0b110001) + chr(0b110000), 46570 - 46562), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(302 - 253) + chr(0b10000 + 0o40) + '\x32', 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(3092 - 2981) + chr(0b110101) + '\x30', 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x00'), '\x64' + chr(101) + chr(2869 - 2770) + '\157' + '\x64' + '\x65')('\165' + '\164' + chr(0b101100 + 0o72) + '\055' + chr(0b111000)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def Sn9r9VvDmB0O(uV9iBiw0y_Mp):
if suIjIS24Zkqw(uV9iBiw0y_Mp, IbzLQ6Ye2psx):
return uV9iBiw0y_Mp
if not suIjIS24Zkqw(uV9iBiw0y_Mp, QNQS9e6tJqMV):
raise jZIjKu8IFANs(roI3spqORKae(ES5oEprVxulp(b'k@\x997y\xb8F\xe6\x16r-J\xb3\xae\xc5\xa3W#;@!I^\x98\xc9\x04\xb0A\xf2J\x9b\x07\xb2\xe7L\xdeY\x88\xad0'), chr(100) + '\145' + '\x63' + '\x6f' + '\x64' + chr(5217 - 5116))(chr(117) + chr(10272 - 10156) + chr(0b11111 + 0o107) + '\055' + chr(56)) % MJ07XsN5uFgW(uV9iBiw0y_Mp))
return roI3spqORKae(uV9iBiw0y_Mp, roI3spqORKae(ES5oEprVxulp(b'B^\x8b\x14i\xa8t\xeeb#\x19|'), chr(0b1100100) + chr(101) + '\x63' + chr(0b1101111) + '\144' + '\145')(chr(0b1110101) + chr(116) + chr(0b1010111 + 0o17) + '\055' + '\x38'))(roI3spqORKae(ES5oEprVxulp(b'[L\x8f\x7f"'), chr(0b111000 + 0o54) + chr(0b111110 + 0o47) + '\x63' + chr(0b1101111) + '\144' + '\x65')(chr(0b1110101) + chr(3728 - 3612) + chr(2516 - 2414) + chr(0b11100 + 0o21) + chr(0b111000 + 0o0))) |
wecatch/app-turbo | turbo/httputil.py | encode_http_params | def encode_http_params(**kw):
'''
url paremeter encode
'''
try:
_fo = lambda k, v: '{name}={value}'.format(
name=k, value=to_basestring(quote(v)))
except:
_fo = lambda k, v: '%s=%s' % (k, to_basestring(quote(v)))
_en = utf8
return '&'.join([_fo(k, _en(v)) for k, v in kw.items() if not is_empty(v)]) | python | def encode_http_params(**kw):
'''
url paremeter encode
'''
try:
_fo = lambda k, v: '{name}={value}'.format(
name=k, value=to_basestring(quote(v)))
except:
_fo = lambda k, v: '%s=%s' % (k, to_basestring(quote(v)))
_en = utf8
return '&'.join([_fo(k, _en(v)) for k, v in kw.items() if not is_empty(v)]) | [
"def",
"encode_http_params",
"(",
"*",
"*",
"kw",
")",
":",
"try",
":",
"_fo",
"=",
"lambda",
"k",
",",
"v",
":",
"'{name}={value}'",
".",
"format",
"(",
"name",
"=",
"k",
",",
"value",
"=",
"to_basestring",
"(",
"quote",
"(",
"v",
")",
")",
")",
"except",
":",
"_fo",
"=",
"lambda",
"k",
",",
"v",
":",
"'%s=%s'",
"%",
"(",
"k",
",",
"to_basestring",
"(",
"quote",
"(",
"v",
")",
")",
")",
"_en",
"=",
"utf8",
"return",
"'&'",
".",
"join",
"(",
"[",
"_fo",
"(",
"k",
",",
"_en",
"(",
"v",
")",
")",
"for",
"k",
",",
"v",
"in",
"kw",
".",
"items",
"(",
")",
"if",
"not",
"is_empty",
"(",
"v",
")",
"]",
")"
] | url paremeter encode | [
"url",
"paremeter",
"encode"
] | 75faf97371a9a138c53f92168d0a486636cb8a9c | https://github.com/wecatch/app-turbo/blob/75faf97371a9a138c53f92168d0a486636cb8a9c/turbo/httputil.py#L25-L37 | train | url paremeter encode
| GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz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n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__
ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(1826 - 1778) + '\x6f' + '\063' + '\x32' + chr(0b11100 + 0o27), ord("\x08")), nzTpIcepk0o8('\x30' + chr(4510 - 4399) + chr(2193 - 2144) + '\060' + '\061', 0o10), nzTpIcepk0o8(chr(0b1001 + 0o47) + chr(0b1101111) + '\061' + chr(0b110001) + '\061', 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b10010 + 0o43) + chr(0b110100 + 0o0), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x31' + '\x32' + '\063', ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(50) + chr(48), 23488 - 23480), nzTpIcepk0o8(chr(2288 - 2240) + chr(0b101001 + 0o106) + '\x33' + chr(48) + chr(2563 - 2509), ord("\x08")), nzTpIcepk0o8(chr(1857 - 1809) + chr(4187 - 4076) + chr(0b1011 + 0o47) + chr(50) + '\065', ord("\x08")), nzTpIcepk0o8(chr(0b100010 + 0o16) + chr(0b110001 + 0o76) + '\063' + chr(0b110000) + chr(52), 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(0b100101 + 0o14) + chr(0b101 + 0o56) + chr(2091 - 2041), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b100 + 0o153) + chr(0b110101) + '\x37', 0o10), nzTpIcepk0o8('\x30' + '\x6f' + '\x32' + chr(812 - 758) + chr(0b110100), 0o10), nzTpIcepk0o8(chr(2172 - 2124) + chr(111) + chr(51) + '\061' + '\067', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + '\062' + chr(0b110010 + 0o0) + chr(0b110110), 44092 - 44084), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(1561 - 1512) + '\x33' + chr(0b11111 + 0o22), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b101011 + 0o6) + chr(50) + chr(55), ord("\x08")), nzTpIcepk0o8(chr(0b101110 + 0o2) + '\157' + chr(0b110011) + '\062', 0b1000), nzTpIcepk0o8(chr(0b101100 + 0o4) + chr(111) + chr(49) + '\x30' + '\066', ord("\x08")), nzTpIcepk0o8(chr(0b100111 + 0o11) + chr(0b1101111) + '\x33' + chr(54) + chr(0b110001), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + '\063' + '\062' + chr(0b110101), 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110010) + chr(0b11110 + 0o30) + chr(0b110110), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + '\063' + '\066' + chr(53), ord("\x08")), nzTpIcepk0o8(chr(0b10100 + 0o34) + chr(0b100011 + 0o114) + '\x32' + '\067' + chr(966 - 916), 0b1000), nzTpIcepk0o8(chr(0b100100 + 0o14) + chr(0b1010010 + 0o35) + '\061' + '\067' + chr(0b110101), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110001) + '\064' + '\061', 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(50) + chr(538 - 485), 0o10), nzTpIcepk0o8(chr(0b110 + 0o52) + chr(111) + chr(0b110001) + chr(1389 - 1335) + chr(55), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + '\061' + chr(0b100001 + 0o17) + chr(442 - 393), 8), nzTpIcepk0o8(chr(2075 - 2027) + chr(2718 - 2607) + chr(51) + chr(1726 - 1678) + chr(0b1011 + 0o54), 0b1000), nzTpIcepk0o8('\x30' + '\157' + '\x36' + '\x30', 21166 - 21158), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b11 + 0o57) + chr(0b110001) + chr(0b11100 + 0o24), 0o10), nzTpIcepk0o8(chr(0b100111 + 0o11) + chr(0b1100011 + 0o14) + chr(1181 - 1131) + chr(53) + '\x33', 21487 - 21479), nzTpIcepk0o8('\x30' + chr(2209 - 2098) + chr(51) + chr(51) + '\066', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(3706 - 3595) + chr(0b110011) + chr(53) + chr(0b1110 + 0o45), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(0b111 + 0o53) + chr(0b11110 + 0o31), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b1101 + 0o44) + chr(0b100101 + 0o20), ord("\x08")), nzTpIcepk0o8(chr(737 - 689) + chr(0b1101111) + chr(0b110110) + '\065', 0o10), nzTpIcepk0o8(chr(0b101001 + 0o7) + chr(0b10111 + 0o130) + '\x33' + chr(0b110101) + chr(0b110010), 0o10), nzTpIcepk0o8('\x30' + '\157' + '\x32' + '\x34' + '\062', 0b1000), nzTpIcepk0o8(chr(0b101110 + 0o2) + '\157' + '\x31' + '\x37' + chr(970 - 921), 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110101) + chr(868 - 820), ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xfd'), '\144' + chr(0b1100101) + chr(8506 - 8407) + chr(8232 - 8121) + chr(0b1100100) + chr(0b1000101 + 0o40))(chr(13065 - 12948) + chr(8414 - 8298) + chr(102) + '\x2d' + chr(876 - 820)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def vaeXTZsq4Fpu(**n_DqV9fOWrXc):
try:
def ksISQUxfow4c(B6UAF1zReOyJ, r7AA1pbLjb44):
return roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\xa8/(A6m\xfb\xee\xb2;C\xc1\xaa\xeb'), chr(100) + chr(101) + chr(0b1100011) + '\x6f' + chr(8864 - 8764) + chr(0b1100101))(chr(0b1010010 + 0o43) + '\164' + chr(0b1100110) + chr(45) + chr(0b10 + 0o66)), roI3spqORKae(ES5oEprVxulp(b'\xa2rzg\x14#\xa0\xfa\x95\x05l\xfe'), '\144' + chr(0b1100101) + chr(0b1011100 + 0o7) + chr(0b111100 + 0o63) + '\x64' + chr(0b1100101))(chr(0b1110101) + chr(0b1110100) + chr(0b1100110) + '\x2d' + chr(2461 - 2405)))(name=B6UAF1zReOyJ, value=Sn9r9VvDmB0O(oAMLMPzLW7cF(r7AA1pbLjb44)))
except UtiWT6f6p9yZ:
def ksISQUxfow4c(B6UAF1zReOyJ, r7AA1pbLjb44):
return roI3spqORKae(ES5oEprVxulp(b'\xf62t\t '), chr(0b1100100) + '\145' + '\143' + '\157' + chr(5608 - 5508) + chr(0b1100101))(chr(0b1110101) + chr(0b1100110 + 0o16) + chr(7066 - 6964) + '\x2d' + chr(56)) % (B6UAF1zReOyJ, Sn9r9VvDmB0O(oAMLMPzLW7cF(r7AA1pbLjb44)))
mg0GCI08sG2r = tKAnMneX090U
return roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\xf5'), chr(8762 - 8662) + chr(0b1100101) + chr(0b1100011) + '\157' + chr(2089 - 1989) + chr(0b1000110 + 0o37))(chr(117) + chr(1503 - 1387) + chr(102) + chr(0b101101) + chr(113 - 57)), roI3spqORKae(ES5oEprVxulp(b'\x8au0ajR\xa5\xf3\x90\x19a\xc5'), chr(0b1011101 + 0o7) + chr(0b1100101) + chr(0b111011 + 0o50) + chr(0b1011000 + 0o27) + chr(0b1100100) + chr(0b1100101))('\x75' + '\x74' + chr(0b1100110) + '\055' + chr(3016 - 2960)))([ksISQUxfow4c(B6UAF1zReOyJ, mg0GCI08sG2r(r7AA1pbLjb44)) for (B6UAF1zReOyJ, r7AA1pbLjb44) in roI3spqORKae(n_DqV9fOWrXc, roI3spqORKae(ES5oEprVxulp(b"\x8a\x1e'b\x16j\x8e\xa1\xf7,w\xdd"), chr(0b1100100) + '\x65' + chr(0b1100011) + '\x6f' + chr(0b1100100) + chr(6004 - 5903))(chr(0b1000101 + 0o60) + chr(0b1110100) + chr(102) + '\x2d' + '\070'))() if not CsDkFho9fiQA(r7AA1pbLjb44)]) |
wecatch/app-turbo | turbo/log.py | _init_file_logger | def _init_file_logger(logger, level, log_path, log_size, log_count):
"""
one logger only have one level RotatingFileHandler
"""
if level not in [logging.NOTSET, logging.DEBUG, logging.INFO, logging.WARNING, logging.ERROR, logging.CRITICAL]:
level = logging.DEBUG
for h in logger.handlers:
if isinstance(h, logging.handlers.RotatingFileHandler):
if h.level == level:
return
fh = logging.handlers.RotatingFileHandler(
log_path, maxBytes=log_size, backupCount=log_count)
fh.setLevel(level)
fh.setFormatter(_formatter)
logger.addHandler(fh) | python | def _init_file_logger(logger, level, log_path, log_size, log_count):
"""
one logger only have one level RotatingFileHandler
"""
if level not in [logging.NOTSET, logging.DEBUG, logging.INFO, logging.WARNING, logging.ERROR, logging.CRITICAL]:
level = logging.DEBUG
for h in logger.handlers:
if isinstance(h, logging.handlers.RotatingFileHandler):
if h.level == level:
return
fh = logging.handlers.RotatingFileHandler(
log_path, maxBytes=log_size, backupCount=log_count)
fh.setLevel(level)
fh.setFormatter(_formatter)
logger.addHandler(fh) | [
"def",
"_init_file_logger",
"(",
"logger",
",",
"level",
",",
"log_path",
",",
"log_size",
",",
"log_count",
")",
":",
"if",
"level",
"not",
"in",
"[",
"logging",
".",
"NOTSET",
",",
"logging",
".",
"DEBUG",
",",
"logging",
".",
"INFO",
",",
"logging",
".",
"WARNING",
",",
"logging",
".",
"ERROR",
",",
"logging",
".",
"CRITICAL",
"]",
":",
"level",
"=",
"logging",
".",
"DEBUG",
"for",
"h",
"in",
"logger",
".",
"handlers",
":",
"if",
"isinstance",
"(",
"h",
",",
"logging",
".",
"handlers",
".",
"RotatingFileHandler",
")",
":",
"if",
"h",
".",
"level",
"==",
"level",
":",
"return",
"fh",
"=",
"logging",
".",
"handlers",
".",
"RotatingFileHandler",
"(",
"log_path",
",",
"maxBytes",
"=",
"log_size",
",",
"backupCount",
"=",
"log_count",
")",
"fh",
".",
"setLevel",
"(",
"level",
")",
"fh",
".",
"setFormatter",
"(",
"_formatter",
")",
"logger",
".",
"addHandler",
"(",
"fh",
")"
] | one logger only have one level RotatingFileHandler | [
"one",
"logger",
"only",
"have",
"one",
"level",
"RotatingFileHandler"
] | 75faf97371a9a138c53f92168d0a486636cb8a9c | https://github.com/wecatch/app-turbo/blob/75faf97371a9a138c53f92168d0a486636cb8a9c/turbo/log.py#L21-L37 | train | Initialize a file logger. | 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,pZy5DBJ8WJ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v,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(1739 - 1690) + chr(0b110001) + chr(0b10100 + 0o34), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(50) + '\x36' + '\062', 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(50) + '\x35', 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(49) + '\067' + '\064', 0o10), nzTpIcepk0o8('\x30' + chr(111) + '\x33' + '\060' + '\066', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(51) + chr(1905 - 1852) + chr(0b110111), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1011011 + 0o24) + chr(1652 - 1599), 0b1000), nzTpIcepk0o8(chr(1295 - 1247) + chr(111) + chr(49) + '\x36' + '\x32', ord("\x08")), nzTpIcepk0o8(chr(1976 - 1928) + '\157' + '\061' + '\064' + '\x37', 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(54) + chr(0b1110 + 0o46), 0b1000), nzTpIcepk0o8(chr(1782 - 1734) + '\x6f' + chr(51) + chr(0b110001) + chr(868 - 817), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(426 - 376) + '\x35' + chr(54), 31584 - 31576), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\061' + chr(50) + '\x30', 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x33' + '\x35' + '\061', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b10010 + 0o135) + chr(426 - 375) + chr(53) + chr(2893 - 2839), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(1193 - 1144) + chr(0b110010) + chr(55), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b100000 + 0o117) + chr(0b1010 + 0o47) + chr(2295 - 2243) + chr(1535 - 1481), 11191 - 11183), nzTpIcepk0o8(chr(48) + '\157' + '\061' + chr(0b11111 + 0o24) + chr(1024 - 970), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(8408 - 8297) + chr(0b1001 + 0o51) + '\062' + chr(1128 - 1078), 45067 - 45059), nzTpIcepk0o8(chr(1551 - 1503) + chr(111) + chr(50) + chr(0b110011) + chr(0b110001), 0o10), nzTpIcepk0o8('\x30' + chr(10051 - 9940) + '\067', 36102 - 36094), nzTpIcepk0o8('\060' + chr(6531 - 6420) + chr(0b110011) + chr(55) + chr(1386 - 1335), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(1216 - 1165) + chr(0b100000 + 0o21) + chr(49), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x34' + '\x36', 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(50) + chr(0b1101 + 0o46), 0b1000), nzTpIcepk0o8('\060' + chr(0b10100 + 0o133) + '\061' + chr(0b101000 + 0o13) + chr(0b100110 + 0o12), 12224 - 12216), nzTpIcepk0o8(chr(0b11001 + 0o27) + '\157' + '\061' + chr(0b110100) + chr(0b1100 + 0o51), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110001) + '\x30' + '\060', 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\061' + '\x35' + '\066', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110011) + chr(50) + chr(0b1111 + 0o46), 0b1000), nzTpIcepk0o8(chr(1607 - 1559) + chr(0b111001 + 0o66) + '\062' + chr(0b110001 + 0o5) + '\065', 34847 - 34839), nzTpIcepk0o8('\060' + chr(11137 - 11026) + '\x31' + chr(2433 - 2378) + chr(50), 0o10), nzTpIcepk0o8(chr(1432 - 1384) + '\x6f' + '\x33' + chr(0b110000) + chr(1710 - 1656), 8), nzTpIcepk0o8(chr(0b1011 + 0o45) + chr(0b100 + 0o153) + '\x31' + chr(1074 - 1019) + chr(792 - 743), 0b1000), nzTpIcepk0o8('\060' + chr(0b110011 + 0o74) + '\063' + chr(0b11001 + 0o27) + chr(0b110101), 0b1000), nzTpIcepk0o8('\x30' + chr(2214 - 2103) + chr(51) + chr(0b110001) + chr(54), 50767 - 50759), nzTpIcepk0o8(chr(147 - 99) + chr(111) + chr(1965 - 1914) + '\x31' + chr(0b100000 + 0o24), 0o10), nzTpIcepk0o8('\x30' + chr(2695 - 2584) + '\x31' + '\061', 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110010) + '\065', 8), nzTpIcepk0o8(chr(724 - 676) + '\157' + chr(1104 - 1052), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(1650 - 1602) + chr(0b1101111) + chr(53) + chr(48), 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'f'), chr(3627 - 3527) + '\x65' + chr(0b1100011) + chr(111) + '\x64' + '\145')('\165' + chr(11180 - 11064) + '\x66' + '\x2d' + '\x38') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def PdHrohBxkEMI(iKLp4UdyhCfx, OHMe9lml54lU, cLt0SX773rLJ, KMbZwEAOaNhG, P5bdflPKjPoS):
if OHMe9lml54lU not in [roI3spqORKae(Lj4gcNafqrcl, roI3spqORKae(ES5oEprVxulp(b'\x06\xfdA/\x83\xbb'), chr(100) + chr(0b1000 + 0o135) + chr(0b1100011) + '\157' + chr(0b1100100 + 0o0) + '\x65')(chr(12837 - 12720) + '\164' + '\x66' + '\055' + '\x38')), roI3spqORKae(Lj4gcNafqrcl, roI3spqORKae(ES5oEprVxulp(b'\x10\xf1a\x11\x91\x9dK\x028m\x80\x98'), chr(0b111001 + 0o53) + '\x65' + chr(8388 - 8289) + chr(8202 - 8091) + chr(0b1010 + 0o132) + chr(101))('\x75' + chr(0b1110100) + '\x66' + '\055' + '\070')), roI3spqORKae(Lj4gcNafqrcl, roI3spqORKae(ES5oEprVxulp(b'\x01\xfcS3'), chr(0b100010 + 0o102) + chr(6593 - 6492) + chr(5059 - 4960) + chr(111) + chr(100) + chr(9411 - 9310))(chr(0b1110101) + chr(0b1110100) + '\146' + chr(0b110 + 0o47) + '\070')), roI3spqORKae(Lj4gcNafqrcl, roI3spqORKae(ES5oEprVxulp(b'\x1f\xf3G2\x8f\xa1B'), '\x64' + '\145' + chr(7064 - 6965) + chr(9690 - 9579) + chr(7183 - 7083) + chr(2571 - 2470))(chr(0b1011 + 0o152) + '\164' + chr(0b100001 + 0o105) + '\055' + chr(56))), roI3spqORKae(Lj4gcNafqrcl, roI3spqORKae(ES5oEprVxulp(b'\x06\xd4f5\xa8\xa83\x08\x05E\xfc\x9e'), chr(100) + chr(0b1100100 + 0o1) + '\x63' + '\157' + '\144' + chr(0b1100101))(chr(0b110110 + 0o77) + chr(0b110010 + 0o102) + chr(0b111 + 0o137) + chr(45) + '\070')), roI3spqORKae(Lj4gcNafqrcl, roI3spqORKae(ES5oEprVxulp(b'\x0b\xe0\\(\x8f\xacD>'), chr(100) + chr(0b1100101) + chr(0b1100011) + chr(0b1101111) + chr(100) + chr(0b1100101))(chr(0b1110101) + chr(0b1110100) + '\146' + '\x2d' + '\x38'))]:
OHMe9lml54lU = Lj4gcNafqrcl.XCtmWrNp_YK6
for _9ve2uheHd6a in roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'\x0c\xd8BI\xf7\x99|\x1f\x08m\xfa\xc3'), '\x64' + chr(9879 - 9778) + chr(0b10101 + 0o116) + chr(1384 - 1273) + '\144' + '\x65')(chr(474 - 357) + chr(10393 - 10277) + chr(0b1100110) + chr(0b11110 + 0o17) + chr(56))):
if suIjIS24Zkqw(_9ve2uheHd6a, roI3spqORKae(Lj4gcNafqrcl.handlers, roI3spqORKae(ES5oEprVxulp(b'\x1a\xdda\x1d\xb2\x86k\x15!]\xa7\xcb\x18\x88\x803\n;\xe0'), chr(0b1100100) + '\145' + '\143' + chr(3492 - 3381) + chr(0b1100100) + chr(101))('\165' + chr(0b1110100) + chr(636 - 534) + '\x2d' + '\x38'))):
if roI3spqORKae(_9ve2uheHd6a, roI3spqORKae(ES5oEprVxulp(b'\x07\xfaX\x19\xff\x83h\x1eR\x00\xa7\xfb'), '\x64' + chr(101) + chr(3912 - 3813) + chr(0b100100 + 0o113) + chr(0b101000 + 0o74) + '\145')('\165' + chr(0b1110100) + '\x66' + chr(0b101000 + 0o5) + chr(0b110001 + 0o7))) == OHMe9lml54lU:
return
ghfrO2vbANu_ = Lj4gcNafqrcl.handlers.RotatingFileHandler(cLt0SX773rLJ, maxBytes=KMbZwEAOaNhG, backupCount=P5bdflPKjPoS)
roI3spqORKae(ghfrO2vbANu_, roI3spqORKae(ES5oEprVxulp(b';\xd7a0\xa3\x99`\x1e'), chr(0b1100100) + chr(0b1100101) + chr(99) + chr(111) + chr(0b1100100) + chr(101))(chr(9503 - 9386) + chr(0b1110100) + chr(9404 - 9302) + chr(0b10111 + 0o26) + '\x38'))(OHMe9lml54lU)
roI3spqORKae(ghfrO2vbANu_, roI3spqORKae(ES5oEprVxulp(b';\xd7a:\xa9\x9dh\x13\x13@\xae\xdc'), chr(0b1010000 + 0o24) + '\145' + chr(99) + '\x6f' + chr(100) + '\x65')(chr(117) + chr(0b1010100 + 0o40) + '\x66' + chr(45) + chr(56)))(hC4zX4pOFurt)
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b')\xd6q4\xa7\x81a\x1e\x02F'), '\144' + '\145' + chr(99) + '\x6f' + chr(2507 - 2407) + chr(101))('\165' + chr(0b100010 + 0o122) + chr(0b1000100 + 0o42) + chr(776 - 731) + chr(0b10000 + 0o50)))(ghfrO2vbANu_) |
wecatch/app-turbo | turbo/session.py | Session._processor | def _processor(self):
"""Application processor to setup session for every request"""
self.store.cleanup(self._config.timeout)
self._load() | python | def _processor(self):
"""Application processor to setup session for every request"""
self.store.cleanup(self._config.timeout)
self._load() | [
"def",
"_processor",
"(",
"self",
")",
":",
"self",
".",
"store",
".",
"cleanup",
"(",
"self",
".",
"_config",
".",
"timeout",
")",
"self",
".",
"_load",
"(",
")"
] | Application processor to setup session for every request | [
"Application",
"processor",
"to",
"setup",
"session",
"for",
"every",
"request"
] | 75faf97371a9a138c53f92168d0a486636cb8a9c | https://github.com/wecatch/app-turbo/blob/75faf97371a9a138c53f92168d0a486636cb8a9c/turbo/session.py#L94-L97 | train | Application processor to setup session for every request | GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf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YU,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(0b111001 + 0o66) + '\062' + chr(0b110100), 1855 - 1847), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b100001 + 0o21) + chr(2613 - 2560) + chr(0b110110), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(1140 - 1029) + chr(0b110111), 0b1000), nzTpIcepk0o8(chr(0b11010 + 0o26) + '\157' + chr(0b110010) + chr(2335 - 2285) + '\067', 0b1000), nzTpIcepk0o8(chr(0b100010 + 0o16) + chr(111) + chr(2879 - 2825) + chr(1212 - 1164), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(428 - 377) + chr(607 - 556) + chr(0b110001 + 0o0), 58864 - 58856), nzTpIcepk0o8(chr(48) + chr(7532 - 7421) + '\067' + chr(0b11010 + 0o33), 20607 - 20599), nzTpIcepk0o8(chr(48) + chr(739 - 628) + '\062' + chr(0b1001 + 0o47) + '\x34', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\061' + chr(0b1 + 0o61) + chr(0b110101), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + '\x32' + '\x31' + '\x34', ord("\x08")), nzTpIcepk0o8(chr(0b100111 + 0o11) + chr(10360 - 10249) + chr(54) + chr(0b110 + 0o52), 8), nzTpIcepk0o8(chr(48) + '\157' + chr(0b1110 + 0o43) + '\064' + chr(0b110011), ord("\x08")), nzTpIcepk0o8(chr(0b11101 + 0o23) + '\157' + '\x34' + chr(0b11100 + 0o26), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b1110 + 0o45) + chr(53), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x32' + chr(54) + chr(0b10001 + 0o41), ord("\x08")), nzTpIcepk0o8(chr(0b10001 + 0o37) + chr(1055 - 944) + '\061' + chr(786 - 731) + chr(55), 0o10), nzTpIcepk0o8(chr(0b100000 + 0o20) + '\157' + chr(0b101 + 0o54) + '\061' + chr(0b110011), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(161 - 111) + '\064' + chr(1050 - 997), 40513 - 40505), nzTpIcepk0o8(chr(0b110000) + '\157' + '\061' + '\065' + chr(50), 0b1000), nzTpIcepk0o8(chr(0b11000 + 0o30) + chr(0b1101111) + chr(51) + chr(0b110 + 0o55) + chr(0b110100), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(0b110011) + chr(125 - 73) + chr(856 - 807), 29979 - 29971), nzTpIcepk0o8('\060' + chr(111) + chr(0b110010) + '\062' + '\x37', 8), nzTpIcepk0o8(chr(2190 - 2142) + '\x6f' + chr(51) + chr(1419 - 1365) + chr(0b101100 + 0o5), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\061' + chr(0b10111 + 0o40) + '\x33', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(4353 - 4242) + '\063' + '\x32' + chr(0b101111 + 0o5), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(0b100000 + 0o21) + '\x32', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(1044 - 993) + '\063' + chr(884 - 830), 0b1000), nzTpIcepk0o8(chr(1870 - 1822) + '\157' + '\061' + chr(52) + '\x32', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(52), 0o10), nzTpIcepk0o8('\060' + chr(7721 - 7610) + '\061' + chr(1445 - 1391) + chr(51), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110100) + '\x30', 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\062' + chr(0b110100), 8), nzTpIcepk0o8(chr(48) + chr(0b1100011 + 0o14) + chr(330 - 279) + chr(0b101111 + 0o1) + chr(0b10011 + 0o37), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(51) + chr(0b110010) + '\x31', 0b1000), nzTpIcepk0o8(chr(0b10111 + 0o31) + chr(0b1001101 + 0o42) + chr(1780 - 1731) + '\x31' + '\x37', 19358 - 19350), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(50) + chr(0b1011 + 0o54), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x31' + chr(612 - 559) + chr(0b10000 + 0o44), 0b1000), nzTpIcepk0o8(chr(1586 - 1538) + '\157' + chr(0b110011) + chr(383 - 334) + '\060', 0o10), nzTpIcepk0o8(chr(48) + chr(0b101000 + 0o107) + chr(1117 - 1064) + chr(0b110111), 0o10), nzTpIcepk0o8(chr(48) + chr(9668 - 9557) + chr(49) + chr(1223 - 1170) + '\x33', 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\065' + chr(0b110000), 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b':'), '\144' + '\x65' + chr(0b1001 + 0o132) + '\x6f' + '\144' + '\145')(chr(0b1011010 + 0o33) + chr(116) + chr(102) + chr(253 - 208) + '\070') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def V0tvS1uJpQcl(hXMPsSrOQzbh):
roI3spqORKae(hXMPsSrOQzbh.store, roI3spqORKae(ES5oEprVxulp(b'p\xf7k\xd4x\xbfs\xc9\x1b\xbe~\x19'), chr(0b1100100) + chr(101) + chr(0b100110 + 0o75) + chr(6201 - 6090) + chr(100) + chr(0b1100101))('\165' + chr(11210 - 11094) + chr(0b0 + 0o146) + '\x2d' + chr(0b10100 + 0o44)))(roI3spqORKae(hXMPsSrOQzbh._config, roI3spqORKae(ES5oEprVxulp(b'U\xedF\xd4e\x8c{\xd5&\xc1@\x11'), chr(0b1100100) + chr(0b1110 + 0o127) + chr(0b1100011) + chr(0b110101 + 0o72) + '\x64' + '\145')('\x75' + '\x74' + chr(102) + '\x2d' + chr(0b11001 + 0o37))))
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'B\xe3E\xfa|\x9bN\xc5\x14\xc8G+'), chr(0b1100011 + 0o1) + '\145' + chr(7506 - 7407) + chr(0b1101111) + chr(0b1100100) + chr(6556 - 6455))('\165' + chr(0b1110100) + chr(102) + '\x2d' + chr(0b11010 + 0o36)))() |
wecatch/app-turbo | turbo/session.py | Session._load | def _load(self):
"""Load the session from the store, by the id from cookie"""
self.session_id = self._session_object.get_session_id()
# protection against session_id tampering
if self.session_id and not self._valid_session_id(self.session_id):
self.session_id = None
if self.session_id:
d = self.store[self.session_id]
if isinstance(d, dict) and d:
self.update(d)
if not self.session_id:
self.session_id = self._session_object.generate_session_id()
if not self._data:
if self._initializer and isinstance(self._initializer, dict):
self.update(deepcopy(self._initializer))
self._session_object.set_session_id(self.session_id) | python | def _load(self):
"""Load the session from the store, by the id from cookie"""
self.session_id = self._session_object.get_session_id()
# protection against session_id tampering
if self.session_id and not self._valid_session_id(self.session_id):
self.session_id = None
if self.session_id:
d = self.store[self.session_id]
if isinstance(d, dict) and d:
self.update(d)
if not self.session_id:
self.session_id = self._session_object.generate_session_id()
if not self._data:
if self._initializer and isinstance(self._initializer, dict):
self.update(deepcopy(self._initializer))
self._session_object.set_session_id(self.session_id) | [
"def",
"_load",
"(",
"self",
")",
":",
"self",
".",
"session_id",
"=",
"self",
".",
"_session_object",
".",
"get_session_id",
"(",
")",
"# protection against session_id tampering",
"if",
"self",
".",
"session_id",
"and",
"not",
"self",
".",
"_valid_session_id",
"(",
"self",
".",
"session_id",
")",
":",
"self",
".",
"session_id",
"=",
"None",
"if",
"self",
".",
"session_id",
":",
"d",
"=",
"self",
".",
"store",
"[",
"self",
".",
"session_id",
"]",
"if",
"isinstance",
"(",
"d",
",",
"dict",
")",
"and",
"d",
":",
"self",
".",
"update",
"(",
"d",
")",
"if",
"not",
"self",
".",
"session_id",
":",
"self",
".",
"session_id",
"=",
"self",
".",
"_session_object",
".",
"generate_session_id",
"(",
")",
"if",
"not",
"self",
".",
"_data",
":",
"if",
"self",
".",
"_initializer",
"and",
"isinstance",
"(",
"self",
".",
"_initializer",
",",
"dict",
")",
":",
"self",
".",
"update",
"(",
"deepcopy",
"(",
"self",
".",
"_initializer",
")",
")",
"self",
".",
"_session_object",
".",
"set_session_id",
"(",
"self",
".",
"session_id",
")"
] | Load the session from the store, by the id from cookie | [
"Load",
"the",
"session",
"from",
"the",
"store",
"by",
"the",
"id",
"from",
"cookie"
] | 75faf97371a9a138c53f92168d0a486636cb8a9c | https://github.com/wecatch/app-turbo/blob/75faf97371a9a138c53f92168d0a486636cb8a9c/turbo/session.py#L99-L120 | train | Load the session from the store by the id from the cookie | 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,JD7LadPikp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nLg8O5zPT,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(0b11011 + 0o124) + chr(50) + chr(1713 - 1664) + '\x37', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1001100 + 0o43) + chr(50) + '\062' + '\x37', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(1395 - 1344) + chr(51) + '\061', 1508 - 1500), nzTpIcepk0o8('\060' + chr(111) + chr(0b11100 + 0o25) + chr(0b110100) + chr(2904 - 2850), 13966 - 13958), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110 + 0o54) + chr(52) + chr(0b10011 + 0o42), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(49) + chr(815 - 766) + chr(50), 0o10), nzTpIcepk0o8('\060' + '\157' + chr(0b1101 + 0o46) + '\063', 31838 - 31830), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110010) + chr(48) + chr(48), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110001 + 0o0) + chr(50 - 2) + chr(50), 0o10), nzTpIcepk0o8(chr(617 - 569) + chr(0b1000110 + 0o51) + chr(0b110010) + chr(0b110011) + '\061', 9101 - 9093), nzTpIcepk0o8(chr(0b110000) + chr(0b101100 + 0o103) + '\061' + chr(0b110 + 0o53) + chr(1894 - 1842), 0b1000), nzTpIcepk0o8(chr(0b100000 + 0o20) + chr(0b1101100 + 0o3) + chr(0b1001 + 0o51) + chr(0b10110 + 0o34) + chr(50), 0o10), nzTpIcepk0o8('\060' + '\x6f' + '\x34' + chr(138 - 88), 19864 - 19856), nzTpIcepk0o8(chr(1249 - 1201) + chr(111) + chr(49) + chr(0b101011 + 0o13) + chr(0b110011), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110110) + '\x35', 0b1000), nzTpIcepk0o8(chr(0b10101 + 0o33) + chr(111) + chr(433 - 382) + chr(0b110011) + chr(0b11110 + 0o30), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + '\061' + chr(0b110000) + '\067', 0o10), nzTpIcepk0o8('\x30' + chr(111) + '\061' + chr(0b1001 + 0o47) + chr(0b110011), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(10193 - 10082) + '\x37' + '\x33', 9151 - 9143), nzTpIcepk0o8('\x30' + chr(4936 - 4825) + '\062' + chr(53) + chr(53), ord("\x08")), nzTpIcepk0o8(chr(0b110000 + 0o0) + '\x6f' + chr(50) + chr(0b110110) + chr(1176 - 1126), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + '\062' + '\x33' + '\065', 0o10), nzTpIcepk0o8(chr(0b100110 + 0o12) + chr(111) + '\063' + chr(0b110101 + 0o1) + '\065', 0o10), nzTpIcepk0o8(chr(48) + chr(0b1011001 + 0o26) + chr(51) + chr(50) + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(0b1001 + 0o47) + chr(0b111110 + 0o61) + '\063' + chr(0b101 + 0o54) + '\x34', 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(1606 - 1553) + '\x31', 0b1000), nzTpIcepk0o8(chr(1955 - 1907) + chr(111) + '\061' + chr(194 - 140) + chr(1533 - 1483), 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(0b110010) + '\066' + chr(2232 - 2177), ord("\x08")), nzTpIcepk0o8(chr(0b10100 + 0o34) + chr(0b10001 + 0o136) + chr(175 - 125) + '\x36' + chr(0b100 + 0o63), 8), nzTpIcepk0o8(chr(0b1 + 0o57) + chr(11950 - 11839) + chr(49) + chr(52) + chr(152 - 100), 43397 - 43389), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b11 + 0o57) + '\067' + '\066', 0b1000), nzTpIcepk0o8(chr(1966 - 1918) + chr(111) + chr(0b110011) + chr(0b11010 + 0o33) + '\066', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x32' + '\x35' + chr(72 - 19), 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b1111 + 0o44) + chr(485 - 430) + '\x37', 0o10), nzTpIcepk0o8(chr(48) + chr(1275 - 1164) + '\x31' + '\x32' + chr(0b100011 + 0o20), 33649 - 33641), nzTpIcepk0o8(chr(0b110000) + chr(7770 - 7659) + chr(899 - 849) + chr(0b1111 + 0o41) + chr(0b110110), ord("\x08")), nzTpIcepk0o8(chr(0b10110 + 0o32) + '\157' + chr(0b110001) + chr(55) + '\x35', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(2208 - 2159) + chr(52) + chr(0b110010), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b111110 + 0o61) + chr(0b110001) + chr(0b1000 + 0o56) + chr(0b10100 + 0o40), 0b1000), nzTpIcepk0o8('\060' + chr(163 - 52) + '\x31' + '\061' + chr(0b1111 + 0o47), 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + chr(0b101011 + 0o104) + '\x35' + chr(0b10101 + 0o33), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xa1'), chr(0b111001 + 0o53) + chr(6224 - 6123) + '\143' + '\157' + chr(0b1001101 + 0o27) + '\145')(chr(117) + '\164' + '\146' + chr(551 - 506) + chr(0b111000)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def VMBmLBsAADwH(hXMPsSrOQzbh):
hXMPsSrOQzbh.maRrOGq9b6Um = hXMPsSrOQzbh._session_object.get_session_id()
if roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xe2\xf6\x8b\x14\xea\rj\xb9 \xaf\x19\xff'), chr(0b1100100) + chr(9797 - 9696) + chr(0b1100011) + chr(0b1000110 + 0o51) + chr(2162 - 2062) + chr(0b1100101))(chr(117) + '\x74' + '\146' + chr(45) + chr(0b111000))) and (not roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b"\xd0\xe1\xb8\n\xcc.D\xf3'\xea?\xfbM\x1dj\xb7#"), chr(6935 - 6835) + '\x65' + chr(0b1100011) + chr(0b11100 + 0o123) + chr(0b1100100) + chr(0b1100101))('\165' + chr(0b1110100) + '\146' + '\x2d' + chr(0b11011 + 0o35)))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xe2\xf6\x8b\x14\xea\rj\xb9 \xaf\x19\xff'), '\x64' + '\145' + chr(0b100000 + 0o103) + chr(0b1101101 + 0o2) + '\144' + '\x65')(chr(0b11001 + 0o134) + chr(0b1100001 + 0o23) + '\x66' + chr(45) + chr(0b111000))))):
hXMPsSrOQzbh.maRrOGq9b6Um = None
if roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xe2\xf6\x8b\x14\xea\rj\xb9 \xaf\x19\xff'), chr(100) + '\x65' + chr(99) + chr(111) + chr(8405 - 8305) + chr(6948 - 6847))('\165' + chr(11154 - 11038) + chr(0b110 + 0o140) + chr(530 - 485) + chr(0b111000))):
vPPlOXQgR3SM = hXMPsSrOQzbh.Yws2kZcdmcdB[hXMPsSrOQzbh.maRrOGq9b6Um]
if suIjIS24Zkqw(vPPlOXQgR3SM, znjnJWK64FDT) and vPPlOXQgR3SM:
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xc5\xc8\xb2T\xec\x13Y\xb1!\xfc=\xfc'), chr(0b100110 + 0o76) + chr(0b1001101 + 0o30) + '\143' + chr(111) + chr(0b1100100) + chr(101))(chr(117) + chr(0b1110100) + '\x66' + '\055' + '\x38'))(vPPlOXQgR3SM)
if not roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xe2\xf6\x8b\x14\xea\rj\xb9 \xaf\x19\xff'), chr(0b1011010 + 0o12) + chr(101) + '\143' + chr(1420 - 1309) + '\144' + chr(101))(chr(0b1010101 + 0o40) + chr(0b1001111 + 0o45) + chr(0b10 + 0o144) + '\055' + '\070')):
hXMPsSrOQzbh.maRrOGq9b6Um = hXMPsSrOQzbh._session_object.generate_session_id()
if not roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xc9\xf5\xec>\xeb\x13x\xd77\xa9\x03\xa7'), chr(100) + chr(0b111100 + 0o51) + '\x63' + chr(0b1101111) + '\x64' + '\145')(chr(3570 - 3453) + chr(0b10100 + 0o140) + chr(102) + chr(0b100101 + 0o10) + '\070')):
if roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xd0\xfe\xb7\x0f\xd1#z\xec+\xe3)\xe0'), '\x64' + chr(101) + chr(0b1100011) + chr(111) + chr(0b1100100) + chr(0b1100101))(chr(0b1110101) + chr(9606 - 9490) + chr(2909 - 2807) + '\055' + '\070')) and suIjIS24Zkqw(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xd0\xfe\xb7\x0f\xd1#z\xec+\xe3)\xe0'), chr(0b101111 + 0o65) + chr(0b1000010 + 0o43) + '\x63' + '\157' + chr(100) + chr(0b1100101))(chr(117) + chr(0b1001101 + 0o47) + chr(0b1101 + 0o131) + '\x2d' + chr(56))), znjnJWK64FDT):
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xc5\xc8\xb2T\xec\x13Y\xb1!\xfc=\xfc'), chr(0b1100000 + 0o4) + chr(101) + chr(0b100110 + 0o75) + chr(111) + chr(100) + chr(2385 - 2284))(chr(2792 - 2675) + '\x74' + chr(0b1100 + 0o132) + '\x2d' + chr(1634 - 1578)))(Ysjl1k89Gm2v(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xd0\xfe\xb7\x0f\xd1#z\xec+\xe3)\xe0'), chr(0b1100100) + chr(8078 - 7977) + chr(0b101100 + 0o67) + chr(0b1101111) + chr(0b1100100) + chr(0b1011 + 0o132))('\x75' + chr(116) + chr(0b10011 + 0o123) + '\x2d' + chr(56)))))
roI3spqORKae(hXMPsSrOQzbh._session_object, roI3spqORKae(ES5oEprVxulp(b'\xfc\xf2\xad9\xd6/h\xf3+\xf6"\xcdK\x17'), chr(0b1000100 + 0o40) + chr(7853 - 7752) + chr(0b1100011) + chr(0b1101111) + '\144' + chr(0b1100101))('\x75' + chr(0b111110 + 0o66) + chr(102) + chr(0b100000 + 0o15) + chr(0b101000 + 0o20)))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xe2\xf6\x8b\x14\xea\rj\xb9 \xaf\x19\xff'), chr(100) + '\x65' + chr(0b10100 + 0o117) + chr(5336 - 5225) + '\x64' + chr(0b1011111 + 0o6))(chr(0b1110101) + chr(116) + '\146' + '\x2d' + '\070'))) |
wecatch/app-turbo | turbo/session.py | SessionObject.generate_session_id | def generate_session_id(self):
"""Generate a random id for session"""
secret_key = self._config.secret_key
while True:
rand = os.urandom(16)
now = time.time()
session_id = sha1(utf8("%s%s%s%s" % (
rand, now, self.handler.request.remote_ip, secret_key)))
session_id = session_id.hexdigest()
if session_id not in self.store:
break
return session_id | python | def generate_session_id(self):
"""Generate a random id for session"""
secret_key = self._config.secret_key
while True:
rand = os.urandom(16)
now = time.time()
session_id = sha1(utf8("%s%s%s%s" % (
rand, now, self.handler.request.remote_ip, secret_key)))
session_id = session_id.hexdigest()
if session_id not in self.store:
break
return session_id | [
"def",
"generate_session_id",
"(",
"self",
")",
":",
"secret_key",
"=",
"self",
".",
"_config",
".",
"secret_key",
"while",
"True",
":",
"rand",
"=",
"os",
".",
"urandom",
"(",
"16",
")",
"now",
"=",
"time",
".",
"time",
"(",
")",
"session_id",
"=",
"sha1",
"(",
"utf8",
"(",
"\"%s%s%s%s\"",
"%",
"(",
"rand",
",",
"now",
",",
"self",
".",
"handler",
".",
"request",
".",
"remote_ip",
",",
"secret_key",
")",
")",
")",
"session_id",
"=",
"session_id",
".",
"hexdigest",
"(",
")",
"if",
"session_id",
"not",
"in",
"self",
".",
"store",
":",
"break",
"return",
"session_id"
] | Generate a random id for session | [
"Generate",
"a",
"random",
"id",
"for",
"session"
] | 75faf97371a9a138c53f92168d0a486636cb8a9c | https://github.com/wecatch/app-turbo/blob/75faf97371a9a138c53f92168d0a486636cb8a9c/turbo/session.py#L159-L171 | train | Generate a random id for session | 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,Kqv3Zaj1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KG3foQ_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(417 - 369) + chr(11189 - 11078) + chr(51) + chr(0b110100) + chr(0b100100 + 0o17), ord("\x08")), nzTpIcepk0o8(chr(0b101001 + 0o7) + chr(0b10001 + 0o136) + chr(0b10111 + 0o33) + chr(52) + chr(0b11010 + 0o30), 0o10), nzTpIcepk0o8(chr(0b101111 + 0o1) + chr(0b1101111) + '\x30', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(50) + chr(0b101000 + 0o16) + chr(0b110110), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\062' + chr(52) + chr(0b101100 + 0o12), 0o10), nzTpIcepk0o8(chr(1464 - 1416) + '\157' + chr(0b100000 + 0o22) + chr(55) + chr(0b111 + 0o55), 32142 - 32134), nzTpIcepk0o8(chr(0b1001 + 0o47) + chr(0b1101111) + '\066' + chr(1185 - 1137), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(2149 - 2038) + chr(1606 - 1557) + chr(1580 - 1530) + '\062', 42591 - 42583), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(2249 - 2194) + '\x30', 40579 - 40571), nzTpIcepk0o8(chr(0b10010 + 0o36) + chr(9402 - 9291) + '\062' + '\060' + chr(0b110100), 31293 - 31285), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(51) + '\065' + chr(53), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + '\x33' + chr(0b100011 + 0o23) + chr(1502 - 1453), ord("\x08")), nzTpIcepk0o8(chr(0b10111 + 0o31) + chr(111) + chr(2223 - 2173) + '\061' + chr(182 - 129), 57730 - 57722), nzTpIcepk0o8(chr(0b110000) + chr(0b110001 + 0o76) + chr(1892 - 1843) + chr(0b11100 + 0o31) + chr(0b1011 + 0o50), ord("\x08")), nzTpIcepk0o8(chr(1806 - 1758) + '\x6f' + '\063' + chr(53) + chr(0b10 + 0o63), 8), nzTpIcepk0o8('\x30' + '\x6f' + '\061' + '\063' + chr(0b110010 + 0o0), 0o10), nzTpIcepk0o8('\060' + chr(1971 - 1860) + chr(0b110100) + chr(0b110101), 34344 - 34336), nzTpIcepk0o8(chr(2128 - 2080) + '\x6f' + '\062' + chr(48) + '\066', 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(865 - 814) + chr(52) + chr(568 - 516), 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(0b101011 + 0o11) + chr(0b110110), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110011) + chr(48) + chr(0b11111 + 0o21), 0o10), nzTpIcepk0o8(chr(48) + '\157' + '\061' + '\x30' + chr(0b110110), 0o10), nzTpIcepk0o8('\060' + chr(0b101110 + 0o101) + '\x31' + '\067', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(50) + chr(0b110100), 0o10), nzTpIcepk0o8(chr(48) + '\157' + '\061' + '\x36' + chr(53), 40004 - 39996), nzTpIcepk0o8('\060' + chr(0b1101111) + '\061' + '\064' + chr(1580 - 1531), 6606 - 6598), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x32' + chr(0b110 + 0o55), 46616 - 46608), nzTpIcepk0o8('\x30' + '\157' + chr(0b110001) + chr(50) + chr(52), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + '\061' + '\063' + chr(0b1100 + 0o44), 16466 - 16458), nzTpIcepk0o8(chr(1050 - 1002) + chr(0b1101111) + chr(0b110011) + chr(1550 - 1502) + chr(1922 - 1867), 0o10), nzTpIcepk0o8(chr(127 - 79) + chr(111) + chr(404 - 352) + chr(48), 0b1000), nzTpIcepk0o8(chr(0b11011 + 0o25) + chr(111) + chr(0b101 + 0o54) + chr(0b110000) + chr(0b110011), 0b1000), nzTpIcepk0o8('\x30' + chr(3317 - 3206) + '\x32' + '\062' + chr(54), ord("\x08")), nzTpIcepk0o8(chr(1693 - 1645) + '\x6f' + chr(0b110011) + '\061' + chr(1878 - 1829), 27864 - 27856), nzTpIcepk0o8('\060' + chr(9229 - 9118) + '\061' + chr(0b1101 + 0o47), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110110) + chr(0b110001), 0o10), nzTpIcepk0o8(chr(2004 - 1956) + chr(111) + chr(50) + chr(580 - 532) + chr(538 - 483), 31454 - 31446), nzTpIcepk0o8(chr(48) + '\157' + chr(0b101011 + 0o6) + chr(0b1010 + 0o55), 8), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\066' + chr(2804 - 2749), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(8913 - 8802) + '\062' + '\x32' + chr(0b110011), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(10985 - 10874) + chr(0b110101) + '\060', 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xcd'), '\144' + '\x65' + '\x63' + chr(111) + '\x64' + chr(433 - 332))(chr(117) + chr(116) + chr(0b1100110) + chr(0b11100 + 0o21) + chr(0b101 + 0o63)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def IKl3TGFkH2CK(hXMPsSrOQzbh):
BhCBwiHGAgo0 = hXMPsSrOQzbh._config.BhCBwiHGAgo0
while nzTpIcepk0o8(chr(0b1110 + 0o42) + chr(0b110101 + 0o72) + chr(0b10110 + 0o33), ord("\x08")):
DXLxwGLPPh73 = aHUqKstZLeS6.urandom(nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110010) + chr(2159 - 2111), ord("\x08")))
HofpCdf61ts4 = oprIvDIRQyCb.oprIvDIRQyCb()
maRrOGq9b6Um = PV_6_udOPlJH(tKAnMneX090U(roI3spqORKae(ES5oEprVxulp(b'\xc6\xd1%\xc5\x83\xcf\x15!'), chr(100) + chr(7562 - 7461) + chr(0b1100010 + 0o1) + chr(0b1101111) + chr(100) + chr(0b1100101))('\x75' + chr(0b11110 + 0o126) + chr(0b1100110) + '\x2d' + chr(0b100111 + 0o21)) % (DXLxwGLPPh73, HofpCdf61ts4, hXMPsSrOQzbh.handler.request.remote_ip, BhCBwiHGAgo0)))
maRrOGq9b6Um = maRrOGq9b6Um.QJ_O92NaVG5k()
if maRrOGq9b6Um not in roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xba\xd5s\x84\xcd\xe6S6U\xe7\x89\xb3'), chr(0b1100100) + chr(0b1100101) + chr(284 - 185) + '\157' + '\x64' + chr(4201 - 4100))(chr(0b1110101) + chr(116) + chr(3481 - 3379) + '\055' + chr(56))):
break
return maRrOGq9b6Um |
wecatch/app-turbo | turbo/session.py | Store.encode | def encode(self, session_data):
"""encodes session dict as a string"""
pickled = pickle.dumps(session_data)
return to_basestring(encodebytes(pickled)) | python | def encode(self, session_data):
"""encodes session dict as a string"""
pickled = pickle.dumps(session_data)
return to_basestring(encodebytes(pickled)) | [
"def",
"encode",
"(",
"self",
",",
"session_data",
")",
":",
"pickled",
"=",
"pickle",
".",
"dumps",
"(",
"session_data",
")",
"return",
"to_basestring",
"(",
"encodebytes",
"(",
"pickled",
")",
")"
] | encodes session dict as a string | [
"encodes",
"session",
"dict",
"as",
"a",
"string"
] | 75faf97371a9a138c53f92168d0a486636cb8a9c | https://github.com/wecatch/app-turbo/blob/75faf97371a9a138c53f92168d0a486636cb8a9c/turbo/session.py#L231-L234 | train | encodes session dict as a string | 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,K3alqetBMg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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(0b1110 + 0o45) + chr(554 - 504) + chr(2656 - 2601), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(993 - 942) + '\x33' + chr(271 - 217), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(2308 - 2258) + chr(0b100 + 0o56) + '\063', ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110101) + '\061', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110111), 0b1000), nzTpIcepk0o8(chr(571 - 523) + chr(2934 - 2823) + chr(0b100010 + 0o20) + chr(0b100101 + 0o15) + chr(0b110001 + 0o0), 0b1000), nzTpIcepk0o8('\060' + chr(0b100000 + 0o117) + '\x33' + chr(0b110010) + chr(52), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b111 + 0o150) + chr(0b110111) + chr(262 - 209), 50599 - 50591), nzTpIcepk0o8(chr(962 - 914) + chr(111) + '\x32' + chr(922 - 874) + chr(52), 1115 - 1107), nzTpIcepk0o8(chr(0b110000) + chr(0b101111 + 0o100) + chr(0b110010) + chr(303 - 255) + chr(54), 0b1000), nzTpIcepk0o8(chr(1910 - 1862) + '\157' + chr(0b110111) + chr(1016 - 967), ord("\x08")), nzTpIcepk0o8(chr(2018 - 1970) + chr(111) + chr(0b110010) + chr(55) + chr(0b10110 + 0o33), 0o10), nzTpIcepk0o8(chr(48) + chr(0b11011 + 0o124) + chr(0b101 + 0o55) + chr(0b11111 + 0o27) + '\x30', 0b1000), nzTpIcepk0o8(chr(0b1110 + 0o42) + '\157' + '\x33' + chr(0b101100 + 0o6) + chr(1590 - 1538), 8), nzTpIcepk0o8(chr(186 - 138) + '\157' + chr(50) + chr(312 - 258) + chr(0b110110), 5375 - 5367), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b10100 + 0o37) + '\067' + chr(0b110111), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b100001 + 0o116) + '\063' + chr(442 - 392) + chr(941 - 892), 64602 - 64594), nzTpIcepk0o8(chr(216 - 168) + '\157' + chr(0b1111 + 0o42) + chr(49) + chr(1030 - 978), 0o10), nzTpIcepk0o8('\060' + chr(0b10110 + 0o131) + chr(49) + chr(0b11111 + 0o26) + chr(1163 - 1110), 39259 - 39251), nzTpIcepk0o8('\x30' + chr(10026 - 9915) + '\x36' + '\x32', 28000 - 27992), nzTpIcepk0o8(chr(0b110000) + chr(3186 - 3075) + chr(0b100000 + 0o23) + chr(887 - 835) + '\067', 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(51) + chr(0b10010 + 0o43) + chr(55), 0o10), nzTpIcepk0o8(chr(171 - 123) + chr(0b1101111) + chr(49) + chr(55) + chr(50), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110011) + '\x33' + '\061', 0b1000), nzTpIcepk0o8(chr(2011 - 1963) + chr(8221 - 8110) + chr(51) + '\062' + '\065', 0b1000), nzTpIcepk0o8('\060' + '\x6f' + '\x31' + chr(0b110101) + chr(52), 32460 - 32452), nzTpIcepk0o8('\060' + chr(0b1101111) + '\062' + '\064' + chr(54), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(1577 - 1527) + chr(0b11100 + 0o27) + chr(51), ord("\x08")), nzTpIcepk0o8(chr(467 - 419) + chr(111) + chr(49) + chr(0b101100 + 0o10) + chr(0b11001 + 0o30), 57034 - 57026), nzTpIcepk0o8(chr(0b11100 + 0o24) + chr(2524 - 2413) + '\062' + chr(53) + '\x30', 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + '\061' + chr(53) + chr(48), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(3605 - 3494) + '\063' + '\065' + chr(0b110110), 0b1000), nzTpIcepk0o8('\x30' + chr(1915 - 1804) + chr(2127 - 2078) + chr(1885 - 1832) + '\x30', 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110010) + chr(1696 - 1641) + '\x32', 39505 - 39497), nzTpIcepk0o8(chr(0b101100 + 0o4) + '\157' + chr(0b110011) + chr(0b110010) + chr(1729 - 1681), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(49) + chr(53) + chr(2671 - 2617), 41388 - 41380), nzTpIcepk0o8('\060' + chr(111) + chr(50) + chr(1316 - 1264) + chr(914 - 859), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1010 + 0o145) + '\063' + chr(0b110000) + chr(1105 - 1050), 0b1000), nzTpIcepk0o8(chr(0b101101 + 0o3) + chr(0b10001 + 0o136) + chr(1461 - 1412) + '\x36' + chr(1427 - 1375), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(0b11100 + 0o25) + chr(50), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x35' + chr(0b110000), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xf9'), '\144' + chr(0b1100101) + chr(0b1011100 + 0o7) + chr(4085 - 3974) + chr(0b1100100) + chr(0b1100101))(chr(0b1110101) + '\x74' + '\146' + chr(0b101000 + 0o5) + chr(0b101010 + 0o16)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def YqIaRFfeo4Ha(hXMPsSrOQzbh, cTYlTY1xXVbC):
b2tcrKFqv0yN = crHBwl6R77Za.Zjglmm8uenkC(cTYlTY1xXVbC)
return Sn9r9VvDmB0O(TISpVqOvnnIt(b2tcrKFqv0yN)) |
wecatch/app-turbo | turbo/session.py | Store.decode | def decode(self, session_data):
"""decodes the data to get back the session dict """
pickled = decodebytes(utf8(session_data))
return pickle.loads(pickled) | python | def decode(self, session_data):
"""decodes the data to get back the session dict """
pickled = decodebytes(utf8(session_data))
return pickle.loads(pickled) | [
"def",
"decode",
"(",
"self",
",",
"session_data",
")",
":",
"pickled",
"=",
"decodebytes",
"(",
"utf8",
"(",
"session_data",
")",
")",
"return",
"pickle",
".",
"loads",
"(",
"pickled",
")"
] | decodes the data to get back the session dict | [
"decodes",
"the",
"data",
"to",
"get",
"back",
"the",
"session",
"dict"
] | 75faf97371a9a138c53f92168d0a486636cb8a9c | https://github.com/wecatch/app-turbo/blob/75faf97371a9a138c53f92168d0a486636cb8a9c/turbo/session.py#L236-L239 | train | decodes the data to get back the session dict | 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,Y1otPTw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ygxgFas5X,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(0b1010 + 0o46) + '\x6f' + chr(0b110010) + chr(0b101101 + 0o10) + chr(1333 - 1282), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b110101 + 0o72) + chr(2093 - 2039) + '\065', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(4196 - 4085) + '\x31' + chr(0b1010 + 0o46), 47689 - 47681), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110011) + chr(0b110111) + chr(940 - 885), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110010) + chr(1869 - 1818), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + '\064' + chr(52), ord("\x08")), nzTpIcepk0o8(chr(0b101111 + 0o1) + chr(2789 - 2678) + '\x34' + chr(49), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1001 + 0o146) + '\x36' + chr(0b110000), 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(0b110011) + chr(923 - 869) + chr(1274 - 1222), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1000101 + 0o52) + '\063' + chr(0b1111 + 0o42) + '\063', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b11010 + 0o31) + chr(49) + '\x30', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110010) + chr(631 - 581) + '\067', ord("\x08")), nzTpIcepk0o8(chr(394 - 346) + chr(0b111110 + 0o61) + chr(49) + chr(0b110111) + '\060', ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(0b110011) + '\x33' + chr(2116 - 2062), 0o10), nzTpIcepk0o8(chr(1039 - 991) + chr(0b111011 + 0o64) + chr(638 - 588) + '\066' + chr(0b110111), 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(0b11 + 0o57) + '\x37' + chr(50), 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(49) + chr(805 - 752) + chr(52), 0o10), nzTpIcepk0o8('\060' + chr(0b1001110 + 0o41) + chr(0b11010 + 0o30) + '\x32' + chr(709 - 659), ord("\x08")), nzTpIcepk0o8(chr(1229 - 1181) + '\157' + '\061' + '\x32' + chr(55), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(1152 - 1102) + chr(1395 - 1343) + chr(0b10111 + 0o37), 0b1000), nzTpIcepk0o8(chr(2118 - 2070) + chr(0b11111 + 0o120) + '\062' + '\x32' + chr(0b101111 + 0o4), 0b1000), nzTpIcepk0o8(chr(0b101000 + 0o10) + chr(5621 - 5510) + chr(0b10010 + 0o37) + chr(0b10110 + 0o34) + chr(51), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(0b101111 + 0o4) + chr(0b110100) + chr(0b110110), 33389 - 33381), nzTpIcepk0o8(chr(0b110000) + chr(7299 - 7188) + chr(0b110001) + chr(2442 - 2390) + '\x36', 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(0b10000 + 0o41) + '\067' + chr(53), 42251 - 42243), nzTpIcepk0o8('\060' + chr(111) + '\x32' + chr(0b110000) + chr(2835 - 2780), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(50) + '\060' + chr(289 - 239), 29792 - 29784), nzTpIcepk0o8(chr(0b110000) + chr(10498 - 10387) + chr(49) + chr(54) + chr(586 - 532), 65321 - 65313), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b1011 + 0o51) + chr(0b1111 + 0o45), 8), nzTpIcepk0o8(chr(181 - 133) + chr(0b1101111) + '\062' + chr(0b11000 + 0o36) + chr(0b110101), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(2784 - 2731) + chr(0b1011 + 0o47), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(958 - 847) + chr(0b1 + 0o62) + chr(922 - 873) + chr(0b110111), 8390 - 8382), nzTpIcepk0o8(chr(1411 - 1363) + '\x6f' + chr(308 - 257) + chr(52) + chr(776 - 724), 58566 - 58558), nzTpIcepk0o8('\x30' + '\x6f' + '\066' + chr(0b110100), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(0b110100 + 0o3) + chr(1027 - 976), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b101110 + 0o3) + chr(0b110110) + chr(0b1101 + 0o45), 0o10), nzTpIcepk0o8('\060' + '\157' + chr(0b110010) + chr(0b10111 + 0o40) + '\067', ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(2123 - 2073) + chr(0b110011), 8), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110001 + 0o0) + '\x32' + '\x37', 8), nzTpIcepk0o8('\060' + '\x6f' + chr(0b100000 + 0o23) + chr(0b1001 + 0o52) + chr(500 - 446), 8)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b10 + 0o56) + chr(11254 - 11143) + '\065' + chr(1058 - 1010), 8892 - 8884)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x85'), chr(3419 - 3319) + chr(101) + '\x63' + '\x6f' + '\144' + '\145')(chr(0b10 + 0o163) + chr(0b1100111 + 0o15) + chr(9977 - 9875) + '\055' + '\x38') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def lfbFsdWlT3MB(hXMPsSrOQzbh, cTYlTY1xXVbC):
b2tcrKFqv0yN = sQUyVj1cI7Nf(tKAnMneX090U(cTYlTY1xXVbC))
return roI3spqORKae(crHBwl6R77Za, roI3spqORKae(ES5oEprVxulp(b'\xe4\\i\x8fRi\x15R\xb9\xfb\x8d\xf6'), chr(100) + chr(0b11001 + 0o114) + chr(0b10011 + 0o120) + chr(0b1101111) + chr(0b1100100) + '\x65')(chr(0b1110101) + '\x74' + '\x66' + chr(0b101101) + '\x38'))(b2tcrKFqv0yN) |
sloria/flask-konch | flask_konch/cli.py | cli | def cli():
"""An improved shell command, based on konch."""
from flask.globals import _app_ctx_stack
app = _app_ctx_stack.top.app
options = {key: app.config.get(key, DEFAULTS[key]) for key in DEFAULTS.keys()}
base_context = {"app": app}
if options["KONCH_FLASK_IMPORTS"]:
base_context.update(get_flask_imports())
context = dict(base_context)
if options["KONCH_FLASK_SHELL_CONTEXT"]:
flask_context = app.make_shell_context()
context.update(flask_context)
context.update(options["KONCH_CONTEXT"])
def context_formatter(ctx):
formatted_base = ", ".join(sorted(base_context.keys()))
ret = "\n{FLASK}\n{base_context}\n".format(
FLASK=click.style("Flask:", bold=True), base_context=formatted_base
)
if options["KONCH_FLASK_SHELL_CONTEXT"]:
variables = ", ".join(sorted(flask_context.keys()))
ret += "\n{ADDITIONAL}\n{variables}\n".format(
ADDITIONAL=click.style(
"Flask shell context (see shell_context_processor()):", bold=True
),
variables=variables,
)
if options["KONCH_CONTEXT"]:
variables = ", ".join(sorted(options["KONCH_CONTEXT"].keys()))
ret += "\n{ADDITIONAL}\n{variables}".format(
ADDITIONAL=click.style(
"Additional variables (see KONCH_CONTEXT):", bold=True
),
variables=variables,
)
return ret
context_format = options["KONCH_CONTEXT_FORMAT"] or context_formatter
konch.start(
context=context,
shell=options["KONCH_SHELL"],
banner=options["KONCH_BANNER"],
prompt=options["KONCH_PROMPT"],
output=options["KONCH_OUTPUT"],
ptpy_vi_mode=options["KONCH_PTPY_VI_MODE"],
context_format=context_format,
ipy_extensions=options["KONCH_IPY_EXTENSIONS"],
ipy_autoreload=options["KONCH_IPY_AUTORELOAD"],
ipy_colors=options["KONCH_IPY_COLORS"],
ipy_highlighting_style=options["KONCH_IPY_HIGHLIGHTING_STYLE"],
) | python | def cli():
"""An improved shell command, based on konch."""
from flask.globals import _app_ctx_stack
app = _app_ctx_stack.top.app
options = {key: app.config.get(key, DEFAULTS[key]) for key in DEFAULTS.keys()}
base_context = {"app": app}
if options["KONCH_FLASK_IMPORTS"]:
base_context.update(get_flask_imports())
context = dict(base_context)
if options["KONCH_FLASK_SHELL_CONTEXT"]:
flask_context = app.make_shell_context()
context.update(flask_context)
context.update(options["KONCH_CONTEXT"])
def context_formatter(ctx):
formatted_base = ", ".join(sorted(base_context.keys()))
ret = "\n{FLASK}\n{base_context}\n".format(
FLASK=click.style("Flask:", bold=True), base_context=formatted_base
)
if options["KONCH_FLASK_SHELL_CONTEXT"]:
variables = ", ".join(sorted(flask_context.keys()))
ret += "\n{ADDITIONAL}\n{variables}\n".format(
ADDITIONAL=click.style(
"Flask shell context (see shell_context_processor()):", bold=True
),
variables=variables,
)
if options["KONCH_CONTEXT"]:
variables = ", ".join(sorted(options["KONCH_CONTEXT"].keys()))
ret += "\n{ADDITIONAL}\n{variables}".format(
ADDITIONAL=click.style(
"Additional variables (see KONCH_CONTEXT):", bold=True
),
variables=variables,
)
return ret
context_format = options["KONCH_CONTEXT_FORMAT"] or context_formatter
konch.start(
context=context,
shell=options["KONCH_SHELL"],
banner=options["KONCH_BANNER"],
prompt=options["KONCH_PROMPT"],
output=options["KONCH_OUTPUT"],
ptpy_vi_mode=options["KONCH_PTPY_VI_MODE"],
context_format=context_format,
ipy_extensions=options["KONCH_IPY_EXTENSIONS"],
ipy_autoreload=options["KONCH_IPY_AUTORELOAD"],
ipy_colors=options["KONCH_IPY_COLORS"],
ipy_highlighting_style=options["KONCH_IPY_HIGHLIGHTING_STYLE"],
) | [
"def",
"cli",
"(",
")",
":",
"from",
"flask",
".",
"globals",
"import",
"_app_ctx_stack",
"app",
"=",
"_app_ctx_stack",
".",
"top",
".",
"app",
"options",
"=",
"{",
"key",
":",
"app",
".",
"config",
".",
"get",
"(",
"key",
",",
"DEFAULTS",
"[",
"key",
"]",
")",
"for",
"key",
"in",
"DEFAULTS",
".",
"keys",
"(",
")",
"}",
"base_context",
"=",
"{",
"\"app\"",
":",
"app",
"}",
"if",
"options",
"[",
"\"KONCH_FLASK_IMPORTS\"",
"]",
":",
"base_context",
".",
"update",
"(",
"get_flask_imports",
"(",
")",
")",
"context",
"=",
"dict",
"(",
"base_context",
")",
"if",
"options",
"[",
"\"KONCH_FLASK_SHELL_CONTEXT\"",
"]",
":",
"flask_context",
"=",
"app",
".",
"make_shell_context",
"(",
")",
"context",
".",
"update",
"(",
"flask_context",
")",
"context",
".",
"update",
"(",
"options",
"[",
"\"KONCH_CONTEXT\"",
"]",
")",
"def",
"context_formatter",
"(",
"ctx",
")",
":",
"formatted_base",
"=",
"\", \"",
".",
"join",
"(",
"sorted",
"(",
"base_context",
".",
"keys",
"(",
")",
")",
")",
"ret",
"=",
"\"\\n{FLASK}\\n{base_context}\\n\"",
".",
"format",
"(",
"FLASK",
"=",
"click",
".",
"style",
"(",
"\"Flask:\"",
",",
"bold",
"=",
"True",
")",
",",
"base_context",
"=",
"formatted_base",
")",
"if",
"options",
"[",
"\"KONCH_FLASK_SHELL_CONTEXT\"",
"]",
":",
"variables",
"=",
"\", \"",
".",
"join",
"(",
"sorted",
"(",
"flask_context",
".",
"keys",
"(",
")",
")",
")",
"ret",
"+=",
"\"\\n{ADDITIONAL}\\n{variables}\\n\"",
".",
"format",
"(",
"ADDITIONAL",
"=",
"click",
".",
"style",
"(",
"\"Flask shell context (see shell_context_processor()):\"",
",",
"bold",
"=",
"True",
")",
",",
"variables",
"=",
"variables",
",",
")",
"if",
"options",
"[",
"\"KONCH_CONTEXT\"",
"]",
":",
"variables",
"=",
"\", \"",
".",
"join",
"(",
"sorted",
"(",
"options",
"[",
"\"KONCH_CONTEXT\"",
"]",
".",
"keys",
"(",
")",
")",
")",
"ret",
"+=",
"\"\\n{ADDITIONAL}\\n{variables}\"",
".",
"format",
"(",
"ADDITIONAL",
"=",
"click",
".",
"style",
"(",
"\"Additional variables (see KONCH_CONTEXT):\"",
",",
"bold",
"=",
"True",
")",
",",
"variables",
"=",
"variables",
",",
")",
"return",
"ret",
"context_format",
"=",
"options",
"[",
"\"KONCH_CONTEXT_FORMAT\"",
"]",
"or",
"context_formatter",
"konch",
".",
"start",
"(",
"context",
"=",
"context",
",",
"shell",
"=",
"options",
"[",
"\"KONCH_SHELL\"",
"]",
",",
"banner",
"=",
"options",
"[",
"\"KONCH_BANNER\"",
"]",
",",
"prompt",
"=",
"options",
"[",
"\"KONCH_PROMPT\"",
"]",
",",
"output",
"=",
"options",
"[",
"\"KONCH_OUTPUT\"",
"]",
",",
"ptpy_vi_mode",
"=",
"options",
"[",
"\"KONCH_PTPY_VI_MODE\"",
"]",
",",
"context_format",
"=",
"context_format",
",",
"ipy_extensions",
"=",
"options",
"[",
"\"KONCH_IPY_EXTENSIONS\"",
"]",
",",
"ipy_autoreload",
"=",
"options",
"[",
"\"KONCH_IPY_AUTORELOAD\"",
"]",
",",
"ipy_colors",
"=",
"options",
"[",
"\"KONCH_IPY_COLORS\"",
"]",
",",
"ipy_highlighting_style",
"=",
"options",
"[",
"\"KONCH_IPY_HIGHLIGHTING_STYLE\"",
"]",
",",
")"
] | An improved shell command, based on konch. | [
"An",
"improved",
"shell",
"command",
"based",
"on",
"konch",
"."
] | c1829220bcdb3d0a9b41b2016266bee9940cc5e3 | https://github.com/sloria/flask-konch/blob/c1829220bcdb3d0a9b41b2016266bee9940cc5e3/flask_konch/cli.py#L35-L89 | train | An improved shell command based on konch. | GiP5xwVCF98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UdwyfT9sfj2=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(0b1001000 + 0o47) + chr(0b110011) + '\064' + chr(54), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b10001 + 0o136) + chr(0b100011 + 0o24) + chr(52), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b10011 + 0o134) + chr(53) + '\x30', 0b1000), nzTpIcepk0o8('\x30' + chr(9800 - 9689) + chr(54) + '\x37', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1000011 + 0o54) + chr(0b10111 + 0o36) + chr(0b110101), 0b1000), nzTpIcepk0o8('\x30' + chr(0b100101 + 0o112) + chr(49) + chr(616 - 564) + chr(0b101101 + 0o7), ord("\x08")), nzTpIcepk0o8(chr(0b0 + 0o60) + chr(0b1101111) + chr(54) + chr(0b110010), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(2839 - 2784) + '\066', 0o10), nzTpIcepk0o8(chr(316 - 268) + chr(5680 - 5569) + chr(0b110111) + chr(0b101000 + 0o15), 0b1000), nzTpIcepk0o8(chr(0b11000 + 0o30) + '\157' + chr(0b110 + 0o53) + chr(0b110101) + chr(48), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b10111 + 0o34) + chr(2214 - 2166) + chr(422 - 370), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(6993 - 6882) + '\x32' + chr(2284 - 2236) + '\065', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b101110 + 0o101) + chr(0b1101 + 0o44) + chr(1773 - 1724) + chr(0b110011), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\067' + chr(0b110001), 0o10), nzTpIcepk0o8('\060' + chr(0b101001 + 0o106) + chr(0b110010) + chr(49), ord("\x08")), nzTpIcepk0o8(chr(0b1111 + 0o41) + chr(111) + chr(49) + '\065' + '\x31', 0o10), nzTpIcepk0o8(chr(1732 - 1684) + '\x6f' + chr(51) + '\064' + chr(0b110001), 0o10), nzTpIcepk0o8('\060' + chr(0b100001 + 0o116) + chr(706 - 656) + chr(2335 - 2283) + '\060', 0b1000), nzTpIcepk0o8('\x30' + chr(5460 - 5349) + chr(0b101010 + 0o7) + chr(0b101001 + 0o10) + '\064', 0b1000), nzTpIcepk0o8('\x30' + '\157' + '\063' + chr(0b1010 + 0o51) + '\061', ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + '\x33' + chr(0b11111 + 0o24), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1100110 + 0o11) + '\061' + chr(0b101011 + 0o10) + chr(52), 0b1000), nzTpIcepk0o8('\060' + chr(2794 - 2683) + chr(51) + chr(1752 - 1704) + chr(0b101110 + 0o2), ord("\x08")), nzTpIcepk0o8(chr(1349 - 1301) + '\157' + chr(764 - 709) + '\x35', 8), nzTpIcepk0o8('\x30' + '\157' + chr(0b110110) + chr(48), ord("\x08")), nzTpIcepk0o8(chr(2145 - 2097) + chr(0b1101111) + '\x34' + chr(0b110010), 0b1000), nzTpIcepk0o8(chr(673 - 625) + '\x6f' + chr(0b110010) + '\065' + chr(51), 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110011) + '\x31', 0b1000), nzTpIcepk0o8(chr(176 - 128) + chr(111) + '\062' + '\x31' + chr(53), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b11100 + 0o30) + chr(2508 - 2456), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(2468 - 2357) + chr(0b11000 + 0o31) + chr(0b100101 + 0o15), ord("\x08")), nzTpIcepk0o8(chr(0b101000 + 0o10) + chr(5353 - 5242) + chr(0b1001 + 0o54) + chr(2767 - 2713), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + '\063' + chr(55) + chr(0b10001 + 0o37), 21692 - 21684), nzTpIcepk0o8('\x30' + chr(0b111010 + 0o65) + '\x31' + '\x37' + chr(0b110110), 0b1000), nzTpIcepk0o8('\x30' + chr(1446 - 1335) + chr(0b10111 + 0o31), 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(0b1 + 0o61) + chr(0b110111) + chr(0b110011), 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(0b110010) + chr(1306 - 1255) + chr(0b11111 + 0o27), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(3402 - 3291) + '\x31' + chr(0b110101) + chr(764 - 713), ord("\x08")), nzTpIcepk0o8(chr(0b11001 + 0o27) + chr(0b1101111) + chr(50) + chr(0b101101 + 0o4) + '\x36', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x33' + chr(55) + '\x37', 64764 - 64756)][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + chr(7166 - 7055) + '\065' + '\x30', 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xc8'), '\x64' + chr(101) + chr(0b1100011) + chr(0b101 + 0o152) + chr(3828 - 3728) + chr(0b1100101))(chr(117) + chr(0b1110100) + chr(102) + '\x2d' + '\070') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def YSLK6gvdfs4x():
(fT7Ygk5WJNMH,) = (roI3spqORKae(roI3spqORKae(rFFUeiYWzOhx(roI3spqORKae(ES5oEprVxulp(b'\x80PIDFJURR\n\xa5\xe98'), chr(0b1010011 + 0o21) + chr(0b1100101) + chr(99) + '\157' + '\144' + chr(0b1100101))('\x75' + '\164' + chr(1148 - 1046) + '\x2d' + chr(0b1000 + 0o60)), roI3spqORKae(ES5oEprVxulp(b'\xb9]XGr\x07FFb\x1b\xb0\xe4(R'), '\x64' + '\145' + chr(99) + '\157' + chr(100) + chr(0b11101 + 0o110))(chr(0b1001001 + 0o54) + chr(116) + chr(8369 - 8267) + '\055' + '\x38')), roI3spqORKae(ES5oEprVxulp(b'\x81PGUL\x08A'), chr(0b100111 + 0o75) + chr(101) + chr(1496 - 1397) + chr(111) + chr(100) + chr(8729 - 8628))('\x75' + chr(0b1110100) + chr(0b1100110) + chr(377 - 332) + '\x38')), roI3spqORKae(ES5oEprVxulp(b'\xb9]XGr\x07FFb\x1b\xb0\xe4(R'), chr(7635 - 7535) + chr(0b1011011 + 0o12) + chr(0b101111 + 0o64) + chr(8201 - 8090) + chr(0b1100100) + '\145')(chr(0b10111 + 0o136) + chr(0b1110100) + '\x66' + chr(0b101101) + '\x38')),)
JmjeLO9VwkLI = fT7Ygk5WJNMH.top.JmjeLO9VwkLI
gpUDAok9rMxr = {QYodcsDtoGq7: JmjeLO9VwkLI.config.GUKetu4xaGsJ(QYodcsDtoGq7, mYDtAE9iRJ5f[QYodcsDtoGq7]) for QYodcsDtoGq7 in mYDtAE9iRJ5f.keys()}
LfYLkGRCHrxv = {roI3spqORKae(ES5oEprVxulp(b'\x87LX'), chr(100) + chr(0b1100101) + '\143' + '\x6f' + '\x64' + chr(3066 - 2965))(chr(117) + '\x74' + '\x66' + '\055' + chr(0b1111 + 0o51)): JmjeLO9VwkLI}
if gpUDAok9rMxr[roI3spqORKae(ES5oEprVxulp(b'\xadsfte;tr|;\x8f\xda\x02tA&\xb3\xf4\x1f'), '\x64' + chr(8622 - 8521) + '\143' + '\157' + '\x64' + chr(101))(chr(0b11100 + 0o131) + '\164' + '\146' + '\055' + '\070')]:
roI3spqORKae(LfYLkGRCHrxv, roI3spqORKae(ES5oEprVxulp(b'\xaccC\x05d=p\x0f^\r\xb5\xeb'), chr(0b1100100) + '\x65' + chr(0b1010111 + 0o14) + chr(111) + '\x64' + '\x65')(chr(10334 - 10217) + '\164' + chr(0b1100110) + chr(0b100001 + 0o14) + chr(0b111000)))(awROmp2nra5c())
xwFiQMStTnzU = znjnJWK64FDT(LfYLkGRCHrxv)
if gpUDAok9rMxr[roI3spqORKae(ES5oEprVxulp(b'\xadsfte;tr|;\x8f\xda\x18qT%\xad\xff\x0f\x96U\x08\x85ed'), chr(0b1100100) + chr(0b1100101) + '\x63' + '\x6f' + chr(7008 - 6908) + chr(0b101100 + 0o71))(chr(117) + chr(116) + chr(6220 - 6118) + chr(0b101101) + chr(2883 - 2827))]:
F9WXNtNTLVrh = JmjeLO9VwkLI.make_shell_context()
roI3spqORKae(xwFiQMStTnzU, roI3spqORKae(ES5oEprVxulp(b'\xaccC\x05d=p\x0f^\r\xb5\xeb'), chr(2097 - 1997) + chr(8959 - 8858) + chr(0b1100011) + chr(111) + '\x64' + chr(0b1100101))(chr(0b1110101) + '\x74' + '\x66' + chr(0b101101) + '\070'))(F9WXNtNTLVrh)
roI3spqORKae(xwFiQMStTnzU, roI3spqORKae(ES5oEprVxulp(b'\xaccC\x05d=p\x0f^\r\xb5\xeb'), chr(0b1100100) + chr(101) + chr(114 - 15) + chr(0b1101111) + chr(100) + chr(101))(chr(117) + '\164' + '\146' + '\055' + chr(0b111000)))(gpUDAok9rMxr[roI3spqORKae(ES5oEprVxulp(b'\xadsfte;qqs<\x81\xdd\x1f'), chr(8471 - 8371) + chr(0b1100101) + '\x63' + chr(0b1101101 + 0o2) + chr(0b1100100) + '\x65')('\165' + chr(116) + '\x66' + '\055' + '\x38')])
def TbtEP2mqfaoQ(PVjcU1K_3aBJ):
BHwRW3tkakzE = roI3spqORKae(ES5oEprVxulp(b'\xca\x1c'), '\x64' + chr(0b1100101) + chr(0b1100011) + '\157' + '\144' + chr(101))('\x75' + chr(0b1011100 + 0o30) + '\146' + '\x2d' + chr(0b10101 + 0o43)).Y4yM9BcfTCNq(V3OlOVg98A85(LfYLkGRCHrxv.keys()))
PvvMx4JvMX6J = roI3spqORKae(ES5oEprVxulp(b'\xecGn{l7yC7\x13\xa6\xe48\\N\n\x8e\xce8\xbcc(\xbd7'), chr(100) + '\145' + chr(4982 - 4883) + '\157' + chr(0b1100100) + chr(6679 - 6578))(chr(4338 - 4221) + chr(0b110001 + 0o103) + chr(102) + '\055' + '\070').q33KG3foQ_CJ(FLASK=uNNTJtNION1L.EPLc722o35c6(roI3spqORKae(ES5oEprVxulp(b'\xa0PIDF^'), chr(0b100000 + 0o104) + chr(2828 - 2727) + chr(3960 - 3861) + chr(5346 - 5235) + chr(100) + chr(0b1100101))(chr(0b1010 + 0o153) + chr(0b10101 + 0o137) + '\x66' + chr(0b1 + 0o54) + chr(0b111000)), bold=nzTpIcepk0o8(chr(48) + chr(111) + '\061', ord("\x08"))), base_context=BHwRW3tkakzE)
if gpUDAok9rMxr[roI3spqORKae(ES5oEprVxulp(b'\xadsfte;tr|;\x8f\xda\x18qT%\xad\xff\x0f\x96U\x08\x85ed'), chr(0b111010 + 0o52) + chr(0b1100101) + '\x63' + chr(676 - 565) + '\144' + chr(0b1100101))('\x75' + '\x74' + chr(0b1100110) + '\x2d' + '\x38')]:
LuMTuvwD9t2e = roI3spqORKae(ES5oEprVxulp(b'\xca\x1c'), chr(0b1001001 + 0o33) + chr(0b101110 + 0o67) + '\143' + chr(0b1001000 + 0o47) + '\144' + chr(0b1100101))('\165' + '\164' + '\x66' + '\x2d' + chr(0b1001 + 0o57)).Y4yM9BcfTCNq(V3OlOVg98A85(F9WXNtNTLVrh.keys()))
PvvMx4JvMX6J += roI3spqORKae(ES5oEprVxulp(b'\xecGisi-fwr&\x85\xc963j\x1f\x80\xd2%\xb8y0\xa5NM('), chr(100) + chr(101) + chr(0b1100011) + chr(779 - 668) + chr(100) + chr(0b1100101))(chr(0b1110101) + chr(0b11000 + 0o134) + chr(0b1001011 + 0o33) + '\x2d' + '\x38').q33KG3foQ_CJ(ADDITIONAL=uNNTJtNION1L.EPLc722o35c6(roI3spqORKae(ES5oEprVxulp(b'\xa0PIDFDAVX\x04\xa8\xa5(V\x7f\x1d\x84\xd88\xf93/\xa5X\x10Q\xc3|\xe1HUM\x97\x10t\xde\xe6\x1f\xd1\x8f\x94SKR^\x17]L\x15A\xed\xbf'), chr(3954 - 3854) + '\145' + chr(0b1100011) + '\x6f' + '\144' + chr(3180 - 3079))(chr(117) + chr(0b1100011 + 0o21) + '\146' + chr(0b1000 + 0o45) + chr(896 - 840)), bold=nzTpIcepk0o8('\060' + chr(0b1101111) + '\x31', 8)), variables=LuMTuvwD9t2e)
if gpUDAok9rMxr[roI3spqORKae(ES5oEprVxulp(b'\xadsfte;qqs<\x81\xdd\x1f'), '\144' + chr(173 - 72) + '\x63' + chr(111) + chr(0b111000 + 0o54) + chr(2299 - 2198))(chr(0b1100001 + 0o24) + chr(13287 - 13171) + chr(0b1100110 + 0o0) + chr(0b100100 + 0o11) + chr(0b111000))]:
LuMTuvwD9t2e = roI3spqORKae(ES5oEprVxulp(b'\xca\x1c'), chr(100) + chr(101) + '\143' + chr(111) + '\x64' + chr(0b1100101))('\165' + '\x74' + '\x66' + '\055' + chr(56)).Y4yM9BcfTCNq(V3OlOVg98A85(gpUDAok9rMxr[roI3spqORKae(ES5oEprVxulp(b'\xadsfte;qqs<\x81\xdd\x1f'), chr(0b11111 + 0o105) + '\x65' + '\143' + chr(0b1101111) + chr(0b1100100) + chr(0b101110 + 0o67))('\x75' + '\164' + chr(7944 - 7842) + '\055' + chr(1346 - 1290))].keys()))
PvvMx4JvMX6J += roI3spqORKae(ES5oEprVxulp(b'\xecGisi-fwr&\x85\xc963j\x1f\x80\xd2%\xb8y0\xa5NM'), '\x64' + '\x65' + chr(99) + '\x6f' + '\x64' + chr(7917 - 7816))(chr(117) + chr(12303 - 12187) + '\146' + chr(45) + '\x38').q33KG3foQ_CJ(ADDITIONAL=uNNTJtNION1L.EPLc722o35c6(roI3spqORKae(ES5oEprVxulp(b'\xa7XL^Y\r]P\\\x04\xe4\xf3*Kx\x08\x83\xcc)\xaa;t\xb3XU\x02\xe0V\xc3gBq\xbb1N\xef\xdb3\xda\xd6\xdc'), '\x64' + '\x65' + chr(99) + chr(0b1000111 + 0o50) + chr(0b1100100) + '\145')(chr(117) + '\164' + '\146' + chr(0b100110 + 0o7) + chr(2009 - 1953)), bold=nzTpIcepk0o8(chr(48) + '\x6f' + '\061', 8)), variables=LuMTuvwD9t2e)
return PvvMx4JvMX6J
hyvsPpWV0q4r = gpUDAok9rMxr[roI3spqORKae(ES5oEprVxulp(b'\xadsfte;qqs<\x81\xdd\x1ffW&\xb3\xed\r\x8d'), chr(0b1100100) + '\145' + chr(3239 - 3140) + '\157' + chr(4008 - 3908) + '\x65')('\x75' + chr(0b110000 + 0o104) + chr(102) + chr(114 - 69) + chr(706 - 650))] or TbtEP2mqfaoQ
roI3spqORKae(wozd78595LUb, roI3spqORKae(ES5oEprVxulp(b'\xadmJ\x7fk0QRb$\x8f\xfc'), chr(100) + chr(0b10111 + 0o116) + '\143' + chr(0b100100 + 0o113) + chr(100) + chr(0b1100101))('\x75' + chr(0b1110100) + chr(0b1100110) + '\x2d' + chr(2767 - 2711)))(context=xwFiQMStTnzU, shell=gpUDAok9rMxr[roI3spqORKae(ES5oEprVxulp(b'\xadsfte;avx$\x88'), '\144' + chr(0b100011 + 0o102) + '\143' + chr(0b1101111) + '\x64' + '\145')(chr(6594 - 6477) + chr(6748 - 6632) + chr(8224 - 8122) + '\x2d' + chr(56))], banner=gpUDAok9rMxr[roI3spqORKae(ES5oEprVxulp(b'\xadsfte;p\x7fs&\x81\xd7'), chr(100) + chr(0b111 + 0o136) + chr(0b1111 + 0o124) + chr(4424 - 4313) + chr(7219 - 7119) + chr(4261 - 4160))('\165' + chr(116) + '\x66' + chr(45) + chr(56))], prompt=gpUDAok9rMxr[roI3spqORKae(ES5oEprVxulp(b'\xadsfte;blr%\x94\xd1'), chr(100) + chr(0b1011110 + 0o7) + chr(0b1011111 + 0o4) + chr(0b1010001 + 0o36) + '\144' + '\x65')(chr(4070 - 3953) + '\164' + chr(0b1011 + 0o133) + chr(0b101101) + '\x38')], output=gpUDAok9rMxr[roI3spqORKae(ES5oEprVxulp(b'\xadsfte;}ki8\x91\xd1'), chr(0b11101 + 0o107) + '\x65' + chr(0b1100011) + chr(111) + chr(0b1100100) + '\x65')(chr(117) + chr(0b1110100) + chr(0b110111 + 0o57) + chr(45) + chr(0b11100 + 0o34))], ptpy_vi_mode=gpUDAok9rMxr[roI3spqORKae(ES5oEprVxulp(b'\xadsfte;bjm1\x9b\xd3\x02f\\&\xa5\xe5'), chr(2917 - 2817) + chr(0b1001101 + 0o30) + '\x63' + '\157' + chr(0b1100100) + chr(0b11101 + 0o110))(chr(0b10110 + 0o137) + '\164' + '\x66' + chr(0b101101) + chr(56))], context_format=hyvsPpWV0q4r, ipy_extensions=gpUDAok9rMxr[roI3spqORKae(ES5oEprVxulp(b'\xadsfte;{nd7\x81\xdd\x1f|_:\xa8\xef\x02\x8a'), '\x64' + chr(3583 - 3482) + chr(4859 - 4760) + '\x6f' + chr(0b10100 + 0o120) + '\145')(chr(117) + chr(11323 - 11207) + '\146' + chr(350 - 305) + '\x38')], ipy_autoreload=gpUDAok9rMxr[roI3spqORKae(ES5oEprVxulp(b'\xadsfte;{nd7\x85\xd0\x1fvC,\xad\xef\r\x9d'), '\144' + '\x65' + '\143' + chr(11165 - 11054) + chr(0b11001 + 0o113) + chr(0b110110 + 0o57))('\x75' + '\164' + chr(0b1100110) + chr(45) + chr(0b111000))], ipy_colors=gpUDAok9rMxr[roI3spqORKae(ES5oEprVxulp(b'\xadsfte;{nd7\x87\xca\x07vC:'), chr(0b1100100) + '\x65' + chr(99) + chr(7430 - 7319) + chr(0b111110 + 0o46) + '\145')('\165' + chr(0b110 + 0o156) + chr(102) + '\x2d' + chr(2310 - 2254))], ipy_highlighting_style=gpUDAok9rMxr[roI3spqORKae(ES5oEprVxulp(b'\xadsfte;{nd7\x8c\xcc\x0cq] \xa6\xe8\x18\x90U\x1b\x9fnd{\xe7\\'), chr(100) + '\145' + chr(0b100010 + 0o101) + '\x6f' + '\x64' + '\x65')('\x75' + chr(0b1110100) + '\x66' + chr(0b101101) + chr(0b111000))]) |
robgolding/tasklib | tasklib/lazy.py | LazyUUIDTask.replace | def replace(self):
"""
Performs conversion to the regular Task object, referenced by the
stored UUID.
"""
replacement = self._tw.tasks.get(uuid=self._uuid)
self.__class__ = replacement.__class__
self.__dict__ = replacement.__dict__ | python | def replace(self):
"""
Performs conversion to the regular Task object, referenced by the
stored UUID.
"""
replacement = self._tw.tasks.get(uuid=self._uuid)
self.__class__ = replacement.__class__
self.__dict__ = replacement.__dict__ | [
"def",
"replace",
"(",
"self",
")",
":",
"replacement",
"=",
"self",
".",
"_tw",
".",
"tasks",
".",
"get",
"(",
"uuid",
"=",
"self",
".",
"_uuid",
")",
"self",
".",
"__class__",
"=",
"replacement",
".",
"__class__",
"self",
".",
"__dict__",
"=",
"replacement",
".",
"__dict__"
] | Performs conversion to the regular Task object, referenced by the
stored UUID. | [
"Performs",
"conversion",
"to",
"the",
"regular",
"Task",
"object",
"referenced",
"by",
"the",
"stored",
"UUID",
"."
] | 0ad882377639865283021041f19add5aeb10126a | https://github.com/robgolding/tasklib/blob/0ad882377639865283021041f19add5aeb10126a/tasklib/lazy.py#L69-L77 | train | Replaces the current object with the corresponding Task 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,_1qUu0g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Xup,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(2025 - 1977) + chr(7102 - 6991) + '\x32' + '\x30' + '\x35', 0b1000), nzTpIcepk0o8(chr(0b100110 + 0o12) + chr(111) + '\062' + chr(0b110000) + chr(0b1000 + 0o53), 0b1000), nzTpIcepk0o8(chr(0b10011 + 0o35) + chr(0b1101111) + '\063' + chr(0b100 + 0o55) + chr(55), ord("\x08")), nzTpIcepk0o8(chr(0b10101 + 0o33) + chr(0b1101111) + chr(51), 0b1000), nzTpIcepk0o8(chr(0b110 + 0o52) + '\x6f' + '\x32' + chr(0b100100 + 0o17) + chr(0b110011 + 0o1), 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(0b1010 + 0o51) + chr(0b101111 + 0o2) + '\x30', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(49) + chr(0b110101) + '\064', ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + '\066' + '\x36', 0b1000), nzTpIcepk0o8('\060' + chr(111) + '\x33' + chr(1368 - 1315) + chr(1688 - 1634), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b100110 + 0o17) + chr(0b110010), 8702 - 8694), nzTpIcepk0o8('\060' + '\157' + chr(602 - 547) + '\x34', 0o10), nzTpIcepk0o8(chr(48) + chr(111) + '\061' + '\x36' + chr(0b110001), 0o10), nzTpIcepk0o8('\060' + chr(399 - 288) + chr(51) + chr(0b110000) + chr(2425 - 2373), ord("\x08")), nzTpIcepk0o8(chr(0b101101 + 0o3) + '\x6f' + chr(49) + chr(54) + chr(0b110000 + 0o5), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(9963 - 9852) + chr(0b11111 + 0o24) + '\061' + '\066', 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(1311 - 1262) + '\x35' + chr(49), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(607 - 558) + chr(0b10 + 0o62), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1100001 + 0o16) + '\063' + '\x33' + chr(48), 0b1000), nzTpIcepk0o8(chr(0b11111 + 0o21) + '\157' + chr(0b110001) + chr(743 - 694) + '\065', 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b1110 + 0o44) + chr(54) + chr(0b10101 + 0o36), 36738 - 36730), nzTpIcepk0o8(chr(0b110000) + chr(9615 - 9504) + chr(51) + chr(0b110010) + chr(0b10000 + 0o45), 0b1000), nzTpIcepk0o8('\x30' + chr(6115 - 6004) + '\062' + '\063' + chr(0b110010), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + '\062' + chr(1934 - 1881) + chr(51), ord("\x08")), nzTpIcepk0o8(chr(0b110000 + 0o0) + '\157' + chr(0b110011) + '\066' + chr(0b110010), ord("\x08")), nzTpIcepk0o8('\x30' + chr(2239 - 2128) + chr(50) + chr(0b110111), 27109 - 27101), nzTpIcepk0o8('\x30' + chr(11807 - 11696) + chr(0b11011 + 0o26) + chr(0b110111) + chr(675 - 622), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110101) + chr(50), 8), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(1765 - 1716) + chr(0b11111 + 0o21) + chr(50), ord("\x08")), nzTpIcepk0o8(chr(0b10010 + 0o36) + chr(111) + '\062' + '\x34' + chr(1754 - 1704), 12045 - 12037), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\061' + chr(53) + chr(0b110000), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\061' + chr(155 - 105) + chr(0b100001 + 0o17), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\061' + chr(1569 - 1520) + chr(0b110111), 0o10), nzTpIcepk0o8(chr(0b100111 + 0o11) + '\157' + '\061' + chr(0b110001) + '\063', 0o10), nzTpIcepk0o8(chr(48) + '\157' + '\x33' + chr(0b11011 + 0o27) + '\060', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(1672 - 1623) + chr(0b1111 + 0o50) + '\065', 8), nzTpIcepk0o8('\x30' + '\157' + chr(0b101001 + 0o10) + chr(0b11010 + 0o32) + '\060', 39255 - 39247), nzTpIcepk0o8(chr(48) + chr(7440 - 7329) + chr(2005 - 1955) + '\x30' + chr(1808 - 1756), 16981 - 16973), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\063' + chr(52) + chr(0b100001 + 0o22), 0o10), nzTpIcepk0o8(chr(0b100011 + 0o15) + '\157' + chr(0b110011) + '\x36' + chr(1649 - 1594), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(1298 - 1247) + '\062' + chr(49), 2271 - 2263)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b10101 + 0o33) + '\x6f' + chr(1436 - 1383) + chr(48), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xab'), '\x64' + chr(101) + '\x63' + chr(0b1101111) + chr(0b10011 + 0o121) + chr(101))(chr(117) + chr(0b111100 + 0o70) + '\x66' + '\x2d' + chr(0b10 + 0o66)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def E91dbqOZXBpJ(hXMPsSrOQzbh):
uEyuA_NJ7W1X = hXMPsSrOQzbh._tw.tasks.GUKetu4xaGsJ(uuid=hXMPsSrOQzbh.DxWl55TnQZqR)
hXMPsSrOQzbh.ms49tbQaVKwA = uEyuA_NJ7W1X.ms49tbQaVKwA
hXMPsSrOQzbh.vN7a1CEarTrT = uEyuA_NJ7W1X.vN7a1CEarTrT |
robgolding/tasklib | tasklib/lazy.py | LazyUUIDTaskSet.replace | def replace(self):
"""
Performs conversion to the regular TaskQuerySet object, referenced by
the stored UUIDs.
"""
replacement = self._tw.tasks.filter(' '.join(self._uuids))
self.__class__ = replacement.__class__
self.__dict__ = replacement.__dict__ | python | def replace(self):
"""
Performs conversion to the regular TaskQuerySet object, referenced by
the stored UUIDs.
"""
replacement = self._tw.tasks.filter(' '.join(self._uuids))
self.__class__ = replacement.__class__
self.__dict__ = replacement.__dict__ | [
"def",
"replace",
"(",
"self",
")",
":",
"replacement",
"=",
"self",
".",
"_tw",
".",
"tasks",
".",
"filter",
"(",
"' '",
".",
"join",
"(",
"self",
".",
"_uuids",
")",
")",
"self",
".",
"__class__",
"=",
"replacement",
".",
"__class__",
"self",
".",
"__dict__",
"=",
"replacement",
".",
"__dict__"
] | Performs conversion to the regular TaskQuerySet object, referenced by
the stored UUIDs. | [
"Performs",
"conversion",
"to",
"the",
"regular",
"TaskQuerySet",
"object",
"referenced",
"by",
"the",
"stored",
"UUIDs",
"."
] | 0ad882377639865283021041f19add5aeb10126a | https://github.com/robgolding/tasklib/blob/0ad882377639865283021041f19add5aeb10126a/tasklib/lazy.py#L227-L235 | train | Replaces the current object with the corresponding TaskQuerySet object. | GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zf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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(0b110000) + '\157' + chr(0b110001) + chr(0b110101) + '\x36', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(50) + chr(0b110100), 44409 - 44401), nzTpIcepk0o8('\x30' + chr(0b1010101 + 0o32) + '\063' + '\x33', 47820 - 47812), nzTpIcepk0o8('\060' + chr(0b1010100 + 0o33) + '\x32' + chr(0b100100 + 0o20) + '\x32', 0b1000), nzTpIcepk0o8(chr(0b101110 + 0o2) + '\x6f' + chr(0b101001 + 0o15), 0o10), nzTpIcepk0o8(chr(245 - 197) + chr(369 - 258) + chr(0b110001 + 0o1) + chr(0b110100) + chr(432 - 381), 62688 - 62680), nzTpIcepk0o8(chr(758 - 710) + chr(0b1101111) + chr(0b10101 + 0o35) + '\064' + chr(0b110001), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(50) + '\067' + chr(0b100000 + 0o21), 17792 - 17784), nzTpIcepk0o8(chr(1846 - 1798) + chr(9540 - 9429) + chr(0b110011) + '\067' + '\x33', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\063' + chr(55) + '\x33', 8), nzTpIcepk0o8('\060' + '\157' + chr(49) + chr(2202 - 2150) + chr(796 - 748), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110011) + chr(649 - 597) + chr(0b10010 + 0o36), 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(51) + chr(50) + chr(0b101010 + 0o7), 50536 - 50528), nzTpIcepk0o8('\x30' + chr(4113 - 4002) + chr(1544 - 1495) + chr(52) + '\066', 52941 - 52933), nzTpIcepk0o8('\060' + '\x6f' + chr(1415 - 1366) + '\x33' + '\065', 19982 - 19974), nzTpIcepk0o8(chr(48) + '\x6f' + chr(782 - 731) + '\x34' + chr(49), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(1607 - 1552) + chr(0b110110), 33563 - 33555), nzTpIcepk0o8('\x30' + chr(0b100110 + 0o111) + '\x37' + '\x34', 12179 - 12171), nzTpIcepk0o8(chr(2047 - 1999) + chr(6093 - 5982) + '\x33' + '\x30' + chr(2433 - 2380), ord("\x08")), nzTpIcepk0o8('\060' + chr(5322 - 5211) + chr(0b101101 + 0o4) + chr(52) + '\x32', 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(190 - 140) + chr(0b1100 + 0o44) + '\x37', 0o10), nzTpIcepk0o8('\060' + '\157' + chr(51) + chr(1098 - 1049) + '\x36', 8352 - 8344), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x31' + '\063', 0b1000), nzTpIcepk0o8('\060' + '\x6f' + '\x31' + chr(0b101110 + 0o7) + chr(0b100110 + 0o20), 8), nzTpIcepk0o8('\060' + '\x6f' + '\063' + '\x35' + '\066', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(6981 - 6870) + '\x33' + chr(0b1111 + 0o45) + chr(52), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(0b101110 + 0o5) + '\x36' + chr(1925 - 1872), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\063' + chr(1322 - 1271) + chr(1690 - 1636), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b101001 + 0o10) + '\x35' + chr(0b110010), 15168 - 15160), nzTpIcepk0o8('\x30' + '\x6f' + '\x32' + chr(50) + '\x33', 0o10), nzTpIcepk0o8(chr(0b101101 + 0o3) + '\x6f' + '\x34' + chr(1390 - 1339), 0o10), nzTpIcepk0o8('\060' + chr(0b10010 + 0o135) + chr(50) + '\x36' + '\x32', ord("\x08")), nzTpIcepk0o8(chr(0b10001 + 0o37) + chr(5769 - 5658) + chr(1220 - 1170) + chr(54), 2262 - 2254), nzTpIcepk0o8(chr(620 - 572) + '\157' + chr(0b100111 + 0o12) + '\066', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x32' + chr(0b110100) + chr(2020 - 1970), 8), nzTpIcepk0o8(chr(0b101 + 0o53) + chr(0b101101 + 0o102) + chr(49) + chr(0b11010 + 0o30) + chr(2079 - 2025), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(2044 - 1995) + chr(0b110111), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + '\x33' + '\x34' + '\x36', 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x32' + chr(2367 - 2318) + chr(49), 0b1000), nzTpIcepk0o8('\060' + '\157' + chr(0b100101 + 0o14) + '\063' + chr(0b101000 + 0o15), 8)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(2186 - 2138) + chr(7976 - 7865) + chr(0b110101) + '\060', 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'@'), chr(100) + '\x65' + chr(0b1100011) + chr(2922 - 2811) + chr(100) + chr(0b1100101))(chr(7501 - 7384) + chr(0b110100 + 0o100) + '\x66' + chr(45) + '\x38') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def E91dbqOZXBpJ(hXMPsSrOQzbh):
uEyuA_NJ7W1X = hXMPsSrOQzbh._tw.tasks.qEahrGEDF7Tq(roI3spqORKae(ES5oEprVxulp(b'N'), '\144' + chr(0b110 + 0o137) + '\143' + chr(111) + '\144' + '\x65')(chr(0b1110101) + '\x74' + '\x66' + chr(45) + chr(56)).Y4yM9BcfTCNq(hXMPsSrOQzbh.iUpiPxB25mpj))
hXMPsSrOQzbh.ms49tbQaVKwA = uEyuA_NJ7W1X.ms49tbQaVKwA
hXMPsSrOQzbh.vN7a1CEarTrT = uEyuA_NJ7W1X.vN7a1CEarTrT |
robgolding/tasklib | tasklib/backends.py | TaskWarrior.save_task | def save_task(self, task):
"""Save a task into TaskWarrior database using add/modify call"""
args = [task['uuid'], 'modify'] if task.saved else ['add']
args.extend(self._get_modified_task_fields_as_args(task))
output = self.execute_command(args)
# Parse out the new ID, if the task is being added for the first time
if not task.saved:
id_lines = [l for l in output if l.startswith('Created task ')]
# Complain loudly if it seems that more tasks were created
# Should not happen.
# Expected output: Created task 1.
# Created task 1 (recurrence template).
if len(id_lines) != 1 or len(id_lines[0].split(' ')) not in (3, 5):
raise TaskWarriorException(
'Unexpected output when creating '
'task: %s' % '\n'.join(id_lines),
)
# Circumvent the ID storage, since ID is considered read-only
identifier = id_lines[0].split(' ')[2].rstrip('.')
# Identifier can be either ID or UUID for completed tasks
try:
task._data['id'] = int(identifier)
except ValueError:
task._data['uuid'] = identifier
# Refreshing is very important here, as not only modification time
# is updated, but arbitrary attribute may have changed due hooks
# altering the data before saving
task.refresh(after_save=True) | python | def save_task(self, task):
"""Save a task into TaskWarrior database using add/modify call"""
args = [task['uuid'], 'modify'] if task.saved else ['add']
args.extend(self._get_modified_task_fields_as_args(task))
output = self.execute_command(args)
# Parse out the new ID, if the task is being added for the first time
if not task.saved:
id_lines = [l for l in output if l.startswith('Created task ')]
# Complain loudly if it seems that more tasks were created
# Should not happen.
# Expected output: Created task 1.
# Created task 1 (recurrence template).
if len(id_lines) != 1 or len(id_lines[0].split(' ')) not in (3, 5):
raise TaskWarriorException(
'Unexpected output when creating '
'task: %s' % '\n'.join(id_lines),
)
# Circumvent the ID storage, since ID is considered read-only
identifier = id_lines[0].split(' ')[2].rstrip('.')
# Identifier can be either ID or UUID for completed tasks
try:
task._data['id'] = int(identifier)
except ValueError:
task._data['uuid'] = identifier
# Refreshing is very important here, as not only modification time
# is updated, but arbitrary attribute may have changed due hooks
# altering the data before saving
task.refresh(after_save=True) | [
"def",
"save_task",
"(",
"self",
",",
"task",
")",
":",
"args",
"=",
"[",
"task",
"[",
"'uuid'",
"]",
",",
"'modify'",
"]",
"if",
"task",
".",
"saved",
"else",
"[",
"'add'",
"]",
"args",
".",
"extend",
"(",
"self",
".",
"_get_modified_task_fields_as_args",
"(",
"task",
")",
")",
"output",
"=",
"self",
".",
"execute_command",
"(",
"args",
")",
"# Parse out the new ID, if the task is being added for the first time",
"if",
"not",
"task",
".",
"saved",
":",
"id_lines",
"=",
"[",
"l",
"for",
"l",
"in",
"output",
"if",
"l",
".",
"startswith",
"(",
"'Created task '",
")",
"]",
"# Complain loudly if it seems that more tasks were created",
"# Should not happen.",
"# Expected output: Created task 1.",
"# Created task 1 (recurrence template).",
"if",
"len",
"(",
"id_lines",
")",
"!=",
"1",
"or",
"len",
"(",
"id_lines",
"[",
"0",
"]",
".",
"split",
"(",
"' '",
")",
")",
"not",
"in",
"(",
"3",
",",
"5",
")",
":",
"raise",
"TaskWarriorException",
"(",
"'Unexpected output when creating '",
"'task: %s'",
"%",
"'\\n'",
".",
"join",
"(",
"id_lines",
")",
",",
")",
"# Circumvent the ID storage, since ID is considered read-only",
"identifier",
"=",
"id_lines",
"[",
"0",
"]",
".",
"split",
"(",
"' '",
")",
"[",
"2",
"]",
".",
"rstrip",
"(",
"'.'",
")",
"# Identifier can be either ID or UUID for completed tasks",
"try",
":",
"task",
".",
"_data",
"[",
"'id'",
"]",
"=",
"int",
"(",
"identifier",
")",
"except",
"ValueError",
":",
"task",
".",
"_data",
"[",
"'uuid'",
"]",
"=",
"identifier",
"# Refreshing is very important here, as not only modification time",
"# is updated, but arbitrary attribute may have changed due hooks",
"# altering the data before saving",
"task",
".",
"refresh",
"(",
"after_save",
"=",
"True",
")"
] | Save a task into TaskWarrior database using add/modify call | [
"Save",
"a",
"task",
"into",
"TaskWarrior",
"database",
"using",
"add",
"/",
"modify",
"call"
] | 0ad882377639865283021041f19add5aeb10126a | https://github.com/robgolding/tasklib/blob/0ad882377639865283021041f19add5aeb10126a/tasklib/backends.py#L330-L363 | train | Save a task into TaskWarrior database using add or modify call. | GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,J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Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__
ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b1100 + 0o44) + chr(0b1101111) + chr(0b110110) + chr(876 - 825), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(2558 - 2507) + chr(53) + chr(647 - 599), 0o10), nzTpIcepk0o8(chr(158 - 110) + chr(111) + chr(0b110011) + '\x31' + '\x30', ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b100111 + 0o17) + '\063', 8), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(0b10011 + 0o37) + '\x31' + chr(0b10011 + 0o36), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101011 + 0o4) + '\x31' + chr(0b110111) + '\065', 0o10), nzTpIcepk0o8(chr(0b1101 + 0o43) + chr(0b1101111) + '\066' + '\060', 6426 - 6418), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b11001 + 0o31) + '\x30' + chr(0b11010 + 0o33), 0o10), nzTpIcepk0o8(chr(431 - 383) + '\x6f' + '\x37' + '\060', 18811 - 18803), nzTpIcepk0o8(chr(0b110 + 0o52) + chr(0b1101111) + chr(51) + chr(54) + '\x30', 0b1000), nzTpIcepk0o8('\x30' + chr(111) + '\x37' + chr(0b100101 + 0o17), 49979 - 49971), nzTpIcepk0o8('\x30' + '\157' + chr(50) + chr(0b110101) + chr(49), 0b1000), nzTpIcepk0o8(chr(0b101 + 0o53) + chr(111) + '\063' + '\064' + chr(52), 1075 - 1067), nzTpIcepk0o8(chr(1645 - 1597) + chr(0b1101111) + chr(50) + chr(0b11111 + 0o30) + chr(0b110001), 0o10), nzTpIcepk0o8(chr(0b1001 + 0o47) + chr(111) + chr(51) + chr(50) + '\x35', ord("\x08")), nzTpIcepk0o8(chr(621 - 573) + '\x6f' + chr(0b10001 + 0o41) + '\x34' + chr(0b100111 + 0o20), ord("\x08")), nzTpIcepk0o8(chr(0b10 + 0o56) + chr(111) + chr(2062 - 2011) + '\062' + chr(1688 - 1638), 0o10), nzTpIcepk0o8(chr(48) + chr(7499 - 7388) + chr(0b101 + 0o54) + chr(2408 - 2354) + chr(1588 - 1537), ord("\x08")), nzTpIcepk0o8(chr(1171 - 1123) + chr(111) + chr(0b110010) + chr(922 - 870) + chr(0b10100 + 0o40), ord("\x08")), nzTpIcepk0o8(chr(309 - 261) + '\x6f' + chr(0b10100 + 0o36) + chr(54) + '\x34', 0o10), nzTpIcepk0o8(chr(48) + chr(4412 - 4301) + chr(295 - 244) + '\067' + chr(0b10001 + 0o45), 42197 - 42189), nzTpIcepk0o8(chr(1951 - 1903) + '\x6f' + '\x31' + '\060', 60921 - 60913), nzTpIcepk0o8(chr(48) + chr(5023 - 4912) + chr(1141 - 1091) + '\x33' + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(10939 - 10828) + chr(0b110010) + chr(338 - 289) + chr(0b11110 + 0o26), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110011) + '\x37' + chr(2529 - 2478), ord("\x08")), nzTpIcepk0o8(chr(0b10011 + 0o35) + chr(0b1011110 + 0o21) + chr(0b110011) + '\x34' + '\066', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b11001 + 0o32) + chr(0b110100) + '\062', 39958 - 39950), nzTpIcepk0o8(chr(0b110000) + chr(0b1101100 + 0o3) + chr(1209 - 1157) + chr(0b110101), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110001) + chr(154 - 102) + chr(50), 39537 - 39529), nzTpIcepk0o8(chr(87 - 39) + chr(3761 - 3650) + '\066' + chr(0b101000 + 0o14), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110001) + chr(0b101 + 0o62) + '\064', 62843 - 62835), nzTpIcepk0o8(chr(48) + '\157' + '\064' + chr(392 - 344), 62286 - 62278), nzTpIcepk0o8('\x30' + chr(111) + chr(1374 - 1324) + chr(0b110110) + chr(0b11100 + 0o27), 0o10), nzTpIcepk0o8(chr(0b1100 + 0o44) + chr(0b1101111) + chr(0b11010 + 0o31) + '\x36' + chr(125 - 73), 0o10), nzTpIcepk0o8(chr(0b11001 + 0o27) + chr(0b110110 + 0o71) + chr(0b110010) + chr(50) + '\x33', ord("\x08")), nzTpIcepk0o8(chr(0b0 + 0o60) + '\x6f' + chr(50), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(51) + chr(0b11110 + 0o25) + chr(1714 - 1665), 9748 - 9740), nzTpIcepk0o8('\060' + chr(111) + '\x34' + '\x35', 8), nzTpIcepk0o8(chr(48) + '\x6f' + chr(402 - 351) + '\x31' + chr(53 - 4), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x35' + chr(0b110000), 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x1d'), chr(100) + chr(0b1100101) + chr(0b1100011) + '\157' + chr(0b1000111 + 0o35) + chr(10065 - 9964))(chr(8005 - 7888) + chr(0b1100 + 0o150) + chr(102) + chr(398 - 353) + chr(0b111000)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def XMEPRQJCJgaQ(hXMPsSrOQzbh, zKIJBwi5o9UC):
eemPYp2vtTSr = [zKIJBwi5o9UC[roI3spqORKae(ES5oEprVxulp(b'F\x9d\xa1W'), chr(0b110110 + 0o56) + chr(0b1100101) + chr(99) + '\x6f' + chr(254 - 154) + '\145')(chr(0b1110101) + '\164' + chr(0b1100011 + 0o3) + '\055' + '\070')], roI3spqORKae(ES5oEprVxulp(b'^\x87\xacZg\xf0'), '\x64' + chr(101) + chr(99) + '\x6f' + chr(0b1100100) + chr(101))(chr(13459 - 13342) + '\164' + chr(0b1010100 + 0o22) + chr(0b101101) + '\x38')] if zKIJBwi5o9UC.saved else [roI3spqORKae(ES5oEprVxulp(b'R\x8c\xac'), '\x64' + '\x65' + '\143' + chr(0b110001 + 0o76) + '\x64' + '\145')(chr(222 - 105) + chr(4311 - 4195) + chr(0b101100 + 0o72) + '\055' + '\x38')]
roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b'g\xb7\xfb~n\xed1g\xdaz\x92M'), chr(0b1100100) + chr(3442 - 3341) + chr(0b1010011 + 0o20) + chr(2656 - 2545) + chr(100) + '\x65')('\165' + '\164' + chr(102) + '\x2d' + chr(2309 - 2253)))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'l\x8f\xadG^\xe4\x12T\xec^\x99Y\xcd\xbb\xcd\xb4\xd4\xb9,\xc2\xdd\x9bd\xf8\xff\xa4\x87\x91z\x03F\x1bS'), chr(4016 - 3916) + '\x65' + chr(0b1010 + 0o131) + chr(10876 - 10765) + chr(2611 - 2511) + '\145')(chr(0b1110101) + chr(0b1110100) + chr(0b101110 + 0o70) + chr(45) + chr(0b10 + 0o66)))(zKIJBwi5o9UC))
toKQXlEvBKaK = hXMPsSrOQzbh.execute_command(eemPYp2vtTSr)
if not roI3spqORKae(zKIJBwi5o9UC, roI3spqORKae(ES5oEprVxulp(b'@\x89\xbeVe'), '\144' + chr(0b1100101) + chr(2021 - 1922) + '\x6f' + chr(100) + chr(0b11111 + 0o106))(chr(0b1110101) + '\164' + chr(102) + chr(0b101101) + chr(56))):
VYAyLINC8d6A = [fPrVrKACaFCC for fPrVrKACaFCC in toKQXlEvBKaK if fPrVrKACaFCC.startswith(roI3spqORKae(ES5oEprVxulp(b'p\x9a\xadRu\xec\x19\x10\xf1Y\x83W\x89'), chr(100) + chr(8575 - 8474) + chr(99) + chr(11135 - 11024) + chr(0b1100100) + chr(6115 - 6014))(chr(11945 - 11828) + '\164' + chr(0b101011 + 0o73) + chr(0b101101) + chr(0b1 + 0o67)))]
if ftfygxgFas5X(VYAyLINC8d6A) != nzTpIcepk0o8('\060' + chr(0b1101111) + '\x31', 8) or ftfygxgFas5X(roI3spqORKae(VYAyLINC8d6A[nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b100011 + 0o15), 0o10)], roI3spqORKae(ES5oEprVxulp(b'\x7f\x8e\x9aAP\xc6\x05E\xc1N\x9e\x7f'), '\x64' + '\145' + chr(0b1100011) + '\157' + chr(0b1100100) + '\x65')('\x75' + chr(116) + '\146' + '\055' + chr(0b110000 + 0o10)))(roI3spqORKae(ES5oEprVxulp(b'\x13'), '\144' + chr(0b11100 + 0o111) + '\143' + chr(10685 - 10574) + chr(1776 - 1676) + chr(0b1100101))(chr(11896 - 11779) + chr(116) + chr(0b10010 + 0o124) + '\x2d' + chr(87 - 31)))) not in (nzTpIcepk0o8(chr(0b101011 + 0o5) + '\x6f' + chr(0b110011), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(1136 - 1083), ord("\x08"))):
raise FF13X3DitHoD(roI3spqORKae(ES5oEprVxulp(b'f\x86\xadKq\xec\x1eD\xe0\\\xd0S\xdc\x90\xc9\xa0\xd3\xf2\x04\xcc\xd1\x90(\xff\xfe\x9e\x87\x96L\x0cS\\T\xd2\x87\xf88\xf9\x00\xba'), chr(0b1010110 + 0o16) + chr(0b1100101) + chr(0b1100011) + chr(4163 - 4052) + chr(0b1100100) + '\x65')('\165' + chr(0b1011010 + 0o32) + chr(102) + '\055' + '\070') % roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'9'), chr(9361 - 9261) + '\x65' + chr(0b1100011) + chr(0b1101111) + chr(0b1100100) + '\145')('\x75' + chr(2557 - 2441) + chr(9859 - 9757) + chr(0b101101) + chr(56)), roI3spqORKae(ES5oEprVxulp(b'j\xdc\xb1~8\xcb\x1eV\xd1{\xbeM'), chr(4942 - 4842) + '\145' + chr(0b101011 + 0o70) + '\x6f' + chr(0b101001 + 0o73) + chr(0b1100101))(chr(4689 - 4572) + '\164' + chr(0b1111 + 0o127) + '\055' + chr(0b110111 + 0o1)))(VYAyLINC8d6A))
yzBKj0VGeTDV = VYAyLINC8d6A[nzTpIcepk0o8(chr(525 - 477) + '\x6f' + chr(441 - 393), 8)].split(roI3spqORKae(ES5oEprVxulp(b'\x13'), chr(100) + '\x65' + '\143' + '\x6f' + chr(0b1100100) + chr(8888 - 8787))('\165' + '\164' + '\x66' + '\055' + chr(0b111000)))[nzTpIcepk0o8(chr(0b110000) + chr(0b111110 + 0o61) + chr(50), 8)].rstrip(roI3spqORKae(ES5oEprVxulp(b'\x1d'), chr(4414 - 4314) + chr(0b1100101) + chr(8442 - 8343) + '\157' + chr(100) + '\145')('\x75' + chr(8488 - 8372) + chr(102) + chr(0b101 + 0o50) + chr(56)))
try:
zKIJBwi5o9UC.Fb5XNYcWu0O5[roI3spqORKae(ES5oEprVxulp(b'Z\x8c'), '\x64' + chr(0b1001101 + 0o30) + chr(3161 - 3062) + '\157' + chr(4515 - 4415) + chr(2495 - 2394))(chr(9575 - 9458) + chr(5128 - 5012) + chr(0b1100110) + chr(45) + chr(56))] = nzTpIcepk0o8(yzBKj0VGeTDV)
except WbNHlDKpyPtQ:
zKIJBwi5o9UC.Fb5XNYcWu0O5[roI3spqORKae(ES5oEprVxulp(b'F\x9d\xa1W'), '\x64' + '\145' + '\143' + '\157' + '\x64' + chr(101))(chr(0b1110101) + '\164' + '\x66' + chr(0b11001 + 0o24) + chr(1378 - 1322))] = yzBKj0VGeTDV
roI3spqORKae(zKIJBwi5o9UC, roI3spqORKae(ES5oEprVxulp(b'A\x8d\xaeAd\xfa\x15'), chr(100) + '\145' + chr(0b111 + 0o134) + chr(111) + chr(0b1100100) + chr(0b111111 + 0o46))('\x75' + chr(8103 - 7987) + chr(0b1100110) + chr(0b10100 + 0o31) + chr(0b100001 + 0o27)))(after_save=nzTpIcepk0o8(chr(0b110000) + '\157' + '\x31', 8)) |
robgolding/tasklib | tasklib/serializing.py | SerializingObject._normalize | def _normalize(self, key, value):
"""
Use normalize_<key> methods to normalize user input. Any user
input will be normalized at the moment it is used as filter,
or entered as a value of Task attribute.
"""
# None value should not be converted by normalizer
if value is None:
return None
normalize_func = getattr(self, 'normalize_{0}'.format(key),
lambda x: x)
return normalize_func(value) | python | def _normalize(self, key, value):
"""
Use normalize_<key> methods to normalize user input. Any user
input will be normalized at the moment it is used as filter,
or entered as a value of Task attribute.
"""
# None value should not be converted by normalizer
if value is None:
return None
normalize_func = getattr(self, 'normalize_{0}'.format(key),
lambda x: x)
return normalize_func(value) | [
"def",
"_normalize",
"(",
"self",
",",
"key",
",",
"value",
")",
":",
"# None value should not be converted by normalizer",
"if",
"value",
"is",
"None",
":",
"return",
"None",
"normalize_func",
"=",
"getattr",
"(",
"self",
",",
"'normalize_{0}'",
".",
"format",
"(",
"key",
")",
",",
"lambda",
"x",
":",
"x",
")",
"return",
"normalize_func",
"(",
"value",
")"
] | Use normalize_<key> methods to normalize user input. Any user
input will be normalized at the moment it is used as filter,
or entered as a value of Task attribute. | [
"Use",
"normalize_<key",
">",
"methods",
"to",
"normalize",
"user",
"input",
".",
"Any",
"user",
"input",
"will",
"be",
"normalized",
"at",
"the",
"moment",
"it",
"is",
"used",
"as",
"filter",
"or",
"entered",
"as",
"a",
"value",
"of",
"Task",
"attribute",
"."
] | 0ad882377639865283021041f19add5aeb10126a | https://github.com/robgolding/tasklib/blob/0ad882377639865283021041f19add5aeb10126a/tasklib/serializing.py#L55-L69 | train | Normalize the user s entry point. | GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,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,pZy5DBJ8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UMv,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(1983 - 1934) + '\067', 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(49) + chr(48), 0b1000), nzTpIcepk0o8('\060' + chr(430 - 319) + chr(1227 - 1177) + '\x31' + chr(48), 9506 - 9498), nzTpIcepk0o8(chr(0b110000) + chr(5857 - 5746) + chr(0b10100 + 0o36) + chr(0b110000) + chr(0b100010 + 0o21), 0b1000), nzTpIcepk0o8(chr(200 - 152) + chr(0b1101111) + chr(1357 - 1307) + chr(49), 53582 - 53574), nzTpIcepk0o8(chr(1520 - 1472) + chr(0b1101111) + '\061' + '\x32' + chr(0b110010), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(50) + chr(1265 - 1213) + chr(0b110001), 0o10), nzTpIcepk0o8(chr(0b100000 + 0o20) + '\x6f' + '\x37', 0o10), nzTpIcepk0o8(chr(0b11001 + 0o27) + chr(0b1101111) + chr(0b101100 + 0o5) + chr(0b110111) + '\x36', ord("\x08")), nzTpIcepk0o8('\060' + chr(5201 - 5090) + chr(0b110000), ord("\x08")), nzTpIcepk0o8(chr(0b100 + 0o54) + '\x6f' + '\063' + chr(0b110110) + chr(0b110110), 54385 - 54377), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x32' + chr(0b110001) + chr(295 - 242), 8155 - 8147), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110011) + '\x32' + chr(0b101101 + 0o3), 40966 - 40958), nzTpIcepk0o8(chr(0b10100 + 0o34) + '\157' + chr(0b110011), 10692 - 10684), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b10111 + 0o34) + '\065' + '\x36', ord("\x08")), nzTpIcepk0o8(chr(805 - 757) + chr(0b1101000 + 0o7) + chr(49) + chr(49) + '\x34', 0b1000), nzTpIcepk0o8('\x30' + chr(149 - 38) + '\x31' + '\060' + chr(1373 - 1321), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b100010 + 0o115) + chr(51) + '\061', ord("\x08")), nzTpIcepk0o8(chr(1475 - 1427) + chr(0b1001000 + 0o47) + chr(0b110010) + chr(0b101100 + 0o13) + chr(0b111 + 0o57), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(51) + '\x35' + chr(0b10001 + 0o37), 0o10), nzTpIcepk0o8(chr(0b1001 + 0o47) + chr(0b1001100 + 0o43) + chr(51) + chr(0b110010) + '\x34', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(3779 - 3668) + chr(0b110011) + chr(0b110100) + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(0b100 + 0o54) + chr(0b1100 + 0o143) + chr(0b10001 + 0o40) + '\x35' + chr(0b110110), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + '\x34' + '\x30', 0o10), nzTpIcepk0o8(chr(2302 - 2254) + chr(0b1101110 + 0o1) + chr(50) + chr(54) + '\061', 0o10), nzTpIcepk0o8('\x30' + chr(8845 - 8734) + '\061' + '\x35' + '\066', 8), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110001) + chr(0b110100) + chr(52), 21791 - 21783), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110001) + '\064' + chr(53), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1100101 + 0o12) + '\061' + chr(135 - 84) + chr(0b110110 + 0o0), ord("\x08")), nzTpIcepk0o8(chr(908 - 860) + '\157' + chr(0b110010) + chr(0b111 + 0o55) + '\x31', 8), nzTpIcepk0o8(chr(399 - 351) + chr(5003 - 4892) + '\062' + chr(0b101001 + 0o15) + chr(0b100100 + 0o23), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + '\x33' + chr(168 - 120) + chr(545 - 493), 46757 - 46749), nzTpIcepk0o8(chr(0b1101 + 0o43) + chr(111) + chr(50) + '\065' + chr(49), 27499 - 27491), nzTpIcepk0o8('\x30' + chr(4654 - 4543) + chr(0b110 + 0o53) + '\x30' + '\x37', 0b1000), nzTpIcepk0o8('\x30' + chr(3227 - 3116) + '\062' + chr(0b10010 + 0o41) + '\060', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(3317 - 3206) + chr(51) + chr(0b100110 + 0o16) + chr(176 - 121), 0o10), nzTpIcepk0o8(chr(0b10010 + 0o36) + chr(111) + '\x31' + chr(830 - 779) + chr(2971 - 2916), 0o10), nzTpIcepk0o8(chr(0b0 + 0o60) + '\157' + chr(0b110010) + '\060' + chr(0b100 + 0o55), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(0b101010 + 0o10) + '\x37' + chr(50), 0o10), nzTpIcepk0o8(chr(0b101001 + 0o7) + '\x6f' + '\063' + '\x33' + '\066', 6489 - 6481)][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + chr(4042 - 3931) + '\x35' + chr(0b110000), 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'!'), chr(0b100110 + 0o76) + chr(3050 - 2949) + '\143' + chr(111) + chr(0b1100100) + '\145')(chr(117) + chr(0b1110100) + chr(0b1100110) + chr(886 - 841) + chr(56)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def yOMbGoSlq_Ym(hXMPsSrOQzbh, QYodcsDtoGq7, uV9iBiw0y_Mp):
if uV9iBiw0y_Mp is None:
return None
NA_VpzbKiZPN = roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'ag\xfa\xeep>\xc8}\x1b_\x8d\xbd\xad'), chr(0b110011 + 0o61) + chr(8314 - 8213) + chr(99) + '\157' + chr(0b0 + 0o144) + chr(6658 - 6557))(chr(9595 - 9478) + chr(116) + chr(0b11 + 0o143) + chr(0b101101) + chr(0b111000)).q33KG3foQ_CJ(QYodcsDtoGq7), lambda bI5jsQ9OkQtj: bI5jsQ9OkQtj)
return NA_VpzbKiZPN(uV9iBiw0y_Mp) |
robgolding/tasklib | tasklib/serializing.py | SerializingObject.datetime_normalizer | def datetime_normalizer(self, value):
"""
Normalizes date/datetime value (considered to come from user input)
to localized datetime value. Following conversions happen:
naive date -> localized datetime with the same date, and time=midnight
naive datetime -> localized datetime with the same value
localized datetime -> localized datetime (no conversion)
"""
if (
isinstance(value, datetime.date)
and not isinstance(value, datetime.datetime)
):
# Convert to local midnight
value_full = datetime.datetime.combine(value, datetime.time.min)
localized = local_zone.localize(value_full)
elif isinstance(value, datetime.datetime):
if value.tzinfo is None:
# Convert to localized datetime object
localized = local_zone.localize(value)
else:
# If the value is already localized, there is no need to change
# time zone at this point. Also None is a valid value too.
localized = value
elif isinstance(value, six.string_types):
localized = self.backend.convert_datetime_string(value)
else:
raise ValueError("Provided value could not be converted to "
"datetime, its type is not supported: {}"
.format(type(value)))
return localized | python | def datetime_normalizer(self, value):
"""
Normalizes date/datetime value (considered to come from user input)
to localized datetime value. Following conversions happen:
naive date -> localized datetime with the same date, and time=midnight
naive datetime -> localized datetime with the same value
localized datetime -> localized datetime (no conversion)
"""
if (
isinstance(value, datetime.date)
and not isinstance(value, datetime.datetime)
):
# Convert to local midnight
value_full = datetime.datetime.combine(value, datetime.time.min)
localized = local_zone.localize(value_full)
elif isinstance(value, datetime.datetime):
if value.tzinfo is None:
# Convert to localized datetime object
localized = local_zone.localize(value)
else:
# If the value is already localized, there is no need to change
# time zone at this point. Also None is a valid value too.
localized = value
elif isinstance(value, six.string_types):
localized = self.backend.convert_datetime_string(value)
else:
raise ValueError("Provided value could not be converted to "
"datetime, its type is not supported: {}"
.format(type(value)))
return localized | [
"def",
"datetime_normalizer",
"(",
"self",
",",
"value",
")",
":",
"if",
"(",
"isinstance",
"(",
"value",
",",
"datetime",
".",
"date",
")",
"and",
"not",
"isinstance",
"(",
"value",
",",
"datetime",
".",
"datetime",
")",
")",
":",
"# Convert to local midnight",
"value_full",
"=",
"datetime",
".",
"datetime",
".",
"combine",
"(",
"value",
",",
"datetime",
".",
"time",
".",
"min",
")",
"localized",
"=",
"local_zone",
".",
"localize",
"(",
"value_full",
")",
"elif",
"isinstance",
"(",
"value",
",",
"datetime",
".",
"datetime",
")",
":",
"if",
"value",
".",
"tzinfo",
"is",
"None",
":",
"# Convert to localized datetime object",
"localized",
"=",
"local_zone",
".",
"localize",
"(",
"value",
")",
"else",
":",
"# If the value is already localized, there is no need to change",
"# time zone at this point. Also None is a valid value too.",
"localized",
"=",
"value",
"elif",
"isinstance",
"(",
"value",
",",
"six",
".",
"string_types",
")",
":",
"localized",
"=",
"self",
".",
"backend",
".",
"convert_datetime_string",
"(",
"value",
")",
"else",
":",
"raise",
"ValueError",
"(",
"\"Provided value could not be converted to \"",
"\"datetime, its type is not supported: {}\"",
".",
"format",
"(",
"type",
"(",
"value",
")",
")",
")",
"return",
"localized"
] | Normalizes date/datetime value (considered to come from user input)
to localized datetime value. Following conversions happen:
naive date -> localized datetime with the same date, and time=midnight
naive datetime -> localized datetime with the same value
localized datetime -> localized datetime (no conversion) | [
"Normalizes",
"date",
"/",
"datetime",
"value",
"(",
"considered",
"to",
"come",
"from",
"user",
"input",
")",
"to",
"localized",
"datetime",
"value",
".",
"Following",
"conversions",
"happen",
":"
] | 0ad882377639865283021041f19add5aeb10126a | https://github.com/robgolding/tasklib/blob/0ad882377639865283021041f19add5aeb10126a/tasklib/serializing.py#L214-L246 | train | Normalizes date and datetime values to localized datetime values. | GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ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PAcezIXzQNA,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(1113 - 1065) + chr(111) + chr(0b110001) + '\x30' + chr(0b101111 + 0o3), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110111) + chr(0b110110), 0o10), nzTpIcepk0o8('\x30' + chr(0b111100 + 0o63) + chr(0b110001) + chr(2212 - 2159) + chr(0b1 + 0o57), 0b1000), nzTpIcepk0o8(chr(0b10011 + 0o35) + chr(5696 - 5585) + chr(2455 - 2405) + '\x31', 0b1000), nzTpIcepk0o8(chr(1681 - 1633) + chr(0b10111 + 0o130) + '\063' + chr(0b110011 + 0o3) + chr(0b1111 + 0o46), 0b1000), nzTpIcepk0o8('\060' + chr(0b110100 + 0o73) + chr(1695 - 1644) + chr(0b110010) + '\064', 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(2208 - 2153) + '\061', 0o10), nzTpIcepk0o8(chr(1507 - 1459) + '\157' + chr(770 - 719) + chr(728 - 674) + chr(0b110100), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b10000 + 0o42) + chr(0b101110 + 0o10) + chr(53), 0o10), nzTpIcepk0o8(chr(0b10110 + 0o32) + '\x6f' + chr(0b110010) + chr(624 - 569) + chr(0b110011), 0o10), nzTpIcepk0o8('\060' + chr(0b1011111 + 0o20) + '\062' + '\x36' + chr(50), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110101) + '\x31', 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(1908 - 1857) + '\x32' + chr(2277 - 2229), 0b1000), nzTpIcepk0o8(chr(0b10111 + 0o31) + '\157' + chr(51) + '\063', 0o10), nzTpIcepk0o8(chr(0b100111 + 0o11) + chr(0b101111 + 0o100) + chr(0b100011 + 0o24) + '\063', 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b10111 + 0o32) + chr(55), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b10101 + 0o35) + chr(49) + chr(49), 0o10), nzTpIcepk0o8(chr(0b1110 + 0o42) + chr(111) + '\x35' + chr(2200 - 2151), 8), nzTpIcepk0o8(chr(48) + chr(0b1000001 + 0o56) + '\x31' + chr(52) + chr(1826 - 1777), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b110 + 0o151) + chr(51) + '\066' + chr(51), 0b1000), nzTpIcepk0o8('\x30' + chr(3494 - 3383) + '\062' + chr(0b110000) + chr(1828 - 1780), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(6096 - 5985) + chr(0b110110) + '\x34', 0b1000), nzTpIcepk0o8(chr(48) + chr(8615 - 8504) + '\061' + '\067' + chr(0b1 + 0o60), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(2857 - 2746) + chr(51) + chr(2516 - 2465) + '\065', 44008 - 44000), nzTpIcepk0o8(chr(0b11010 + 0o26) + chr(0b1101111) + '\063' + chr(1964 - 1910) + chr(0b110000), 0b1000), nzTpIcepk0o8(chr(0b101001 + 0o7) + chr(0b1101111) + chr(2182 - 2128) + chr(55), 61071 - 61063), nzTpIcepk0o8('\x30' + chr(111) + '\062' + chr(53) + chr(51), 19863 - 19855), nzTpIcepk0o8('\x30' + '\157' + chr(745 - 695) + '\x37' + '\x34', 1951 - 1943), nzTpIcepk0o8(chr(0b10110 + 0o32) + '\157' + chr(0b110001) + chr(0b1011 + 0o45) + chr(1139 - 1084), 0o10), nzTpIcepk0o8(chr(2284 - 2236) + '\157' + chr(1845 - 1794) + chr(2079 - 2031) + chr(0b10001 + 0o37), 11008 - 11000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110010) + '\062' + chr(53), 54652 - 54644), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\066', ord("\x08")), nzTpIcepk0o8(chr(0b0 + 0o60) + chr(0b1101111) + '\x33' + '\x37' + chr(0b11100 + 0o30), 0o10), nzTpIcepk0o8(chr(0b11110 + 0o22) + '\x6f' + '\062' + chr(1174 - 1122) + chr(0b110101), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x32' + '\x37' + chr(0b110001), 13340 - 13332), nzTpIcepk0o8('\060' + chr(0b100110 + 0o111) + chr(0b110100) + chr(0b10111 + 0o35), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1001011 + 0o44) + '\x32' + '\x34' + chr(0b110100), 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(49) + '\066' + chr(55), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(1899 - 1848) + '\x30' + chr(1122 - 1073), 0b1000), nzTpIcepk0o8('\x30' + chr(9858 - 9747) + chr(0b10101 + 0o36) + '\062' + chr(53), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b100011 + 0o15) + '\x6f' + chr(53) + chr(0b110000), ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'l'), chr(0b110100 + 0o60) + chr(0b10010 + 0o123) + chr(269 - 170) + chr(0b1101111) + chr(5858 - 5758) + chr(0b1001111 + 0o26))(chr(0b1110101) + chr(0b1110100) + '\x66' + chr(0b101101) + chr(0b10100 + 0o44)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def b3KCsx1Ry4Ib(hXMPsSrOQzbh, uV9iBiw0y_Mp):
if suIjIS24Zkqw(uV9iBiw0y_Mp, roI3spqORKae(pGZg2NXRxBup, roI3spqORKae(ES5oEprVxulp(b'\x13\n2x\xb1\x97]\x87\x86\xdc\xe7{'), chr(0b1100100) + '\x65' + '\143' + '\157' + '\144' + chr(101))('\x75' + chr(116) + '\x66' + chr(0b101101) + chr(56)))) and (not suIjIS24Zkqw(uV9iBiw0y_Mp, roI3spqORKae(pGZg2NXRxBup, roI3spqORKae(ES5oEprVxulp(b'2y2v\xc7\x9aa\xa6\xcd\xf9\xc7Y'), '\144' + '\145' + '\x63' + chr(0b1101111) + chr(100) + chr(101))(chr(117) + '\x74' + '\x66' + chr(0b101001 + 0o4) + chr(0b111000))))):
qXcKPTr6hK7s = pGZg2NXRxBup.datetime._M9ZVjObuh38(uV9iBiw0y_Mp, pGZg2NXRxBup.time.XURpmPuEWCNF)
eNEVmsbcXnRJ = IYCqQ8m5y5XJ.localize(qXcKPTr6hK7s)
elif suIjIS24Zkqw(uV9iBiw0y_Mp, roI3spqORKae(pGZg2NXRxBup, roI3spqORKae(ES5oEprVxulp(b'2y2v\xc7\x9aa\xa6\xcd\xf9\xc7Y'), '\144' + chr(0b1100101) + chr(0b1100011) + '\157' + '\144' + '\145')(chr(0b1011101 + 0o30) + chr(0b1000100 + 0o60) + chr(990 - 888) + '\x2d' + '\x38'))):
if roI3spqORKae(uV9iBiw0y_Mp, roI3spqORKae(ES5oEprVxulp(b'6D\x01\x7f\x93\xbb'), chr(7921 - 7821) + chr(1071 - 970) + chr(0b1100011) + chr(0b1101111) + '\x64' + chr(0b1100101))(chr(0b1110101) + chr(116) + '\x66' + '\055' + chr(2302 - 2246))) is None:
eNEVmsbcXnRJ = IYCqQ8m5y5XJ.localize(uV9iBiw0y_Mp)
else:
eNEVmsbcXnRJ = uV9iBiw0y_Mp
elif suIjIS24Zkqw(uV9iBiw0y_Mp, roI3spqORKae(YVS_F7_wWn_o, roI3spqORKae(ES5oEprVxulp(b'1J\x1ax\x9b\xb3f\x80\xcc\xcb\xd7Z'), chr(0b1010011 + 0o21) + chr(101) + '\x63' + chr(0b1101111) + chr(0b1011110 + 0o6) + '\145')(chr(1036 - 919) + chr(12743 - 12627) + chr(2385 - 2283) + chr(463 - 418) + chr(0b111000)))):
eNEVmsbcXnRJ = hXMPsSrOQzbh.backend.convert_datetime_string(uV9iBiw0y_Mp)
else:
raise WbNHlDKpyPtQ(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\x12L\x07g\x9c\xb0\\\x90\x95\xcd\xd3E\xa5~\x1bl\xe6\\\r\x97\xa0Z\x16\xa9\xd0U\xce\x9c$\xaf\xfbp\x99\xd7\xcdA\xc0W\xb5\xbabZ\te\x90\xa0P\x99\xd0\x97\x92@\xa4h\x1b{\xf0Y\x04\xd3\xe9GY\xb3\x9fC\x8b\xcf2\xb0\xe5i\x8e\xd1\xdc@\x9eW\xba\xa8'), chr(100) + chr(101) + '\x63' + chr(0b1101111) + '\x64' + chr(0b1100101))('\165' + '\x74' + chr(1785 - 1683) + chr(0b11010 + 0o23) + '\070'), roI3spqORKae(ES5oEprVxulp(b'3\r[Z\xb2\xe7_\x9b\xe4\xe4\xf1c'), '\144' + chr(0b1100101) + chr(938 - 839) + chr(8612 - 8501) + '\144' + chr(8597 - 8496))('\x75' + chr(116) + chr(102) + chr(45) + chr(0b111000)))(MJ07XsN5uFgW(uV9iBiw0y_Mp)))
return eNEVmsbcXnRJ |
robgolding/tasklib | tasklib/task.py | TaskResource._update_data | def _update_data(self, data, update_original=False, remove_missing=False):
"""
Low level update of the internal _data dict. Data which are coming as
updates should already be serialized. If update_original is True, the
original_data dict is updated as well.
"""
self._data.update(dict((key, self._deserialize(key, value))
for key, value in data.items()))
# In certain situations, we want to treat missing keys as removals
if remove_missing:
for key in set(self._data.keys()) - set(data.keys()):
self._data[key] = None
if update_original:
self._original_data = copy.deepcopy(self._data) | python | def _update_data(self, data, update_original=False, remove_missing=False):
"""
Low level update of the internal _data dict. Data which are coming as
updates should already be serialized. If update_original is True, the
original_data dict is updated as well.
"""
self._data.update(dict((key, self._deserialize(key, value))
for key, value in data.items()))
# In certain situations, we want to treat missing keys as removals
if remove_missing:
for key in set(self._data.keys()) - set(data.keys()):
self._data[key] = None
if update_original:
self._original_data = copy.deepcopy(self._data) | [
"def",
"_update_data",
"(",
"self",
",",
"data",
",",
"update_original",
"=",
"False",
",",
"remove_missing",
"=",
"False",
")",
":",
"self",
".",
"_data",
".",
"update",
"(",
"dict",
"(",
"(",
"key",
",",
"self",
".",
"_deserialize",
"(",
"key",
",",
"value",
")",
")",
"for",
"key",
",",
"value",
"in",
"data",
".",
"items",
"(",
")",
")",
")",
"# In certain situations, we want to treat missing keys as removals",
"if",
"remove_missing",
":",
"for",
"key",
"in",
"set",
"(",
"self",
".",
"_data",
".",
"keys",
"(",
")",
")",
"-",
"set",
"(",
"data",
".",
"keys",
"(",
")",
")",
":",
"self",
".",
"_data",
"[",
"key",
"]",
"=",
"None",
"if",
"update_original",
":",
"self",
".",
"_original_data",
"=",
"copy",
".",
"deepcopy",
"(",
"self",
".",
"_data",
")"
] | Low level update of the internal _data dict. Data which are coming as
updates should already be serialized. If update_original is True, the
original_data dict is updated as well. | [
"Low",
"level",
"update",
"of",
"the",
"internal",
"_data",
"dict",
".",
"Data",
"which",
"are",
"coming",
"as",
"updates",
"should",
"already",
"be",
"serialized",
".",
"If",
"update_original",
"is",
"True",
"the",
"original_data",
"dict",
"is",
"updated",
"as",
"well",
"."
] | 0ad882377639865283021041f19add5aeb10126a | https://github.com/robgolding/tasklib/blob/0ad882377639865283021041f19add5aeb10126a/tasklib/task.py#L69-L84 | train | Internal method to update internal data 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,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(chr(969 - 921) + chr(0b1101111) + chr(0b110011) + chr(2779 - 2726), 0o10), nzTpIcepk0o8(chr(1416 - 1368) + '\157' + chr(53) + '\x37', 55822 - 55814), nzTpIcepk0o8(chr(92 - 44) + '\157' + '\061' + '\x35' + chr(0b101100 + 0o11), 0o10), nzTpIcepk0o8(chr(0b11000 + 0o30) + '\157' + chr(0b11010 + 0o27) + chr(0b1100 + 0o52), 0o10), nzTpIcepk0o8(chr(0b10101 + 0o33) + chr(0b1101111) + chr(0b110111 + 0o0), 56375 - 56367), nzTpIcepk0o8(chr(382 - 334) + chr(0b1000100 + 0o53) + chr(49) + chr(0b11001 + 0o27) + chr(576 - 525), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(0b101111 + 0o2) + chr(2170 - 2115) + chr(0b11 + 0o61), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110100) + chr(53), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + '\x31' + chr(0b11000 + 0o31) + '\060', 0o10), nzTpIcepk0o8(chr(48) + chr(5704 - 5593) + chr(0b110001) + '\x32' + chr(0b100 + 0o63), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1001 + 0o146) + chr(0b11101 + 0o25) + chr(0b110111) + chr(1738 - 1685), 0b1000), nzTpIcepk0o8('\060' + chr(8235 - 8124) + chr(0b110001) + chr(1871 - 1821) + chr(0b110111), 8), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b1001 + 0o54) + '\x36', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(5288 - 5177) + chr(398 - 348) + '\x35' + chr(0b110100), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b110101 + 0o72) + '\x37' + chr(0b10 + 0o62), ord("\x08")), nzTpIcepk0o8(chr(0b101 + 0o53) + '\x6f' + chr(0b1101 + 0o44) + '\061' + chr(148 - 100), 8), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(50) + chr(401 - 346) + chr(2171 - 2116), 60879 - 60871), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110011) + chr(0b110100) + chr(610 - 555), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(1351 - 1301) + chr(0b101 + 0o55), 0b1000), nzTpIcepk0o8(chr(48) + chr(6041 - 5930) + chr(0b110001) + '\061', 0b1000), nzTpIcepk0o8('\060' + chr(111) + '\062' + '\x37', ord("\x08")), nzTpIcepk0o8(chr(0b10011 + 0o35) + chr(0b1010110 + 0o31) + '\061' + chr(0b110001), 8), nzTpIcepk0o8(chr(403 - 355) + chr(2755 - 2644) + chr(53) + chr(385 - 337), 48922 - 48914), nzTpIcepk0o8('\x30' + '\157' + chr(52) + chr(0b110100), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + '\x33' + '\060' + '\060', 0b1000), nzTpIcepk0o8(chr(0b10000 + 0o40) + chr(0b100000 + 0o117) + chr(0b110110) + chr(49), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(1378 - 1329) + chr(1014 - 965) + chr(50), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101010 + 0o5) + chr(0b10001 + 0o43) + '\060', 4903 - 4895), nzTpIcepk0o8('\060' + chr(0b1100010 + 0o15) + chr(0b110010), 36235 - 36227), nzTpIcepk0o8(chr(0b10001 + 0o37) + chr(1916 - 1805) + '\062' + chr(48) + chr(0b10110 + 0o37), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b100011 + 0o114) + chr(1196 - 1141) + chr(48), 18338 - 18330), nzTpIcepk0o8(chr(0b10000 + 0o40) + chr(0b1101111) + chr(0b11010 + 0o31) + chr(0b110011) + chr(0b1000 + 0o56), 0o10), nzTpIcepk0o8(chr(0b11101 + 0o23) + chr(4471 - 4360) + chr(1997 - 1948) + chr(0b10101 + 0o42) + '\x37', 33759 - 33751), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(50) + chr(0b1 + 0o63) + chr(52), 0b1000), nzTpIcepk0o8(chr(0b10110 + 0o32) + '\157' + '\061' + '\x30' + chr(53), 27843 - 27835), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(49) + '\064' + chr(2391 - 2341), 0o10), nzTpIcepk0o8(chr(0b1000 + 0o50) + chr(111) + chr(0b110011) + '\x35' + chr(0b110000 + 0o2), 0b1000), nzTpIcepk0o8('\060' + chr(0b1001101 + 0o42) + chr(0b101101 + 0o4) + chr(0b10100 + 0o42) + chr(0b110100), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(51) + chr(0b110001) + '\x33', 49280 - 49272), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x36' + chr(0b101111 + 0o5), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(2010 - 1962) + chr(12069 - 11958) + '\x35' + '\060', 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'3'), '\144' + '\x65' + chr(0b1000010 + 0o41) + chr(0b1101111) + chr(100) + chr(2191 - 2090))(chr(5487 - 5370) + chr(116) + chr(891 - 789) + chr(592 - 547) + chr(0b11011 + 0o35)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def pbf1R09WnqAX(hXMPsSrOQzbh, FfKOThdpoDTb, R7tpWKWDFXvn=nzTpIcepk0o8('\x30' + '\157' + chr(0b110000), 30959 - 30951), iGy_eUcvBX5M=nzTpIcepk0o8('\060' + chr(0b100110 + 0o111) + chr(0b11000 + 0o30), 8)):
roI3spqORKae(hXMPsSrOQzbh._data, roI3spqORKae(ES5oEprVxulp(b'Wp\x06<N\x1a>\x14+2\xcc9'), '\144' + chr(0b1000100 + 0o41) + '\143' + '\157' + chr(100) + chr(0b111100 + 0o51))(chr(0b1110101) + chr(0b10001 + 0o143) + chr(0b1100110) + chr(564 - 519) + chr(0b110000 + 0o10)))(znjnJWK64FDT(((QYodcsDtoGq7, roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'NZ)Ic\x06-Q/\x13\xee$'), chr(100) + chr(0b110001 + 0o64) + '\x63' + chr(0b1101111) + chr(9007 - 8907) + '\x65')(chr(7352 - 7235) + chr(116) + chr(0b1100110) + chr(1471 - 1426) + chr(56)))(QYodcsDtoGq7, uV9iBiw0y_Mp)) for (QYodcsDtoGq7, uV9iBiw0y_Mp) in roI3spqORKae(FfKOThdpoDTb, roI3spqORKae(ES5oEprVxulp(b'Dp\x03@B94\x11{!\xe5>'), chr(100) + chr(101) + chr(3362 - 3263) + chr(0b1101111) + '\x64' + '\x65')(chr(117) + '\164' + chr(0b1100110) + chr(0b101101) + '\070'))())))
if iGy_eUcvBX5M:
for QYodcsDtoGq7 in Bvi71nNyvlqO(roI3spqORKae(hXMPsSrOQzbh._data, roI3spqORKae(ES5oEprVxulp(b'vJ\x14}'), '\144' + chr(0b1100 + 0o131) + '\143' + chr(7137 - 7026) + '\144' + '\x65')('\165' + '\164' + chr(8765 - 8663) + '\055' + '\x38'))()) - Bvi71nNyvlqO(roI3spqORKae(FfKOThdpoDTb, roI3spqORKae(ES5oEprVxulp(b'vJ\x14}'), chr(100) + chr(0b1001101 + 0o30) + chr(0b1100011) + chr(0b1001100 + 0o43) + '\x64' + chr(6672 - 6571))('\165' + '\164' + chr(0b1100110) + chr(45) + '\x38'))()):
hXMPsSrOQzbh.Fb5XNYcWu0O5[QYodcsDtoGq7] = None
if R7tpWKWDFXvn:
hXMPsSrOQzbh.CxH4Qae0KX2l = aZTCj4v5QdfO.deepcopy(hXMPsSrOQzbh.Fb5XNYcWu0O5) |
robgolding/tasklib | tasklib/task.py | TaskResource.export_data | def export_data(self):
"""
Exports current data contained in the Task as JSON
"""
# We need to remove spaces for TW-1504, use custom separators
data_tuples = ((key, self._serialize(key, value))
for key, value in six.iteritems(self._data))
# Empty string denotes empty serialized value, we do not want
# to pass that to TaskWarrior.
data_tuples = filter(lambda t: t[1] is not '', data_tuples)
data = dict(data_tuples)
return json.dumps(data, separators=(',', ':')) | python | def export_data(self):
"""
Exports current data contained in the Task as JSON
"""
# We need to remove spaces for TW-1504, use custom separators
data_tuples = ((key, self._serialize(key, value))
for key, value in six.iteritems(self._data))
# Empty string denotes empty serialized value, we do not want
# to pass that to TaskWarrior.
data_tuples = filter(lambda t: t[1] is not '', data_tuples)
data = dict(data_tuples)
return json.dumps(data, separators=(',', ':')) | [
"def",
"export_data",
"(",
"self",
")",
":",
"# We need to remove spaces for TW-1504, use custom separators",
"data_tuples",
"=",
"(",
"(",
"key",
",",
"self",
".",
"_serialize",
"(",
"key",
",",
"value",
")",
")",
"for",
"key",
",",
"value",
"in",
"six",
".",
"iteritems",
"(",
"self",
".",
"_data",
")",
")",
"# Empty string denotes empty serialized value, we do not want",
"# to pass that to TaskWarrior.",
"data_tuples",
"=",
"filter",
"(",
"lambda",
"t",
":",
"t",
"[",
"1",
"]",
"is",
"not",
"''",
",",
"data_tuples",
")",
"data",
"=",
"dict",
"(",
"data_tuples",
")",
"return",
"json",
".",
"dumps",
"(",
"data",
",",
"separators",
"=",
"(",
"','",
",",
"':'",
")",
")"
] | Exports current data contained in the Task as JSON | [
"Exports",
"current",
"data",
"contained",
"in",
"the",
"Task",
"as",
"JSON"
] | 0ad882377639865283021041f19add5aeb10126a | https://github.com/robgolding/tasklib/blob/0ad882377639865283021041f19add5aeb10126a/tasklib/task.py#L117-L130 | train | Exports current data contained in the Task as JSON
| GiP5xwVCF98Z,B3L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9sfj2=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(273 - 225) + '\x6f' + chr(52) + chr(52), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + '\x32' + '\067' + chr(55), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(8805 - 8694) + '\066', ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + '\x32' + chr(0b110011) + chr(2038 - 1983), 0o10), nzTpIcepk0o8(chr(0b110000 + 0o0) + chr(0b1001011 + 0o44) + '\063' + '\x37' + chr(0b11011 + 0o33), 0b1000), nzTpIcepk0o8('\x30' + chr(4372 - 4261) + chr(0b1110 + 0o44) + chr(592 - 538) + chr(48), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b111011 + 0o64) + '\x34', 0o10), nzTpIcepk0o8('\x30' + chr(0b1011100 + 0o23) + chr(51) + '\060' + chr(0b110000), 3254 - 3246), nzTpIcepk0o8(chr(1639 - 1591) + chr(0b1101111) + chr(0b1110 + 0o44) + chr(0b110001) + chr(0b101110 + 0o2), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + '\061' + chr(54) + chr(73 - 23), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b11100 + 0o27) + chr(0b1000 + 0o57) + '\066', 8), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110001) + chr(0b110001 + 0o1) + chr(1918 - 1865), 0b1000), nzTpIcepk0o8(chr(0b1110 + 0o42) + chr(111) + '\063' + chr(0b11000 + 0o36) + '\x33', 0o10), nzTpIcepk0o8('\060' + '\x6f' + '\x31' + chr(0b11101 + 0o24) + '\x32', 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b10110 + 0o33) + '\066', 0b1000), nzTpIcepk0o8(chr(0b1001 + 0o47) + '\157' + chr(49) + chr(0b1110 + 0o42) + chr(524 - 472), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + '\062' + '\061', 0b1000), nzTpIcepk0o8(chr(48) + chr(11080 - 10969) + chr(2283 - 2231), 8), nzTpIcepk0o8(chr(48) + chr(0b1001110 + 0o41) + chr(1483 - 1431) + chr(0b110011), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(4559 - 4448) + chr(0b0 + 0o62) + '\063' + chr(51), 0o10), nzTpIcepk0o8('\x30' + chr(2497 - 2386) + '\x33' + chr(52) + '\x31', ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b11001 + 0o31) + chr(55) + chr(0b10000 + 0o41), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110001) + '\x36' + '\062', 8), nzTpIcepk0o8(chr(1944 - 1896) + chr(0b1000 + 0o147) + chr(572 - 522) + chr(0b11000 + 0o30) + chr(55), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1100111 + 0o10) + chr(49) + chr(51) + '\064', ord("\x08")), nzTpIcepk0o8(chr(0b1100 + 0o44) + chr(0b1000101 + 0o52) + chr(0b110011) + chr(760 - 709) + '\063', 0o10), nzTpIcepk0o8('\x30' + '\157' + '\x35' + chr(302 - 254), 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(2761 - 2707), 8), nzTpIcepk0o8('\060' + chr(0b1011100 + 0o23) + '\061' + chr(50) + '\x31', 58286 - 58278), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110010) + chr(55) + chr(48), ord("\x08")), nzTpIcepk0o8(chr(633 - 585) + '\157' + '\065' + chr(0b101111 + 0o2), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1011001 + 0o26) + chr(1034 - 983) + '\060' + chr(53), 16264 - 16256), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(1636 - 1586) + '\x37' + chr(0b100001 + 0o17), 8), nzTpIcepk0o8('\060' + chr(0b1101101 + 0o2) + chr(50) + '\065', 0b1000), nzTpIcepk0o8(chr(2058 - 2010) + chr(0b1101111) + '\066', 8), nzTpIcepk0o8('\060' + chr(0b1010100 + 0o33) + chr(49) + chr(0b110110) + '\x37', ord("\x08")), nzTpIcepk0o8('\060' + chr(1687 - 1576) + chr(51) + '\x34' + chr(0b101111 + 0o2), 8), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110101 + 0o2) + chr(1891 - 1837), 54456 - 54448), nzTpIcepk0o8('\060' + '\157' + chr(50) + '\x34' + chr(48), 0o10), nzTpIcepk0o8(chr(0b11011 + 0o25) + chr(0b100001 + 0o116) + chr(52) + '\x37', 34579 - 34571)][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + chr(12122 - 12011) + chr(53) + chr(1698 - 1650), 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\n'), chr(100) + chr(0b1011000 + 0o15) + '\x63' + '\x6f' + '\144' + '\x65')('\165' + '\x74' + chr(0b0 + 0o146) + chr(45) + chr(56)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def byo6jY8QLCp9(hXMPsSrOQzbh):
Q3PLp1Z31Oii = ((QYodcsDtoGq7, hXMPsSrOQzbh._serialize(QYodcsDtoGq7, uV9iBiw0y_Mp)) for (QYodcsDtoGq7, uV9iBiw0y_Mp) in YVS_F7_wWn_o.tcSkjcrLksk1(hXMPsSrOQzbh.Fb5XNYcWu0O5))
Q3PLp1Z31Oii = qEahrGEDF7Tq(lambda h3Vc_4wxEbgd: h3Vc_4wxEbgd[nzTpIcepk0o8(chr(0b11111 + 0o21) + '\x6f' + '\061', 55047 - 55039)] is not roI3spqORKae(ES5oEprVxulp(b''), '\144' + chr(101) + chr(5357 - 5258) + chr(8089 - 7978) + '\x64' + '\145')(chr(0b1110101) + chr(0b1110100) + chr(0b1100110) + chr(66 - 21) + chr(56)), Q3PLp1Z31Oii)
FfKOThdpoDTb = znjnJWK64FDT(Q3PLp1Z31Oii)
return roI3spqORKae(LNUKEwZDIbyb, roI3spqORKae(ES5oEprVxulp(b'~\xd5a\xf3\x93\xdd<\xb5\xed\x1c\x95\x16'), chr(100) + chr(1193 - 1092) + '\x63' + chr(0b1101111) + chr(6625 - 6525) + '\145')(chr(0b1100 + 0o151) + chr(0b1110100) + chr(3366 - 3264) + chr(45) + chr(56)))(FfKOThdpoDTb, separators=(roI3spqORKae(ES5oEprVxulp(b'\x08'), chr(0b1100100) + chr(101) + '\143' + '\x6f' + chr(100) + chr(101))('\165' + chr(0b1110100) + chr(0b1101 + 0o131) + '\x2d' + chr(56)), roI3spqORKae(ES5oEprVxulp(b'\x1e'), chr(100) + chr(101) + chr(0b110011 + 0o60) + chr(0b1101111) + chr(0b1100100) + chr(8292 - 8191))('\x75' + chr(0b110001 + 0o103) + chr(0b101000 + 0o76) + chr(186 - 141) + chr(798 - 742)))) |
robgolding/tasklib | tasklib/task.py | Task.from_input | def from_input(cls, input_file=sys.stdin, modify=None, backend=None):
"""
Creates a Task object, directly from the stdin, by reading one line.
If modify=True, two lines are used, first line interpreted as the
original state of the Task object, and second line as its new,
modified value. This is consistent with the TaskWarrior's hook
system.
Object created by this method should not be saved, deleted
or refreshed, as t could create a infinite loop. For this
reason, TaskWarrior instance is set to None.
Input_file argument can be used to specify the input file,
but defaults to sys.stdin.
"""
# Detect the hook type if not given directly
name = os.path.basename(sys.argv[0])
modify = name.startswith('on-modify') if modify is None else modify
# Create the TaskWarrior instance if none passed
if backend is None:
backends = importlib.import_module('tasklib.backends')
hook_parent_dir = os.path.dirname(os.path.dirname(sys.argv[0]))
backend = backends.TaskWarrior(data_location=hook_parent_dir)
# TaskWarrior instance is set to None
task = cls(backend)
# Load the data from the input
task._load_data(json.loads(input_file.readline().strip()))
# If this is a on-modify event, we are provided with additional
# line of input, which provides updated data
if modify:
task._update_data(json.loads(input_file.readline().strip()),
remove_missing=True)
return task | python | def from_input(cls, input_file=sys.stdin, modify=None, backend=None):
"""
Creates a Task object, directly from the stdin, by reading one line.
If modify=True, two lines are used, first line interpreted as the
original state of the Task object, and second line as its new,
modified value. This is consistent with the TaskWarrior's hook
system.
Object created by this method should not be saved, deleted
or refreshed, as t could create a infinite loop. For this
reason, TaskWarrior instance is set to None.
Input_file argument can be used to specify the input file,
but defaults to sys.stdin.
"""
# Detect the hook type if not given directly
name = os.path.basename(sys.argv[0])
modify = name.startswith('on-modify') if modify is None else modify
# Create the TaskWarrior instance if none passed
if backend is None:
backends = importlib.import_module('tasklib.backends')
hook_parent_dir = os.path.dirname(os.path.dirname(sys.argv[0]))
backend = backends.TaskWarrior(data_location=hook_parent_dir)
# TaskWarrior instance is set to None
task = cls(backend)
# Load the data from the input
task._load_data(json.loads(input_file.readline().strip()))
# If this is a on-modify event, we are provided with additional
# line of input, which provides updated data
if modify:
task._update_data(json.loads(input_file.readline().strip()),
remove_missing=True)
return task | [
"def",
"from_input",
"(",
"cls",
",",
"input_file",
"=",
"sys",
".",
"stdin",
",",
"modify",
"=",
"None",
",",
"backend",
"=",
"None",
")",
":",
"# Detect the hook type if not given directly",
"name",
"=",
"os",
".",
"path",
".",
"basename",
"(",
"sys",
".",
"argv",
"[",
"0",
"]",
")",
"modify",
"=",
"name",
".",
"startswith",
"(",
"'on-modify'",
")",
"if",
"modify",
"is",
"None",
"else",
"modify",
"# Create the TaskWarrior instance if none passed",
"if",
"backend",
"is",
"None",
":",
"backends",
"=",
"importlib",
".",
"import_module",
"(",
"'tasklib.backends'",
")",
"hook_parent_dir",
"=",
"os",
".",
"path",
".",
"dirname",
"(",
"os",
".",
"path",
".",
"dirname",
"(",
"sys",
".",
"argv",
"[",
"0",
"]",
")",
")",
"backend",
"=",
"backends",
".",
"TaskWarrior",
"(",
"data_location",
"=",
"hook_parent_dir",
")",
"# TaskWarrior instance is set to None",
"task",
"=",
"cls",
"(",
"backend",
")",
"# Load the data from the input",
"task",
".",
"_load_data",
"(",
"json",
".",
"loads",
"(",
"input_file",
".",
"readline",
"(",
")",
".",
"strip",
"(",
")",
")",
")",
"# If this is a on-modify event, we are provided with additional",
"# line of input, which provides updated data",
"if",
"modify",
":",
"task",
".",
"_update_data",
"(",
"json",
".",
"loads",
"(",
"input_file",
".",
"readline",
"(",
")",
".",
"strip",
"(",
")",
")",
",",
"remove_missing",
"=",
"True",
")",
"return",
"task"
] | Creates a Task object, directly from the stdin, by reading one line.
If modify=True, two lines are used, first line interpreted as the
original state of the Task object, and second line as its new,
modified value. This is consistent with the TaskWarrior's hook
system.
Object created by this method should not be saved, deleted
or refreshed, as t could create a infinite loop. For this
reason, TaskWarrior instance is set to None.
Input_file argument can be used to specify the input file,
but defaults to sys.stdin. | [
"Creates",
"a",
"Task",
"object",
"directly",
"from",
"the",
"stdin",
"by",
"reading",
"one",
"line",
".",
"If",
"modify",
"=",
"True",
"two",
"lines",
"are",
"used",
"first",
"line",
"interpreted",
"as",
"the",
"original",
"state",
"of",
"the",
"Task",
"object",
"and",
"second",
"line",
"as",
"its",
"new",
"modified",
"value",
".",
"This",
"is",
"consistent",
"with",
"the",
"TaskWarrior",
"s",
"hook",
"system",
"."
] | 0ad882377639865283021041f19add5aeb10126a | https://github.com/robgolding/tasklib/blob/0ad882377639865283021041f19add5aeb10126a/tasklib/task.py#L215-L253 | train | Create a Task object from the given input 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,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(chr(0b101110 + 0o2) + chr(0b1101 + 0o142) + chr(50) + '\x31' + chr(2155 - 2101), 4414 - 4406), nzTpIcepk0o8('\060' + chr(0b1011100 + 0o23) + chr(50) + '\061' + chr(49), 5618 - 5610), nzTpIcepk0o8('\x30' + '\x6f' + chr(55) + '\061', ord("\x08")), nzTpIcepk0o8(chr(0b10011 + 0o35) + '\157' + chr(2262 - 2213) + chr(0b110011) + chr(0b110100), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\061' + '\063' + chr(0b11111 + 0o30), 62587 - 62579), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b1101 + 0o46) + '\065' + '\062', 11864 - 11856), nzTpIcepk0o8(chr(1578 - 1530) + '\157' + chr(0b110001 + 0o1) + chr(0b11000 + 0o35) + chr(2368 - 2316), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1001110 + 0o41) + '\063' + chr(1850 - 1798) + chr(1635 - 1580), 32870 - 32862), nzTpIcepk0o8(chr(0b100111 + 0o11) + '\157' + '\x31' + chr(0b110101) + chr(1727 - 1678), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(4828 - 4717) + chr(0b110001) + chr(161 - 112) + chr(890 - 842), 39245 - 39237), nzTpIcepk0o8('\x30' + '\x6f' + '\061' + '\062' + chr(54), 0o10), nzTpIcepk0o8(chr(0b110 + 0o52) + chr(0b1001011 + 0o44) + '\061' + '\x32' + chr(0b110000), 19605 - 19597), nzTpIcepk0o8(chr(0b110000) + chr(4538 - 4427) + chr(50) + chr(1099 - 1045) + chr(51), 51570 - 51562), nzTpIcepk0o8(chr(48) + '\157' + '\x33' + '\x32', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b101000 + 0o107) + chr(0b10 + 0o60) + chr(1207 - 1153) + '\x31', 32795 - 32787), nzTpIcepk0o8(chr(306 - 258) + chr(4056 - 3945) + chr(50) + chr(53) + '\x30', 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(1566 - 1516) + chr(0b110100) + chr(1209 - 1157), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(1726 - 1675) + chr(0b110111) + chr(52), ord("\x08")), nzTpIcepk0o8('\060' + chr(2118 - 2007) + chr(54) + '\x30', 0o10), nzTpIcepk0o8('\060' + chr(491 - 380) + '\063' + chr(0b100 + 0o61), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x32' + chr(0b110001) + chr(48), ord("\x08")), nzTpIcepk0o8(chr(0b11010 + 0o26) + '\x6f' + '\x32' + '\063' + chr(0b100101 + 0o20), 45989 - 45981), nzTpIcepk0o8(chr(883 - 835) + chr(0b10110 + 0o131) + '\062' + '\065' + '\x32', ord("\x08")), nzTpIcepk0o8(chr(199 - 151) + chr(0b1010100 + 0o33) + '\061' + chr(0b110101) + '\062', 41943 - 41935), nzTpIcepk0o8(chr(0b100101 + 0o13) + chr(0b1101111) + chr(53) + chr(49), 43439 - 43431), nzTpIcepk0o8('\x30' + chr(11550 - 11439) + chr(0b110001) + chr(50) + chr(0b110100), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(2262 - 2212) + chr(1708 - 1659) + '\061', 8), nzTpIcepk0o8(chr(0b110000) + chr(0b111 + 0o150) + chr(49) + chr(1325 - 1275) + '\060', 8), nzTpIcepk0o8(chr(988 - 940) + chr(11069 - 10958) + chr(0b11101 + 0o24) + chr(51) + '\060', ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(0b11000 + 0o34) + '\066', 0b1000), nzTpIcepk0o8(chr(1449 - 1401) + '\157' + chr(2221 - 2171) + '\x34' + chr(51), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + '\064' + chr(98 - 47), ord("\x08")), nzTpIcepk0o8(chr(0b101100 + 0o4) + '\x6f' + chr(0b101100 + 0o7) + '\063' + chr(52), 0b1000), nzTpIcepk0o8(chr(839 - 791) + chr(6085 - 5974) + '\061' + chr(54) + '\x32', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(51) + '\x36' + '\066', 0o10), nzTpIcepk0o8(chr(0b1111 + 0o41) + chr(0b1011 + 0o144) + chr(1928 - 1877) + chr(2574 - 2521) + chr(55), 60574 - 60566), nzTpIcepk0o8('\060' + '\x6f' + '\061' + chr(0b1100 + 0o46) + chr(0b110100), 8), nzTpIcepk0o8(chr(1138 - 1090) + chr(111) + '\061' + chr(0b11000 + 0o37) + chr(0b110110), ord("\x08")), nzTpIcepk0o8(chr(0b10 + 0o56) + '\157' + chr(2462 - 2412) + chr(1363 - 1313) + chr(55), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1000101 + 0o52) + '\x36' + chr(53), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + '\x6f' + chr(0b110101) + '\060', 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xa0'), chr(100) + '\145' + '\143' + chr(111) + '\x64' + chr(0b10010 + 0o123))(chr(6039 - 5922) + chr(0b101 + 0o157) + chr(102) + chr(0b101101) + chr(0b10101 + 0o43)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def xA5p0DRGT5Z8(_1vzISbJ_R2i, T0hY8QX6wgXJ=roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\xec\xd3{(\t\xaf\xc6\xa1-\na\n'), chr(5028 - 4928) + '\x65' + chr(99) + chr(111) + chr(100) + '\x65')(chr(0b1100011 + 0o22) + chr(116) + chr(102) + '\055' + '\x38')), HLBdEltdU49J=None, d351Q1xqmRvD=None):
SLVB2BPA_mIe = aHUqKstZLeS6.path.pLvIyXSV7qW5(bpyfpu4kTbwL.ajIDWyXMBa3b[nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b100010 + 0o16), 13144 - 13136)])
HLBdEltdU49J = SLVB2BPA_mIe.startswith(roI3spqORKae(ES5oEprVxulp(b'\xe1\xe7\x1410\x8e\xc5\x81\x10'), '\144' + '\145' + chr(0b1100011) + chr(0b111 + 0o150) + '\x64' + chr(0b1100101))(chr(0b1110101) + chr(0b111111 + 0o65) + chr(0b1001111 + 0o27) + chr(0b101101) + '\x38')) if HLBdEltdU49J is None else HLBdEltdU49J
if d351Q1xqmRvD is None:
oPoXZo_gBMH4 = qbv483j44Ppy.import_module(roI3spqORKae(ES5oEprVxulp(b'\xfa\xe8J73\x83\xce\xc9\x0b)5;\xd6t\xd5\xdb'), chr(0b1100100) + chr(0b1100101) + '\143' + chr(11930 - 11819) + chr(100) + '\145')('\x75' + chr(116) + '\146' + chr(1619 - 1574) + '\x38'))
wdIw52PXnc9Q = aHUqKstZLeS6.path.qu5fsQlGSLfc(aHUqKstZLeS6.path.qu5fsQlGSLfc(bpyfpu4kTbwL.ajIDWyXMBa3b[nzTpIcepk0o8(chr(0b110000) + '\157' + chr(55 - 7), 8)]))
d351Q1xqmRvD = oPoXZo_gBMH4.TaskWarrior(data_location=wdIw52PXnc9Q)
zKIJBwi5o9UC = _1vzISbJ_R2i(d351Q1xqmRvD)
roI3spqORKae(zKIJBwi5o9UC, roI3spqORKae(ES5oEprVxulp(b'\xd1\xe5V=;\xb5\xc8\x86\x1d)'), chr(100) + '\145' + '\143' + '\x6f' + '\x64' + '\x65')(chr(8179 - 8062) + '\x74' + '\146' + '\x2d' + chr(0b111000)))(roI3spqORKae(LNUKEwZDIbyb, roI3spqORKae(ES5oEprVxulp(b'\xc1\xe0X,\x1e\xa7\x98\x85$x\x131'), chr(0b111000 + 0o54) + chr(101) + chr(3979 - 3880) + '\157' + chr(0b1 + 0o143) + chr(0b1100101))(chr(117) + chr(0b1110100) + '\146' + chr(45) + chr(0b101110 + 0o12)))(roI3spqORKae(T0hY8QX6wgXJ.readline(), roI3spqORKae(ES5oEprVxulp(b'\xe5\xedp\x18-\x89\xdb\xbd=\x0b%e'), chr(100) + '\x65' + chr(0b10011 + 0o120) + '\x6f' + '\x64' + chr(661 - 560))(chr(117) + '\x74' + chr(3433 - 3331) + chr(1027 - 982) + chr(1325 - 1269)))()))
if HLBdEltdU49J:
roI3spqORKae(zKIJBwi5o9UC, roI3spqORKae(ES5oEprVxulp(b'\xd1\xfcI8>\x9e\xc9\xb8\r)"1'), chr(100) + chr(0b111 + 0o136) + '\x63' + chr(111) + chr(0b101011 + 0o71) + chr(0b11111 + 0o106))(chr(0b1101010 + 0o13) + chr(116) + '\x66' + chr(0b101101) + chr(0b111 + 0o61)))(roI3spqORKae(LNUKEwZDIbyb, roI3spqORKae(ES5oEprVxulp(b'\xc1\xe0X,\x1e\xa7\x98\x85$x\x131'), '\x64' + chr(0b1100101) + '\x63' + chr(10279 - 10168) + chr(3385 - 3285) + chr(0b110010 + 0o63))(chr(10017 - 9900) + '\x74' + chr(3262 - 3160) + chr(0b1110 + 0o37) + chr(56)))(roI3spqORKae(T0hY8QX6wgXJ.readline(), roI3spqORKae(ES5oEprVxulp(b'\xe5\xedp\x18-\x89\xdb\xbd=\x0b%e'), '\144' + chr(101) + '\143' + chr(0b1101111) + chr(1973 - 1873) + '\x65')('\x75' + '\x74' + chr(9755 - 9653) + chr(0b101101) + chr(0b111000 + 0o0)))()), remove_missing=nzTpIcepk0o8(chr(0b100001 + 0o17) + '\157' + chr(1122 - 1073), ord("\x08")))
return zKIJBwi5o9UC |
robgolding/tasklib | tasklib/task.py | TaskQuerySet.filter | def filter(self, *args, **kwargs):
"""
Returns a new TaskQuerySet with the given filters added.
"""
clone = self._clone()
for f in args:
clone.filter_obj.add_filter(f)
for key, value in kwargs.items():
clone.filter_obj.add_filter_param(key, value)
return clone | python | def filter(self, *args, **kwargs):
"""
Returns a new TaskQuerySet with the given filters added.
"""
clone = self._clone()
for f in args:
clone.filter_obj.add_filter(f)
for key, value in kwargs.items():
clone.filter_obj.add_filter_param(key, value)
return clone | [
"def",
"filter",
"(",
"self",
",",
"*",
"args",
",",
"*",
"*",
"kwargs",
")",
":",
"clone",
"=",
"self",
".",
"_clone",
"(",
")",
"for",
"f",
"in",
"args",
":",
"clone",
".",
"filter_obj",
".",
"add_filter",
"(",
"f",
")",
"for",
"key",
",",
"value",
"in",
"kwargs",
".",
"items",
"(",
")",
":",
"clone",
".",
"filter_obj",
".",
"add_filter_param",
"(",
"key",
",",
"value",
")",
"return",
"clone"
] | Returns a new TaskQuerySet with the given filters added. | [
"Returns",
"a",
"new",
"TaskQuerySet",
"with",
"the",
"given",
"filters",
"added",
"."
] | 0ad882377639865283021041f19add5aeb10126a | https://github.com/robgolding/tasklib/blob/0ad882377639865283021041f19add5aeb10126a/tasklib/task.py#L540-L549 | train | Returns a new TaskQuerySet with the given filters added. | GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,R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v,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' + '\x33' + chr(51) + chr(0b11000 + 0o35), 41359 - 41351), nzTpIcepk0o8(chr(48) + chr(9687 - 9576) + '\x32' + chr(51) + '\062', ord("\x08")), nzTpIcepk0o8(chr(1228 - 1180) + '\x6f' + '\063' + chr(52) + chr(1445 - 1391), 0b1000), nzTpIcepk0o8(chr(867 - 819) + '\157' + chr(0b110001) + chr(1428 - 1378) + chr(54), 0b1000), nzTpIcepk0o8('\060' + chr(9911 - 9800) + chr(0b100011 + 0o16) + '\x33' + chr(0b110011), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b10101 + 0o132) + chr(0b110001) + chr(0b1110 + 0o42) + chr(0b110011), 0b1000), nzTpIcepk0o8(chr(48) + chr(1917 - 1806) + chr(0b11010 + 0o27) + '\x37' + chr(51), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + '\063' + '\x37' + chr(0b101100 + 0o11), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1010010 + 0o35) + chr(0b110110) + '\065', 26134 - 26126), nzTpIcepk0o8(chr(84 - 36) + '\157' + '\x32' + chr(54) + chr(1008 - 958), 32884 - 32876), nzTpIcepk0o8('\060' + chr(111) + chr(0b110100) + chr(0b110001), 0o10), nzTpIcepk0o8('\x30' + chr(0b1010011 + 0o34) + '\x32' + chr(0b110001 + 0o6) + chr(0b110000), 38870 - 38862), nzTpIcepk0o8('\060' + chr(111) + chr(51) + chr(0b110110) + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(0b101010 + 0o7) + '\x31' + chr(0b110110), 0o10), nzTpIcepk0o8(chr(1195 - 1147) + chr(7697 - 7586) + chr(0b101000 + 0o16) + '\x32', 17073 - 17065), nzTpIcepk0o8(chr(0b100010 + 0o16) + chr(11931 - 11820) + '\062' + chr(52) + '\062', 0o10), nzTpIcepk0o8(chr(1242 - 1194) + chr(111) + chr(0b110010) + chr(0b110000) + '\061', 0o10), nzTpIcepk0o8('\x30' + '\157' + '\063' + chr(0b110111) + chr(0b110010), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b1001 + 0o50) + chr(0b10000 + 0o46) + chr(0b100 + 0o63), 61521 - 61513), nzTpIcepk0o8(chr(2263 - 2215) + '\157' + chr(50) + '\x34' + '\063', 55487 - 55479), nzTpIcepk0o8('\x30' + chr(111) + '\x31' + chr(0b110000) + '\065', 0b1000), nzTpIcepk0o8(chr(653 - 605) + chr(0b1101111) + chr(51) + '\x34' + chr(0b11010 + 0o34), 8), nzTpIcepk0o8(chr(0b100010 + 0o16) + chr(0b1001111 + 0o40) + '\x31', 24952 - 24944), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\066' + '\x36', 37770 - 37762), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b101 + 0o54) + chr(2246 - 2195) + chr(0b110110), 0b1000), nzTpIcepk0o8(chr(0b100101 + 0o13) + chr(0b1101111) + chr(0b11110 + 0o23) + chr(0b1 + 0o57) + chr(54), 29404 - 29396), nzTpIcepk0o8(chr(0b110000) + chr(0b0 + 0o157) + chr(49) + chr(0b110100) + chr(54), 0o10), nzTpIcepk0o8(chr(0b0 + 0o60) + chr(0b100001 + 0o116) + chr(0b1100 + 0o53) + chr(50), 0o10), nzTpIcepk0o8('\060' + chr(2965 - 2854) + chr(0b110010) + chr(0b100111 + 0o15) + '\064', 22352 - 22344), nzTpIcepk0o8(chr(1897 - 1849) + '\157' + chr(51) + chr(0b110110) + '\065', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(8583 - 8472) + chr(1045 - 995) + '\x33' + chr(0b10101 + 0o34), 0o10), nzTpIcepk0o8('\060' + chr(0b1001011 + 0o44) + chr(51) + chr(0b10000 + 0o47) + chr(2252 - 2197), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(145 - 94) + chr(48) + chr(0b110001 + 0o6), 0o10), nzTpIcepk0o8(chr(995 - 947) + chr(0b1101111) + chr(0b11010 + 0o35) + chr(0b111 + 0o52), 0b1000), nzTpIcepk0o8(chr(0b0 + 0o60) + chr(0b1101111) + '\x33' + chr(1264 - 1215) + chr(0b11001 + 0o32), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(0b11101 + 0o26) + chr(49) + chr(1577 - 1522), 50336 - 50328), nzTpIcepk0o8(chr(0b101100 + 0o4) + chr(0b1101011 + 0o4) + chr(49) + '\x30' + chr(50), 0o10), nzTpIcepk0o8(chr(857 - 809) + chr(0b1101111) + chr(0b110111) + chr(599 - 548), 0b1000), nzTpIcepk0o8(chr(367 - 319) + '\x6f' + chr(0b101010 + 0o10) + chr(0b101111 + 0o4) + chr(0b10101 + 0o40), 0o10), nzTpIcepk0o8('\060' + chr(4802 - 4691) + '\061' + chr(2572 - 2518) + '\064', 15342 - 15334)][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + chr(111) + chr(2167 - 2114) + chr(0b110000), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xf3'), '\144' + chr(101) + chr(0b101010 + 0o71) + chr(0b1101111) + chr(100) + chr(101))('\x75' + chr(11193 - 11077) + chr(8845 - 8743) + chr(45) + '\x38') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def qEahrGEDF7Tq(hXMPsSrOQzbh, *eemPYp2vtTSr, **q5n0sHDDTy90):
SXuP0tUUXymu = hXMPsSrOQzbh._clone()
for _R8IKF5IwAfX in eemPYp2vtTSr:
roI3spqORKae(SXuP0tUUXymu.filter_obj, roI3spqORKae(ES5oEprVxulp(b'\xbc\xfe\x82\t=*\x17\x89P\xc0'), chr(2822 - 2722) + chr(0b101111 + 0o66) + '\x63' + '\157' + chr(0b1000101 + 0o37) + chr(0b1100101))('\x75' + chr(0b1110100) + chr(0b10110 + 0o120) + chr(45) + chr(0b111000)))(_R8IKF5IwAfX)
for (QYodcsDtoGq7, uV9iBiw0y_Mp) in roI3spqORKae(q5n0sHDDTy90, roI3spqORKae(ES5oEprVxulp(b'\x84\xc5\x88\x18\x1e93\xc9\x06\xc4y\xd1'), chr(0b1100100) + '\145' + '\x63' + '\x6f' + chr(100) + chr(101))('\x75' + '\x74' + chr(0b1100110) + chr(45) + chr(0b100010 + 0o26)))():
roI3spqORKae(SXuP0tUUXymu.filter_obj, roI3spqORKae(ES5oEprVxulp(b'\xbc\xfe\x82\t=*\x17\x89P\xc0~\xc8\x90<S\xcf'), '\x64' + chr(101) + '\143' + '\157' + '\144' + chr(7872 - 7771))(chr(9245 - 9128) + chr(0b1010110 + 0o36) + '\146' + chr(0b101101) + chr(1293 - 1237)))(QYodcsDtoGq7, uV9iBiw0y_Mp)
return SXuP0tUUXymu |
robgolding/tasklib | tasklib/task.py | TaskQuerySet.get | def get(self, **kwargs):
"""
Performs the query and returns a single object matching the given
keyword arguments.
"""
clone = self.filter(**kwargs)
num = len(clone)
if num == 1:
return clone._result_cache[0]
if not num:
raise Task.DoesNotExist(
'Task matching query does not exist. '
'Lookup parameters were {0}'.format(kwargs),
)
raise ValueError(
'get() returned more than one Task -- it returned {0}! '
'Lookup parameters were {1}'.format(num, kwargs),
) | python | def get(self, **kwargs):
"""
Performs the query and returns a single object matching the given
keyword arguments.
"""
clone = self.filter(**kwargs)
num = len(clone)
if num == 1:
return clone._result_cache[0]
if not num:
raise Task.DoesNotExist(
'Task matching query does not exist. '
'Lookup parameters were {0}'.format(kwargs),
)
raise ValueError(
'get() returned more than one Task -- it returned {0}! '
'Lookup parameters were {1}'.format(num, kwargs),
) | [
"def",
"get",
"(",
"self",
",",
"*",
"*",
"kwargs",
")",
":",
"clone",
"=",
"self",
".",
"filter",
"(",
"*",
"*",
"kwargs",
")",
"num",
"=",
"len",
"(",
"clone",
")",
"if",
"num",
"==",
"1",
":",
"return",
"clone",
".",
"_result_cache",
"[",
"0",
"]",
"if",
"not",
"num",
":",
"raise",
"Task",
".",
"DoesNotExist",
"(",
"'Task matching query does not exist. '",
"'Lookup parameters were {0}'",
".",
"format",
"(",
"kwargs",
")",
",",
")",
"raise",
"ValueError",
"(",
"'get() returned more than one Task -- it returned {0}! '",
"'Lookup parameters were {1}'",
".",
"format",
"(",
"num",
",",
"kwargs",
")",
",",
")"
] | Performs the query and returns a single object matching the given
keyword arguments. | [
"Performs",
"the",
"query",
"and",
"returns",
"a",
"single",
"object",
"matching",
"the",
"given",
"keyword",
"arguments",
"."
] | 0ad882377639865283021041f19add5aeb10126a | https://github.com/robgolding/tasklib/blob/0ad882377639865283021041f19add5aeb10126a/tasklib/task.py#L551-L568 | train | Performs the query and returns a single object matching the given keyword arguments. | GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdF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,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__
ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b101000 + 0o10) + '\157' + '\x32' + chr(0b100111 + 0o14) + chr(0b110011), 0b1000), nzTpIcepk0o8('\x30' + chr(4383 - 4272) + chr(0b11010 + 0o31) + chr(741 - 692) + '\064', 57451 - 57443), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(50), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110011) + chr(1332 - 1278), ord("\x08")), nzTpIcepk0o8(chr(0b1000 + 0o50) + '\x6f' + '\061' + chr(1891 - 1839) + '\x37', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(9327 - 9216) + '\062' + '\067' + chr(2109 - 2059), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + '\062' + '\x30', ord("\x08")), nzTpIcepk0o8('\x30' + chr(3187 - 3076) + chr(51) + chr(55) + chr(0b110101), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110001) + '\060' + '\x35', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x33' + chr(49) + '\063', 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(0b110001) + chr(54) + '\062', 25842 - 25834), nzTpIcepk0o8(chr(0b10110 + 0o32) + chr(8157 - 8046) + chr(0b110011) + chr(0b110111) + '\062', 0o10), nzTpIcepk0o8('\x30' + chr(111) + '\063', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b100101 + 0o20) + chr(0b10010 + 0o42), 0b1000), nzTpIcepk0o8(chr(193 - 145) + chr(0b1101111) + chr(1459 - 1409) + '\x34' + chr(0b110010), 0o10), nzTpIcepk0o8(chr(0b100111 + 0o11) + chr(0b111100 + 0o63) + chr(52) + '\064', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x32' + '\061' + chr(0b110000 + 0o5), 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(0b10101 + 0o36) + '\063' + '\063', 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110011) + '\x35' + chr(0b11100 + 0o33), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(789 - 738) + chr(0b110000) + '\x32', 0o10), nzTpIcepk0o8(chr(0b10101 + 0o33) + '\157' + '\062' + chr(0b110001) + chr(461 - 409), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + '\063' + '\x30' + '\061', 7976 - 7968), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110 + 0o55) + chr(0b1 + 0o60) + chr(49), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(171 - 120) + chr(54) + chr(54), 28448 - 28440), nzTpIcepk0o8(chr(0b110000) + '\157' + '\062' + '\063' + chr(0b101010 + 0o14), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b11 + 0o154) + chr(1253 - 1202) + '\067' + chr(2660 - 2606), 48131 - 48123), nzTpIcepk0o8('\060' + '\x6f' + '\x31' + '\060' + '\062', 39679 - 39671), nzTpIcepk0o8(chr(48) + chr(5010 - 4899) + '\062' + chr(53) + '\x31', ord("\x08")), nzTpIcepk0o8(chr(221 - 173) + '\x6f' + '\x31' + chr(0b110111) + chr(0b101011 + 0o7), 56551 - 56543), nzTpIcepk0o8(chr(48) + chr(0b110100 + 0o73) + '\x33' + '\062' + chr(0b110101), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110010) + chr(0b1101 + 0o47) + chr(1215 - 1167), 46286 - 46278), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110011) + chr(0b110011) + chr(0b10 + 0o60), 0b1000), nzTpIcepk0o8(chr(0b11010 + 0o26) + '\157' + '\x32' + '\x32' + '\x32', ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(0b101101 + 0o4) + chr(0b101101 + 0o12) + chr(0b110100), 0b1000), nzTpIcepk0o8('\x30' + chr(10816 - 10705) + '\061' + '\x33' + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(11031 - 10920) + '\x33' + chr(0b1 + 0o60) + chr(0b101001 + 0o12), 8), nzTpIcepk0o8('\x30' + chr(2932 - 2821) + '\x32' + chr(0b101 + 0o61) + '\061', 0o10), nzTpIcepk0o8('\060' + chr(7975 - 7864) + '\x34' + chr(55), 5375 - 5367), nzTpIcepk0o8(chr(0b110000) + chr(0b1 + 0o156) + chr(52) + chr(0b110010), ord("\x08")), nzTpIcepk0o8('\x30' + chr(9233 - 9122) + chr(49) + chr(54) + '\x32', 8)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b10000 + 0o40) + chr(111) + chr(0b110101) + chr(0b110000), ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xb5'), chr(100) + '\145' + chr(0b1100 + 0o127) + chr(0b1101111) + chr(0b1100100) + chr(2266 - 2165))(chr(0b1110101) + chr(2873 - 2757) + '\146' + chr(0b11110 + 0o17) + '\070') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def GUKetu4xaGsJ(hXMPsSrOQzbh, **q5n0sHDDTy90):
SXuP0tUUXymu = hXMPsSrOQzbh.qEahrGEDF7Tq(**q5n0sHDDTy90)
o0eINMlvUImY = ftfygxgFas5X(SXuP0tUUXymu)
if o0eINMlvUImY == nzTpIcepk0o8(chr(0b101110 + 0o2) + '\x6f' + '\x31', 0o10):
return roI3spqORKae(SXuP0tUUXymu, roI3spqORKae(ES5oEprVxulp(b'\xfe\x9fwW5\x8fE\x8fs\xa3\x13\x9d'), chr(100) + '\145' + chr(1090 - 991) + chr(0b1010100 + 0o33) + '\x64' + chr(588 - 487))(chr(117) + chr(116) + '\x66' + chr(837 - 792) + '\070'))[nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110000), 0b1000)]
if not o0eINMlvUImY:
raise roI3spqORKae(BJLvzETjFs6v, roI3spqORKae(ES5oEprVxulp(b'\xdf\xa3gm)\xd5d\xb8=\xa2\x01\x8e'), chr(100) + chr(0b1100101) + '\143' + '\x6f' + chr(8235 - 8135) + '\x65')(chr(0b1110101) + chr(116) + chr(102) + '\055' + chr(245 - 189)))(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\xcf\xadquG\xd7q\x89&\xa3\x1b\x94d\x0c\xd3Q\xe8\xa9\x96\xe2\xe8\xae\xac\x85\xbe\x90-\xddZ\xb0\xd8\xb3\xe1\x08w\xeb\xfdHM\x19\xee\xbc"n\x06\xc8q\x90 \xbf\x17\x88p\x0c\xd5A\xff\xbe\xcf\xb9\xbc\xbc'), chr(8635 - 8535) + chr(8935 - 8834) + chr(0b1100011) + chr(0b1110 + 0o141) + chr(0b111011 + 0o51) + chr(3731 - 3630))('\165' + chr(10677 - 10561) + chr(7695 - 7593) + chr(45) + chr(811 - 755)), roI3spqORKae(ES5oEprVxulp(b'\xea\xff1U \x89v\x92\x14\x941\xb0'), chr(0b101001 + 0o73) + '\145' + chr(0b1100011) + chr(0b100100 + 0o113) + chr(0b100011 + 0o101) + '\x65')('\x75' + chr(0b1101101 + 0o7) + '\146' + '\x2d' + chr(0b11011 + 0o35)))(q5n0sHDDTy90))
raise WbNHlDKpyPtQ(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\xfc\xa9v6N\x9ab\x981\xbe\x00\x94fH\x82I\xe2\xa9\x8a\xe2\xf8\xa9\xa8\x98\xbe\x91,\xccZ\x81\xc1\xa9\xf9\\t\xe6\x91NVR\xe9\xa9vk\x15\xd4u\x99e\xb0B\x87"\x0c\xeeK\xe2\xb0\x9a\xb2\xac\xb1\xa8\x84\xff\x93\'\xdd\x1f\xa7\xd3\xfa\xe5\x19+\xae\x91\\\x13\x0f'), chr(0b1010110 + 0o16) + chr(0b1100101) + chr(99) + chr(0b1101011 + 0o4) + chr(100) + chr(0b1100101))('\165' + chr(0b1110011 + 0o1) + chr(102) + chr(0b101101 + 0o0) + '\070'), roI3spqORKae(ES5oEprVxulp(b'\xea\xff1U \x89v\x92\x14\x941\xb0'), chr(0b100010 + 0o102) + '\145' + chr(0b1010010 + 0o21) + chr(0b1010111 + 0o30) + chr(100) + '\x65')(chr(5623 - 5506) + '\164' + '\146' + chr(45) + '\x38'))(o0eINMlvUImY, q5n0sHDDTy90)) |
NiklasRosenstein/py-localimport | localimport.py | is_local | def is_local(filename, pathlist):
'''
Returns True if *filename* is a subpath of any of the paths in *pathlist*.
'''
filename = os.path.abspath(filename)
for path_name in pathlist:
path_name = os.path.abspath(path_name)
if is_subpath(filename, path_name):
return True
return False | python | def is_local(filename, pathlist):
'''
Returns True if *filename* is a subpath of any of the paths in *pathlist*.
'''
filename = os.path.abspath(filename)
for path_name in pathlist:
path_name = os.path.abspath(path_name)
if is_subpath(filename, path_name):
return True
return False | [
"def",
"is_local",
"(",
"filename",
",",
"pathlist",
")",
":",
"filename",
"=",
"os",
".",
"path",
".",
"abspath",
"(",
"filename",
")",
"for",
"path_name",
"in",
"pathlist",
":",
"path_name",
"=",
"os",
".",
"path",
".",
"abspath",
"(",
"path_name",
")",
"if",
"is_subpath",
"(",
"filename",
",",
"path_name",
")",
":",
"return",
"True",
"return",
"False"
] | Returns True if *filename* is a subpath of any of the paths in *pathlist*. | [
"Returns",
"True",
"if",
"*",
"filename",
"*",
"is",
"a",
"subpath",
"of",
"any",
"of",
"the",
"paths",
"in",
"*",
"pathlist",
"*",
"."
] | 69af71c37f8bd3b2121ec39083dff18a9a2d04a1 | https://github.com/NiklasRosenstein/py-localimport/blob/69af71c37f8bd3b2121ec39083dff18a9a2d04a1/localimport.py#L48-L58 | train | Returns True if filename is a subpath of any of the paths in pathlist. | GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,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NQS9e6tJqMV,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' + chr(529 - 474) + chr(0b100011 + 0o15), 35204 - 35196), nzTpIcepk0o8(chr(2249 - 2201) + '\157' + chr(0b110001) + '\x32' + chr(1275 - 1226), 0o10), nzTpIcepk0o8('\060' + chr(111) + '\061' + chr(0b110111) + '\067', ord("\x08")), nzTpIcepk0o8(chr(1320 - 1272) + chr(0b101010 + 0o105) + chr(0b110101) + chr(289 - 236), 0b1000), nzTpIcepk0o8(chr(602 - 554) + '\x6f' + chr(52) + chr(0b10011 + 0o44), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(2380 - 2269) + '\061' + chr(0b110000) + '\065', 0o10), nzTpIcepk0o8('\x30' + chr(5856 - 5745) + chr(0b10101 + 0o35) + '\066' + chr(50), 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(51) + chr(383 - 331) + '\x37', 52177 - 52169), nzTpIcepk0o8('\060' + chr(0b10000 + 0o137) + '\x33' + chr(0b110011), ord("\x08")), nzTpIcepk0o8(chr(0b110000 + 0o0) + chr(0b10100 + 0o133) + chr(0b1001 + 0o51) + chr(0b101110 + 0o11) + chr(48), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x31' + '\x33' + chr(0b100 + 0o62), 0o10), nzTpIcepk0o8(chr(48) + chr(9171 - 9060) + '\x32' + '\x30' + '\x30', 0o10), nzTpIcepk0o8('\x30' + chr(272 - 161) + '\x33' + chr(0b101111 + 0o10) + chr(1624 - 1572), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(50) + chr(0b11110 + 0o25) + '\067', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1011100 + 0o23) + chr(0b101010 + 0o14) + '\x33', 0b1000), nzTpIcepk0o8(chr(0b101000 + 0o10) + '\157' + '\063' + '\067' + chr(0b1001 + 0o50), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(2588 - 2537) + chr(0b110001) + chr(0b110001), 63645 - 63637), nzTpIcepk0o8(chr(1016 - 968) + chr(0b1101111) + chr(87 - 38) + '\x35' + '\062', 0b1000), nzTpIcepk0o8('\060' + chr(0b1100110 + 0o11) + chr(51) + '\x37' + chr(0b110010 + 0o1), 21959 - 21951), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\062' + chr(2185 - 2134) + '\060', 21200 - 21192), nzTpIcepk0o8(chr(0b101000 + 0o10) + chr(9376 - 9265) + chr(0b110011) + chr(52) + '\064', 0b1000), nzTpIcepk0o8('\060' + '\157' + '\x31' + '\x34' + chr(0b1101 + 0o52), 0o10), nzTpIcepk0o8(chr(2137 - 2089) + chr(0b1001111 + 0o40) + chr(0b110101) + '\065', 8), nzTpIcepk0o8(chr(0b110 + 0o52) + chr(0b1101111) + chr(51) + chr(0b110100) + '\x37', 8), nzTpIcepk0o8('\060' + chr(0b1000 + 0o147) + chr(0b1001 + 0o51) + '\067' + '\062', 16237 - 16229), nzTpIcepk0o8(chr(1423 - 1375) + chr(8843 - 8732) + '\x37' + chr(0b110101), ord("\x08")), nzTpIcepk0o8(chr(561 - 513) + chr(111) + chr(0b11000 + 0o31) + chr(2297 - 2244) + '\x35', 0o10), nzTpIcepk0o8(chr(1559 - 1511) + chr(0b10000 + 0o137) + chr(0b100111 + 0o12) + chr(139 - 88), 37180 - 37172), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(49) + chr(2131 - 2080) + chr(0b110111), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(50) + '\063' + chr(50), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110011) + '\064' + '\x35', 0b1000), nzTpIcepk0o8(chr(2074 - 2026) + '\157' + chr(49) + '\x36' + chr(0b11010 + 0o34), 0b1000), nzTpIcepk0o8(chr(0b111 + 0o51) + '\x6f' + '\063' + '\065' + chr(887 - 835), 25112 - 25104), nzTpIcepk0o8('\060' + chr(0b1101111) + '\066' + chr(0b100000 + 0o26), 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(0b100111 + 0o12) + chr(2203 - 2152) + chr(52), 33610 - 33602), nzTpIcepk0o8('\060' + chr(10119 - 10008) + '\x36' + chr(0b110011), 8), nzTpIcepk0o8('\x30' + chr(0b1101111 + 0o0) + chr(0b110011) + chr(0b11101 + 0o32) + '\x30', 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x31' + '\x37' + chr(456 - 404), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + '\063' + chr(0b100110 + 0o13) + chr(116 - 64), 49292 - 49284), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x35' + chr(807 - 759), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(2315 - 2262) + '\x30', 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x16'), '\x64' + '\x65' + '\143' + '\x6f' + chr(0b1100100) + chr(101))('\x75' + chr(116) + chr(0b100 + 0o142) + '\055' + '\x38') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def zvQ7vbsFf8wE(FxZHtXEolYsL, MAFBK2KSFgKp):
FxZHtXEolYsL = aHUqKstZLeS6.path.abspath(FxZHtXEolYsL)
for jMyUxoMRKaXC in MAFBK2KSFgKp:
jMyUxoMRKaXC = aHUqKstZLeS6.path.abspath(jMyUxoMRKaXC)
if TLvlu436d64A(FxZHtXEolYsL, jMyUxoMRKaXC):
return nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110001), 0b1000)
return nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x30', 0b1000) |
NiklasRosenstein/py-localimport | localimport.py | is_subpath | def is_subpath(path, parent):
'''
Returns True if *path* points to the same or a subpath of *parent*.
'''
try:
relpath = os.path.relpath(path, parent)
except ValueError:
return False # happens on Windows if drive letters don't match
return relpath == os.curdir or not relpath.startswith(os.pardir) | python | def is_subpath(path, parent):
'''
Returns True if *path* points to the same or a subpath of *parent*.
'''
try:
relpath = os.path.relpath(path, parent)
except ValueError:
return False # happens on Windows if drive letters don't match
return relpath == os.curdir or not relpath.startswith(os.pardir) | [
"def",
"is_subpath",
"(",
"path",
",",
"parent",
")",
":",
"try",
":",
"relpath",
"=",
"os",
".",
"path",
".",
"relpath",
"(",
"path",
",",
"parent",
")",
"except",
"ValueError",
":",
"return",
"False",
"# happens on Windows if drive letters don't match",
"return",
"relpath",
"==",
"os",
".",
"curdir",
"or",
"not",
"relpath",
".",
"startswith",
"(",
"os",
".",
"pardir",
")"
] | Returns True if *path* points to the same or a subpath of *parent*. | [
"Returns",
"True",
"if",
"*",
"path",
"*",
"points",
"to",
"the",
"same",
"or",
"a",
"subpath",
"of",
"*",
"parent",
"*",
"."
] | 69af71c37f8bd3b2121ec39083dff18a9a2d04a1 | https://github.com/NiklasRosenstein/py-localimport/blob/69af71c37f8bd3b2121ec39083dff18a9a2d04a1/localimport.py#L61-L70 | train | Returns True if path points to the same or a subpath of parent. | 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(48) + chr(111) + '\062' + chr(0b110011) + '\062', 0b1000), nzTpIcepk0o8('\060' + chr(0b0 + 0o157) + '\x31' + '\x36', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110001) + chr(0b100101 + 0o21) + chr(51), 56026 - 56018), nzTpIcepk0o8(chr(0b10101 + 0o33) + '\x6f' + '\x33' + chr(0b11111 + 0o30), 50727 - 50719), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x31' + '\x33', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b11 + 0o60) + '\x37' + chr(0b1101 + 0o51), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b101100 + 0o6) + chr(0b110110), 0b1000), nzTpIcepk0o8('\060' + chr(11876 - 11765) + '\065' + '\x32', 0o10), nzTpIcepk0o8('\060' + chr(4225 - 4114) + '\061' + chr(0b101110 + 0o11) + '\x33', 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(1001 - 952) + chr(0b110001) + chr(0b110001), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b101101 + 0o5) + chr(49) + chr(0b101111 + 0o3), 15575 - 15567), nzTpIcepk0o8(chr(0b10010 + 0o36) + '\157' + '\x31' + chr(0b1010 + 0o46) + chr(55), ord("\x08")), nzTpIcepk0o8(chr(0b11100 + 0o24) + chr(555 - 444) + '\x37' + '\061', 54801 - 54793), nzTpIcepk0o8('\x30' + chr(2683 - 2572) + chr(0b110001) + '\062' + chr(0b100000 + 0o22), ord("\x08")), nzTpIcepk0o8(chr(1772 - 1724) + chr(8679 - 8568) + chr(890 - 839) + '\064', 0o10), nzTpIcepk0o8(chr(0b101000 + 0o10) + '\157' + '\062' + '\x37' + '\x31', 0b1000), nzTpIcepk0o8(chr(0b11001 + 0o27) + '\157' + chr(0b110010) + chr(0b110101) + chr(0b110000 + 0o7), 0o10), nzTpIcepk0o8(chr(0b11 + 0o55) + chr(5857 - 5746) + chr(372 - 321) + '\064' + chr(1114 - 1066), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b1011 + 0o47) + '\x37' + chr(0b110000), 18294 - 18286), nzTpIcepk0o8(chr(0b10100 + 0o34) + '\x6f' + chr(0b110011) + '\062' + chr(1804 - 1756), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1100 + 0o143) + '\062' + chr(53) + '\063', 33703 - 33695), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110011) + chr(52) + chr(0b110101), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(0b100100 + 0o17) + chr(1056 - 1007) + chr(0b10101 + 0o41), 0b1000), nzTpIcepk0o8(chr(0b100011 + 0o15) + chr(12279 - 12168) + '\x33' + chr(0b110010 + 0o0) + chr(1877 - 1827), 36428 - 36420), nzTpIcepk0o8('\060' + chr(0b101011 + 0o104) + '\063' + '\062' + chr(0b110011), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x32' + chr(55) + chr(1467 - 1419), 8), nzTpIcepk0o8('\x30' + '\157' + chr(0b11011 + 0o30) + chr(402 - 350) + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1011001 + 0o26) + chr(0b110010) + chr(2437 - 2385) + chr(0b10001 + 0o40), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1011111 + 0o20) + chr(0b10100 + 0o35) + '\x33' + '\061', 315 - 307), nzTpIcepk0o8(chr(952 - 904) + chr(0b1101111) + chr(958 - 907) + chr(49) + '\x34', ord("\x08")), nzTpIcepk0o8(chr(0b11 + 0o55) + '\157' + chr(1459 - 1408) + chr(49) + chr(2035 - 1987), 0b1000), nzTpIcepk0o8(chr(0b11111 + 0o21) + chr(111) + '\x37' + '\x33', ord("\x08")), nzTpIcepk0o8(chr(0b100010 + 0o16) + chr(0b1101111) + '\061' + chr(474 - 420) + '\x35', 0b1000), nzTpIcepk0o8(chr(1364 - 1316) + '\x6f' + chr(0b101100 + 0o11) + '\063', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(1978 - 1867) + chr(0b110011) + chr(50), 0b1000), nzTpIcepk0o8(chr(2060 - 2012) + chr(4296 - 4185) + '\067' + chr(48), 0b1000), nzTpIcepk0o8(chr(877 - 829) + chr(0b11011 + 0o124) + '\x33' + '\064' + chr(0b110110), ord("\x08")), nzTpIcepk0o8('\x30' + chr(2582 - 2471) + '\063' + chr(0b110100) + chr(0b110000), 8), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x31' + '\x33' + '\063', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1010100 + 0o33) + chr(0b1101 + 0o45) + chr(1368 - 1319) + chr(54), 50464 - 50456)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + '\157' + chr(0b110101 + 0o0) + chr(48), 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xb4'), chr(0b1100100) + chr(0b1100101) + '\x63' + '\x6f' + '\x64' + '\x65')(chr(0b1110101) + chr(10766 - 10650) + chr(0b1100110) + chr(678 - 633) + '\x38') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def TLvlu436d64A(_pSYqrosNb95, aY0lxtg5akD2):
try:
DPVLEmaCQeyq = aHUqKstZLeS6.path.DPVLEmaCQeyq(_pSYqrosNb95, aY0lxtg5akD2)
except WbNHlDKpyPtQ:
return nzTpIcepk0o8(chr(48) + chr(12306 - 12195) + chr(0b110000), 0b1000)
return DPVLEmaCQeyq == roI3spqORKae(aHUqKstZLeS6, roI3spqORKae(ES5oEprVxulp(b'\xf9{\x01{b\x8c'), chr(100) + '\x65' + '\x63' + chr(111) + chr(0b1100100) + chr(101))(chr(13617 - 13500) + chr(116) + '\x66' + chr(0b101101) + chr(0b111000))) or not roI3spqORKae(DPVLEmaCQeyq, roI3spqORKae(ES5oEprVxulp(b'\xe9z\x12m\x7f\x8daC\x0f!'), chr(5553 - 5453) + chr(101) + '\x63' + chr(111) + chr(4294 - 4194) + '\x65')(chr(0b101011 + 0o112) + '\164' + chr(0b1100110) + '\055' + chr(0b10 + 0o66)))(roI3spqORKae(aHUqKstZLeS6, roI3spqORKae(ES5oEprVxulp(b'\xeao\x01{b\x8c'), chr(100) + chr(9354 - 9253) + chr(0b100 + 0o137) + chr(0b1101111) + '\144' + '\x65')(chr(7695 - 7578) + '\164' + '\146' + chr(45) + chr(1398 - 1342)))) |
NiklasRosenstein/py-localimport | localimport.py | eval_pth | def eval_pth(filename, sitedir, dest=None, imports=None):
'''
Evaluates a `.pth` file (including support for `import` statements), and
appends the result to the list *dest*. If *dest* is #None, it will fall
back to `sys.path`.
If *imports* is specified, it must be a list. `import` statements will not
executed but instead appended to that list in tuples of
(*filename*, *line*, *stmt*).
Returns a tuple of (*dest*, *imports*).
'''
if dest is None:
dest = sys.path
if not os.path.isfile(filename):
return
with open(filename, 'r') as fp:
for index, line in enumerate(fp):
if line.startswith('import'):
if imports is None:
exec_pth_import(filename, index+1, line)
else:
imports.append((filename, index+1, line))
else:
index = line.find('#')
if index > 0: line = line[:index]
line = line.strip()
if not os.path.isabs(line):
line = os.path.join(os.path.dirname(filename), line)
line = os.path.normpath(line)
if line and line not in dest:
dest.insert(0, line)
return dest | python | def eval_pth(filename, sitedir, dest=None, imports=None):
'''
Evaluates a `.pth` file (including support for `import` statements), and
appends the result to the list *dest*. If *dest* is #None, it will fall
back to `sys.path`.
If *imports* is specified, it must be a list. `import` statements will not
executed but instead appended to that list in tuples of
(*filename*, *line*, *stmt*).
Returns a tuple of (*dest*, *imports*).
'''
if dest is None:
dest = sys.path
if not os.path.isfile(filename):
return
with open(filename, 'r') as fp:
for index, line in enumerate(fp):
if line.startswith('import'):
if imports is None:
exec_pth_import(filename, index+1, line)
else:
imports.append((filename, index+1, line))
else:
index = line.find('#')
if index > 0: line = line[:index]
line = line.strip()
if not os.path.isabs(line):
line = os.path.join(os.path.dirname(filename), line)
line = os.path.normpath(line)
if line and line not in dest:
dest.insert(0, line)
return dest | [
"def",
"eval_pth",
"(",
"filename",
",",
"sitedir",
",",
"dest",
"=",
"None",
",",
"imports",
"=",
"None",
")",
":",
"if",
"dest",
"is",
"None",
":",
"dest",
"=",
"sys",
".",
"path",
"if",
"not",
"os",
".",
"path",
".",
"isfile",
"(",
"filename",
")",
":",
"return",
"with",
"open",
"(",
"filename",
",",
"'r'",
")",
"as",
"fp",
":",
"for",
"index",
",",
"line",
"in",
"enumerate",
"(",
"fp",
")",
":",
"if",
"line",
".",
"startswith",
"(",
"'import'",
")",
":",
"if",
"imports",
"is",
"None",
":",
"exec_pth_import",
"(",
"filename",
",",
"index",
"+",
"1",
",",
"line",
")",
"else",
":",
"imports",
".",
"append",
"(",
"(",
"filename",
",",
"index",
"+",
"1",
",",
"line",
")",
")",
"else",
":",
"index",
"=",
"line",
".",
"find",
"(",
"'#'",
")",
"if",
"index",
">",
"0",
":",
"line",
"=",
"line",
"[",
":",
"index",
"]",
"line",
"=",
"line",
".",
"strip",
"(",
")",
"if",
"not",
"os",
".",
"path",
".",
"isabs",
"(",
"line",
")",
":",
"line",
"=",
"os",
".",
"path",
".",
"join",
"(",
"os",
".",
"path",
".",
"dirname",
"(",
"filename",
")",
",",
"line",
")",
"line",
"=",
"os",
".",
"path",
".",
"normpath",
"(",
"line",
")",
"if",
"line",
"and",
"line",
"not",
"in",
"dest",
":",
"dest",
".",
"insert",
"(",
"0",
",",
"line",
")",
"return",
"dest"
] | Evaluates a `.pth` file (including support for `import` statements), and
appends the result to the list *dest*. If *dest* is #None, it will fall
back to `sys.path`.
If *imports* is specified, it must be a list. `import` statements will not
executed but instead appended to that list in tuples of
(*filename*, *line*, *stmt*).
Returns a tuple of (*dest*, *imports*). | [
"Evaluates",
"a",
".",
"pth",
"file",
"(",
"including",
"support",
"for",
"import",
"statements",
")",
"and",
"appends",
"the",
"result",
"to",
"the",
"list",
"*",
"dest",
"*",
".",
"If",
"*",
"dest",
"*",
"is",
"#None",
"it",
"will",
"fall",
"back",
"to",
"sys",
".",
"path",
"."
] | 69af71c37f8bd3b2121ec39083dff18a9a2d04a1 | https://github.com/NiklasRosenstein/py-localimport/blob/69af71c37f8bd3b2121ec39083dff18a9a2d04a1/localimport.py#L73-L107 | train | Evaluates a. pth file and appends the result to the list dest. | 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,Y1otPTwLRJv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as5X,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(1778 - 1667) + chr(51) + '\063' + chr(48), 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(752 - 701) + chr(49), 0b1000), nzTpIcepk0o8('\060' + chr(0b1100011 + 0o14) + '\063' + chr(54) + chr(0b101110 + 0o7), 0b1000), nzTpIcepk0o8(chr(2150 - 2102) + '\157' + chr(0b110010) + chr(2042 - 1990) + '\x35', 0b1000), nzTpIcepk0o8('\060' + chr(11127 - 11016) + chr(51) + chr(53) + '\060', 0b1000), nzTpIcepk0o8(chr(158 - 110) + chr(1605 - 1494) + chr(51) + '\065' + '\060', 8), nzTpIcepk0o8(chr(48) + chr(486 - 375) + chr(0b11100 + 0o32) + chr(0b10011 + 0o42), 42414 - 42406), nzTpIcepk0o8('\060' + chr(9470 - 9359) + '\x32' + chr(52) + '\060', 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(558 - 508) + chr(0b110000), 0o10), nzTpIcepk0o8(chr(48) + chr(8266 - 8155) + chr(2368 - 2317) + chr(0b110000) + chr(52), 0o10), nzTpIcepk0o8(chr(0b10000 + 0o40) + '\x6f' + chr(49) + chr(0b110001) + chr(1017 - 964), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110001) + chr(0b100111 + 0o13), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(904 - 854) + chr(52) + '\x37', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b10010 + 0o37) + '\061' + chr(0b0 + 0o60), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(1915 - 1804) + chr(0b1111 + 0o44) + '\064' + chr(52), 50304 - 50296), nzTpIcepk0o8(chr(48) + '\x6f' + '\061' + chr(0b101001 + 0o7) + '\x37', 54430 - 54422), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110010) + '\064' + chr(51), 2308 - 2300), nzTpIcepk0o8(chr(0b110000) + chr(0b111111 + 0o60) + chr(49) + chr(0b110010) + '\060', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b10000 + 0o41) + chr(0b100100 + 0o15) + '\x31', ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(433 - 383) + '\x34' + '\x31', 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(49) + chr(0b10 + 0o57), 33394 - 33386), nzTpIcepk0o8(chr(48) + '\x6f' + chr(1442 - 1388) + chr(0b110001), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(55) + chr(55), 0b1000), nzTpIcepk0o8(chr(48) + chr(10780 - 10669) + chr(51) + chr(0b110110) + chr(0b110111), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b10110 + 0o35) + chr(2039 - 1991) + chr(53), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1001110 + 0o41) + chr(0b110001) + chr(0b110100) + '\066', ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(0b100000 + 0o21) + chr(50) + '\067', 0b1000), nzTpIcepk0o8(chr(0b100010 + 0o16) + chr(111) + chr(0b110011) + chr(51) + chr(2792 - 2737), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x31' + '\064' + chr(0b110011), ord("\x08")), nzTpIcepk0o8(chr(0b1001 + 0o47) + '\157' + '\x35' + '\063', 0b1000), nzTpIcepk0o8(chr(2057 - 2009) + '\157' + chr(2587 - 2535), 0b1000), nzTpIcepk0o8('\060' + '\157' + '\063' + '\065' + '\065', 0o10), nzTpIcepk0o8('\060' + chr(0b10011 + 0o134) + chr(2191 - 2141) + '\065' + chr(0b1010 + 0o54), 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(1652 - 1599) + chr(0b111 + 0o57), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110001) + chr(50) + chr(2177 - 2128), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b11011 + 0o124) + chr(49) + chr(552 - 503) + '\x34', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1100000 + 0o17) + chr(50) + '\063' + chr(128 - 79), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110101) + chr(1145 - 1095), 55979 - 55971), nzTpIcepk0o8('\060' + '\x6f' + chr(50) + chr(0b100001 + 0o23) + chr(1511 - 1460), 8), nzTpIcepk0o8('\x30' + chr(0b10001 + 0o136) + chr(55) + chr(316 - 261), 8)][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + chr(0b111101 + 0o62) + chr(966 - 913) + chr(0b100010 + 0o16), ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xf6'), chr(2486 - 2386) + chr(0b1100101) + chr(4878 - 4779) + chr(0b1101111) + chr(0b1100100) + chr(0b101111 + 0o66))(chr(0b1110101) + chr(116) + chr(0b1001011 + 0o33) + '\055' + chr(56)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def O71lTZsEIfXf(FxZHtXEolYsL, ZWuH9MbzESmI, DxdyhL8zxIrR=None, unQtuxHcGS2H=None):
if DxdyhL8zxIrR is None:
DxdyhL8zxIrR = bpyfpu4kTbwL._pSYqrosNb95
if not roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'\xb1j\x93\xcc\x84\x8d'), chr(0b110100 + 0o60) + chr(101) + chr(0b1011001 + 0o12) + chr(111) + chr(6208 - 6108) + chr(101))(chr(0b1100100 + 0o21) + chr(0b1110100) + chr(0b110 + 0o140) + chr(0b101101) + '\x38'))(FxZHtXEolYsL):
return
with DnU3Rq9N5ala(FxZHtXEolYsL, roI3spqORKae(ES5oEprVxulp(b'\xaa'), chr(100) + '\x65' + chr(0b1100011) + chr(111) + '\144' + '\x65')('\165' + '\164' + chr(102) + '\055' + chr(1444 - 1388))) as KhXPEIWBXQzE:
for (ZpfN5tSLaZze, ffiOpFBWGmZU) in _kV_Bomx8PZ4(KhXPEIWBXQzE):
if roI3spqORKae(ffiOpFBWGmZU, roI3spqORKae(ES5oEprVxulp(b'\xabm\x94\xd7\x9c\x9bB\xc9d\xac'), chr(0b1000101 + 0o37) + '\x65' + chr(0b111001 + 0o52) + '\x6f' + chr(1660 - 1560) + chr(0b110011 + 0o62))(chr(0b100001 + 0o124) + chr(0b1110100) + '\146' + chr(0b101101) + chr(0b1101 + 0o53)))(roI3spqORKae(ES5oEprVxulp(b'\xb1t\x85\xca\x9a\x9c'), chr(100) + chr(6452 - 6351) + '\x63' + '\x6f' + chr(8133 - 8033) + '\145')(chr(0b1010011 + 0o42) + '\x74' + chr(0b1000111 + 0o37) + '\x2d' + chr(2417 - 2361))):
if unQtuxHcGS2H is None:
j3xCV386XyGJ(FxZHtXEolYsL, ZpfN5tSLaZze + nzTpIcepk0o8(chr(910 - 862) + chr(111) + chr(0b1000 + 0o51), 0o10), ffiOpFBWGmZU)
else:
roI3spqORKae(unQtuxHcGS2H, roI3spqORKae(ES5oEprVxulp(b'\x90M\xa6\x91\x90\x8fr\xcfz\xab\x18?'), '\x64' + '\145' + '\x63' + '\157' + '\x64' + chr(7387 - 7286))(chr(0b1000100 + 0o61) + chr(11740 - 11624) + chr(5248 - 5146) + chr(1815 - 1770) + chr(0b101011 + 0o15)))((FxZHtXEolYsL, ZpfN5tSLaZze + nzTpIcepk0o8(chr(0b110000) + chr(4435 - 4324) + chr(0b110001), 8), ffiOpFBWGmZU))
else:
ZpfN5tSLaZze = ffiOpFBWGmZU.mlLPzxww6J51(roI3spqORKae(ES5oEprVxulp(b'\xfb'), '\x64' + chr(101) + chr(0b1100011) + chr(0b1101111) + chr(8144 - 8044) + chr(0b11010 + 0o113))(chr(946 - 829) + chr(11968 - 11852) + chr(9906 - 9804) + '\x2d' + '\070'))
if ZpfN5tSLaZze > nzTpIcepk0o8('\x30' + '\157' + chr(48), 0b1000):
ffiOpFBWGmZU = ffiOpFBWGmZU[:ZpfN5tSLaZze]
ffiOpFBWGmZU = ffiOpFBWGmZU.kdIDrcwZTCs5()
if not roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'\xb1j\x94\xc7\x9b'), '\x64' + chr(0b111000 + 0o55) + chr(99) + '\157' + chr(100) + '\145')(chr(117) + chr(0b1110100) + chr(0b111101 + 0o51) + chr(0b101101) + '\070'))(ffiOpFBWGmZU):
ffiOpFBWGmZU = aHUqKstZLeS6.path.Y4yM9BcfTCNq(aHUqKstZLeS6.path.qu5fsQlGSLfc(FxZHtXEolYsL), ffiOpFBWGmZU)
ffiOpFBWGmZU = aHUqKstZLeS6.path.normpath(ffiOpFBWGmZU)
if ffiOpFBWGmZU and ffiOpFBWGmZU not in DxdyhL8zxIrR:
roI3spqORKae(DxdyhL8zxIrR, roI3spqORKae(ES5oEprVxulp(b'\xb1w\x86\xc0\x9a\x9c'), chr(0b1100100) + chr(0b1100101) + chr(0b101 + 0o136) + chr(111) + '\x64' + chr(101))('\x75' + chr(12932 - 12816) + '\x66' + '\055' + '\x38'))(nzTpIcepk0o8(chr(0b11000 + 0o30) + chr(0b1010001 + 0o36) + chr(0b1001 + 0o47), 8), ffiOpFBWGmZU)
return DxdyhL8zxIrR |
NiklasRosenstein/py-localimport | localimport.py | extend_path | def extend_path(pth, name):
'''
Better implementation of #pkgutil.extend_path() which adds support for
zipped Python eggs. The original #pkgutil.extend_path() gets mocked by this
function inside the #localimport context.
'''
def zip_isfile(z, name):
name.rstrip('/')
return name in z.namelist()
pname = os.path.join(*name.split('.'))
zname = '/'.join(name.split('.'))
init_py = '__init__' + os.extsep + 'py'
init_pyc = '__init__' + os.extsep + 'pyc'
init_pyo = '__init__' + os.extsep + 'pyo'
mod_path = list(pth)
for path in sys.path:
if zipfile.is_zipfile(path):
try:
egg = zipfile.ZipFile(path, 'r')
addpath = (
zip_isfile(egg, zname + '/__init__.py') or
zip_isfile(egg, zname + '/__init__.pyc') or
zip_isfile(egg, zname + '/__init__.pyo'))
fpath = os.path.join(path, path, zname)
if addpath and fpath not in mod_path:
mod_path.append(fpath)
except (zipfile.BadZipfile, zipfile.LargeZipFile):
pass # xxx: Show a warning at least?
else:
path = os.path.join(path, pname)
if os.path.isdir(path) and path not in mod_path:
addpath = (
os.path.isfile(os.path.join(path, init_py)) or
os.path.isfile(os.path.join(path, init_pyc)) or
os.path.isfile(os.path.join(path, init_pyo)))
if addpath and path not in mod_path:
mod_path.append(path)
return [os.path.normpath(x) for x in mod_path] | python | def extend_path(pth, name):
'''
Better implementation of #pkgutil.extend_path() which adds support for
zipped Python eggs. The original #pkgutil.extend_path() gets mocked by this
function inside the #localimport context.
'''
def zip_isfile(z, name):
name.rstrip('/')
return name in z.namelist()
pname = os.path.join(*name.split('.'))
zname = '/'.join(name.split('.'))
init_py = '__init__' + os.extsep + 'py'
init_pyc = '__init__' + os.extsep + 'pyc'
init_pyo = '__init__' + os.extsep + 'pyo'
mod_path = list(pth)
for path in sys.path:
if zipfile.is_zipfile(path):
try:
egg = zipfile.ZipFile(path, 'r')
addpath = (
zip_isfile(egg, zname + '/__init__.py') or
zip_isfile(egg, zname + '/__init__.pyc') or
zip_isfile(egg, zname + '/__init__.pyo'))
fpath = os.path.join(path, path, zname)
if addpath and fpath not in mod_path:
mod_path.append(fpath)
except (zipfile.BadZipfile, zipfile.LargeZipFile):
pass # xxx: Show a warning at least?
else:
path = os.path.join(path, pname)
if os.path.isdir(path) and path not in mod_path:
addpath = (
os.path.isfile(os.path.join(path, init_py)) or
os.path.isfile(os.path.join(path, init_pyc)) or
os.path.isfile(os.path.join(path, init_pyo)))
if addpath and path not in mod_path:
mod_path.append(path)
return [os.path.normpath(x) for x in mod_path] | [
"def",
"extend_path",
"(",
"pth",
",",
"name",
")",
":",
"def",
"zip_isfile",
"(",
"z",
",",
"name",
")",
":",
"name",
".",
"rstrip",
"(",
"'/'",
")",
"return",
"name",
"in",
"z",
".",
"namelist",
"(",
")",
"pname",
"=",
"os",
".",
"path",
".",
"join",
"(",
"*",
"name",
".",
"split",
"(",
"'.'",
")",
")",
"zname",
"=",
"'/'",
".",
"join",
"(",
"name",
".",
"split",
"(",
"'.'",
")",
")",
"init_py",
"=",
"'__init__'",
"+",
"os",
".",
"extsep",
"+",
"'py'",
"init_pyc",
"=",
"'__init__'",
"+",
"os",
".",
"extsep",
"+",
"'pyc'",
"init_pyo",
"=",
"'__init__'",
"+",
"os",
".",
"extsep",
"+",
"'pyo'",
"mod_path",
"=",
"list",
"(",
"pth",
")",
"for",
"path",
"in",
"sys",
".",
"path",
":",
"if",
"zipfile",
".",
"is_zipfile",
"(",
"path",
")",
":",
"try",
":",
"egg",
"=",
"zipfile",
".",
"ZipFile",
"(",
"path",
",",
"'r'",
")",
"addpath",
"=",
"(",
"zip_isfile",
"(",
"egg",
",",
"zname",
"+",
"'/__init__.py'",
")",
"or",
"zip_isfile",
"(",
"egg",
",",
"zname",
"+",
"'/__init__.pyc'",
")",
"or",
"zip_isfile",
"(",
"egg",
",",
"zname",
"+",
"'/__init__.pyo'",
")",
")",
"fpath",
"=",
"os",
".",
"path",
".",
"join",
"(",
"path",
",",
"path",
",",
"zname",
")",
"if",
"addpath",
"and",
"fpath",
"not",
"in",
"mod_path",
":",
"mod_path",
".",
"append",
"(",
"fpath",
")",
"except",
"(",
"zipfile",
".",
"BadZipfile",
",",
"zipfile",
".",
"LargeZipFile",
")",
":",
"pass",
"# xxx: Show a warning at least?",
"else",
":",
"path",
"=",
"os",
".",
"path",
".",
"join",
"(",
"path",
",",
"pname",
")",
"if",
"os",
".",
"path",
".",
"isdir",
"(",
"path",
")",
"and",
"path",
"not",
"in",
"mod_path",
":",
"addpath",
"=",
"(",
"os",
".",
"path",
".",
"isfile",
"(",
"os",
".",
"path",
".",
"join",
"(",
"path",
",",
"init_py",
")",
")",
"or",
"os",
".",
"path",
".",
"isfile",
"(",
"os",
".",
"path",
".",
"join",
"(",
"path",
",",
"init_pyc",
")",
")",
"or",
"os",
".",
"path",
".",
"isfile",
"(",
"os",
".",
"path",
".",
"join",
"(",
"path",
",",
"init_pyo",
")",
")",
")",
"if",
"addpath",
"and",
"path",
"not",
"in",
"mod_path",
":",
"mod_path",
".",
"append",
"(",
"path",
")",
"return",
"[",
"os",
".",
"path",
".",
"normpath",
"(",
"x",
")",
"for",
"x",
"in",
"mod_path",
"]"
] | Better implementation of #pkgutil.extend_path() which adds support for
zipped Python eggs. The original #pkgutil.extend_path() gets mocked by this
function inside the #localimport context. | [
"Better",
"implementation",
"of",
"#pkgutil",
".",
"extend_path",
"()",
"which",
"adds",
"support",
"for",
"zipped",
"Python",
"eggs",
".",
"The",
"original",
"#pkgutil",
".",
"extend_path",
"()",
"gets",
"mocked",
"by",
"this",
"function",
"inside",
"the",
"#localimport",
"context",
"."
] | 69af71c37f8bd3b2121ec39083dff18a9a2d04a1 | https://github.com/NiklasRosenstein/py-localimport/blob/69af71c37f8bd3b2121ec39083dff18a9a2d04a1/localimport.py#L118-L159 | train | A simple path extension that adds support for
. | GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7e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Warning,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(51) + chr(53) + '\065', 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(0b10111 + 0o32) + chr(0b11001 + 0o30) + chr(0b1110 + 0o51), 33315 - 33307), nzTpIcepk0o8(chr(0b1101 + 0o43) + chr(7587 - 7476) + '\x31' + chr(0b110010) + chr(55), 28217 - 28209), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\061' + chr(549 - 497) + chr(54), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1000111 + 0o50) + chr(1432 - 1381) + '\065' + chr(0b11110 + 0o27), 8), nzTpIcepk0o8('\x30' + '\x6f' + chr(49) + chr(0b100010 + 0o24) + chr(230 - 181), ord("\x08")), nzTpIcepk0o8(chr(605 - 557) + chr(0b1101111) + chr(0b1000 + 0o52) + '\060' + chr(0b1100 + 0o47), 0b1000), nzTpIcepk0o8('\x30' + chr(4109 - 3998) + chr(0b11110 + 0o24) + chr(0b110101) + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(2140 - 2089) + '\061' + chr(0b101110 + 0o6), ord("\x08")), nzTpIcepk0o8(chr(0b11110 + 0o22) + chr(10360 - 10249) + chr(0b1010 + 0o51) + '\x35' + chr(0b10010 + 0o44), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(504 - 454) + '\061' + chr(126 - 78), 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(594 - 540) + chr(0b0 + 0o65), 0b1000), nzTpIcepk0o8(chr(2064 - 2016) + chr(0b111011 + 0o64) + '\063' + chr(0b10100 + 0o41) + chr(0b110011), 0o10), nzTpIcepk0o8(chr(1178 - 1130) + chr(0b1010 + 0o145) + '\x31' + '\x37' + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(221 - 173) + '\x6f' + chr(0b11100 + 0o27) + '\062' + '\060', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x31' + chr(48) + '\x33', 0b1000), nzTpIcepk0o8(chr(1856 - 1808) + '\157' + '\x34' + '\062', 0o10), nzTpIcepk0o8(chr(48) + chr(0b110011 + 0o74) + chr(1041 - 990) + chr(0b110100) + '\063', 0b1000), nzTpIcepk0o8(chr(48) + chr(9921 - 9810) + chr(0b110010) + '\061' + '\x35', ord("\x08")), nzTpIcepk0o8('\x30' + chr(5583 - 5472) + chr(844 - 796), 0b1000), nzTpIcepk0o8(chr(0b100110 + 0o12) + chr(0b1101111) + chr(240 - 189) + chr(55) + chr(55), 21111 - 21103), nzTpIcepk0o8(chr(0b1111 + 0o41) + chr(0b101000 + 0o107) + '\x32' + chr(48), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(55), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(877 - 828) + '\065' + chr(51), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(49) + chr(1501 - 1447) + chr(0b11101 + 0o32), 0o10), nzTpIcepk0o8(chr(48) + chr(0b10001 + 0o136) + '\063' + chr(0b10010 + 0o36) + chr(0b110110), 22851 - 22843), nzTpIcepk0o8('\x30' + '\x6f' + '\x34' + chr(0b110011), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + '\x32' + '\x36' + chr(0b110001), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(10297 - 10186) + chr(50) + chr(0b11101 + 0o31) + chr(0b110011), 14994 - 14986), nzTpIcepk0o8(chr(0b1100 + 0o44) + chr(111) + '\061' + '\x35' + chr(49), 0b1000), nzTpIcepk0o8(chr(0b101 + 0o53) + '\157' + chr(0b110011) + chr(0b110111) + chr(51), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(53) + chr(635 - 587), ord("\x08")), nzTpIcepk0o8(chr(0b100111 + 0o11) + chr(0b1101111) + chr(0b110100), 38086 - 38078), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(52) + chr(0b110011), 8), nzTpIcepk0o8(chr(0b101 + 0o53) + '\x6f' + chr(0b110001) + chr(0b10111 + 0o31) + chr(0b110101), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(1588 - 1539) + '\x30' + '\061', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(51) + '\x34' + chr(48), 0b1000), nzTpIcepk0o8(chr(0b1 + 0o57) + chr(111) + chr(0b110001) + '\065' + '\x30', 8825 - 8817), nzTpIcepk0o8(chr(0b1000 + 0o50) + chr(9018 - 8907) + chr(0b110001 + 0o0) + '\066' + chr(48), 6216 - 6208), nzTpIcepk0o8(chr(1945 - 1897) + chr(0b1010100 + 0o33) + '\x33' + chr(333 - 283) + '\x33', ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + chr(8357 - 8246) + chr(53) + chr(0b110000), 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xc3'), '\144' + '\x65' + chr(0b1100010 + 0o1) + chr(2273 - 2162) + chr(0b1100100) + chr(101))('\x75' + '\164' + chr(0b1100110) + chr(0b0 + 0o55) + '\x38') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def W1LK4Uzu5YBz(zKigb_5NQSq1, SLVB2BPA_mIe):
def HDQqJ8f3DxWC(ZkpORfAzQ9Hw, SLVB2BPA_mIe):
roI3spqORKae(SLVB2BPA_mIe, roI3spqORKae(ES5oEprVxulp(b'\x9f<#\x14\x84\x01'), '\x64' + chr(0b11111 + 0o106) + chr(0b11100 + 0o107) + '\x6f' + chr(574 - 474) + '\x65')(chr(9582 - 9465) + chr(10244 - 10128) + chr(0b111101 + 0o51) + '\x2d' + chr(0b110111 + 0o1)))(roI3spqORKae(ES5oEprVxulp(b'\xc2'), '\144' + chr(101) + '\x63' + '\157' + chr(2902 - 2802) + chr(101))('\165' + '\x74' + chr(0b1100110) + '\055' + chr(0b100 + 0o64)))
return SLVB2BPA_mIe in roI3spqORKae(ZkpORfAzQ9Hw, roI3spqORKae(ES5oEprVxulp(b'\xbe-\x07"\xa43\xe1\xca\xfa\xd8\xffC'), chr(0b1100100) + chr(0b1100101) + '\x63' + '\x6f' + chr(100) + '\x65')('\x75' + chr(0b100010 + 0o122) + chr(0b1100110) + chr(45) + '\070'))()
PBnpQrxuz6xP = aHUqKstZLeS6.path.Y4yM9BcfTCNq(*SLVB2BPA_mIe.LfRrQOxuDvnC(roI3spqORKae(ES5oEprVxulp(b'\xc3'), '\x64' + '\x65' + '\143' + '\157' + chr(0b1100 + 0o130) + '\145')(chr(12523 - 12406) + chr(0b1101100 + 0o10) + chr(102) + chr(0b1 + 0o54) + chr(0b11111 + 0o31))))
bnHL9CV1bRwm = roI3spqORKae(ES5oEprVxulp(b'\xc2'), '\x64' + chr(0b110001 + 0o64) + '\x63' + chr(0b1101 + 0o142) + chr(1315 - 1215) + chr(6078 - 5977))('\x75' + '\x74' + chr(102) + chr(0b101101) + chr(0b100110 + 0o22)).Y4yM9BcfTCNq(SLVB2BPA_mIe.LfRrQOxuDvnC(roI3spqORKae(ES5oEprVxulp(b'\xc3'), chr(1226 - 1126) + chr(101) + '\143' + chr(6488 - 6377) + chr(0b1100100) + chr(815 - 714))(chr(0b101011 + 0o112) + chr(7680 - 7564) + chr(0b1001 + 0o135) + '\x2d' + '\070')))
GGUvrSXU4zGr = roI3spqORKae(ES5oEprVxulp(b'\xb2\x10>\x08\x84\x05\xdc\xf3'), chr(0b101001 + 0o73) + chr(0b1100101) + '\x63' + chr(0b1101111) + chr(100) + chr(5588 - 5487))('\165' + '\x74' + chr(0b101010 + 0o74) + chr(0b101011 + 0o2) + chr(56)) + aHUqKstZLeS6.extsep + roI3spqORKae(ES5oEprVxulp(b'\x9d6'), chr(0b1100100) + chr(9433 - 9332) + '\143' + chr(111) + chr(2955 - 2855) + chr(101))('\x75' + chr(116) + chr(3842 - 3740) + '\x2d' + chr(0b111000))
RwIu1_u2YrJ_ = roI3spqORKae(ES5oEprVxulp(b'\xb2\x10>\x08\x84\x05\xdc\xf3'), '\144' + chr(0b101100 + 0o71) + '\143' + chr(2439 - 2328) + '\144' + chr(0b1100101))('\x75' + chr(116) + chr(0b110000 + 0o66) + chr(45) + '\070') + aHUqKstZLeS6.extsep + roI3spqORKae(ES5oEprVxulp(b'\x9d64'), chr(0b101011 + 0o71) + chr(0b11010 + 0o113) + '\x63' + chr(7685 - 7574) + chr(0b10011 + 0o121) + chr(9996 - 9895))('\165' + chr(0b1110100) + chr(4725 - 4623) + chr(0b10101 + 0o30) + chr(699 - 643))
_NjnFwEBQMb3 = roI3spqORKae(ES5oEprVxulp(b'\xb2\x10>\x08\x84\x05\xdc\xf3'), chr(0b1100100) + chr(276 - 175) + chr(99) + chr(111) + chr(0b1100100) + chr(547 - 446))(chr(0b1110101) + '\164' + '\146' + chr(0b100110 + 0o7) + chr(0b111000)) + aHUqKstZLeS6.extsep + roI3spqORKae(ES5oEprVxulp(b'\x9d68'), chr(0b101111 + 0o65) + chr(101) + chr(0b1010000 + 0o23) + chr(4250 - 4139) + '\x64' + '\x65')(chr(0b11101 + 0o130) + chr(6410 - 6294) + chr(5386 - 5284) + chr(0b101101) + chr(2602 - 2546))
cHTJTfZzYM6N = H4NoA26ON7iG(zKigb_5NQSq1)
for _pSYqrosNb95 in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\xb2?\x04?\x9c\x03\xec\xdf\x82\x8c\xb1\x00'), chr(0b1100100) + chr(101) + '\x63' + chr(6083 - 5972) + '\144' + chr(0b110011 + 0o62))(chr(0b1110101) + chr(13136 - 13020) + chr(0b11110 + 0o110) + chr(0b101000 + 0o5) + '\x38')):
if roI3spqORKae(nbUuIHHl2jmi, roI3spqORKae(ES5oEprVxulp(b'\x84<\x08\x1c\x84\x01\xe5\xc5\xa0\x8b'), chr(100) + chr(101) + '\143' + '\157' + chr(0b1100100) + chr(101))('\165' + chr(0b101001 + 0o113) + '\146' + chr(45) + chr(0b111000)))(_pSYqrosNb95):
try:
uztXzyqtI5qI = nbUuIHHl2jmi.ZipFile(_pSYqrosNb95, roI3spqORKae(ES5oEprVxulp(b'\x9f'), '\x64' + '\x65' + chr(0b1100011) + '\157' + '\x64' + chr(2955 - 2854))(chr(117) + '\x74' + chr(102) + '\x2d' + chr(0b0 + 0o70)))
rm7x3J0u9w7_ = HDQqJ8f3DxWC(uztXzyqtI5qI, bnHL9CV1bRwm + roI3spqORKae(ES5oEprVxulp(b'\xc2\x10\x08\x0f\x83\x18\xf7\xf3\x93\xc0\xf8L'), '\144' + chr(0b1100101) + '\x63' + chr(111) + chr(100) + chr(0b1000011 + 0o42))('\165' + chr(5783 - 5667) + chr(0b1101 + 0o131) + chr(0b101101) + '\070')) or HDQqJ8f3DxWC(uztXzyqtI5qI, bnHL9CV1bRwm + roI3spqORKae(ES5oEprVxulp(b'\xc2\x10\x08\x0f\x83\x18\xf7\xf3\x93\xc0\xf8L\x88'), chr(0b1100100) + chr(0b1011 + 0o132) + '\143' + chr(0b1101111) + chr(8549 - 8449) + chr(9200 - 9099))(chr(0b1110101) + chr(116) + '\146' + chr(0b1110 + 0o37) + chr(0b111000))) or HDQqJ8f3DxWC(uztXzyqtI5qI, bnHL9CV1bRwm + roI3spqORKae(ES5oEprVxulp(b'\xc2\x10\x08\x0f\x83\x18\xf7\xf3\x93\xc0\xf8L\x84'), chr(5452 - 5352) + chr(101) + chr(0b1011100 + 0o7) + '\157' + '\x64' + chr(0b1100001 + 0o4))('\x75' + '\164' + chr(0b1011 + 0o133) + '\x2d' + chr(0b10111 + 0o41)))
z0r6brGsQDSn = aHUqKstZLeS6.path.Y4yM9BcfTCNq(_pSYqrosNb95, _pSYqrosNb95, bnHL9CV1bRwm)
if rm7x3J0u9w7_ and z0r6brGsQDSn not in cHTJTfZzYM6N:
roI3spqORKae(cHTJTfZzYM6N, roI3spqORKae(ES5oEprVxulp(b'\xa5\x1b\x04R\x95\x16\xc4\xc3\xa6\x81\xdd\x00'), chr(100) + chr(0b1100101) + chr(0b101001 + 0o72) + '\x6f' + '\144' + chr(0b1001000 + 0o35))(chr(117) + chr(0b11100 + 0o130) + chr(6836 - 6734) + '\x2d' + chr(0b10000 + 0o50)))(z0r6brGsQDSn)
except (roI3spqORKae(nbUuIHHl2jmi, roI3spqORKae(ES5oEprVxulp(b'\xaf.3<\x84\x01\xe5\xc5\xa0\x8b'), chr(1580 - 1480) + chr(10112 - 10011) + '\x63' + chr(0b110100 + 0o73) + '\x64' + chr(101))(chr(0b1110101) + chr(0b1100010 + 0o22) + chr(102) + chr(45) + chr(1962 - 1906))), roI3spqORKae(nbUuIHHl2jmi, roI3spqORKae(ES5oEprVxulp(b'\xa1.%\x01\x88+\xea\xdc\x8a\x87\xe4P'), chr(0b1100000 + 0o4) + chr(0b1001010 + 0o33) + chr(0b101111 + 0o64) + chr(111) + chr(0b1100100) + chr(0b1100101))('\x75' + chr(116) + '\x66' + '\x2d' + '\070'))):
pass
else:
_pSYqrosNb95 = aHUqKstZLeS6.path.Y4yM9BcfTCNq(_pSYqrosNb95, PBnpQrxuz6xP)
if roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b"\xb5'\x07W\xb7\x05\xc1\x95\xad\xbf\xf2w"), chr(5104 - 5004) + chr(0b10010 + 0o123) + '\143' + '\x6f' + chr(0b1100100) + '\145')('\x75' + '\x74' + chr(0b1100110) + chr(45) + chr(0b111000)))(_pSYqrosNb95) and _pSYqrosNb95 not in cHTJTfZzYM6N:
rm7x3J0u9w7_ = aHUqKstZLeS6.path.isfile(aHUqKstZLeS6.path.Y4yM9BcfTCNq(_pSYqrosNb95, GGUvrSXU4zGr)) or aHUqKstZLeS6.path.isfile(aHUqKstZLeS6.path.Y4yM9BcfTCNq(_pSYqrosNb95, RwIu1_u2YrJ_)) or aHUqKstZLeS6.path.isfile(aHUqKstZLeS6.path.Y4yM9BcfTCNq(_pSYqrosNb95, _NjnFwEBQMb3))
if rm7x3J0u9w7_ and _pSYqrosNb95 not in cHTJTfZzYM6N:
roI3spqORKae(cHTJTfZzYM6N, roI3spqORKae(ES5oEprVxulp(b'\xa5\x1b\x04R\x95\x16\xc4\xc3\xa6\x81\xdd\x00'), chr(0b1010110 + 0o16) + chr(0b10100 + 0o121) + chr(0b1100011) + chr(5164 - 5053) + '\x64' + chr(0b110011 + 0o62))(chr(0b1110101) + chr(0b1110100) + '\146' + chr(45) + '\070'))(_pSYqrosNb95)
return [roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'\x83 %\x0b\x9d\x10\xf7\xc4'), chr(0b1100100) + '\x65' + '\143' + '\x6f' + chr(0b1100100) + chr(0b1100101))(chr(0b11 + 0o162) + '\164' + chr(0b1001 + 0o135) + chr(0b101101) + chr(0b111000)))(bI5jsQ9OkQtj) for bI5jsQ9OkQtj in cHTJTfZzYM6N] |
NiklasRosenstein/py-localimport | localimport.py | localimport._declare_namespace | def _declare_namespace(self, package_name):
'''
Mock for #pkg_resources.declare_namespace() which calls
#pkgutil.extend_path() afterwards as the original implementation doesn't
seem to properly find all available namespace paths.
'''
self.state['declare_namespace'](package_name)
mod = sys.modules[package_name]
mod.__path__ = pkgutil.extend_path(mod.__path__, package_name) | python | def _declare_namespace(self, package_name):
'''
Mock for #pkg_resources.declare_namespace() which calls
#pkgutil.extend_path() afterwards as the original implementation doesn't
seem to properly find all available namespace paths.
'''
self.state['declare_namespace'](package_name)
mod = sys.modules[package_name]
mod.__path__ = pkgutil.extend_path(mod.__path__, package_name) | [
"def",
"_declare_namespace",
"(",
"self",
",",
"package_name",
")",
":",
"self",
".",
"state",
"[",
"'declare_namespace'",
"]",
"(",
"package_name",
")",
"mod",
"=",
"sys",
".",
"modules",
"[",
"package_name",
"]",
"mod",
".",
"__path__",
"=",
"pkgutil",
".",
"extend_path",
"(",
"mod",
".",
"__path__",
",",
"package_name",
")"
] | Mock for #pkg_resources.declare_namespace() which calls
#pkgutil.extend_path() afterwards as the original implementation doesn't
seem to properly find all available namespace paths. | [
"Mock",
"for",
"#pkg_resources",
".",
"declare_namespace",
"()",
"which",
"calls",
"#pkgutil",
".",
"extend_path",
"()",
"afterwards",
"as",
"the",
"original",
"implementation",
"doesn",
"t",
"seem",
"to",
"properly",
"find",
"all",
"available",
"namespace",
"paths",
"."
] | 69af71c37f8bd3b2121ec39083dff18a9a2d04a1 | https://github.com/NiklasRosenstein/py-localimport/blob/69af71c37f8bd3b2121ec39083dff18a9a2d04a1/localimport.py#L329-L338 | train | Declare a new namespace for the given package. | GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbN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CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__
ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b100110 + 0o20) + chr(0b110000), 0o10), nzTpIcepk0o8('\x30' + chr(7075 - 6964) + '\x32' + chr(0b110000) + '\x36', ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(54) + '\061', 5451 - 5443), nzTpIcepk0o8('\060' + chr(0b101000 + 0o107) + chr(50) + '\062' + chr(54), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(51) + '\060' + chr(52), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b100111 + 0o15) + '\060', 7660 - 7652), nzTpIcepk0o8('\060' + '\x6f' + '\x32' + chr(51) + chr(0b110110), 0b1000), nzTpIcepk0o8(chr(0b100011 + 0o15) + chr(111) + '\x35' + chr(0b110101), 621 - 613), nzTpIcepk0o8('\x30' + chr(0b101111 + 0o100) + chr(0b1111 + 0o43) + chr(479 - 424) + chr(70 - 18), 6098 - 6090), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x32' + chr(0b110000) + chr(1129 - 1081), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1010 + 0o145) + chr(0b110010) + chr(1165 - 1112) + chr(0b110000), 0b1000), nzTpIcepk0o8(chr(0b11010 + 0o26) + chr(0b1011011 + 0o24) + chr(0b10100 + 0o35) + chr(0b1000 + 0o50) + chr(0b11 + 0o55), 0b1000), nzTpIcepk0o8(chr(1801 - 1753) + chr(11775 - 11664) + chr(0b11110 + 0o24) + chr(0b110111) + '\060', 4273 - 4265), nzTpIcepk0o8(chr(108 - 60) + chr(0b1101000 + 0o7) + '\x33' + chr(2543 - 2491) + chr(50), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110001) + chr(0b10110 + 0o41) + '\x37', 0o10), nzTpIcepk0o8('\x30' + '\157' + '\066' + '\x35', 52919 - 52911), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b1000 + 0o55) + chr(0b110001), 17630 - 17622), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110001) + chr(0b11011 + 0o26), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b110 + 0o151) + '\062' + chr(52) + '\x31', 7855 - 7847), nzTpIcepk0o8(chr(48) + chr(6359 - 6248) + chr(993 - 943) + '\060' + chr(0b110000), 8), nzTpIcepk0o8('\060' + chr(9318 - 9207) + chr(2021 - 1966) + chr(0b110010), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\061' + chr(0b110101) + '\x32', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110011) + chr(0b110101) + chr(0b110101 + 0o2), 0b1000), nzTpIcepk0o8(chr(1663 - 1615) + chr(0b100100 + 0o113) + chr(807 - 755) + '\060', 8), nzTpIcepk0o8('\x30' + chr(0b1010110 + 0o31) + chr(0b11 + 0o56) + chr(0b1001 + 0o56), ord("\x08")), nzTpIcepk0o8(chr(750 - 702) + chr(0b1101111) + chr(49) + chr(53) + chr(0b110000), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(856 - 807) + chr(548 - 496) + chr(52), ord("\x08")), nzTpIcepk0o8(chr(759 - 711) + chr(0b1101111) + '\061' + chr(0b110110), 0o10), nzTpIcepk0o8(chr(0b100110 + 0o12) + chr(2155 - 2044) + '\063' + chr(2434 - 2379) + chr(277 - 224), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110001) + '\065', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(50) + chr(350 - 297) + chr(0b1011 + 0o51), 59179 - 59171), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x31' + '\x33' + chr(50), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(1214 - 1162) + '\067', ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b11 + 0o61) + '\066', 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(0b10010 + 0o40) + chr(110 - 56) + '\x31', 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(1910 - 1859) + chr(0b11001 + 0o32), 0b1000), nzTpIcepk0o8(chr(0b1 + 0o57) + '\x6f' + '\061' + chr(0b110101) + chr(55), 9867 - 9859), nzTpIcepk0o8(chr(48) + chr(10951 - 10840) + chr(0b110010) + chr(48), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b100111 + 0o12) + '\x37' + chr(0b100000 + 0o20), 0o10), nzTpIcepk0o8('\060' + chr(0b1010011 + 0o34) + '\x32' + chr(0b1110 + 0o43) + '\062', 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + chr(5850 - 5739) + '\x35' + chr(0b11001 + 0o27), 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x1e'), '\144' + chr(0b101001 + 0o74) + chr(99) + '\x6f' + chr(0b1100100) + '\145')(chr(117) + chr(116) + chr(4936 - 4834) + chr(0b101101) + chr(56)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def H1d4eO8Z_Y86(hXMPsSrOQzbh, MRkFEmySTrOo):
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'f\xcbs\xd5\xf0\x17\xccH\xd3\xf1\x9c\x11'), chr(0b1100100) + '\x65' + '\143' + chr(111) + chr(4358 - 4258) + '\145')('\x75' + '\x74' + chr(102) + chr(0b1101 + 0o40) + '\x38'))[roI3spqORKae(ES5oEprVxulp(b'T\xe3R\xfa\xa5R\xfbr\xd2\xe1\xc5%\xcb\x92\x1eVL'), chr(1633 - 1533) + chr(0b10001 + 0o124) + '\143' + chr(0b11100 + 0o123) + chr(0b1001100 + 0o30) + chr(0b1100101))(chr(0b1110101) + '\x74' + chr(102) + '\055' + chr(2410 - 2354))](MRkFEmySTrOo)
uApwDiFWBW68 = bpyfpu4kTbwL.DtUmKnyEi6PU[MRkFEmySTrOo]
uApwDiFWBW68.HqN6mI_ra16R = LZWur8DQbbjl.extend_path(uApwDiFWBW68.HqN6mI_ra16R, MRkFEmySTrOo) |
hubo1016/namedstruct | misc/ethernet.py | ip_frag | def ip_frag(packet):
'''
Not fragments:
ip_frag(packet) == 0
not ip_frag(packet)
First packet of fragments:
ip_frag(packet) == IP_FRAG_ANY
Not first packet of fragments:
ip_frag(packet) & IP_FRAG_LATER
All fragments:
ip_frag(packet) & IP_FRAG_ANY
'''
return ((packet.frag_off & IP_OFFMASK) and IP_FRAG_LATER) | ((packet.frag_off & (IP_OFFMASK | IP_MF)) and IP_FRAG_ANY) | python | def ip_frag(packet):
'''
Not fragments:
ip_frag(packet) == 0
not ip_frag(packet)
First packet of fragments:
ip_frag(packet) == IP_FRAG_ANY
Not first packet of fragments:
ip_frag(packet) & IP_FRAG_LATER
All fragments:
ip_frag(packet) & IP_FRAG_ANY
'''
return ((packet.frag_off & IP_OFFMASK) and IP_FRAG_LATER) | ((packet.frag_off & (IP_OFFMASK | IP_MF)) and IP_FRAG_ANY) | [
"def",
"ip_frag",
"(",
"packet",
")",
":",
"return",
"(",
"(",
"packet",
".",
"frag_off",
"&",
"IP_OFFMASK",
")",
"and",
"IP_FRAG_LATER",
")",
"|",
"(",
"(",
"packet",
".",
"frag_off",
"&",
"(",
"IP_OFFMASK",
"|",
"IP_MF",
")",
")",
"and",
"IP_FRAG_ANY",
")"
] | Not fragments:
ip_frag(packet) == 0
not ip_frag(packet)
First packet of fragments:
ip_frag(packet) == IP_FRAG_ANY
Not first packet of fragments:
ip_frag(packet) & IP_FRAG_LATER
All fragments:
ip_frag(packet) & IP_FRAG_ANY | [
"Not",
"fragments",
":",
"ip_frag",
"(",
"packet",
")",
"==",
"0",
"not",
"ip_frag",
"(",
"packet",
")",
"First",
"packet",
"of",
"fragments",
":",
"ip_frag",
"(",
"packet",
")",
"==",
"IP_FRAG_ANY",
"Not",
"first",
"packet",
"of",
"fragments",
":",
"ip_frag",
"(",
"packet",
")",
"&",
"IP_FRAG_LATER",
"All",
"fragments",
":",
"ip_frag",
"(",
"packet",
")",
"&",
"IP_FRAG_ANY"
] | 5039026e0df4ce23003d212358918dbe1a6e1d76 | https://github.com/hubo1016/namedstruct/blob/5039026e0df4ce23003d212358918dbe1a6e1d76/misc/ethernet.py#L342-L358 | train | Return the fragment of the given packet. | 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,C60ELahX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zk7,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(0b110000 + 0o2) + chr(0b110000) + chr(54), 639 - 631), nzTpIcepk0o8(chr(0b101111 + 0o1) + chr(0b1101111) + chr(0b11 + 0o56) + chr(0b110000) + chr(0b110011), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b100110 + 0o13) + chr(0b10111 + 0o34) + '\x32', 56592 - 56584), nzTpIcepk0o8(chr(0b101100 + 0o4) + '\157' + chr(51) + chr(0b100100 + 0o14) + chr(1511 - 1463), 15040 - 15032), nzTpIcepk0o8(chr(1293 - 1245) + chr(0b10011 + 0o134) + chr(2029 - 1980) + chr(53), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b10101 + 0o35) + chr(50) + '\x33', 24858 - 24850), nzTpIcepk0o8(chr(688 - 640) + chr(9252 - 9141) + '\x31' + '\066' + '\064', 52800 - 52792), nzTpIcepk0o8(chr(48) + '\x6f' + '\x31' + chr(1260 - 1207) + chr(181 - 129), 0o10), nzTpIcepk0o8(chr(0b10000 + 0o40) + chr(0b1101111) + '\062' + chr(0b10110 + 0o35), 0o10), nzTpIcepk0o8(chr(0b101000 + 0o10) + chr(1253 - 1142) + chr(0b110011) + '\062' + chr(0b110000), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x37' + chr(0b110100), 0o10), nzTpIcepk0o8(chr(48) + '\157' + '\x36' + chr(0b101111 + 0o2), 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(50) + chr(0b101101 + 0o4) + '\064', 0b1000), nzTpIcepk0o8(chr(569 - 521) + chr(0b110100 + 0o73) + chr(51) + chr(0b110011) + chr(2180 - 2131), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x31' + chr(0b100111 + 0o15) + '\062', 42164 - 42156), nzTpIcepk0o8(chr(201 - 153) + '\157' + '\067' + chr(0b1001 + 0o54), 0o10), nzTpIcepk0o8(chr(125 - 77) + chr(111) + '\x31' + chr(0b11 + 0o57) + chr(51), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110010) + chr(1189 - 1140), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x33' + chr(0b1100 + 0o47) + chr(0b100011 + 0o16), 8), nzTpIcepk0o8(chr(0b110000) + '\157' + '\061' + '\067', 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(0b110110) + '\x37', 0b1000), nzTpIcepk0o8(chr(0b101111 + 0o1) + chr(0b1101111) + chr(49) + '\063', 65343 - 65335), nzTpIcepk0o8(chr(555 - 507) + '\157' + chr(0b100100 + 0o15) + chr(0b110101) + '\x30', 0o10), nzTpIcepk0o8(chr(0b11000 + 0o30) + chr(0b1101111) + '\x31' + chr(51) + chr(0b10010 + 0o40), 8), nzTpIcepk0o8('\x30' + chr(6278 - 6167) + chr(1474 - 1425) + chr(0b110000) + '\063', 8), nzTpIcepk0o8(chr(0b101 + 0o53) + chr(9167 - 9056) + '\063' + chr(0b11 + 0o63) + chr(0b101001 + 0o10), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1001101 + 0o42) + chr(0b110011) + chr(0b100101 + 0o16) + chr(52), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110010) + '\064', 47470 - 47462), nzTpIcepk0o8('\060' + chr(3615 - 3504) + chr(0b10000 + 0o41) + chr(0b100001 + 0o25), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(3851 - 3740) + '\061' + chr(52) + chr(0b101001 + 0o10), 0o10), nzTpIcepk0o8(chr(0b100101 + 0o13) + '\x6f' + chr(0b110100) + '\066', 0o10), nzTpIcepk0o8('\060' + chr(0b100001 + 0o116) + '\063' + chr(51) + chr(319 - 268), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\063' + chr(427 - 372) + '\x31', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(1899 - 1788) + '\x31' + chr(0b101 + 0o61) + '\x37', 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(55) + chr(0b110001 + 0o1), 56709 - 56701), nzTpIcepk0o8(chr(0b10011 + 0o35) + chr(0b110111 + 0o70) + chr(50) + chr(54) + chr(226 - 178), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(1736 - 1686) + '\062' + '\x35', ord("\x08")), nzTpIcepk0o8(chr(0b11001 + 0o27) + '\157' + '\063' + chr(1936 - 1886) + chr(196 - 146), 53045 - 53037), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110001) + '\x33' + chr(2067 - 2013), 38998 - 38990), nzTpIcepk0o8('\060' + '\157' + chr(0b100111 + 0o12) + chr(0b110110) + chr(1233 - 1180), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(2050 - 2002) + '\x6f' + chr(0b110101) + chr(0b110000), 43886 - 43878)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xa8'), chr(4794 - 4694) + chr(0b1100101) + chr(99) + chr(8972 - 8861) + chr(0b101100 + 0o70) + chr(0b1100101))('\x75' + chr(0b1110100) + '\x66' + chr(422 - 377) + '\x38') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def VTjcM3fS_RKT(zyng0sIIokQa):
return (roI3spqORKae(zyng0sIIokQa, roI3spqORKae(ES5oEprVxulp(b'\xe01;\xa7R\xfc\x12\n'), '\x64' + '\x65' + '\x63' + '\x6f' + '\x64' + '\145')('\165' + chr(0b110111 + 0o75) + chr(5003 - 4901) + '\x2d' + chr(0b111000))) & Ui05QlBFw7jg and sD2a62Zbs_DC) | (roI3spqORKae(zyng0sIIokQa, roI3spqORKae(ES5oEprVxulp(b'\xe01;\xa7R\xfc\x12\n'), chr(6643 - 6543) + chr(0b110 + 0o137) + chr(2302 - 2203) + chr(5387 - 5276) + chr(0b1100100) + chr(9479 - 9378))('\165' + '\164' + chr(102) + '\055' + chr(0b100111 + 0o21))) & (Ui05QlBFw7jg | YoJJtOSCSqvD) and fH1FkvrZ628b) |
hubo1016/namedstruct | misc/openflow/nicira_ext.py | create_extension | def create_extension(namespace, nicira_header, nx_action, nx_stats_request, nx_stats_reply,
msg_subtype, action_subtype, stats_subtype):
'''
/* This command enables or disables an Open vSwitch extension that allows a
* controller to specify the OpenFlow table to which a flow should be added,
* instead of having the switch decide which table is most appropriate as
* required by OpenFlow 1.0. Because NXM was designed as an extension to
* OpenFlow 1.0, the extension applies equally to ofp10_flow_mod and
* nx_flow_mod. By default, the extension is disabled.
*
* When this feature is enabled, Open vSwitch treats struct ofp10_flow_mod's
* and struct nx_flow_mod's 16-bit 'command' member as two separate fields.
* The upper 8 bits are used as the table ID, the lower 8 bits specify the
* command as usual. A table ID of 0xff is treated like a wildcarded table ID.
*
* The specific treatment of the table ID depends on the type of flow mod:
*
* - OFPFC_ADD: Given a specific table ID, the flow is always placed in that
* table. If an identical flow already exists in that table only, then it
* is replaced. If the flow cannot be placed in the specified table,
* either because the table is full or because the table cannot support
* flows of the given type, the switch replies with an OFPFMFC_TABLE_FULL
* error. (A controller can distinguish these cases by comparing the
* current and maximum number of entries reported in ofp_table_stats.)
*
* If the table ID is wildcarded, the switch picks an appropriate table
* itself. If an identical flow already exist in the selected flow table,
* then it is replaced. The choice of table might depend on the flows
* that are already in the switch; for example, if one table fills up then
* the switch might fall back to another one.
*
* - OFPFC_MODIFY, OFPFC_DELETE: Given a specific table ID, only flows
* within that table are matched and modified or deleted. If the table ID
* is wildcarded, flows within any table may be matched and modified or
* deleted.
*
* - OFPFC_MODIFY_STRICT, OFPFC_DELETE_STRICT: Given a specific table ID,
* only a flow within that table may be matched and modified or deleted.
* If the table ID is wildcarded and exactly one flow within any table
* matches, then it is modified or deleted; if flows in more than one
* table match, then none is modified or deleted.
*/
'''
with _warnings.catch_warnings():
_warnings.filterwarnings('ignore', '^padding', StructDefWarning)
nx_flow_mod_table_id = nstruct(
(uint8, 'set'), # /* Nonzero to enable, zero to disable. */
(uint8[7],),
name = 'nx_flow_mod_table_id',
base = nicira_header,
criteria = lambda x: getattr(x, msg_subtype) == NXT_FLOW_MOD_TABLE_ID,
classifyby = (NXT_FLOW_MOD_TABLE_ID,),
init = packvalue(NXT_FLOW_MOD_TABLE_ID, msg_subtype)
)
namespace['nx_flow_mod_table_id'] = nx_flow_mod_table_id
'''
/* NXT_SET_PACKET_IN_FORMAT request. */
'''
nx_set_packet_in_format = nstruct(
(uint32, 'format'), # /* One of NXPIF_*. */
name = 'nx_set_packet_in_format',
base = nicira_header,
criteria = lambda x: getattr(x, msg_subtype) == NXT_SET_PACKET_IN_FORMAT,
classifyby = (NXT_SET_PACKET_IN_FORMAT,),
init = packvalue(NXT_SET_PACKET_IN_FORMAT, msg_subtype)
)
namespace['nx_set_packet_in_format'] = nx_set_packet_in_format
'''
/* NXT_PACKET_IN (analogous to OFPT_PACKET_IN).
*
* NXT_PACKET_IN is similar to the OpenFlow 1.2 OFPT_PACKET_IN. The
* differences are:
*
* - NXT_PACKET_IN includes the cookie of the rule that triggered the
* message. (OpenFlow 1.3 OFPT_PACKET_IN also includes the cookie.)
*
* - The metadata fields use NXM (instead of OXM) field numbers.
*
* Open vSwitch 1.9.0 and later omits metadata fields that are zero (as allowed
* by OpenFlow 1.2). Earlier versions included all implemented metadata
* fields.
*
* Open vSwitch does not include non-metadata in the nx_match, because by
* definition that information can be found in the packet itself. The format
* and the standards allow this, however, so controllers should be prepared to
* tolerate future changes.
*
* The NXM format is convenient for reporting metadata values, but it is
* important not to interpret the format as matching against a flow, because it
* does not. Nothing is being matched; arbitrary metadata masks would not be
* meaningful.
*
* Whereas in most cases a controller can expect to only get back NXM fields
* that it set up itself (e.g. flow dumps will ordinarily report only NXM
* fields from flows that the controller added), NXT_PACKET_IN messages might
* contain fields that the controller does not understand, because the switch
* might support fields (new registers, new protocols, etc.) that the
* controller does not. The controller must prepared to tolerate these.
*
* The 'cookie' field has no meaning when 'reason' is OFPR_NO_MATCH. In this
* case it should be UINT64_MAX. */
'''
if 'ofp_oxm' in namespace:
nx_match = namespace['ofp_oxm']
namespace['nx_match'] = nx_match
nx_match_mask = namespace['ofp_oxm_mask']
namespace['nx_match_mask'] = nx_match_mask
nx_match_nomask = namespace['ofp_oxm_nomask']
namespace['nx_match_nomask'] = nx_match_nomask
create_nxm = namespace['create_oxm']
namespace['create_nxm'] = create_nxm
nx_match_nomask_ext = nstruct(
base = nx_match_nomask,
criteria = lambda x: NXM_VENDOR(x.header) <= 1,
extend = {'header': nxm_header},
name = 'nx_match_nomask_ext'
)
namespace['nx_match_nomask_ext'] = nx_match_nomask_ext
nx_match_mask_ext = nstruct(
base = nx_match_mask,
criteria = lambda x: NXM_VENDOR(x.header) <= 1,
extend = {'header': nxm_header},
name = 'nx_match_mask_ext'
)
namespace['nx_match_mask_ext'] = nx_match_mask_ext
else:
nx_match = nstruct(
(nxm_header, 'header'),
name = 'nx_match',
padding = 1,
size = lambda x: NXM_LENGTH(x.header) + 4
)
namespace['nx_match'] = nx_match
nx_match_nomask = nstruct(
(raw, 'value'),
base = nx_match,
criteria = lambda x: not NXM_HASMASK(x.header),
init = packvalue(NXM_OF_IN_PORT, 'header'),
name = 'nx_match_nomask'
)
namespace['nx_match_nomask'] = nx_match_nomask
_nxm_mask_value = nstruct(
(raw, 'value'),
name = 'nxm_mask_value',
size = lambda x: NXM_LENGTH(x.header) // 2,
padding = 1
)
nx_match_mask = nstruct(
(_nxm_mask_value,),
(raw, 'mask'),
base = nx_match,
criteria = lambda x: NXM_HASMASK(x.header),
init = packvalue(NXM_OF_ETH_SRC_W, 'header'),
name = 'nx_match_mask',
)
namespace['nx_match_mask'] = nx_match_mask
def create_nxm(header, value = None, mask = None):
if NXM_HASMASK(header):
nxm = nx_match_mask.new()
size = NXM_LENGTH(header) // 2
else:
nxm = nx_match_nomask.new()
size = NXM_LENGTH(header)
nxm.header = header
nxm.value = common.create_binary(value, size)
if NXM_HASMASK(header):
nxm.mask = common.create_binary(mask, size)
nxm._pack()
nxm._autosubclass()
return nxm
namespace['create_nxm'] = create_nxm
nx_match_nomask_ext = nx_match_nomask
nx_match_mask_ext = nx_match_mask
namespace['nx_match_nomask_ext'] = nx_match_nomask_ext
namespace['nx_match_mask_ext'] = nx_match_mask_ext
from namedstruct.namedstruct import rawtype as _rawtype
import socket as _socket
if 'ip4_addr_bytes' in namespace:
ip4_addr_bytes = namespace['ip4_addr_bytes']
else:
ip4_addr_bytes = prim('4s', 'ip4_addr_bytes')
ip4_addr_bytes.formatter = lambda x: _socket.inet_ntoa(x)
namespace['ip4_addr_bytes'] = ip4_addr_bytes
nxm_mask_ipv4 = nstruct(name = 'nxm_mask_ipv4',
base = nx_match_mask_ext,
criteria = lambda x: x.header in (NXM_OF_IP_SRC_W, NXM_OF_IP_DST_W, NXM_OF_ARP_SPA_W, NXM_OF_ARP_TPA_W, NXM_NX_TUN_IPV4_SRC_W, NXM_NX_TUN_IPV4_DST_W),
init = packvalue(NXM_OF_IP_SRC_W, 'header'),
extend = {'value' : ip4_addr_bytes, 'mask' : ip4_addr_bytes}
)
namespace['nxm_mask_ipv4'] = nxm_mask_ipv4
nxm_nomask_ipv4 = nstruct(name = 'nxm_nomask_ipv4',
base = nx_match_nomask_ext,
criteria = lambda x: x.header in (NXM_OF_IP_SRC, NXM_OF_IP_DST, NXM_OF_ARP_SPA, NXM_OF_ARP_TPA, NXM_NX_TUN_IPV4_SRC, NXM_NX_TUN_IPV4_DST),
init = packvalue(NXM_OF_IP_SRC, 'header'),
extend = {'value' : ip4_addr_bytes}
)
namespace['nxm_nomask_ipv4'] = nxm_nomask_ipv4
if 'mac_addr_bytes' in namespace:
mac_addr_bytes = namespace['mac_addr_bytes']
else:
mac_addr_bytes = _rawtype()
mac_addr_bytes.formatter = lambda x: ':'.join('%02X' % (c,) for c in bytearray(x))
namespace['mac_addr_bytes'] = mac_addr_bytes
nxm_mask_eth = nstruct(name = 'nxm_mask_eth',
base = nx_match_mask_ext,
criteria = lambda x: x.header in (NXM_OF_ETH_SRC_W, NXM_OF_ETH_DST_W),
init = packvalue(NXM_OF_ETH_SRC_W, 'header'),
extend = {'value' : mac_addr_bytes, 'mask' : mac_addr_bytes})
namespace['nxm_mask_eth'] = nxm_mask_eth
nxm_nomask_eth = nstruct(name = 'nxm_nomask_eth',
base = nx_match_nomask_ext,
criteria = lambda x: x.header in (NXM_OF_ETH_SRC, NXM_OF_ETH_DST, NXM_NX_ND_SLL, NXM_NX_ND_TLL, NXM_NX_ARP_SHA, NXM_NX_ARP_THA),
init = packvalue(NXM_OF_ETH_SRC, 'header'),
extend = {'value' : mac_addr_bytes})
namespace['nxm_nomask_eth'] = nxm_nomask_eth
ofp_port_no = namespace['ofp_port_no']
nx_port_no = enum('nx_port_no', None, uint16,
**dict((k, v & 0xffff) for k,v in ofp_port_no.getDict().items())
)
nxm_port_no_raw = _rawtype()
nxm_port_no_raw.formatter = lambda x: nx_port_no.formatter(nx_port_no.parse(x)[0])
namespace['nx_port_no'] = nx_port_no
namespace['nxm_port_no_raw'] = nxm_port_no_raw
nxm_nomask_port = nstruct(name = 'nxm_nomask_port',
base = nx_match_nomask_ext,
criteria = lambda x: x.header == NXM_OF_IN_PORT,
init = packvalue(NXM_OF_IN_PORT, 'header'),
extend = {'value': nxm_port_no_raw}
)
namespace['nxm_nomask_port'] = nxm_nomask_port
if 'ethtype_raw' in namespace:
ethtype_raw = namespace['ethtype_raw']
else:
ethtype_raw = _rawtype()
ethtype_raw.formatter = lambda x: ethertype.formatter(ethertype.parse(x)[0])
namespace['ethtype_raw'] = ethtype_raw
nxm_nomask_ethertype = nstruct(name = 'nxm_nomask_ethertype',
base = nx_match_nomask_ext,
criteria = lambda x: x.header == NXM_OF_ETH_TYPE,
init = packvalue(NXM_OF_ETH_TYPE, 'header'),
extend = {'value': ethtype_raw})
namespace['nxm_nomask_ethertype'] = nxm_nomask_ethertype
if 'arpop_raw' in namespace:
arpop_raw = namespace['arpop_raw']
else:
arpop_raw = _rawtype()
arpop_raw.formatter = lambda x: arp_op_code.formatter(arp_op_code.parse(x)[0])
namespace['arpop_raw'] = arpop_raw
nxm_nomask_arpopcode = nstruct(name = 'nxm_nomask_arpopcode',
base = nx_match_nomask_ext,
criteria = lambda x: x.header == NXM_OF_ARP_OP,
init = packvalue(NXM_OF_ARP_OP, 'header'),
extend = {'value': arpop_raw})
namespace['nxm_nomask_arpopcode'] = nxm_nomask_arpopcode
if 'ip_protocol_raw' in namespace:
ip_protocol_raw = namespace['ip_protocol_raw']
else:
ip_protocol_raw = _rawtype()
ip_protocol_raw.formatter = lambda x: ip_protocol.formatter(ip_protocol.parse(x)[0])
namespace['ip_protocol_raw'] = ip_protocol_raw
nxm_nomask_ip_protocol = nstruct(name = 'nxm_nomask_ip_protocol',
base = nx_match_nomask_ext,
criteria = lambda x: x.header == NXM_OF_IP_PROTO,
init = packvalue(NXM_OF_IP_PROTO, 'header'),
extend = {'value': ip_protocol_raw})
namespace['nxm_nomask_ip_protocol'] = nxm_nomask_ip_protocol
if 'ip6_addr_bytes' in namespace:
nxm_nomask_ipv6 = nstruct(name = 'nxm_nomask_ipv6',
base = nx_match_nomask_ext,
criteria = lambda x: x.header in (NXM_NX_IPV6_SRC, NXM_NX_IPV6_DST, NXM_NX_ND_TARGET),
init = packvalue(NXM_NX_IPV6_SRC, 'header'),
extend = {'value': ip6_addr_bytes})
namespace['nxm_nomask_ipv6'] = nxm_nomask_ipv6
nxm_mask_ipv6 = nstruct(name = 'nxm_mask_ipv6',
base = nx_match_mask_ext,
criteria = lambda x: x.header in (NXM_NX_IPV6_SRC_W, NXM_NX_IPV6_DST_W),
init = packvalue(NXM_NX_IPV6_SRC_W, 'header'),
extend = {'value': ip6_addr_bytes, 'mask': ip6_addr_bytes})
namespace['nxm_mask_ipv6'] = nxm_mask_ipv6
nx_ip_frag_raw = _rawtype()
nx_ip_frag_raw.formatter = lambda x: nx_ip_frag.formatter(nx_ip_frag.parse(x)[0])
nxm_nomask_ipfrag = nstruct(name = 'nxm_nomask_ipfrag',
base = nx_match_nomask_ext,
criteria = lambda x: x.header == NXM_NX_IP_FRAG,
init = packvalue(NXM_NX_IP_FRAG, 'header'),
extend = {'value': nx_ip_frag_raw})
namespace['nxm_nomask_ipfrag'] = nxm_nomask_ipfrag
nxm_mask_ipfrag = nstruct(name = 'nxm_mask_ipfrag',
base = nx_match_mask_ext,
criteria = lambda x: x.header == NXM_NX_IP_FRAG_W,
init = packvalue(NXM_NX_IP_FRAG_W, 'header'),
extend = {'value': nx_ip_frag_raw, 'mask': nx_ip_frag_raw})
namespace['nxm_mask_ipfrag'] = nxm_mask_ipfrag
nx_matches = nstruct(
(nx_match[0], 'matches'),
name = 'nx_matches',
size = sizefromlen(65536, 'match_len'),
prepack = packrealsize('match_len'),
padding = 8
)
namespace['nx_matches'] = nx_matches
nx_packet_in = nstruct(
(uint32, 'buffer_id'), # /* ID assigned by datapath. */
(uint16, 'total_len'), # /* Full length of frame. */
(uint8, 'reason'), # /* Reason packet is sent (one of OFPR_*). */
(uint8, 'table_id'), # /* ID of the table that was looked up. */
(uint64, 'cookie'), # /* Cookie of the rule that was looked up. */
(uint16, 'match_len'), # /* Size of nx_match. */
(uint8[6],), # /* Align to 64-bits. */
(nx_matches,),
(uint8[2],),
(raw, 'data'),
name = 'nx_packet_in',
base = nicira_header,
classifyby = (NXT_PACKET_IN,),
criteria = lambda x: getattr(x, msg_subtype) == NXT_PACKET_IN,
init = packvalue(NXT_PACKET_IN, msg_subtype)
)
namespace['nx_packet_in'] = nx_packet_in
'''
/* Configures the "role" of the sending controller. The default role is:
*
* - Other (NX_ROLE_OTHER), which allows the controller access to all
* OpenFlow features.
*
* The other possible roles are a related pair:
*
* - Master (NX_ROLE_MASTER) is equivalent to Other, except that there may
* be at most one Master controller at a time: when a controller
* configures itself as Master, any existing Master is demoted to the
* Slave role.
*
* - Slave (NX_ROLE_SLAVE) allows the controller read-only access to
* OpenFlow features. In particular attempts to modify the flow table
* will be rejected with an OFPBRC_EPERM error.
*
* Slave controllers do not receive OFPT_PACKET_IN or OFPT_FLOW_REMOVED
* messages, but they do receive OFPT_PORT_STATUS messages.
*/
'''
nx_role_request = nstruct(
(nx_role, 'role'), # /* One of NX_ROLE_*. */
name = 'nx_role_request',
base = nicira_header,
classifyby = (NXT_ROLE_REQUEST, NXT_ROLE_REPLY),
criteria = lambda x: getattr(x, msg_subtype) == NXT_ROLE_REQUEST or getattr(x, msg_subtype) == NXT_ROLE_REPLY,
init = packvalue(NXT_ROLE_REQUEST, msg_subtype)
)
namespace['nx_role_request'] = nx_role_request
'''
/* NXT_SET_ASYNC_CONFIG.
*
* Sent by a controller, this message configures the asynchronous messages that
* the controller wants to receive. Element 0 in each array specifies messages
* of interest when the controller has an "other" or "master" role; element 1,
* when the controller has a "slave" role.
*
* Each array element is a bitmask in which a 0-bit disables receiving a
* particular message and a 1-bit enables receiving it. Each bit controls the
* message whose 'reason' corresponds to the bit index. For example, the bit
* with value 1<<2 == 4 in port_status_mask[1] determines whether the
* controller will receive OFPT_PORT_STATUS messages with reason OFPPR_MODIFY
* (value 2) when the controller has a "slave" role.
*
* As a side effect, for service controllers, this message changes the
* miss_send_len from default of zero to OFP_DEFAULT_MISS_SEND_LEN (128).
*/
'''
ofp_packet_in_reason = namespace['ofp_packet_in_reason']
if 'ofp_packet_in_reason_bitwise' in namespace:
ofp_packet_in_reason_bitwise = namespace['ofp_packet_in_reason_bitwise']
else:
ofp_packet_in_reason_bitwise = enum('ofp_packet_in_reason_bitwise', None, uint32,
**dict((k, 1<<v) for k,v in ofp_packet_in_reason.getDict().items()))
namespace['ofp_packet_in_reason_bitwise'] = ofp_packet_in_reason_bitwise
ofp_port_reason = namespace['ofp_port_reason']
if 'ofp_port_reason_bitwise' in namespace:
ofp_port_reason_bitwise = namespace['ofp_port_reason_bitwise']
else:
ofp_port_reason_bitwise = enum('ofp_port_reason_bitwise', None, uint32,
**dict((k, 1<<v) for k,v in ofp_port_reason.getDict().items()))
namespace['ofp_port_reason_bitwise'] = ofp_port_reason_bitwise
ofp_flow_removed_reason = namespace['ofp_flow_removed_reason']
if 'ofp_flow_removed_reason_bitwise' in namespace:
ofp_flow_removed_reason_bitwise = namespace['ofp_flow_removed_reason_bitwise']
else:
ofp_flow_removed_reason_bitwise = enum('ofp_flow_removed_reason_bitwise', None, uint32,
**dict((k, 1<<v) for k,v in ofp_flow_removed_reason.getDict().items()))
namespace['ofp_flow_removed_reason_bitwise'] = ofp_flow_removed_reason_bitwise
nx_async_config = nstruct(
(ofp_packet_in_reason_bitwise[2], 'packet_in_mask'), # /* Bitmasks of OFPR_* values. */
(ofp_port_reason_bitwise[2], 'port_status_mask'), # /* Bitmasks of OFPRR_* values. */
(ofp_flow_removed_reason_bitwise[2], 'flow_removed_mask'), #/* Bitmasks of OFPPR_* values. */
name = 'nx_async_config',
base = nicira_header,
classifyby = (NXT_SET_ASYNC_CONFIG,),
criteria = lambda x: getattr(x, msg_subtype) == NXT_SET_ASYNC_CONFIG,
init = packvalue(NXT_SET_ASYNC_CONFIG, msg_subtype)
)
namespace['nx_async_config'] = nx_async_config
'''
/* Nicira vendor flow actions. */
'''
'''
/* Action structures for NXAST_RESUBMIT and NXAST_RESUBMIT_TABLE.
*
* These actions search one of the switch's flow tables:
*
* - For NXAST_RESUBMIT_TABLE only, if the 'table' member is not 255, then
* it specifies the table to search.
*
* - Otherwise (for NXAST_RESUBMIT_TABLE with a 'table' of 255, or for
* NXAST_RESUBMIT regardless of 'table'), it searches the current flow
* table, that is, the OpenFlow flow table that contains the flow from
* which this action was obtained. If this action did not come from a
* flow table (e.g. it came from an OFPT_PACKET_OUT message), then table 0
* is the current table.
*
* The flow table lookup uses a flow that may be slightly modified from the
* original lookup:
*
* - For NXAST_RESUBMIT, the 'in_port' member of struct nx_action_resubmit
* is used as the flow's in_port.
*
* - For NXAST_RESUBMIT_TABLE, if the 'in_port' member is not OFPP_IN_PORT,
* then its value is used as the flow's in_port. Otherwise, the original
* in_port is used.
*
* - If actions that modify the flow (e.g. OFPAT_SET_VLAN_VID) precede the
* resubmit action, then the flow is updated with the new values.
*
* Following the lookup, the original in_port is restored.
*
* If the modified flow matched in the flow table, then the corresponding
* actions are executed. Afterward, actions following the resubmit in the
* original set of actions, if any, are executed; any changes made to the
* packet (e.g. changes to VLAN) by secondary actions persist when those
* actions are executed, although the original in_port is restored.
*
* Resubmit actions may be used any number of times within a set of actions.
*
* Resubmit actions may nest to an implementation-defined depth. Beyond this
* implementation-defined depth, further resubmit actions are simply ignored.
*
* NXAST_RESUBMIT ignores 'table' and 'pad'. NXAST_RESUBMIT_TABLE requires
* 'pad' to be all-bits-zero.
*
* Open vSwitch 1.0.1 and earlier did not support recursion. Open vSwitch
* before 1.2.90 did not support NXAST_RESUBMIT_TABLE.
*/
'''
nx_action_resubmit = nstruct(
(nx_port_no, 'in_port'), # /* New in_port for checking flow table. */
(uint8, 'table'), # /* NXAST_RESUBMIT_TABLE: table to use. */
(uint8[3],),
base = nx_action,
criteria = lambda x: getattr(x, action_subtype) == NXAST_RESUBMIT_TABLE or getattr(x, action_subtype) == NXAST_RESUBMIT,
classifyby = (NXAST_RESUBMIT_TABLE, NXAST_RESUBMIT),
name = 'nx_action_resubmit',
init = packvalue(NXAST_RESUBMIT_TABLE, action_subtype)
)
namespace['nx_action_resubmit'] = nx_action_resubmit
'''
/* Action structure for NXAST_SET_TUNNEL.
*
* Sets the encapsulating tunnel ID to a 32-bit value. The most-significant 32
* bits of the tunnel ID are set to 0. */
'''
nx_action_set_tunnel = nstruct(
(uint8[2],),
(uint32, 'tun_id'), # /* Tunnel ID. */
name = 'nx_action_set_tunnel',
base = nx_action,
classifyby = (NXAST_SET_TUNNEL,),
criteria = lambda x: getattr(x, action_subtype) == NXAST_SET_TUNNEL,
init = packvalue(NXAST_SET_TUNNEL, action_subtype)
)
namespace['nx_action_set_tunnel'] = nx_action_set_tunnel
'''
/* Action structure for NXAST_SET_TUNNEL64.
*
* Sets the encapsulating tunnel ID to a 64-bit value. */
'''
nx_action_set_tunnel64 = nstruct(
(uint8[6],),
(uint64, 'tun_id'), # /* Tunnel ID. */
name = 'nx_action_set_tunnel64',
base = nx_action,
classifyby = (NXAST_SET_TUNNEL64,),
criteria = lambda x: getattr(x, action_subtype) == NXAST_SET_TUNNEL64,
init = packvalue(NXAST_SET_TUNNEL64, action_subtype)
)
namespace['nx_action_set_tunnel64'] = nx_action_set_tunnel64
'''
/* Action structure for NXAST_SET_QUEUE.
*
* Set the queue that should be used when packets are output. This is similar
* to the OpenFlow OFPAT_ENQUEUE action, but does not take the output port as
* an argument. This allows the queue to be defined before the port is
* known. */
'''
nx_action_set_queue = nstruct(
(uint8[2],),
(uint32, 'queue_id'), # /* Where to enqueue packets. */
name = 'nx_action_set_queue',
base = nx_action,
classifyby = (NXAST_SET_QUEUE,),
criteria = lambda x: getattr(x, action_subtype) == NXAST_SET_QUEUE,
init = packvalue(NXAST_SET_QUEUE, action_subtype)
)
namespace['nx_action_set_queue'] = nx_action_set_queue
'''
/* Action structure for NXAST_POP_QUEUE.
*
* Restores the queue to the value it was before any NXAST_SET_QUEUE actions
* were used. Only the original queue can be restored this way; no stack is
* maintained. */
'''
nx_action_pop_queue = nstruct(
(uint8[6],),
name = 'nx_action_pop_queue',
base = nx_action,
classifyby = (NXAST_POP_QUEUE,),
criteria = lambda x: getattr(x, action_subtype) == NXAST_POP_QUEUE,
init = packvalue(NXAST_POP_QUEUE, action_subtype)
)
namespace['nx_action_pop_queue'] = nx_action_pop_queue
'''
/* Action structure for NXAST_REG_MOVE.
*
* Copies src[src_ofs:src_ofs+n_bits] to dst[dst_ofs:dst_ofs+n_bits], where
* a[b:c] denotes the bits within 'a' numbered 'b' through 'c' (not including
* bit 'c'). Bit numbering starts at 0 for the least-significant bit, 1 for
* the next most significant bit, and so on.
*
* 'src' and 'dst' are nxm_header values with nxm_hasmask=0. (It doesn't make
* sense to use nxm_hasmask=1 because the action does not do any kind of
* matching; it uses the actual value of a field.)
*
* The following nxm_header values are potentially acceptable as 'src':
*
* - NXM_OF_IN_PORT
* - NXM_OF_ETH_DST
* - NXM_OF_ETH_SRC
* - NXM_OF_ETH_TYPE
* - NXM_OF_VLAN_TCI
* - NXM_OF_IP_TOS
* - NXM_OF_IP_PROTO
* - NXM_OF_IP_SRC
* - NXM_OF_IP_DST
* - NXM_OF_TCP_SRC
* - NXM_OF_TCP_DST
* - NXM_OF_UDP_SRC
* - NXM_OF_UDP_DST
* - NXM_OF_ICMP_TYPE
* - NXM_OF_ICMP_CODE
* - NXM_OF_ARP_OP
* - NXM_OF_ARP_SPA
* - NXM_OF_ARP_TPA
* - NXM_NX_TUN_ID
* - NXM_NX_ARP_SHA
* - NXM_NX_ARP_THA
* - NXM_NX_ICMPV6_TYPE
* - NXM_NX_ICMPV6_CODE
* - NXM_NX_ND_SLL
* - NXM_NX_ND_TLL
* - NXM_NX_REG(idx) for idx in the switch's accepted range.
* - NXM_NX_PKT_MARK
* - NXM_NX_TUN_IPV4_SRC
* - NXM_NX_TUN_IPV4_DST
*
* The following nxm_header values are potentially acceptable as 'dst':
*
* - NXM_OF_ETH_DST
* - NXM_OF_ETH_SRC
* - NXM_OF_IP_TOS
* - NXM_OF_IP_SRC
* - NXM_OF_IP_DST
* - NXM_OF_TCP_SRC
* - NXM_OF_TCP_DST
* - NXM_OF_UDP_SRC
* - NXM_OF_UDP_DST
* - NXM_NX_ARP_SHA
* - NXM_NX_ARP_THA
* - NXM_OF_ARP_OP
* - NXM_OF_ARP_SPA
* - NXM_OF_ARP_TPA
* Modifying any of the above fields changes the corresponding packet
* header.
*
* - NXM_OF_IN_PORT
*
* - NXM_NX_REG(idx) for idx in the switch's accepted range.
*
* - NXM_NX_PKT_MARK
*
* - NXM_OF_VLAN_TCI. Modifying this field's value has side effects on the
* packet's 802.1Q header. Setting a value with CFI=0 removes the 802.1Q
* header (if any), ignoring the other bits. Setting a value with CFI=1
* adds or modifies the 802.1Q header appropriately, setting the TCI field
* to the field's new value (with the CFI bit masked out).
*
* - NXM_NX_TUN_ID, NXM_NX_TUN_IPV4_SRC, NXM_NX_TUN_IPV4_DST. Modifying
* any of these values modifies the corresponding tunnel header field used
* for the packet's next tunnel encapsulation, if allowed by the
* configuration of the output tunnel port.
*
* A given nxm_header value may be used as 'src' or 'dst' only on a flow whose
* nx_match satisfies its prerequisites. For example, NXM_OF_IP_TOS may be
* used only if the flow's nx_match includes an nxm_entry that specifies
* nxm_type=NXM_OF_ETH_TYPE, nxm_hasmask=0, and nxm_value=0x0800.
*
* The switch will reject actions for which src_ofs+n_bits is greater than the
* width of 'src' or dst_ofs+n_bits is greater than the width of 'dst' with
* error type OFPET_BAD_ACTION, code OFPBAC_BAD_ARGUMENT.
*
* This action behaves properly when 'src' overlaps with 'dst', that is, it
* behaves as if 'src' were copied out to a temporary buffer, then the
* temporary buffer copied to 'dst'.
*/
'''
nx_action_reg_move = nstruct(
(uint16, 'n_bits'), # /* Number of bits. */
(uint16, 'src_ofs'), # /* Starting bit offset in source. */
(uint16, 'dst_ofs'), # /* Starting bit offset in destination. */
(nxm_header, 'src'), # /* Source register. */
(nxm_header, 'dst'), # /* Destination register. */
name = 'nx_action_reg_move',
base = nx_action,
classifyby = (NXAST_REG_MOVE,),
criteria = lambda x: getattr(x, action_subtype) == NXAST_REG_MOVE,
init = packvalue(NXAST_REG_MOVE, action_subtype),
formatter = _createdesc(lambda x:'move:%s[%d..%d]->%s[%d..%d]' % (x['src'], x['src_ofs'], x['src_ofs'] + x['n_bits'] - 1, x['dst'], x['dst_ofs'], x['dst_ofs'] + x['n_bits'] - 1))
)
namespace['nx_action_reg_move'] = nx_action_reg_move
'''
/* Action structure for NXAST_REG_LOAD.
*
* Copies value[0:n_bits] to dst[ofs:ofs+n_bits], where a[b:c] denotes the bits
* within 'a' numbered 'b' through 'c' (not including bit 'c'). Bit numbering
* starts at 0 for the least-significant bit, 1 for the next most significant
* bit, and so on.
*
* 'dst' is an nxm_header with nxm_hasmask=0. See the documentation for
* NXAST_REG_MOVE, above, for the permitted fields and for the side effects of
* loading them.
*
* The 'ofs' and 'n_bits' fields are combined into a single 'ofs_nbits' field
* to avoid enlarging the structure by another 8 bytes. To allow 'n_bits' to
* take a value between 1 and 64 (inclusive) while taking up only 6 bits, it is
* also stored as one less than its true value:
*
* 15 6 5 0
* +------------------------------+------------------+
* | ofs | n_bits - 1 |
* +------------------------------+------------------+
*
* The switch will reject actions for which ofs+n_bits is greater than the
* width of 'dst', or in which any bits in 'value' with value 2**n_bits or
* greater are set to 1, with error type OFPET_BAD_ACTION, code
* OFPBAC_BAD_ARGUMENT.
*/
'''
nx_action_reg_load = nstruct(
(uint16, 'ofs_nbits'), # /* (ofs << 6) | (n_bits - 1). */
(nxm_header, 'dst'), # /* Destination register. */
(uint64, 'value'), # /* Immediate value. */
name = 'nx_action_reg_load',
base = nx_action,
classifyby = (NXAST_REG_LOAD,),
criteria = lambda x: getattr(x, action_subtype) == NXAST_REG_LOAD,
init = packvalue(NXAST_REG_LOAD, action_subtype),
formatter = _createdesc(lambda x: 'load:0x%x->%s[%d..%d]' % (x['value'], x['dst'], x['ofs_nbits'] >> 6, (x['ofs_nbits'] >> 6) + (x['ofs_nbits'] & 0x3f)))
)
namespace['nx_action_reg_load'] = nx_action_reg_load
'''
/* Action structure for NXAST_STACK_PUSH and NXAST_STACK_POP.
*
* Pushes (or pops) field[offset: offset + n_bits] to (or from)
* top of the stack.
*/
'''
nx_action_stack = nstruct(
(uint16, 'offset'), # /* Bit offset into the field. */
(nxm_header, 'field'), # /* The field used for push or pop. */
(uint16, 'n_bits'), # /* (n_bits + 1) bits of the field. */
(uint8[6],), # /* Reserved, must be zero. */
name = 'nx_action_stack',
base = nx_action,
classifyby = (NXAST_STACK_PUSH, NXAST_STACK_POP),
criteria = lambda x: getattr(x, action_subtype) == NXAST_STACK_PUSH or getattr(x, action_subtype) == NXAST_STACK_POP,
init = packvalue(NXAST_STACK_PUSH, action_subtype),
formatter = _createdesc(lambda x: '%s:%s[%d..%d]' % ('push' if x[action_subtype] == 'NXAST_STACK_PUSH' else 'pop', x['field'], x['offset'], (x['offset'] + x['n_bits'] - 1)))
)
namespace['nx_action_stack'] = nx_action_stack
'''
/* Action structure for NXAST_NOTE.
*
* This action has no effect. It is variable length. The switch does not
* attempt to interpret the user-defined 'note' data in any way. A controller
* can use this action to attach arbitrary metadata to a flow.
*
* This action might go away in the future.
*/
'''
nx_action_note = nstruct(
(varchr, 'note'),
name = 'nx_action_note',
base = nx_action,
classifyby = (NXAST_NOTE,),
criteria = lambda x: getattr(x, action_subtype) == NXAST_NOTE,
init = packvalue(NXAST_NOTE, action_subtype)
)
namespace['nx_action_note'] = nx_action_note
'''
/* Action structure for NXAST_MULTIPATH.
*
* This action performs the following steps in sequence:
*
* 1. Hashes the fields designated by 'fields', one of NX_HASH_FIELDS_*.
* Refer to the definition of "enum nx_mp_fields" for details.
*
* The 'basis' value is used as a universal hash parameter, that is,
* different values of 'basis' yield different hash functions. The
* particular universal hash function used is implementation-defined.
*
* The hashed fields' values are drawn from the current state of the
* flow, including all modifications that have been made by actions up to
* this point.
*
* 2. Applies the multipath link choice algorithm specified by 'algorithm',
* one of NX_MP_ALG_*. Refer to the definition of "enum nx_mp_algorithm"
* for details.
*
* The output of the algorithm is 'link', an unsigned integer less than
* or equal to 'max_link'.
*
* Some algorithms use 'arg' as an additional argument.
*
* 3. Stores 'link' in dst[ofs:ofs+n_bits]. The format and semantics of
* 'dst' and 'ofs_nbits' are similar to those for the NXAST_REG_LOAD
* action.
*
* The switch will reject actions that have an unknown 'fields', or an unknown
* 'algorithm', or in which ofs+n_bits is greater than the width of 'dst', or
* in which 'max_link' is greater than or equal to 2**n_bits, with error type
* OFPET_BAD_ACTION, code OFPBAC_BAD_ARGUMENT.
*/
'''
nx_action_multipath = nstruct(
#/* What fields to hash and how. */
(nx_hash_fields, 'fields'), # /* One of NX_HASH_FIELDS_*. */
(uint16, 'basis'), # /* Universal hash parameter. */
(uint16,),
#/* Multipath link choice algorithm to apply to hash value. */
(nx_mp_algorithm, 'algorithm'), # /* One of NX_MP_ALG_*. */
(uint16, 'max_link'), # /* Number of output links, minus 1. */
(uint32, 'arg'), # /* Algorithm-specific argument. */
(uint16,),
# /* Where to store the result. */
(uint16, 'ofs_nbits'), # /* (ofs << 6) | (n_bits - 1). */
(nxm_header, 'dst'), # /* Destination. */
name = 'nx_action_multipath',
base = nx_action,
classifyby = (NXAST_MULTIPATH,),
criteria = lambda x: getattr(x, action_subtype) == NXAST_MULTIPATH,
init = packvalue(NXAST_MULTIPATH, action_subtype),
formatter = _createdesc(lambda x: 'multipath(%s,%d,%s,%d,%d,%s[%d..%d])' % (x['fields'], x['basis'], x['algorithm'],x['max_link'] + 1, x['arg'], x['dst'], x['ofs_nbits'] >> 6, (x['ofs_nbits'] >> 6) + (x['ofs_nbits'] & 0x3f)))
)
namespace['nx_action_multipath'] = nx_action_multipath
'''
/* Action structure for NXAST_LEARN.
*
* This action adds or modifies a flow in an OpenFlow table, similar to
* OFPT_FLOW_MOD with OFPFC_MODIFY_STRICT as 'command'. The new flow has the
* specified idle timeout, hard timeout, priority, cookie, and flags. The new
* flow's match criteria and actions are built by applying each of the series
* of flow_mod_spec elements included as part of the action.
*
* A flow_mod_spec starts with a 16-bit header. A header that is all-bits-0 is
* a no-op used for padding the action as a whole to a multiple of 8 bytes in
* length. Otherwise, the flow_mod_spec can be thought of as copying 'n_bits'
* bits from a source to a destination. In this case, the header contains
* multiple fields:
*
* 15 14 13 12 11 10 0
* +------+---+------+---------------------------------+
* | 0 |src| dst | n_bits |
* +------+---+------+---------------------------------+
*
* The meaning and format of a flow_mod_spec depends on 'src' and 'dst'. The
* following table summarizes the meaning of each possible combination.
* Details follow the table:
*
* src dst meaning
* --- --- ----------------------------------------------------------
* 0 0 Add match criteria based on value in a field.
* 1 0 Add match criteria based on an immediate value.
* 0 1 Add NXAST_REG_LOAD action to copy field into a different field.
* 1 1 Add NXAST_REG_LOAD action to load immediate value into a field.
* 0 2 Add OFPAT_OUTPUT action to output to port from specified field.
* All other combinations are undefined and not allowed.
*
* The flow_mod_spec header is followed by a source specification and a
* destination specification. The format and meaning of the source
* specification depends on 'src':
*
* - If 'src' is 0, the source bits are taken from a field in the flow to
* which this action is attached. (This should be a wildcarded field. If
* its value is fully specified then the source bits being copied have
* constant values.)
*
* The source specification is an ovs_be32 'field' and an ovs_be16 'ofs'.
* 'field' is an nxm_header with nxm_hasmask=0, and 'ofs' the starting bit
* offset within that field. The source bits are field[ofs:ofs+n_bits-1].
* 'field' and 'ofs' are subject to the same restrictions as the source
* field in NXAST_REG_MOVE.
*
* - If 'src' is 1, the source bits are a constant value. The source
* specification is (n_bits+15)/16*2 bytes long. Taking those bytes as a
* number in network order, the source bits are the 'n_bits'
* least-significant bits. The switch will report an error if other bits
* in the constant are nonzero.
*
* The flow_mod_spec destination specification, for 'dst' of 0 or 1, is an
* ovs_be32 'field' and an ovs_be16 'ofs'. 'field' is an nxm_header with
* nxm_hasmask=0 and 'ofs' is a starting bit offset within that field. The
* meaning of the flow_mod_spec depends on 'dst':
*
* - If 'dst' is 0, the flow_mod_spec specifies match criteria for the new
* flow. The new flow matches only if bits field[ofs:ofs+n_bits-1] in a
* packet equal the source bits. 'field' may be any nxm_header with
* nxm_hasmask=0 that is allowed in NXT_FLOW_MOD.
*
* Order is significant. Earlier flow_mod_specs must satisfy any
* prerequisites for matching fields specified later, by copying constant
* values into prerequisite fields.
*
* The switch will reject flow_mod_specs that do not satisfy NXM masking
* restrictions.
*
* - If 'dst' is 1, the flow_mod_spec specifies an NXAST_REG_LOAD action for
* the new flow. The new flow copies the source bits into
* field[ofs:ofs+n_bits-1]. Actions are executed in the same order as the
* flow_mod_specs.
*
* A single NXAST_REG_LOAD action writes no more than 64 bits, so n_bits
* greater than 64 yields multiple NXAST_REG_LOAD actions.
*
* The flow_mod_spec destination spec for 'dst' of 2 (when 'src' is 0) is
* empty. It has the following meaning:
*
* - The flow_mod_spec specifies an OFPAT_OUTPUT action for the new flow.
* The new flow outputs to the OpenFlow port specified by the source field.
* Of the special output ports with value OFPP_MAX or larger, OFPP_IN_PORT,
* OFPP_FLOOD, OFPP_LOCAL, and OFPP_ALL are supported. Other special ports
* may not be used.
*
* Resource Management
* -------------------
*
* A switch has a finite amount of flow table space available for learning.
* When this space is exhausted, no new learning table entries will be learned
* until some existing flow table entries expire. The controller should be
* prepared to handle this by flooding (which can be implemented as a
* low-priority flow).
*
* If a learned flow matches a single TCP stream with a relatively long
* timeout, one may make the best of resource constraints by setting
* 'fin_idle_timeout' or 'fin_hard_timeout' (both measured in seconds), or
* both, to shorter timeouts. When either of these is specified as a nonzero
* value, OVS adds a NXAST_FIN_TIMEOUT action, with the specified timeouts, to
* the learned flow.
*
* Examples
* --------
*
* The following examples give a prose description of the flow_mod_specs along
* with informal notation for how those would be represented and a hex dump of
* the bytes that would be required.
*
* These examples could work with various nx_action_learn parameters. Typical
* values would be idle_timeout=OFP_FLOW_PERMANENT, hard_timeout=60,
* priority=OFP_DEFAULT_PRIORITY, flags=0, table_id=10.
*
* 1. Learn input port based on the source MAC, with lookup into
* NXM_NX_REG1[16:31] by resubmit to in_port=99:
*
* Match on in_port=99:
* ovs_be16(src=1, dst=0, n_bits=16), 20 10
* ovs_be16(99), 00 63
* ovs_be32(NXM_OF_IN_PORT), ovs_be16(0) 00 00 00 02 00 00
*
* Match Ethernet destination on Ethernet source from packet:
* ovs_be16(src=0, dst=0, n_bits=48), 00 30
* ovs_be32(NXM_OF_ETH_SRC), ovs_be16(0) 00 00 04 06 00 00
* ovs_be32(NXM_OF_ETH_DST), ovs_be16(0) 00 00 02 06 00 00
*
* Set NXM_NX_REG1[16:31] to the packet's input port:
* ovs_be16(src=0, dst=1, n_bits=16), 08 10
* ovs_be32(NXM_OF_IN_PORT), ovs_be16(0) 00 00 00 02 00 00
* ovs_be32(NXM_NX_REG1), ovs_be16(16) 00 01 02 04 00 10
*
* Given a packet that arrived on port A with Ethernet source address B,
* this would set up the flow "in_port=99, dl_dst=B,
* actions=load:A->NXM_NX_REG1[16..31]".
*
* In syntax accepted by ovs-ofctl, this action is: learn(in_port=99,
* NXM_OF_ETH_DST[]=NXM_OF_ETH_SRC[],
* load:NXM_OF_IN_PORT[]->NXM_NX_REG1[16..31])
*
* 2. Output to input port based on the source MAC and VLAN VID, with lookup
* into NXM_NX_REG1[16:31]:
*
* Match on same VLAN ID as packet:
* ovs_be16(src=0, dst=0, n_bits=12), 00 0c
* ovs_be32(NXM_OF_VLAN_TCI), ovs_be16(0) 00 00 08 02 00 00
* ovs_be32(NXM_OF_VLAN_TCI), ovs_be16(0) 00 00 08 02 00 00
*
* Match Ethernet destination on Ethernet source from packet:
* ovs_be16(src=0, dst=0, n_bits=48), 00 30
* ovs_be32(NXM_OF_ETH_SRC), ovs_be16(0) 00 00 04 06 00 00
* ovs_be32(NXM_OF_ETH_DST), ovs_be16(0) 00 00 02 06 00 00
*
* Output to the packet's input port:
* ovs_be16(src=0, dst=2, n_bits=16), 10 10
* ovs_be32(NXM_OF_IN_PORT), ovs_be16(0) 00 00 00 02 00 00
*
* Given a packet that arrived on port A with Ethernet source address B in
* VLAN C, this would set up the flow "dl_dst=B, vlan_vid=C,
* actions=output:A".
*
* In syntax accepted by ovs-ofctl, this action is:
* learn(NXM_OF_VLAN_TCI[0..11], NXM_OF_ETH_DST[]=NXM_OF_ETH_SRC[],
* output:NXM_OF_IN_PORT[])
*
* 3. Here's a recipe for a very simple-minded MAC learning switch. It uses a
* 10-second MAC expiration time to make it easier to see what's going on
*
* ovs-vsctl del-controller br0
* ovs-ofctl del-flows br0
* ovs-ofctl add-flow br0 "table=0 actions=learn(table=1, \
hard_timeout=10, NXM_OF_VLAN_TCI[0..11], \
NXM_OF_ETH_DST[]=NXM_OF_ETH_SRC[], \
output:NXM_OF_IN_PORT[]), resubmit(,1)"
* ovs-ofctl add-flow br0 "table=1 priority=0 actions=flood"
*
* You can then dump the MAC learning table with:
*
* ovs-ofctl dump-flows br0 table=1
*
* Usage Advice
* ------------
*
* For best performance, segregate learned flows into a table that is not used
* for any other flows except possibly for a lowest-priority "catch-all" flow
* (a flow with no match criteria). If different learning actions specify
* different match criteria, use different tables for the learned flows.
*
* The meaning of 'hard_timeout' and 'idle_timeout' can be counterintuitive.
* These timeouts apply to the flow that is added, which means that a flow with
* an idle timeout will expire when no traffic has been sent *to* the learned
* address. This is not usually the intent in MAC learning; instead, we want
* the MAC learn entry to expire when no traffic has been sent *from* the
* learned address. Use a hard timeout for that.
*/
'''
def _nx_flow_mod_spec_formatter(x):
if NX_FLOWMODSPEC_SRC(x['header']):
srcdesc = '0x' + ''.join('%02x' % (c,) for c in bytearray(x['value']))
else:
srcdesc = '%s[%d..%d]' % (x['src'], x['src_ofs'], x['src_ofs'] + NX_FLOWMODSPEC_NBITS(x['header']) - 1)
dstv = NX_FLOWMODSPEC_DST(x['header'])
if dstv != NX_LEARN_DST_OUTPUT:
dstdesc = '%s[%d..%d]' % (x['dst'], x['dst_ofs'], x['dst_ofs'] + NX_FLOWMODSPEC_NBITS(x['header']) - 1)
if dstv == NX_LEARN_DST_MATCH:
x['_desc'] = '%s=%s' % (dstdesc, srcdesc)
elif dstv == NX_LEARN_DST_LOAD:
x['_desc'] = 'load:%s->%s' % (srcdesc, dstdesc)
elif NX_FLOWMODSPEC_SRC(x['header']):
x['_desc'] = 'output:%s' % nxm_port_no_raw.formatter(common.create_binary(x['value'], 2))
else:
x['_desc'] = 'output:%s' % (srcdesc,)
x['header'] = nx_flow_mod_spec_header.formatter(x['header'])
return x
nx_flow_mod_spec = nstruct(
(uint16, 'header'),
(_nx_flow_mod_spec_src,),
(_nx_flow_mod_spec_dst,),
name = 'nx_flow_mod_spec',
padding = 1,
formatter = _nx_flow_mod_spec_formatter,
lastextra = False
# if x.header == 0, size is 14, the padding should not be so large so it will not be successfully parsed
)
namespace['nx_flow_mod_spec'] = nx_flow_mod_spec
def create_nxfms_matchfield(src, dst, src_ofs = 0, dst_ofs = 0, n_bits = None):
if n_bits is None:
n_bits = min(NXM_LENGTH(dst) * 8 - dst_ofs, NXM_LENGTH(src) * 8 - src_ofs)
if n_bits <= 0:
raise ValueError('Cannot create flow mod spec with 0 bits')
return nx_flow_mod_spec.parse(_create_header(NX_LEARN_SRC_FIELD, NX_LEARN_DST_MATCH, n_bits) + _create_field(src, src_ofs) + _create_field(dst, dst_ofs))[0]
namespace['create_nxfms_matchfield'] = create_nxfms_matchfield
def create_nxfms_matchvalue(dst, value, dst_ofs, n_bits = None):
if n_bits is None:
n_bits = NXM_LENGTH(dst) * 8 - dst_ofs
if n_bits <= 0:
raise ValueError('Cannot create flow mod spec with 0 bits')
return nx_flow_mod_spec.parse(_create_header(NX_LEARN_SRC_IMMEDIATE, NX_LEARN_DST_MATCH, n_bits) + common.create_binary(value, (n_bits + 15) // 16 * 2) + _create_field(dst, dst_ofs))[0]
namespace['create_nxfms_matchvalue'] = create_nxfms_matchvalue
def create_nxfms_loadfield(src, dst, src_ofs = 0, dst_ofs = 0, n_bits = None):
if n_bits is None:
n_bits = min(NXM_LENGTH(dst) * 8 - dst_ofs, NXM_LENGTH(src) * 8 - src_ofs)
if n_bits <= 0:
raise ValueError('Cannot create flow mod spec with 0 bits')
return nx_flow_mod_spec.parse(_create_header(NX_LEARN_SRC_FIELD, NX_LEARN_DST_LOAD, n_bits) + _create_field(src, src_ofs) + _create_field(dst, dst_ofs))[0]
namespace['create_nxfms_loadfield'] = create_nxfms_loadfield
def create_nxfms_loadvalue(dst, value, dst_ofs, n_bits = None):
if n_bits is None:
n_bits = NXM_LENGTH(dst) * 8 - dst_ofs
if n_bits <= 0:
raise ValueError('Cannot create flow mod spec with 0 bits')
return nx_flow_mod_spec.parse(_create_header(NX_LEARN_SRC_IMMEDIATE, NX_LEARN_DST_LOAD, n_bits) + common.create_binary(value, (n_bits + 15) // 16 * 2) + _create_field(dst, dst_ofs))[0]
namespace['create_nxfms_loadvalue'] = create_nxfms_loadvalue
def create_nxfms_outputfield(src, src_ofs = 0, n_bits = None):
if n_bits is None:
n_bits = NXM_LENGTH(src) * 8 - src_ofs
if n_bits <= 0:
raise ValueError('Cannot create flow mod spec with 0 bits')
return nx_flow_mod_spec.parse(_create_header(NX_LEARN_SRC_FIELD, NX_LEARN_DST_OUTPUT, n_bits) + _create_field(src, src_ofs))[0]
namespace['create_nxfms_outputfield'] = create_nxfms_outputfield
def create_nxfms_outputvalue(dst, value):
return nx_flow_mod_spec.parse(_create_header(NX_LEARN_SRC_IMMEDIATE, NX_LEARN_DST_OUTPUT, 16) + common.create_binary(value, 2))[0]
namespace['create_nxfms_outputvalue'] = create_nxfms_outputvalue
ofp_flow_mod_flags = namespace['ofp_flow_mod_flags']
nx_action_learn = nstruct(
(uint16, 'idle_timeout'), # /* Idle time before discarding (seconds). */
(uint16, 'hard_timeout'), # /* Max time before discarding (seconds). */
(uint16, 'priority'), # /* Priority level of flow entry. */
(uint64, 'cookie'), # /* Cookie for new flow. */
(ofp_flow_mod_flags, 'flags'), # /* Either 0 or OFPFF_SEND_FLOW_REM. */
(uint8, 'table_id'), # /* Table to insert flow entry. */
(uint8,), # /* Must be zero. */
(uint16, 'fin_idle_timeout'),# /* Idle timeout after FIN, if nonzero. */
(uint16, 'fin_hard_timeout'),# /* Hard timeout after FIN, if nonzero. */
(nx_flow_mod_spec[0], 'specs'),
base = nx_action,
name = 'nx_action_learn',
classifyby = (NXAST_LEARN,),
criteria = lambda x: getattr(x, action_subtype) == NXAST_LEARN,
init = packvalue(NXAST_LEARN, action_subtype),
)
namespace['nx_action_learn'] = nx_action_learn
'''
/* Action structure for NXAST_FIN_TIMEOUT.
*
* This action changes the idle timeout or hard timeout, or both, of this
* OpenFlow rule when the rule matches a TCP packet with the FIN or RST flag.
* When such a packet is observed, the action reduces the rule's idle timeout
* to 'fin_idle_timeout' and its hard timeout to 'fin_hard_timeout'. This
* action has no effect on an existing timeout that is already shorter than the
* one that the action specifies. A 'fin_idle_timeout' or 'fin_hard_timeout'
* of zero has no effect on the respective timeout.
*
* 'fin_idle_timeout' and 'fin_hard_timeout' are measured in seconds.
* 'fin_hard_timeout' specifies time since the flow's creation, not since the
* receipt of the FIN or RST.
*
* This is useful for quickly discarding learned TCP flows that otherwise will
* take a long time to expire.
*
* This action is intended for use with an OpenFlow rule that matches only a
* single TCP flow. If the rule matches multiple TCP flows (e.g. it wildcards
* all TCP traffic, or all TCP traffic to a particular port), then any FIN or
* RST in any of those flows will cause the entire OpenFlow rule to expire
* early, which is not normally desirable.
*/
'''
nx_action_fin_timeout = nstruct(
(uint16, 'fin_idle_timeout'), # /* New idle timeout, if nonzero. */
(uint16, 'fin_hard_timeout'), # /* New hard timeout, if nonzero. */
(uint16,),
base = nx_action,
name = 'nx_action_fin_timeout',
criteria = lambda x: getattr(x, action_subtype) == NXAST_FIN_TIMEOUT,
classifyby = (NXAST_FIN_TIMEOUT,),
init = packvalue(NXAST_FIN_TIMEOUT, action_subtype)
)
namespace['nx_action_fin_timeout'] = nx_action_fin_timeout
'''
/* Action structure for NXAST_BUNDLE and NXAST_BUNDLE_LOAD.
*
* The bundle actions choose a slave from a supplied list of options.
* NXAST_BUNDLE outputs to its selection. NXAST_BUNDLE_LOAD writes its
* selection to a register.
*
* The list of possible slaves follows the nx_action_bundle structure. The size
* of each slave is governed by its type as indicated by the 'slave_type'
* parameter. The list of slaves should be padded at its end with zeros to make
* the total length of the action a multiple of 8.
*
* Switches infer from the 'slave_type' parameter the size of each slave. All
* implementations must support the NXM_OF_IN_PORT 'slave_type' which indicates
* that the slaves are OpenFlow port numbers with NXM_LENGTH(NXM_OF_IN_PORT) ==
* 2 byte width. Switches should reject actions which indicate unknown or
* unsupported slave types.
*
* Switches use a strategy dictated by the 'algorithm' parameter to choose a
* slave. If the switch does not support the specified 'algorithm' parameter,
* it should reject the action.
*
* Several algorithms take into account liveness when selecting slaves. The
* liveness of a slave is implementation defined (with one exception), but will
* generally take into account things like its carrier status and the results
* of any link monitoring protocols which happen to be running on it. In order
* to give controllers a place-holder value, the OFPP_NONE port is always
* considered live.
*
* Some slave selection strategies require the use of a hash function, in which
* case the 'fields' and 'basis' parameters should be populated. The 'fields'
* parameter (one of NX_HASH_FIELDS_*) designates which parts of the flow to
* hash. Refer to the definition of "enum nx_hash_fields" for details. The
* 'basis' parameter is used as a universal hash parameter. Different values
* of 'basis' yield different hash results.
*
* The 'zero' parameter at the end of the action structure is reserved for
* future use. Switches are required to reject actions which have nonzero
* bytes in the 'zero' field.
*
* NXAST_BUNDLE actions should have 'ofs_nbits' and 'dst' zeroed. Switches
* should reject actions which have nonzero bytes in either of these fields.
*
* NXAST_BUNDLE_LOAD stores the OpenFlow port number of the selected slave in
* dst[ofs:ofs+n_bits]. The format and semantics of 'dst' and 'ofs_nbits' are
* similar to those for the NXAST_REG_LOAD action. */
'''
nx_action_bundle = nstruct(
# /* Slave choice algorithm to apply to hash value. */
(nx_bd_algorithm, 'algorithm'), # /* One of NX_BD_ALG_*. */
# /* What fields to hash and how. */
(nx_hash_fields, 'fields'), # /* One of NX_HASH_FIELDS_*. */
(uint16, 'basis'), # /* Universal hash parameter. */
(nxm_header, 'slave_type'), # /* NXM_OF_IN_PORT. */
(uint16, 'n_slaves'), # /* Number of slaves. */
(uint16, 'ofs_nbits'), # /* (ofs << 6) | (n_bits - 1). */
(nxm_header, 'dst'), # /* Destination. */
(uint8[4],), # /* Reserved. Must be zero. */
name = 'nx_action_bundle',
base = nx_action,
criteria = lambda x: getattr(x, action_subtype) == NXAST_BUNDLE or getattr(x, action_subtype) == NXAST_BUNDLE_LOAD,
classifyby = (NXAST_BUNDLE, NXAST_BUNDLE_LOAD),
init = packvalue(NXAST_BUNDLE, action_subtype)
)
namespace['nx_action_bundle'] = nx_action_bundle
def _nx_slave_ports_prepack(x):
x.n_slaves = len(x.bundles)
_nx_slave_ports = nstruct(
(nx_port_no[0], 'bundles'),
name = '_nx_slave_ports',
size = lambda x: x.n_slaves * 2,
prepack = _nx_slave_ports_prepack,
padding = 1
)
nx_action_bundle_port = nstruct(
(_nx_slave_ports,),
base = nx_action_bundle,
name = 'nx_action_bundle_port',
criteria = lambda x: x.slave_type == NXM_OF_IN_PORT,
init = packvalue(NXM_OF_IN_PORT, 'slave_type'),
lastextra = False,
formatter = _createdesc(lambda x: 'bundle_load(%s,%d,%s,%s,%s[%d..%d],slaves:%r)' % \
(x['fields'], x['basis'], x['algorithm'], x['slave_type'], x['dst'], x['ofs_nbits'] >> 6, (x['ofs_nbits'] >> 6) + (x['ofs_nbits'] & 0x3f), x['bundles']) \
if x[action_subtype] == 'NXAST_BUNDLE_LOAD' else 'bundle(%s,%d,%s,%s,slaves:%r)' % (x['fields'], x['basis'], x['algorithm'], x['slave_type'], x['bundles']))
)
namespace['nx_action_bundle_port'] = nx_action_bundle_port
def _nx_slave_others_prepack(x):
x.n_slaves = len(x.bundlesraw) // NXM_LENGTH(x.slave_type)
_nx_slave_others = nstruct(
(raw, 'bundlesraw'),
name = '_nx_slave_others',
size = lambda x: x.n_slaves * NXM_LENGTH(x.slave_type),
prepack = _nx_slave_others_prepack,
padding = 1
)
nx_action_bundle_others = nstruct(
(_nx_slave_others,),
base = nx_action_bundle,
name = 'nx_action_bundle_others',
criteria = lambda x: x.slave_type != NXM_OF_IN_PORT,
lastextra = False,
init = packvalue(NXM_OF_ETH_DST, 'slave_type'),
formatter = _createdesc(lambda x: 'bundle_load(%s,%d,%s,%s,%s[%d..%d],slaves:%r)' % \
(x['fields'], x['basis'], x['algorithm'], x['slave_type'], x['dst'], x['ofs_nbits'] >> 6, (x['ofs_nbits'] >> 6) + (x['ofs_nbits'] & 0x3f), x['bundleraw']) \
if x[action_subtype] == 'NXAST_BUNDLE_LOAD' else 'bundle(%s,%d,%s,%s,slaves:%r)' % (x['fields'], x['basis'], x['algorithm'], x['slave_type'], x['bundleraw']))
)
namespace['nx_action_bundle_others'] = nx_action_bundle_others
'''
/* Action structure for NXAST_DEC_TTL_CNT_IDS.
*
* If the packet is not IPv4 or IPv6, does nothing. For IPv4 or IPv6, if the
* TTL or hop limit is at least 2, decrements it by 1. Otherwise, if TTL or
* hop limit is 0 or 1, sends a packet-in to the controllers with each of the
* 'n_controllers' controller IDs specified in 'cnt_ids'.
*
* (This differs from NXAST_DEC_TTL in that for NXAST_DEC_TTL the packet-in is
* sent only to controllers with id 0.)
*/
'''
def _nx_action_cnt_ids_ids_prepack(x):
x.n_controllers = len(x.cnt_ids)
_nx_action_cnt_ids_ids = nstruct(
(uint16[0], 'cnt_ids'),
name = '_nx_action_cnt_ids_ids',
size = lambda x: 2 * x.n_controllers,
prepack = _nx_action_cnt_ids_ids_prepack
)
nx_action_cnt_ids = nstruct(
(uint16, 'n_controllers'), # /* Number of controllers. */
(uint8[4],), # /* Must be zero. */
(_nx_action_cnt_ids_ids,),
base = nx_action,
classifyby = (NXAST_DEC_TTL_CNT_IDS,),
criteria = lambda x: getattr(x, action_subtype) == NXAST_DEC_TTL_CNT_IDS,
init = packvalue(NXAST_DEC_TTL_CNT_IDS, action_subtype),
lastextra = False,
name = 'nx_action_cnt_ids'
)
namespace['nx_action_cnt_ids'] = nx_action_cnt_ids
'''
/* Action structure for NXAST_OUTPUT_REG.
*
* Outputs to the OpenFlow port number written to src[ofs:ofs+nbits].
*
* The format and semantics of 'src' and 'ofs_nbits' are similar to those for
* the NXAST_REG_LOAD action.
*
* The acceptable nxm_header values for 'src' are the same as the acceptable
* nxm_header values for the 'src' field of NXAST_REG_MOVE.
*
* The 'max_len' field indicates the number of bytes to send when the chosen
* port is OFPP_CONTROLLER. Its semantics are equivalent to the 'max_len'
* field of OFPAT_OUTPUT.
*
* The 'zero' field is required to be zeroed for forward compatibility. */
'''
nx_action_output_reg = nstruct(
(uint16, 'ofs_nbits'), # /* (ofs << 6) | (n_bits - 1). */
(nxm_header, 'src'), # /* Source. */
(uint16, 'max_len'), # /* Max length to send to controller. */
(uint8[6],), # /* Reserved, must be zero. */
base = nx_action,
classifyby = (NXAST_OUTPUT_REG,),
criteria = lambda x: getattr(x, action_subtype) == NXAST_OUTPUT_REG,
init = packvalue(NXAST_OUTPUT_REG, action_subtype),
name = 'nx_action_output_reg',
formatter = _createdesc(lambda x: 'output:%s[%d..%d]' % (x['src'], x['ofs_nbits'] >> 6, (x['ofs_nbits'] >> 6) + (x['ofs_nbits'] & 0x3f)))
)
namespace['nx_action_output_reg'] = nx_action_output_reg
'''
/* NXAST_EXIT
*
* Discontinues action processing.
*
* The NXAST_EXIT action causes the switch to immediately halt processing
* actions for the flow. Any actions which have already been processed are
* executed by the switch. However, any further actions, including those which
* may be in different tables, or different levels of the NXAST_RESUBMIT
* hierarchy, will be ignored.
*
* Uses the nx_action_header structure. */
/* ## --------------------- ## */
/* ## Requests and replies. ## */
/* ## --------------------- ## */
'''
'''
/* NXT_SET_FLOW_FORMAT request. */
'''
nx_set_flow_format = nstruct(
(nx_flow_format, 'format'), # /* One of NXFF_*. */
name = 'nx_set_flow_format',
base = nicira_header,
criteria = lambda x: getattr(x, msg_subtype) == NXT_SET_FLOW_FORMAT,
classifyby = (NXT_SET_FLOW_FORMAT,),
init = packvalue(NXT_SET_FLOW_FORMAT, msg_subtype)
)
namespace['nx_set_flow_format'] = nx_set_flow_format
'''
/* NXT_FLOW_MOD (analogous to OFPT_FLOW_MOD).
*
* It is possible to limit flow deletions and modifications to certain
* cookies by using the NXM_NX_COOKIE(_W) matches. The "cookie" field
* is used only to add or modify flow cookies.
*/
'''
ofp_flow_mod_command = namespace['ofp_flow_mod_command']
nx_flow_mod = nstruct(
(uint64, 'cookie'), # /* Opaque controller-issued identifier. */
(ofp_flow_mod_command, 'command'), # /* OFPFC_* + possibly a table ID (see comment
# * on struct nx_flow_mod_table_id). */
(uint16, 'idle_timeout'), # /* Idle time before discarding (seconds). */
(uint16, 'hard_timeout'), # /* Max time before discarding (seconds). */
(uint16, 'priority'), # /* Priority level of flow entry. */
(uint32, 'buffer_id'), # /* Buffered packet to apply to (or -1).
# Not meaningful for OFPFC_DELETE*. */
(nx_port_no, 'out_port'), # /* For OFPFC_DELETE* commands, require
# matching entries to include this as an
# output port. A value of OFPP_NONE
# indicates no restriction. */
(ofp_flow_mod_flags, 'flags'), # /* One of OFPFF_*. */
(uint16, 'match_len'), # /* Size of nx_match. */
(uint8[6],), # /* Align to 64-bits. */
(nx_matches,),
base = nicira_header,
criteria = lambda x: getattr(x, msg_subtype) == NXT_FLOW_MOD,
classifyby = (NXT_FLOW_MOD,),
init = packvalue(NXT_FLOW_MOD, msg_subtype),
name = 'nx_flow_mod'
)
namespace['nx_flow_mod'] = nx_flow_mod
'''
/* NXT_FLOW_REMOVED (analogous to OFPT_FLOW_REMOVED).
*
* 'table_id' is present only in Open vSwitch 1.11 and later. In earlier
* versions of Open vSwitch, this is a padding byte that is always zeroed.
* Therefore, a 'table_id' value of 0 indicates that the table ID is not known,
* and other values may be interpreted as one more than the flow's former table
* ID. */
'''
nx_flow_removed = nstruct(
(uint64, 'cookie'), # /* Opaque controller-issued identifier. */
(uint16, 'priority'), # /* Priority level of flow entry. */
(ofp_flow_removed_reason, 'reason'), # /* One of OFPRR_*. */
(uint8, 'table_id'), # /* Flow's former table ID, plus one. */
(uint32, 'duration_sec'), # /* Time flow was alive in seconds. */
(uint32, 'duration_nsec'), # /* Time flow was alive in nanoseconds beyond
# duration_sec. */
(uint16, 'idle_timeout'), # /* Idle timeout from original flow mod. */
(uint16, 'match_len'), # /* Size of nx_match. */
(uint64, 'packet_count'),
(uint64, 'byte_count'),
(nx_matches,),
base = nicira_header,
criteria = lambda x: getattr(x, msg_subtype) == NXT_FLOW_REMOVED,
classifyby = (NXT_FLOW_REMOVED,),
init = packvalue(NXT_FLOW_REMOVED, msg_subtype),
name = 'nx_flow_removed'
)
namespace['nx_flow_removed'] = nx_flow_removed
'''
/* Nicira vendor stats request of type NXST_FLOW (analogous to OFPST_FLOW
* request).
*
* It is possible to limit matches to certain cookies by using the
* NXM_NX_COOKIE and NXM_NX_COOKIE_W matches.
*/
'''
nx_flow_stats_request = nstruct(
(nx_port_no, 'out_port'), #/* Require matching entries to include this
# as an output port. A value of OFPP_NONE
# indicates no restriction. */
(uint16, 'match_len'), # /* Length of nx_match. */
(uint8, 'table_id'), # /* ID of table to read (from ofp_table_stats)
# or 0xff for all tables. */
(uint8[3],), # /* Align to 64 bits. */
(nx_matches,),
base = nx_stats_request,
criteria = lambda x: getattr(x, stats_subtype) == NXST_FLOW,
classifyby = (NXST_FLOW,),
init = packvalue(NXST_FLOW, stats_subtype),
name = 'nx_flow_stats_request'
)
namespace['nx_flow_stats_request'] = nx_flow_stats_request
'''
/* Body for Nicira vendor stats reply of type NXST_FLOW (analogous to
* OFPST_FLOW reply).
*
* The values of 'idle_age' and 'hard_age' are only meaningful when talking to
* a switch that implements the NXT_FLOW_AGE extension. Zero means that the
* true value is unknown, perhaps because hardware does not track the value.
* (Zero is also the value that one should ordinarily expect to see talking to
* a switch that does not implement NXT_FLOW_AGE, since those switches zero the
* padding bytes that these fields replaced.) A nonzero value X represents X-1
* seconds. A value of 65535 represents 65534 or more seconds.
*
* 'idle_age' is the number of seconds that the flow has been idle, that is,
* the number of seconds since a packet passed through the flow. 'hard_age' is
* the number of seconds since the flow was last modified (e.g. OFPFC_MODIFY or
* OFPFC_MODIFY_STRICT). (The 'duration_*' fields are the elapsed time since
* the flow was added, regardless of subsequent modifications.)
*
* For a flow with an idle or hard timeout, 'idle_age' or 'hard_age',
* respectively, will ordinarily be smaller than the timeout, but flow
* expiration times are only approximate and so one must be prepared to
* tolerate expirations that occur somewhat early or late.
*/
'''
ofp_action = namespace['ofp_action']
nx_flow_stats = nstruct(
(uint16, 'length'), # /* Length of this entry. */
(uint8, 'table_id'), # /* ID of table flow came from. */
(uint8,),
(uint32, 'duration_sec'), # /* Time flow has been alive in seconds. */
(uint32, 'duration_nsec'), # /* Time flow has been alive in nanoseconds
# beyond duration_sec. */
(uint16, 'priority'), # /* Priority of the entry. */
(uint16, 'idle_timeout'), # /* Number of seconds idle before expiration. */
(uint16, 'hard_timeout'), # /* Number of seconds before expiration. */
(uint16, 'match_len'), # /* Length of nx_match. */
(uint16, 'idle_age'), # /* Seconds since last packet, plus one. */
(uint16, 'hard_age'), # /* Seconds since last modification, plus one. */
(uint64, 'cookie'), # /* Opaque controller-issued identifier. */
(uint64, 'packet_count'), # /* Number of packets, UINT64_MAX if unknown. */
(uint64, 'byte_count'), # /* Number of bytes, UINT64_MAX if unknown. */
#=======================================================================
# /* Followed by:
# * - Exactly match_len (possibly 0) bytes containing the nx_match, then
# * - Exactly (match_len + 7)/8*8 - match_len (between 0 and 7) bytes of
# * all-zero bytes, then
# * - Actions to fill out the remainder 'length' bytes (always a multiple
# * of 8).
# */
#=======================================================================
(nx_matches,),
(ofp_action[0], 'actions'),
name = 'nx_flow_stats',
size = sizefromlen(65536, 'length'),
prepack = packsize('length')
)
namespace['nx_flow_stats'] = nx_flow_stats
nx_flow_stats_reply = nstruct(
(nx_flow_stats[0], 'stats'),
base = nx_stats_reply,
classifyby = (NXST_FLOW,),
criteria = lambda x: getattr(x, stats_subtype) == NXST_FLOW,
init = packvalue(NXST_FLOW, stats_subtype),
name = 'nx_flow_stats_reply'
)
namespace['nx_flow_stats_reply'] = nx_flow_stats_reply
'''
/* Nicira vendor stats request of type NXST_AGGREGATE (analogous to
* OFPST_AGGREGATE request).
*
* The reply format is identical to the reply format for OFPST_AGGREGATE,
* except for the header. */
'''
nx_aggregate_stats_request = nstruct(
(nx_port_no, 'out_port'), # /* Require matching entries to include this
# as an output port. A value of OFPP_NONE
# indicates no restriction. */
(uint16, 'match_len'), # /* Length of nx_match. */
(uint8, 'table_id'), # /* ID of table to read (from ofp_table_stats)
# or 0xff for all tables. */
(uint8[3],), # /* Align to 64 bits. */
#=======================================================================
# /* Followed by:
# * - Exactly match_len (possibly 0) bytes containing the nx_match, then
# * - Exactly (match_len + 7)/8*8 - match_len (between 0 and 7) bytes of
# * all-zero bytes, which must also exactly fill out the length of the
# * message.
# */
#=======================================================================
(nx_matches,),
base = nx_stats_request,
name = 'nx_aggregate_stats_request',
criteria = lambda x: getattr(x, stats_subtype) == NXST_AGGREGATE,
classifyby = (NXST_AGGREGATE,),
init = packvalue(NXST_AGGREGATE, stats_subtype),
lastextra = False
)
namespace['nx_aggregate_stats_request'] = nx_aggregate_stats_request
nx_aggregate_stats_reply = nstruct(
(uint64, 'packet_count'), # /* Number of packets in flows. */
(uint64, 'byte_count'), # /* Number of bytes in flows. */
(uint32, 'flow_count'), # /* Number of flows. */
(uint8[4],),
base = nx_stats_reply,
name = 'nx_aggregate_stats_reply',
criteria = lambda x: getattr(x, stats_subtype) == NXST_AGGREGATE,
classifyby = (NXST_AGGREGATE,),
init = packvalue(NXST_AGGREGATE, stats_subtype)
)
namespace['nx_aggregate_stats_reply'] = nx_aggregate_stats_reply
'''
/* NXT_SET_CONTROLLER_ID.
*
* Each OpenFlow controller connection has a 16-bit identifier that is
* initially 0. This message changes the connection's ID to 'id'.
*
* Controller connection IDs need not be unique.
*
* The NXAST_CONTROLLER action is the only current user of controller
* connection IDs. */
'''
nx_controller_id = nstruct(
(uint8[6],), # /* Must be zero. */
(uint16, 'controller_id'), # /* New controller connection ID. */
base = nicira_header,
name = 'nx_controller_id',
criteria = lambda x: getattr(x, msg_subtype) == NXT_SET_CONTROLLER_ID,
init = packvalue(NXT_SET_CONTROLLER_ID, msg_subtype),
classifyby = (NXT_SET_CONTROLLER_ID,)
)
namespace['nx_controller_id'] = nx_controller_id
'''
/* Action structure for NXAST_CONTROLLER.
*
* This generalizes using OFPAT_OUTPUT to send a packet to OFPP_CONTROLLER. In
* addition to the 'max_len' that OFPAT_OUTPUT supports, it also allows
* specifying:
*
* - 'reason': The reason code to use in the ofp_packet_in or nx_packet_in.
*
* - 'controller_id': The ID of the controller connection to which the
* ofp_packet_in should be sent. The ofp_packet_in or nx_packet_in is
* sent only to controllers that have the specified controller connection
* ID. See "struct nx_controller_id" for more information. */
'''
nx_action_controller = nstruct(
(uint16, 'max_len'), # /* Maximum length to send to controller. */
(uint16, 'controller_id'), # /* Controller ID to send packet-in. */
(ofp_packet_in_reason, 'reason'), # /* enum ofp_packet_in_reason (OFPR_*). */
(uint8,),
base = nx_action,
name = 'nx_action_controller',
criteria = lambda x: getattr(x, action_subtype) == NXAST_CONTROLLER,
classifyby = (NXAST_CONTROLLER,),
init = packvalue(NXAST_CONTROLLER, action_subtype)
)
namespace['nx_action_controller'] = nx_action_controller
'''
/* Flow Table Monitoring
* =====================
*
* NXST_FLOW_MONITOR allows a controller to keep track of changes to OpenFlow
* flow table(s) or subsets of them, with the following workflow:
*
* 1. The controller sends an NXST_FLOW_MONITOR request to begin monitoring
* flows. The 'id' in the request must be unique among all monitors that
* the controller has started and not yet canceled on this OpenFlow
* connection.
*
* 2. The switch responds with an NXST_FLOW_MONITOR reply. If the request's
* 'flags' included NXFMF_INITIAL, the reply includes all the flows that
* matched the request at the time of the request (with event NXFME_ADDED).
* If 'flags' did not include NXFMF_INITIAL, the reply is empty.
*
* The reply uses the xid of the request (as do all replies to OpenFlow
* requests).
*
* 3. Whenever a change to a flow table entry matches some outstanding monitor
* request's criteria and flags, the switch sends a notification to the
* controller as an additional NXST_FLOW_MONITOR reply with xid 0.
*
* When multiple outstanding monitors match a single change, only a single
* notification is sent. This merged notification includes the information
* requested in any of the individual monitors. That is, if any of the
* matching monitors requests actions (NXFMF_ACTIONS), the notification
* includes actions, and if any of the monitors request full changes for the
* controller's own changes (NXFMF_OWN), the controller's own changes will
* be included in full.
*
* 4. The controller may cancel a monitor with NXT_FLOW_MONITOR_CANCEL. No
* further notifications will be sent on the basis of the canceled monitor
* afterward.
*
*
* Buffer Management
* =================
*
* OpenFlow messages for flow monitor notifications can overflow the buffer
* space available to the switch, either temporarily (e.g. due to network
* conditions slowing OpenFlow traffic) or more permanently (e.g. the sustained
* rate of flow table change exceeds the network bandwidth between switch and
* controller).
*
* When Open vSwitch's notification buffer space reaches a limiting threshold,
* OVS reacts as follows:
*
* 1. OVS sends an NXT_FLOW_MONITOR_PAUSED message to the controller, following
* all the already queued notifications. After it receives this message,
* the controller knows that its view of the flow table, as represented by
* flow monitor notifications, is incomplete.
*
* 2. As long as the notification buffer is not empty:
*
* - NXMFE_ADD and NXFME_MODIFIED notifications will not be sent.
*
* - NXFME_DELETED notifications will still be sent, but only for flows
* that existed before OVS sent NXT_FLOW_MONITOR_PAUSED.
*
* - NXFME_ABBREV notifications will not be sent. They are treated as
* the expanded version (and therefore only the NXFME_DELETED
* components, if any, are sent).
*
* 3. When the notification buffer empties, OVS sends NXFME_ADD notifications
* for flows added since the buffer reached its limit and NXFME_MODIFIED
* notifications for flows that existed before the limit was reached and
* changed after the limit was reached.
*
* 4. OVS sends an NXT_FLOW_MONITOR_RESUMED message to the controller. After
* it receives this message, the controller knows that its view of the flow
* table, as represented by flow monitor notifications, is again complete.
*
* This allows the maximum buffer space requirement for notifications to be
* bounded by the limit plus the maximum number of supported flows.
*
*
* "Flow Removed" messages
* =======================
*
* The flow monitor mechanism is independent of OFPT_FLOW_REMOVED and
* NXT_FLOW_REMOVED. Flow monitor updates for deletion are sent if
* NXFMF_DELETE is set on a monitor, regardless of whether the
* OFPFF_SEND_FLOW_REM flag was set when the flow was added. */
/* NXST_FLOW_MONITOR request.
*
* The NXST_FLOW_MONITOR request's body consists of an array of zero or more
* instances of this structure. The request arranges to monitor the flows
* that match the specified criteria, which are interpreted in the same way as
* for NXST_FLOW.
*
* 'id' identifies a particular monitor for the purpose of allowing it to be
* canceled later with NXT_FLOW_MONITOR_CANCEL. 'id' must be unique among
* existing monitors that have not already been canceled.
*
* The reply includes the initial flow matches for monitors that have the
* NXFMF_INITIAL flag set. No single flow will be included in the reply more
* than once, even if more than one requested monitor matches that flow. The
* reply will be empty if none of the monitors has NXFMF_INITIAL set or if none
* of the monitors initially matches any flows.
*
* For NXFMF_ADD, an event will be reported if 'out_port' matches against the
* actions of the flow being added or, for a flow that is replacing an existing
* flow, if 'out_port' matches against the actions of the flow being replaced.
* For NXFMF_DELETE, 'out_port' matches against the actions of a flow being
* deleted. For NXFMF_MODIFY, an event will be reported if 'out_port' matches
* either the old or the new actions. */
'''
ofp_table = namespace['ofp_table']
nx_flow_monitor_request = nstruct(
(uint32, 'id'), # /* Controller-assigned ID for this monitor. */
(nx_flow_monitor_flags, 'flags'), # /* NXFMF_*. */
(nx_port_no, 'out_port'), # /* Required output port, if not OFPP_NONE. */
(uint16, 'match_len'), # /* Length of nx_match. */
(ofp_table, 'table_id'), # /* One table's ID or 0xff for all tables. */
(uint8[5],), # /* Align to 64 bits (must be zero). */
(nx_matches,),
name = 'nx_flow_monitor_request',
base = nx_stats_request,
criteria = lambda x: getattr(x, stats_subtype) == NXST_FLOW_MONITOR,
init = packvalue(NXST_FLOW_MONITOR, stats_subtype),
classifyby = (NXST_FLOW_MONITOR,)
)
namespace['nx_flow_monitor_request'] = nx_flow_monitor_request
'''
/* NXST_FLOW_MONITOR reply header.
*
* The body of an NXST_FLOW_MONITOR reply is an array of variable-length
* structures, each of which begins with this header. The 'length' member may
* be used to traverse the array, and the 'event' member may be used to
* determine the particular structure.
*
* Every instance is a multiple of 8 bytes long. */
'''
nx_flow_update = nstruct(
(uint16, 'length'), #/* Length of this entry. */
(nx_flow_update_event, 'event'), # /* One of NXFME_*. */
name = 'nx_flow_update',
size = sizefromlen(65536, 'length'),
prepack = packsize('length')
)
namespace['nx_flow_update'] = nx_flow_update
'''
/* NXST_FLOW_MONITOR reply for NXFME_ADDED, NXFME_DELETED, and
* NXFME_MODIFIED. */
'''
nx_flow_update_full = nstruct(
(ofp_flow_removed_reason, 'reason'), # /* OFPRR_* for NXFME_DELETED, else zero. */
(uint16, 'priority'), # /* Priority of the entry. */
(uint16, 'idle_timeout'), # /* Number of seconds idle before expiration. */
(uint16, 'hard_timeout'), # /* Number of seconds before expiration. */
(uint16, 'match_len'), # /* Length of nx_match. */
(uint8, 'table_id'), # /* ID of flow's table. */
(uint8,), # /* Reserved, currently zeroed. */
(uint64, 'cookie'), # /* Opaque controller-issued identifier. */
#=======================================================================
# /* Followed by:
# * - Exactly match_len (possibly 0) bytes containing the nx_match, then
# * - Exactly (match_len + 7)/8*8 - match_len (between 0 and 7) bytes of
# * all-zero bytes, then
# * - Actions to fill out the remainder 'length' bytes (always a multiple
# * of 8). If NXFMF_ACTIONS was not specified, or 'event' is
# * NXFME_DELETED, no actions are included.
# */
#=======================================================================
(nx_matches,),
(ofp_action[0], 'actions'),
name = 'nx_flow_update_full',
base = nx_flow_update,
criteria = lambda x: x.event in (NXFME_ADDED, NXFME_DELETED, NXFME_MODIFIED),
init = packvalue(NXFME_ADDED, 'event')
)
namespace['nx_flow_update_full'] = nx_flow_update_full
'''
/* NXST_FLOW_MONITOR reply for NXFME_ABBREV.
*
* When the controller does not specify NXFMF_OWN in a monitor request, any
* flow tables changes due to the controller's own requests (on the same
* OpenFlow channel) will be abbreviated, when possible, to this form, which
* simply specifies the 'xid' of the OpenFlow request (e.g. an OFPT_FLOW_MOD or
* NXT_FLOW_MOD) that caused the change.
*
* Some changes cannot be abbreviated and will be sent in full:
*
* - Changes that only partially succeed. This can happen if, for example,
* a flow_mod with type OFPFC_MODIFY affects multiple flows, but only some
* of those modifications succeed (e.g. due to hardware limitations).
*
* This cannot occur with the current implementation of the Open vSwitch
* software datapath. It could happen with other datapath implementations.
*
* - Changes that race with conflicting changes made by other controllers or
* other flow_mods (not separated by barriers) by the same controller.
*
* This cannot occur with the current Open vSwitch implementation
* (regardless of datapath) because Open vSwitch internally serializes
* potentially conflicting changes.
*
* A flow_mod that does not change the flow table will not trigger any
* notification, even an abbreviated one. For example, a "modify" or "delete"
* flow_mod that does not match any flows will not trigger a notification.
* Whether an "add" or "modify" that specifies all the same parameters that a
* flow already has triggers a notification is unspecified and subject to
* change in future versions of Open vSwitch.
*
* OVS will always send the notifications for a given flow table change before
* the reply to a OFPT_BARRIER_REQUEST request that follows the flow table
* change. Thus, if the controller does not receive an abbreviated (or
* unabbreviated) notification for a flow_mod before the next
* OFPT_BARRIER_REPLY, it will never receive one. */
'''
nx_flow_update_abbrev = nstruct(
(uint32, 'xid'), # /* Controller-specified xid from flow_mod. */
name = 'nx_flow_update_abbrev',
base = nx_flow_update,
criteria = lambda x: x.event == NXFME_ABBREV,
init = packvalue(NXFME_ABBREV, 'event')
)
namespace['nx_flow_update_abbrev'] = nx_flow_update_abbrev
nx_flow_monitor_reply = nstruct(
(nx_flow_update[0], 'stats'),
base = nx_stats_reply,
classifyby = (NXST_FLOW_MONITOR,),
name = 'nx_flow_monitor_reply',
criteria = lambda x: getattr(x, stats_subtype) == NXST_FLOW_MONITOR,
init = packvalue(NXST_FLOW_MONITOR, stats_subtype)
)
namespace['nx_flow_monitor_reply'] = nx_flow_monitor_reply
'''
/* NXT_FLOW_MONITOR_CANCEL.
*
* Used by a controller to cancel an outstanding monitor. */
'''
nx_flow_monitor_cancel = nstruct(
(uint32, 'id'), # /* 'id' from nx_flow_monitor_request. */
name = 'nx_flow_monitor_cancel',
base = nicira_header,
classifyby = (NXT_FLOW_MONITOR_CANCEL,),
criteria = lambda x: getattr(x, msg_subtype) == NXT_FLOW_MONITOR_CANCEL,
init = packvalue(NXT_FLOW_MONITOR_CANCEL, msg_subtype)
)
namespace['nx_flow_monitor_cancel'] = nx_flow_monitor_cancel
'''
/* Action structure for NXAST_WRITE_METADATA.
*
* Modifies the 'mask' bits of the metadata value. */
'''
nx_action_write_metadata = nstruct(
(uint8[6],), # /* Must be zero. */
(uint64, 'metadata'), # /* Metadata register. */
(uint64, 'mask'), # /* Metadata mask. */
base = nx_action,
classifyby = (NXAST_WRITE_METADATA,),
criteria = lambda x: getattr(x, action_subtype) == NXAST_WRITE_METADATA,
init = packvalue(NXAST_WRITE_METADATA, action_subtype),
name = 'nx_action_write_metadata'
)
namespace['nx_action_write_metadata'] = nx_action_write_metadata
'''
/* Action structure for NXAST_PUSH_MPLS. */
'''
nx_action_push_mpls = nstruct(
(ethertype, 'ethertype'), # /* Ethertype */
(uint8[4],),
base = nx_action,
classifyby = (NXAST_PUSH_MPLS,),
criteria = lambda x: getattr(x, action_subtype) == NXAST_PUSH_MPLS,
init = packvalue(NXAST_PUSH_MPLS, action_subtype),
name = 'nx_action_push_mpls'
)
namespace['nx_action_push_mpls'] = nx_action_push_mpls
'''
/* Action structure for NXAST_POP_MPLS. */
'''
nx_action_pop_mpls = nstruct(
(ethertype, 'ethertype'), # /* Ethertype */
(uint8[4],),
base = nx_action,
classifyby = (NXAST_POP_MPLS,),
criteria = lambda x: getattr(x, action_subtype) == NXAST_POP_MPLS,
init = packvalue(NXAST_POP_MPLS, action_subtype),
name = 'nx_action_pop_mpls'
)
namespace['nx_action_pop_mpls'] = nx_action_pop_mpls
'''
/* Action structure for NXAST_SET_MPLS_LABEL. */
'''
nx_action_mpls_label = nstruct(
(uint8[2],), # /* Must be zero. */
(uint32, 'label'), # /* LABEL */
base = nx_action,
classifyby = (NXAST_SET_MPLS_LABEL,),
criteria = lambda x: getattr(x, action_subtype) == NXAST_SET_MPLS_LABEL,
init = packvalue(NXAST_SET_MPLS_LABEL, action_subtype),
name = 'nx_action_mpls_label'
)
namespace['nx_action_mpls_label'] = nx_action_mpls_label
'''
/* Action structure for NXAST_SET_MPLS_TC. */
'''
nx_action_mpls_tc = nstruct(
(uint8, 'tc'), # /* TC */
(uint8[5],),
base = nx_action,
classifyby = (NXAST_SET_MPLS_TC,),
criteria = lambda x: getattr(x, action_subtype) == NXAST_SET_MPLS_TC,
init = packvalue(NXAST_SET_MPLS_TC, action_subtype),
name = 'nx_action_mpls_tc'
)
namespace['nx_action_mpls_tc'] = nx_action_mpls_tc
'''
/* Action structure for NXAST_SET_MPLS_TTL. */
'''
nx_action_mpls_ttl = nstruct(
(uint8, 'ttl'), # /* TTL */
(uint8[5],),
base = nx_action,
classifyby = (NXAST_SET_MPLS_TTL,),
criteria = lambda x: getattr(x, action_subtype) == NXAST_SET_MPLS_TTL,
init = packvalue(NXAST_SET_MPLS_TTL, action_subtype),
name = 'nx_action_mpls_ttl'
)
namespace['nx_action_mpls_ttl'] = nx_action_mpls_ttl
'''
/* Action structure for NXAST_SAMPLE.
*
* Samples matching packets with the given probability and sends them
* each to the set of collectors identified with the given ID. The
* probability is expressed as a number of packets to be sampled out
* of USHRT_MAX packets, and must be >0.
*
* When sending packet samples to IPFIX collectors, the IPFIX flow
* record sent for each sampled packet is associated with the given
* observation domain ID and observation point ID. Each IPFIX flow
* record contain the sampled packet's headers when executing this
* rule. If a sampled packet's headers are modified by previous
* actions in the flow, those modified headers are sent. */
'''
nx_action_sample = nstruct(
(uint16, 'probability'), # /* Fraction of packets to sample. */
(uint32, 'collector_set_id'), # /* ID of collector set in OVSDB. */
(uint32, 'obs_domain_id'), # /* ID of sampling observation domain. */
(uint32, 'obs_point_id'), # /* ID of sampling observation point. */
base = nx_action,
classifyby = (NXAST_SAMPLE,),
criteria = lambda x: getattr(x, action_subtype) == NXAST_SAMPLE,
init = packvalue(NXAST_SAMPLE, action_subtype),
name = 'nx_action_sample'
)
namespace['nx_action_sample'] = nx_action_sample | python | def create_extension(namespace, nicira_header, nx_action, nx_stats_request, nx_stats_reply,
msg_subtype, action_subtype, stats_subtype):
'''
/* This command enables or disables an Open vSwitch extension that allows a
* controller to specify the OpenFlow table to which a flow should be added,
* instead of having the switch decide which table is most appropriate as
* required by OpenFlow 1.0. Because NXM was designed as an extension to
* OpenFlow 1.0, the extension applies equally to ofp10_flow_mod and
* nx_flow_mod. By default, the extension is disabled.
*
* When this feature is enabled, Open vSwitch treats struct ofp10_flow_mod's
* and struct nx_flow_mod's 16-bit 'command' member as two separate fields.
* The upper 8 bits are used as the table ID, the lower 8 bits specify the
* command as usual. A table ID of 0xff is treated like a wildcarded table ID.
*
* The specific treatment of the table ID depends on the type of flow mod:
*
* - OFPFC_ADD: Given a specific table ID, the flow is always placed in that
* table. If an identical flow already exists in that table only, then it
* is replaced. If the flow cannot be placed in the specified table,
* either because the table is full or because the table cannot support
* flows of the given type, the switch replies with an OFPFMFC_TABLE_FULL
* error. (A controller can distinguish these cases by comparing the
* current and maximum number of entries reported in ofp_table_stats.)
*
* If the table ID is wildcarded, the switch picks an appropriate table
* itself. If an identical flow already exist in the selected flow table,
* then it is replaced. The choice of table might depend on the flows
* that are already in the switch; for example, if one table fills up then
* the switch might fall back to another one.
*
* - OFPFC_MODIFY, OFPFC_DELETE: Given a specific table ID, only flows
* within that table are matched and modified or deleted. If the table ID
* is wildcarded, flows within any table may be matched and modified or
* deleted.
*
* - OFPFC_MODIFY_STRICT, OFPFC_DELETE_STRICT: Given a specific table ID,
* only a flow within that table may be matched and modified or deleted.
* If the table ID is wildcarded and exactly one flow within any table
* matches, then it is modified or deleted; if flows in more than one
* table match, then none is modified or deleted.
*/
'''
with _warnings.catch_warnings():
_warnings.filterwarnings('ignore', '^padding', StructDefWarning)
nx_flow_mod_table_id = nstruct(
(uint8, 'set'), # /* Nonzero to enable, zero to disable. */
(uint8[7],),
name = 'nx_flow_mod_table_id',
base = nicira_header,
criteria = lambda x: getattr(x, msg_subtype) == NXT_FLOW_MOD_TABLE_ID,
classifyby = (NXT_FLOW_MOD_TABLE_ID,),
init = packvalue(NXT_FLOW_MOD_TABLE_ID, msg_subtype)
)
namespace['nx_flow_mod_table_id'] = nx_flow_mod_table_id
'''
/* NXT_SET_PACKET_IN_FORMAT request. */
'''
nx_set_packet_in_format = nstruct(
(uint32, 'format'), # /* One of NXPIF_*. */
name = 'nx_set_packet_in_format',
base = nicira_header,
criteria = lambda x: getattr(x, msg_subtype) == NXT_SET_PACKET_IN_FORMAT,
classifyby = (NXT_SET_PACKET_IN_FORMAT,),
init = packvalue(NXT_SET_PACKET_IN_FORMAT, msg_subtype)
)
namespace['nx_set_packet_in_format'] = nx_set_packet_in_format
'''
/* NXT_PACKET_IN (analogous to OFPT_PACKET_IN).
*
* NXT_PACKET_IN is similar to the OpenFlow 1.2 OFPT_PACKET_IN. The
* differences are:
*
* - NXT_PACKET_IN includes the cookie of the rule that triggered the
* message. (OpenFlow 1.3 OFPT_PACKET_IN also includes the cookie.)
*
* - The metadata fields use NXM (instead of OXM) field numbers.
*
* Open vSwitch 1.9.0 and later omits metadata fields that are zero (as allowed
* by OpenFlow 1.2). Earlier versions included all implemented metadata
* fields.
*
* Open vSwitch does not include non-metadata in the nx_match, because by
* definition that information can be found in the packet itself. The format
* and the standards allow this, however, so controllers should be prepared to
* tolerate future changes.
*
* The NXM format is convenient for reporting metadata values, but it is
* important not to interpret the format as matching against a flow, because it
* does not. Nothing is being matched; arbitrary metadata masks would not be
* meaningful.
*
* Whereas in most cases a controller can expect to only get back NXM fields
* that it set up itself (e.g. flow dumps will ordinarily report only NXM
* fields from flows that the controller added), NXT_PACKET_IN messages might
* contain fields that the controller does not understand, because the switch
* might support fields (new registers, new protocols, etc.) that the
* controller does not. The controller must prepared to tolerate these.
*
* The 'cookie' field has no meaning when 'reason' is OFPR_NO_MATCH. In this
* case it should be UINT64_MAX. */
'''
if 'ofp_oxm' in namespace:
nx_match = namespace['ofp_oxm']
namespace['nx_match'] = nx_match
nx_match_mask = namespace['ofp_oxm_mask']
namespace['nx_match_mask'] = nx_match_mask
nx_match_nomask = namespace['ofp_oxm_nomask']
namespace['nx_match_nomask'] = nx_match_nomask
create_nxm = namespace['create_oxm']
namespace['create_nxm'] = create_nxm
nx_match_nomask_ext = nstruct(
base = nx_match_nomask,
criteria = lambda x: NXM_VENDOR(x.header) <= 1,
extend = {'header': nxm_header},
name = 'nx_match_nomask_ext'
)
namespace['nx_match_nomask_ext'] = nx_match_nomask_ext
nx_match_mask_ext = nstruct(
base = nx_match_mask,
criteria = lambda x: NXM_VENDOR(x.header) <= 1,
extend = {'header': nxm_header},
name = 'nx_match_mask_ext'
)
namespace['nx_match_mask_ext'] = nx_match_mask_ext
else:
nx_match = nstruct(
(nxm_header, 'header'),
name = 'nx_match',
padding = 1,
size = lambda x: NXM_LENGTH(x.header) + 4
)
namespace['nx_match'] = nx_match
nx_match_nomask = nstruct(
(raw, 'value'),
base = nx_match,
criteria = lambda x: not NXM_HASMASK(x.header),
init = packvalue(NXM_OF_IN_PORT, 'header'),
name = 'nx_match_nomask'
)
namespace['nx_match_nomask'] = nx_match_nomask
_nxm_mask_value = nstruct(
(raw, 'value'),
name = 'nxm_mask_value',
size = lambda x: NXM_LENGTH(x.header) // 2,
padding = 1
)
nx_match_mask = nstruct(
(_nxm_mask_value,),
(raw, 'mask'),
base = nx_match,
criteria = lambda x: NXM_HASMASK(x.header),
init = packvalue(NXM_OF_ETH_SRC_W, 'header'),
name = 'nx_match_mask',
)
namespace['nx_match_mask'] = nx_match_mask
def create_nxm(header, value = None, mask = None):
if NXM_HASMASK(header):
nxm = nx_match_mask.new()
size = NXM_LENGTH(header) // 2
else:
nxm = nx_match_nomask.new()
size = NXM_LENGTH(header)
nxm.header = header
nxm.value = common.create_binary(value, size)
if NXM_HASMASK(header):
nxm.mask = common.create_binary(mask, size)
nxm._pack()
nxm._autosubclass()
return nxm
namespace['create_nxm'] = create_nxm
nx_match_nomask_ext = nx_match_nomask
nx_match_mask_ext = nx_match_mask
namespace['nx_match_nomask_ext'] = nx_match_nomask_ext
namespace['nx_match_mask_ext'] = nx_match_mask_ext
from namedstruct.namedstruct import rawtype as _rawtype
import socket as _socket
if 'ip4_addr_bytes' in namespace:
ip4_addr_bytes = namespace['ip4_addr_bytes']
else:
ip4_addr_bytes = prim('4s', 'ip4_addr_bytes')
ip4_addr_bytes.formatter = lambda x: _socket.inet_ntoa(x)
namespace['ip4_addr_bytes'] = ip4_addr_bytes
nxm_mask_ipv4 = nstruct(name = 'nxm_mask_ipv4',
base = nx_match_mask_ext,
criteria = lambda x: x.header in (NXM_OF_IP_SRC_W, NXM_OF_IP_DST_W, NXM_OF_ARP_SPA_W, NXM_OF_ARP_TPA_W, NXM_NX_TUN_IPV4_SRC_W, NXM_NX_TUN_IPV4_DST_W),
init = packvalue(NXM_OF_IP_SRC_W, 'header'),
extend = {'value' : ip4_addr_bytes, 'mask' : ip4_addr_bytes}
)
namespace['nxm_mask_ipv4'] = nxm_mask_ipv4
nxm_nomask_ipv4 = nstruct(name = 'nxm_nomask_ipv4',
base = nx_match_nomask_ext,
criteria = lambda x: x.header in (NXM_OF_IP_SRC, NXM_OF_IP_DST, NXM_OF_ARP_SPA, NXM_OF_ARP_TPA, NXM_NX_TUN_IPV4_SRC, NXM_NX_TUN_IPV4_DST),
init = packvalue(NXM_OF_IP_SRC, 'header'),
extend = {'value' : ip4_addr_bytes}
)
namespace['nxm_nomask_ipv4'] = nxm_nomask_ipv4
if 'mac_addr_bytes' in namespace:
mac_addr_bytes = namespace['mac_addr_bytes']
else:
mac_addr_bytes = _rawtype()
mac_addr_bytes.formatter = lambda x: ':'.join('%02X' % (c,) for c in bytearray(x))
namespace['mac_addr_bytes'] = mac_addr_bytes
nxm_mask_eth = nstruct(name = 'nxm_mask_eth',
base = nx_match_mask_ext,
criteria = lambda x: x.header in (NXM_OF_ETH_SRC_W, NXM_OF_ETH_DST_W),
init = packvalue(NXM_OF_ETH_SRC_W, 'header'),
extend = {'value' : mac_addr_bytes, 'mask' : mac_addr_bytes})
namespace['nxm_mask_eth'] = nxm_mask_eth
nxm_nomask_eth = nstruct(name = 'nxm_nomask_eth',
base = nx_match_nomask_ext,
criteria = lambda x: x.header in (NXM_OF_ETH_SRC, NXM_OF_ETH_DST, NXM_NX_ND_SLL, NXM_NX_ND_TLL, NXM_NX_ARP_SHA, NXM_NX_ARP_THA),
init = packvalue(NXM_OF_ETH_SRC, 'header'),
extend = {'value' : mac_addr_bytes})
namespace['nxm_nomask_eth'] = nxm_nomask_eth
ofp_port_no = namespace['ofp_port_no']
nx_port_no = enum('nx_port_no', None, uint16,
**dict((k, v & 0xffff) for k,v in ofp_port_no.getDict().items())
)
nxm_port_no_raw = _rawtype()
nxm_port_no_raw.formatter = lambda x: nx_port_no.formatter(nx_port_no.parse(x)[0])
namespace['nx_port_no'] = nx_port_no
namespace['nxm_port_no_raw'] = nxm_port_no_raw
nxm_nomask_port = nstruct(name = 'nxm_nomask_port',
base = nx_match_nomask_ext,
criteria = lambda x: x.header == NXM_OF_IN_PORT,
init = packvalue(NXM_OF_IN_PORT, 'header'),
extend = {'value': nxm_port_no_raw}
)
namespace['nxm_nomask_port'] = nxm_nomask_port
if 'ethtype_raw' in namespace:
ethtype_raw = namespace['ethtype_raw']
else:
ethtype_raw = _rawtype()
ethtype_raw.formatter = lambda x: ethertype.formatter(ethertype.parse(x)[0])
namespace['ethtype_raw'] = ethtype_raw
nxm_nomask_ethertype = nstruct(name = 'nxm_nomask_ethertype',
base = nx_match_nomask_ext,
criteria = lambda x: x.header == NXM_OF_ETH_TYPE,
init = packvalue(NXM_OF_ETH_TYPE, 'header'),
extend = {'value': ethtype_raw})
namespace['nxm_nomask_ethertype'] = nxm_nomask_ethertype
if 'arpop_raw' in namespace:
arpop_raw = namespace['arpop_raw']
else:
arpop_raw = _rawtype()
arpop_raw.formatter = lambda x: arp_op_code.formatter(arp_op_code.parse(x)[0])
namespace['arpop_raw'] = arpop_raw
nxm_nomask_arpopcode = nstruct(name = 'nxm_nomask_arpopcode',
base = nx_match_nomask_ext,
criteria = lambda x: x.header == NXM_OF_ARP_OP,
init = packvalue(NXM_OF_ARP_OP, 'header'),
extend = {'value': arpop_raw})
namespace['nxm_nomask_arpopcode'] = nxm_nomask_arpopcode
if 'ip_protocol_raw' in namespace:
ip_protocol_raw = namespace['ip_protocol_raw']
else:
ip_protocol_raw = _rawtype()
ip_protocol_raw.formatter = lambda x: ip_protocol.formatter(ip_protocol.parse(x)[0])
namespace['ip_protocol_raw'] = ip_protocol_raw
nxm_nomask_ip_protocol = nstruct(name = 'nxm_nomask_ip_protocol',
base = nx_match_nomask_ext,
criteria = lambda x: x.header == NXM_OF_IP_PROTO,
init = packvalue(NXM_OF_IP_PROTO, 'header'),
extend = {'value': ip_protocol_raw})
namespace['nxm_nomask_ip_protocol'] = nxm_nomask_ip_protocol
if 'ip6_addr_bytes' in namespace:
nxm_nomask_ipv6 = nstruct(name = 'nxm_nomask_ipv6',
base = nx_match_nomask_ext,
criteria = lambda x: x.header in (NXM_NX_IPV6_SRC, NXM_NX_IPV6_DST, NXM_NX_ND_TARGET),
init = packvalue(NXM_NX_IPV6_SRC, 'header'),
extend = {'value': ip6_addr_bytes})
namespace['nxm_nomask_ipv6'] = nxm_nomask_ipv6
nxm_mask_ipv6 = nstruct(name = 'nxm_mask_ipv6',
base = nx_match_mask_ext,
criteria = lambda x: x.header in (NXM_NX_IPV6_SRC_W, NXM_NX_IPV6_DST_W),
init = packvalue(NXM_NX_IPV6_SRC_W, 'header'),
extend = {'value': ip6_addr_bytes, 'mask': ip6_addr_bytes})
namespace['nxm_mask_ipv6'] = nxm_mask_ipv6
nx_ip_frag_raw = _rawtype()
nx_ip_frag_raw.formatter = lambda x: nx_ip_frag.formatter(nx_ip_frag.parse(x)[0])
nxm_nomask_ipfrag = nstruct(name = 'nxm_nomask_ipfrag',
base = nx_match_nomask_ext,
criteria = lambda x: x.header == NXM_NX_IP_FRAG,
init = packvalue(NXM_NX_IP_FRAG, 'header'),
extend = {'value': nx_ip_frag_raw})
namespace['nxm_nomask_ipfrag'] = nxm_nomask_ipfrag
nxm_mask_ipfrag = nstruct(name = 'nxm_mask_ipfrag',
base = nx_match_mask_ext,
criteria = lambda x: x.header == NXM_NX_IP_FRAG_W,
init = packvalue(NXM_NX_IP_FRAG_W, 'header'),
extend = {'value': nx_ip_frag_raw, 'mask': nx_ip_frag_raw})
namespace['nxm_mask_ipfrag'] = nxm_mask_ipfrag
nx_matches = nstruct(
(nx_match[0], 'matches'),
name = 'nx_matches',
size = sizefromlen(65536, 'match_len'),
prepack = packrealsize('match_len'),
padding = 8
)
namespace['nx_matches'] = nx_matches
nx_packet_in = nstruct(
(uint32, 'buffer_id'), # /* ID assigned by datapath. */
(uint16, 'total_len'), # /* Full length of frame. */
(uint8, 'reason'), # /* Reason packet is sent (one of OFPR_*). */
(uint8, 'table_id'), # /* ID of the table that was looked up. */
(uint64, 'cookie'), # /* Cookie of the rule that was looked up. */
(uint16, 'match_len'), # /* Size of nx_match. */
(uint8[6],), # /* Align to 64-bits. */
(nx_matches,),
(uint8[2],),
(raw, 'data'),
name = 'nx_packet_in',
base = nicira_header,
classifyby = (NXT_PACKET_IN,),
criteria = lambda x: getattr(x, msg_subtype) == NXT_PACKET_IN,
init = packvalue(NXT_PACKET_IN, msg_subtype)
)
namespace['nx_packet_in'] = nx_packet_in
'''
/* Configures the "role" of the sending controller. The default role is:
*
* - Other (NX_ROLE_OTHER), which allows the controller access to all
* OpenFlow features.
*
* The other possible roles are a related pair:
*
* - Master (NX_ROLE_MASTER) is equivalent to Other, except that there may
* be at most one Master controller at a time: when a controller
* configures itself as Master, any existing Master is demoted to the
* Slave role.
*
* - Slave (NX_ROLE_SLAVE) allows the controller read-only access to
* OpenFlow features. In particular attempts to modify the flow table
* will be rejected with an OFPBRC_EPERM error.
*
* Slave controllers do not receive OFPT_PACKET_IN or OFPT_FLOW_REMOVED
* messages, but they do receive OFPT_PORT_STATUS messages.
*/
'''
nx_role_request = nstruct(
(nx_role, 'role'), # /* One of NX_ROLE_*. */
name = 'nx_role_request',
base = nicira_header,
classifyby = (NXT_ROLE_REQUEST, NXT_ROLE_REPLY),
criteria = lambda x: getattr(x, msg_subtype) == NXT_ROLE_REQUEST or getattr(x, msg_subtype) == NXT_ROLE_REPLY,
init = packvalue(NXT_ROLE_REQUEST, msg_subtype)
)
namespace['nx_role_request'] = nx_role_request
'''
/* NXT_SET_ASYNC_CONFIG.
*
* Sent by a controller, this message configures the asynchronous messages that
* the controller wants to receive. Element 0 in each array specifies messages
* of interest when the controller has an "other" or "master" role; element 1,
* when the controller has a "slave" role.
*
* Each array element is a bitmask in which a 0-bit disables receiving a
* particular message and a 1-bit enables receiving it. Each bit controls the
* message whose 'reason' corresponds to the bit index. For example, the bit
* with value 1<<2 == 4 in port_status_mask[1] determines whether the
* controller will receive OFPT_PORT_STATUS messages with reason OFPPR_MODIFY
* (value 2) when the controller has a "slave" role.
*
* As a side effect, for service controllers, this message changes the
* miss_send_len from default of zero to OFP_DEFAULT_MISS_SEND_LEN (128).
*/
'''
ofp_packet_in_reason = namespace['ofp_packet_in_reason']
if 'ofp_packet_in_reason_bitwise' in namespace:
ofp_packet_in_reason_bitwise = namespace['ofp_packet_in_reason_bitwise']
else:
ofp_packet_in_reason_bitwise = enum('ofp_packet_in_reason_bitwise', None, uint32,
**dict((k, 1<<v) for k,v in ofp_packet_in_reason.getDict().items()))
namespace['ofp_packet_in_reason_bitwise'] = ofp_packet_in_reason_bitwise
ofp_port_reason = namespace['ofp_port_reason']
if 'ofp_port_reason_bitwise' in namespace:
ofp_port_reason_bitwise = namespace['ofp_port_reason_bitwise']
else:
ofp_port_reason_bitwise = enum('ofp_port_reason_bitwise', None, uint32,
**dict((k, 1<<v) for k,v in ofp_port_reason.getDict().items()))
namespace['ofp_port_reason_bitwise'] = ofp_port_reason_bitwise
ofp_flow_removed_reason = namespace['ofp_flow_removed_reason']
if 'ofp_flow_removed_reason_bitwise' in namespace:
ofp_flow_removed_reason_bitwise = namespace['ofp_flow_removed_reason_bitwise']
else:
ofp_flow_removed_reason_bitwise = enum('ofp_flow_removed_reason_bitwise', None, uint32,
**dict((k, 1<<v) for k,v in ofp_flow_removed_reason.getDict().items()))
namespace['ofp_flow_removed_reason_bitwise'] = ofp_flow_removed_reason_bitwise
nx_async_config = nstruct(
(ofp_packet_in_reason_bitwise[2], 'packet_in_mask'), # /* Bitmasks of OFPR_* values. */
(ofp_port_reason_bitwise[2], 'port_status_mask'), # /* Bitmasks of OFPRR_* values. */
(ofp_flow_removed_reason_bitwise[2], 'flow_removed_mask'), #/* Bitmasks of OFPPR_* values. */
name = 'nx_async_config',
base = nicira_header,
classifyby = (NXT_SET_ASYNC_CONFIG,),
criteria = lambda x: getattr(x, msg_subtype) == NXT_SET_ASYNC_CONFIG,
init = packvalue(NXT_SET_ASYNC_CONFIG, msg_subtype)
)
namespace['nx_async_config'] = nx_async_config
'''
/* Nicira vendor flow actions. */
'''
'''
/* Action structures for NXAST_RESUBMIT and NXAST_RESUBMIT_TABLE.
*
* These actions search one of the switch's flow tables:
*
* - For NXAST_RESUBMIT_TABLE only, if the 'table' member is not 255, then
* it specifies the table to search.
*
* - Otherwise (for NXAST_RESUBMIT_TABLE with a 'table' of 255, or for
* NXAST_RESUBMIT regardless of 'table'), it searches the current flow
* table, that is, the OpenFlow flow table that contains the flow from
* which this action was obtained. If this action did not come from a
* flow table (e.g. it came from an OFPT_PACKET_OUT message), then table 0
* is the current table.
*
* The flow table lookup uses a flow that may be slightly modified from the
* original lookup:
*
* - For NXAST_RESUBMIT, the 'in_port' member of struct nx_action_resubmit
* is used as the flow's in_port.
*
* - For NXAST_RESUBMIT_TABLE, if the 'in_port' member is not OFPP_IN_PORT,
* then its value is used as the flow's in_port. Otherwise, the original
* in_port is used.
*
* - If actions that modify the flow (e.g. OFPAT_SET_VLAN_VID) precede the
* resubmit action, then the flow is updated with the new values.
*
* Following the lookup, the original in_port is restored.
*
* If the modified flow matched in the flow table, then the corresponding
* actions are executed. Afterward, actions following the resubmit in the
* original set of actions, if any, are executed; any changes made to the
* packet (e.g. changes to VLAN) by secondary actions persist when those
* actions are executed, although the original in_port is restored.
*
* Resubmit actions may be used any number of times within a set of actions.
*
* Resubmit actions may nest to an implementation-defined depth. Beyond this
* implementation-defined depth, further resubmit actions are simply ignored.
*
* NXAST_RESUBMIT ignores 'table' and 'pad'. NXAST_RESUBMIT_TABLE requires
* 'pad' to be all-bits-zero.
*
* Open vSwitch 1.0.1 and earlier did not support recursion. Open vSwitch
* before 1.2.90 did not support NXAST_RESUBMIT_TABLE.
*/
'''
nx_action_resubmit = nstruct(
(nx_port_no, 'in_port'), # /* New in_port for checking flow table. */
(uint8, 'table'), # /* NXAST_RESUBMIT_TABLE: table to use. */
(uint8[3],),
base = nx_action,
criteria = lambda x: getattr(x, action_subtype) == NXAST_RESUBMIT_TABLE or getattr(x, action_subtype) == NXAST_RESUBMIT,
classifyby = (NXAST_RESUBMIT_TABLE, NXAST_RESUBMIT),
name = 'nx_action_resubmit',
init = packvalue(NXAST_RESUBMIT_TABLE, action_subtype)
)
namespace['nx_action_resubmit'] = nx_action_resubmit
'''
/* Action structure for NXAST_SET_TUNNEL.
*
* Sets the encapsulating tunnel ID to a 32-bit value. The most-significant 32
* bits of the tunnel ID are set to 0. */
'''
nx_action_set_tunnel = nstruct(
(uint8[2],),
(uint32, 'tun_id'), # /* Tunnel ID. */
name = 'nx_action_set_tunnel',
base = nx_action,
classifyby = (NXAST_SET_TUNNEL,),
criteria = lambda x: getattr(x, action_subtype) == NXAST_SET_TUNNEL,
init = packvalue(NXAST_SET_TUNNEL, action_subtype)
)
namespace['nx_action_set_tunnel'] = nx_action_set_tunnel
'''
/* Action structure for NXAST_SET_TUNNEL64.
*
* Sets the encapsulating tunnel ID to a 64-bit value. */
'''
nx_action_set_tunnel64 = nstruct(
(uint8[6],),
(uint64, 'tun_id'), # /* Tunnel ID. */
name = 'nx_action_set_tunnel64',
base = nx_action,
classifyby = (NXAST_SET_TUNNEL64,),
criteria = lambda x: getattr(x, action_subtype) == NXAST_SET_TUNNEL64,
init = packvalue(NXAST_SET_TUNNEL64, action_subtype)
)
namespace['nx_action_set_tunnel64'] = nx_action_set_tunnel64
'''
/* Action structure for NXAST_SET_QUEUE.
*
* Set the queue that should be used when packets are output. This is similar
* to the OpenFlow OFPAT_ENQUEUE action, but does not take the output port as
* an argument. This allows the queue to be defined before the port is
* known. */
'''
nx_action_set_queue = nstruct(
(uint8[2],),
(uint32, 'queue_id'), # /* Where to enqueue packets. */
name = 'nx_action_set_queue',
base = nx_action,
classifyby = (NXAST_SET_QUEUE,),
criteria = lambda x: getattr(x, action_subtype) == NXAST_SET_QUEUE,
init = packvalue(NXAST_SET_QUEUE, action_subtype)
)
namespace['nx_action_set_queue'] = nx_action_set_queue
'''
/* Action structure for NXAST_POP_QUEUE.
*
* Restores the queue to the value it was before any NXAST_SET_QUEUE actions
* were used. Only the original queue can be restored this way; no stack is
* maintained. */
'''
nx_action_pop_queue = nstruct(
(uint8[6],),
name = 'nx_action_pop_queue',
base = nx_action,
classifyby = (NXAST_POP_QUEUE,),
criteria = lambda x: getattr(x, action_subtype) == NXAST_POP_QUEUE,
init = packvalue(NXAST_POP_QUEUE, action_subtype)
)
namespace['nx_action_pop_queue'] = nx_action_pop_queue
'''
/* Action structure for NXAST_REG_MOVE.
*
* Copies src[src_ofs:src_ofs+n_bits] to dst[dst_ofs:dst_ofs+n_bits], where
* a[b:c] denotes the bits within 'a' numbered 'b' through 'c' (not including
* bit 'c'). Bit numbering starts at 0 for the least-significant bit, 1 for
* the next most significant bit, and so on.
*
* 'src' and 'dst' are nxm_header values with nxm_hasmask=0. (It doesn't make
* sense to use nxm_hasmask=1 because the action does not do any kind of
* matching; it uses the actual value of a field.)
*
* The following nxm_header values are potentially acceptable as 'src':
*
* - NXM_OF_IN_PORT
* - NXM_OF_ETH_DST
* - NXM_OF_ETH_SRC
* - NXM_OF_ETH_TYPE
* - NXM_OF_VLAN_TCI
* - NXM_OF_IP_TOS
* - NXM_OF_IP_PROTO
* - NXM_OF_IP_SRC
* - NXM_OF_IP_DST
* - NXM_OF_TCP_SRC
* - NXM_OF_TCP_DST
* - NXM_OF_UDP_SRC
* - NXM_OF_UDP_DST
* - NXM_OF_ICMP_TYPE
* - NXM_OF_ICMP_CODE
* - NXM_OF_ARP_OP
* - NXM_OF_ARP_SPA
* - NXM_OF_ARP_TPA
* - NXM_NX_TUN_ID
* - NXM_NX_ARP_SHA
* - NXM_NX_ARP_THA
* - NXM_NX_ICMPV6_TYPE
* - NXM_NX_ICMPV6_CODE
* - NXM_NX_ND_SLL
* - NXM_NX_ND_TLL
* - NXM_NX_REG(idx) for idx in the switch's accepted range.
* - NXM_NX_PKT_MARK
* - NXM_NX_TUN_IPV4_SRC
* - NXM_NX_TUN_IPV4_DST
*
* The following nxm_header values are potentially acceptable as 'dst':
*
* - NXM_OF_ETH_DST
* - NXM_OF_ETH_SRC
* - NXM_OF_IP_TOS
* - NXM_OF_IP_SRC
* - NXM_OF_IP_DST
* - NXM_OF_TCP_SRC
* - NXM_OF_TCP_DST
* - NXM_OF_UDP_SRC
* - NXM_OF_UDP_DST
* - NXM_NX_ARP_SHA
* - NXM_NX_ARP_THA
* - NXM_OF_ARP_OP
* - NXM_OF_ARP_SPA
* - NXM_OF_ARP_TPA
* Modifying any of the above fields changes the corresponding packet
* header.
*
* - NXM_OF_IN_PORT
*
* - NXM_NX_REG(idx) for idx in the switch's accepted range.
*
* - NXM_NX_PKT_MARK
*
* - NXM_OF_VLAN_TCI. Modifying this field's value has side effects on the
* packet's 802.1Q header. Setting a value with CFI=0 removes the 802.1Q
* header (if any), ignoring the other bits. Setting a value with CFI=1
* adds or modifies the 802.1Q header appropriately, setting the TCI field
* to the field's new value (with the CFI bit masked out).
*
* - NXM_NX_TUN_ID, NXM_NX_TUN_IPV4_SRC, NXM_NX_TUN_IPV4_DST. Modifying
* any of these values modifies the corresponding tunnel header field used
* for the packet's next tunnel encapsulation, if allowed by the
* configuration of the output tunnel port.
*
* A given nxm_header value may be used as 'src' or 'dst' only on a flow whose
* nx_match satisfies its prerequisites. For example, NXM_OF_IP_TOS may be
* used only if the flow's nx_match includes an nxm_entry that specifies
* nxm_type=NXM_OF_ETH_TYPE, nxm_hasmask=0, and nxm_value=0x0800.
*
* The switch will reject actions for which src_ofs+n_bits is greater than the
* width of 'src' or dst_ofs+n_bits is greater than the width of 'dst' with
* error type OFPET_BAD_ACTION, code OFPBAC_BAD_ARGUMENT.
*
* This action behaves properly when 'src' overlaps with 'dst', that is, it
* behaves as if 'src' were copied out to a temporary buffer, then the
* temporary buffer copied to 'dst'.
*/
'''
nx_action_reg_move = nstruct(
(uint16, 'n_bits'), # /* Number of bits. */
(uint16, 'src_ofs'), # /* Starting bit offset in source. */
(uint16, 'dst_ofs'), # /* Starting bit offset in destination. */
(nxm_header, 'src'), # /* Source register. */
(nxm_header, 'dst'), # /* Destination register. */
name = 'nx_action_reg_move',
base = nx_action,
classifyby = (NXAST_REG_MOVE,),
criteria = lambda x: getattr(x, action_subtype) == NXAST_REG_MOVE,
init = packvalue(NXAST_REG_MOVE, action_subtype),
formatter = _createdesc(lambda x:'move:%s[%d..%d]->%s[%d..%d]' % (x['src'], x['src_ofs'], x['src_ofs'] + x['n_bits'] - 1, x['dst'], x['dst_ofs'], x['dst_ofs'] + x['n_bits'] - 1))
)
namespace['nx_action_reg_move'] = nx_action_reg_move
'''
/* Action structure for NXAST_REG_LOAD.
*
* Copies value[0:n_bits] to dst[ofs:ofs+n_bits], where a[b:c] denotes the bits
* within 'a' numbered 'b' through 'c' (not including bit 'c'). Bit numbering
* starts at 0 for the least-significant bit, 1 for the next most significant
* bit, and so on.
*
* 'dst' is an nxm_header with nxm_hasmask=0. See the documentation for
* NXAST_REG_MOVE, above, for the permitted fields and for the side effects of
* loading them.
*
* The 'ofs' and 'n_bits' fields are combined into a single 'ofs_nbits' field
* to avoid enlarging the structure by another 8 bytes. To allow 'n_bits' to
* take a value between 1 and 64 (inclusive) while taking up only 6 bits, it is
* also stored as one less than its true value:
*
* 15 6 5 0
* +------------------------------+------------------+
* | ofs | n_bits - 1 |
* +------------------------------+------------------+
*
* The switch will reject actions for which ofs+n_bits is greater than the
* width of 'dst', or in which any bits in 'value' with value 2**n_bits or
* greater are set to 1, with error type OFPET_BAD_ACTION, code
* OFPBAC_BAD_ARGUMENT.
*/
'''
nx_action_reg_load = nstruct(
(uint16, 'ofs_nbits'), # /* (ofs << 6) | (n_bits - 1). */
(nxm_header, 'dst'), # /* Destination register. */
(uint64, 'value'), # /* Immediate value. */
name = 'nx_action_reg_load',
base = nx_action,
classifyby = (NXAST_REG_LOAD,),
criteria = lambda x: getattr(x, action_subtype) == NXAST_REG_LOAD,
init = packvalue(NXAST_REG_LOAD, action_subtype),
formatter = _createdesc(lambda x: 'load:0x%x->%s[%d..%d]' % (x['value'], x['dst'], x['ofs_nbits'] >> 6, (x['ofs_nbits'] >> 6) + (x['ofs_nbits'] & 0x3f)))
)
namespace['nx_action_reg_load'] = nx_action_reg_load
'''
/* Action structure for NXAST_STACK_PUSH and NXAST_STACK_POP.
*
* Pushes (or pops) field[offset: offset + n_bits] to (or from)
* top of the stack.
*/
'''
nx_action_stack = nstruct(
(uint16, 'offset'), # /* Bit offset into the field. */
(nxm_header, 'field'), # /* The field used for push or pop. */
(uint16, 'n_bits'), # /* (n_bits + 1) bits of the field. */
(uint8[6],), # /* Reserved, must be zero. */
name = 'nx_action_stack',
base = nx_action,
classifyby = (NXAST_STACK_PUSH, NXAST_STACK_POP),
criteria = lambda x: getattr(x, action_subtype) == NXAST_STACK_PUSH or getattr(x, action_subtype) == NXAST_STACK_POP,
init = packvalue(NXAST_STACK_PUSH, action_subtype),
formatter = _createdesc(lambda x: '%s:%s[%d..%d]' % ('push' if x[action_subtype] == 'NXAST_STACK_PUSH' else 'pop', x['field'], x['offset'], (x['offset'] + x['n_bits'] - 1)))
)
namespace['nx_action_stack'] = nx_action_stack
'''
/* Action structure for NXAST_NOTE.
*
* This action has no effect. It is variable length. The switch does not
* attempt to interpret the user-defined 'note' data in any way. A controller
* can use this action to attach arbitrary metadata to a flow.
*
* This action might go away in the future.
*/
'''
nx_action_note = nstruct(
(varchr, 'note'),
name = 'nx_action_note',
base = nx_action,
classifyby = (NXAST_NOTE,),
criteria = lambda x: getattr(x, action_subtype) == NXAST_NOTE,
init = packvalue(NXAST_NOTE, action_subtype)
)
namespace['nx_action_note'] = nx_action_note
'''
/* Action structure for NXAST_MULTIPATH.
*
* This action performs the following steps in sequence:
*
* 1. Hashes the fields designated by 'fields', one of NX_HASH_FIELDS_*.
* Refer to the definition of "enum nx_mp_fields" for details.
*
* The 'basis' value is used as a universal hash parameter, that is,
* different values of 'basis' yield different hash functions. The
* particular universal hash function used is implementation-defined.
*
* The hashed fields' values are drawn from the current state of the
* flow, including all modifications that have been made by actions up to
* this point.
*
* 2. Applies the multipath link choice algorithm specified by 'algorithm',
* one of NX_MP_ALG_*. Refer to the definition of "enum nx_mp_algorithm"
* for details.
*
* The output of the algorithm is 'link', an unsigned integer less than
* or equal to 'max_link'.
*
* Some algorithms use 'arg' as an additional argument.
*
* 3. Stores 'link' in dst[ofs:ofs+n_bits]. The format and semantics of
* 'dst' and 'ofs_nbits' are similar to those for the NXAST_REG_LOAD
* action.
*
* The switch will reject actions that have an unknown 'fields', or an unknown
* 'algorithm', or in which ofs+n_bits is greater than the width of 'dst', or
* in which 'max_link' is greater than or equal to 2**n_bits, with error type
* OFPET_BAD_ACTION, code OFPBAC_BAD_ARGUMENT.
*/
'''
nx_action_multipath = nstruct(
#/* What fields to hash and how. */
(nx_hash_fields, 'fields'), # /* One of NX_HASH_FIELDS_*. */
(uint16, 'basis'), # /* Universal hash parameter. */
(uint16,),
#/* Multipath link choice algorithm to apply to hash value. */
(nx_mp_algorithm, 'algorithm'), # /* One of NX_MP_ALG_*. */
(uint16, 'max_link'), # /* Number of output links, minus 1. */
(uint32, 'arg'), # /* Algorithm-specific argument. */
(uint16,),
# /* Where to store the result. */
(uint16, 'ofs_nbits'), # /* (ofs << 6) | (n_bits - 1). */
(nxm_header, 'dst'), # /* Destination. */
name = 'nx_action_multipath',
base = nx_action,
classifyby = (NXAST_MULTIPATH,),
criteria = lambda x: getattr(x, action_subtype) == NXAST_MULTIPATH,
init = packvalue(NXAST_MULTIPATH, action_subtype),
formatter = _createdesc(lambda x: 'multipath(%s,%d,%s,%d,%d,%s[%d..%d])' % (x['fields'], x['basis'], x['algorithm'],x['max_link'] + 1, x['arg'], x['dst'], x['ofs_nbits'] >> 6, (x['ofs_nbits'] >> 6) + (x['ofs_nbits'] & 0x3f)))
)
namespace['nx_action_multipath'] = nx_action_multipath
'''
/* Action structure for NXAST_LEARN.
*
* This action adds or modifies a flow in an OpenFlow table, similar to
* OFPT_FLOW_MOD with OFPFC_MODIFY_STRICT as 'command'. The new flow has the
* specified idle timeout, hard timeout, priority, cookie, and flags. The new
* flow's match criteria and actions are built by applying each of the series
* of flow_mod_spec elements included as part of the action.
*
* A flow_mod_spec starts with a 16-bit header. A header that is all-bits-0 is
* a no-op used for padding the action as a whole to a multiple of 8 bytes in
* length. Otherwise, the flow_mod_spec can be thought of as copying 'n_bits'
* bits from a source to a destination. In this case, the header contains
* multiple fields:
*
* 15 14 13 12 11 10 0
* +------+---+------+---------------------------------+
* | 0 |src| dst | n_bits |
* +------+---+------+---------------------------------+
*
* The meaning and format of a flow_mod_spec depends on 'src' and 'dst'. The
* following table summarizes the meaning of each possible combination.
* Details follow the table:
*
* src dst meaning
* --- --- ----------------------------------------------------------
* 0 0 Add match criteria based on value in a field.
* 1 0 Add match criteria based on an immediate value.
* 0 1 Add NXAST_REG_LOAD action to copy field into a different field.
* 1 1 Add NXAST_REG_LOAD action to load immediate value into a field.
* 0 2 Add OFPAT_OUTPUT action to output to port from specified field.
* All other combinations are undefined and not allowed.
*
* The flow_mod_spec header is followed by a source specification and a
* destination specification. The format and meaning of the source
* specification depends on 'src':
*
* - If 'src' is 0, the source bits are taken from a field in the flow to
* which this action is attached. (This should be a wildcarded field. If
* its value is fully specified then the source bits being copied have
* constant values.)
*
* The source specification is an ovs_be32 'field' and an ovs_be16 'ofs'.
* 'field' is an nxm_header with nxm_hasmask=0, and 'ofs' the starting bit
* offset within that field. The source bits are field[ofs:ofs+n_bits-1].
* 'field' and 'ofs' are subject to the same restrictions as the source
* field in NXAST_REG_MOVE.
*
* - If 'src' is 1, the source bits are a constant value. The source
* specification is (n_bits+15)/16*2 bytes long. Taking those bytes as a
* number in network order, the source bits are the 'n_bits'
* least-significant bits. The switch will report an error if other bits
* in the constant are nonzero.
*
* The flow_mod_spec destination specification, for 'dst' of 0 or 1, is an
* ovs_be32 'field' and an ovs_be16 'ofs'. 'field' is an nxm_header with
* nxm_hasmask=0 and 'ofs' is a starting bit offset within that field. The
* meaning of the flow_mod_spec depends on 'dst':
*
* - If 'dst' is 0, the flow_mod_spec specifies match criteria for the new
* flow. The new flow matches only if bits field[ofs:ofs+n_bits-1] in a
* packet equal the source bits. 'field' may be any nxm_header with
* nxm_hasmask=0 that is allowed in NXT_FLOW_MOD.
*
* Order is significant. Earlier flow_mod_specs must satisfy any
* prerequisites for matching fields specified later, by copying constant
* values into prerequisite fields.
*
* The switch will reject flow_mod_specs that do not satisfy NXM masking
* restrictions.
*
* - If 'dst' is 1, the flow_mod_spec specifies an NXAST_REG_LOAD action for
* the new flow. The new flow copies the source bits into
* field[ofs:ofs+n_bits-1]. Actions are executed in the same order as the
* flow_mod_specs.
*
* A single NXAST_REG_LOAD action writes no more than 64 bits, so n_bits
* greater than 64 yields multiple NXAST_REG_LOAD actions.
*
* The flow_mod_spec destination spec for 'dst' of 2 (when 'src' is 0) is
* empty. It has the following meaning:
*
* - The flow_mod_spec specifies an OFPAT_OUTPUT action for the new flow.
* The new flow outputs to the OpenFlow port specified by the source field.
* Of the special output ports with value OFPP_MAX or larger, OFPP_IN_PORT,
* OFPP_FLOOD, OFPP_LOCAL, and OFPP_ALL are supported. Other special ports
* may not be used.
*
* Resource Management
* -------------------
*
* A switch has a finite amount of flow table space available for learning.
* When this space is exhausted, no new learning table entries will be learned
* until some existing flow table entries expire. The controller should be
* prepared to handle this by flooding (which can be implemented as a
* low-priority flow).
*
* If a learned flow matches a single TCP stream with a relatively long
* timeout, one may make the best of resource constraints by setting
* 'fin_idle_timeout' or 'fin_hard_timeout' (both measured in seconds), or
* both, to shorter timeouts. When either of these is specified as a nonzero
* value, OVS adds a NXAST_FIN_TIMEOUT action, with the specified timeouts, to
* the learned flow.
*
* Examples
* --------
*
* The following examples give a prose description of the flow_mod_specs along
* with informal notation for how those would be represented and a hex dump of
* the bytes that would be required.
*
* These examples could work with various nx_action_learn parameters. Typical
* values would be idle_timeout=OFP_FLOW_PERMANENT, hard_timeout=60,
* priority=OFP_DEFAULT_PRIORITY, flags=0, table_id=10.
*
* 1. Learn input port based on the source MAC, with lookup into
* NXM_NX_REG1[16:31] by resubmit to in_port=99:
*
* Match on in_port=99:
* ovs_be16(src=1, dst=0, n_bits=16), 20 10
* ovs_be16(99), 00 63
* ovs_be32(NXM_OF_IN_PORT), ovs_be16(0) 00 00 00 02 00 00
*
* Match Ethernet destination on Ethernet source from packet:
* ovs_be16(src=0, dst=0, n_bits=48), 00 30
* ovs_be32(NXM_OF_ETH_SRC), ovs_be16(0) 00 00 04 06 00 00
* ovs_be32(NXM_OF_ETH_DST), ovs_be16(0) 00 00 02 06 00 00
*
* Set NXM_NX_REG1[16:31] to the packet's input port:
* ovs_be16(src=0, dst=1, n_bits=16), 08 10
* ovs_be32(NXM_OF_IN_PORT), ovs_be16(0) 00 00 00 02 00 00
* ovs_be32(NXM_NX_REG1), ovs_be16(16) 00 01 02 04 00 10
*
* Given a packet that arrived on port A with Ethernet source address B,
* this would set up the flow "in_port=99, dl_dst=B,
* actions=load:A->NXM_NX_REG1[16..31]".
*
* In syntax accepted by ovs-ofctl, this action is: learn(in_port=99,
* NXM_OF_ETH_DST[]=NXM_OF_ETH_SRC[],
* load:NXM_OF_IN_PORT[]->NXM_NX_REG1[16..31])
*
* 2. Output to input port based on the source MAC and VLAN VID, with lookup
* into NXM_NX_REG1[16:31]:
*
* Match on same VLAN ID as packet:
* ovs_be16(src=0, dst=0, n_bits=12), 00 0c
* ovs_be32(NXM_OF_VLAN_TCI), ovs_be16(0) 00 00 08 02 00 00
* ovs_be32(NXM_OF_VLAN_TCI), ovs_be16(0) 00 00 08 02 00 00
*
* Match Ethernet destination on Ethernet source from packet:
* ovs_be16(src=0, dst=0, n_bits=48), 00 30
* ovs_be32(NXM_OF_ETH_SRC), ovs_be16(0) 00 00 04 06 00 00
* ovs_be32(NXM_OF_ETH_DST), ovs_be16(0) 00 00 02 06 00 00
*
* Output to the packet's input port:
* ovs_be16(src=0, dst=2, n_bits=16), 10 10
* ovs_be32(NXM_OF_IN_PORT), ovs_be16(0) 00 00 00 02 00 00
*
* Given a packet that arrived on port A with Ethernet source address B in
* VLAN C, this would set up the flow "dl_dst=B, vlan_vid=C,
* actions=output:A".
*
* In syntax accepted by ovs-ofctl, this action is:
* learn(NXM_OF_VLAN_TCI[0..11], NXM_OF_ETH_DST[]=NXM_OF_ETH_SRC[],
* output:NXM_OF_IN_PORT[])
*
* 3. Here's a recipe for a very simple-minded MAC learning switch. It uses a
* 10-second MAC expiration time to make it easier to see what's going on
*
* ovs-vsctl del-controller br0
* ovs-ofctl del-flows br0
* ovs-ofctl add-flow br0 "table=0 actions=learn(table=1, \
hard_timeout=10, NXM_OF_VLAN_TCI[0..11], \
NXM_OF_ETH_DST[]=NXM_OF_ETH_SRC[], \
output:NXM_OF_IN_PORT[]), resubmit(,1)"
* ovs-ofctl add-flow br0 "table=1 priority=0 actions=flood"
*
* You can then dump the MAC learning table with:
*
* ovs-ofctl dump-flows br0 table=1
*
* Usage Advice
* ------------
*
* For best performance, segregate learned flows into a table that is not used
* for any other flows except possibly for a lowest-priority "catch-all" flow
* (a flow with no match criteria). If different learning actions specify
* different match criteria, use different tables for the learned flows.
*
* The meaning of 'hard_timeout' and 'idle_timeout' can be counterintuitive.
* These timeouts apply to the flow that is added, which means that a flow with
* an idle timeout will expire when no traffic has been sent *to* the learned
* address. This is not usually the intent in MAC learning; instead, we want
* the MAC learn entry to expire when no traffic has been sent *from* the
* learned address. Use a hard timeout for that.
*/
'''
def _nx_flow_mod_spec_formatter(x):
if NX_FLOWMODSPEC_SRC(x['header']):
srcdesc = '0x' + ''.join('%02x' % (c,) for c in bytearray(x['value']))
else:
srcdesc = '%s[%d..%d]' % (x['src'], x['src_ofs'], x['src_ofs'] + NX_FLOWMODSPEC_NBITS(x['header']) - 1)
dstv = NX_FLOWMODSPEC_DST(x['header'])
if dstv != NX_LEARN_DST_OUTPUT:
dstdesc = '%s[%d..%d]' % (x['dst'], x['dst_ofs'], x['dst_ofs'] + NX_FLOWMODSPEC_NBITS(x['header']) - 1)
if dstv == NX_LEARN_DST_MATCH:
x['_desc'] = '%s=%s' % (dstdesc, srcdesc)
elif dstv == NX_LEARN_DST_LOAD:
x['_desc'] = 'load:%s->%s' % (srcdesc, dstdesc)
elif NX_FLOWMODSPEC_SRC(x['header']):
x['_desc'] = 'output:%s' % nxm_port_no_raw.formatter(common.create_binary(x['value'], 2))
else:
x['_desc'] = 'output:%s' % (srcdesc,)
x['header'] = nx_flow_mod_spec_header.formatter(x['header'])
return x
nx_flow_mod_spec = nstruct(
(uint16, 'header'),
(_nx_flow_mod_spec_src,),
(_nx_flow_mod_spec_dst,),
name = 'nx_flow_mod_spec',
padding = 1,
formatter = _nx_flow_mod_spec_formatter,
lastextra = False
# if x.header == 0, size is 14, the padding should not be so large so it will not be successfully parsed
)
namespace['nx_flow_mod_spec'] = nx_flow_mod_spec
def create_nxfms_matchfield(src, dst, src_ofs = 0, dst_ofs = 0, n_bits = None):
if n_bits is None:
n_bits = min(NXM_LENGTH(dst) * 8 - dst_ofs, NXM_LENGTH(src) * 8 - src_ofs)
if n_bits <= 0:
raise ValueError('Cannot create flow mod spec with 0 bits')
return nx_flow_mod_spec.parse(_create_header(NX_LEARN_SRC_FIELD, NX_LEARN_DST_MATCH, n_bits) + _create_field(src, src_ofs) + _create_field(dst, dst_ofs))[0]
namespace['create_nxfms_matchfield'] = create_nxfms_matchfield
def create_nxfms_matchvalue(dst, value, dst_ofs, n_bits = None):
if n_bits is None:
n_bits = NXM_LENGTH(dst) * 8 - dst_ofs
if n_bits <= 0:
raise ValueError('Cannot create flow mod spec with 0 bits')
return nx_flow_mod_spec.parse(_create_header(NX_LEARN_SRC_IMMEDIATE, NX_LEARN_DST_MATCH, n_bits) + common.create_binary(value, (n_bits + 15) // 16 * 2) + _create_field(dst, dst_ofs))[0]
namespace['create_nxfms_matchvalue'] = create_nxfms_matchvalue
def create_nxfms_loadfield(src, dst, src_ofs = 0, dst_ofs = 0, n_bits = None):
if n_bits is None:
n_bits = min(NXM_LENGTH(dst) * 8 - dst_ofs, NXM_LENGTH(src) * 8 - src_ofs)
if n_bits <= 0:
raise ValueError('Cannot create flow mod spec with 0 bits')
return nx_flow_mod_spec.parse(_create_header(NX_LEARN_SRC_FIELD, NX_LEARN_DST_LOAD, n_bits) + _create_field(src, src_ofs) + _create_field(dst, dst_ofs))[0]
namespace['create_nxfms_loadfield'] = create_nxfms_loadfield
def create_nxfms_loadvalue(dst, value, dst_ofs, n_bits = None):
if n_bits is None:
n_bits = NXM_LENGTH(dst) * 8 - dst_ofs
if n_bits <= 0:
raise ValueError('Cannot create flow mod spec with 0 bits')
return nx_flow_mod_spec.parse(_create_header(NX_LEARN_SRC_IMMEDIATE, NX_LEARN_DST_LOAD, n_bits) + common.create_binary(value, (n_bits + 15) // 16 * 2) + _create_field(dst, dst_ofs))[0]
namespace['create_nxfms_loadvalue'] = create_nxfms_loadvalue
def create_nxfms_outputfield(src, src_ofs = 0, n_bits = None):
if n_bits is None:
n_bits = NXM_LENGTH(src) * 8 - src_ofs
if n_bits <= 0:
raise ValueError('Cannot create flow mod spec with 0 bits')
return nx_flow_mod_spec.parse(_create_header(NX_LEARN_SRC_FIELD, NX_LEARN_DST_OUTPUT, n_bits) + _create_field(src, src_ofs))[0]
namespace['create_nxfms_outputfield'] = create_nxfms_outputfield
def create_nxfms_outputvalue(dst, value):
return nx_flow_mod_spec.parse(_create_header(NX_LEARN_SRC_IMMEDIATE, NX_LEARN_DST_OUTPUT, 16) + common.create_binary(value, 2))[0]
namespace['create_nxfms_outputvalue'] = create_nxfms_outputvalue
ofp_flow_mod_flags = namespace['ofp_flow_mod_flags']
nx_action_learn = nstruct(
(uint16, 'idle_timeout'), # /* Idle time before discarding (seconds). */
(uint16, 'hard_timeout'), # /* Max time before discarding (seconds). */
(uint16, 'priority'), # /* Priority level of flow entry. */
(uint64, 'cookie'), # /* Cookie for new flow. */
(ofp_flow_mod_flags, 'flags'), # /* Either 0 or OFPFF_SEND_FLOW_REM. */
(uint8, 'table_id'), # /* Table to insert flow entry. */
(uint8,), # /* Must be zero. */
(uint16, 'fin_idle_timeout'),# /* Idle timeout after FIN, if nonzero. */
(uint16, 'fin_hard_timeout'),# /* Hard timeout after FIN, if nonzero. */
(nx_flow_mod_spec[0], 'specs'),
base = nx_action,
name = 'nx_action_learn',
classifyby = (NXAST_LEARN,),
criteria = lambda x: getattr(x, action_subtype) == NXAST_LEARN,
init = packvalue(NXAST_LEARN, action_subtype),
)
namespace['nx_action_learn'] = nx_action_learn
'''
/* Action structure for NXAST_FIN_TIMEOUT.
*
* This action changes the idle timeout or hard timeout, or both, of this
* OpenFlow rule when the rule matches a TCP packet with the FIN or RST flag.
* When such a packet is observed, the action reduces the rule's idle timeout
* to 'fin_idle_timeout' and its hard timeout to 'fin_hard_timeout'. This
* action has no effect on an existing timeout that is already shorter than the
* one that the action specifies. A 'fin_idle_timeout' or 'fin_hard_timeout'
* of zero has no effect on the respective timeout.
*
* 'fin_idle_timeout' and 'fin_hard_timeout' are measured in seconds.
* 'fin_hard_timeout' specifies time since the flow's creation, not since the
* receipt of the FIN or RST.
*
* This is useful for quickly discarding learned TCP flows that otherwise will
* take a long time to expire.
*
* This action is intended for use with an OpenFlow rule that matches only a
* single TCP flow. If the rule matches multiple TCP flows (e.g. it wildcards
* all TCP traffic, or all TCP traffic to a particular port), then any FIN or
* RST in any of those flows will cause the entire OpenFlow rule to expire
* early, which is not normally desirable.
*/
'''
nx_action_fin_timeout = nstruct(
(uint16, 'fin_idle_timeout'), # /* New idle timeout, if nonzero. */
(uint16, 'fin_hard_timeout'), # /* New hard timeout, if nonzero. */
(uint16,),
base = nx_action,
name = 'nx_action_fin_timeout',
criteria = lambda x: getattr(x, action_subtype) == NXAST_FIN_TIMEOUT,
classifyby = (NXAST_FIN_TIMEOUT,),
init = packvalue(NXAST_FIN_TIMEOUT, action_subtype)
)
namespace['nx_action_fin_timeout'] = nx_action_fin_timeout
'''
/* Action structure for NXAST_BUNDLE and NXAST_BUNDLE_LOAD.
*
* The bundle actions choose a slave from a supplied list of options.
* NXAST_BUNDLE outputs to its selection. NXAST_BUNDLE_LOAD writes its
* selection to a register.
*
* The list of possible slaves follows the nx_action_bundle structure. The size
* of each slave is governed by its type as indicated by the 'slave_type'
* parameter. The list of slaves should be padded at its end with zeros to make
* the total length of the action a multiple of 8.
*
* Switches infer from the 'slave_type' parameter the size of each slave. All
* implementations must support the NXM_OF_IN_PORT 'slave_type' which indicates
* that the slaves are OpenFlow port numbers with NXM_LENGTH(NXM_OF_IN_PORT) ==
* 2 byte width. Switches should reject actions which indicate unknown or
* unsupported slave types.
*
* Switches use a strategy dictated by the 'algorithm' parameter to choose a
* slave. If the switch does not support the specified 'algorithm' parameter,
* it should reject the action.
*
* Several algorithms take into account liveness when selecting slaves. The
* liveness of a slave is implementation defined (with one exception), but will
* generally take into account things like its carrier status and the results
* of any link monitoring protocols which happen to be running on it. In order
* to give controllers a place-holder value, the OFPP_NONE port is always
* considered live.
*
* Some slave selection strategies require the use of a hash function, in which
* case the 'fields' and 'basis' parameters should be populated. The 'fields'
* parameter (one of NX_HASH_FIELDS_*) designates which parts of the flow to
* hash. Refer to the definition of "enum nx_hash_fields" for details. The
* 'basis' parameter is used as a universal hash parameter. Different values
* of 'basis' yield different hash results.
*
* The 'zero' parameter at the end of the action structure is reserved for
* future use. Switches are required to reject actions which have nonzero
* bytes in the 'zero' field.
*
* NXAST_BUNDLE actions should have 'ofs_nbits' and 'dst' zeroed. Switches
* should reject actions which have nonzero bytes in either of these fields.
*
* NXAST_BUNDLE_LOAD stores the OpenFlow port number of the selected slave in
* dst[ofs:ofs+n_bits]. The format and semantics of 'dst' and 'ofs_nbits' are
* similar to those for the NXAST_REG_LOAD action. */
'''
nx_action_bundle = nstruct(
# /* Slave choice algorithm to apply to hash value. */
(nx_bd_algorithm, 'algorithm'), # /* One of NX_BD_ALG_*. */
# /* What fields to hash and how. */
(nx_hash_fields, 'fields'), # /* One of NX_HASH_FIELDS_*. */
(uint16, 'basis'), # /* Universal hash parameter. */
(nxm_header, 'slave_type'), # /* NXM_OF_IN_PORT. */
(uint16, 'n_slaves'), # /* Number of slaves. */
(uint16, 'ofs_nbits'), # /* (ofs << 6) | (n_bits - 1). */
(nxm_header, 'dst'), # /* Destination. */
(uint8[4],), # /* Reserved. Must be zero. */
name = 'nx_action_bundle',
base = nx_action,
criteria = lambda x: getattr(x, action_subtype) == NXAST_BUNDLE or getattr(x, action_subtype) == NXAST_BUNDLE_LOAD,
classifyby = (NXAST_BUNDLE, NXAST_BUNDLE_LOAD),
init = packvalue(NXAST_BUNDLE, action_subtype)
)
namespace['nx_action_bundle'] = nx_action_bundle
def _nx_slave_ports_prepack(x):
x.n_slaves = len(x.bundles)
_nx_slave_ports = nstruct(
(nx_port_no[0], 'bundles'),
name = '_nx_slave_ports',
size = lambda x: x.n_slaves * 2,
prepack = _nx_slave_ports_prepack,
padding = 1
)
nx_action_bundle_port = nstruct(
(_nx_slave_ports,),
base = nx_action_bundle,
name = 'nx_action_bundle_port',
criteria = lambda x: x.slave_type == NXM_OF_IN_PORT,
init = packvalue(NXM_OF_IN_PORT, 'slave_type'),
lastextra = False,
formatter = _createdesc(lambda x: 'bundle_load(%s,%d,%s,%s,%s[%d..%d],slaves:%r)' % \
(x['fields'], x['basis'], x['algorithm'], x['slave_type'], x['dst'], x['ofs_nbits'] >> 6, (x['ofs_nbits'] >> 6) + (x['ofs_nbits'] & 0x3f), x['bundles']) \
if x[action_subtype] == 'NXAST_BUNDLE_LOAD' else 'bundle(%s,%d,%s,%s,slaves:%r)' % (x['fields'], x['basis'], x['algorithm'], x['slave_type'], x['bundles']))
)
namespace['nx_action_bundle_port'] = nx_action_bundle_port
def _nx_slave_others_prepack(x):
x.n_slaves = len(x.bundlesraw) // NXM_LENGTH(x.slave_type)
_nx_slave_others = nstruct(
(raw, 'bundlesraw'),
name = '_nx_slave_others',
size = lambda x: x.n_slaves * NXM_LENGTH(x.slave_type),
prepack = _nx_slave_others_prepack,
padding = 1
)
nx_action_bundle_others = nstruct(
(_nx_slave_others,),
base = nx_action_bundle,
name = 'nx_action_bundle_others',
criteria = lambda x: x.slave_type != NXM_OF_IN_PORT,
lastextra = False,
init = packvalue(NXM_OF_ETH_DST, 'slave_type'),
formatter = _createdesc(lambda x: 'bundle_load(%s,%d,%s,%s,%s[%d..%d],slaves:%r)' % \
(x['fields'], x['basis'], x['algorithm'], x['slave_type'], x['dst'], x['ofs_nbits'] >> 6, (x['ofs_nbits'] >> 6) + (x['ofs_nbits'] & 0x3f), x['bundleraw']) \
if x[action_subtype] == 'NXAST_BUNDLE_LOAD' else 'bundle(%s,%d,%s,%s,slaves:%r)' % (x['fields'], x['basis'], x['algorithm'], x['slave_type'], x['bundleraw']))
)
namespace['nx_action_bundle_others'] = nx_action_bundle_others
'''
/* Action structure for NXAST_DEC_TTL_CNT_IDS.
*
* If the packet is not IPv4 or IPv6, does nothing. For IPv4 or IPv6, if the
* TTL or hop limit is at least 2, decrements it by 1. Otherwise, if TTL or
* hop limit is 0 or 1, sends a packet-in to the controllers with each of the
* 'n_controllers' controller IDs specified in 'cnt_ids'.
*
* (This differs from NXAST_DEC_TTL in that for NXAST_DEC_TTL the packet-in is
* sent only to controllers with id 0.)
*/
'''
def _nx_action_cnt_ids_ids_prepack(x):
x.n_controllers = len(x.cnt_ids)
_nx_action_cnt_ids_ids = nstruct(
(uint16[0], 'cnt_ids'),
name = '_nx_action_cnt_ids_ids',
size = lambda x: 2 * x.n_controllers,
prepack = _nx_action_cnt_ids_ids_prepack
)
nx_action_cnt_ids = nstruct(
(uint16, 'n_controllers'), # /* Number of controllers. */
(uint8[4],), # /* Must be zero. */
(_nx_action_cnt_ids_ids,),
base = nx_action,
classifyby = (NXAST_DEC_TTL_CNT_IDS,),
criteria = lambda x: getattr(x, action_subtype) == NXAST_DEC_TTL_CNT_IDS,
init = packvalue(NXAST_DEC_TTL_CNT_IDS, action_subtype),
lastextra = False,
name = 'nx_action_cnt_ids'
)
namespace['nx_action_cnt_ids'] = nx_action_cnt_ids
'''
/* Action structure for NXAST_OUTPUT_REG.
*
* Outputs to the OpenFlow port number written to src[ofs:ofs+nbits].
*
* The format and semantics of 'src' and 'ofs_nbits' are similar to those for
* the NXAST_REG_LOAD action.
*
* The acceptable nxm_header values for 'src' are the same as the acceptable
* nxm_header values for the 'src' field of NXAST_REG_MOVE.
*
* The 'max_len' field indicates the number of bytes to send when the chosen
* port is OFPP_CONTROLLER. Its semantics are equivalent to the 'max_len'
* field of OFPAT_OUTPUT.
*
* The 'zero' field is required to be zeroed for forward compatibility. */
'''
nx_action_output_reg = nstruct(
(uint16, 'ofs_nbits'), # /* (ofs << 6) | (n_bits - 1). */
(nxm_header, 'src'), # /* Source. */
(uint16, 'max_len'), # /* Max length to send to controller. */
(uint8[6],), # /* Reserved, must be zero. */
base = nx_action,
classifyby = (NXAST_OUTPUT_REG,),
criteria = lambda x: getattr(x, action_subtype) == NXAST_OUTPUT_REG,
init = packvalue(NXAST_OUTPUT_REG, action_subtype),
name = 'nx_action_output_reg',
formatter = _createdesc(lambda x: 'output:%s[%d..%d]' % (x['src'], x['ofs_nbits'] >> 6, (x['ofs_nbits'] >> 6) + (x['ofs_nbits'] & 0x3f)))
)
namespace['nx_action_output_reg'] = nx_action_output_reg
'''
/* NXAST_EXIT
*
* Discontinues action processing.
*
* The NXAST_EXIT action causes the switch to immediately halt processing
* actions for the flow. Any actions which have already been processed are
* executed by the switch. However, any further actions, including those which
* may be in different tables, or different levels of the NXAST_RESUBMIT
* hierarchy, will be ignored.
*
* Uses the nx_action_header structure. */
/* ## --------------------- ## */
/* ## Requests and replies. ## */
/* ## --------------------- ## */
'''
'''
/* NXT_SET_FLOW_FORMAT request. */
'''
nx_set_flow_format = nstruct(
(nx_flow_format, 'format'), # /* One of NXFF_*. */
name = 'nx_set_flow_format',
base = nicira_header,
criteria = lambda x: getattr(x, msg_subtype) == NXT_SET_FLOW_FORMAT,
classifyby = (NXT_SET_FLOW_FORMAT,),
init = packvalue(NXT_SET_FLOW_FORMAT, msg_subtype)
)
namespace['nx_set_flow_format'] = nx_set_flow_format
'''
/* NXT_FLOW_MOD (analogous to OFPT_FLOW_MOD).
*
* It is possible to limit flow deletions and modifications to certain
* cookies by using the NXM_NX_COOKIE(_W) matches. The "cookie" field
* is used only to add or modify flow cookies.
*/
'''
ofp_flow_mod_command = namespace['ofp_flow_mod_command']
nx_flow_mod = nstruct(
(uint64, 'cookie'), # /* Opaque controller-issued identifier. */
(ofp_flow_mod_command, 'command'), # /* OFPFC_* + possibly a table ID (see comment
# * on struct nx_flow_mod_table_id). */
(uint16, 'idle_timeout'), # /* Idle time before discarding (seconds). */
(uint16, 'hard_timeout'), # /* Max time before discarding (seconds). */
(uint16, 'priority'), # /* Priority level of flow entry. */
(uint32, 'buffer_id'), # /* Buffered packet to apply to (or -1).
# Not meaningful for OFPFC_DELETE*. */
(nx_port_no, 'out_port'), # /* For OFPFC_DELETE* commands, require
# matching entries to include this as an
# output port. A value of OFPP_NONE
# indicates no restriction. */
(ofp_flow_mod_flags, 'flags'), # /* One of OFPFF_*. */
(uint16, 'match_len'), # /* Size of nx_match. */
(uint8[6],), # /* Align to 64-bits. */
(nx_matches,),
base = nicira_header,
criteria = lambda x: getattr(x, msg_subtype) == NXT_FLOW_MOD,
classifyby = (NXT_FLOW_MOD,),
init = packvalue(NXT_FLOW_MOD, msg_subtype),
name = 'nx_flow_mod'
)
namespace['nx_flow_mod'] = nx_flow_mod
'''
/* NXT_FLOW_REMOVED (analogous to OFPT_FLOW_REMOVED).
*
* 'table_id' is present only in Open vSwitch 1.11 and later. In earlier
* versions of Open vSwitch, this is a padding byte that is always zeroed.
* Therefore, a 'table_id' value of 0 indicates that the table ID is not known,
* and other values may be interpreted as one more than the flow's former table
* ID. */
'''
nx_flow_removed = nstruct(
(uint64, 'cookie'), # /* Opaque controller-issued identifier. */
(uint16, 'priority'), # /* Priority level of flow entry. */
(ofp_flow_removed_reason, 'reason'), # /* One of OFPRR_*. */
(uint8, 'table_id'), # /* Flow's former table ID, plus one. */
(uint32, 'duration_sec'), # /* Time flow was alive in seconds. */
(uint32, 'duration_nsec'), # /* Time flow was alive in nanoseconds beyond
# duration_sec. */
(uint16, 'idle_timeout'), # /* Idle timeout from original flow mod. */
(uint16, 'match_len'), # /* Size of nx_match. */
(uint64, 'packet_count'),
(uint64, 'byte_count'),
(nx_matches,),
base = nicira_header,
criteria = lambda x: getattr(x, msg_subtype) == NXT_FLOW_REMOVED,
classifyby = (NXT_FLOW_REMOVED,),
init = packvalue(NXT_FLOW_REMOVED, msg_subtype),
name = 'nx_flow_removed'
)
namespace['nx_flow_removed'] = nx_flow_removed
'''
/* Nicira vendor stats request of type NXST_FLOW (analogous to OFPST_FLOW
* request).
*
* It is possible to limit matches to certain cookies by using the
* NXM_NX_COOKIE and NXM_NX_COOKIE_W matches.
*/
'''
nx_flow_stats_request = nstruct(
(nx_port_no, 'out_port'), #/* Require matching entries to include this
# as an output port. A value of OFPP_NONE
# indicates no restriction. */
(uint16, 'match_len'), # /* Length of nx_match. */
(uint8, 'table_id'), # /* ID of table to read (from ofp_table_stats)
# or 0xff for all tables. */
(uint8[3],), # /* Align to 64 bits. */
(nx_matches,),
base = nx_stats_request,
criteria = lambda x: getattr(x, stats_subtype) == NXST_FLOW,
classifyby = (NXST_FLOW,),
init = packvalue(NXST_FLOW, stats_subtype),
name = 'nx_flow_stats_request'
)
namespace['nx_flow_stats_request'] = nx_flow_stats_request
'''
/* Body for Nicira vendor stats reply of type NXST_FLOW (analogous to
* OFPST_FLOW reply).
*
* The values of 'idle_age' and 'hard_age' are only meaningful when talking to
* a switch that implements the NXT_FLOW_AGE extension. Zero means that the
* true value is unknown, perhaps because hardware does not track the value.
* (Zero is also the value that one should ordinarily expect to see talking to
* a switch that does not implement NXT_FLOW_AGE, since those switches zero the
* padding bytes that these fields replaced.) A nonzero value X represents X-1
* seconds. A value of 65535 represents 65534 or more seconds.
*
* 'idle_age' is the number of seconds that the flow has been idle, that is,
* the number of seconds since a packet passed through the flow. 'hard_age' is
* the number of seconds since the flow was last modified (e.g. OFPFC_MODIFY or
* OFPFC_MODIFY_STRICT). (The 'duration_*' fields are the elapsed time since
* the flow was added, regardless of subsequent modifications.)
*
* For a flow with an idle or hard timeout, 'idle_age' or 'hard_age',
* respectively, will ordinarily be smaller than the timeout, but flow
* expiration times are only approximate and so one must be prepared to
* tolerate expirations that occur somewhat early or late.
*/
'''
ofp_action = namespace['ofp_action']
nx_flow_stats = nstruct(
(uint16, 'length'), # /* Length of this entry. */
(uint8, 'table_id'), # /* ID of table flow came from. */
(uint8,),
(uint32, 'duration_sec'), # /* Time flow has been alive in seconds. */
(uint32, 'duration_nsec'), # /* Time flow has been alive in nanoseconds
# beyond duration_sec. */
(uint16, 'priority'), # /* Priority of the entry. */
(uint16, 'idle_timeout'), # /* Number of seconds idle before expiration. */
(uint16, 'hard_timeout'), # /* Number of seconds before expiration. */
(uint16, 'match_len'), # /* Length of nx_match. */
(uint16, 'idle_age'), # /* Seconds since last packet, plus one. */
(uint16, 'hard_age'), # /* Seconds since last modification, plus one. */
(uint64, 'cookie'), # /* Opaque controller-issued identifier. */
(uint64, 'packet_count'), # /* Number of packets, UINT64_MAX if unknown. */
(uint64, 'byte_count'), # /* Number of bytes, UINT64_MAX if unknown. */
#=======================================================================
# /* Followed by:
# * - Exactly match_len (possibly 0) bytes containing the nx_match, then
# * - Exactly (match_len + 7)/8*8 - match_len (between 0 and 7) bytes of
# * all-zero bytes, then
# * - Actions to fill out the remainder 'length' bytes (always a multiple
# * of 8).
# */
#=======================================================================
(nx_matches,),
(ofp_action[0], 'actions'),
name = 'nx_flow_stats',
size = sizefromlen(65536, 'length'),
prepack = packsize('length')
)
namespace['nx_flow_stats'] = nx_flow_stats
nx_flow_stats_reply = nstruct(
(nx_flow_stats[0], 'stats'),
base = nx_stats_reply,
classifyby = (NXST_FLOW,),
criteria = lambda x: getattr(x, stats_subtype) == NXST_FLOW,
init = packvalue(NXST_FLOW, stats_subtype),
name = 'nx_flow_stats_reply'
)
namespace['nx_flow_stats_reply'] = nx_flow_stats_reply
'''
/* Nicira vendor stats request of type NXST_AGGREGATE (analogous to
* OFPST_AGGREGATE request).
*
* The reply format is identical to the reply format for OFPST_AGGREGATE,
* except for the header. */
'''
nx_aggregate_stats_request = nstruct(
(nx_port_no, 'out_port'), # /* Require matching entries to include this
# as an output port. A value of OFPP_NONE
# indicates no restriction. */
(uint16, 'match_len'), # /* Length of nx_match. */
(uint8, 'table_id'), # /* ID of table to read (from ofp_table_stats)
# or 0xff for all tables. */
(uint8[3],), # /* Align to 64 bits. */
#=======================================================================
# /* Followed by:
# * - Exactly match_len (possibly 0) bytes containing the nx_match, then
# * - Exactly (match_len + 7)/8*8 - match_len (between 0 and 7) bytes of
# * all-zero bytes, which must also exactly fill out the length of the
# * message.
# */
#=======================================================================
(nx_matches,),
base = nx_stats_request,
name = 'nx_aggregate_stats_request',
criteria = lambda x: getattr(x, stats_subtype) == NXST_AGGREGATE,
classifyby = (NXST_AGGREGATE,),
init = packvalue(NXST_AGGREGATE, stats_subtype),
lastextra = False
)
namespace['nx_aggregate_stats_request'] = nx_aggregate_stats_request
nx_aggregate_stats_reply = nstruct(
(uint64, 'packet_count'), # /* Number of packets in flows. */
(uint64, 'byte_count'), # /* Number of bytes in flows. */
(uint32, 'flow_count'), # /* Number of flows. */
(uint8[4],),
base = nx_stats_reply,
name = 'nx_aggregate_stats_reply',
criteria = lambda x: getattr(x, stats_subtype) == NXST_AGGREGATE,
classifyby = (NXST_AGGREGATE,),
init = packvalue(NXST_AGGREGATE, stats_subtype)
)
namespace['nx_aggregate_stats_reply'] = nx_aggregate_stats_reply
'''
/* NXT_SET_CONTROLLER_ID.
*
* Each OpenFlow controller connection has a 16-bit identifier that is
* initially 0. This message changes the connection's ID to 'id'.
*
* Controller connection IDs need not be unique.
*
* The NXAST_CONTROLLER action is the only current user of controller
* connection IDs. */
'''
nx_controller_id = nstruct(
(uint8[6],), # /* Must be zero. */
(uint16, 'controller_id'), # /* New controller connection ID. */
base = nicira_header,
name = 'nx_controller_id',
criteria = lambda x: getattr(x, msg_subtype) == NXT_SET_CONTROLLER_ID,
init = packvalue(NXT_SET_CONTROLLER_ID, msg_subtype),
classifyby = (NXT_SET_CONTROLLER_ID,)
)
namespace['nx_controller_id'] = nx_controller_id
'''
/* Action structure for NXAST_CONTROLLER.
*
* This generalizes using OFPAT_OUTPUT to send a packet to OFPP_CONTROLLER. In
* addition to the 'max_len' that OFPAT_OUTPUT supports, it also allows
* specifying:
*
* - 'reason': The reason code to use in the ofp_packet_in or nx_packet_in.
*
* - 'controller_id': The ID of the controller connection to which the
* ofp_packet_in should be sent. The ofp_packet_in or nx_packet_in is
* sent only to controllers that have the specified controller connection
* ID. See "struct nx_controller_id" for more information. */
'''
nx_action_controller = nstruct(
(uint16, 'max_len'), # /* Maximum length to send to controller. */
(uint16, 'controller_id'), # /* Controller ID to send packet-in. */
(ofp_packet_in_reason, 'reason'), # /* enum ofp_packet_in_reason (OFPR_*). */
(uint8,),
base = nx_action,
name = 'nx_action_controller',
criteria = lambda x: getattr(x, action_subtype) == NXAST_CONTROLLER,
classifyby = (NXAST_CONTROLLER,),
init = packvalue(NXAST_CONTROLLER, action_subtype)
)
namespace['nx_action_controller'] = nx_action_controller
'''
/* Flow Table Monitoring
* =====================
*
* NXST_FLOW_MONITOR allows a controller to keep track of changes to OpenFlow
* flow table(s) or subsets of them, with the following workflow:
*
* 1. The controller sends an NXST_FLOW_MONITOR request to begin monitoring
* flows. The 'id' in the request must be unique among all monitors that
* the controller has started and not yet canceled on this OpenFlow
* connection.
*
* 2. The switch responds with an NXST_FLOW_MONITOR reply. If the request's
* 'flags' included NXFMF_INITIAL, the reply includes all the flows that
* matched the request at the time of the request (with event NXFME_ADDED).
* If 'flags' did not include NXFMF_INITIAL, the reply is empty.
*
* The reply uses the xid of the request (as do all replies to OpenFlow
* requests).
*
* 3. Whenever a change to a flow table entry matches some outstanding monitor
* request's criteria and flags, the switch sends a notification to the
* controller as an additional NXST_FLOW_MONITOR reply with xid 0.
*
* When multiple outstanding monitors match a single change, only a single
* notification is sent. This merged notification includes the information
* requested in any of the individual monitors. That is, if any of the
* matching monitors requests actions (NXFMF_ACTIONS), the notification
* includes actions, and if any of the monitors request full changes for the
* controller's own changes (NXFMF_OWN), the controller's own changes will
* be included in full.
*
* 4. The controller may cancel a monitor with NXT_FLOW_MONITOR_CANCEL. No
* further notifications will be sent on the basis of the canceled monitor
* afterward.
*
*
* Buffer Management
* =================
*
* OpenFlow messages for flow monitor notifications can overflow the buffer
* space available to the switch, either temporarily (e.g. due to network
* conditions slowing OpenFlow traffic) or more permanently (e.g. the sustained
* rate of flow table change exceeds the network bandwidth between switch and
* controller).
*
* When Open vSwitch's notification buffer space reaches a limiting threshold,
* OVS reacts as follows:
*
* 1. OVS sends an NXT_FLOW_MONITOR_PAUSED message to the controller, following
* all the already queued notifications. After it receives this message,
* the controller knows that its view of the flow table, as represented by
* flow monitor notifications, is incomplete.
*
* 2. As long as the notification buffer is not empty:
*
* - NXMFE_ADD and NXFME_MODIFIED notifications will not be sent.
*
* - NXFME_DELETED notifications will still be sent, but only for flows
* that existed before OVS sent NXT_FLOW_MONITOR_PAUSED.
*
* - NXFME_ABBREV notifications will not be sent. They are treated as
* the expanded version (and therefore only the NXFME_DELETED
* components, if any, are sent).
*
* 3. When the notification buffer empties, OVS sends NXFME_ADD notifications
* for flows added since the buffer reached its limit and NXFME_MODIFIED
* notifications for flows that existed before the limit was reached and
* changed after the limit was reached.
*
* 4. OVS sends an NXT_FLOW_MONITOR_RESUMED message to the controller. After
* it receives this message, the controller knows that its view of the flow
* table, as represented by flow monitor notifications, is again complete.
*
* This allows the maximum buffer space requirement for notifications to be
* bounded by the limit plus the maximum number of supported flows.
*
*
* "Flow Removed" messages
* =======================
*
* The flow monitor mechanism is independent of OFPT_FLOW_REMOVED and
* NXT_FLOW_REMOVED. Flow monitor updates for deletion are sent if
* NXFMF_DELETE is set on a monitor, regardless of whether the
* OFPFF_SEND_FLOW_REM flag was set when the flow was added. */
/* NXST_FLOW_MONITOR request.
*
* The NXST_FLOW_MONITOR request's body consists of an array of zero or more
* instances of this structure. The request arranges to monitor the flows
* that match the specified criteria, which are interpreted in the same way as
* for NXST_FLOW.
*
* 'id' identifies a particular monitor for the purpose of allowing it to be
* canceled later with NXT_FLOW_MONITOR_CANCEL. 'id' must be unique among
* existing monitors that have not already been canceled.
*
* The reply includes the initial flow matches for monitors that have the
* NXFMF_INITIAL flag set. No single flow will be included in the reply more
* than once, even if more than one requested monitor matches that flow. The
* reply will be empty if none of the monitors has NXFMF_INITIAL set or if none
* of the monitors initially matches any flows.
*
* For NXFMF_ADD, an event will be reported if 'out_port' matches against the
* actions of the flow being added or, for a flow that is replacing an existing
* flow, if 'out_port' matches against the actions of the flow being replaced.
* For NXFMF_DELETE, 'out_port' matches against the actions of a flow being
* deleted. For NXFMF_MODIFY, an event will be reported if 'out_port' matches
* either the old or the new actions. */
'''
ofp_table = namespace['ofp_table']
nx_flow_monitor_request = nstruct(
(uint32, 'id'), # /* Controller-assigned ID for this monitor. */
(nx_flow_monitor_flags, 'flags'), # /* NXFMF_*. */
(nx_port_no, 'out_port'), # /* Required output port, if not OFPP_NONE. */
(uint16, 'match_len'), # /* Length of nx_match. */
(ofp_table, 'table_id'), # /* One table's ID or 0xff for all tables. */
(uint8[5],), # /* Align to 64 bits (must be zero). */
(nx_matches,),
name = 'nx_flow_monitor_request',
base = nx_stats_request,
criteria = lambda x: getattr(x, stats_subtype) == NXST_FLOW_MONITOR,
init = packvalue(NXST_FLOW_MONITOR, stats_subtype),
classifyby = (NXST_FLOW_MONITOR,)
)
namespace['nx_flow_monitor_request'] = nx_flow_monitor_request
'''
/* NXST_FLOW_MONITOR reply header.
*
* The body of an NXST_FLOW_MONITOR reply is an array of variable-length
* structures, each of which begins with this header. The 'length' member may
* be used to traverse the array, and the 'event' member may be used to
* determine the particular structure.
*
* Every instance is a multiple of 8 bytes long. */
'''
nx_flow_update = nstruct(
(uint16, 'length'), #/* Length of this entry. */
(nx_flow_update_event, 'event'), # /* One of NXFME_*. */
name = 'nx_flow_update',
size = sizefromlen(65536, 'length'),
prepack = packsize('length')
)
namespace['nx_flow_update'] = nx_flow_update
'''
/* NXST_FLOW_MONITOR reply for NXFME_ADDED, NXFME_DELETED, and
* NXFME_MODIFIED. */
'''
nx_flow_update_full = nstruct(
(ofp_flow_removed_reason, 'reason'), # /* OFPRR_* for NXFME_DELETED, else zero. */
(uint16, 'priority'), # /* Priority of the entry. */
(uint16, 'idle_timeout'), # /* Number of seconds idle before expiration. */
(uint16, 'hard_timeout'), # /* Number of seconds before expiration. */
(uint16, 'match_len'), # /* Length of nx_match. */
(uint8, 'table_id'), # /* ID of flow's table. */
(uint8,), # /* Reserved, currently zeroed. */
(uint64, 'cookie'), # /* Opaque controller-issued identifier. */
#=======================================================================
# /* Followed by:
# * - Exactly match_len (possibly 0) bytes containing the nx_match, then
# * - Exactly (match_len + 7)/8*8 - match_len (between 0 and 7) bytes of
# * all-zero bytes, then
# * - Actions to fill out the remainder 'length' bytes (always a multiple
# * of 8). If NXFMF_ACTIONS was not specified, or 'event' is
# * NXFME_DELETED, no actions are included.
# */
#=======================================================================
(nx_matches,),
(ofp_action[0], 'actions'),
name = 'nx_flow_update_full',
base = nx_flow_update,
criteria = lambda x: x.event in (NXFME_ADDED, NXFME_DELETED, NXFME_MODIFIED),
init = packvalue(NXFME_ADDED, 'event')
)
namespace['nx_flow_update_full'] = nx_flow_update_full
'''
/* NXST_FLOW_MONITOR reply for NXFME_ABBREV.
*
* When the controller does not specify NXFMF_OWN in a monitor request, any
* flow tables changes due to the controller's own requests (on the same
* OpenFlow channel) will be abbreviated, when possible, to this form, which
* simply specifies the 'xid' of the OpenFlow request (e.g. an OFPT_FLOW_MOD or
* NXT_FLOW_MOD) that caused the change.
*
* Some changes cannot be abbreviated and will be sent in full:
*
* - Changes that only partially succeed. This can happen if, for example,
* a flow_mod with type OFPFC_MODIFY affects multiple flows, but only some
* of those modifications succeed (e.g. due to hardware limitations).
*
* This cannot occur with the current implementation of the Open vSwitch
* software datapath. It could happen with other datapath implementations.
*
* - Changes that race with conflicting changes made by other controllers or
* other flow_mods (not separated by barriers) by the same controller.
*
* This cannot occur with the current Open vSwitch implementation
* (regardless of datapath) because Open vSwitch internally serializes
* potentially conflicting changes.
*
* A flow_mod that does not change the flow table will not trigger any
* notification, even an abbreviated one. For example, a "modify" or "delete"
* flow_mod that does not match any flows will not trigger a notification.
* Whether an "add" or "modify" that specifies all the same parameters that a
* flow already has triggers a notification is unspecified and subject to
* change in future versions of Open vSwitch.
*
* OVS will always send the notifications for a given flow table change before
* the reply to a OFPT_BARRIER_REQUEST request that follows the flow table
* change. Thus, if the controller does not receive an abbreviated (or
* unabbreviated) notification for a flow_mod before the next
* OFPT_BARRIER_REPLY, it will never receive one. */
'''
nx_flow_update_abbrev = nstruct(
(uint32, 'xid'), # /* Controller-specified xid from flow_mod. */
name = 'nx_flow_update_abbrev',
base = nx_flow_update,
criteria = lambda x: x.event == NXFME_ABBREV,
init = packvalue(NXFME_ABBREV, 'event')
)
namespace['nx_flow_update_abbrev'] = nx_flow_update_abbrev
nx_flow_monitor_reply = nstruct(
(nx_flow_update[0], 'stats'),
base = nx_stats_reply,
classifyby = (NXST_FLOW_MONITOR,),
name = 'nx_flow_monitor_reply',
criteria = lambda x: getattr(x, stats_subtype) == NXST_FLOW_MONITOR,
init = packvalue(NXST_FLOW_MONITOR, stats_subtype)
)
namespace['nx_flow_monitor_reply'] = nx_flow_monitor_reply
'''
/* NXT_FLOW_MONITOR_CANCEL.
*
* Used by a controller to cancel an outstanding monitor. */
'''
nx_flow_monitor_cancel = nstruct(
(uint32, 'id'), # /* 'id' from nx_flow_monitor_request. */
name = 'nx_flow_monitor_cancel',
base = nicira_header,
classifyby = (NXT_FLOW_MONITOR_CANCEL,),
criteria = lambda x: getattr(x, msg_subtype) == NXT_FLOW_MONITOR_CANCEL,
init = packvalue(NXT_FLOW_MONITOR_CANCEL, msg_subtype)
)
namespace['nx_flow_monitor_cancel'] = nx_flow_monitor_cancel
'''
/* Action structure for NXAST_WRITE_METADATA.
*
* Modifies the 'mask' bits of the metadata value. */
'''
nx_action_write_metadata = nstruct(
(uint8[6],), # /* Must be zero. */
(uint64, 'metadata'), # /* Metadata register. */
(uint64, 'mask'), # /* Metadata mask. */
base = nx_action,
classifyby = (NXAST_WRITE_METADATA,),
criteria = lambda x: getattr(x, action_subtype) == NXAST_WRITE_METADATA,
init = packvalue(NXAST_WRITE_METADATA, action_subtype),
name = 'nx_action_write_metadata'
)
namespace['nx_action_write_metadata'] = nx_action_write_metadata
'''
/* Action structure for NXAST_PUSH_MPLS. */
'''
nx_action_push_mpls = nstruct(
(ethertype, 'ethertype'), # /* Ethertype */
(uint8[4],),
base = nx_action,
classifyby = (NXAST_PUSH_MPLS,),
criteria = lambda x: getattr(x, action_subtype) == NXAST_PUSH_MPLS,
init = packvalue(NXAST_PUSH_MPLS, action_subtype),
name = 'nx_action_push_mpls'
)
namespace['nx_action_push_mpls'] = nx_action_push_mpls
'''
/* Action structure for NXAST_POP_MPLS. */
'''
nx_action_pop_mpls = nstruct(
(ethertype, 'ethertype'), # /* Ethertype */
(uint8[4],),
base = nx_action,
classifyby = (NXAST_POP_MPLS,),
criteria = lambda x: getattr(x, action_subtype) == NXAST_POP_MPLS,
init = packvalue(NXAST_POP_MPLS, action_subtype),
name = 'nx_action_pop_mpls'
)
namespace['nx_action_pop_mpls'] = nx_action_pop_mpls
'''
/* Action structure for NXAST_SET_MPLS_LABEL. */
'''
nx_action_mpls_label = nstruct(
(uint8[2],), # /* Must be zero. */
(uint32, 'label'), # /* LABEL */
base = nx_action,
classifyby = (NXAST_SET_MPLS_LABEL,),
criteria = lambda x: getattr(x, action_subtype) == NXAST_SET_MPLS_LABEL,
init = packvalue(NXAST_SET_MPLS_LABEL, action_subtype),
name = 'nx_action_mpls_label'
)
namespace['nx_action_mpls_label'] = nx_action_mpls_label
'''
/* Action structure for NXAST_SET_MPLS_TC. */
'''
nx_action_mpls_tc = nstruct(
(uint8, 'tc'), # /* TC */
(uint8[5],),
base = nx_action,
classifyby = (NXAST_SET_MPLS_TC,),
criteria = lambda x: getattr(x, action_subtype) == NXAST_SET_MPLS_TC,
init = packvalue(NXAST_SET_MPLS_TC, action_subtype),
name = 'nx_action_mpls_tc'
)
namespace['nx_action_mpls_tc'] = nx_action_mpls_tc
'''
/* Action structure for NXAST_SET_MPLS_TTL. */
'''
nx_action_mpls_ttl = nstruct(
(uint8, 'ttl'), # /* TTL */
(uint8[5],),
base = nx_action,
classifyby = (NXAST_SET_MPLS_TTL,),
criteria = lambda x: getattr(x, action_subtype) == NXAST_SET_MPLS_TTL,
init = packvalue(NXAST_SET_MPLS_TTL, action_subtype),
name = 'nx_action_mpls_ttl'
)
namespace['nx_action_mpls_ttl'] = nx_action_mpls_ttl
'''
/* Action structure for NXAST_SAMPLE.
*
* Samples matching packets with the given probability and sends them
* each to the set of collectors identified with the given ID. The
* probability is expressed as a number of packets to be sampled out
* of USHRT_MAX packets, and must be >0.
*
* When sending packet samples to IPFIX collectors, the IPFIX flow
* record sent for each sampled packet is associated with the given
* observation domain ID and observation point ID. Each IPFIX flow
* record contain the sampled packet's headers when executing this
* rule. If a sampled packet's headers are modified by previous
* actions in the flow, those modified headers are sent. */
'''
nx_action_sample = nstruct(
(uint16, 'probability'), # /* Fraction of packets to sample. */
(uint32, 'collector_set_id'), # /* ID of collector set in OVSDB. */
(uint32, 'obs_domain_id'), # /* ID of sampling observation domain. */
(uint32, 'obs_point_id'), # /* ID of sampling observation point. */
base = nx_action,
classifyby = (NXAST_SAMPLE,),
criteria = lambda x: getattr(x, action_subtype) == NXAST_SAMPLE,
init = packvalue(NXAST_SAMPLE, action_subtype),
name = 'nx_action_sample'
)
namespace['nx_action_sample'] = nx_action_sample | [
"def",
"create_extension",
"(",
"namespace",
",",
"nicira_header",
",",
"nx_action",
",",
"nx_stats_request",
",",
"nx_stats_reply",
",",
"msg_subtype",
",",
"action_subtype",
",",
"stats_subtype",
")",
":",
"with",
"_warnings",
".",
"catch_warnings",
"(",
")",
":",
"_warnings",
".",
"filterwarnings",
"(",
"'ignore'",
",",
"'^padding'",
",",
"StructDefWarning",
")",
"nx_flow_mod_table_id",
"=",
"nstruct",
"(",
"(",
"uint8",
",",
"'set'",
")",
",",
"# /* Nonzero to enable, zero to disable. */",
"(",
"uint8",
"[",
"7",
"]",
",",
")",
",",
"name",
"=",
"'nx_flow_mod_table_id'",
",",
"base",
"=",
"nicira_header",
",",
"criteria",
"=",
"lambda",
"x",
":",
"getattr",
"(",
"x",
",",
"msg_subtype",
")",
"==",
"NXT_FLOW_MOD_TABLE_ID",
",",
"classifyby",
"=",
"(",
"NXT_FLOW_MOD_TABLE_ID",
",",
")",
",",
"init",
"=",
"packvalue",
"(",
"NXT_FLOW_MOD_TABLE_ID",
",",
"msg_subtype",
")",
")",
"namespace",
"[",
"'nx_flow_mod_table_id'",
"]",
"=",
"nx_flow_mod_table_id",
"'''\n /* NXT_SET_PACKET_IN_FORMAT request. */\n '''",
"nx_set_packet_in_format",
"=",
"nstruct",
"(",
"(",
"uint32",
",",
"'format'",
")",
",",
"# /* One of NXPIF_*. */",
"name",
"=",
"'nx_set_packet_in_format'",
",",
"base",
"=",
"nicira_header",
",",
"criteria",
"=",
"lambda",
"x",
":",
"getattr",
"(",
"x",
",",
"msg_subtype",
")",
"==",
"NXT_SET_PACKET_IN_FORMAT",
",",
"classifyby",
"=",
"(",
"NXT_SET_PACKET_IN_FORMAT",
",",
")",
",",
"init",
"=",
"packvalue",
"(",
"NXT_SET_PACKET_IN_FORMAT",
",",
"msg_subtype",
")",
")",
"namespace",
"[",
"'nx_set_packet_in_format'",
"]",
"=",
"nx_set_packet_in_format",
"'''\n /* NXT_PACKET_IN (analogous to OFPT_PACKET_IN).\n *\n * NXT_PACKET_IN is similar to the OpenFlow 1.2 OFPT_PACKET_IN. The\n * differences are:\n *\n * - NXT_PACKET_IN includes the cookie of the rule that triggered the\n * message. (OpenFlow 1.3 OFPT_PACKET_IN also includes the cookie.)\n *\n * - The metadata fields use NXM (instead of OXM) field numbers.\n *\n * Open vSwitch 1.9.0 and later omits metadata fields that are zero (as allowed\n * by OpenFlow 1.2). Earlier versions included all implemented metadata\n * fields.\n *\n * Open vSwitch does not include non-metadata in the nx_match, because by\n * definition that information can be found in the packet itself. The format\n * and the standards allow this, however, so controllers should be prepared to\n * tolerate future changes.\n *\n * The NXM format is convenient for reporting metadata values, but it is\n * important not to interpret the format as matching against a flow, because it\n * does not. Nothing is being matched; arbitrary metadata masks would not be\n * meaningful.\n *\n * Whereas in most cases a controller can expect to only get back NXM fields\n * that it set up itself (e.g. flow dumps will ordinarily report only NXM\n * fields from flows that the controller added), NXT_PACKET_IN messages might\n * contain fields that the controller does not understand, because the switch\n * might support fields (new registers, new protocols, etc.) that the\n * controller does not. The controller must prepared to tolerate these.\n *\n * The 'cookie' field has no meaning when 'reason' is OFPR_NO_MATCH. In this\n * case it should be UINT64_MAX. */\n '''",
"if",
"'ofp_oxm'",
"in",
"namespace",
":",
"nx_match",
"=",
"namespace",
"[",
"'ofp_oxm'",
"]",
"namespace",
"[",
"'nx_match'",
"]",
"=",
"nx_match",
"nx_match_mask",
"=",
"namespace",
"[",
"'ofp_oxm_mask'",
"]",
"namespace",
"[",
"'nx_match_mask'",
"]",
"=",
"nx_match_mask",
"nx_match_nomask",
"=",
"namespace",
"[",
"'ofp_oxm_nomask'",
"]",
"namespace",
"[",
"'nx_match_nomask'",
"]",
"=",
"nx_match_nomask",
"create_nxm",
"=",
"namespace",
"[",
"'create_oxm'",
"]",
"namespace",
"[",
"'create_nxm'",
"]",
"=",
"create_nxm",
"nx_match_nomask_ext",
"=",
"nstruct",
"(",
"base",
"=",
"nx_match_nomask",
",",
"criteria",
"=",
"lambda",
"x",
":",
"NXM_VENDOR",
"(",
"x",
".",
"header",
")",
"<=",
"1",
",",
"extend",
"=",
"{",
"'header'",
":",
"nxm_header",
"}",
",",
"name",
"=",
"'nx_match_nomask_ext'",
")",
"namespace",
"[",
"'nx_match_nomask_ext'",
"]",
"=",
"nx_match_nomask_ext",
"nx_match_mask_ext",
"=",
"nstruct",
"(",
"base",
"=",
"nx_match_mask",
",",
"criteria",
"=",
"lambda",
"x",
":",
"NXM_VENDOR",
"(",
"x",
".",
"header",
")",
"<=",
"1",
",",
"extend",
"=",
"{",
"'header'",
":",
"nxm_header",
"}",
",",
"name",
"=",
"'nx_match_mask_ext'",
")",
"namespace",
"[",
"'nx_match_mask_ext'",
"]",
"=",
"nx_match_mask_ext",
"else",
":",
"nx_match",
"=",
"nstruct",
"(",
"(",
"nxm_header",
",",
"'header'",
")",
",",
"name",
"=",
"'nx_match'",
",",
"padding",
"=",
"1",
",",
"size",
"=",
"lambda",
"x",
":",
"NXM_LENGTH",
"(",
"x",
".",
"header",
")",
"+",
"4",
")",
"namespace",
"[",
"'nx_match'",
"]",
"=",
"nx_match",
"nx_match_nomask",
"=",
"nstruct",
"(",
"(",
"raw",
",",
"'value'",
")",
",",
"base",
"=",
"nx_match",
",",
"criteria",
"=",
"lambda",
"x",
":",
"not",
"NXM_HASMASK",
"(",
"x",
".",
"header",
")",
",",
"init",
"=",
"packvalue",
"(",
"NXM_OF_IN_PORT",
",",
"'header'",
")",
",",
"name",
"=",
"'nx_match_nomask'",
")",
"namespace",
"[",
"'nx_match_nomask'",
"]",
"=",
"nx_match_nomask",
"_nxm_mask_value",
"=",
"nstruct",
"(",
"(",
"raw",
",",
"'value'",
")",
",",
"name",
"=",
"'nxm_mask_value'",
",",
"size",
"=",
"lambda",
"x",
":",
"NXM_LENGTH",
"(",
"x",
".",
"header",
")",
"//",
"2",
",",
"padding",
"=",
"1",
")",
"nx_match_mask",
"=",
"nstruct",
"(",
"(",
"_nxm_mask_value",
",",
")",
",",
"(",
"raw",
",",
"'mask'",
")",
",",
"base",
"=",
"nx_match",
",",
"criteria",
"=",
"lambda",
"x",
":",
"NXM_HASMASK",
"(",
"x",
".",
"header",
")",
",",
"init",
"=",
"packvalue",
"(",
"NXM_OF_ETH_SRC_W",
",",
"'header'",
")",
",",
"name",
"=",
"'nx_match_mask'",
",",
")",
"namespace",
"[",
"'nx_match_mask'",
"]",
"=",
"nx_match_mask",
"def",
"create_nxm",
"(",
"header",
",",
"value",
"=",
"None",
",",
"mask",
"=",
"None",
")",
":",
"if",
"NXM_HASMASK",
"(",
"header",
")",
":",
"nxm",
"=",
"nx_match_mask",
".",
"new",
"(",
")",
"size",
"=",
"NXM_LENGTH",
"(",
"header",
")",
"//",
"2",
"else",
":",
"nxm",
"=",
"nx_match_nomask",
".",
"new",
"(",
")",
"size",
"=",
"NXM_LENGTH",
"(",
"header",
")",
"nxm",
".",
"header",
"=",
"header",
"nxm",
".",
"value",
"=",
"common",
".",
"create_binary",
"(",
"value",
",",
"size",
")",
"if",
"NXM_HASMASK",
"(",
"header",
")",
":",
"nxm",
".",
"mask",
"=",
"common",
".",
"create_binary",
"(",
"mask",
",",
"size",
")",
"nxm",
".",
"_pack",
"(",
")",
"nxm",
".",
"_autosubclass",
"(",
")",
"return",
"nxm",
"namespace",
"[",
"'create_nxm'",
"]",
"=",
"create_nxm",
"nx_match_nomask_ext",
"=",
"nx_match_nomask",
"nx_match_mask_ext",
"=",
"nx_match_mask",
"namespace",
"[",
"'nx_match_nomask_ext'",
"]",
"=",
"nx_match_nomask_ext",
"namespace",
"[",
"'nx_match_mask_ext'",
"]",
"=",
"nx_match_mask_ext",
"from",
"namedstruct",
".",
"namedstruct",
"import",
"rawtype",
"as",
"_rawtype",
"import",
"socket",
"as",
"_socket",
"if",
"'ip4_addr_bytes'",
"in",
"namespace",
":",
"ip4_addr_bytes",
"=",
"namespace",
"[",
"'ip4_addr_bytes'",
"]",
"else",
":",
"ip4_addr_bytes",
"=",
"prim",
"(",
"'4s'",
",",
"'ip4_addr_bytes'",
")",
"ip4_addr_bytes",
".",
"formatter",
"=",
"lambda",
"x",
":",
"_socket",
".",
"inet_ntoa",
"(",
"x",
")",
"namespace",
"[",
"'ip4_addr_bytes'",
"]",
"=",
"ip4_addr_bytes",
"nxm_mask_ipv4",
"=",
"nstruct",
"(",
"name",
"=",
"'nxm_mask_ipv4'",
",",
"base",
"=",
"nx_match_mask_ext",
",",
"criteria",
"=",
"lambda",
"x",
":",
"x",
".",
"header",
"in",
"(",
"NXM_OF_IP_SRC_W",
",",
"NXM_OF_IP_DST_W",
",",
"NXM_OF_ARP_SPA_W",
",",
"NXM_OF_ARP_TPA_W",
",",
"NXM_NX_TUN_IPV4_SRC_W",
",",
"NXM_NX_TUN_IPV4_DST_W",
")",
",",
"init",
"=",
"packvalue",
"(",
"NXM_OF_IP_SRC_W",
",",
"'header'",
")",
",",
"extend",
"=",
"{",
"'value'",
":",
"ip4_addr_bytes",
",",
"'mask'",
":",
"ip4_addr_bytes",
"}",
")",
"namespace",
"[",
"'nxm_mask_ipv4'",
"]",
"=",
"nxm_mask_ipv4",
"nxm_nomask_ipv4",
"=",
"nstruct",
"(",
"name",
"=",
"'nxm_nomask_ipv4'",
",",
"base",
"=",
"nx_match_nomask_ext",
",",
"criteria",
"=",
"lambda",
"x",
":",
"x",
".",
"header",
"in",
"(",
"NXM_OF_IP_SRC",
",",
"NXM_OF_IP_DST",
",",
"NXM_OF_ARP_SPA",
",",
"NXM_OF_ARP_TPA",
",",
"NXM_NX_TUN_IPV4_SRC",
",",
"NXM_NX_TUN_IPV4_DST",
")",
",",
"init",
"=",
"packvalue",
"(",
"NXM_OF_IP_SRC",
",",
"'header'",
")",
",",
"extend",
"=",
"{",
"'value'",
":",
"ip4_addr_bytes",
"}",
")",
"namespace",
"[",
"'nxm_nomask_ipv4'",
"]",
"=",
"nxm_nomask_ipv4",
"if",
"'mac_addr_bytes'",
"in",
"namespace",
":",
"mac_addr_bytes",
"=",
"namespace",
"[",
"'mac_addr_bytes'",
"]",
"else",
":",
"mac_addr_bytes",
"=",
"_rawtype",
"(",
")",
"mac_addr_bytes",
".",
"formatter",
"=",
"lambda",
"x",
":",
"':'",
".",
"join",
"(",
"'%02X'",
"%",
"(",
"c",
",",
")",
"for",
"c",
"in",
"bytearray",
"(",
"x",
")",
")",
"namespace",
"[",
"'mac_addr_bytes'",
"]",
"=",
"mac_addr_bytes",
"nxm_mask_eth",
"=",
"nstruct",
"(",
"name",
"=",
"'nxm_mask_eth'",
",",
"base",
"=",
"nx_match_mask_ext",
",",
"criteria",
"=",
"lambda",
"x",
":",
"x",
".",
"header",
"in",
"(",
"NXM_OF_ETH_SRC_W",
",",
"NXM_OF_ETH_DST_W",
")",
",",
"init",
"=",
"packvalue",
"(",
"NXM_OF_ETH_SRC_W",
",",
"'header'",
")",
",",
"extend",
"=",
"{",
"'value'",
":",
"mac_addr_bytes",
",",
"'mask'",
":",
"mac_addr_bytes",
"}",
")",
"namespace",
"[",
"'nxm_mask_eth'",
"]",
"=",
"nxm_mask_eth",
"nxm_nomask_eth",
"=",
"nstruct",
"(",
"name",
"=",
"'nxm_nomask_eth'",
",",
"base",
"=",
"nx_match_nomask_ext",
",",
"criteria",
"=",
"lambda",
"x",
":",
"x",
".",
"header",
"in",
"(",
"NXM_OF_ETH_SRC",
",",
"NXM_OF_ETH_DST",
",",
"NXM_NX_ND_SLL",
",",
"NXM_NX_ND_TLL",
",",
"NXM_NX_ARP_SHA",
",",
"NXM_NX_ARP_THA",
")",
",",
"init",
"=",
"packvalue",
"(",
"NXM_OF_ETH_SRC",
",",
"'header'",
")",
",",
"extend",
"=",
"{",
"'value'",
":",
"mac_addr_bytes",
"}",
")",
"namespace",
"[",
"'nxm_nomask_eth'",
"]",
"=",
"nxm_nomask_eth",
"ofp_port_no",
"=",
"namespace",
"[",
"'ofp_port_no'",
"]",
"nx_port_no",
"=",
"enum",
"(",
"'nx_port_no'",
",",
"None",
",",
"uint16",
",",
"*",
"*",
"dict",
"(",
"(",
"k",
",",
"v",
"&",
"0xffff",
")",
"for",
"k",
",",
"v",
"in",
"ofp_port_no",
".",
"getDict",
"(",
")",
".",
"items",
"(",
")",
")",
")",
"nxm_port_no_raw",
"=",
"_rawtype",
"(",
")",
"nxm_port_no_raw",
".",
"formatter",
"=",
"lambda",
"x",
":",
"nx_port_no",
".",
"formatter",
"(",
"nx_port_no",
".",
"parse",
"(",
"x",
")",
"[",
"0",
"]",
")",
"namespace",
"[",
"'nx_port_no'",
"]",
"=",
"nx_port_no",
"namespace",
"[",
"'nxm_port_no_raw'",
"]",
"=",
"nxm_port_no_raw",
"nxm_nomask_port",
"=",
"nstruct",
"(",
"name",
"=",
"'nxm_nomask_port'",
",",
"base",
"=",
"nx_match_nomask_ext",
",",
"criteria",
"=",
"lambda",
"x",
":",
"x",
".",
"header",
"==",
"NXM_OF_IN_PORT",
",",
"init",
"=",
"packvalue",
"(",
"NXM_OF_IN_PORT",
",",
"'header'",
")",
",",
"extend",
"=",
"{",
"'value'",
":",
"nxm_port_no_raw",
"}",
")",
"namespace",
"[",
"'nxm_nomask_port'",
"]",
"=",
"nxm_nomask_port",
"if",
"'ethtype_raw'",
"in",
"namespace",
":",
"ethtype_raw",
"=",
"namespace",
"[",
"'ethtype_raw'",
"]",
"else",
":",
"ethtype_raw",
"=",
"_rawtype",
"(",
")",
"ethtype_raw",
".",
"formatter",
"=",
"lambda",
"x",
":",
"ethertype",
".",
"formatter",
"(",
"ethertype",
".",
"parse",
"(",
"x",
")",
"[",
"0",
"]",
")",
"namespace",
"[",
"'ethtype_raw'",
"]",
"=",
"ethtype_raw",
"nxm_nomask_ethertype",
"=",
"nstruct",
"(",
"name",
"=",
"'nxm_nomask_ethertype'",
",",
"base",
"=",
"nx_match_nomask_ext",
",",
"criteria",
"=",
"lambda",
"x",
":",
"x",
".",
"header",
"==",
"NXM_OF_ETH_TYPE",
",",
"init",
"=",
"packvalue",
"(",
"NXM_OF_ETH_TYPE",
",",
"'header'",
")",
",",
"extend",
"=",
"{",
"'value'",
":",
"ethtype_raw",
"}",
")",
"namespace",
"[",
"'nxm_nomask_ethertype'",
"]",
"=",
"nxm_nomask_ethertype",
"if",
"'arpop_raw'",
"in",
"namespace",
":",
"arpop_raw",
"=",
"namespace",
"[",
"'arpop_raw'",
"]",
"else",
":",
"arpop_raw",
"=",
"_rawtype",
"(",
")",
"arpop_raw",
".",
"formatter",
"=",
"lambda",
"x",
":",
"arp_op_code",
".",
"formatter",
"(",
"arp_op_code",
".",
"parse",
"(",
"x",
")",
"[",
"0",
"]",
")",
"namespace",
"[",
"'arpop_raw'",
"]",
"=",
"arpop_raw",
"nxm_nomask_arpopcode",
"=",
"nstruct",
"(",
"name",
"=",
"'nxm_nomask_arpopcode'",
",",
"base",
"=",
"nx_match_nomask_ext",
",",
"criteria",
"=",
"lambda",
"x",
":",
"x",
".",
"header",
"==",
"NXM_OF_ARP_OP",
",",
"init",
"=",
"packvalue",
"(",
"NXM_OF_ARP_OP",
",",
"'header'",
")",
",",
"extend",
"=",
"{",
"'value'",
":",
"arpop_raw",
"}",
")",
"namespace",
"[",
"'nxm_nomask_arpopcode'",
"]",
"=",
"nxm_nomask_arpopcode",
"if",
"'ip_protocol_raw'",
"in",
"namespace",
":",
"ip_protocol_raw",
"=",
"namespace",
"[",
"'ip_protocol_raw'",
"]",
"else",
":",
"ip_protocol_raw",
"=",
"_rawtype",
"(",
")",
"ip_protocol_raw",
".",
"formatter",
"=",
"lambda",
"x",
":",
"ip_protocol",
".",
"formatter",
"(",
"ip_protocol",
".",
"parse",
"(",
"x",
")",
"[",
"0",
"]",
")",
"namespace",
"[",
"'ip_protocol_raw'",
"]",
"=",
"ip_protocol_raw",
"nxm_nomask_ip_protocol",
"=",
"nstruct",
"(",
"name",
"=",
"'nxm_nomask_ip_protocol'",
",",
"base",
"=",
"nx_match_nomask_ext",
",",
"criteria",
"=",
"lambda",
"x",
":",
"x",
".",
"header",
"==",
"NXM_OF_IP_PROTO",
",",
"init",
"=",
"packvalue",
"(",
"NXM_OF_IP_PROTO",
",",
"'header'",
")",
",",
"extend",
"=",
"{",
"'value'",
":",
"ip_protocol_raw",
"}",
")",
"namespace",
"[",
"'nxm_nomask_ip_protocol'",
"]",
"=",
"nxm_nomask_ip_protocol",
"if",
"'ip6_addr_bytes'",
"in",
"namespace",
":",
"nxm_nomask_ipv6",
"=",
"nstruct",
"(",
"name",
"=",
"'nxm_nomask_ipv6'",
",",
"base",
"=",
"nx_match_nomask_ext",
",",
"criteria",
"=",
"lambda",
"x",
":",
"x",
".",
"header",
"in",
"(",
"NXM_NX_IPV6_SRC",
",",
"NXM_NX_IPV6_DST",
",",
"NXM_NX_ND_TARGET",
")",
",",
"init",
"=",
"packvalue",
"(",
"NXM_NX_IPV6_SRC",
",",
"'header'",
")",
",",
"extend",
"=",
"{",
"'value'",
":",
"ip6_addr_bytes",
"}",
")",
"namespace",
"[",
"'nxm_nomask_ipv6'",
"]",
"=",
"nxm_nomask_ipv6",
"nxm_mask_ipv6",
"=",
"nstruct",
"(",
"name",
"=",
"'nxm_mask_ipv6'",
",",
"base",
"=",
"nx_match_mask_ext",
",",
"criteria",
"=",
"lambda",
"x",
":",
"x",
".",
"header",
"in",
"(",
"NXM_NX_IPV6_SRC_W",
",",
"NXM_NX_IPV6_DST_W",
")",
",",
"init",
"=",
"packvalue",
"(",
"NXM_NX_IPV6_SRC_W",
",",
"'header'",
")",
",",
"extend",
"=",
"{",
"'value'",
":",
"ip6_addr_bytes",
",",
"'mask'",
":",
"ip6_addr_bytes",
"}",
")",
"namespace",
"[",
"'nxm_mask_ipv6'",
"]",
"=",
"nxm_mask_ipv6",
"nx_ip_frag_raw",
"=",
"_rawtype",
"(",
")",
"nx_ip_frag_raw",
".",
"formatter",
"=",
"lambda",
"x",
":",
"nx_ip_frag",
".",
"formatter",
"(",
"nx_ip_frag",
".",
"parse",
"(",
"x",
")",
"[",
"0",
"]",
")",
"nxm_nomask_ipfrag",
"=",
"nstruct",
"(",
"name",
"=",
"'nxm_nomask_ipfrag'",
",",
"base",
"=",
"nx_match_nomask_ext",
",",
"criteria",
"=",
"lambda",
"x",
":",
"x",
".",
"header",
"==",
"NXM_NX_IP_FRAG",
",",
"init",
"=",
"packvalue",
"(",
"NXM_NX_IP_FRAG",
",",
"'header'",
")",
",",
"extend",
"=",
"{",
"'value'",
":",
"nx_ip_frag_raw",
"}",
")",
"namespace",
"[",
"'nxm_nomask_ipfrag'",
"]",
"=",
"nxm_nomask_ipfrag",
"nxm_mask_ipfrag",
"=",
"nstruct",
"(",
"name",
"=",
"'nxm_mask_ipfrag'",
",",
"base",
"=",
"nx_match_mask_ext",
",",
"criteria",
"=",
"lambda",
"x",
":",
"x",
".",
"header",
"==",
"NXM_NX_IP_FRAG_W",
",",
"init",
"=",
"packvalue",
"(",
"NXM_NX_IP_FRAG_W",
",",
"'header'",
")",
",",
"extend",
"=",
"{",
"'value'",
":",
"nx_ip_frag_raw",
",",
"'mask'",
":",
"nx_ip_frag_raw",
"}",
")",
"namespace",
"[",
"'nxm_mask_ipfrag'",
"]",
"=",
"nxm_mask_ipfrag",
"nx_matches",
"=",
"nstruct",
"(",
"(",
"nx_match",
"[",
"0",
"]",
",",
"'matches'",
")",
",",
"name",
"=",
"'nx_matches'",
",",
"size",
"=",
"sizefromlen",
"(",
"65536",
",",
"'match_len'",
")",
",",
"prepack",
"=",
"packrealsize",
"(",
"'match_len'",
")",
",",
"padding",
"=",
"8",
")",
"namespace",
"[",
"'nx_matches'",
"]",
"=",
"nx_matches",
"nx_packet_in",
"=",
"nstruct",
"(",
"(",
"uint32",
",",
"'buffer_id'",
")",
",",
"# /* ID assigned by datapath. */",
"(",
"uint16",
",",
"'total_len'",
")",
",",
"# /* Full length of frame. */",
"(",
"uint8",
",",
"'reason'",
")",
",",
"# /* Reason packet is sent (one of OFPR_*). */",
"(",
"uint8",
",",
"'table_id'",
")",
",",
"# /* ID of the table that was looked up. */",
"(",
"uint64",
",",
"'cookie'",
")",
",",
"# /* Cookie of the rule that was looked up. */",
"(",
"uint16",
",",
"'match_len'",
")",
",",
"# /* Size of nx_match. */",
"(",
"uint8",
"[",
"6",
"]",
",",
")",
",",
"# /* Align to 64-bits. */",
"(",
"nx_matches",
",",
")",
",",
"(",
"uint8",
"[",
"2",
"]",
",",
")",
",",
"(",
"raw",
",",
"'data'",
")",
",",
"name",
"=",
"'nx_packet_in'",
",",
"base",
"=",
"nicira_header",
",",
"classifyby",
"=",
"(",
"NXT_PACKET_IN",
",",
")",
",",
"criteria",
"=",
"lambda",
"x",
":",
"getattr",
"(",
"x",
",",
"msg_subtype",
")",
"==",
"NXT_PACKET_IN",
",",
"init",
"=",
"packvalue",
"(",
"NXT_PACKET_IN",
",",
"msg_subtype",
")",
")",
"namespace",
"[",
"'nx_packet_in'",
"]",
"=",
"nx_packet_in",
"'''\n /* Configures the \"role\" of the sending controller. The default role is:\n *\n * - Other (NX_ROLE_OTHER), which allows the controller access to all\n * OpenFlow features.\n *\n * The other possible roles are a related pair:\n *\n * - Master (NX_ROLE_MASTER) is equivalent to Other, except that there may\n * be at most one Master controller at a time: when a controller\n * configures itself as Master, any existing Master is demoted to the\n * Slave role.\n *\n * - Slave (NX_ROLE_SLAVE) allows the controller read-only access to\n * OpenFlow features. In particular attempts to modify the flow table\n * will be rejected with an OFPBRC_EPERM error.\n *\n * Slave controllers do not receive OFPT_PACKET_IN or OFPT_FLOW_REMOVED\n * messages, but they do receive OFPT_PORT_STATUS messages.\n */\n '''",
"nx_role_request",
"=",
"nstruct",
"(",
"(",
"nx_role",
",",
"'role'",
")",
",",
"# /* One of NX_ROLE_*. */",
"name",
"=",
"'nx_role_request'",
",",
"base",
"=",
"nicira_header",
",",
"classifyby",
"=",
"(",
"NXT_ROLE_REQUEST",
",",
"NXT_ROLE_REPLY",
")",
",",
"criteria",
"=",
"lambda",
"x",
":",
"getattr",
"(",
"x",
",",
"msg_subtype",
")",
"==",
"NXT_ROLE_REQUEST",
"or",
"getattr",
"(",
"x",
",",
"msg_subtype",
")",
"==",
"NXT_ROLE_REPLY",
",",
"init",
"=",
"packvalue",
"(",
"NXT_ROLE_REQUEST",
",",
"msg_subtype",
")",
")",
"namespace",
"[",
"'nx_role_request'",
"]",
"=",
"nx_role_request",
"'''\n /* NXT_SET_ASYNC_CONFIG.\n *\n * Sent by a controller, this message configures the asynchronous messages that\n * the controller wants to receive. Element 0 in each array specifies messages\n * of interest when the controller has an \"other\" or \"master\" role; element 1,\n * when the controller has a \"slave\" role.\n *\n * Each array element is a bitmask in which a 0-bit disables receiving a\n * particular message and a 1-bit enables receiving it. Each bit controls the\n * message whose 'reason' corresponds to the bit index. For example, the bit\n * with value 1<<2 == 4 in port_status_mask[1] determines whether the\n * controller will receive OFPT_PORT_STATUS messages with reason OFPPR_MODIFY\n * (value 2) when the controller has a \"slave\" role.\n *\n * As a side effect, for service controllers, this message changes the\n * miss_send_len from default of zero to OFP_DEFAULT_MISS_SEND_LEN (128).\n */\n '''",
"ofp_packet_in_reason",
"=",
"namespace",
"[",
"'ofp_packet_in_reason'",
"]",
"if",
"'ofp_packet_in_reason_bitwise'",
"in",
"namespace",
":",
"ofp_packet_in_reason_bitwise",
"=",
"namespace",
"[",
"'ofp_packet_in_reason_bitwise'",
"]",
"else",
":",
"ofp_packet_in_reason_bitwise",
"=",
"enum",
"(",
"'ofp_packet_in_reason_bitwise'",
",",
"None",
",",
"uint32",
",",
"*",
"*",
"dict",
"(",
"(",
"k",
",",
"1",
"<<",
"v",
")",
"for",
"k",
",",
"v",
"in",
"ofp_packet_in_reason",
".",
"getDict",
"(",
")",
".",
"items",
"(",
")",
")",
")",
"namespace",
"[",
"'ofp_packet_in_reason_bitwise'",
"]",
"=",
"ofp_packet_in_reason_bitwise",
"ofp_port_reason",
"=",
"namespace",
"[",
"'ofp_port_reason'",
"]",
"if",
"'ofp_port_reason_bitwise'",
"in",
"namespace",
":",
"ofp_port_reason_bitwise",
"=",
"namespace",
"[",
"'ofp_port_reason_bitwise'",
"]",
"else",
":",
"ofp_port_reason_bitwise",
"=",
"enum",
"(",
"'ofp_port_reason_bitwise'",
",",
"None",
",",
"uint32",
",",
"*",
"*",
"dict",
"(",
"(",
"k",
",",
"1",
"<<",
"v",
")",
"for",
"k",
",",
"v",
"in",
"ofp_port_reason",
".",
"getDict",
"(",
")",
".",
"items",
"(",
")",
")",
")",
"namespace",
"[",
"'ofp_port_reason_bitwise'",
"]",
"=",
"ofp_port_reason_bitwise",
"ofp_flow_removed_reason",
"=",
"namespace",
"[",
"'ofp_flow_removed_reason'",
"]",
"if",
"'ofp_flow_removed_reason_bitwise'",
"in",
"namespace",
":",
"ofp_flow_removed_reason_bitwise",
"=",
"namespace",
"[",
"'ofp_flow_removed_reason_bitwise'",
"]",
"else",
":",
"ofp_flow_removed_reason_bitwise",
"=",
"enum",
"(",
"'ofp_flow_removed_reason_bitwise'",
",",
"None",
",",
"uint32",
",",
"*",
"*",
"dict",
"(",
"(",
"k",
",",
"1",
"<<",
"v",
")",
"for",
"k",
",",
"v",
"in",
"ofp_flow_removed_reason",
".",
"getDict",
"(",
")",
".",
"items",
"(",
")",
")",
")",
"namespace",
"[",
"'ofp_flow_removed_reason_bitwise'",
"]",
"=",
"ofp_flow_removed_reason_bitwise",
"nx_async_config",
"=",
"nstruct",
"(",
"(",
"ofp_packet_in_reason_bitwise",
"[",
"2",
"]",
",",
"'packet_in_mask'",
")",
",",
"# /* Bitmasks of OFPR_* values. */",
"(",
"ofp_port_reason_bitwise",
"[",
"2",
"]",
",",
"'port_status_mask'",
")",
",",
"# /* Bitmasks of OFPRR_* values. */",
"(",
"ofp_flow_removed_reason_bitwise",
"[",
"2",
"]",
",",
"'flow_removed_mask'",
")",
",",
"#/* Bitmasks of OFPPR_* values. */",
"name",
"=",
"'nx_async_config'",
",",
"base",
"=",
"nicira_header",
",",
"classifyby",
"=",
"(",
"NXT_SET_ASYNC_CONFIG",
",",
")",
",",
"criteria",
"=",
"lambda",
"x",
":",
"getattr",
"(",
"x",
",",
"msg_subtype",
")",
"==",
"NXT_SET_ASYNC_CONFIG",
",",
"init",
"=",
"packvalue",
"(",
"NXT_SET_ASYNC_CONFIG",
",",
"msg_subtype",
")",
")",
"namespace",
"[",
"'nx_async_config'",
"]",
"=",
"nx_async_config",
"'''\n /* Nicira vendor flow actions. */\n '''",
"'''\n /* Action structures for NXAST_RESUBMIT and NXAST_RESUBMIT_TABLE.\n *\n * These actions search one of the switch's flow tables:\n *\n * - For NXAST_RESUBMIT_TABLE only, if the 'table' member is not 255, then\n * it specifies the table to search.\n *\n * - Otherwise (for NXAST_RESUBMIT_TABLE with a 'table' of 255, or for\n * NXAST_RESUBMIT regardless of 'table'), it searches the current flow\n * table, that is, the OpenFlow flow table that contains the flow from\n * which this action was obtained. If this action did not come from a\n * flow table (e.g. it came from an OFPT_PACKET_OUT message), then table 0\n * is the current table.\n *\n * The flow table lookup uses a flow that may be slightly modified from the\n * original lookup:\n *\n * - For NXAST_RESUBMIT, the 'in_port' member of struct nx_action_resubmit\n * is used as the flow's in_port.\n *\n * - For NXAST_RESUBMIT_TABLE, if the 'in_port' member is not OFPP_IN_PORT,\n * then its value is used as the flow's in_port. Otherwise, the original\n * in_port is used.\n *\n * - If actions that modify the flow (e.g. OFPAT_SET_VLAN_VID) precede the\n * resubmit action, then the flow is updated with the new values.\n *\n * Following the lookup, the original in_port is restored.\n *\n * If the modified flow matched in the flow table, then the corresponding\n * actions are executed. Afterward, actions following the resubmit in the\n * original set of actions, if any, are executed; any changes made to the\n * packet (e.g. changes to VLAN) by secondary actions persist when those\n * actions are executed, although the original in_port is restored.\n *\n * Resubmit actions may be used any number of times within a set of actions.\n *\n * Resubmit actions may nest to an implementation-defined depth. Beyond this\n * implementation-defined depth, further resubmit actions are simply ignored.\n *\n * NXAST_RESUBMIT ignores 'table' and 'pad'. NXAST_RESUBMIT_TABLE requires\n * 'pad' to be all-bits-zero.\n *\n * Open vSwitch 1.0.1 and earlier did not support recursion. Open vSwitch\n * before 1.2.90 did not support NXAST_RESUBMIT_TABLE.\n */\n '''",
"nx_action_resubmit",
"=",
"nstruct",
"(",
"(",
"nx_port_no",
",",
"'in_port'",
")",
",",
"# /* New in_port for checking flow table. */",
"(",
"uint8",
",",
"'table'",
")",
",",
"# /* NXAST_RESUBMIT_TABLE: table to use. */",
"(",
"uint8",
"[",
"3",
"]",
",",
")",
",",
"base",
"=",
"nx_action",
",",
"criteria",
"=",
"lambda",
"x",
":",
"getattr",
"(",
"x",
",",
"action_subtype",
")",
"==",
"NXAST_RESUBMIT_TABLE",
"or",
"getattr",
"(",
"x",
",",
"action_subtype",
")",
"==",
"NXAST_RESUBMIT",
",",
"classifyby",
"=",
"(",
"NXAST_RESUBMIT_TABLE",
",",
"NXAST_RESUBMIT",
")",
",",
"name",
"=",
"'nx_action_resubmit'",
",",
"init",
"=",
"packvalue",
"(",
"NXAST_RESUBMIT_TABLE",
",",
"action_subtype",
")",
")",
"namespace",
"[",
"'nx_action_resubmit'",
"]",
"=",
"nx_action_resubmit",
"'''\n /* Action structure for NXAST_SET_TUNNEL.\n *\n * Sets the encapsulating tunnel ID to a 32-bit value. The most-significant 32\n * bits of the tunnel ID are set to 0. */\n '''",
"nx_action_set_tunnel",
"=",
"nstruct",
"(",
"(",
"uint8",
"[",
"2",
"]",
",",
")",
",",
"(",
"uint32",
",",
"'tun_id'",
")",
",",
"# /* Tunnel ID. */",
"name",
"=",
"'nx_action_set_tunnel'",
",",
"base",
"=",
"nx_action",
",",
"classifyby",
"=",
"(",
"NXAST_SET_TUNNEL",
",",
")",
",",
"criteria",
"=",
"lambda",
"x",
":",
"getattr",
"(",
"x",
",",
"action_subtype",
")",
"==",
"NXAST_SET_TUNNEL",
",",
"init",
"=",
"packvalue",
"(",
"NXAST_SET_TUNNEL",
",",
"action_subtype",
")",
")",
"namespace",
"[",
"'nx_action_set_tunnel'",
"]",
"=",
"nx_action_set_tunnel",
"'''\n /* Action structure for NXAST_SET_TUNNEL64.\n *\n * Sets the encapsulating tunnel ID to a 64-bit value. */\n '''",
"nx_action_set_tunnel64",
"=",
"nstruct",
"(",
"(",
"uint8",
"[",
"6",
"]",
",",
")",
",",
"(",
"uint64",
",",
"'tun_id'",
")",
",",
"# /* Tunnel ID. */",
"name",
"=",
"'nx_action_set_tunnel64'",
",",
"base",
"=",
"nx_action",
",",
"classifyby",
"=",
"(",
"NXAST_SET_TUNNEL64",
",",
")",
",",
"criteria",
"=",
"lambda",
"x",
":",
"getattr",
"(",
"x",
",",
"action_subtype",
")",
"==",
"NXAST_SET_TUNNEL64",
",",
"init",
"=",
"packvalue",
"(",
"NXAST_SET_TUNNEL64",
",",
"action_subtype",
")",
")",
"namespace",
"[",
"'nx_action_set_tunnel64'",
"]",
"=",
"nx_action_set_tunnel64",
"'''\n /* Action structure for NXAST_SET_QUEUE.\n *\n * Set the queue that should be used when packets are output. This is similar\n * to the OpenFlow OFPAT_ENQUEUE action, but does not take the output port as\n * an argument. This allows the queue to be defined before the port is\n * known. */\n '''",
"nx_action_set_queue",
"=",
"nstruct",
"(",
"(",
"uint8",
"[",
"2",
"]",
",",
")",
",",
"(",
"uint32",
",",
"'queue_id'",
")",
",",
"# /* Where to enqueue packets. */",
"name",
"=",
"'nx_action_set_queue'",
",",
"base",
"=",
"nx_action",
",",
"classifyby",
"=",
"(",
"NXAST_SET_QUEUE",
",",
")",
",",
"criteria",
"=",
"lambda",
"x",
":",
"getattr",
"(",
"x",
",",
"action_subtype",
")",
"==",
"NXAST_SET_QUEUE",
",",
"init",
"=",
"packvalue",
"(",
"NXAST_SET_QUEUE",
",",
"action_subtype",
")",
")",
"namespace",
"[",
"'nx_action_set_queue'",
"]",
"=",
"nx_action_set_queue",
"'''\n /* Action structure for NXAST_POP_QUEUE.\n *\n * Restores the queue to the value it was before any NXAST_SET_QUEUE actions\n * were used. Only the original queue can be restored this way; no stack is\n * maintained. */\n '''",
"nx_action_pop_queue",
"=",
"nstruct",
"(",
"(",
"uint8",
"[",
"6",
"]",
",",
")",
",",
"name",
"=",
"'nx_action_pop_queue'",
",",
"base",
"=",
"nx_action",
",",
"classifyby",
"=",
"(",
"NXAST_POP_QUEUE",
",",
")",
",",
"criteria",
"=",
"lambda",
"x",
":",
"getattr",
"(",
"x",
",",
"action_subtype",
")",
"==",
"NXAST_POP_QUEUE",
",",
"init",
"=",
"packvalue",
"(",
"NXAST_POP_QUEUE",
",",
"action_subtype",
")",
")",
"namespace",
"[",
"'nx_action_pop_queue'",
"]",
"=",
"nx_action_pop_queue",
"'''\n /* Action structure for NXAST_REG_MOVE.\n *\n * Copies src[src_ofs:src_ofs+n_bits] to dst[dst_ofs:dst_ofs+n_bits], where\n * a[b:c] denotes the bits within 'a' numbered 'b' through 'c' (not including\n * bit 'c'). Bit numbering starts at 0 for the least-significant bit, 1 for\n * the next most significant bit, and so on.\n *\n * 'src' and 'dst' are nxm_header values with nxm_hasmask=0. (It doesn't make\n * sense to use nxm_hasmask=1 because the action does not do any kind of\n * matching; it uses the actual value of a field.)\n *\n * The following nxm_header values are potentially acceptable as 'src':\n *\n * - NXM_OF_IN_PORT\n * - NXM_OF_ETH_DST\n * - NXM_OF_ETH_SRC\n * - NXM_OF_ETH_TYPE\n * - NXM_OF_VLAN_TCI\n * - NXM_OF_IP_TOS\n * - NXM_OF_IP_PROTO\n * - NXM_OF_IP_SRC\n * - NXM_OF_IP_DST\n * - NXM_OF_TCP_SRC\n * - NXM_OF_TCP_DST\n * - NXM_OF_UDP_SRC\n * - NXM_OF_UDP_DST\n * - NXM_OF_ICMP_TYPE\n * - NXM_OF_ICMP_CODE\n * - NXM_OF_ARP_OP\n * - NXM_OF_ARP_SPA\n * - NXM_OF_ARP_TPA\n * - NXM_NX_TUN_ID\n * - NXM_NX_ARP_SHA\n * - NXM_NX_ARP_THA\n * - NXM_NX_ICMPV6_TYPE\n * - NXM_NX_ICMPV6_CODE\n * - NXM_NX_ND_SLL\n * - NXM_NX_ND_TLL\n * - NXM_NX_REG(idx) for idx in the switch's accepted range.\n * - NXM_NX_PKT_MARK\n * - NXM_NX_TUN_IPV4_SRC\n * - NXM_NX_TUN_IPV4_DST\n *\n * The following nxm_header values are potentially acceptable as 'dst':\n *\n * - NXM_OF_ETH_DST\n * - NXM_OF_ETH_SRC\n * - NXM_OF_IP_TOS\n * - NXM_OF_IP_SRC\n * - NXM_OF_IP_DST\n * - NXM_OF_TCP_SRC\n * - NXM_OF_TCP_DST\n * - NXM_OF_UDP_SRC\n * - NXM_OF_UDP_DST\n * - NXM_NX_ARP_SHA\n * - NXM_NX_ARP_THA\n * - NXM_OF_ARP_OP\n * - NXM_OF_ARP_SPA\n * - NXM_OF_ARP_TPA\n * Modifying any of the above fields changes the corresponding packet\n * header.\n *\n * - NXM_OF_IN_PORT\n *\n * - NXM_NX_REG(idx) for idx in the switch's accepted range.\n *\n * - NXM_NX_PKT_MARK\n *\n * - NXM_OF_VLAN_TCI. Modifying this field's value has side effects on the\n * packet's 802.1Q header. Setting a value with CFI=0 removes the 802.1Q\n * header (if any), ignoring the other bits. Setting a value with CFI=1\n * adds or modifies the 802.1Q header appropriately, setting the TCI field\n * to the field's new value (with the CFI bit masked out).\n *\n * - NXM_NX_TUN_ID, NXM_NX_TUN_IPV4_SRC, NXM_NX_TUN_IPV4_DST. Modifying\n * any of these values modifies the corresponding tunnel header field used\n * for the packet's next tunnel encapsulation, if allowed by the\n * configuration of the output tunnel port.\n *\n * A given nxm_header value may be used as 'src' or 'dst' only on a flow whose\n * nx_match satisfies its prerequisites. For example, NXM_OF_IP_TOS may be\n * used only if the flow's nx_match includes an nxm_entry that specifies\n * nxm_type=NXM_OF_ETH_TYPE, nxm_hasmask=0, and nxm_value=0x0800.\n *\n * The switch will reject actions for which src_ofs+n_bits is greater than the\n * width of 'src' or dst_ofs+n_bits is greater than the width of 'dst' with\n * error type OFPET_BAD_ACTION, code OFPBAC_BAD_ARGUMENT.\n *\n * This action behaves properly when 'src' overlaps with 'dst', that is, it\n * behaves as if 'src' were copied out to a temporary buffer, then the\n * temporary buffer copied to 'dst'.\n */\n '''",
"nx_action_reg_move",
"=",
"nstruct",
"(",
"(",
"uint16",
",",
"'n_bits'",
")",
",",
"# /* Number of bits. */",
"(",
"uint16",
",",
"'src_ofs'",
")",
",",
"# /* Starting bit offset in source. */",
"(",
"uint16",
",",
"'dst_ofs'",
")",
",",
"# /* Starting bit offset in destination. */",
"(",
"nxm_header",
",",
"'src'",
")",
",",
"# /* Source register. */",
"(",
"nxm_header",
",",
"'dst'",
")",
",",
"# /* Destination register. */",
"name",
"=",
"'nx_action_reg_move'",
",",
"base",
"=",
"nx_action",
",",
"classifyby",
"=",
"(",
"NXAST_REG_MOVE",
",",
")",
",",
"criteria",
"=",
"lambda",
"x",
":",
"getattr",
"(",
"x",
",",
"action_subtype",
")",
"==",
"NXAST_REG_MOVE",
",",
"init",
"=",
"packvalue",
"(",
"NXAST_REG_MOVE",
",",
"action_subtype",
")",
",",
"formatter",
"=",
"_createdesc",
"(",
"lambda",
"x",
":",
"'move:%s[%d..%d]->%s[%d..%d]'",
"%",
"(",
"x",
"[",
"'src'",
"]",
",",
"x",
"[",
"'src_ofs'",
"]",
",",
"x",
"[",
"'src_ofs'",
"]",
"+",
"x",
"[",
"'n_bits'",
"]",
"-",
"1",
",",
"x",
"[",
"'dst'",
"]",
",",
"x",
"[",
"'dst_ofs'",
"]",
",",
"x",
"[",
"'dst_ofs'",
"]",
"+",
"x",
"[",
"'n_bits'",
"]",
"-",
"1",
")",
")",
")",
"namespace",
"[",
"'nx_action_reg_move'",
"]",
"=",
"nx_action_reg_move",
"'''\n /* Action structure for NXAST_REG_LOAD.\n *\n * Copies value[0:n_bits] to dst[ofs:ofs+n_bits], where a[b:c] denotes the bits\n * within 'a' numbered 'b' through 'c' (not including bit 'c'). Bit numbering\n * starts at 0 for the least-significant bit, 1 for the next most significant\n * bit, and so on.\n *\n * 'dst' is an nxm_header with nxm_hasmask=0. See the documentation for\n * NXAST_REG_MOVE, above, for the permitted fields and for the side effects of\n * loading them.\n *\n * The 'ofs' and 'n_bits' fields are combined into a single 'ofs_nbits' field\n * to avoid enlarging the structure by another 8 bytes. To allow 'n_bits' to\n * take a value between 1 and 64 (inclusive) while taking up only 6 bits, it is\n * also stored as one less than its true value:\n *\n * 15 6 5 0\n * +------------------------------+------------------+\n * | ofs | n_bits - 1 |\n * +------------------------------+------------------+\n *\n * The switch will reject actions for which ofs+n_bits is greater than the\n * width of 'dst', or in which any bits in 'value' with value 2**n_bits or\n * greater are set to 1, with error type OFPET_BAD_ACTION, code\n * OFPBAC_BAD_ARGUMENT.\n */\n '''",
"nx_action_reg_load",
"=",
"nstruct",
"(",
"(",
"uint16",
",",
"'ofs_nbits'",
")",
",",
"# /* (ofs << 6) | (n_bits - 1). */",
"(",
"nxm_header",
",",
"'dst'",
")",
",",
"# /* Destination register. */",
"(",
"uint64",
",",
"'value'",
")",
",",
"# /* Immediate value. */",
"name",
"=",
"'nx_action_reg_load'",
",",
"base",
"=",
"nx_action",
",",
"classifyby",
"=",
"(",
"NXAST_REG_LOAD",
",",
")",
",",
"criteria",
"=",
"lambda",
"x",
":",
"getattr",
"(",
"x",
",",
"action_subtype",
")",
"==",
"NXAST_REG_LOAD",
",",
"init",
"=",
"packvalue",
"(",
"NXAST_REG_LOAD",
",",
"action_subtype",
")",
",",
"formatter",
"=",
"_createdesc",
"(",
"lambda",
"x",
":",
"'load:0x%x->%s[%d..%d]'",
"%",
"(",
"x",
"[",
"'value'",
"]",
",",
"x",
"[",
"'dst'",
"]",
",",
"x",
"[",
"'ofs_nbits'",
"]",
">>",
"6",
",",
"(",
"x",
"[",
"'ofs_nbits'",
"]",
">>",
"6",
")",
"+",
"(",
"x",
"[",
"'ofs_nbits'",
"]",
"&",
"0x3f",
")",
")",
")",
")",
"namespace",
"[",
"'nx_action_reg_load'",
"]",
"=",
"nx_action_reg_load",
"'''\n /* Action structure for NXAST_STACK_PUSH and NXAST_STACK_POP.\n *\n * Pushes (or pops) field[offset: offset + n_bits] to (or from)\n * top of the stack.\n */\n '''",
"nx_action_stack",
"=",
"nstruct",
"(",
"(",
"uint16",
",",
"'offset'",
")",
",",
"# /* Bit offset into the field. */",
"(",
"nxm_header",
",",
"'field'",
")",
",",
"# /* The field used for push or pop. */",
"(",
"uint16",
",",
"'n_bits'",
")",
",",
"# /* (n_bits + 1) bits of the field. */",
"(",
"uint8",
"[",
"6",
"]",
",",
")",
",",
"# /* Reserved, must be zero. */",
"name",
"=",
"'nx_action_stack'",
",",
"base",
"=",
"nx_action",
",",
"classifyby",
"=",
"(",
"NXAST_STACK_PUSH",
",",
"NXAST_STACK_POP",
")",
",",
"criteria",
"=",
"lambda",
"x",
":",
"getattr",
"(",
"x",
",",
"action_subtype",
")",
"==",
"NXAST_STACK_PUSH",
"or",
"getattr",
"(",
"x",
",",
"action_subtype",
")",
"==",
"NXAST_STACK_POP",
",",
"init",
"=",
"packvalue",
"(",
"NXAST_STACK_PUSH",
",",
"action_subtype",
")",
",",
"formatter",
"=",
"_createdesc",
"(",
"lambda",
"x",
":",
"'%s:%s[%d..%d]'",
"%",
"(",
"'push'",
"if",
"x",
"[",
"action_subtype",
"]",
"==",
"'NXAST_STACK_PUSH'",
"else",
"'pop'",
",",
"x",
"[",
"'field'",
"]",
",",
"x",
"[",
"'offset'",
"]",
",",
"(",
"x",
"[",
"'offset'",
"]",
"+",
"x",
"[",
"'n_bits'",
"]",
"-",
"1",
")",
")",
")",
")",
"namespace",
"[",
"'nx_action_stack'",
"]",
"=",
"nx_action_stack",
"'''\n /* Action structure for NXAST_NOTE.\n *\n * This action has no effect. It is variable length. The switch does not\n * attempt to interpret the user-defined 'note' data in any way. A controller\n * can use this action to attach arbitrary metadata to a flow.\n *\n * This action might go away in the future.\n */\n '''",
"nx_action_note",
"=",
"nstruct",
"(",
"(",
"varchr",
",",
"'note'",
")",
",",
"name",
"=",
"'nx_action_note'",
",",
"base",
"=",
"nx_action",
",",
"classifyby",
"=",
"(",
"NXAST_NOTE",
",",
")",
",",
"criteria",
"=",
"lambda",
"x",
":",
"getattr",
"(",
"x",
",",
"action_subtype",
")",
"==",
"NXAST_NOTE",
",",
"init",
"=",
"packvalue",
"(",
"NXAST_NOTE",
",",
"action_subtype",
")",
")",
"namespace",
"[",
"'nx_action_note'",
"]",
"=",
"nx_action_note",
"'''\n /* Action structure for NXAST_MULTIPATH.\n *\n * This action performs the following steps in sequence:\n *\n * 1. Hashes the fields designated by 'fields', one of NX_HASH_FIELDS_*.\n * Refer to the definition of \"enum nx_mp_fields\" for details.\n *\n * The 'basis' value is used as a universal hash parameter, that is,\n * different values of 'basis' yield different hash functions. The\n * particular universal hash function used is implementation-defined.\n *\n * The hashed fields' values are drawn from the current state of the\n * flow, including all modifications that have been made by actions up to\n * this point.\n *\n * 2. Applies the multipath link choice algorithm specified by 'algorithm',\n * one of NX_MP_ALG_*. Refer to the definition of \"enum nx_mp_algorithm\"\n * for details.\n *\n * The output of the algorithm is 'link', an unsigned integer less than\n * or equal to 'max_link'.\n *\n * Some algorithms use 'arg' as an additional argument.\n *\n * 3. Stores 'link' in dst[ofs:ofs+n_bits]. The format and semantics of\n * 'dst' and 'ofs_nbits' are similar to those for the NXAST_REG_LOAD\n * action.\n *\n * The switch will reject actions that have an unknown 'fields', or an unknown\n * 'algorithm', or in which ofs+n_bits is greater than the width of 'dst', or\n * in which 'max_link' is greater than or equal to 2**n_bits, with error type\n * OFPET_BAD_ACTION, code OFPBAC_BAD_ARGUMENT.\n */\n '''",
"nx_action_multipath",
"=",
"nstruct",
"(",
"#/* What fields to hash and how. */",
"(",
"nx_hash_fields",
",",
"'fields'",
")",
",",
"# /* One of NX_HASH_FIELDS_*. */",
"(",
"uint16",
",",
"'basis'",
")",
",",
"# /* Universal hash parameter. */",
"(",
"uint16",
",",
")",
",",
"#/* Multipath link choice algorithm to apply to hash value. */",
"(",
"nx_mp_algorithm",
",",
"'algorithm'",
")",
",",
"# /* One of NX_MP_ALG_*. */",
"(",
"uint16",
",",
"'max_link'",
")",
",",
"# /* Number of output links, minus 1. */",
"(",
"uint32",
",",
"'arg'",
")",
",",
"# /* Algorithm-specific argument. */",
"(",
"uint16",
",",
")",
",",
"# /* Where to store the result. */",
"(",
"uint16",
",",
"'ofs_nbits'",
")",
",",
"# /* (ofs << 6) | (n_bits - 1). */",
"(",
"nxm_header",
",",
"'dst'",
")",
",",
"# /* Destination. */",
"name",
"=",
"'nx_action_multipath'",
",",
"base",
"=",
"nx_action",
",",
"classifyby",
"=",
"(",
"NXAST_MULTIPATH",
",",
")",
",",
"criteria",
"=",
"lambda",
"x",
":",
"getattr",
"(",
"x",
",",
"action_subtype",
")",
"==",
"NXAST_MULTIPATH",
",",
"init",
"=",
"packvalue",
"(",
"NXAST_MULTIPATH",
",",
"action_subtype",
")",
",",
"formatter",
"=",
"_createdesc",
"(",
"lambda",
"x",
":",
"'multipath(%s,%d,%s,%d,%d,%s[%d..%d])'",
"%",
"(",
"x",
"[",
"'fields'",
"]",
",",
"x",
"[",
"'basis'",
"]",
",",
"x",
"[",
"'algorithm'",
"]",
",",
"x",
"[",
"'max_link'",
"]",
"+",
"1",
",",
"x",
"[",
"'arg'",
"]",
",",
"x",
"[",
"'dst'",
"]",
",",
"x",
"[",
"'ofs_nbits'",
"]",
">>",
"6",
",",
"(",
"x",
"[",
"'ofs_nbits'",
"]",
">>",
"6",
")",
"+",
"(",
"x",
"[",
"'ofs_nbits'",
"]",
"&",
"0x3f",
")",
")",
")",
")",
"namespace",
"[",
"'nx_action_multipath'",
"]",
"=",
"nx_action_multipath",
"'''\n /* Action structure for NXAST_LEARN.\n *\n * This action adds or modifies a flow in an OpenFlow table, similar to\n * OFPT_FLOW_MOD with OFPFC_MODIFY_STRICT as 'command'. The new flow has the\n * specified idle timeout, hard timeout, priority, cookie, and flags. The new\n * flow's match criteria and actions are built by applying each of the series\n * of flow_mod_spec elements included as part of the action.\n *\n * A flow_mod_spec starts with a 16-bit header. A header that is all-bits-0 is\n * a no-op used for padding the action as a whole to a multiple of 8 bytes in\n * length. Otherwise, the flow_mod_spec can be thought of as copying 'n_bits'\n * bits from a source to a destination. In this case, the header contains\n * multiple fields:\n *\n * 15 14 13 12 11 10 0\n * +------+---+------+---------------------------------+\n * | 0 |src| dst | n_bits |\n * +------+---+------+---------------------------------+\n *\n * The meaning and format of a flow_mod_spec depends on 'src' and 'dst'. The\n * following table summarizes the meaning of each possible combination.\n * Details follow the table:\n *\n * src dst meaning\n * --- --- ----------------------------------------------------------\n * 0 0 Add match criteria based on value in a field.\n * 1 0 Add match criteria based on an immediate value.\n * 0 1 Add NXAST_REG_LOAD action to copy field into a different field.\n * 1 1 Add NXAST_REG_LOAD action to load immediate value into a field.\n * 0 2 Add OFPAT_OUTPUT action to output to port from specified field.\n * All other combinations are undefined and not allowed.\n *\n * The flow_mod_spec header is followed by a source specification and a\n * destination specification. The format and meaning of the source\n * specification depends on 'src':\n *\n * - If 'src' is 0, the source bits are taken from a field in the flow to\n * which this action is attached. (This should be a wildcarded field. If\n * its value is fully specified then the source bits being copied have\n * constant values.)\n *\n * The source specification is an ovs_be32 'field' and an ovs_be16 'ofs'.\n * 'field' is an nxm_header with nxm_hasmask=0, and 'ofs' the starting bit\n * offset within that field. The source bits are field[ofs:ofs+n_bits-1].\n * 'field' and 'ofs' are subject to the same restrictions as the source\n * field in NXAST_REG_MOVE.\n *\n * - If 'src' is 1, the source bits are a constant value. The source\n * specification is (n_bits+15)/16*2 bytes long. Taking those bytes as a\n * number in network order, the source bits are the 'n_bits'\n * least-significant bits. The switch will report an error if other bits\n * in the constant are nonzero.\n *\n * The flow_mod_spec destination specification, for 'dst' of 0 or 1, is an\n * ovs_be32 'field' and an ovs_be16 'ofs'. 'field' is an nxm_header with\n * nxm_hasmask=0 and 'ofs' is a starting bit offset within that field. The\n * meaning of the flow_mod_spec depends on 'dst':\n *\n * - If 'dst' is 0, the flow_mod_spec specifies match criteria for the new\n * flow. The new flow matches only if bits field[ofs:ofs+n_bits-1] in a\n * packet equal the source bits. 'field' may be any nxm_header with\n * nxm_hasmask=0 that is allowed in NXT_FLOW_MOD.\n *\n * Order is significant. Earlier flow_mod_specs must satisfy any\n * prerequisites for matching fields specified later, by copying constant\n * values into prerequisite fields.\n *\n * The switch will reject flow_mod_specs that do not satisfy NXM masking\n * restrictions.\n *\n * - If 'dst' is 1, the flow_mod_spec specifies an NXAST_REG_LOAD action for\n * the new flow. The new flow copies the source bits into\n * field[ofs:ofs+n_bits-1]. Actions are executed in the same order as the\n * flow_mod_specs.\n *\n * A single NXAST_REG_LOAD action writes no more than 64 bits, so n_bits\n * greater than 64 yields multiple NXAST_REG_LOAD actions.\n *\n * The flow_mod_spec destination spec for 'dst' of 2 (when 'src' is 0) is\n * empty. It has the following meaning:\n *\n * - The flow_mod_spec specifies an OFPAT_OUTPUT action for the new flow.\n * The new flow outputs to the OpenFlow port specified by the source field.\n * Of the special output ports with value OFPP_MAX or larger, OFPP_IN_PORT,\n * OFPP_FLOOD, OFPP_LOCAL, and OFPP_ALL are supported. Other special ports\n * may not be used.\n *\n * Resource Management\n * -------------------\n *\n * A switch has a finite amount of flow table space available for learning.\n * When this space is exhausted, no new learning table entries will be learned\n * until some existing flow table entries expire. The controller should be\n * prepared to handle this by flooding (which can be implemented as a\n * low-priority flow).\n *\n * If a learned flow matches a single TCP stream with a relatively long\n * timeout, one may make the best of resource constraints by setting\n * 'fin_idle_timeout' or 'fin_hard_timeout' (both measured in seconds), or\n * both, to shorter timeouts. When either of these is specified as a nonzero\n * value, OVS adds a NXAST_FIN_TIMEOUT action, with the specified timeouts, to\n * the learned flow.\n *\n * Examples\n * --------\n *\n * The following examples give a prose description of the flow_mod_specs along\n * with informal notation for how those would be represented and a hex dump of\n * the bytes that would be required.\n *\n * These examples could work with various nx_action_learn parameters. Typical\n * values would be idle_timeout=OFP_FLOW_PERMANENT, hard_timeout=60,\n * priority=OFP_DEFAULT_PRIORITY, flags=0, table_id=10.\n *\n * 1. Learn input port based on the source MAC, with lookup into\n * NXM_NX_REG1[16:31] by resubmit to in_port=99:\n *\n * Match on in_port=99:\n * ovs_be16(src=1, dst=0, n_bits=16), 20 10\n * ovs_be16(99), 00 63\n * ovs_be32(NXM_OF_IN_PORT), ovs_be16(0) 00 00 00 02 00 00\n *\n * Match Ethernet destination on Ethernet source from packet:\n * ovs_be16(src=0, dst=0, n_bits=48), 00 30\n * ovs_be32(NXM_OF_ETH_SRC), ovs_be16(0) 00 00 04 06 00 00\n * ovs_be32(NXM_OF_ETH_DST), ovs_be16(0) 00 00 02 06 00 00\n *\n * Set NXM_NX_REG1[16:31] to the packet's input port:\n * ovs_be16(src=0, dst=1, n_bits=16), 08 10\n * ovs_be32(NXM_OF_IN_PORT), ovs_be16(0) 00 00 00 02 00 00\n * ovs_be32(NXM_NX_REG1), ovs_be16(16) 00 01 02 04 00 10\n *\n * Given a packet that arrived on port A with Ethernet source address B,\n * this would set up the flow \"in_port=99, dl_dst=B,\n * actions=load:A->NXM_NX_REG1[16..31]\".\n *\n * In syntax accepted by ovs-ofctl, this action is: learn(in_port=99,\n * NXM_OF_ETH_DST[]=NXM_OF_ETH_SRC[],\n * load:NXM_OF_IN_PORT[]->NXM_NX_REG1[16..31])\n *\n * 2. Output to input port based on the source MAC and VLAN VID, with lookup\n * into NXM_NX_REG1[16:31]:\n *\n * Match on same VLAN ID as packet:\n * ovs_be16(src=0, dst=0, n_bits=12), 00 0c\n * ovs_be32(NXM_OF_VLAN_TCI), ovs_be16(0) 00 00 08 02 00 00\n * ovs_be32(NXM_OF_VLAN_TCI), ovs_be16(0) 00 00 08 02 00 00\n *\n * Match Ethernet destination on Ethernet source from packet:\n * ovs_be16(src=0, dst=0, n_bits=48), 00 30\n * ovs_be32(NXM_OF_ETH_SRC), ovs_be16(0) 00 00 04 06 00 00\n * ovs_be32(NXM_OF_ETH_DST), ovs_be16(0) 00 00 02 06 00 00\n *\n * Output to the packet's input port:\n * ovs_be16(src=0, dst=2, n_bits=16), 10 10\n * ovs_be32(NXM_OF_IN_PORT), ovs_be16(0) 00 00 00 02 00 00\n *\n * Given a packet that arrived on port A with Ethernet source address B in\n * VLAN C, this would set up the flow \"dl_dst=B, vlan_vid=C,\n * actions=output:A\".\n *\n * In syntax accepted by ovs-ofctl, this action is:\n * learn(NXM_OF_VLAN_TCI[0..11], NXM_OF_ETH_DST[]=NXM_OF_ETH_SRC[],\n * output:NXM_OF_IN_PORT[])\n *\n * 3. Here's a recipe for a very simple-minded MAC learning switch. It uses a\n * 10-second MAC expiration time to make it easier to see what's going on\n *\n * ovs-vsctl del-controller br0\n * ovs-ofctl del-flows br0\n * ovs-ofctl add-flow br0 \"table=0 actions=learn(table=1, \\\n hard_timeout=10, NXM_OF_VLAN_TCI[0..11], \\\n NXM_OF_ETH_DST[]=NXM_OF_ETH_SRC[], \\\n output:NXM_OF_IN_PORT[]), resubmit(,1)\"\n * ovs-ofctl add-flow br0 \"table=1 priority=0 actions=flood\"\n *\n * You can then dump the MAC learning table with:\n *\n * ovs-ofctl dump-flows br0 table=1\n *\n * Usage Advice\n * ------------\n *\n * For best performance, segregate learned flows into a table that is not used\n * for any other flows except possibly for a lowest-priority \"catch-all\" flow\n * (a flow with no match criteria). If different learning actions specify\n * different match criteria, use different tables for the learned flows.\n *\n * The meaning of 'hard_timeout' and 'idle_timeout' can be counterintuitive.\n * These timeouts apply to the flow that is added, which means that a flow with\n * an idle timeout will expire when no traffic has been sent *to* the learned\n * address. This is not usually the intent in MAC learning; instead, we want\n * the MAC learn entry to expire when no traffic has been sent *from* the\n * learned address. Use a hard timeout for that.\n */\n '''",
"def",
"_nx_flow_mod_spec_formatter",
"(",
"x",
")",
":",
"if",
"NX_FLOWMODSPEC_SRC",
"(",
"x",
"[",
"'header'",
"]",
")",
":",
"srcdesc",
"=",
"'0x'",
"+",
"''",
".",
"join",
"(",
"'%02x'",
"%",
"(",
"c",
",",
")",
"for",
"c",
"in",
"bytearray",
"(",
"x",
"[",
"'value'",
"]",
")",
")",
"else",
":",
"srcdesc",
"=",
"'%s[%d..%d]'",
"%",
"(",
"x",
"[",
"'src'",
"]",
",",
"x",
"[",
"'src_ofs'",
"]",
",",
"x",
"[",
"'src_ofs'",
"]",
"+",
"NX_FLOWMODSPEC_NBITS",
"(",
"x",
"[",
"'header'",
"]",
")",
"-",
"1",
")",
"dstv",
"=",
"NX_FLOWMODSPEC_DST",
"(",
"x",
"[",
"'header'",
"]",
")",
"if",
"dstv",
"!=",
"NX_LEARN_DST_OUTPUT",
":",
"dstdesc",
"=",
"'%s[%d..%d]'",
"%",
"(",
"x",
"[",
"'dst'",
"]",
",",
"x",
"[",
"'dst_ofs'",
"]",
",",
"x",
"[",
"'dst_ofs'",
"]",
"+",
"NX_FLOWMODSPEC_NBITS",
"(",
"x",
"[",
"'header'",
"]",
")",
"-",
"1",
")",
"if",
"dstv",
"==",
"NX_LEARN_DST_MATCH",
":",
"x",
"[",
"'_desc'",
"]",
"=",
"'%s=%s'",
"%",
"(",
"dstdesc",
",",
"srcdesc",
")",
"elif",
"dstv",
"==",
"NX_LEARN_DST_LOAD",
":",
"x",
"[",
"'_desc'",
"]",
"=",
"'load:%s->%s'",
"%",
"(",
"srcdesc",
",",
"dstdesc",
")",
"elif",
"NX_FLOWMODSPEC_SRC",
"(",
"x",
"[",
"'header'",
"]",
")",
":",
"x",
"[",
"'_desc'",
"]",
"=",
"'output:%s'",
"%",
"nxm_port_no_raw",
".",
"formatter",
"(",
"common",
".",
"create_binary",
"(",
"x",
"[",
"'value'",
"]",
",",
"2",
")",
")",
"else",
":",
"x",
"[",
"'_desc'",
"]",
"=",
"'output:%s'",
"%",
"(",
"srcdesc",
",",
")",
"x",
"[",
"'header'",
"]",
"=",
"nx_flow_mod_spec_header",
".",
"formatter",
"(",
"x",
"[",
"'header'",
"]",
")",
"return",
"x",
"nx_flow_mod_spec",
"=",
"nstruct",
"(",
"(",
"uint16",
",",
"'header'",
")",
",",
"(",
"_nx_flow_mod_spec_src",
",",
")",
",",
"(",
"_nx_flow_mod_spec_dst",
",",
")",
",",
"name",
"=",
"'nx_flow_mod_spec'",
",",
"padding",
"=",
"1",
",",
"formatter",
"=",
"_nx_flow_mod_spec_formatter",
",",
"lastextra",
"=",
"False",
"# if x.header == 0, size is 14, the padding should not be so large so it will not be successfully parsed",
")",
"namespace",
"[",
"'nx_flow_mod_spec'",
"]",
"=",
"nx_flow_mod_spec",
"def",
"create_nxfms_matchfield",
"(",
"src",
",",
"dst",
",",
"src_ofs",
"=",
"0",
",",
"dst_ofs",
"=",
"0",
",",
"n_bits",
"=",
"None",
")",
":",
"if",
"n_bits",
"is",
"None",
":",
"n_bits",
"=",
"min",
"(",
"NXM_LENGTH",
"(",
"dst",
")",
"*",
"8",
"-",
"dst_ofs",
",",
"NXM_LENGTH",
"(",
"src",
")",
"*",
"8",
"-",
"src_ofs",
")",
"if",
"n_bits",
"<=",
"0",
":",
"raise",
"ValueError",
"(",
"'Cannot create flow mod spec with 0 bits'",
")",
"return",
"nx_flow_mod_spec",
".",
"parse",
"(",
"_create_header",
"(",
"NX_LEARN_SRC_FIELD",
",",
"NX_LEARN_DST_MATCH",
",",
"n_bits",
")",
"+",
"_create_field",
"(",
"src",
",",
"src_ofs",
")",
"+",
"_create_field",
"(",
"dst",
",",
"dst_ofs",
")",
")",
"[",
"0",
"]",
"namespace",
"[",
"'create_nxfms_matchfield'",
"]",
"=",
"create_nxfms_matchfield",
"def",
"create_nxfms_matchvalue",
"(",
"dst",
",",
"value",
",",
"dst_ofs",
",",
"n_bits",
"=",
"None",
")",
":",
"if",
"n_bits",
"is",
"None",
":",
"n_bits",
"=",
"NXM_LENGTH",
"(",
"dst",
")",
"*",
"8",
"-",
"dst_ofs",
"if",
"n_bits",
"<=",
"0",
":",
"raise",
"ValueError",
"(",
"'Cannot create flow mod spec with 0 bits'",
")",
"return",
"nx_flow_mod_spec",
".",
"parse",
"(",
"_create_header",
"(",
"NX_LEARN_SRC_IMMEDIATE",
",",
"NX_LEARN_DST_MATCH",
",",
"n_bits",
")",
"+",
"common",
".",
"create_binary",
"(",
"value",
",",
"(",
"n_bits",
"+",
"15",
")",
"//",
"16",
"*",
"2",
")",
"+",
"_create_field",
"(",
"dst",
",",
"dst_ofs",
")",
")",
"[",
"0",
"]",
"namespace",
"[",
"'create_nxfms_matchvalue'",
"]",
"=",
"create_nxfms_matchvalue",
"def",
"create_nxfms_loadfield",
"(",
"src",
",",
"dst",
",",
"src_ofs",
"=",
"0",
",",
"dst_ofs",
"=",
"0",
",",
"n_bits",
"=",
"None",
")",
":",
"if",
"n_bits",
"is",
"None",
":",
"n_bits",
"=",
"min",
"(",
"NXM_LENGTH",
"(",
"dst",
")",
"*",
"8",
"-",
"dst_ofs",
",",
"NXM_LENGTH",
"(",
"src",
")",
"*",
"8",
"-",
"src_ofs",
")",
"if",
"n_bits",
"<=",
"0",
":",
"raise",
"ValueError",
"(",
"'Cannot create flow mod spec with 0 bits'",
")",
"return",
"nx_flow_mod_spec",
".",
"parse",
"(",
"_create_header",
"(",
"NX_LEARN_SRC_FIELD",
",",
"NX_LEARN_DST_LOAD",
",",
"n_bits",
")",
"+",
"_create_field",
"(",
"src",
",",
"src_ofs",
")",
"+",
"_create_field",
"(",
"dst",
",",
"dst_ofs",
")",
")",
"[",
"0",
"]",
"namespace",
"[",
"'create_nxfms_loadfield'",
"]",
"=",
"create_nxfms_loadfield",
"def",
"create_nxfms_loadvalue",
"(",
"dst",
",",
"value",
",",
"dst_ofs",
",",
"n_bits",
"=",
"None",
")",
":",
"if",
"n_bits",
"is",
"None",
":",
"n_bits",
"=",
"NXM_LENGTH",
"(",
"dst",
")",
"*",
"8",
"-",
"dst_ofs",
"if",
"n_bits",
"<=",
"0",
":",
"raise",
"ValueError",
"(",
"'Cannot create flow mod spec with 0 bits'",
")",
"return",
"nx_flow_mod_spec",
".",
"parse",
"(",
"_create_header",
"(",
"NX_LEARN_SRC_IMMEDIATE",
",",
"NX_LEARN_DST_LOAD",
",",
"n_bits",
")",
"+",
"common",
".",
"create_binary",
"(",
"value",
",",
"(",
"n_bits",
"+",
"15",
")",
"//",
"16",
"*",
"2",
")",
"+",
"_create_field",
"(",
"dst",
",",
"dst_ofs",
")",
")",
"[",
"0",
"]",
"namespace",
"[",
"'create_nxfms_loadvalue'",
"]",
"=",
"create_nxfms_loadvalue",
"def",
"create_nxfms_outputfield",
"(",
"src",
",",
"src_ofs",
"=",
"0",
",",
"n_bits",
"=",
"None",
")",
":",
"if",
"n_bits",
"is",
"None",
":",
"n_bits",
"=",
"NXM_LENGTH",
"(",
"src",
")",
"*",
"8",
"-",
"src_ofs",
"if",
"n_bits",
"<=",
"0",
":",
"raise",
"ValueError",
"(",
"'Cannot create flow mod spec with 0 bits'",
")",
"return",
"nx_flow_mod_spec",
".",
"parse",
"(",
"_create_header",
"(",
"NX_LEARN_SRC_FIELD",
",",
"NX_LEARN_DST_OUTPUT",
",",
"n_bits",
")",
"+",
"_create_field",
"(",
"src",
",",
"src_ofs",
")",
")",
"[",
"0",
"]",
"namespace",
"[",
"'create_nxfms_outputfield'",
"]",
"=",
"create_nxfms_outputfield",
"def",
"create_nxfms_outputvalue",
"(",
"dst",
",",
"value",
")",
":",
"return",
"nx_flow_mod_spec",
".",
"parse",
"(",
"_create_header",
"(",
"NX_LEARN_SRC_IMMEDIATE",
",",
"NX_LEARN_DST_OUTPUT",
",",
"16",
")",
"+",
"common",
".",
"create_binary",
"(",
"value",
",",
"2",
")",
")",
"[",
"0",
"]",
"namespace",
"[",
"'create_nxfms_outputvalue'",
"]",
"=",
"create_nxfms_outputvalue",
"ofp_flow_mod_flags",
"=",
"namespace",
"[",
"'ofp_flow_mod_flags'",
"]",
"nx_action_learn",
"=",
"nstruct",
"(",
"(",
"uint16",
",",
"'idle_timeout'",
")",
",",
"# /* Idle time before discarding (seconds). */",
"(",
"uint16",
",",
"'hard_timeout'",
")",
",",
"# /* Max time before discarding (seconds). */",
"(",
"uint16",
",",
"'priority'",
")",
",",
"# /* Priority level of flow entry. */",
"(",
"uint64",
",",
"'cookie'",
")",
",",
"# /* Cookie for new flow. */",
"(",
"ofp_flow_mod_flags",
",",
"'flags'",
")",
",",
"# /* Either 0 or OFPFF_SEND_FLOW_REM. */",
"(",
"uint8",
",",
"'table_id'",
")",
",",
"# /* Table to insert flow entry. */",
"(",
"uint8",
",",
")",
",",
"# /* Must be zero. */",
"(",
"uint16",
",",
"'fin_idle_timeout'",
")",
",",
"# /* Idle timeout after FIN, if nonzero. */",
"(",
"uint16",
",",
"'fin_hard_timeout'",
")",
",",
"# /* Hard timeout after FIN, if nonzero. */",
"(",
"nx_flow_mod_spec",
"[",
"0",
"]",
",",
"'specs'",
")",
",",
"base",
"=",
"nx_action",
",",
"name",
"=",
"'nx_action_learn'",
",",
"classifyby",
"=",
"(",
"NXAST_LEARN",
",",
")",
",",
"criteria",
"=",
"lambda",
"x",
":",
"getattr",
"(",
"x",
",",
"action_subtype",
")",
"==",
"NXAST_LEARN",
",",
"init",
"=",
"packvalue",
"(",
"NXAST_LEARN",
",",
"action_subtype",
")",
",",
")",
"namespace",
"[",
"'nx_action_learn'",
"]",
"=",
"nx_action_learn",
"'''\n /* Action structure for NXAST_FIN_TIMEOUT.\n *\n * This action changes the idle timeout or hard timeout, or both, of this\n * OpenFlow rule when the rule matches a TCP packet with the FIN or RST flag.\n * When such a packet is observed, the action reduces the rule's idle timeout\n * to 'fin_idle_timeout' and its hard timeout to 'fin_hard_timeout'. This\n * action has no effect on an existing timeout that is already shorter than the\n * one that the action specifies. A 'fin_idle_timeout' or 'fin_hard_timeout'\n * of zero has no effect on the respective timeout.\n *\n * 'fin_idle_timeout' and 'fin_hard_timeout' are measured in seconds.\n * 'fin_hard_timeout' specifies time since the flow's creation, not since the\n * receipt of the FIN or RST.\n *\n * This is useful for quickly discarding learned TCP flows that otherwise will\n * take a long time to expire.\n *\n * This action is intended for use with an OpenFlow rule that matches only a\n * single TCP flow. If the rule matches multiple TCP flows (e.g. it wildcards\n * all TCP traffic, or all TCP traffic to a particular port), then any FIN or\n * RST in any of those flows will cause the entire OpenFlow rule to expire\n * early, which is not normally desirable.\n */\n '''",
"nx_action_fin_timeout",
"=",
"nstruct",
"(",
"(",
"uint16",
",",
"'fin_idle_timeout'",
")",
",",
"# /* New idle timeout, if nonzero. */",
"(",
"uint16",
",",
"'fin_hard_timeout'",
")",
",",
"# /* New hard timeout, if nonzero. */",
"(",
"uint16",
",",
")",
",",
"base",
"=",
"nx_action",
",",
"name",
"=",
"'nx_action_fin_timeout'",
",",
"criteria",
"=",
"lambda",
"x",
":",
"getattr",
"(",
"x",
",",
"action_subtype",
")",
"==",
"NXAST_FIN_TIMEOUT",
",",
"classifyby",
"=",
"(",
"NXAST_FIN_TIMEOUT",
",",
")",
",",
"init",
"=",
"packvalue",
"(",
"NXAST_FIN_TIMEOUT",
",",
"action_subtype",
")",
")",
"namespace",
"[",
"'nx_action_fin_timeout'",
"]",
"=",
"nx_action_fin_timeout",
"'''\n /* Action structure for NXAST_BUNDLE and NXAST_BUNDLE_LOAD.\n *\n * The bundle actions choose a slave from a supplied list of options.\n * NXAST_BUNDLE outputs to its selection. NXAST_BUNDLE_LOAD writes its\n * selection to a register.\n *\n * The list of possible slaves follows the nx_action_bundle structure. The size\n * of each slave is governed by its type as indicated by the 'slave_type'\n * parameter. The list of slaves should be padded at its end with zeros to make\n * the total length of the action a multiple of 8.\n *\n * Switches infer from the 'slave_type' parameter the size of each slave. All\n * implementations must support the NXM_OF_IN_PORT 'slave_type' which indicates\n * that the slaves are OpenFlow port numbers with NXM_LENGTH(NXM_OF_IN_PORT) ==\n * 2 byte width. Switches should reject actions which indicate unknown or\n * unsupported slave types.\n *\n * Switches use a strategy dictated by the 'algorithm' parameter to choose a\n * slave. If the switch does not support the specified 'algorithm' parameter,\n * it should reject the action.\n *\n * Several algorithms take into account liveness when selecting slaves. The\n * liveness of a slave is implementation defined (with one exception), but will\n * generally take into account things like its carrier status and the results\n * of any link monitoring protocols which happen to be running on it. In order\n * to give controllers a place-holder value, the OFPP_NONE port is always\n * considered live.\n *\n * Some slave selection strategies require the use of a hash function, in which\n * case the 'fields' and 'basis' parameters should be populated. The 'fields'\n * parameter (one of NX_HASH_FIELDS_*) designates which parts of the flow to\n * hash. Refer to the definition of \"enum nx_hash_fields\" for details. The\n * 'basis' parameter is used as a universal hash parameter. Different values\n * of 'basis' yield different hash results.\n *\n * The 'zero' parameter at the end of the action structure is reserved for\n * future use. Switches are required to reject actions which have nonzero\n * bytes in the 'zero' field.\n *\n * NXAST_BUNDLE actions should have 'ofs_nbits' and 'dst' zeroed. Switches\n * should reject actions which have nonzero bytes in either of these fields.\n *\n * NXAST_BUNDLE_LOAD stores the OpenFlow port number of the selected slave in\n * dst[ofs:ofs+n_bits]. The format and semantics of 'dst' and 'ofs_nbits' are\n * similar to those for the NXAST_REG_LOAD action. */\n '''",
"nx_action_bundle",
"=",
"nstruct",
"(",
"# /* Slave choice algorithm to apply to hash value. */",
"(",
"nx_bd_algorithm",
",",
"'algorithm'",
")",
",",
"# /* One of NX_BD_ALG_*. */",
"# /* What fields to hash and how. */",
"(",
"nx_hash_fields",
",",
"'fields'",
")",
",",
"# /* One of NX_HASH_FIELDS_*. */",
"(",
"uint16",
",",
"'basis'",
")",
",",
"# /* Universal hash parameter. */",
"(",
"nxm_header",
",",
"'slave_type'",
")",
",",
"# /* NXM_OF_IN_PORT. */",
"(",
"uint16",
",",
"'n_slaves'",
")",
",",
"# /* Number of slaves. */",
"(",
"uint16",
",",
"'ofs_nbits'",
")",
",",
"# /* (ofs << 6) | (n_bits - 1). */",
"(",
"nxm_header",
",",
"'dst'",
")",
",",
"# /* Destination. */",
"(",
"uint8",
"[",
"4",
"]",
",",
")",
",",
"# /* Reserved. Must be zero. */",
"name",
"=",
"'nx_action_bundle'",
",",
"base",
"=",
"nx_action",
",",
"criteria",
"=",
"lambda",
"x",
":",
"getattr",
"(",
"x",
",",
"action_subtype",
")",
"==",
"NXAST_BUNDLE",
"or",
"getattr",
"(",
"x",
",",
"action_subtype",
")",
"==",
"NXAST_BUNDLE_LOAD",
",",
"classifyby",
"=",
"(",
"NXAST_BUNDLE",
",",
"NXAST_BUNDLE_LOAD",
")",
",",
"init",
"=",
"packvalue",
"(",
"NXAST_BUNDLE",
",",
"action_subtype",
")",
")",
"namespace",
"[",
"'nx_action_bundle'",
"]",
"=",
"nx_action_bundle",
"def",
"_nx_slave_ports_prepack",
"(",
"x",
")",
":",
"x",
".",
"n_slaves",
"=",
"len",
"(",
"x",
".",
"bundles",
")",
"_nx_slave_ports",
"=",
"nstruct",
"(",
"(",
"nx_port_no",
"[",
"0",
"]",
",",
"'bundles'",
")",
",",
"name",
"=",
"'_nx_slave_ports'",
",",
"size",
"=",
"lambda",
"x",
":",
"x",
".",
"n_slaves",
"*",
"2",
",",
"prepack",
"=",
"_nx_slave_ports_prepack",
",",
"padding",
"=",
"1",
")",
"nx_action_bundle_port",
"=",
"nstruct",
"(",
"(",
"_nx_slave_ports",
",",
")",
",",
"base",
"=",
"nx_action_bundle",
",",
"name",
"=",
"'nx_action_bundle_port'",
",",
"criteria",
"=",
"lambda",
"x",
":",
"x",
".",
"slave_type",
"==",
"NXM_OF_IN_PORT",
",",
"init",
"=",
"packvalue",
"(",
"NXM_OF_IN_PORT",
",",
"'slave_type'",
")",
",",
"lastextra",
"=",
"False",
",",
"formatter",
"=",
"_createdesc",
"(",
"lambda",
"x",
":",
"'bundle_load(%s,%d,%s,%s,%s[%d..%d],slaves:%r)'",
"%",
"(",
"x",
"[",
"'fields'",
"]",
",",
"x",
"[",
"'basis'",
"]",
",",
"x",
"[",
"'algorithm'",
"]",
",",
"x",
"[",
"'slave_type'",
"]",
",",
"x",
"[",
"'dst'",
"]",
",",
"x",
"[",
"'ofs_nbits'",
"]",
">>",
"6",
",",
"(",
"x",
"[",
"'ofs_nbits'",
"]",
">>",
"6",
")",
"+",
"(",
"x",
"[",
"'ofs_nbits'",
"]",
"&",
"0x3f",
")",
",",
"x",
"[",
"'bundles'",
"]",
")",
"if",
"x",
"[",
"action_subtype",
"]",
"==",
"'NXAST_BUNDLE_LOAD'",
"else",
"'bundle(%s,%d,%s,%s,slaves:%r)'",
"%",
"(",
"x",
"[",
"'fields'",
"]",
",",
"x",
"[",
"'basis'",
"]",
",",
"x",
"[",
"'algorithm'",
"]",
",",
"x",
"[",
"'slave_type'",
"]",
",",
"x",
"[",
"'bundles'",
"]",
")",
")",
")",
"namespace",
"[",
"'nx_action_bundle_port'",
"]",
"=",
"nx_action_bundle_port",
"def",
"_nx_slave_others_prepack",
"(",
"x",
")",
":",
"x",
".",
"n_slaves",
"=",
"len",
"(",
"x",
".",
"bundlesraw",
")",
"//",
"NXM_LENGTH",
"(",
"x",
".",
"slave_type",
")",
"_nx_slave_others",
"=",
"nstruct",
"(",
"(",
"raw",
",",
"'bundlesraw'",
")",
",",
"name",
"=",
"'_nx_slave_others'",
",",
"size",
"=",
"lambda",
"x",
":",
"x",
".",
"n_slaves",
"*",
"NXM_LENGTH",
"(",
"x",
".",
"slave_type",
")",
",",
"prepack",
"=",
"_nx_slave_others_prepack",
",",
"padding",
"=",
"1",
")",
"nx_action_bundle_others",
"=",
"nstruct",
"(",
"(",
"_nx_slave_others",
",",
")",
",",
"base",
"=",
"nx_action_bundle",
",",
"name",
"=",
"'nx_action_bundle_others'",
",",
"criteria",
"=",
"lambda",
"x",
":",
"x",
".",
"slave_type",
"!=",
"NXM_OF_IN_PORT",
",",
"lastextra",
"=",
"False",
",",
"init",
"=",
"packvalue",
"(",
"NXM_OF_ETH_DST",
",",
"'slave_type'",
")",
",",
"formatter",
"=",
"_createdesc",
"(",
"lambda",
"x",
":",
"'bundle_load(%s,%d,%s,%s,%s[%d..%d],slaves:%r)'",
"%",
"(",
"x",
"[",
"'fields'",
"]",
",",
"x",
"[",
"'basis'",
"]",
",",
"x",
"[",
"'algorithm'",
"]",
",",
"x",
"[",
"'slave_type'",
"]",
",",
"x",
"[",
"'dst'",
"]",
",",
"x",
"[",
"'ofs_nbits'",
"]",
">>",
"6",
",",
"(",
"x",
"[",
"'ofs_nbits'",
"]",
">>",
"6",
")",
"+",
"(",
"x",
"[",
"'ofs_nbits'",
"]",
"&",
"0x3f",
")",
",",
"x",
"[",
"'bundleraw'",
"]",
")",
"if",
"x",
"[",
"action_subtype",
"]",
"==",
"'NXAST_BUNDLE_LOAD'",
"else",
"'bundle(%s,%d,%s,%s,slaves:%r)'",
"%",
"(",
"x",
"[",
"'fields'",
"]",
",",
"x",
"[",
"'basis'",
"]",
",",
"x",
"[",
"'algorithm'",
"]",
",",
"x",
"[",
"'slave_type'",
"]",
",",
"x",
"[",
"'bundleraw'",
"]",
")",
")",
")",
"namespace",
"[",
"'nx_action_bundle_others'",
"]",
"=",
"nx_action_bundle_others",
"'''\n /* Action structure for NXAST_DEC_TTL_CNT_IDS.\n *\n * If the packet is not IPv4 or IPv6, does nothing. For IPv4 or IPv6, if the\n * TTL or hop limit is at least 2, decrements it by 1. Otherwise, if TTL or\n * hop limit is 0 or 1, sends a packet-in to the controllers with each of the\n * 'n_controllers' controller IDs specified in 'cnt_ids'.\n *\n * (This differs from NXAST_DEC_TTL in that for NXAST_DEC_TTL the packet-in is\n * sent only to controllers with id 0.)\n */\n '''",
"def",
"_nx_action_cnt_ids_ids_prepack",
"(",
"x",
")",
":",
"x",
".",
"n_controllers",
"=",
"len",
"(",
"x",
".",
"cnt_ids",
")",
"_nx_action_cnt_ids_ids",
"=",
"nstruct",
"(",
"(",
"uint16",
"[",
"0",
"]",
",",
"'cnt_ids'",
")",
",",
"name",
"=",
"'_nx_action_cnt_ids_ids'",
",",
"size",
"=",
"lambda",
"x",
":",
"2",
"*",
"x",
".",
"n_controllers",
",",
"prepack",
"=",
"_nx_action_cnt_ids_ids_prepack",
")",
"nx_action_cnt_ids",
"=",
"nstruct",
"(",
"(",
"uint16",
",",
"'n_controllers'",
")",
",",
"# /* Number of controllers. */",
"(",
"uint8",
"[",
"4",
"]",
",",
")",
",",
"# /* Must be zero. */",
"(",
"_nx_action_cnt_ids_ids",
",",
")",
",",
"base",
"=",
"nx_action",
",",
"classifyby",
"=",
"(",
"NXAST_DEC_TTL_CNT_IDS",
",",
")",
",",
"criteria",
"=",
"lambda",
"x",
":",
"getattr",
"(",
"x",
",",
"action_subtype",
")",
"==",
"NXAST_DEC_TTL_CNT_IDS",
",",
"init",
"=",
"packvalue",
"(",
"NXAST_DEC_TTL_CNT_IDS",
",",
"action_subtype",
")",
",",
"lastextra",
"=",
"False",
",",
"name",
"=",
"'nx_action_cnt_ids'",
")",
"namespace",
"[",
"'nx_action_cnt_ids'",
"]",
"=",
"nx_action_cnt_ids",
"'''\n /* Action structure for NXAST_OUTPUT_REG.\n *\n * Outputs to the OpenFlow port number written to src[ofs:ofs+nbits].\n *\n * The format and semantics of 'src' and 'ofs_nbits' are similar to those for\n * the NXAST_REG_LOAD action.\n *\n * The acceptable nxm_header values for 'src' are the same as the acceptable\n * nxm_header values for the 'src' field of NXAST_REG_MOVE.\n *\n * The 'max_len' field indicates the number of bytes to send when the chosen\n * port is OFPP_CONTROLLER. Its semantics are equivalent to the 'max_len'\n * field of OFPAT_OUTPUT.\n *\n * The 'zero' field is required to be zeroed for forward compatibility. */\n '''",
"nx_action_output_reg",
"=",
"nstruct",
"(",
"(",
"uint16",
",",
"'ofs_nbits'",
")",
",",
"# /* (ofs << 6) | (n_bits - 1). */",
"(",
"nxm_header",
",",
"'src'",
")",
",",
"# /* Source. */",
"(",
"uint16",
",",
"'max_len'",
")",
",",
"# /* Max length to send to controller. */",
"(",
"uint8",
"[",
"6",
"]",
",",
")",
",",
"# /* Reserved, must be zero. */",
"base",
"=",
"nx_action",
",",
"classifyby",
"=",
"(",
"NXAST_OUTPUT_REG",
",",
")",
",",
"criteria",
"=",
"lambda",
"x",
":",
"getattr",
"(",
"x",
",",
"action_subtype",
")",
"==",
"NXAST_OUTPUT_REG",
",",
"init",
"=",
"packvalue",
"(",
"NXAST_OUTPUT_REG",
",",
"action_subtype",
")",
",",
"name",
"=",
"'nx_action_output_reg'",
",",
"formatter",
"=",
"_createdesc",
"(",
"lambda",
"x",
":",
"'output:%s[%d..%d]'",
"%",
"(",
"x",
"[",
"'src'",
"]",
",",
"x",
"[",
"'ofs_nbits'",
"]",
">>",
"6",
",",
"(",
"x",
"[",
"'ofs_nbits'",
"]",
">>",
"6",
")",
"+",
"(",
"x",
"[",
"'ofs_nbits'",
"]",
"&",
"0x3f",
")",
")",
")",
")",
"namespace",
"[",
"'nx_action_output_reg'",
"]",
"=",
"nx_action_output_reg",
"'''\n /* NXAST_EXIT\n *\n * Discontinues action processing.\n *\n * The NXAST_EXIT action causes the switch to immediately halt processing\n * actions for the flow. Any actions which have already been processed are\n * executed by the switch. However, any further actions, including those which\n * may be in different tables, or different levels of the NXAST_RESUBMIT\n * hierarchy, will be ignored.\n *\n * Uses the nx_action_header structure. */\n \n /* ## --------------------- ## */\n /* ## Requests and replies. ## */\n /* ## --------------------- ## */\n '''",
"'''\n /* NXT_SET_FLOW_FORMAT request. */\n '''",
"nx_set_flow_format",
"=",
"nstruct",
"(",
"(",
"nx_flow_format",
",",
"'format'",
")",
",",
"# /* One of NXFF_*. */",
"name",
"=",
"'nx_set_flow_format'",
",",
"base",
"=",
"nicira_header",
",",
"criteria",
"=",
"lambda",
"x",
":",
"getattr",
"(",
"x",
",",
"msg_subtype",
")",
"==",
"NXT_SET_FLOW_FORMAT",
",",
"classifyby",
"=",
"(",
"NXT_SET_FLOW_FORMAT",
",",
")",
",",
"init",
"=",
"packvalue",
"(",
"NXT_SET_FLOW_FORMAT",
",",
"msg_subtype",
")",
")",
"namespace",
"[",
"'nx_set_flow_format'",
"]",
"=",
"nx_set_flow_format",
"'''\n /* NXT_FLOW_MOD (analogous to OFPT_FLOW_MOD).\n *\n * It is possible to limit flow deletions and modifications to certain\n * cookies by using the NXM_NX_COOKIE(_W) matches. The \"cookie\" field\n * is used only to add or modify flow cookies.\n */\n '''",
"ofp_flow_mod_command",
"=",
"namespace",
"[",
"'ofp_flow_mod_command'",
"]",
"nx_flow_mod",
"=",
"nstruct",
"(",
"(",
"uint64",
",",
"'cookie'",
")",
",",
"# /* Opaque controller-issued identifier. */",
"(",
"ofp_flow_mod_command",
",",
"'command'",
")",
",",
"# /* OFPFC_* + possibly a table ID (see comment",
"# * on struct nx_flow_mod_table_id). */",
"(",
"uint16",
",",
"'idle_timeout'",
")",
",",
"# /* Idle time before discarding (seconds). */",
"(",
"uint16",
",",
"'hard_timeout'",
")",
",",
"# /* Max time before discarding (seconds). */",
"(",
"uint16",
",",
"'priority'",
")",
",",
"# /* Priority level of flow entry. */",
"(",
"uint32",
",",
"'buffer_id'",
")",
",",
"# /* Buffered packet to apply to (or -1).",
"# Not meaningful for OFPFC_DELETE*. */",
"(",
"nx_port_no",
",",
"'out_port'",
")",
",",
"# /* For OFPFC_DELETE* commands, require",
"# matching entries to include this as an",
"# output port. A value of OFPP_NONE",
"# indicates no restriction. */",
"(",
"ofp_flow_mod_flags",
",",
"'flags'",
")",
",",
"# /* One of OFPFF_*. */",
"(",
"uint16",
",",
"'match_len'",
")",
",",
"# /* Size of nx_match. */",
"(",
"uint8",
"[",
"6",
"]",
",",
")",
",",
"# /* Align to 64-bits. */",
"(",
"nx_matches",
",",
")",
",",
"base",
"=",
"nicira_header",
",",
"criteria",
"=",
"lambda",
"x",
":",
"getattr",
"(",
"x",
",",
"msg_subtype",
")",
"==",
"NXT_FLOW_MOD",
",",
"classifyby",
"=",
"(",
"NXT_FLOW_MOD",
",",
")",
",",
"init",
"=",
"packvalue",
"(",
"NXT_FLOW_MOD",
",",
"msg_subtype",
")",
",",
"name",
"=",
"'nx_flow_mod'",
")",
"namespace",
"[",
"'nx_flow_mod'",
"]",
"=",
"nx_flow_mod",
"'''\n /* NXT_FLOW_REMOVED (analogous to OFPT_FLOW_REMOVED).\n *\n * 'table_id' is present only in Open vSwitch 1.11 and later. In earlier\n * versions of Open vSwitch, this is a padding byte that is always zeroed.\n * Therefore, a 'table_id' value of 0 indicates that the table ID is not known,\n * and other values may be interpreted as one more than the flow's former table\n * ID. */\n '''",
"nx_flow_removed",
"=",
"nstruct",
"(",
"(",
"uint64",
",",
"'cookie'",
")",
",",
"# /* Opaque controller-issued identifier. */",
"(",
"uint16",
",",
"'priority'",
")",
",",
"# /* Priority level of flow entry. */",
"(",
"ofp_flow_removed_reason",
",",
"'reason'",
")",
",",
"# /* One of OFPRR_*. */",
"(",
"uint8",
",",
"'table_id'",
")",
",",
"# /* Flow's former table ID, plus one. */",
"(",
"uint32",
",",
"'duration_sec'",
")",
",",
"# /* Time flow was alive in seconds. */",
"(",
"uint32",
",",
"'duration_nsec'",
")",
",",
"# /* Time flow was alive in nanoseconds beyond",
"# duration_sec. */",
"(",
"uint16",
",",
"'idle_timeout'",
")",
",",
"# /* Idle timeout from original flow mod. */",
"(",
"uint16",
",",
"'match_len'",
")",
",",
"# /* Size of nx_match. */",
"(",
"uint64",
",",
"'packet_count'",
")",
",",
"(",
"uint64",
",",
"'byte_count'",
")",
",",
"(",
"nx_matches",
",",
")",
",",
"base",
"=",
"nicira_header",
",",
"criteria",
"=",
"lambda",
"x",
":",
"getattr",
"(",
"x",
",",
"msg_subtype",
")",
"==",
"NXT_FLOW_REMOVED",
",",
"classifyby",
"=",
"(",
"NXT_FLOW_REMOVED",
",",
")",
",",
"init",
"=",
"packvalue",
"(",
"NXT_FLOW_REMOVED",
",",
"msg_subtype",
")",
",",
"name",
"=",
"'nx_flow_removed'",
")",
"namespace",
"[",
"'nx_flow_removed'",
"]",
"=",
"nx_flow_removed",
"'''\n /* Nicira vendor stats request of type NXST_FLOW (analogous to OFPST_FLOW\n * request).\n *\n * It is possible to limit matches to certain cookies by using the\n * NXM_NX_COOKIE and NXM_NX_COOKIE_W matches.\n */\n '''",
"nx_flow_stats_request",
"=",
"nstruct",
"(",
"(",
"nx_port_no",
",",
"'out_port'",
")",
",",
"#/* Require matching entries to include this",
"# as an output port. A value of OFPP_NONE",
"# indicates no restriction. */",
"(",
"uint16",
",",
"'match_len'",
")",
",",
"# /* Length of nx_match. */",
"(",
"uint8",
",",
"'table_id'",
")",
",",
"# /* ID of table to read (from ofp_table_stats)",
"# or 0xff for all tables. */",
"(",
"uint8",
"[",
"3",
"]",
",",
")",
",",
"# /* Align to 64 bits. */",
"(",
"nx_matches",
",",
")",
",",
"base",
"=",
"nx_stats_request",
",",
"criteria",
"=",
"lambda",
"x",
":",
"getattr",
"(",
"x",
",",
"stats_subtype",
")",
"==",
"NXST_FLOW",
",",
"classifyby",
"=",
"(",
"NXST_FLOW",
",",
")",
",",
"init",
"=",
"packvalue",
"(",
"NXST_FLOW",
",",
"stats_subtype",
")",
",",
"name",
"=",
"'nx_flow_stats_request'",
")",
"namespace",
"[",
"'nx_flow_stats_request'",
"]",
"=",
"nx_flow_stats_request",
"'''\n /* Body for Nicira vendor stats reply of type NXST_FLOW (analogous to\n * OFPST_FLOW reply).\n *\n * The values of 'idle_age' and 'hard_age' are only meaningful when talking to\n * a switch that implements the NXT_FLOW_AGE extension. Zero means that the\n * true value is unknown, perhaps because hardware does not track the value.\n * (Zero is also the value that one should ordinarily expect to see talking to\n * a switch that does not implement NXT_FLOW_AGE, since those switches zero the\n * padding bytes that these fields replaced.) A nonzero value X represents X-1\n * seconds. A value of 65535 represents 65534 or more seconds.\n *\n * 'idle_age' is the number of seconds that the flow has been idle, that is,\n * the number of seconds since a packet passed through the flow. 'hard_age' is\n * the number of seconds since the flow was last modified (e.g. OFPFC_MODIFY or\n * OFPFC_MODIFY_STRICT). (The 'duration_*' fields are the elapsed time since\n * the flow was added, regardless of subsequent modifications.)\n *\n * For a flow with an idle or hard timeout, 'idle_age' or 'hard_age',\n * respectively, will ordinarily be smaller than the timeout, but flow\n * expiration times are only approximate and so one must be prepared to\n * tolerate expirations that occur somewhat early or late.\n */\n '''",
"ofp_action",
"=",
"namespace",
"[",
"'ofp_action'",
"]",
"nx_flow_stats",
"=",
"nstruct",
"(",
"(",
"uint16",
",",
"'length'",
")",
",",
"# /* Length of this entry. */",
"(",
"uint8",
",",
"'table_id'",
")",
",",
"# /* ID of table flow came from. */",
"(",
"uint8",
",",
")",
",",
"(",
"uint32",
",",
"'duration_sec'",
")",
",",
"# /* Time flow has been alive in seconds. */",
"(",
"uint32",
",",
"'duration_nsec'",
")",
",",
"# /* Time flow has been alive in nanoseconds",
"# beyond duration_sec. */",
"(",
"uint16",
",",
"'priority'",
")",
",",
"# /* Priority of the entry. */",
"(",
"uint16",
",",
"'idle_timeout'",
")",
",",
"# /* Number of seconds idle before expiration. */",
"(",
"uint16",
",",
"'hard_timeout'",
")",
",",
"# /* Number of seconds before expiration. */",
"(",
"uint16",
",",
"'match_len'",
")",
",",
"# /* Length of nx_match. */",
"(",
"uint16",
",",
"'idle_age'",
")",
",",
"# /* Seconds since last packet, plus one. */",
"(",
"uint16",
",",
"'hard_age'",
")",
",",
"# /* Seconds since last modification, plus one. */",
"(",
"uint64",
",",
"'cookie'",
")",
",",
"# /* Opaque controller-issued identifier. */",
"(",
"uint64",
",",
"'packet_count'",
")",
",",
"# /* Number of packets, UINT64_MAX if unknown. */",
"(",
"uint64",
",",
"'byte_count'",
")",
",",
"# /* Number of bytes, UINT64_MAX if unknown. */",
"#=======================================================================",
"# /* Followed by:",
"# * - Exactly match_len (possibly 0) bytes containing the nx_match, then",
"# * - Exactly (match_len + 7)/8*8 - match_len (between 0 and 7) bytes of",
"# * all-zero bytes, then",
"# * - Actions to fill out the remainder 'length' bytes (always a multiple",
"# * of 8).",
"# */",
"#=======================================================================",
"(",
"nx_matches",
",",
")",
",",
"(",
"ofp_action",
"[",
"0",
"]",
",",
"'actions'",
")",
",",
"name",
"=",
"'nx_flow_stats'",
",",
"size",
"=",
"sizefromlen",
"(",
"65536",
",",
"'length'",
")",
",",
"prepack",
"=",
"packsize",
"(",
"'length'",
")",
")",
"namespace",
"[",
"'nx_flow_stats'",
"]",
"=",
"nx_flow_stats",
"nx_flow_stats_reply",
"=",
"nstruct",
"(",
"(",
"nx_flow_stats",
"[",
"0",
"]",
",",
"'stats'",
")",
",",
"base",
"=",
"nx_stats_reply",
",",
"classifyby",
"=",
"(",
"NXST_FLOW",
",",
")",
",",
"criteria",
"=",
"lambda",
"x",
":",
"getattr",
"(",
"x",
",",
"stats_subtype",
")",
"==",
"NXST_FLOW",
",",
"init",
"=",
"packvalue",
"(",
"NXST_FLOW",
",",
"stats_subtype",
")",
",",
"name",
"=",
"'nx_flow_stats_reply'",
")",
"namespace",
"[",
"'nx_flow_stats_reply'",
"]",
"=",
"nx_flow_stats_reply",
"'''\n /* Nicira vendor stats request of type NXST_AGGREGATE (analogous to\n * OFPST_AGGREGATE request).\n *\n * The reply format is identical to the reply format for OFPST_AGGREGATE,\n * except for the header. */\n '''",
"nx_aggregate_stats_request",
"=",
"nstruct",
"(",
"(",
"nx_port_no",
",",
"'out_port'",
")",
",",
"# /* Require matching entries to include this",
"# as an output port. A value of OFPP_NONE",
"# indicates no restriction. */",
"(",
"uint16",
",",
"'match_len'",
")",
",",
"# /* Length of nx_match. */",
"(",
"uint8",
",",
"'table_id'",
")",
",",
"# /* ID of table to read (from ofp_table_stats)",
"# or 0xff for all tables. */",
"(",
"uint8",
"[",
"3",
"]",
",",
")",
",",
"# /* Align to 64 bits. */",
"#=======================================================================",
"# /* Followed by:",
"# * - Exactly match_len (possibly 0) bytes containing the nx_match, then",
"# * - Exactly (match_len + 7)/8*8 - match_len (between 0 and 7) bytes of",
"# * all-zero bytes, which must also exactly fill out the length of the",
"# * message.",
"# */",
"#=======================================================================",
"(",
"nx_matches",
",",
")",
",",
"base",
"=",
"nx_stats_request",
",",
"name",
"=",
"'nx_aggregate_stats_request'",
",",
"criteria",
"=",
"lambda",
"x",
":",
"getattr",
"(",
"x",
",",
"stats_subtype",
")",
"==",
"NXST_AGGREGATE",
",",
"classifyby",
"=",
"(",
"NXST_AGGREGATE",
",",
")",
",",
"init",
"=",
"packvalue",
"(",
"NXST_AGGREGATE",
",",
"stats_subtype",
")",
",",
"lastextra",
"=",
"False",
")",
"namespace",
"[",
"'nx_aggregate_stats_request'",
"]",
"=",
"nx_aggregate_stats_request",
"nx_aggregate_stats_reply",
"=",
"nstruct",
"(",
"(",
"uint64",
",",
"'packet_count'",
")",
",",
"# /* Number of packets in flows. */",
"(",
"uint64",
",",
"'byte_count'",
")",
",",
"# /* Number of bytes in flows. */",
"(",
"uint32",
",",
"'flow_count'",
")",
",",
"# /* Number of flows. */",
"(",
"uint8",
"[",
"4",
"]",
",",
")",
",",
"base",
"=",
"nx_stats_reply",
",",
"name",
"=",
"'nx_aggregate_stats_reply'",
",",
"criteria",
"=",
"lambda",
"x",
":",
"getattr",
"(",
"x",
",",
"stats_subtype",
")",
"==",
"NXST_AGGREGATE",
",",
"classifyby",
"=",
"(",
"NXST_AGGREGATE",
",",
")",
",",
"init",
"=",
"packvalue",
"(",
"NXST_AGGREGATE",
",",
"stats_subtype",
")",
")",
"namespace",
"[",
"'nx_aggregate_stats_reply'",
"]",
"=",
"nx_aggregate_stats_reply",
"'''\n /* NXT_SET_CONTROLLER_ID.\n *\n * Each OpenFlow controller connection has a 16-bit identifier that is\n * initially 0. This message changes the connection's ID to 'id'.\n *\n * Controller connection IDs need not be unique.\n *\n * The NXAST_CONTROLLER action is the only current user of controller\n * connection IDs. */\n '''",
"nx_controller_id",
"=",
"nstruct",
"(",
"(",
"uint8",
"[",
"6",
"]",
",",
")",
",",
"# /* Must be zero. */",
"(",
"uint16",
",",
"'controller_id'",
")",
",",
"# /* New controller connection ID. */",
"base",
"=",
"nicira_header",
",",
"name",
"=",
"'nx_controller_id'",
",",
"criteria",
"=",
"lambda",
"x",
":",
"getattr",
"(",
"x",
",",
"msg_subtype",
")",
"==",
"NXT_SET_CONTROLLER_ID",
",",
"init",
"=",
"packvalue",
"(",
"NXT_SET_CONTROLLER_ID",
",",
"msg_subtype",
")",
",",
"classifyby",
"=",
"(",
"NXT_SET_CONTROLLER_ID",
",",
")",
")",
"namespace",
"[",
"'nx_controller_id'",
"]",
"=",
"nx_controller_id",
"'''\n /* Action structure for NXAST_CONTROLLER.\n *\n * This generalizes using OFPAT_OUTPUT to send a packet to OFPP_CONTROLLER. In\n * addition to the 'max_len' that OFPAT_OUTPUT supports, it also allows\n * specifying:\n *\n * - 'reason': The reason code to use in the ofp_packet_in or nx_packet_in.\n *\n * - 'controller_id': The ID of the controller connection to which the\n * ofp_packet_in should be sent. The ofp_packet_in or nx_packet_in is\n * sent only to controllers that have the specified controller connection\n * ID. See \"struct nx_controller_id\" for more information. */\n '''",
"nx_action_controller",
"=",
"nstruct",
"(",
"(",
"uint16",
",",
"'max_len'",
")",
",",
"# /* Maximum length to send to controller. */",
"(",
"uint16",
",",
"'controller_id'",
")",
",",
"# /* Controller ID to send packet-in. */",
"(",
"ofp_packet_in_reason",
",",
"'reason'",
")",
",",
"# /* enum ofp_packet_in_reason (OFPR_*). */",
"(",
"uint8",
",",
")",
",",
"base",
"=",
"nx_action",
",",
"name",
"=",
"'nx_action_controller'",
",",
"criteria",
"=",
"lambda",
"x",
":",
"getattr",
"(",
"x",
",",
"action_subtype",
")",
"==",
"NXAST_CONTROLLER",
",",
"classifyby",
"=",
"(",
"NXAST_CONTROLLER",
",",
")",
",",
"init",
"=",
"packvalue",
"(",
"NXAST_CONTROLLER",
",",
"action_subtype",
")",
")",
"namespace",
"[",
"'nx_action_controller'",
"]",
"=",
"nx_action_controller",
"'''\n /* Flow Table Monitoring\n * =====================\n *\n * NXST_FLOW_MONITOR allows a controller to keep track of changes to OpenFlow\n * flow table(s) or subsets of them, with the following workflow:\n *\n * 1. The controller sends an NXST_FLOW_MONITOR request to begin monitoring\n * flows. The 'id' in the request must be unique among all monitors that\n * the controller has started and not yet canceled on this OpenFlow\n * connection.\n *\n * 2. The switch responds with an NXST_FLOW_MONITOR reply. If the request's\n * 'flags' included NXFMF_INITIAL, the reply includes all the flows that\n * matched the request at the time of the request (with event NXFME_ADDED).\n * If 'flags' did not include NXFMF_INITIAL, the reply is empty.\n *\n * The reply uses the xid of the request (as do all replies to OpenFlow\n * requests).\n *\n * 3. Whenever a change to a flow table entry matches some outstanding monitor\n * request's criteria and flags, the switch sends a notification to the\n * controller as an additional NXST_FLOW_MONITOR reply with xid 0.\n *\n * When multiple outstanding monitors match a single change, only a single\n * notification is sent. This merged notification includes the information\n * requested in any of the individual monitors. That is, if any of the\n * matching monitors requests actions (NXFMF_ACTIONS), the notification\n * includes actions, and if any of the monitors request full changes for the\n * controller's own changes (NXFMF_OWN), the controller's own changes will\n * be included in full.\n *\n * 4. The controller may cancel a monitor with NXT_FLOW_MONITOR_CANCEL. No\n * further notifications will be sent on the basis of the canceled monitor\n * afterward.\n *\n *\n * Buffer Management\n * =================\n *\n * OpenFlow messages for flow monitor notifications can overflow the buffer\n * space available to the switch, either temporarily (e.g. due to network\n * conditions slowing OpenFlow traffic) or more permanently (e.g. the sustained\n * rate of flow table change exceeds the network bandwidth between switch and\n * controller).\n *\n * When Open vSwitch's notification buffer space reaches a limiting threshold,\n * OVS reacts as follows:\n *\n * 1. OVS sends an NXT_FLOW_MONITOR_PAUSED message to the controller, following\n * all the already queued notifications. After it receives this message,\n * the controller knows that its view of the flow table, as represented by\n * flow monitor notifications, is incomplete.\n *\n * 2. As long as the notification buffer is not empty:\n *\n * - NXMFE_ADD and NXFME_MODIFIED notifications will not be sent.\n *\n * - NXFME_DELETED notifications will still be sent, but only for flows\n * that existed before OVS sent NXT_FLOW_MONITOR_PAUSED.\n *\n * - NXFME_ABBREV notifications will not be sent. They are treated as\n * the expanded version (and therefore only the NXFME_DELETED\n * components, if any, are sent).\n *\n * 3. When the notification buffer empties, OVS sends NXFME_ADD notifications\n * for flows added since the buffer reached its limit and NXFME_MODIFIED\n * notifications for flows that existed before the limit was reached and\n * changed after the limit was reached.\n *\n * 4. OVS sends an NXT_FLOW_MONITOR_RESUMED message to the controller. After\n * it receives this message, the controller knows that its view of the flow\n * table, as represented by flow monitor notifications, is again complete.\n *\n * This allows the maximum buffer space requirement for notifications to be\n * bounded by the limit plus the maximum number of supported flows.\n *\n *\n * \"Flow Removed\" messages\n * =======================\n *\n * The flow monitor mechanism is independent of OFPT_FLOW_REMOVED and\n * NXT_FLOW_REMOVED. Flow monitor updates for deletion are sent if\n * NXFMF_DELETE is set on a monitor, regardless of whether the\n * OFPFF_SEND_FLOW_REM flag was set when the flow was added. */\n \n /* NXST_FLOW_MONITOR request.\n *\n * The NXST_FLOW_MONITOR request's body consists of an array of zero or more\n * instances of this structure. The request arranges to monitor the flows\n * that match the specified criteria, which are interpreted in the same way as\n * for NXST_FLOW.\n *\n * 'id' identifies a particular monitor for the purpose of allowing it to be\n * canceled later with NXT_FLOW_MONITOR_CANCEL. 'id' must be unique among\n * existing monitors that have not already been canceled.\n *\n * The reply includes the initial flow matches for monitors that have the\n * NXFMF_INITIAL flag set. No single flow will be included in the reply more\n * than once, even if more than one requested monitor matches that flow. The\n * reply will be empty if none of the monitors has NXFMF_INITIAL set or if none\n * of the monitors initially matches any flows.\n *\n * For NXFMF_ADD, an event will be reported if 'out_port' matches against the\n * actions of the flow being added or, for a flow that is replacing an existing\n * flow, if 'out_port' matches against the actions of the flow being replaced.\n * For NXFMF_DELETE, 'out_port' matches against the actions of a flow being\n * deleted. For NXFMF_MODIFY, an event will be reported if 'out_port' matches\n * either the old or the new actions. */\n '''",
"ofp_table",
"=",
"namespace",
"[",
"'ofp_table'",
"]",
"nx_flow_monitor_request",
"=",
"nstruct",
"(",
"(",
"uint32",
",",
"'id'",
")",
",",
"# /* Controller-assigned ID for this monitor. */",
"(",
"nx_flow_monitor_flags",
",",
"'flags'",
")",
",",
"# /* NXFMF_*. */",
"(",
"nx_port_no",
",",
"'out_port'",
")",
",",
"# /* Required output port, if not OFPP_NONE. */",
"(",
"uint16",
",",
"'match_len'",
")",
",",
"# /* Length of nx_match. */",
"(",
"ofp_table",
",",
"'table_id'",
")",
",",
"# /* One table's ID or 0xff for all tables. */",
"(",
"uint8",
"[",
"5",
"]",
",",
")",
",",
"# /* Align to 64 bits (must be zero). */",
"(",
"nx_matches",
",",
")",
",",
"name",
"=",
"'nx_flow_monitor_request'",
",",
"base",
"=",
"nx_stats_request",
",",
"criteria",
"=",
"lambda",
"x",
":",
"getattr",
"(",
"x",
",",
"stats_subtype",
")",
"==",
"NXST_FLOW_MONITOR",
",",
"init",
"=",
"packvalue",
"(",
"NXST_FLOW_MONITOR",
",",
"stats_subtype",
")",
",",
"classifyby",
"=",
"(",
"NXST_FLOW_MONITOR",
",",
")",
")",
"namespace",
"[",
"'nx_flow_monitor_request'",
"]",
"=",
"nx_flow_monitor_request",
"'''\n /* NXST_FLOW_MONITOR reply header.\n *\n * The body of an NXST_FLOW_MONITOR reply is an array of variable-length\n * structures, each of which begins with this header. The 'length' member may\n * be used to traverse the array, and the 'event' member may be used to\n * determine the particular structure.\n *\n * Every instance is a multiple of 8 bytes long. */\n '''",
"nx_flow_update",
"=",
"nstruct",
"(",
"(",
"uint16",
",",
"'length'",
")",
",",
"#/* Length of this entry. */",
"(",
"nx_flow_update_event",
",",
"'event'",
")",
",",
"# /* One of NXFME_*. */",
"name",
"=",
"'nx_flow_update'",
",",
"size",
"=",
"sizefromlen",
"(",
"65536",
",",
"'length'",
")",
",",
"prepack",
"=",
"packsize",
"(",
"'length'",
")",
")",
"namespace",
"[",
"'nx_flow_update'",
"]",
"=",
"nx_flow_update",
"'''\n /* NXST_FLOW_MONITOR reply for NXFME_ADDED, NXFME_DELETED, and\n * NXFME_MODIFIED. */\n '''",
"nx_flow_update_full",
"=",
"nstruct",
"(",
"(",
"ofp_flow_removed_reason",
",",
"'reason'",
")",
",",
"# /* OFPRR_* for NXFME_DELETED, else zero. */",
"(",
"uint16",
",",
"'priority'",
")",
",",
"# /* Priority of the entry. */",
"(",
"uint16",
",",
"'idle_timeout'",
")",
",",
"# /* Number of seconds idle before expiration. */",
"(",
"uint16",
",",
"'hard_timeout'",
")",
",",
"# /* Number of seconds before expiration. */",
"(",
"uint16",
",",
"'match_len'",
")",
",",
"# /* Length of nx_match. */",
"(",
"uint8",
",",
"'table_id'",
")",
",",
"# /* ID of flow's table. */",
"(",
"uint8",
",",
")",
",",
"# /* Reserved, currently zeroed. */",
"(",
"uint64",
",",
"'cookie'",
")",
",",
"# /* Opaque controller-issued identifier. */",
"#=======================================================================",
"# /* Followed by:",
"# * - Exactly match_len (possibly 0) bytes containing the nx_match, then",
"# * - Exactly (match_len + 7)/8*8 - match_len (between 0 and 7) bytes of",
"# * all-zero bytes, then",
"# * - Actions to fill out the remainder 'length' bytes (always a multiple",
"# * of 8). If NXFMF_ACTIONS was not specified, or 'event' is",
"# * NXFME_DELETED, no actions are included.",
"# */",
"#=======================================================================",
"(",
"nx_matches",
",",
")",
",",
"(",
"ofp_action",
"[",
"0",
"]",
",",
"'actions'",
")",
",",
"name",
"=",
"'nx_flow_update_full'",
",",
"base",
"=",
"nx_flow_update",
",",
"criteria",
"=",
"lambda",
"x",
":",
"x",
".",
"event",
"in",
"(",
"NXFME_ADDED",
",",
"NXFME_DELETED",
",",
"NXFME_MODIFIED",
")",
",",
"init",
"=",
"packvalue",
"(",
"NXFME_ADDED",
",",
"'event'",
")",
")",
"namespace",
"[",
"'nx_flow_update_full'",
"]",
"=",
"nx_flow_update_full",
"'''\n /* NXST_FLOW_MONITOR reply for NXFME_ABBREV.\n *\n * When the controller does not specify NXFMF_OWN in a monitor request, any\n * flow tables changes due to the controller's own requests (on the same\n * OpenFlow channel) will be abbreviated, when possible, to this form, which\n * simply specifies the 'xid' of the OpenFlow request (e.g. an OFPT_FLOW_MOD or\n * NXT_FLOW_MOD) that caused the change.\n *\n * Some changes cannot be abbreviated and will be sent in full:\n *\n * - Changes that only partially succeed. This can happen if, for example,\n * a flow_mod with type OFPFC_MODIFY affects multiple flows, but only some\n * of those modifications succeed (e.g. due to hardware limitations).\n *\n * This cannot occur with the current implementation of the Open vSwitch\n * software datapath. It could happen with other datapath implementations.\n *\n * - Changes that race with conflicting changes made by other controllers or\n * other flow_mods (not separated by barriers) by the same controller.\n *\n * This cannot occur with the current Open vSwitch implementation\n * (regardless of datapath) because Open vSwitch internally serializes\n * potentially conflicting changes.\n *\n * A flow_mod that does not change the flow table will not trigger any\n * notification, even an abbreviated one. For example, a \"modify\" or \"delete\"\n * flow_mod that does not match any flows will not trigger a notification.\n * Whether an \"add\" or \"modify\" that specifies all the same parameters that a\n * flow already has triggers a notification is unspecified and subject to\n * change in future versions of Open vSwitch.\n *\n * OVS will always send the notifications for a given flow table change before\n * the reply to a OFPT_BARRIER_REQUEST request that follows the flow table\n * change. Thus, if the controller does not receive an abbreviated (or\n * unabbreviated) notification for a flow_mod before the next\n * OFPT_BARRIER_REPLY, it will never receive one. */\n '''",
"nx_flow_update_abbrev",
"=",
"nstruct",
"(",
"(",
"uint32",
",",
"'xid'",
")",
",",
"# /* Controller-specified xid from flow_mod. */",
"name",
"=",
"'nx_flow_update_abbrev'",
",",
"base",
"=",
"nx_flow_update",
",",
"criteria",
"=",
"lambda",
"x",
":",
"x",
".",
"event",
"==",
"NXFME_ABBREV",
",",
"init",
"=",
"packvalue",
"(",
"NXFME_ABBREV",
",",
"'event'",
")",
")",
"namespace",
"[",
"'nx_flow_update_abbrev'",
"]",
"=",
"nx_flow_update_abbrev",
"nx_flow_monitor_reply",
"=",
"nstruct",
"(",
"(",
"nx_flow_update",
"[",
"0",
"]",
",",
"'stats'",
")",
",",
"base",
"=",
"nx_stats_reply",
",",
"classifyby",
"=",
"(",
"NXST_FLOW_MONITOR",
",",
")",
",",
"name",
"=",
"'nx_flow_monitor_reply'",
",",
"criteria",
"=",
"lambda",
"x",
":",
"getattr",
"(",
"x",
",",
"stats_subtype",
")",
"==",
"NXST_FLOW_MONITOR",
",",
"init",
"=",
"packvalue",
"(",
"NXST_FLOW_MONITOR",
",",
"stats_subtype",
")",
")",
"namespace",
"[",
"'nx_flow_monitor_reply'",
"]",
"=",
"nx_flow_monitor_reply",
"'''\n /* NXT_FLOW_MONITOR_CANCEL.\n *\n * Used by a controller to cancel an outstanding monitor. */\n '''",
"nx_flow_monitor_cancel",
"=",
"nstruct",
"(",
"(",
"uint32",
",",
"'id'",
")",
",",
"# /* 'id' from nx_flow_monitor_request. */",
"name",
"=",
"'nx_flow_monitor_cancel'",
",",
"base",
"=",
"nicira_header",
",",
"classifyby",
"=",
"(",
"NXT_FLOW_MONITOR_CANCEL",
",",
")",
",",
"criteria",
"=",
"lambda",
"x",
":",
"getattr",
"(",
"x",
",",
"msg_subtype",
")",
"==",
"NXT_FLOW_MONITOR_CANCEL",
",",
"init",
"=",
"packvalue",
"(",
"NXT_FLOW_MONITOR_CANCEL",
",",
"msg_subtype",
")",
")",
"namespace",
"[",
"'nx_flow_monitor_cancel'",
"]",
"=",
"nx_flow_monitor_cancel",
"'''\n /* Action structure for NXAST_WRITE_METADATA.\n *\n * Modifies the 'mask' bits of the metadata value. */\n '''",
"nx_action_write_metadata",
"=",
"nstruct",
"(",
"(",
"uint8",
"[",
"6",
"]",
",",
")",
",",
"# /* Must be zero. */",
"(",
"uint64",
",",
"'metadata'",
")",
",",
"# /* Metadata register. */",
"(",
"uint64",
",",
"'mask'",
")",
",",
"# /* Metadata mask. */",
"base",
"=",
"nx_action",
",",
"classifyby",
"=",
"(",
"NXAST_WRITE_METADATA",
",",
")",
",",
"criteria",
"=",
"lambda",
"x",
":",
"getattr",
"(",
"x",
",",
"action_subtype",
")",
"==",
"NXAST_WRITE_METADATA",
",",
"init",
"=",
"packvalue",
"(",
"NXAST_WRITE_METADATA",
",",
"action_subtype",
")",
",",
"name",
"=",
"'nx_action_write_metadata'",
")",
"namespace",
"[",
"'nx_action_write_metadata'",
"]",
"=",
"nx_action_write_metadata",
"'''\n /* Action structure for NXAST_PUSH_MPLS. */\n '''",
"nx_action_push_mpls",
"=",
"nstruct",
"(",
"(",
"ethertype",
",",
"'ethertype'",
")",
",",
"# /* Ethertype */",
"(",
"uint8",
"[",
"4",
"]",
",",
")",
",",
"base",
"=",
"nx_action",
",",
"classifyby",
"=",
"(",
"NXAST_PUSH_MPLS",
",",
")",
",",
"criteria",
"=",
"lambda",
"x",
":",
"getattr",
"(",
"x",
",",
"action_subtype",
")",
"==",
"NXAST_PUSH_MPLS",
",",
"init",
"=",
"packvalue",
"(",
"NXAST_PUSH_MPLS",
",",
"action_subtype",
")",
",",
"name",
"=",
"'nx_action_push_mpls'",
")",
"namespace",
"[",
"'nx_action_push_mpls'",
"]",
"=",
"nx_action_push_mpls",
"'''\n /* Action structure for NXAST_POP_MPLS. */\n '''",
"nx_action_pop_mpls",
"=",
"nstruct",
"(",
"(",
"ethertype",
",",
"'ethertype'",
")",
",",
"# /* Ethertype */",
"(",
"uint8",
"[",
"4",
"]",
",",
")",
",",
"base",
"=",
"nx_action",
",",
"classifyby",
"=",
"(",
"NXAST_POP_MPLS",
",",
")",
",",
"criteria",
"=",
"lambda",
"x",
":",
"getattr",
"(",
"x",
",",
"action_subtype",
")",
"==",
"NXAST_POP_MPLS",
",",
"init",
"=",
"packvalue",
"(",
"NXAST_POP_MPLS",
",",
"action_subtype",
")",
",",
"name",
"=",
"'nx_action_pop_mpls'",
")",
"namespace",
"[",
"'nx_action_pop_mpls'",
"]",
"=",
"nx_action_pop_mpls",
"'''\n /* Action structure for NXAST_SET_MPLS_LABEL. */\n '''",
"nx_action_mpls_label",
"=",
"nstruct",
"(",
"(",
"uint8",
"[",
"2",
"]",
",",
")",
",",
"# /* Must be zero. */",
"(",
"uint32",
",",
"'label'",
")",
",",
"# /* LABEL */",
"base",
"=",
"nx_action",
",",
"classifyby",
"=",
"(",
"NXAST_SET_MPLS_LABEL",
",",
")",
",",
"criteria",
"=",
"lambda",
"x",
":",
"getattr",
"(",
"x",
",",
"action_subtype",
")",
"==",
"NXAST_SET_MPLS_LABEL",
",",
"init",
"=",
"packvalue",
"(",
"NXAST_SET_MPLS_LABEL",
",",
"action_subtype",
")",
",",
"name",
"=",
"'nx_action_mpls_label'",
")",
"namespace",
"[",
"'nx_action_mpls_label'",
"]",
"=",
"nx_action_mpls_label",
"'''\n /* Action structure for NXAST_SET_MPLS_TC. */\n '''",
"nx_action_mpls_tc",
"=",
"nstruct",
"(",
"(",
"uint8",
",",
"'tc'",
")",
",",
"# /* TC */",
"(",
"uint8",
"[",
"5",
"]",
",",
")",
",",
"base",
"=",
"nx_action",
",",
"classifyby",
"=",
"(",
"NXAST_SET_MPLS_TC",
",",
")",
",",
"criteria",
"=",
"lambda",
"x",
":",
"getattr",
"(",
"x",
",",
"action_subtype",
")",
"==",
"NXAST_SET_MPLS_TC",
",",
"init",
"=",
"packvalue",
"(",
"NXAST_SET_MPLS_TC",
",",
"action_subtype",
")",
",",
"name",
"=",
"'nx_action_mpls_tc'",
")",
"namespace",
"[",
"'nx_action_mpls_tc'",
"]",
"=",
"nx_action_mpls_tc",
"'''\n /* Action structure for NXAST_SET_MPLS_TTL. */\n '''",
"nx_action_mpls_ttl",
"=",
"nstruct",
"(",
"(",
"uint8",
",",
"'ttl'",
")",
",",
"# /* TTL */",
"(",
"uint8",
"[",
"5",
"]",
",",
")",
",",
"base",
"=",
"nx_action",
",",
"classifyby",
"=",
"(",
"NXAST_SET_MPLS_TTL",
",",
")",
",",
"criteria",
"=",
"lambda",
"x",
":",
"getattr",
"(",
"x",
",",
"action_subtype",
")",
"==",
"NXAST_SET_MPLS_TTL",
",",
"init",
"=",
"packvalue",
"(",
"NXAST_SET_MPLS_TTL",
",",
"action_subtype",
")",
",",
"name",
"=",
"'nx_action_mpls_ttl'",
")",
"namespace",
"[",
"'nx_action_mpls_ttl'",
"]",
"=",
"nx_action_mpls_ttl",
"'''\n /* Action structure for NXAST_SAMPLE.\n *\n * Samples matching packets with the given probability and sends them\n * each to the set of collectors identified with the given ID. The\n * probability is expressed as a number of packets to be sampled out\n * of USHRT_MAX packets, and must be >0.\n *\n * When sending packet samples to IPFIX collectors, the IPFIX flow\n * record sent for each sampled packet is associated with the given\n * observation domain ID and observation point ID. Each IPFIX flow\n * record contain the sampled packet's headers when executing this\n * rule. If a sampled packet's headers are modified by previous\n * actions in the flow, those modified headers are sent. */\n '''",
"nx_action_sample",
"=",
"nstruct",
"(",
"(",
"uint16",
",",
"'probability'",
")",
",",
"# /* Fraction of packets to sample. */",
"(",
"uint32",
",",
"'collector_set_id'",
")",
",",
"# /* ID of collector set in OVSDB. */",
"(",
"uint32",
",",
"'obs_domain_id'",
")",
",",
"# /* ID of sampling observation domain. */",
"(",
"uint32",
",",
"'obs_point_id'",
")",
",",
"# /* ID of sampling observation point. */",
"base",
"=",
"nx_action",
",",
"classifyby",
"=",
"(",
"NXAST_SAMPLE",
",",
")",
",",
"criteria",
"=",
"lambda",
"x",
":",
"getattr",
"(",
"x",
",",
"action_subtype",
")",
"==",
"NXAST_SAMPLE",
",",
"init",
"=",
"packvalue",
"(",
"NXAST_SAMPLE",
",",
"action_subtype",
")",
",",
"name",
"=",
"'nx_action_sample'",
")",
"namespace",
"[",
"'nx_action_sample'",
"]",
"=",
"nx_action_sample"
] | /* This command enables or disables an Open vSwitch extension that allows a
* controller to specify the OpenFlow table to which a flow should be added,
* instead of having the switch decide which table is most appropriate as
* required by OpenFlow 1.0. Because NXM was designed as an extension to
* OpenFlow 1.0, the extension applies equally to ofp10_flow_mod and
* nx_flow_mod. By default, the extension is disabled.
*
* When this feature is enabled, Open vSwitch treats struct ofp10_flow_mod's
* and struct nx_flow_mod's 16-bit 'command' member as two separate fields.
* The upper 8 bits are used as the table ID, the lower 8 bits specify the
* command as usual. A table ID of 0xff is treated like a wildcarded table ID.
*
* The specific treatment of the table ID depends on the type of flow mod:
*
* - OFPFC_ADD: Given a specific table ID, the flow is always placed in that
* table. If an identical flow already exists in that table only, then it
* is replaced. If the flow cannot be placed in the specified table,
* either because the table is full or because the table cannot support
* flows of the given type, the switch replies with an OFPFMFC_TABLE_FULL
* error. (A controller can distinguish these cases by comparing the
* current and maximum number of entries reported in ofp_table_stats.)
*
* If the table ID is wildcarded, the switch picks an appropriate table
* itself. If an identical flow already exist in the selected flow table,
* then it is replaced. The choice of table might depend on the flows
* that are already in the switch; for example, if one table fills up then
* the switch might fall back to another one.
*
* - OFPFC_MODIFY, OFPFC_DELETE: Given a specific table ID, only flows
* within that table are matched and modified or deleted. If the table ID
* is wildcarded, flows within any table may be matched and modified or
* deleted.
*
* - OFPFC_MODIFY_STRICT, OFPFC_DELETE_STRICT: Given a specific table ID,
* only a flow within that table may be matched and modified or deleted.
* If the table ID is wildcarded and exactly one flow within any table
* matches, then it is modified or deleted; if flows in more than one
* table match, then none is modified or deleted.
*/ | [
"/",
"*",
"This",
"command",
"enables",
"or",
"disables",
"an",
"Open",
"vSwitch",
"extension",
"that",
"allows",
"a",
"*",
"controller",
"to",
"specify",
"the",
"OpenFlow",
"table",
"to",
"which",
"a",
"flow",
"should",
"be",
"added",
"*",
"instead",
"of",
"having",
"the",
"switch",
"decide",
"which",
"table",
"is",
"most",
"appropriate",
"as",
"*",
"required",
"by",
"OpenFlow",
"1",
".",
"0",
".",
"Because",
"NXM",
"was",
"designed",
"as",
"an",
"extension",
"to",
"*",
"OpenFlow",
"1",
".",
"0",
"the",
"extension",
"applies",
"equally",
"to",
"ofp10_flow_mod",
"and",
"*",
"nx_flow_mod",
".",
"By",
"default",
"the",
"extension",
"is",
"disabled",
".",
"*",
"*",
"When",
"this",
"feature",
"is",
"enabled",
"Open",
"vSwitch",
"treats",
"struct",
"ofp10_flow_mod",
"s",
"*",
"and",
"struct",
"nx_flow_mod",
"s",
"16",
"-",
"bit",
"command",
"member",
"as",
"two",
"separate",
"fields",
".",
"*",
"The",
"upper",
"8",
"bits",
"are",
"used",
"as",
"the",
"table",
"ID",
"the",
"lower",
"8",
"bits",
"specify",
"the",
"*",
"command",
"as",
"usual",
".",
"A",
"table",
"ID",
"of",
"0xff",
"is",
"treated",
"like",
"a",
"wildcarded",
"table",
"ID",
".",
"*",
"*",
"The",
"specific",
"treatment",
"of",
"the",
"table",
"ID",
"depends",
"on",
"the",
"type",
"of",
"flow",
"mod",
":",
"*",
"*",
"-",
"OFPFC_ADD",
":",
"Given",
"a",
"specific",
"table",
"ID",
"the",
"flow",
"is",
"always",
"placed",
"in",
"that",
"*",
"table",
".",
"If",
"an",
"identical",
"flow",
"already",
"exists",
"in",
"that",
"table",
"only",
"then",
"it",
"*",
"is",
"replaced",
".",
"If",
"the",
"flow",
"cannot",
"be",
"placed",
"in",
"the",
"specified",
"table",
"*",
"either",
"because",
"the",
"table",
"is",
"full",
"or",
"because",
"the",
"table",
"cannot",
"support",
"*",
"flows",
"of",
"the",
"given",
"type",
"the",
"switch",
"replies",
"with",
"an",
"OFPFMFC_TABLE_FULL",
"*",
"error",
".",
"(",
"A",
"controller",
"can",
"distinguish",
"these",
"cases",
"by",
"comparing",
"the",
"*",
"current",
"and",
"maximum",
"number",
"of",
"entries",
"reported",
"in",
"ofp_table_stats",
".",
")",
"*",
"*",
"If",
"the",
"table",
"ID",
"is",
"wildcarded",
"the",
"switch",
"picks",
"an",
"appropriate",
"table",
"*",
"itself",
".",
"If",
"an",
"identical",
"flow",
"already",
"exist",
"in",
"the",
"selected",
"flow",
"table",
"*",
"then",
"it",
"is",
"replaced",
".",
"The",
"choice",
"of",
"table",
"might",
"depend",
"on",
"the",
"flows",
"*",
"that",
"are",
"already",
"in",
"the",
"switch",
";",
"for",
"example",
"if",
"one",
"table",
"fills",
"up",
"then",
"*",
"the",
"switch",
"might",
"fall",
"back",
"to",
"another",
"one",
".",
"*",
"*",
"-",
"OFPFC_MODIFY",
"OFPFC_DELETE",
":",
"Given",
"a",
"specific",
"table",
"ID",
"only",
"flows",
"*",
"within",
"that",
"table",
"are",
"matched",
"and",
"modified",
"or",
"deleted",
".",
"If",
"the",
"table",
"ID",
"*",
"is",
"wildcarded",
"flows",
"within",
"any",
"table",
"may",
"be",
"matched",
"and",
"modified",
"or",
"*",
"deleted",
".",
"*",
"*",
"-",
"OFPFC_MODIFY_STRICT",
"OFPFC_DELETE_STRICT",
":",
"Given",
"a",
"specific",
"table",
"ID",
"*",
"only",
"a",
"flow",
"within",
"that",
"table",
"may",
"be",
"matched",
"and",
"modified",
"or",
"deleted",
".",
"*",
"If",
"the",
"table",
"ID",
"is",
"wildcarded",
"and",
"exactly",
"one",
"flow",
"within",
"any",
"table",
"*",
"matches",
"then",
"it",
"is",
"modified",
"or",
"deleted",
";",
"if",
"flows",
"in",
"more",
"than",
"one",
"*",
"table",
"match",
"then",
"none",
"is",
"modified",
"or",
"deleted",
".",
"*",
"/"
] | 5039026e0df4ce23003d212358918dbe1a6e1d76 | https://github.com/hubo1016/namedstruct/blob/5039026e0df4ce23003d212358918dbe1a6e1d76/misc/openflow/nicira_ext.py#L1130-L3077 | train | This function creates an Open vSwitch extension. | 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,QhZRiM1q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DLjA_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(1636 - 1587) + '\066', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b111001 + 0o66) + '\x32' + chr(53) + '\x31', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(10360 - 10249) + chr(702 - 653) + '\061', 0o10), nzTpIcepk0o8(chr(0b1110 + 0o42) + chr(7851 - 7740) + chr(50) + '\062' + chr(511 - 463), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(805 - 756) + chr(53) + chr(0b110111), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(53) + chr(0b110000), 14358 - 14350), nzTpIcepk0o8(chr(563 - 515) + chr(0b1101111) + chr(0b110011) + '\066' + chr(1079 - 1031), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(49) + chr(54), 8), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b101111 + 0o4) + chr(49) + chr(0b101101 + 0o10), 0o10), nzTpIcepk0o8('\060' + chr(0b10101 + 0o132) + '\x33' + '\x35' + chr(0b10001 + 0o37), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(0b101000 + 0o12), 31791 - 31783), nzTpIcepk0o8('\060' + chr(0b1100 + 0o143) + chr(0b101110 + 0o4) + chr(0b110011) + '\x31', ord("\x08")), nzTpIcepk0o8(chr(1511 - 1463) + chr(0b1101111) + '\x33' + chr(49) + chr(2788 - 2734), 0b1000), nzTpIcepk0o8(chr(657 - 609) + '\x6f' + chr(1926 - 1875) + chr(53), 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(219 - 168) + '\x34', 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(2227 - 2177) + '\x33' + chr(0b101000 + 0o12), 49666 - 49658), nzTpIcepk0o8(chr(0b10011 + 0o35) + '\x6f' + '\x32' + chr(48), 21321 - 21313), nzTpIcepk0o8(chr(154 - 106) + chr(111) + '\x31' + chr(54) + chr(50), 0o10), nzTpIcepk0o8('\060' + chr(3222 - 3111) + chr(51) + '\060' + chr(52), 17528 - 17520), nzTpIcepk0o8(chr(48) + chr(3278 - 3167) + '\x31' + chr(52) + '\x35', 23119 - 23111), nzTpIcepk0o8(chr(998 - 950) + chr(0b100011 + 0o114) + chr(0b110010) + chr(1817 - 1762) + chr(0b110111), 0b1000), nzTpIcepk0o8(chr(0b1010 + 0o46) + '\x6f' + chr(1522 - 1467) + chr(613 - 561), 0b1000), nzTpIcepk0o8(chr(0b101101 + 0o3) + chr(111) + '\x32' + '\061' + chr(0b110011), 85 - 77), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b10000 + 0o43) + chr(0b110010) + '\x34', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b111100 + 0o63) + chr(0b1101 + 0o52) + '\060', 28440 - 28432), nzTpIcepk0o8(chr(0b0 + 0o60) + '\x6f' + chr(675 - 626) + chr(1368 - 1320) + '\060', 0b1000), nzTpIcepk0o8('\x30' + chr(6913 - 6802) + chr(0b10 + 0o56), 0o10), nzTpIcepk0o8(chr(0b100100 + 0o14) + chr(0b1101111) + chr(0b10010 + 0o37) + '\064' + '\x36', 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110110) + chr(1393 - 1345), 11876 - 11868), nzTpIcepk0o8('\060' + '\157' + '\061' + chr(0b110001) + chr(0b10010 + 0o45), 0b1000), nzTpIcepk0o8(chr(1356 - 1308) + '\x6f' + chr(49) + chr(55) + '\060', 0o10), nzTpIcepk0o8(chr(1593 - 1545) + chr(0b1101111) + chr(2121 - 2072) + chr(2228 - 2178) + '\062', 48636 - 48628), nzTpIcepk0o8('\x30' + chr(11255 - 11144) + chr(0b110001) + chr(0b11 + 0o64) + '\061', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b10011 + 0o134) + '\061' + '\x36' + chr(0b110110), ord("\x08")), nzTpIcepk0o8(chr(0b10100 + 0o34) + '\x6f' + '\x37' + chr(0b100100 + 0o20), 8), nzTpIcepk0o8(chr(0b10110 + 0o32) + chr(0b1101111) + chr(50) + '\064' + '\x35', ord("\x08")), nzTpIcepk0o8(chr(0b10111 + 0o31) + chr(111) + chr(50) + chr(0b110000) + '\x36', 44755 - 44747), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b10010 + 0o41) + chr(0b10011 + 0o36) + '\064', 9461 - 9453), nzTpIcepk0o8('\060' + chr(0b1001010 + 0o45) + chr(0b110001) + chr(49) + chr(0b110100), 0o10), nzTpIcepk0o8(chr(0b101110 + 0o2) + '\x6f' + chr(49) + chr(322 - 267) + chr(0b110110), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(236 - 188) + '\157' + '\x35' + chr(1264 - 1216), 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b' '), chr(0b1100100) + chr(7909 - 7808) + chr(1979 - 1880) + chr(0b10110 + 0o131) + chr(0b1100100) + chr(0b1100101))(chr(2211 - 2094) + chr(116) + chr(0b1100110) + chr(0b101101) + chr(2598 - 2542)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def D6obAEtnAIgm(BawhyueOIhlf, JKXDDSURimpQ, qSm5cD5ZYDzE, PGPWsKVmaGa3, f2jc7mTwEmAC, _nD3A0UB730T, OdJ5rf1Z_Bz_, MGQF7xeFki3S):
with roI3spqORKae(kiF2uyJw41XW, roI3spqORKae(ES5oEprVxulp(b'm\xc8}\xf3\x07w\x87o\xbf\x86k\xf7\xa9n'), '\144' + chr(0b1001100 + 0o31) + chr(0b1010001 + 0o22) + chr(0b1101111) + chr(100) + '\x65')(chr(117) + chr(0b1110100) + chr(8789 - 8687) + '\055' + '\x38'))():
roI3spqORKae(kiF2uyJw41XW, roI3spqORKae(ES5oEprVxulp(b'h\xc0e\xe4\nZ\x87o\xbf\x86k\xf7\xa9n'), chr(0b1100100) + chr(3849 - 3748) + chr(0b1100011) + chr(0b1001 + 0o146) + '\144' + '\145')(chr(0b1110101) + chr(0b1001101 + 0o47) + '\x66' + chr(0b101101) + '\070'))(roI3spqORKae(ES5oEprVxulp(b'g\xceg\xff\x1dM'), '\144' + '\145' + '\143' + chr(0b1101111) + '\144' + chr(0b1100101))(chr(0b101101 + 0o110) + chr(5250 - 5134) + chr(0b101111 + 0o67) + '\055' + chr(0b111000)), roI3spqORKae(ES5oEprVxulp(b'P\xd9h\xf4\x0bA\x9ei'), chr(100) + '\145' + chr(99) + chr(0b1101111) + '\144' + chr(0b110100 + 0o61))('\165' + chr(116) + chr(3554 - 3452) + chr(1961 - 1916) + chr(56)), U_y_06emPdJd)
WElulGHn7b7X = cWIaHfNNiUjG((aZB1vwmdWU_M, roI3spqORKae(ES5oEprVxulp(b'}\xcc}'), chr(0b1100011 + 0o1) + chr(6784 - 6683) + chr(7046 - 6947) + '\x6f' + chr(0b1100100) + '\145')(chr(0b1110101) + chr(0b1011 + 0o151) + chr(0b1100110) + '\055' + '\070')), (aZB1vwmdWU_M[nzTpIcepk0o8('\x30' + chr(2123 - 2012) + chr(0b110111), 0b1000)],), name=roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf6\x03G\x87Q\xa0\x87f\xc6\xba|~\xf6u-\xad\x01'), chr(7292 - 7192) + chr(0b11000 + 0o115) + chr(1858 - 1759) + chr(2269 - 2158) + chr(5180 - 5080) + '\x65')(chr(0b100111 + 0o116) + chr(0b1110100) + chr(0b1100110) + '\055' + '\070'), base=JKXDDSURimpQ, criteria=lambda bI5jsQ9OkQtj: roI3spqORKae(bI5jsQ9OkQtj, _nD3A0UB730T) == NzFAAwHHycua, classifyby=(NzFAAwHHycua,), init=KwYRr6MBamjO(NzFAAwHHycua, _nD3A0UB730T))
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf6\x03G\x87Q\xa0\x87f\xc6\xba|~\xf6u-\xad\x01'), chr(0b111011 + 0o51) + chr(101) + '\143' + chr(0b1101111) + chr(100) + chr(101))(chr(0b1110000 + 0o5) + chr(0b101010 + 0o112) + '\x66' + '\x2d' + '\x38')] = WElulGHn7b7X
roI3spqORKae(ES5oEprVxulp(b'\x04\x89)\xb0O\x08\xd0.\xed\xc7(\xb9\x80EH\xc5C7\x90:\xef}\xc8\x9f}\x14_/~\x10>\x1d+;}\xf1\xa6\xbe)\x0f{\xccz\xe4A\x08\xda!\xc7\xc8"\xb9\xee=<\xba0'), chr(4759 - 4659) + chr(101) + '\143' + chr(9007 - 8896) + chr(0b1100000 + 0o4) + chr(101))(chr(117) + chr(116) + chr(102) + '\055' + chr(0b111000))
JpSO4_2lljaB = cWIaHfNNiUjG((mmxcdOaynu5N, roI3spqORKae(ES5oEprVxulp(b'h\xc6{\xfd\x0e\\'), chr(1395 - 1295) + chr(0b1100101) + chr(0b1010 + 0o131) + chr(0b1101111) + chr(1824 - 1724) + chr(4341 - 4240))(chr(8047 - 7930) + chr(932 - 816) + '\146' + chr(0b101101) + '\070')), name=roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xe3\n\\\xaf~\xac\x8bi\xfc\xbaBu\xf4O\x14\xab\x17\xd2]\xff'), '\x64' + chr(101) + chr(0b1100011) + chr(0b1100001 + 0o16) + chr(0b1100100) + '\x65')(chr(0b1110101) + '\164' + chr(0b11001 + 0o115) + chr(45) + '\070'), base=JKXDDSURimpQ, criteria=lambda bI5jsQ9OkQtj: roI3spqORKae(bI5jsQ9OkQtj, _nD3A0UB730T) == R_xfNiBulYXm, classifyby=(R_xfNiBulYXm,), init=KwYRr6MBamjO(R_xfNiBulYXm, _nD3A0UB730T))
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xe3\n\\\xaf~\xac\x8bi\xfc\xbaBu\xf4O\x14\xab\x17\xd2]\xff'), '\x64' + chr(8301 - 8200) + chr(1072 - 973) + chr(111) + chr(0b11100 + 0o110) + chr(101))('\x75' + chr(0b1110100) + chr(0b1011010 + 0o14) + chr(0b0 + 0o55) + chr(56))] = JpSO4_2lljaB
roI3spqORKae(ES5oEprVxulp(b'\x04\x89)\xb0O\x08\xd0.\xed\xc7(\xb9\x80EH\xc5@3\x87.\xfah\xd4\x9dv`(\x07^.\x14=\x1e\x19I\xd6\xa6\xb8#^A\xefY\xc40x\xb1M\x86\xadV\xc6\x87S5\xb4\x1aR\xe4E\x9f\x1c\xab\xf4\x18`*l\x10oXrYV\x1c\x85\xa6\xe6l0V\xfdV\xc0.k\xbbK\x99\xb7K\xd7\xeeto\xbac\x1b\xa9\x0c\xd3]\xf9\xf4L/ \x12X*X\x1d\t\x13R\xe3\xea\xa3;^?\x87;\xb0 n\xa0Z\x92\xb8C\xda\x85XH\xc5Y<\xeaE\x9fh\xe3\xb12` F\x10oXrYV\x16\x85\xe2\xa5*\x18k\xdbl\xfe\x0cM\x83.\xac\x9ag\xa3\xc4=<\xba0R\xe4E\x9f\x1c\xa1\xde\x18` F\x10oXrY\\\x1c\x85\xa6\xeclS.\xe7Q\xc40x\xb1M\x86\xadV\xc6\x87S<\xf3~\x11\xa8\x10\xdbY\xf8\xf4L(eFS \x179\x10\x13\x1c\xca\xe0\xec8\x16k\x89{\xe5\x03M\xd0z\xa5\x89v\xb9\xbaou\xfdw\x17\xb6\x00\xdb\x1c\xff\xbc]J F\x10oXrYV\x1c\x8f\xa6\xecl^.\x89)\xfd\n[\x83o\xaa\x8d,\xb9\xee5S\xeau\x1c\x82\t\xd0K\xab\xe5\x16s )v\x1f,\r)7\x7f\xee\xc3\x98\x137@\x89h\xfc\x1cG\xd0g\xa3\x8bn\xec\xaaxo\xbad\x1a\xa1E\xdcS\xe4\xbfQ%.O:oXrYV\x1c\x85\xa6\xecft.\x89)\xb0O\x08\xd0.\xed\xc2"\xb9\xee=<\xb70&\xac\x00\x9f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\xe4E\x9f\x1c\xab\xf4\x12`c\t^;\n=\x15\x1aY\xd7\xa6\xa8#\x1b}\x89g\xff\x1b\x06\xd0.\x99\x80g\xb9\xadrr\xeeb\x1d\xa8\t\xdaN\xab\xb9M3tF@=\x1d"\x18\x04Y\xc1\xa6\xb8#^z\xc6e\xf5\x1dI\x84k\xed\x9cj\xfc\xbdx2\x900R\xe4E\x9f\x1c\xab\xf4\x18j\nF\x10oXrYV\x1c\x85\xac\xec\x18\x16k\x89.\xf3\x00G\x9bg\xa8\xcf"\xff\xa7xp\xfe0\x1a\xa5\x16\x9fR\xe4\xf4U%a\x08Y!\x1fr\x0e\x1eY\xcb\xa6\xeb>\x1bo\xdaf\xfeH\x08\x99}\xed\xa7D\xc9\x9cBR\xd5O?\x851\xfct\xa5\xf4\x18\tnFD\'\x11!sV\x1c\x85\xa6\xecl^.\x89#\xb0\x0cI\x83k\xed\x81v\xb9\xbdus\xef|\x16\xe4\x07\xda\x1c\xde\x9dv\x146Ro\x029\nWV\x16\x8a\x8c\xecl^.\x89)\xb0O\x08'), '\x64' + chr(0b1100101) + chr(5449 - 5350) + chr(7740 - 7629) + chr(3503 - 3403) + chr(0b1100101))('\x75' + chr(116) + chr(0b1100110) + chr(0b101101) + '\070')
if roI3spqORKae(ES5oEprVxulp(b'a\xcfy\xcf\x00P\x9d'), chr(0b110 + 0o136) + '\145' + chr(99) + chr(0b1101111) + '\x64' + chr(0b1100101))(chr(348 - 231) + chr(116) + chr(179 - 77) + chr(1802 - 1757) + '\x38') in BawhyueOIhlf:
ghn5ydJF1EEc = BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'a\xcfy\xcf\x00P\x9d'), '\144' + chr(4361 - 4260) + chr(99) + chr(0b1101111) + chr(100) + chr(5184 - 5083))(chr(0b1110101) + chr(9151 - 9035) + chr(9770 - 9668) + chr(0b11001 + 0o24) + chr(0b111000))]
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xfd\x0e\\\x93f'), chr(3934 - 3834) + chr(0b1100101) + chr(0b101010 + 0o71) + '\157' + chr(100) + chr(2850 - 2749))('\x75' + '\x74' + '\146' + chr(0b101101) + '\070')] = ghn5ydJF1EEc
t2BaHktWdydg = BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'a\xcfy\xcf\x00P\x9dQ\xa0\x89q\xf2'), chr(0b1100100) + chr(7209 - 7108) + '\x63' + chr(111) + '\x64' + '\x65')(chr(0b1100100 + 0o21) + '\164' + chr(9984 - 9882) + '\055' + chr(56))]
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xfd\x0e\\\x93f\x92\x85c\xea\xa5'), chr(9949 - 9849) + chr(486 - 385) + '\143' + chr(111) + '\x64' + '\x65')('\165' + chr(0b10111 + 0o135) + chr(102) + chr(45) + chr(1563 - 1507))] = t2BaHktWdydg
I0Wq0N4Blndi = BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'a\xcfy\xcf\x00P\x9dQ\xa3\x87o\xf8\xbdv'), '\144' + chr(0b1000 + 0o135) + chr(2112 - 2013) + '\157' + '\x64' + chr(3747 - 3646))(chr(117) + chr(0b1110100) + '\146' + chr(586 - 541) + chr(2688 - 2632))]
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xfd\x0e\\\x93f\x92\x86m\xf4\xafnw'), '\144' + '\x65' + chr(99) + '\x6f' + '\144' + '\145')(chr(0b1110101) + chr(116) + '\x66' + chr(0b1101 + 0o40) + chr(0b110110 + 0o2))] = I0Wq0N4Blndi
t8iGnBqZQErN = BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'm\xdbl\xf1\x1bM\xafa\xb5\x85'), chr(100) + '\145' + chr(99) + chr(111) + chr(1045 - 945) + '\x65')(chr(0b0 + 0o165) + chr(116) + '\x66' + chr(0b100001 + 0o14) + chr(56))]
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'm\xdbl\xf1\x1bM\xaf`\xb5\x85'), '\144' + chr(0b1100101) + chr(0b1100011) + '\157' + '\x64' + '\x65')(chr(7491 - 7374) + chr(0b100100 + 0o120) + chr(962 - 860) + '\x2d' + '\070')] = t8iGnBqZQErN
O2WyiGLVldPn = cWIaHfNNiUjG(base=I0Wq0N4Blndi, criteria=lambda bI5jsQ9OkQtj: oMP4FjKQY1ET(bI5jsQ9OkQtj.jkp_M8Pp8CIt) <= nzTpIcepk0o8(chr(48) + chr(0b101001 + 0o106) + '\x31', 57808 - 57800), extend={roI3spqORKae(ES5oEprVxulp(b'f\xcch\xf4\nZ'), '\x64' + chr(101) + '\x63' + chr(0b1100100 + 0o13) + '\x64' + '\x65')(chr(0b1110101) + '\164' + chr(102) + '\055' + chr(56)): Xcj02ncq3Zqs}, name=roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xfd\x0e\\\x93f\x92\x86m\xf4\xafnw\xc5u\n\xb0'), '\x64' + chr(2704 - 2603) + '\x63' + chr(111) + chr(100) + '\x65')(chr(0b1110101) + chr(0b11 + 0o161) + '\146' + chr(0b101101) + chr(570 - 514)))
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xfd\x0e\\\x93f\x92\x86m\xf4\xafnw\xc5u\n\xb0'), chr(100) + '\145' + chr(0b1011000 + 0o13) + chr(1708 - 1597) + chr(0b1100100) + '\x65')('\165' + '\x74' + chr(102) + chr(0b100001 + 0o14) + chr(195 - 139))] = O2WyiGLVldPn
iWDccJcUFGXz = cWIaHfNNiUjG(base=t2BaHktWdydg, criteria=lambda bI5jsQ9OkQtj: oMP4FjKQY1ET(bI5jsQ9OkQtj.jkp_M8Pp8CIt) <= nzTpIcepk0o8(chr(0b1101 + 0o43) + chr(0b1011110 + 0o21) + '\x31', 8), extend={roI3spqORKae(ES5oEprVxulp(b'f\xcch\xf4\nZ'), chr(0b1010111 + 0o15) + chr(0b1010 + 0o133) + chr(0b1100011) + chr(0b111011 + 0o64) + chr(2516 - 2416) + chr(101))(chr(0b11100 + 0o131) + '\164' + '\146' + chr(0b101101) + chr(56)): Xcj02ncq3Zqs}, name=roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xfd\x0e\\\x93f\x92\x85c\xea\xa5By\xe2d'), '\x64' + chr(4719 - 4618) + chr(0b11000 + 0o113) + '\x6f' + chr(0b10101 + 0o117) + '\x65')(chr(0b1010111 + 0o36) + '\x74' + chr(0b1100110) + chr(0b100100 + 0o11) + chr(0b111000)))
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xfd\x0e\\\x93f\x92\x85c\xea\xa5By\xe2d'), chr(100) + chr(0b1100101) + '\x63' + chr(0b1010011 + 0o34) + '\x64' + chr(9920 - 9819))(chr(2813 - 2696) + chr(0b1011 + 0o151) + chr(102) + chr(68 - 23) + chr(2675 - 2619))] = iWDccJcUFGXz
else:
ghn5ydJF1EEc = cWIaHfNNiUjG((Xcj02ncq3Zqs, roI3spqORKae(ES5oEprVxulp(b'f\xcch\xf4\nZ'), chr(0b1011011 + 0o11) + chr(101) + chr(99) + chr(3102 - 2991) + chr(8376 - 8276) + chr(0b100000 + 0o105))('\165' + '\164' + chr(0b111001 + 0o55) + '\x2d' + '\070')), name=roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xfd\x0e\\\x93f'), chr(0b1100100) + '\145' + '\143' + '\157' + chr(0b101010 + 0o72) + chr(8954 - 8853))(chr(8614 - 8497) + chr(116) + '\x66' + '\055' + chr(0b111000)), padding=nzTpIcepk0o8('\060' + chr(1750 - 1639) + '\061', 8), size=lambda bI5jsQ9OkQtj: uAQcozzofCU6(bI5jsQ9OkQtj.jkp_M8Pp8CIt) + nzTpIcepk0o8(chr(48) + chr(0b1100011 + 0o14) + chr(1611 - 1559), 0o10))
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xfd\x0e\\\x93f'), chr(0b0 + 0o144) + chr(101) + '\143' + '\157' + chr(6450 - 6350) + chr(2317 - 2216))(chr(6151 - 6034) + chr(116) + chr(0b1100110) + '\x2d' + chr(0b11010 + 0o36))] = ghn5ydJF1EEc
I0Wq0N4Blndi = cWIaHfNNiUjG((v3a5CEHPFxU_, roI3spqORKae(ES5oEprVxulp(b'x\xc8e\xe5\n'), '\x64' + '\x65' + chr(0b110 + 0o135) + '\x6f' + chr(0b1000010 + 0o42) + chr(0b0 + 0o145))(chr(0b1110101) + '\164' + '\x66' + chr(0b101101) + chr(56))), base=ghn5ydJF1EEc, criteria=lambda bI5jsQ9OkQtj: not XYecAYxToPxE(bI5jsQ9OkQtj.jkp_M8Pp8CIt), init=KwYRr6MBamjO(iSipu82TVVUC, roI3spqORKae(ES5oEprVxulp(b'f\xcch\xf4\nZ'), '\144' + chr(4057 - 3956) + chr(0b1100011) + chr(7105 - 6994) + chr(100) + chr(101))('\165' + chr(116) + '\x66' + chr(981 - 936) + chr(56))), name=roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xfd\x0e\\\x93f\x92\x86m\xf4\xafnw'), chr(0b100101 + 0o77) + '\145' + '\143' + chr(6186 - 6075) + chr(0b101000 + 0o74) + chr(3302 - 3201))(chr(117) + '\x74' + chr(0b1100101 + 0o1) + '\x2d' + '\x38'))
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xfd\x0e\\\x93f\x92\x86m\xf4\xafnw'), '\x64' + '\145' + chr(0b1100011) + '\x6f' + chr(0b101001 + 0o73) + '\145')('\x75' + '\164' + '\x66' + chr(45) + '\070')] = I0Wq0N4Blndi
l97BG_OBRJo4 = cWIaHfNNiUjG((v3a5CEHPFxU_, roI3spqORKae(ES5oEprVxulp(b'x\xc8e\xe5\n'), chr(100) + '\145' + chr(0b1100011) + chr(0b1101111) + '\144' + chr(0b1100101))(chr(10404 - 10287) + chr(12141 - 12025) + chr(8901 - 8799) + '\055' + chr(56))), name=roI3spqORKae(ES5oEprVxulp(b'`\xd1d\xcf\x02I\x83e\x92\x9ec\xf5\xbbx'), chr(0b1100100) + chr(101) + chr(0b10010 + 0o121) + '\x6f' + chr(100) + chr(0b1100010 + 0o3))(chr(0b1101110 + 0o7) + chr(116) + chr(0b1100110) + chr(0b101101) + chr(0b111000)), size=lambda bI5jsQ9OkQtj: uAQcozzofCU6(bI5jsQ9OkQtj.jkp_M8Pp8CIt) // nzTpIcepk0o8(chr(340 - 292) + chr(111) + '\x32', 8), padding=nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b10110 + 0o33), 8))
t2BaHktWdydg = cWIaHfNNiUjG((l97BG_OBRJo4,), (v3a5CEHPFxU_, roI3spqORKae(ES5oEprVxulp(b'c\xc8z\xfb'), chr(3581 - 3481) + chr(0b1100101) + '\143' + chr(111) + '\144' + '\145')(chr(0b11101 + 0o130) + '\164' + '\x66' + chr(662 - 617) + '\x38')), base=ghn5ydJF1EEc, criteria=lambda bI5jsQ9OkQtj: XYecAYxToPxE(bI5jsQ9OkQtj.jkp_M8Pp8CIt), init=KwYRr6MBamjO(kTXkcJcOHsRn, roI3spqORKae(ES5oEprVxulp(b'f\xcch\xf4\nZ'), chr(0b1000111 + 0o35) + chr(6719 - 6618) + chr(7138 - 7039) + chr(0b1101111) + chr(100) + '\x65')('\x75' + '\x74' + chr(0b110010 + 0o64) + '\x2d' + '\x38')), name=roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xfd\x0e\\\x93f\x92\x85c\xea\xa5'), chr(100) + chr(0b1010101 + 0o20) + chr(0b1011011 + 0o10) + chr(111) + chr(0b1100100) + '\x65')(chr(0b1110101) + chr(116) + '\x66' + chr(45) + chr(0b101010 + 0o16)))
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xfd\x0e\\\x93f\x92\x85c\xea\xa5'), '\144' + chr(0b1100101) + '\x63' + chr(0b110110 + 0o71) + '\x64' + chr(4618 - 4517))(chr(117) + '\x74' + chr(0b111000 + 0o56) + '\x2d' + chr(1910 - 1854))] = t2BaHktWdydg
def t8iGnBqZQErN(jkp_M8Pp8CIt, uV9iBiw0y_Mp=None, BBM8dxm7YWge=None):
if XYecAYxToPxE(jkp_M8Pp8CIt):
MiCeIbh7eMhq = t2BaHktWdydg.bZWmgf4GjgvH()
e1HrJaQHACnl = uAQcozzofCU6(jkp_M8Pp8CIt) // nzTpIcepk0o8(chr(48) + chr(111) + chr(526 - 476), 8)
else:
MiCeIbh7eMhq = I0Wq0N4Blndi.bZWmgf4GjgvH()
e1HrJaQHACnl = uAQcozzofCU6(jkp_M8Pp8CIt)
MiCeIbh7eMhq.jkp_M8Pp8CIt = jkp_M8Pp8CIt
MiCeIbh7eMhq.uV9iBiw0y_Mp = Xv9fz_Mh3ERJ.create_binary(uV9iBiw0y_Mp, e1HrJaQHACnl)
if XYecAYxToPxE(jkp_M8Pp8CIt):
MiCeIbh7eMhq.BBM8dxm7YWge = Xv9fz_Mh3ERJ.create_binary(BBM8dxm7YWge, e1HrJaQHACnl)
roI3spqORKae(MiCeIbh7eMhq, roI3spqORKae(ES5oEprVxulp(b'Q\xd9h\xf3\x04'), chr(0b1100100) + chr(0b1100101) + '\143' + chr(1011 - 900) + chr(0b1100100) + chr(0b1100100 + 0o1))('\x75' + '\164' + '\146' + '\055' + '\070'))()
roI3spqORKae(MiCeIbh7eMhq, roI3spqORKae(ES5oEprVxulp(b'Q\xc8|\xe4\x00[\x85l\xae\x84c\xea\xbd'), chr(0b100111 + 0o75) + '\145' + chr(0b1100011) + chr(0b1101111) + '\x64' + '\145')(chr(117) + chr(13188 - 13072) + chr(102) + chr(45) + '\070'))()
return MiCeIbh7eMhq
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'm\xdbl\xf1\x1bM\xaf`\xb5\x85'), chr(5648 - 5548) + '\x65' + chr(2652 - 2553) + chr(111) + '\144' + chr(0b1010000 + 0o25))(chr(11423 - 11306) + chr(8769 - 8653) + chr(0b10100 + 0o122) + chr(45) + chr(0b11001 + 0o37))] = t8iGnBqZQErN
O2WyiGLVldPn = I0Wq0N4Blndi
iWDccJcUFGXz = t2BaHktWdydg
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xfd\x0e\\\x93f\x92\x86m\xf4\xafnw\xc5u\n\xb0'), '\144' + chr(0b1100101) + '\x63' + chr(0b110000 + 0o77) + chr(0b1100100) + chr(0b1011 + 0o132))('\165' + chr(0b1110100) + chr(0b1001010 + 0o34) + chr(0b10111 + 0o26) + chr(56))] = O2WyiGLVldPn
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xfd\x0e\\\x93f\x92\x85c\xea\xa5By\xe2d'), chr(0b110 + 0o136) + '\145' + '\x63' + chr(111) + chr(100) + '\x65')(chr(0b101111 + 0o106) + chr(0b1110100) + chr(0b10110 + 0o120) + chr(709 - 664) + '\070')] = iWDccJcUFGXz
(sW0t3kdihJNt,) = (roI3spqORKae(roI3spqORKae(rFFUeiYWzOhx(roI3spqORKae(ES5oEprVxulp(b'`\xc8d\xf5\x0b[\x84|\xb8\x8bv\xb7\xa0|q\xfft\x01\xb0\x17\xca_\xff'), chr(0b1100100) + '\145' + '\x63' + '\x6f' + chr(9209 - 9109) + chr(8366 - 8265))(chr(0b1011111 + 0o26) + '\x74' + chr(0b1000 + 0o136) + chr(45) + chr(0b1 + 0o67)), roI3spqORKae(ES5oEprVxulp(b'|\xc8~\xe4\x16X\x95'), '\144' + '\x65' + '\x63' + '\x6f' + chr(8472 - 8372) + chr(0b1100101))('\165' + chr(11126 - 11010) + chr(102) + '\055' + chr(0b111000))), roI3spqORKae(ES5oEprVxulp(b'`\xc8d\xf5\x0b[\x84|\xb8\x8bv'), chr(5379 - 5279) + '\x65' + '\x63' + '\x6f' + '\144' + chr(0b1100101))(chr(0b1001011 + 0o52) + '\164' + chr(7722 - 7620) + chr(796 - 751) + chr(56))), roI3spqORKae(ES5oEprVxulp(b'|\xc8~\xe4\x16X\x95'), chr(100) + chr(101) + '\143' + '\x6f' + chr(0b1100100) + chr(101))(chr(5362 - 5245) + '\x74' + chr(102) + '\055' + chr(0b111000))),)
(hWf_I6KJKpbC,) = (zGgTE_CdZfvi(roI3spqORKae(ES5oEprVxulp(b'}\xc6j\xfb\n\\'), '\144' + chr(101) + chr(3488 - 3389) + chr(9778 - 9667) + chr(0b1000001 + 0o43) + '\x65')(chr(0b1011111 + 0o26) + chr(5421 - 5305) + chr(0b1100110) + '\x2d' + chr(0b111000))),)
if roI3spqORKae(ES5oEprVxulp(b'g\xd9=\xcf\x0eL\x94|\x92\x8a{\xed\xabn'), chr(0b1011100 + 0o10) + chr(101) + '\143' + '\157' + chr(2289 - 2189) + chr(101))(chr(117) + chr(0b10000 + 0o144) + '\x66' + '\055' + chr(56)) in BawhyueOIhlf:
IPWj_LzbXFPr = BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'g\xd9=\xcf\x0eL\x94|\x92\x8a{\xed\xabn'), '\144' + chr(563 - 462) + chr(0b1010000 + 0o23) + chr(0b1101111) + '\x64' + chr(7108 - 7007))('\165' + '\164' + '\x66' + chr(1250 - 1205) + chr(0b111000))]
else:
IPWj_LzbXFPr = NX_Q3jNq1TRI(roI3spqORKae(ES5oEprVxulp(b':\xda'), '\x64' + chr(0b1100101) + chr(430 - 331) + chr(4410 - 4299) + chr(100) + '\x65')('\165' + chr(116) + chr(0b1100110) + chr(1748 - 1703) + chr(1552 - 1496)), roI3spqORKae(ES5oEprVxulp(b'g\xd9=\xcf\x0eL\x94|\x92\x8a{\xed\xabn'), '\x64' + chr(0b1100101) + '\x63' + chr(10646 - 10535) + chr(0b1100100) + chr(0b1010011 + 0o22))('\x75' + chr(0b11101 + 0o127) + '\x66' + '\x2d' + chr(606 - 550)))
IPWj_LzbXFPr.Cn6yf2gY02SW = lambda bI5jsQ9OkQtj: hWf_I6KJKpbC.inet_ntoa(bI5jsQ9OkQtj)
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'g\xd9=\xcf\x0eL\x94|\x92\x8a{\xed\xabn'), '\x64' + chr(0b110001 + 0o64) + chr(8095 - 7996) + '\157' + chr(2632 - 2532) + chr(0b1100101))(chr(0b1110101) + chr(0b1110100) + chr(0b10001 + 0o125) + chr(0b100101 + 0o10) + '\070')] = IPWj_LzbXFPr
r5xH0Wl3rlgn = cWIaHfNNiUjG(name=roI3spqORKae(ES5oEprVxulp(b'`\xd1d\xcf\x02I\x83e\x92\x81r\xef\xfa'), chr(0b1100100) + chr(0b1111 + 0o126) + chr(4727 - 4628) + chr(0b111 + 0o150) + chr(100) + chr(9867 - 9766))(chr(0b101001 + 0o114) + chr(0b1011100 + 0o30) + chr(0b1001100 + 0o32) + '\055' + chr(56)), base=iWDccJcUFGXz, criteria=lambda bI5jsQ9OkQtj: bI5jsQ9OkQtj.jkp_M8Pp8CIt in (kXB3bPF3QsBc, Xqcu0GMHU9zK, rDzLS7M9htwz, WHm17qxcXU2Z, _36YD_erFCHu, sGnes9muffG8), init=KwYRr6MBamjO(kXB3bPF3QsBc, roI3spqORKae(ES5oEprVxulp(b'f\xcch\xf4\nZ'), chr(2010 - 1910) + chr(0b1111 + 0o126) + chr(0b1011111 + 0o4) + chr(111) + chr(0b1100100) + chr(101))('\x75' + chr(10466 - 10350) + '\146' + chr(0b101101) + '\x38')), extend={roI3spqORKae(ES5oEprVxulp(b'x\xc8e\xe5\n'), chr(100) + chr(0b100001 + 0o104) + chr(0b10000 + 0o123) + chr(111) + chr(0b1100100) + chr(5379 - 5278))('\x75' + '\164' + '\146' + chr(0b101101) + chr(56)): IPWj_LzbXFPr, roI3spqORKae(ES5oEprVxulp(b'c\xc8z\xfb'), chr(8689 - 8589) + chr(8637 - 8536) + chr(0b111010 + 0o51) + chr(111) + chr(100) + '\145')(chr(0b1110101) + '\164' + '\146' + '\x2d' + chr(0b111000)): IPWj_LzbXFPr})
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1d\xcf\x02I\x83e\x92\x81r\xef\xfa'), '\144' + chr(0b111101 + 0o50) + chr(0b1100011) + chr(0b1101 + 0o142) + '\144' + chr(7370 - 7269))(chr(7369 - 7252) + '\164' + '\146' + chr(466 - 421) + '\070')] = r5xH0Wl3rlgn
ZD6ntoYUQ0AO = cWIaHfNNiUjG(name=roI3spqORKae(ES5oEprVxulp(b'`\xd1d\xcf\x01G\x9do\xbe\x83]\xf0\xbek('), '\144' + chr(0b1100101) + chr(1992 - 1893) + '\x6f' + chr(100) + chr(0b101110 + 0o67))('\x75' + chr(0b101111 + 0o105) + '\x66' + '\x2d' + '\x38'), base=O2WyiGLVldPn, criteria=lambda bI5jsQ9OkQtj: bI5jsQ9OkQtj.jkp_M8Pp8CIt in (yIcXfyItprK5, vOk4zJUeOnlN, UKkiRndBwlo0, LExuarZzLiwN, hf2hwaFJlZ3J, ga9qXV6iTlMK), init=KwYRr6MBamjO(yIcXfyItprK5, roI3spqORKae(ES5oEprVxulp(b'f\xcch\xf4\nZ'), chr(0b111110 + 0o46) + chr(0b1100101) + chr(620 - 521) + chr(111) + chr(0b101001 + 0o73) + chr(0b1100101))('\x75' + chr(6818 - 6702) + chr(0b1100110) + '\055' + chr(0b111000))), extend={roI3spqORKae(ES5oEprVxulp(b'x\xc8e\xe5\n'), chr(100) + '\x65' + '\143' + chr(0b1101111) + chr(0b10010 + 0o122) + '\x65')(chr(0b101 + 0o160) + chr(0b101111 + 0o105) + chr(0b111111 + 0o47) + chr(0b100100 + 0o11) + chr(0b111000)): IPWj_LzbXFPr})
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1d\xcf\x01G\x9do\xbe\x83]\xf0\xbek('), '\144' + chr(0b1100101) + chr(4777 - 4678) + '\157' + chr(676 - 576) + '\145')(chr(13292 - 13175) + chr(0b111110 + 0o66) + chr(102) + chr(0b11101 + 0o20) + chr(56))] = ZD6ntoYUQ0AO
if roI3spqORKae(ES5oEprVxulp(b'c\xc8j\xcf\x0eL\x94|\x92\x8a{\xed\xabn'), '\144' + chr(101) + '\143' + chr(0b1101111) + chr(3723 - 3623) + '\145')('\x75' + chr(0b10000 + 0o144) + chr(0b1100110) + chr(0b101101) + chr(0b111000)) in BawhyueOIhlf:
ECwfRBs3rqgm = BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'c\xc8j\xcf\x0eL\x94|\x92\x8a{\xed\xabn'), '\144' + chr(0b101000 + 0o75) + chr(0b1001110 + 0o25) + chr(111) + '\x64' + '\145')(chr(117) + chr(0b10101 + 0o137) + chr(102) + chr(0b101101) + chr(0b111000 + 0o0))]
else:
ECwfRBs3rqgm = sW0t3kdihJNt()
ECwfRBs3rqgm.Cn6yf2gY02SW = lambda bI5jsQ9OkQtj: roI3spqORKae(ES5oEprVxulp(b'4'), '\144' + chr(101) + chr(1261 - 1162) + '\157' + '\x64' + chr(0b11 + 0o142))(chr(2296 - 2179) + chr(0b1110100) + chr(0b101100 + 0o72) + chr(1857 - 1812) + chr(0b111000)).Y4yM9BcfTCNq((roI3spqORKae(ES5oEprVxulp(b'+\x99;\xc8'), '\x64' + '\x65' + chr(1598 - 1499) + '\157' + chr(403 - 303) + '\x65')('\x75' + chr(0b1110 + 0o146) + '\146' + chr(0b100011 + 0o12) + chr(0b111000)) % (teUmM7cKWZUa,) for teUmM7cKWZUa in MdkNqd1bagO6(bI5jsQ9OkQtj)))
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'c\xc8j\xcf\x0eL\x94|\x92\x8a{\xed\xabn'), '\x64' + chr(0b11000 + 0o115) + '\x63' + chr(4564 - 4453) + chr(5064 - 4964) + chr(101))(chr(11540 - 11423) + '\x74' + chr(0b1100110) + chr(0b101101) + '\070')] = ECwfRBs3rqgm
rSUhIpM4BEwQ = cWIaHfNNiUjG(name=roI3spqORKae(ES5oEprVxulp(b'`\xd1d\xcf\x02I\x83e\x92\x8dv\xf1'), chr(3922 - 3822) + chr(0b1100101) + chr(0b101011 + 0o70) + chr(0b1101111) + chr(100) + chr(0b1011101 + 0o10))(chr(0b101100 + 0o111) + '\x74' + chr(0b11110 + 0o110) + '\055' + '\x38'), base=iWDccJcUFGXz, criteria=lambda bI5jsQ9OkQtj: bI5jsQ9OkQtj.jkp_M8Pp8CIt in (kTXkcJcOHsRn, qab9UKhq1BtK), init=KwYRr6MBamjO(kTXkcJcOHsRn, roI3spqORKae(ES5oEprVxulp(b'f\xcch\xf4\nZ'), '\x64' + chr(0b1000101 + 0o40) + chr(99) + chr(6860 - 6749) + chr(0b1100100) + chr(3336 - 3235))(chr(0b1100100 + 0o21) + chr(116) + '\146' + '\055' + '\x38')), extend={roI3spqORKae(ES5oEprVxulp(b'x\xc8e\xe5\n'), chr(100) + '\145' + chr(99) + chr(0b1101111) + '\x64' + chr(101))('\x75' + chr(6856 - 6740) + '\x66' + chr(0b100111 + 0o6) + chr(0b111000)): ECwfRBs3rqgm, roI3spqORKae(ES5oEprVxulp(b'c\xc8z\xfb'), chr(100) + chr(5895 - 5794) + chr(99) + chr(1521 - 1410) + chr(0b101100 + 0o70) + chr(2677 - 2576))('\165' + chr(9567 - 9451) + '\146' + chr(1813 - 1768) + '\x38'): ECwfRBs3rqgm})
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1d\xcf\x02I\x83e\x92\x8dv\xf1'), chr(3518 - 3418) + chr(0b1011010 + 0o13) + '\x63' + chr(111) + chr(0b101011 + 0o71) + '\145')(chr(117) + chr(10980 - 10864) + chr(0b1100110) + chr(0b101101) + '\x38')] = rSUhIpM4BEwQ
H11l6MwDCDA7 = cWIaHfNNiUjG(name=roI3spqORKae(ES5oEprVxulp(b'`\xd1d\xcf\x01G\x9do\xbe\x83]\xfc\xbau'), chr(100) + chr(0b1100101) + chr(0b10011 + 0o120) + chr(0b1101111) + chr(4061 - 3961) + chr(101))('\x75' + chr(0b1110100) + '\146' + chr(0b11001 + 0o24) + chr(0b111000)), base=O2WyiGLVldPn, criteria=lambda bI5jsQ9OkQtj: bI5jsQ9OkQtj.jkp_M8Pp8CIt in (yA6c4k3WaFqa, RBgjJ673UoBI, AvSErC0eT6cE, z1aRaH8aRTOf, rrZ7D_p_tnsS, Rjwoz90ujggX), init=KwYRr6MBamjO(yA6c4k3WaFqa, roI3spqORKae(ES5oEprVxulp(b'f\xcch\xf4\nZ'), chr(3368 - 3268) + '\x65' + '\143' + chr(3882 - 3771) + '\144' + '\145')('\165' + '\x74' + '\x66' + chr(2003 - 1958) + '\070')), extend={roI3spqORKae(ES5oEprVxulp(b'x\xc8e\xe5\n'), chr(0b1100100) + chr(101) + chr(0b1100011) + '\157' + '\x64' + chr(0b11101 + 0o110))(chr(1931 - 1814) + chr(116) + '\x66' + chr(45) + chr(0b11000 + 0o40)): ECwfRBs3rqgm})
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1d\xcf\x01G\x9do\xbe\x83]\xfc\xbau'), chr(0b1100100) + '\x65' + chr(9282 - 9183) + chr(111) + chr(8116 - 8016) + chr(0b1100101))(chr(0b1110101) + chr(0b1110100) + chr(102) + chr(45) + chr(0b101010 + 0o16))] = H11l6MwDCDA7
wexS2yvaBOFP = BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'a\xcfy\xcf\x1fG\x82z\x92\x86m'), chr(100) + chr(0b1100101) + '\143' + '\x6f' + chr(0b110110 + 0o56) + chr(0b1100101))(chr(10531 - 10414) + chr(0b11111 + 0o125) + chr(0b1100110) + chr(0b101101 + 0o0) + chr(0b110101 + 0o3))]
Bfxk_4bsy0H6 = p6_oLiI_IXEH(roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xe0\x00Z\x84Q\xa3\x87'), chr(3447 - 3347) + chr(4315 - 4214) + chr(0b101110 + 0o65) + '\157' + chr(0b1100100) + chr(1057 - 956))(chr(1043 - 926) + chr(0b1110100) + chr(9589 - 9487) + '\x2d' + chr(2507 - 2451)), None, ZblOtLLm55lR, **znjnJWK64FDT(((B6UAF1zReOyJ, r7AA1pbLjb44 & nzTpIcepk0o8('\x30' + '\x6f' + '\061' + '\067' + chr(55) + '\x37' + chr(232 - 177) + '\067', 0b1000)) for (B6UAF1zReOyJ, r7AA1pbLjb44) in wexS2yvaBOFP.getDict().Y_nNEzH43vXi())))
x3zggQY5QuqC = sW0t3kdihJNt()
x3zggQY5QuqC.Cn6yf2gY02SW = lambda bI5jsQ9OkQtj: Bfxk_4bsy0H6.Cn6yf2gY02SW(Bfxk_4bsy0H6.zgDfHOdKcvCW(bI5jsQ9OkQtj)[nzTpIcepk0o8(chr(1783 - 1735) + chr(10774 - 10663) + '\060', 8)])
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xe0\x00Z\x84Q\xa3\x87'), chr(7523 - 7423) + chr(7143 - 7042) + '\x63' + chr(9106 - 8995) + chr(5589 - 5489) + chr(0b111 + 0o136))(chr(117) + chr(0b1110100) + chr(102) + chr(414 - 369) + chr(0b100000 + 0o30))] = Bfxk_4bsy0H6
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1d\xcf\x1fG\x82z\x92\x86m\xc6\xbc|k'), chr(100) + '\145' + '\143' + '\157' + chr(0b1100100 + 0o0) + chr(0b1101 + 0o130))(chr(117) + '\164' + chr(890 - 788) + '\055' + chr(959 - 903))] = x3zggQY5QuqC
m2xq8BJtfJx5 = cWIaHfNNiUjG(name=roI3spqORKae(ES5oEprVxulp(b'`\xd1d\xcf\x01G\x9do\xbe\x83]\xe9\xa1oh'), '\x64' + chr(5977 - 5876) + chr(99) + chr(111) + chr(0b1100100) + '\145')(chr(0b1110101) + chr(0b110101 + 0o77) + chr(2605 - 2503) + '\055' + chr(0b111000)), base=O2WyiGLVldPn, criteria=lambda bI5jsQ9OkQtj: bI5jsQ9OkQtj.jkp_M8Pp8CIt == iSipu82TVVUC, init=KwYRr6MBamjO(iSipu82TVVUC, roI3spqORKae(ES5oEprVxulp(b'f\xcch\xf4\nZ'), chr(0b110100 + 0o60) + chr(7829 - 7728) + chr(0b1100011) + chr(111) + chr(100) + chr(0b1100101))(chr(0b1110101) + chr(7740 - 7624) + '\x66' + chr(968 - 923) + '\070')), extend={roI3spqORKae(ES5oEprVxulp(b'x\xc8e\xe5\n'), chr(0b11110 + 0o106) + '\x65' + '\143' + chr(0b10010 + 0o135) + '\x64' + chr(0b1100101))(chr(0b10100 + 0o141) + '\164' + '\146' + chr(45) + '\070'): x3zggQY5QuqC})
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1d\xcf\x01G\x9do\xbe\x83]\xe9\xa1oh'), chr(100) + chr(0b1011111 + 0o6) + chr(99) + chr(111) + chr(0b110100 + 0o60) + chr(0b11 + 0o142))(chr(117) + chr(116) + chr(5299 - 5197) + chr(0b101101) + '\070')] = m2xq8BJtfJx5
if roI3spqORKae(ES5oEprVxulp(b'k\xdda\xe4\x16X\x95Q\xbf\x89u'), chr(0b1100100) + '\145' + chr(0b1001110 + 0o25) + '\x6f' + '\x64' + '\145')(chr(0b1110101) + chr(116) + chr(0b1100110) + '\x2d' + '\x38') in BawhyueOIhlf:
XXxp7wal6m10 = BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'k\xdda\xe4\x16X\x95Q\xbf\x89u'), chr(0b1100100) + chr(574 - 473) + chr(0b1100011) + chr(5824 - 5713) + chr(0b1100100) + chr(4026 - 3925))(chr(0b1110101) + chr(116) + '\x66' + chr(0b100 + 0o51) + chr(56))]
else:
XXxp7wal6m10 = sW0t3kdihJNt()
XXxp7wal6m10.Cn6yf2gY02SW = lambda bI5jsQ9OkQtj: RHqHaEK2kxh8.Cn6yf2gY02SW(RHqHaEK2kxh8.zgDfHOdKcvCW(bI5jsQ9OkQtj)[nzTpIcepk0o8(chr(0b110000) + chr(0b11110 + 0o121) + chr(1857 - 1809), 8)])
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'k\xdda\xe4\x16X\x95Q\xbf\x89u'), chr(0b110010 + 0o62) + '\x65' + chr(9068 - 8969) + '\157' + '\144' + chr(101))(chr(8643 - 8526) + '\x74' + chr(10067 - 9965) + chr(0b101101) + '\070')] = XXxp7wal6m10
zPPIbLsdLp7c = cWIaHfNNiUjG(name=roI3spqORKae(ES5oEprVxulp(b'`\xd1d\xcf\x01G\x9do\xbe\x83]\xfc\xbauy\xe8d\x0b\xb4\x00'), chr(0b100001 + 0o103) + '\x65' + chr(99) + chr(5377 - 5266) + '\144' + '\x65')('\x75' + chr(348 - 232) + '\146' + chr(0b1110 + 0o37) + chr(951 - 895)), base=O2WyiGLVldPn, criteria=lambda bI5jsQ9OkQtj: bI5jsQ9OkQtj.jkp_M8Pp8CIt == K65zzFr0C4Rh, init=KwYRr6MBamjO(K65zzFr0C4Rh, roI3spqORKae(ES5oEprVxulp(b'f\xcch\xf4\nZ'), chr(0b1100010 + 0o2) + chr(0b1100101) + chr(5444 - 5345) + chr(111) + chr(0b110000 + 0o64) + chr(101))('\x75' + '\x74' + '\x66' + '\x2d' + '\x38')), extend={roI3spqORKae(ES5oEprVxulp(b'x\xc8e\xe5\n'), chr(4285 - 4185) + chr(101) + chr(0b1100011) + chr(111) + chr(7385 - 7285) + chr(4073 - 3972))(chr(6024 - 5907) + chr(5477 - 5361) + chr(1475 - 1373) + chr(45) + '\x38'): XXxp7wal6m10})
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1d\xcf\x01G\x9do\xbe\x83]\xfc\xbauy\xe8d\x0b\xb4\x00'), '\144' + '\145' + chr(0b1100011) + '\157' + '\x64' + chr(101))('\165' + chr(0b1010110 + 0o36) + '\x66' + '\x2d' + '\x38')] = zPPIbLsdLp7c
if roI3spqORKae(ES5oEprVxulp(b'o\xdby\xff\x1fw\x82o\xba'), '\x64' + '\x65' + '\x63' + chr(1230 - 1119) + '\x64' + chr(8264 - 8163))(chr(2728 - 2611) + chr(0b1110100) + '\146' + chr(45) + '\x38') in BawhyueOIhlf:
FDS1bU1nKo5S = BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'o\xdby\xff\x1fw\x82o\xba'), '\144' + chr(0b1100101) + '\x63' + '\x6f' + chr(100) + '\x65')(chr(5021 - 4904) + chr(0b1001100 + 0o50) + '\x66' + '\x2d' + chr(1216 - 1160))]
else:
FDS1bU1nKo5S = sW0t3kdihJNt()
FDS1bU1nKo5S.Cn6yf2gY02SW = lambda bI5jsQ9OkQtj: Eum_iKMr2c9p.Cn6yf2gY02SW(Eum_iKMr2c9p.zgDfHOdKcvCW(bI5jsQ9OkQtj)[nzTpIcepk0o8(chr(727 - 679) + chr(0b1101111) + chr(469 - 421), 8)])
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'o\xdby\xff\x1fw\x82o\xba'), '\x64' + '\x65' + chr(2447 - 2348) + chr(975 - 864) + chr(0b100000 + 0o104) + chr(0b1001101 + 0o30))(chr(117) + '\x74' + '\x66' + '\x2d' + '\070')] = FDS1bU1nKo5S
AFqDEvkXeLcP = cWIaHfNNiUjG(name=roI3spqORKae(ES5oEprVxulp(b'`\xd1d\xcf\x01G\x9do\xbe\x83]\xf8\xbcms\xeas\x1d\xa0\x00'), chr(5672 - 5572) + chr(0b1100101) + chr(0b11100 + 0o107) + chr(1915 - 1804) + chr(0b1100100) + '\145')(chr(0b1001 + 0o154) + chr(0b1110100) + '\146' + '\x2d' + '\x38'), base=O2WyiGLVldPn, criteria=lambda bI5jsQ9OkQtj: bI5jsQ9OkQtj.jkp_M8Pp8CIt == fy6vzSyW4QKQ, init=KwYRr6MBamjO(fy6vzSyW4QKQ, roI3spqORKae(ES5oEprVxulp(b'f\xcch\xf4\nZ'), '\144' + chr(101) + chr(0b1100011) + chr(111) + chr(5181 - 5081) + chr(0b100010 + 0o103))('\x75' + '\164' + '\146' + '\055' + chr(0b111000))), extend={roI3spqORKae(ES5oEprVxulp(b'x\xc8e\xe5\n'), chr(0b110011 + 0o61) + chr(101) + chr(99) + chr(0b1010010 + 0o35) + chr(100) + '\145')(chr(12652 - 12535) + '\164' + chr(1485 - 1383) + chr(1121 - 1076) + chr(0b11 + 0o65)): FDS1bU1nKo5S})
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1d\xcf\x01G\x9do\xbe\x83]\xf8\xbcms\xeas\x1d\xa0\x00'), chr(0b101111 + 0o65) + chr(0b1100101) + '\143' + chr(0b1101111) + '\144' + '\145')(chr(9377 - 9260) + chr(0b111111 + 0o65) + chr(102) + '\055' + chr(2655 - 2599))] = AFqDEvkXeLcP
if roI3spqORKae(ES5oEprVxulp(b'g\xd9V\xe0\x1dG\x84a\xae\x87n\xc6\xbc|k'), chr(0b1100100) + chr(101) + chr(99) + '\x6f' + chr(2213 - 2113) + chr(0b11000 + 0o115))('\x75' + '\x74' + '\x66' + chr(0b10100 + 0o31) + chr(2799 - 2743)) in BawhyueOIhlf:
odxN2eL9NKKb = BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'g\xd9V\xe0\x1dG\x84a\xae\x87n\xc6\xbc|k'), chr(100) + chr(0b1000100 + 0o41) + chr(6172 - 6073) + '\157' + chr(0b11010 + 0o112) + chr(2440 - 2339))('\x75' + chr(0b1110100) + chr(1356 - 1254) + chr(0b101101) + chr(3086 - 3030))]
else:
odxN2eL9NKKb = sW0t3kdihJNt()
odxN2eL9NKKb.Cn6yf2gY02SW = lambda bI5jsQ9OkQtj: suQTakkDSbtj.Cn6yf2gY02SW(suQTakkDSbtj.zgDfHOdKcvCW(bI5jsQ9OkQtj)[nzTpIcepk0o8('\x30' + chr(0b1010010 + 0o35) + '\x30', 8)])
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'g\xd9V\xe0\x1dG\x84a\xae\x87n\xc6\xbc|k'), chr(0b1100100) + chr(0b1 + 0o144) + '\143' + '\x6f' + '\144' + chr(3925 - 3824))(chr(8401 - 8284) + '\164' + chr(102) + '\055' + '\070')] = odxN2eL9NKKb
xJUuPz7JCgkz = cWIaHfNNiUjG(name=roI3spqORKae(ES5oEprVxulp(b'`\xd1d\xcf\x01G\x9do\xbe\x83]\xf0\xbeBl\xe8\x7f\x06\xab\x06\xd0P'), chr(0b11000 + 0o114) + chr(0b1100101) + '\x63' + chr(0b1101111) + '\x64' + '\x65')('\165' + '\x74' + '\x66' + chr(45) + chr(0b110101 + 0o3)), base=O2WyiGLVldPn, criteria=lambda bI5jsQ9OkQtj: bI5jsQ9OkQtj.jkp_M8Pp8CIt == m0CT76AsilS3, init=KwYRr6MBamjO(m0CT76AsilS3, roI3spqORKae(ES5oEprVxulp(b'f\xcch\xf4\nZ'), '\x64' + chr(0b101010 + 0o73) + chr(99) + chr(0b11110 + 0o121) + '\x64' + chr(101))(chr(117) + '\x74' + chr(10134 - 10032) + chr(45) + chr(0b111000))), extend={roI3spqORKae(ES5oEprVxulp(b'x\xc8e\xe5\n'), chr(793 - 693) + '\x65' + chr(0b1100011) + '\157' + chr(0b1100100) + '\x65')(chr(117) + chr(116) + chr(0b1100100 + 0o2) + chr(45) + chr(2210 - 2154)): odxN2eL9NKKb})
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1d\xcf\x01G\x9do\xbe\x83]\xf0\xbeBl\xe8\x7f\x06\xab\x06\xd0P'), '\144' + chr(0b1100101) + '\x63' + '\157' + '\x64' + chr(0b1100101))('\165' + chr(0b1101 + 0o147) + chr(0b1100110) + chr(0b100001 + 0o14) + '\x38')] = xJUuPz7JCgkz
if roI3spqORKae(ES5oEprVxulp(b'g\xd9?\xcf\x0eL\x94|\x92\x8a{\xed\xabn'), chr(100) + '\145' + chr(0b1100011) + '\x6f' + '\144' + chr(101))(chr(117) + chr(0b1110100) + chr(0b111001 + 0o55) + '\x2d' + chr(0b100010 + 0o26)) in BawhyueOIhlf:
kjtOnFDoa4CM = cWIaHfNNiUjG(name=roI3spqORKae(ES5oEprVxulp(b'`\xd1d\xcf\x01G\x9do\xbe\x83]\xf0\xbek*'), '\x64' + chr(0b1100101) + chr(0b11111 + 0o104) + chr(0b1101111) + '\x64' + chr(8550 - 8449))(chr(117) + '\164' + chr(102) + '\x2d' + '\x38'), base=O2WyiGLVldPn, criteria=lambda bI5jsQ9OkQtj: bI5jsQ9OkQtj.jkp_M8Pp8CIt in (F9LI0BeRKCdn, lMk1V3tBDw0s, rbjlokWyVdfR), init=KwYRr6MBamjO(F9LI0BeRKCdn, roI3spqORKae(ES5oEprVxulp(b'f\xcch\xf4\nZ'), '\x64' + '\x65' + chr(5489 - 5390) + chr(0b1101111) + chr(100) + chr(0b1000011 + 0o42))('\165' + chr(116) + chr(0b1001000 + 0o36) + chr(45) + chr(2371 - 2315))), extend={roI3spqORKae(ES5oEprVxulp(b'x\xc8e\xe5\n'), chr(0b1100100) + chr(0b10101 + 0o120) + chr(99) + chr(0b1101111) + chr(8495 - 8395) + '\x65')(chr(4036 - 3919) + '\164' + '\146' + chr(1916 - 1871) + chr(0b101100 + 0o14)): M7KAUIXJuoSU})
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1d\xcf\x01G\x9do\xbe\x83]\xf0\xbek*'), chr(0b1100100) + chr(101) + chr(99) + '\157' + chr(0b101 + 0o137) + '\x65')(chr(0b100111 + 0o116) + chr(116) + chr(0b1100110) + chr(45) + chr(0b111000))] = kjtOnFDoa4CM
XzFQ8pitVhl3 = cWIaHfNNiUjG(name=roI3spqORKae(ES5oEprVxulp(b'`\xd1d\xcf\x02I\x83e\x92\x81r\xef\xf8'), chr(100) + chr(101) + '\143' + '\x6f' + chr(0b11000 + 0o114) + '\145')(chr(117) + chr(0b101110 + 0o106) + '\146' + chr(197 - 152) + '\070'), base=iWDccJcUFGXz, criteria=lambda bI5jsQ9OkQtj: bI5jsQ9OkQtj.jkp_M8Pp8CIt in (vUGmKB_JqoWk, ED8M61qjk8Iv), init=KwYRr6MBamjO(vUGmKB_JqoWk, roI3spqORKae(ES5oEprVxulp(b'f\xcch\xf4\nZ'), '\x64' + '\145' + '\143' + chr(0b11001 + 0o126) + '\x64' + '\145')(chr(0b1110101) + chr(0b1110100) + chr(0b1100110) + chr(303 - 258) + chr(56))), extend={roI3spqORKae(ES5oEprVxulp(b'x\xc8e\xe5\n'), chr(9814 - 9714) + '\x65' + '\x63' + chr(111) + chr(0b1000 + 0o134) + chr(101))('\165' + chr(0b1110100) + chr(4986 - 4884) + chr(944 - 899) + chr(2867 - 2811)): M7KAUIXJuoSU, roI3spqORKae(ES5oEprVxulp(b'c\xc8z\xfb'), '\144' + '\x65' + '\x63' + chr(0b1101111) + '\144' + chr(0b1100101))('\165' + chr(13318 - 13202) + chr(7859 - 7757) + chr(1888 - 1843) + chr(0b111000)): M7KAUIXJuoSU})
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1d\xcf\x02I\x83e\x92\x81r\xef\xf8'), '\144' + chr(0b1001100 + 0o31) + chr(7758 - 7659) + '\157' + chr(0b1010011 + 0o21) + chr(101))('\165' + '\x74' + chr(102) + '\x2d' + chr(0b10011 + 0o45))] = XzFQ8pitVhl3
d8z6_DAMwEfW = sW0t3kdihJNt()
d8z6_DAMwEfW.Cn6yf2gY02SW = lambda bI5jsQ9OkQtj: mLF6aM4NyGWH.Cn6yf2gY02SW(mLF6aM4NyGWH.zgDfHOdKcvCW(bI5jsQ9OkQtj)[nzTpIcepk0o8('\x30' + chr(111) + chr(0b10 + 0o56), 8)])
L3AJlLbSq2ON = cWIaHfNNiUjG(name=roI3spqORKae(ES5oEprVxulp(b'`\xd1d\xcf\x01G\x9do\xbe\x83]\xf0\xbe{n\xfbw'), chr(9662 - 9562) + chr(10055 - 9954) + chr(0b100011 + 0o100) + chr(111) + chr(0b1100100) + chr(0b1100101))('\165' + chr(2723 - 2607) + chr(8549 - 8447) + chr(0b101101) + '\x38'), base=O2WyiGLVldPn, criteria=lambda bI5jsQ9OkQtj: bI5jsQ9OkQtj.jkp_M8Pp8CIt == XFGoGzn3aG_C, init=KwYRr6MBamjO(XFGoGzn3aG_C, roI3spqORKae(ES5oEprVxulp(b'f\xcch\xf4\nZ'), chr(0b1100100) + chr(7906 - 7805) + '\143' + chr(4597 - 4486) + chr(0b1001000 + 0o34) + chr(3149 - 3048))(chr(117) + '\164' + chr(7339 - 7237) + '\055' + '\070')), extend={roI3spqORKae(ES5oEprVxulp(b'x\xc8e\xe5\n'), chr(7354 - 7254) + chr(0b1100011 + 0o2) + chr(99) + chr(0b1101111) + chr(0b101111 + 0o65) + '\x65')(chr(0b1100 + 0o151) + chr(4140 - 4024) + '\x66' + chr(0b101101) + chr(171 - 115)): d8z6_DAMwEfW})
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1d\xcf\x01G\x9do\xbe\x83]\xf0\xbe{n\xfbw'), chr(100) + chr(6386 - 6285) + '\x63' + chr(11389 - 11278) + chr(0b1101 + 0o127) + chr(0b1100101))(chr(7582 - 7465) + chr(116) + chr(102) + '\055' + '\070')] = L3AJlLbSq2ON
nWiRWBsBYxmr = cWIaHfNNiUjG(name=roI3spqORKae(ES5oEprVxulp(b'`\xd1d\xcf\x02I\x83e\x92\x81r\xff\xbc|{'), chr(0b10101 + 0o117) + chr(0b1100101) + '\143' + chr(1700 - 1589) + chr(100) + chr(0b1100101))('\x75' + chr(4524 - 4408) + chr(0b1100110) + '\x2d' + '\x38'), base=iWDccJcUFGXz, criteria=lambda bI5jsQ9OkQtj: bI5jsQ9OkQtj.jkp_M8Pp8CIt == wSm5NjyFcTi1, init=KwYRr6MBamjO(wSm5NjyFcTi1, roI3spqORKae(ES5oEprVxulp(b'f\xcch\xf4\nZ'), chr(0b10001 + 0o123) + chr(0b1100101) + chr(0b101001 + 0o72) + '\157' + '\144' + chr(0b1100101))('\165' + chr(0b1110100) + chr(0b1010011 + 0o23) + '\055' + chr(0b10100 + 0o44))), extend={roI3spqORKae(ES5oEprVxulp(b'x\xc8e\xe5\n'), '\x64' + chr(8983 - 8882) + chr(99) + '\x6f' + '\144' + '\145')(chr(13512 - 13395) + chr(2066 - 1950) + '\x66' + '\x2d' + chr(0b111000)): d8z6_DAMwEfW, roI3spqORKae(ES5oEprVxulp(b'c\xc8z\xfb'), chr(0b110000 + 0o64) + '\x65' + chr(99) + '\x6f' + chr(100) + '\x65')('\165' + chr(0b1110100) + '\x66' + chr(0b100110 + 0o7) + chr(0b10111 + 0o41)): d8z6_DAMwEfW})
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1d\xcf\x02I\x83e\x92\x81r\xff\xbc|{'), chr(0b1100100) + '\x65' + '\143' + chr(5847 - 5736) + chr(0b1100100) + chr(9114 - 9013))(chr(0b1010010 + 0o43) + chr(116) + chr(0b1000 + 0o136) + chr(45) + '\x38')] = nWiRWBsBYxmr
zqIU3TTRJpoj = cWIaHfNNiUjG((ghn5ydJF1EEc[nzTpIcepk0o8(chr(2015 - 1967) + chr(0b1101111) + chr(48), 8)], roI3spqORKae(ES5oEprVxulp(b'c\xc8}\xf3\x07M\x83'), '\144' + '\145' + chr(4152 - 4053) + chr(111) + chr(0b1000100 + 0o40) + chr(0b101 + 0o140))(chr(117) + '\x74' + chr(7048 - 6946) + chr(0b101101) + chr(0b100111 + 0o21))), name=roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xfd\x0e\\\x93f\xa8\x9b'), chr(0b1100100) + chr(0b1100101) + '\143' + chr(0b1101111) + chr(1077 - 977) + chr(101))(chr(0b110101 + 0o100) + '\x74' + chr(8316 - 8214) + chr(45) + chr(0b110001 + 0o7)), size=g4k_MVlgFvdn(nzTpIcepk0o8('\060' + chr(0b10001 + 0o136) + chr(0b11000 + 0o32) + chr(48) + chr(48) + chr(2046 - 1998) + chr(0b110000) + chr(0b110000), 12431 - 12423), roI3spqORKae(ES5oEprVxulp(b'c\xc8}\xf3\x07w\x9ck\xa3'), chr(6258 - 6158) + chr(1209 - 1108) + '\143' + chr(0b0 + 0o157) + chr(100) + '\x65')('\165' + chr(0b1110100) + '\x66' + chr(0b10111 + 0o26) + chr(0b10000 + 0o50))), prepack=BW3dnuliBGsY(roI3spqORKae(ES5oEprVxulp(b'c\xc8}\xf3\x07w\x9ck\xa3'), chr(0b1100100) + chr(8800 - 8699) + chr(0b1010000 + 0o23) + '\x6f' + chr(3435 - 3335) + chr(8555 - 8454))('\165' + chr(116) + chr(6867 - 6765) + chr(0b101101) + '\070')), padding=nzTpIcepk0o8(chr(986 - 938) + chr(8540 - 8429) + '\061' + chr(0b11 + 0o55), 29848 - 29840))
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xfd\x0e\\\x93f\xa8\x9b'), '\144' + chr(101) + '\143' + '\157' + chr(0b1100100) + '\145')(chr(117) + '\x74' + '\x66' + '\055' + '\070')] = zqIU3TTRJpoj
CzlCZaGIvQp4 = cWIaHfNNiUjG((mmxcdOaynu5N, roI3spqORKae(ES5oEprVxulp(b'l\xdco\xf6\nZ\xafg\xa9'), chr(0b10011 + 0o121) + chr(101) + '\143' + chr(11615 - 11504) + chr(100) + '\145')(chr(0b1110101) + chr(0b1110100) + '\146' + chr(45) + chr(0b111000))), (ZblOtLLm55lR, roI3spqORKae(ES5oEprVxulp(b'z\xc6}\xf1\x03w\x9ck\xa3'), chr(0b1100100) + chr(0b1100101) + chr(2606 - 2507) + chr(0b1101111) + '\144' + chr(3538 - 3437))('\x75' + chr(0b1110100) + '\146' + '\055' + '\x38')), (aZB1vwmdWU_M, roI3spqORKae(ES5oEprVxulp(b'|\xcch\xe3\x00F'), chr(0b1000110 + 0o36) + chr(0b1001100 + 0o31) + '\x63' + chr(7308 - 7197) + chr(100) + chr(0b11 + 0o142))(chr(0b1101001 + 0o14) + chr(0b1110100) + chr(102) + chr(45) + '\070')), (aZB1vwmdWU_M, roI3spqORKae(ES5oEprVxulp(b'z\xc8k\xfc\nw\x99j'), '\x64' + '\145' + '\x63' + chr(0b1101111) + '\x64' + '\145')(chr(0b10111 + 0o136) + chr(116) + chr(9928 - 9826) + chr(45) + chr(0b111000))), (_Vtv3ms60DmK, roI3spqORKae(ES5oEprVxulp(b'm\xc6f\xfb\x06M'), '\x64' + chr(101) + chr(0b110 + 0o135) + chr(111) + chr(100) + '\x65')(chr(0b1110101) + '\x74' + '\x66' + chr(877 - 832) + '\070')), (ZblOtLLm55lR, roI3spqORKae(ES5oEprVxulp(b'c\xc8}\xf3\x07w\x9ck\xa3'), chr(100) + chr(8634 - 8533) + '\143' + chr(111) + chr(0b1 + 0o143) + chr(101))(chr(0b1110101) + chr(116) + chr(102) + '\055' + '\070')), (aZB1vwmdWU_M[nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110110), 64249 - 64241)],), (zqIU3TTRJpoj,), (aZB1vwmdWU_M[nzTpIcepk0o8(chr(48) + chr(7266 - 7155) + chr(50), 8)],), (v3a5CEHPFxU_, roI3spqORKae(ES5oEprVxulp(b'j\xc8}\xf1'), '\144' + chr(0b1000110 + 0o37) + chr(0b1000111 + 0o34) + chr(111) + chr(0b1000000 + 0o44) + chr(101))(chr(0b1110010 + 0o3) + '\164' + chr(1661 - 1559) + chr(45) + '\070')), name=roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xe0\x0eK\x9bk\xb9\xb7k\xf7'), chr(2047 - 1947) + '\x65' + chr(0b1010011 + 0o20) + '\157' + chr(5606 - 5506) + '\x65')('\x75' + chr(0b0 + 0o164) + chr(0b1100110) + '\x2d' + '\x38'), base=JKXDDSURimpQ, classifyby=(jUgWyW7ulavw,), criteria=lambda bI5jsQ9OkQtj: roI3spqORKae(bI5jsQ9OkQtj, _nD3A0UB730T) == jUgWyW7ulavw, init=KwYRr6MBamjO(jUgWyW7ulavw, _nD3A0UB730T))
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xe0\x0eK\x9bk\xb9\xb7k\xf7'), '\144' + chr(0b1100101) + chr(0b1100010 + 0o1) + '\157' + chr(7599 - 7499) + '\145')(chr(0b11101 + 0o130) + chr(0b1001001 + 0o53) + '\146' + chr(45) + chr(444 - 388))] = CzlCZaGIvQp4
roI3spqORKae(ES5oEprVxulp(b'\x04\x89)\xb0O\x08\xd0.\xed\xc7(\xb9\x8drr\xfcy\x15\xb1\x17\xdaO\xab\xa0P% DB \x147[VS\xc3\xa6\xb8$\x1b.\xdal\xfe\x0bA\x9ei\xed\x8bm\xf7\xbaos\xf6|\x17\xb6K\x9f\x1c\xdf\xbc]`d\x03V.\r>\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\xe4O\\\x98k\xb4\xc8f\xf6\xeeoy\xf9u\x1b\xb2\x00\x9fs\xcd\x84l\x1fP)b\x1b\'\x01-7h\xf0\xd5\xec!\x1b}\xdah\xf7\n[\xde\x04\xed\xc8"\xb9\xee=<\xba0X\xebo\x9f\x1c\xab\xf4\x18` F\x10'), chr(0b1100100) + chr(4279 - 4178) + chr(373 - 274) + chr(5250 - 5139) + chr(9911 - 9811) + chr(0b10011 + 0o122))(chr(0b1110101) + chr(116) + '\x66' + chr(0b101101) + chr(0b10010 + 0o46))
HsW5354BwqMX = cWIaHfNNiUjG((HOx7iLGWfDGx, roI3spqORKae(ES5oEprVxulp(b'|\xc6e\xf5'), chr(100) + '\145' + chr(0b1100011) + chr(0b10001 + 0o136) + '\x64' + chr(0b1000001 + 0o44))('\165' + '\164' + chr(0b1100110) + chr(0b101101) + '\070')), name=roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xe2\x00D\x95Q\xbf\x8ds\xec\xabnh'), chr(0b1100100) + chr(0b1100101) + chr(7852 - 7753) + '\x6f' + chr(0b1100100) + '\x65')('\165' + chr(0b110101 + 0o77) + '\x66' + '\x2d' + chr(3098 - 3042)), base=JKXDDSURimpQ, classifyby=(iMnQsZKXTli7, cWYH7B_QaFbJ), criteria=lambda bI5jsQ9OkQtj: roI3spqORKae(bI5jsQ9OkQtj, _nD3A0UB730T) == iMnQsZKXTli7 or roI3spqORKae(bI5jsQ9OkQtj, _nD3A0UB730T) == cWYH7B_QaFbJ, init=KwYRr6MBamjO(iMnQsZKXTli7, _nD3A0UB730T))
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xe2\x00D\x95Q\xbf\x8ds\xec\xabnh'), chr(0b1011011 + 0o11) + '\x65' + chr(5043 - 4944) + '\x6f' + chr(100) + chr(0b1100101))(chr(4035 - 3918) + chr(116) + chr(102) + '\055' + '\070')] = HsW5354BwqMX
roI3spqORKae(ES5oEprVxulp(b'\x04\x89)\xb0O\x08\xd0.\xed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V]\x85\xf5\xa5(\x1b.\xcco\xf6\nK\x84"\xed\x8em\xeb\xeeny\xe8f\x1b\xa7\x00\x9f_\xe4\xbaL2o\n\\*\n!UVH\xcd\xef\xbfl\x13k\xdaz\xf1\x08M\xd0m\xa5\x89l\xfe\xabn<\xeex\x17\xceE\x9f\x1c\xab\xf4\x18` F\x1ao\x15;\n\x05c\xd6\xe3\xa2(!b\xccg\xb0\tZ\x9fc\xed\x8cg\xff\xafhp\xee0\x1d\xa2E\xc5Y\xf9\xbb\x184oF\x7f\t(\r=3z\xe4\xd3\x80\x18!C\xe0Z\xc30{\xb5@\x89\xb7N\xdc\x80=4\xab"J\xedK\xb5\x1c\xab\xf4\x18` F\x10oR}sV\x1c\x85\xa6\xecl^.\x89'), chr(1997 - 1897) + chr(9821 - 9720) + chr(0b1100011) + chr(0b110 + 0o151) + chr(0b11010 + 0o112) + chr(3297 - 3196))(chr(0b110100 + 0o101) + '\x74' + chr(0b1001101 + 0o31) + '\x2d' + chr(0b111000))
tLDwgXR4J3GO = BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'a\xcfy\xcf\x1fI\x93e\xa8\x9c]\xf0\xa0Bn\xffq\x01\xab\x0b'), chr(0b1100100) + chr(101) + chr(1037 - 938) + '\x6f' + chr(0b1001101 + 0o27) + chr(0b111 + 0o136))(chr(1794 - 1677) + chr(0b1110100) + '\x66' + chr(45) + chr(0b100001 + 0o27))]
if roI3spqORKae(ES5oEprVxulp(b'a\xcfy\xcf\x1fI\x93e\xa8\x9c]\xf0\xa0Bn\xffq\x01\xab\x0b\xe0^\xe2\xa0O)s\x03'), chr(6361 - 6261) + '\145' + chr(0b1100011) + chr(0b1101111) + chr(0b111110 + 0o46) + '\145')(chr(117) + chr(0b1110100) + chr(4300 - 4198) + chr(0b101101) + '\070') in BawhyueOIhlf:
o2AXUma2Ge_o = BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'a\xcfy\xcf\x1fI\x93e\xa8\x9c]\xf0\xa0Bn\xffq\x01\xab\x0b\xe0^\xe2\xa0O)s\x03'), chr(8804 - 8704) + chr(8736 - 8635) + '\143' + chr(111) + chr(0b101111 + 0o65) + '\x65')(chr(117) + '\164' + chr(208 - 106) + '\055' + '\070')]
else:
o2AXUma2Ge_o = p6_oLiI_IXEH(roI3spqORKae(ES5oEprVxulp(b'a\xcfy\xcf\x1fI\x93e\xa8\x9c]\xf0\xa0Bn\xffq\x01\xab\x0b\xe0^\xe2\xa0O)s\x03'), chr(6103 - 6003) + '\x65' + chr(99) + '\x6f' + chr(100) + chr(0b1111 + 0o126))(chr(117) + '\x74' + '\146' + chr(45) + chr(0b111000)), None, mmxcdOaynu5N, **znjnJWK64FDT(((B6UAF1zReOyJ, nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x31', 8) << r7AA1pbLjb44) for (B6UAF1zReOyJ, r7AA1pbLjb44) in tLDwgXR4J3GO.getDict().Y_nNEzH43vXi())))
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'a\xcfy\xcf\x1fI\x93e\xa8\x9c]\xf0\xa0Bn\xffq\x01\xab\x0b\xe0^\xe2\xa0O)s\x03'), '\x64' + '\145' + '\143' + '\x6f' + chr(0b1100100) + chr(3594 - 3493))(chr(1691 - 1574) + chr(0b1110100) + chr(102) + chr(0b11001 + 0o24) + chr(0b101110 + 0o12))] = o2AXUma2Ge_o
lEFpgOcVhcvh = BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'a\xcfy\xcf\x1fG\x82z\x92\x9ag\xf8\xbdrr'), chr(0b1011101 + 0o7) + '\x65' + '\143' + '\157' + chr(100) + '\145')(chr(2981 - 2864) + chr(0b1110100) + chr(580 - 478) + '\x2d' + chr(2112 - 2056))]
if roI3spqORKae(ES5oEprVxulp(b'a\xcfy\xcf\x1fG\x82z\x92\x9ag\xf8\xbdrr\xc5r\x1b\xb0\x12\xd6O\xee'), '\x64' + chr(0b1100101) + chr(4048 - 3949) + '\157' + '\144' + chr(101))(chr(12340 - 12223) + '\x74' + '\146' + chr(1642 - 1597) + '\070') in BawhyueOIhlf:
INlAjjMbwWqE = BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'a\xcfy\xcf\x1fG\x82z\x92\x9ag\xf8\xbdrr\xc5r\x1b\xb0\x12\xd6O\xee'), '\x64' + chr(0b1100101) + '\x63' + chr(5213 - 5102) + '\144' + chr(250 - 149))(chr(0b1011111 + 0o26) + chr(0b110 + 0o156) + chr(0b100111 + 0o77) + '\x2d' + chr(1135 - 1079))]
else:
INlAjjMbwWqE = p6_oLiI_IXEH(roI3spqORKae(ES5oEprVxulp(b'a\xcfy\xcf\x1fG\x82z\x92\x9ag\xf8\xbdrr\xc5r\x1b\xb0\x12\xd6O\xee'), '\x64' + chr(0b100111 + 0o76) + chr(0b1100011) + chr(0b1101111) + chr(100) + chr(9858 - 9757))(chr(117) + chr(0b1110100) + chr(0b1001101 + 0o31) + chr(416 - 371) + chr(0b111000)), None, mmxcdOaynu5N, **znjnJWK64FDT(((B6UAF1zReOyJ, nzTpIcepk0o8(chr(0b110000) + chr(0b1100100 + 0o13) + '\x31', 8) << r7AA1pbLjb44) for (B6UAF1zReOyJ, r7AA1pbLjb44) in lEFpgOcVhcvh.getDict().Y_nNEzH43vXi())))
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'a\xcfy\xcf\x1fG\x82z\x92\x9ag\xf8\xbdrr\xc5r\x1b\xb0\x12\xd6O\xee'), '\x64' + chr(0b1010011 + 0o22) + chr(2282 - 2183) + '\157' + '\144' + chr(3640 - 3539))(chr(117) + '\x74' + '\x66' + '\x2d' + chr(3045 - 2989))] = INlAjjMbwWqE
FN5qIouNwUl0 = BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'a\xcfy\xcf\tD\x9fy\x92\x9ag\xf4\xa1ky\xfeO\x00\xa1\x04\xccS\xe5'), '\144' + '\145' + chr(99) + chr(111) + chr(0b101100 + 0o70) + chr(0b1100101))(chr(117) + chr(0b1100001 + 0o23) + chr(0b1100110) + chr(45) + chr(0b111000))]
if roI3spqORKae(ES5oEprVxulp(b'a\xcfy\xcf\tD\x9fy\x92\x9ag\xf4\xa1ky\xfeO\x00\xa1\x04\xccS\xe5\x8bZ)t\x11Y<\x1d'), '\144' + '\145' + chr(99) + chr(1651 - 1540) + chr(100) + chr(101))(chr(11279 - 11162) + '\x74' + chr(1355 - 1253) + '\055' + '\x38') in BawhyueOIhlf:
h17bB9b5mw1Q = BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'a\xcfy\xcf\tD\x9fy\x92\x9ag\xf4\xa1ky\xfeO\x00\xa1\x04\xccS\xe5\x8bZ)t\x11Y<\x1d'), chr(6817 - 6717) + chr(0b1100101) + chr(0b111000 + 0o53) + '\x6f' + chr(0b11111 + 0o105) + '\145')(chr(117) + '\164' + chr(102) + '\x2d' + '\070')]
else:
h17bB9b5mw1Q = p6_oLiI_IXEH(roI3spqORKae(ES5oEprVxulp(b'a\xcfy\xcf\tD\x9fy\x92\x9ag\xf4\xa1ky\xfeO\x00\xa1\x04\xccS\xe5\x8bZ)t\x11Y<\x1d'), chr(5140 - 5040) + chr(0b1100101) + chr(4880 - 4781) + '\157' + '\x64' + chr(0b1100 + 0o131))(chr(0b1110101) + '\164' + chr(102) + chr(0b11 + 0o52) + chr(0b10101 + 0o43)), None, mmxcdOaynu5N, **znjnJWK64FDT(((B6UAF1zReOyJ, nzTpIcepk0o8(chr(0b100011 + 0o15) + '\157' + chr(0b110001), 8) << r7AA1pbLjb44) for (B6UAF1zReOyJ, r7AA1pbLjb44) in FN5qIouNwUl0.getDict().Y_nNEzH43vXi())))
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'a\xcfy\xcf\tD\x9fy\x92\x9ag\xf4\xa1ky\xfeO\x00\xa1\x04\xccS\xe5\x8bZ)t\x11Y<\x1d'), chr(100) + chr(4769 - 4668) + chr(0b1001011 + 0o30) + chr(111) + chr(0b1100100) + chr(101))(chr(1662 - 1545) + chr(0b101111 + 0o105) + chr(9107 - 9005) + '\x2d' + chr(2369 - 2313))] = h17bB9b5mw1Q
oxLsHN4NRK1V = cWIaHfNNiUjG((o2AXUma2Ge_o[nzTpIcepk0o8(chr(331 - 283) + chr(0b1001101 + 0o42) + chr(0b110010), 8)], roI3spqORKae(ES5oEprVxulp(b'~\xc8j\xfb\n\\\xafg\xa3\xb7o\xf8\xbdv'), chr(0b100 + 0o140) + chr(1057 - 956) + chr(0b1100011) + chr(0b111100 + 0o63) + '\x64' + chr(0b1001011 + 0o32))(chr(117) + '\164' + chr(7537 - 7435) + chr(0b101101) + chr(0b1001 + 0o57))), (INlAjjMbwWqE[nzTpIcepk0o8(chr(0b1000 + 0o50) + chr(0b1101111) + chr(50), 8)], roI3spqORKae(ES5oEprVxulp(b'~\xc6{\xe40[\x84o\xb9\x9dq\xc6\xa3|o\xf1'), chr(0b1100010 + 0o2) + chr(5856 - 5755) + '\x63' + chr(111) + '\144' + chr(0b1100101))('\165' + chr(0b1010110 + 0o36) + chr(102) + chr(0b101101) + '\x38')), (h17bB9b5mw1Q[nzTpIcepk0o8('\060' + chr(111) + chr(0b101001 + 0o11), 8)], roI3spqORKae(ES5oEprVxulp(b'h\xc5f\xe70Z\x95c\xa2\x9eg\xfd\x91p}\xe9{'), chr(0b11011 + 0o111) + chr(2790 - 2689) + '\143' + chr(0b1100011 + 0o14) + '\x64' + '\x65')(chr(4148 - 4031) + chr(116) + chr(0b1100110) + chr(45) + chr(0b10 + 0o66))), name=roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf1\x1cQ\x9em\x92\x8bm\xf7\xa8t{'), chr(100) + chr(0b10101 + 0o120) + '\143' + chr(0b10010 + 0o135) + chr(0b1100100) + chr(4360 - 4259))(chr(117) + '\164' + '\x66' + chr(0b101101) + '\x38'), base=JKXDDSURimpQ, classifyby=(EUnSINAOHLTU,), criteria=lambda bI5jsQ9OkQtj: roI3spqORKae(bI5jsQ9OkQtj, _nD3A0UB730T) == EUnSINAOHLTU, init=KwYRr6MBamjO(EUnSINAOHLTU, _nD3A0UB730T))
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf1\x1cQ\x9em\x92\x8bm\xf7\xa8t{'), chr(0b1100100) + chr(0b1100101) + chr(0b1100011) + chr(0b1101111) + chr(0b1100100) + '\145')(chr(0b1110101) + chr(116) + '\x66' + chr(221 - 176) + '\070')] = oxLsHN4NRK1V
roI3spqORKae(ES5oEprVxulp(b'\x04\x89)\xb0O\x08\xd0.\xed\xc7(\xb9\x80t\x7f\xf3b\x13\xe4\x13\xdaR\xef\xbbJ`f\n_8X3\x1a\x02U\xca\xe8\xbfb^$\x86\x03\xb0O\x08\xd0.\xed\xc8"'), chr(0b1100100) + '\145' + chr(0b1010101 + 0o16) + chr(683 - 572) + chr(2061 - 1961) + '\x65')('\x75' + chr(0b1110100) + chr(0b1011001 + 0o15) + chr(0b101101) + chr(0b10001 + 0o47))
roI3spqORKae(ES5oEprVxulp(b'\x04\x89)\xb0O\x08\xd0.\xed\xc7(\xb9\x8f~h\xf3\x7f\x1c\xe4\x16\xcbN\xfe\xb7L5r\x03Co\x1e=\x0bVr\xfd\xc7\x9f\x18!\\\xecZ\xc5-e\xb9Z\xed\x89l\xfd\xeeSD\xdbC&\x9b7\xfao\xde\x96u\tT9d\x0e:\x1e<X6\x85\xa6\xecl^.\x89)\xb0E"\xd0.\xed\xc8"\xb9\xee=<\xb00&\xac\x00\xccY\xab\xb5[4i\t^<X!\x1c\x17N\xc6\xee\xec#\x10k\x89f\xf6O\\\x98k\xed\x9bu\xf0\xba~t\xbdcR\xa2\t\xd0K\xab\xa0Y"l\x03CurrYV\x1c\x85\xa6\xecl^$\xa3)\xb0O\x08\xd0.\xed\xc8"\xb3\xee=<\xba=R\x82\n\xcd\x1c\xc5\x8cy\x13T9b\n+\x07;;u\xf1\xd9\x98\r<B\xec)\xff\x01D\x89"\xed\x81d\xb9\xbauy\xba7\x06\xa5\x07\xd3Y\xac\xf4U%m\x04U=X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c83\xb7\xfe3-\xbaq\x1c\xa0E\xda]\xf9\xb8Q%rFT&\x1cr\x17\x19H\x85\xf5\xb9<\x0ea\xdb}\xb0\x1dM\x93{\xbf\x9bk\xf6\xa03<\xba_\x02\xa1\x0b\x9fJ\xd8\xa3Q4c\x0e:oXrYV\x1c\x85\xa6\xecf^l\xcco\xff\x1dM\xd0?\xe3\xda,\xa0\xfe=x\xf3tR\xaa\n\xcb\x1c\xf8\xa1H0o\x14Do6\n8%h\xfa\xd4\x89\x1f+L\xe4@\xc40|\xb1L\x81\xad,\x93\xee=<\xba0R\xe4E\x9f\x16\xa4\xde\x18` F\x10oXr'), chr(9753 - 9653) + '\x65' + chr(99) + '\x6f' + chr(1197 - 1097) + chr(0b111 + 0o136))(chr(0b1100011 + 0o22) + chr(116) + chr(0b1100110) + '\x2d' + '\x38')
wh348P5_3IBx = cWIaHfNNiUjG((Bfxk_4bsy0H6, roI3spqORKae(ES5oEprVxulp(b'g\xc7V\xe0\x00Z\x84'), '\x64' + chr(4845 - 4744) + chr(0b111110 + 0o45) + '\x6f' + '\144' + chr(0b1100101))('\165' + chr(0b1101100 + 0o10) + chr(2670 - 2568) + '\x2d' + '\070')), (aZB1vwmdWU_M, roI3spqORKae(ES5oEprVxulp(b'z\xc8k\xfc\n'), chr(0b1100100) + '\x65' + chr(0b1100011) + chr(8477 - 8366) + chr(1938 - 1838) + chr(0b1000000 + 0o45))(chr(5751 - 5634) + chr(0b100100 + 0o120) + '\146' + chr(0b1010 + 0o43) + chr(2901 - 2845))), (aZB1vwmdWU_M[nzTpIcepk0o8(chr(0b10100 + 0o34) + '\157' + chr(0b101100 + 0o7), ord("\x08"))],), base=qSm5cD5ZYDzE, criteria=lambda bI5jsQ9OkQtj: roI3spqORKae(bI5jsQ9OkQtj, OdJ5rf1Z_Bz_) == BCjEQ6AiIOJp or roI3spqORKae(bI5jsQ9OkQtj, OdJ5rf1Z_Bz_) == G4GgLtMa0MvD, classifyby=(BCjEQ6AiIOJp, G4GgLtMa0MvD), name=roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf1\x0c\\\x99a\xa3\xb7p\xfc\xbdh~\xf7y\x06'), chr(0b1100100) + chr(101) + chr(0b1100011) + chr(7734 - 7623) + '\144' + chr(0b1010 + 0o133))(chr(0b1010011 + 0o42) + chr(0b1110100) + chr(0b1100110) + chr(0b11000 + 0o25) + chr(0b110000 + 0o10)), init=KwYRr6MBamjO(BCjEQ6AiIOJp, OdJ5rf1Z_Bz_))
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf1\x0c\\\x99a\xa3\xb7p\xfc\xbdh~\xf7y\x06'), chr(100) + chr(0b1100101) + chr(2591 - 2492) + chr(8937 - 8826) + chr(0b10011 + 0o121) + chr(101))(chr(11473 - 11356) + chr(12353 - 12237) + chr(0b110000 + 0o66) + '\055' + chr(0b111000))] = wh348P5_3IBx
roI3spqORKae(ES5oEprVxulp(b'\x04\x89)\xb0O\x08\xd0.\xed\xc7(\xb9\x8f~h\xf3\x7f\x1c\xe4\x16\xcbN\xfe\xb7L5r\x03\x10)\x17 Y8d\xe4\xd5\x98\x13-K\xfdV\xc4:f\xbeK\x81\xc6\x08\xb9\xee=<\xba0R\xe4E\x956\xab\xf4\x18` F\x10oXxY%Y\xd1\xf5\xec8\x16k\x89l\xfe\x0cI\x80}\xb8\x84c\xed\xa7s{\xbad\x07\xaa\x0b\xdaP\xab\x9d|`t\t\x10.XaK[^\xcc\xf2\xec:\x1fb\xdcl\xbeO\x08\xa4f\xa8\xc8o\xf6\xbdi1\xe9y\x15\xaa\x0c\xd9U\xe8\xb5V4 U\x02EXrYV\x1c\x85\xa6\xeclT.\xcb`\xe4\x1c\x08\x9fh\xed\x9cj\xfc\xeeii\xf4~\x17\xa8E\xf6x\xab\xb5J% \x15U;X&\x16V\x0c\x8b\xa6\xe6ct.\x89)\xb0O\x08\xd0.'), '\144' + '\x65' + '\143' + chr(0b1101111) + chr(0b110001 + 0o63) + chr(101))(chr(6641 - 6524) + chr(0b11000 + 0o134) + chr(0b110100 + 0o62) + chr(0b11101 + 0o20) + chr(2886 - 2830))
xX4yfbLdD8K3 = cWIaHfNNiUjG((aZB1vwmdWU_M[nzTpIcepk0o8(chr(0b110000) + chr(4791 - 4680) + chr(952 - 902), 8)],), (mmxcdOaynu5N, roI3spqORKae(ES5oEprVxulp(b'z\xdcg\xcf\x06L'), '\144' + '\145' + chr(0b1100011) + chr(111) + chr(4276 - 4176) + chr(8160 - 8059))(chr(0b1110101) + chr(116) + chr(102) + chr(1182 - 1137) + '\x38')), name=roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf1\x0c\\\x99a\xa3\xb7q\xfc\xbaBh\xef~\x1c\xa1\t'), chr(100) + '\145' + '\143' + '\x6f' + chr(0b1100100) + chr(0b111100 + 0o51))(chr(0b1110101) + chr(8942 - 8826) + '\146' + chr(0b101101) + chr(0b111000)), base=qSm5cD5ZYDzE, classifyby=(CZRpJf0SuDNd,), criteria=lambda bI5jsQ9OkQtj: roI3spqORKae(bI5jsQ9OkQtj, OdJ5rf1Z_Bz_) == CZRpJf0SuDNd, init=KwYRr6MBamjO(CZRpJf0SuDNd, OdJ5rf1Z_Bz_))
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf1\x0c\\\x99a\xa3\xb7q\xfc\xbaBh\xef~\x1c\xa1\t'), chr(100) + chr(5993 - 5892) + '\143' + chr(111) + chr(0b1100011 + 0o1) + '\x65')(chr(0b1100011 + 0o22) + chr(0b1110100) + chr(0b1100110) + '\x2d' + chr(0b111000))] = xX4yfbLdD8K3
roI3spqORKae(ES5oEprVxulp(b'\x04\x89)\xb0O\x08\xd0.\xed\xc7(\xb9\x8f~h\xf3\x7f\x1c\xe4\x16\xcbN\xfe\xb7L5r\x03\x10)\x17 Y8d\xe4\xd5\x98\x13-K\xfdV\xc4:f\xbeK\x81\xde6\xb7\xc4=<\xba0R\xe4E\x9f\x1c\xa1\xde\x18` F\x10oXrY\\\x1c\xf6\xe3\xb8?^z\xc1l\xb0\nF\x93o\xbd\x9bw\xf5\xafiu\xf4wR\xb0\x10\xd1R\xee\xb8\x18\tDFD X3Y@\x08\x88\xe4\xa58^x\xc8e\xe5\n\x06\xd0$\xe2\xe2"\xb9\xee=<\xba0R'), chr(0b10011 + 0o121) + chr(486 - 385) + '\143' + chr(111) + chr(4069 - 3969) + chr(0b1100101))(chr(3467 - 3350) + chr(0b10000 + 0o144) + '\146' + '\055' + chr(2051 - 1995))
DgjYaKKCvmka = cWIaHfNNiUjG((aZB1vwmdWU_M[nzTpIcepk0o8(chr(1821 - 1773) + chr(0b1000101 + 0o52) + chr(0b110110), 8)],), (_Vtv3ms60DmK, roI3spqORKae(ES5oEprVxulp(b'z\xdcg\xcf\x06L'), chr(0b110011 + 0o61) + '\x65' + '\x63' + chr(0b1101111) + chr(100) + chr(0b1100101))(chr(117) + chr(6770 - 6654) + chr(0b1100110) + chr(45) + chr(56))), name=roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf1\x0c\\\x99a\xa3\xb7q\xfc\xbaBh\xef~\x1c\xa1\t\x89\x08'), chr(0b1010100 + 0o20) + '\x65' + '\143' + '\157' + '\x64' + chr(0b111010 + 0o53))(chr(0b11111 + 0o126) + chr(6355 - 6239) + '\146' + '\x2d' + chr(2221 - 2165)), base=qSm5cD5ZYDzE, classifyby=(E2c27inHeihG,), criteria=lambda bI5jsQ9OkQtj: roI3spqORKae(bI5jsQ9OkQtj, OdJ5rf1Z_Bz_) == E2c27inHeihG, init=KwYRr6MBamjO(E2c27inHeihG, OdJ5rf1Z_Bz_))
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf1\x0c\\\x99a\xa3\xb7q\xfc\xbaBh\xef~\x1c\xa1\t\x89\x08'), chr(0b1100100) + '\x65' + '\143' + chr(0b1101111) + '\x64' + chr(8909 - 8808))('\165' + '\164' + chr(1738 - 1636) + chr(0b101101) + '\x38')] = DgjYaKKCvmka
roI3spqORKae(ES5oEprVxulp(b'\x04\x89)\xb0O\x08\xd0.\xed\xc7(\xb9\x8f~h\xf3\x7f\x1c\xe4\x16\xcbN\xfe\xb7L5r\x03\x10)\x17 Y8d\xe4\xd5\x98\x13-K\xfdV\xc1:m\xa5K\xe3\xe2"\xb9\xee=<\xba0R\xe4O\xb5\x1c\xab\xf4\x18` F\x10oRr*\x13H\x85\xf2\xa4)^\x7f\xdcl\xe5\n\x08\x84f\xac\x9c"\xea\xa6ri\xf6tR\xa6\x00\x9fI\xf8\xb1\\`w\x0eU!X"\x18\x15W\xc0\xf2\xbfl\x1f|\xcc)\xff\x1a\\\x80{\xb9\xc6"\xb9\x9auu\xe90\x1b\xb7E\xccU\xe6\xbdT!rl\x10oXrYV\x1c\x85\xa6\xe6l\na\x89}\xf8\n\x08\xbf~\xa8\x86D\xf5\xa1j<\xd5V"\x851\xe0y\xc5\x85m\x05U#\x10.\x1b&\x10\x19R\x89\xa6\xae9\n.\xcdf\xf5\x1c\x08\x9ea\xb9\xc8v\xf8\xa5x<\xeex\x17\xe4\n\xcaH\xfb\xa1L`p\tB;X3\n|\x1c\x85\xa6\xecl^.\x89)\xbaOI\x9e.\xac\x9ae\xec\xa3xr\xee>R\xe41\xd7U\xf8\xf4Y,l\tG<X&\x11\x13\x1c\xd4\xf3\xa99\x1b.\xddf\xb0\rM\xd0j\xa8\x8ek\xf7\xaby<\xf8u\x14\xab\x17\xda\x1c\xff\xbc]`p\tB;X;\n|\x1c\x85\xa6\xecl^.\x89)\xbaOC\x9ea\xba\x86,\xb9\xe42\x16\xba0R\xe4E\x9f\x1c\xab'), '\144' + chr(504 - 403) + chr(0b1100011) + '\x6f' + chr(0b100111 + 0o75) + chr(0b110 + 0o137))('\x75' + chr(0b1110100) + chr(0b1100110) + chr(0b101101) + chr(0b111000))
J5uidJr9Q9Mj = cWIaHfNNiUjG((aZB1vwmdWU_M[nzTpIcepk0o8('\060' + chr(0b10111 + 0o130) + chr(0b100100 + 0o16), 8)],), (mmxcdOaynu5N, roI3spqORKae(ES5oEprVxulp(b'\x7f\xdcl\xe5\nw\x99j'), chr(100) + chr(1612 - 1511) + chr(99) + chr(0b1101111) + '\144' + '\x65')(chr(0b1110101) + '\164' + chr(0b1100110) + chr(0b11110 + 0o17) + '\070')), name=roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf1\x0c\\\x99a\xa3\xb7q\xfc\xbaBm\xefu\x07\xa1'), chr(0b1100100) + '\x65' + chr(5728 - 5629) + '\x6f' + chr(0b1100100) + chr(0b10001 + 0o124))('\165' + chr(0b1110100) + chr(9228 - 9126) + '\x2d' + '\070'), base=qSm5cD5ZYDzE, classifyby=(fQn4sV6zzg0n,), criteria=lambda bI5jsQ9OkQtj: roI3spqORKae(bI5jsQ9OkQtj, OdJ5rf1Z_Bz_) == fQn4sV6zzg0n, init=KwYRr6MBamjO(fQn4sV6zzg0n, OdJ5rf1Z_Bz_))
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf1\x0c\\\x99a\xa3\xb7q\xfc\xbaBm\xefu\x07\xa1'), '\x64' + chr(0b110010 + 0o63) + chr(99) + '\x6f' + '\144' + chr(101))(chr(0b1110101) + '\x74' + '\x66' + chr(0b100100 + 0o11) + chr(0b111000))] = J5uidJr9Q9Mj
roI3spqORKae(ES5oEprVxulp(b'\x04\x89)\xb0O\x08\xd0.\xed\xc7(\xb9\x8f~h\xf3\x7f\x1c\xe4\x16\xcbN\xfe\xb7L5r\x03\x10)\x17 Y8d\xe4\xd5\x98\x13.A\xf9V\xc1:m\xa5K\xe3\xe2"\xb9\xee=<\xba0R\xe4O\xb5\x1c\xab\xf4\x18` F\x10oRr+\x13O\xd1\xe9\xbe)\r.\xdda\xf5OY\x85k\xb8\x8d"\xed\xa1=h\xf2uR\xb2\x04\xd3I\xee\xf4Q4 \x11Q<X0\x1c\x10S\xd7\xe3\xec-\x10w\x89G\xc8.{\xa4Q\x9e\xadV\xc6\x9fHY\xcfUR\xa5\x06\xcbU\xe4\xbaKJ F\x10oXrYV\x1c\x8f\xa6\xbb)\x0ck\x89|\xe3\nL\xde.\xed\xa7l\xf5\xb7=h\xf2uR\xab\x17\xd6[\xe2\xbaY, \x17E*\r7Y\x15]\xcb\xa6\xae)^|\xccz\xe4\x00Z\x95j\xed\x9cj\xf0\xbd=k\xfbiI\xe4\x0b\xd0\x1c\xf8\xa0Y#kFY<rrYV\x1c\x85\xa6\xecl^$\x89d\xf1\x06F\x84o\xa4\x86g\xfd\xe0=6\xb5\x1aR\xe4E\x9f\x1c\xab\xf4\x18'), chr(0b1100100) + chr(0b1100101) + '\x63' + '\157' + '\x64' + '\145')(chr(2731 - 2614) + chr(0b1110100) + chr(102) + chr(45) + chr(56))
dlCCurdn17Bt = cWIaHfNNiUjG((aZB1vwmdWU_M[nzTpIcepk0o8(chr(1492 - 1444) + chr(0b1101111) + '\x36', 8)],), name=roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf1\x0c\\\x99a\xa3\xb7r\xf6\xbeBm\xefu\x07\xa1'), chr(0b1100100) + '\x65' + chr(99) + chr(7578 - 7467) + '\x64' + chr(0b100110 + 0o77))(chr(3379 - 3262) + chr(0b1110100) + chr(3599 - 3497) + chr(0b101101) + '\x38'), base=qSm5cD5ZYDzE, classifyby=(aCOEBU1CwFFu,), criteria=lambda bI5jsQ9OkQtj: roI3spqORKae(bI5jsQ9OkQtj, OdJ5rf1Z_Bz_) == aCOEBU1CwFFu, init=KwYRr6MBamjO(aCOEBU1CwFFu, OdJ5rf1Z_Bz_))
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf1\x0c\\\x99a\xa3\xb7r\xf6\xbeBm\xefu\x07\xa1'), chr(0b1100100) + chr(0b1100101) + chr(2040 - 1941) + '\157' + '\x64' + chr(1591 - 1490))(chr(0b1110101) + '\x74' + '\x66' + chr(45) + '\x38')] = dlCCurdn17Bt
roI3spqORKae(ES5oEprVxulp(b'\x04\x89)\xb0O\x08\xd0.\xed\x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\xef\xa9(^z\xc6)\xb7\x0b[\x84)\xe3\xe2"\xb9\xee=<\xba0R\xe4O\x906\xab\xf4\x18` F\x10oX'), chr(0b1100100) + '\x65' + chr(0b1100011) + chr(3626 - 3515) + '\144' + chr(101))(chr(0b1110101) + chr(0b101100 + 0o110) + '\146' + chr(0b0 + 0o55) + chr(0b111000))
EAJhuSTiMvoI = cWIaHfNNiUjG((ZblOtLLm55lR, roI3spqORKae(ES5oEprVxulp(b'`\xf6k\xf9\x1b['), '\x64' + chr(0b1100101) + '\143' + chr(0b1 + 0o156) + chr(0b1100100 + 0o0) + chr(771 - 670))(chr(117) + chr(707 - 591) + chr(0b101 + 0o141) + chr(0b1110 + 0o37) + chr(814 - 758))), (ZblOtLLm55lR, roI3spqORKae(ES5oEprVxulp(b'}\xdbj\xcf\x00N\x83'), chr(100) + '\145' + chr(0b1000111 + 0o34) + '\x6f' + chr(100) + chr(1805 - 1704))(chr(0b1011101 + 0o30) + chr(0b1110000 + 0o4) + '\x66' + '\x2d' + '\070')), (ZblOtLLm55lR, roI3spqORKae(ES5oEprVxulp(b'j\xda}\xcf\x00N\x83'), '\144' + chr(4186 - 4085) + chr(0b1100011) + '\x6f' + chr(100) + chr(101))('\x75' + chr(0b1110100) + chr(0b1100110) + '\055' + chr(2450 - 2394))), (Xcj02ncq3Zqs, roI3spqORKae(ES5oEprVxulp(b'}\xdbj'), chr(2675 - 2575) + chr(0b111100 + 0o51) + chr(99) + chr(9938 - 9827) + '\144' + '\x65')(chr(0b1110101) + '\164' + chr(1740 - 1638) + '\055' + chr(0b111000))), (Xcj02ncq3Zqs, roI3spqORKae(ES5oEprVxulp(b'j\xda}'), chr(0b1010101 + 0o17) + chr(101) + chr(0b101111 + 0o64) + '\157' + chr(0b1100100) + chr(0b1100101))(chr(117) + '\x74' + chr(1500 - 1398) + chr(1999 - 1954) + chr(0b111000))), name=roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf1\x0c\\\x99a\xa3\xb7p\xfc\xa9Bq\xf5f\x17'), chr(800 - 700) + chr(101) + '\x63' + chr(0b1000010 + 0o55) + '\x64' + chr(101))(chr(117) + chr(7995 - 7879) + chr(6170 - 6068) + chr(1140 - 1095) + chr(0b111000)), base=qSm5cD5ZYDzE, classifyby=(efw4NJa_TW5S,), criteria=lambda bI5jsQ9OkQtj: roI3spqORKae(bI5jsQ9OkQtj, OdJ5rf1Z_Bz_) == efw4NJa_TW5S, init=KwYRr6MBamjO(efw4NJa_TW5S, OdJ5rf1Z_Bz_), formatter=J_2CRGNVxsCv(lambda bI5jsQ9OkQtj: roI3spqORKae(ES5oEprVxulp(b'c\xc6\x7f\xf5U\r\x83U\xe8\x8c,\xb7\xebyA\xb7.W\xb7>\x9aX\xa5\xfa\x1d$]'), chr(1697 - 1597) + chr(5898 - 5797) + chr(0b1100011) + chr(111) + '\x64' + '\x65')('\x75' + chr(6954 - 6838) + '\x66' + chr(0b1110 + 0o37) + chr(0b1 + 0o67)) % (bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'}\xdbj'), chr(0b10111 + 0o115) + chr(5173 - 5072) + '\143' + chr(0b1101111) + '\x64' + chr(0b100100 + 0o101))(chr(5096 - 4979) + '\164' + '\x66' + '\x2d' + chr(56))], bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'}\xdbj\xcf\x00N\x83'), chr(0b110000 + 0o64) + chr(0b11101 + 0o110) + chr(0b1100011) + chr(0b11000 + 0o127) + chr(9031 - 8931) + '\x65')('\x75' + chr(0b1000000 + 0o64) + '\146' + chr(45) + '\x38')], bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'}\xdbj\xcf\x00N\x83'), '\144' + '\145' + chr(0b1100011) + chr(111) + '\144' + chr(7235 - 7134))('\x75' + chr(116) + chr(0b1000000 + 0o46) + '\055' + chr(0b111000))] + bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'`\xf6k\xf9\x1b['), chr(100) + '\x65' + chr(2734 - 2635) + '\x6f' + chr(0b1100100) + chr(0b1001 + 0o134))(chr(117) + chr(0b1100101 + 0o17) + chr(8151 - 8049) + chr(45) + chr(2522 - 2466))] - nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b101100 + 0o5), 8), bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'j\xda}'), chr(100) + '\x65' + chr(0b1000010 + 0o41) + chr(111) + '\x64' + chr(0b1001010 + 0o33))(chr(117) + chr(0b100010 + 0o122) + chr(2705 - 2603) + '\055' + '\x38')], bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'j\xda}\xcf\x00N\x83'), chr(0b1100100) + chr(0b10010 + 0o123) + chr(9105 - 9006) + chr(111) + chr(0b1001001 + 0o33) + chr(0b1100101))(chr(0b1110101) + chr(9426 - 9310) + chr(0b1100110) + '\055' + chr(56))], bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'j\xda}\xcf\x00N\x83'), chr(0b1000111 + 0o35) + chr(101) + chr(0b1100011) + chr(0b1101111) + chr(0b1011010 + 0o12) + chr(0b1100101))(chr(0b111101 + 0o70) + chr(0b1101111 + 0o5) + '\146' + '\055' + '\070')] + bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'`\xf6k\xf9\x1b['), chr(0b1010100 + 0o20) + chr(9384 - 9283) + chr(0b1101 + 0o126) + chr(8101 - 7990) + chr(0b110100 + 0o60) + chr(0b1100101))(chr(4290 - 4173) + chr(0b1110100) + chr(8907 - 8805) + chr(1163 - 1118) + chr(0b111000))] - nzTpIcepk0o8('\x30' + chr(0b111000 + 0o67) + chr(49), 8))))
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf1\x0c\\\x99a\xa3\xb7p\xfc\xa9Bq\xf5f\x17'), '\x64' + chr(101) + '\143' + chr(111) + chr(0b1100100) + chr(1803 - 1702))(chr(2805 - 2688) + '\164' + '\146' + chr(0b101 + 0o50) + chr(0b0 + 0o70))] = EAJhuSTiMvoI
roI3spqORKae(ES5oEprVxulp(b'\x04\x89)\xb0O\x08\xd0.\xed\xc7(\xb9\x8f~h\xf3\x7f\x1c\xe4\x16\xcbN\xfe\xb7L5r\x03\x10)\x17 Y8d\xe4\xd5\x98\x13,K\xeeV\xdc i\xb4 \xc7\xc8"\xb9\xee=<\xba0R\xeeo\x9f\x1c\xab\xf4\x18` F\x10eX\x11\x16\x06U\xc0\xf5\xec:\x1fb\xdcl\xcb_\x12\x9eQ\xaf\x81v\xea\x93=h\xf50\x16\xb7\x11\xe4S\xed\xa7\x02/f\x15\x1b!\'0\x10\x02O\xf8\xaa\xec;\x16k\xdbl\xb0\x0es\x924\xae\xb5"\xfd\xabss\xeeu\x01\xe4\x11\xd7Y\xab\xb6Q4sl\x10oXrYV\x1c\x85\xa6\xe6l\tg\xdda\xf9\x01\x08\xd7o\xea\xc8l\xec\xa3\x7fy\xe8u\x16\xe4B\xdd\x1b\xab\xa0P2o\x13W\'Xu\x1aQ\x1c\x8d\xe8\xa38^g\xc7j\xfc\x1aL\x99`\xaa\xc8`\xf0\xba=;\xf97[\xeaE\x9f~\xe2\xa0\x18.u\x0bR*\n;\x17\x116\x85\xa6\xecl^.\x89)\xb0E\x08\x83z\xac\x9av\xea\xee|h\xba R\xa2\n\xcd\x1c\xff\xbc]`l\x03Q<\x0c\x7f\n\x1f[\xcb\xef\xaa%\x1do\xc7}\xb0\rA\x84"\xed\xd9"\xff\xa1o<\xeex\x17\xe4\x0b\xdaD\xff\xf4U/s\x12\x10<\x115\x17\x1fZ\xcc\xe5\xad"\n\x04\x89)\xb0O\x08\xd0.\xed\xc8(\xb9\xacth\xb60\x13\xaa\x01\x9fO\xe4\xf4W..l\x10oXrYV\x1c\x85\xa6\xe6F^.\x89)\xb0O\x08\xd0.\xe7\xc8%\xfd\xbdi;\xbay\x01\xe4\x04\xd1\x1c\xe5\xacU\x1fh\x03Q+\x1d Y\x01U\xd1\xee\xec"\x06c\xf6a\xf1\x1cE\x91}\xa6\xd52\xb7\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}\xed\x87l\xfc\xeeqy\xe9cR\xb0\r\xdeR\xab\xbdL3 \x12B:\x1dr\x0f\x17P\xd0\xe3\xf6F^.\x89)\xb0O\x08\xd0.\xe7\xe2"\xb9\xee=<\xba0R\xe4O\x9f\x1c\xba\xe1\x18` F\x10oXrYV\x1c\x85\xa6\xecl^.\x89)\xb0O\x08\xd0.\xed\xc8"\xaf\xee(<\xba0R\xe4E\x9f\x1c\xab\xf4\x18` F\x10oHXYV\x1c\x85\xa6\xecl^.\x83)\xbbB\x05\xdd#\xe0\xc5/\xb4\xe301\xb7=_\xe9H\x92\x11\xa6\xf9\x15m-K\x1dbU\x7fT[\x17\x88\xab\xe1aS#\x84$\xbdB\x05\xdd#\xe0\xc5/\xb4\xe36\x16\xba0R\xe4E\x9f\x1c\xab\xf4\x12`|F\x10oXrYV\x1c\x85\xa6\xecl^.\xc6o\xe3O\x08\xd0.\xed\xc8"\xb9\xee=<\xba0\x0e\xe4E\x9f\x1c\xe5\x8bZ)t\x15\x10bXcYV\x1c\x85\xfa\xc6l^.\x89)\xb0O\x08\xd0$\xed\xc3/\xb4\xe301\xb7=_\xe9H\x92\x11\xa6\xf9\x15m-K\x1dbU\x7fT[\x11\x88\xab\xe1aS%\x84$\xbdB\x05\xdd#\xe0\xc5/\xb4\xe301\xb7=_\xe9N\xb5\x1c\xab\xf4\x18` F\x10oRXYV\x1c\x85\xa6\xecl^.\x83)\xc4\x07M\xd0}\xba\x81v\xfa\xa6=k\xf3|\x1e\xe4\x17\xdaV\xee\xb7L`a\x05D&\x17<\nVZ\xca\xf4\xec;\x16g\xcaa\xb0\x00N\x83%\xa3\xb7`\xf0\xban<\xf3cR\xa3\x17\xda]\xff\xb1J`t\x0eQ!X&\x11\x136\x85\xa6\xecl^.\x89)\xb0E\x08\x87g\xa9\x9cj\xb9\xa1{<\xbdt\x01\xb0B\x93\x1c\xe4\xa6\x18)nFG\'\x111\x11V]\xcb\xff\xec.\x17z\xda)\xf9\x01\x08\xd7x\xac\x84w\xfc\xe9=k\xf3d\x1a\xe4\x13\xdeP\xfe\xb1\x18r*L^\x10\x1a;\r\x05\x1c\xca\xf4\xc6l^.\x89)\xb0O\x08\xd0$\xed\x8fp\xfc\xafiy\xe80\x13\xb6\x00\x9fO\xee\xa0\x184oF\x01cX%\x10\x02T\x85\xe3\xbe>\x11|\x89}\xe9\x1fM\xd0A\x8b\xb8G\xcd\x91_]\xdeO3\x871\xf6s\xc5\xf8\x18#o\x02UEXrYV\x1c\x85\xa6\xeclT.\xe6O\xc0-i\xb3Q\x8f\xa9F\xc6\x8fO[\xcf]7\x8a1\x916\xab\xf4\x18` F\x10oXxV|\x1c\x85\xa6\xecl^.\x89'), chr(0b1100100) + chr(6782 - 6681) + chr(99) + '\157' + chr(6462 - 6362) + '\145')(chr(0b1100000 + 0o25) + chr(0b1011111 + 0o25) + chr(0b1100110) + '\x2d' + chr(0b11010 + 0o36))
CexHzcWnYkhe = cWIaHfNNiUjG((ZblOtLLm55lR, roI3spqORKae(ES5oEprVxulp(b'a\xcfz\xcf\x01J\x99z\xbe'), '\x64' + chr(101) + chr(99) + chr(729 - 618) + chr(0b1000101 + 0o37) + chr(0b1100011 + 0o2))('\165' + chr(0b1000111 + 0o55) + '\146' + chr(660 - 615) + chr(56))), (Xcj02ncq3Zqs, roI3spqORKae(ES5oEprVxulp(b'j\xda}'), chr(3578 - 3478) + chr(0b1100101) + '\x63' + '\157' + chr(100) + chr(101))(chr(0b1110101) + chr(0b1101100 + 0o10) + chr(102) + '\x2d' + chr(2486 - 2430))), (_Vtv3ms60DmK, roI3spqORKae(ES5oEprVxulp(b'x\xc8e\xe5\n'), '\144' + chr(6083 - 5982) + '\x63' + chr(0b1101111) + chr(4613 - 4513) + chr(101))('\x75' + chr(0b1110100) + chr(0b1100110) + '\x2d' + '\070')), name=roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf1\x0c\\\x99a\xa3\xb7p\xfc\xa9Bp\xf5q\x16'), '\x64' + chr(0b1011110 + 0o7) + '\x63' + chr(111) + chr(100) + '\145')(chr(117) + '\164' + '\x66' + '\x2d' + chr(0b111000)), base=qSm5cD5ZYDzE, classifyby=(zmUt3n8sjIS5,), criteria=lambda bI5jsQ9OkQtj: roI3spqORKae(bI5jsQ9OkQtj, OdJ5rf1Z_Bz_) == zmUt3n8sjIS5, init=KwYRr6MBamjO(zmUt3n8sjIS5, OdJ5rf1Z_Bz_), formatter=J_2CRGNVxsCv(lambda bI5jsQ9OkQtj: roI3spqORKae(ES5oEprVxulp(b'b\xc6h\xf4U\x18\x88+\xb5\xc5<\xbc\xbdF9\xfe>\\\xe1\x01\xe2'), chr(5044 - 4944) + chr(9064 - 8963) + '\x63' + chr(111) + '\x64' + chr(0b1100101))('\x75' + chr(116) + chr(922 - 820) + '\x2d' + '\070') % (bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'x\xc8e\xe5\n'), '\x64' + chr(0b1100001 + 0o4) + chr(99) + chr(0b10001 + 0o136) + chr(0b1000110 + 0o36) + chr(0b1100101))('\x75' + chr(0b1110100) + chr(0b11101 + 0o111) + chr(0b100110 + 0o7) + chr(0b111000))], bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'j\xda}'), chr(0b100 + 0o140) + '\x65' + chr(4305 - 4206) + chr(0b1100010 + 0o15) + chr(0b1100000 + 0o4) + chr(101))(chr(117) + chr(10625 - 10509) + '\146' + '\x2d' + chr(0b111000))], bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'a\xcfz\xcf\x01J\x99z\xbe'), chr(0b100001 + 0o103) + chr(0b1100101) + chr(0b1100011) + chr(0b110 + 0o151) + chr(4828 - 4728) + '\x65')(chr(622 - 505) + chr(2785 - 2669) + chr(102) + chr(0b101010 + 0o3) + chr(0b111000))] >> nzTpIcepk0o8(chr(0b10011 + 0o35) + chr(0b1101111) + chr(0b110110), 8), (bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'a\xcfz\xcf\x01J\x99z\xbe'), chr(100) + chr(101) + chr(0b1100011) + chr(0b1101111) + '\144' + '\145')('\165' + chr(0b1001110 + 0o46) + chr(6795 - 6693) + chr(146 - 101) + chr(1832 - 1776))] >> nzTpIcepk0o8('\x30' + chr(111) + chr(0b110110), 8)) + (bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'a\xcfz\xcf\x01J\x99z\xbe'), chr(0b100001 + 0o103) + chr(0b1100101) + chr(0b1100011) + chr(3658 - 3547) + '\144' + chr(0b1000111 + 0o36))('\165' + chr(116) + chr(0b1100110) + chr(0b100011 + 0o12) + chr(0b101 + 0o63))] & nzTpIcepk0o8(chr(892 - 844) + chr(0b1101111) + chr(0b110 + 0o61) + chr(1603 - 1548), 14175 - 14167)))))
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf1\x0c\\\x99a\xa3\xb7p\xfc\xa9Bp\xf5q\x16'), chr(0b1000011 + 0o41) + '\145' + chr(0b10100 + 0o117) + '\x6f' + '\144' + chr(3850 - 3749))(chr(0b1100100 + 0o21) + chr(9506 - 9390) + chr(0b1100110) + chr(0b101101) + chr(56))] = CexHzcWnYkhe
roI3spqORKae(ES5oEprVxulp(b'\x04\x89)\xb0O\x08\xd0.\xed\xc7(\xb9\x8f~h\xf3\x7f\x1c\xe4\x16\xcbN\xfe\xb7L5r\x03\x10)\x17 Y8d\xe4\xd5\x98\x13-Z\xe8J\xdb0x\xa5]\x85\xc8c\xf7\xaa=R\xc2Q!\x90:\xech\xca\x97s\x1fP)`arrYV\x1c\x85\xa6\xecl^$\xa3)\xb0O\x08\xd0.\xed\xc8"\xb3\xeeMi\xe9x\x17\xb7E\x97S\xf9\xf4H/p\x15\x19o\x1e;\x1c\x1aX\xfe\xe9\xaa*\rk\xdd3\xb0\x00N\x96}\xa8\x9c"\xb2\xeesC\xf8y\x06\xb78\x9fH\xe4\xf4\x10/rFV=\x17?P|\x1c\x85\xa6\xecl^.\x89)\xbaO\\\x9f~\xed\x87d\xb9\xbauy\xbac\x06\xa5\x06\xd4\x12\x81\xf4\x18` F\x10oXrSY6\x85\xa6\xecl^.\x89)'), chr(0b1010101 + 0o17) + chr(0b1100101) + '\143' + chr(111) + chr(0b1100100) + '\145')('\165' + chr(0b1110100) + chr(102) + '\x2d' + '\070')
fAVIB9nMwcEb = cWIaHfNNiUjG((ZblOtLLm55lR, roI3spqORKae(ES5oEprVxulp(b'a\xcfo\xe3\n\\'), '\144' + '\x65' + chr(99) + chr(0b1101111) + chr(0b1100100) + chr(101))(chr(0b1001110 + 0o47) + chr(116) + chr(102) + chr(0b10101 + 0o30) + chr(56))), (Xcj02ncq3Zqs, roI3spqORKae(ES5oEprVxulp(b'h\xc0l\xfc\x0b'), '\x64' + '\x65' + chr(0b1100011) + chr(111) + chr(0b111010 + 0o52) + '\145')(chr(117) + '\x74' + chr(102) + chr(0b101101) + chr(947 - 891))), (ZblOtLLm55lR, roI3spqORKae(ES5oEprVxulp(b'`\xf6k\xf9\x1b['), chr(0b1100100) + chr(0b1100101) + '\x63' + '\x6f' + chr(0b100001 + 0o103) + chr(0b101100 + 0o71))('\x75' + chr(0b1110100) + chr(102) + chr(0b101101) + '\x38')), (aZB1vwmdWU_M[nzTpIcepk0o8(chr(48) + '\157' + chr(0b110110), 8)],), name=roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf1\x0c\\\x99a\xa3\xb7q\xed\xaf~w'), chr(1486 - 1386) + chr(7730 - 7629) + chr(0b100111 + 0o74) + '\x6f' + '\144' + chr(4829 - 4728))(chr(0b1101010 + 0o13) + chr(0b10000 + 0o144) + chr(8212 - 8110) + chr(45) + '\x38'), base=qSm5cD5ZYDzE, classifyby=(I9DvWZMGLX2B, CVl4qiCdWGF5), criteria=lambda bI5jsQ9OkQtj: roI3spqORKae(bI5jsQ9OkQtj, OdJ5rf1Z_Bz_) == I9DvWZMGLX2B or roI3spqORKae(bI5jsQ9OkQtj, OdJ5rf1Z_Bz_) == CVl4qiCdWGF5, init=KwYRr6MBamjO(I9DvWZMGLX2B, OdJ5rf1Z_Bz_), formatter=J_2CRGNVxsCv(lambda bI5jsQ9OkQtj: roI3spqORKae(ES5oEprVxulp(b"+\xda3\xb5\x1cs\xd5j\xe3\xc6'\xfd\x93"), chr(100) + chr(1926 - 1825) + chr(0b1100011) + chr(9888 - 9777) + chr(5392 - 5292) + '\x65')(chr(0b1110101) + chr(116) + chr(0b1100000 + 0o6) + '\x2d' + chr(56)) % (roI3spqORKae(ES5oEprVxulp(b'~\xdcz\xf8'), chr(0b11100 + 0o110) + chr(4838 - 4737) + chr(99) + '\157' + '\x64' + chr(0b1100101))(chr(117) + '\164' + chr(0b111110 + 0o50) + chr(0b101101) + chr(0b100110 + 0o22)) if bI5jsQ9OkQtj[OdJ5rf1Z_Bz_] == roI3spqORKae(ES5oEprVxulp(b'@\xf1H\xc3;w\xa3Z\x8c\xabI\xc6\x9eHO\xd2'), chr(0b1100100) + chr(0b1100101) + chr(99) + '\x6f' + chr(100) + '\145')('\x75' + chr(0b1110100) + chr(0b1100110) + chr(0b11101 + 0o20) + '\070') else roI3spqORKae(ES5oEprVxulp(b'~\xc6y'), chr(0b1100100) + chr(0b1100101) + chr(0b11 + 0o140) + '\x6f' + '\x64' + chr(0b1100101))(chr(0b1110101) + chr(116) + chr(0b110000 + 0o66) + '\055' + '\x38'), bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'h\xc0l\xfc\x0b'), chr(100) + chr(0b1100101) + chr(7586 - 7487) + '\x6f' + chr(0b1100100) + chr(9230 - 9129))('\165' + '\x74' + chr(0b1100101 + 0o1) + chr(45) + '\x38')], bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'a\xcfo\xe3\n\\'), chr(100) + chr(7133 - 7032) + '\x63' + chr(6243 - 6132) + chr(0b1100100) + chr(0b1100101))(chr(0b1000011 + 0o62) + chr(0b1110011 + 0o1) + chr(0b1100110) + chr(0b10 + 0o53) + '\x38')], bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'a\xcfo\xe3\n\\'), chr(8069 - 7969) + chr(101) + chr(0b1100011) + chr(0b1101111) + '\x64' + '\x65')(chr(4781 - 4664) + chr(116) + '\x66' + '\x2d' + '\070')] + bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'`\xf6k\xf9\x1b['), chr(2131 - 2031) + chr(101) + '\143' + '\157' + '\x64' + '\145')(chr(117) + chr(13264 - 13148) + chr(9341 - 9239) + chr(1399 - 1354) + chr(0b101010 + 0o16))] - nzTpIcepk0o8(chr(48) + chr(5769 - 5658) + '\x31', 8))))
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf1\x0c\\\x99a\xa3\xb7q\xed\xaf~w'), chr(0b0 + 0o144) + '\x65' + chr(5210 - 5111) + chr(0b10000 + 0o137) + '\x64' + chr(1746 - 1645))(chr(0b1110000 + 0o5) + chr(116) + chr(4358 - 4256) + chr(45) + '\070')] = fAVIB9nMwcEb
roI3spqORKae(ES5oEprVxulp(b'\x04\x89)\xb0O\x08\xd0.\xed\xc7(\xb9\x8f~h\xf3\x7f\x1c\xe4\x16\xcbN\xfe\xb7L5r\x03\x10)\x17 Y8d\xe4\xd5\x98\x130A\xfdL\xbee\x08\xd0.\xed\xc8"\xb9\xee=6\x900R\xe4E\x9f\x1c\xab\xf4\x18j 2X&\x0br\x18\x15H\xcc\xe9\xa2l\x16o\xda)\xfe\x00\x08\x95h\xab\x8da\xed\xe0=<\xd3dR\xad\x16\x9fJ\xea\xa6Q!b\nUo\x147\x17\x11H\xcd\xa8\xecl*f\xcc)\xe3\x18A\x84m\xa5\xc8f\xf6\xabn<\xf4\x7f\x06\xceE\x9f\x1c\xab\xf4\x18` F\x1ao\x19&\r\x13Q\xd5\xf2\xec8\x11.\xc0g\xe4\nZ\x80|\xa8\x9c"\xed\xa6x<\xefc\x17\xb6H\xdbY\xed\xbdV%dF\x17!\x17&\x1cQ\x1c\xc1\xe7\xb8-^g\xc7)\xf1\x01Q\xd0y\xac\x91,\xb9\xee\\<\xf9\x7f\x1c\xb0\x17\xd0P\xe7\xb1JJ F\x10oXrYV\x1c\x8f\xa6\xaf-\x10.\xdcz\xf5O\\\x98g\xbe\xc8c\xfa\xbats\xf40\x06\xabE\xdeH\xff\xb5[( \x07B-\x11&\x0b\x17N\xdc\xa6\xa1)\no\xcdh\xe4\x0e\x08\x84a\xed\x89"\xff\xa2rk\xb4\x1aR\xe4E\x9f\x1c\xab\xf4\x18`*l\x10oXrYV\x1c\x85\xa6\xe6l*f\xc0z\xb0\x0eK\x84g\xa2\x86"\xf4\xa7zt\xee0\x15\xabE\xdeK\xea\xad\x18)nFD\'\x1dr\x1f\x03H\xd0\xf4\xa9bt.\x89)\xb0O\x08\xd0.\xed\xc2-\x93\xee=<\xba0R\xe4E'), chr(0b1100100) + '\145' + chr(99) + chr(0b1101111) + '\x64' + chr(101))(chr(117) + chr(116) + chr(102) + chr(715 - 670) + chr(0b100111 + 0o21))
m5vNTfVYfOw7 = cWIaHfNNiUjG((G4I891vf23Dj, roI3spqORKae(ES5oEprVxulp(b'`\xc6}\xf5'), chr(100) + chr(101) + chr(99) + chr(0b11111 + 0o120) + '\x64' + '\145')('\x75' + '\164' + chr(102) + chr(916 - 871) + chr(56))), name=roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf1\x0c\\\x99a\xa3\xb7l\xf6\xbax'), '\144' + '\145' + '\x63' + '\157' + chr(0b1100100) + chr(0b1100101))('\165' + chr(0b1110100) + '\146' + chr(45) + '\x38'), base=qSm5cD5ZYDzE, classifyby=(dN08cxMrsjvK,), criteria=lambda bI5jsQ9OkQtj: roI3spqORKae(bI5jsQ9OkQtj, OdJ5rf1Z_Bz_) == dN08cxMrsjvK, init=KwYRr6MBamjO(dN08cxMrsjvK, OdJ5rf1Z_Bz_))
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf1\x0c\\\x99a\xa3\xb7l\xf6\xbax'), '\x64' + chr(0b1100101) + '\x63' + chr(0b1101111) + chr(0b1100001 + 0o3) + chr(0b11 + 0o142))(chr(10776 - 10659) + chr(0b10001 + 0o143) + chr(0b1100110) + chr(0b1000 + 0o45) + chr(2194 - 2138))] = m5vNTfVYfOw7
roI3spqORKae(ES5oEprVxulp(b'\x04\x89)\xb0O\x08\xd0.\xed\xc7(\xb9\x8f~h\xf3\x7f\x1c\xe4\x16\xcbN\xfe\xb7L5r\x03\x10)\x17 Y8d\xe4\xd5\x98\x133[\xe5]\xd9?i\xa4F\xe3\xe2"\xb9\xee=<\xba0R\xe4O\xb5\x1c\xab\xf4\x18` F\x10oRr-\x1eU\xd6\xa6\xad/\ng\xc6g\xb0\x1fM\x82h\xa2\x9ao\xea\xeeit\xff0\x14\xab\t\xd3S\xfc\xbdV\' \x15D*\x08!Y\x1fR\x85\xf5\xa9=\x0bk\xc7j\xf5U"\xd0.\xed\xc8"\xb9\xee=<\xb0\x1aR\xe4E\x9f\x1c\xab\xf4\x18`*F\x10oXcWVt\xc4\xf5\xa4)\r.\xdda\xf5ON\x99k\xa1\x8cq\xb9\xaaxo\xf3w\x1c\xa5\x11\xdaX\xab\xb6A`\'\x00Y*\x146\nQ\x10\x85\xe9\xa2)^a\xcf)\xde7w\xb8O\x9e\xa0]\xdf\x87XP\xdeC-\xeeK\xb5\x1c\xab\xf4\x18` F\x10oRrYV\x1c\x85\xa6\xec\x1e\x1bh\xcc{\xb0\x1bG\xd0z\xa5\x8d"\xfd\xab{u\xf4y\x06\xad\n\xd1\x1c\xe4\xb2\x18be\x08E"X<\x01)Q\xd5\xd9\xaa%\x1bb\xcdz\xb2ON\x9f|\xed\x8cg\xed\xaftp\xe9>x\xe4E\x9f\x1c\xab\xf4\x18` L:oXrYV\x1c\x85\xa6\xecf^.\x89)\xb0O\x08\xa4f\xa8\xc8%\xfb\xafnu\xe97R\xb2\x04\xd3I\xee\xf4Q3 \x13C*\x1cr\x18\x05\x1c\xc4\xa6\xb9"\x17x\xcc{\xe3\x0eD\xd0f\xac\x9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80\xb3\xe4sC\xf8y\x06\xb7I\x9fK\xe2\xa0P`e\x14B \nr\r\x0fL\xc0\x8c\xecl^.\x89)\xb0O\x08\xda.\x82\xaeR\xdc\x9aB^\xdbT-\x85&\xebu\xc4\x9a\x14`c\tT*X\x1d?&~\xe4\xc5\x93\x0e?J\xf6H\xc2(}\xbdK\x83\xbc,\x93\xee=<\xba0R\xe4E\x9f\x16\xa4\xde\x18` F\x10oXr'), '\144' + '\x65' + '\143' + chr(111) + '\144' + chr(0b100100 + 0o101))('\x75' + chr(261 - 145) + '\x66' + '\055' + chr(0b111000))
J8kmAhtf2dhX = cWIaHfNNiUjG((OUKjfcax9tWT, roI3spqORKae(ES5oEprVxulp(b'h\xc0l\xfc\x0b['), chr(0b100001 + 0o103) + chr(101) + '\143' + '\157' + '\x64' + chr(0b11111 + 0o106))(chr(0b1011001 + 0o34) + chr(0b1000 + 0o154) + chr(102) + chr(45) + '\x38')), (ZblOtLLm55lR, roI3spqORKae(ES5oEprVxulp(b'l\xc8z\xf9\x1c'), chr(7001 - 6901) + chr(101) + chr(0b1100011) + chr(0b1001111 + 0o40) + chr(1935 - 1835) + '\145')('\165' + '\164' + chr(8633 - 8531) + '\055' + chr(2962 - 2906))), (ZblOtLLm55lR,), (ZudfCAZApltK, roI3spqORKae(ES5oEprVxulp(b'o\xc5n\xff\x1dA\x84f\xa0'), chr(100) + chr(0b10010 + 0o123) + '\143' + '\x6f' + '\x64' + '\145')(chr(0b1010 + 0o153) + chr(1773 - 1657) + chr(9978 - 9876) + '\x2d' + '\070')), (ZblOtLLm55lR, roI3spqORKae(ES5oEprVxulp(b'c\xc8q\xcf\x03A\x9ee'), '\144' + '\145' + chr(99) + chr(0b1000111 + 0o50) + '\x64' + '\145')(chr(0b1110101) + chr(11630 - 11514) + chr(6138 - 6036) + chr(45) + chr(0b101010 + 0o16))), (mmxcdOaynu5N, roI3spqORKae(ES5oEprVxulp(b'o\xdbn'), chr(0b1001001 + 0o33) + chr(0b110110 + 0o57) + chr(0b1100011) + chr(111) + chr(2303 - 2203) + chr(101))('\165' + chr(2108 - 1992) + chr(4902 - 4800) + '\055' + chr(56))), (ZblOtLLm55lR,), (ZblOtLLm55lR, roI3spqORKae(ES5oEprVxulp(b'a\xcfz\xcf\x01J\x99z\xbe'), chr(0b1100011 + 0o1) + '\x65' + chr(0b1100011) + '\157' + chr(3445 - 3345) + '\x65')(chr(11737 - 11620) + chr(0b110010 + 0o102) + '\x66' + '\055' + chr(0b111 + 0o61))), (Xcj02ncq3Zqs, roI3spqORKae(ES5oEprVxulp(b'j\xda}'), '\144' + chr(0b1011100 + 0o11) + chr(0b1100011) + chr(0b1101111) + chr(0b1100100) + chr(9409 - 9308))(chr(5387 - 5270) + chr(0b10010 + 0o142) + chr(501 - 399) + chr(0b101101) + chr(0b111000))), name=roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf1\x0c\\\x99a\xa3\xb7o\xec\xa2iu\xeaq\x06\xac'), '\x64' + '\x65' + chr(5796 - 5697) + chr(0b1101111) + chr(0b1100100) + chr(0b1010101 + 0o20))(chr(0b1110101) + '\x74' + chr(102) + chr(0b101101) + chr(0b11010 + 0o36)), base=qSm5cD5ZYDzE, classifyby=(_LLDf45YWu6v,), criteria=lambda bI5jsQ9OkQtj: roI3spqORKae(bI5jsQ9OkQtj, OdJ5rf1Z_Bz_) == _LLDf45YWu6v, init=KwYRr6MBamjO(_LLDf45YWu6v, OdJ5rf1Z_Bz_), formatter=J_2CRGNVxsCv(lambda bI5jsQ9OkQtj: roI3spqORKae(ES5oEprVxulp(b"c\xdce\xe4\x06X\x91z\xa5\xc0'\xea\xe28x\xb65\x01\xe8@\xdb\x10\xae\xb0\x14es=\x15+V|\\\x12a\x8c"), chr(0b1100100) + chr(0b10100 + 0o121) + chr(99) + chr(0b110101 + 0o72) + chr(0b11 + 0o141) + chr(0b11100 + 0o111))(chr(0b1010111 + 0o36) + chr(0b101101 + 0o107) + '\x66' + '\055' + '\070') % (bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'h\xc0l\xfc\x0b['), '\x64' + '\145' + chr(0b1100011) + chr(0b1101111) + '\x64' + '\145')(chr(0b1001001 + 0o54) + chr(116) + chr(0b1100110) + chr(0b101101) + chr(745 - 689))], bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'l\xc8z\xf9\x1c'), chr(100) + chr(0b10110 + 0o117) + chr(99) + chr(0b1000111 + 0o50) + chr(100) + '\145')(chr(117) + chr(0b101111 + 0o105) + chr(9638 - 9536) + '\x2d' + chr(0b110001 + 0o7))], bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'o\xc5n\xff\x1dA\x84f\xa0'), '\144' + chr(101) + chr(0b1100011) + chr(0b1101111) + chr(0b1 + 0o143) + chr(9923 - 9822))(chr(117) + chr(0b1101000 + 0o14) + chr(0b111101 + 0o51) + '\055' + chr(56))], bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'c\xc8q\xcf\x03A\x9ee'), chr(556 - 456) + chr(0b1100101) + '\143' + chr(0b100101 + 0o112) + chr(0b100110 + 0o76) + chr(101))(chr(0b1001100 + 0o51) + chr(0b1010 + 0o152) + '\x66' + chr(455 - 410) + '\070')] + nzTpIcepk0o8('\060' + '\157' + '\x31', 8), bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'o\xdbn'), '\x64' + chr(101) + chr(99) + chr(0b1101111) + chr(100) + '\x65')(chr(0b1000 + 0o155) + chr(116) + '\146' + chr(1256 - 1211) + chr(0b111000))], bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'j\xda}'), chr(100) + chr(0b100 + 0o141) + '\143' + chr(7995 - 7884) + chr(0b1100100) + chr(7299 - 7198))('\165' + '\164' + chr(0b1100110) + chr(0b101101) + '\x38')], bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'a\xcfz\xcf\x01J\x99z\xbe'), '\x64' + chr(5807 - 5706) + '\x63' + chr(111) + '\x64' + '\145')(chr(426 - 309) + '\x74' + chr(2147 - 2045) + '\055' + chr(0b111000))] >> nzTpIcepk0o8('\x30' + chr(3744 - 3633) + chr(1122 - 1068), 8), (bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'a\xcfz\xcf\x01J\x99z\xbe'), chr(3466 - 3366) + chr(101) + '\x63' + '\157' + chr(0b1100100) + chr(0b1010010 + 0o23))(chr(3190 - 3073) + chr(0b1110100) + chr(0b111 + 0o137) + chr(0b101101) + chr(0b111000))] >> nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(54), 8)) + (bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'a\xcfz\xcf\x01J\x99z\xbe'), chr(0b1100100) + '\x65' + chr(1539 - 1440) + chr(0b1101111) + '\144' + chr(0b100011 + 0o102))(chr(117) + '\x74' + chr(0b1100110) + '\x2d' + '\x38')] & nzTpIcepk0o8(chr(0b110000) + chr(0b11110 + 0o121) + chr(0b101011 + 0o14) + chr(0b1 + 0o66), 8)))))
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf1\x0c\\\x99a\xa3\xb7o\xec\xa2iu\xeaq\x06\xac'), chr(100) + '\145' + chr(0b1011111 + 0o4) + chr(0b1101111) + chr(100) + '\145')(chr(6887 - 6770) + '\x74' + '\146' + chr(45) + chr(56))] = J8kmAhtf2dhX
roI3spqORKae(ES5oEprVxulp(b'\x04\x89)\xb0O\x08\xd0.\xed\xc7(\xb9\x8f~h\xf3\x7f\x1c\xe4\x16\xcbN\xfe\xb7L5r\x03\x10)\x17 Y8d\xe4\xd5\x98\x132K\xe8[\xdeA"\xd0.\xed\xc8"\xb9\xee=<\xb0\x1aR\xe4E\x9f\x1c\xab\xf4\x18`*Fd\'\x11!Y\x17_\xd1\xef\xa3"^o\xcdm\xe3OG\x82.\xa0\x87f\xf0\xa8ty\xe90\x13\xe4\x03\xd3S\xfc\xf4Q. \x07^o7"\x1c\x18z\xc9\xe9\xbbl\no\xcbe\x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\x10oXrYV\x1c\x85\xa6\xe6l\x02.\x89)\xa0O\x08\x8c}\xbf\x8b~\xb9\xeeyo\xee0\x0e\xe4E\x9f\x1c\xab\xf4\x18` F\x10oX<&\x14U\xd1\xf5\xecl^.\x89)\xb0O\x08\xd0.\xed\xc8"\xe5\xc4=<\xba0R\xe4E\x9f\x1c\xa1\xf4\x13m-K\x1dbUyT[\x11\x8e\xab\xe1aS#\x84"\xbdB\x05\xdd#\xe0\xc5/\xb4\xe301\xb7=_\xe9H\x92\x11\xa6\xf9\x15m-K\x1dbU\x7fT[\x11\x88\xad\xc6l^.\x89)\xb0O\x08\xd0$\xc7\xc8"\xb9\xee=<\xba0R\xeeE\xebT\xee\xf4U%a\x08Y!\x1fr\x18\x18X\x85\xe0\xa3>\x13o\xdd)\xff\t\x08\x91.\xab\x84m\xee\x91ps\xfeO\x01\xb4\x00\xdc\x1c\xef\xb1H%n\x02Co\x17<YQO\xd7\xe5\xebl\x1f`\xcd)\xb7\x0b[\x84)\xe3\xc8"\xcd\xa6x\x16\xba0R\xe4E\x9f\x1c\xab\xf4\x12`f\t\\#\x17%\x10\x18[\x85\xf2\xad.\x12k\x89z\xe5\x02E\x91|\xa4\x92g\xea\xeeit\xff0\x1f\xa1\x04\xd1U\xe5\xb3\x18/fFU.\x1b:Y\x06S\xd6\xf5\xa5.\x12k\x89j\xff\x02J\x99`\xac\x9ck\xf6\xa03\x16\xba0R\xe4E\x9f\x1c\xab\xf4\x12`D\x03D.\x11>\nVZ\xca\xea\xa0#\t.\xdda\xf5O\\\x91l\xa1\x8d8\x93\xee=<\xba0R\xe4E\x9f\x16\x81\xf4\x18` F\x10oXrSV\x1c\x85\xf5\xbe/^j\xda}\xb0OE\x95o\xa3\x81l\xfe\xc4=<\xba0R\xe4E\x9f\x1c\xa1\xf4\x18`-K\x1doU\x7fTV\x1c\x88\xab\xe1aS#\x84$\xbdB\x05\xdd#\xe0\xc5/\xb4\xe301\xb7=_\xe9H\x92\x11\xa6\xf9\x15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ae5^m\xc6y\xe9\x06F\x97.\xae\x87l\xea\xba|r\xee\x1aR\xe4E\x9f\x1c\xab\xf4\x18`*F\x10oXr\x0f\x17P\xd0\xe3\xbfl\x17`\xddf\xb0\x1fZ\x95|\xa8\x99w\xf0\xbdth\xff0\x14\xad\x00\xd3X\xf8\xfa2` F\x10oXrYV\x16\xaf\xa6\xecl^.\x89)\xb0O\x02\xd0.\xed\xc8"\xcd\xa6x<\xe9g\x1b\xb0\x06\xd7\x1c\xfc\xbdT, \x14U%\x1d1\rVZ\xc9\xe9\xbb\x13\x13a\xcdV\xe3\x1fM\x93}\xed\x9cj\xf8\xba=x\xf50\x1c\xab\x11\x9fO\xea\xa0Q3f\x1f\x10\x01 \x1fY\x1b]\xd6\xed\xa5"\x19\x04\x89)\xb0O\x08\xd0.\xed\xc8(\xb9\xee=<\xbab\x17\xb7\x11\xcdU\xe8\xa0Q/n\x15\x1eEXrYV\x1c\x85\xa6\xeclT\x04\x89)\xb0O\x08\xd0.\xed\xc8(\xb9\xee=1\xbaY\x14\xe4B\xdbO\xff\xf3\x18)sF\x01cX&\x11\x13\x1c\xc3\xea\xa3;!c\xc6m\xcf\x1cX\x95m\xed\x9br\xfc\xadtz\xf3u\x01\xe4\x04\xd1\x1c\xc5\x8cy\x13T9b\n?\r59}\xe1\xa6\xad/\ng\xc6g\xb0\tG\x82\x04\xed\xc8"\xb9\xee=<\xba0X\xe4E\x9f\x1c\xab\xa0P% \x08U8X4\x15\x19K\x8b\xa6\xec\x18\x16k\x89g\xf5\x18\x08\x96b\xa2\x9f"\xfa\xa1mu\xffcR\xb0\r\xda\x1c\xf8\xbbM2c\x03\x10-\x11&\nVU\xcb\xf2\xa3F^.\x89)\xb0O\x08\xd0.\xe7\xc8"\xb9\xee=z\xf3u\x1e\xa0>\xd0Z\xf8\xeeW&sM^\x10\x1a;\r\x05\x11\x94\xdb\xe2l^O\xca}\xf9\x00F\x83.\xac\x9ag\xb9\xabey\xf9e\x06\xa1\x01\x9fU\x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Ks\xe3\xd6\x93\x08;H\xe8\\\xdc;w\xa0\\\x84\xa7P\xd0\x9aD0\xbav\x1e\xa5\x02\xcc\x01\xbb\xf8\x184a\x04\\*\';\x1dK\r\x95\xa8\xc6l^.\x89)\xb0O\x08\xd0$\xc7\xc8"\xb9\xee=<\xba0R\xeeE\x8e\x12\xab\x98]!r\x08\x10&\x16"\x0c\x02\x1c\xd5\xe9\xbe8^l\xc8z\xf5\x0b\x08\x9f`\xed\x9cj\xfc\xeens\xefb\x11\xa1E\xf2}\xc8\xf8\x187i\x12Xo\x14=\x16\x1dI\xd5\xa6\xa5"\na\xa3)\xb0O\x08\xd0.\xed\xc8"\xb3\xee=<\xba^*\x89:\xf1d\xd4\x86}\x071=\x01yBaH+\x1c\xc7\xff\xec>\x1b}\xdck\xfd\x06\\\xd0z\xa2\xc8k\xf7\x91ms\xe8dO\xfd\\\x856\xab\xf4\x18` F\x10oXxsV\x1c\x85\xa6\xecl^.\x89#\xb0O\x08\xd0C\xac\x9ca\xf1\xeerr\xbay\x1c\x9b\x15\xd0N\xff\xe9\x01y:l\x10oXrYV\x1c\x85\xa6\xe6l^.\x89)\xb0OG\x86}\x92\x8ag\xa8\xf85o\xe8sO\xf5I\x9fX\xf8\xa0\x05p,F^\x10\x1a;\r\x05\x01\x94\xb0\xe5`^.\x89)\xb0O\x08\xd0.\xed\xc8"\xb9\xee=.\xaa0C\xf4o\x9f\x1c\xab\xf4\x18` F\x10eXrYV\x1c\x85\xa6\xa3:\rQ\xcbl\xa1Y\x00\xc97\xe4\xc4"\xb9\xee=<\xba0R\xe4E\x9f\x1c\xab\xf4\x18` F\x10oXrYV\x1c\x85\xa6\xecl^.\x89)\xb0O\x08\xc0>\xed\xde1\x93\xee=<\xba0R\xe4E\x9f\x16\xab\xf4\x18` F\x10 \x0e!&\x14Y\x96\xb4\xe4\x02&C\xf6F\xd60a\xbeQ\x9d\xa7P\xcd\xe71<\xf5f\x01\x9b\x07\xda\r\xbd\xfc\x08i F\x10oXrYV\x1c\x85\xa6\xec|N.\x999\xb0_\x18\xd0>\xff\xc82\xa9\xee-,\x900R\xe4E\x9f\x1c\xab\xf4\x18j\nF\x10oXrYV\x1c\x85\xac\xecl^.\xe4h\xe4\x0c@\xd0K\xb9\x80g\xeb\xa0xh\xbat\x17\xb7\x11\xd6R\xea\xa0Q/nF_!X\x17\r\x1eY\xd7\xe8\xa98^}\xc6|\xe2\x0cM\xd0h\xbf\x87o\xb9\xbe|\x7f\xf1u\x06\xfeo\x9f\x1c\xab\xf4\x18` F\x10eXrYV\x1c\x85\xa6\xa3:\rQ\xcbl\xa1Y\x00\x83|\xae\xd52\xb5\xeeyo\xee-B\xe8E\xd1c\xe9\xbdL3=R\x08fTrYV\x1c\x85\xa6\xecl^.\x89)\xb0O\x08\xc0>\xed\xdb2\x93\xee=<\xba0R\xe4E\x9f\x16\xab\xf4\x18` F\x10 \x0e!&\x14Y\x96\xb4\xe4\x02&C\xf6F\xd60m\xa4F\x92\xbbP\xda\xe71<\xf5f\x01\x9b\x07\xda\r\xbd\xfc\x08i F\x10oXrYV\x1c\x85\xa6\xec|N.\x999\xb0_\x1c\xd0>\xfb\xc82\xa9\xee-,\x900R\xe4E\x9f\x1c\xab\xf4\x18j F\x10oXrY\x19J\xd6\xd9\xae)M<\x81G\xc8"w\xbfH\x92\xadV\xd1\x91YO\xce9^\xe4\n\xc9O\xd4\xb6]q6N\x00fXrYV\x1c\x85\xa6\xecl^.\x899\xa0O\x18\xc0.\xfd\xda"\xa9\xf8=,\xaa0B\xf4o\x9f\x1c\xab\xf4\x18` F\x10errYV\x1c\x85\xa6\xecl^$\x89)\xb0O{\x95z\xed\xa6Z\xd4\x91SD\xc5B7\x83T\xe4\r\xbd\xee\x0bq]FD X&\x11\x13\x1c\xd5\xe7\xaf\'\x1bz\x8ez\xb0\x06F\x80{\xb9\xc8r\xf6\xbci&\x900R\xe4E\x9f\x1c\xab\xf4\x18j F\x10oXrY\x19J\xd6\xd9\xae)O8\x81z\xe2\x0c\x15\xc0"\xed\x8cq\xed\xf3,0\xba~-\xa6\x0c\xcbO\xb6\xe5\x0ei,F\x10oXrYV\x1c\x85\xa6\xecl^.\x899\xa8O\x19\xc0\x04\xed\xc8"\xb9\xee=<\xba0X\xe4E\x9f\x1c\xab\xf4\x18/v\x15o-\x1daK^r\xfd\xcb\x93\x038Q\xe0G\xcf?g\xa2Z\xe4\xc4"\xf6\xb8nC\xf8uC\xf2M\x8f\x15\xab\xf4\x18` F\x10oXrYV\x0c\x95\xa6\xfc|^>\x99)\xa0]\x08\xc0>\xed\xd82\x93\xee=<\xba0R\xe4E\x9f\x16\xab\xf4\x18` F\x10 \x0e!&\x14Y\x96\xb4\xe4\x02&C\xf6G\xc80z\xb5I\xfc\xc1.\xb9\xa1ko\xc5r\x17\xf5S\x97\r\xbd\xfd\x18` F\x10oXrYV\x1c\x85\xa6\xec|N.\x998\xb0_\x1a\xd0>\xf9\xc82\xa9\xee,,\x900R\xe4E\x9f\x1c\xab\xf4\x18j\nF\x10oXrYV\x1c\x85\xac\xecl^.\xee`\xe6\nF\xd0o\xed\x98c\xfa\xa5xh\xbad\x1a\xa5\x11\x9f]\xf9\xa6Q6e\x02\x10 \x16r\t\x19N\xd1\xa6\x8dl\tg\xdda\xb0*\\\x98k\xbf\x86g\xed\xeens\xefb\x11\xa1E\xdeX\xef\xa6]3sFrcrrYV\x1c\x85\xa6\xecl^$\x89)\xb0O\\\x98g\xbe\xc8u\xf6\xbbqx\xbac\x17\xb0E\xcaL\xab\xa0P% \x00\\ \x0fr[\x1fR\xfa\xf6\xa3>\n3\x900\xbcOL\x9cQ\xa9\x9bv\xa4\x8c1\x16\xba0R\xe4E\x9f\x1c\xab\xf4\x12` F\x10.\x1b&\x10\x19R\xd6\xbb\xa0#\x1fj\x93H\xbdQf\xa8C\x92\xa6Z\xc6\x9cX[\xabKC\xf2K\x91\x0f\xba\x89\x1an\nF\x10oXrYV\x1c\x85\xac\xc6l^.\x89)\xb0O\x08\xd0$\xed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0O\x18\xc0.\xfd\x8b\x08\xb9\xee=<\xba0R\xe4E\x95\x1c\xab\xf4\x18` F_9\x0b\r\x1b\x13\x0f\x97\xae\x82\x143Q\xe6O\xcf9d\xb1@\x92\xbcA\xd0\xe71<\xf5f\x01\x9b\x07\xda\r\xbd\xfc\x08i F\x10oXrYV\x1c\x85\xa6\xfc|^>\x99)\xa0W\x08\xc0<\xed\xd82\xb9\xfe-\x16\xba0R\xe4E\x9f\x1c\xab\xf4\x12` F\x10oXr\x16\x00O\xfa\xe4\xa9\x7fL&\xe7Q\xdd0g\xb6Q\x9b\xa4C\xd7\x91I_\xd39^\xe4\n\xc9O\xd4\xb6]q6N\x00fXrYV\x1c\x85\xa6\xecl^.\x999\xb0_\x18\xd0>\xf5\xc82\xab\xee-,\xba B\xceE\x9f\x1c\xab\xf4\x18` F\x1aEXrYV\x1c\x85\xa6\xeclT.\x89)\xb0"I\x84m\xa5\xc8G\xed\xa6xn\xf4u\x06\xe4\x01\xdaO\xff\xbdV!t\x0f_!X=\x17Vy\xd1\xee\xa9>\x10k\xdd)\xe3\x00]\x82m\xa8\xc8d\xeb\xa1p<\xeaq\x11\xaf\x00\xcb\x06\x81\xf4\x18` F\x10oXrSV\x1c\x85\xa6\xecl^a\xdfz\xcf\rM\xc18\xe5\x9bp\xfa\xf3-0\xbat\x01\xb0X\x8f\x10\xab\xbag"i\x12CrLjPZ\x1c\x85\xa6\xecl^.\x89)\xb0O\x08\xd0.\xed\xd82\xb9\xfd-\x16\xba0R\xe4E\x9f\x1c\xab\xf4\x12` F\x10oXr\x16\x00O\xfa\xe4\xa9\x7fL&\xe7Q\xdd0g\xb6Q\x88\xbcJ\xc6\x9dO_\xb3<R\xab\x13\xccc\xe9\xb1\tv(V\x19oXrYV\x1c\x85\xa6\xecl^.\x999\xb0_\x18\xd0>\xf9\xc82\xaf\xee-,\xba B\xceE\x9f\x1c\xab\xf4\x18` F\x1aoXrYV\x1c\x85\xe9\xba?!l\xcc:\xa2Gf\xa8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x08\x93o\xa3\xc8v\xf1\xabs<\xfee\x1f\xb4E\xcbT\xee\xf4u\x01CF\\*\x19 \x17\x1fR\xc2\xa6\xb8-\x1cb\xcc)\xe7\x06\\\x984\xc7\xc8"\xb9\xee=<\xba0R\xeeo\x9f\x1c\xab\xf4\x18` F\x10eXrYV\x1c\x85\xe9\xba?Sa\xcfj\xe4\x03\x08\x94{\xa0\x98/\xff\xa2rk\xe90\x10\xb6U\x9fH\xea\xb6T%=W:oXrYV\x1c\x85\xa6\xecft.\x89)\xb0O\x08\xd0.\xed\xc2"\xcc\xbd|{\xff03\xa0\x13\xd6_\xee\xde\x18` F\x10oXrY\\\x1c\x88\xab\xe1aS#\x84$\xbdB\x05\xdd\x04\xed\xc8"\xb9\xee=<\xba0X\xceE\x9f\x1c\xab\xf4\x18` F\x1ao>=\x0bV^\xc0\xf5\xb8l\x0ek\xdbo\xff\x1dE\x91`\xae\x8d.\xb9\xbdx{\xe8u\x15\xa5\x11\xda\x1c\xe7\xb1Y2n\x03To\x1e>\x16\x01O\x85\xef\xa28\x11.\xc8)\xe4\x0eJ\x9ck\xed\x9cj\xf8\xba=u\xe90\x1c\xab\x11\x9fI\xf8\xb1\\J F\x10oXrYV\x1c\x8f\xa6\xaa#\x0c.\xc8g\xe9OG\x84f\xa8\x9a"\xff\xa2rk\xe90\x17\xbc\x06\xdaL\xff\xf4H/s\x15Y-\x14+Y\x10S\xd7\xa6\xadl\x12a\xdel\xe3\x1b\x05\x80|\xa4\x87p\xf0\xbad<\xb8s\x13\xb0\x06\xd7\x11\xea\xb8Tb \x00\\ \x0fXYV\x1c\x85\xa6\xecl^.\x83)\xb8\x0e\x08\x96b\xa2\x9f"\xee\xa7it\xba~\x1d\xe4\x08\xdeH\xe8\xbc\x18#r\x0fD*\n;\x18_\x12\x85\xa6\x85*^j\xc0o\xf6\nZ\x95`\xb9\xc8n\xfc\xafor\xf3~\x15\xe4\x04\xdcH\xe2\xbbV3 \x15@*\x1b;\x1f\x0f6\x85\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3~\x01\xb0\x00\xdeX\xa7\xf4O% \x11Q!\x0cXYV\x1c\x85\xa6\xecl^.\x83)\xe4\x07M\xd0C\x8c\xab"\xf5\xab|n\xf40\x17\xaa\x11\xcdE\xab\xa0W`e\x1e@&\n7Y\x01T\xc0\xe8\xec"\x11.\xdd{\xf1\tN\x99m\xed\x80c\xea\xee\x7fy\xff~R\xb7\x00\xd1H\xab\xfe^2o\x0b\x1ao\x0c:\x1c|\x1c\x85\xa6\xecl^.\x89)\xbaOD\x95o\xbf\x86g\xfd\xee|x\xfeb\x17\xb7\x16\x91\x1c\xab\x81K% \x07\x10\'\x19 \x1dVH\xcc\xeb\xa9#\x0bz\x89o\xff\x1d\x08\x84f\xac\x9c,\x93\xee=<\xba0R\xe4E\x9f\x16\xa4\xde\x18` F\x10oXrY'), chr(0b1011011 + 0o11) + chr(0b11100 + 0o111) + chr(0b10000 + 0o123) + '\157' + chr(0b1100100) + chr(0b1011000 + 0o15))(chr(5130 - 5013) + chr(0b1110100) + '\146' + chr(45) + '\070')
def jXEvxDwh_sa6(bI5jsQ9OkQtj):
if d9PD1aSqVn1E(bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'f\xcch\xf4\nZ'), chr(0b100000 + 0o104) + chr(101) + '\x63' + chr(0b1101111) + chr(0b1010110 + 0o16) + chr(4453 - 4352))(chr(0b1111 + 0o146) + '\164' + '\146' + chr(1183 - 1138) + chr(56))]):
LsUrD9CXFF7E = roI3spqORKae(ES5oEprVxulp(b'>\xd1'), chr(7730 - 7630) + '\x65' + chr(99) + '\157' + '\x64' + '\x65')(chr(10791 - 10674) + chr(6562 - 6446) + '\x66' + chr(805 - 760) + '\x38') + roI3spqORKae(ES5oEprVxulp(b''), '\144' + chr(101) + chr(0b1100011) + chr(0b1101111) + chr(5445 - 5345) + '\145')(chr(0b111111 + 0o66) + chr(0b1100101 + 0o17) + chr(0b1100110) + '\055' + chr(0b10011 + 0o45)).Y4yM9BcfTCNq((roI3spqORKae(ES5oEprVxulp(b'+\x99;\xe8'), chr(311 - 211) + '\145' + chr(0b110000 + 0o63) + '\157' + chr(0b1100100) + chr(0b1100001 + 0o4))('\x75' + chr(0b1100100 + 0o20) + chr(2845 - 2743) + chr(0b11011 + 0o22) + chr(0b11111 + 0o31)) % (teUmM7cKWZUa,) for teUmM7cKWZUa in MdkNqd1bagO6(bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'x\xc8e\xe5\n'), '\144' + chr(101) + '\143' + chr(0b1101111) + chr(0b101000 + 0o74) + chr(101))('\165' + chr(116) + chr(3426 - 3324) + chr(0b101101) + chr(0b100111 + 0o21))])))
else:
LsUrD9CXFF7E = roI3spqORKae(ES5oEprVxulp(b'+\xdaR\xb5\x0b\x06\xde+\xa9\xb5'), '\x64' + '\x65' + chr(99) + chr(0b110010 + 0o75) + chr(1846 - 1746) + chr(0b1100101))('\165' + chr(0b11010 + 0o132) + '\146' + chr(958 - 913) + chr(56)) % (bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'}\xdbj'), '\x64' + chr(1432 - 1331) + chr(0b110011 + 0o60) + chr(0b1011 + 0o144) + '\x64' + chr(0b1100101))(chr(117) + chr(116) + chr(102) + '\x2d' + chr(368 - 312))], bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'}\xdbj\xcf\x00N\x83'), chr(0b1100100) + chr(101) + chr(0b1100011) + chr(4050 - 3939) + chr(0b1100100) + '\145')(chr(117) + '\x74' + '\146' + chr(131 - 86) + '\070')], bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'}\xdbj\xcf\x00N\x83'), chr(0b11011 + 0o111) + chr(4134 - 4033) + '\x63' + '\157' + chr(0b110110 + 0o56) + chr(0b1100101))(chr(0b11001 + 0o134) + '\164' + chr(6921 - 6819) + chr(0b1000 + 0o45) + chr(56))] + Z4umIcJTQkyU(bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'f\xcch\xf4\nZ'), chr(100) + chr(0b11111 + 0o106) + chr(5817 - 5718) + '\x6f' + '\144' + '\145')('\165' + chr(116) + chr(102) + chr(0b1 + 0o54) + chr(56))]) - nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110001), 8))
vTasRlq5mRxp = zcyT1q1fXF8O(bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'f\xcch\xf4\nZ'), '\x64' + '\145' + chr(99) + '\x6f' + chr(100) + '\145')('\x75' + chr(116) + chr(102) + chr(1412 - 1367) + chr(3102 - 3046))])
if vTasRlq5mRxp != Wu2d_0_pDtfR:
b7Vsqdyr9wnI = roI3spqORKae(ES5oEprVxulp(b'+\xdaR\xb5\x0b\x06\xde+\xa9\xb5'), '\144' + chr(101) + chr(7829 - 7730) + chr(6646 - 6535) + '\144' + chr(101))(chr(0b1110101) + '\x74' + '\x66' + '\x2d' + chr(0b111000)) % (bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'j\xda}'), '\x64' + chr(0b110111 + 0o56) + chr(0b11011 + 0o110) + '\157' + chr(0b10011 + 0o121) + '\145')('\165' + '\164' + chr(9450 - 9348) + '\x2d' + chr(0b10010 + 0o46))], bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'j\xda}\xcf\x00N\x83'), '\144' + '\x65' + chr(0b1100011) + chr(6169 - 6058) + chr(0b1010011 + 0o21) + chr(0b1100101))(chr(0b1110101) + chr(0b1000010 + 0o62) + '\x66' + '\055' + '\x38')], bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'j\xda}\xcf\x00N\x83'), chr(0b100101 + 0o77) + '\145' + chr(4345 - 4246) + chr(0b111100 + 0o63) + '\x64' + chr(101))('\x75' + '\164' + '\x66' + chr(966 - 921) + '\070')] + Z4umIcJTQkyU(bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'f\xcch\xf4\nZ'), '\x64' + chr(0b1011010 + 0o13) + chr(99) + '\157' + chr(0b1100100) + chr(8683 - 8582))('\x75' + '\164' + '\146' + chr(1403 - 1358) + chr(0b101110 + 0o12))]) - nzTpIcepk0o8(chr(48) + '\x6f' + chr(70 - 21), 8))
if vTasRlq5mRxp == Q8xr6lhb1YFu:
bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'Q\xcdl\xe3\x0c'), chr(0b1100100) + chr(0b1100101) + '\143' + chr(0b1010100 + 0o33) + chr(5887 - 5787) + chr(0b1100101))(chr(0b1010011 + 0o42) + '\164' + '\x66' + chr(0b101101) + chr(1379 - 1323))] = roI3spqORKae(ES5oEprVxulp(b'+\xda4\xb5\x1c'), chr(0b1100100) + chr(1729 - 1628) + chr(6388 - 6289) + chr(1665 - 1554) + chr(100) + chr(0b1100101))(chr(0b1110101) + chr(0b1110100) + chr(0b1100110) + chr(1441 - 1396) + chr(0b101010 + 0o16)) % (b7Vsqdyr9wnI, LsUrD9CXFF7E)
elif vTasRlq5mRxp == aUdglOHXpD4V:
bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'Q\xcdl\xe3\x0c'), chr(0b1100100) + chr(381 - 280) + chr(0b1100011) + chr(0b10101 + 0o132) + chr(0b1100100) + '\x65')(chr(0b1110100 + 0o1) + '\x74' + chr(0b1001110 + 0o30) + chr(1081 - 1036) + '\070')] = roI3spqORKae(ES5oEprVxulp(b'b\xc6h\xf4U\r\x83#\xf3\xcdq'), chr(0b110000 + 0o64) + chr(9591 - 9490) + chr(7505 - 7406) + chr(0b1101111) + chr(100) + chr(0b110111 + 0o56))(chr(0b1110101) + chr(13376 - 13260) + '\x66' + chr(1292 - 1247) + chr(56)) % (LsUrD9CXFF7E, b7Vsqdyr9wnI)
elif d9PD1aSqVn1E(bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'f\xcch\xf4\nZ'), '\x64' + '\x65' + chr(182 - 83) + '\x6f' + '\x64' + chr(0b1100101))(chr(12555 - 12438) + chr(0b1110100) + chr(0b1100110) + chr(1630 - 1585) + chr(0b111000))]):
bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'Q\xcdl\xe3\x0c'), chr(0b1100100) + '\x65' + chr(0b1100011) + chr(4777 - 4666) + '\144' + '\x65')('\x75' + chr(6519 - 6403) + chr(0b1010010 + 0o24) + chr(718 - 673) + '\x38')] = roI3spqORKae(ES5oEprVxulp(b'a\xdc}\xe0\x1a\\\xca+\xbe'), chr(0b1100100) + '\145' + chr(1549 - 1450) + chr(0b111110 + 0o61) + chr(100) + '\145')(chr(10125 - 10008) + chr(0b1110100) + chr(7736 - 7634) + chr(0b100111 + 0o6) + chr(0b111000)) % x3zggQY5QuqC.Cn6yf2gY02SW(Xv9fz_Mh3ERJ.create_binary(bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'x\xc8e\xe5\n'), '\144' + chr(5401 - 5300) + '\143' + chr(111) + chr(4641 - 4541) + '\x65')(chr(0b1101010 + 0o13) + chr(0b1010111 + 0o35) + chr(7646 - 7544) + chr(0b101101) + chr(0b111000))], nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(50), 8)))
else:
bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'Q\xcdl\xe3\x0c'), chr(5629 - 5529) + chr(0b101101 + 0o70) + '\143' + chr(111) + chr(9878 - 9778) + chr(0b1001 + 0o134))(chr(0b1101100 + 0o11) + '\164' + chr(102) + chr(1035 - 990) + chr(2373 - 2317))] = roI3spqORKae(ES5oEprVxulp(b'a\xdc}\xe0\x1a\\\xca+\xbe'), chr(0b100111 + 0o75) + chr(101) + chr(7691 - 7592) + '\157' + '\144' + '\145')(chr(6890 - 6773) + chr(0b1110100) + chr(102) + chr(0b100 + 0o51) + chr(0b111000)) % (LsUrD9CXFF7E,)
bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'f\xcch\xf4\nZ'), chr(0b1100100) + '\x65' + chr(0b1010111 + 0o14) + chr(111) + '\144' + '\x65')('\x75' + chr(0b1110100) + '\x66' + chr(45) + chr(56))] = HX3DCs7sF81u.Cn6yf2gY02SW(bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'f\xcch\xf4\nZ'), chr(0b1100100) + '\x65' + chr(0b1100011) + '\157' + chr(0b1011001 + 0o13) + chr(101))('\x75' + chr(4457 - 4341) + chr(102) + '\055' + chr(607 - 551))])
return bI5jsQ9OkQtj
f3XvHeaVZNIR = cWIaHfNNiUjG((ZblOtLLm55lR, roI3spqORKae(ES5oEprVxulp(b'f\xcch\xf4\nZ'), chr(100) + '\145' + chr(3515 - 3416) + chr(111) + '\x64' + chr(0b11100 + 0o111))('\x75' + '\x74' + '\146' + '\055' + chr(56))), (LjcPCruuhKCf,), (jKCflb15fSrl,), name=roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf6\x03G\x87Q\xa0\x87f\xc6\xbdmy\xf9'), chr(7080 - 6980) + chr(101) + chr(3707 - 3608) + chr(0b1101111) + chr(100) + '\x65')('\x75' + chr(0b1110100) + chr(0b1100110) + chr(898 - 853) + chr(0b111000)), padding=nzTpIcepk0o8(chr(0b110000) + '\157' + '\061', 8), formatter=jXEvxDwh_sa6, lastextra=nzTpIcepk0o8('\x30' + '\x6f' + chr(0b11011 + 0o25), 8))
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf6\x03G\x87Q\xa0\x87f\xc6\xbdmy\xf9'), chr(100) + chr(0b1100101) + '\143' + chr(111) + '\144' + '\x65')(chr(0b1011000 + 0o35) + '\x74' + '\x66' + '\055' + chr(56))] = f3XvHeaVZNIR
def U92yVhpourBT(kcwvrbh4Gt4r, adnPCXZgML2u, DUq4QrCB1sKZ=nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(566 - 518), 8), B1dcixppN30F=nzTpIcepk0o8(chr(0b110000) + chr(0b1001001 + 0o46) + chr(1120 - 1072), 8), ipXOgQiJcfTw=None):
if ipXOgQiJcfTw is None:
ipXOgQiJcfTw = XURpmPuEWCNF(uAQcozzofCU6(adnPCXZgML2u) * nzTpIcepk0o8(chr(1895 - 1847) + chr(1416 - 1305) + '\061' + '\060', 8) - B1dcixppN30F, uAQcozzofCU6(kcwvrbh4Gt4r) * nzTpIcepk0o8(chr(496 - 448) + chr(111) + '\x31' + '\x30', 8) - DUq4QrCB1sKZ)
if ipXOgQiJcfTw <= nzTpIcepk0o8(chr(0b110000 + 0o0) + '\157' + chr(0b10101 + 0o33), 8):
raise WbNHlDKpyPtQ(roI3spqORKae(ES5oEprVxulp(b'M\xc8g\xfe\x00\\\xd0m\xbf\x8dc\xed\xab=z\xf6\x7f\x05\xe4\x08\xd0X\xab\xa7H%cFG&\x0c:YF\x1c\xc7\xef\xb8?'), '\144' + chr(10080 - 9979) + '\143' + chr(111) + '\144' + '\x65')('\x75' + chr(0b1110100) + chr(0b1100110) + chr(45) + chr(0b101 + 0o63)))
return roI3spqORKae(f3XvHeaVZNIR, roI3spqORKae(ES5oEprVxulp(b"t\xceM\xf6'g\x94E\xae\x9eA\xce"), chr(0b1100100) + '\145' + chr(0b1100011) + chr(0b110100 + 0o73) + chr(100) + '\x65')(chr(0b100010 + 0o123) + chr(0b1101001 + 0o13) + chr(0b1100110) + chr(953 - 908) + '\x38'))(QjacWl4_I7ER(Joy6yDy4_GDH, Q8xr6lhb1YFu, ipXOgQiJcfTw) + XmvUnbPjU24X(kcwvrbh4Gt4r, DUq4QrCB1sKZ) + XmvUnbPjU24X(adnPCXZgML2u, B1dcixppN30F))[nzTpIcepk0o8('\060' + chr(2949 - 2838) + '\x30', 8)]
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'm\xdbl\xf1\x1bM\xaf`\xb5\x8eo\xea\x91p}\xees\x1a\xa2\x0c\xdaP\xef'), chr(9653 - 9553) + chr(0b1010111 + 0o16) + chr(0b1100011) + '\157' + '\144' + chr(101))(chr(0b1001101 + 0o50) + chr(0b11110 + 0o126) + chr(102) + chr(0b10000 + 0o35) + '\070')] = U92yVhpourBT
def v2hVrczpL25F(adnPCXZgML2u, uV9iBiw0y_Mp, B1dcixppN30F, ipXOgQiJcfTw=None):
if ipXOgQiJcfTw is None:
ipXOgQiJcfTw = uAQcozzofCU6(adnPCXZgML2u) * nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(49) + chr(0b110000), 8) - B1dcixppN30F
if ipXOgQiJcfTw <= nzTpIcepk0o8('\060' + chr(10279 - 10168) + chr(0b110000), 8):
raise WbNHlDKpyPtQ(roI3spqORKae(ES5oEprVxulp(b'M\xc8g\xfe\x00\\\xd0m\xbf\x8dc\xed\xab=z\xf6\x7f\x05\xe4\x08\xd0X\xab\xa7H%cFG&\x0c:YF\x1c\xc7\xef\xb8?'), chr(4473 - 4373) + chr(6167 - 6066) + chr(9107 - 9008) + chr(0b1101111) + chr(100) + chr(101))('\165' + chr(0b1001000 + 0o54) + '\x66' + '\x2d' + chr(0b111000)))
return roI3spqORKae(f3XvHeaVZNIR, roI3spqORKae(ES5oEprVxulp(b"t\xceM\xf6'g\x94E\xae\x9eA\xce"), chr(100) + chr(0b100100 + 0o101) + '\143' + '\x6f' + chr(5140 - 5040) + chr(0b1001010 + 0o33))(chr(0b1001110 + 0o47) + chr(9007 - 8891) + chr(0b1100110) + '\055' + '\070'))(QjacWl4_I7ER(Gy3Rmq11zGBi, Q8xr6lhb1YFu, ipXOgQiJcfTw) + roI3spqORKae(Xv9fz_Mh3ERJ, roI3spqORKae(ES5oEprVxulp(b'm\xdbl\xf1\x1bM\xafl\xa4\x86c\xeb\xb7'), chr(100) + chr(101) + chr(0b1010001 + 0o22) + chr(0b1101111) + chr(0b1100100) + '\x65')(chr(117) + chr(6262 - 6146) + '\146' + '\x2d' + chr(56)))(uV9iBiw0y_Mp, (ipXOgQiJcfTw + nzTpIcepk0o8('\x30' + '\x6f' + '\x31' + '\067', ord("\x08"))) // nzTpIcepk0o8('\060' + '\x6f' + chr(215 - 165) + '\060', 8) * nzTpIcepk0o8(chr(0b110000) + '\157' + '\x32', 8)) + XmvUnbPjU24X(adnPCXZgML2u, B1dcixppN30F))[nzTpIcepk0o8('\060' + chr(0b111110 + 0o61) + chr(0b100 + 0o54), 8)]
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'm\xdbl\xf1\x1bM\xaf`\xb5\x8eo\xea\x91p}\xees\x1a\xb2\x04\xd3I\xee'), chr(0b1100100) + chr(0b100011 + 0o102) + chr(0b1100011) + '\x6f' + chr(5036 - 4936) + chr(4418 - 4317))(chr(12627 - 12510) + chr(0b1110100) + chr(102) + '\055' + '\x38')] = v2hVrczpL25F
def TgD8tmhN0j5d(kcwvrbh4Gt4r, adnPCXZgML2u, DUq4QrCB1sKZ=nzTpIcepk0o8(chr(518 - 470) + chr(111) + chr(48), 8), B1dcixppN30F=nzTpIcepk0o8('\x30' + chr(2734 - 2623) + chr(0b110000), 8), ipXOgQiJcfTw=None):
if ipXOgQiJcfTw is None:
ipXOgQiJcfTw = XURpmPuEWCNF(uAQcozzofCU6(adnPCXZgML2u) * nzTpIcepk0o8(chr(0b10111 + 0o31) + chr(111) + chr(1476 - 1427) + '\x30', 8) - B1dcixppN30F, uAQcozzofCU6(kcwvrbh4Gt4r) * nzTpIcepk0o8(chr(0b10100 + 0o34) + '\x6f' + '\x31' + '\x30', 8) - DUq4QrCB1sKZ)
if ipXOgQiJcfTw <= nzTpIcepk0o8(chr(48) + chr(974 - 863) + chr(48), 8):
raise WbNHlDKpyPtQ(roI3spqORKae(ES5oEprVxulp(b'M\xc8g\xfe\x00\\\xd0m\xbf\x8dc\xed\xab=z\xf6\x7f\x05\xe4\x08\xd0X\xab\xa7H%cFG&\x0c:YF\x1c\xc7\xef\xb8?'), chr(0b1100100) + '\145' + chr(99) + chr(0b1101111) + chr(2662 - 2562) + chr(7440 - 7339))('\165' + chr(12296 - 12180) + '\146' + chr(1165 - 1120) + chr(0b101 + 0o63)))
return roI3spqORKae(f3XvHeaVZNIR, roI3spqORKae(ES5oEprVxulp(b"t\xceM\xf6'g\x94E\xae\x9eA\xce"), chr(3856 - 3756) + chr(101) + '\143' + '\157' + chr(0b1100100) + '\x65')(chr(0b1110101) + chr(0b1011111 + 0o25) + '\x66' + chr(0b11001 + 0o24) + '\x38'))(QjacWl4_I7ER(Joy6yDy4_GDH, aUdglOHXpD4V, ipXOgQiJcfTw) + XmvUnbPjU24X(kcwvrbh4Gt4r, DUq4QrCB1sKZ) + XmvUnbPjU24X(adnPCXZgML2u, B1dcixppN30F))[nzTpIcepk0o8(chr(0b110000) + chr(0b1010001 + 0o36) + '\060', 8)]
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'm\xdbl\xf1\x1bM\xaf`\xb5\x8eo\xea\x91qs\xfbt\x14\xad\x00\xd3X'), chr(100) + '\145' + chr(99) + chr(0b1101111) + '\x64' + '\x65')(chr(0b1101011 + 0o12) + chr(0b1110100) + chr(7104 - 7002) + chr(183 - 138) + chr(0b1 + 0o67))] = TgD8tmhN0j5d
def ve652B8ClMeQ(adnPCXZgML2u, uV9iBiw0y_Mp, B1dcixppN30F, ipXOgQiJcfTw=None):
if ipXOgQiJcfTw is None:
ipXOgQiJcfTw = uAQcozzofCU6(adnPCXZgML2u) * nzTpIcepk0o8('\060' + chr(0b100100 + 0o113) + chr(49) + chr(0b1 + 0o57), 8) - B1dcixppN30F
if ipXOgQiJcfTw <= nzTpIcepk0o8(chr(48) + chr(5742 - 5631) + '\x30', 8):
raise WbNHlDKpyPtQ(roI3spqORKae(ES5oEprVxulp(b'M\xc8g\xfe\x00\\\xd0m\xbf\x8dc\xed\xab=z\xf6\x7f\x05\xe4\x08\xd0X\xab\xa7H%cFG&\x0c:YF\x1c\xc7\xef\xb8?'), chr(0b1100100) + '\145' + chr(0b1100011) + '\157' + chr(2617 - 2517) + chr(0b11 + 0o142))(chr(0b110011 + 0o102) + chr(9271 - 9155) + '\x66' + chr(45) + chr(0b11001 + 0o37)))
return roI3spqORKae(f3XvHeaVZNIR, roI3spqORKae(ES5oEprVxulp(b"t\xceM\xf6'g\x94E\xae\x9eA\xce"), chr(0b1100100) + chr(0b1100101) + '\143' + '\157' + chr(0b1100100) + '\x65')('\x75' + chr(10137 - 10021) + chr(0b1100110) + chr(45) + chr(1656 - 1600)))(QjacWl4_I7ER(Gy3Rmq11zGBi, aUdglOHXpD4V, ipXOgQiJcfTw) + roI3spqORKae(Xv9fz_Mh3ERJ, roI3spqORKae(ES5oEprVxulp(b'm\xdbl\xf1\x1bM\xafl\xa4\x86c\xeb\xb7'), chr(0b1100100) + '\x65' + '\x63' + '\157' + chr(0b1100100) + '\145')('\x75' + chr(0b10101 + 0o137) + chr(102) + chr(0b10011 + 0o32) + '\070'))(uV9iBiw0y_Mp, (ipXOgQiJcfTw + nzTpIcepk0o8('\x30' + chr(111) + chr(49) + chr(0b110111), 8)) // nzTpIcepk0o8('\060' + chr(0b1100110 + 0o11) + chr(50) + '\x30', 8) * nzTpIcepk0o8(chr(0b10000 + 0o40) + '\157' + chr(0b110010), 8)) + XmvUnbPjU24X(adnPCXZgML2u, B1dcixppN30F))[nzTpIcepk0o8(chr(48) + chr(111) + chr(0b101001 + 0o7), 8)]
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'm\xdbl\xf1\x1bM\xaf`\xb5\x8eo\xea\x91qs\xfbt\x04\xa5\t\xcaY'), chr(209 - 109) + '\145' + chr(99) + '\x6f' + chr(8876 - 8776) + chr(0b1100101))(chr(0b1110101) + chr(0b1110100) + '\x66' + chr(0b101101) + chr(92 - 36))] = ve652B8ClMeQ
def p9h32c5L0XaB(kcwvrbh4Gt4r, DUq4QrCB1sKZ=nzTpIcepk0o8(chr(48) + '\157' + chr(0b110000), 8), ipXOgQiJcfTw=None):
if ipXOgQiJcfTw is None:
ipXOgQiJcfTw = uAQcozzofCU6(kcwvrbh4Gt4r) * nzTpIcepk0o8(chr(48) + chr(8990 - 8879) + chr(0b1100 + 0o45) + '\x30', 8) - DUq4QrCB1sKZ
if ipXOgQiJcfTw <= nzTpIcepk0o8('\x30' + chr(8292 - 8181) + chr(0b1101 + 0o43), 8):
raise WbNHlDKpyPtQ(roI3spqORKae(ES5oEprVxulp(b'M\xc8g\xfe\x00\\\xd0m\xbf\x8dc\xed\xab=z\xf6\x7f\x05\xe4\x08\xd0X\xab\xa7H%cFG&\x0c:YF\x1c\xc7\xef\xb8?'), '\x64' + chr(1096 - 995) + chr(99) + '\157' + chr(8437 - 8337) + '\x65')(chr(5935 - 5818) + '\164' + '\x66' + chr(0b101101) + chr(56)))
return roI3spqORKae(f3XvHeaVZNIR, roI3spqORKae(ES5oEprVxulp(b"t\xceM\xf6'g\x94E\xae\x9eA\xce"), '\144' + chr(0b1100101) + chr(0b100000 + 0o103) + '\x6f' + chr(0b111100 + 0o50) + chr(10186 - 10085))(chr(0b1001000 + 0o55) + '\164' + chr(0b101100 + 0o72) + chr(0b101101) + chr(0b111000)))(QjacWl4_I7ER(Joy6yDy4_GDH, Wu2d_0_pDtfR, ipXOgQiJcfTw) + XmvUnbPjU24X(kcwvrbh4Gt4r, DUq4QrCB1sKZ))[nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(1039 - 991), 8)]
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'm\xdbl\xf1\x1bM\xaf`\xb5\x8eo\xea\x91ri\xee`\x07\xb0\x03\xd6Y\xe7\xb0'), '\144' + chr(101) + chr(0b101001 + 0o72) + chr(0b1101111) + chr(100) + chr(0b1100101))(chr(117) + chr(116) + '\146' + chr(45) + chr(0b111000))] = p9h32c5L0XaB
def tavhyNbN3CNE(adnPCXZgML2u, uV9iBiw0y_Mp):
return roI3spqORKae(f3XvHeaVZNIR, roI3spqORKae(ES5oEprVxulp(b"t\xceM\xf6'g\x94E\xae\x9eA\xce"), chr(0b100000 + 0o104) + chr(101) + chr(99) + chr(111) + chr(2814 - 2714) + chr(0b11 + 0o142))(chr(1299 - 1182) + chr(0b101100 + 0o110) + chr(102) + '\055' + chr(0b111000)))(QjacWl4_I7ER(Gy3Rmq11zGBi, Wu2d_0_pDtfR, nzTpIcepk0o8(chr(2053 - 2005) + chr(111) + chr(0b110010) + '\x30', 8)) + roI3spqORKae(Xv9fz_Mh3ERJ, roI3spqORKae(ES5oEprVxulp(b'm\xdbl\xf1\x1bM\xafl\xa4\x86c\xeb\xb7'), chr(0b1011001 + 0o13) + '\x65' + chr(1653 - 1554) + '\x6f' + chr(0b1100100) + '\x65')(chr(117) + chr(116) + chr(0b1100110) + chr(0b10011 + 0o32) + '\x38'))(uV9iBiw0y_Mp, nzTpIcepk0o8(chr(281 - 233) + chr(111) + chr(0b110010), 8)))[nzTpIcepk0o8(chr(0b100101 + 0o13) + '\157' + '\060', 8)]
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'm\xdbl\xf1\x1bM\xaf`\xb5\x8eo\xea\x91ri\xee`\x07\xb0\x13\xdeP\xfe\xb1'), chr(0b1100100) + '\x65' + chr(0b10010 + 0o121) + chr(0b110111 + 0o70) + chr(0b1100100) + chr(0b10101 + 0o120))(chr(0b1100001 + 0o24) + chr(0b1110100) + '\x66' + '\055' + chr(56))] = tavhyNbN3CNE
fuXLTETDsozA = BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'a\xcfy\xcf\tD\x9fy\x92\x85m\xfd\x91{p\xfbw\x01'), '\x64' + '\x65' + chr(99) + chr(111) + chr(3864 - 3764) + '\145')(chr(0b1110101) + chr(0b1110100) + chr(0b111010 + 0o54) + chr(45) + '\070')]
bTE_x2nckJqp = cWIaHfNNiUjG((ZblOtLLm55lR, roI3spqORKae(ES5oEprVxulp(b'g\xcde\xf50\\\x99c\xa8\x87w\xed'), chr(1228 - 1128) + chr(0b111110 + 0o47) + chr(99) + chr(111) + chr(0b1011001 + 0o13) + chr(0b1100101))(chr(117) + chr(3318 - 3202) + chr(0b10100 + 0o122) + chr(131 - 86) + '\x38')), (ZblOtLLm55lR, roI3spqORKae(ES5oEprVxulp(b'f\xc8{\xf40\\\x99c\xa8\x87w\xed'), '\144' + '\145' + chr(0b1100011) + chr(0b1101111) + '\x64' + chr(8408 - 8307))(chr(0b1110101) + chr(0b1110100) + '\146' + chr(45) + '\x38')), (ZblOtLLm55lR, roI3spqORKae(ES5oEprVxulp(b'~\xdb`\xff\x1dA\x84w'), '\144' + chr(5671 - 5570) + chr(0b1001100 + 0o27) + chr(0b1010011 + 0o34) + chr(0b1100100) + chr(5990 - 5889))('\165' + '\x74' + chr(0b1100110) + chr(0b101101) + '\070')), (_Vtv3ms60DmK, roI3spqORKae(ES5oEprVxulp(b'm\xc6f\xfb\x06M'), chr(0b1100100) + chr(0b1000100 + 0o41) + '\x63' + '\157' + chr(6136 - 6036) + '\x65')('\x75' + chr(0b10000 + 0o144) + chr(0b1100110) + '\055' + chr(0b111000))), (fuXLTETDsozA, roI3spqORKae(ES5oEprVxulp(b'h\xc5h\xf7\x1c'), chr(100) + chr(0b1100101) + '\143' + '\x6f' + '\x64' + chr(101))('\165' + '\x74' + chr(0b1100110) + '\055' + chr(0b100000 + 0o30))), (aZB1vwmdWU_M, roI3spqORKae(ES5oEprVxulp(b'z\xc8k\xfc\nw\x99j'), chr(0b1100100) + chr(0b1001111 + 0o26) + '\x63' + chr(111) + chr(0b1100100) + chr(101))('\165' + chr(0b10101 + 0o137) + '\x66' + chr(1713 - 1668) + chr(0b111000))), (aZB1vwmdWU_M,), (ZblOtLLm55lR, roI3spqORKae(ES5oEprVxulp(b'h\xc0g\xcf\x06L\x9ck\x92\x9ck\xf4\xabri\xee'), chr(0b100010 + 0o102) + '\145' + chr(0b11 + 0o140) + '\157' + chr(0b110111 + 0o55) + '\145')('\165' + chr(116) + '\146' + chr(0b11101 + 0o20) + chr(0b111000))), (ZblOtLLm55lR, roI3spqORKae(ES5oEprVxulp(b'h\xc0g\xcf\x07I\x82j\x92\x9ck\xf4\xabri\xee'), chr(100) + '\x65' + chr(0b1100011) + '\157' + '\144' + chr(0b1011010 + 0o13))('\165' + chr(116) + chr(8133 - 8031) + chr(45) + chr(0b100111 + 0o21))), (f3XvHeaVZNIR[nzTpIcepk0o8(chr(0b0 + 0o60) + '\157' + chr(1382 - 1334), 8)], roI3spqORKae(ES5oEprVxulp(b'}\xd9l\xf3\x1c'), chr(100) + chr(0b1100011 + 0o2) + '\143' + chr(111) + '\x64' + chr(101))(chr(0b1110101) + chr(0b1110100) + chr(0b101000 + 0o76) + chr(0b100010 + 0o13) + chr(56))), base=qSm5cD5ZYDzE, name=roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf1\x0c\\\x99a\xa3\xb7n\xfc\xafor'), chr(100) + chr(8304 - 8203) + chr(0b1100011) + '\x6f' + chr(7518 - 7418) + '\145')(chr(0b10 + 0o163) + chr(0b1010101 + 0o37) + chr(0b1111 + 0o127) + chr(0b101101) + chr(1629 - 1573)), classifyby=(EQTkNpDRZk1m,), criteria=lambda bI5jsQ9OkQtj: roI3spqORKae(bI5jsQ9OkQtj, OdJ5rf1Z_Bz_) == EQTkNpDRZk1m, init=KwYRr6MBamjO(EQTkNpDRZk1m, OdJ5rf1Z_Bz_))
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf1\x0c\\\x99a\xa3\xb7n\xfc\xafor'), chr(3409 - 3309) + chr(0b100 + 0o141) + chr(0b1100011) + chr(8960 - 8849) + chr(0b1100100) + chr(0b1100101))(chr(0b1110101) + chr(116) + chr(0b1100110) + chr(0b100100 + 0o11) + chr(56))] = bTE_x2nckJqp
roI3spqORKae(ES5oEprVxulp(b'\x04\x89)\xb0O\x08\xd0.\xed\xc7(\xb9\x8f~h\xf3\x7f\x1c\xe4\x16\xcbN\xfe\xb7L5r\x03\x10)\x17 Y8d\xe4\xd5\x98\x138G\xe7V\xc4&e\xb5A\x98\xbc,\x93\xee=<\xba0R\xe4E\x9f\x16\x81\xf4\x18` F\x10oXrSVh\xcd\xef\xbfl\x1fm\xdd`\xff\x01\x08\x93f\xac\x86e\xfc\xbd=h\xf2uR\xad\x01\xd3Y\xab\xa0Q-e\tE;X=\x0bVT\xc4\xf4\xa8l\ng\xc4l\xff\x1a\\\xdc.\xa2\x9a"\xfb\x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6\xecl^.\x89)\xb0E\x08\xa4f\xa4\x9b"\xf8\xadiu\xf5~R\xad\x16\x9fU\xe5\xa0].d\x03To\x1e=\x0bVI\xd6\xe3\xec;\x17z\xc1)\xf1\x01\x08\xbf~\xa8\x86D\xf5\xa1j<\xe8e\x1e\xa1E\xcbT\xea\xa0\x18-a\x12S\'\x1d!Y\x19R\xc9\xff\xec-t.\x89)\xb0O\x08\xd0.\xed\xc2"\xea\xa7s{\xf6uR\x90&\xef\x1c\xed\xb8W7.F\x10\x06\x1er\r\x1eY\x85\xf4\xb9 \x1b.\xc4h\xe4\x0c@\x95}\xed\x85w\xf5\xbatl\xf6uR\x90&\xef\x1c\xed\xb8W7sF\x18*V5WVU\xd1\xa6\xbb%\x12j\xcah\xe2\x0b[\xfa.\xed\xc8"\xb9\xee=<\xba:R\xa5\t\xd3\x1c\xdf\x97h`t\x14Q)\x1e;\x1aZ\x1c\xca\xf4\xec-\x12b\x89]\xd3?\x08\x84|\xac\x8ed\xf0\xad=h\xf50\x13\xe4\x15\xdeN\xff\xbd[5l\x07Bo\x08=\x0b\x02\x15\x89\xa6\xb8$\x1b`\x89h\xfe\x16\x08\xb6G\x83\xc8m\xeb\xc4=<\xba0R\xe4E\x9f\x1c\xa1\xf4j\x13TFY!X3\x17\x0f\x1c\xca\xe0\xec8\x16a\xdal\xb0\tD\x9fy\xbe\xc8u\xf0\xa2q<\xf9q\x07\xb7\x00\x9fH\xe3\xb1\x18%n\x12Y=\x1dr6\x06Y\xcb\xc0\xa0#\t.\xdb|\xfc\n\x08\x84a\xed\x8dz\xe9\xa7oy\x900R\xe4E\x9f\x1c\xab\xf4\x18j \x03Q=\x14+UVK\xcd\xef\xaf$^g\xda)\xfe\x00\\\xd0`\xa2\x9ao\xf8\xa2qe\xbat\x17\xb7\x0c\xcd]\xe9\xb8]n\nF\x10oXrYV\x1c\x85\xac\xe3F^.\x89)\xb0O\x08\xd0.'), '\144' + chr(0b10 + 0o143) + '\143' + '\157' + chr(2024 - 1924) + chr(0b1010010 + 0o23))('\x75' + chr(116) + chr(102) + chr(1473 - 1428) + chr(56))
TOjMBhyr3Hpd = cWIaHfNNiUjG((ZblOtLLm55lR, roI3spqORKae(ES5oEprVxulp(b'h\xc0g\xcf\x06L\x9ck\x92\x9ck\xf4\xabri\xee'), '\x64' + chr(0b1100011 + 0o2) + chr(2904 - 2805) + '\157' + chr(100) + '\x65')('\x75' + chr(116) + chr(0b1100110) + chr(45) + '\070')), (ZblOtLLm55lR, roI3spqORKae(ES5oEprVxulp(b'h\xc0g\xcf\x07I\x82j\x92\x9ck\xf4\xabri\xee'), chr(1943 - 1843) + '\145' + chr(0b1100011) + '\x6f' + chr(7711 - 7611) + chr(7672 - 7571))('\165' + chr(116) + chr(0b1100110) + chr(0b1110 + 0o37) + '\x38')), (ZblOtLLm55lR,), base=qSm5cD5ZYDzE, name=roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf1\x0c\\\x99a\xa3\xb7d\xf0\xa0Bh\xf3}\x17\xab\x10\xcb'), chr(100) + '\145' + '\x63' + '\157' + chr(5514 - 5414) + '\145')('\x75' + '\x74' + chr(0b1010011 + 0o23) + '\055' + chr(56)), criteria=lambda bI5jsQ9OkQtj: roI3spqORKae(bI5jsQ9OkQtj, OdJ5rf1Z_Bz_) == i9XwdqPd0IYq, classifyby=(i9XwdqPd0IYq,), init=KwYRr6MBamjO(i9XwdqPd0IYq, OdJ5rf1Z_Bz_))
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf1\x0c\\\x99a\xa3\xb7d\xf0\xa0Bh\xf3}\x17\xab\x10\xcb'), chr(0b1100100) + chr(0b1100101) + chr(99) + '\x6f' + chr(5387 - 5287) + '\145')(chr(117) + chr(3122 - 3006) + chr(0b1100110) + chr(0b1111 + 0o36) + chr(56))] = TOjMBhyr3Hpd
roI3spqORKae(ES5oEprVxulp(b'\x04\x89)\xb0O\x08\xd0.\xed\xc7(\xb9\x8f~h\xf3\x7f\x1c\xe4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6Y3i\x15\x17o\x01;\x1c\x1aX\x85\xe2\xa5*\x18k\xdbl\xfe\x1b\x08\x98o\xbe\x80"\xeb\xabni\xf6d\x01\xeao\x9f\x1c\xab\xf4\x18` F\x10errYV\x1c\x85\xa6\xecl^$\x89]\xf8\n\x08\xd7t\xa8\x9am\xbe\xeem}\xe8q\x1f\xa1\x11\xdaN\xab\xb5L`t\x0eUo\x1d<\x1dVS\xc3\xa6\xb8$\x1b.\xc8j\xe4\x06G\x9e.\xbe\x9cp\xec\xadii\xe8uR\xad\x16\x9fN\xee\xa7]2v\x03To\x1e=\x0b|\x1c\x85\xa6\xecl^.\x89)\xbaON\x85z\xb8\x9ag\xb9\xbbny\xb40R\x97\x12\xd6H\xe8\xbc]3 \x07B*X \x1c\x07I\xcc\xf4\xa9(^z\xc6)\xe2\nB\x95m\xb9\xc8c\xfa\xbats\xf4cR\xb3\r\xd6_\xe3\xf4P!v\x03\x10!\x17<\x03\x13N\xca\x8c\xecl^.\x89)\xb0O\x08\xda.\xaf\x91v\xfc\xbd=u\xf40\x06\xac\x00\x9f\x1b\xf1\xb1J/\'FV&\x1d>\x1dX6\x85\xa6\xecl^.\x89)\xb0E"\xd0.\xed\xc8"\xb9\xee=<\xb00<\x9c$\xech\xd4\x96m\x0eD*uo\x191\r\x1fS\xcb\xf5\xec?\x16a\xdce\xf4O@\x91x\xa8\xc8%\xf6\xa8nC\xf4r\x1b\xb0\x16\x98\x1c\xea\xba\\`\'\x02C;_r\x03\x13N\xca\xe3\xa8b^.\xfa~\xf9\x1bK\x98k\xbe\xe2"\xb9\xee=<\xba0R\xe4O\x9fO\xe3\xbbM,dFB*\x127\x1a\x02\x1c\xc4\xe5\xb8%\x11`\xda)\xe7\x07A\x93f\xed\x80c\xef\xab=r\xf5~\x08\xa1\x17\xd0\x1c\xe9\xadL%sFY!X7\x10\x02T\xc0\xf4\xec#\x18.\xdda\xf5\x1cM\xd0h\xa4\x8dn\xfd\xbd3\x16\xba0R\xe4E\x9f\x1c\xab\xf4\x12J F\x10oXrYV\x1c\x8f\xa6\x82\x14?]\xfdV\xd2:f\xb4B\x88\xb7N\xd6\x8fY<\xe9d\x1d\xb6\x00\xcc\x1c\xff\xbc]`O\x16U!>>\x16\x01\x1c\xd5\xe9\xbe8^`\xdcd\xf2\nZ\xd0a\xab\xc8v\xf1\xab=o\xff|\x17\xa7\x11\xdaX\xab\xa7T!v\x03\x10&\x16XYV\x1c\x85\xa6\xecl^.\x83)\xf4\x1c\\\xaba\xab\x9b8\xf6\xa8n7\xf4O\x10\xad\x11\xcca\xa5\xf4\x18\x14h\x03\x10)\x17 \x14\x17H\x85\xe7\xa2(^}\xccd\xf1\x01\\\x99m\xbe\xc8m\xff\xee:x\xe9dU\xe4\x04\xd1X\xab\xf3W&s9^-\x11&\nQ\x1c\xc4\xf4\xa9F^.\x89)\xb0O\x08\xd0.\xe7\xc8q\xf0\xa3tp\xfbbR\xb0\n\x9fH\xe3\xbbK% \x00_=X&\x11\x13\x1c\xeb\xde\x8d\x1f*Q\xfbL\xd70d\xbfO\x89\xc8c\xfa\xbats\xf4>R\xeeJ\xb5\x1c\xab\xf4\x18` F\x10'), chr(0b1100100) + '\x65' + chr(0b1000101 + 0o36) + chr(0b100001 + 0o116) + chr(0b1100100) + chr(101))('\165' + chr(116) + '\146' + chr(45) + '\x38')
uqGCTlSXgi9O = cWIaHfNNiUjG((AcYLPaoNFBUH, roI3spqORKae(ES5oEprVxulp(b'o\xc5n\xff\x1dA\x84f\xa0'), '\x64' + chr(0b100011 + 0o102) + chr(0b11101 + 0o106) + chr(111) + '\x64' + '\145')('\x75' + chr(2128 - 2012) + chr(0b1001001 + 0o35) + chr(1463 - 1418) + chr(0b100000 + 0o30))), (OUKjfcax9tWT, roI3spqORKae(ES5oEprVxulp(b'h\xc0l\xfc\x0b['), chr(100) + chr(0b1001011 + 0o32) + chr(0b1000001 + 0o42) + chr(0b1101111) + '\144' + chr(7957 - 7856))(chr(0b1101 + 0o150) + chr(0b1010011 + 0o41) + chr(102) + chr(103 - 58) + '\x38')), (ZblOtLLm55lR, roI3spqORKae(ES5oEprVxulp(b'l\xc8z\xf9\x1c'), chr(0b1100100) + chr(0b1011 + 0o132) + chr(0b11101 + 0o106) + '\x6f' + chr(100) + chr(7587 - 7486))(chr(0b1110101) + chr(0b1110100) + chr(0b1100110 + 0o0) + '\055' + '\x38')), (Xcj02ncq3Zqs, roI3spqORKae(ES5oEprVxulp(b'}\xc5h\xe6\nw\x84w\xbd\x8d'), chr(100) + chr(101) + chr(0b111000 + 0o53) + '\157' + chr(0b1100010 + 0o2) + chr(0b10111 + 0o116))('\165' + chr(116) + chr(0b11010 + 0o114) + '\055' + chr(0b101011 + 0o15))), (ZblOtLLm55lR, roI3spqORKae(ES5oEprVxulp(b'`\xf6z\xfc\x0e^\x95}'), chr(0b1001010 + 0o32) + chr(6368 - 6267) + chr(99) + chr(856 - 745) + '\144' + '\x65')('\165' + chr(0b1110100) + chr(0b1100110) + chr(45) + chr(1556 - 1500))), (ZblOtLLm55lR, roI3spqORKae(ES5oEprVxulp(b'a\xcfz\xcf\x01J\x99z\xbe'), chr(0b1100100) + chr(0b1100101) + chr(6890 - 6791) + '\x6f' + '\144' + '\x65')(chr(0b1110101) + '\x74' + chr(0b1000100 + 0o42) + chr(0b101101) + chr(0b11111 + 0o31))), (Xcj02ncq3Zqs, roI3spqORKae(ES5oEprVxulp(b'j\xda}'), chr(0b100001 + 0o103) + '\145' + '\x63' + '\157' + chr(0b110011 + 0o61) + chr(0b1111 + 0o126))('\165' + chr(0b1110100) + chr(8167 - 8065) + chr(0b10000 + 0o35) + chr(0b111000))), (aZB1vwmdWU_M[nzTpIcepk0o8('\x30' + chr(111) + '\064', 8)],), name=roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf1\x0c\\\x99a\xa3\xb7`\xec\xa0yp\xff'), chr(100) + chr(0b1100101) + chr(99) + '\x6f' + '\144' + chr(3623 - 3522))(chr(117) + '\x74' + chr(0b1100110) + chr(0b101101) + '\x38'), base=qSm5cD5ZYDzE, criteria=lambda bI5jsQ9OkQtj: roI3spqORKae(bI5jsQ9OkQtj, OdJ5rf1Z_Bz_) == xOZ7W64N6AnH or roI3spqORKae(bI5jsQ9OkQtj, OdJ5rf1Z_Bz_) == GoX7TB1YyLAK, classifyby=(xOZ7W64N6AnH, GoX7TB1YyLAK), init=KwYRr6MBamjO(xOZ7W64N6AnH, OdJ5rf1Z_Bz_))
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf1\x0c\\\x99a\xa3\xb7`\xec\xa0yp\xff'), chr(0b1100100) + chr(0b1100101) + '\143' + '\157' + chr(100) + chr(0b1100101))('\165' + chr(2485 - 2369) + chr(1901 - 1799) + chr(45) + chr(295 - 239))] = uqGCTlSXgi9O
def ZPmKdUwxvdhI(bI5jsQ9OkQtj):
bI5jsQ9OkQtj.KmjfYIJAa2K7 = ftfygxgFas5X(bI5jsQ9OkQtj.KdfmOusAB8XR)
g8HhR_X85QX1 = cWIaHfNNiUjG((Bfxk_4bsy0H6[nzTpIcepk0o8(chr(0b1000 + 0o50) + chr(0b1101111) + chr(48), 8)], roI3spqORKae(ES5oEprVxulp(b'l\xdcg\xf4\x03M\x83'), '\x64' + '\x65' + '\143' + '\157' + chr(0b1100100) + chr(0b1100101))(chr(117) + chr(5429 - 5313) + chr(0b1100110) + chr(1897 - 1852) + chr(56))), name=roI3spqORKae(ES5oEprVxulp(b'Q\xc7q\xcf\x1cD\x91x\xa8\xb7r\xf6\xbcio'), '\x64' + chr(7409 - 7308) + chr(0b1011100 + 0o7) + '\157' + chr(0b111001 + 0o53) + chr(0b11111 + 0o106))(chr(0b1001001 + 0o54) + chr(0b101001 + 0o113) + '\146' + '\055' + chr(0b11000 + 0o40)), size=lambda bI5jsQ9OkQtj: bI5jsQ9OkQtj.KmjfYIJAa2K7 * nzTpIcepk0o8('\x30' + chr(0b100001 + 0o116) + '\x32', 8), prepack=ZPmKdUwxvdhI, padding=nzTpIcepk0o8('\x30' + chr(3843 - 3732) + chr(0b110001), 8))
XThm4E_VKGTI = cWIaHfNNiUjG((g8HhR_X85QX1,), base=uqGCTlSXgi9O, name=roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf1\x0c\\\x99a\xa3\xb7`\xec\xa0yp\xffO\x02\xab\x17\xcb'), chr(0b11100 + 0o110) + chr(101) + chr(0b1100011) + '\157' + chr(0b1001000 + 0o34) + chr(0b1100101))(chr(0b110101 + 0o100) + chr(0b1110100) + chr(5310 - 5208) + chr(0b101101) + chr(0b10101 + 0o43)), criteria=lambda bI5jsQ9OkQtj: bI5jsQ9OkQtj.slave_type == iSipu82TVVUC, init=KwYRr6MBamjO(iSipu82TVVUC, roI3spqORKae(ES5oEprVxulp(b'}\xc5h\xe6\nw\x84w\xbd\x8d'), chr(6854 - 6754) + '\x65' + chr(99) + '\157' + chr(0b1100100) + chr(101))(chr(117) + chr(0b110001 + 0o103) + '\x66' + '\055' + chr(0b111000))), lastextra=nzTpIcepk0o8(chr(0b101001 + 0o7) + chr(111) + '\060', 8), formatter=J_2CRGNVxsCv(lambda bI5jsQ9OkQtj: roI3spqORKae(ES5oEprVxulp(b'l\xdcg\xf4\x03M\xafb\xa2\x89f\xb1\xebn0\xbft^\xe1\x16\x93\x19\xf8\xf8\x1d3[CTaVw\x1d+\x10\xd6\xea\xad:\x1b}\x93,\xe2F'), '\144' + chr(101) + '\x63' + chr(0b1100101 + 0o12) + '\144' + chr(0b1100101))(chr(0b1110101) + chr(116) + chr(0b1100110) + chr(0b101101) + chr(0b111000)) % (bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'h\xc0l\xfc\x0b['), chr(0b111000 + 0o54) + chr(0b1010001 + 0o24) + '\x63' + chr(111) + chr(100) + chr(101))(chr(117) + chr(0b1110100) + chr(110 - 8) + chr(45) + chr(0b111000))], bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'l\xc8z\xf9\x1c'), chr(0b1010 + 0o132) + chr(101) + chr(0b1010001 + 0o22) + chr(11892 - 11781) + '\x64' + '\145')('\x75' + '\x74' + chr(0b111 + 0o137) + chr(0b10111 + 0o26) + '\070')], bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'o\xc5n\xff\x1dA\x84f\xa0'), chr(6870 - 6770) + '\145' + chr(7296 - 7197) + '\x6f' + chr(0b1100100) + '\145')('\165' + chr(0b1011011 + 0o31) + chr(8471 - 8369) + chr(0b101101) + chr(0b101011 + 0o15))], bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'}\xc5h\xe6\nw\x84w\xbd\x8d'), chr(0b1010010 + 0o22) + chr(0b1100101) + '\x63' + '\x6f' + chr(0b1100100) + chr(0b1100101))('\165' + chr(0b111 + 0o155) + chr(102) + '\055' + '\x38')], bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'j\xda}'), '\144' + '\x65' + '\x63' + chr(6615 - 6504) + chr(100) + chr(10044 - 9943))('\165' + '\164' + '\146' + '\055' + chr(56))], bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'a\xcfz\xcf\x01J\x99z\xbe'), chr(0b1001 + 0o133) + chr(101) + '\143' + chr(0b1100011 + 0o14) + chr(8566 - 8466) + chr(101))(chr(13297 - 13180) + chr(0b1110100) + '\146' + chr(45) + chr(0b111000))] >> nzTpIcepk0o8(chr(0b110000) + chr(0b1010100 + 0o33) + chr(0b100010 + 0o24), 8), (bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'a\xcfz\xcf\x01J\x99z\xbe'), chr(100) + chr(0b10000 + 0o125) + chr(0b1100011) + chr(9921 - 9810) + '\x64' + chr(101))(chr(0b1110101) + '\x74' + chr(102) + '\x2d' + '\070')] >> nzTpIcepk0o8('\x30' + '\x6f' + chr(54), 8)) + (bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'a\xcfz\xcf\x01J\x99z\xbe'), '\144' + '\x65' + chr(0b11100 + 0o107) + chr(111) + chr(100) + chr(3495 - 3394))(chr(0b10010 + 0o143) + chr(0b1110100) + chr(102) + chr(0b1001 + 0o44) + chr(0b11110 + 0o32))] & nzTpIcepk0o8('\x30' + chr(0b1101111) + '\067' + chr(0b11001 + 0o36), 8)), bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'l\xdcg\xf4\x03M\x83'), '\x64' + chr(0b1010 + 0o133) + chr(6850 - 6751) + chr(0b101011 + 0o104) + chr(0b1000111 + 0o35) + chr(101))('\165' + chr(116) + chr(0b1100110) + chr(45) + '\x38')]) if bI5jsQ9OkQtj[OdJ5rf1Z_Bz_] == roI3spqORKae(ES5oEprVxulp(b'@\xf1H\xc3;w\xb2[\x83\xacN\xdc\x91QS\xdbT'), '\144' + chr(101) + '\x63' + chr(0b1101111) + chr(100) + chr(1350 - 1249))('\165' + chr(116) + chr(0b1100110) + chr(0b101101) + chr(0b110010 + 0o6)) else roI3spqORKae(ES5oEprVxulp(b"l\xdcg\xf4\x03M\xd8+\xbe\xc4'\xfd\xe28o\xb65\x01\xe8\x16\xd3]\xfd\xb1Kz%\x14\x19"), chr(6849 - 6749) + chr(6898 - 6797) + '\143' + chr(0b1101111) + chr(100) + chr(0b1100101))(chr(117) + chr(0b1110100) + chr(102) + chr(1006 - 961) + '\x38') % (bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'h\xc0l\xfc\x0b['), chr(100) + chr(101) + '\143' + chr(0b1101111) + '\144' + chr(101))(chr(117) + chr(116) + chr(6343 - 6241) + chr(2017 - 1972) + '\070')], bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'l\xc8z\xf9\x1c'), chr(9913 - 9813) + chr(0b10 + 0o143) + '\143' + '\x6f' + '\144' + chr(0b1011 + 0o132))('\x75' + chr(0b1110100) + '\146' + chr(45) + '\070')], bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'o\xc5n\xff\x1dA\x84f\xa0'), '\144' + '\145' + chr(0b100001 + 0o102) + '\157' + chr(100) + '\x65')(chr(0b101000 + 0o115) + '\x74' + chr(0b1100110) + chr(0b101101) + '\070')], bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'}\xc5h\xe6\nw\x84w\xbd\x8d'), chr(0b1000100 + 0o40) + chr(0b1100101) + chr(99) + chr(1256 - 1145) + chr(0b1001000 + 0o34) + '\x65')(chr(117) + chr(0b1010 + 0o152) + chr(4468 - 4366) + '\055' + chr(56))], bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'l\xdcg\xf4\x03M\x83'), chr(0b1000011 + 0o41) + '\x65' + '\143' + chr(111) + chr(100) + '\145')(chr(0b1110101) + chr(0b1110100) + chr(0b1100110) + '\x2d' + chr(0b110111 + 0o1))])))
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf1\x0c\\\x99a\xa3\xb7`\xec\xa0yp\xffO\x02\xab\x17\xcb'), chr(0b111110 + 0o46) + chr(6588 - 6487) + chr(0b111100 + 0o47) + chr(0b1101111) + chr(100) + '\145')(chr(117) + chr(0b1110100) + chr(102) + '\055' + '\070')] = XThm4E_VKGTI
def kO5nvnY_eDBu(bI5jsQ9OkQtj):
bI5jsQ9OkQtj.KmjfYIJAa2K7 = ftfygxgFas5X(bI5jsQ9OkQtj.bundlesraw) // uAQcozzofCU6(bI5jsQ9OkQtj.slave_type)
D03Mlh9yhVHX = cWIaHfNNiUjG((v3a5CEHPFxU_, roI3spqORKae(ES5oEprVxulp(b'l\xdcg\xf4\x03M\x83|\xac\x9f'), '\144' + chr(101) + chr(99) + '\157' + '\x64' + chr(101))(chr(117) + '\x74' + chr(7573 - 7471) + chr(45) + chr(1467 - 1411))), name=roI3spqORKae(ES5oEprVxulp(b'Q\xc7q\xcf\x1cD\x91x\xa8\xb7m\xed\xa6xn\xe9'), '\x64' + chr(0b11110 + 0o107) + '\143' + '\x6f' + chr(0b1100100) + chr(6999 - 6898))(chr(0b1110101) + chr(2887 - 2771) + chr(102) + chr(859 - 814) + chr(0b111000)), size=lambda bI5jsQ9OkQtj: bI5jsQ9OkQtj.KmjfYIJAa2K7 * uAQcozzofCU6(bI5jsQ9OkQtj.slave_type), prepack=kO5nvnY_eDBu, padding=nzTpIcepk0o8(chr(0b10010 + 0o36) + chr(111) + '\x31', 8))
yNC06y7HrT1W = cWIaHfNNiUjG((D03Mlh9yhVHX,), base=uqGCTlSXgi9O, name=roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf1\x0c\\\x99a\xa3\xb7`\xec\xa0yp\xffO\x1d\xb0\r\xdaN\xf8'), '\x64' + chr(0b1100000 + 0o5) + chr(99) + '\157' + chr(0b11000 + 0o114) + chr(0b1100101))('\165' + chr(116) + '\146' + chr(1712 - 1667) + chr(0b111000)), criteria=lambda bI5jsQ9OkQtj: bI5jsQ9OkQtj.slave_type != iSipu82TVVUC, lastextra=nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b1000 + 0o50), 8), init=KwYRr6MBamjO(RBgjJ673UoBI, roI3spqORKae(ES5oEprVxulp(b'}\xc5h\xe6\nw\x84w\xbd\x8d'), chr(0b1000101 + 0o37) + '\145' + '\143' + chr(0b1101111) + chr(0b10 + 0o142) + chr(1939 - 1838))(chr(0b1011000 + 0o35) + '\x74' + '\x66' + chr(0b101101) + chr(0b111000))), formatter=J_2CRGNVxsCv(lambda bI5jsQ9OkQtj: roI3spqORKae(ES5oEprVxulp(b'l\xdcg\xf4\x03M\xafb\xa2\x89f\xb1\xebn0\xbft^\xe1\x16\x93\x19\xf8\xf8\x1d3[CTaVw\x1d+\x10\xd6\xea\xad:\x1b}\x93,\xe2F'), chr(100) + chr(0b1100101) + chr(0b101111 + 0o64) + chr(111) + chr(0b100111 + 0o75) + '\145')('\x75' + chr(0b110011 + 0o101) + '\146' + '\x2d' + chr(0b101100 + 0o14)) % (bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'h\xc0l\xfc\x0b['), chr(100) + chr(0b1100101) + chr(99) + chr(0b1101111) + chr(100) + '\x65')(chr(0b1110101) + '\x74' + chr(0b1100110) + '\x2d' + chr(56))], bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'l\xc8z\xf9\x1c'), chr(100) + chr(101) + chr(0b1010110 + 0o15) + '\157' + chr(0b110110 + 0o56) + chr(101))('\165' + chr(0b1100001 + 0o23) + chr(0b1100001 + 0o5) + chr(45) + '\x38')], bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'o\xc5n\xff\x1dA\x84f\xa0'), '\144' + chr(0b1001101 + 0o30) + chr(0b1100011) + chr(0b1101111) + chr(0b1000100 + 0o40) + '\145')(chr(0b1101000 + 0o15) + chr(0b1110100) + chr(0b1100110) + chr(198 - 153) + '\x38')], bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'}\xc5h\xe6\nw\x84w\xbd\x8d'), chr(100) + '\145' + '\143' + chr(111) + '\x64' + chr(101))(chr(12830 - 12713) + '\164' + '\x66' + chr(1660 - 1615) + '\x38')], bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'j\xda}'), '\144' + chr(7785 - 7684) + chr(0b1100011) + '\157' + chr(6433 - 6333) + chr(0b1100101))(chr(0b1110101) + chr(0b1100 + 0o150) + chr(0b1100110) + chr(0b10100 + 0o31) + '\x38')], bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'a\xcfz\xcf\x01J\x99z\xbe'), chr(100) + '\x65' + chr(0b1100011) + chr(0b1101111) + chr(100) + chr(5901 - 5800))('\x75' + chr(116) + chr(0b1000 + 0o136) + chr(0b101101) + '\x38')] >> nzTpIcepk0o8(chr(0b10001 + 0o37) + chr(111) + chr(2366 - 2312), 8), (bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'a\xcfz\xcf\x01J\x99z\xbe'), chr(0b1100100) + chr(282 - 181) + chr(0b1100011) + chr(0b1101111) + chr(0b10101 + 0o117) + chr(5212 - 5111))(chr(0b1110101) + chr(7988 - 7872) + '\146' + '\x2d' + '\070')] >> nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x36', 8)) + (bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'a\xcfz\xcf\x01J\x99z\xbe'), chr(0b1100100) + '\x65' + '\x63' + '\157' + chr(0b1100100) + '\145')('\x75' + '\164' + '\146' + chr(1046 - 1001) + chr(0b111000))] & nzTpIcepk0o8('\x30' + '\x6f' + chr(55) + '\067', 8)), bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'l\xdcg\xf4\x03M\x82o\xba'), chr(8234 - 8134) + chr(0b10011 + 0o122) + chr(99) + '\157' + chr(243 - 143) + chr(0b1000111 + 0o36))(chr(0b1110101) + chr(0b1 + 0o163) + chr(102) + '\x2d' + chr(1086 - 1030))]) if bI5jsQ9OkQtj[OdJ5rf1Z_Bz_] == roI3spqORKae(ES5oEprVxulp(b'@\xf1H\xc3;w\xb2[\x83\xacN\xdc\x91QS\xdbT'), chr(1592 - 1492) + chr(0b1100101) + chr(0b1100011) + chr(0b1110 + 0o141) + '\144' + '\x65')(chr(117) + chr(0b101011 + 0o111) + chr(1466 - 1364) + chr(119 - 74) + chr(0b101010 + 0o16)) else roI3spqORKae(ES5oEprVxulp(b"l\xdcg\xf4\x03M\xd8+\xbe\xc4'\xfd\xe28o\xb65\x01\xe8\x16\xd3]\xfd\xb1Kz%\x14\x19"), chr(0b1100100) + '\145' + chr(0b1011011 + 0o10) + chr(111) + chr(0b1100100) + chr(4154 - 4053))(chr(0b1001 + 0o154) + chr(116) + '\x66' + chr(45) + '\070') % (bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'h\xc0l\xfc\x0b['), chr(4949 - 4849) + '\x65' + chr(99) + '\x6f' + chr(0b1010111 + 0o15) + '\145')(chr(117) + '\164' + '\x66' + '\x2d' + chr(3100 - 3044))], bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'l\xc8z\xf9\x1c'), chr(0b1111 + 0o125) + chr(101) + '\143' + chr(0b1101111) + chr(0b1100011 + 0o1) + chr(101))(chr(13363 - 13246) + '\164' + chr(0b111 + 0o137) + '\x2d' + chr(56))], bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'o\xc5n\xff\x1dA\x84f\xa0'), chr(0b1100100) + chr(0b1100101) + chr(7242 - 7143) + chr(0b1101111) + '\144' + chr(8970 - 8869))('\165' + chr(0b1110100) + '\146' + chr(996 - 951) + chr(327 - 271))], bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'}\xc5h\xe6\nw\x84w\xbd\x8d'), chr(0b1010101 + 0o17) + chr(0b1010101 + 0o20) + chr(0b1001000 + 0o33) + chr(0b101100 + 0o103) + chr(0b101011 + 0o71) + chr(0b11101 + 0o110))(chr(0b1110101) + chr(116) + '\x66' + chr(0b10011 + 0o32) + '\x38')], bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'l\xdcg\xf4\x03M\x82o\xba'), '\144' + chr(9925 - 9824) + chr(0b1001010 + 0o31) + chr(0b10001 + 0o136) + chr(0b1010010 + 0o22) + '\145')('\165' + chr(0b110 + 0o156) + '\146' + chr(0b10000 + 0o35) + chr(0b111000))])))
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf1\x0c\\\x99a\xa3\xb7`\xec\xa0yp\xffO\x1d\xb0\r\xdaN\xf8'), chr(0b1110 + 0o126) + '\145' + '\x63' + '\157' + chr(0b1100100) + chr(0b1100101))(chr(0b1110101) + chr(0b1110000 + 0o4) + '\146' + chr(45) + '\070')] = yNC06y7HrT1W
roI3spqORKae(ES5oEprVxulp(b'\x04\x89)\xb0O\x08\xd0.\xed\xc7(\xb9\x8f~h\xf3\x7f\x1c\xe4\x16\xcbN\xfe\xb7L5r\x03\x10)\x17 Y8d\xe4\xd5\x98\x13:K\xeaV\xc4;d\xafM\x83\xbc]\xd0\x8aN2\x900R\xe4E\x9f\x1c\xab\xf4\x18j\nF\x10oXrYV\x1c\x85\xac\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l\x1f\x10;\x17r\x1a\x19R\xd1\xf4\xa3 \x12k\xdbz\xb0\x18A\x84f\xed\x81f\xb9\xfe35\x900R\xe4E\x9f\x1c\xab\xf4\x18j/l\x10oXrYV\x1c\x85\xa6'), chr(0b1100100) + chr(0b1100101) + '\143' + chr(0b1101111) + '\x64' + '\145')('\x75' + chr(158 - 42) + chr(102) + chr(0b100101 + 0o10) + chr(0b100 + 0o64))
def kqFbUFDdSsCu(bI5jsQ9OkQtj):
bI5jsQ9OkQtj.HWjyuVHCDTWn = ftfygxgFas5X(bI5jsQ9OkQtj.cnt_ids)
TQE3DuzrHDxp = cWIaHfNNiUjG((ZblOtLLm55lR[nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x30', 8)], roI3spqORKae(ES5oEprVxulp(b'm\xc7}\xcf\x06L\x83'), chr(100) + chr(0b1100101) + chr(99) + '\x6f' + chr(100) + chr(0b1100101))(chr(0b1010110 + 0o37) + chr(116) + '\146' + chr(0b10101 + 0o30) + '\x38')), name=roI3spqORKae(ES5oEprVxulp(b'Q\xc7q\xcf\x0eK\x84g\xa2\x86]\xfa\xa0iC\xf3t\x01\x9b\x0c\xdbO'), chr(1413 - 1313) + chr(0b1100101) + chr(0b1000001 + 0o42) + chr(1788 - 1677) + chr(100) + chr(0b10 + 0o143))('\x75' + '\164' + chr(4181 - 4079) + chr(45) + chr(124 - 68)), size=lambda bI5jsQ9OkQtj: nzTpIcepk0o8('\060' + chr(0b1010111 + 0o30) + chr(0b110010), 8) * bI5jsQ9OkQtj.HWjyuVHCDTWn, prepack=kqFbUFDdSsCu)
ByNHHHXwxmtJ = cWIaHfNNiUjG((ZblOtLLm55lR, roI3spqORKae(ES5oEprVxulp(b'`\xf6j\xff\x01\\\x82a\xa1\x84g\xeb\xbd'), chr(9176 - 9076) + chr(101) + '\x63' + chr(111) + chr(8282 - 8182) + chr(101))(chr(0b1100011 + 0o22) + '\x74' + chr(5614 - 5512) + chr(0b101101) + chr(0b111000))), (aZB1vwmdWU_M[nzTpIcepk0o8(chr(48) + '\157' + chr(52), 8)],), (TQE3DuzrHDxp,), base=qSm5cD5ZYDzE, classifyby=(q4pKILj8wO7e,), criteria=lambda bI5jsQ9OkQtj: roI3spqORKae(bI5jsQ9OkQtj, OdJ5rf1Z_Bz_) == q4pKILj8wO7e, init=KwYRr6MBamjO(q4pKILj8wO7e, OdJ5rf1Z_Bz_), lastextra=nzTpIcepk0o8(chr(48) + chr(4472 - 4361) + '\x30', 8), name=roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf1\x0c\\\x99a\xa3\xb7a\xf7\xbaBu\xfec'), chr(0b10000 + 0o124) + chr(4247 - 4146) + chr(0b101010 + 0o71) + chr(0b11000 + 0o127) + chr(4892 - 4792) + chr(0b1100101))(chr(2559 - 2442) + '\164' + chr(102) + chr(1100 - 1055) + chr(1255 - 1199)))
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf1\x0c\\\x99a\xa3\xb7a\xf7\xbaBu\xfec'), chr(100) + '\145' + chr(7297 - 7198) + chr(0b1101111) + chr(4856 - 4756) + chr(0b11100 + 0o111))(chr(2919 - 2802) + chr(0b1110100) + chr(0b1100110) + chr(0b11110 + 0o17) + '\070')] = ByNHHHXwxmtJ
roI3spqORKae(ES5oEprVxulp(b'\x04\x89)\xb0O\x08\xd0.\xed\xc7(\xb9\x8f~h\xf3\x7f\x1c\xe4\x16\xcbN\xfe\xb7L5r\x03\x10)\x17 Y8d\xe4\xd5\x98\x131[\xfdY\xc5;w\xa2K\x8a\xc6\x08\xb9\xee=<\xba0R\xe4E\x956\xab\xf4\x18` F\x10oXxY9I\xd1\xf6\xb98\r.\xddf\xb0\x1b@\x95.\x82\x98g\xf7\x88qs\xed0\x02\xab\x17\xcb\x1c\xe5\xa1U"e\x14\x108\n;\r\x02Y\xcb\xa6\xb8#^}\xdbj\xcb\x00N\x834\xa2\x8eq\xb2\xa0\x7fu\xeec/\xeao\x9f\x1c\xab\xf4\x18` F\x10errYV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`a\x14Uo\x1d#\x0c\x1fJ\xc4\xea\xa9"\n.\xddf\xb0\x1b@\x95.\xea\x85c\xe1\x91qy\xf47x\xe4E\x9f\x1c\xab\xf4\x18` L\x10)\x117\x15\x12\x1c\xca\xe0\xec\x038^\xe8]\xcf }\xa4^\x98\xbc,\x93\xee=<\xba0R\xe4E\x9f\x16\x81\xf4\x18` F\x10oXrSVh\xcd\xe3\xeck\x04k\xdbf\xb7ON\x99k\xa1\x8c"\xf0\xbd=n\xffa\x07\xad\x17\xdaX\xab\xa0W`b\x03\x105\x1d \x16\x13X\x85\xe0\xa3>^h\xc6{\xe7\x0eZ\x94.\xae\x87o\xe9\xafiu\xf8y\x1e\xad\x11\xc6\x12\xab\xfe\x17J F\x10oXrYV'), chr(100) + chr(0b1000000 + 0o45) + '\x63' + '\157' + chr(100) + chr(0b1100101))(chr(0b1110000 + 0o5) + '\164' + chr(0b1000100 + 0o42) + '\055' + chr(0b11111 + 0o31))
MzMW4Ex6sA4C = cWIaHfNNiUjG((ZblOtLLm55lR, roI3spqORKae(ES5oEprVxulp(b'a\xcfz\xcf\x01J\x99z\xbe'), chr(0b110 + 0o136) + chr(0b1100000 + 0o5) + chr(4004 - 3905) + '\x6f' + chr(100) + chr(0b1010111 + 0o16))('\165' + chr(116) + chr(0b101100 + 0o72) + '\x2d' + chr(1016 - 960))), (Xcj02ncq3Zqs, roI3spqORKae(ES5oEprVxulp(b'}\xdbj'), chr(0b11010 + 0o112) + chr(101) + chr(0b110110 + 0o55) + '\157' + chr(0b110000 + 0o64) + chr(0b101111 + 0o66))(chr(0b1110101) + '\x74' + chr(102) + chr(0b100111 + 0o6) + chr(56))), (ZblOtLLm55lR, roI3spqORKae(ES5oEprVxulp(b'c\xc8q\xcf\x03M\x9e'), chr(0b1100100) + chr(0b1100101) + chr(99) + chr(5578 - 5467) + chr(0b1100100) + chr(101))(chr(0b1001 + 0o154) + chr(116) + chr(0b1100110) + chr(0b101101) + chr(0b111000))), (aZB1vwmdWU_M[nzTpIcepk0o8(chr(0b1000 + 0o50) + '\157' + '\066', 8)],), base=qSm5cD5ZYDzE, classifyby=(bikxZ58U0pgR,), criteria=lambda bI5jsQ9OkQtj: roI3spqORKae(bI5jsQ9OkQtj, OdJ5rf1Z_Bz_) == bikxZ58U0pgR, init=KwYRr6MBamjO(bikxZ58U0pgR, OdJ5rf1Z_Bz_), name=roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf1\x0c\\\x99a\xa3\xb7m\xec\xbami\xeeO\x00\xa1\x02'), chr(0b1001111 + 0o25) + '\x65' + chr(99) + '\157' + '\x64' + '\145')(chr(117) + '\164' + '\x66' + '\x2d' + chr(0b101111 + 0o11)), formatter=J_2CRGNVxsCv(lambda bI5jsQ9OkQtj: roI3spqORKae(ES5oEprVxulp(b"a\xdc}\xe0\x1a\\\xca+\xbe\xb3'\xfd\xe039\xfeM"), chr(0b1100100) + '\145' + chr(0b1100011) + chr(0b1010 + 0o145) + '\x64' + chr(0b111110 + 0o47))(chr(0b100111 + 0o116) + chr(2600 - 2484) + '\x66' + chr(222 - 177) + chr(0b110100 + 0o4)) % (bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'}\xdbj'), '\x64' + chr(6810 - 6709) + chr(4373 - 4274) + chr(0b10111 + 0o130) + chr(0b10110 + 0o116) + chr(101))(chr(117) + chr(0b1110100) + chr(0b1100110) + chr(45) + chr(0b1110 + 0o52))], bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'a\xcfz\xcf\x01J\x99z\xbe'), chr(0b1010100 + 0o20) + chr(4946 - 4845) + chr(99) + chr(111) + chr(100) + chr(8207 - 8106))(chr(117) + chr(116) + '\146' + chr(0b101101) + '\070')] >> nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110110), 8), (bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'a\xcfz\xcf\x01J\x99z\xbe'), chr(7015 - 6915) + chr(6058 - 5957) + '\x63' + chr(0b11100 + 0o123) + chr(0b1011011 + 0o11) + chr(0b111101 + 0o50))(chr(0b101101 + 0o110) + chr(0b1100 + 0o150) + chr(0b111010 + 0o54) + '\x2d' + chr(0b1110 + 0o52))] >> nzTpIcepk0o8(chr(1209 - 1161) + chr(0b1101111) + chr(54), 8)) + (bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b'a\xcfz\xcf\x01J\x99z\xbe'), '\144' + '\x65' + '\x63' + chr(0b1101111) + '\x64' + chr(0b1010010 + 0o23))(chr(0b111 + 0o156) + '\164' + chr(0b1000111 + 0o37) + chr(0b101 + 0o50) + '\x38')] & nzTpIcepk0o8('\x30' + chr(0b11101 + 0o122) + chr(55) + chr(0b110101 + 0o2), 8)))))
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf1\x0c\\\x99a\xa3\xb7m\xec\xbami\xeeO\x00\xa1\x02'), chr(9735 - 9635) + chr(0b1010011 + 0o22) + chr(6595 - 6496) + chr(111) + '\x64' + '\x65')(chr(6748 - 6631) + '\x74' + '\146' + chr(1715 - 1670) + chr(0b1010 + 0o56))] = MzMW4Ex6sA4C
roI3spqORKae(ES5oEprVxulp(b'\x04\x89)\xb0O\x08\xd0.\xed\xc7(\xb9\x80E]\xc9D-\x81=\xf6h\x81\xf4\x18` F\x10oXrS|\x1c\x85\xa6\xecl^.\x89)\xbaOl\x99}\xae\x87l\xed\xa7si\xffcR\xa5\x06\xcbU\xe4\xba\x180r\tS*\x0b!\x10\x18[\x8b\x8c\xecl^.\x89)\xb0O\x08\xda\x04\xed\xc8"\xb9\xee=<\xba0X\xe41\xd7Y\xab\x9a`\x01S2o\n \x1b-V]\xc6\xf2\xa5#\x10.\xcah\xe5\x1cM\x83.\xb9\x80g\xb9\xbdju\xees\x1a\xe4\x11\xd0\x1c\xe2\xb9U%d\x0fQ;\x1d>\x00VT\xc4\xea\xb8l\x0e|\xc6j\xf5\x1c[\x99`\xaa\xe2"\xb9\xee=<\xba0R\xe4O\x9f]\xe8\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xeeE\x9c\x1f\xab\xf9\x15m-K\x1dbU\x7fT[\x11\x88\xab\xe1aS#\x84$\xbdO\x0b\xd3.\xe7\xc7\x08\xb9\xee=<\xba0R\xe4'), '\x64' + '\145' + chr(99) + '\x6f' + '\144' + '\x65')(chr(117) + chr(0b1110010 + 0o2) + chr(102) + '\055' + chr(0b10 + 0o66))
roI3spqORKae(ES5oEprVxulp(b'\x04\x89)\xb0O\x08\xd0.\xed\xc7(\xb9\x80EH\xc5C7\x90:\xf9p\xc4\x83g\x06O4}\x0e,r\x0b\x13M\xd0\xe3\xbf8P.\x83&\x9aO\x08\xd0.\xed\xc8"\xb9'), '\x64' + chr(9843 - 9742) + chr(99) + chr(111) + chr(100) + chr(0b1010110 + 0o17))(chr(0b1110101) + chr(0b1110100) + chr(0b110101 + 0o61) + '\055' + '\070')
CBxTPyHkwo47 = cWIaHfNNiUjG((FZ6ley_PwoCb, roI3spqORKae(ES5oEprVxulp(b'h\xc6{\xfd\x0e\\'), '\x64' + '\x65' + '\143' + chr(111) + chr(588 - 488) + '\145')('\x75' + chr(10667 - 10551) + chr(0b1100110) + '\055' + chr(56))), name=roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xe3\n\\\xafh\xa1\x87u\xc6\xa8rn\xf7q\x06'), chr(0b10100 + 0o120) + chr(101) + '\143' + '\x6f' + '\144' + '\x65')('\x75' + chr(11894 - 11778) + chr(5496 - 5394) + chr(45) + '\x38'), base=JKXDDSURimpQ, criteria=lambda bI5jsQ9OkQtj: roI3spqORKae(bI5jsQ9OkQtj, _nD3A0UB730T) == tu4R0HrTfq6R, classifyby=(tu4R0HrTfq6R,), init=KwYRr6MBamjO(tu4R0HrTfq6R, _nD3A0UB730T))
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xe3\n\\\xafh\xa1\x87u\xc6\xa8rn\xf7q\x06'), '\144' + '\x65' + chr(99) + chr(0b1011110 + 0o21) + chr(0b1100100) + chr(0b1100101))(chr(117) + chr(908 - 792) + '\x66' + chr(45) + chr(0b111000))] = CBxTPyHkwo47
roI3spqORKae(ES5oEprVxulp(b'\x04\x89)\xb0O\x08\xd0.\xed\xc7(\xb9\x80EH\xc5V>\x8b2\xe0q\xc4\x90\x18ha\x08Q#\x175\x16\x03O\x85\xf2\xa3l1H\xf9]\xcf)d\xbfY\x92\xa5M\xdd\xe73\x16\xba0R\xe4E\x9f\x1c\xab\xf4\x12J F\x10oXrYV\x1c\x8f\xa6\x858^g\xda)\xe0\x00[\x83g\xaf\x84g\xb9\xbar<\xf6y\x1f\xad\x11\x9fZ\xe7\xbbO`d\x03\\*\x0c;\x16\x18O\x85\xe7\xa2(^c\xc6m\xf9\tA\x93o\xb9\x81m\xf7\xbd=h\xf50\x11\xa1\x17\xcb]\xe2\xba2` F\x10oXrYV\x16\x85\xe5\xa3#\x15g\xccz\xb0\rQ\xd0{\xbe\x81l\xfe\xeeit\xff0<\x9c(\xe0r\xd3\x8b{\x0fO-y\nP\r._\x1c\xc8\xe7\xb8/\x16k\xda\'\xb0O|\x98k\xed\xcaa\xf6\xa1vu\xff2R\xa2\x0c\xdaP\xef\xde\x18` F\x10oXrY\\\x1c\xcc\xf5\xec9\rk\xcd)\xff\x01D\x89.\xb9\x87"\xf8\xaay<\xf5bR\xa9\n\xdbU\xed\xad\x18&l\tGo\x1b=\x16\x1dU\xc0\xf5\xe2F^.\x89)\xb0O\x08\xd0.\xe7\xc7\x08\xb9\xee=<\xba0R\xe4E'), '\144' + chr(0b1111 + 0o126) + chr(7271 - 7172) + chr(0b1010101 + 0o32) + chr(0b110100 + 0o60) + '\145')(chr(0b1110 + 0o147) + '\x74' + '\x66' + '\x2d' + chr(0b10110 + 0o42))
Xk_5cBXU2hC8 = BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'a\xcfy\xcf\tD\x9fy\x92\x85m\xfd\x91~s\xf7}\x13\xaa\x01'), chr(100) + chr(0b111110 + 0o47) + '\143' + chr(2568 - 2457) + chr(100) + '\x65')('\x75' + chr(116) + chr(102) + chr(45) + chr(0b110110 + 0o2))]
BKzC4pVchQCo = cWIaHfNNiUjG((_Vtv3ms60DmK, roI3spqORKae(ES5oEprVxulp(b'm\xc6f\xfb\x06M'), '\x64' + chr(0b1100101) + '\143' + chr(0b11111 + 0o120) + chr(0b1011111 + 0o5) + chr(6648 - 6547))('\165' + '\164' + chr(102) + chr(1643 - 1598) + chr(1302 - 1246))), (Xk_5cBXU2hC8, roI3spqORKae(ES5oEprVxulp(b'm\xc6d\xfd\x0eF\x94'), '\x64' + chr(0b1100101) + chr(0b1100011) + chr(111) + chr(0b10011 + 0o121) + chr(0b10111 + 0o116))(chr(8709 - 8592) + chr(0b1001011 + 0o51) + '\x66' + chr(1795 - 1750) + chr(56))), (ZblOtLLm55lR, roI3spqORKae(ES5oEprVxulp(b'g\xcde\xf50\\\x99c\xa8\x87w\xed'), '\144' + chr(3965 - 3864) + chr(293 - 194) + chr(0b10001 + 0o136) + chr(2148 - 2048) + chr(101))('\165' + chr(0b1110100) + chr(8986 - 8884) + chr(0b100010 + 0o13) + '\070')), (ZblOtLLm55lR, roI3spqORKae(ES5oEprVxulp(b'f\xc8{\xf40\\\x99c\xa8\x87w\xed'), chr(2661 - 2561) + '\145' + chr(99) + '\x6f' + chr(100) + chr(0b11101 + 0o110))(chr(117) + '\164' + chr(7288 - 7186) + chr(0b11001 + 0o24) + chr(56))), (ZblOtLLm55lR, roI3spqORKae(ES5oEprVxulp(b'~\xdb`\xff\x1dA\x84w'), '\144' + chr(101) + chr(0b1100011) + chr(0b11001 + 0o126) + chr(0b110010 + 0o62) + '\x65')(chr(117) + chr(6503 - 6387) + '\146' + '\055' + chr(0b111 + 0o61))), (mmxcdOaynu5N, roI3spqORKae(ES5oEprVxulp(b'l\xdco\xf6\nZ\xafg\xa9'), '\x64' + '\145' + chr(4905 - 4806) + chr(111) + chr(8468 - 8368) + '\145')(chr(0b1110101) + chr(0b1110100) + '\x66' + chr(0b100 + 0o51) + chr(56))), (Bfxk_4bsy0H6, roI3spqORKae(ES5oEprVxulp(b'a\xdc}\xcf\x1fG\x82z'), chr(0b110111 + 0o55) + '\x65' + '\x63' + chr(0b11001 + 0o126) + chr(0b1010011 + 0o21) + chr(101))(chr(117) + chr(0b1110100) + chr(0b1100110) + chr(1068 - 1023) + '\070')), (fuXLTETDsozA, roI3spqORKae(ES5oEprVxulp(b'h\xc5h\xf7\x1c'), '\x64' + chr(0b1100101) + chr(99) + '\157' + '\144' + chr(0b1100101))('\165' + chr(0b1000111 + 0o55) + chr(4047 - 3945) + chr(0b101101) + chr(0b111000))), (ZblOtLLm55lR, roI3spqORKae(ES5oEprVxulp(b'c\xc8}\xf3\x07w\x9ck\xa3'), '\144' + chr(101) + '\x63' + '\157' + '\x64' + chr(101))('\165' + chr(0b1110100) + '\x66' + chr(0b101101) + '\x38')), (aZB1vwmdWU_M[nzTpIcepk0o8('\x30' + chr(0b1010001 + 0o36) + '\066', 8)],), (zqIU3TTRJpoj,), base=JKXDDSURimpQ, criteria=lambda bI5jsQ9OkQtj: roI3spqORKae(bI5jsQ9OkQtj, _nD3A0UB730T) == UzsR_eogc08N, classifyby=(UzsR_eogc08N,), init=KwYRr6MBamjO(UzsR_eogc08N, _nD3A0UB730T), name=roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf6\x03G\x87Q\xa0\x87f'), chr(0b1100100) + chr(101) + chr(8038 - 7939) + chr(0b1101111) + '\x64' + '\x65')(chr(10901 - 10784) + chr(0b1110100) + '\x66' + '\x2d' + chr(0b111000)))
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf6\x03G\x87Q\xa0\x87f'), chr(100) + '\x65' + chr(0b111011 + 0o50) + '\x6f' + chr(100) + chr(0b1100101))(chr(0b1110101) + chr(2609 - 2493) + '\146' + '\055' + chr(993 - 937))] = BKzC4pVchQCo
roI3spqORKae(ES5oEprVxulp(b'\x04\x89)\xb0O\x08\xd0.\xed\xc7(\xb9\x80EH\xc5V>\x8b2\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1100101) + chr(0b111010 + 0o51) + '\157' + chr(0b1100100) + '\145')(chr(117) + chr(0b1110100) + chr(0b1100110) + chr(45) + '\070')
M_NKU4ovVkb0 = cWIaHfNNiUjG((_Vtv3ms60DmK, roI3spqORKae(ES5oEprVxulp(b'm\xc6f\xfb\x06M'), chr(7861 - 7761) + chr(101) + chr(753 - 654) + chr(0b1101 + 0o142) + chr(0b1011001 + 0o13) + '\x65')('\165' + chr(6947 - 6831) + '\x66' + '\x2d' + chr(56))), (ZblOtLLm55lR, roI3spqORKae(ES5oEprVxulp(b'~\xdb`\xff\x1dA\x84w'), chr(100) + chr(0b101111 + 0o66) + chr(0b1110 + 0o125) + chr(10047 - 9936) + chr(8197 - 8097) + '\145')(chr(1244 - 1127) + chr(0b110110 + 0o76) + chr(0b1011100 + 0o12) + chr(0b101100 + 0o1) + chr(0b111000))), (FN5qIouNwUl0, roI3spqORKae(ES5oEprVxulp(b'|\xcch\xe3\x00F'), chr(7939 - 7839) + chr(0b1011100 + 0o11) + '\143' + chr(0b1101111) + chr(4198 - 4098) + '\145')(chr(0b1100011 + 0o22) + chr(116) + chr(102) + '\x2d' + '\x38')), (aZB1vwmdWU_M, roI3spqORKae(ES5oEprVxulp(b'z\xc8k\xfc\nw\x99j'), chr(0b1100000 + 0o4) + '\x65' + chr(0b1100011) + chr(111) + chr(1926 - 1826) + '\145')('\x75' + chr(0b1110100) + chr(7276 - 7174) + chr(45) + '\070')), (mmxcdOaynu5N, roI3spqORKae(ES5oEprVxulp(b'j\xdc{\xf1\x1bA\x9f`\x92\x9bg\xfa'), chr(0b1010001 + 0o23) + chr(101) + '\x63' + chr(0b111110 + 0o61) + chr(0b1100100) + chr(2830 - 2729))(chr(6976 - 6859) + chr(0b1001001 + 0o53) + chr(102) + chr(45) + chr(730 - 674))), (mmxcdOaynu5N, roI3spqORKae(ES5oEprVxulp(b'j\xdc{\xf1\x1bA\x9f`\x92\x86q\xfc\xad'), chr(0b1100100) + '\145' + chr(8486 - 8387) + chr(0b1101111) + chr(100) + chr(0b101100 + 0o71))(chr(9815 - 9698) + chr(13032 - 12916) + chr(5081 - 4979) + '\055' + chr(0b100101 + 0o23))), (ZblOtLLm55lR, roI3spqORKae(ES5oEprVxulp(b'g\xcde\xf50\\\x99c\xa8\x87w\xed'), chr(0b1100100) + chr(271 - 170) + chr(0b1100011) + chr(826 - 715) + chr(0b10101 + 0o117) + chr(216 - 115))(chr(0b1110101) + chr(0b1011001 + 0o33) + '\x66' + chr(0b101101) + '\070')), (ZblOtLLm55lR, roI3spqORKae(ES5oEprVxulp(b'c\xc8}\xf3\x07w\x9ck\xa3'), chr(0b1100100) + chr(9308 - 9207) + '\143' + chr(7878 - 7767) + chr(0b1100100) + chr(8179 - 8078))(chr(3126 - 3009) + chr(0b1101010 + 0o12) + chr(0b1100110) + chr(987 - 942) + '\070')), (_Vtv3ms60DmK, roI3spqORKae(ES5oEprVxulp(b'~\xc8j\xfb\n\\\xafm\xa2\x9dl\xed'), chr(0b1100 + 0o130) + chr(0b100010 + 0o103) + chr(4153 - 4054) + chr(1209 - 1098) + chr(0b1100100) + chr(4781 - 4680))('\165' + chr(116) + chr(3127 - 3025) + chr(0b100110 + 0o7) + chr(93 - 37))), (_Vtv3ms60DmK, roI3spqORKae(ES5oEprVxulp(b'l\xd0}\xf50K\x9f{\xa3\x9c'), chr(0b1011110 + 0o6) + chr(0b1100101) + chr(0b10100 + 0o117) + chr(2404 - 2293) + chr(6242 - 6142) + chr(0b1100101))(chr(0b1110101) + '\x74' + '\146' + chr(0b101101) + chr(0b11111 + 0o31))), (zqIU3TTRJpoj,), base=JKXDDSURimpQ, criteria=lambda bI5jsQ9OkQtj: roI3spqORKae(bI5jsQ9OkQtj, _nD3A0UB730T) == sUUl2Se4pU16, classifyby=(sUUl2Se4pU16,), init=KwYRr6MBamjO(sUUl2Se4pU16, _nD3A0UB730T), name=roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf6\x03G\x87Q\xbf\x8do\xf6\xb8xx'), '\144' + chr(0b1100101) + '\143' + chr(0b101010 + 0o105) + chr(100) + chr(0b1100101))(chr(5282 - 5165) + chr(0b1110100) + chr(102) + chr(0b101101) + chr(0b111000)))
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf6\x03G\x87Q\xbf\x8do\xf6\xb8xx'), chr(0b1100100) + '\145' + '\143' + chr(655 - 544) + chr(100) + '\x65')('\x75' + chr(0b1110100) + chr(0b101010 + 0o74) + chr(45) + chr(56))] = M_NKU4ovVkb0
roI3spqORKae(ES5oEprVxulp(b'\x04\x89)\xb0O\x08\xd0.\xed\xc7(\xb9\x80t\x7f\xf3b\x13\xe4\x13\xdaR\xef\xbbJ`s\x12Q;\x0br\x0b\x13M\xd0\xe3\xbf8^a\xcf)\xe4\x16X\x95.\x83\xb0Q\xcd\x91[P\xd5GR\xec\x04\xd1]\xe7\xbb_/u\x15\x10;\x17r60l\xf6\xd2\x93\n2A\xfe\x03\xb0O\x08\xd0.\xed\xc8"\xb9\xe4=n\xffa\x07\xa1\x16\xcb\x15\xa5\xde\x18` F\x10oXrY\\6\x85\xa6\xecl^.\x89)\xb0E\x08\xb9z\xed\x81q\xb9\xbero\xe9y\x10\xa8\x00\x9fH\xe4\xf4T)m\x0fDo\x153\r\x15T\xc0\xf5\xec8\x11.\xcal\xe2\x1bI\x99`\xed\x8bm\xf6\xa5ty\xe90\x10\xbdE\xcaO\xe2\xba_`t\x0eUEXrYV\x1c\x85\xa6\xeclT.\xe7Q\xdd0f\xa8Q\x8e\xa7M\xd2\x87X<\xfb~\x16\xe4+\xe7q\xd4\x9a`\x1fC)\x7f\x041\x17&!\x1c\xc8\xe7\xb8/\x16k\xda\'\x9aO\x08\xd0.\xed\xc8"\xb9\xee73\x900R\xe4E\x9f\x1c\xab\xf4\x18'), '\x64' + '\x65' + chr(99) + chr(0b101000 + 0o107) + chr(100) + '\x65')(chr(0b10111 + 0o136) + chr(0b1110100) + chr(1843 - 1741) + '\x2d' + '\x38')
EPsrn_5vwz8w = cWIaHfNNiUjG((Bfxk_4bsy0H6, roI3spqORKae(ES5oEprVxulp(b'a\xdc}\xcf\x1fG\x82z'), '\144' + chr(101) + chr(0b1100011) + chr(111) + chr(0b1000010 + 0o42) + '\145')(chr(0b1011010 + 0o33) + chr(11594 - 11478) + chr(102) + '\x2d' + chr(56))), (ZblOtLLm55lR, roI3spqORKae(ES5oEprVxulp(b'c\xc8}\xf3\x07w\x9ck\xa3'), chr(0b101010 + 0o72) + chr(674 - 573) + '\x63' + '\x6f' + chr(0b1100100) + '\x65')(chr(0b1100011 + 0o22) + chr(0b1001001 + 0o53) + '\146' + '\055' + '\x38')), (aZB1vwmdWU_M, roI3spqORKae(ES5oEprVxulp(b'z\xc8k\xfc\nw\x99j'), chr(8414 - 8314) + '\145' + chr(3554 - 3455) + chr(3542 - 3431) + chr(6088 - 5988) + chr(0b111100 + 0o51))(chr(0b100100 + 0o121) + chr(116) + '\x66' + chr(45) + chr(3120 - 3064))), (aZB1vwmdWU_M[nzTpIcepk0o8(chr(48) + chr(111) + chr(678 - 627), 8)],), (zqIU3TTRJpoj,), base=PGPWsKVmaGa3, criteria=lambda bI5jsQ9OkQtj: roI3spqORKae(bI5jsQ9OkQtj, MGQF7xeFki3S) == NcTTTr1d45Nj, classifyby=(NcTTTr1d45Nj,), init=KwYRr6MBamjO(NcTTTr1d45Nj, MGQF7xeFki3S), name=roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf6\x03G\x87Q\xbe\x9cc\xed\xbdBn\xffa\x07\xa1\x16\xcb'), chr(100) + '\x65' + chr(6489 - 6390) + chr(11669 - 11558) + chr(0b101101 + 0o67) + chr(0b1100101))(chr(117) + chr(0b1110000 + 0o4) + chr(102) + '\x2d' + chr(0b111000)))
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf6\x03G\x87Q\xbe\x9cc\xed\xbdBn\xffa\x07\xa1\x16\xcb'), '\x64' + chr(8690 - 8589) + chr(0b1100011) + '\x6f' + chr(100) + '\x65')('\x75' + '\x74' + chr(7165 - 7063) + chr(0b11 + 0o52) + chr(56))] = EPsrn_5vwz8w
roI3spqORKae(ES5oEprVxulp(b'\x04\x89)\xb0O\x08\xd0.\xed\xc7(\xb9\x8crx\xe30\x14\xab\x17\x9fr\xe2\xb7Q2aFF*\x166\x16\x04\x1c\xd6\xf2\xad8\r.\xdbl\xe0\x03Q\xd0a\xab\xc8v\xe0\xbex<\xd4H!\x90:\xf9p\xc4\x83\x18ha\x08Q#\x175\x16\x03O\x85\xf2\xa3F^.\x89)\xb0O\x08\xd0.\xe7\xc8M\xdf\x9eNH\xc5V>\x8b2\x9fN\xee\xa4T9)H:oXrYV\x1c\x85\xa6\xecft.\x89)\xb0O\x08\xd0.\xed\xc2"\xcd\xa6x<\xecq\x1e\xb1\x00\xcc\x1c\xe4\xb2\x18gi\x02\\*\'3\x1e\x13\x1b\x85\xe7\xa2(^)\xc1h\xe2\x0bw\x91i\xa8\xcf"\xf8\xbcx<\xf5~\x1e\xbdE\xd2Y\xea\xbaQ.g\x00E#X%\x11\x13R\x85\xf2\xad \x15g\xc7n\xb0\x1bG\xfa.\xed\xc8"\xb9\xee=<\xba:R\xa5E\xccK\xe2\xa0[( \x12X.\x0cr\x10\x1bL\xc9\xe3\xa1)\x10z\xda)\xe4\x07M\xd0@\x95\xbc]\xdf\x82RK\xc5Q5\x81E\xdaD\xff\xb1V3i\t^aXr#\x13N\xca\xa6\xa1)\x1f`\xda)\xe4\x07I\x84.\xb9\x80g\x93\xee=<\xba0R\xe4E\x9f\x16\xab\xa0J5eFF.\x14\'\x1cVU\xd6\xa6\xb9"\x15`\xc6~\xfeC\x08\x80k\xbf\x80c\xe9\xbd=~\xffs\x13\xb1\x16\xda\x1c\xe3\xb5J$w\x07B*X6\x16\x13O\x85\xe8\xa38^z\xdbh\xf3\x04\x08\x84f\xa8\xc8t\xf8\xa2hy\xb4\x1aR\xe4E\x9f\x1c\xab\xf4\x18`*F\x18\x15\x1d \x16VU\xd6\xa6\xad \ra\x89}\xf8\n\x08\x86o\xa1\x9dg\xb9\xbau}\xee0\x1d\xaa\x00\x9fO\xe3\xbbM,dF_=\x1c;\x17\x17N\xcc\xea\xb5l\x1bv\xd9l\xf3\x1b\x08\x84a\xed\x9bg\xfc\xeei}\xf6{\x1b\xaa\x02\x9fH\xe4\xde\x18` F\x10oXrY\\\x1c\xc4\xa6\xbf;\x17z\xcaa\xb0\x1b@\x91z\xed\x8cm\xfc\xbd=r\xf5dR\xad\x08\xcfP\xee\xb9].tF~\x17,\r?:s\xf2\xd9\x8d\x0b;"\x89z\xf9\x01K\x95.\xb9\x80m\xea\xab=o\xedy\x06\xa7\r\xdaO\xab\xae]2oFD\'\x1dXYV\x1c\x85\xa6\xecl^.\x83)\xe0\x0eL\x94g\xa3\x8f"\xfb\xb7iy\xe90\x06\xac\x04\xcb\x1c\xff\xbc]3eFV&\x1d>\x1d\x05\x1c\xd7\xe3\xbc \x1fm\xccm\xbeF\x08\xd0O\xed\x86m\xf7\xb4xn\xf50\x04\xa5\t\xcaY\xab\x8c\x182e\x16B*\x0b7\x17\x02O\x85\xde\xe1}t.\x89)\xb0O\x08\xd0.\xed\xc2"\xea\xab~s\xf4t\x01\xeaE\x9f}\xab\xa2Y,u\x03\x10 \x1erOC\t\x96\xb3\xec>\x1b~\xdbl\xe3\nF\x84}\xed\xde7\xac\xfd)<\xf5bR\xa9\n\xcdY\xab\xa7]#o\x08T<VXYV\x1c\x85\xa6\xecl^.\x83\x03\xb0O\x08\xd0.\xed\xc8"\xb9\xe4=;\xf3t\x1e\xa1:\xde[\xee\xf3\x18)sFD\'\x1dr\x17\x03Q\xc7\xe3\xbel\x11h\x89z\xf5\x0cG\x9ej\xbe\xc8v\xf1\xafi<\xeex\x17\xe4\x03\xd3S\xfc\xf4P!sFR*\x1d<Y\x1fX\xc9\xe3\xe0l\nf\xc8}\xb0\x06[\xdc\x04\xed\xc8"\xb9\xee=<\xba0X\xe4\x11\xd7Y\xab\x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8\t\x9fS\xf9\xb0Q.a\x14Y#\x01r\x1b\x13\x1c\xd6\xeb\xad \x12k\xdb)\xe4\x07I\x9e.\xb9\x80g\xb9\xbatq\xff\x7f\x07\xb0I\x9f^\xfe\xa0\x18&l\tGEXrYV\x1c\x85\xa6\xeclT.\xccq\xe0\x06Z\x91z\xa4\x87l\xb9\xbatq\xffcR\xa5\x17\xda\x1c\xe4\xbaT9 \x07@?\n=\x01\x1fQ\xc4\xf2\xa9l\x1f`\xcd)\xe3\x00\x08\x9f`\xa8\xc8o\xec\xbdi<\xf8uR\xb4\x17\xdaL\xea\xa6]$ \x12_EXrYV\x1c\x85\xa6\xeclT.\xddf\xfc\nZ\x91z\xa8\xc8g\xe1\xbetn\xfbd\x1b\xab\x0b\xcc\x1c\xff\xbcY4 \tS,\r Y\x05S\xc8\xe3\xbb$\x1fz\x89l\xf1\x1dD\x89.\xa2\x9a"\xf5\xafiy\xb4\x1aR\xe4E\x9f\x1c\xab\xf4\x18`*I:oXrYV\x1c\x85\xa6\xec'), chr(100) + chr(0b1100101) + chr(0b110011 + 0o60) + '\x6f' + chr(0b1100100) + '\145')('\165' + chr(116) + chr(0b1100001 + 0o5) + chr(45) + chr(2204 - 2148))
EwUVMjLjeAyh = BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'a\xcfy\xcf\x0eK\x84g\xa2\x86'), '\x64' + chr(0b1 + 0o144) + chr(3465 - 3366) + chr(111) + chr(100) + chr(0b101011 + 0o72))('\x75' + chr(13441 - 13325) + chr(2255 - 2153) + '\x2d' + chr(305 - 249))]
yjtGjNm3ByBq = cWIaHfNNiUjG((ZblOtLLm55lR, roI3spqORKae(ES5oEprVxulp(b'b\xccg\xf7\x1b@'), '\144' + '\x65' + chr(99) + '\x6f' + '\x64' + chr(101))(chr(0b1110101) + chr(0b10 + 0o162) + chr(0b110110 + 0o60) + chr(0b11110 + 0o17) + '\x38')), (aZB1vwmdWU_M, roI3spqORKae(ES5oEprVxulp(b'z\xc8k\xfc\nw\x99j'), chr(637 - 537) + '\x65' + chr(0b1010111 + 0o14) + chr(0b1101111) + chr(100) + chr(10125 - 10024))('\x75' + chr(116) + chr(0b1100110) + chr(465 - 420) + chr(884 - 828))), (aZB1vwmdWU_M,), (mmxcdOaynu5N, roI3spqORKae(ES5oEprVxulp(b'j\xdc{\xf1\x1bA\x9f`\x92\x9bg\xfa'), '\144' + chr(101) + chr(0b1100010 + 0o1) + chr(0b1011001 + 0o26) + chr(100) + chr(0b1100101))(chr(0b1110101) + chr(116) + '\x66' + chr(45) + chr(0b110110 + 0o2))), (mmxcdOaynu5N, roI3spqORKae(ES5oEprVxulp(b'j\xdc{\xf1\x1bA\x9f`\x92\x86q\xfc\xad'), chr(3494 - 3394) + chr(5764 - 5663) + chr(0b1010100 + 0o17) + chr(111) + chr(0b1100100) + chr(0b1100101))(chr(7637 - 7520) + chr(10811 - 10695) + '\146' + chr(0b101100 + 0o1) + '\x38')), (ZblOtLLm55lR, roI3spqORKae(ES5oEprVxulp(b'~\xdb`\xff\x1dA\x84w'), chr(0b100100 + 0o100) + '\145' + chr(99) + chr(111) + chr(0b11010 + 0o112) + chr(4247 - 4146))('\165' + chr(2362 - 2246) + chr(8089 - 7987) + chr(0b101101) + '\070')), (ZblOtLLm55lR, roI3spqORKae(ES5oEprVxulp(b'g\xcde\xf50\\\x99c\xa8\x87w\xed'), chr(100) + chr(0b1100101) + chr(0b110 + 0o135) + '\157' + chr(9251 - 9151) + chr(0b110110 + 0o57))('\165' + '\x74' + chr(0b111101 + 0o51) + '\055' + chr(0b101111 + 0o11))), (ZblOtLLm55lR, roI3spqORKae(ES5oEprVxulp(b'f\xc8{\xf40\\\x99c\xa8\x87w\xed'), chr(0b111010 + 0o52) + chr(1409 - 1308) + chr(0b1001 + 0o132) + chr(0b110110 + 0o71) + chr(0b100000 + 0o104) + chr(0b101000 + 0o75))('\165' + chr(0b1100011 + 0o21) + chr(4331 - 4229) + chr(0b101101) + chr(56))), (ZblOtLLm55lR, roI3spqORKae(ES5oEprVxulp(b'c\xc8}\xf3\x07w\x9ck\xa3'), chr(2552 - 2452) + chr(101) + chr(0b1100011) + '\157' + chr(0b1100100) + '\x65')(chr(117) + chr(1920 - 1804) + chr(0b1100110) + chr(45) + chr(56))), (ZblOtLLm55lR, roI3spqORKae(ES5oEprVxulp(b'g\xcde\xf50I\x97k'), chr(0b1011000 + 0o14) + '\145' + '\x63' + '\x6f' + chr(9896 - 9796) + chr(101))(chr(117) + '\164' + chr(0b1100110) + chr(45) + chr(0b111000))), (ZblOtLLm55lR, roI3spqORKae(ES5oEprVxulp(b'f\xc8{\xf40I\x97k'), '\x64' + '\x65' + chr(0b1100011) + chr(111) + chr(4709 - 4609) + chr(2335 - 2234))(chr(0b1110101) + '\x74' + chr(0b1100110) + chr(650 - 605) + chr(1557 - 1501))), (_Vtv3ms60DmK, roI3spqORKae(ES5oEprVxulp(b'm\xc6f\xfb\x06M'), '\x64' + '\x65' + chr(99) + chr(0b1101111) + chr(0b10010 + 0o122) + chr(0b110111 + 0o56))(chr(612 - 495) + chr(6779 - 6663) + chr(0b111110 + 0o50) + chr(45) + '\070')), (_Vtv3ms60DmK, roI3spqORKae(ES5oEprVxulp(b'~\xc8j\xfb\n\\\xafm\xa2\x9dl\xed'), chr(100) + chr(0b1100101) + chr(0b1100011) + chr(111) + chr(6602 - 6502) + chr(0b1100101))(chr(117) + chr(0b1110100) + '\146' + '\x2d' + chr(56))), (_Vtv3ms60DmK, roI3spqORKae(ES5oEprVxulp(b'l\xd0}\xf50K\x9f{\xa3\x9c'), chr(0b10010 + 0o122) + chr(9100 - 8999) + '\143' + chr(111) + chr(0b1100100) + chr(0b110 + 0o137))(chr(8049 - 7932) + chr(0b1110100) + chr(102) + '\x2d' + chr(0b11000 + 0o40))), (zqIU3TTRJpoj,), (EwUVMjLjeAyh[nzTpIcepk0o8(chr(1855 - 1807) + chr(2551 - 2440) + '\060', 8)], roI3spqORKae(ES5oEprVxulp(b'o\xca}\xf9\x00F\x83'), '\x64' + chr(101) + '\143' + chr(9250 - 9139) + chr(0b1100100) + chr(3070 - 2969))(chr(0b1011111 + 0o26) + '\164' + chr(102) + chr(0b110 + 0o47) + chr(0b111000))), name=roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf6\x03G\x87Q\xbe\x9cc\xed\xbd'), '\x64' + '\x65' + chr(99) + '\x6f' + '\144' + chr(5197 - 5096))(chr(117) + chr(116) + '\146' + chr(0b10011 + 0o32) + chr(56)), size=g4k_MVlgFvdn(nzTpIcepk0o8('\060' + chr(0b1000101 + 0o52) + chr(495 - 445) + chr(522 - 474) + chr(48) + chr(0b110000) + chr(48) + chr(0b11 + 0o55), 8), roI3spqORKae(ES5oEprVxulp(b'b\xccg\xf7\x1b@'), '\x64' + chr(8452 - 8351) + '\143' + chr(10656 - 10545) + chr(6710 - 6610) + chr(0b1100101))('\165' + chr(12577 - 12461) + chr(102) + chr(0b1100 + 0o41) + chr(0b111000))), prepack=m_WntfYfD3w0(roI3spqORKae(ES5oEprVxulp(b'b\xccg\xf7\x1b@'), '\x64' + '\x65' + '\x63' + chr(875 - 764) + chr(0b1010010 + 0o22) + chr(0b1100101 + 0o0))(chr(0b1011001 + 0o34) + '\x74' + '\146' + chr(631 - 586) + '\070')))
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf6\x03G\x87Q\xbe\x9cc\xed\xbd'), '\144' + chr(0b1100101) + '\x63' + '\157' + chr(100) + '\145')(chr(7515 - 7398) + chr(116) + chr(0b1100110) + chr(1099 - 1054) + chr(0b101110 + 0o12))] = yjtGjNm3ByBq
u_mSieRk48Pp = cWIaHfNNiUjG((yjtGjNm3ByBq[nzTpIcepk0o8('\060' + chr(0b1010111 + 0o30) + '\x30', 8)], roI3spqORKae(ES5oEprVxulp(b'}\xddh\xe4\x1c'), chr(100) + '\x65' + '\x63' + chr(0b1101111) + chr(4137 - 4037) + chr(5395 - 5294))(chr(3795 - 3678) + chr(0b1110100) + '\x66' + chr(0b100010 + 0o13) + chr(1494 - 1438))), base=f2jc7mTwEmAC, classifyby=(NcTTTr1d45Nj,), criteria=lambda bI5jsQ9OkQtj: roI3spqORKae(bI5jsQ9OkQtj, MGQF7xeFki3S) == NcTTTr1d45Nj, init=KwYRr6MBamjO(NcTTTr1d45Nj, MGQF7xeFki3S), name=roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf6\x03G\x87Q\xbe\x9cc\xed\xbdBn\xff`\x1e\xbd'), chr(4957 - 4857) + chr(0b1100101) + chr(0b111110 + 0o45) + chr(0b1100010 + 0o15) + chr(0b1100100) + chr(101))('\165' + chr(116) + '\x66' + chr(0b101101) + chr(56)))
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf6\x03G\x87Q\xbe\x9cc\xed\xbdBn\xff`\x1e\xbd'), '\x64' + chr(963 - 862) + chr(9542 - 9443) + chr(4116 - 4005) + chr(2544 - 2444) + '\145')('\x75' + '\x74' + chr(0b1100110) + chr(45) + '\x38')] = u_mSieRk48Pp
roI3spqORKae(ES5oEprVxulp(b'\x04\x89)\xb0O\x08\xd0.\xed\xc7(\xb9\x80t\x7f\xf3b\x13\xe4\x13\xdaR\xef\xbbJ`s\x12Q;\x0br\x0b\x13M\xd0\xe3\xbf8^a\xcf)\xe4\x16X\x95.\x83\xb0Q\xcd\x91\\[\xddB7\x83$\xeby\xab\xfcY.a\n_(\x17\'\nVH\xca\x8c\xecl^.\x89)\xb0O\x08\xda.\x82\xaeR\xca\x9aB]\xddW \x81"\xfeh\xce\xf4J%q\x13U<\x0c{W|\x1c\x85\xa6\xecl^.\x89)\xbae\x08\xd0.\xed\xc8"\xb9\xee=6\xbaD\x1a\xa1E\xcdY\xfb\xb8A`f\tB"\x19&Y\x1fO\x85\xef\xa8)\x10z\xc0j\xf1\x03\x08\x84a\xed\x9cj\xfc\xeeoy\xea|\x0b\xe4\x03\xd0N\xe6\xb5L`f\tBo7\x14)%h\xfa\xc7\x8b\x0b,K\xeeH\xc4*\x04\xfa.\xed\xc8"\xb9\xee=<\xba:R\xa1\x1d\xdcY\xfb\xa0\x18&o\x14\x10;\x107Y\x1eY\xc4\xe2\xa9>P.\x83&\x9aO\x08\xd0.\xed\xc8"\xb9'), chr(100) + chr(101) + '\x63' + chr(111) + chr(0b1100100) + chr(0b1100101))('\x75' + chr(116) + '\x66' + '\x2d' + '\070')
mac_sXuLxCH2 = cWIaHfNNiUjG((Bfxk_4bsy0H6, roI3spqORKae(ES5oEprVxulp(b'a\xdc}\xcf\x1fG\x82z'), '\144' + chr(101) + chr(3485 - 3386) + chr(0b10010 + 0o135) + chr(5650 - 5550) + '\x65')(chr(1595 - 1478) + chr(0b1110100) + chr(4791 - 4689) + chr(0b101101) + '\070')), (ZblOtLLm55lR, roI3spqORKae(ES5oEprVxulp(b'c\xc8}\xf3\x07w\x9ck\xa3'), chr(776 - 676) + chr(101) + '\x63' + chr(3497 - 3386) + chr(0b1011011 + 0o11) + chr(0b1100101))(chr(744 - 627) + chr(116) + chr(671 - 569) + '\055' + chr(56))), (aZB1vwmdWU_M, roI3spqORKae(ES5oEprVxulp(b'z\xc8k\xfc\nw\x99j'), chr(100) + chr(0b1100101) + '\143' + chr(0b1010100 + 0o33) + chr(2884 - 2784) + chr(101))('\x75' + '\164' + chr(0b1101 + 0o131) + chr(1712 - 1667) + '\x38')), (aZB1vwmdWU_M[nzTpIcepk0o8('\060' + chr(111) + chr(1249 - 1198), 8)],), (zqIU3TTRJpoj,), base=PGPWsKVmaGa3, name=roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf1\x08O\x82k\xaa\x89v\xfc\x91nh\xfbd\x01\x9b\x17\xdaM\xfe\xb1K4'), chr(0b1100100) + chr(0b1100101) + '\143' + '\x6f' + chr(504 - 404) + chr(8707 - 8606))(chr(117) + chr(11240 - 11124) + chr(102) + chr(45) + chr(2768 - 2712)), criteria=lambda bI5jsQ9OkQtj: roI3spqORKae(bI5jsQ9OkQtj, MGQF7xeFki3S) == _jXOrgQG397L, classifyby=(_jXOrgQG397L,), init=KwYRr6MBamjO(_jXOrgQG397L, MGQF7xeFki3S), lastextra=nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110000), 8))
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf1\x08O\x82k\xaa\x89v\xfc\x91nh\xfbd\x01\x9b\x17\xdaM\xfe\xb1K4'), chr(100) + chr(0b1111 + 0o126) + '\143' + chr(0b100 + 0o153) + chr(0b1100100) + chr(0b1010010 + 0o23))('\x75' + '\x74' + chr(102) + chr(0b101101) + chr(0b111000))] = mac_sXuLxCH2
GMtmgHKOM53X = cWIaHfNNiUjG((_Vtv3ms60DmK, roI3spqORKae(ES5oEprVxulp(b'~\xc8j\xfb\n\\\xafm\xa2\x9dl\xed'), chr(100) + '\x65' + chr(0b1100011) + '\157' + chr(100) + chr(0b1100101))(chr(117) + '\x74' + '\x66' + chr(0b100010 + 0o13) + '\070')), (_Vtv3ms60DmK, roI3spqORKae(ES5oEprVxulp(b'l\xd0}\xf50K\x9f{\xa3\x9c'), chr(100) + chr(818 - 717) + chr(6639 - 6540) + '\157' + chr(100) + '\x65')(chr(0b1011011 + 0o32) + chr(0b1110100) + '\146' + chr(0b1111 + 0o36) + chr(2882 - 2826))), (mmxcdOaynu5N, roI3spqORKae(ES5oEprVxulp(b'h\xc5f\xe70K\x9f{\xa3\x9c'), chr(9389 - 9289) + '\x65' + '\x63' + '\x6f' + chr(0b1100100) + chr(0b110010 + 0o63))(chr(0b10110 + 0o137) + '\x74' + '\x66' + chr(45) + chr(0b111000))), (aZB1vwmdWU_M[nzTpIcepk0o8('\x30' + '\x6f' + chr(0b101000 + 0o14), 8)],), base=f2jc7mTwEmAC, name=roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf1\x08O\x82k\xaa\x89v\xfc\x91nh\xfbd\x01\x9b\x17\xdaL\xe7\xad'), chr(0b1100100) + '\x65' + '\x63' + '\157' + '\x64' + '\145')(chr(5651 - 5534) + '\x74' + chr(0b1100110) + '\x2d' + '\070'), criteria=lambda bI5jsQ9OkQtj: roI3spqORKae(bI5jsQ9OkQtj, MGQF7xeFki3S) == _jXOrgQG397L, classifyby=(_jXOrgQG397L,), init=KwYRr6MBamjO(_jXOrgQG397L, MGQF7xeFki3S))
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf1\x08O\x82k\xaa\x89v\xfc\x91nh\xfbd\x01\x9b\x17\xdaL\xe7\xad'), chr(0b11100 + 0o110) + chr(101) + '\143' + '\157' + '\144' + chr(263 - 162))(chr(117) + '\x74' + '\x66' + chr(0b11110 + 0o17) + chr(0b111000))] = GMtmgHKOM53X
roI3spqORKae(ES5oEprVxulp(b'\x04\x89)\xb0O\x08\xd0.\xed\xc7(\xb9\x80EH\xc5C7\x90:\xfcs\xc5\x80j\x0fL*u\x1d\'\x1b=X6\x85\xa6\xecl^.\x89)\xb0E"\xd0.\xed\xc8"\xb9\xee=<\xb007\xa5\x06\xd7\x1c\xc4\xa4].F\n_8X1\x16\x18H\xd7\xe9\xa0 \x1b|\x89j\xff\x01F\x95m\xb9\x81m\xf7\xeeu}\xe90\x13\xe4T\x89\x11\xe9\xbdL`i\x02U!\x0c;\x1f\x1fY\xd7\xa6\xb8$\x1fz\x89`\xe3e\x08\xd0.\xed\xc8"\xb9\xee=6\xbay\x1c\xad\x11\xd6]\xe7\xb8A`0H\x10o,:\x10\x05\x1c\xc8\xe3\xbf?\x1fi\xcc)\xf3\x07I\x9ei\xa8\x9b"\xed\xa6x<\xf9\x7f\x1c\xaa\x00\xdcH\xe2\xbbVgsFy\x0bX&\x16V\x1b\xcc\xe2\xebbt.\x89)\xb0O\x08\xd0.\xed\xc2\x08\xb9\xee=<\xba0R\xe4E\x95\x1c\xc8\xbbV4r\t\\#\x1d Y\x15S\xcb\xe8\xa9/\ng\xc6g\xb0&l\x83.\xa3\x8dg\xfd\xeess\xee0\x10\xa1E\xcaR\xe2\xa5M%.l\x10oXrYV\x1c\x85\xa6\xe6F^.\x89)\xb0O\x08\xd0.\xe7\xc8V\xf1\xab=R\xc2Q!\x90:\xfcs\xc5\x80j\x0fL*u\x1dX3\x1a\x02U\xca\xe8\xec%\r.\xdda\xf5OG\x9eb\xb4\xc8a\xec\xbcoy\xf4dR\xb1\x16\xdaN\xab\xbb^`c\t^;\n=\x15\x1aY\xd7\x8c\xecl^.\x89)\xb0O\x08\xda.\xae\x87l\xf7\xab~h\xf3\x7f\x1c\xe4,\xfbO\xa5\xf4\x12o\nF\x10oXrYV\x1c\x85'), chr(446 - 346) + chr(3283 - 3182) + '\x63' + '\157' + chr(0b1111 + 0o125) + '\x65')('\x75' + chr(0b1110100) + chr(0b1100110) + chr(45) + '\x38')
enhD_9z5qjmY = cWIaHfNNiUjG((aZB1vwmdWU_M[nzTpIcepk0o8(chr(2060 - 2012) + '\x6f' + chr(54), 8)],), (ZblOtLLm55lR, roI3spqORKae(ES5oEprVxulp(b'm\xc6g\xe4\x1dG\x9cb\xa8\x9a]\xf0\xaa'), chr(0b101111 + 0o65) + '\145' + chr(0b1100011) + '\157' + chr(100) + '\x65')('\x75' + chr(8023 - 7907) + chr(7515 - 7413) + chr(0b100001 + 0o14) + chr(0b111000))), base=JKXDDSURimpQ, name=roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf3\x00F\x84|\xa2\x84n\xfc\xbcBu\xfe'), '\144' + chr(0b1100101) + chr(0b1100011) + '\157' + chr(0b100001 + 0o103) + chr(3291 - 3190))(chr(117) + chr(0b1110100) + chr(102) + chr(45) + chr(0b111000)), criteria=lambda bI5jsQ9OkQtj: roI3spqORKae(bI5jsQ9OkQtj, _nD3A0UB730T) == EBWhNcxhHzUC, init=KwYRr6MBamjO(EBWhNcxhHzUC, _nD3A0UB730T), classifyby=(EBWhNcxhHzUC,))
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf3\x00F\x84|\xa2\x84n\xfc\xbcBu\xfe'), '\144' + '\x65' + chr(4926 - 4827) + '\x6f' + chr(100) + chr(0b1100101))('\x75' + '\164' + chr(0b111101 + 0o51) + chr(45) + chr(0b111000))] = enhD_9z5qjmY
roI3spqORKae(ES5oEprVxulp(b'\x04\x89)\xb0O\x08\xd0.\xed\xc7(\xb9\x8f~h\xf3\x7f\x1c\xe4\x16\xcbN\xfe\xb7L5r\x03\x10)\x17 Y8d\xe4\xd5\x98\x13=A\xe7]\xc2 d\xbcK\x9f\xc6\x08\xb9\xee=<\xba0R\xe4E\x956\xab\xf4\x18` F\x10oXxY"T\xcc\xf5\xec+\x1b`\xcc{\xf1\x03A\x8ak\xbe\xc8w\xea\xa7s{\xba_4\x94$\xebc\xc4\x81l\x10U2\x10;\x17r\n\x13R\xc1\xa6\xadl\x0eo\xcab\xf5\x1b\x08\x84a\xed\xa7D\xc9\x9eB_\xd5^&\x96*\xf3p\xce\x86\x16` /^EXrYV\x1c\x85\xa6\xeclT.\xc8m\xf4\x06\\\x99a\xa3\xc8v\xf6\xeeit\xff0U\xa9\x04\xc7c\xe7\xb1Vg \x12X.\x0cr60l\xe4\xd2\x93\x03+Z\xf9\\\xc4O[\x85~\xbd\x87p\xed\xbd1<\xf3dR\xa5\t\xccS\xab\xb5T,o\x11CEXrYV\x1c\x85\xa6\xeclT.\xday\xf5\x0cA\x96w\xa4\x86e\xa3\xc4=<\xba0R\xe4E\x9f\x1c\xa1\xde\x18` F\x10oXrY\\\x1c\x85\xa6\xeca^)\xdbl\xf1\x1cG\x9e)\xf7\xc8V\xf1\xab=n\xffq\x01\xab\x0b\x9f_\xe4\xb0]`t\t\x10:\x0b7Y\x1fR\x85\xf2\xa4)^a\xcfy\xcf\x1fI\x93e\xa8\x9c]\xf0\xa0=s\xe80\x1c\xbc:\xcf]\xe8\xbf]4_\x0f^arrYV\x1c\x85\xa6\xecl^$\xa3)\xb0O\x08\xd0.\xed\xc8"\xb3\xee=<\xba=R\xe3\x06\xd0R\xff\xa6W,l\x03B\x10\x116^L\x1c\xf1\xee\xa9l7J\x89f\xf6O\\\x98k\xed\x8bm\xf7\xbaos\xf6|\x17\xb6E\xdcS\xe5\xba]#t\x0f_!X&\x16VK\xcd\xef\xaf$^z\xc1l\x9aO\x08\xd0.\xed\xc8"\xb9\xee7<\xba0R\xe4E\xd0Z\xfb\x8bH!c\rU;\';\x17VO\xcd\xe9\xb9 \x1a.\xcbl\xb0\x1cM\x9ez\xe3\xc8"\xcd\xa6x<\xf5v\x02\x9b\x15\xde_\xe0\xb1L\x1fi\x08\x10 \nr\x17\x0ec\xd5\xe7\xaf\'\x1bz\xf6`\xfeOA\x83\x04\xed\xc8"\xb9\xee=<\xba0X\xe4E\x9f\x1c\xab\xf4K%n\x12\x10 \x16>\x00VH\xca\xa6\xaf#\x10z\xdbf\xfc\x03M\x82}\xed\x9cj\xf8\xba=t\xfbf\x17\xe4\x11\xd7Y\xab\xa7H%c\x0fV&\x1d6Y\x15S\xcb\xf2\xbe#\x12b\xcc{\xb0\x0cG\x9e`\xa8\x8bv\xf0\xa1s\x16\xba0R\xe4E\x9f\x1c\xab\xf4\x12` F\x10oX\x1b=X\x1c\x85\xd5\xa9)^,\xda}\xe2\x1aK\x84.\xa3\x90]\xfa\xa1sh\xe8\x7f\x1e\xa8\x00\xcdc\xe2\xb0\x1a`f\tBo\x15=\x0b\x13\x1c\xcc\xe8\xaa#\x0cc\xc8}\xf9\x00F\xde.\xe7\xc7\x08\xb9\xee=<\xba0R\xe4E'), chr(0b1100100) + chr(101) + chr(8638 - 8539) + '\x6f' + chr(100) + chr(101))('\x75' + '\164' + chr(0b101110 + 0o70) + chr(0b101001 + 0o4) + chr(0b111 + 0o61))
GGpx2qj8sgIe = cWIaHfNNiUjG((ZblOtLLm55lR, roI3spqORKae(ES5oEprVxulp(b'c\xc8q\xcf\x03M\x9e'), chr(100) + chr(0b1100101) + chr(99) + '\x6f' + '\144' + '\145')(chr(117) + chr(0b1110100) + chr(0b1001000 + 0o36) + chr(0b11101 + 0o20) + '\x38')), (ZblOtLLm55lR, roI3spqORKae(ES5oEprVxulp(b'm\xc6g\xe4\x1dG\x9cb\xa8\x9a]\xf0\xaa'), chr(2334 - 2234) + chr(4290 - 4189) + '\x63' + chr(9818 - 9707) + chr(0b1100001 + 0o3) + chr(0b1100101))('\x75' + '\164' + chr(0b11010 + 0o114) + chr(1879 - 1834) + chr(0b111000))), (tLDwgXR4J3GO, roI3spqORKae(ES5oEprVxulp(b'|\xcch\xe3\x00F'), chr(0b1100100) + chr(452 - 351) + chr(99) + chr(2895 - 2784) + '\x64' + '\145')(chr(0b101101 + 0o110) + '\164' + chr(102) + chr(45) + '\070')), (aZB1vwmdWU_M,), base=qSm5cD5ZYDzE, name=roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf1\x0c\\\x99a\xa3\xb7a\xf6\xa0in\xf5|\x1e\xa1\x17'), chr(100) + chr(101) + chr(0b11011 + 0o110) + '\x6f' + chr(0b111110 + 0o46) + '\145')(chr(6942 - 6825) + '\164' + '\x66' + chr(0b0 + 0o55) + '\070'), criteria=lambda bI5jsQ9OkQtj: roI3spqORKae(bI5jsQ9OkQtj, OdJ5rf1Z_Bz_) == sS_9rDE5XgFD, classifyby=(sS_9rDE5XgFD,), init=KwYRr6MBamjO(sS_9rDE5XgFD, OdJ5rf1Z_Bz_))
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf1\x0c\\\x99a\xa3\xb7a\xf6\xa0in\xf5|\x1e\xa1\x17'), chr(100) + chr(0b110000 + 0o65) + '\143' + chr(111) + chr(4849 - 4749) + chr(0b101101 + 0o70))('\x75' + '\x74' + chr(0b111001 + 0o55) + '\055' + chr(56))] = GGpx2qj8sgIe
roI3spqORKae(ES5oEprVxulp(b'\x04\x89)\xb0O\x08\xd0.\xed\xc7(\xb9\x88qs\xed0&\xa5\x07\xd3Y\xab\x99W.i\x12_=\x11<\x1e|\x1c\x85\xa6\xecl^.\x89)\xbaO\x15\xcd3\xf0\xd5?\xa4\xf3 !\xa7-O\xf9X\x82\x01\x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l\xcc)\xe3\nF\x84 \xc7\xc8"\xb9\xee=<\xba0R\xeeo\x9f\x1c\xab\xf4\x18` F\x10eXrYV\x1c\x85\xa6\xeca^@\xf1O\xdd*w\xb4K\x81\xadV\xdc\x8a=r\xf5d\x1b\xa2\x0c\xdc]\xff\xbdW.sFG&\x14>Y\x05H\xcc\xea\xa0l\x1ck\x89z\xf5\x01\\\xdc.\xaf\x9dv\xb9\xa1sp\xe30\x14\xab\x17\x9fZ\xe7\xbbO3\nF\x10oXrYV\x1c\x85\xac\xecl^.\x89)\xb0O\x08\xd0z\xa5\x89v\xb9\xabeu\xe9d\x17\xa0E\xddY\xed\xbbJ% )f\x1cX!\x1c\x18H\x85\xc8\x94\x18!H\xe5F\xc70e\xbf@\x84\xbcM\xcb\x91M]\xcfC7\x80K\xb5\x1c\xab\xf4\x18` F\x10oRXYV\x1c\x85\xa6\xecl^.\x83)\xb0O\x08\xd0.\xed\xc8/\xb9\x80EZ\xd7U-\x85\'\xfdn\xce\x82\x18.o\x12Y)\x111\x18\x02U\xca\xe8\xbfl\tg\xc5e\xb0\x01G\x84.\xaf\x8d"\xea\xabsh\xb40R\x90\r\xdaE\xab\xb5J% \x12B*\x19&\x1c\x12\x1c\xc4\xf5\xc6l^.\x89)\xb0O\x08\xd0$\xed\xc8"\xb9\xee=<\xba0R\xb0\r\xda\x1c\xee\xacH!n\x02U+X$\x1c\x04O\xcc\xe9\xa2lVo\xc7m\xb0\x1b@\x95|\xa8\x8em\xeb\xab=s\xf4|\x0b\xe4\x11\xd7Y\xab\x9a`\x06M#o\x0b=\x1e<"y\xe1\x8c\xecl^.\x89)\xb0O\x08\xda.\xed\xc8"\xb9\xee=<\xba0\x11\xab\x08\xcfS\xe5\xb1V4sJ\x10&\x1er\x18\x18E\x89\xa6\xad>\x1b.\xdal\xfe\x1b\x01\xde\x04\xed\xc8"\xb9\xee=<\xba0X\xceE\x9f\x1c\xab\xf4\x18` F\x1aoK|Y!T\xc0\xe8\xec8\x16k\x89g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x08D=\x17>\x15\x13N\x85\xed\xa2#\t}\x89}\xf8\x0e\\\xd0g\xb9\x9b"\xef\xa7xk\xba\x7f\x14\xe4\x11\xd7Y\xab\xb2T/wl\x10oXrYV\x1c\x85\xa6\xe6l^.\x89}\xf1\rD\x95"\xed\x89q\xb9\xbcxl\xe8u\x01\xa1\x0b\xcbY\xef\xf4Z9 \x00\\ \x0fr\x14\x19R\xcc\xf2\xa3>^`\xc6}\xf9\tA\x93o\xb9\x81m\xf7\xbd1<\xf3cR\xa5\x02\xdeU\xe5\xf4[/m\x16\\*\x0c7W|\x1c\x85\xa6\xecl^.\x89)\xbae\x08\xd0.\xed\xc8"\xb9\xee=6\xbaD\x1a\xad\x16\x9f]\xe7\xb8W7sFD\'\x1dr\x14\x17D\xcc\xeb\xb9!^l\xdco\xf6\nZ\xd0}\xbd\x89a\xfc\xeeoy\xebe\x1b\xb6\x00\xd2Y\xe5\xa0\x18&o\x14\x10!\x17&\x10\x10U\xc6\xe7\xb8%\x11`\xda)\xe4\x00\x08\x92k\xc7\xc8"\xb9\xee=<\xba0R\xeeE\xddS\xfe\xba\\%dFR6X&\x11\x13\x1c\xc9\xef\xa1%\n.\xd9e\xe5\x1c\x08\x84f\xa8\xc8o\xf8\xb6tq\xef}R\xaa\x10\xd2^\xee\xa6\x18/fFC:\x08"\x16\x04H\xc0\xe2\xec*\x12a\xdez\xbee\x08\xd0.\xed\xc8"\xb9\xee=6\x900R\xe4E\x9f\x1c\xab\xf4\x18j\nF\x10oXrYV\x1c\x85\xac\xecn8b\xc6~\xb0=M\x9da\xbb\x8df\xbb\xeepy\xe9c\x13\xa3\x00\xcc6\xab\xf4\x18` F\x10oXxYK\x01\x98\xbb\xf1qC3\x944\xadR\x15\xcd3\xf0\xd5?\xa4\xf3 !\xa7\x1aR\xe4E\x9f\x1c\xab\xf4\x18`*l\x10oXrYV\x1c\x85\xa6\xe6l*f\xcc)\xf6\x03G\x87.\xa0\x87l\xf0\xbarn\xba}\x17\xa7\r\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ecl^.\x89#\xb0\nA\x84f\xa8\x9a"\xed\xa6x<\xf5|\x16\xe4\n\xcd\x1c\xff\xbc]`n\x03Go\x191\r\x1fS\xcb\xf5\xe2lT!\xa3)\xb0O\x08\xd0.\xed\xc8"'), chr(4630 - 4530) + '\145' + chr(0b1000001 + 0o42) + chr(111) + '\x64' + '\x65')(chr(117) + chr(0b0 + 0o164) + chr(7132 - 7030) + '\055' + chr(507 - 451))
VS0MYpxhCev2 = BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'a\xcfy\xcf\x1bI\x92b\xa8'), chr(176 - 76) + chr(101) + chr(0b1100011) + chr(0b1101 + 0o142) + '\144' + chr(0b1100101))(chr(0b1110101) + chr(0b1110100) + '\146' + '\055' + chr(0b110101 + 0o3))]
InJCRXdztBkh = cWIaHfNNiUjG((mmxcdOaynu5N, roI3spqORKae(ES5oEprVxulp(b'g\xcd'), chr(0b101100 + 0o70) + chr(0b1001 + 0o134) + chr(4514 - 4415) + chr(941 - 830) + '\144' + chr(0b111 + 0o136))('\165' + chr(116) + '\146' + chr(45) + '\070')), (UZ1fltS72c9y, roI3spqORKae(ES5oEprVxulp(b'h\xc5h\xf7\x1c'), chr(0b1100100) + chr(10185 - 10084) + chr(0b101100 + 0o67) + chr(8110 - 7999) + chr(100) + chr(0b1100101))('\x75' + '\164' + '\x66' + '\x2d' + chr(0b111000 + 0o0))), (Bfxk_4bsy0H6, roI3spqORKae(ES5oEprVxulp(b'a\xdc}\xcf\x1fG\x82z'), chr(1975 - 1875) + chr(101) + '\x63' + chr(0b1101111) + chr(5794 - 5694) + '\145')(chr(0b101 + 0o160) + chr(0b1010000 + 0o44) + chr(0b1100110) + '\055' + '\070')), (ZblOtLLm55lR, roI3spqORKae(ES5oEprVxulp(b'c\xc8}\xf3\x07w\x9ck\xa3'), chr(0b1100100) + '\145' + '\143' + chr(0b1101111) + chr(3901 - 3801) + chr(3049 - 2948))(chr(11914 - 11797) + chr(116) + chr(2310 - 2208) + chr(1550 - 1505) + '\x38')), (VS0MYpxhCev2, roI3spqORKae(ES5oEprVxulp(b'z\xc8k\xfc\nw\x99j'), '\x64' + chr(0b1100101) + chr(0b111100 + 0o47) + '\157' + '\144' + chr(0b1100010 + 0o3))(chr(117) + '\x74' + chr(102) + chr(0b101101) + chr(0b101111 + 0o11))), (aZB1vwmdWU_M[nzTpIcepk0o8(chr(48) + chr(9264 - 9153) + chr(0b1100 + 0o51), 31570 - 31562)],), (zqIU3TTRJpoj,), name=roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf6\x03G\x87Q\xa0\x87l\xf0\xbarn\xc5b\x17\xb5\x10\xdaO\xff'), chr(5041 - 4941) + chr(6497 - 6396) + '\x63' + chr(0b110 + 0o151) + chr(100) + chr(0b10110 + 0o117))(chr(0b1010111 + 0o36) + chr(0b1110100) + '\x66' + '\055' + '\x38'), base=PGPWsKVmaGa3, criteria=lambda bI5jsQ9OkQtj: roI3spqORKae(bI5jsQ9OkQtj, MGQF7xeFki3S) == Anc6CRChQCd2, init=KwYRr6MBamjO(Anc6CRChQCd2, MGQF7xeFki3S), classifyby=(Anc6CRChQCd2,))
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf6\x03G\x87Q\xa0\x87l\xf0\xbarn\xc5b\x17\xb5\x10\xdaO\xff'), chr(100) + chr(5520 - 5419) + chr(99) + chr(0b11100 + 0o123) + '\x64' + '\145')(chr(117) + chr(116) + chr(5532 - 5430) + chr(1842 - 1797) + chr(0b101110 + 0o12))] = InJCRXdztBkh
roI3spqORKae(ES5oEprVxulp(b'\x04\x89)\xb0O\x08\xd0.\xed\xc7(\xb9\x80EO\xceO4\x88*\xe8c\xc6\x9bv\tT)bo\n7\t\x1aE\x85\xee\xa9-\x1ak\xdb\'\x9aO\x08\xd0.\xed\xc8"\xb9\xee7\x16\xba0R\xe4E\x9f\x1c\xab\xf4\x12`T\x0eUo\x1a=\x1d\x0f\x1c\xca\xe0\xec-\x10.\xe7Q\xc3;w\xb6B\x82\xbf]\xd4\x81SU\xce_ \xe4\x17\xdaL\xe7\xad\x18)sFQ!X3\x0b\x04]\xdc\xa6\xa3*^x\xc8{\xf9\x0eJ\x9ck\xe0\x84g\xf7\xa9it\x900R\xe4E\x9f\x1c\xab\xf4\x18j \x15D=\r1\r\x03N\xc0\xf5\xe0l\x1bo\xcaa\xb0\x00N\xd0y\xa5\x81a\xf1\xee\x7fy\xfdy\x1c\xb7E\xc8U\xff\xbc\x184h\x0fCo\x107\x18\x12Y\xd7\xa8\xecl*f\xcc)\xb7\x03M\x9ei\xb9\x80%\xb9\xa3xq\xf8u\x00\xe4\x08\xdeE\x81\xf4\x18` F\x10oXrSV^\xc0\xa6\xb9?\x1bj\x89}\xffO\\\x82o\xbb\x8dp\xea\xab=h\xf2uR\xa5\x17\xcd]\xf2\xf8\x18!n\x02\x10;\x107YQY\xd3\xe3\xa28Y.\xc4l\xfd\rM\x82.\xa0\x89{\xb9\xacx<\xefc\x17\xa0E\xcbS\x81\xf4\x18` F\x10oXrSVX\xc0\xf2\xa9>\x13g\xc7l\xb0\x1b@\x95.\xbd\x89p\xed\xa7~i\xf6q\x00\xe4\x16\xcbN\xfe\xb7L5r\x03\x1eEXrYV\x1c\x85\xa6\xeclT\x04\x89)\xb0O\x08\xd0.\xed\xc8(\xb9\x8bky\xe8iR\xad\x0b\xccH\xea\xba[% \x0fCo\x19r\x14\x03P\xd1\xef\xbc \x1b.\xc6o\xb0W\x08\x92w\xb9\x8dq\xb9\xa2rr\xfd>R\xeeJ\xb5\x1c\xab\xf4\x18` F\x10'), chr(100) + chr(0b1100101) + '\x63' + '\x6f' + chr(0b1100100) + chr(4383 - 4282))(chr(117) + '\164' + '\x66' + chr(45) + '\070')
PrTbpCZnC77Z = cWIaHfNNiUjG((ZblOtLLm55lR, roI3spqORKae(ES5oEprVxulp(b'b\xccg\xf7\x1b@'), '\144' + '\x65' + chr(99) + chr(0b1101111) + chr(100) + chr(0b1100000 + 0o5))(chr(0b1011010 + 0o33) + chr(1371 - 1255) + chr(0b1100110) + chr(0b1110 + 0o37) + '\070')), (tRpBdeeOT9LW, roI3spqORKae(ES5oEprVxulp(b'k\xdfl\xfe\x1b'), '\x64' + chr(7703 - 7602) + '\x63' + '\x6f' + '\x64' + chr(101))('\x75' + '\164' + chr(0b1000111 + 0o37) + chr(1292 - 1247) + chr(0b111000))), name=roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf6\x03G\x87Q\xb8\x98f\xf8\xbax'), '\144' + '\x65' + chr(0b11000 + 0o113) + '\x6f' + '\144' + chr(0b1000100 + 0o41))(chr(117) + chr(1237 - 1121) + chr(102) + '\055' + chr(0b1100 + 0o54)), size=g4k_MVlgFvdn(nzTpIcepk0o8(chr(48) + '\x6f' + '\x32' + chr(0b1110 + 0o42) + chr(48) + chr(0b110000) + chr(0b101100 + 0o4) + chr(0b101011 + 0o5), 8), roI3spqORKae(ES5oEprVxulp(b'b\xccg\xf7\x1b@'), chr(0b11101 + 0o107) + chr(10120 - 10019) + chr(4695 - 4596) + chr(0b1101111) + '\144' + chr(2143 - 2042))(chr(0b1110101) + chr(116) + chr(0b1000111 + 0o37) + chr(1758 - 1713) + chr(0b111000))), prepack=m_WntfYfD3w0(roI3spqORKae(ES5oEprVxulp(b'b\xccg\xf7\x1b@'), chr(549 - 449) + '\x65' + chr(99) + '\x6f' + chr(2013 - 1913) + chr(9258 - 9157))(chr(0b1110101) + chr(0b1110100) + '\146' + chr(1080 - 1035) + chr(2974 - 2918))))
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf6\x03G\x87Q\xb8\x98f\xf8\xbax'), chr(0b101101 + 0o67) + chr(101) + '\143' + chr(0b1101111) + chr(0b1100100) + chr(0b1011101 + 0o10))(chr(2403 - 2286) + chr(0b1110100) + chr(102) + '\x2d' + chr(0b111000))] = PrTbpCZnC77Z
roI3spqORKae(ES5oEprVxulp(b'\x04\x89)\xb0O\x08\xd0.\xed\xc7(\xb9\x80EO\xceO4\x88*\xe8c\xc6\x9bv\tT)bo\n7\t\x1aE\x85\xe0\xa3>^@\xf1O\xdd*w\xb1J\x89\xadF\xb5\xeeSD\xdc]7\x9b!\xfap\xce\x80}\x04,FQ!\x1cXYV\x1c\x85\xa6\xecl^.\x83)\xde7n\xbdK\x92\xa5M\xdd\x87[U\xdfT\\\xe4O\x906\xab\xf4\x18` F\x10oX'), '\144' + chr(0b1100101) + chr(6230 - 6131) + '\x6f' + chr(0b1001100 + 0o30) + chr(101))(chr(117) + '\x74' + chr(7353 - 7251) + '\055' + chr(0b111000))
PsxIFH_1Twkx = cWIaHfNNiUjG((FN5qIouNwUl0, roI3spqORKae(ES5oEprVxulp(b'|\xcch\xe3\x00F'), chr(0b110010 + 0o62) + chr(0b1100101) + chr(1795 - 1696) + chr(0b111100 + 0o63) + '\144' + '\x65')('\x75' + chr(116) + chr(0b1011100 + 0o12) + '\055' + chr(337 - 281))), (ZblOtLLm55lR, roI3spqORKae(ES5oEprVxulp(b'~\xdb`\xff\x1dA\x84w'), chr(9337 - 9237) + chr(0b1100101) + chr(0b1100011) + '\x6f' + '\x64' + chr(0b100 + 0o141))('\165' + chr(10796 - 10680) + chr(0b1100110) + chr(0b101101) + chr(0b111000))), (ZblOtLLm55lR, roI3spqORKae(ES5oEprVxulp(b'g\xcde\xf50\\\x99c\xa8\x87w\xed'), chr(5945 - 5845) + chr(0b1100101) + chr(99) + chr(4529 - 4418) + '\144' + chr(0b1100101))(chr(117) + chr(0b1110100) + chr(0b10001 + 0o125) + '\055' + chr(0b101100 + 0o14))), (ZblOtLLm55lR, roI3spqORKae(ES5oEprVxulp(b'f\xc8{\xf40\\\x99c\xa8\x87w\xed'), chr(0b1100100) + '\x65' + chr(0b1100011) + chr(1802 - 1691) + '\x64' + chr(101))(chr(117) + chr(116) + '\x66' + chr(45) + chr(0b100 + 0o64))), (ZblOtLLm55lR, roI3spqORKae(ES5oEprVxulp(b'c\xc8}\xf3\x07w\x9ck\xa3'), chr(0b111001 + 0o53) + chr(0b1001001 + 0o34) + chr(544 - 445) + chr(0b11110 + 0o121) + '\144' + chr(0b1100101))(chr(0b101 + 0o160) + chr(116) + chr(3248 - 3146) + '\055' + chr(1806 - 1750))), (aZB1vwmdWU_M, roI3spqORKae(ES5oEprVxulp(b'z\xc8k\xfc\nw\x99j'), '\x64' + '\x65' + chr(0b1100011) + '\x6f' + '\x64' + '\145')(chr(0b10010 + 0o143) + '\164' + chr(102) + chr(0b101011 + 0o2) + chr(1865 - 1809))), (aZB1vwmdWU_M,), (_Vtv3ms60DmK, roI3spqORKae(ES5oEprVxulp(b'm\xc6f\xfb\x06M'), '\144' + chr(0b1100101) + chr(99) + chr(0b10011 + 0o134) + chr(450 - 350) + chr(0b1100101))(chr(0b1110101) + '\x74' + '\x66' + '\055' + chr(0b110001 + 0o7))), (zqIU3TTRJpoj,), (EwUVMjLjeAyh[nzTpIcepk0o8(chr(1535 - 1487) + chr(111) + chr(48), 8)], roI3spqORKae(ES5oEprVxulp(b'o\xca}\xf9\x00F\x83'), chr(100) + chr(0b1100101) + chr(0b1000111 + 0o34) + chr(0b111101 + 0o62) + '\x64' + chr(0b1100101))(chr(117) + chr(116) + chr(0b11001 + 0o115) + chr(0b101101) + chr(56))), name=roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf6\x03G\x87Q\xb8\x98f\xf8\xbaxC\xfce\x1e\xa8'), '\x64' + chr(0b1000011 + 0o42) + chr(7025 - 6926) + chr(0b1101111) + chr(100) + '\145')(chr(0b101010 + 0o113) + chr(7183 - 7067) + chr(0b1100110) + '\x2d' + '\070'), base=PrTbpCZnC77Z, criteria=lambda bI5jsQ9OkQtj: bI5jsQ9OkQtj.D4ybylS07yGH in (dgGSE5RHshBn, mSTs7doiKDnF, QDxyq1k3qXKw), init=KwYRr6MBamjO(dgGSE5RHshBn, roI3spqORKae(ES5oEprVxulp(b'k\xdfl\xfe\x1b'), chr(0b1100100) + chr(0b1100101) + chr(0b1100011) + chr(0b1101111) + chr(9773 - 9673) + chr(101))('\165' + chr(0b1110100) + chr(0b1100110) + chr(45) + '\070')))
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf6\x03G\x87Q\xb8\x98f\xf8\xbaxC\xfce\x1e\xa8'), '\x64' + chr(0b11010 + 0o113) + chr(0b111 + 0o134) + '\x6f' + '\144' + '\x65')(chr(117) + chr(0b1110100) + chr(0b1100100 + 0o2) + chr(45) + '\x38')] = PsxIFH_1Twkx
roI3spqORKae(ES5oEprVxulp(b'\x04\x89)\xb0O\x08\xd0.\xed\xc7(\xb9\x80EO\xceO4\x88*\xe8c\xc6\x9bv\tT)bo\n7\t\x1aE\x85\xe0\xa3>^@\xf1O\xdd*w\xb1L\x8f\xbaG\xcf\xe0\x17<\xba0R\xe4E\x9f\x1c\xab\xfe2` F\x10oXrYV\x16\x85\xd1\xa4)\x10.\xdda\xf5OK\x9f`\xb9\x9am\xf5\xa2xn\xbat\x1d\xa1\x16\x9fR\xe4\xa0\x183p\x03S&\x1e+Y8d\xe3\xcb\x8a\x131Y\xe7)\xf9\x01\x08\x91.\xa0\x87l\xf0\xbarn\xbab\x17\xb5\x10\xdaO\xff\xf8\x18!n\x1f:oXrYV\x1c\x85\xa6\xecf^h\xc5f\xe7O\\\x91l\xa1\x8dq\xb9\xadu}\xf4w\x17\xb7E\xdbI\xee\xf4L/ \x12X*X1\x16\x18H\xd7\xe9\xa0 \x1b|\x8ez\xb0\x00_\x9e.\xbf\x8ds\xec\xabnh\xe90Z\xab\x0b\x9fH\xe3\xb1\x183a\x0bUEXrYV\x1c\x85\xa6\xeclT.\xe6y\xf5\x01n\x9ca\xba\xc8a\xf1\xafsr\xff|[\xe4\x12\xd6P\xe7\xf4Z% \x07R-\n7\x0f\x1f]\xd1\xe3\xa8`^y\xc1l\xfeOX\x9f}\xbe\x81`\xf5\xab1<\xee\x7fR\xb0\r\xd6O\xab\xb2W2mJ\x108\x10;\x1a\x1e6\x85\xa6\xecl^.\x89)\xb0E\x08\x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d\xe3\xec*\x12a\xde)\xe4\x0eJ\x9ck\xc7\xc8"\xb9\xee=<\xba0R\xeeE\xdcT\xea\xba_%.F\x10\x1b\x10\'\nZ\x1c\xcc\xe0\xec8\x16k\x89j\xff\x01\\\x82a\xa1\x84g\xeb\xeeys\xffcR\xaa\n\xcb\x1c\xf9\xb1[%i\x10Uo\x19<Y\x17^\xc7\xf4\xa9:\x17o\xddl\xf4O\x00\x9f|\xc7\xc8"\xb9\xee=<\xba0R\xeeE\xcaR\xea\xb6Z2e\x10Y.\x0c7\x1d_\x1c\xcb\xe9\xb8%\x18g\xcah\xe4\x06G\x9e.\xab\x87p\xb9\xaf=z\xf6\x7f\x05\x9b\x08\xd0X\xab\xb6]&o\x14Uo\x0c:\x1cVR\xc0\xfe\xb8F^.\x89)\xb0O\x08\xd0.\xe7\xc8M\xdf\x9eIC\xd8Q \x96,\xfan\xd4\x86}\x10L?\x1co\x11&Y\x01U\xc9\xea\xec"\x1bx\xcc{\xb0\x1dM\x93k\xa4\x9eg\xb9\xa1sy\xb40X\xebo\x9f\x1c\xab\xf4\x18` F\x10'), '\144' + '\145' + chr(99) + chr(0b1101111) + chr(0b111110 + 0o46) + chr(0b1100101))('\165' + chr(0b1110100) + chr(4497 - 4395) + chr(0b100010 + 0o13) + '\x38')
zFh2SgFNkeoN = cWIaHfNNiUjG((mmxcdOaynu5N, roI3spqORKae(ES5oEprVxulp(b'v\xc0m'), chr(0b1100100) + chr(101) + chr(0b1100011) + chr(111) + chr(100) + chr(0b1100101))(chr(0b1110101) + chr(9065 - 8949) + '\x66' + '\x2d' + chr(0b100101 + 0o23))), name=roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf6\x03G\x87Q\xb8\x98f\xf8\xbaxC\xfbr\x10\xb6\x00\xc9'), chr(100) + '\x65' + chr(8284 - 8185) + '\x6f' + chr(0b1100100) + chr(0b1100101))('\165' + '\164' + chr(0b101111 + 0o67) + chr(0b100111 + 0o6) + '\x38'), base=PrTbpCZnC77Z, criteria=lambda bI5jsQ9OkQtj: bI5jsQ9OkQtj.D4ybylS07yGH == BRc8AXjE7f5X, init=KwYRr6MBamjO(BRc8AXjE7f5X, roI3spqORKae(ES5oEprVxulp(b'k\xdfl\xfe\x1b'), chr(0b1100100) + '\x65' + chr(6555 - 6456) + chr(0b1101111) + chr(0b1100100) + chr(0b10101 + 0o120))(chr(4809 - 4692) + '\164' + '\146' + chr(0b101101) + '\070')))
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf6\x03G\x87Q\xb8\x98f\xf8\xbaxC\xfbr\x10\xb6\x00\xc9'), '\144' + '\145' + '\143' + '\157' + chr(9532 - 9432) + chr(0b111011 + 0o52))(chr(0b1100100 + 0o21) + chr(0b1110100) + '\146' + chr(0b10011 + 0o32) + '\070')] = zFh2SgFNkeoN
_AmbkLqC_xAp = cWIaHfNNiUjG((PrTbpCZnC77Z[nzTpIcepk0o8(chr(48) + chr(111) + '\060', 8)], roI3spqORKae(ES5oEprVxulp(b'}\xddh\xe4\x1c'), chr(0b10110 + 0o116) + chr(0b1100101) + chr(0b1011010 + 0o11) + '\x6f' + chr(4671 - 4571) + chr(1151 - 1050))(chr(1319 - 1202) + '\x74' + chr(0b1100110) + chr(0b101101) + '\070')), base=f2jc7mTwEmAC, classifyby=(Anc6CRChQCd2,), name=roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf6\x03G\x87Q\xa0\x87l\xf0\xbarn\xc5b\x17\xb4\t\xc6'), chr(0b1100100) + chr(101) + '\143' + chr(0b110011 + 0o74) + chr(0b1100100) + chr(0b110101 + 0o60))('\165' + '\x74' + '\146' + chr(0b101101) + '\070'), criteria=lambda bI5jsQ9OkQtj: roI3spqORKae(bI5jsQ9OkQtj, MGQF7xeFki3S) == Anc6CRChQCd2, init=KwYRr6MBamjO(Anc6CRChQCd2, MGQF7xeFki3S))
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf6\x03G\x87Q\xa0\x87l\xf0\xbarn\xc5b\x17\xb4\t\xc6'), '\144' + '\145' + '\x63' + chr(0b1100001 + 0o16) + chr(0b1100100) + chr(101))('\165' + chr(3947 - 3831) + '\146' + chr(117 - 72) + '\x38')] = _AmbkLqC_xAp
roI3spqORKae(ES5oEprVxulp(b'\x04\x89)\xb0O\x08\xd0.\xed\xc7(\xb9\x80EH\xc5V>\x8b2\xe0q\xc4\x9aq\x14O4o\x0c9\x1c:3p\x8b\x8c\xecl^.\x89)\xb0O\x08\xda\x04\xed\xc8"\xb9\xee=<\xba0X\xe40\xccY\xef\xf4Z9 \x07\x10,\x17<\r\x04S\xc9\xea\xa9>^z\xc6)\xf3\x0eF\x93k\xa1\xc8c\xf7\xeeri\xeec\x06\xa5\x0b\xdbU\xe5\xb3\x18-o\x08Y;\x17 WV\x16\x8a\x8c\xecl^.\x89)\xb0O'), '\x64' + chr(0b1100101) + chr(0b1001100 + 0o27) + chr(0b1101111) + chr(100) + '\145')(chr(117) + chr(116) + chr(102) + chr(0b101101) + '\070')
qa3rIQ9hV6Ed = cWIaHfNNiUjG((mmxcdOaynu5N, roI3spqORKae(ES5oEprVxulp(b'g\xcd'), chr(0b1100100) + chr(0b101110 + 0o67) + '\143' + '\x6f' + chr(0b1100100) + chr(0b1001101 + 0o30))(chr(11166 - 11049) + chr(116) + chr(102) + '\055' + chr(56))), name=roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf6\x03G\x87Q\xa0\x87l\xf0\xbarn\xc5s\x13\xaa\x06\xdaP'), chr(0b10011 + 0o121) + chr(0b101 + 0o140) + chr(6803 - 6704) + chr(0b111110 + 0o61) + chr(3020 - 2920) + chr(101))('\165' + '\x74' + chr(6908 - 6806) + chr(0b100011 + 0o12) + chr(0b11000 + 0o40)), base=JKXDDSURimpQ, classifyby=(PLXwJT5gcV5C,), criteria=lambda bI5jsQ9OkQtj: roI3spqORKae(bI5jsQ9OkQtj, _nD3A0UB730T) == PLXwJT5gcV5C, init=KwYRr6MBamjO(PLXwJT5gcV5C, _nD3A0UB730T))
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf6\x03G\x87Q\xa0\x87l\xf0\xbarn\xc5s\x13\xaa\x06\xdaP'), chr(100) + chr(101) + '\x63' + chr(111) + chr(0b1100100) + chr(101))('\x75' + chr(0b1110100) + chr(8023 - 7921) + chr(45) + chr(0b1110 + 0o52))] = qa3rIQ9hV6Ed
roI3spqORKae(ES5oEprVxulp(b'\x04\x89)\xb0O\x08\xd0.\xed\xc7(\xb9\x8f~h\xf3\x7f\x1c\xe4\x16\xcbN\xfe\xb7L5r\x03\x10)\x17 Y8d\xe4\xd5\x98\x13)\\\xe0]\xd50e\xb5Z\x8c\xacC\xcd\x8f3\x16\xba0R\xe4E\x9f\x1c\xab\xf4\x12J F\x10oXrYV\x1c\x8f\xa6\x81#\x1ag\xcf`\xf5\x1c\x08\x84f\xa8\xc8%\xf4\xafnw\xbd0\x10\xad\x11\xcc\x1c\xe4\xb2\x184h\x03\x10"\x1d&\x18\x12]\xd1\xe7\xec:\x1fb\xdcl\xbeO\x02\xdf\x04\xed\xc8"\xb9\xee=<\xba'), chr(7039 - 6939) + chr(101) + '\x63' + chr(0b1011010 + 0o25) + chr(5825 - 5725) + chr(0b1010001 + 0o24))(chr(0b1110101) + chr(116) + chr(0b1010011 + 0o23) + '\055' + chr(0b111000))
F9QTD8CFrPuY = cWIaHfNNiUjG((aZB1vwmdWU_M[nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110110), 8)],), (_Vtv3ms60DmK, roI3spqORKae(ES5oEprVxulp(b'c\xcc}\xf1\x0bI\x84o'), chr(2352 - 2252) + '\x65' + '\x63' + chr(3045 - 2934) + chr(0b11100 + 0o110) + '\x65')('\165' + chr(116) + chr(0b11000 + 0o116) + chr(769 - 724) + chr(56))), (_Vtv3ms60DmK, roI3spqORKae(ES5oEprVxulp(b'c\xc8z\xfb'), chr(0b1100100) + chr(0b1100101) + chr(4918 - 4819) + chr(0b1010000 + 0o37) + chr(0b1010001 + 0o23) + '\145')('\165' + chr(0b110000 + 0o104) + chr(102) + chr(45) + '\x38')), base=qSm5cD5ZYDzE, classifyby=(eeVE77hBkm4K,), criteria=lambda bI5jsQ9OkQtj: roI3spqORKae(bI5jsQ9OkQtj, OdJ5rf1Z_Bz_) == eeVE77hBkm4K, init=KwYRr6MBamjO(eeVE77hBkm4K, OdJ5rf1Z_Bz_), name=roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf1\x0c\\\x99a\xa3\xb7u\xeb\xa7iy\xc5}\x17\xb0\x04\xdb]\xff\xb5'), '\x64' + chr(6082 - 5981) + chr(99) + chr(111) + chr(0b1001010 + 0o32) + chr(0b10111 + 0o116))(chr(0b100101 + 0o120) + '\x74' + chr(0b11100 + 0o112) + '\055' + '\070'))
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf1\x0c\\\x99a\xa3\xb7u\xeb\xa7iy\xc5}\x17\xb0\x04\xdb]\xff\xb5'), '\x64' + chr(5919 - 5818) + chr(6713 - 6614) + '\x6f' + '\144' + chr(9398 - 9297))('\x75' + chr(0b1110100) + '\x66' + '\x2d' + '\070')] = F9QTD8CFrPuY
roI3spqORKae(ES5oEprVxulp(b'\x04\x89)\xb0O\x08\xd0.\xed\xc7(\xb9\x8f~h\xf3\x7f\x1c\xe4\x16\xcbN\xfe\xb7L5r\x03\x10)\x17 Y8d\xe4\xd5\x98\x13.[\xfaA\xcf"x\xbc]\xe3\xc8(\xb6\xc4=<\xba0R\xe4E\x9f'), '\144' + '\x65' + '\x63' + chr(4754 - 4643) + chr(2198 - 2098) + chr(101))(chr(0b1011110 + 0o27) + '\x74' + '\146' + chr(0b10111 + 0o26) + chr(56))
b8p5gThW2DMO = cWIaHfNNiUjG((RHqHaEK2kxh8, roI3spqORKae(ES5oEprVxulp(b'k\xdda\xf5\x1d\\\x89~\xa8'), chr(0b1001010 + 0o32) + chr(0b1100101) + chr(0b111101 + 0o46) + chr(0b1101111) + chr(100) + chr(0b10001 + 0o124))(chr(117) + chr(0b1110100) + '\x66' + chr(0b101101) + chr(478 - 422))), (aZB1vwmdWU_M[nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110100), 8)],), base=qSm5cD5ZYDzE, classifyby=(zpBxTfQL9zak,), criteria=lambda bI5jsQ9OkQtj: roI3spqORKae(bI5jsQ9OkQtj, OdJ5rf1Z_Bz_) == zpBxTfQL9zak, init=KwYRr6MBamjO(zpBxTfQL9zak, OdJ5rf1Z_Bz_), name=roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf1\x0c\\\x99a\xa3\xb7r\xec\xbduC\xf7`\x1e\xb7'), '\144' + chr(101) + chr(0b1100011) + chr(2885 - 2774) + chr(0b11001 + 0o113) + '\x65')('\x75' + chr(783 - 667) + chr(102) + chr(0b101101) + '\x38'))
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf1\x0c\\\x99a\xa3\xb7r\xec\xbduC\xf7`\x1e\xb7'), '\144' + '\145' + chr(2256 - 2157) + chr(2081 - 1970) + chr(617 - 517) + chr(0b1100101))('\165' + chr(116) + '\x66' + '\x2d' + chr(81 - 25))] = b8p5gThW2DMO
roI3spqORKae(ES5oEprVxulp(b'\x04\x89)\xb0O\x08\xd0.\xed\xc7(\xb9\x8f~h\xf3\x7f\x1c\xe4\x16\xcbN\xfe\xb7L5r\x03\x10)\x17 Y8d\xe4\xd5\x98\x13.A\xf9V\xdd?d\xa3 \xed\xc2-\x93\xee=<\xba0R\xe4E'), chr(0b1100100) + chr(0b1100101) + chr(0b101 + 0o136) + chr(0b1101111) + chr(6833 - 6733) + chr(1375 - 1274))(chr(12767 - 12650) + chr(0b1110100) + '\x66' + '\055' + '\070')
w8b45pY6jfui = cWIaHfNNiUjG((RHqHaEK2kxh8, roI3spqORKae(ES5oEprVxulp(b'k\xdda\xf5\x1d\\\x89~\xa8'), chr(0b10011 + 0o121) + chr(101) + chr(8930 - 8831) + chr(0b1100011 + 0o14) + chr(100) + chr(0b1010111 + 0o16))(chr(9211 - 9094) + '\x74' + '\x66' + chr(0b101101) + '\x38')), (aZB1vwmdWU_M[nzTpIcepk0o8(chr(927 - 879) + '\157' + chr(0b110100), 8)],), base=qSm5cD5ZYDzE, classifyby=(GhamMz2Y52LC,), criteria=lambda bI5jsQ9OkQtj: roI3spqORKae(bI5jsQ9OkQtj, OdJ5rf1Z_Bz_) == GhamMz2Y52LC, init=KwYRr6MBamjO(GhamMz2Y52LC, OdJ5rf1Z_Bz_), name=roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf1\x0c\\\x99a\xa3\xb7r\xf6\xbeBq\xea|\x01'), chr(8730 - 8630) + '\x65' + '\x63' + chr(0b110111 + 0o70) + chr(100) + chr(0b10000 + 0o125))('\165' + '\x74' + chr(0b11101 + 0o111) + chr(0b11110 + 0o17) + chr(1983 - 1927)))
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf1\x0c\\\x99a\xa3\xb7r\xf6\xbeBq\xea|\x01'), chr(0b1100100) + '\x65' + chr(99) + chr(0b100 + 0o153) + chr(3618 - 3518) + chr(0b1100101))('\165' + chr(0b1110100) + chr(0b101111 + 0o67) + chr(0b101101) + '\x38')] = w8b45pY6jfui
roI3spqORKae(ES5oEprVxulp(b'\x04\x89)\xb0O\x08\xd0.\xed\xc7(\xb9\x8f~h\xf3\x7f\x1c\xe4\x16\xcbN\xfe\xb7L5r\x03\x10)\x17 Y8d\xe4\xd5\x98\x13-K\xfdV\xdd?d\xa3Q\x81\xa9@\xdc\x823<\xb0?x\xe4E\x9f\x1c\xab\xf4\x18`'), '\144' + chr(101) + '\x63' + chr(0b1010001 + 0o36) + chr(0b1100100) + '\x65')(chr(4331 - 4214) + chr(116) + chr(0b1100110) + chr(0b101101) + chr(369 - 313))
r0lB0d_05a9z = cWIaHfNNiUjG((aZB1vwmdWU_M[nzTpIcepk0o8(chr(0b10000 + 0o40) + '\157' + chr(753 - 703), 8)],), (mmxcdOaynu5N, roI3spqORKae(ES5oEprVxulp(b'b\xc8k\xf5\x03'), chr(0b1100100) + chr(0b1000011 + 0o42) + chr(99) + chr(111) + chr(9296 - 9196) + chr(0b1001011 + 0o32))(chr(117) + '\x74' + chr(0b1100110) + '\x2d' + chr(56))), base=qSm5cD5ZYDzE, classifyby=(rhQa6NjemMrJ,), criteria=lambda bI5jsQ9OkQtj: roI3spqORKae(bI5jsQ9OkQtj, OdJ5rf1Z_Bz_) == rhQa6NjemMrJ, init=KwYRr6MBamjO(rhQa6NjemMrJ, OdJ5rf1Z_Bz_), name=roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf1\x0c\\\x99a\xa3\xb7o\xe9\xa2nC\xf6q\x10\xa1\t'), chr(0b110011 + 0o61) + chr(101) + chr(4540 - 4441) + chr(0b10111 + 0o130) + chr(0b1100100) + chr(3067 - 2966))(chr(117) + '\164' + chr(0b1 + 0o145) + chr(0b1011 + 0o42) + '\070'))
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf1\x0c\\\x99a\xa3\xb7o\xe9\xa2nC\xf6q\x10\xa1\t'), '\x64' + chr(101) + chr(99) + chr(111) + chr(0b1100100) + chr(0b111011 + 0o52))(chr(0b1110101) + '\x74' + '\x66' + chr(0b101101) + '\070')] = r0lB0d_05a9z
roI3spqORKae(ES5oEprVxulp(b'\x04\x89)\xb0O\x08\xd0.\xed\xc7(\xb9\x8f~h\xf3\x7f\x1c\xe4\x16\xcbN\xfe\xb7L5r\x03\x10)\x17 Y8d\xe4\xd5\x98\x13-K\xfdV\xdd?d\xa3Q\x99\xab,\xb9\xe42\x16\xba0R\xe4E\x9f\x1c\xab'), chr(1723 - 1623) + chr(0b1100101) + '\x63' + '\157' + '\144' + chr(0b101100 + 0o71))('\165' + chr(10961 - 10845) + chr(9180 - 9078) + chr(0b101101) + '\x38')
qHgNV4lWHRZ0 = cWIaHfNNiUjG((aZB1vwmdWU_M, roI3spqORKae(ES5oEprVxulp(b'z\xca'), chr(0b1100100) + chr(0b1100101) + chr(0b1100011) + chr(0b1101111) + chr(0b101 + 0o137) + chr(0b1100101))(chr(5655 - 5538) + chr(116) + '\x66' + '\055' + '\x38')), (aZB1vwmdWU_M[nzTpIcepk0o8(chr(1489 - 1441) + chr(111) + '\065', 8)],), base=qSm5cD5ZYDzE, classifyby=(tdtkBAtxnOOo,), criteria=lambda bI5jsQ9OkQtj: roI3spqORKae(bI5jsQ9OkQtj, OdJ5rf1Z_Bz_) == tdtkBAtxnOOo, init=KwYRr6MBamjO(tdtkBAtxnOOo, OdJ5rf1Z_Bz_), name=roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf1\x0c\\\x99a\xa3\xb7o\xe9\xa2nC\xees'), chr(0b11011 + 0o111) + '\145' + '\x63' + chr(111) + chr(2301 - 2201) + chr(533 - 432))(chr(0b1101101 + 0o10) + '\x74' + '\x66' + chr(0b101101) + '\070'))
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf1\x0c\\\x99a\xa3\xb7o\xe9\xa2nC\xees'), '\144' + chr(0b10000 + 0o125) + '\x63' + chr(0b1011101 + 0o22) + '\144' + '\145')('\x75' + chr(0b1000010 + 0o62) + chr(102) + chr(0b101101) + chr(56))] = qHgNV4lWHRZ0
roI3spqORKae(ES5oEprVxulp(b'\x04\x89)\xb0O\x08\xd0.\xed\xc7(\xb9\x8f~h\xf3\x7f\x1c\xe4\x16\xcbN\xfe\xb7L5r\x03\x10)\x17 Y8d\xe4\xd5\x98\x13-K\xfdV\xdd?d\xa3Q\x99\xbcN\xb7\xee73\x900R\xe4E\x9f\x1c\xab\xf4'), chr(0b1100100) + '\145' + chr(0b1010101 + 0o16) + chr(11107 - 10996) + chr(3255 - 3155) + chr(6111 - 6010))(chr(0b1110101) + '\x74' + chr(102) + '\055' + chr(0b111000))
Z_PUmYClehux = cWIaHfNNiUjG((aZB1vwmdWU_M, roI3spqORKae(ES5oEprVxulp(b'z\xdde'), chr(315 - 215) + chr(9993 - 9892) + chr(0b101001 + 0o72) + '\157' + chr(100) + chr(2059 - 1958))(chr(1914 - 1797) + chr(0b1001101 + 0o47) + chr(102) + '\x2d' + '\070')), (aZB1vwmdWU_M[nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b1100 + 0o51), 8)],), base=qSm5cD5ZYDzE, classifyby=(_BvzLF5Kyf6g,), criteria=lambda bI5jsQ9OkQtj: roI3spqORKae(bI5jsQ9OkQtj, OdJ5rf1Z_Bz_) == _BvzLF5Kyf6g, init=KwYRr6MBamjO(_BvzLF5Kyf6g, OdJ5rf1Z_Bz_), name=roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf1\x0c\\\x99a\xa3\xb7o\xe9\xa2nC\xeed\x1e'), chr(100) + chr(101) + '\x63' + chr(11054 - 10943) + '\x64' + chr(101))('\x75' + chr(7162 - 7046) + chr(1007 - 905) + chr(1840 - 1795) + chr(0b111000)))
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf1\x0c\\\x99a\xa3\xb7o\xe9\xa2nC\xeed\x1e'), chr(1777 - 1677) + chr(0b1100101) + chr(0b110110 + 0o55) + chr(0b1101111) + chr(2260 - 2160) + '\x65')(chr(117) + chr(0b1100000 + 0o24) + chr(5377 - 5275) + chr(575 - 530) + '\x38')] = Z_PUmYClehux
roI3spqORKae(ES5oEprVxulp(b'\x04\x89)\xb0O\x08\xd0.\xed\xc7(\xb9\x8f~h\xf3\x7f\x1c\xe4\x16\xcbN\xfe\xb7L5r\x03\x10)\x17 Y8d\xe4\xd5\x98\x13-O\xe4Y\xdc*\x06\xfa.\xed\xc8"\xb9\xee=<\xba:x\xe4E\x9f\x1c\xab\xf4\x18` L\x10\x1c\x19?\t\x1aY\xd6\xa6\xa1-\nm\xc1`\xfe\x08\x08\x80o\xae\x83g\xed\xbd=k\xf3d\x1a\xe4\x11\xd7Y\xab\xb3Q6e\x08\x10?\n=\x1b\x17^\xcc\xea\xa58\x07.\xc8g\xf4O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c8j\xf8Oa\xa0H\x84\xb0"\xff\xa2rk\x900R\xe4E\x9f\x1c\xab\xf4\x18j \x14U,\x17 \x1dV_\xca\xe8\xb8-\x17`\x89}\xf8\n\x08\x83o\xa0\x98n\xfc\xaa=l\xfbs\x19\xa1\x11\x98O\xab\xbc]!d\x03B<X%\x11\x13R\x85\xe3\xb4)\x1d{\xdd`\xfe\x08\x08\x84f\xa4\x9b\x08\xb9\xee=<\xba0R\xe4E\x95\x1c\xf9\xa1T%.F\x10\x06\x1er\x18VO\xc4\xeb\xbc \x1bj\x89y\xf1\x0cC\x95z\xea\x9b"\xf1\xab|x\xffb\x01\xe4\x04\xcdY\xab\xb9W$i\x00Y*\x1cr\x1b\x0f\x1c\xd5\xf4\xa9:\x17a\xdcz\x9aO\x08\xd0.\xed\xc8"\xb9\xee7<\xfbs\x06\xad\n\xd1O\xab\xbdV`t\x0eUo\x1e>\x16\x01\x10\x85\xf2\xa4#\rk\x89d\xff\x0bA\x96g\xa8\x8c"\xf1\xab|x\xffb\x01\xe4\x04\xcdY\xab\xa7].tH\x10eWXYV\x1c\x85\xa6\xecl^'), '\x64' + '\x65' + chr(8256 - 8157) + chr(0b1101111) + '\x64' + chr(0b1010110 + 0o17))(chr(4179 - 4062) + chr(0b1011011 + 0o31) + '\146' + '\x2d' + chr(0b111000))
nNa0ZFBpf6Va = cWIaHfNNiUjG((ZblOtLLm55lR, roI3spqORKae(ES5oEprVxulp(b'~\xdbf\xf2\x0eJ\x99b\xa4\x9c{'), chr(2828 - 2728) + '\x65' + chr(0b1100011) + '\x6f' + chr(0b1100100) + chr(0b1100101))('\x75' + chr(116) + chr(0b1100110) + '\055' + '\x38')), (mmxcdOaynu5N, roI3spqORKae(ES5oEprVxulp(b'm\xc6e\xfc\nK\x84a\xbf\xb7q\xfc\xbaBu\xfe'), '\x64' + chr(2740 - 2639) + chr(0b1100011) + chr(111) + chr(0b1100100) + '\x65')(chr(117) + chr(7507 - 7391) + chr(102) + chr(458 - 413) + chr(56))), (mmxcdOaynu5N, roI3spqORKae(ES5oEprVxulp(b'a\xcbz\xcf\x0bG\x9do\xa4\x86]\xf0\xaa'), '\x64' + '\x65' + chr(99) + chr(0b1010101 + 0o32) + '\x64' + chr(101))(chr(11543 - 11426) + '\x74' + '\x66' + '\055' + chr(56))), (mmxcdOaynu5N, roI3spqORKae(ES5oEprVxulp(b'a\xcbz\xcf\x1fG\x99`\xb9\xb7k\xfd'), chr(7853 - 7753) + '\145' + '\x63' + chr(0b1101111) + chr(0b111101 + 0o47) + '\x65')(chr(117) + chr(116) + chr(0b1101 + 0o131) + chr(0b101101) + chr(0b10 + 0o66))), base=qSm5cD5ZYDzE, classifyby=(AlOe4nYfKFF8,), criteria=lambda bI5jsQ9OkQtj: roI3spqORKae(bI5jsQ9OkQtj, OdJ5rf1Z_Bz_) == AlOe4nYfKFF8, init=KwYRr6MBamjO(AlOe4nYfKFF8, OdJ5rf1Z_Bz_), name=roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf1\x0c\\\x99a\xa3\xb7q\xf8\xa3mp\xff'), chr(9431 - 9331) + chr(0b1100101) + chr(6367 - 6268) + '\157' + chr(4136 - 4036) + '\145')(chr(0b1011000 + 0o35) + chr(3262 - 3146) + chr(0b1100110) + chr(0b101101) + chr(983 - 927)))
BawhyueOIhlf[roI3spqORKae(ES5oEprVxulp(b'`\xd1V\xf1\x0c\\\x99a\xa3\xb7q\xf8\xa3mp\xff'), '\144' + chr(8361 - 8260) + chr(99) + chr(4102 - 3991) + chr(6251 - 6151) + chr(0b10000 + 0o125))('\x75' + chr(116) + chr(0b1011100 + 0o12) + '\x2d' + '\x38')] = nNa0ZFBpf6Va |
mduggan/cdifflib | cdifflib.py | CSequenceMatcher.find_longest_match | def find_longest_match(self, alo, ahi, blo, bhi):
"""Find longest matching block in a[alo:ahi] and b[blo:bhi].
Wrapper for the C implementation of this function.
"""
besti, bestj, bestsize = _cdifflib.find_longest_match(self, alo, ahi, blo, bhi)
return _Match(besti, bestj, bestsize) | python | def find_longest_match(self, alo, ahi, blo, bhi):
"""Find longest matching block in a[alo:ahi] and b[blo:bhi].
Wrapper for the C implementation of this function.
"""
besti, bestj, bestsize = _cdifflib.find_longest_match(self, alo, ahi, blo, bhi)
return _Match(besti, bestj, bestsize) | [
"def",
"find_longest_match",
"(",
"self",
",",
"alo",
",",
"ahi",
",",
"blo",
",",
"bhi",
")",
":",
"besti",
",",
"bestj",
",",
"bestsize",
"=",
"_cdifflib",
".",
"find_longest_match",
"(",
"self",
",",
"alo",
",",
"ahi",
",",
"blo",
",",
"bhi",
")",
"return",
"_Match",
"(",
"besti",
",",
"bestj",
",",
"bestsize",
")"
] | Find longest matching block in a[alo:ahi] and b[blo:bhi].
Wrapper for the C implementation of this function. | [
"Find",
"longest",
"matching",
"block",
"in",
"a",
"[",
"alo",
":",
"ahi",
"]",
"and",
"b",
"[",
"blo",
":",
"bhi",
"]",
"."
] | 95b1e28fbd14d2c2ff38e108745f7b38b89748a4 | https://github.com/mduggan/cdifflib/blob/95b1e28fbd14d2c2ff38e108745f7b38b89748a4/cdifflib.py#L32-L38 | train | Find the longest matching block in a [ alo ahi bhi. | 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,Fc8q2OvvlH7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41ilRngb,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(1545 - 1497) + chr(111) + '\x33' + '\064', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1011100 + 0o23) + chr(0b110101) + chr(138 - 87), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b101111 + 0o100) + '\x33' + chr(0b110111) + '\x35', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\062' + chr(50) + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(0b1101 + 0o43) + '\157' + chr(50) + chr(0b10111 + 0o40) + '\x33', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(9108 - 8997) + chr(0b100000 + 0o21) + chr(2486 - 2436) + '\065', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(3655 - 3544) + chr(0b101110 + 0o3) + '\065' + '\067', 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(51) + '\x31' + chr(0b101111 + 0o6), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x33' + chr(52) + '\067', 0o10), nzTpIcepk0o8('\060' + chr(0b10111 + 0o130) + '\061' + '\x34' + chr(0b110010), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110101) + chr(1469 - 1418), 8), nzTpIcepk0o8(chr(0b1111 + 0o41) + '\157' + chr(0b110011) + '\x35' + chr(0b110101), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + '\061' + chr(0b110011) + chr(54), 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(1021 - 971) + '\x37' + chr(1152 - 1099), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b100001 + 0o116) + chr(1063 - 1012) + chr(0b1 + 0o65) + chr(49), 0b1000), nzTpIcepk0o8(chr(1580 - 1532) + '\x6f' + chr(0b10100 + 0o36) + chr(0b10110 + 0o33) + chr(54), 0b1000), nzTpIcepk0o8(chr(0b111 + 0o51) + chr(111) + '\x33' + '\x33' + '\x31', 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + '\065', ord("\x08")), nzTpIcepk0o8(chr(80 - 32) + chr(0b100000 + 0o117) + chr(49) + chr(51) + chr(53), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x33' + chr(2114 - 2066) + '\x30', 0b1000), nzTpIcepk0o8(chr(0b1101 + 0o43) + '\157' + chr(49) + chr(55) + chr(0b101110 + 0o3), 0b1000), nzTpIcepk0o8(chr(0b10101 + 0o33) + chr(0b1101111) + '\062' + '\x36' + '\063', 0b1000), nzTpIcepk0o8(chr(0b101011 + 0o5) + chr(111) + chr(0b110111) + chr(1327 - 1278), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110001) + chr(1750 - 1701) + '\065', 16791 - 16783), nzTpIcepk0o8(chr(269 - 221) + chr(111) + '\x31' + '\x35' + chr(1800 - 1745), 8), nzTpIcepk0o8('\060' + chr(7112 - 7001) + '\x33' + chr(48) + chr(0b110010), 0b1000), nzTpIcepk0o8(chr(1322 - 1274) + '\157' + chr(0b110101) + '\x34', 40771 - 40763), nzTpIcepk0o8(chr(260 - 212) + '\157' + chr(1474 - 1425) + chr(52) + chr(0b11011 + 0o25), 0b1000), nzTpIcepk0o8(chr(1102 - 1054) + '\157' + chr(49) + chr(55) + chr(0b101101 + 0o10), 17606 - 17598), nzTpIcepk0o8(chr(48) + '\157' + chr(49) + '\066' + chr(0b110010), 0o10), nzTpIcepk0o8(chr(68 - 20) + chr(0b100101 + 0o112) + chr(0b100100 + 0o16) + '\060' + '\061', 0o10), nzTpIcepk0o8(chr(2275 - 2227) + chr(11650 - 11539) + chr(0b110011) + chr(2190 - 2141) + '\064', 0o10), nzTpIcepk0o8(chr(48) + chr(0b11010 + 0o125) + '\065', 8), nzTpIcepk0o8('\x30' + chr(11916 - 11805) + chr(49) + chr(0b100000 + 0o20) + '\066', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(2266 - 2217) + chr(51) + '\061', ord("\x08")), nzTpIcepk0o8(chr(887 - 839) + '\x6f' + '\x32' + chr(51) + chr(0b110100), 40941 - 40933), nzTpIcepk0o8(chr(0b11100 + 0o24) + chr(0b1101111) + chr(0b1100 + 0o45) + chr(48) + chr(49), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + '\063' + chr(2099 - 2044) + '\x33', 0o10), nzTpIcepk0o8(chr(0b11101 + 0o23) + chr(10622 - 10511) + chr(0b110111) + '\060', 2474 - 2466), nzTpIcepk0o8('\x30' + chr(0b1001 + 0o146) + '\x33' + '\063', 11007 - 10999)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(1961 - 1913) + chr(111) + chr(0b110011 + 0o2) + chr(1845 - 1797), 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'2'), chr(7014 - 6914) + chr(101) + chr(0b1100011) + chr(111) + chr(0b1100100) + chr(0b1100101))('\165' + chr(0b1110100) + chr(102) + chr(0b101101) + '\x38') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def uEnsaotzb48W(hXMPsSrOQzbh, a_pf6SfpV6xx, xKtaK5IoeVCk, Z7ey3ojZSKjp, Yh8ptp4WVLYN):
(Aq06lT7BFvQC, JHHDH3DwK65I, CsuEYzjNAtoI) = gtqnHx8vuwKm.find_longest_match(hXMPsSrOQzbh, a_pf6SfpV6xx, xKtaK5IoeVCk, Z7ey3ojZSKjp, Yh8ptp4WVLYN)
return lVsZLYEqt_io(Aq06lT7BFvQC, JHHDH3DwK65I, CsuEYzjNAtoI) |
mduggan/cdifflib | cdifflib.py | CSequenceMatcher.set_seq1 | def set_seq1(self, a):
"""Same as SequenceMatcher.set_seq1, but check for non-list inputs
implementation."""
if a is self.a:
return
self.a = a
if not isinstance(self.a, list):
self.a = list(self.a)
# Types must be hashable to work in the c layer. This will raise if
# list items are *not* hashable.
[hash(x) for x in self.a] | python | def set_seq1(self, a):
"""Same as SequenceMatcher.set_seq1, but check for non-list inputs
implementation."""
if a is self.a:
return
self.a = a
if not isinstance(self.a, list):
self.a = list(self.a)
# Types must be hashable to work in the c layer. This will raise if
# list items are *not* hashable.
[hash(x) for x in self.a] | [
"def",
"set_seq1",
"(",
"self",
",",
"a",
")",
":",
"if",
"a",
"is",
"self",
".",
"a",
":",
"return",
"self",
".",
"a",
"=",
"a",
"if",
"not",
"isinstance",
"(",
"self",
".",
"a",
",",
"list",
")",
":",
"self",
".",
"a",
"=",
"list",
"(",
"self",
".",
"a",
")",
"# Types must be hashable to work in the c layer. This will raise if",
"# list items are *not* hashable.",
"[",
"hash",
"(",
"x",
")",
"for",
"x",
"in",
"self",
".",
"a",
"]"
] | Same as SequenceMatcher.set_seq1, but check for non-list inputs
implementation. | [
"Same",
"as",
"SequenceMatcher",
".",
"set_seq1",
"but",
"check",
"for",
"non",
"-",
"list",
"inputs",
"implementation",
"."
] | 95b1e28fbd14d2c2ff38e108745f7b38b89748a4 | https://github.com/mduggan/cdifflib/blob/95b1e28fbd14d2c2ff38e108745f7b38b89748a4/cdifflib.py#L40-L50 | train | Same as SequenceMatcher. set_seq1 but check for non - list inputs
implementation. | 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,oxjHmqoB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XsN5uFgW,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(51) + chr(0b100101 + 0o20), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(55) + chr(2104 - 2051), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b101111 + 0o100) + chr(0b110010) + '\x34' + chr(0b11011 + 0o34), ord("\x08")), nzTpIcepk0o8(chr(852 - 804) + chr(111) + '\x32', ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110100) + '\062', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x32' + '\x34' + chr(0b110100), ord("\x08")), nzTpIcepk0o8(chr(193 - 145) + chr(111) + chr(1116 - 1066) + chr(0b11110 + 0o22) + chr(48), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1 + 0o156) + chr(996 - 946) + chr(629 - 581) + chr(1703 - 1651), 30122 - 30114), nzTpIcepk0o8(chr(0b101101 + 0o3) + '\x6f' + chr(0b110010) + '\064' + '\067', 8), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110011) + chr(55) + '\065', 0b1000), nzTpIcepk0o8(chr(0b101001 + 0o7) + chr(1026 - 915) + '\062' + chr(50) + chr(1696 - 1645), 0o10), nzTpIcepk0o8(chr(2077 - 2029) + chr(0b11101 + 0o122) + '\x32' + chr(53) + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(0b10111 + 0o31) + '\157' + chr(102 - 50) + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(0b11011 + 0o25) + '\157' + '\061' + chr(0b11001 + 0o32) + '\x31', 2955 - 2947), nzTpIcepk0o8(chr(0b11000 + 0o30) + '\157' + '\063' + chr(0b110001) + chr(0b110111), 0b1000), nzTpIcepk0o8(chr(1234 - 1186) + chr(0b1101111) + chr(0b110101) + chr(1615 - 1563), 0o10), nzTpIcepk0o8(chr(1688 - 1640) + '\x6f' + chr(0b110001) + chr(51) + chr(48), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110001) + '\x31' + chr(2453 - 2401), 0o10), nzTpIcepk0o8('\060' + '\x6f' + '\065' + chr(696 - 641), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(402 - 352) + chr(1188 - 1135) + '\x33', 0b1000), nzTpIcepk0o8(chr(1455 - 1407) + '\x6f' + chr(0b1101 + 0o46) + chr(1097 - 1045) + chr(49), 0o10), nzTpIcepk0o8(chr(1245 - 1197) + chr(111) + chr(51) + chr(54) + chr(50), 45154 - 45146), nzTpIcepk0o8(chr(851 - 803) + chr(111) + chr(50) + chr(0b110101) + chr(0b110000), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\062' + chr(282 - 227) + '\063', 0o10), nzTpIcepk0o8(chr(1413 - 1365) + '\157' + chr(0b10000 + 0o41) + chr(0b110011) + chr(2298 - 2250), 8), nzTpIcepk0o8('\060' + chr(8949 - 8838) + chr(0b110001) + '\x33' + chr(54), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + '\062' + '\061', 0o10), nzTpIcepk0o8(chr(779 - 731) + chr(0b1101111) + chr(0b1011 + 0o46) + chr(0b11101 + 0o32) + chr(0b101000 + 0o15), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(6301 - 6190) + chr(0b110011) + '\x36' + chr(0b101011 + 0o10), ord("\x08")), nzTpIcepk0o8(chr(0b101101 + 0o3) + chr(0b1101001 + 0o6) + '\061' + '\062' + '\x33', 0b1000), nzTpIcepk0o8(chr(1844 - 1796) + chr(0b11100 + 0o123) + chr(827 - 776) + chr(0b110010) + chr(777 - 724), 0o10), nzTpIcepk0o8(chr(1102 - 1054) + '\x6f' + chr(51) + '\x36' + '\067', 0o10), nzTpIcepk0o8(chr(734 - 686) + chr(0b1010100 + 0o33) + chr(988 - 937) + '\067' + chr(0b110000), 19176 - 19168), nzTpIcepk0o8(chr(1599 - 1551) + chr(0b1101111) + chr(0b110101) + chr(0b1110 + 0o45), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110001) + chr(52) + chr(0b110100), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(50) + '\x37' + chr(378 - 323), ord("\x08")), nzTpIcepk0o8(chr(542 - 494) + '\x6f' + '\x32' + chr(0b10101 + 0o41), 0b1000), nzTpIcepk0o8(chr(1424 - 1376) + '\157' + '\x31' + chr(0b101011 + 0o6) + chr(55), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(1600 - 1549) + chr(0b101010 + 0o13) + chr(55), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x32' + chr(54), 8)][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + chr(0b101 + 0o152) + chr(717 - 664) + chr(48), 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'3'), chr(3275 - 3175) + chr(145 - 44) + chr(0b1001111 + 0o24) + chr(1305 - 1194) + '\x64' + chr(1501 - 1400))(chr(1156 - 1039) + chr(0b1100 + 0o150) + chr(0b1100110) + chr(45) + chr(56)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def BN94aMnHklKt(hXMPsSrOQzbh, AQ9ceR9AaoT1):
if AQ9ceR9AaoT1 is roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\\l\x9eaG\xf6\xb9\xc5\xc6\x92\xc7\x9d'), chr(0b1100100) + chr(101) + chr(99) + chr(438 - 327) + '\x64' + chr(0b1100101))(chr(117) + chr(116) + chr(6578 - 6476) + chr(45) + chr(56))):
return
hXMPsSrOQzbh.AQ9ceR9AaoT1 = AQ9ceR9AaoT1
if not suIjIS24Zkqw(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\\l\x9eaG\xf6\xb9\xc5\xc6\x92\xc7\x9d'), '\144' + chr(0b1011100 + 0o11) + chr(5245 - 5146) + chr(7902 - 7791) + '\x64' + chr(0b1100101))('\x75' + chr(1664 - 1548) + chr(0b1001111 + 0o27) + chr(50 - 5) + '\070')), H4NoA26ON7iG):
hXMPsSrOQzbh.AQ9ceR9AaoT1 = H4NoA26ON7iG(hXMPsSrOQzbh.AQ9ceR9AaoT1)
[dMJNtLk2mncQ(bI5jsQ9OkQtj) for bI5jsQ9OkQtj in roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\\l\x9eaG\xf6\xb9\xc5\xc6\x92\xc7\x9d'), chr(9046 - 8946) + chr(101) + '\x63' + chr(6163 - 6052) + chr(0b1100100) + '\145')('\165' + chr(9790 - 9674) + chr(102) + '\055' + '\070'))] |
mduggan/cdifflib | cdifflib.py | CSequenceMatcher.set_seq2 | def set_seq2(self, b):
"""Same as SequenceMatcher.set_seq2, but uses the c chainb
implementation.
"""
if b is self.b and hasattr(self, 'isbjunk'):
return
self.b = b
if not isinstance(self.a, list):
self.a = list(self.a)
if not isinstance(self.b, list):
self.b = list(self.b)
# Types must be hashable to work in the c layer. This check lines will
# raise the correct error if they are *not* hashable.
[hash(x) for x in self.a]
[hash(x) for x in self.b]
self.matching_blocks = self.opcodes = None
self.fullbcount = None
junk, popular = _cdifflib.chain_b(self)
assert hasattr(junk, '__contains__')
assert hasattr(popular, '__contains__')
self.isbjunk = junk.__contains__
self.isbpopular = popular.__contains__ | python | def set_seq2(self, b):
"""Same as SequenceMatcher.set_seq2, but uses the c chainb
implementation.
"""
if b is self.b and hasattr(self, 'isbjunk'):
return
self.b = b
if not isinstance(self.a, list):
self.a = list(self.a)
if not isinstance(self.b, list):
self.b = list(self.b)
# Types must be hashable to work in the c layer. This check lines will
# raise the correct error if they are *not* hashable.
[hash(x) for x in self.a]
[hash(x) for x in self.b]
self.matching_blocks = self.opcodes = None
self.fullbcount = None
junk, popular = _cdifflib.chain_b(self)
assert hasattr(junk, '__contains__')
assert hasattr(popular, '__contains__')
self.isbjunk = junk.__contains__
self.isbpopular = popular.__contains__ | [
"def",
"set_seq2",
"(",
"self",
",",
"b",
")",
":",
"if",
"b",
"is",
"self",
".",
"b",
"and",
"hasattr",
"(",
"self",
",",
"'isbjunk'",
")",
":",
"return",
"self",
".",
"b",
"=",
"b",
"if",
"not",
"isinstance",
"(",
"self",
".",
"a",
",",
"list",
")",
":",
"self",
".",
"a",
"=",
"list",
"(",
"self",
".",
"a",
")",
"if",
"not",
"isinstance",
"(",
"self",
".",
"b",
",",
"list",
")",
":",
"self",
".",
"b",
"=",
"list",
"(",
"self",
".",
"b",
")",
"# Types must be hashable to work in the c layer. This check lines will",
"# raise the correct error if they are *not* hashable.",
"[",
"hash",
"(",
"x",
")",
"for",
"x",
"in",
"self",
".",
"a",
"]",
"[",
"hash",
"(",
"x",
")",
"for",
"x",
"in",
"self",
".",
"b",
"]",
"self",
".",
"matching_blocks",
"=",
"self",
".",
"opcodes",
"=",
"None",
"self",
".",
"fullbcount",
"=",
"None",
"junk",
",",
"popular",
"=",
"_cdifflib",
".",
"chain_b",
"(",
"self",
")",
"assert",
"hasattr",
"(",
"junk",
",",
"'__contains__'",
")",
"assert",
"hasattr",
"(",
"popular",
",",
"'__contains__'",
")",
"self",
".",
"isbjunk",
"=",
"junk",
".",
"__contains__",
"self",
".",
"isbpopular",
"=",
"popular",
".",
"__contains__"
] | Same as SequenceMatcher.set_seq2, but uses the c chainb
implementation. | [
"Same",
"as",
"SequenceMatcher",
".",
"set_seq2",
"but",
"uses",
"the",
"c",
"chainb",
"implementation",
"."
] | 95b1e28fbd14d2c2ff38e108745f7b38b89748a4 | https://github.com/mduggan/cdifflib/blob/95b1e28fbd14d2c2ff38e108745f7b38b89748a4/cdifflib.py#L52-L75 | train | Same as SequenceMatcher. set_seq2 but uses the c chainb
implementation. | GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ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IOError,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(3324 - 3213) + chr(97 - 48) + chr(0b110001) + '\063', 13734 - 13726), nzTpIcepk0o8('\060' + chr(664 - 553) + chr(51) + chr(185 - 134) + chr(0b11011 + 0o26), 5730 - 5722), nzTpIcepk0o8(chr(0b11100 + 0o24) + chr(111) + chr(50) + chr(607 - 552) + chr(48), 9578 - 9570), nzTpIcepk0o8(chr(0b10100 + 0o34) + chr(0b100100 + 0o113) + chr(2550 - 2499) + '\x33' + chr(687 - 638), 8), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b11010 + 0o30) + '\x35' + chr(0b100000 + 0o25), 33405 - 33397), nzTpIcepk0o8('\x30' + chr(0b1001111 + 0o40) + chr(0b1110 + 0o43) + chr(1574 - 1525) + chr(0b110101), ord("\x08")), nzTpIcepk0o8(chr(975 - 927) + chr(7161 - 7050) + chr(0b110001) + chr(102 - 52) + chr(0b101101 + 0o12), 0b1000), nzTpIcepk0o8('\060' + '\157' + chr(2278 - 2228) + chr(839 - 791) + chr(662 - 610), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1001000 + 0o47) + chr(595 - 544) + chr(52) + chr(50), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(50) + chr(0b101010 + 0o7) + chr(0b1110 + 0o43), ord("\x08")), nzTpIcepk0o8(chr(0b100101 + 0o13) + chr(0b1101111) + '\x33' + chr(51) + chr(50), 0o10), nzTpIcepk0o8(chr(154 - 106) + chr(0b1101111) + '\063' + chr(0b110110), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + '\061' + chr(885 - 834) + chr(0b110000 + 0o1), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110001) + chr(0b101011 + 0o14) + '\x35', 37419 - 37411), nzTpIcepk0o8(chr(338 - 290) + '\x6f' + chr(51) + chr(0b100111 + 0o15) + chr(2425 - 2372), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(0b10000 + 0o41) + '\066' + chr(1681 - 1628), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(870 - 819) + '\067' + chr(0b110010), ord("\x08")), nzTpIcepk0o8('\060' + chr(5682 - 5571) + chr(50) + chr(49) + chr(2944 - 2889), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b10000 + 0o137) + '\065' + '\x32', 0b1000), nzTpIcepk0o8(chr(0b1001 + 0o47) + chr(0b1101111) + chr(0b10101 + 0o34) + chr(0b10 + 0o56) + chr(0b110010), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\063' + '\066' + '\061', 0o10), nzTpIcepk0o8('\x30' + chr(0b1001111 + 0o40) + chr(49) + chr(0b11011 + 0o25) + '\x36', 0o10), nzTpIcepk0o8(chr(0b10100 + 0o34) + chr(111) + chr(51) + chr(50), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(8168 - 8057) + '\063' + '\063', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\063' + '\061' + '\063', 24143 - 24135), nzTpIcepk0o8(chr(48) + '\x6f' + chr(55), 0o10), nzTpIcepk0o8('\060' + chr(0b110111 + 0o70) + '\x33' + chr(49) + '\062', 29704 - 29696), nzTpIcepk0o8('\x30' + '\157' + chr(882 - 831) + chr(0b110110) + chr(3001 - 2946), 0o10), nzTpIcepk0o8('\x30' + '\157' + '\x34' + chr(52), 0o10), nzTpIcepk0o8(chr(1234 - 1186) + chr(111) + chr(0b10111 + 0o37) + chr(2061 - 2012), 16116 - 16108), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\062' + chr(51) + chr(410 - 356), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(371 - 322) + chr(0b110100) + chr(945 - 895), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(4321 - 4210) + chr(0b101010 + 0o7) + '\x31' + '\x32', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(912 - 801) + chr(0b101000 + 0o13) + chr(0b110111) + chr(48), 0o10), nzTpIcepk0o8('\060' + chr(9720 - 9609) + '\061' + chr(0b110110) + chr(0b11000 + 0o32), 0o10), nzTpIcepk0o8(chr(0b10 + 0o56) + chr(0b1101111) + '\x36' + chr(2531 - 2476), 0b1000), nzTpIcepk0o8(chr(0b100110 + 0o12) + chr(0b11011 + 0o124) + chr(1202 - 1153) + '\x33' + chr(49), 8), nzTpIcepk0o8('\060' + chr(111) + chr(0b110011) + chr(48), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1010110 + 0o31) + chr(0b100110 + 0o13) + '\x30' + '\x36', 8), nzTpIcepk0o8(chr(1139 - 1091) + chr(111) + chr(0b1110 + 0o45) + '\067' + chr(0b110110), 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b10 + 0o63) + chr(0b110000), ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'e'), '\144' + chr(0b1100101) + '\143' + chr(6878 - 6767) + chr(7921 - 7821) + chr(0b11101 + 0o110))(chr(0b1100001 + 0o24) + chr(9771 - 9655) + chr(0b1100110) + chr(0b101101) + '\070') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def gdP05fDtzthk(hXMPsSrOQzbh, xFDEVQn5qSdh):
if xFDEVQn5qSdh is roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'3\x9f\xfc\x9c\xfb\x1c9\xb1\x93\xda\xbev'), '\144' + '\145' + '\x63' + '\x6f' + '\144' + chr(0b111101 + 0o50))(chr(0b1001111 + 0o46) + chr(0b1001011 + 0o51) + chr(142 - 40) + '\055' + chr(1238 - 1182))) and dRKdVnHPFq7C(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'"\xaa\xda\xb3\xd8#<'), chr(0b1100100) + chr(101) + chr(99) + chr(0b100011 + 0o114) + chr(0b1001101 + 0o27) + chr(101))(chr(0b1110101) + chr(0b110101 + 0o77) + '\146' + '\x2d' + chr(0b110011 + 0o5))):
return
hXMPsSrOQzbh.xFDEVQn5qSdh = xFDEVQn5qSdh
if not suIjIS24Zkqw(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\n\x88\x81\xba\xc8\x1fn\xc5\x83\xe6\x8e/'), chr(8211 - 8111) + chr(101) + chr(0b1100011) + '\157' + '\144' + chr(0b10010 + 0o123))(chr(0b1110101) + chr(390 - 274) + chr(0b1011110 + 0o10) + '\x2d' + chr(1592 - 1536))), H4NoA26ON7iG):
hXMPsSrOQzbh.AQ9ceR9AaoT1 = H4NoA26ON7iG(hXMPsSrOQzbh.AQ9ceR9AaoT1)
if not suIjIS24Zkqw(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'3\x9f\xfc\x9c\xfb\x1c9\xb1\x93\xda\xbev'), '\x64' + chr(0b1100101) + chr(3783 - 3684) + chr(111) + chr(100) + '\145')(chr(0b1000101 + 0o60) + '\x74' + chr(8486 - 8384) + chr(0b100011 + 0o12) + chr(56))), H4NoA26ON7iG):
hXMPsSrOQzbh.xFDEVQn5qSdh = H4NoA26ON7iG(hXMPsSrOQzbh.xFDEVQn5qSdh)
[dMJNtLk2mncQ(bI5jsQ9OkQtj) for bI5jsQ9OkQtj in roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\n\x88\x81\xba\xc8\x1fn\xc5\x83\xe6\x8e/'), '\144' + chr(101) + '\x63' + '\x6f' + '\144' + chr(0b1100101))(chr(0b1110101) + chr(0b11110 + 0o126) + '\146' + '\055' + chr(0b111000)))]
[dMJNtLk2mncQ(bI5jsQ9OkQtj) for bI5jsQ9OkQtj in roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'3\x9f\xfc\x9c\xfb\x1c9\xb1\x93\xda\xbev'), '\144' + chr(0b1100101) + chr(0b1100011) + chr(111) + chr(7290 - 7190) + '\145')(chr(8384 - 8267) + chr(0b1110100) + chr(7986 - 7884) + chr(706 - 661) + '\070'))]
hXMPsSrOQzbh.MDls3MM4gZJu = hXMPsSrOQzbh.M1jjRgCCChTI = None
hXMPsSrOQzbh.qde2yoU83rXZ = None
(tf3k0aKxDxF_, ETV32j2Lv6pb) = gtqnHx8vuwKm.chain_b(hXMPsSrOQzbh)
assert dRKdVnHPFq7C(tf3k0aKxDxF_, roI3spqORKae(ES5oEprVxulp(b'\x14\x86\xdb\xb6\xc396\xed\x8c\xfa\x85A'), '\144' + chr(0b1100101) + '\x63' + '\x6f' + chr(0b1000000 + 0o44) + '\145')(chr(3596 - 3479) + chr(5760 - 5644) + chr(102) + chr(0b101101) + chr(0b1101 + 0o53)))
assert dRKdVnHPFq7C(ETV32j2Lv6pb, roI3spqORKae(ES5oEprVxulp(b'\x14\x86\xdb\xb6\xc396\xed\x8c\xfa\x85A'), chr(2271 - 2171) + chr(101) + '\143' + chr(111) + chr(6304 - 6204) + chr(0b1000 + 0o135))('\x75' + '\x74' + chr(0b10111 + 0o117) + '\x2d' + chr(56)))
hXMPsSrOQzbh.sMDry8x1P3ra = tf3k0aKxDxF_.__contains__
hXMPsSrOQzbh.AxxT2BMYEccW = ETV32j2Lv6pb.__contains__ |
mduggan/cdifflib | cdifflib.py | CSequenceMatcher.get_matching_blocks | def get_matching_blocks(self):
"""Same as SequenceMatcher.get_matching_blocks, but calls through to a
faster loop for find_longest_match. The rest is the same.
"""
if self.matching_blocks is not None:
return self.matching_blocks
matching_blocks = _cdifflib.matching_blocks(self)
matching_blocks.append((len(self.a), len(self.b), 0))
self.matching_blocks = matching_blocks
return map(_Match._make, self.matching_blocks) | python | def get_matching_blocks(self):
"""Same as SequenceMatcher.get_matching_blocks, but calls through to a
faster loop for find_longest_match. The rest is the same.
"""
if self.matching_blocks is not None:
return self.matching_blocks
matching_blocks = _cdifflib.matching_blocks(self)
matching_blocks.append((len(self.a), len(self.b), 0))
self.matching_blocks = matching_blocks
return map(_Match._make, self.matching_blocks) | [
"def",
"get_matching_blocks",
"(",
"self",
")",
":",
"if",
"self",
".",
"matching_blocks",
"is",
"not",
"None",
":",
"return",
"self",
".",
"matching_blocks",
"matching_blocks",
"=",
"_cdifflib",
".",
"matching_blocks",
"(",
"self",
")",
"matching_blocks",
".",
"append",
"(",
"(",
"len",
"(",
"self",
".",
"a",
")",
",",
"len",
"(",
"self",
".",
"b",
")",
",",
"0",
")",
")",
"self",
".",
"matching_blocks",
"=",
"matching_blocks",
"return",
"map",
"(",
"_Match",
".",
"_make",
",",
"self",
".",
"matching_blocks",
")"
] | Same as SequenceMatcher.get_matching_blocks, but calls through to a
faster loop for find_longest_match. The rest is the same. | [
"Same",
"as",
"SequenceMatcher",
".",
"get_matching_blocks",
"but",
"calls",
"through",
"to",
"a",
"faster",
"loop",
"for",
"find_longest_match",
".",
"The",
"rest",
"is",
"the",
"same",
"."
] | 95b1e28fbd14d2c2ff38e108745f7b38b89748a4 | https://github.com/mduggan/cdifflib/blob/95b1e28fbd14d2c2ff38e108745f7b38b89748a4/cdifflib.py#L78-L89 | train | Same as SequenceMatcher. get_matching_blocks but calls through to a
faster loop for find_longest_match. | 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,NfwEQ1VKf5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IVxIiZ,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' + chr(0b110011) + '\060' + '\x30', 36055 - 36047), nzTpIcepk0o8(chr(48) + '\x6f' + '\062' + '\060', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b101110 + 0o4) + '\x36' + '\x34', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(1168 - 1118) + chr(49) + chr(0b111 + 0o60), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b1101 + 0o45) + chr(51) + chr(0b1011 + 0o53), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1000 + 0o147) + '\x31' + chr(315 - 265) + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(0b100011 + 0o15) + chr(0b1101111) + chr(53), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + '\061' + '\066' + chr(52), 0o10), nzTpIcepk0o8(chr(2302 - 2254) + '\x6f' + chr(0b110011) + '\061' + chr(0b10011 + 0o35), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b110111 + 0o70) + chr(51) + chr(0b110000) + '\x37', ord("\x08")), nzTpIcepk0o8(chr(917 - 869) + '\x6f' + chr(50) + chr(0b110011) + chr(51), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(5222 - 5111) + '\x32' + chr(2525 - 2471), 0o10), nzTpIcepk0o8(chr(653 - 605) + chr(111) + chr(52) + chr(0b110101), 0b1000), nzTpIcepk0o8(chr(2037 - 1989) + '\x6f' + chr(0b1 + 0o62) + chr(0b1111 + 0o45) + chr(54), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(49) + chr(52) + '\067', 0b1000), nzTpIcepk0o8(chr(470 - 422) + chr(0b1000101 + 0o52) + '\x34', 0o10), nzTpIcepk0o8('\060' + chr(2636 - 2525) + chr(0b10101 + 0o36) + chr(0b1011 + 0o46) + '\064', 0o10), nzTpIcepk0o8('\x30' + chr(0b1010100 + 0o33) + chr(0b110001) + chr(53) + '\063', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b100011 + 0o114) + chr(0b111 + 0o53) + chr(0b10100 + 0o43) + '\067', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1100010 + 0o15) + chr(1528 - 1479) + chr(742 - 689) + '\067', 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + '\063' + chr(554 - 499) + '\x34', 48847 - 48839), nzTpIcepk0o8(chr(0b1000 + 0o50) + chr(111) + '\x31' + chr(0b110101) + chr(0b100111 + 0o17), 33200 - 33192), nzTpIcepk0o8('\x30' + chr(0b1010101 + 0o32) + chr(0b110001) + chr(0b110010) + chr(1591 - 1540), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b100000 + 0o22) + '\066' + '\x36', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b11000 + 0o127) + chr(201 - 150) + chr(1701 - 1649), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(0b1 + 0o61) + chr(0b110000), 8), nzTpIcepk0o8(chr(48) + '\x6f' + chr(2175 - 2124) + chr(1933 - 1883) + '\066', 0o10), nzTpIcepk0o8(chr(0b11011 + 0o25) + '\157' + chr(0b10101 + 0o35) + chr(2464 - 2409) + chr(0b110111), 8), nzTpIcepk0o8('\x30' + chr(4433 - 4322) + chr(50) + chr(0b110011) + chr(0b110001), 0o10), nzTpIcepk0o8('\x30' + chr(0b1100110 + 0o11) + chr(1297 - 1248) + chr(414 - 362) + chr(49), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1010 + 0o145) + '\x32' + chr(0b110011) + '\x33', 8), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x33' + chr(2243 - 2190) + '\065', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110010) + chr(2416 - 2362) + chr(2416 - 2363), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110001) + '\066' + chr(1162 - 1110), 8), nzTpIcepk0o8(chr(0b11101 + 0o23) + '\x6f' + chr(51) + chr(2293 - 2245) + '\x34', 13269 - 13261), nzTpIcepk0o8(chr(0b11111 + 0o21) + '\157' + '\x33' + chr(1171 - 1122) + '\063', 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b11011 + 0o27) + chr(49) + '\x32', 0b1000), nzTpIcepk0o8('\060' + chr(5996 - 5885) + '\062' + '\x35' + chr(50), 0o10), nzTpIcepk0o8(chr(48) + chr(3907 - 3796) + chr(939 - 890) + chr(0b110011) + chr(2380 - 2325), 0b1000), nzTpIcepk0o8(chr(0b1010 + 0o46) + '\x6f' + chr(0b110001) + chr(0b110101) + chr(0b110011), 8)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(6120 - 6009) + chr(2285 - 2232) + '\060', 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xee'), '\x64' + chr(0b10001 + 0o124) + '\143' + '\157' + chr(0b11101 + 0o107) + chr(101))(chr(0b110111 + 0o76) + chr(8515 - 8399) + chr(0b1100110) + '\055' + '\x38') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def DHlawXY5RTLV(hXMPsSrOQzbh):
if roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x8dT\xd8\xfc\xad\x1cH@\xaf\x9d\xd1c'), chr(100) + chr(101) + chr(0b1100011) + chr(11309 - 11198) + chr(0b1100100 + 0o0) + chr(0b1100101))('\165' + chr(116) + '\146' + '\055' + '\070')) is not None:
return roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x8dT\xd8\xfc\xad\x1cH@\xaf\x9d\xd1c'), '\x64' + '\x65' + '\x63' + '\x6f' + chr(0b10 + 0o142) + chr(4474 - 4373))(chr(983 - 866) + chr(0b1110100) + chr(102) + '\055' + chr(0b1010 + 0o56)))
MDls3MM4gZJu = gtqnHx8vuwKm.MDls3MM4gZJu(hXMPsSrOQzbh)
roI3spqORKae(MDls3MM4gZJu, roI3spqORKae(ES5oEprVxulp(b'\x88D\xe7\xbb\xe66B\x1b\xa2\xa8\xce#'), chr(4041 - 3941) + chr(0b1000000 + 0o45) + '\143' + '\x6f' + chr(100) + '\x65')(chr(0b1100000 + 0o25) + chr(116) + '\x66' + '\x2d' + '\070'))((ftfygxgFas5X(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b"\x81A\x8d\xec\xfb\x03<5\xa9\xa8\xcf'"), chr(4352 - 4252) + chr(101) + '\x63' + '\x6f' + chr(0b1011111 + 0o5) + chr(0b111 + 0o136))(chr(117) + '\x74' + chr(0b1001011 + 0o33) + chr(0b101101) + chr(0b11010 + 0o36)))), ftfygxgFas5X(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xb8V\xf0\xca\xc8\x00kA\xb9\x94\xff~'), chr(172 - 72) + '\x65' + chr(99) + chr(0b110011 + 0o74) + chr(9325 - 9225) + '\x65')(chr(0b1110101) + chr(132 - 16) + '\146' + '\055' + chr(0b10000 + 0o50)))), nzTpIcepk0o8('\x30' + '\157' + '\060', ord("\x08"))))
hXMPsSrOQzbh.MDls3MM4gZJu = MDls3MM4gZJu
return VVP82lOIz6CD(roI3spqORKae(lVsZLYEqt_io, roI3spqORKae(ES5oEprVxulp(b'\x9f}\xd5\xe4\xfb'), chr(100) + '\145' + '\x63' + chr(0b1101111) + '\x64' + chr(0b11010 + 0o113))(chr(1495 - 1378) + chr(11528 - 11412) + chr(0b1100110) + chr(0b100111 + 0o6) + chr(0b111000))), roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x8dT\xd8\xfc\xad\x1cH@\xaf\x9d\xd1c'), '\144' + '\145' + '\143' + chr(111) + chr(0b1010111 + 0o15) + chr(0b1010000 + 0o25))(chr(0b111001 + 0o74) + chr(0b1110100) + chr(0b1100110) + chr(1777 - 1732) + '\070'))) |
hubo1016/namedstruct | namedstruct/namedstruct.py | _tostream | def _tostream(parser, obj, stream, skipprepack = False):
"""
Compatible to old parsers
"""
if hasattr(parser, 'tostream'):
return parser.tostream(obj, stream, skipprepack)
else:
data = parser.tobytes(obj, skipprepack)
cls = type(parser)
if cls not in _deprecated_parsers:
_deprecated_parsers.add(cls)
warnings.warn("Parser %r does not have 'tostream' interfaces" % (cls,), UserWarning)
return stream.write(data) | python | def _tostream(parser, obj, stream, skipprepack = False):
"""
Compatible to old parsers
"""
if hasattr(parser, 'tostream'):
return parser.tostream(obj, stream, skipprepack)
else:
data = parser.tobytes(obj, skipprepack)
cls = type(parser)
if cls not in _deprecated_parsers:
_deprecated_parsers.add(cls)
warnings.warn("Parser %r does not have 'tostream' interfaces" % (cls,), UserWarning)
return stream.write(data) | [
"def",
"_tostream",
"(",
"parser",
",",
"obj",
",",
"stream",
",",
"skipprepack",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"parser",
",",
"'tostream'",
")",
":",
"return",
"parser",
".",
"tostream",
"(",
"obj",
",",
"stream",
",",
"skipprepack",
")",
"else",
":",
"data",
"=",
"parser",
".",
"tobytes",
"(",
"obj",
",",
"skipprepack",
")",
"cls",
"=",
"type",
"(",
"parser",
")",
"if",
"cls",
"not",
"in",
"_deprecated_parsers",
":",
"_deprecated_parsers",
".",
"add",
"(",
"cls",
")",
"warnings",
".",
"warn",
"(",
"\"Parser %r does not have 'tostream' interfaces\"",
"%",
"(",
"cls",
",",
")",
",",
"UserWarning",
")",
"return",
"stream",
".",
"write",
"(",
"data",
")"
] | Compatible to old parsers | [
"Compatible",
"to",
"old",
"parsers"
] | 5039026e0df4ce23003d212358918dbe1a6e1d76 | https://github.com/hubo1016/namedstruct/blob/5039026e0df4ce23003d212358918dbe1a6e1d76/namedstruct/namedstruct.py#L44-L56 | train | Internal helper function to write a Tostream object to a 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_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,IAGRf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26HKr,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(0b10101 + 0o33) + '\157' + '\x32' + '\x34' + chr(0b1 + 0o61), 3680 - 3672), nzTpIcepk0o8(chr(48) + '\157' + '\062' + chr(1510 - 1455) + chr(0b100101 + 0o15), 0o10), nzTpIcepk0o8(chr(1887 - 1839) + chr(0b1101111) + chr(0b10101 + 0o35) + chr(303 - 252) + '\060', ord("\x08")), nzTpIcepk0o8('\060' + chr(1169 - 1058) + chr(0b1001 + 0o52) + chr(73 - 20) + '\066', 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110010) + chr(53) + '\x30', 0b1000), nzTpIcepk0o8(chr(0b100001 + 0o17) + chr(111) + chr(1545 - 1494) + chr(0b110000) + chr(54), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1 + 0o156) + '\063' + chr(51) + chr(0b100110 + 0o15), 43262 - 43254), nzTpIcepk0o8(chr(214 - 166) + '\157' + chr(926 - 876) + chr(50) + '\x33', ord("\x08")), nzTpIcepk0o8(chr(0b1110 + 0o42) + '\157' + '\x33' + chr(54) + chr(0b100 + 0o60), 0o10), nzTpIcepk0o8('\060' + '\157' + chr(53) + '\x35', 0b1000), nzTpIcepk0o8(chr(354 - 306) + chr(0b1011000 + 0o27) + '\063' + chr(683 - 634) + chr(48), 0b1000), nzTpIcepk0o8(chr(0b11001 + 0o27) + '\157' + chr(55) + '\x37', ord("\x08")), nzTpIcepk0o8(chr(0b1101 + 0o43) + chr(0b1101111) + '\x32' + chr(1246 - 1194) + '\062', 8), nzTpIcepk0o8(chr(789 - 741) + chr(111) + chr(0b11010 + 0o32) + '\067', 0o10), nzTpIcepk0o8('\060' + chr(0b100 + 0o153) + '\x32' + chr(0b110000) + chr(0b100111 + 0o20), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + '\x32' + '\x35', 0b1000), nzTpIcepk0o8(chr(813 - 765) + chr(111) + '\067' + chr(0b1111 + 0o41), 34679 - 34671), nzTpIcepk0o8('\x30' + chr(4394 - 4283) + chr(50) + chr(52) + '\066', ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(50) + '\x33' + chr(0b101001 + 0o13), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(1564 - 1515) + chr(55) + chr(51), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110011) + chr(0b110111) + chr(51), 0o10), nzTpIcepk0o8('\060' + '\x6f' + '\x31' + chr(1048 - 994) + chr(0b1101 + 0o50), 50757 - 50749), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b11 + 0o56) + '\x36' + '\067', 0o10), nzTpIcepk0o8(chr(855 - 807) + chr(10411 - 10300) + '\x33' + '\x30' + '\x35', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(3615 - 3504) + chr(51) + chr(0b110110) + '\066', ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(1523 - 1472) + chr(917 - 864) + '\063', 0b1000), nzTpIcepk0o8('\x30' + chr(1652 - 1541) + chr(0b110001) + chr(0b100 + 0o63) + chr(0b10000 + 0o46), 0b1000), nzTpIcepk0o8('\060' + '\157' + '\x31' + '\x37' + '\064', 0b1000), nzTpIcepk0o8('\060' + chr(0b1010 + 0o145) + chr(1803 - 1753) + chr(53) + '\x31', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(1841 - 1730) + '\x33' + chr(0b110011) + chr(335 - 283), 49633 - 49625), nzTpIcepk0o8(chr(392 - 344) + '\157' + chr(0b110011 + 0o0) + chr(2704 - 2652) + '\x30', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(1407 - 1296) + chr(0b110010) + chr(50) + '\060', 0o10), nzTpIcepk0o8(chr(2271 - 2223) + chr(0b1101111) + '\x32' + '\x36' + '\x34', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b100001 + 0o22) + '\x37' + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(1640 - 1592) + chr(11525 - 11414) + chr(0b100111 + 0o12) + chr(1898 - 1847) + chr(0b101100 + 0o4), 32564 - 32556), nzTpIcepk0o8('\x30' + chr(0b1101011 + 0o4) + chr(1070 - 1021) + chr(55) + chr(1210 - 1155), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(729 - 680) + chr(50) + '\x30', 0b1000), nzTpIcepk0o8(chr(0b11110 + 0o22) + '\157' + chr(0b110001) + chr(0b101010 + 0o11) + chr(0b110111), 12759 - 12751), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(50) + chr(0b110100) + chr(50), 8), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(53) + chr(0b1000 + 0o50), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b100101 + 0o20) + chr(48), 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x8c'), chr(0b0 + 0o144) + '\145' + chr(4811 - 4712) + '\157' + chr(100) + chr(0b1100101))('\165' + chr(0b1110100) + chr(0b1100110) + chr(0b101100 + 0o1) + '\070') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def i4g20znNpwUV(ELQLGvoVr2Z_, kIMfkyypPTcC, ztC3O2ZXmsJr, D6Ev8Dnyj5Ex=nzTpIcepk0o8('\x30' + chr(111) + chr(48), 0o10)):
if dRKdVnHPFq7C(ELQLGvoVr2Z_, roI3spqORKae(ES5oEprVxulp(b'\xd6\xd5\xeb\x9a\xda\xa3\xba\xfe'), chr(1548 - 1448) + chr(3795 - 3694) + '\x63' + chr(0b1101111) + chr(7875 - 7775) + chr(0b1000111 + 0o36))(chr(0b1110101) + chr(0b111101 + 0o67) + chr(0b1001011 + 0o33) + '\055' + chr(56))):
return roI3spqORKae(ELQLGvoVr2Z_, roI3spqORKae(ES5oEprVxulp(b'\xd6\xd5\xeb\x9a\xda\xa3\xba\xfe'), '\x64' + chr(101) + '\x63' + '\x6f' + chr(0b1100100) + chr(2809 - 2708))(chr(0b111101 + 0o70) + chr(116) + '\146' + chr(0b101101) + chr(56)))(kIMfkyypPTcC, ztC3O2ZXmsJr, D6Ev8Dnyj5Ex)
else:
FfKOThdpoDTb = ELQLGvoVr2Z_.tobytes(kIMfkyypPTcC, D6Ev8Dnyj5Ex)
_1vzISbJ_R2i = MJ07XsN5uFgW(ELQLGvoVr2Z_)
if _1vzISbJ_R2i not in tWUh9gTVCsS3:
roI3spqORKae(tWUh9gTVCsS3, roI3spqORKae(ES5oEprVxulp(b'\xd7\x89\xc9\x8a\xc1\xb5\x92\xe2\xb0K\x8b['), chr(0b1100100) + chr(0b110000 + 0o65) + chr(1276 - 1177) + chr(111) + chr(0b101001 + 0o73) + chr(0b1001000 + 0o35))('\x75' + chr(7477 - 7361) + chr(0b111000 + 0o56) + chr(45) + chr(56)))(_1vzISbJ_R2i)
roI3spqORKae(EyN62Frii5S5, roI3spqORKae(ES5oEprVxulp(b'\xd1\xf0\xc9\xb8\xf7\x8e\xaa\xc0\xcdK\xafE'), chr(0b1100100) + chr(0b1100101) + chr(0b10010 + 0o121) + '\x6f' + chr(100) + '\x65')(chr(117) + '\x74' + '\146' + chr(199 - 154) + '\070'))(roI3spqORKae(ES5oEprVxulp(b'\xf2\xdb\xea\x9d\xcd\xb4\xfb\xb6\x86\r\xacP\xc7T\xa7{W\xd2\xbc\x13\x9a\x03\x12\xe5\xd1\x9f\x11\x0f\xdd\xae\x85\xf1\xd9\xdex\x16>+\xc7Z\xc4\xdb\xfb\x8b\xdb'), chr(0b1001 + 0o133) + '\145' + '\143' + '\157' + chr(100) + '\x65')('\165' + chr(0b1110100) + chr(0b1100110) + '\x2d' + '\070') % (_1vzISbJ_R2i,), QhZRiM1qvaW7)
return roI3spqORKae(ztC3O2ZXmsJr, roI3spqORKae(ES5oEprVxulp(b'\xcf\xd6\xa8\x86\xc0\xb6\xad\xa2\xb8]\xb9\r'), chr(0b111101 + 0o47) + chr(0b1000000 + 0o45) + chr(9084 - 8985) + chr(0b111 + 0o150) + chr(100) + chr(0b1100101))(chr(6192 - 6075) + '\x74' + '\x66' + chr(1364 - 1319) + chr(0b111000)))(FfKOThdpoDTb) |
hubo1016/namedstruct | namedstruct/namedstruct.py | _to_str | def _to_str(dumped_val, encoding='utf-8', ordered=True):
"""
Convert bytes in a dump value to str, allowing json encode
"""
_dict = OrderedDict if ordered else dict
if isinstance(dumped_val, dict):
return OrderedDict((k, _to_str(v, encoding)) for k,v in dumped_val.items())
elif isinstance(dumped_val, (list, tuple)):
return [_to_str(v, encoding) for v in dumped_val]
elif isinstance(dumped_val, bytes):
try:
d = dumped_val.decode('utf-8')
except Exception:
d = repr(dumped_val)
return d
else:
return dumped_val | python | def _to_str(dumped_val, encoding='utf-8', ordered=True):
"""
Convert bytes in a dump value to str, allowing json encode
"""
_dict = OrderedDict if ordered else dict
if isinstance(dumped_val, dict):
return OrderedDict((k, _to_str(v, encoding)) for k,v in dumped_val.items())
elif isinstance(dumped_val, (list, tuple)):
return [_to_str(v, encoding) for v in dumped_val]
elif isinstance(dumped_val, bytes):
try:
d = dumped_val.decode('utf-8')
except Exception:
d = repr(dumped_val)
return d
else:
return dumped_val | [
"def",
"_to_str",
"(",
"dumped_val",
",",
"encoding",
"=",
"'utf-8'",
",",
"ordered",
"=",
"True",
")",
":",
"_dict",
"=",
"OrderedDict",
"if",
"ordered",
"else",
"dict",
"if",
"isinstance",
"(",
"dumped_val",
",",
"dict",
")",
":",
"return",
"OrderedDict",
"(",
"(",
"k",
",",
"_to_str",
"(",
"v",
",",
"encoding",
")",
")",
"for",
"k",
",",
"v",
"in",
"dumped_val",
".",
"items",
"(",
")",
")",
"elif",
"isinstance",
"(",
"dumped_val",
",",
"(",
"list",
",",
"tuple",
")",
")",
":",
"return",
"[",
"_to_str",
"(",
"v",
",",
"encoding",
")",
"for",
"v",
"in",
"dumped_val",
"]",
"elif",
"isinstance",
"(",
"dumped_val",
",",
"bytes",
")",
":",
"try",
":",
"d",
"=",
"dumped_val",
".",
"decode",
"(",
"'utf-8'",
")",
"except",
"Exception",
":",
"d",
"=",
"repr",
"(",
"dumped_val",
")",
"return",
"d",
"else",
":",
"return",
"dumped_val"
] | Convert bytes in a dump value to str, allowing json encode | [
"Convert",
"bytes",
"in",
"a",
"dump",
"value",
"to",
"str",
"allowing",
"json",
"encode"
] | 5039026e0df4ce23003d212358918dbe1a6e1d76 | https://github.com/hubo1016/namedstruct/blob/5039026e0df4ce23003d212358918dbe1a6e1d76/namedstruct/namedstruct.py#L407-L423 | train | Convert bytes in a dump value to str allowing json encode | 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,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_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(0b100101 + 0o13) + chr(0b1101111) + chr(2207 - 2157) + chr(0b110111) + '\062', 33133 - 33125), nzTpIcepk0o8('\060' + '\x6f' + '\x33' + chr(0b110010) + chr(0b1000 + 0o56), ord("\x08")), nzTpIcepk0o8('\x30' + chr(445 - 334) + chr(0b110001) + chr(959 - 911) + chr(50), 62035 - 62027), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x32' + chr(542 - 487) + chr(0b110100), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(1728 - 1617) + '\064' + chr(51), 0o10), nzTpIcepk0o8('\060' + '\157' + '\x32' + chr(946 - 898) + '\x37', 0o10), nzTpIcepk0o8(chr(548 - 500) + chr(11683 - 11572) + chr(0b110011) + '\x30' + chr(1359 - 1309), ord("\x08")), nzTpIcepk0o8(chr(0b100000 + 0o20) + '\157' + chr(2508 - 2457) + chr(0b1 + 0o57) + chr(324 - 272), 0b1000), nzTpIcepk0o8('\060' + '\157' + chr(0b10110 + 0o34) + chr(2180 - 2127) + chr(0b11000 + 0o32), 0b1000), nzTpIcepk0o8(chr(1081 - 1033) + chr(0b11101 + 0o122) + chr(1370 - 1319) + '\066' + chr(0b100100 + 0o17), 0b1000), nzTpIcepk0o8(chr(48) + chr(7255 - 7144) + chr(0b1000 + 0o52) + chr(0b10100 + 0o35) + chr(0b11000 + 0o32), 0o10), nzTpIcepk0o8('\x30' + chr(0b10001 + 0o136) + chr(0b110010) + '\x34' + chr(54), 0o10), nzTpIcepk0o8(chr(1316 - 1268) + chr(0b11001 + 0o126) + chr(0b1001 + 0o52) + '\062' + chr(1605 - 1555), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1000101 + 0o52) + '\x31' + '\061' + chr(0b110010), 0b1000), nzTpIcepk0o8('\060' + '\157' + '\x33' + chr(2210 - 2162), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + '\x31' + chr(0b1011 + 0o53) + chr(0b100000 + 0o27), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(2261 - 2210) + chr(48) + '\062', 8), nzTpIcepk0o8(chr(1716 - 1668) + '\157' + chr(51) + '\061' + chr(54), 11127 - 11119), nzTpIcepk0o8(chr(0b101101 + 0o3) + chr(0b1101111) + '\062' + chr(0b110111) + chr(0b110000), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\062' + chr(1452 - 1398), 0o10), nzTpIcepk0o8(chr(1269 - 1221) + chr(0b101001 + 0o106) + chr(1502 - 1453) + chr(246 - 198) + chr(52), 35263 - 35255), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x33' + '\x36' + chr(0b101 + 0o57), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + '\x32' + chr(0b110110) + '\x37', 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(1554 - 1505) + chr(438 - 386) + chr(0b110100), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b11001 + 0o31) + chr(53) + chr(676 - 623), 26108 - 26100), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110001) + chr(1586 - 1534) + '\061', 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110001) + chr(0b110100) + chr(977 - 928), 8), nzTpIcepk0o8(chr(0b10100 + 0o34) + chr(0b1011100 + 0o23) + chr(487 - 438) + '\x35' + chr(0b100010 + 0o22), 0b1000), nzTpIcepk0o8(chr(1567 - 1519) + '\157' + chr(0b11110 + 0o22), 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(0b100111 + 0o12), 53966 - 53958), nzTpIcepk0o8('\060' + chr(0b110100 + 0o73) + chr(0b1 + 0o60) + '\063' + '\x32', ord("\x08")), nzTpIcepk0o8(chr(0b100010 + 0o16) + chr(0b1100000 + 0o17) + '\x31' + chr(0b1 + 0o64), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x32' + chr(52) + chr(0b110010), 0b1000), nzTpIcepk0o8(chr(0b10 + 0o56) + chr(4384 - 4273) + '\062' + '\x34' + chr(53), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1001 + 0o146) + chr(0b110011) + '\x37' + '\062', 0b1000), nzTpIcepk0o8(chr(2177 - 2129) + '\x6f' + chr(1251 - 1200) + chr(53) + '\060', 0b1000), nzTpIcepk0o8('\x30' + chr(2022 - 1911) + chr(51) + chr(50) + chr(55), ord("\x08")), nzTpIcepk0o8(chr(0b11111 + 0o21) + chr(0b11010 + 0o125) + chr(0b10 + 0o57) + '\060' + chr(1847 - 1798), 0o10), nzTpIcepk0o8(chr(48) + chr(1268 - 1157) + '\x33' + chr(0b100001 + 0o24) + chr(975 - 926), 0b1000), nzTpIcepk0o8(chr(436 - 388) + chr(9381 - 9270) + '\x35', 17675 - 17667)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(911 - 863) + '\157' + chr(0b110101) + chr(48), 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x94'), chr(7134 - 7034) + chr(101) + chr(0b1001010 + 0o31) + '\x6f' + '\144' + chr(0b1000011 + 0o42))(chr(2838 - 2721) + '\164' + '\146' + '\x2d' + chr(56)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def u8SWHEzn8K3G(SeLqSre4Q_D2, rt5yMsH2WFRk=roI3spqORKae(ES5oEprVxulp(b'\xcf\xa2$\x91\x1b'), '\144' + chr(0b1100101) + chr(99) + chr(0b110100 + 0o73) + chr(0b1001 + 0o133) + chr(0b1001101 + 0o30))(chr(0b101110 + 0o107) + chr(0b1101001 + 0o13) + chr(0b101111 + 0o67) + chr(1318 - 1273) + chr(213 - 157)), BeOubuVvS_vx=nzTpIcepk0o8('\060' + chr(0b110010 + 0o75) + chr(49), 8)):
N9lZTwLpCyIx = Ov4KLivfl4p6 if BeOubuVvS_vx else znjnJWK64FDT
if suIjIS24Zkqw(SeLqSre4Q_D2, znjnJWK64FDT):
return Ov4KLivfl4p6(((B6UAF1zReOyJ, u8SWHEzn8K3G(r7AA1pbLjb44, rt5yMsH2WFRk)) for (B6UAF1zReOyJ, r7AA1pbLjb44) in roI3spqORKae(SeLqSre4Q_D2, roI3spqORKae(ES5oEprVxulp(b'\xe3\x89,\xf2f\xfd\x8a\xf0\x99\x85\xd2\xcf'), chr(0b1100100) + chr(0b1100101) + chr(2056 - 1957) + chr(10474 - 10363) + chr(781 - 681) + chr(1014 - 913))('\x75' + chr(116) + chr(0b1100110) + '\055' + '\x38'))()))
elif suIjIS24Zkqw(SeLqSre4Q_D2, (H4NoA26ON7iG, nfNqtJL5aRaY)):
return [u8SWHEzn8K3G(r7AA1pbLjb44, rt5yMsH2WFRk) for r7AA1pbLjb44 in SeLqSre4Q_D2]
elif suIjIS24Zkqw(SeLqSre4Q_D2, QNQS9e6tJqMV):
try:
vPPlOXQgR3SM = SeLqSre4Q_D2.lfbFsdWlT3MB(roI3spqORKae(ES5oEprVxulp(b'\xcf\xa2$\x91\x1b'), chr(0b1100100) + chr(101) + '\x63' + chr(0b111001 + 0o66) + '\x64' + '\145')('\x75' + '\x74' + '\146' + chr(0b11001 + 0o24) + chr(56)))
except zfo2Sgkz3IVJ:
vPPlOXQgR3SM = VWshwTzZfwvC(SeLqSre4Q_D2)
return vPPlOXQgR3SM
else:
return SeLqSre4Q_D2 |
hubo1016/namedstruct | namedstruct/namedstruct.py | dump | def dump(val, humanread = True, dumpextra = False, typeinfo = DUMPTYPE_FLAT, ordered=True,
tostr=False, encoding='utf-8'):
'''
Convert a parsed NamedStruct (probably with additional NamedStruct as fields) into a
JSON-friendly format, with only Python primitives (dictionaries, lists, bytes, integers etc.)
Then you may use json.dumps, or pprint to further process the result.
:param val: parsed result, may contain NamedStruct
:param humanread: if True (default), convert raw data into readable format with type-defined formatters.
For example, enumerators are converted into names, IP addresses are converted into dotted formats, etc.
:param dumpextra: if True, dump "extra" data in '_extra' field. False (default) to ignore them.
:param typeinfo: Add struct type information in the dump result. May be the following values:
DUMPTYPE_FLAT ('flat')
add a field '_type' for the type information (default)
DUMPTYPE_KEY ('key')
convert the value to dictionary like: {'<struc_type>': value}
DUMPTYPE_NONE ('none')
do not add type information
:param tostr: if True, convert all bytes to str
:param encoding: if tostr=`True`, first try to decode bytes in `encoding`. If failed, use `repr()` instead.
:returns: "dump" format of val, suitable for JSON-encode or print.
'''
dumped = _dump(val, humanread, dumpextra, typeinfo, ordered)
if tostr:
dumped = _to_str(dumped, encoding, ordered)
return dumped | python | def dump(val, humanread = True, dumpextra = False, typeinfo = DUMPTYPE_FLAT, ordered=True,
tostr=False, encoding='utf-8'):
'''
Convert a parsed NamedStruct (probably with additional NamedStruct as fields) into a
JSON-friendly format, with only Python primitives (dictionaries, lists, bytes, integers etc.)
Then you may use json.dumps, or pprint to further process the result.
:param val: parsed result, may contain NamedStruct
:param humanread: if True (default), convert raw data into readable format with type-defined formatters.
For example, enumerators are converted into names, IP addresses are converted into dotted formats, etc.
:param dumpextra: if True, dump "extra" data in '_extra' field. False (default) to ignore them.
:param typeinfo: Add struct type information in the dump result. May be the following values:
DUMPTYPE_FLAT ('flat')
add a field '_type' for the type information (default)
DUMPTYPE_KEY ('key')
convert the value to dictionary like: {'<struc_type>': value}
DUMPTYPE_NONE ('none')
do not add type information
:param tostr: if True, convert all bytes to str
:param encoding: if tostr=`True`, first try to decode bytes in `encoding`. If failed, use `repr()` instead.
:returns: "dump" format of val, suitable for JSON-encode or print.
'''
dumped = _dump(val, humanread, dumpextra, typeinfo, ordered)
if tostr:
dumped = _to_str(dumped, encoding, ordered)
return dumped | [
"def",
"dump",
"(",
"val",
",",
"humanread",
"=",
"True",
",",
"dumpextra",
"=",
"False",
",",
"typeinfo",
"=",
"DUMPTYPE_FLAT",
",",
"ordered",
"=",
"True",
",",
"tostr",
"=",
"False",
",",
"encoding",
"=",
"'utf-8'",
")",
":",
"dumped",
"=",
"_dump",
"(",
"val",
",",
"humanread",
",",
"dumpextra",
",",
"typeinfo",
",",
"ordered",
")",
"if",
"tostr",
":",
"dumped",
"=",
"_to_str",
"(",
"dumped",
",",
"encoding",
",",
"ordered",
")",
"return",
"dumped"
] | Convert a parsed NamedStruct (probably with additional NamedStruct as fields) into a
JSON-friendly format, with only Python primitives (dictionaries, lists, bytes, integers etc.)
Then you may use json.dumps, or pprint to further process the result.
:param val: parsed result, may contain NamedStruct
:param humanread: if True (default), convert raw data into readable format with type-defined formatters.
For example, enumerators are converted into names, IP addresses are converted into dotted formats, etc.
:param dumpextra: if True, dump "extra" data in '_extra' field. False (default) to ignore them.
:param typeinfo: Add struct type information in the dump result. May be the following values:
DUMPTYPE_FLAT ('flat')
add a field '_type' for the type information (default)
DUMPTYPE_KEY ('key')
convert the value to dictionary like: {'<struc_type>': value}
DUMPTYPE_NONE ('none')
do not add type information
:param tostr: if True, convert all bytes to str
:param encoding: if tostr=`True`, first try to decode bytes in `encoding`. If failed, use `repr()` instead.
:returns: "dump" format of val, suitable for JSON-encode or print. | [
"Convert",
"a",
"parsed",
"NamedStruct",
"(",
"probably",
"with",
"additional",
"NamedStruct",
"as",
"fields",
")",
"into",
"a",
"JSON",
"-",
"friendly",
"format",
"with",
"only",
"Python",
"primitives",
"(",
"dictionaries",
"lists",
"bytes",
"integers",
"etc",
".",
")",
"Then",
"you",
"may",
"use",
"json",
".",
"dumps",
"or",
"pprint",
"to",
"further",
"process",
"the",
"result",
".",
":",
"param",
"val",
":",
"parsed",
"result",
"may",
"contain",
"NamedStruct",
":",
"param",
"humanread",
":",
"if",
"True",
"(",
"default",
")",
"convert",
"raw",
"data",
"into",
"readable",
"format",
"with",
"type",
"-",
"defined",
"formatters",
".",
"For",
"example",
"enumerators",
"are",
"converted",
"into",
"names",
"IP",
"addresses",
"are",
"converted",
"into",
"dotted",
"formats",
"etc",
".",
":",
"param",
"dumpextra",
":",
"if",
"True",
"dump",
"extra",
"data",
"in",
"_extra",
"field",
".",
"False",
"(",
"default",
")",
"to",
"ignore",
"them",
".",
":",
"param",
"typeinfo",
":",
"Add",
"struct",
"type",
"information",
"in",
"the",
"dump",
"result",
".",
"May",
"be",
"the",
"following",
"values",
":",
"DUMPTYPE_FLAT",
"(",
"flat",
")",
"add",
"a",
"field",
"_type",
"for",
"the",
"type",
"information",
"(",
"default",
")",
"DUMPTYPE_KEY",
"(",
"key",
")",
"convert",
"the",
"value",
"to",
"dictionary",
"like",
":",
"{",
"<struc_type",
">",
":",
"value",
"}",
"DUMPTYPE_NONE",
"(",
"none",
")",
"do",
"not",
"add",
"type",
"information",
":",
"param",
"tostr",
":",
"if",
"True",
"convert",
"all",
"bytes",
"to",
"str",
":",
"param",
"encoding",
":",
"if",
"tostr",
"=",
"True",
"first",
"try",
"to",
"decode",
"bytes",
"in",
"encoding",
".",
"If",
"failed",
"use",
"repr",
"()",
"instead",
".",
":",
"returns",
":",
"dump",
"format",
"of",
"val",
"suitable",
"for",
"JSON",
"-",
"encode",
"or",
"print",
"."
] | 5039026e0df4ce23003d212358918dbe1a6e1d76 | https://github.com/hubo1016/namedstruct/blob/5039026e0df4ce23003d212358918dbe1a6e1d76/namedstruct/namedstruct.py#L426-L460 | train | Dump a value into a JSON - 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,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod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,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__
ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(1938 - 1890) + chr(0b100111 + 0o110) + chr(52) + chr(0b11100 + 0o31), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(50) + chr(49) + chr(51), 0b1000), nzTpIcepk0o8(chr(0b1011 + 0o45) + chr(7747 - 7636) + chr(0b110110) + chr(0b100001 + 0o25), 0b1000), nzTpIcepk0o8('\060' + chr(111) + '\x32' + chr(50) + '\061', ord("\x08")), nzTpIcepk0o8(chr(137 - 89) + chr(6303 - 6192) + '\061' + chr(0b110111) + chr(49), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\061' + chr(48) + '\062', 0b1000), nzTpIcepk0o8('\x30' + chr(0b101101 + 0o102) + '\x31' + chr(0b11001 + 0o34) + '\060', 0b1000), nzTpIcepk0o8('\060' + chr(0b111101 + 0o62) + chr(2566 - 2515) + '\x32' + chr(2377 - 2327), 58288 - 58280), nzTpIcepk0o8(chr(48) + '\x6f' + chr(2361 - 2311) + '\067' + '\x37', 0o10), nzTpIcepk0o8(chr(48) + chr(0b1000 + 0o147) + chr(51) + chr(55) + '\063', 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(2233 - 2184) + '\066' + '\x31', 0b1000), nzTpIcepk0o8('\x30' + chr(111) + '\x32' + chr(51) + chr(0b110100), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(1652 - 1602) + chr(0b110000) + chr(51), 0o10), nzTpIcepk0o8(chr(0b111 + 0o51) + '\x6f' + '\065', ord("\x08")), nzTpIcepk0o8('\x30' + chr(2411 - 2300) + '\061' + chr(0b11101 + 0o25) + chr(0b110000 + 0o2), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1000111 + 0o50) + chr(0b110011) + '\061' + chr(0b110010), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(4631 - 4520) + '\x31' + chr(52) + '\x31', 38424 - 38416), nzTpIcepk0o8(chr(1604 - 1556) + chr(9356 - 9245) + chr(0b110010) + '\x35' + chr(0b110000), 8599 - 8591), nzTpIcepk0o8(chr(48) + chr(8503 - 8392) + '\x32' + chr(295 - 244) + '\060', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(7852 - 7741) + chr(0b10111 + 0o34) + chr(49) + chr(0b10100 + 0o41), 10320 - 10312), nzTpIcepk0o8(chr(805 - 757) + chr(111) + '\x31' + chr(55) + '\x31', 8), nzTpIcepk0o8(chr(48) + chr(0b1011010 + 0o25) + '\x35' + chr(0b10000 + 0o43), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1001110 + 0o41) + '\063' + chr(2822 - 2767) + chr(48), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(1763 - 1712) + chr(49) + '\067', 37521 - 37513), nzTpIcepk0o8(chr(2124 - 2076) + chr(111) + '\063' + chr(0b100010 + 0o23) + '\x33', 0b1000), nzTpIcepk0o8(chr(0b110 + 0o52) + '\157' + '\x32' + chr(54) + '\x31', 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + '\062' + chr(0b110001) + '\x32', 24751 - 24743), nzTpIcepk0o8(chr(1314 - 1266) + chr(0b1010110 + 0o31) + chr(0b110010) + chr(0b1110 + 0o51) + '\x34', ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110101), 8), nzTpIcepk0o8('\x30' + chr(7686 - 7575) + chr(0b1001 + 0o54) + chr(52), 46382 - 46374), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b10110 + 0o34) + chr(0b110011) + chr(0b110010), 0b1000), nzTpIcepk0o8(chr(1933 - 1885) + chr(0b1101111) + chr(0b110101) + '\x31', 32996 - 32988), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(51), 0o10), nzTpIcepk0o8('\x30' + chr(11152 - 11041) + '\063' + chr(54) + '\x36', 6382 - 6374), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x37' + chr(0b110111), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(764 - 653) + chr(0b110011) + '\x37' + '\062', ord("\x08")), nzTpIcepk0o8(chr(0b1110 + 0o42) + chr(0b11100 + 0o123) + '\061' + chr(0b10110 + 0o35) + chr(55), 0o10), nzTpIcepk0o8(chr(1480 - 1432) + chr(9510 - 9399) + chr(0b110011) + chr(0b100001 + 0o22) + chr(0b1110 + 0o45), ord("\x08")), nzTpIcepk0o8('\x30' + chr(7323 - 7212) + chr(1934 - 1880) + '\x35', 10320 - 10312), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\067', 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(561 - 513) + chr(4290 - 4179) + chr(53) + '\x30', 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x0b'), chr(7200 - 7100) + chr(9238 - 9137) + '\x63' + chr(0b1101111) + '\x64' + chr(7789 - 7688))(chr(0b100000 + 0o125) + chr(0b1110100) + chr(0b11000 + 0o116) + chr(0b101101) + chr(56)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def oClt1iVDbhHa(pXwvT17vr09s, N2xg9NkRhzNJ=nzTpIcepk0o8('\060' + chr(0b1001000 + 0o47) + '\061', ord("\x08")), idbMy8ie8d42=nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(48), ord("\x08")), OHh68ef9ExSW=qoRHFlVdxZ0Y, BeOubuVvS_vx=nzTpIcepk0o8('\x30' + chr(5680 - 5569) + chr(0b110001), 8), LGIjo7cP3vTv=nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(48), 8), rt5yMsH2WFRk=roI3spqORKae(ES5oEprVxulp(b'P\xffP\xbcA'), '\x64' + chr(0b1000011 + 0o42) + '\x63' + chr(0b1101111) + chr(100) + '\145')(chr(0b11011 + 0o132) + chr(0b1000100 + 0o60) + chr(0b1100110) + '\x2d' + '\x38')):
hyUyTI_4beIk = EMYuo9OX1Zc0(pXwvT17vr09s, N2xg9NkRhzNJ, idbMy8ie8d42, OHh68ef9ExSW, BeOubuVvS_vx)
if LGIjo7cP3vTv:
hyUyTI_4beIk = u8SWHEzn8K3G(hyUyTI_4beIk, rt5yMsH2WFRk, BeOubuVvS_vx)
return hyUyTI_4beIk |
hubo1016/namedstruct | namedstruct/namedstruct.py | sizefromlen | def sizefromlen(limit, *properties):
'''
Factory to generate a function which get size from specified field with limits.
Often used in nstruct "size" parameter.
To retrieve size without limit, simply use lambda expression: lambda x: x.header.length
:param limit: the maximum size limit, if the acquired value if larger then the limit, BadLenError is raised
to protect against serious result like memory overflow or dead loop.
:param properties: the name of the specified fields. Specify more than one string to form a property path,
like: sizefromlen(256, 'header', 'length') -> s.header.length
:returns: a function which takes a NamedStruct as parameter, and returns the length value from specified
property path.
'''
def func(namedstruct):
v = namedstruct._target
for p in properties:
v = getattr(v, p)
if v > limit:
raise BadLenError('Struct length exceeds limit ' + str(limit))
return v
return func | python | def sizefromlen(limit, *properties):
'''
Factory to generate a function which get size from specified field with limits.
Often used in nstruct "size" parameter.
To retrieve size without limit, simply use lambda expression: lambda x: x.header.length
:param limit: the maximum size limit, if the acquired value if larger then the limit, BadLenError is raised
to protect against serious result like memory overflow or dead loop.
:param properties: the name of the specified fields. Specify more than one string to form a property path,
like: sizefromlen(256, 'header', 'length') -> s.header.length
:returns: a function which takes a NamedStruct as parameter, and returns the length value from specified
property path.
'''
def func(namedstruct):
v = namedstruct._target
for p in properties:
v = getattr(v, p)
if v > limit:
raise BadLenError('Struct length exceeds limit ' + str(limit))
return v
return func | [
"def",
"sizefromlen",
"(",
"limit",
",",
"*",
"properties",
")",
":",
"def",
"func",
"(",
"namedstruct",
")",
":",
"v",
"=",
"namedstruct",
".",
"_target",
"for",
"p",
"in",
"properties",
":",
"v",
"=",
"getattr",
"(",
"v",
",",
"p",
")",
"if",
"v",
">",
"limit",
":",
"raise",
"BadLenError",
"(",
"'Struct length exceeds limit '",
"+",
"str",
"(",
"limit",
")",
")",
"return",
"v",
"return",
"func"
] | Factory to generate a function which get size from specified field with limits.
Often used in nstruct "size" parameter.
To retrieve size without limit, simply use lambda expression: lambda x: x.header.length
:param limit: the maximum size limit, if the acquired value if larger then the limit, BadLenError is raised
to protect against serious result like memory overflow or dead loop.
:param properties: the name of the specified fields. Specify more than one string to form a property path,
like: sizefromlen(256, 'header', 'length') -> s.header.length
:returns: a function which takes a NamedStruct as parameter, and returns the length value from specified
property path. | [
"Factory",
"to",
"generate",
"a",
"function",
"which",
"get",
"size",
"from",
"specified",
"field",
"with",
"limits",
".",
"Often",
"used",
"in",
"nstruct",
"size",
"parameter",
".",
"To",
"retrieve",
"size",
"without",
"limit",
"simply",
"use",
"lambda",
"expression",
":",
"lambda",
"x",
":",
"x",
".",
"header",
".",
"length",
":",
"param",
"limit",
":",
"the",
"maximum",
"size",
"limit",
"if",
"the",
"acquired",
"value",
"if",
"larger",
"then",
"the",
"limit",
"BadLenError",
"is",
"raised",
"to",
"protect",
"against",
"serious",
"result",
"like",
"memory",
"overflow",
"or",
"dead",
"loop",
".",
":",
"param",
"properties",
":",
"the",
"name",
"of",
"the",
"specified",
"fields",
".",
"Specify",
"more",
"than",
"one",
"string",
"to",
"form",
"a",
"property",
"path",
"like",
":",
"sizefromlen",
"(",
"256",
"header",
"length",
")",
"-",
">",
"s",
".",
"header",
".",
"length",
":",
"returns",
":",
"a",
"function",
"which",
"takes",
"a",
"NamedStruct",
"as",
"parameter",
"and",
"returns",
"the",
"length",
"value",
"from",
"specified",
"property",
"path",
"."
] | 5039026e0df4ce23003d212358918dbe1a6e1d76 | https://github.com/hubo1016/namedstruct/blob/5039026e0df4ce23003d212358918dbe1a6e1d76/namedstruct/named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_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(0b1000111 + 0o50) + chr(0b10 + 0o61) + chr(0b100 + 0o56) + '\x34', 56731 - 56723), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b0 + 0o62) + chr(0b110001) + '\061', 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(49) + chr(0b110000) + chr(0b110100), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(49) + '\x33' + chr(53), 0b1000), nzTpIcepk0o8(chr(0b10111 + 0o31) + chr(5221 - 5110) + chr(1898 - 1846) + chr(0b101 + 0o56), 57701 - 57693), nzTpIcepk0o8(chr(0b11001 + 0o27) + chr(0b1101111) + chr(1820 - 1769) + chr(1294 - 1244) + '\064', 8), nzTpIcepk0o8(chr(0b110 + 0o52) + chr(0b1010110 + 0o31) + chr(49) + '\x32' + chr(1979 - 1931), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x33' + chr(150 - 97) + '\x33', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x32' + '\x37' + '\x37', 0b1000), nzTpIcepk0o8(chr(579 - 531) + chr(12178 - 12067) + chr(0b110011) + chr(0b110101) + chr(0b100001 + 0o17), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + '\x31' + '\x31' + '\062', 56361 - 56353), nzTpIcepk0o8(chr(0b11111 + 0o21) + '\x6f' + chr(0b110111) + chr(0b110001), 61242 - 61234), nzTpIcepk0o8('\060' + chr(11365 - 11254) + chr(146 - 96) + chr(53) + '\064', ord("\x08")), nzTpIcepk0o8(chr(0b10111 + 0o31) + '\157' + chr(49) + chr(49) + chr(0b110000 + 0o1), 56682 - 56674), nzTpIcepk0o8(chr(1897 - 1849) + '\157' + chr(0b11110 + 0o24) + chr(0b110011) + chr(0b110010), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(2128 - 2073) + chr(0b110111), 3118 - 3110), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(49) + chr(0b110110) + '\x37', 26579 - 26571), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(719 - 665) + chr(54 - 4), 0b1000), nzTpIcepk0o8(chr(0b100000 + 0o20) + chr(1772 - 1661) + chr(1868 - 1813) + chr(0b100010 + 0o16), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\061' + '\066' + chr(1959 - 1907), ord("\x08")), nzTpIcepk0o8(chr(0b11001 + 0o27) + chr(0b1101111) + chr(50) + chr(0b110110) + chr(0b10111 + 0o33), 10548 - 10540), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x33' + '\x31' + chr(0b110110), 31546 - 31538), nzTpIcepk0o8(chr(0b110000) + chr(8876 - 8765) + chr(0b10001 + 0o41) + '\x32' + chr(0b1011 + 0o51), ord("\x08")), nzTpIcepk0o8(chr(0b10110 + 0o32) + chr(111) + '\063' + '\062' + '\065', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1000100 + 0o53) + '\061', 0o10), nzTpIcepk0o8(chr(48) + chr(465 - 354) + chr(49) + '\x30' + '\x32', 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b11001 + 0o31) + '\x31' + chr(55), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(0b10111 + 0o32) + chr(1225 - 1174) + '\x37', ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(51) + chr(0b10000 + 0o45), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + '\062' + chr(0b1 + 0o65) + '\x33', 0o10), nzTpIcepk0o8(chr(48) + chr(111) + '\x32' + chr(0b100011 + 0o22), 58176 - 58168), nzTpIcepk0o8(chr(48) + '\157' + '\x31' + chr(49) + '\x30', 0o10), nzTpIcepk0o8(chr(0b101110 + 0o2) + '\x6f' + '\062' + chr(0b101001 + 0o11) + chr(0b110 + 0o61), ord("\x08")), nzTpIcepk0o8(chr(0b11 + 0o55) + chr(0b101100 + 0o103) + chr(0b110011) + '\x32' + '\063', 9733 - 9725), nzTpIcepk0o8('\060' + chr(5426 - 5315) + chr(0b110001) + '\065', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(50) + '\x33', 54320 - 54312), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(49) + chr(2615 - 2561) + chr(0b111 + 0o51), 0o10), nzTpIcepk0o8(chr(67 - 19) + '\157' + '\061' + '\x36' + chr(52), 8), nzTpIcepk0o8('\060' + chr(654 - 543) + chr(50) + chr(0b1010 + 0o46) + chr(54), 5533 - 5525), nzTpIcepk0o8(chr(48) + chr(0b111100 + 0o63) + chr(644 - 592) + chr(0b110100), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + chr(5113 - 5002) + '\x35' + chr(48), ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xfa'), chr(0b1100100) + chr(0b1100010 + 0o3) + '\x63' + '\x6f' + '\x64' + '\x65')('\165' + chr(0b110001 + 0o103) + '\146' + chr(1839 - 1794) + chr(0b111000)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def g4k_MVlgFvdn(gXahiMxE912j, *UtZvTnutzMHg):
def h0klhChk4Vv6(TtOW53BH7FVE):
r7AA1pbLjb44 = TtOW53BH7FVE.iZE3YChKSTaK
for fSdw5wwLo9MO in UtZvTnutzMHg:
r7AA1pbLjb44 = roI3spqORKae(r7AA1pbLjb44, fSdw5wwLo9MO)
if r7AA1pbLjb44 > gXahiMxE912j:
raise MyWxq63xCYy6(roI3spqORKae(ES5oEprVxulp(b'\x87\xfd6(@\xa0p\x87\xda\x86-M\xc4i\xffG\x14W]\x10\xc1\xee\xf8\xbcl+\xfb\x7f'), chr(0b1001010 + 0o32) + '\x65' + '\x63' + chr(7879 - 7768) + '\144' + chr(0b1100101))('\x75' + chr(0b10 + 0o162) + '\146' + chr(0b101101) + chr(0b111000)) + N9zlRy29S1SS(gXahiMxE912j))
return r7AA1pbLjb44
return h0klhChk4Vv6 |
hubo1016/namedstruct | namedstruct/namedstruct.py | packsize | def packsize(*properties):
'''
Revert to sizefromlen, store the struct size (len(struct)) to specified property path. The size includes
padding. To store the size without padding, use packrealsize() instead. Often used in nstruct "prepack"
parameter.
:param properties: specified field name, same as sizefromlen.
:returns: a function which takes a NamedStruct as parameter, and pack the size to specified field.
'''
def func(namedstruct):
v = namedstruct._target
for p in properties[:-1]:
v = getattr(v, p)
setattr(v, properties[-1], len(namedstruct))
return func | python | def packsize(*properties):
'''
Revert to sizefromlen, store the struct size (len(struct)) to specified property path. The size includes
padding. To store the size without padding, use packrealsize() instead. Often used in nstruct "prepack"
parameter.
:param properties: specified field name, same as sizefromlen.
:returns: a function which takes a NamedStruct as parameter, and pack the size to specified field.
'''
def func(namedstruct):
v = namedstruct._target
for p in properties[:-1]:
v = getattr(v, p)
setattr(v, properties[-1], len(namedstruct))
return func | [
"def",
"packsize",
"(",
"*",
"properties",
")",
":",
"def",
"func",
"(",
"namedstruct",
")",
":",
"v",
"=",
"namedstruct",
".",
"_target",
"for",
"p",
"in",
"properties",
"[",
":",
"-",
"1",
"]",
":",
"v",
"=",
"getattr",
"(",
"v",
",",
"p",
")",
"setattr",
"(",
"v",
",",
"properties",
"[",
"-",
"1",
"]",
",",
"len",
"(",
"namedstruct",
")",
")",
"return",
"func"
] | Revert to sizefromlen, store the struct size (len(struct)) to specified property path. The size includes
padding. To store the size without padding, use packrealsize() instead. Often used in nstruct "prepack"
parameter.
:param properties: specified field name, same as sizefromlen.
:returns: a function which takes a NamedStruct as parameter, and pack the size to specified field. | [
"Revert",
"to",
"sizefromlen",
"store",
"the",
"struct",
"size",
"(",
"len",
"(",
"struct",
"))",
"to",
"specified",
"property",
"path",
".",
"The",
"size",
"includes",
"padding",
".",
"To",
"store",
"the",
"size",
"without",
"padding",
"use",
"packrealsize",
"()",
"instead",
".",
"Often",
"used",
"in",
"nstruct",
"prepack",
"parameter",
".",
":",
"param",
"properties",
":",
"specified",
"field",
"name",
"same",
"as",
"sizefromlen",
".",
":",
"returns",
":",
"a",
"function",
"which",
"takes",
"a",
"NamedStruct",
"as",
"parameter",
"and",
"pack",
"the",
"size",
"to",
"specified",
"field",
"."
] | 5039026e0df4ce23003d212358918dbe1a6e1d76 | https://github.com/hubo1016/namedstruct/blob/5039026e0df4ce23003d212358918dbe1a6e1d76/namedstruct/namedstruct.py#L544-L560 | train | Returns a function that packs the size of a named struct to the specified property path. | GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,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('\x30' + chr(0b11111 + 0o120) + '\063' + chr(0b110100 + 0o1) + '\065', 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(0b10000 + 0o42) + chr(54) + '\065', 0o10), nzTpIcepk0o8(chr(1872 - 1824) + '\157' + chr(0b110011) + '\065' + chr(2232 - 2177), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(0b11100 + 0o27) + '\064', 0b1000), nzTpIcepk0o8(chr(48) + chr(6512 - 6401) + chr(92 - 43) + chr(0b1100 + 0o46) + chr(0b11010 + 0o34), ord("\x08")), nzTpIcepk0o8(chr(522 - 474) + chr(0b111110 + 0o61) + chr(0b11010 + 0o34) + chr(1369 - 1314), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(49) + chr(0b110101) + '\066', 20967 - 20959), nzTpIcepk0o8(chr(2297 - 2249) + chr(0b1000000 + 0o57) + '\062' + chr(0b110100) + chr(2314 - 2259), 31832 - 31824), nzTpIcepk0o8(chr(0b110000) + chr(3185 - 3074) + chr(0b110011) + chr(51) + chr(0b101000 + 0o16), 0b1000), nzTpIcepk0o8(chr(48) + chr(12229 - 12118) + '\x32' + chr(0b110000) + chr(1753 - 1701), 0b1000), nzTpIcepk0o8(chr(0b10110 + 0o32) + '\157' + chr(341 - 287) + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + '\x32' + chr(0b110000 + 0o5), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(999 - 950) + chr(50) + chr(0b101000 + 0o10), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b100010 + 0o20) + '\064' + chr(0b11111 + 0o30), 8), nzTpIcepk0o8('\060' + chr(2316 - 2205) + chr(0b110010) + '\060' + chr(0b110001), 0b1000), nzTpIcepk0o8('\060' + '\157' + chr(0b10 + 0o60) + chr(52) + chr(2508 - 2454), 12710 - 12702), nzTpIcepk0o8('\x30' + '\x6f' + chr(51) + chr(51) + chr(0b101101 + 0o10), 6305 - 6297), nzTpIcepk0o8('\060' + chr(111) + chr(0b101100 + 0o6) + chr(0b110001) + chr(1187 - 1135), 32700 - 32692), nzTpIcepk0o8(chr(0b11 + 0o55) + chr(0b1101111) + chr(51) + '\x32' + '\x32', ord("\x08")), nzTpIcepk0o8('\060' + chr(5048 - 4937) + chr(0b10100 + 0o42) + '\x35', 0b1000), nzTpIcepk0o8('\x30' + chr(111) + '\063' + chr(55) + chr(0b110000), 55435 - 55427), nzTpIcepk0o8(chr(0b110000) + chr(0b1001100 + 0o43) + chr(2247 - 2192) + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(0b1110 + 0o42) + chr(4304 - 4193) + chr(1069 - 1019) + chr(80 - 30) + chr(0b100010 + 0o20), ord("\x08")), nzTpIcepk0o8(chr(0b10000 + 0o40) + chr(1944 - 1833) + '\x32' + '\x35', 8), nzTpIcepk0o8(chr(48) + chr(3568 - 3457) + '\x33' + chr(2262 - 2208) + '\x32', ord("\x08")), nzTpIcepk0o8(chr(1596 - 1548) + chr(8313 - 8202) + '\x31' + chr(0b11111 + 0o27) + chr(0b1000 + 0o57), 0b1000), nzTpIcepk0o8(chr(0b100010 + 0o16) + chr(111) + '\x32', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(52) + chr(2212 - 2160), 57716 - 57708), nzTpIcepk0o8(chr(0b1111 + 0o41) + '\157' + '\061' + chr(0b110101) + chr(0b110011), 37556 - 37548), nzTpIcepk0o8('\x30' + chr(2444 - 2333) + chr(51) + '\x33' + '\x33', ord("\x08")), nzTpIcepk0o8(chr(0b101100 + 0o4) + '\157' + '\061' + chr(520 - 466) + '\x31', ord("\x08")), nzTpIcepk0o8(chr(0b11011 + 0o25) + chr(111) + chr(195 - 144) + '\061' + chr(2347 - 2297), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x32' + chr(2138 - 2086), 0o10), nzTpIcepk0o8('\x30' + chr(10191 - 10080) + '\061' + chr(0b101101 + 0o12) + chr(2214 - 2164), 0b1000), nzTpIcepk0o8(chr(672 - 624) + chr(4063 - 3952) + chr(383 - 333) + '\x30' + chr(2298 - 2243), 0o10), nzTpIcepk0o8('\060' + chr(0b1010110 + 0o31) + chr(49) + chr(0b110001), 0b1000), nzTpIcepk0o8('\x30' + chr(2935 - 2824) + '\x32' + chr(2477 - 2427) + chr(0b110000), 25262 - 25254), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(660 - 606) + '\x37', 8), nzTpIcepk0o8(chr(48) + '\157' + chr(0b11001 + 0o32) + chr(0b110001) + chr(2312 - 2260), 5765 - 5757), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\063' + chr(290 - 241) + chr(2087 - 2037), 8)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(0b1101010 + 0o5) + '\065' + '\x30', 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xc3'), '\144' + chr(0b111101 + 0o50) + chr(0b1100011) + chr(0b1101111) + chr(100) + '\x65')(chr(0b101000 + 0o115) + chr(10946 - 10830) + chr(0b110101 + 0o61) + '\055' + chr(0b11 + 0o65)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def m_WntfYfD3w0(*UtZvTnutzMHg):
def h0klhChk4Vv6(TtOW53BH7FVE):
r7AA1pbLjb44 = TtOW53BH7FVE.iZE3YChKSTaK
for fSdw5wwLo9MO in UtZvTnutzMHg[:-nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b1100 + 0o45), ord("\x08"))]:
r7AA1pbLjb44 = roI3spqORKae(r7AA1pbLjb44, fSdw5wwLo9MO)
lCf1uzpaIUMv(r7AA1pbLjb44, UtZvTnutzMHg[-nzTpIcepk0o8(chr(2208 - 2160) + '\x6f' + chr(49), 8)], ftfygxgFas5X(TtOW53BH7FVE))
return h0klhChk4Vv6 |
hubo1016/namedstruct | namedstruct/namedstruct.py | packrealsize | def packrealsize(*properties):
'''
Revert to sizefromlen, pack the struct real size (struct._realsize()) to specified property path.
Unlike packsize, the size without padding is stored. Often used in nstruct "prepack" parameter.
:param properties: specified field name, same as sizefromlen.
:returns: a function which takes a NamedStruct as parameter, and pack the size to specified field.
'''
def func(namedstruct):
v = namedstruct._target
for p in properties[:-1]:
v = getattr(v, p)
setattr(v, properties[-1], namedstruct._realsize())
return func | python | def packrealsize(*properties):
'''
Revert to sizefromlen, pack the struct real size (struct._realsize()) to specified property path.
Unlike packsize, the size without padding is stored. Often used in nstruct "prepack" parameter.
:param properties: specified field name, same as sizefromlen.
:returns: a function which takes a NamedStruct as parameter, and pack the size to specified field.
'''
def func(namedstruct):
v = namedstruct._target
for p in properties[:-1]:
v = getattr(v, p)
setattr(v, properties[-1], namedstruct._realsize())
return func | [
"def",
"packrealsize",
"(",
"*",
"properties",
")",
":",
"def",
"func",
"(",
"namedstruct",
")",
":",
"v",
"=",
"namedstruct",
".",
"_target",
"for",
"p",
"in",
"properties",
"[",
":",
"-",
"1",
"]",
":",
"v",
"=",
"getattr",
"(",
"v",
",",
"p",
")",
"setattr",
"(",
"v",
",",
"properties",
"[",
"-",
"1",
"]",
",",
"namedstruct",
".",
"_realsize",
"(",
")",
")",
"return",
"func"
] | Revert to sizefromlen, pack the struct real size (struct._realsize()) to specified property path.
Unlike packsize, the size without padding is stored. Often used in nstruct "prepack" parameter.
:param properties: specified field name, same as sizefromlen.
:returns: a function which takes a NamedStruct as parameter, and pack the size to specified field. | [
"Revert",
"to",
"sizefromlen",
"pack",
"the",
"struct",
"real",
"size",
"(",
"struct",
".",
"_realsize",
"()",
")",
"to",
"specified",
"property",
"path",
".",
"Unlike",
"packsize",
"the",
"size",
"without",
"padding",
"is",
"stored",
".",
"Often",
"used",
"in",
"nstruct",
"prepack",
"parameter",
".",
":",
"param",
"properties",
":",
"specified",
"field",
"name",
"same",
"as",
"sizefromlen",
".",
":",
"returns",
":",
"a",
"function",
"which",
"takes",
"a",
"NamedStruct",
"as",
"parameter",
"and",
"pack",
"the",
"size",
"to",
"specified",
"field",
"."
] | 5039026e0df4ce23003d212358918dbe1a6e1d76 | https://github.com/hubo1016/namedstruct/blob/5039026e0df4ce23003d212358918dbe1a6e1d76/namedstruct/namedstruct.py#L562-L577 | train | Returns a function that packs the real size of the namedstruct to the specified property path. | GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej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hPy2rYf,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(4683 - 4572) + '\061' + chr(0b110 + 0o57) + chr(0b10101 + 0o34), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b110001 + 0o76) + chr(2230 - 2180) + '\062' + chr(0b1101 + 0o50), ord("\x08")), nzTpIcepk0o8(chr(1442 - 1394) + chr(9236 - 9125) + chr(1042 - 992) + chr(55) + '\x35', ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + '\x33' + chr(0b11000 + 0o32) + chr(0b11001 + 0o30), 0o10), nzTpIcepk0o8('\060' + chr(111) + '\061' + chr(0b10100 + 0o35) + chr(0b100111 + 0o15), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110001) + chr(0b110010) + chr(0b11001 + 0o33), 51832 - 51824), nzTpIcepk0o8(chr(48) + chr(3560 - 3449) + chr(0b110100 + 0o3) + chr(0b100 + 0o57), 8700 - 8692), nzTpIcepk0o8('\x30' + chr(0b11111 + 0o120) + chr(49) + chr(0b100110 + 0o15) + '\x30', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b101010 + 0o14) + chr(789 - 736), ord("\x08")), nzTpIcepk0o8('\x30' + chr(6405 - 6294) + '\x32' + chr(0b110101 + 0o0) + '\x34', 0o10), nzTpIcepk0o8(chr(1770 - 1722) + chr(111) + chr(0b110001) + chr(1918 - 1867) + chr(0b110111), ord("\x08")), nzTpIcepk0o8(chr(0b11011 + 0o25) + '\157' + chr(0b0 + 0o61) + chr(0b10000 + 0o47) + chr(50), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\063' + chr(0b0 + 0o61) + chr(0b110 + 0o52), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x33' + '\065' + chr(54), ord("\x08")), nzTpIcepk0o8(chr(0b0 + 0o60) + chr(111) + '\061' + chr(1778 - 1724) + chr(0b110111), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(2042 - 1993) + '\067' + chr(270 - 218), 0o10), nzTpIcepk0o8('\060' + chr(7099 - 6988) + chr(682 - 632) + chr(48) + chr(53), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1011 + 0o144) + '\x32' + chr(0b100000 + 0o23) + chr(0b10010 + 0o36), 0b1000), nzTpIcepk0o8('\060' + '\157' + chr(51) + chr(0b100111 + 0o17) + '\x31', 52473 - 52465), nzTpIcepk0o8('\060' + chr(0b1000110 + 0o51) + '\x32' + chr(55) + chr(48), 0o10), nzTpIcepk0o8(chr(0b110 + 0o52) + chr(0b1101111) + chr(1877 - 1825) + chr(51), 0b1000), nzTpIcepk0o8(chr(640 - 592) + chr(0b1111 + 0o140) + chr(0b1 + 0o60) + chr(49) + chr(0b110000), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + '\061' + '\x33' + chr(0b101100 + 0o5), ord("\x08")), nzTpIcepk0o8(chr(1279 - 1231) + chr(0b1101111) + '\x31' + chr(918 - 869) + chr(0b110100), 8), nzTpIcepk0o8('\060' + chr(111) + '\x33' + '\x31' + chr(2288 - 2235), 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(2343 - 2292) + chr(50) + '\x37', 0o10), nzTpIcepk0o8(chr(562 - 514) + chr(0b1101111) + chr(0b1 + 0o61) + chr(50), 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(0b110010) + chr(0b110111) + chr(0b110011), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b110100 + 0o73) + chr(596 - 546) + '\x31' + '\063', 0b1000), nzTpIcepk0o8('\060' + chr(0b1011 + 0o144) + chr(50) + '\x32' + chr(0b110111), 0b1000), nzTpIcepk0o8('\060' + chr(0b101110 + 0o101) + '\064' + '\x34', 0o10), nzTpIcepk0o8(chr(0b1001 + 0o47) + '\157' + chr(1067 - 1018) + '\x37' + '\064', 8), nzTpIcepk0o8(chr(48) + '\x6f' + chr(551 - 500) + chr(50) + chr(50), ord("\x08")), nzTpIcepk0o8(chr(602 - 554) + chr(10317 - 10206) + chr(0b11001 + 0o30) + chr(0b110010) + '\065', 27276 - 27268), nzTpIcepk0o8('\060' + chr(0b1100100 + 0o13) + '\x31' + chr(48) + chr(55), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + '\063' + chr(1395 - 1340), 0o10), nzTpIcepk0o8('\x30' + chr(111) + '\061' + chr(52) + chr(0b110 + 0o60), ord("\x08")), nzTpIcepk0o8(chr(0b11011 + 0o25) + chr(0b1101111) + '\x32' + chr(0b10111 + 0o33) + chr(0b110000), ord("\x08")), nzTpIcepk0o8(chr(864 - 816) + '\x6f' + '\067', 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110001 + 0o1) + chr(308 - 259) + chr(503 - 453), 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(240 - 192) + chr(6937 - 6826) + chr(53) + '\x30', 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'G'), '\144' + '\x65' + chr(99) + chr(0b1101101 + 0o2) + chr(100) + chr(0b1011101 + 0o10))(chr(0b1000101 + 0o60) + '\164' + '\146' + chr(45) + chr(56)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def BW3dnuliBGsY(*UtZvTnutzMHg):
def h0klhChk4Vv6(TtOW53BH7FVE):
r7AA1pbLjb44 = TtOW53BH7FVE.iZE3YChKSTaK
for fSdw5wwLo9MO in UtZvTnutzMHg[:-nzTpIcepk0o8('\060' + chr(0b1101111) + '\061', 0o10)]:
r7AA1pbLjb44 = roI3spqORKae(r7AA1pbLjb44, fSdw5wwLo9MO)
lCf1uzpaIUMv(r7AA1pbLjb44, UtZvTnutzMHg[-nzTpIcepk0o8('\060' + '\x6f' + chr(2231 - 2182), 8)], roI3spqORKae(TtOW53BH7FVE, roI3spqORKae(ES5oEprVxulp(b'6\xe7\xd8\xb0 \'R"P'), '\x64' + chr(101) + chr(5703 - 5604) + chr(11909 - 11798) + chr(100) + chr(101))('\x75' + chr(116) + '\146' + '\055' + chr(2532 - 2476)))())
return h0klhChk4Vv6 |
hubo1016/namedstruct | namedstruct/namedstruct.py | packvalue | def packvalue(value, *properties):
'''
Store a specified value to specified property path. Often used in nstruct "init" parameter.
:param value: a fixed value
:param properties: specified field name, same as sizefromlen.
:returns: a function which takes a NamedStruct as parameter, and store the value to property path.
'''
def func(namedstruct):
v = namedstruct._target
for p in properties[:-1]:
v = getattr(v, p)
setattr(v, properties[-1], value)
return func | python | def packvalue(value, *properties):
'''
Store a specified value to specified property path. Often used in nstruct "init" parameter.
:param value: a fixed value
:param properties: specified field name, same as sizefromlen.
:returns: a function which takes a NamedStruct as parameter, and store the value to property path.
'''
def func(namedstruct):
v = namedstruct._target
for p in properties[:-1]:
v = getattr(v, p)
setattr(v, properties[-1], value)
return func | [
"def",
"packvalue",
"(",
"value",
",",
"*",
"properties",
")",
":",
"def",
"func",
"(",
"namedstruct",
")",
":",
"v",
"=",
"namedstruct",
".",
"_target",
"for",
"p",
"in",
"properties",
"[",
":",
"-",
"1",
"]",
":",
"v",
"=",
"getattr",
"(",
"v",
",",
"p",
")",
"setattr",
"(",
"v",
",",
"properties",
"[",
"-",
"1",
"]",
",",
"value",
")",
"return",
"func"
] | Store a specified value to specified property path. Often used in nstruct "init" parameter.
:param value: a fixed value
:param properties: specified field name, same as sizefromlen.
:returns: a function which takes a NamedStruct as parameter, and store the value to property path. | [
"Store",
"a",
"specified",
"value",
"to",
"specified",
"property",
"path",
".",
"Often",
"used",
"in",
"nstruct",
"init",
"parameter",
".",
":",
"param",
"value",
":",
"a",
"fixed",
"value",
":",
"param",
"properties",
":",
"specified",
"field",
"name",
"same",
"as",
"sizefromlen",
".",
":",
"returns",
":",
"a",
"function",
"which",
"takes",
"a",
"NamedStruct",
"as",
"parameter",
"and",
"store",
"the",
"value",
"to",
"property",
"path",
"."
] | 5039026e0df4ce23003d212358918dbe1a6e1d76 | https://github.com/hubo1016/namedstruct/blob/5039026e0df4ce23003d212358918dbe1a6e1d76/namedstruct/namedstruct.py#L579-L595 | train | Packs a value into a property path. | GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGR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k26HKr,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(0b11010 + 0o26) + chr(0b1100101 + 0o12) + chr(0b110011) + chr(0b110011) + chr(0b100110 + 0o16), 18088 - 18080), nzTpIcepk0o8(chr(1947 - 1899) + '\x6f' + chr(51) + '\063' + '\x35', 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101010 + 0o5) + chr(51) + '\066' + chr(55), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(1039 - 986) + '\062', 0o10), nzTpIcepk0o8('\060' + chr(8604 - 8493) + '\063' + '\063' + chr(998 - 943), 0o10), nzTpIcepk0o8('\060' + chr(0b1000111 + 0o50) + '\064' + '\x36', 0b1000), nzTpIcepk0o8(chr(0b1111 + 0o41) + chr(111) + chr(0b110010) + '\062' + chr(0b110001), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110011) + chr(54) + '\063', 0o10), nzTpIcepk0o8('\060' + chr(862 - 751) + chr(51) + chr(0b110010) + chr(0b110110), 0o10), nzTpIcepk0o8('\x30' + chr(2890 - 2779) + '\063' + chr(2336 - 2283) + chr(2286 - 2233), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + '\063' + chr(55), 0b1000), nzTpIcepk0o8(chr(0b110000 + 0o0) + chr(9923 - 9812) + chr(1883 - 1832) + chr(49) + '\061', 11436 - 11428), nzTpIcepk0o8('\060' + '\x6f' + chr(0b100110 + 0o13) + chr(0b111 + 0o56) + '\061', 27765 - 27757), nzTpIcepk0o8(chr(1066 - 1018) + chr(6582 - 6471) + chr(49) + chr(0b110010) + chr(2446 - 2395), 15835 - 15827), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(50) + '\x37' + chr(0b110101), ord("\x08")), nzTpIcepk0o8(chr(1047 - 999) + '\x6f' + chr(49) + chr(0b11111 + 0o21) + '\067', 49032 - 49024), nzTpIcepk0o8(chr(0b110000) + '\157' + '\063' + '\063' + chr(0b110100), 8), nzTpIcepk0o8('\060' + chr(111) + '\066' + chr(49), 21509 - 21501), nzTpIcepk0o8(chr(48) + '\x6f' + '\063' + chr(0b110011) + '\x31', 36483 - 36475), nzTpIcepk0o8('\060' + '\157' + chr(0b1100 + 0o46) + chr(48) + chr(0b110000), 56746 - 56738), nzTpIcepk0o8(chr(1691 - 1643) + chr(111) + chr(1293 - 1242) + chr(49) + '\x31', 8), nzTpIcepk0o8(chr(2044 - 1996) + chr(9818 - 9707) + chr(0b1000 + 0o54) + chr(0b10101 + 0o33), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x32' + chr(53) + chr(1474 - 1423), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1100 + 0o143) + chr(0b1001 + 0o51) + chr(587 - 535) + chr(0b100100 + 0o20), 0o10), nzTpIcepk0o8('\x30' + chr(0b111011 + 0o64) + chr(50) + chr(0b110101) + '\x32', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(49) + chr(0b110110) + chr(52), 0b1000), nzTpIcepk0o8(chr(1918 - 1870) + chr(0b1010001 + 0o36) + '\x32' + '\x37' + chr(49), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b11100 + 0o25) + chr(0b110010), 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110010) + '\x36' + '\065', 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110011) + chr(50) + chr(0b110011), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + '\x36', ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + '\x35' + chr(0b1100 + 0o51), 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(0b110001) + chr(859 - 808) + '\x30', 22451 - 22443), nzTpIcepk0o8(chr(1698 - 1650) + '\157' + chr(0b110011) + '\x30' + '\x32', ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + '\x32' + chr(54) + chr(0b1011 + 0o51), 61005 - 60997), nzTpIcepk0o8(chr(0b10001 + 0o37) + chr(0b111100 + 0o63) + chr(0b110010) + '\064' + chr(2215 - 2166), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(50) + chr(0b110010) + chr(2722 - 2667), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(49) + chr(55) + '\062', 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110001) + chr(427 - 374), 0o10), nzTpIcepk0o8(chr(48) + chr(10597 - 10486) + chr(0b10011 + 0o42) + chr(0b10000 + 0o44), 23040 - 23032)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + chr(111) + chr(0b101011 + 0o12) + chr(0b1 + 0o57), 31617 - 31609)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xf2'), chr(6800 - 6700) + chr(0b1100101) + '\x63' + chr(0b1101111) + chr(7834 - 7734) + chr(101))('\x75' + chr(0b1110100) + chr(0b110000 + 0o66) + '\055' + chr(0b111000)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def KwYRr6MBamjO(uV9iBiw0y_Mp, *UtZvTnutzMHg):
def h0klhChk4Vv6(TtOW53BH7FVE):
r7AA1pbLjb44 = TtOW53BH7FVE.iZE3YChKSTaK
for fSdw5wwLo9MO in UtZvTnutzMHg[:-nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b100000 + 0o21), 3017 - 3009)]:
r7AA1pbLjb44 = roI3spqORKae(r7AA1pbLjb44, fSdw5wwLo9MO)
lCf1uzpaIUMv(r7AA1pbLjb44, UtZvTnutzMHg[-nzTpIcepk0o8(chr(0b10001 + 0o37) + '\157' + '\x31', 8)], uV9iBiw0y_Mp)
return h0klhChk4Vv6 |
hubo1016/namedstruct | namedstruct/namedstruct.py | packexpr | def packexpr(func, *properties):
'''
Store a evaluated value to specified property path. Often used in nstruct "prepack" parameter.
:param func: a function which takes a NamedStruct as parameter and returns a value, often a lambda expression
:param properties: specified field name, same as sizefromlen.
:returns: a function which takes a NamedStruct as parameter, and store the return value of func to property path.
'''
def func2(namedstruct):
v = namedstruct._target
for p in properties[:-1]:
v = getattr(v, p)
setattr(v, properties[-1], func(namedstruct))
return func2 | python | def packexpr(func, *properties):
'''
Store a evaluated value to specified property path. Often used in nstruct "prepack" parameter.
:param func: a function which takes a NamedStruct as parameter and returns a value, often a lambda expression
:param properties: specified field name, same as sizefromlen.
:returns: a function which takes a NamedStruct as parameter, and store the return value of func to property path.
'''
def func2(namedstruct):
v = namedstruct._target
for p in properties[:-1]:
v = getattr(v, p)
setattr(v, properties[-1], func(namedstruct))
return func2 | [
"def",
"packexpr",
"(",
"func",
",",
"*",
"properties",
")",
":",
"def",
"func2",
"(",
"namedstruct",
")",
":",
"v",
"=",
"namedstruct",
".",
"_target",
"for",
"p",
"in",
"properties",
"[",
":",
"-",
"1",
"]",
":",
"v",
"=",
"getattr",
"(",
"v",
",",
"p",
")",
"setattr",
"(",
"v",
",",
"properties",
"[",
"-",
"1",
"]",
",",
"func",
"(",
"namedstruct",
")",
")",
"return",
"func2"
] | Store a evaluated value to specified property path. Often used in nstruct "prepack" parameter.
:param func: a function which takes a NamedStruct as parameter and returns a value, often a lambda expression
:param properties: specified field name, same as sizefromlen.
:returns: a function which takes a NamedStruct as parameter, and store the return value of func to property path. | [
"Store",
"a",
"evaluated",
"value",
"to",
"specified",
"property",
"path",
".",
"Often",
"used",
"in",
"nstruct",
"prepack",
"parameter",
".",
":",
"param",
"func",
":",
"a",
"function",
"which",
"takes",
"a",
"NamedStruct",
"as",
"parameter",
"and",
"returns",
"a",
"value",
"often",
"a",
"lambda",
"expression",
":",
"param",
"properties",
":",
"specified",
"field",
"name",
"same",
"as",
"sizefromlen",
".",
":",
"returns",
":",
"a",
"function",
"which",
"takes",
"a",
"NamedStruct",
"as",
"parameter",
"and",
"store",
"the",
"return",
"value",
"of",
"func",
"to",
"property",
"path",
"."
] | 5039026e0df4ce23003d212358918dbe1a6e1d76 | https://github.com/hubo1016/namedstruct/blob/5039026e0df4ce23003d212358918dbe1a6e1d76/namedstruct/namedstruct.py#L597-L612 | train | A function that takes a NamedStruct as parameter and returns a value and stores the return value of func to the specified property path. | GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9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0cCpS6dh4OT,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(395 - 347) + chr(0b1001001 + 0o46) + '\x34', 0o10), nzTpIcepk0o8(chr(0b101 + 0o53) + '\x6f' + '\063' + chr(0b1111 + 0o42) + chr(1782 - 1731), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(2081 - 2031) + '\x31' + '\x34', 46718 - 46710), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b100110 + 0o14) + '\065', 0o10), nzTpIcepk0o8(chr(0b101100 + 0o4) + '\x6f' + '\x32' + chr(0b110010) + chr(880 - 829), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x33' + chr(50) + chr(81 - 28), 0o10), nzTpIcepk0o8(chr(430 - 382) + '\x6f' + '\x31' + '\x32', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b11000 + 0o31) + '\x34' + chr(0b110111), ord("\x08")), nzTpIcepk0o8('\x30' + chr(5663 - 5552) + chr(0b1 + 0o62) + chr(0b11000 + 0o35) + '\x30', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b110 + 0o151) + chr(0b0 + 0o64) + chr(0b110010), 0o10), nzTpIcepk0o8(chr(0b100010 + 0o16) + chr(111) + chr(932 - 881) + '\064' + chr(0b10001 + 0o41), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(50) + '\x31' + '\060', 28924 - 28916), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110001) + chr(48) + chr(0b110000 + 0o5), 50346 - 50338), nzTpIcepk0o8('\060' + chr(0b1001000 + 0o47) + '\x33' + chr(0b110001) + chr(0b101111 + 0o6), ord("\x08")), nzTpIcepk0o8('\x30' + chr(3619 - 3508) + chr(955 - 904) + chr(0b1001 + 0o54) + chr(54), 15089 - 15081), nzTpIcepk0o8(chr(2200 - 2152) + chr(0b10001 + 0o136) + chr(0b110001) + chr(1793 - 1739), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x33' + '\x32', 0b1000), nzTpIcepk0o8('\x30' + chr(111) + '\062' + '\060' + chr(0b100011 + 0o21), 0o10), nzTpIcepk0o8('\060' + chr(0b11000 + 0o127) + chr(2030 - 1979) + '\065' + chr(0b1100 + 0o47), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1100 + 0o143) + chr(0b110011) + chr(0b101010 + 0o6) + '\x34', 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(1870 - 1819) + chr(2601 - 2548) + '\x31', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1001100 + 0o43) + '\062' + chr(2467 - 2415) + '\x31', ord("\x08")), nzTpIcepk0o8(chr(0b100010 + 0o16) + chr(0b1001001 + 0o46) + '\x32' + '\065' + chr(0b11000 + 0o36), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1100010 + 0o15) + chr(53) + '\061', 4707 - 4699), nzTpIcepk0o8(chr(271 - 223) + chr(0b1101111) + '\061' + chr(0b10110 + 0o41) + chr(0b110111), 57983 - 57975), nzTpIcepk0o8(chr(48) + '\157' + chr(645 - 595) + chr(0b1011 + 0o50) + '\066', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b100110 + 0o111) + '\x33' + chr(0b11111 + 0o21) + chr(55), ord("\x08")), nzTpIcepk0o8(chr(0b100000 + 0o20) + chr(0b1101101 + 0o2) + '\x31' + chr(1131 - 1082) + chr(54), 0b1000), nzTpIcepk0o8(chr(0b101110 + 0o2) + chr(428 - 317) + '\x31' + chr(50) + '\x35', 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110010) + chr(642 - 592) + chr(0b11100 + 0o25), 24758 - 24750), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b10100 + 0o36) + '\x31' + '\x32', ord("\x08")), nzTpIcepk0o8(chr(0b11000 + 0o30) + chr(2092 - 1981) + '\062' + chr(279 - 228) + chr(1882 - 1832), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + '\062' + chr(2327 - 2277) + chr(1520 - 1470), ord("\x08")), nzTpIcepk0o8(chr(1807 - 1759) + chr(0b1101111) + '\062' + chr(0b1 + 0o66) + chr(0b10000 + 0o46), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\062' + chr(51) + '\060', ord("\x08")), nzTpIcepk0o8(chr(1224 - 1176) + chr(111) + '\x33' + '\x35' + '\064', 0o10), nzTpIcepk0o8(chr(48) + chr(0b10011 + 0o134) + '\x31' + '\x36' + chr(0b1101 + 0o46), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x32', 50867 - 50859), nzTpIcepk0o8(chr(515 - 467) + '\x6f' + '\x33' + chr(0b110111) + '\x33', 53360 - 53352), nzTpIcepk0o8(chr(434 - 386) + '\x6f' + '\062' + '\063' + '\x32', 8)][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + '\157' + chr(0b110101) + chr(48), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'*'), '\x64' + chr(7044 - 6943) + '\143' + chr(8030 - 7919) + chr(828 - 728) + chr(0b1100101))(chr(117) + chr(0b1110100) + chr(0b110100 + 0o62) + '\055' + chr(0b101 + 0o63)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def pg8VXo_PAuUw(h0klhChk4Vv6, *UtZvTnutzMHg):
def qiirBij3FQjm(TtOW53BH7FVE):
r7AA1pbLjb44 = TtOW53BH7FVE.iZE3YChKSTaK
for fSdw5wwLo9MO in UtZvTnutzMHg[:-nzTpIcepk0o8(chr(48) + '\157' + '\061', 0b1000)]:
r7AA1pbLjb44 = roI3spqORKae(r7AA1pbLjb44, fSdw5wwLo9MO)
lCf1uzpaIUMv(r7AA1pbLjb44, UtZvTnutzMHg[-nzTpIcepk0o8('\x30' + chr(1543 - 1432) + chr(49), 8)], h0klhChk4Vv6(TtOW53BH7FVE))
return qiirBij3FQjm |
hubo1016/namedstruct | namedstruct/namedstruct.py | NamedStruct._create_embedded_indices | def _create_embedded_indices(self):
'''
Create indices for all the embedded structs. For parser internal use.
'''
try:
_set(self, '_embedded_indices', dict((k,(self,v)) for k,v in getattr(self._parser.typedef, 'inline_names', {}).items()))
except AttributeError:
_set(self, '_embedded_indices', {}) | python | def _create_embedded_indices(self):
'''
Create indices for all the embedded structs. For parser internal use.
'''
try:
_set(self, '_embedded_indices', dict((k,(self,v)) for k,v in getattr(self._parser.typedef, 'inline_names', {}).items()))
except AttributeError:
_set(self, '_embedded_indices', {}) | [
"def",
"_create_embedded_indices",
"(",
"self",
")",
":",
"try",
":",
"_set",
"(",
"self",
",",
"'_embedded_indices'",
",",
"dict",
"(",
"(",
"k",
",",
"(",
"self",
",",
"v",
")",
")",
"for",
"k",
",",
"v",
"in",
"getattr",
"(",
"self",
".",
"_parser",
".",
"typedef",
",",
"'inline_names'",
",",
"{",
"}",
")",
".",
"items",
"(",
")",
")",
")",
"except",
"AttributeError",
":",
"_set",
"(",
"self",
",",
"'_embedded_indices'",
",",
"{",
"}",
")"
] | Create indices for all the embedded structs. For parser internal use. | [
"Create",
"indices",
"for",
"all",
"the",
"embedded",
"structs",
".",
"For",
"parser",
"internal",
"use",
"."
] | 5039026e0df4ce23003d212358918dbe1a6e1d76 | https://github.com/hubo1016/namedstruct/blob/5039026e0df4ce23003d212358918dbe1a6e1d76/namedstruct/namedstruct.py#L84-L91 | train | Create indices for all the embedded structs. For parser internal 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,WbNHlD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YiXoIEhJY,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) + '\x31' + chr(1507 - 1457), 0b1000), nzTpIcepk0o8('\060' + chr(5023 - 4912) + chr(0b100111 + 0o12) + chr(1417 - 1368) + '\067', 0o10), nzTpIcepk0o8(chr(0b11011 + 0o25) + chr(3005 - 2894) + '\x32' + '\x32' + '\060', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(349 - 299) + chr(51), 12660 - 12652), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x31' + chr(0b1100 + 0o44) + chr(1313 - 1258), 0b1000), nzTpIcepk0o8(chr(0b11001 + 0o27) + chr(111) + chr(0b11110 + 0o23) + '\x34' + '\063', 0o10), nzTpIcepk0o8('\060' + '\157' + chr(0b100001 + 0o21) + chr(1771 - 1718), ord("\x08")), nzTpIcepk0o8('\x30' + chr(3223 - 3112) + chr(2265 - 2215) + '\063' + chr(53), 45413 - 45405), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\062' + chr(2140 - 2091), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1000001 + 0o56) + chr(1723 - 1674) + chr(0b11110 + 0o31) + '\x32', 25473 - 25465), nzTpIcepk0o8(chr(291 - 243) + chr(111) + chr(51) + chr(0b1100 + 0o47) + chr(0b1111 + 0o42), 0b1000), nzTpIcepk0o8(chr(0b10011 + 0o35) + chr(0b1101111) + chr(0b1011 + 0o47) + '\060' + '\062', 40702 - 40694), nzTpIcepk0o8('\060' + chr(111) + '\x35' + chr(0b10011 + 0o36), 26470 - 26462), nzTpIcepk0o8(chr(2080 - 2032) + chr(111) + chr(0b110001) + '\x34' + chr(0b11 + 0o62), 46779 - 46771), nzTpIcepk0o8(chr(48) + chr(11904 - 11793) + chr(1238 - 1189) + chr(0b110000 + 0o3) + '\x31', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b101 + 0o152) + '\x31' + '\x37', ord("\x08")), nzTpIcepk0o8(chr(0b101000 + 0o10) + chr(111) + chr(0b110011) + chr(0b11 + 0o64) + '\061', ord("\x08")), nzTpIcepk0o8(chr(646 - 598) + '\157' + chr(0b1001 + 0o50) + chr(53) + chr(1055 - 1005), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110010) + chr(51) + '\x36', 44606 - 44598), nzTpIcepk0o8(chr(909 - 861) + chr(0b1101111) + chr(0b110001) + '\060' + '\061', ord("\x08")), nzTpIcepk0o8(chr(1199 - 1151) + '\157' + chr(51) + chr(0b10010 + 0o37) + chr(50), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110001) + '\065' + '\x35', 22211 - 22203), nzTpIcepk0o8(chr(48) + chr(0b100 + 0o153) + chr(0b110010) + chr(952 - 901) + chr(0b110101), 8), nzTpIcepk0o8(chr(0b1101 + 0o43) + '\157' + '\x35' + '\x34', 0b1000), nzTpIcepk0o8(chr(1195 - 1147) + chr(0b11010 + 0o125) + chr(389 - 340) + chr(1770 - 1722) + '\061', 8), nzTpIcepk0o8('\x30' + '\x6f' + '\064' + chr(0b110101), 32168 - 32160), nzTpIcepk0o8(chr(0b101001 + 0o7) + chr(0b1101111) + '\x31' + chr(0b110100) + chr(104 - 50), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1000010 + 0o55) + chr(49) + chr(2276 - 2227) + '\062', 25044 - 25036), nzTpIcepk0o8('\060' + chr(111) + chr(51) + '\065' + chr(0b110101), 33099 - 33091), nzTpIcepk0o8(chr(48) + chr(0b111101 + 0o62) + '\063' + chr(1525 - 1473), 47255 - 47247), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b10100 + 0o37) + '\060', 45283 - 45275), nzTpIcepk0o8(chr(0b110000) + chr(11176 - 11065) + '\062' + chr(0b100 + 0o60) + chr(0b1111 + 0o47), 8005 - 7997), nzTpIcepk0o8('\060' + '\x6f' + '\x32' + chr(0b10110 + 0o35) + chr(0b110000), ord("\x08")), nzTpIcepk0o8('\x30' + chr(2399 - 2288) + '\x31' + chr(0b110111) + chr(1599 - 1550), ord("\x08")), nzTpIcepk0o8(chr(0b100110 + 0o12) + chr(0b1101111) + chr(51) + chr(0b110001) + chr(48), 24581 - 24573), nzTpIcepk0o8(chr(2204 - 2156) + chr(0b0 + 0o157) + chr(0b110011) + chr(0b110001) + '\x34', 0b1000), nzTpIcepk0o8(chr(0b10 + 0o56) + chr(111) + '\x31' + chr(0b110110) + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b100111 + 0o13) + '\x31' + chr(51), 8358 - 8350), nzTpIcepk0o8(chr(54 - 6) + chr(2569 - 2458) + chr(0b10100 + 0o35) + '\x36' + chr(0b110011 + 0o2), 0b1000), nzTpIcepk0o8('\060' + '\157' + chr(0b110010) + chr(2295 - 2245) + chr(0b11011 + 0o25), 8)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b100001 + 0o17) + '\157' + '\065' + chr(48), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'$'), chr(6033 - 5933) + '\x65' + '\143' + chr(111) + chr(100) + chr(6015 - 5914))(chr(0b11001 + 0o134) + '\x74' + chr(102) + chr(0b101101) + chr(0b111000)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def x5AqiKJsvZk6(hXMPsSrOQzbh):
try:
OkzTLDr1cGYK(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'U*\xfdq"\x07q\xf8u%\xb0\xecM\x0c:j\x8a'), chr(100) + chr(101) + chr(0b1100011) + chr(111) + chr(100) + chr(0b1100101))(chr(2505 - 2388) + '\x74' + chr(0b1100110) + chr(0b101101) + chr(1175 - 1119)), znjnJWK64FDT(((B6UAF1zReOyJ, (hXMPsSrOQzbh, r7AA1pbLjb44)) for (B6UAF1zReOyJ, r7AA1pbLjb44) in roI3spqORKae(roI3spqORKae(hXMPsSrOQzbh._parser.typedef, roI3spqORKae(ES5oEprVxulp(b'c!\xfcz)\x06J\xf3p\x17\xbc\xf1'), chr(100) + chr(5074 - 4973) + chr(3653 - 3554) + chr(0b1101111) + '\x64' + '\x65')('\165' + chr(0b1110100) + '\146' + chr(0b1000 + 0o45) + chr(56)), {}), roI3spqORKae(ES5oEprVxulp(b'S\x10\xfe]\x02\x19]\xa9"\x0c\x81\xeb'), chr(2909 - 2809) + '\145' + '\x63' + chr(7012 - 6901) + '\x64' + chr(0b1100101))(chr(0b1110101) + chr(0b1110100) + '\146' + chr(898 - 853) + '\070'))())))
except bIsJhlpYrrU2:
OkzTLDr1cGYK(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'U*\xfdq"\x07q\xf8u%\xb0\xecM\x0c:j\x8a'), chr(5517 - 5417) + '\x65' + '\143' + chr(0b111 + 0o150) + chr(0b100100 + 0o100) + chr(3309 - 3208))(chr(899 - 782) + '\164' + chr(102) + chr(0b101101) + chr(0b11111 + 0o31)), {}) |
hubo1016/namedstruct | namedstruct/namedstruct.py | NamedStruct._unpack | def _unpack(self, data):
'''
Unpack a struct from bytes. For parser internal use.
'''
#self._logger.log(logging.DEBUG, 'unpacking %r', self)
current = self
while current is not None:
data = current._parser.unpack(data, current)
last = current
current = getattr(current, '_sub', None)
_set(last, '_extra', data) | python | def _unpack(self, data):
'''
Unpack a struct from bytes. For parser internal use.
'''
#self._logger.log(logging.DEBUG, 'unpacking %r', self)
current = self
while current is not None:
data = current._parser.unpack(data, current)
last = current
current = getattr(current, '_sub', None)
_set(last, '_extra', data) | [
"def",
"_unpack",
"(",
"self",
",",
"data",
")",
":",
"#self._logger.log(logging.DEBUG, 'unpacking %r', self)",
"current",
"=",
"self",
"while",
"current",
"is",
"not",
"None",
":",
"data",
"=",
"current",
".",
"_parser",
".",
"unpack",
"(",
"data",
",",
"current",
")",
"last",
"=",
"current",
"current",
"=",
"getattr",
"(",
"current",
",",
"'_sub'",
",",
"None",
")",
"_set",
"(",
"last",
",",
"'_extra'",
",",
"data",
")"
] | Unpack a struct from bytes. For parser internal use. | [
"Unpack",
"a",
"struct",
"from",
"bytes",
".",
"For",
"parser",
"internal",
"use",
"."
] | 5039026e0df4ce23003d212358918dbe1a6e1d76 | https://github.com/hubo1016/namedstruct/blob/5039026e0df4ce23003d212358918dbe1a6e1d76/namedstruct/namedstruct.py#L92-L102 | train | Unpack a struct from bytes. For parser internal 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,K3alqetBMg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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(0b10 + 0o56) + chr(0b111111 + 0o60) + '\x32' + chr(51) + chr(48), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(849 - 798) + chr(0b10111 + 0o35) + '\x35', 61840 - 61832), nzTpIcepk0o8(chr(48) + chr(4337 - 4226) + chr(50) + chr(54), 0b1000), nzTpIcepk0o8(chr(48) + chr(7993 - 7882) + chr(2047 - 1996) + chr(0b101000 + 0o15) + chr(0b10110 + 0o40), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(50) + chr(0b110101) + chr(48), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(1329 - 1275) + chr(0b1111 + 0o45), 26991 - 26983), nzTpIcepk0o8(chr(1355 - 1307) + chr(111) + chr(55) + chr(2166 - 2115), 39296 - 39288), nzTpIcepk0o8(chr(1310 - 1262) + chr(111) + chr(0b110011) + '\x35', 1969 - 1961), nzTpIcepk0o8(chr(174 - 126) + chr(2400 - 2289) + '\061' + chr(0b10010 + 0o41) + chr(1053 - 1005), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + '\061' + chr(0b101111 + 0o7) + chr(0b11010 + 0o33), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110110 + 0o0) + chr(1060 - 1010), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x31' + chr(0b101100 + 0o10) + chr(55), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b101101 + 0o102) + '\x31' + chr(52) + chr(0b110101), 0b1000), nzTpIcepk0o8(chr(1586 - 1538) + chr(111) + chr(0b110011) + chr(0b110101) + '\065', 0o10), nzTpIcepk0o8(chr(302 - 254) + chr(0b110 + 0o151) + chr(0b11010 + 0o31) + chr(51) + chr(48), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b10100 + 0o133) + '\063' + chr(54) + chr(55), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\062' + chr(0b1100 + 0o47), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b111111 + 0o60) + chr(0b11111 + 0o22) + chr(0b10100 + 0o37) + chr(54), 5921 - 5913), nzTpIcepk0o8('\060' + chr(111) + '\x33' + '\x35' + chr(0b1011 + 0o46), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + '\062' + chr(0b101101 + 0o11), 8), nzTpIcepk0o8(chr(0b111 + 0o51) + chr(10759 - 10648) + '\061' + chr(53) + chr(0b1000 + 0o55), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(438 - 387) + chr(0b110100) + '\065', 8), nzTpIcepk0o8('\060' + chr(111) + chr(0b101101 + 0o7) + chr(0b1111 + 0o45), 36452 - 36444), nzTpIcepk0o8('\060' + chr(4302 - 4191) + chr(1566 - 1513) + chr(2304 - 2255), ord("\x08")), nzTpIcepk0o8(chr(959 - 911) + '\157' + '\064' + chr(0b1 + 0o66), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(5084 - 4973) + chr(50) + '\x33' + '\x36', 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + '\066' + chr(0b11 + 0o55), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(642 - 593) + '\x34' + '\067', 8), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110001) + '\062' + '\x30', ord("\x08")), nzTpIcepk0o8('\060' + chr(3111 - 3000) + chr(0b110001 + 0o1) + chr(0b110000) + chr(1730 - 1680), 13716 - 13708), nzTpIcepk0o8(chr(539 - 491) + chr(0b1101111) + chr(0b110011) + '\060' + '\x36', 17986 - 17978), nzTpIcepk0o8(chr(0b101011 + 0o5) + chr(2133 - 2022) + chr(0b110111) + chr(48), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(1887 - 1837) + '\060', 51651 - 51643), nzTpIcepk0o8(chr(48) + chr(0b111100 + 0o63) + chr(0b10111 + 0o33) + '\x32' + '\x31', 30421 - 30413), nzTpIcepk0o8('\x30' + '\157' + '\x33' + '\062' + chr(0b110011), 0o10), nzTpIcepk0o8(chr(0b101110 + 0o2) + chr(0b1101111) + chr(1372 - 1319) + chr(0b11101 + 0o31), 14060 - 14052), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110011) + chr(0b101000 + 0o14) + chr(50), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + '\x33' + chr(411 - 361), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110001) + chr(1207 - 1158) + chr(0b110111), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + '\064' + '\x37', 8)][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + chr(2655 - 2544) + chr(2087 - 2034) + '\x30', 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xb6'), chr(0b101010 + 0o72) + chr(9285 - 9184) + chr(99) + chr(0b1101111) + chr(0b1100100) + chr(3183 - 3082))(chr(12153 - 12036) + chr(0b1110100) + chr(0b1100110) + '\055' + chr(2286 - 2230)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def OPSwzvhzE_9c(hXMPsSrOQzbh, FfKOThdpoDTb):
btnZMuSDwyyx = hXMPsSrOQzbh
while btnZMuSDwyyx is not None:
FfKOThdpoDTb = btnZMuSDwyyx._parser.unpack(FfKOThdpoDTb, btnZMuSDwyyx)
D7WLXGf5s1uK = btnZMuSDwyyx
btnZMuSDwyyx = roI3spqORKae(btnZMuSDwyyx, roI3spqORKae(ES5oEprVxulp(b'\xc7\x96c\x8c'), chr(100) + chr(0b1100010 + 0o3) + chr(5193 - 5094) + chr(111) + chr(3943 - 3843) + chr(101))(chr(2745 - 2628) + '\164' + chr(9839 - 9737) + chr(45) + chr(0b100001 + 0o27)), None)
OkzTLDr1cGYK(D7WLXGf5s1uK, roI3spqORKae(ES5oEprVxulp(b'\xc7\x80n\x9a\xdaU'), chr(5306 - 5206) + '\x65' + '\143' + '\x6f' + chr(3840 - 3740) + '\x65')(chr(0b100001 + 0o124) + '\x74' + '\x66' + '\055' + '\x38'), FfKOThdpoDTb) |
hubo1016/namedstruct | namedstruct/namedstruct.py | NamedStruct._packto | def _packto(self, stream):
'''
Pack current struct into stream. For parser internal use.
:param stream: a buffered stream (File or BytesIO)
:return: packed bytes length
'''
#self._logger.log(logging.DEBUG, 'packing %r', self)
total_size = 0
current = self
while current is not None:
total_size += current._parser.packto(current, stream)
last = current
current = getattr(current, '_sub', None)
if hasattr(last, '_extra'):
_extra = last._extra
total_size += stream.write(_extra)
return total_size | python | def _packto(self, stream):
'''
Pack current struct into stream. For parser internal use.
:param stream: a buffered stream (File or BytesIO)
:return: packed bytes length
'''
#self._logger.log(logging.DEBUG, 'packing %r', self)
total_size = 0
current = self
while current is not None:
total_size += current._parser.packto(current, stream)
last = current
current = getattr(current, '_sub', None)
if hasattr(last, '_extra'):
_extra = last._extra
total_size += stream.write(_extra)
return total_size | [
"def",
"_packto",
"(",
"self",
",",
"stream",
")",
":",
"#self._logger.log(logging.DEBUG, 'packing %r', self)",
"total_size",
"=",
"0",
"current",
"=",
"self",
"while",
"current",
"is",
"not",
"None",
":",
"total_size",
"+=",
"current",
".",
"_parser",
".",
"packto",
"(",
"current",
",",
"stream",
")",
"last",
"=",
"current",
"current",
"=",
"getattr",
"(",
"current",
",",
"'_sub'",
",",
"None",
")",
"if",
"hasattr",
"(",
"last",
",",
"'_extra'",
")",
":",
"_extra",
"=",
"last",
".",
"_extra",
"total_size",
"+=",
"stream",
".",
"write",
"(",
"_extra",
")",
"return",
"total_size"
] | Pack current struct into stream. For parser internal use.
:param stream: a buffered stream (File or BytesIO)
:return: packed bytes length | [
"Pack",
"current",
"struct",
"into",
"stream",
".",
"For",
"parser",
"internal",
"use",
".",
":",
"param",
"stream",
":",
"a",
"buffered",
"stream",
"(",
"File",
"or",
"BytesIO",
")",
":",
"return",
":",
"packed",
"bytes",
"length"
] | 5039026e0df4ce23003d212358918dbe1a6e1d76 | https://github.com/hubo1016/namedstruct/blob/5039026e0df4ce23003d212358918dbe1a6e1d76/namedstruct/namedstruct.py#L113-L131 | train | Packs the current structure into a stream. For parser internal 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,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g6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__
ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(858 - 810) + '\157' + chr(0b101111 + 0o4) + '\063' + chr(2104 - 2053), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\061' + chr(0b110011) + '\x35', ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + '\062' + chr(0b100110 + 0o21) + '\066', ord("\x08")), nzTpIcepk0o8(chr(1868 - 1820) + '\157' + '\062' + chr(50) + chr(0b10010 + 0o44), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110011) + chr(2397 - 2345) + chr(55), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(11217 - 11106) + chr(1149 - 1094) + chr(0b100100 + 0o21), 0o10), nzTpIcepk0o8(chr(0b111 + 0o51) + '\x6f' + '\061' + '\062' + '\x31', 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(49) + chr(735 - 684) + chr(0b10010 + 0o36), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b100010 + 0o21) + chr(51), 41596 - 41588), nzTpIcepk0o8(chr(48) + chr(6774 - 6663) + chr(1000 - 951) + chr(0b101110 + 0o5) + chr(0b100011 + 0o15), 8), nzTpIcepk0o8('\x30' + chr(11822 - 11711) + chr(0b0 + 0o62) + chr(0b10000 + 0o45) + chr(0b110111), 0b1000), nzTpIcepk0o8(chr(1664 - 1616) + '\x6f' + chr(0b110110) + chr(576 - 526), 0b1000), nzTpIcepk0o8(chr(1831 - 1783) + chr(0b1101111) + chr(289 - 239) + chr(53) + '\x35', 44814 - 44806), nzTpIcepk0o8(chr(0b110000) + chr(0b10010 + 0o135) + chr(0b10101 + 0o34) + chr(54) + '\064', 0b1000), nzTpIcepk0o8('\x30' + '\157' + '\061' + chr(0b110111) + chr(0b110 + 0o56), 38361 - 38353), nzTpIcepk0o8(chr(0b11 + 0o55) + chr(111) + '\063' + '\060' + chr(2773 - 2720), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1000 + 0o147) + chr(986 - 937) + '\061' + chr(341 - 292), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1001111 + 0o40) + chr(60 - 9) + '\x35' + '\x37', 55691 - 55683), nzTpIcepk0o8(chr(0b100011 + 0o15) + '\157' + '\062' + '\x30' + chr(52), ord("\x08")), nzTpIcepk0o8('\x30' + chr(11464 - 11353) + chr(50) + '\x31' + chr(0b10101 + 0o42), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b1100 + 0o46) + chr(890 - 840) + chr(127 - 75), 37355 - 37347), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110011) + chr(53) + chr(0b110111), 8), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(51) + chr(0b110101) + '\x36', ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + '\063' + chr(1671 - 1620) + '\061', 0b1000), nzTpIcepk0o8(chr(2157 - 2109) + '\157' + '\x36' + chr(0b110110), 0o10), nzTpIcepk0o8(chr(1258 - 1210) + '\157' + '\x33' + chr(1930 - 1876) + chr(392 - 338), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(50) + chr(0b101100 + 0o4) + chr(0b11011 + 0o26), ord("\x08")), nzTpIcepk0o8(chr(559 - 511) + '\x6f' + chr(0b110011) + '\060' + chr(0b110100), 55822 - 55814), nzTpIcepk0o8(chr(48) + chr(2617 - 2506) + chr(293 - 242) + '\067' + chr(1300 - 1250), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b110010 + 0o75) + chr(0b110110) + chr(0b110000), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(5850 - 5739) + chr(0b110001) + chr(0b11100 + 0o32) + '\061', 0b1000), nzTpIcepk0o8(chr(0b11101 + 0o23) + chr(0b1101111) + chr(0b11011 + 0o27) + '\x37' + chr(0b101100 + 0o4), 0b1000), nzTpIcepk0o8(chr(1502 - 1454) + chr(0b101001 + 0o106) + chr(0b110110) + chr(0b110011), 20207 - 20199), nzTpIcepk0o8(chr(48) + '\157' + '\x33' + '\x31' + chr(50), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b100110 + 0o111) + chr(50) + chr(0b10000 + 0o44) + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(737 - 682) + '\x37', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b11111 + 0o120) + chr(0b110001) + chr(0b10111 + 0o31) + chr(0b110011), 0o10), nzTpIcepk0o8('\060' + '\x6f' + '\061' + chr(0b101010 + 0o15) + chr(0b110101 + 0o1), 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(0b10000 + 0o41) + '\x32' + chr(0b1110 + 0o45), 7594 - 7586), nzTpIcepk0o8(chr(0b110000 + 0o0) + '\x6f' + chr(50) + chr(0b1101 + 0o44) + '\x32', ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + chr(111) + '\065' + chr(48), ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xf5'), chr(0b1100100) + chr(5351 - 5250) + '\143' + chr(0b1011010 + 0o25) + chr(0b1000101 + 0o37) + chr(101))(chr(5070 - 4953) + chr(0b1110100) + chr(0b1100110) + chr(45) + chr(485 - 429)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def UTOIk3EA7ch0(hXMPsSrOQzbh, ztC3O2ZXmsJr):
Noy3xbqUPU67 = nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110000), 0b1000)
btnZMuSDwyyx = hXMPsSrOQzbh
while btnZMuSDwyyx is not None:
Noy3xbqUPU67 += btnZMuSDwyyx._parser.packto(btnZMuSDwyyx, ztC3O2ZXmsJr)
D7WLXGf5s1uK = btnZMuSDwyyx
btnZMuSDwyyx = roI3spqORKae(btnZMuSDwyyx, roI3spqORKae(ES5oEprVxulp(b'\x84.\xcb\xf4'), chr(100) + chr(0b1100101) + chr(0b1100011) + chr(0b1100010 + 0o15) + chr(0b1010010 + 0o22) + '\x65')('\x75' + chr(0b110 + 0o156) + chr(0b10001 + 0o125) + chr(0b11101 + 0o20) + chr(56)), None)
if dRKdVnHPFq7C(D7WLXGf5s1uK, roI3spqORKae(ES5oEprVxulp(b'\x848\xc6\xe2\x95\\'), chr(0b1100100) + '\x65' + chr(8018 - 7919) + chr(111) + '\144' + chr(9118 - 9017))(chr(0b101101 + 0o110) + chr(0b11000 + 0o134) + '\x66' + chr(295 - 250) + '\x38')):
qxcWJKQjB90D = D7WLXGf5s1uK.qxcWJKQjB90D
Noy3xbqUPU67 += ztC3O2ZXmsJr.ml0hhpv1Lpq2(qxcWJKQjB90D)
return Noy3xbqUPU67 |
hubo1016/namedstruct | namedstruct/namedstruct.py | NamedStruct._prepack | def _prepack(self):
'''
Prepack stage. For parser internal use.
'''
current = self
while current is not None:
current._parser.prepack(current, skip_self = True)
current = getattr(current, '_sub', None)
current = self
while current is not None:
current._parser.prepack(current, skip_sub = True)
current = getattr(current, '_sub', None) | python | def _prepack(self):
'''
Prepack stage. For parser internal use.
'''
current = self
while current is not None:
current._parser.prepack(current, skip_self = True)
current = getattr(current, '_sub', None)
current = self
while current is not None:
current._parser.prepack(current, skip_sub = True)
current = getattr(current, '_sub', None) | [
"def",
"_prepack",
"(",
"self",
")",
":",
"current",
"=",
"self",
"while",
"current",
"is",
"not",
"None",
":",
"current",
".",
"_parser",
".",
"prepack",
"(",
"current",
",",
"skip_self",
"=",
"True",
")",
"current",
"=",
"getattr",
"(",
"current",
",",
"'_sub'",
",",
"None",
")",
"current",
"=",
"self",
"while",
"current",
"is",
"not",
"None",
":",
"current",
".",
"_parser",
".",
"prepack",
"(",
"current",
",",
"skip_sub",
"=",
"True",
")",
"current",
"=",
"getattr",
"(",
"current",
",",
"'_sub'",
",",
"None",
")"
] | Prepack stage. For parser internal use. | [
"Prepack",
"stage",
".",
"For",
"parser",
"internal",
"use",
"."
] | 5039026e0df4ce23003d212358918dbe1a6e1d76 | https://github.com/hubo1016/namedstruct/blob/5039026e0df4ce23003d212358918dbe1a6e1d76/namedstruct/namedstruct.py#L133-L144 | train | Prepack the current object. | GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIO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rYf,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(0b10001 + 0o37) + chr(111) + chr(0b101001 + 0o11) + '\067' + '\060', 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110011) + '\x31', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(49) + '\060' + chr(0b110011), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(53) + '\064', 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110001) + chr(48) + chr(0b110110), 0b1000), nzTpIcepk0o8(chr(903 - 855) + chr(3652 - 3541) + chr(51) + chr(0b1101 + 0o52) + '\x35', 34627 - 34619), nzTpIcepk0o8(chr(2185 - 2137) + chr(111) + chr(0b111 + 0o54) + chr(0b101111 + 0o4) + chr(1288 - 1235), 0o10), nzTpIcepk0o8(chr(2277 - 2229) + chr(111) + chr(164 - 114) + chr(48) + chr(49), 48118 - 48110), nzTpIcepk0o8('\060' + '\x6f' + '\062' + '\061' + '\065', 0o10), nzTpIcepk0o8(chr(0b11010 + 0o26) + chr(0b10111 + 0o130) + chr(55) + '\x33', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(7510 - 7399) + '\x32' + chr(2428 - 2375) + '\067', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(518 - 468) + '\x37' + chr(54), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + '\x33' + chr(0b110110) + '\061', ord("\x08")), nzTpIcepk0o8(chr(1113 - 1065) + chr(3177 - 3066) + chr(1820 - 1771) + chr(0b101110 + 0o5) + '\x34', ord("\x08")), nzTpIcepk0o8('\060' + '\157' + '\x31' + chr(0b100100 + 0o23) + chr(1104 - 1054), 27961 - 27953), nzTpIcepk0o8('\060' + '\x6f' + chr(811 - 760) + '\x31' + chr(0b1010 + 0o47), 0o10), nzTpIcepk0o8('\060' + '\x6f' + '\063' + chr(0b10 + 0o63) + chr(0b110001 + 0o0), ord("\x08")), nzTpIcepk0o8(chr(0b10111 + 0o31) + chr(0b1101111) + chr(401 - 349) + chr(0b1011 + 0o45), 22493 - 22485), nzTpIcepk0o8(chr(0b110000) + chr(0b1101100 + 0o3) + chr(49) + chr(0b1011 + 0o50) + chr(54), 0b1000), nzTpIcepk0o8('\x30' + chr(0b101010 + 0o105) + '\062' + chr(2136 - 2088) + '\062', 278 - 270), nzTpIcepk0o8('\060' + chr(0b1101111) + '\062' + '\x35' + '\063', 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110011) + chr(0b1101 + 0o51), 0o10), nzTpIcepk0o8(chr(419 - 371) + '\157' + chr(50) + chr(54) + '\061', 26361 - 26353), nzTpIcepk0o8(chr(0b1010 + 0o46) + chr(111) + '\063' + '\060' + chr(0b10111 + 0o34), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1011110 + 0o21) + chr(50) + chr(0b110111) + chr(0b110101), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(0b110010) + '\x34' + chr(467 - 419), 0b1000), nzTpIcepk0o8(chr(48) + chr(8491 - 8380) + chr(0b10011 + 0o36) + '\064' + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(9300 - 9189) + chr(0b10110 + 0o33) + chr(51) + '\061', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(613 - 563) + chr(1407 - 1355) + '\x31', 0b1000), nzTpIcepk0o8(chr(0b10000 + 0o40) + chr(0b111011 + 0o64) + chr(1181 - 1127) + chr(2049 - 1996), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x33' + chr(0b110001) + chr(0b1100 + 0o44), 0b1000), nzTpIcepk0o8('\060' + '\157' + '\x32' + '\066' + chr(0b100111 + 0o20), 50586 - 50578), nzTpIcepk0o8(chr(0b110000) + chr(2836 - 2725) + '\x31' + chr(52) + chr(0b110000), 46517 - 46509), nzTpIcepk0o8(chr(0b100001 + 0o17) + chr(10161 - 10050) + '\x33' + '\062' + '\x35', 0b1000), nzTpIcepk0o8('\060' + '\x6f' + '\061' + '\061' + '\062', 19555 - 19547), nzTpIcepk0o8(chr(0b110000) + chr(0b1001010 + 0o45) + '\x32' + chr(0b11100 + 0o32) + chr(988 - 937), ord("\x08")), nzTpIcepk0o8(chr(0b0 + 0o60) + chr(111) + chr(50) + chr(0b110010) + '\064', 0b1000), nzTpIcepk0o8(chr(911 - 863) + chr(0b1000000 + 0o57) + chr(1249 - 1196), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110001) + chr(52) + '\x36', 40345 - 40337), nzTpIcepk0o8(chr(0b1 + 0o57) + chr(9035 - 8924) + '\x32' + '\x30' + '\067', ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b1000 + 0o50) + '\x6f' + '\065' + chr(0b110000), ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x96'), chr(0b1000000 + 0o44) + chr(0b10110 + 0o117) + chr(3262 - 3163) + chr(0b100000 + 0o117) + chr(100) + '\145')(chr(0b100111 + 0o116) + '\x74' + chr(0b1001001 + 0o35) + chr(45) + '\070') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def bmy6xPeXqbDr(hXMPsSrOQzbh):
btnZMuSDwyyx = hXMPsSrOQzbh
while btnZMuSDwyyx is not None:
roI3spqORKae(btnZMuSDwyyx._parser, roI3spqORKae(ES5oEprVxulp(b"\xc8k&\\'\x9e\xb6"), chr(0b1100100) + '\145' + chr(0b101000 + 0o73) + chr(0b1101111) + '\x64' + '\145')('\x75' + '\x74' + chr(0b10100 + 0o122) + '\055' + '\070'))(btnZMuSDwyyx, skip_self=nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110001), 0o10))
btnZMuSDwyyx = roI3spqORKae(btnZMuSDwyyx, roI3spqORKae(ES5oEprVxulp(b'\xe7j6N'), chr(5481 - 5381) + chr(3595 - 3494) + '\143' + '\157' + chr(879 - 779) + '\145')('\165' + '\x74' + chr(102) + chr(0b100 + 0o51) + '\x38'), None)
btnZMuSDwyyx = hXMPsSrOQzbh
while btnZMuSDwyyx is not None:
roI3spqORKae(btnZMuSDwyyx._parser, roI3spqORKae(ES5oEprVxulp(b"\xc8k&\\'\x9e\xb6"), chr(0b1100100) + chr(0b1100101) + chr(99) + chr(0b1101111) + chr(100) + chr(101))(chr(117) + chr(5419 - 5303) + chr(102) + chr(0b101101) + chr(0b11110 + 0o32)))(btnZMuSDwyyx, skip_sub=nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b10 + 0o57), 8))
btnZMuSDwyyx = roI3spqORKae(btnZMuSDwyyx, roI3spqORKae(ES5oEprVxulp(b'\xe7j6N'), chr(3302 - 3202) + chr(101) + chr(0b100101 + 0o76) + '\x6f' + '\x64' + chr(101))(chr(0b111111 + 0o66) + '\164' + chr(7641 - 7539) + chr(1642 - 1597) + '\x38'), None) |
hubo1016/namedstruct | namedstruct/namedstruct.py | NamedStruct._tobytes | def _tobytes(self, skipprepack = False):
'''
Convert the struct to bytes. This is the standard way to convert a NamedStruct to bytes.
:param skipprepack: if True, the prepack stage is skipped. For parser internal use.
:returns: converted bytes
'''
stream = BytesIO()
self._tostream(stream, skipprepack)
return stream.getvalue() | python | def _tobytes(self, skipprepack = False):
'''
Convert the struct to bytes. This is the standard way to convert a NamedStruct to bytes.
:param skipprepack: if True, the prepack stage is skipped. For parser internal use.
:returns: converted bytes
'''
stream = BytesIO()
self._tostream(stream, skipprepack)
return stream.getvalue() | [
"def",
"_tobytes",
"(",
"self",
",",
"skipprepack",
"=",
"False",
")",
":",
"stream",
"=",
"BytesIO",
"(",
")",
"self",
".",
"_tostream",
"(",
"stream",
",",
"skipprepack",
")",
"return",
"stream",
".",
"getvalue",
"(",
")"
] | Convert the struct to bytes. This is the standard way to convert a NamedStruct to bytes.
:param skipprepack: if True, the prepack stage is skipped. For parser internal use.
:returns: converted bytes | [
"Convert",
"the",
"struct",
"to",
"bytes",
".",
"This",
"is",
"the",
"standard",
"way",
"to",
"convert",
"a",
"NamedStruct",
"to",
"bytes",
".",
":",
"param",
"skipprepack",
":",
"if",
"True",
"the",
"prepack",
"stage",
"is",
"skipped",
".",
"For",
"parser",
"internal",
"use",
".",
":",
"returns",
":",
"converted",
"bytes"
] | 5039026e0df4ce23003d212358918dbe1a6e1d76 | https://github.com/hubo1016/namedstruct/blob/5039026e0df4ce23003d212358918dbe1a6e1d76/namedstruct/namedstruct.py#L146-L156 | train | Convert the named struct to bytes. | GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,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Fq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__
ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\x30' + '\157' + chr(1217 - 1168) + chr(49) + chr(910 - 857), 20064 - 20056), nzTpIcepk0o8(chr(0b11 + 0o55) + chr(1840 - 1729) + chr(51) + chr(0b101101 + 0o4) + chr(49), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(50) + '\063' + '\x37', 17292 - 17284), nzTpIcepk0o8('\x30' + chr(0b1001100 + 0o43) + '\061' + chr(0b110110) + chr(49), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(0b110011) + chr(0b1 + 0o65) + chr(51), 15516 - 15508), nzTpIcepk0o8(chr(48) + chr(10771 - 10660) + chr(49) + chr(415 - 361) + '\x35', ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(49) + chr(51) + chr(1245 - 1194), 0b1000), nzTpIcepk0o8(chr(0b10000 + 0o40) + chr(5353 - 5242) + chr(496 - 447) + chr(1448 - 1396) + chr(51), 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(0b11001 + 0o30) + '\x36' + chr(1683 - 1634), 8), nzTpIcepk0o8('\x30' + chr(10063 - 9952) + chr(0b110011) + '\x33' + chr(1073 - 1023), 0b1000), nzTpIcepk0o8(chr(0b1 + 0o57) + '\157' + chr(0b110001) + chr(0b10101 + 0o33) + chr(55), 7393 - 7385), nzTpIcepk0o8(chr(0b111 + 0o51) + chr(4435 - 4324) + chr(0b110010) + '\x33' + '\067', 8), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b100111 + 0o20), ord("\x08")), nzTpIcepk0o8(chr(676 - 628) + '\157' + '\x32' + chr(1383 - 1333) + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110001) + '\067' + '\x35', 0o10), nzTpIcepk0o8('\x30' + chr(1334 - 1223) + chr(1530 - 1479) + '\x30' + chr(235 - 184), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(0b100011 + 0o17) + '\064' + '\062', 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(0b101111 + 0o3) + chr(0b10010 + 0o41) + chr(2191 - 2138), ord("\x08")), nzTpIcepk0o8(chr(0b11 + 0o55) + chr(111) + chr(0b110110), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x33' + chr(0b110001) + chr(1014 - 959), 53448 - 53440), nzTpIcepk0o8(chr(2170 - 2122) + '\x6f' + '\062' + chr(1343 - 1291) + chr(51), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(2623 - 2512) + chr(0b1 + 0o63) + chr(0b10101 + 0o40), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110011) + chr(0b1011 + 0o50) + '\x33', ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110010) + chr(0b110100) + chr(1495 - 1446), 0o10), nzTpIcepk0o8(chr(0b101101 + 0o3) + chr(111) + chr(0b11 + 0o62) + chr(435 - 380), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(6299 - 6188) + chr(0b110011) + '\x37' + '\x30', ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(2352 - 2302) + chr(2145 - 2092) + chr(53), 30801 - 30793), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110001) + chr(0b100 + 0o57) + '\063', 8), nzTpIcepk0o8('\060' + chr(0b11101 + 0o122) + chr(0b110001) + chr(0b110011) + '\x31', 0o10), nzTpIcepk0o8(chr(0b100010 + 0o16) + '\157' + chr(0b111 + 0o56) + chr(53), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x31' + chr(0b101001 + 0o11), ord("\x08")), nzTpIcepk0o8(chr(0b110 + 0o52) + '\157' + chr(0b110011) + chr(2515 - 2463) + '\063', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(1784 - 1735) + chr(0b11010 + 0o31) + chr(0b110000), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b11100 + 0o26) + chr(0b100 + 0o56) + chr(0b101010 + 0o6), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b111 + 0o150) + '\x31' + chr(53) + '\067', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(707 - 656) + chr(0b110111) + chr(0b101111 + 0o2), ord("\x08")), nzTpIcepk0o8('\x30' + chr(11769 - 11658) + '\063' + chr(0b10000 + 0o46), 19414 - 19406), nzTpIcepk0o8(chr(0b1010 + 0o46) + '\157' + '\x33' + '\062' + chr(49), 45834 - 45826), nzTpIcepk0o8('\x30' + chr(0b100000 + 0o117) + chr(0b10 + 0o57) + chr(52) + '\063', 8), nzTpIcepk0o8('\060' + '\157' + '\063' + '\067', 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + '\157' + chr(53) + chr(48), 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) + '\x6f' + chr(0b1100100) + chr(0b1011 + 0o132))(chr(0b1110101) + '\x74' + '\x66' + chr(0b1010 + 0o43) + chr(2838 - 2782)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def TlFCcRmIcfPK(hXMPsSrOQzbh, D6Ev8Dnyj5Ex=nzTpIcepk0o8(chr(0b11101 + 0o23) + chr(0b110110 + 0o71) + chr(0b110000), 33665 - 33657)):
ztC3O2ZXmsJr = BVoKtXpmh0oX()
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x12\xbd\xf0\x02\x87\x07>\x02\x1c'), '\x64' + chr(0b1100101) + '\143' + chr(111) + '\144' + '\145')(chr(0b1110101) + chr(0b1000 + 0o154) + chr(102) + chr(0b101101) + chr(0b111000)))(ztC3O2ZXmsJr, D6Ev8Dnyj5Ex)
return roI3spqORKae(ztC3O2ZXmsJr, roI3spqORKae(ES5oEprVxulp(b'*\xac\xeb\x07\x92\x19.\x06'), chr(100) + '\x65' + chr(0b11100 + 0o107) + '\157' + '\144' + chr(0b1100101))(chr(117) + '\x74' + chr(0b1100110) + '\x2d' + '\070'))() |
hubo1016/namedstruct | namedstruct/namedstruct.py | NamedStruct._tostream | def _tostream(self, stream, skipprepack= False):
'''
Convert the struct into a bytes stream. This is the standard way to convert a NamedStruct to bytes.
:param stream: a list of bytes to get the result
:param skipprepack: if True, the prepack stage is skipped. For parser internal use.
:returns: total appended size
'''
if not skipprepack:
self._prepack()
datasize = self._packto(stream)
paddingSize = self._parser.paddingsize2(datasize)
if paddingSize > datasize:
stream.write(b'\x00' * (paddingSize - datasize))
return paddingSize | python | def _tostream(self, stream, skipprepack= False):
'''
Convert the struct into a bytes stream. This is the standard way to convert a NamedStruct to bytes.
:param stream: a list of bytes to get the result
:param skipprepack: if True, the prepack stage is skipped. For parser internal use.
:returns: total appended size
'''
if not skipprepack:
self._prepack()
datasize = self._packto(stream)
paddingSize = self._parser.paddingsize2(datasize)
if paddingSize > datasize:
stream.write(b'\x00' * (paddingSize - datasize))
return paddingSize | [
"def",
"_tostream",
"(",
"self",
",",
"stream",
",",
"skipprepack",
"=",
"False",
")",
":",
"if",
"not",
"skipprepack",
":",
"self",
".",
"_prepack",
"(",
")",
"datasize",
"=",
"self",
".",
"_packto",
"(",
"stream",
")",
"paddingSize",
"=",
"self",
".",
"_parser",
".",
"paddingsize2",
"(",
"datasize",
")",
"if",
"paddingSize",
">",
"datasize",
":",
"stream",
".",
"write",
"(",
"b'\\x00'",
"*",
"(",
"paddingSize",
"-",
"datasize",
")",
")",
"return",
"paddingSize"
] | Convert the struct into a bytes stream. This is the standard way to convert a NamedStruct to bytes.
:param stream: a list of bytes to get the result
:param skipprepack: if True, the prepack stage is skipped. For parser internal use.
:returns: total appended size | [
"Convert",
"the",
"struct",
"into",
"a",
"bytes",
"stream",
".",
"This",
"is",
"the",
"standard",
"way",
"to",
"convert",
"a",
"NamedStruct",
"to",
"bytes",
".",
":",
"param",
"stream",
":",
"a",
"list",
"of",
"bytes",
"to",
"get",
"the",
"result",
":",
"param",
"skipprepack",
":",
"if",
"True",
"the",
"prepack",
"stage",
"is",
"skipped",
".",
"For",
"parser",
"internal",
"use",
".",
":",
"returns",
":",
"total",
"appended",
"size"
] | 5039026e0df4ce23003d212358918dbe1a6e1d76 | https://github.com/hubo1016/namedstruct/blob/5039026e0df4ce23003d212358918dbe1a6e1d76/namedstruct/namedstruct.py#L157-L173 | train | Convert the named struct into a bytes stream. | GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQ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qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__
ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(1047 - 999) + '\x6f' + chr(840 - 791) + chr(0b110000 + 0o3) + chr(0b110100), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110010) + chr(0b101101 + 0o7) + chr(0b110010), 53225 - 53217), nzTpIcepk0o8(chr(48) + '\157' + '\063' + chr(0b100101 + 0o13) + '\060', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b111 + 0o150) + chr(2108 - 2058) + chr(0b110100) + '\060', 28479 - 28471), nzTpIcepk0o8(chr(1895 - 1847) + chr(0b1101111) + '\x33' + chr(0b110011 + 0o0) + chr(515 - 462), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(11928 - 11817) + '\x32' + chr(0b110110) + chr(0b101111 + 0o5), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\063' + chr(0b100101 + 0o16) + chr(1270 - 1215), 0b1000), nzTpIcepk0o8('\060' + chr(0b1011101 + 0o22) + '\x32' + chr(846 - 798) + '\x35', 0o10), nzTpIcepk0o8('\060' + '\157' + '\x33' + chr(0b110011) + '\064', 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(357 - 308) + chr(1521 - 1468) + chr(0b110110), ord("\x08")), nzTpIcepk0o8(chr(0b11100 + 0o24) + chr(6878 - 6767) + chr(179 - 128) + chr(48) + chr(1264 - 1215), ord("\x08")), nzTpIcepk0o8(chr(0b1101 + 0o43) + chr(0b1101111) + chr(0b1000 + 0o52) + chr(0b100001 + 0o26) + chr(54), 0b1000), nzTpIcepk0o8(chr(0b11111 + 0o21) + chr(111) + chr(0b110001) + chr(607 - 559) + chr(0b10000 + 0o40), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110011) + chr(1422 - 1371), 0b1000), nzTpIcepk0o8(chr(797 - 749) + chr(6616 - 6505) + chr(50) + chr(867 - 813) + chr(0b110001), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(0b110001) + chr(0b0 + 0o62) + chr(0b110101), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(0b110011) + '\x32' + chr(50), ord("\x08")), nzTpIcepk0o8(chr(2225 - 2177) + chr(0b1101111) + chr(0b101001 + 0o11), 0o10), nzTpIcepk0o8(chr(0b1100 + 0o44) + chr(10436 - 10325) + chr(0b110011) + chr(0b1001 + 0o53) + chr(325 - 274), 38206 - 38198), nzTpIcepk0o8(chr(526 - 478) + '\x6f' + chr(0b101000 + 0o13) + chr(1425 - 1377) + chr(51), 0b1000), nzTpIcepk0o8(chr(2240 - 2192) + chr(0b1101111) + chr(1585 - 1536) + '\061' + chr(0b11001 + 0o31), 62550 - 62542), nzTpIcepk0o8('\060' + chr(11257 - 11146) + chr(136 - 85) + '\064' + '\064', 14706 - 14698), nzTpIcepk0o8(chr(0b11 + 0o55) + chr(7526 - 7415) + '\063' + '\x32' + chr(0b110011), ord("\x08")), nzTpIcepk0o8(chr(1036 - 988) + chr(2135 - 2024) + chr(2294 - 2243) + '\064' + chr(0b11111 + 0o30), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(1115 - 1004) + chr(49) + chr(0b110101) + '\062', 0o10), nzTpIcepk0o8(chr(1834 - 1786) + '\x6f' + chr(51) + chr(282 - 231) + chr(0b110011), ord("\x08")), nzTpIcepk0o8(chr(0b11010 + 0o26) + '\157' + chr(55) + chr(52), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + '\063' + chr(2632 - 2579) + chr(2245 - 2194), 33580 - 33572), nzTpIcepk0o8('\x30' + chr(0b1011011 + 0o24) + chr(0b110101) + chr(49), ord("\x08")), nzTpIcepk0o8(chr(0b1101 + 0o43) + '\x6f' + chr(50) + chr(0b1000 + 0o53) + chr(0b11001 + 0o31), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(7248 - 7137) + chr(183 - 134) + '\x33' + chr(2254 - 2204), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\063' + chr(0b110000 + 0o6) + chr(0b1010 + 0o52), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(50) + '\064' + '\065', 0o10), nzTpIcepk0o8(chr(0b1000 + 0o50) + chr(111) + chr(0b100101 + 0o16) + '\064' + '\061', ord("\x08")), nzTpIcepk0o8('\060' + chr(3882 - 3771) + '\x32' + chr(53) + '\x30', 0o10), nzTpIcepk0o8('\060' + chr(111) + '\x32' + '\063' + chr(0b110010), 8), nzTpIcepk0o8(chr(1495 - 1447) + chr(111) + '\066', 0o10), nzTpIcepk0o8(chr(0b11111 + 0o21) + chr(3773 - 3662) + chr(0b101011 + 0o7) + chr(52) + chr(0b11111 + 0o22), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110001) + '\061' + chr(0b110011), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101000 + 0o7) + '\x32' + '\060' + chr(1790 - 1742), 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(0b110000 + 0o77) + chr(645 - 592) + chr(0b110000), 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'r'), '\x64' + chr(101) + '\x63' + '\157' + chr(0b10001 + 0o123) + '\145')(chr(0b11000 + 0o135) + '\x74' + chr(0b1001 + 0o135) + '\055' + chr(0b111000)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def i4g20znNpwUV(hXMPsSrOQzbh, ztC3O2ZXmsJr, D6Ev8Dnyj5Ex=nzTpIcepk0o8(chr(0b100 + 0o54) + '\157' + chr(1855 - 1807), ord("\x08"))):
if not D6Ev8Dnyj5Ex:
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x03\xd2\xb2\xc5\xad\xd5\xbc\xee'), '\144' + chr(1719 - 1618) + chr(9206 - 9107) + chr(0b1001010 + 0o45) + chr(0b1100100) + '\145')(chr(0b10101 + 0o140) + chr(0b100110 + 0o116) + chr(0b110101 + 0o61) + '\x2d' + '\x38'))()
lGEvcQvoBs6T = hXMPsSrOQzbh._packto(ztC3O2ZXmsJr)
LdutnSZZlAdG = hXMPsSrOQzbh._parser.paddingsize2(lGEvcQvoBs6T)
if LdutnSZZlAdG > lGEvcQvoBs6T:
roI3spqORKae(ztC3O2ZXmsJr, roI3spqORKae(ES5oEprVxulp(b'1\xce\xf0\xc8\xb5\xc4\xa9\xb4\x90\x1e\xb0\x8c'), '\x64' + chr(101) + '\143' + '\157' + '\144' + '\x65')(chr(0b1110101) + chr(116) + chr(0b101110 + 0o70) + chr(0b100101 + 0o10) + chr(0b111000)))(ES5oEprVxulp(b'\\') * (LdutnSZZlAdG - lGEvcQvoBs6T))
return LdutnSZZlAdG |
hubo1016/namedstruct | namedstruct/namedstruct.py | NamedStruct._realsize | def _realsize(self):
'''
Get the struct size without padding (or the "real size")
:returns: the "real size" in bytes
'''
current = self
size= 0
while current is not None:
size += current._parser.sizeof(current)
last = current
current = getattr(current, '_sub', None)
size += len(getattr(last, '_extra', b''))
return size | python | def _realsize(self):
'''
Get the struct size without padding (or the "real size")
:returns: the "real size" in bytes
'''
current = self
size= 0
while current is not None:
size += current._parser.sizeof(current)
last = current
current = getattr(current, '_sub', None)
size += len(getattr(last, '_extra', b''))
return size | [
"def",
"_realsize",
"(",
"self",
")",
":",
"current",
"=",
"self",
"size",
"=",
"0",
"while",
"current",
"is",
"not",
"None",
":",
"size",
"+=",
"current",
".",
"_parser",
".",
"sizeof",
"(",
"current",
")",
"last",
"=",
"current",
"current",
"=",
"getattr",
"(",
"current",
",",
"'_sub'",
",",
"None",
")",
"size",
"+=",
"len",
"(",
"getattr",
"(",
"last",
",",
"'_extra'",
",",
"b''",
")",
")",
"return",
"size"
] | Get the struct size without padding (or the "real size")
:returns: the "real size" in bytes | [
"Get",
"the",
"struct",
"size",
"without",
"padding",
"(",
"or",
"the",
"real",
"size",
")",
":",
"returns",
":",
"the",
"real",
"size",
"in",
"bytes"
] | 5039026e0df4ce23003d212358918dbe1a6e1d76 | https://github.com/hubo1016/namedstruct/blob/5039026e0df4ce23003d212358918dbe1a6e1d76/namedstruct/namedstruct.py#L174-L188 | train | Get the struct size without padding or the real size | GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wd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I,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) + '\157' + '\x33' + chr(293 - 241) + '\061', 0o10), nzTpIcepk0o8(chr(0b101000 + 0o10) + chr(8224 - 8113) + chr(311 - 260) + chr(53) + '\x36', 63462 - 63454), nzTpIcepk0o8(chr(0b100101 + 0o13) + '\x6f' + chr(0b110011) + '\066' + chr(837 - 789), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x31' + chr(0b110000) + '\x34', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x33' + chr(0b110010) + chr(2039 - 1990), 0o10), nzTpIcepk0o8('\x30' + chr(6905 - 6794) + '\062' + chr(50) + chr(2183 - 2131), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(9244 - 9133) + chr(1640 - 1589) + '\060' + '\064', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110010) + chr(0b110110 + 0o0), 40726 - 40718), nzTpIcepk0o8(chr(0b110000) + chr(0b111110 + 0o61) + chr(49) + chr(0b110010) + chr(0b10111 + 0o31), ord("\x08")), nzTpIcepk0o8(chr(0b100100 + 0o14) + chr(0b111110 + 0o61) + chr(49) + chr(0b110100) + '\x37', 0o10), nzTpIcepk0o8(chr(574 - 526) + chr(111) + chr(1748 - 1699) + chr(0b100100 + 0o16) + chr(1126 - 1073), 22841 - 22833), nzTpIcepk0o8(chr(874 - 826) + chr(3408 - 3297) + chr(0b110000), 8019 - 8011), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(49) + chr(0b110110), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(557 - 507) + chr(0b11 + 0o55) + chr(611 - 563), 32129 - 32121), nzTpIcepk0o8('\x30' + '\157' + '\x33' + '\066' + '\x37', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110000 + 0o3) + chr(1282 - 1229) + '\067', 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(1970 - 1919) + chr(49) + '\x33', 0o10), nzTpIcepk0o8(chr(0b101110 + 0o2) + chr(111) + chr(0b110011) + chr(53), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b10100 + 0o43) + chr(0b100000 + 0o20), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(50) + '\063' + chr(0b110111), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110001) + chr(0b110001) + chr(0b1 + 0o60), 57421 - 57413), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b100011 + 0o20) + chr(984 - 929) + '\x36', 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(2041 - 1990) + chr(2612 - 2560) + '\x34', 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + '\061' + chr(2495 - 2443) + '\x33', 54481 - 54473), nzTpIcepk0o8('\060' + chr(0b1101111) + '\064' + chr(48), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\061' + '\063' + chr(0b101001 + 0o15), 0o10), nzTpIcepk0o8(chr(509 - 461) + chr(0b1100 + 0o143) + '\x32' + chr(3015 - 2960) + chr(49), ord("\x08")), nzTpIcepk0o8(chr(0b100100 + 0o14) + chr(111) + '\061' + chr(52), 0b1000), nzTpIcepk0o8(chr(48) + chr(10563 - 10452) + '\x33' + '\x30' + '\061', ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + '\x33' + chr(0b110011) + chr(54), 43149 - 43141), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\067', 0o10), nzTpIcepk0o8(chr(48) + '\157' + '\x35' + chr(2338 - 2288), 0b1000), nzTpIcepk0o8(chr(0b101010 + 0o6) + chr(111) + chr(789 - 740) + chr(55) + '\060', 39675 - 39667), nzTpIcepk0o8('\x30' + chr(10230 - 10119) + chr(943 - 894) + chr(0b11 + 0o64) + chr(0b110001), 0o10), nzTpIcepk0o8(chr(1109 - 1061) + '\157' + chr(0b110101) + chr(0b110011), 0o10), nzTpIcepk0o8(chr(1152 - 1104) + chr(111) + '\062' + '\x32' + '\x35', 0b1000), nzTpIcepk0o8(chr(0b111 + 0o51) + '\x6f' + chr(186 - 137) + chr(48) + '\063', 13056 - 13048), nzTpIcepk0o8(chr(0b100010 + 0o16) + chr(855 - 744) + '\x32' + '\x31' + '\065', 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + '\063' + '\066' + '\x31', 0o10), nzTpIcepk0o8(chr(0b11111 + 0o21) + '\157' + chr(341 - 290) + chr(0b100 + 0o54) + chr(0b110110), 6636 - 6628)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(1681 - 1633) + chr(0b1101111) + chr(0b110101) + '\x30', 52658 - 52650)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xcf'), chr(0b1100100) + chr(0b1000000 + 0o45) + '\143' + chr(1565 - 1454) + chr(0b1100100) + chr(0b1100101))(chr(117) + chr(0b1110100) + chr(102) + chr(1743 - 1698) + '\070') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def YXSoIjFqEiMd(hXMPsSrOQzbh):
btnZMuSDwyyx = hXMPsSrOQzbh
e1HrJaQHACnl = nzTpIcepk0o8(chr(48) + chr(11092 - 10981) + chr(0b110000), 8)
while btnZMuSDwyyx is not None:
e1HrJaQHACnl += btnZMuSDwyyx._parser.sizeof(btnZMuSDwyyx)
D7WLXGf5s1uK = btnZMuSDwyyx
btnZMuSDwyyx = roI3spqORKae(btnZMuSDwyyx, roI3spqORKae(ES5oEprVxulp(b'\xbe\x9d\x85&'), '\x64' + chr(0b1100101) + chr(99) + chr(111) + '\144' + chr(101))(chr(0b1100010 + 0o23) + '\164' + chr(0b110 + 0o140) + chr(0b1100 + 0o41) + chr(56)), None)
e1HrJaQHACnl += ftfygxgFas5X(roI3spqORKae(D7WLXGf5s1uK, roI3spqORKae(ES5oEprVxulp(b'\xbe\x8b\x880\xa3\xf5'), chr(0b110010 + 0o62) + chr(0b1100101) + chr(0b10100 + 0o117) + chr(0b1101111) + chr(0b1100000 + 0o4) + '\145')(chr(3482 - 3365) + chr(116) + chr(9625 - 9523) + chr(0b10101 + 0o30) + chr(0b110 + 0o62)), ES5oEprVxulp(b'')))
return e1HrJaQHACnl |
hubo1016/namedstruct | namedstruct/namedstruct.py | NamedStruct._subclass | def _subclass(self, parser):
'''
Create sub-classed struct from extra data, with specified parser. For parser internal use.
:param parser: parser of subclass
'''
_set(self, '_sub', parser._create(memoryview(getattr(self, '_extra', b'')), self._target))
try:
object.__delattr__(self, '_extra')
except:
pass | python | def _subclass(self, parser):
'''
Create sub-classed struct from extra data, with specified parser. For parser internal use.
:param parser: parser of subclass
'''
_set(self, '_sub', parser._create(memoryview(getattr(self, '_extra', b'')), self._target))
try:
object.__delattr__(self, '_extra')
except:
pass | [
"def",
"_subclass",
"(",
"self",
",",
"parser",
")",
":",
"_set",
"(",
"self",
",",
"'_sub'",
",",
"parser",
".",
"_create",
"(",
"memoryview",
"(",
"getattr",
"(",
"self",
",",
"'_extra'",
",",
"b''",
")",
")",
",",
"self",
".",
"_target",
")",
")",
"try",
":",
"object",
".",
"__delattr__",
"(",
"self",
",",
"'_extra'",
")",
"except",
":",
"pass"
] | Create sub-classed struct from extra data, with specified parser. For parser internal use.
:param parser: parser of subclass | [
"Create",
"sub",
"-",
"classed",
"struct",
"from",
"extra",
"data",
"with",
"specified",
"parser",
".",
"For",
"parser",
"internal",
"use",
".",
":",
"param",
"parser",
":",
"parser",
"of",
"subclass"
] | 5039026e0df4ce23003d212358918dbe1a6e1d76 | https://github.com/hubo1016/namedstruct/blob/5039026e0df4ce23003d212358918dbe1a6e1d76/namedstruct/namedstruct.py#L197-L207 | train | Create sub - classed struct from extra data with specified parser. For parser internal 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,mBmBrDJUSN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jcUL1ssA8,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(2030 - 1982) + chr(4658 - 4547) + '\x33' + '\x34' + '\064', 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(2015 - 1965), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(49) + chr(880 - 825) + chr(1450 - 1400), 0o10), nzTpIcepk0o8(chr(1655 - 1607) + '\157' + '\x33' + chr(1735 - 1686) + chr(50), ord("\x08")), nzTpIcepk0o8(chr(453 - 405) + '\157' + '\063' + chr(2409 - 2355), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110011) + '\062' + chr(54), 39998 - 39990), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x32' + chr(50) + chr(234 - 180), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x33' + chr(0b1001 + 0o54), 0o10), nzTpIcepk0o8(chr(0b10111 + 0o31) + chr(1878 - 1767) + chr(49) + '\063' + chr(592 - 539), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + '\x33' + chr(48) + chr(51), 30824 - 30816), nzTpIcepk0o8(chr(801 - 753) + chr(0b1101111) + '\x34' + chr(0b101000 + 0o17), 0b1000), nzTpIcepk0o8('\060' + chr(111) + '\x31' + chr(55) + chr(1271 - 1223), 13644 - 13636), nzTpIcepk0o8(chr(0b110000) + chr(11049 - 10938) + chr(0b1101 + 0o45) + chr(55) + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(92 - 42) + chr(54), 47405 - 47397), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110010) + chr(48) + chr(48), 0o10), nzTpIcepk0o8('\x30' + chr(0b11101 + 0o122) + chr(49) + chr(0b110001) + '\x32', 61326 - 61318), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110100) + '\x34', ord("\x08")), nzTpIcepk0o8(chr(2193 - 2145) + '\157' + chr(937 - 883) + chr(0b110111), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + '\x31' + '\067' + '\065', 14460 - 14452), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(51) + chr(48) + '\x34', 35234 - 35226), nzTpIcepk0o8(chr(1019 - 971) + chr(4069 - 3958) + chr(1413 - 1362) + chr(0b1101 + 0o43) + chr(2780 - 2726), 0b1000), nzTpIcepk0o8('\x30' + chr(2662 - 2551) + chr(0b110011) + chr(1922 - 1873) + chr(958 - 903), 0o10), nzTpIcepk0o8(chr(0b1110 + 0o42) + '\x6f' + '\x33' + '\066' + '\066', 42114 - 42106), nzTpIcepk0o8(chr(48) + chr(111) + '\x33' + '\061', 0b1000), nzTpIcepk0o8(chr(0b101111 + 0o1) + '\157' + chr(0b10111 + 0o34) + chr(49) + chr(0b111 + 0o57), ord("\x08")), nzTpIcepk0o8(chr(0b10001 + 0o37) + chr(0b1101001 + 0o6) + chr(2796 - 2742) + chr(0b110101), 0o10), nzTpIcepk0o8(chr(2183 - 2135) + chr(6750 - 6639) + chr(50) + '\x32' + chr(1842 - 1790), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110100) + chr(1028 - 976), 8), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(49) + chr(49) + chr(0b11000 + 0o33), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(1097 - 1046) + '\063' + '\062', 38581 - 38573), nzTpIcepk0o8(chr(0b101011 + 0o5) + chr(111) + chr(2589 - 2538) + chr(53) + chr(0b111 + 0o51), 24969 - 24961), nzTpIcepk0o8('\060' + chr(111) + chr(0b110001 + 0o1) + chr(0b110000) + chr(0b101111 + 0o2), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(50) + '\x30' + '\x34', 29978 - 29970), nzTpIcepk0o8('\060' + chr(5026 - 4915) + '\x33' + chr(2084 - 2030), 8), nzTpIcepk0o8('\x30' + chr(111) + chr(418 - 365), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101110 + 0o1) + chr(0b110001) + chr(54) + '\060', ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b10000 + 0o41) + '\067' + '\x34', 0o10), nzTpIcepk0o8('\x30' + '\157' + '\x31' + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(920 - 872) + chr(0b1101111) + chr(49) + chr(48) + '\x35', ord("\x08")), nzTpIcepk0o8(chr(0b10100 + 0o34) + chr(111) + chr(0b100000 + 0o22) + chr(53) + chr(0b110010), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110101) + '\060', ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xca'), '\x64' + '\x65' + chr(0b1011111 + 0o4) + chr(111) + chr(6906 - 6806) + chr(0b1010101 + 0o20))(chr(5606 - 5489) + chr(10279 - 10163) + '\x66' + chr(0b100000 + 0o15) + chr(0b11000 + 0o40)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def yFUZhLAEr2w9(hXMPsSrOQzbh, ELQLGvoVr2Z_):
OkzTLDr1cGYK(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xbbq\x0f\xa8'), chr(0b1111 + 0o125) + chr(0b1100011 + 0o2) + '\x63' + '\x6f' + chr(100) + '\x65')(chr(10360 - 10243) + chr(116) + chr(0b1100110) + chr(1071 - 1026) + chr(0b111000)), roI3spqORKae(ELQLGvoVr2Z_, roI3spqORKae(ES5oEprVxulp(b'\x85s,\x9ai\x85\xccTd\xfb_\x1f'), '\x64' + '\145' + chr(0b1000111 + 0o34) + chr(6753 - 6642) + chr(100) + '\x65')('\165' + chr(0b1110100) + '\146' + chr(405 - 360) + '\070'))(D2M3XQk26HKr(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xbbg\x02\xbel\xb7'), chr(0b1100100) + chr(0b10100 + 0o121) + chr(840 - 741) + chr(0b1001001 + 0o46) + chr(100) + '\x65')(chr(0b1110101) + chr(0b110111 + 0o75) + chr(0b1100110) + chr(0b101101) + '\070'), ES5oEprVxulp(b''))), roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x8dX?\xf9G\x95\xfeV\x0e\x97F3'), '\144' + chr(2321 - 2220) + '\143' + '\x6f' + chr(100) + '\145')(chr(13332 - 13215) + chr(0b1110100) + '\x66' + chr(826 - 781) + chr(0b10110 + 0o42)))))
try:
roI3spqORKae(mxgO6GAb3Xup, roI3spqORKae(ES5oEprVxulp(b'\xbb]\x1e\xafr\xb7\xe2i/\x9cx'), chr(6356 - 6256) + '\x65' + chr(0b1100011) + chr(111) + '\144' + chr(6202 - 6101))(chr(0b1110101) + chr(0b1100101 + 0o17) + chr(0b1100110) + chr(703 - 658) + chr(1331 - 1275)))(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xbbg\x02\xbel\xb7'), '\x64' + '\145' + chr(0b1100011) + chr(111) + '\x64' + '\145')('\165' + chr(7390 - 7274) + chr(0b1100110) + '\x2d' + chr(56)))
except UtiWT6f6p9yZ:
pass |
hubo1016/namedstruct | namedstruct/namedstruct.py | NamedStruct._extend | def _extend(self, newsub):
'''
Append a subclass (extension) after the base class. For parser internal use.
'''
current = self
while hasattr(current, '_sub'):
current = current._sub
_set(current, '_sub', newsub)
try:
object.__delattr__(self, '_extra')
except:
pass | python | def _extend(self, newsub):
'''
Append a subclass (extension) after the base class. For parser internal use.
'''
current = self
while hasattr(current, '_sub'):
current = current._sub
_set(current, '_sub', newsub)
try:
object.__delattr__(self, '_extra')
except:
pass | [
"def",
"_extend",
"(",
"self",
",",
"newsub",
")",
":",
"current",
"=",
"self",
"while",
"hasattr",
"(",
"current",
",",
"'_sub'",
")",
":",
"current",
"=",
"current",
".",
"_sub",
"_set",
"(",
"current",
",",
"'_sub'",
",",
"newsub",
")",
"try",
":",
"object",
".",
"__delattr__",
"(",
"self",
",",
"'_extra'",
")",
"except",
":",
"pass"
] | Append a subclass (extension) after the base class. For parser internal use. | [
"Append",
"a",
"subclass",
"(",
"extension",
")",
"after",
"the",
"base",
"class",
".",
"For",
"parser",
"internal",
"use",
"."
] | 5039026e0df4ce23003d212358918dbe1a6e1d76 | https://github.com/hubo1016/namedstruct/blob/5039026e0df4ce23003d212358918dbe1a6e1d76/namedstruct/namedstruct.py#L214-L225 | train | Extend the base class with a new subclass. | GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwH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rq,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(0b11100 + 0o24) + '\157' + chr(50) + chr(0b100111 + 0o17), ord("\x08")), nzTpIcepk0o8(chr(0b10100 + 0o34) + chr(111) + chr(2284 - 2234) + '\060' + '\x31', 0o10), nzTpIcepk0o8('\060' + chr(3430 - 3319) + '\x32' + chr(0b1011 + 0o53) + '\x34', 0b1000), nzTpIcepk0o8(chr(0b100000 + 0o20) + chr(0b1010000 + 0o37) + chr(51) + chr(0b10100 + 0o42) + chr(55), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(1095 - 1045) + chr(50) + chr(54), 0o10), nzTpIcepk0o8(chr(230 - 182) + '\157' + chr(2367 - 2315) + '\065', ord("\x08")), nzTpIcepk0o8(chr(1184 - 1136) + chr(0b1101111) + chr(0b11100 + 0o27) + chr(48) + '\x36', 0o10), nzTpIcepk0o8(chr(0b101011 + 0o5) + chr(0b10100 + 0o133) + '\061' + chr(52) + chr(0b110011), 63912 - 63904), nzTpIcepk0o8(chr(0b110000) + chr(249 - 138) + '\066' + '\x32', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(4537 - 4426) + '\065' + '\062', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(1497 - 1446) + chr(52) + chr(50), 0b1000), nzTpIcepk0o8(chr(785 - 737) + chr(0b1101111) + chr(51) + '\063' + chr(0b110110), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b110001 + 0o76) + chr(51) + '\x36' + chr(0b110001), 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(0b10001 + 0o45) + chr(282 - 229), 42326 - 42318), nzTpIcepk0o8(chr(48) + '\157' + chr(49) + chr(52) + chr(0b110010), 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(1489 - 1440) + chr(2151 - 2103) + chr(0b101101 + 0o6), 0b1000), nzTpIcepk0o8(chr(48) + chr(7417 - 7306) + chr(0b10 + 0o64) + chr(0b110111), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1100110 + 0o11) + chr(49) + chr(0b100000 + 0o21) + '\x31', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1011011 + 0o24) + '\x32' + chr(1701 - 1649) + chr(0b110011), 55659 - 55651), nzTpIcepk0o8('\060' + chr(111) + '\064' + chr(54), 14388 - 14380), nzTpIcepk0o8(chr(0b110000) + chr(0b1010 + 0o145) + chr(0b11011 + 0o27) + '\x34' + '\060', 19894 - 19886), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x37' + chr(851 - 802), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x33' + chr(0b110110) + '\061', 8), nzTpIcepk0o8('\x30' + chr(0b111 + 0o150) + chr(49) + chr(0b110110) + chr(0b110110), 15915 - 15907), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110101) + chr(48), 0o10), nzTpIcepk0o8(chr(48) + chr(0b101011 + 0o104) + chr(0b110010) + chr(49) + '\x31', 24382 - 24374), nzTpIcepk0o8(chr(0b101110 + 0o2) + chr(8257 - 8146) + '\063' + chr(0b110101 + 0o0) + chr(0b110111), 6279 - 6271), nzTpIcepk0o8(chr(570 - 522) + '\157' + '\062' + chr(2596 - 2543) + chr(0b110000), 22095 - 22087), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110110) + '\x36', ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110001) + '\064' + chr(0b110010), 8), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(50) + '\x35' + chr(0b110100), 2240 - 2232), nzTpIcepk0o8(chr(2038 - 1990) + chr(12319 - 12208) + chr(1243 - 1192) + '\063' + '\064', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(3588 - 3477) + chr(50) + chr(0b101100 + 0o11) + '\062', 0o10), nzTpIcepk0o8(chr(0b11101 + 0o23) + chr(0b1011001 + 0o26) + chr(0b110011) + '\x31' + chr(0b100011 + 0o21), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(49) + chr(0b11 + 0o55), 50800 - 50792), nzTpIcepk0o8(chr(398 - 350) + chr(0b1101111) + chr(0b100 + 0o57) + '\064', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(230 - 119) + '\x33' + '\x33' + '\062', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x31' + '\060' + chr(0b110110), 0o10), nzTpIcepk0o8('\060' + chr(0b11101 + 0o122) + '\x35' + '\x34', 0o10), nzTpIcepk0o8('\060' + chr(0b11001 + 0o126) + chr(49) + chr(54) + chr(0b10100 + 0o41), 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110101) + chr(48), 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'8'), chr(0b1100100) + chr(0b100 + 0o141) + '\143' + chr(0b1101111) + chr(218 - 118) + '\145')('\x75' + '\x74' + chr(0b110001 + 0o65) + '\x2d' + '\070') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def w1XVpbQChjuF(hXMPsSrOQzbh, Xz8CVTzGDVlj):
btnZMuSDwyyx = hXMPsSrOQzbh
while dRKdVnHPFq7C(btnZMuSDwyyx, roI3spqORKae(ES5oEprVxulp(b'I\xf2\xc1\x95'), chr(0b1100100) + chr(0b1100101) + chr(0b1001 + 0o132) + chr(0b1101111) + chr(0b1100100) + chr(9857 - 9756))(chr(0b1101000 + 0o15) + chr(0b1110100) + '\146' + chr(1746 - 1701) + '\070')):
btnZMuSDwyyx = btnZMuSDwyyx._sub
OkzTLDr1cGYK(btnZMuSDwyyx, roI3spqORKae(ES5oEprVxulp(b'I\xf2\xc1\x95'), chr(398 - 298) + chr(0b1001100 + 0o31) + chr(99) + chr(0b1101000 + 0o7) + chr(0b1011 + 0o131) + '\145')(chr(0b1101000 + 0o15) + chr(0b1110100) + '\146' + chr(0b101101) + '\x38'), Xz8CVTzGDVlj)
try:
roI3spqORKae(mxgO6GAb3Xup, roI3spqORKae(ES5oEprVxulp(b'I\xde\xd0\x92\xfaD\xb2\x17@u\xbd'), '\x64' + chr(101) + chr(0b1100011) + chr(0b1101111) + chr(0b1100100) + chr(101))(chr(117) + chr(0b1110100) + chr(0b1100110) + chr(0b101101) + '\x38'))(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'I\xe4\xcc\x83\xe4D'), chr(0b1100100) + '\145' + '\143' + chr(111) + chr(3430 - 3330) + '\145')(chr(0b101110 + 0o107) + '\x74' + chr(102) + chr(0b101101) + '\x38'))
except UtiWT6f6p9yZ:
pass |
hubo1016/namedstruct | namedstruct/namedstruct.py | NamedStruct._gettype | def _gettype(self):
'''
Return current type of this struct
:returns: a typedef object (e.g. nstruct)
'''
current = self
lastname = getattr(current._parser, 'typedef', None)
while hasattr(current, '_sub'):
current = current._sub
tn = getattr(current._parser, 'typedef', None)
if tn is not None:
lastname = tn
return lastname | python | def _gettype(self):
'''
Return current type of this struct
:returns: a typedef object (e.g. nstruct)
'''
current = self
lastname = getattr(current._parser, 'typedef', None)
while hasattr(current, '_sub'):
current = current._sub
tn = getattr(current._parser, 'typedef', None)
if tn is not None:
lastname = tn
return lastname | [
"def",
"_gettype",
"(",
"self",
")",
":",
"current",
"=",
"self",
"lastname",
"=",
"getattr",
"(",
"current",
".",
"_parser",
",",
"'typedef'",
",",
"None",
")",
"while",
"hasattr",
"(",
"current",
",",
"'_sub'",
")",
":",
"current",
"=",
"current",
".",
"_sub",
"tn",
"=",
"getattr",
"(",
"current",
".",
"_parser",
",",
"'typedef'",
",",
"None",
")",
"if",
"tn",
"is",
"not",
"None",
":",
"lastname",
"=",
"tn",
"return",
"lastname"
] | Return current type of this struct
:returns: a typedef object (e.g. nstruct) | [
"Return",
"current",
"type",
"of",
"this",
"struct",
":",
"returns",
":",
"a",
"typedef",
"object",
"(",
"e",
".",
"g",
".",
"nstruct",
")"
] | 5039026e0df4ce23003d212358918dbe1a6e1d76 | https://github.com/hubo1016/namedstruct/blob/5039026e0df4ce23003d212358918dbe1a6e1d76/namedstruct/namedstruct.py#L226-L240 | train | Return current type of this struct
| 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(48) + chr(7550 - 7439) + chr(49) + chr(2355 - 2306) + chr(0b110011), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(1499 - 1448) + '\061' + chr(0b101 + 0o61), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + '\061' + chr(0b10010 + 0o36) + chr(0b110011), 24966 - 24958), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b101100 + 0o7) + chr(0b1001 + 0o54) + chr(0b11000 + 0o32), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(49) + '\065' + '\063', 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110011) + '\x31' + chr(0b110110), 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(51) + chr(49) + '\x30', 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(1242 - 1192) + chr(182 - 130) + chr(0b110110), 55550 - 55542), nzTpIcepk0o8(chr(48) + chr(7725 - 7614) + chr(49) + chr(0b110100), 0o10), nzTpIcepk0o8('\060' + chr(8826 - 8715) + chr(51) + chr(1183 - 1131) + chr(52), 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(1100 - 1051) + chr(184 - 133) + '\x32', 0b1000), nzTpIcepk0o8(chr(1656 - 1608) + chr(111) + '\x33' + chr(2185 - 2134) + '\x37', ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(1361 - 1312) + chr(0b110011) + chr(1236 - 1187), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1010011 + 0o34) + chr(376 - 327) + '\x36', ord("\x08")), nzTpIcepk0o8(chr(1739 - 1691) + chr(6417 - 6306) + chr(1083 - 1034) + '\063' + chr(2774 - 2720), 0b1000), nzTpIcepk0o8(chr(48) + chr(7523 - 7412) + chr(0b11011 + 0o27) + chr(0b110111) + chr(52), 0b1000), nzTpIcepk0o8(chr(2218 - 2170) + chr(11788 - 11677) + chr(1147 - 1098) + chr(0b101100 + 0o6) + chr(0b1110 + 0o42), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b1011 + 0o46) + '\x37' + '\x31', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(1050 - 939) + chr(52) + '\066', 43224 - 43216), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(1252 - 1201) + '\065' + chr(0b110101), ord("\x08")), nzTpIcepk0o8(chr(0b101110 + 0o2) + chr(0b101110 + 0o101) + '\063' + chr(0b110100), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110011) + chr(1821 - 1770) + chr(0b110010), 0b1000), nzTpIcepk0o8('\060' + chr(456 - 345) + chr(2440 - 2389) + chr(0b110010) + '\x30', 0b1000), nzTpIcepk0o8('\x30' + chr(2453 - 2342) + '\063' + '\x31' + chr(52), 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(0b0 + 0o62) + chr(0b110100) + chr(2397 - 2342), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(51) + chr(0b111 + 0o54) + chr(51), 0o10), nzTpIcepk0o8('\x30' + chr(3500 - 3389) + chr(49) + chr(2009 - 1958) + chr(0b110011), 0o10), nzTpIcepk0o8(chr(1504 - 1456) + chr(111) + chr(0b110010) + chr(0b110010) + chr(1354 - 1303), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x32' + chr(2067 - 2013) + chr(0b110100), 0o10), nzTpIcepk0o8(chr(48) + chr(4563 - 4452) + '\x33' + '\067' + '\066', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b111 + 0o53) + chr(0b11010 + 0o26) + chr(930 - 880), 7352 - 7344), nzTpIcepk0o8(chr(48) + chr(111) + chr(55) + '\x34', 0o10), nzTpIcepk0o8('\060' + chr(0b110110 + 0o71) + chr(0b1010 + 0o50) + chr(54) + '\063', 6468 - 6460), nzTpIcepk0o8(chr(1129 - 1081) + '\x6f' + chr(83 - 33) + '\x37' + chr(0b11101 + 0o24), 39329 - 39321), nzTpIcepk0o8('\x30' + '\157' + chr(0b110011) + '\066', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(4543 - 4432) + chr(50) + chr(0b110110 + 0o0) + '\x35', 0o10), nzTpIcepk0o8('\x30' + chr(111) + '\x31' + '\065', 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(0b0 + 0o62) + chr(53) + chr(50), 51189 - 51181), nzTpIcepk0o8(chr(0b101011 + 0o5) + '\157' + chr(2001 - 1949) + '\x31', ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b101000 + 0o12) + '\x36' + chr(49), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110101) + '\x30', ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'e'), chr(0b1100100) + '\145' + '\143' + chr(111) + '\x64' + chr(0b1100101))('\x75' + chr(116) + chr(8791 - 8689) + chr(45) + chr(699 - 643)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def G4qgXbhFzE6G(hXMPsSrOQzbh):
btnZMuSDwyyx = hXMPsSrOQzbh
PgTvBX5fdLJe = roI3spqORKae(btnZMuSDwyyx.z9MHusHjlvHX, roI3spqORKae(ES5oEprVxulp(b'?\xb73\x8f\x0f\xab\xae'), '\x64' + chr(0b100011 + 0o102) + chr(99) + '\157' + chr(1064 - 964) + chr(0b1100101))(chr(0b1110101) + '\164' + '\146' + chr(45) + '\070'), None)
while dRKdVnHPFq7C(btnZMuSDwyyx, roI3spqORKae(ES5oEprVxulp(b'\x14\xbd6\x88'), chr(0b1100100) + chr(0b1100101) + '\143' + chr(3076 - 2965) + chr(100) + '\x65')('\165' + chr(1147 - 1031) + '\146' + chr(45) + '\x38')):
btnZMuSDwyyx = btnZMuSDwyyx._sub
CPIn0m1xIj2l = roI3spqORKae(btnZMuSDwyyx.z9MHusHjlvHX, roI3spqORKae(ES5oEprVxulp(b'?\xb73\x8f\x0f\xab\xae'), chr(0b111 + 0o135) + chr(101) + '\x63' + chr(111) + '\144' + chr(101))('\x75' + '\x74' + chr(102) + '\x2d' + chr(56)), None)
if CPIn0m1xIj2l is not None:
PgTvBX5fdLJe = CPIn0m1xIj2l
return PgTvBX5fdLJe |
hubo1016/namedstruct | namedstruct/namedstruct.py | NamedStruct._setextra | def _setextra(self, extradata):
'''
Set the _extra field in the struct, which stands for the additional ("extra") data after the
defined fields.
'''
current = self
while hasattr(current, '_sub'):
current = current._sub
_set(current, '_extra', extradata) | python | def _setextra(self, extradata):
'''
Set the _extra field in the struct, which stands for the additional ("extra") data after the
defined fields.
'''
current = self
while hasattr(current, '_sub'):
current = current._sub
_set(current, '_extra', extradata) | [
"def",
"_setextra",
"(",
"self",
",",
"extradata",
")",
":",
"current",
"=",
"self",
"while",
"hasattr",
"(",
"current",
",",
"'_sub'",
")",
":",
"current",
"=",
"current",
".",
"_sub",
"_set",
"(",
"current",
",",
"'_extra'",
",",
"extradata",
")"
] | Set the _extra field in the struct, which stands for the additional ("extra") data after the
defined fields. | [
"Set",
"the",
"_extra",
"field",
"in",
"the",
"struct",
"which",
"stands",
"for",
"the",
"additional",
"(",
"extra",
")",
"data",
"after",
"the",
"defined",
"fields",
"."
] | 5039026e0df4ce23003d212358918dbe1a6e1d76 | https://github.com/hubo1016/namedstruct/blob/5039026e0df4ce23003d212358918dbe1a6e1d76/namedstruct/namedstruct.py#L249-L257 | train | Set the _extra field in the struct which stands for the additional data after the
defined fields. | 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,Kqv3Zaj1M9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3foQ_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(0b100100 + 0o113) + chr(0b110010) + chr(0b110100) + '\x33', 0o10), nzTpIcepk0o8(chr(0b100111 + 0o11) + '\x6f' + '\063' + chr(0b110101), 0o10), nzTpIcepk0o8(chr(48) + '\157' + '\x33' + chr(286 - 232) + chr(94 - 43), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(1960 - 1849) + '\063' + '\x30' + chr(49), 0o10), nzTpIcepk0o8(chr(0b1011 + 0o45) + chr(0b1101111) + '\061' + '\x31' + chr(0b10111 + 0o33), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110010) + chr(0b1110 + 0o44) + '\x36', 32773 - 32765), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\063' + chr(53) + chr(0b101111 + 0o6), 30122 - 30114), nzTpIcepk0o8('\060' + chr(111) + chr(0b1000 + 0o53) + chr(0b100001 + 0o24) + '\063', 0b1000), nzTpIcepk0o8('\060' + chr(111) + '\063' + chr(0b110101) + '\064', ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + '\x32' + chr(52) + chr(49), 51057 - 51049), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b101 + 0o56) + chr(0b110111) + chr(1425 - 1373), 0o10), nzTpIcepk0o8(chr(1349 - 1301) + '\157' + '\x32' + '\065' + chr(0b110000), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x32' + '\x31' + chr(0b110111), 47520 - 47512), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(49) + '\067' + chr(0b110010), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(51) + chr(0b110011) + chr(54), 21226 - 21218), nzTpIcepk0o8(chr(0b110000) + chr(0b1101110 + 0o1) + '\062' + '\066' + '\x35', ord("\x08")), nzTpIcepk0o8('\060' + chr(5530 - 5419) + '\x32' + '\x33' + '\x34', 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\061' + chr(0b110100) + chr(0b1110 + 0o42), 0o10), nzTpIcepk0o8(chr(0b101111 + 0o1) + chr(0b1101111) + chr(0b110011) + chr(0b11 + 0o57) + chr(0b11001 + 0o33), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(49) + chr(51) + chr(1898 - 1848), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x32' + chr(54) + '\065', 8), nzTpIcepk0o8(chr(800 - 752) + '\x6f' + chr(0b110011) + '\x34' + chr(1532 - 1482), 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(0b0 + 0o63) + chr(0b110100) + chr(0b1 + 0o61), 8), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110001) + chr(0b110111) + chr(53), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x33' + chr(0b110011) + chr(0b110000), 0o10), nzTpIcepk0o8(chr(1005 - 957) + chr(111) + '\x32' + chr(53) + chr(239 - 187), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(50) + chr(0b110101) + '\061', 2165 - 2157), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(662 - 613) + chr(1771 - 1721) + chr(0b110110), 28812 - 28804), nzTpIcepk0o8('\x30' + chr(10701 - 10590) + chr(0b110100) + chr(52), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110011) + chr(529 - 474) + chr(51), 0b1000), nzTpIcepk0o8('\060' + chr(111) + '\x33' + chr(0b110100) + chr(724 - 673), ord("\x08")), nzTpIcepk0o8(chr(0b100101 + 0o13) + '\x6f' + chr(523 - 472) + chr(0b110111) + '\x30', ord("\x08")), nzTpIcepk0o8(chr(0b10010 + 0o36) + chr(1981 - 1870) + '\061' + chr(0b1101 + 0o51) + '\x33', ord("\x08")), nzTpIcepk0o8(chr(0b100100 + 0o14) + chr(7646 - 7535) + chr(0b110010) + chr(51) + chr(0b100 + 0o56), 0o10), nzTpIcepk0o8(chr(352 - 304) + chr(5608 - 5497) + '\065' + chr(456 - 405), ord("\x08")), nzTpIcepk0o8(chr(0b100010 + 0o16) + '\157' + chr(0b110100) + '\x31', 27857 - 27849), nzTpIcepk0o8(chr(48) + chr(5649 - 5538) + chr(0b110101) + chr(0b110011), 8), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(2071 - 2021) + '\x35' + '\x31', 8), nzTpIcepk0o8('\060' + '\157' + '\061' + '\x37' + '\x30', 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b111 + 0o52) + '\x37' + chr(1891 - 1839), 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + chr(7533 - 7422) + '\065' + '\060', 26824 - 26816)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x8d'), chr(0b1100100) + chr(8558 - 8457) + chr(0b1100011) + chr(0b11110 + 0o121) + '\144' + '\145')(chr(0b1110101) + chr(0b10011 + 0o141) + '\146' + chr(45) + chr(2551 - 2495)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def FoCdG9xHercP(hXMPsSrOQzbh, x7IGoijWy92f):
btnZMuSDwyyx = hXMPsSrOQzbh
while dRKdVnHPFq7C(btnZMuSDwyyx, roI3spqORKae(ES5oEprVxulp(b'\xfcn\x86\xa3'), chr(100) + chr(0b11100 + 0o111) + '\x63' + chr(0b1101111) + '\x64' + chr(0b111111 + 0o46))(chr(117) + chr(4608 - 4492) + '\146' + chr(45) + '\070')):
btnZMuSDwyyx = btnZMuSDwyyx._sub
OkzTLDr1cGYK(btnZMuSDwyyx, roI3spqORKae(ES5oEprVxulp(b'\xfcx\x8b\xb58\xf7'), chr(0b1001010 + 0o32) + '\x65' + chr(2910 - 2811) + chr(2525 - 2414) + chr(0b1100100) + chr(0b1010111 + 0o16))('\x75' + '\x74' + chr(1576 - 1474) + '\055' + chr(0b111000)), x7IGoijWy92f) |
hubo1016/namedstruct | namedstruct/namedstruct.py | NamedStruct._getextra | def _getextra(self):
'''
Get the extra data of this struct.
'''
current = self
while hasattr(current, '_sub'):
current = current._sub
return getattr(current, '_extra', None) | python | def _getextra(self):
'''
Get the extra data of this struct.
'''
current = self
while hasattr(current, '_sub'):
current = current._sub
return getattr(current, '_extra', None) | [
"def",
"_getextra",
"(",
"self",
")",
":",
"current",
"=",
"self",
"while",
"hasattr",
"(",
"current",
",",
"'_sub'",
")",
":",
"current",
"=",
"current",
".",
"_sub",
"return",
"getattr",
"(",
"current",
",",
"'_extra'",
",",
"None",
")"
] | Get the extra data of this struct. | [
"Get",
"the",
"extra",
"data",
"of",
"this",
"struct",
"."
] | 5039026e0df4ce23003d212358918dbe1a6e1d76 | https://github.com/hubo1016/namedstruct/blob/5039026e0df4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EeqQiUoqWT,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(0b110010) + chr(2837 - 2782) + chr(55), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b110010 + 0o75) + chr(0b100010 + 0o24) + '\061', 50091 - 50083), nzTpIcepk0o8(chr(1357 - 1309) + '\157' + '\x32' + '\063' + chr(2899 - 2844), 49317 - 49309), nzTpIcepk0o8(chr(48) + chr(7235 - 7124) + '\x31' + chr(51) + chr(2432 - 2382), 0o10), nzTpIcepk0o8(chr(957 - 909) + chr(0b1101111) + '\061' + chr(0b110010) + '\x34', ord("\x08")), nzTpIcepk0o8('\060' + '\157' + '\x33' + '\x33' + '\063', 8513 - 8505), nzTpIcepk0o8('\060' + '\x6f' + chr(2001 - 1948), 0o10), nzTpIcepk0o8('\060' + chr(0b1011000 + 0o27) + chr(1633 - 1584) + chr(0b1101 + 0o45) + chr(54), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b111011 + 0o64) + '\x32' + chr(0b11101 + 0o23), 0b1000), nzTpIcepk0o8('\060' + chr(8867 - 8756) + chr(1775 - 1725) + '\060', 8), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110011) + chr(51) + chr(1305 - 1255), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(108 - 58) + '\x36' + chr(0b110101), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(2453 - 2403) + chr(2359 - 2308) + '\064', 59330 - 59322), nzTpIcepk0o8('\x30' + chr(111) + chr(1357 - 1306), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110101) + '\060', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\063' + chr(0b100100 + 0o15) + '\x31', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110000 + 0o2) + chr(49) + chr(52), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(2026 - 1977) + chr(566 - 513) + chr(0b110111), 40404 - 40396), nzTpIcepk0o8(chr(48) + chr(861 - 750) + chr(49) + '\061' + chr(511 - 462), 0o10), nzTpIcepk0o8('\060' + chr(8473 - 8362) + chr(51) + '\065' + '\x35', 0b1000), nzTpIcepk0o8(chr(0b1110 + 0o42) + chr(0b1001010 + 0o45) + chr(0b110010) + chr(0b1111 + 0o47) + '\x34', 0o10), nzTpIcepk0o8(chr(2189 - 2141) + '\x6f' + '\063', 8), nzTpIcepk0o8(chr(0b110000) + chr(0b10010 + 0o135) + chr(0b110001 + 0o1) + chr(0b1111 + 0o50) + chr(0b101100 + 0o11), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(51) + chr(0b110000) + chr(0b110011), 0o10), nzTpIcepk0o8(chr(48) + chr(0b111000 + 0o67) + chr(0b110001) + chr(0b110000) + '\065', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\066' + chr(0b110100), 0o10), nzTpIcepk0o8('\x30' + chr(111) + '\x31' + chr(52) + '\062', 0b1000), nzTpIcepk0o8('\060' + '\157' + chr(503 - 452) + chr(0b1001 + 0o51) + chr(55), 0b1000), nzTpIcepk0o8(chr(0b101100 + 0o4) + chr(0b1101111) + chr(1181 - 1131) + '\060', 8), nzTpIcepk0o8(chr(817 - 769) + chr(8185 - 8074) + '\061' + chr(0b110000) + chr(0b101 + 0o54), ord("\x08")), nzTpIcepk0o8(chr(0b1111 + 0o41) + '\x6f' + '\x32' + chr(50) + chr(0b101100 + 0o10), 43903 - 43895), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\062' + chr(2240 - 2190) + chr(106 - 57), ord("\x08")), nzTpIcepk0o8(chr(1240 - 1192) + '\157' + chr(49) + chr(1509 - 1460) + chr(1267 - 1215), 0b1000), nzTpIcepk0o8(chr(0b101110 + 0o2) + '\x6f' + chr(49) + chr(0b110111) + chr(0b110110), ord("\x08")), nzTpIcepk0o8(chr(0b11000 + 0o30) + chr(111) + chr(0b10 + 0o60) + chr(0b110011) + chr(0b110001), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\063' + '\x32' + chr(0b1010 + 0o47), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x32' + chr(0b11101 + 0o31) + '\066', 46959 - 46951), nzTpIcepk0o8('\x30' + chr(0b1100101 + 0o12) + '\x33' + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(48) + chr(8943 - 8832) + '\061' + chr(49) + chr(51), 0b1000), nzTpIcepk0o8(chr(0b100001 + 0o17) + chr(4591 - 4480) + '\062' + chr(0b110000) + '\x37', 18656 - 18648)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(960 - 907) + chr(48), 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x91'), chr(100) + chr(4137 - 4036) + '\x63' + '\157' + '\x64' + chr(0b101110 + 0o67))(chr(0b1110101) + '\x74' + '\146' + chr(0b101101) + chr(0b111000)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def kIYqpa2BSSKA(hXMPsSrOQzbh):
btnZMuSDwyyx = hXMPsSrOQzbh
while dRKdVnHPFq7C(btnZMuSDwyyx, roI3spqORKae(ES5oEprVxulp(b'\xe0B\xea8'), '\x64' + '\x65' + chr(0b101100 + 0o67) + '\x6f' + chr(100) + '\x65')('\x75' + chr(116) + chr(0b1010011 + 0o23) + '\x2d' + chr(56))):
btnZMuSDwyyx = btnZMuSDwyyx._sub
return roI3spqORKae(btnZMuSDwyyx, roI3spqORKae(ES5oEprVxulp(b'\xe0T\xe7.&\xba'), chr(100) + chr(101) + chr(5019 - 4920) + chr(0b1101111) + '\x64' + chr(2516 - 2415))('\165' + '\164' + chr(3694 - 3592) + '\055' + chr(0b111000 + 0o0)), None) |
hubo1016/namedstruct | namedstruct/namedstruct.py | NamedStruct._replace_embedded_type | def _replace_embedded_type(self, name, newtype):
'''
Replace the embedded struct to a newly-created struct of another type (usually based on the
original type). The attributes of the old struct is NOT preserved.
:param name: either the original type, or the name of the original type. It is always the type
used in type definitions, even if it is already replaced once or more.
:param newtype: the new type to replace
'''
if hasattr(name, 'readablename'):
name = name.readablename
t,i = self._target._embedded_indices[name]
t._seqs[i] = newtype.parser().new(self._target) | python | def _replace_embedded_type(self, name, newtype):
'''
Replace the embedded struct to a newly-created struct of another type (usually based on the
original type). The attributes of the old struct is NOT preserved.
:param name: either the original type, or the name of the original type. It is always the type
used in type definitions, even if it is already replaced once or more.
:param newtype: the new type to replace
'''
if hasattr(name, 'readablename'):
name = name.readablename
t,i = self._target._embedded_indices[name]
t._seqs[i] = newtype.parser().new(self._target) | [
"def",
"_replace_embedded_type",
"(",
"self",
",",
"name",
",",
"newtype",
")",
":",
"if",
"hasattr",
"(",
"name",
",",
"'readablename'",
")",
":",
"name",
"=",
"name",
".",
"readablename",
"t",
",",
"i",
"=",
"self",
".",
"_target",
".",
"_embedded_indices",
"[",
"name",
"]",
"t",
".",
"_seqs",
"[",
"i",
"]",
"=",
"newtype",
".",
"parser",
"(",
")",
".",
"new",
"(",
"self",
".",
"_target",
")"
] | Replace the embedded struct to a newly-created struct of another type (usually based on the
original type). The attributes of the old struct is NOT preserved.
:param name: either the original type, or the name of the original type. It is always the type
used in type definitions, even if it is already replaced once or more.
:param newtype: the new type to replace | [
"Replace",
"the",
"embedded",
"struct",
"to",
"a",
"newly",
"-",
"created",
"struct",
"of",
"another",
"type",
"(",
"usually",
"based",
"on",
"the",
"original",
"type",
")",
".",
"The",
"attributes",
"of",
"the",
"old",
"struct",
"is",
"NOT",
"preserved",
".",
":",
"param",
"name",
":",
"either",
"the",
"original",
"type",
"or",
"the",
"name",
"of",
"the",
"original",
"type",
".",
"It",
"is",
"always",
"the",
"type",
"used",
"in",
"type",
"definitions",
"even",
"if",
"it",
"is",
"already",
"replaced",
"once",
"or",
"more",
".",
":",
"param",
"newtype",
":",
"the",
"new",
"type",
"to",
"replace"
] | 5039026e0df4ce23003d212358918dbe1a6e1d76 | https://github.com/hubo1016/namedstruct/blob/5039026e0df4ce23003d212358918dbe1a6e1d76/namedstruct/namedstruct.py#L325-L338 | train | Replace the embedded struct with a newly - created struct of another type. | 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,oxjHm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J07XsN5uFgW,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(8238 - 8127) + '\x33' + chr(53) + chr(49), 8833 - 8825), nzTpIcepk0o8(chr(744 - 696) + '\x6f' + '\x32' + '\067' + chr(1198 - 1150), 64201 - 64193), nzTpIcepk0o8(chr(0b1101 + 0o43) + chr(7576 - 7465) + chr(0b10100 + 0o40) + '\x37', 0o10), nzTpIcepk0o8(chr(1616 - 1568) + '\x6f' + chr(2149 - 2098) + chr(54) + chr(1548 - 1495), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b101101 + 0o102) + '\x32' + '\x31' + '\066', ord("\x08")), nzTpIcepk0o8(chr(0b11111 + 0o21) + chr(0b1101111) + chr(535 - 486) + '\060', 0o10), nzTpIcepk0o8('\060' + chr(10014 - 9903) + chr(0b101100 + 0o5) + chr(2681 - 2629) + '\x34', 0b1000), nzTpIcepk0o8(chr(501 - 453) + '\157' + chr(0b1001 + 0o52) + chr(0b10001 + 0o43) + chr(50), 53486 - 53478), nzTpIcepk0o8('\060' + chr(0b11010 + 0o125) + '\x33' + chr(0b110010) + chr(1306 - 1251), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110001) + chr(0b100111 + 0o15) + chr(818 - 764), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b10001 + 0o136) + chr(1590 - 1539) + chr(683 - 632) + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110010) + chr(0b100010 + 0o17) + chr(0b110011), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + '\063' + chr(1132 - 1083) + chr(0b11101 + 0o25), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\061' + chr(0b11000 + 0o35) + chr(2670 - 2618), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b110010 + 0o75) + '\x31' + chr(0b110001), 0b1000), nzTpIcepk0o8('\x30' + chr(0b11011 + 0o124) + '\x32' + '\063' + chr(0b110011), 0b1000), nzTpIcepk0o8(chr(98 - 50) + '\157' + chr(52) + chr(941 - 887), 0b1000), nzTpIcepk0o8(chr(821 - 773) + chr(0b1100111 + 0o10) + '\x32' + chr(0b110011) + chr(48), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110011) + chr(0b10110 + 0o35) + chr(0b110110), 0b1000), nzTpIcepk0o8(chr(0b10111 + 0o31) + chr(10757 - 10646) + chr(49) + chr(0b101010 + 0o10) + chr(1945 - 1893), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b11101 + 0o26) + chr(0b110011) + chr(50), 27802 - 27794), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111 + 0o0) + '\061' + chr(369 - 314) + '\063', 0o10), nzTpIcepk0o8(chr(1855 - 1807) + chr(5693 - 5582) + chr(0b10011 + 0o37) + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(0b100111 + 0o11) + '\157' + '\061' + chr(0b10101 + 0o35) + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(902 - 854) + chr(0b1001000 + 0o47) + chr(0b110001) + chr(0b110100) + chr(53), 0o10), nzTpIcepk0o8(chr(483 - 435) + '\157' + '\x35' + '\x31', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1000001 + 0o56) + chr(0b10000 + 0o43) + '\x30' + chr(0b10011 + 0o40), 0o10), nzTpIcepk0o8(chr(0b101110 + 0o2) + chr(0b1101111) + chr(51) + chr(50) + chr(338 - 288), 12427 - 12419), nzTpIcepk0o8('\060' + '\157' + chr(51) + chr(1557 - 1505), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(8241 - 8130) + '\061' + '\x34' + chr(286 - 237), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b10000 + 0o43) + '\062' + '\x32', 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x33' + chr(0b10001 + 0o44) + '\x31', 8), nzTpIcepk0o8(chr(0b110000) + chr(7460 - 7349) + '\061' + chr(49) + chr(0b100111 + 0o16), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b101 + 0o54) + chr(1288 - 1236) + '\062', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x31' + '\x31' + '\x33', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110110) + chr(49), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(714 - 661) + chr(1827 - 1777), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110 + 0o53) + chr(0b110101) + '\062', 65447 - 65439), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110001) + chr(0b101010 + 0o6) + chr(1674 - 1626), 0b1000), nzTpIcepk0o8(chr(0b1110 + 0o42) + '\x6f' + chr(50) + chr(0b110001) + chr(0b111 + 0o57), 8)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(270 - 222) + chr(12289 - 12178) + chr(134 - 81) + '\060', 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xc7'), chr(100) + '\x65' + chr(99) + '\157' + chr(100) + '\145')(chr(117) + '\x74' + chr(3861 - 3759) + '\055' + chr(1095 - 1039)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def _JMX7VnNlYG5(hXMPsSrOQzbh, SLVB2BPA_mIe, ngQC2k_RgiwY):
if dRKdVnHPFq7C(SLVB2BPA_mIe, roI3spqORKae(ES5oEprVxulp(b'\x9b\xddF\x91\xefj\x08\x87\xb9\x07\xb4\xee'), chr(3838 - 3738) + chr(0b1100101) + chr(99) + chr(0b1101111) + chr(0b101010 + 0o72) + chr(101))(chr(0b1011001 + 0o34) + '\x74' + chr(1679 - 1577) + chr(45) + chr(2037 - 1981))):
SLVB2BPA_mIe = SLVB2BPA_mIe.readablename
(h3Vc_4wxEbgd, ZlbFMSG8gCoF) = hXMPsSrOQzbh._target._embedded_indices[SLVB2BPA_mIe]
h3Vc_4wxEbgd.io0UdN5XrTVo[ZlbFMSG8gCoF] = ngQC2k_RgiwY.parser().bZWmgf4GjgvH(hXMPsSrOQzbh.iZE3YChKSTaK) |
hubo1016/namedstruct | namedstruct/namedstruct.py | NamedStruct._get_embedded | def _get_embedded(self, name):
'''
Return an embedded struct object to calculate the size or use _tobytes(True) to convert just the
embedded parts.
:param name: either the original type, or the name of the original type. It is always the type
used in type definitions, even if it is already replaced once or more.
:returns: an embedded struct
'''
if hasattr(name, 'readablename'):
name = name.readablename
t,i = self._target._embedded_indices[name]
return t._seqs[i] | python | def _get_embedded(self, name):
'''
Return an embedded struct object to calculate the size or use _tobytes(True) to convert just the
embedded parts.
:param name: either the original type, or the name of the original type. It is always the type
used in type definitions, even if it is already replaced once or more.
:returns: an embedded struct
'''
if hasattr(name, 'readablename'):
name = name.readablename
t,i = self._target._embedded_indices[name]
return t._seqs[i] | [
"def",
"_get_embedded",
"(",
"self",
",",
"name",
")",
":",
"if",
"hasattr",
"(",
"name",
",",
"'readablename'",
")",
":",
"name",
"=",
"name",
".",
"readablename",
"t",
",",
"i",
"=",
"self",
".",
"_target",
".",
"_embedded_indices",
"[",
"name",
"]",
"return",
"t",
".",
"_seqs",
"[",
"i",
"]"
] | Return an embedded struct object to calculate the size or use _tobytes(True) to convert just the
embedded parts.
:param name: either the original type, or the name of the original type. It is always the type
used in type definitions, even if it is already replaced once or more.
:returns: an embedded struct | [
"Return",
"an",
"embedded",
"struct",
"object",
"to",
"calculate",
"the",
"size",
"or",
"use",
"_tobytes",
"(",
"True",
")",
"to",
"convert",
"just",
"the",
"embedded",
"parts",
".",
":",
"param",
"name",
":",
"either",
"the",
"original",
"type",
"or",
"the",
"name",
"of",
"the",
"original",
"type",
".",
"It",
"is",
"always",
"the",
"type",
"used",
"in",
"type",
"definitions",
"even",
"if",
"it",
"is",
"already",
"replaced",
"once",
"or",
"more",
".",
":",
"returns",
":",
"an",
"embedded",
"struct"
] | 5039026e0df4ce23003d212358918dbe1a6e1d76 | https://github.com/hubo1016/namedstruct/blob/5039026e0df4ce23003d212358918dbe1a6e1d76/namedstruct/namedstruct.py#L339-L352 | train | Returns an embedded struct object for the specified type. | 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,UBvEeZ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Nc3n6e0b,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(3067 - 2956) + chr(50) + chr(1794 - 1746) + '\061', 0b1000), nzTpIcepk0o8(chr(0b10100 + 0o34) + '\x6f' + '\063' + chr(0b110001) + '\x37', 11198 - 11190), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b0 + 0o61) + chr(0b110000) + '\061', 22384 - 22376), nzTpIcepk0o8('\060' + chr(0b110101 + 0o72) + chr(55) + chr(667 - 618), 0o10), nzTpIcepk0o8(chr(0b100100 + 0o14) + chr(6709 - 6598) + '\064' + chr(0b100001 + 0o23), ord("\x08")), nzTpIcepk0o8(chr(0b11101 + 0o23) + chr(4704 - 4593) + chr(0b100101 + 0o17) + '\064', 8), nzTpIcepk0o8(chr(987 - 939) + '\157' + chr(55) + '\x37', 0b1000), nzTpIcepk0o8(chr(0b110000 + 0o0) + chr(111) + chr(262 - 211) + chr(0b110110) + '\x35', ord("\x08")), nzTpIcepk0o8(chr(506 - 458) + chr(111) + '\x32' + chr(0b10 + 0o60) + chr(0b1100 + 0o46), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(0b1 + 0o61), 0b1000), nzTpIcepk0o8('\060' + chr(10963 - 10852) + chr(0b110011) + chr(575 - 522) + '\x33', 19238 - 19230), nzTpIcepk0o8('\060' + '\x6f' + chr(0b11 + 0o56) + chr(0b110110) + '\x37', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x36' + '\x30', 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(1553 - 1503) + '\060', 40305 - 40297), nzTpIcepk0o8(chr(0b11100 + 0o24) + chr(0b1101000 + 0o7) + chr(0b110010) + '\060' + '\x30', ord("\x08")), nzTpIcepk0o8('\060' + chr(2906 - 2795) + chr(1969 - 1920) + chr(0b0 + 0o61) + chr(2447 - 2395), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(1266 - 1215) + chr(50) + chr(51), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(291 - 241) + '\061', ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(0b101011 + 0o7) + chr(53) + chr(55), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x33' + chr(1262 - 1213) + chr(0b101111 + 0o1), ord("\x08")), nzTpIcepk0o8(chr(0b100000 + 0o20) + '\157' + '\062' + chr(718 - 665) + chr(0b110110), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(51) + chr(0b101010 + 0o7) + '\x34', 0b1000), nzTpIcepk0o8(chr(0b100011 + 0o15) + '\157' + chr(0b100111 + 0o16) + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101010 + 0o5) + '\x31' + '\x35', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\061' + chr(360 - 308) + chr(0b110010), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b100000 + 0o22) + chr(51) + chr(1910 - 1855), ord("\x08")), nzTpIcepk0o8(chr(1447 - 1399) + chr(111) + chr(52) + chr(0b1010 + 0o51), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110 + 0o54) + chr(253 - 199) + chr(53), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b111010 + 0o65) + '\062' + '\x32' + chr(0b10110 + 0o37), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(2459 - 2408) + chr(1508 - 1454) + chr(0b110111), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b101010 + 0o10) + chr(175 - 121) + chr(0b101110 + 0o6), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110101) + chr(0b100000 + 0o21), 8), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\061' + '\061' + chr(53), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\063' + chr(0b110110) + chr(0b110000 + 0o6), 0b1000), nzTpIcepk0o8('\060' + chr(7784 - 7673) + '\061' + chr(0b110100) + '\062', 8), nzTpIcepk0o8(chr(2174 - 2126) + '\157' + chr(0b110001) + chr(0b110100) + chr(0b101011 + 0o7), 8), nzTpIcepk0o8(chr(0b1111 + 0o41) + '\x6f' + chr(403 - 353) + chr(1381 - 1328) + chr(0b100110 + 0o15), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110010) + chr(55) + chr(51), 0b1000), nzTpIcepk0o8(chr(1726 - 1678) + '\157' + '\061' + chr(48) + chr(53), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + '\062' + '\x30' + chr(1078 - 1023), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b100110 + 0o12) + '\157' + '\x35' + chr(0b11101 + 0o23), 6913 - 6905)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xaf'), chr(0b1100100) + chr(6228 - 6127) + chr(99) + chr(6443 - 6332) + chr(5522 - 5422) + '\145')('\x75' + '\x74' + chr(0b1100110) + '\x2d' + chr(56)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def OTARVK4lgPww(hXMPsSrOQzbh, SLVB2BPA_mIe):
if dRKdVnHPFq7C(SLVB2BPA_mIe, roI3spqORKae(ES5oEprVxulp(b'\xf3\xaa ]EFS\x90\xfcc\x86\x12'), '\x64' + chr(101) + chr(0b1100011) + chr(0b1101111) + chr(0b10001 + 0o123) + chr(0b1011110 + 0o7))(chr(117) + chr(0b1110100) + '\x66' + '\055' + chr(0b111000))):
SLVB2BPA_mIe = SLVB2BPA_mIe.readablename
(h3Vc_4wxEbgd, ZlbFMSG8gCoF) = hXMPsSrOQzbh._target._embedded_indices[SLVB2BPA_mIe]
return roI3spqORKae(h3Vc_4wxEbgd, roI3spqORKae(ES5oEprVxulp(b'\xe8\xa0ql@j\n\xad\xe0V\xbd\x18'), chr(1975 - 1875) + '\145' + chr(0b1100011) + chr(8040 - 7929) + chr(0b1010100 + 0o20) + '\x65')(chr(0b1110001 + 0o4) + '\x74' + chr(0b1100110) + chr(0b101101) + chr(56)))[ZlbFMSG8gCoF] |
hubo1016/namedstruct | namedstruct/namedstruct.py | NamedStruct._registerPickleType | def _registerPickleType(name, typedef):
'''
Register a type with the specified name. After registration, NamedStruct with this type
(and any sub-types) can be successfully pickled and transfered.
'''
NamedStruct._pickleNames[typedef] = name
NamedStruct._pickleTypes[name] = typedef | python | def _registerPickleType(name, typedef):
'''
Register a type with the specified name. After registration, NamedStruct with this type
(and any sub-types) can be successfully pickled and transfered.
'''
NamedStruct._pickleNames[typedef] = name
NamedStruct._pickleTypes[name] = typedef | [
"def",
"_registerPickleType",
"(",
"name",
",",
"typedef",
")",
":",
"NamedStruct",
".",
"_pickleNames",
"[",
"typedef",
"]",
"=",
"name",
"NamedStruct",
".",
"_pickleTypes",
"[",
"name",
"]",
"=",
"typedef"
] | Register a type with the specified name. After registration, NamedStruct with this type
(and any sub-types) can be successfully pickled and transfered. | [
"Register",
"a",
"type",
"with",
"the",
"specified",
"name",
".",
"After",
"registration",
"NamedStruct",
"with",
"this",
"type",
"(",
"and",
"any",
"sub",
"-",
"types",
")",
"can",
"be",
"successfully",
"pickled",
"and",
"transfered",
"."
] | 5039026e0df4ce23003d212358918dbe1a6e1d76 | https://github.com/hubo1016/namedstruct/blob/5039026e0df4ce23003d212358918dbe1a6e1d76/namedstruct/namedstruct.py#L354-L360 | train | Register a type with the specified name. | GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_H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tJqMV,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(0b0 + 0o60) + chr(111) + '\x36' + '\065', 0o10), nzTpIcepk0o8(chr(1765 - 1717) + chr(0b10011 + 0o134) + chr(0b111 + 0o53) + '\066' + chr(168 - 115), 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(50) + chr(144 - 93) + '\x36', 18247 - 18239), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110001) + '\064' + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(55) + chr(1873 - 1818), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b1011 + 0o47), 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(0b1000 + 0o53) + chr(225 - 175) + '\063', 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(50) + chr(0b110100) + '\x37', 56034 - 56026), nzTpIcepk0o8('\x30' + chr(0b1000111 + 0o50) + chr(0b110011) + chr(0b10111 + 0o40) + chr(569 - 519), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\062' + chr(2760 - 2705) + '\061', 0o10), nzTpIcepk0o8(chr(0b1 + 0o57) + chr(10562 - 10451) + chr(0b10101 + 0o35) + '\x33' + chr(55), 0o10), nzTpIcepk0o8(chr(2262 - 2214) + chr(111) + chr(0b100 + 0o57) + chr(1978 - 1927), ord("\x08")), nzTpIcepk0o8(chr(1256 - 1208) + '\x6f' + chr(0b101101 + 0o6) + chr(1393 - 1341) + chr(0b1001 + 0o54), 37303 - 37295), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x32' + chr(918 - 863) + chr(0b110100), 14985 - 14977), nzTpIcepk0o8(chr(48) + chr(0b1111 + 0o140) + chr(50) + chr(0b110101) + '\063', ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(733 - 683) + chr(53) + chr(50), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110100) + chr(0b110001 + 0o3), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1010011 + 0o34) + '\062' + chr(2267 - 2216) + chr(0b110011), 0b1000), nzTpIcepk0o8(chr(1393 - 1345) + chr(0b1101111) + '\x32' + chr(0b110111) + '\x32', 32856 - 32848), nzTpIcepk0o8(chr(0b110000) + chr(5229 - 5118) + chr(0b110010 + 0o4) + chr(0b100000 + 0o21), 0o10), nzTpIcepk0o8(chr(1222 - 1174) + chr(111) + '\062' + chr(52) + chr(1225 - 1172), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(50) + chr(184 - 133) + chr(0b10000 + 0o44), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(701 - 650) + chr(0b10000 + 0o47) + '\x33', 0b1000), nzTpIcepk0o8('\x30' + chr(111) + '\063' + chr(0b101101 + 0o11) + chr(55), 0o10), nzTpIcepk0o8('\060' + chr(0b111111 + 0o60) + '\062' + chr(1381 - 1327), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(1197 - 1148) + '\x36' + '\061', ord("\x08")), nzTpIcepk0o8(chr(0b11000 + 0o30) + chr(111) + chr(422 - 369) + chr(50), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(6962 - 6851) + '\062' + chr(2191 - 2141) + chr(0b110101), 0o10), nzTpIcepk0o8('\060' + '\x6f' + '\067' + chr(50), 0b1000), nzTpIcepk0o8(chr(1650 - 1602) + chr(111) + chr(0b11011 + 0o26) + chr(54) + chr(48), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(0b111 + 0o53) + chr(49) + chr(0b110001), 18947 - 18939), nzTpIcepk0o8('\x30' + chr(111) + chr(49) + '\064' + '\062', 1665 - 1657), nzTpIcepk0o8('\x30' + '\x6f' + '\x31' + '\066' + chr(0b101011 + 0o6), 8), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b10101 + 0o35) + chr(0b110111) + chr(0b110010), 8), nzTpIcepk0o8(chr(625 - 577) + chr(8102 - 7991) + chr(756 - 707) + chr(1693 - 1640) + chr(0b100001 + 0o26), 0o10), nzTpIcepk0o8(chr(0b101011 + 0o5) + '\157' + '\x35' + chr(0b100000 + 0o21), 0o10), nzTpIcepk0o8(chr(0b100100 + 0o14) + chr(0b1010 + 0o145) + '\063' + '\067' + '\067', 21123 - 21115), nzTpIcepk0o8(chr(2161 - 2113) + chr(111) + '\061' + '\065' + chr(1359 - 1305), 38452 - 38444), nzTpIcepk0o8(chr(0b10000 + 0o40) + '\157' + chr(49) + chr(55) + chr(1039 - 991), 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(55) + chr(1471 - 1420), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(53) + chr(48), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x1b'), chr(903 - 803) + '\x65' + chr(99) + chr(0b1101111) + chr(0b1011111 + 0o5) + chr(0b100111 + 0o76))(chr(0b1 + 0o164) + '\164' + '\x66' + chr(0b10111 + 0o26) + chr(0b111000 + 0o0)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def uqSbdNxfHM2N(SLVB2BPA_mIe, GUPQTOnSWrnA):
PWWvBrch7RsM.kv7v1OgLeoC4[GUPQTOnSWrnA] = SLVB2BPA_mIe
PWWvBrch7RsM.g9hKQ6IFQBDK[SLVB2BPA_mIe] = GUPQTOnSWrnA |
hubo1016/namedstruct | namedstruct/namedstruct.py | EmbeddedStruct._create_embedded_indices | def _create_embedded_indices(self):
'''
Create indices for all the embedded structs. For parser internal use.
'''
try:
self._target._embedded_indices.update(((k,(self,v)) for k,v in getattr(self._parser.typedef, 'inline_names', {}).items()))
except AttributeError:
pass | python | def _create_embedded_indices(self):
'''
Create indices for all the embedded structs. For parser internal use.
'''
try:
self._target._embedded_indices.update(((k,(self,v)) for k,v in getattr(self._parser.typedef, 'inline_names', {}).items()))
except AttributeError:
pass | [
"def",
"_create_embedded_indices",
"(",
"self",
")",
":",
"try",
":",
"self",
".",
"_target",
".",
"_embedded_indices",
".",
"update",
"(",
"(",
"(",
"k",
",",
"(",
"self",
",",
"v",
")",
")",
"for",
"k",
",",
"v",
"in",
"getattr",
"(",
"self",
".",
"_parser",
".",
"typedef",
",",
"'inline_names'",
",",
"{",
"}",
")",
".",
"items",
"(",
")",
")",
")",
"except",
"AttributeError",
":",
"pass"
] | Create indices for all the embedded structs. For parser internal use. | [
"Create",
"indices",
"for",
"all",
"the",
"embedded",
"structs",
".",
"For",
"parser",
"internal",
"use",
"."
] | 5039026e0df4ce23003d212358918dbe1a6e1d76 | https://github.com/hubo1016/namedstruct/blob/5039026e0df4ce23003d212358918dbe1a6e1d76/namedstruct/namedstruct.py#L366-L373 | train | Create indices for all the embedded structs. For parser internal 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,RE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i71nNyvlqO,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(51) + '\062', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b10010 + 0o41) + chr(51) + chr(55), ord("\x08")), nzTpIcepk0o8(chr(140 - 92) + chr(7198 - 7087) + chr(0b110001) + chr(1579 - 1524) + chr(0b110101), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(3974 - 3863) + '\x32' + '\x34' + chr(54), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110010) + chr(2026 - 1978) + '\063', ord("\x08")), nzTpIcepk0o8(chr(0b1000 + 0o50) + '\x6f' + chr(49) + '\065' + chr(0b11011 + 0o31), 44596 - 44588), nzTpIcepk0o8(chr(0b110000) + chr(5526 - 5415) + chr(0b11001 + 0o32) + '\x31' + '\x31', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(7994 - 7883) + chr(0b100010 + 0o17) + chr(0b110110) + chr(0b110001), 0o10), nzTpIcepk0o8('\060' + chr(111) + '\x31' + chr(2141 - 2089) + '\x31', 0o10), nzTpIcepk0o8(chr(48) + chr(10721 - 10610) + chr(0b110001) + chr(0b1011 + 0o53), 0b1000), nzTpIcepk0o8('\060' + chr(2838 - 2727) + chr(1975 - 1925) + chr(2342 - 2287) + '\x33', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x31' + '\x30' + '\062', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + '\064' + chr(51), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(51) + chr(1093 - 1042) + chr(1671 - 1618), 23722 - 23714), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110011) + chr(50) + '\066', 41784 - 41776), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(49) + '\x33', 0o10), nzTpIcepk0o8('\x30' + chr(0b1010101 + 0o32) + chr(49) + chr(49) + chr(2301 - 2251), 49869 - 49861), nzTpIcepk0o8('\x30' + chr(111) + chr(52) + '\x34', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(50) + chr(816 - 761), 0o10), nzTpIcepk0o8(chr(0b100 + 0o54) + '\157' + chr(0b101001 + 0o12) + chr(50) + chr(0b101 + 0o61), 8), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\061' + '\062' + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(1125 - 1077) + chr(4123 - 4012) + '\061' + chr(54) + chr(0b110100), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110001) + '\x36' + '\060', ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(49) + chr(54) + chr(0b1001 + 0o55), ord("\x08")), nzTpIcepk0o8(chr(1870 - 1822) + '\157' + chr(0b10000 + 0o43) + chr(128 - 80) + chr(50), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(1225 - 1176) + chr(0b11111 + 0o25), 39126 - 39118), nzTpIcepk0o8(chr(0b101000 + 0o10) + chr(111) + chr(0b110001) + chr(48) + chr(0b11000 + 0o35), 6014 - 6006), nzTpIcepk0o8(chr(0b101110 + 0o2) + chr(0b1011110 + 0o21) + chr(49) + chr(0b110000) + '\x30', 55405 - 55397), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(50) + chr(55) + '\064', 0o10), nzTpIcepk0o8('\x30' + chr(1780 - 1669) + chr(0b10111 + 0o34) + chr(51) + chr(0b110101), 8), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x33' + chr(0b100011 + 0o21) + chr(0b0 + 0o64), 0b1000), nzTpIcepk0o8(chr(0b11 + 0o55) + chr(111) + chr(0b11011 + 0o30) + '\067' + chr(55), 0o10), nzTpIcepk0o8(chr(515 - 467) + chr(8078 - 7967) + '\063' + '\065' + chr(0b10 + 0o61), ord("\x08")), nzTpIcepk0o8(chr(0b1011 + 0o45) + '\x6f' + '\063' + '\x32' + chr(49), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110010) + '\066' + '\x30', 63562 - 63554), nzTpIcepk0o8(chr(48) + chr(0b10001 + 0o136) + '\x32' + chr(307 - 257) + chr(298 - 248), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b1100 + 0o47) + '\066', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110010) + '\x30' + '\x33', 8), nzTpIcepk0o8(chr(0b10111 + 0o31) + chr(6425 - 6314) + chr(98 - 48) + '\061', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b101011 + 0o104) + chr(0b101101 + 0o4) + chr(1981 - 1933) + '\061', 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b100010 + 0o16) + chr(10087 - 9976) + chr(1039 - 986) + '\x30', 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'4'), chr(0b1010100 + 0o20) + chr(0b1100101) + chr(99) + '\x6f' + '\x64' + '\x65')('\x75' + chr(116) + chr(0b1010010 + 0o24) + chr(0b101101) + chr(0b10 + 0o66)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def x5AqiKJsvZk6(hXMPsSrOQzbh):
try:
roI3spqORKae(hXMPsSrOQzbh._target._embedded_indices, roI3spqORKae(ES5oEprVxulp(b'P\x80\x16\x94\xca5\x8b@\x02k\xca,'), chr(4889 - 4789) + chr(0b1100101) + chr(0b1100011) + chr(9953 - 9842) + chr(100) + chr(101))(chr(0b100000 + 0o125) + chr(7283 - 7167) + chr(2558 - 2456) + '\x2d' + chr(0b100011 + 0o25)))(((B6UAF1zReOyJ, (hXMPsSrOQzbh, r7AA1pbLjb44)) for (B6UAF1zReOyJ, r7AA1pbLjb44) in roI3spqORKae(roI3spqORKae(hXMPsSrOQzbh._parser.typedef, roI3spqORKae(ES5oEprVxulp(b's\xb1\x11\xcf\xed\t\x96\x1f\x00c\xde1'), chr(6319 - 6219) + chr(0b1100101) + '\143' + '\157' + chr(8329 - 8229) + chr(5655 - 5554))(chr(0b1110101) + '\x74' + chr(0b1100110) + chr(45) + '\x38'), {}), roI3spqORKae(ES5oEprVxulp(b'C\x80\x13\xe8\xc6\x16\x81ERx\xe3+'), chr(0b1100100) + chr(0b110101 + 0o60) + chr(7364 - 7265) + '\x6f' + chr(100) + '\x65')(chr(9138 - 9021) + '\164' + chr(0b1100110) + '\055' + '\070'))()))
except bIsJhlpYrrU2:
pass |
hubo1016/namedstruct | namedstruct/namedstruct.py | Parser.parse | def parse(self, buffer, inlineparent = None):
'''
Try to parse the struct from bytes sequence. The bytes sequence is taken from a streaming source.
:param buffer: bytes sequence to be parsed from.
:param inlineparent: if specified, this struct is embedded in another struct.
:returns: None if the buffer does not have enough data for this struct (e.g. incomplete read
from socket); (struct, size) else, where struct is the parsed result (usually a NamedStruct object)
and size is the used bytes length, so you can start another parse from buffer[size:].
'''
if self.base is not None:
return self.base.parse(buffer, inlineparent)
r = self._parse(buffer, inlineparent)
if r is None:
return None
(s, size) = r
self.subclass(s)
return (s, (size + self.padding - 1) // self.padding * self.padding) | python | def parse(self, buffer, inlineparent = None):
'''
Try to parse the struct from bytes sequence. The bytes sequence is taken from a streaming source.
:param buffer: bytes sequence to be parsed from.
:param inlineparent: if specified, this struct is embedded in another struct.
:returns: None if the buffer does not have enough data for this struct (e.g. incomplete read
from socket); (struct, size) else, where struct is the parsed result (usually a NamedStruct object)
and size is the used bytes length, so you can start another parse from buffer[size:].
'''
if self.base is not None:
return self.base.parse(buffer, inlineparent)
r = self._parse(buffer, inlineparent)
if r is None:
return None
(s, size) = r
self.subclass(s)
return (s, (size + self.padding - 1) // self.padding * self.padding) | [
"def",
"parse",
"(",
"self",
",",
"buffer",
",",
"inlineparent",
"=",
"None",
")",
":",
"if",
"self",
".",
"base",
"is",
"not",
"None",
":",
"return",
"self",
".",
"base",
".",
"parse",
"(",
"buffer",
",",
"inlineparent",
")",
"r",
"=",
"self",
".",
"_parse",
"(",
"buffer",
",",
"inlineparent",
")",
"if",
"r",
"is",
"None",
":",
"return",
"None",
"(",
"s",
",",
"size",
")",
"=",
"r",
"self",
".",
"subclass",
"(",
"s",
")",
"return",
"(",
"s",
",",
"(",
"size",
"+",
"self",
".",
"padding",
"-",
"1",
")",
"//",
"self",
".",
"padding",
"*",
"self",
".",
"padding",
")"
] | Try to parse the struct from bytes sequence. The bytes sequence is taken from a streaming source.
:param buffer: bytes sequence to be parsed from.
:param inlineparent: if specified, this struct is embedded in another struct.
:returns: None if the buffer does not have enough data for this struct (e.g. incomplete read
from socket); (struct, size) else, where struct is the parsed result (usually a NamedStruct object)
and size is the used bytes length, so you can start another parse from buffer[size:]. | [
"Try",
"to",
"parse",
"the",
"struct",
"from",
"bytes",
"sequence",
".",
"The",
"bytes",
"sequence",
"is",
"taken",
"from",
"a",
"streaming",
"source",
".",
":",
"param",
"buffer",
":",
"bytes",
"sequence",
"to",
"be",
"parsed",
"from",
".",
":",
"param",
"inlineparent",
":",
"if",
"specified",
"this",
"struct",
"is",
"embedded",
"in",
"another",
"struct",
".",
":",
"returns",
":",
"None",
"if",
"the",
"buffer",
"does",
"not",
"have",
"enough",
"data",
"for",
"this",
"struct",
"(",
"e",
".",
"g",
".",
"incomplete",
"read",
"from",
"socket",
")",
";",
"(",
"struct",
"size",
")",
"else",
"where",
"struct",
"is",
"the",
"parsed",
"result",
"(",
"usually",
"a",
"NamedStruct",
"object",
")",
"and",
"size",
"is",
"the",
"used",
"bytes",
"length",
"so",
"you",
"can",
"start",
"another",
"parse",
"from",
"buffer",
"[",
"size",
":",
"]",
"."
] | 5039026e0df4ce23003d212358918dbe1a6e1d76 | https://github.com/hubo1016/namedstruct/blob/5039026e0df4ce23003d212358918dbe1a6e1d76/namedstruct/namedstruct.py#L671-L690 | train | Try to parse the named struct from bytes 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_Tki5v,L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Ja,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(2059 - 2011) + '\157' + chr(0b110001) + '\x37' + chr(0b100000 + 0o21), 49456 - 49448), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110101) + chr(0b110011), 0b1000), nzTpIcepk0o8(chr(0b1101 + 0o43) + '\157' + chr(2311 - 2256) + '\x36', 23932 - 23924), nzTpIcepk0o8(chr(152 - 104) + chr(111) + chr(49) + chr(0b110010) + '\066', 0o10), nzTpIcepk0o8('\060' + '\157' + chr(0b110011) + chr(0b110000) + '\063', 39289 - 39281), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x35' + '\067', 0b1000), nzTpIcepk0o8(chr(566 - 518) + '\157' + '\063' + '\x34' + chr(0b100111 + 0o16), 5022 - 5014), nzTpIcepk0o8(chr(0b10001 + 0o37) + '\x6f' + '\x32' + '\x32' + chr(940 - 889), ord("\x08")), nzTpIcepk0o8('\x30' + chr(9055 - 8944) + chr(49) + chr(2006 - 1951) + '\x32', ord("\x08")), nzTpIcepk0o8('\x30' + chr(8246 - 8135) + chr(1481 - 1432) + chr(0b10 + 0o56) + '\x32', 0b1000), nzTpIcepk0o8(chr(0b100001 + 0o17) + chr(111) + chr(55) + chr(0b110010), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + '\061' + '\066' + '\x30', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(1222 - 1171) + chr(48) + '\x32', ord("\x08")), nzTpIcepk0o8(chr(0b100100 + 0o14) + '\157' + '\063' + chr(0b101111 + 0o1) + chr(54), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110011) + chr(714 - 664) + chr(1783 - 1735), 0b1000), nzTpIcepk0o8(chr(463 - 415) + '\157' + '\x33' + chr(0b110001) + chr(0b110100 + 0o1), 849 - 841), nzTpIcepk0o8(chr(48) + chr(0b110111 + 0o70) + chr(703 - 654) + chr(0b101110 + 0o3) + '\064', 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(54) + chr(52), 8194 - 8186), nzTpIcepk0o8(chr(0b1010 + 0o46) + '\x6f' + chr(0b110001), 0o10), nzTpIcepk0o8('\060' + chr(10782 - 10671) + '\062' + chr(53) + chr(0b110101), 0b1000), nzTpIcepk0o8(chr(0b11000 + 0o30) + chr(111) + chr(49) + chr(50) + chr(49), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110001) + chr(0b110000) + '\x37', ord("\x08")), nzTpIcepk0o8(chr(1582 - 1534) + '\157' + '\x33' + chr(54) + '\061', 0b1000), nzTpIcepk0o8(chr(0b1 + 0o57) + chr(111) + '\067', 18502 - 18494), nzTpIcepk0o8(chr(48) + chr(0b10110 + 0o131) + chr(51) + '\067' + chr(0b1011 + 0o47), ord("\x08")), nzTpIcepk0o8(chr(2086 - 2038) + '\x6f' + '\061' + '\x32' + chr(602 - 547), 37613 - 37605), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(55) + chr(52), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b11 + 0o56) + chr(0b110000) + chr(0b1101 + 0o44), ord("\x08")), nzTpIcepk0o8('\x30' + chr(9148 - 9037) + chr(2080 - 2029) + chr(2735 - 2680) + '\x36', 0b1000), nzTpIcepk0o8(chr(0b101011 + 0o5) + chr(0b1101111) + chr(0b10110 + 0o33) + chr(0b110110) + chr(0b11100 + 0o32), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b101011 + 0o104) + chr(49) + chr(0b110010) + chr(0b110001), 8), nzTpIcepk0o8('\060' + '\157' + '\x31' + chr(102 - 50) + chr(982 - 929), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + '\061' + '\x31' + chr(0b1001 + 0o56), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + '\061' + '\062' + chr(49), 8), nzTpIcepk0o8(chr(0b100010 + 0o16) + chr(0b1101111) + chr(170 - 119) + chr(50) + '\x36', 0o10), nzTpIcepk0o8(chr(570 - 522) + chr(0b1101111) + chr(0b11000 + 0o31) + chr(50) + chr(52), 59772 - 59764), nzTpIcepk0o8(chr(48) + chr(542 - 431) + chr(0b101000 + 0o12) + chr(0b11010 + 0o33) + chr(0b110110), 57565 - 57557), nzTpIcepk0o8(chr(65 - 17) + chr(0b1010010 + 0o35) + chr(0b110101) + chr(142 - 90), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + '\062' + chr(0b11010 + 0o26) + '\063', ord("\x08")), nzTpIcepk0o8(chr(1204 - 1156) + chr(0b1101111) + '\062' + chr(52) + chr(53), 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + chr(0b1011000 + 0o27) + chr(0b110101) + '\060', 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'W'), '\x64' + chr(0b1100101) + '\143' + chr(0b11000 + 0o127) + chr(5345 - 5245) + chr(0b1100101))(chr(0b1110101) + '\164' + chr(6483 - 6381) + chr(45) + chr(0b100100 + 0o24)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def zgDfHOdKcvCW(hXMPsSrOQzbh, VDnoK82he6rn, ySf_6JQ7w7By=None):
if roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x01]N"\xafJ\x92\xa461x\x1f'), '\144' + chr(101) + chr(0b1100011) + chr(9195 - 9084) + chr(100) + chr(5675 - 5574))(chr(0b100010 + 0o123) + '\x74' + chr(0b100110 + 0o100) + chr(0b10100 + 0o31) + '\x38')) is not None:
return roI3spqORKae(hXMPsSrOQzbh.base, roI3spqORKae(ES5oEprVxulp(b"\x03Lz0\x8b`\x81\xd8\x194y'"), chr(1846 - 1746) + '\x65' + chr(0b10001 + 0o122) + '\x6f' + chr(100) + chr(5802 - 5701))('\165' + '\164' + '\146' + chr(0b110 + 0o47) + '\070'))(VDnoK82he6rn, ySf_6JQ7w7By)
LCrwg7lcbmU9 = hXMPsSrOQzbh.DQmmNLY9k9Yg(VDnoK82he6rn, ySf_6JQ7w7By)
if LCrwg7lcbmU9 is None:
return None
(PmE5_h409JAA, e1HrJaQHACnl) = LCrwg7lcbmU9
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\n^\\5\xafN\x96\xe0'), chr(100) + chr(101) + '\x63' + chr(0b1101111) + chr(6435 - 6335) + chr(0b1001100 + 0o31))(chr(0b1100100 + 0o21) + chr(0b1110100) + chr(102) + '\055' + chr(0b111000)))(PmE5_h409JAA)
return (PmE5_h409JAA, (e1HrJaQHACnl + roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b',sV`\xfa_\xbf\xff\x19vs\x16'), chr(100) + '\x65' + chr(0b1100011) + chr(0b1101111) + '\144' + chr(101))('\165' + '\x74' + chr(0b1011100 + 0o12) + '\055' + chr(0b111000))) - nzTpIcepk0o8(chr(0b101111 + 0o1) + chr(0b1001101 + 0o42) + '\061', 8)) // roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b',sV`\xfa_\xbf\xff\x19vs\x16'), chr(0b1000001 + 0o43) + '\x65' + '\x63' + chr(9261 - 9150) + chr(3351 - 3251) + chr(0b100100 + 0o101))('\x75' + chr(2672 - 2556) + chr(9749 - 9647) + '\055' + chr(56))) * roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b',sV`\xfa_\xbf\xff\x19vs\x16'), chr(100) + chr(6416 - 6315) + chr(0b1100011) + chr(0b1111 + 0o140) + chr(7172 - 7072) + chr(0b1100101))(chr(7687 - 7570) + '\x74' + '\x66' + chr(1778 - 1733) + chr(0b111000)))) |
hubo1016/namedstruct | namedstruct/namedstruct.py | Parser.subclass | def subclass(self, namedstruct):
'''
Sub-class a NamedStruct into correct sub types.
:param namedstruct: a NamedStruct of this type.
'''
cp = self
cs = namedstruct
while True:
if hasattr(cs, '_sub'):
cs = cs._sub
cp = cs._parser
continue
subp = None
clsfr = getattr(cp, 'classifier', None)
if clsfr is not None:
clsvalue = clsfr(namedstruct)
subp = cp.subindices.get(clsvalue)
if subp is None:
for sc in cp.subclasses:
if sc.isinstance(namedstruct):
subp = sc
break
if subp is None:
break
cs._subclass(subp)
cs = cs._sub
cp = subp | python | def subclass(self, namedstruct):
'''
Sub-class a NamedStruct into correct sub types.
:param namedstruct: a NamedStruct of this type.
'''
cp = self
cs = namedstruct
while True:
if hasattr(cs, '_sub'):
cs = cs._sub
cp = cs._parser
continue
subp = None
clsfr = getattr(cp, 'classifier', None)
if clsfr is not None:
clsvalue = clsfr(namedstruct)
subp = cp.subindices.get(clsvalue)
if subp is None:
for sc in cp.subclasses:
if sc.isinstance(namedstruct):
subp = sc
break
if subp is None:
break
cs._subclass(subp)
cs = cs._sub
cp = subp | [
"def",
"subclass",
"(",
"self",
",",
"namedstruct",
")",
":",
"cp",
"=",
"self",
"cs",
"=",
"namedstruct",
"while",
"True",
":",
"if",
"hasattr",
"(",
"cs",
",",
"'_sub'",
")",
":",
"cs",
"=",
"cs",
".",
"_sub",
"cp",
"=",
"cs",
".",
"_parser",
"continue",
"subp",
"=",
"None",
"clsfr",
"=",
"getattr",
"(",
"cp",
",",
"'classifier'",
",",
"None",
")",
"if",
"clsfr",
"is",
"not",
"None",
":",
"clsvalue",
"=",
"clsfr",
"(",
"namedstruct",
")",
"subp",
"=",
"cp",
".",
"subindices",
".",
"get",
"(",
"clsvalue",
")",
"if",
"subp",
"is",
"None",
":",
"for",
"sc",
"in",
"cp",
".",
"subclasses",
":",
"if",
"sc",
".",
"isinstance",
"(",
"namedstruct",
")",
":",
"subp",
"=",
"sc",
"break",
"if",
"subp",
"is",
"None",
":",
"break",
"cs",
".",
"_subclass",
"(",
"subp",
")",
"cs",
"=",
"cs",
".",
"_sub",
"cp",
"=",
"subp"
] | Sub-class a NamedStruct into correct sub types.
:param namedstruct: a NamedStruct of this type. | [
"Sub",
"-",
"class",
"a",
"NamedStruct",
"into",
"correct",
"sub",
"types",
".",
":",
"param",
"namedstruct",
":",
"a",
"NamedStruct",
"of",
"this",
"type",
"."
] | 5039026e0df4ce23003d212358918dbe1a6e1d76 | https://github.com/hubo1016/namedstruct/blob/5039026e0df4ce23003d212358918dbe1a6e1d76/namedstruct/namedstruct.py#L691-L718 | train | Subclass a NamedStruct into correct sub types. | 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,pZy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1uzpaIUMv,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(249 - 201) + chr(338 - 227) + '\063' + chr(49) + chr(51), 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(0b101000 + 0o13) + chr(0b11110 + 0o31) + chr(0b110101), 0b1000), nzTpIcepk0o8('\x30' + chr(0b11011 + 0o124) + chr(0b110011) + '\x32' + '\x30', 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b10001 + 0o40) + chr(0b110001) + chr(51), 0b1000), nzTpIcepk0o8(chr(0b100 + 0o54) + chr(5388 - 5277) + chr(1221 - 1170) + chr(996 - 947) + '\x31', 0o10), nzTpIcepk0o8(chr(0b111 + 0o51) + '\157' + '\061' + '\x31' + chr(0b110001), 39454 - 39446), nzTpIcepk0o8(chr(48) + '\157' + '\x35' + '\067', 0b1000), nzTpIcepk0o8('\060' + chr(0b1000000 + 0o57) + chr(1490 - 1439) + chr(864 - 810) + chr(1901 - 1846), ord("\x08")), nzTpIcepk0o8('\060' + chr(3204 - 3093) + chr(412 - 363) + '\x36' + chr(0b100111 + 0o14), 17555 - 17547), nzTpIcepk0o8('\x30' + '\x6f' + chr(54) + chr(0b10000 + 0o40), 0o10), nzTpIcepk0o8('\060' + '\157' + '\062' + chr(0b110100) + chr(52), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110001 + 0o2) + chr(0b110011) + chr(49), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(1838 - 1789) + chr(49) + chr(54), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b11100 + 0o31) + '\065', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b110111 + 0o70) + chr(0b110010) + chr(0b100111 + 0o14) + chr(846 - 793), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b111 + 0o52) + chr(51) + '\067', 0b1000), nzTpIcepk0o8('\x30' + '\157' + '\x32' + '\x34' + chr(0b110001 + 0o3), 8), nzTpIcepk0o8(chr(48) + chr(0b1011001 + 0o26) + chr(49) + chr(843 - 791) + chr(0b10000 + 0o41), 7158 - 7150), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110011) + chr(1764 - 1713) + '\067', ord("\x08")), nzTpIcepk0o8(chr(0b101 + 0o53) + '\x6f' + chr(0b110 + 0o54) + chr(0b100 + 0o57) + '\062', 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(346 - 295) + '\062', 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(584 - 533) + '\x31' + '\x35', 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(2400 - 2351) + '\x36' + chr(380 - 330), 34239 - 34231), nzTpIcepk0o8('\x30' + chr(3430 - 3319) + chr(0b10001 + 0o40) + chr(0b110010) + '\065', 36396 - 36388), nzTpIcepk0o8('\060' + '\x6f' + chr(916 - 865) + '\062' + '\061', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(1797 - 1746) + chr(0b101001 + 0o10) + '\x36', 56182 - 56174), nzTpIcepk0o8('\x30' + chr(111) + '\x31' + chr(0b110011) + chr(704 - 656), 53388 - 53380), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b101011 + 0o10) + '\060' + chr(0b1001 + 0o51), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1001110 + 0o41) + '\061', 25802 - 25794), nzTpIcepk0o8('\060' + chr(111) + chr(2660 - 2606) + chr(1873 - 1823), 0o10), nzTpIcepk0o8('\060' + '\157' + chr(49) + chr(0b11111 + 0o27) + chr(49), 51502 - 51494), nzTpIcepk0o8(chr(1745 - 1697) + '\x6f' + '\x33' + chr(0b110010) + '\x37', 17950 - 17942), nzTpIcepk0o8(chr(48) + '\157' + '\x31' + chr(1046 - 992) + chr(1663 - 1613), 8), nzTpIcepk0o8(chr(0b110000) + chr(0b100100 + 0o113) + chr(0b11011 + 0o27) + '\063' + chr(0b1 + 0o61), 8), nzTpIcepk0o8(chr(0b110000) + chr(3022 - 2911) + chr(49) + '\x34' + chr(181 - 129), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(2325 - 2276) + chr(53) + '\x35', 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(2331 - 2281) + '\063' + chr(0b110011), ord("\x08")), nzTpIcepk0o8(chr(1600 - 1552) + '\157' + chr(49) + '\x37', 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(51) + chr(55) + chr(55), 5838 - 5830), nzTpIcepk0o8('\x30' + chr(0b1100 + 0o143) + chr(2404 - 2353) + '\064' + '\063', 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b10111 + 0o31) + '\x6f' + '\x35' + '\060', 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xe5'), '\x64' + chr(0b1001101 + 0o30) + chr(99) + chr(4612 - 4501) + chr(4300 - 4200) + '\145')('\165' + '\164' + '\x66' + chr(1101 - 1056) + chr(56)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def xROUqP8GX_7w(hXMPsSrOQzbh, TtOW53BH7FVE):
qVRzukfNtlOc = hXMPsSrOQzbh
sxESRJP_bi4G = TtOW53BH7FVE
while nzTpIcepk0o8(chr(0b10001 + 0o37) + chr(0b1101111) + '\x31', 8):
if dRKdVnHPFq7C(sxESRJP_bi4G, roI3spqORKae(ES5oEprVxulp(b'\x94\x8e\xa5)'), chr(0b1100100) + '\x65' + chr(0b1100011) + '\157' + '\x64' + '\x65')(chr(117) + chr(0b1111 + 0o145) + '\146' + '\x2d' + '\070')):
sxESRJP_bi4G = sxESRJP_bi4G._sub
qVRzukfNtlOc = sxESRJP_bi4G.z9MHusHjlvHX
continue
v8pO3cPncnLu = None
gRd1zMlxYYkw = roI3spqORKae(qVRzukfNtlOc, roI3spqORKae(ES5oEprVxulp(b'\xa8\x91\xb18\xba I\x9e\x16B'), '\144' + chr(101) + chr(0b1010 + 0o131) + chr(688 - 577) + '\x64' + chr(9324 - 9223))(chr(0b1110101) + '\164' + chr(102) + chr(45) + chr(0b111000)), None)
if gRd1zMlxYYkw is not None:
xVtoNGJDH84T = gRd1zMlxYYkw(TtOW53BH7FVE)
v8pO3cPncnLu = qVRzukfNtlOc.subindices.GUKetu4xaGsJ(xVtoNGJDH84T)
if v8pO3cPncnLu is None:
for FhHKfuHdelXR in roI3spqORKae(qVRzukfNtlOc, roI3spqORKae(ES5oEprVxulp(b'\xb8\x88\xb2(\xa5(\\\x84\x16C'), chr(0b1100100) + chr(101) + chr(99) + chr(0b1000001 + 0o56) + chr(9086 - 8986) + chr(0b1100101))('\165' + '\164' + '\x66' + chr(0b101101) + chr(0b111000))):
if roI3spqORKae(FhHKfuHdelXR, roI3spqORKae(ES5oEprVxulp(b'\xa2\x8e\xb9%\xba=N\x99\x10U'), chr(0b1100100) + chr(101) + chr(99) + chr(0b1101111) + '\x64' + chr(101))(chr(0b1110101) + chr(116) + chr(0b1000111 + 0o37) + chr(0b100101 + 0o10) + chr(0b1010 + 0o56)))(TtOW53BH7FVE):
v8pO3cPncnLu = FhHKfuHdelXR
break
if v8pO3cPncnLu is None:
break
roI3spqORKae(sxESRJP_bi4G, roI3spqORKae(ES5oEprVxulp(b'\x94\x8e\xa5)\xaa%N\x84\x00'), chr(0b1100100) + chr(4078 - 3977) + '\x63' + chr(9371 - 9260) + chr(100) + chr(0b1000 + 0o135))('\165' + chr(0b110110 + 0o76) + '\146' + '\x2d' + chr(1549 - 1493)))(v8pO3cPncnLu)
sxESRJP_bi4G = sxESRJP_bi4G._sub
qVRzukfNtlOc = v8pO3cPncnLu |
hubo1016/namedstruct | namedstruct/namedstruct.py | Parser.new | def new(self, inlineparent = None):
'''
Create an empty struct of this type. "initfunc" is called on the created struct to initialize it.
:param inlineparent: if specified, this struct is embedded into another struct "inlineparent"
:returns: a created struct (usually a NamedStruct object)
'''
if self.base is not None:
s = self.base.new(inlineparent)
s._extend(self._new(s._target))
else:
s = self._new(inlineparent)
if self.initfunc is not None:
self.initfunc(s)
return s | python | def new(self, inlineparent = None):
'''
Create an empty struct of this type. "initfunc" is called on the created struct to initialize it.
:param inlineparent: if specified, this struct is embedded into another struct "inlineparent"
:returns: a created struct (usually a NamedStruct object)
'''
if self.base is not None:
s = self.base.new(inlineparent)
s._extend(self._new(s._target))
else:
s = self._new(inlineparent)
if self.initfunc is not None:
self.initfunc(s)
return s | [
"def",
"new",
"(",
"self",
",",
"inlineparent",
"=",
"None",
")",
":",
"if",
"self",
".",
"base",
"is",
"not",
"None",
":",
"s",
"=",
"self",
".",
"base",
".",
"new",
"(",
"inlineparent",
")",
"s",
".",
"_extend",
"(",
"self",
".",
"_new",
"(",
"s",
".",
"_target",
")",
")",
"else",
":",
"s",
"=",
"self",
".",
"_new",
"(",
"inlineparent",
")",
"if",
"self",
".",
"initfunc",
"is",
"not",
"None",
":",
"self",
".",
"initfunc",
"(",
"s",
")",
"return",
"s"
] | Create an empty struct of this type. "initfunc" is called on the created struct to initialize it.
:param inlineparent: if specified, this struct is embedded into another struct "inlineparent"
:returns: a created struct (usually a NamedStruct object) | [
"Create",
"an",
"empty",
"struct",
"of",
"this",
"type",
".",
"initfunc",
"is",
"called",
"on",
"the",
"created",
"struct",
"to",
"initialize",
"it",
".",
":",
"param",
"inlineparent",
":",
"if",
"specified",
"this",
"struct",
"is",
"embedded",
"into",
"another",
"struct",
"inlineparent",
":",
"returns",
":",
"a",
"created",
"struct",
"(",
"usually",
"a",
"NamedStruct",
"object",
")"
] | 5039026e0df4ce23003d212358918dbe1a6e1d76 | https://github.com/hubo1016/namedstruct/blob/5039026e0df4ce23003d212358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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) + chr(111) + chr(0b110001) + '\x33' + '\067', 30826 - 30818), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b10001 + 0o42) + chr(0b10011 + 0o36) + chr(0b110110), 18518 - 18510), nzTpIcepk0o8(chr(0b100 + 0o54) + '\x6f' + '\x31' + '\x34', ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + '\x32' + '\060' + chr(53), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b101111 + 0o100) + chr(0b11101 + 0o24) + chr(1445 - 1392) + chr(0b1 + 0o61), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110010) + chr(955 - 902) + chr(321 - 266), 43507 - 43499), nzTpIcepk0o8(chr(0b110000) + chr(0b100000 + 0o117) + chr(0b101101 + 0o12) + chr(0b110110), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(49) + chr(0b110101) + '\x35', 0o10), nzTpIcepk0o8(chr(1893 - 1845) + '\157' + chr(2462 - 2412) + chr(107 - 57) + chr(0b0 + 0o66), 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(49) + '\064' + chr(52), ord("\x08")), nzTpIcepk0o8(chr(0b100101 + 0o13) + '\157' + chr(0b110011) + chr(54) + chr(53), 0o10), nzTpIcepk0o8(chr(48) + chr(2285 - 2174) + '\x31' + chr(1640 - 1590) + '\x36', 0o10), nzTpIcepk0o8('\x30' + '\157' + '\x32' + '\065' + '\x37', 8), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\061' + chr(2314 - 2262) + chr(0b110011), 0b1000), nzTpIcepk0o8('\060' + chr(9958 - 9847) + chr(50) + chr(0b1110 + 0o45) + chr(51), 45644 - 45636), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110011) + '\063' + chr(2203 - 2155), 0o10), nzTpIcepk0o8('\060' + chr(4767 - 4656) + '\062' + '\065' + '\x33', ord("\x08")), nzTpIcepk0o8('\060' + chr(11843 - 11732) + chr(1928 - 1877) + chr(0b101 + 0o55) + chr(50), 53633 - 53625), nzTpIcepk0o8(chr(0b101111 + 0o1) + '\157' + chr(49) + chr(51) + chr(53), 17075 - 17067), nzTpIcepk0o8(chr(0b101111 + 0o1) + chr(0b101001 + 0o106) + chr(0b1101 + 0o46) + chr(0b100111 + 0o15) + '\061', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(1923 - 1873) + chr(1281 - 1226) + '\x35', 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(809 - 760) + chr(0b1111 + 0o44) + '\066', 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(0b11 + 0o57) + chr(537 - 486) + chr(0b0 + 0o66), ord("\x08")), nzTpIcepk0o8(chr(437 - 389) + chr(0b1101111) + chr(0b11010 + 0o27) + chr(55) + '\x33', ord("\x08")), nzTpIcepk0o8(chr(2119 - 2071) + chr(111) + '\062' + chr(55) + chr(0b10010 + 0o41), 14090 - 14082), nzTpIcepk0o8('\060' + chr(0b1101111) + '\061' + chr(0b110001) + chr(2097 - 2049), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + '\063' + chr(0b10011 + 0o43) + '\x31', 17947 - 17939), nzTpIcepk0o8('\x30' + chr(111) + chr(0b11111 + 0o27) + chr(0b100001 + 0o21), 0b1000), nzTpIcepk0o8('\x30' + '\157' + '\x32' + chr(232 - 179) + chr(0b110010), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110010) + '\x36' + '\063', 32462 - 32454), nzTpIcepk0o8(chr(2035 - 1987) + '\x6f' + chr(51) + '\x32' + '\x31', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(48), ord("\x08")), nzTpIcepk0o8(chr(441 - 393) + '\x6f' + chr(0b110011) + chr(0b110101) + chr(50), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + '\063' + '\066' + '\x32', 0b1000), nzTpIcepk0o8(chr(1568 - 1520) + chr(4326 - 4215) + chr(0b1001 + 0o52) + chr(49) + chr(0b110111), 0b1000), nzTpIcepk0o8(chr(1545 - 1497) + '\157' + '\061' + '\061' + chr(878 - 830), 8), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b100111 + 0o12) + '\x33' + chr(1344 - 1296), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(1657 - 1603) + chr(48), 0o10), nzTpIcepk0o8(chr(0b11 + 0o55) + chr(111) + '\062' + chr(49) + '\x35', 0b1000), nzTpIcepk0o8(chr(48) + chr(9429 - 9318) + chr(0b1001 + 0o51) + chr(51) + chr(0b11111 + 0o22), 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b100111 + 0o16) + '\x30', 36964 - 36956)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'q'), chr(0b1100100) + chr(8880 - 8779) + chr(0b101110 + 0o65) + chr(0b1101111) + chr(0b1100100) + chr(0b1100101))(chr(8337 - 8220) + chr(116) + chr(0b1100011 + 0o3) + '\055' + chr(384 - 328)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def bZWmgf4GjgvH(hXMPsSrOQzbh, ySf_6JQ7w7By=None):
if roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b"'\xb8|\xf1\x06\xcaIZ\xda\x17\xb79"), chr(4371 - 4271) + chr(0b1100101) + chr(99) + chr(0b11111 + 0o120) + '\144' + '\x65')(chr(0b1110101) + chr(0b1110100) + chr(0b1100110) + '\055' + chr(0b1110 + 0o52))) is not None:
PmE5_h409JAA = hXMPsSrOQzbh.base.bZWmgf4GjgvH(ySf_6JQ7w7By)
roI3spqORKae(PmE5_h409JAA, roI3spqORKae(ES5oEprVxulp(b'\x00\xabt\xf1\x0f\xc1Z'), '\144' + chr(0b11010 + 0o113) + chr(99) + '\157' + chr(0b111 + 0o135) + '\145')('\165' + chr(0b1011101 + 0o27) + chr(0b101101 + 0o71) + chr(0b101101) + '\x38'))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x00\xa0i\xf2'), chr(0b1100100) + chr(0b1100101) + chr(398 - 299) + chr(0b1100101 + 0o12) + chr(0b101110 + 0o66) + chr(101))('\x75' + chr(0b1110100) + chr(102) + '\055' + chr(1122 - 1066)))(roI3spqORKae(PmE5_h409JAA, roI3spqORKae(ES5oEprVxulp(b'6\x94I\xb63\xecV&\xc50\x94\x1d'), chr(100) + chr(447 - 346) + chr(0b0 + 0o143) + '\x6f' + chr(100) + chr(4024 - 3923))('\165' + chr(0b111111 + 0o65) + '\x66' + chr(0b101101) + chr(56)))))
else:
PmE5_h409JAA = hXMPsSrOQzbh._new(ySf_6JQ7w7By)
if roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'6\xa0e\xf1\x0c\xdaP\x0e'), chr(100) + chr(0b101110 + 0o67) + chr(1629 - 1530) + chr(0b1010110 + 0o31) + chr(0b1100100) + chr(101))(chr(117) + chr(116) + chr(0b1011111 + 0o7) + chr(0b101100 + 0o1) + chr(0b111000))) is not None:
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'6\xa0e\xf1\x0c\xdaP\x0e'), chr(0b1100100) + chr(0b1100101) + chr(99) + chr(0b1001111 + 0o40) + chr(0b101111 + 0o65) + '\x65')(chr(117) + '\x74' + '\146' + '\x2d' + chr(0b101101 + 0o13)))(PmE5_h409JAA)
return PmE5_h409JAA |
hubo1016/namedstruct | namedstruct/namedstruct.py | Parser.create | def create(self, data, inlineparent = None):
'''
Create a struct and use all bytes of data. Different from parse(), this takes all data,
store unused bytes in "extra" data of the struct. Some types like variable-length array
may have different parse result with create() and parse().
:param data: bytes of a packed struct.
:param inlineparent: if specified, this struct is embedded in another struct "inlineparent"
:returns: a created NamedStruct object.
'''
if self.base is not None:
return self.base.create(data, inlineparent)
c = self._create(data, inlineparent)
self.subclass(c)
return c | python | def create(self, data, inlineparent = None):
'''
Create a struct and use all bytes of data. Different from parse(), this takes all data,
store unused bytes in "extra" data of the struct. Some types like variable-length array
may have different parse result with create() and parse().
:param data: bytes of a packed struct.
:param inlineparent: if specified, this struct is embedded in another struct "inlineparent"
:returns: a created NamedStruct object.
'''
if self.base is not None:
return self.base.create(data, inlineparent)
c = self._create(data, inlineparent)
self.subclass(c)
return c | [
"def",
"create",
"(",
"self",
",",
"data",
",",
"inlineparent",
"=",
"None",
")",
":",
"if",
"self",
".",
"base",
"is",
"not",
"None",
":",
"return",
"self",
".",
"base",
".",
"create",
"(",
"data",
",",
"inlineparent",
")",
"c",
"=",
"self",
".",
"_create",
"(",
"data",
",",
"inlineparent",
")",
"self",
".",
"subclass",
"(",
"c",
")",
"return",
"c"
] | Create a struct and use all bytes of data. Different from parse(), this takes all data,
store unused bytes in "extra" data of the struct. Some types like variable-length array
may have different parse result with create() and parse().
:param data: bytes of a packed struct.
:param inlineparent: if specified, this struct is embedded in another struct "inlineparent"
:returns: a created NamedStruct object. | [
"Create",
"a",
"struct",
"and",
"use",
"all",
"bytes",
"of",
"data",
".",
"Different",
"from",
"parse",
"()",
"this",
"takes",
"all",
"data",
"store",
"unused",
"bytes",
"in",
"extra",
"data",
"of",
"the",
"struct",
".",
"Some",
"types",
"like",
"variable",
"-",
"length",
"array",
"may",
"have",
"different",
"parse",
"result",
"with",
"create",
"()",
"and",
"parse",
"()",
".",
":",
"param",
"data",
":",
"bytes",
"of",
"a",
"packed",
"struct",
".",
":",
"param",
"inlineparent",
":",
"if",
"specified",
"this",
"struct",
"is",
"embedded",
"in",
"another",
"struct",
"inlineparent",
":",
"returns",
":",
"a",
"created",
"NamedStruct",
"object",
"."
] | 5039026e0df4ce23003d212358918dbe1a6e1d76 | https://github.com/hubo1016/namedstruct/blob/5039026e0df4ce23003d212358918dbe1a6e1d76/namedstruct/namedstruct.py#L758-L774 | train | Create a new NamedStruct and use all byt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,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) + '\062' + chr(0b110100) + chr(0b110000), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1000000 + 0o57) + '\x32' + chr(0b110111) + '\061', ord("\x08")), nzTpIcepk0o8(chr(2037 - 1989) + chr(0b1000111 + 0o50) + '\061' + chr(0b110000) + '\061', ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110010) + chr(0b110101) + chr(0b1111 + 0o42), 11218 - 11210), nzTpIcepk0o8(chr(0b1101 + 0o43) + '\x6f' + chr(943 - 893) + chr(48) + '\064', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(1400 - 1289) + '\061' + '\x35' + chr(0b101000 + 0o14), 0o10), nzTpIcepk0o8(chr(48) + '\157' + '\x36' + chr(0b110100), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b10001 + 0o41) + '\x31' + chr(0b101000 + 0o12), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110011) + chr(51) + chr(1442 - 1393), 0o10), nzTpIcepk0o8(chr(1365 - 1317) + '\157' + chr(0b110001) + chr(0b10110 + 0o35) + '\x33', 0b1000), nzTpIcepk0o8(chr(0b101000 + 0o10) + chr(5922 - 5811) + '\x34' + '\x34', 1071 - 1063), nzTpIcepk0o8(chr(48) + '\x6f' + chr(50) + '\066' + '\x31', 0b1000), nzTpIcepk0o8(chr(1366 - 1318) + chr(8610 - 8499) + chr(0b11 + 0o63) + chr(319 - 264), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + '\x33' + chr(51) + chr(0b110111), ord("\x08")), nzTpIcepk0o8(chr(1448 - 1400) + chr(111) + chr(1153 - 1100), 20739 - 20731), nzTpIcepk0o8(chr(0b101101 + 0o3) + chr(0b1101111) + chr(0b100100 + 0o16) + chr(54) + '\063', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x37' + chr(54), 23631 - 23623), nzTpIcepk0o8('\060' + chr(111) + chr(49) + chr(0b110100) + '\x36', 56277 - 56269), nzTpIcepk0o8(chr(0b100101 + 0o13) + chr(0b11 + 0o154) + '\063' + '\064' + chr(174 - 120), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b0 + 0o157) + '\063' + chr(158 - 110) + chr(0b110000), 28541 - 28533), nzTpIcepk0o8(chr(48) + chr(111) + '\062' + chr(1472 - 1422), ord("\x08")), nzTpIcepk0o8(chr(0b1 + 0o57) + chr(111) + chr(168 - 118) + '\x30' + chr(0b110101), 15799 - 15791), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110010) + chr(122 - 67) + chr(0b110101), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110010) + '\x30' + '\063', 0o10), nzTpIcepk0o8(chr(0b101000 + 0o10) + chr(0b1101111) + '\061' + '\060' + chr(1256 - 1204), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b11100 + 0o26) + chr(0b10010 + 0o44) + '\061', 8), nzTpIcepk0o8(chr(0b1110 + 0o42) + chr(3811 - 3700) + chr(0b101000 + 0o13) + chr(0b110011) + chr(0b110000), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110011) + '\066' + chr(2247 - 2196), 0b1000), nzTpIcepk0o8(chr(0b100111 + 0o11) + chr(6877 - 6766) + chr(0b110010) + chr(1980 - 1929) + chr(0b110101), 15851 - 15843), nzTpIcepk0o8(chr(0b110000) + chr(0b100001 + 0o116) + chr(50) + '\066' + chr(0b101001 + 0o12), 8), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\065' + chr(54), 25171 - 25163), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110010) + '\067' + '\063', 35509 - 35501), nzTpIcepk0o8(chr(48) + chr(0b1011110 + 0o21) + chr(2053 - 2004) + chr(0b110101) + chr(0b110100 + 0o0), 8), nzTpIcepk0o8(chr(48) + '\x6f' + '\063' + '\x37' + '\063', 45927 - 45919), nzTpIcepk0o8(chr(902 - 854) + chr(0b101100 + 0o103) + '\x33' + chr(0b110111) + chr(1982 - 1929), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101110 + 0o1) + chr(0b110111) + chr(55), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b10 + 0o60) + chr(2680 - 2628) + '\x31', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(763 - 712) + chr(1960 - 1908) + chr(0b1 + 0o63), 0o10), nzTpIcepk0o8(chr(895 - 847) + '\157' + '\062' + chr(1664 - 1611) + '\066', 0b1000), nzTpIcepk0o8(chr(0b111 + 0o51) + chr(111) + chr(49) + chr(51) + chr(0b110101), 33738 - 33730)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(1427 - 1379) + chr(0b1101111) + chr(0b110101) + '\x30', ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x8e'), '\144' + chr(0b1100101) + '\x63' + chr(246 - 135) + chr(100) + chr(101))(chr(117) + chr(13373 - 13257) + chr(3386 - 3284) + '\055' + '\x38') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def uTw5CPPMOlxD(hXMPsSrOQzbh, FfKOThdpoDTb, ySf_6JQ7w7By=None):
if roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xd8\xcf1\xdd\xe8\tC\xbd\x95(f\xde'), chr(3025 - 2925) + chr(0b110010 + 0o63) + '\x63' + chr(0b1000100 + 0o53) + chr(0b1100100) + '\145')(chr(117) + chr(0b101010 + 0o112) + '\x66' + '\055' + '\070')) is not None:
return roI3spqORKae(hXMPsSrOQzbh.base, roI3spqORKae(ES5oEprVxulp(b'\xd5\xed6\x9c\xc7<d\xc7\x967\\\xf5'), chr(0b1100100) + chr(101) + chr(0b110110 + 0o55) + chr(111) + chr(0b1100100) + chr(101))('\x75' + chr(0b1110000 + 0o4) + '\146' + chr(0b101 + 0o50) + chr(0b111000)))(FfKOThdpoDTb, ySf_6JQ7w7By)
teUmM7cKWZUa = hXMPsSrOQzbh.aqVPwSZI98xg(FfKOThdpoDTb, ySf_6JQ7w7By)
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xd3\xcc#\xca\xe8\rG\xf9'), chr(0b1000000 + 0o44) + chr(0b1100101) + chr(0b1100011) + chr(0b1101111) + chr(0b1100100) + chr(0b1100101))(chr(0b1110101) + chr(6052 - 5936) + chr(0b1100110) + chr(45) + chr(0b111000)))(teUmM7cKWZUa)
return teUmM7cKWZUa |
hubo1016/namedstruct | namedstruct/namedstruct.py | Parser.paddingsize | def paddingsize(self, namedstruct):
'''
Return the size of the padded struct (including the "real" size and the padding bytes)
:param namedstruct: a NamedStruct object of this type.
:returns: size including both data and padding.
'''
if self.base is not None:
return self.base.paddingsize(namedstruct)
realsize = namedstruct._realsize()
return (realsize + self.padding - 1) // self.padding * self.padding | python | def paddingsize(self, namedstruct):
'''
Return the size of the padded struct (including the "real" size and the padding bytes)
:param namedstruct: a NamedStruct object of this type.
:returns: size including both data and padding.
'''
if self.base is not None:
return self.base.paddingsize(namedstruct)
realsize = namedstruct._realsize()
return (realsize + self.padding - 1) // self.padding * self.padding | [
"def",
"paddingsize",
"(",
"self",
",",
"namedstruct",
")",
":",
"if",
"self",
".",
"base",
"is",
"not",
"None",
":",
"return",
"self",
".",
"base",
".",
"paddingsize",
"(",
"namedstruct",
")",
"realsize",
"=",
"namedstruct",
".",
"_realsize",
"(",
")",
"return",
"(",
"realsize",
"+",
"self",
".",
"padding",
"-",
"1",
")",
"//",
"self",
".",
"padding",
"*",
"self",
".",
"padding"
] | Return the size of the padded struct (including the "real" size and the padding bytes)
:param namedstruct: a NamedStruct object of this type.
:returns: size including both data and padding. | [
"Return",
"the",
"size",
"of",
"the",
"padded",
"struct",
"(",
"including",
"the",
"real",
"size",
"and",
"the",
"padding",
"bytes",
")",
":",
"param",
"namedstruct",
":",
"a",
"NamedStruct",
"object",
"of",
"this",
"type",
".",
":",
"returns",
":",
"size",
"including",
"both",
"data",
"and",
"padding",
"."
] | 5039026e0df4ce23003d212358918dbe1a6e1d76 | https://github.com/hubo1016/namedstruct/blob/5039026e0df4ce23003d212358918dbe1a6e1d76/namedstruct/namedstruct.py#L775-L786 | train | Returns the size of the padded struct including the real size and the padding bytes. | GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmj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Ry29S1SS,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) + chr(111) + chr(0b110011) + '\063' + '\x35', 38147 - 38139), nzTpIcepk0o8(chr(913 - 865) + '\x6f' + chr(0b11111 + 0o22) + chr(406 - 352) + chr(566 - 517), ord("\x08")), nzTpIcepk0o8(chr(364 - 316) + chr(0b100110 + 0o111) + chr(380 - 329) + '\066', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b100110 + 0o111) + chr(55) + '\067', 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110 + 0o53) + chr(1363 - 1315) + '\060', 0b1000), nzTpIcepk0o8(chr(998 - 950) + chr(111) + '\x32' + '\x35' + chr(0b1101 + 0o52), 0b1000), nzTpIcepk0o8('\060' + chr(0b1100 + 0o143) + '\x32' + chr(319 - 266) + '\067', 8), nzTpIcepk0o8(chr(1895 - 1847) + chr(0b1101111) + '\x33' + chr(1550 - 1502), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(0b110010) + chr(0b110100) + chr(0b100010 + 0o21), 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(51) + chr(0b110110) + chr(2734 - 2679), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b1000 + 0o52) + '\061' + chr(54), 0b1000), nzTpIcepk0o8(chr(1735 - 1687) + chr(2763 - 2652) + chr(0b110011) + '\x31' + '\064', ord("\x08")), nzTpIcepk0o8('\x30' + chr(9165 - 9054) + '\x33' + chr(49) + '\x34', 8), nzTpIcepk0o8(chr(0b11110 + 0o22) + chr(0b1101111) + '\x31' + chr(1664 - 1611) + chr(54), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b11000 + 0o33) + chr(50) + chr(0b110011), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(1103 - 1053) + chr(49) + chr(51), 25674 - 25666), nzTpIcepk0o8(chr(1824 - 1776) + chr(0b1101111) + chr(937 - 883), 44417 - 44409), nzTpIcepk0o8('\060' + '\x6f' + '\066' + chr(0b100101 + 0o16), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(366 - 315) + chr(2555 - 2504) + '\x36', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x33' + '\x35' + chr(0b110000), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(5661 - 5550) + '\066' + chr(0b110101 + 0o0), ord("\x08")), nzTpIcepk0o8(chr(777 - 729) + '\157' + '\x34' + '\x31', 0b1000), nzTpIcepk0o8('\x30' + chr(8798 - 8687) + chr(53) + '\x30', 0o10), nzTpIcepk0o8(chr(1931 - 1883) + '\157' + chr(52) + '\065', 19088 - 19080), nzTpIcepk0o8(chr(1026 - 978) + chr(0b1100010 + 0o15) + '\061' + chr(55) + '\x36', 59099 - 59091), nzTpIcepk0o8('\060' + chr(1648 - 1537) + '\x33' + chr(2828 - 2773) + '\x36', ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(0b10101 + 0o35) + chr(623 - 573) + chr(55), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x31' + chr(0b1 + 0o60) + '\060', ord("\x08")), nzTpIcepk0o8(chr(1073 - 1025) + chr(3736 - 3625) + chr(51) + chr(851 - 803) + chr(0b110101), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b101000 + 0o107) + chr(0b110010) + chr(0b110110 + 0o1) + chr(0b110110), 0b1000), nzTpIcepk0o8(chr(0b1011 + 0o45) + chr(111) + chr(1641 - 1589) + '\067', 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + '\061' + chr(2382 - 2330) + chr(2540 - 2489), 0o10), nzTpIcepk0o8('\x30' + chr(10268 - 10157) + chr(51) + chr(52) + '\x35', 45351 - 45343), nzTpIcepk0o8('\060' + '\x6f' + '\x33' + '\x30' + chr(53), 8), nzTpIcepk0o8(chr(48) + chr(0b10001 + 0o136) + '\062' + chr(0b100100 + 0o14) + chr(52), 51104 - 51096), nzTpIcepk0o8('\x30' + '\157' + '\063' + chr(0b111 + 0o57) + chr(48), 0b1000), nzTpIcepk0o8(chr(0b11100 + 0o24) + chr(111) + chr(0b1101 + 0o46) + '\x33' + '\060', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(11032 - 10921) + chr(0b110011) + chr(969 - 915) + chr(0b10110 + 0o33), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(2176 - 2127) + chr(0b110000 + 0o2), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b100011 + 0o114) + chr(354 - 304) + '\066' + chr(52), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b11111 + 0o21) + chr(0b1010010 + 0o35) + chr(53) + chr(48), 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xf3'), chr(0b1100100) + '\x65' + chr(907 - 808) + chr(0b1101111) + '\x64' + chr(0b100101 + 0o100))(chr(2826 - 2709) + chr(116) + chr(0b110001 + 0o65) + chr(0b1000 + 0o45) + chr(56)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def AQAjG2xgi4PW(hXMPsSrOQzbh, TtOW53BH7FVE):
if roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xa5\x07nK,\xca\xd8/\xef\x84\xcc\xa3'), chr(0b111111 + 0o45) + '\x65' + chr(6623 - 6524) + '\x6f' + chr(9932 - 9832) + chr(0b1001110 + 0o27))(chr(0b1110101) + '\164' + chr(7443 - 7341) + chr(0b101101) + '\x38')) is not None:
return roI3spqORKae(hXMPsSrOQzbh.base, roI3spqORKae(ES5oEprVxulp(b'\xad\x10z[)\xc1\xc8k\xca\x8d\xeb'), chr(100) + '\x65' + chr(0b1101 + 0o126) + chr(111) + chr(0b100101 + 0o77) + chr(1600 - 1499))(chr(117) + chr(0b1100001 + 0o23) + chr(102) + chr(45) + chr(0b111000)))(TtOW53BH7FVE)
AE2RUDFoLbzF = TtOW53BH7FVE._realsize()
return (AE2RUDFoLbzF + roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x88)v\ty\xdf\xf5t\xc0\xc3\xc7\xaa'), chr(1552 - 1452) + '\145' + chr(8635 - 8536) + chr(111) + '\144' + '\145')(chr(117) + chr(0b111 + 0o155) + chr(0b111110 + 0o50) + chr(965 - 920) + '\070')) - nzTpIcepk0o8(chr(48) + chr(0b1010111 + 0o30) + '\x31', 0b1000)) // roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x88)v\ty\xdf\xf5t\xc0\xc3\xc7\xaa'), '\144' + chr(0b1010011 + 0o22) + chr(0b1001001 + 0o32) + chr(0b1101111) + chr(0b100010 + 0o102) + '\145')(chr(0b110100 + 0o101) + chr(0b1110100) + chr(102) + chr(0b101101) + '\070')) * roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x88)v\ty\xdf\xf5t\xc0\xc3\xc7\xaa'), chr(1703 - 1603) + '\x65' + chr(0b1100011) + '\157' + '\x64' + '\x65')('\x75' + chr(116) + chr(0b1100110) + chr(1228 - 1183) + chr(0b11000 + 0o40))) |
hubo1016/namedstruct | namedstruct/namedstruct.py | Parser.paddingsize2 | def paddingsize2(self, realsize):
'''
Return a padded size from realsize, for NamedStruct internal use.
'''
if self.base is not None:
return self.base.paddingsize2(realsize)
return (realsize + self.padding - 1) // self.padding * self.padding | python | def paddingsize2(self, realsize):
'''
Return a padded size from realsize, for NamedStruct internal use.
'''
if self.base is not None:
return self.base.paddingsize2(realsize)
return (realsize + self.padding - 1) // self.padding * self.padding | [
"def",
"paddingsize2",
"(",
"self",
",",
"realsize",
")",
":",
"if",
"self",
".",
"base",
"is",
"not",
"None",
":",
"return",
"self",
".",
"base",
".",
"paddingsize2",
"(",
"realsize",
")",
"return",
"(",
"realsize",
"+",
"self",
".",
"padding",
"-",
"1",
")",
"//",
"self",
".",
"padding",
"*",
"self",
".",
"padding"
] | Return a padded size from realsize, for NamedStruct internal use. | [
"Return",
"a",
"padded",
"size",
"from",
"realsize",
"for",
"NamedStruct",
"internal",
"use",
"."
] | 5039026e0df4ce23003d212358918dbe1a6e1d76 | https://github.com/hubo1016/namedstruct/blob/5039026e0df4ce23003d212358918dbe1a6e1d76/namedstruct/namedstruct.py#L787-L793 | train | Return a padded size from realsize for NamedStruct internal 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,ZOdp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crJP,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(9196 - 9085) + chr(0b110001) + chr(0b11001 + 0o27) + '\063', 0b1000), nzTpIcepk0o8(chr(0b11100 + 0o24) + chr(8352 - 8241) + chr(0b110010) + chr(50) + chr(55), ord("\x08")), nzTpIcepk0o8(chr(303 - 255) + chr(111) + '\x32' + '\x32' + '\061', 28588 - 28580), nzTpIcepk0o8('\x30' + chr(0b101010 + 0o105) + chr(51) + chr(1537 - 1486), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(51) + '\060' + chr(50), 0o10), nzTpIcepk0o8('\060' + chr(0b111 + 0o150) + chr(50) + chr(1892 - 1844) + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110010) + chr(2263 - 2209) + chr(0b1010 + 0o51), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + '\x37' + chr(0b101110 + 0o2), 0b1000), nzTpIcepk0o8('\060' + chr(0b1011 + 0o144) + chr(0b110011) + chr(0b110101) + chr(0b100 + 0o62), 0b1000), nzTpIcepk0o8(chr(1534 - 1486) + chr(0b1101111) + chr(0b110100) + chr(563 - 511), 0o10), nzTpIcepk0o8(chr(0b100010 + 0o16) + chr(0b1101111) + chr(345 - 294) + chr(0b110001) + '\x32', 61720 - 61712), nzTpIcepk0o8('\x30' + '\x6f' + '\061' + chr(0b110001) + chr(1229 - 1177), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b111 + 0o54) + '\x33' + chr(0b110000), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x32' + '\062' + chr(0b110101), 0o10), nzTpIcepk0o8('\060' + chr(111) + '\x33' + chr(1442 - 1393) + '\x31', 0o10), nzTpIcepk0o8(chr(661 - 613) + '\157' + '\063', ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(49) + chr(348 - 294) + chr(0b101111 + 0o5), 0o10), nzTpIcepk0o8(chr(1535 - 1487) + chr(111) + chr(1930 - 1879) + chr(49) + chr(51), 0b1000), nzTpIcepk0o8(chr(0b1010 + 0o46) + chr(3397 - 3286) + chr(0b110010) + chr(665 - 614) + chr(0b110011), 23661 - 23653), nzTpIcepk0o8(chr(317 - 269) + chr(0b1101111) + chr(0b110011) + '\x35' + chr(51), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101100 + 0o3) + '\063', 8), nzTpIcepk0o8('\x30' + '\x6f' + chr(187 - 137) + chr(54) + '\063', 8), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110001) + '\067' + chr(0b110101), 0b1000), nzTpIcepk0o8(chr(1945 - 1897) + chr(0b1101111) + chr(1261 - 1210) + '\063' + chr(0b0 + 0o65), 30298 - 30290), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110011) + '\x36' + chr(2303 - 2254), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + '\x33' + '\x36' + '\x31', 8), nzTpIcepk0o8(chr(48) + '\x6f' + chr(49) + '\064' + chr(1235 - 1187), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b100000 + 0o117) + '\063' + '\x32', 0b1000), nzTpIcepk0o8(chr(1045 - 997) + chr(111) + '\x32' + '\x33' + chr(0b110000), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + '\066', 52324 - 52316), nzTpIcepk0o8(chr(0b110 + 0o52) + chr(111) + chr(0b10110 + 0o33) + chr(0b110001) + chr(0b100010 + 0o23), 10732 - 10724), nzTpIcepk0o8('\x30' + '\157' + chr(49) + chr(0b110011) + chr(848 - 797), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + '\x31' + chr(1306 - 1252) + '\060', 16042 - 16034), nzTpIcepk0o8(chr(1533 - 1485) + chr(0b1011001 + 0o26) + chr(49) + chr(48) + chr(55), 0o10), nzTpIcepk0o8('\x30' + chr(11842 - 11731) + chr(0b110010) + chr(2061 - 2010) + chr(53), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(1010 - 961) + chr(0b100101 + 0o20) + '\x34', 47900 - 47892), nzTpIcepk0o8(chr(0b110000) + chr(10674 - 10563) + chr(51) + chr(49), 11071 - 11063), nzTpIcepk0o8('\060' + chr(8067 - 7956) + chr(0b110101) + chr(48), 0o10), nzTpIcepk0o8('\060' + chr(0b1100100 + 0o13) + chr(49) + chr(50) + '\x37', ord("\x08")), nzTpIcepk0o8(chr(805 - 757) + chr(0b1101111) + '\x32' + chr(2092 - 2043) + chr(0b110110), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(8397 - 8286) + chr(53) + chr(71 - 23), 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'm'), chr(0b1100100) + chr(7198 - 7097) + '\143' + '\x6f' + '\x64' + '\145')('\x75' + '\164' + chr(0b1100110) + '\x2d' + '\070') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def JG3YWJnVyEkP(hXMPsSrOQzbh, AE2RUDFoLbzF):
if roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b';\xe1\xe1o\xae\xe4\xc4\x0f\xa2W\x88#'), chr(100) + chr(0b1100101) + chr(0b1100011) + chr(0b1101111) + chr(0b1100100 + 0o0) + '\x65')('\165' + chr(0b1110100) + chr(9248 - 9146) + chr(45) + chr(56))) is not None:
return roI3spqORKae(hXMPsSrOQzbh.base, roI3spqORKae(ES5oEprVxulp(b'3\xf6\xf5\x7f\xab\xef\xd4K\x87^\xaf~'), '\x64' + '\145' + '\x63' + '\x6f' + '\144' + chr(101))(chr(1439 - 1322) + chr(0b101100 + 0o110) + chr(0b1100110) + '\055' + chr(845 - 789)))(AE2RUDFoLbzF)
return (AE2RUDFoLbzF + roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x16\xcf\xf9-\xfb\xf1\xe9T\x8d\x10\x83*'), '\144' + chr(0b110100 + 0o61) + '\143' + chr(1687 - 1576) + chr(0b1010000 + 0o24) + chr(0b100101 + 0o100))(chr(117) + '\164' + chr(0b1100110) + chr(45) + '\070')) - nzTpIcepk0o8(chr(0b101011 + 0o5) + chr(0b1101111) + '\x31', 45347 - 45339)) // roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x16\xcf\xf9-\xfb\xf1\xe9T\x8d\x10\x83*'), chr(100) + '\145' + chr(99) + '\x6f' + '\144' + chr(0b1000000 + 0o45))(chr(12466 - 12349) + chr(0b1000111 + 0o55) + chr(7127 - 7025) + chr(45) + chr(0b111000))) * roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x16\xcf\xf9-\xfb\xf1\xe9T\x8d\x10\x83*'), chr(4383 - 4283) + '\145' + chr(5020 - 4921) + chr(0b1101111) + chr(100) + '\145')(chr(0b1110101) + '\x74' + '\x66' + '\055' + chr(0b11101 + 0o33))) |
hubo1016/namedstruct | namedstruct/namedstruct.py | Parser.tostream | def tostream(self, namedstruct, stream, skipprepack = False):
'''
Convert a NamedStruct to packed bytes, append the bytes to the stream
:param namedstruct: a NamedStruct object of this type to pack.
:param skipprepack: if True, the prepack stage is skipped.
:param stream: a buffered stream
:return: appended bytes size
'''
return namedstruct._tostream(stream, skipprepack) | python | def tostream(self, namedstruct, stream, skipprepack = False):
'''
Convert a NamedStruct to packed bytes, append the bytes to the stream
:param namedstruct: a NamedStruct object of this type to pack.
:param skipprepack: if True, the prepack stage is skipped.
:param stream: a buffered stream
:return: appended bytes size
'''
return namedstruct._tostream(stream, skipprepack) | [
"def",
"tostream",
"(",
"self",
",",
"namedstruct",
",",
"stream",
",",
"skipprepack",
"=",
"False",
")",
":",
"return",
"namedstruct",
".",
"_tostream",
"(",
"stream",
",",
"skipprepack",
")"
] | Convert a NamedStruct to packed bytes, append the bytes to the stream
:param namedstruct: a NamedStruct object of this type to pack.
:param skipprepack: if True, the prepack stage is skipped.
:param stream: a buffered stream
:return: appended bytes size | [
"Convert",
"a",
"NamedStruct",
"to",
"packed",
"bytes",
"append",
"the",
"bytes",
"to",
"the",
"stream",
":",
"param",
"namedstruct",
":",
"a",
"NamedStruct",
"object",
"of",
"this",
"type",
"to",
"pack",
".",
":",
"param",
"skipprepack",
":",
"if",
"True",
"the",
"prepack",
"stage",
"is",
"skipped",
".",
":",
"param",
"stream",
":",
"a",
"buffered",
"stream",
":",
"return",
":",
"appended",
"bytes",
"size"
] | 5039026e0df4ce23003d212358918dbe1a6e1d76 | https://github.com/hubo1016/namedstruct/blob/5039026e0df4ce23003d212358918dbe1a6e1d76/namedstruct/namedstruct.py#L805-L817 | train | Convert a NamedStruct to packed bytes append the bytes to the stream | GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P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foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__
ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b10011 + 0o35) + '\x6f' + '\x33' + chr(0b11000 + 0o30) + '\063', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1001 + 0o146) + chr(0b100101 + 0o16) + chr(1282 - 1231) + chr(55), 0b1000), nzTpIcepk0o8(chr(0b1001 + 0o47) + chr(0b111000 + 0o67) + '\x32' + chr(0b110111) + chr(48), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110011) + chr(0b101001 + 0o16) + '\x30', 0b1000), nzTpIcepk0o8(chr(630 - 582) + '\x6f' + '\061' + chr(2242 - 2191) + chr(0b110000), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(717 - 666) + chr(0b110011) + '\066', ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(0b110001) + chr(0b110100), 0o10), nzTpIcepk0o8('\x30' + chr(1045 - 934) + chr(0b11011 + 0o30) + chr(287 - 234) + chr(92 - 37), 0o10), nzTpIcepk0o8('\x30' + '\157' + '\062' + '\064' + '\x35', 55251 - 55243), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(51) + chr(0b10100 + 0o40), ord("\x08")), nzTpIcepk0o8(chr(1146 - 1098) + chr(758 - 647) + '\061' + chr(53) + chr(53), ord("\x08")), nzTpIcepk0o8(chr(1891 - 1843) + chr(111) + '\x32' + chr(52) + chr(0b10011 + 0o44), 0o10), nzTpIcepk0o8(chr(179 - 131) + '\157' + chr(0b101101 + 0o6) + chr(0b0 + 0o64) + '\062', 2470 - 2462), nzTpIcepk0o8('\060' + '\157' + chr(1439 - 1388) + chr(229 - 181), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110010) + chr(0b110000), 0o10), nzTpIcepk0o8(chr(131 - 83) + chr(0b111110 + 0o61) + chr(0b110001) + chr(1682 - 1632) + chr(52), 0o10), nzTpIcepk0o8('\x30' + chr(7921 - 7810) + chr(50) + '\067' + chr(242 - 187), 31846 - 31838), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110001) + '\x30' + chr(0b110100), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(2053 - 2003) + '\x36' + '\x30', 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(0b10010 + 0o41) + '\x36' + chr(49), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101010 + 0o5) + chr(0b110001) + chr(0b110100) + '\x36', 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x33' + chr(0b101000 + 0o14) + chr(0b100001 + 0o23), 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + '\063' + '\x30' + '\064', 0b1000), nzTpIcepk0o8('\060' + chr(2939 - 2828) + '\x33' + '\x36' + chr(2849 - 2795), 0b1000), nzTpIcepk0o8(chr(0b1000 + 0o50) + chr(10136 - 10025) + '\x33' + chr(1149 - 1097) + chr(1458 - 1410), ord("\x08")), nzTpIcepk0o8(chr(0b111 + 0o51) + '\x6f' + chr(1765 - 1714) + chr(693 - 644) + '\067', 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(50) + chr(2239 - 2189) + chr(0b110010), 0o10), nzTpIcepk0o8(chr(489 - 441) + chr(111) + '\062' + '\060' + '\064', 0b1000), nzTpIcepk0o8(chr(0b100000 + 0o20) + chr(0b1101111) + '\x31' + chr(49) + '\061', 0b1000), nzTpIcepk0o8(chr(0b10001 + 0o37) + '\x6f' + chr(0b110001) + chr(50), 17224 - 17216), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110010) + chr(449 - 396), 0o10), nzTpIcepk0o8(chr(0b101111 + 0o1) + '\157' + chr(0b110100) + chr(0b110010), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110010) + chr(0b110110) + chr(0b11110 + 0o25), 0b1000), nzTpIcepk0o8(chr(0b101 + 0o53) + chr(0b1101111) + '\x32' + '\x32', 45384 - 45376), nzTpIcepk0o8('\x30' + '\157' + chr(152 - 103) + chr(1315 - 1266) + '\x31', 8), nzTpIcepk0o8('\x30' + '\x6f' + chr(50) + '\065' + chr(0b110111), 0b1000), nzTpIcepk0o8('\060' + '\157' + chr(393 - 340) + '\x35', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\061' + chr(0b110000) + '\x32', 30657 - 30649), nzTpIcepk0o8(chr(0b1011 + 0o45) + '\x6f' + '\063' + chr(51) + chr(49), 45472 - 45464), nzTpIcepk0o8(chr(0b10111 + 0o31) + chr(0b1100100 + 0o13) + chr(0b110011) + chr(1689 - 1641) + chr(1236 - 1181), 45212 - 45204)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + '\x6f' + chr(1598 - 1545) + '\x30', 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xed'), chr(3251 - 3151) + chr(1782 - 1681) + '\x63' + chr(7538 - 7427) + chr(100) + chr(9132 - 9031))(chr(117) + '\164' + '\x66' + chr(0b101011 + 0o2) + chr(0b111000)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def u1we1JlgQ1gf(hXMPsSrOQzbh, TtOW53BH7FVE, ztC3O2ZXmsJr, D6Ev8Dnyj5Ex=nzTpIcepk0o8(chr(0b11100 + 0o24) + '\x6f' + '\x30', 0b1000)):
return roI3spqORKae(TtOW53BH7FVE, roI3spqORKae(ES5oEprVxulp(b'\x9c\xab\xd7\x8b,\xaci\x8e\xc8'), chr(6624 - 6524) + '\x65' + chr(99) + '\157' + chr(336 - 236) + chr(101))(chr(117) + '\x74' + chr(0b1000111 + 0o37) + chr(1021 - 976) + chr(56)))(ztC3O2ZXmsJr, D6Ev8Dnyj5Ex) |
hubo1016/namedstruct | namedstruct/namedstruct.py | Parser.prepack | def prepack(self, namedstruct, skip_self=False, skip_sub=False):
'''
Run prepack
'''
if not skip_self and self.prepackfunc is not None:
self.prepackfunc(namedstruct) | python | def prepack(self, namedstruct, skip_self=False, skip_sub=False):
'''
Run prepack
'''
if not skip_self and self.prepackfunc is not None:
self.prepackfunc(namedstruct) | [
"def",
"prepack",
"(",
"self",
",",
"namedstruct",
",",
"skip_self",
"=",
"False",
",",
"skip_sub",
"=",
"False",
")",
":",
"if",
"not",
"skip_self",
"and",
"self",
".",
"prepackfunc",
"is",
"not",
"None",
":",
"self",
".",
"prepackfunc",
"(",
"namedstruct",
")"
] | Run prepack | [
"Run",
"prepack"
] | 5039026e0df4ce23003d212358918dbe1a6e1d76 | https://github.com/hubo1016/namedstruct/blob/5039026e0df4ce23003d212358918dbe1a6e1d76/namedstruct/namedstruct.py#L818-L823 | train | Run prepackfunc on the namedstruct. | GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,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Error,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(1704 - 1656) + '\x6f' + chr(51) + chr(2207 - 2159) + chr(0b110100), 64326 - 64318), nzTpIcepk0o8(chr(48) + chr(111) + '\062' + chr(51) + chr(0b110111), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b11111 + 0o120) + chr(0b11101 + 0o25) + chr(0b110001) + chr(0b110110), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + '\061' + chr(1227 - 1174) + chr(0b110000 + 0o1), 0b1000), nzTpIcepk0o8(chr(642 - 594) + chr(5872 - 5761) + chr(0b110001) + chr(1303 - 1254) + chr(792 - 741), 0b1000), nzTpIcepk0o8(chr(2232 - 2184) + chr(3405 - 3294) + chr(52) + chr(0b10001 + 0o43), 41581 - 41573), nzTpIcepk0o8(chr(48) + chr(0b11001 + 0o126) + '\063' + chr(308 - 257) + '\060', 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(0b1010 + 0o50) + '\066' + chr(0b110000), 34215 - 34207), nzTpIcepk0o8(chr(0b110000) + chr(792 - 681) + '\063' + chr(54) + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(0b101 + 0o53) + chr(0b1101111) + chr(1810 - 1756) + '\x34', 51045 - 51037), nzTpIcepk0o8(chr(48) + '\157' + chr(50) + chr(0b11100 + 0o25) + chr(0b110001 + 0o4), 10007 - 9999), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x33' + chr(0b100101 + 0o13), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(385 - 336) + '\063' + chr(1430 - 1381), 64292 - 64284), nzTpIcepk0o8(chr(1907 - 1859) + chr(0b1101111) + chr(2263 - 2212) + chr(50), 0b1000), nzTpIcepk0o8('\060' + chr(0b1010011 + 0o34) + chr(53) + chr(0b110011 + 0o0), 32701 - 32693), nzTpIcepk0o8(chr(0b100 + 0o54) + chr(0b101011 + 0o104) + chr(0b110011) + chr(2094 - 2043), 0b1000), nzTpIcepk0o8(chr(2255 - 2207) + chr(8365 - 8254) + chr(0b1000 + 0o52) + chr(0b1 + 0o60) + '\x35', 8), nzTpIcepk0o8(chr(755 - 707) + '\x6f' + chr(0b110011) + chr(50) + '\x31', 0b1000), nzTpIcepk0o8(chr(0b100101 + 0o13) + '\x6f' + chr(0b1011 + 0o50) + chr(1558 - 1509) + chr(0b110100), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\061' + chr(0b110001) + '\063', 8), nzTpIcepk0o8(chr(247 - 199) + chr(0b1101111) + chr(0b100101 + 0o14) + chr(0b11010 + 0o27) + chr(52), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x31' + '\062' + chr(0b110111), 16099 - 16091), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(51) + chr(0b1111 + 0o41) + chr(0b100001 + 0o22), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(12236 - 12125) + chr(0b1110 + 0o43) + '\x32' + chr(0b110011), 0o10), nzTpIcepk0o8(chr(0b1110 + 0o42) + chr(1091 - 980) + chr(177 - 126) + '\062' + chr(0b110011), 0b1000), nzTpIcepk0o8(chr(1896 - 1848) + chr(0b111 + 0o150) + '\063' + chr(524 - 469) + chr(1007 - 958), 0b1000), nzTpIcepk0o8(chr(0b100010 + 0o16) + chr(2426 - 2315) + chr(0b10110 + 0o34) + chr(54) + '\062', 44124 - 44116), nzTpIcepk0o8(chr(0b11101 + 0o23) + '\157' + chr(2484 - 2433) + '\066' + '\066', 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + '\064' + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(946 - 898) + '\157' + chr(2405 - 2354) + '\062' + '\062', 0o10), nzTpIcepk0o8(chr(0b100011 + 0o15) + '\x6f' + chr(0b110011) + '\062' + chr(0b11101 + 0o32), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110001) + '\061', 11359 - 11351), nzTpIcepk0o8('\x30' + chr(8990 - 8879) + '\x33' + chr(0b110010 + 0o5) + '\x35', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110001) + chr(0b10100 + 0o37) + chr(0b110100), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(1216 - 1165) + chr(51) + chr(1935 - 1883), ord("\x08")), nzTpIcepk0o8(chr(874 - 826) + '\x6f' + chr(0b11100 + 0o26) + '\x30' + chr(0b110010), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + '\x34' + chr(0b1010 + 0o55), 25050 - 25042), nzTpIcepk0o8(chr(0b101101 + 0o3) + chr(0b1101111) + chr(0b100111 + 0o12) + chr(1840 - 1785) + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\063' + chr(0b110110) + chr(52), 49934 - 49926), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(2397 - 2347) + chr(0b110010) + chr(0b101011 + 0o6), 42523 - 42515)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(1747 - 1699) + chr(111) + chr(295 - 242) + chr(48), ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xea'), '\x64' + '\145' + '\x63' + '\x6f' + chr(864 - 764) + '\145')(chr(6277 - 6160) + chr(0b1010010 + 0o42) + '\x66' + chr(1826 - 1781) + chr(3019 - 2963)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def qVM7sCwFQOHy(hXMPsSrOQzbh, TtOW53BH7FVE, vOmJfkYJreC3=nzTpIcepk0o8('\060' + '\157' + chr(0b111 + 0o51), 0o10), Lm72N1CRBFhv=nzTpIcepk0o8(chr(0b110000) + chr(0b101 + 0o152) + chr(0b100001 + 0o17), 8)):
if not vOmJfkYJreC3 and roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xb4\xed\xeb\x19*G\xb3\xd6\x84Z\xee'), chr(0b110000 + 0o64) + chr(0b1100101) + '\143' + '\157' + '\x64' + chr(0b1011111 + 0o6))('\x75' + '\x74' + '\x66' + chr(0b101101) + chr(0b110111 + 0o1))) is not None:
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xb4\xed\xeb\x19*G\xb3\xd6\x84Z\xee'), '\144' + chr(0b1010010 + 0o23) + '\x63' + chr(8696 - 8585) + chr(0b1100100) + chr(0b101011 + 0o72))(chr(117) + chr(0b1001100 + 0o50) + chr(102) + '\x2d' + chr(0b110100 + 0o4)))(TtOW53BH7FVE) |
hubo1016/namedstruct | namedstruct/namedstruct.py | Parser.packto | def packto(self, namedstruct, stream):
"""
Pack a struct to a stream
:param namedstruct: struct to pack
:param stream: a buffered stream
:return: appended bytes size
"""
# Default implementation
data = self.pack(namedstruct)
return stream.write(data) | python | def packto(self, namedstruct, stream):
"""
Pack a struct to a stream
:param namedstruct: struct to pack
:param stream: a buffered stream
:return: appended bytes size
"""
# Default implementation
data = self.pack(namedstruct)
return stream.write(data) | [
"def",
"packto",
"(",
"self",
",",
"namedstruct",
",",
"stream",
")",
":",
"# Default implementation",
"data",
"=",
"self",
".",
"pack",
"(",
"namedstruct",
")",
"return",
"stream",
".",
"write",
"(",
"data",
")"
] | Pack a struct to a stream
:param namedstruct: struct to pack
:param stream: a buffered stream
:return: appended bytes size | [
"Pack",
"a",
"struct",
"to",
"a",
"stream",
":",
"param",
"namedstruct",
":",
"struct",
"to",
"pack",
":",
"param",
"stream",
":",
"a",
"buffered",
"stream",
":",
"return",
":",
"appended",
"bytes",
"size"
] | 5039026e0df4ce23003d212358918dbe1a6e1d76 | https://github.com/hubo1016/namedstruct/blob/5039026e0df4ce23003d212358918dbe1a6e1d76/namedstruct/namedstruct.py#L824-L836 | train | Pack a named struct to a buffered stream | GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,R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v,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(1494 - 1446) + chr(3924 - 3813) + chr(49) + chr(50) + chr(50), ord("\x08")), nzTpIcepk0o8(chr(815 - 767) + chr(0b1101111) + chr(0b1010 + 0o47) + chr(53), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x31' + '\x35' + chr(48), ord("\x08")), nzTpIcepk0o8(chr(0b1100 + 0o44) + chr(111) + '\x35' + chr(0b11001 + 0o33), 0b1000), nzTpIcepk0o8(chr(1326 - 1278) + '\157' + chr(49) + chr(0b110101) + '\x33', 0o10), nzTpIcepk0o8('\x30' + chr(0b1000110 + 0o51) + '\061' + chr(0b110101) + chr(0b11110 + 0o30), 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(0b11010 + 0o31) + chr(49) + chr(0b100100 + 0o15), 20379 - 20371), nzTpIcepk0o8('\060' + '\x6f' + chr(860 - 809) + chr(109 - 57) + chr(0b10000 + 0o41), 0o10), nzTpIcepk0o8('\060' + chr(111) + '\x32' + chr(0b100010 + 0o22) + '\067', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110011) + chr(54) + '\x36', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(49) + chr(0b110100), ord("\x08")), nzTpIcepk0o8(chr(0b100110 + 0o12) + '\x6f' + '\061' + chr(2477 - 2427), 47639 - 47631), nzTpIcepk0o8(chr(48) + chr(10392 - 10281) + chr(50) + '\060' + chr(0b110010), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + '\063' + chr(371 - 318), ord("\x08")), nzTpIcepk0o8(chr(0b100001 + 0o17) + chr(8318 - 8207) + chr(49) + chr(48) + chr(55), ord("\x08")), nzTpIcepk0o8(chr(729 - 681) + chr(10467 - 10356) + '\x33' + chr(53) + '\066', 37850 - 37842), nzTpIcepk0o8(chr(1999 - 1951) + chr(10547 - 10436) + chr(0b101110 + 0o4) + chr(0b10111 + 0o36) + chr(48), ord("\x08")), nzTpIcepk0o8('\060' + chr(1411 - 1300) + chr(0b110111) + '\x30', ord("\x08")), nzTpIcepk0o8(chr(1771 - 1723) + '\x6f' + '\x33' + chr(49) + chr(1159 - 1110), 8), nzTpIcepk0o8(chr(1568 - 1520) + chr(111) + chr(0b110011) + chr(307 - 257), 65497 - 65489), nzTpIcepk0o8(chr(0b11000 + 0o30) + chr(0b1001100 + 0o43) + chr(0b110001) + chr(51), 0o10), nzTpIcepk0o8('\x30' + '\157' + '\063' + '\x32', 8), nzTpIcepk0o8(chr(0b101110 + 0o2) + chr(0b1011000 + 0o27) + chr(1746 - 1697) + chr(52) + chr(0b10010 + 0o43), 18091 - 18083), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b100111 + 0o12), 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(852 - 797), 0o10), nzTpIcepk0o8(chr(2226 - 2178) + chr(0b10110 + 0o131) + chr(54) + chr(0b110000), 53156 - 53148), nzTpIcepk0o8(chr(0b11100 + 0o24) + '\157' + '\x32' + '\x36' + '\x36', 54022 - 54014), nzTpIcepk0o8(chr(336 - 288) + chr(0b1101111) + chr(0b110001) + chr(1612 - 1558), 0o10), nzTpIcepk0o8('\060' + '\157' + '\063' + chr(0b100 + 0o56) + chr(53), ord("\x08")), nzTpIcepk0o8(chr(1734 - 1686) + '\157' + chr(0b110011) + chr(52) + chr(444 - 390), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(1020 - 969) + '\061' + '\066', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b0 + 0o63) + '\062' + '\x36', 18576 - 18568), nzTpIcepk0o8('\060' + '\x6f' + chr(51) + chr(51) + '\062', ord("\x08")), nzTpIcepk0o8(chr(0b101000 + 0o10) + chr(0b1101111) + '\x33' + chr(404 - 351) + chr(53), 27424 - 27416), nzTpIcepk0o8(chr(686 - 638) + chr(0b1000101 + 0o52) + chr(0b100010 + 0o21) + chr(507 - 456) + chr(53), 37895 - 37887), nzTpIcepk0o8(chr(48) + '\157' + chr(2376 - 2321) + chr(0b110010 + 0o0), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x31' + chr(1122 - 1070), 8), nzTpIcepk0o8(chr(888 - 840) + chr(111) + '\x32' + '\x32' + chr(0b111 + 0o54), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110011) + chr(542 - 488) + chr(881 - 833), ord("\x08")), nzTpIcepk0o8(chr(0b100001 + 0o17) + '\157' + chr(0b10001 + 0o42) + '\063' + chr(0b110111), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(0b110101 + 0o72) + '\x35' + chr(0b110000), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'|'), chr(0b1100100) + chr(0b101011 + 0o72) + '\143' + chr(0b1101111) + chr(0b1100100) + chr(0b1100101))(chr(117) + chr(0b1010001 + 0o43) + chr(102) + chr(0b101101) + chr(0b111000)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def edpmAnKfPLVU(hXMPsSrOQzbh, TtOW53BH7FVE, ztC3O2ZXmsJr):
FfKOThdpoDTb = hXMPsSrOQzbh.pack(TtOW53BH7FVE)
return roI3spqORKae(ztC3O2ZXmsJr, roI3spqORKae(ES5oEprVxulp(b'?aXD\x03\x1e\xbf\xd0\xeb\x86}8'), chr(0b10111 + 0o115) + chr(0b1111 + 0o126) + chr(0b1100011 + 0o0) + chr(111) + '\144' + '\x65')(chr(6214 - 6097) + '\164' + '\x66' + chr(45) + chr(2064 - 2008)))(FfKOThdpoDTb) |
hubo1016/namedstruct | namedstruct/namedstruct.py | FormatParser.unpack | def unpack(self, data, namedstruct):
'''
Unpack the struct from specified bytes. If the struct is sub-classed, definitions from the sub type
is not unpacked.
:param data: bytes of the struct, including fields of sub type and "extra" data.
:param namedstruct: a NamedStruct object of this type
:returns: unused bytes from data, which forms data of the sub type and "extra" data.
'''
try:
result = self.struct.unpack(data[0:self.struct.size])
except struct.error as exc:
raise BadFormatError(exc)
start = 0
t = namedstruct._target
for p in self.properties:
if len(p) > 1:
if isinstance(result[start], bytes):
v = [r.rstrip(b'\x00') for r in result[start:start + p[1]]]
else:
v = list(result[start:start + p[1]])
start += p[1]
else:
v = result[start]
if isinstance(v, bytes):
v = v.rstrip(b'\x00')
start += 1
setin = t
for sp in p[0][0:-1]:
if not hasattr(setin, sp):
setin2 = InlineStruct(namedstruct._target)
setattr(setin, sp, setin2)
setin = setin2
else:
setin = getattr(setin, sp)
setattr(setin, p[0][-1], v)
return data[self.struct.size:] | python | def unpack(self, data, namedstruct):
'''
Unpack the struct from specified bytes. If the struct is sub-classed, definitions from the sub type
is not unpacked.
:param data: bytes of the struct, including fields of sub type and "extra" data.
:param namedstruct: a NamedStruct object of this type
:returns: unused bytes from data, which forms data of the sub type and "extra" data.
'''
try:
result = self.struct.unpack(data[0:self.struct.size])
except struct.error as exc:
raise BadFormatError(exc)
start = 0
t = namedstruct._target
for p in self.properties:
if len(p) > 1:
if isinstance(result[start], bytes):
v = [r.rstrip(b'\x00') for r in result[start:start + p[1]]]
else:
v = list(result[start:start + p[1]])
start += p[1]
else:
v = result[start]
if isinstance(v, bytes):
v = v.rstrip(b'\x00')
start += 1
setin = t
for sp in p[0][0:-1]:
if not hasattr(setin, sp):
setin2 = InlineStruct(namedstruct._target)
setattr(setin, sp, setin2)
setin = setin2
else:
setin = getattr(setin, sp)
setattr(setin, p[0][-1], v)
return data[self.struct.size:] | [
"def",
"unpack",
"(",
"self",
",",
"data",
",",
"namedstruct",
")",
":",
"try",
":",
"result",
"=",
"self",
".",
"struct",
".",
"unpack",
"(",
"data",
"[",
"0",
":",
"self",
".",
"struct",
".",
"size",
"]",
")",
"except",
"struct",
".",
"error",
"as",
"exc",
":",
"raise",
"BadFormatError",
"(",
"exc",
")",
"start",
"=",
"0",
"t",
"=",
"namedstruct",
".",
"_target",
"for",
"p",
"in",
"self",
".",
"properties",
":",
"if",
"len",
"(",
"p",
")",
">",
"1",
":",
"if",
"isinstance",
"(",
"result",
"[",
"start",
"]",
",",
"bytes",
")",
":",
"v",
"=",
"[",
"r",
".",
"rstrip",
"(",
"b'\\x00'",
")",
"for",
"r",
"in",
"result",
"[",
"start",
":",
"start",
"+",
"p",
"[",
"1",
"]",
"]",
"]",
"else",
":",
"v",
"=",
"list",
"(",
"result",
"[",
"start",
":",
"start",
"+",
"p",
"[",
"1",
"]",
"]",
")",
"start",
"+=",
"p",
"[",
"1",
"]",
"else",
":",
"v",
"=",
"result",
"[",
"start",
"]",
"if",
"isinstance",
"(",
"v",
",",
"bytes",
")",
":",
"v",
"=",
"v",
".",
"rstrip",
"(",
"b'\\x00'",
")",
"start",
"+=",
"1",
"setin",
"=",
"t",
"for",
"sp",
"in",
"p",
"[",
"0",
"]",
"[",
"0",
":",
"-",
"1",
"]",
":",
"if",
"not",
"hasattr",
"(",
"setin",
",",
"sp",
")",
":",
"setin2",
"=",
"InlineStruct",
"(",
"namedstruct",
".",
"_target",
")",
"setattr",
"(",
"setin",
",",
"sp",
",",
"setin2",
")",
"setin",
"=",
"setin2",
"else",
":",
"setin",
"=",
"getattr",
"(",
"setin",
",",
"sp",
")",
"setattr",
"(",
"setin",
",",
"p",
"[",
"0",
"]",
"[",
"-",
"1",
"]",
",",
"v",
")",
"return",
"data",
"[",
"self",
".",
"struct",
".",
"size",
":",
"]"
] | Unpack the struct from specified bytes. If the struct is sub-classed, definitions from the sub type
is not unpacked.
:param data: bytes of the struct, including fields of sub type and "extra" data.
:param namedstruct: a NamedStruct object of this type
:returns: unused bytes from data, which forms data of the sub type and "extra" data. | [
"Unpack",
"the",
"struct",
"from",
"specified",
"bytes",
".",
"If",
"the",
"struct",
"is",
"sub",
"-",
"classed",
"definitions",
"from",
"the",
"sub",
"type",
"is",
"not",
"unpacked",
".",
":",
"param",
"data",
":",
"bytes",
"of",
"the",
"struct",
"including",
"fields",
"of",
"sub",
"type",
"and",
"extra",
"data",
".",
":",
"param",
"namedstruct",
":",
"a",
"NamedStruct",
"object",
"of",
"this",
"type",
":",
"returns",
":",
"unused",
"bytes",
"from",
"data",
"which",
"forms",
"data",
"of",
"the",
"sub",
"type",
"and",
"extra",
"data",
"."
] | 5039026e0df4ce23003d212358918dbe1a6e1d76 | https://github.com/hubo1016/namedstruct/blob/5039026e0df4ce23003d212358918dbe1a6e1d76/namedstruct/namedstruct.py#L907-L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T2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__
ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b101010 + 0o6) + chr(316 - 205) + '\x31' + chr(0b110010 + 0o3) + '\067', 45987 - 45979), nzTpIcepk0o8(chr(492 - 444) + chr(806 - 695) + chr(1616 - 1567) + chr(0b11010 + 0o26) + '\062', 0o10), nzTpIcepk0o8(chr(48) + chr(0b11101 + 0o122) + chr(0b110011) + chr(0b110001) + chr(55), 0b1000), nzTpIcepk0o8('\060' + chr(0b1011101 + 0o22) + chr(720 - 670) + chr(2250 - 2202) + chr(1758 - 1707), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + '\063' + chr(0b110010) + '\065', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b10110 + 0o34) + '\x32' + chr(268 - 213), 55029 - 55021), nzTpIcepk0o8(chr(1945 - 1897) + chr(111) + chr(51) + '\060' + '\061', 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110001) + chr(50) + chr(476 - 423), ord("\x08")), nzTpIcepk0o8(chr(0b10000 + 0o40) + '\157' + '\x33' + '\x31' + chr(0b110111), 8), nzTpIcepk0o8('\060' + chr(0b1101101 + 0o2) + chr(49) + chr(0b110010 + 0o0) + chr(50), 0b1000), nzTpIcepk0o8(chr(0b100001 + 0o17) + chr(0b1101111) + chr(50) + chr(1674 - 1619) + chr(1297 - 1244), 53117 - 53109), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110010) + '\063' + chr(833 - 785), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1010110 + 0o31) + chr(49) + chr(1244 - 1196) + chr(792 - 740), 0b1000), nzTpIcepk0o8('\x30' + '\157' + '\x33' + chr(49) + chr(0b110010), 0o10), nzTpIcepk0o8(chr(0b0 + 0o60) + chr(0b1101111) + chr(0b101111 + 0o4) + '\065' + chr(51), 43466 - 43458), nzTpIcepk0o8(chr(48) + '\157' + '\061' + '\x36' + chr(49), 28580 - 28572), nzTpIcepk0o8(chr(0b110000) + chr(0b1011010 + 0o25) + chr(50) + '\064' + chr(1699 - 1650), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110001) + chr(793 - 744) + chr(0b110011 + 0o0), 20434 - 20426), nzTpIcepk0o8(chr(2274 - 2226) + chr(0b1101111) + chr(1607 - 1556), 40372 - 40364), nzTpIcepk0o8(chr(1178 - 1130) + '\x6f' + chr(50) + '\x36' + chr(0b110111), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(2418 - 2367) + chr(0b110100) + chr(0b10001 + 0o40), 0o10), nzTpIcepk0o8(chr(0b10001 + 0o37) + chr(111) + chr(861 - 811) + chr(49), 0b1000), nzTpIcepk0o8('\060' + chr(0b111010 + 0o65) + chr(0b100001 + 0o21) + '\065' + chr(1914 - 1860), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x32' + '\061' + chr(0b1010 + 0o47), 0b1000), nzTpIcepk0o8(chr(0b11101 + 0o23) + chr(0b1101111) + '\x32' + chr(2205 - 2151) + chr(0b100110 + 0o12), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(52) + '\067', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(51) + '\x32' + chr(1596 - 1545), 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110010) + chr(0b110010) + '\x37', 8), nzTpIcepk0o8(chr(0b1011 + 0o45) + chr(0b1101111) + chr(0b110010) + '\067' + '\x30', 0b1000), nzTpIcepk0o8(chr(0b1101 + 0o43) + '\157' + chr(1658 - 1609) + chr(0b110000), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(0b110001) + chr(311 - 260) + chr(49), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x33' + chr(0b110001) + '\067', 8), nzTpIcepk0o8(chr(1198 - 1150) + '\x6f' + '\061' + '\x34' + chr(51), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b1010 + 0o51) + chr(2029 - 1976) + '\x30', ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(0b1011 + 0o53) + chr(53), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1100010 + 0o15) + '\x33' + '\x33', 0o10), nzTpIcepk0o8(chr(1163 - 1115) + chr(2567 - 2456) + '\063' + chr(51) + chr(0b110111), 0b1000), nzTpIcepk0o8('\x30' + chr(4024 - 3913) + '\065' + chr(0b1001 + 0o54), 0o10), nzTpIcepk0o8(chr(0b1111 + 0o41) + chr(0b1101111) + chr(49) + chr(0b100011 + 0o15) + '\x35', 0b1000), nzTpIcepk0o8('\060' + chr(0b11110 + 0o121) + chr(49) + chr(525 - 473) + chr(2197 - 2144), 40980 - 40972)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + '\157' + '\x35' + chr(1851 - 1803), ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'A'), chr(0b1100100) + '\x65' + chr(99) + '\157' + '\144' + '\145')(chr(5714 - 5597) + chr(0b1110100) + '\x66' + '\x2d' + '\070') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def KIibIvuEOrHo(hXMPsSrOQzbh, FfKOThdpoDTb, TtOW53BH7FVE):
try:
POx95m7SPOVy = hXMPsSrOQzbh.struct.unpack(FfKOThdpoDTb[nzTpIcepk0o8(chr(2199 - 2151) + chr(10856 - 10745) + chr(48), 0o10):hXMPsSrOQzbh.struct.e1HrJaQHACnl])
except roI3spqORKae(Mf7j_LCOrq1d, roI3spqORKae(ES5oEprVxulp(b'\x1e+\xfe\xf4\xbc\xe7\x91\x03\xb9\x17\xf6\xfc'), chr(6865 - 6765) + chr(6820 - 6719) + '\143' + '\x6f' + chr(0b110000 + 0o64) + chr(0b101110 + 0o67))(chr(117) + '\x74' + '\146' + chr(45) + chr(0b111000))) as UmlM4OyLHmCY:
raise DIzhI0v1e7QU(UmlM4OyLHmCY)
KQbHFTcl_LKy = nzTpIcepk0o8(chr(48) + chr(111) + chr(0b100100 + 0o14), 8)
h3Vc_4wxEbgd = TtOW53BH7FVE.iZE3YChKSTaK
for fSdw5wwLo9MO in roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b':6\x95\xf5\x81\xf9\xb4!\xb5\x1f\xf5\xff'), '\144' + chr(0b101011 + 0o72) + chr(99) + chr(5428 - 5317) + chr(0b1001100 + 0o30) + chr(101))(chr(0b1110101) + chr(0b1000011 + 0o61) + chr(0b1100110) + '\x2d' + chr(1318 - 1262))):
if ftfygxgFas5X(fSdw5wwLo9MO) > nzTpIcepk0o8('\x30' + chr(0b1001010 + 0o45) + '\061', 42092 - 42084):
if suIjIS24Zkqw(POx95m7SPOVy[KQbHFTcl_LKy], QNQS9e6tJqMV):
r7AA1pbLjb44 = [LCrwg7lcbmU9.rstrip(ES5oEprVxulp(b'o')) for LCrwg7lcbmU9 in POx95m7SPOVy[KQbHFTcl_LKy:KQbHFTcl_LKy + fSdw5wwLo9MO[nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(1636 - 1587), 8)]]]
else:
r7AA1pbLjb44 = H4NoA26ON7iG(POx95m7SPOVy[KQbHFTcl_LKy:KQbHFTcl_LKy + fSdw5wwLo9MO[nzTpIcepk0o8(chr(0b100010 + 0o16) + '\x6f' + '\061', 8)]])
KQbHFTcl_LKy += fSdw5wwLo9MO[nzTpIcepk0o8('\x30' + chr(0b110010 + 0o75) + '\x31', 8)]
else:
r7AA1pbLjb44 = POx95m7SPOVy[KQbHFTcl_LKy]
if suIjIS24Zkqw(r7AA1pbLjb44, QNQS9e6tJqMV):
r7AA1pbLjb44 = r7AA1pbLjb44.rstrip(ES5oEprVxulp(b'o'))
KQbHFTcl_LKy += nzTpIcepk0o8(chr(0b1000 + 0o50) + chr(0b1101111) + '\061', 8)
Zj9SbPW3PS2n = h3Vc_4wxEbgd
for JprLHFcL8aB0 in fSdw5wwLo9MO[nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(733 - 685), 8)][nzTpIcepk0o8('\060' + chr(7522 - 7411) + chr(0b110000), 8):-nzTpIcepk0o8(chr(0b10000 + 0o40) + chr(0b1101111) + '\x31', 8)]:
if not dRKdVnHPFq7C(Zj9SbPW3PS2n, JprLHFcL8aB0):
CQyjpXKjdvSj = kZgzhKTpLgcj(TtOW53BH7FVE.iZE3YChKSTaK)
lCf1uzpaIUMv(Zj9SbPW3PS2n, JprLHFcL8aB0, CQyjpXKjdvSj)
Zj9SbPW3PS2n = CQyjpXKjdvSj
else:
Zj9SbPW3PS2n = roI3spqORKae(Zj9SbPW3PS2n, JprLHFcL8aB0)
lCf1uzpaIUMv(Zj9SbPW3PS2n, fSdw5wwLo9MO[nzTpIcepk0o8(chr(0b101 + 0o53) + '\157' + chr(48), 8)][-nzTpIcepk0o8(chr(48) + '\157' + chr(1084 - 1035), 8)], r7AA1pbLjb44)
return FfKOThdpoDTb[roI3spqORKae(hXMPsSrOQzbh.struct, roI3spqORKae(ES5oEprVxulp(b'\ns\x87\xf1\x9f\xf6\x90\x1d\x8e\x11\xd3\xf4'), chr(0b1001000 + 0o34) + chr(101) + '\143' + chr(0b1101111) + '\144' + chr(0b11001 + 0o114))(chr(0b1001010 + 0o53) + chr(0b1001111 + 0o45) + chr(102) + chr(0b101101) + chr(56))):] |
hubo1016/namedstruct | namedstruct/namedstruct.py | FormatParser.pack | def pack(self, namedstruct):
'''
Pack the struct and return the packed bytes.
:param namedstruct: a NamedStruct of this type.
:returns: packed bytes, only contains fields of definitions in this type, not the sub type and "extra" data.
'''
elements = []
t = namedstruct._target
for p in self.properties:
v = t
for sp in p[0]:
v = getattr(v, sp)
if len(p) > 1:
elements.extend(v[0:p[1]])
else:
elements.append(v)
return self.struct.pack(*elements) | python | def pack(self, namedstruct):
'''
Pack the struct and return the packed bytes.
:param namedstruct: a NamedStruct of this type.
:returns: packed bytes, only contains fields of definitions in this type, not the sub type and "extra" data.
'''
elements = []
t = namedstruct._target
for p in self.properties:
v = t
for sp in p[0]:
v = getattr(v, sp)
if len(p) > 1:
elements.extend(v[0:p[1]])
else:
elements.append(v)
return self.struct.pack(*elements) | [
"def",
"pack",
"(",
"self",
",",
"namedstruct",
")",
":",
"elements",
"=",
"[",
"]",
"t",
"=",
"namedstruct",
".",
"_target",
"for",
"p",
"in",
"self",
".",
"properties",
":",
"v",
"=",
"t",
"for",
"sp",
"in",
"p",
"[",
"0",
"]",
":",
"v",
"=",
"getattr",
"(",
"v",
",",
"sp",
")",
"if",
"len",
"(",
"p",
")",
">",
"1",
":",
"elements",
".",
"extend",
"(",
"v",
"[",
"0",
":",
"p",
"[",
"1",
"]",
"]",
")",
"else",
":",
"elements",
".",
"append",
"(",
"v",
")",
"return",
"self",
".",
"struct",
".",
"pack",
"(",
"*",
"elements",
")"
] | Pack the struct and return the packed bytes.
:param namedstruct: a NamedStruct of this type.
:returns: packed bytes, only contains fields of definitions in this type, not the sub type and "extra" data. | [
"Pack",
"the",
"struct",
"and",
"return",
"the",
"packed",
"bytes",
".",
":",
"param",
"namedstruct",
":",
"a",
"NamedStruct",
"of",
"this",
"type",
".",
":",
"returns",
":",
"packed",
"bytes",
"only",
"contains",
"fields",
"of",
"definitions",
"in",
"this",
"type",
"not",
"the",
"sub",
"type",
"and",
"extra",
"data",
"."
] | 5039026e0df4ce23003d212358918dbe1a6e1d76 | https://github.com/hubo1016/namedstruct/blob/5039026e0df4ce23003d212358918dbe1a6e1d76/namedstruct/namedstruct.py#L946-L964 | train | Pack the struct and return the packed bytes. | GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8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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(0b111 + 0o51) + chr(10409 - 10298) + chr(0b110001) + chr(54), 40188 - 40180), nzTpIcepk0o8(chr(0b101 + 0o53) + chr(111) + chr(1086 - 1036) + chr(53) + chr(900 - 848), 0b1000), nzTpIcepk0o8(chr(313 - 265) + '\x6f' + chr(0b11110 + 0o24) + chr(0b110010) + chr(0b11 + 0o57), ord("\x08")), nzTpIcepk0o8('\x30' + chr(11750 - 11639) + chr(0b10000 + 0o41) + chr(1738 - 1686) + chr(1385 - 1335), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + '\061' + '\x34' + chr(0b110111), 24208 - 24200), nzTpIcepk0o8('\x30' + chr(3137 - 3026) + chr(0b100010 + 0o20) + '\063' + chr(0b110111), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(2828 - 2717) + chr(0b100000 + 0o21) + '\061' + chr(51), 0o10), nzTpIcepk0o8(chr(1245 - 1197) + chr(111) + chr(0b1010 + 0o47) + chr(51) + '\061', ord("\x08")), nzTpIcepk0o8(chr(0b1000 + 0o50) + '\157' + chr(50) + chr(0b110011) + chr(0b110100), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101110 + 0o1) + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(1325 - 1277) + '\x6f' + '\061' + chr(50) + chr(899 - 844), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b101 + 0o152) + chr(2075 - 2022) + chr(0b110000), 0o10), nzTpIcepk0o8(chr(1238 - 1190) + chr(4241 - 4130) + chr(0b1110 + 0o46) + chr(979 - 925), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(9241 - 9130) + '\x35' + '\061', 0b1000), nzTpIcepk0o8(chr(0b1111 + 0o41) + '\157' + '\x31' + chr(54), 8), nzTpIcepk0o8('\060' + chr(111) + chr(909 - 858) + chr(0b110100) + chr(1339 - 1286), 64293 - 64285), nzTpIcepk0o8(chr(48) + chr(5887 - 5776) + '\x31' + chr(597 - 548) + chr(2260 - 2205), 3638 - 3630), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b1000 + 0o56), 51957 - 51949), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110000), 8546 - 8538), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x34' + '\064', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\066', 8), nzTpIcepk0o8('\060' + chr(111) + chr(0b100111 + 0o13), 52974 - 52966), nzTpIcepk0o8('\x30' + chr(6608 - 6497) + '\x37', ord("\x08")), nzTpIcepk0o8('\060' + chr(4265 - 4154) + '\x31' + chr(685 - 636) + chr(0b110 + 0o60), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + '\x31' + '\x34' + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(0b110 + 0o52) + '\157' + chr(2354 - 2304) + chr(0b110111) + '\061', 0o10), nzTpIcepk0o8(chr(2006 - 1958) + chr(0b1101111) + chr(0b110011) + '\065' + chr(54), 60763 - 60755), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110011) + '\063' + chr(0b10001 + 0o37), 0o10), nzTpIcepk0o8(chr(2268 - 2220) + '\x6f' + chr(0b110001 + 0o3) + chr(0b11 + 0o57), ord("\x08")), nzTpIcepk0o8(chr(741 - 693) + chr(111) + '\x32' + chr(0b110011) + chr(1963 - 1911), 8), nzTpIcepk0o8(chr(48) + '\x6f' + chr(50) + chr(51) + chr(55), 8), nzTpIcepk0o8('\x30' + '\x6f' + chr(2002 - 1952) + chr(50), 0b1000), nzTpIcepk0o8('\x30' + chr(0b111110 + 0o61) + '\063' + chr(49), 15930 - 15922), nzTpIcepk0o8('\060' + '\x6f' + '\x32' + '\061' + chr(2708 - 2654), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\061' + chr(0b10000 + 0o44) + chr(2704 - 2652), 8), nzTpIcepk0o8(chr(48) + '\157' + chr(0b11010 + 0o30) + chr(85 - 32) + chr(51), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(49) + chr(0b110011) + chr(0b110111), 45455 - 45447), nzTpIcepk0o8('\060' + chr(0b100101 + 0o112) + '\x31' + chr(1594 - 1540) + chr(0b10110 + 0o34), 0o10), nzTpIcepk0o8('\060' + chr(0b1101010 + 0o5) + chr(0b110001) + chr(0b110100 + 0o3), 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x32' + chr(0b110111), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + chr(0b111110 + 0o61) + chr(283 - 230) + chr(48), 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b' '), chr(0b1100100) + chr(101) + chr(5839 - 5740) + chr(0b1101111) + '\x64' + chr(7185 - 7084))('\x75' + chr(116) + '\146' + chr(45) + '\x38') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def iUH5P9gmsbz9(hXMPsSrOQzbh, TtOW53BH7FVE):
yG2pE8LiXNmn = []
h3Vc_4wxEbgd = TtOW53BH7FVE.iZE3YChKSTaK
for fSdw5wwLo9MO in roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'[\xd8\xc8\x143\xf1>-\xe6L\x1fO'), chr(0b1100100) + '\x65' + '\143' + '\x6f' + chr(100) + '\145')('\165' + chr(10589 - 10473) + chr(0b1100110) + chr(1699 - 1654) + '\070')):
r7AA1pbLjb44 = h3Vc_4wxEbgd
for JprLHFcL8aB0 in fSdw5wwLo9MO[nzTpIcepk0o8(chr(0b110000) + chr(10991 - 10880) + '\060', 8)]:
r7AA1pbLjb44 = roI3spqORKae(r7AA1pbLjb44, JprLHFcL8aB0)
if ftfygxgFas5X(fSdw5wwLo9MO) > nzTpIcepk0o8(chr(48) + '\x6f' + '\x31', 8):
roI3spqORKae(yG2pE8LiXNmn, roI3spqORKae(ES5oEprVxulp(b'Z\xf3\xa1/\x08\xfb\x07\x0e\xc3C5Y'), chr(0b1100100) + '\x65' + chr(0b100 + 0o137) + chr(6052 - 5941) + chr(100) + chr(0b1100101))(chr(117) + chr(2271 - 2155) + '\146' + chr(0b101101) + chr(56)))(r7AA1pbLjb44[nzTpIcepk0o8('\x30' + chr(111) + chr(0b11100 + 0o24), 8):fSdw5wwLo9MO[nzTpIcepk0o8(chr(1927 - 1879) + chr(111) + chr(0b110001), 8)]])
else:
roI3spqORKae(yG2pE8LiXNmn, roI3spqORKae(ES5oEprVxulp(b'F\xf8\xc1V\x1f\xf8\x0c6\xf6n\x02\x1d'), chr(851 - 751) + chr(0b1100101) + chr(0b0 + 0o143) + '\157' + chr(100) + chr(696 - 595))(chr(0b1110101) + chr(0b10110 + 0o136) + chr(2539 - 2437) + '\x2d' + chr(880 - 824)))(r7AA1pbLjb44)
return roI3spqORKae(hXMPsSrOQzbh.struct, roI3spqORKae(ES5oEprVxulp(b'~\xcd\xf1\t'), chr(0b1100100) + chr(0b1100101) + chr(7172 - 7073) + '\x6f' + chr(100) + chr(101))('\x75' + chr(0b1110100) + chr(102) + chr(1456 - 1411) + '\x38'))(*yG2pE8LiXNmn) |
hubo1016/namedstruct | namedstruct/namedstruct.py | PrimitiveParser.parse | def parse(self, buffer, inlineparent = None):
'''
Compatible to Parser.parse()
'''
if len(buffer) < self.struct.size:
return None
try:
return (self.struct.unpack(buffer[:self.struct.size])[0], self.struct.size)
except struct.error as exc:
raise BadFormatError(exc) | python | def parse(self, buffer, inlineparent = None):
'''
Compatible to Parser.parse()
'''
if len(buffer) < self.struct.size:
return None
try:
return (self.struct.unpack(buffer[:self.struct.size])[0], self.struct.size)
except struct.error as exc:
raise BadFormatError(exc) | [
"def",
"parse",
"(",
"self",
",",
"buffer",
",",
"inlineparent",
"=",
"None",
")",
":",
"if",
"len",
"(",
"buffer",
")",
"<",
"self",
".",
"struct",
".",
"size",
":",
"return",
"None",
"try",
":",
"return",
"(",
"self",
".",
"struct",
".",
"unpack",
"(",
"buffer",
"[",
":",
"self",
".",
"struct",
".",
"size",
"]",
")",
"[",
"0",
"]",
",",
"self",
".",
"struct",
".",
"size",
")",
"except",
"struct",
".",
"error",
"as",
"exc",
":",
"raise",
"BadFormatError",
"(",
"exc",
")"
] | Compatible to Parser.parse() | [
"Compatible",
"to",
"Parser",
".",
"parse",
"()"
] | 5039026e0df4ce23003d212358918dbe1a6e1d76 | https://github.com/hubo1016/namedstruct/blob/5039026e0df4ce23003d212358918dbe1a6e1d76/namedstruct/namedstruct.py#L1246-L1255 | train | Parses the ISO - 8601 tag from the given buffer. | GiP5xwVCF98Z,B3LV8Eo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=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(0b101 + 0o54) + '\x31' + '\064', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1100 + 0o143) + '\062' + chr(2127 - 2076) + chr(0b10111 + 0o34), 0b1000), nzTpIcepk0o8('\x30' + '\157' + '\x32' + chr(0b110101), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(49) + chr(0b110101) + chr(53), 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(49) + '\x31' + chr(1295 - 1244), 0b1000), nzTpIcepk0o8(chr(625 - 577) + '\157' + '\062' + '\065' + chr(0b110000), 59831 - 59823), nzTpIcepk0o8(chr(1308 - 1260) + chr(6221 - 6110) + '\x31' + chr(0b110100) + chr(0b110110), 0b1000), nzTpIcepk0o8(chr(2260 - 2212) + '\157' + '\x33' + chr(1213 - 1160) + chr(627 - 572), ord("\x08")), nzTpIcepk0o8(chr(0b10110 + 0o32) + chr(0b1010000 + 0o37) + chr(0b10100 + 0o35) + chr(1093 - 1045) + chr(482 - 432), 0o10), nzTpIcepk0o8(chr(656 - 608) + chr(0b100010 + 0o115) + chr(0b110010) + chr(0b110001) + chr(50), 0o10), nzTpIcepk0o8('\x30' + chr(10680 - 10569) + chr(258 - 207) + '\067', 0o10), nzTpIcepk0o8('\x30' + chr(0b1001100 + 0o43) + chr(0b110101) + '\060', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x31' + chr(51) + '\065', 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b100111 + 0o14) + '\x34' + '\067', 0b1000), nzTpIcepk0o8(chr(856 - 808) + '\157' + '\x31' + chr(49) + chr(0b110000), 0o10), nzTpIcepk0o8(chr(0b100000 + 0o20) + chr(0b1101111) + chr(49) + '\064' + chr(0b110000), 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(0b110011) + chr(55) + chr(1415 - 1367), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(0b110010) + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(48) + chr(10679 - 10568) + chr(0b10000 + 0o42) + chr(0b101111 + 0o5) + chr(120 - 69), ord("\x08")), nzTpIcepk0o8(chr(177 - 129) + chr(11091 - 10980) + '\062' + chr(48) + chr(0b10011 + 0o42), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(51) + chr(1832 - 1780) + chr(0b101001 + 0o15), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + '\063' + chr(54) + '\065', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(5878 - 5767) + chr(0b11101 + 0o25) + chr(0b1111 + 0o45), 0b1000), nzTpIcepk0o8('\060' + '\157' + chr(591 - 540) + chr(0b10110 + 0o36) + '\061', 0o10), nzTpIcepk0o8(chr(589 - 541) + chr(0b1001110 + 0o41) + chr(51) + chr(0b10110 + 0o37) + chr(0b110110), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101001 + 0o6) + chr(0b110011) + '\x35' + chr(52), 39076 - 39068), nzTpIcepk0o8('\060' + '\157' + chr(0b101101 + 0o6) + chr(49) + chr(0b11 + 0o55), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(3264 - 3153) + chr(53) + chr(0b101110 + 0o4), 0b1000), nzTpIcepk0o8(chr(944 - 896) + '\157' + chr(639 - 589) + chr(0b100101 + 0o17) + chr(49), 0o10), nzTpIcepk0o8(chr(0b110 + 0o52) + chr(4819 - 4708) + '\x31' + chr(50) + chr(0b110010), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x32' + chr(51) + '\x31', 24670 - 24662), nzTpIcepk0o8(chr(0b110000) + chr(9233 - 9122) + chr(0b110001) + '\063' + chr(0b110010), ord("\x08")), nzTpIcepk0o8(chr(0b100 + 0o54) + chr(8220 - 8109) + '\x33' + chr(49) + '\x33', 0b1000), nzTpIcepk0o8(chr(48) + chr(2681 - 2570) + chr(2181 - 2130) + chr(0b110110) + chr(0b10 + 0o57), 0o10), nzTpIcepk0o8(chr(0b11000 + 0o30) + '\157' + '\065' + chr(736 - 686), 8), nzTpIcepk0o8(chr(0b11101 + 0o23) + '\x6f' + '\x32' + chr(50) + chr(0b11 + 0o61), 0o10), nzTpIcepk0o8(chr(1768 - 1720) + '\157' + chr(1454 - 1405) + chr(48), 0o10), nzTpIcepk0o8(chr(0b101001 + 0o7) + chr(6282 - 6171) + '\x31' + chr(54) + chr(0b11100 + 0o27), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(196 - 147) + chr(1076 - 1025) + chr(49), 0o10), nzTpIcepk0o8(chr(0b11001 + 0o27) + '\x6f' + chr(0b110010) + chr(0b110111) + chr(55), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + chr(0b1101111) + '\x35' + chr(0b11101 + 0o23), 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'b'), '\x64' + chr(101) + '\x63' + '\x6f' + chr(3234 - 3134) + '\145')(chr(0b1010110 + 0o37) + chr(0b1110100) + '\146' + '\055' + chr(56)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def zgDfHOdKcvCW(hXMPsSrOQzbh, VDnoK82he6rn, ySf_6JQ7w7By=None):
if ftfygxgFas5X(VDnoK82he6rn) < roI3spqORKae(hXMPsSrOQzbh.struct, roI3spqORKae(ES5oEprVxulp(b')\xaa]\x1f\x01\xc97\xa7\x03\xc9qD'), chr(100) + '\145' + chr(99) + chr(8309 - 8198) + chr(100) + chr(101))('\165' + chr(116) + chr(102) + '\x2d' + chr(488 - 432))):
return None
try:
return (roI3spqORKae(hXMPsSrOQzbh.struct, roI3spqORKae(ES5oEprVxulp(b'9\xf5e\x0c(\xc3'), '\x64' + '\145' + chr(2685 - 2586) + '\x6f' + '\144' + '\x65')(chr(117) + '\x74' + '\x66' + chr(0b101101) + '\070'))(VDnoK82he6rn[:roI3spqORKae(hXMPsSrOQzbh.struct, roI3spqORKae(ES5oEprVxulp(b')\xaa]\x1f\x01\xc97\xa7\x03\xc9qD'), chr(100) + chr(7608 - 7507) + chr(0b110011 + 0o60) + chr(0b1011011 + 0o24) + '\144' + chr(0b1100101))('\x75' + chr(12805 - 12689) + chr(1134 - 1032) + '\055' + '\x38'))])[nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(2289 - 2241), 0o10)], roI3spqORKae(hXMPsSrOQzbh.struct, roI3spqORKae(ES5oEprVxulp(b')\xaa]\x1f\x01\xc97\xa7\x03\xc9qD'), chr(0b11000 + 0o114) + chr(101) + chr(99) + '\x6f' + '\144' + '\x65')(chr(0b110010 + 0o103) + chr(0b1000110 + 0o56) + chr(102) + '\055' + chr(0b111000))))
except roI3spqORKae(Mf7j_LCOrq1d, roI3spqORKae(ES5oEprVxulp(b'=\xf2$\x1a"\xd86\xb94\xcfTL'), '\144' + chr(0b1100101) + '\143' + chr(0b1101111) + chr(0b101 + 0o137) + chr(2868 - 2767))(chr(5739 - 5622) + chr(1236 - 1120) + '\146' + chr(0b101101) + chr(0b11001 + 0o37))) as UmlM4OyLHmCY:
raise DIzhI0v1e7QU(UmlM4OyLHmCY) |
hubo1016/namedstruct | namedstruct/namedstruct.py | ArrayParser.parse | def parse(self, buffer, inlineparent = None):
'''
Compatible to Parser.parse()
'''
size = 0
v = []
for i in range(0, self.size): # @UnusedVariable
r = self.innerparser.parse(buffer[size:], None)
if r is None:
return None
v.append(r[0])
size += r[1]
return (v, size) | python | def parse(self, buffer, inlineparent = None):
'''
Compatible to Parser.parse()
'''
size = 0
v = []
for i in range(0, self.size): # @UnusedVariable
r = self.innerparser.parse(buffer[size:], None)
if r is None:
return None
v.append(r[0])
size += r[1]
return (v, size) | [
"def",
"parse",
"(",
"self",
",",
"buffer",
",",
"inlineparent",
"=",
"None",
")",
":",
"size",
"=",
"0",
"v",
"=",
"[",
"]",
"for",
"i",
"in",
"range",
"(",
"0",
",",
"self",
".",
"size",
")",
":",
"# @UnusedVariable",
"r",
"=",
"self",
".",
"innerparser",
".",
"parse",
"(",
"buffer",
"[",
"size",
":",
"]",
",",
"None",
")",
"if",
"r",
"is",
"None",
":",
"return",
"None",
"v",
".",
"append",
"(",
"r",
"[",
"0",
"]",
")",
"size",
"+=",
"r",
"[",
"1",
"]",
"return",
"(",
"v",
",",
"size",
")"
] | Compatible to Parser.parse() | [
"Compatible",
"to",
"Parser",
".",
"parse",
"()"
] | 5039026e0df4ce23003d212358918dbe1a6e1d76 | https://github.com/hubo1016/namedstruct/blob/5039026e0df4ce23003d212358918dbe1a6e1d76/namedstruct/namedstruct.py#L1303-L1315 | train | Compatibility to Parser. parse | 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(chr(0b110000) + chr(0b1101111) + chr(0b101110 + 0o3) + chr(0b100011 + 0o21) + '\x33', 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110011) + '\x30' + chr(0b110100), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + '\x31' + chr(1759 - 1711) + chr(0b110111), ord("\x08")), nzTpIcepk0o8(chr(1043 - 995) + '\157' + chr(0b1000 + 0o51) + '\061' + '\x30', 38059 - 38051), nzTpIcepk0o8(chr(0b100 + 0o54) + chr(0b111001 + 0o66) + chr(580 - 529) + chr(0b110011) + chr(2214 - 2163), 0o10), nzTpIcepk0o8(chr(0b1010 + 0o46) + chr(0b101100 + 0o103) + chr(0b10101 + 0o37) + chr(1817 - 1767), 0o10), nzTpIcepk0o8(chr(1190 - 1142) + chr(8759 - 8648) + chr(0b110010) + chr(0b100 + 0o55) + chr(50), ord("\x08")), nzTpIcepk0o8(chr(0b101000 + 0o10) + chr(0b1101111) + chr(0b10101 + 0o36) + chr(53) + chr(0b1010 + 0o47), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1001101 + 0o42) + '\x31' + chr(0b110010) + '\x35', 42016 - 42008), nzTpIcepk0o8('\x30' + chr(0b0 + 0o157) + chr(0b101101 + 0o4) + chr(0b11 + 0o55) + chr(50), 0o10), nzTpIcepk0o8(chr(0b101110 + 0o2) + chr(111) + chr(2581 - 2526) + chr(0b100000 + 0o22), 0o10), nzTpIcepk0o8('\060' + chr(0b1100011 + 0o14) + '\061' + chr(1932 - 1884) + chr(0b1 + 0o57), ord("\x08")), nzTpIcepk0o8(chr(0b101 + 0o53) + chr(0b101101 + 0o102) + chr(1440 - 1391) + '\x33' + chr(0b101101 + 0o5), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + '\062' + chr(54) + '\x30', 0b1000), nzTpIcepk0o8(chr(0b101000 + 0o10) + '\157' + chr(0b101011 + 0o7) + chr(0b110110) + '\x36', 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(333 - 284) + chr(51) + '\x35', 41737 - 41729), nzTpIcepk0o8(chr(0b1011 + 0o45) + chr(0b1101111) + '\x33' + '\067' + chr(54), 0o10), nzTpIcepk0o8(chr(1365 - 1317) + chr(0b1101111) + chr(0b110010) + chr(0b110 + 0o56) + chr(2138 - 2087), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110011) + '\x32' + chr(55), 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(49) + '\x34' + '\x37', 27604 - 27596), nzTpIcepk0o8(chr(0b11110 + 0o22) + chr(0b1101111) + '\062' + '\063', 0b1000), nzTpIcepk0o8('\x30' + chr(0b10101 + 0o132) + chr(1653 - 1603) + '\064' + chr(0b110010), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + '\x33' + '\067' + chr(0b110110), 8), nzTpIcepk0o8(chr(48) + '\157' + '\063' + '\x35' + chr(0b110101), 0o10), nzTpIcepk0o8(chr(747 - 699) + '\157' + '\x32' + '\067' + chr(2555 - 2500), 0b1000), nzTpIcepk0o8('\060' + chr(1401 - 1290) + chr(0b110001) + chr(1086 - 1032) + '\061', 24916 - 24908), nzTpIcepk0o8(chr(0b10 + 0o56) + '\x6f' + '\x30', 40849 - 40841), nzTpIcepk0o8(chr(2285 - 2237) + chr(111) + chr(0b10011 + 0o36) + chr(0b110001) + chr(0b110101), 47846 - 47838), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(50) + chr(2505 - 2454) + '\064', 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(698 - 647) + '\x36' + chr(2305 - 2252), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + '\x31' + '\060' + chr(49), 32395 - 32387), nzTpIcepk0o8('\060' + '\157' + chr(50) + chr(0b101010 + 0o12) + chr(0b110000), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + '\x32' + chr(74 - 20) + '\x33', 0o10), nzTpIcepk0o8(chr(0b110 + 0o52) + chr(2223 - 2112) + chr(582 - 532) + chr(0b110001) + chr(1152 - 1102), 8), nzTpIcepk0o8(chr(0b10101 + 0o33) + chr(0b1101111) + chr(546 - 496) + '\060' + chr(55), 38477 - 38469), nzTpIcepk0o8(chr(0b101110 + 0o2) + '\x6f' + '\061' + chr(51) + '\060', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1011000 + 0o27) + chr(51) + chr(0b110010 + 0o3) + '\061', 8), nzTpIcepk0o8(chr(384 - 336) + chr(111) + '\x31' + '\x30', ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(0b1111 + 0o43) + chr(0b0 + 0o62) + chr(0b11111 + 0o22), ord("\x08")), nzTpIcepk0o8(chr(775 - 727) + chr(111) + chr(51) + '\x31' + chr(51), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b10111 + 0o31) + chr(0b1101111) + '\x35' + '\060', ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'M'), chr(0b1100100) + chr(362 - 261) + '\143' + '\157' + '\144' + chr(7767 - 7666))('\x75' + chr(116) + '\146' + '\055' + chr(1019 - 963)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def zgDfHOdKcvCW(hXMPsSrOQzbh, VDnoK82he6rn, ySf_6JQ7w7By=None):
e1HrJaQHACnl = nzTpIcepk0o8(chr(0b110000) + '\157' + '\x30', 8)
r7AA1pbLjb44 = []
for ZlbFMSG8gCoF in bbT2xIe5pzk7(nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x30', 8), roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x06\xf5\x0f:\x91C\xdb\xa1\x14\x01T,'), chr(0b101 + 0o137) + '\x65' + chr(0b111000 + 0o53) + '\157' + chr(0b1111 + 0o125) + chr(0b101000 + 0o75))(chr(0b1110101) + chr(6574 - 6458) + chr(0b1100110) + '\055' + chr(0b10110 + 0o42)))):
LCrwg7lcbmU9 = hXMPsSrOQzbh.innerparser.zgDfHOdKcvCW(VDnoK82he6rn[e1HrJaQHACnl:], None)
if LCrwg7lcbmU9 is None:
return None
roI3spqORKae(r7AA1pbLjb44, roI3spqORKae(ES5oEprVxulp(b'+\x90\x14|\xa3E\xcd\x86?-ou'), '\x64' + chr(8667 - 8566) + '\143' + chr(0b1101111) + chr(0b1100100) + '\145')(chr(0b1110101) + chr(8748 - 8632) + '\146' + '\x2d' + chr(0b1011 + 0o55)))(LCrwg7lcbmU9[nzTpIcepk0o8(chr(1897 - 1849) + chr(0b1010100 + 0o33) + chr(1041 - 993), 8)])
e1HrJaQHACnl += LCrwg7lcbmU9[nzTpIcepk0o8(chr(0b110000) + chr(0b1101100 + 0o3) + chr(49), 49560 - 49552)]
return (r7AA1pbLjb44, e1HrJaQHACnl) |
hubo1016/namedstruct | namedstruct/namedstruct.py | ArrayParser.new | def new(self, inlineparent = None):
'''
Compatible to Parser.new()
'''
v = list(range(0, self.size))
for i in range(0, self.size):
v[i] = self.innerparser.new()
return v | python | def new(self, inlineparent = None):
'''
Compatible to Parser.new()
'''
v = list(range(0, self.size))
for i in range(0, self.size):
v[i] = self.innerparser.new()
return v | [
"def",
"new",
"(",
"self",
",",
"inlineparent",
"=",
"None",
")",
":",
"v",
"=",
"list",
"(",
"range",
"(",
"0",
",",
"self",
".",
"size",
")",
")",
"for",
"i",
"in",
"range",
"(",
"0",
",",
"self",
".",
"size",
")",
":",
"v",
"[",
"i",
"]",
"=",
"self",
".",
"innerparser",
".",
"new",
"(",
")",
"return",
"v"
] | Compatible to Parser.new() | [
"Compatible",
"to",
"Parser",
".",
"new",
"()"
] | 5039026e0df4ce23003d212358918dbe1a6e1d76 | https://github.com/hubo1016/namedstruct/blob/5039026e0df4ce23003d212358918dbe1a6e1d76/namedstruct/namedstruct.py#L1316-L1323 | train | Compatibility to Parser. new | 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(chr(48) + '\157' + chr(0b110010) + chr(0b110000) + chr(1939 - 1889), 0o10), nzTpIcepk0o8(chr(0b101000 + 0o10) + chr(11131 - 11020) + chr(0b10001 + 0o41) + chr(0b110101) + chr(53), 52595 - 52587), nzTpIcepk0o8('\060' + '\x6f' + chr(51) + '\x33' + chr(0b111 + 0o57), 18035 - 18027), nzTpIcepk0o8(chr(2227 - 2179) + '\x6f' + chr(1260 - 1209) + chr(0b101000 + 0o15) + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(48) + chr(4533 - 4422) + chr(54) + chr(0b1100 + 0o52), ord("\x08")), nzTpIcepk0o8(chr(0b1111 + 0o41) + chr(0b1101111) + chr(0b110001) + '\065' + '\x30', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(643 - 593) + '\x32' + '\066', 405 - 397), nzTpIcepk0o8(chr(0b110000) + chr(0b100110 + 0o111) + '\x37', 0b1000), nzTpIcepk0o8(chr(0b100110 + 0o12) + chr(9281 - 9170) + '\063' + chr(55) + chr(55), ord("\x08")), nzTpIcepk0o8(chr(0b1100 + 0o44) + chr(0b1011111 + 0o20) + '\x32' + chr(0b100010 + 0o23) + chr(1556 - 1501), 0b1000), nzTpIcepk0o8('\060' + chr(5938 - 5827) + chr(0b110010) + chr(1309 - 1258) + chr(52), ord("\x08")), nzTpIcepk0o8(chr(0b101110 + 0o2) + '\157' + '\067' + chr(0b110011), 42758 - 42750), nzTpIcepk0o8('\060' + '\157' + '\064' + chr(0b1000 + 0o55), 0o10), nzTpIcepk0o8(chr(549 - 501) + '\x6f' + chr(0b100111 + 0o16), 61980 - 61972), nzTpIcepk0o8(chr(0b100010 + 0o16) + chr(0b1101111) + chr(1727 - 1678) + chr(1491 - 1441) + chr(0b110000), 32449 - 32441), nzTpIcepk0o8('\060' + chr(11374 - 11263) + chr(50), 0o10), nzTpIcepk0o8(chr(502 - 454) + chr(111) + chr(0b100 + 0o55) + chr(0b110011) + '\x33', 0b1000), nzTpIcepk0o8(chr(1303 - 1255) + '\157' + chr(0b11100 + 0o26) + chr(0b11100 + 0o31) + chr(0b1101 + 0o45), ord("\x08")), nzTpIcepk0o8('\060' + chr(5879 - 5768) + '\062' + '\062', 0o10), nzTpIcepk0o8('\060' + '\157' + chr(62 - 12) + chr(0b11 + 0o63), 22606 - 22598), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b1011 + 0o52) + chr(48), 0b1000), nzTpIcepk0o8(chr(0b101001 + 0o7) + chr(0b1101111) + chr(0b110010) + chr(49) + chr(0b110010), 45522 - 45514), nzTpIcepk0o8(chr(0b110000) + chr(3545 - 3434) + chr(0b110001) + chr(0b1101 + 0o50) + chr(875 - 822), 0o10), nzTpIcepk0o8('\x30' + chr(111) + '\061' + chr(0b110100) + '\x36', 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(1349 - 1299) + chr(590 - 541) + chr(579 - 531), 6975 - 6967), nzTpIcepk0o8('\060' + chr(0b1010101 + 0o32) + '\x33' + chr(0b110111) + chr(0b110101), 32936 - 32928), nzTpIcepk0o8(chr(1094 - 1046) + chr(111) + '\062' + chr(773 - 722) + chr(0b110000 + 0o0), ord("\x08")), nzTpIcepk0o8(chr(1835 - 1787) + '\157' + chr(1096 - 1046) + chr(0b110100) + chr(1823 - 1773), 36288 - 36280), nzTpIcepk0o8(chr(0b10 + 0o56) + '\x6f' + '\x36' + '\x32', ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(0b10001 + 0o42) + '\x36', 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b100000 + 0o21) + chr(0b110110) + chr(2214 - 2163), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b110111 + 0o70) + chr(51) + '\x32' + chr(1240 - 1189), 19514 - 19506), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(578 - 528) + chr(1424 - 1370) + chr(52), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + '\063' + chr(0b10111 + 0o33) + chr(114 - 60), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b11010 + 0o125) + chr(0b110010), 8), nzTpIcepk0o8('\060' + '\157' + chr(553 - 504) + chr(48) + chr(0b110001), 31354 - 31346), nzTpIcepk0o8(chr(0b11100 + 0o24) + '\x6f' + chr(0b100110 + 0o13) + '\061' + chr(1274 - 1221), 0b1000), nzTpIcepk0o8(chr(306 - 258) + chr(111) + chr(0b110000 + 0o1) + '\x35' + chr(0b11001 + 0o27), 8), nzTpIcepk0o8('\x30' + chr(0b110100 + 0o73) + chr(53) + '\x33', 442 - 434), nzTpIcepk0o8(chr(48) + chr(0b1011111 + 0o20) + '\061' + '\065' + chr(229 - 174), 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(1564 - 1511) + chr(52 - 4), 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xac'), chr(0b100000 + 0o104) + chr(5410 - 5309) + chr(0b1100011) + chr(111) + chr(0b1001 + 0o133) + '\x65')(chr(117) + chr(116) + chr(0b1000011 + 0o43) + '\x2d' + chr(0b11011 + 0o35)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def bZWmgf4GjgvH(hXMPsSrOQzbh, ySf_6JQ7w7By=None):
r7AA1pbLjb44 = H4NoA26ON7iG(bbT2xIe5pzk7(nzTpIcepk0o8('\x30' + chr(10740 - 10629) + chr(0b11100 + 0o24), 0b1000), hXMPsSrOQzbh.e1HrJaQHACnl))
for ZlbFMSG8gCoF in bbT2xIe5pzk7(nzTpIcepk0o8(chr(1403 - 1355) + '\157' + '\060', 8), roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xe7\x9c\x96\x9e|\t\xc7O\xbe\xec\xf2W'), chr(0b1100100) + '\x65' + '\143' + chr(0b1101111) + chr(0b1100100) + chr(0b1010011 + 0o22))('\x75' + chr(12778 - 12662) + '\x66' + '\055' + chr(2992 - 2936)))):
r7AA1pbLjb44[ZlbFMSG8gCoF] = hXMPsSrOQzbh.innerparser.bZWmgf4GjgvH()
return r7AA1pbLjb44 |
hubo1016/namedstruct | namedstruct/namedstruct.py | ArrayParser.create | def create(self, data, inlineparent = None):
'''
Compatible to Parser.create()
'''
if self.size > 0:
r = self.parse(data)
if r is None:
raise ParseError('data is not enough to create an array of size ' + self.size)
else:
return r[0]
else:
v = []
start = 0
while start < len(data):
r = self.innerparser.parse(data[start:], None)
if r is None:
break
v.append(r[0])
start += r[1]
return v | python | def create(self, data, inlineparent = None):
'''
Compatible to Parser.create()
'''
if self.size > 0:
r = self.parse(data)
if r is None:
raise ParseError('data is not enough to create an array of size ' + self.size)
else:
return r[0]
else:
v = []
start = 0
while start < len(data):
r = self.innerparser.parse(data[start:], None)
if r is None:
break
v.append(r[0])
start += r[1]
return v | [
"def",
"create",
"(",
"self",
",",
"data",
",",
"inlineparent",
"=",
"None",
")",
":",
"if",
"self",
".",
"size",
">",
"0",
":",
"r",
"=",
"self",
".",
"parse",
"(",
"data",
")",
"if",
"r",
"is",
"None",
":",
"raise",
"ParseError",
"(",
"'data is not enough to create an array of size '",
"+",
"self",
".",
"size",
")",
"else",
":",
"return",
"r",
"[",
"0",
"]",
"else",
":",
"v",
"=",
"[",
"]",
"start",
"=",
"0",
"while",
"start",
"<",
"len",
"(",
"data",
")",
":",
"r",
"=",
"self",
".",
"innerparser",
".",
"parse",
"(",
"data",
"[",
"start",
":",
"]",
",",
"None",
")",
"if",
"r",
"is",
"None",
":",
"break",
"v",
".",
"append",
"(",
"r",
"[",
"0",
"]",
")",
"start",
"+=",
"r",
"[",
"1",
"]",
"return",
"v"
] | Compatible to Parser.create() | [
"Compatible",
"to",
"Parser",
".",
"create",
"()"
] | 5039026e0df4ce23003d212358918dbe1a6e1d76 | https://github.com/hubo1016/namedstruct/blob/5039026e0df4ce23003d212358918dbe1a6e1d76/namedstruct/namedstruct.py#L1324-L1343 | train | Compatibility to Parser. create | GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod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,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__
ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\x30' + chr(111) + chr(51) + chr(0b110110) + chr(0b1110 + 0o51), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1011100 + 0o23) + chr(52) + '\065', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\063' + chr(48) + chr(0b110111), ord("\x08")), nzTpIcepk0o8('\x30' + chr(10173 - 10062) + chr(50) + chr(0b10001 + 0o42) + chr(2824 - 2769), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + '\063' + '\067' + '\066', 0b1000), nzTpIcepk0o8(chr(0b11010 + 0o26) + '\157' + chr(50) + chr(50) + chr(0b101101 + 0o5), 0o10), nzTpIcepk0o8('\060' + chr(8454 - 8343) + '\063' + chr(0b100010 + 0o16) + chr(55), 8), nzTpIcepk0o8(chr(0b110 + 0o52) + chr(9913 - 9802) + chr(1046 - 997) + chr(0b11110 + 0o23) + chr(55), 19705 - 19697), nzTpIcepk0o8(chr(1123 - 1075) + chr(0b1101111) + chr(0b110001) + chr(2184 - 2136) + '\060', 51097 - 51089), nzTpIcepk0o8('\060' + chr(1252 - 1141) + '\063' + '\066' + '\x35', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(8990 - 8879) + chr(51) + chr(0b110111) + '\x37', 0b1000), nzTpIcepk0o8(chr(461 - 413) + '\157' + '\x33' + chr(760 - 712) + chr(0b110010), 0b1000), nzTpIcepk0o8(chr(0b100110 + 0o12) + '\x6f' + chr(51) + chr(0b110010) + chr(0b110000), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(1972 - 1922) + chr(0b110011) + '\x33', 0o10), nzTpIcepk0o8('\x30' + chr(0b111010 + 0o65) + chr(0b1011 + 0o46) + chr(1078 - 1023) + chr(1355 - 1307), 52940 - 52932), nzTpIcepk0o8(chr(0b0 + 0o60) + chr(0b1001100 + 0o43) + '\062' + '\x33' + chr(0b100011 + 0o16), 49478 - 49470), nzTpIcepk0o8(chr(1652 - 1604) + '\157' + chr(0b110010) + chr(55), 22508 - 22500), nzTpIcepk0o8(chr(0b100010 + 0o16) + '\x6f' + chr(1374 - 1323) + chr(51) + '\x35', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(50) + chr(1819 - 1769) + chr(549 - 498), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101010 + 0o5) + chr(2351 - 2300) + chr(51) + chr(0b10110 + 0o35), 0o10), nzTpIcepk0o8('\060' + chr(0b1010 + 0o145) + '\062' + chr(0b110011) + '\x35', 0b1000), nzTpIcepk0o8(chr(0b101011 + 0o5) + chr(0b110001 + 0o76) + '\061' + '\x30' + chr(0b1111 + 0o47), 39818 - 39810), nzTpIcepk0o8(chr(0b100100 + 0o14) + chr(2860 - 2749) + '\x31' + '\063' + '\063', 14336 - 14328), nzTpIcepk0o8(chr(735 - 687) + chr(0b110011 + 0o74) + chr(0b10111 + 0o36) + chr(544 - 496), ord("\x08")), nzTpIcepk0o8(chr(603 - 555) + chr(111) + chr(0b10010 + 0o37) + chr(0b110000) + chr(51), 0b1000), nzTpIcepk0o8(chr(0b101000 + 0o10) + chr(0b1001 + 0o146) + chr(49) + '\x33' + chr(51), 8), nzTpIcepk0o8(chr(0b110000) + chr(0b11000 + 0o127) + '\061', 30618 - 30610), nzTpIcepk0o8(chr(0b100011 + 0o15) + chr(12258 - 12147) + chr(0b110011) + '\064' + chr(0b100100 + 0o21), 0o10), nzTpIcepk0o8('\060' + '\157' + '\x33' + chr(0b0 + 0o63) + chr(54), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(4883 - 4772) + '\061' + chr(48), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110001) + chr(0b110110) + '\x35', ord("\x08")), nzTpIcepk0o8(chr(480 - 432) + chr(111) + chr(0b110011) + chr(0b10110 + 0o35) + chr(197 - 146), 8), nzTpIcepk0o8(chr(48) + '\x6f' + chr(1857 - 1802) + chr(1696 - 1648), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(634 - 580) + '\060', 0o10), nzTpIcepk0o8(chr(48) + chr(7773 - 7662) + chr(1224 - 1174) + chr(0b110000) + chr(0b110011), 44445 - 44437), nzTpIcepk0o8('\060' + chr(3158 - 3047) + chr(0b110010) + chr(429 - 381) + '\062', 21955 - 21947), nzTpIcepk0o8(chr(48) + chr(10345 - 10234) + chr(0b10111 + 0o36) + chr(0b1101 + 0o50), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(0b110111) + '\x33', 0o10), nzTpIcepk0o8('\060' + chr(1000 - 889) + '\063' + chr(0b110000) + chr(0b11001 + 0o36), 8), nzTpIcepk0o8(chr(348 - 300) + '\x6f' + '\061' + chr(743 - 690) + chr(0b110101), 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(1115 - 1062) + '\x30', 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xd9'), chr(4717 - 4617) + chr(101) + chr(99) + chr(0b1101111) + '\144' + chr(8060 - 7959))('\x75' + chr(0b1110100) + chr(0b1100110) + '\x2d' + chr(0b11 + 0o65)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def uTw5CPPMOlxD(hXMPsSrOQzbh, FfKOThdpoDTb, ySf_6JQ7w7By=None):
if roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x92\x14\x8f\xed\xb4\xf3\x96\x07\x01\xb6\x91\xae'), '\144' + chr(0b101001 + 0o74) + chr(0b1100011) + chr(111) + '\144' + '\145')(chr(117) + chr(116) + chr(102) + chr(856 - 811) + chr(56))) > nzTpIcepk0o8(chr(2169 - 2121) + chr(1822 - 1711) + '\060', ord("\x08")):
LCrwg7lcbmU9 = hXMPsSrOQzbh.zgDfHOdKcvCW(FfKOThdpoDTb)
if LCrwg7lcbmU9 is None:
raise jw1OxlhjxMAq(roI3spqORKae(ES5oEprVxulp(b'\x93D\xb3\xfe\xde\xfb\xb4o.\x9a\x8b\xe2\xb5\xf5\x17\xecp\xb5\xb3\xaf\xf2f8Z&:u\x80\xfei\x1b\xfbYB\xf1\xe3T\x1b\xa8\x0b\xd7V\xae\xe5\x9b\xb2'), '\144' + '\x65' + '\x63' + chr(0b1101111) + chr(100) + chr(0b111110 + 0o47))(chr(0b1010110 + 0o37) + chr(0b1110100 + 0o0) + chr(102) + chr(0b101101) + chr(107 - 51)) + roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x92\x14\x8f\xed\xb4\xf3\x96\x07\x01\xb6\x91\xae'), '\x64' + chr(101) + chr(4774 - 4675) + '\x6f' + chr(0b110001 + 0o63) + chr(5131 - 5030))('\165' + chr(116) + chr(0b1010011 + 0o23) + chr(45) + chr(2983 - 2927))))
else:
return LCrwg7lcbmU9[nzTpIcepk0o8('\060' + chr(0b1101111) + '\060', 8)]
else:
r7AA1pbLjb44 = []
KQbHFTcl_LKy = nzTpIcepk0o8('\060' + '\x6f' + chr(281 - 233), 8)
while KQbHFTcl_LKy < ftfygxgFas5X(FfKOThdpoDTb):
LCrwg7lcbmU9 = hXMPsSrOQzbh.innerparser.zgDfHOdKcvCW(FfKOThdpoDTb[KQbHFTcl_LKy:], None)
if LCrwg7lcbmU9 is None:
break
roI3spqORKae(r7AA1pbLjb44, roI3spqORKae(ES5oEprVxulp(b'\xbfq\x94\xab\x86\xf5\x80 *\x9a\xaa\xf7'), chr(8102 - 8002) + chr(101) + chr(0b1100011) + chr(0b10111 + 0o130) + '\144' + '\x65')(chr(117) + chr(0b1000010 + 0o62) + chr(1875 - 1773) + '\x2d' + '\x38'))(LCrwg7lcbmU9[nzTpIcepk0o8(chr(1095 - 1047) + chr(0b1101111) + chr(48), 8)])
KQbHFTcl_LKy += LCrwg7lcbmU9[nzTpIcepk0o8(chr(0b11001 + 0o27) + chr(7210 - 7099) + chr(49), 8)]
return r7AA1pbLjb44 |
hubo1016/namedstruct | namedstruct/namedstruct.py | ArrayParser.sizeof | def sizeof(self, prim):
'''
Compatible to Parser.sizeof()
'''
size = 0
arraysize = self.size
if arraysize == 0:
arraysize = len(prim)
for i in range(0, arraysize):
if i >= len(prim):
tp = self.innerparser.new()
if hasattr(self.innerparser, 'fullparse'):
self.innerparser.fullparse(tp)
size += self.innerparser.paddingsize(tp)
else:
size += self.innerparser.paddingsize(prim[i])
return size | python | def sizeof(self, prim):
'''
Compatible to Parser.sizeof()
'''
size = 0
arraysize = self.size
if arraysize == 0:
arraysize = len(prim)
for i in range(0, arraysize):
if i >= len(prim):
tp = self.innerparser.new()
if hasattr(self.innerparser, 'fullparse'):
self.innerparser.fullparse(tp)
size += self.innerparser.paddingsize(tp)
else:
size += self.innerparser.paddingsize(prim[i])
return size | [
"def",
"sizeof",
"(",
"self",
",",
"prim",
")",
":",
"size",
"=",
"0",
"arraysize",
"=",
"self",
".",
"size",
"if",
"arraysize",
"==",
"0",
":",
"arraysize",
"=",
"len",
"(",
"prim",
")",
"for",
"i",
"in",
"range",
"(",
"0",
",",
"arraysize",
")",
":",
"if",
"i",
">=",
"len",
"(",
"prim",
")",
":",
"tp",
"=",
"self",
".",
"innerparser",
".",
"new",
"(",
")",
"if",
"hasattr",
"(",
"self",
".",
"innerparser",
",",
"'fullparse'",
")",
":",
"self",
".",
"innerparser",
".",
"fullparse",
"(",
"tp",
")",
"size",
"+=",
"self",
".",
"innerparser",
".",
"paddingsize",
"(",
"tp",
")",
"else",
":",
"size",
"+=",
"self",
".",
"innerparser",
".",
"paddingsize",
"(",
"prim",
"[",
"i",
"]",
")",
"return",
"size"
] | Compatible to Parser.sizeof() | [
"Compatible",
"to",
"Parser",
".",
"sizeof",
"()"
] | 5039026e0df4ce23003d212358918dbe1a6e1d76 | https://github.com/hubo1016/namedstruct/blob/5039026e0df4ce23003d212358918dbe1a6e1d76/namedstruct/namedstruct.py#L1344-L1360 | train | Compatible to Parser. sizeof | 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,QhZRiM1qv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LjA_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) + chr(9127 - 9016) + chr(51) + chr(0b10101 + 0o36) + '\060', 0b1000), nzTpIcepk0o8(chr(0b101000 + 0o10) + chr(0b1010111 + 0o30) + chr(0b110011) + '\067' + '\x33', 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(0b1001 + 0o50) + chr(2064 - 2014) + chr(0b100001 + 0o23), 0o10), nzTpIcepk0o8(chr(0b1111 + 0o41) + chr(111) + '\062' + chr(0b110110) + '\060', 0b1000), nzTpIcepk0o8(chr(1326 - 1278) + '\x6f' + '\x36' + '\x35', 23361 - 23353), nzTpIcepk0o8(chr(0b1101 + 0o43) + chr(0b1101111) + chr(0b110010), ord("\x08")), nzTpIcepk0o8(chr(133 - 85) + chr(2446 - 2335) + '\x32' + '\066' + '\063', 0b1000), nzTpIcepk0o8('\x30' + chr(111) + '\062' + chr(49) + chr(49), 0o10), nzTpIcepk0o8('\060' + chr(0b1000 + 0o147) + chr(51) + chr(1373 - 1323) + '\060', 0o10), nzTpIcepk0o8(chr(1473 - 1425) + chr(111) + chr(0b110011) + chr(1598 - 1550) + chr(0b1011 + 0o50), 0b1000), nzTpIcepk0o8('\060' + '\157' + '\062' + chr(942 - 888) + chr(55), 15566 - 15558), nzTpIcepk0o8(chr(0b110000) + chr(6152 - 6041) + chr(50) + '\062' + chr(49), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110010) + chr(758 - 704) + chr(0b101000 + 0o16), 9770 - 9762), nzTpIcepk0o8('\x30' + '\157' + '\061' + chr(0b11111 + 0o24), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110010) + chr(0b110011 + 0o4) + '\x30', 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(0b100110 + 0o16) + chr(1395 - 1347), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(5197 - 5086) + chr(598 - 549) + chr(0b110001) + chr(0b110000 + 0o3), 19319 - 19311), nzTpIcepk0o8('\x30' + '\157' + chr(0b110001) + chr(49) + chr(2606 - 2551), 41776 - 41768), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(52) + '\x37', 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(49) + chr(0b11111 + 0o26) + '\067', 0o10), nzTpIcepk0o8(chr(0b10110 + 0o32) + chr(6886 - 6775) + chr(51) + '\065' + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(573 - 525) + chr(111) + '\063' + chr(55) + '\x31', 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\062' + chr(51) + '\065', 0o10), nzTpIcepk0o8(chr(0b10110 + 0o32) + '\157' + chr(0b110010) + chr(1067 - 1013) + '\x33', 8), nzTpIcepk0o8(chr(0b1 + 0o57) + '\x6f' + chr(0b110100) + '\x36', ord("\x08")), nzTpIcepk0o8(chr(782 - 734) + chr(111) + '\061' + chr(54) + '\x36', 55159 - 55151), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(48) + chr(3103 - 2992) + chr(50) + chr(50), 0o10), nzTpIcepk0o8(chr(48) + chr(0b11111 + 0o120) + chr(0b110011) + '\x34' + chr(1173 - 1119), 50504 - 50496), nzTpIcepk0o8('\060' + chr(0b1001011 + 0o44) + chr(0b1 + 0o61) + chr(333 - 284) + chr(0b110000), 22498 - 22490), nzTpIcepk0o8(chr(48) + chr(111) + chr(740 - 690) + chr(1077 - 1024) + '\x31', 0b1000), nzTpIcepk0o8(chr(48) + '\157' + '\x32' + chr(0b110100) + chr(50), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b101010 + 0o105) + '\x35' + '\067', ord("\x08")), nzTpIcepk0o8('\060' + '\157' + '\062' + '\060', ord("\x08")), nzTpIcepk0o8(chr(0b10111 + 0o31) + chr(1294 - 1183) + chr(2398 - 2349) + chr(0b110101) + chr(628 - 575), 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(50) + chr(1272 - 1217) + chr(51), ord("\x08")), nzTpIcepk0o8('\060' + chr(6392 - 6281) + chr(0b10000 + 0o42) + chr(0b11110 + 0o30) + '\064', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(2341 - 2291) + chr(0b110110) + chr(48), 8), nzTpIcepk0o8('\060' + chr(182 - 71) + '\063' + chr(0b110101) + chr(0b110001), 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1010 + 0o145) + chr(0b110010) + '\067' + chr(0b110011), 8)][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + chr(111) + chr(53) + chr(48), 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xf6'), chr(100) + '\x65' + chr(4039 - 3940) + chr(111) + '\144' + chr(101))('\165' + chr(0b1110100) + chr(102) + chr(1291 - 1246) + chr(0b110010 + 0o6)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def KbpLmSsdRhBk(hXMPsSrOQzbh, NX_Q3jNq1TRI):
e1HrJaQHACnl = nzTpIcepk0o8(chr(0b11010 + 0o26) + chr(0b1101000 + 0o7) + chr(0b110000), 0b1000)
uqmpyAaIq0xN = hXMPsSrOQzbh.e1HrJaQHACnl
if uqmpyAaIq0xN == nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(1967 - 1919), 8):
uqmpyAaIq0xN = ftfygxgFas5X(NX_Q3jNq1TRI)
for ZlbFMSG8gCoF in bbT2xIe5pzk7(nzTpIcepk0o8(chr(137 - 89) + '\x6f' + '\060', 8), uqmpyAaIq0xN):
if ZlbFMSG8gCoF >= ftfygxgFas5X(NX_Q3jNq1TRI):
Nkeb1ULz0ycu = hXMPsSrOQzbh.innerparser.bZWmgf4GjgvH()
if dRKdVnHPFq7C(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xb1\x95:\xd5Gr\xd2\xfb\xa3\xa6\xc5'), chr(4068 - 3968) + chr(8124 - 8023) + '\143' + '\157' + '\144' + chr(101))(chr(0b1011110 + 0o27) + '\x74' + chr(3623 - 3521) + chr(0b101010 + 0o3) + '\x38')), roI3spqORKae(ES5oEprVxulp(b'\xbe\x8e8\xdcEc\xc1\xfa\xb5'), chr(100) + chr(0b1100101) + '\143' + chr(7245 - 7134) + chr(0b110000 + 0o64) + chr(0b1100101))(chr(0b1101001 + 0o14) + chr(116) + '\x66' + '\055' + chr(0b1010 + 0o56))):
roI3spqORKae(hXMPsSrOQzbh.innerparser, roI3spqORKae(ES5oEprVxulp(b'\xbe\x8e8\xdcEc\xc1\xfa\xb5'), chr(100) + chr(101) + chr(0b110001 + 0o62) + chr(111) + chr(100) + chr(0b1100101))(chr(0b1110101) + chr(3524 - 3408) + '\x66' + chr(0b110 + 0o47) + '\070'))(Nkeb1ULz0ycu)
e1HrJaQHACnl += hXMPsSrOQzbh.innerparser.paddingsize(Nkeb1ULz0ycu)
else:
e1HrJaQHACnl += hXMPsSrOQzbh.innerparser.paddingsize(NX_Q3jNq1TRI[ZlbFMSG8gCoF])
return e1HrJaQHACnl |
hubo1016/namedstruct | namedstruct/namedstruct.py | ArrayParser.tobytes | def tobytes(self, prim, skipprepack = False):
'''
Compatible to Parser.tobytes()
'''
stream = BytesIO()
self.tostream(prim, stream, skipprepack=skipprepack)
return stream.getvalue() | python | def tobytes(self, prim, skipprepack = False):
'''
Compatible to Parser.tobytes()
'''
stream = BytesIO()
self.tostream(prim, stream, skipprepack=skipprepack)
return stream.getvalue() | [
"def",
"tobytes",
"(",
"self",
",",
"prim",
",",
"skipprepack",
"=",
"False",
")",
":",
"stream",
"=",
"BytesIO",
"(",
")",
"self",
".",
"tostream",
"(",
"prim",
",",
"stream",
",",
"skipprepack",
"=",
"skipprepack",
")",
"return",
"stream",
".",
"getvalue",
"(",
")"
] | Compatible to Parser.tobytes() | [
"Compatible",
"to",
"Parser",
".",
"tobytes",
"()"
] | 5039026e0df4ce23003d212358918dbe1a6e1d76 | https://github.com/hubo1016/namedstruct/blob/5039026e0df4ce23003d212358918dbe1a6e1d76/namedstruct/namedstruct.py#L1366-L1372 | train | Convert the object to bytes. | GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipG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V3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__
ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\x30' + '\157' + chr(52) + chr(0b11110 + 0o31), 35612 - 35604), nzTpIcepk0o8('\060' + '\157' + '\062' + chr(0b110010) + chr(51), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b100001 + 0o22) + chr(0b100 + 0o62) + chr(1462 - 1407), 0o10), nzTpIcepk0o8(chr(280 - 232) + chr(0b1000011 + 0o54) + '\063' + chr(0b100001 + 0o25) + '\x35', 28104 - 28096), nzTpIcepk0o8(chr(1206 - 1158) + '\157' + '\063' + '\x33', 60550 - 60542), nzTpIcepk0o8(chr(793 - 745) + '\x6f' + '\061' + '\x31', 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(0b1111 + 0o44) + chr(0b110011) + chr(2553 - 2498), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(1399 - 1348) + chr(52) + chr(825 - 771), 0b1000), nzTpIcepk0o8('\060' + chr(0b1011001 + 0o26) + chr(49) + chr(48), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(50) + chr(0b10011 + 0o42) + chr(0b100010 + 0o24), ord("\x08")), nzTpIcepk0o8(chr(550 - 502) + '\157' + chr(0b110001) + chr(0b1101 + 0o43) + chr(375 - 324), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(1682 - 1632) + chr(0b110011) + '\x30', 5634 - 5626), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(2373 - 2323) + '\067' + chr(0b11101 + 0o26), 39978 - 39970), nzTpIcepk0o8(chr(48) + chr(111) + '\063' + '\067' + chr(0b1101 + 0o52), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b10 + 0o155) + '\x32' + '\063' + chr(847 - 792), ord("\x08")), nzTpIcepk0o8(chr(0b100101 + 0o13) + chr(111) + chr(0b110001) + chr(0b110011) + chr(0b110 + 0o60), 20575 - 20567), nzTpIcepk0o8(chr(48) + chr(0b1001111 + 0o40) + chr(0b110011) + '\x33' + '\x34', 0b1000), nzTpIcepk0o8(chr(0b11110 + 0o22) + chr(111) + chr(0b1011 + 0o50) + '\x37' + chr(0b110100), 0b1000), nzTpIcepk0o8('\x30' + chr(0b11001 + 0o126) + chr(0b1111 + 0o44) + '\061' + chr(0b11010 + 0o34), 29945 - 29937), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110011) + '\060' + chr(1597 - 1543), 60276 - 60268), nzTpIcepk0o8('\060' + chr(0b110 + 0o151) + '\x33' + chr(1759 - 1704) + '\x35', 0b1000), nzTpIcepk0o8(chr(0b11001 + 0o27) + '\x6f' + chr(0b110001) + chr(51), 0o10), nzTpIcepk0o8(chr(592 - 544) + chr(1157 - 1046) + chr(2495 - 2444) + '\060' + chr(0b110101), ord("\x08")), nzTpIcepk0o8(chr(977 - 929) + chr(0b1101111) + '\x31' + chr(0b110100) + chr(1440 - 1388), 52107 - 52099), nzTpIcepk0o8('\060' + '\157' + '\x31' + chr(748 - 700) + chr(0b100100 + 0o23), 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(50) + chr(0b11100 + 0o33) + chr(1742 - 1692), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b10001 + 0o40) + chr(52) + '\067', 0b1000), nzTpIcepk0o8(chr(0b100010 + 0o16) + chr(0b1101111) + chr(0b110000 + 0o2) + chr(362 - 311), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(1886 - 1837) + chr(50), 0o10), nzTpIcepk0o8('\060' + chr(2658 - 2547) + chr(0b110010) + chr(0b110000) + '\x33', 36315 - 36307), nzTpIcepk0o8(chr(48) + chr(111) + '\x32' + chr(1655 - 1606) + chr(55), ord("\x08")), nzTpIcepk0o8(chr(1829 - 1781) + chr(924 - 813) + chr(0b110010) + '\061' + chr(1290 - 1237), 0b1000), nzTpIcepk0o8(chr(1455 - 1407) + chr(0b101001 + 0o106) + chr(0b110001) + chr(760 - 711) + chr(0b100 + 0o61), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\063' + chr(1953 - 1898) + chr(0b110110), 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(996 - 947) + chr(54) + '\063', 50361 - 50353), nzTpIcepk0o8(chr(48) + chr(179 - 68) + '\062' + chr(0b110101) + chr(0b10000 + 0o46), 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(50) + chr(2081 - 2026) + '\062', 8), nzTpIcepk0o8(chr(0b101001 + 0o7) + '\x6f' + chr(1804 - 1754) + chr(0b110101 + 0o1) + '\065', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x32' + '\060' + '\x33', 8), nzTpIcepk0o8(chr(48) + chr(6315 - 6204) + '\x32' + chr(52) + chr(1793 - 1743), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + chr(3237 - 3126) + 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'\t'), chr(100) + chr(9195 - 9094) + chr(0b1011101 + 0o6) + chr(111) + '\x64' + '\x65')('\x75' + chr(0b1110100) + chr(3141 - 3039) + '\x2d' + '\x38') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def PrjeHV8PoU6g(hXMPsSrOQzbh, NX_Q3jNq1TRI, D6Ev8Dnyj5Ex=nzTpIcepk0o8(chr(0b110000) + chr(7687 - 7576) + chr(0b1100 + 0o44), ord("\x08"))):
ztC3O2ZXmsJr = BVoKtXpmh0oX()
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'S\xfc\x84\x81il\xbe\x8b'), chr(100) + chr(6302 - 6201) + '\x63' + chr(0b1001 + 0o146) + chr(0b1101 + 0o127) + chr(101))(chr(10413 - 10296) + chr(0b1011 + 0o151) + chr(9908 - 9806) + chr(1695 - 1650) + '\070'))(NX_Q3jNq1TRI, ztC3O2ZXmsJr, skipprepack=D6Ev8Dnyj5Ex)
return roI3spqORKae(ztC3O2ZXmsJr, roI3spqORKae(ES5oEprVxulp(b'@\xf6\x83\x83ze\xaa\x83'), '\x64' + chr(0b10001 + 0o124) + chr(99) + chr(2508 - 2397) + '\x64' + chr(9810 - 9709))(chr(315 - 198) + '\164' + chr(102) + chr(0b101101) + chr(0b111000)))() |
hubo1016/namedstruct | namedstruct/namedstruct.py | RawParser.create | def create(self, data, inlineparent = None):
'''
Compatible to Parser.create()
'''
if self.cstr:
return _copy(data).rstrip(b'\x00')
else:
return _copy(data) | python | def create(self, data, inlineparent = None):
'''
Compatible to Parser.create()
'''
if self.cstr:
return _copy(data).rstrip(b'\x00')
else:
return _copy(data) | [
"def",
"create",
"(",
"self",
",",
"data",
",",
"inlineparent",
"=",
"None",
")",
":",
"if",
"self",
".",
"cstr",
":",
"return",
"_copy",
"(",
"data",
")",
".",
"rstrip",
"(",
"b'\\x00'",
")",
"else",
":",
"return",
"_copy",
"(",
"data",
")"
] | Compatible to Parser.create() | [
"Compatible",
"to",
"Parser",
".",
"create",
"()"
] | 5039026e0df4ce23003d212358918dbe1a6e1d76 | https://github.com/hubo1016/namedstruct/blob/5039026e0df4ce23003d212358918dbe1a6e1d76/namedstruct/namedstruct.py#L1412-L1419 | train | Create a new instance of the class. | GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07D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q9QOaZbhU,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) + '\157' + '\061' + chr(1810 - 1761) + chr(0b110011), 56287 - 56279), nzTpIcepk0o8('\x30' + '\157' + '\x31' + chr(2216 - 2164) + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\060', ord("\x08")), nzTpIcepk0o8(chr(979 - 931) + chr(938 - 827) + chr(0b110001) + chr(54) + '\067', 58895 - 58887), nzTpIcepk0o8(chr(568 - 520) + chr(111) + chr(1596 - 1546) + '\x31', 0o10), nzTpIcepk0o8('\060' + '\157' + chr(485 - 434) + '\062', 28670 - 28662), nzTpIcepk0o8('\060' + chr(111) + '\062' + '\x34' + chr(0b1001 + 0o47), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + '\x31' + chr(54) + '\x37', 8), nzTpIcepk0o8(chr(1799 - 1751) + chr(9409 - 9298) + chr(0b110000 + 0o7) + '\x31', ord("\x08")), nzTpIcepk0o8('\060' + chr(2320 - 2209) + chr(0b110010) + chr(0b100011 + 0o21) + chr(0b100000 + 0o26), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(6194 - 6083) + chr(0b101100 + 0o6) + '\x31' + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110010) + chr(0b110 + 0o54) + chr(1681 - 1626), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + '\x31' + '\067', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(1710 - 1599) + chr(0b101011 + 0o6) + '\x32' + chr(577 - 529), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(2223 - 2170) + '\066', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b100111 + 0o110) + '\064' + '\x37', 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110000 + 0o2) + chr(0b1101 + 0o51) + '\064', 1856 - 1848), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110010) + chr(0b110111) + chr(0b10110 + 0o32), 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(50) + chr(50) + chr(0b11110 + 0o30), 0o10), nzTpIcepk0o8('\x30' + '\157' + '\x32' + '\x32' + '\x35', ord("\x08")), nzTpIcepk0o8(chr(2178 - 2130) + chr(111) + chr(0b110101) + '\x30', 0b1000), nzTpIcepk0o8('\x30' + chr(111) + '\x31' + '\061', 0b1000), nzTpIcepk0o8(chr(0b1000 + 0o50) + chr(0b111100 + 0o63) + chr(0b10011 + 0o40) + chr(54) + chr(50), 48836 - 48828), nzTpIcepk0o8(chr(0b11101 + 0o23) + chr(111) + chr(0b110010) + chr(0b110001), 8), nzTpIcepk0o8('\x30' + chr(111) + chr(51) + chr(0b101001 + 0o13) + '\062', 36213 - 36205), nzTpIcepk0o8('\060' + chr(10573 - 10462) + '\062' + chr(0b110111) + '\x35', 21975 - 21967), nzTpIcepk0o8(chr(1828 - 1780) + chr(111) + '\062' + '\x32' + '\064', 0o10), nzTpIcepk0o8(chr(0b11011 + 0o25) + '\x6f' + chr(49) + chr(0b110100) + chr(53), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\062' + chr(0b110010) + '\065', 8), nzTpIcepk0o8('\x30' + '\x6f' + chr(50) + '\x33' + '\062', 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(0b110110) + chr(0b100 + 0o54), 43802 - 43794), nzTpIcepk0o8(chr(57 - 9) + chr(111) + '\x32' + chr(0b110011) + '\x34', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(53) + chr(51), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(49) + chr(327 - 273) + chr(0b101110 + 0o6), 0o10), nzTpIcepk0o8('\x30' + chr(11227 - 11116) + chr(49) + chr(0b101101 + 0o11) + '\060', ord("\x08")), nzTpIcepk0o8('\060' + '\157' + '\x31' + chr(54) + '\x34', 8), nzTpIcepk0o8('\x30' + '\157' + '\062' + chr(54) + chr(0b110001 + 0o2), 0o10), nzTpIcepk0o8('\060' + chr(5351 - 5240) + chr(0b110010) + chr(652 - 598) + '\x32', 46535 - 46527), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(1561 - 1510) + chr(0b10110 + 0o36) + chr(0b1010 + 0o55), 59154 - 59146), nzTpIcepk0o8('\x30' + chr(111) + '\063' + chr(55) + chr(50), 21735 - 21727)][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + chr(111) + chr(781 - 728) + chr(0b100100 + 0o14), 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'e'), '\x64' + chr(101) + chr(3641 - 3542) + chr(0b1001001 + 0o46) + '\x64' + chr(6153 - 6052))(chr(117) + '\164' + chr(0b110011 + 0o63) + chr(0b1111 + 0o36) + chr(978 - 922)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def uTw5CPPMOlxD(hXMPsSrOQzbh, FfKOThdpoDTb, ySf_6JQ7w7By=None):
if roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'(\x12t\x05'), '\144' + '\145' + '\x63' + chr(11009 - 10898) + chr(0b1000000 + 0o44) + '\x65')(chr(117) + chr(116) + '\146' + '\x2d' + '\x38')):
return roI3spqORKae(Xo6RygUT8CD7(FfKOThdpoDTb), roI3spqORKae(ES5oEprVxulp(b'9\x12t\x05xj'), chr(0b1000110 + 0o36) + chr(0b11100 + 0o111) + chr(0b1100011) + chr(111) + '\x64' + '\145')(chr(117) + '\x74' + chr(0b1100110) + chr(45) + chr(0b111000)))(ES5oEprVxulp(b'K'))
else:
return Xo6RygUT8CD7(FfKOThdpoDTb) |
hubo1016/namedstruct | namedstruct/namedstruct.py | typedef.parser | def parser(self):
'''
Get parser for this type. Create the parser on first call.
'''
if not hasattr(self, '_parser'):
self._parser = self._compile()
return self._parser | python | def parser(self):
'''
Get parser for this type. Create the parser on first call.
'''
if not hasattr(self, '_parser'):
self._parser = self._compile()
return self._parser | [
"def",
"parser",
"(",
"self",
")",
":",
"if",
"not",
"hasattr",
"(",
"self",
",",
"'_parser'",
")",
":",
"self",
".",
"_parser",
"=",
"self",
".",
"_compile",
"(",
")",
"return",
"self",
".",
"_parser"
] | Get parser for this type. Create the parser on first call. | [
"Get",
"parser",
"for",
"this",
"type",
".",
"Create",
"the",
"parser",
"on",
"first",
"call",
"."
] | 5039026e0df4ce23003d212358918dbe1a6e1d76 | https://github.com/hubo1016/namedstruct/blob/5039026e0df4ce23003d212358918dbe1a6e1d76/namedstruct/namedstruct.py#L1477-L1483 | train | Get the parser for this type. Create the parser on first call. | 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,gCu7Qd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Sxj4JFQ8o,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(0b11011 + 0o124) + chr(0b110010) + chr(0b110111) + chr(0b100100 + 0o15), 39076 - 39068), nzTpIcepk0o8('\060' + '\157' + chr(1291 - 1242) + chr(50), 0b1000), nzTpIcepk0o8('\060' + chr(0b1101011 + 0o4) + chr(1282 - 1233) + chr(50), 8), nzTpIcepk0o8('\060' + '\x6f' + chr(0b10100 + 0o37) + chr(2543 - 2490), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(2057 - 2006) + chr(457 - 405) + '\x31', 14539 - 14531), nzTpIcepk0o8(chr(0b10010 + 0o36) + chr(0b1011100 + 0o23) + chr(49) + chr(0b100100 + 0o23) + chr(0b110001), 0o10), nzTpIcepk0o8(chr(1717 - 1669) + chr(4055 - 3944) + chr(49) + '\065', 0o10), nzTpIcepk0o8('\060' + chr(0b100000 + 0o117) + '\064' + chr(332 - 278), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(51) + chr(0b110000) + chr(53), 0b1000), nzTpIcepk0o8(chr(642 - 594) + chr(111) + chr(51) + chr(0b1111 + 0o46) + chr(0b100110 + 0o12), 0o10), nzTpIcepk0o8(chr(0b0 + 0o60) + '\157' + chr(2255 - 2206) + '\066' + chr(1967 - 1914), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + '\x37' + '\x36', 49783 - 49775), nzTpIcepk0o8('\060' + '\x6f' + chr(581 - 532), 0o10), nzTpIcepk0o8('\x30' + chr(0b1011011 + 0o24) + '\x33' + '\x32' + chr(0b101010 + 0o11), 0b1000), nzTpIcepk0o8('\060' + chr(0b10000 + 0o137) + '\061' + chr(0b110001) + '\067', 18961 - 18953), nzTpIcepk0o8(chr(48) + chr(10110 - 9999) + '\x37' + chr(0b0 + 0o61), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\063' + '\060', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1000011 + 0o54) + '\062' + chr(51), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(50) + '\x37' + chr(51), 0o10), nzTpIcepk0o8(chr(1463 - 1415) + '\x6f' + '\062' + '\067' + '\x32', ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + '\067' + chr(2051 - 1996), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(0b10 + 0o61) + '\060' + chr(0b110111), 0b1000), nzTpIcepk0o8(chr(2295 - 2247) + chr(0b1001 + 0o146) + chr(493 - 443) + chr(0b110100) + chr(49), 19477 - 19469), nzTpIcepk0o8('\060' + chr(111) + chr(49) + chr(0b110101) + chr(0b110110), ord("\x08")), nzTpIcepk0o8('\060' + chr(11419 - 11308) + chr(0b110101), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(1482 - 1432) + chr(0b110000) + '\062', ord("\x08")), nzTpIcepk0o8(chr(1464 - 1416) + chr(0b1101111) + chr(51) + chr(53) + chr(51), 59962 - 59954), nzTpIcepk0o8('\x30' + chr(111) + '\063' + '\066' + chr(1854 - 1800), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(49) + chr(2184 - 2132) + chr(132 - 84), 17666 - 17658), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110011) + '\064' + chr(0b110111), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(9947 - 9836) + chr(0b110010) + '\062' + chr(0b110000), 61639 - 61631), nzTpIcepk0o8(chr(1284 - 1236) + chr(111) + chr(1142 - 1092) + chr(704 - 655) + '\066', 5534 - 5526), nzTpIcepk0o8(chr(0b100111 + 0o11) + chr(12220 - 12109) + chr(0b10000 + 0o42) + chr(52) + chr(607 - 553), 0o10), nzTpIcepk0o8(chr(0b100111 + 0o11) + chr(437 - 326) + '\x33' + chr(0b100001 + 0o22) + chr(55), 17901 - 17893), nzTpIcepk0o8(chr(0b110000) + chr(8938 - 8827) + chr(0b110010) + chr(0b110000) + chr(713 - 662), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(12146 - 12035) + chr(0b100 + 0o56) + '\x30' + '\063', 8), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x32' + chr(409 - 357) + chr(1741 - 1690), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\063' + '\064' + '\067', 8), nzTpIcepk0o8(chr(48) + chr(6544 - 6433) + chr(0b101101 + 0o4) + chr(2447 - 2392) + chr(54), 13889 - 13881), nzTpIcepk0o8('\060' + chr(10213 - 10102) + '\x32' + '\x30' + chr(51), 8)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b11011 + 0o25) + chr(0b101000 + 0o107) + chr(1128 - 1075) + '\x30', 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x97'), chr(0b1100100) + '\x65' + chr(0b101000 + 0o73) + chr(0b10010 + 0o135) + '\144' + '\145')(chr(0b11110 + 0o127) + chr(0b1110100) + '\146' + '\055' + chr(536 - 480)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def ELQLGvoVr2Z_(hXMPsSrOQzbh):
if not dRKdVnHPFq7C(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xe6zko\x92\x1c\x7f'), '\x64' + '\145' + chr(0b1100011) + chr(1727 - 1616) + chr(0b1100100) + chr(0b100 + 0o141))(chr(0b1010110 + 0o37) + chr(0b100101 + 0o117) + chr(102) + '\x2d' + chr(0b100001 + 0o27))):
hXMPsSrOQzbh.z9MHusHjlvHX = hXMPsSrOQzbh.k4172dMNZZSS()
return roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xc33GU\x94\nEL\xa9\x9e=f'), '\144' + chr(7842 - 7741) + chr(0b1100011) + chr(0b111100 + 0o63) + chr(100) + '\x65')(chr(0b1110101) + '\x74' + '\146' + '\x2d' + chr(0b11100 + 0o34))) |
hubo1016/namedstruct | namedstruct/namedstruct.py | typedef.new | def new(self, *args, **kwargs):
'''
Create a new object of this type. It is also available as __call__, so you can create a new object
just like creating a class instance: a = mytype(a=1,b=2)
:param args: Replace the embedded struct type. Each argument is a tuple (name, newtype).
It is equivalent to call _replace_embedded_type with *name* and *newtype*
one by one. Both the "directly" embedded struct and the embedded struct inside another
embedded struct can be set. If you want to replace an embedded struct in a
replaced struct type, make sure the outer struct is replaced first. The embeded
struct type must have a *name* to be replaced by specify *name* option.
:param kwargs: extra key-value arguments, each one will be set on the new object, to set value
to the fields conveniently.
:returns: a new object, with the specified "kwargs" set.
'''
obj = self.parser().new()
for k,v in args:
obj._replace_embedded_type(k,v)
for k,v in kwargs.items():
setattr(obj, k, v)
return obj | python | def new(self, *args, **kwargs):
'''
Create a new object of this type. It is also available as __call__, so you can create a new object
just like creating a class instance: a = mytype(a=1,b=2)
:param args: Replace the embedded struct type. Each argument is a tuple (name, newtype).
It is equivalent to call _replace_embedded_type with *name* and *newtype*
one by one. Both the "directly" embedded struct and the embedded struct inside another
embedded struct can be set. If you want to replace an embedded struct in a
replaced struct type, make sure the outer struct is replaced first. The embeded
struct type must have a *name* to be replaced by specify *name* option.
:param kwargs: extra key-value arguments, each one will be set on the new object, to set value
to the fields conveniently.
:returns: a new object, with the specified "kwargs" set.
'''
obj = self.parser().new()
for k,v in args:
obj._replace_embedded_type(k,v)
for k,v in kwargs.items():
setattr(obj, k, v)
return obj | [
"def",
"new",
"(",
"self",
",",
"*",
"args",
",",
"*",
"*",
"kwargs",
")",
":",
"obj",
"=",
"self",
".",
"parser",
"(",
")",
".",
"new",
"(",
")",
"for",
"k",
",",
"v",
"in",
"args",
":",
"obj",
".",
"_replace_embedded_type",
"(",
"k",
",",
"v",
")",
"for",
"k",
",",
"v",
"in",
"kwargs",
".",
"items",
"(",
")",
":",
"setattr",
"(",
"obj",
",",
"k",
",",
"v",
")",
"return",
"obj"
] | Create a new object of this type. It is also available as __call__, so you can create a new object
just like creating a class instance: a = mytype(a=1,b=2)
:param args: Replace the embedded struct type. Each argument is a tuple (name, newtype).
It is equivalent to call _replace_embedded_type with *name* and *newtype*
one by one. Both the "directly" embedded struct and the embedded struct inside another
embedded struct can be set. If you want to replace an embedded struct in a
replaced struct type, make sure the outer struct is replaced first. The embeded
struct type must have a *name* to be replaced by specify *name* option.
:param kwargs: extra key-value arguments, each one will be set on the new object, to set value
to the fields conveniently.
:returns: a new object, with the specified "kwargs" set. | [
"Create",
"a",
"new",
"object",
"of",
"this",
"type",
".",
"It",
"is",
"also",
"available",
"as",
"__call__",
"so",
"you",
"can",
"create",
"a",
"new",
"object",
"just",
"like",
"creating",
"a",
"class",
"instance",
":",
"a",
"=",
"mytype",
"(",
"a",
"=",
"1",
"b",
"=",
"2",
")",
":",
"param",
"args",
":",
"Replace",
"the",
"embedded",
"struct",
"type",
".",
"Each",
"argument",
"is",
"a",
"tuple",
"(",
"name",
"newtype",
")",
".",
"It",
"is",
"equivalent",
"to",
"call",
"_replace_embedded_type",
"with",
"*",
"name",
"*",
"and",
"*",
"newtype",
"*",
"one",
"by",
"one",
".",
"Both",
"the",
"directly",
"embedded",
"struct",
"and",
"the",
"embedded",
"struct",
"inside",
"another",
"embedded",
"struct",
"can",
"be",
"set",
".",
"If",
"you",
"want",
"to",
"replace",
"an",
"embedded",
"struct",
"in",
"a",
"replaced",
"struct",
"type",
"make",
"sure",
"the",
"outer",
"struct",
"is",
"replaced",
"first",
".",
"The",
"embeded",
"struct",
"type",
"must",
"have",
"a",
"*",
"name",
"*",
"to",
"be",
"replaced",
"by",
"specify",
"*",
"name",
"*",
"option",
".",
":",
"param",
"kwargs",
":",
"extra",
"key",
"-",
"value",
"arguments",
"each",
"one",
"will",
"be",
"set",
"on",
"the",
"new",
"object",
"to",
"set",
"value",
"to",
"the",
"fields",
"conveniently",
".",
":",
"returns",
":",
"a",
"new",
"object",
"with",
"the",
"specified",
"kwargs",
"set",
"."
] | 5039026e0df4ce23003d212358918dbe1a6e1d76 | https://github.com/hubo1016/namedstruct/blob/5039026e0df4ce23003d212358918dbe1a6e1d76/namedstruct/namedstruct.py#L1508-L1530 | train | Create a new object of this type with the specified arguments and keyword arguments set on the new object. | GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5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RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__
ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110011) + '\x34' + chr(53), 0o10), nzTpIcepk0o8('\x30' + chr(0b1011100 + 0o23) + '\065' + chr(54), 0o10), nzTpIcepk0o8(chr(2148 - 2100) + chr(11720 - 11609) + chr(0b110010) + chr(48) + '\063', ord("\x08")), nzTpIcepk0o8(chr(1095 - 1047) + chr(7807 - 7696) + chr(0b110011) + chr(54) + chr(0b100100 + 0o14), 0o10), nzTpIcepk0o8(chr(2187 - 2139) + chr(0b1101111) + chr(0b110001) + chr(53) + chr(0b110001), 0b1000), nzTpIcepk0o8('\x30' + '\157' + '\062' + chr(0b10100 + 0o36) + '\065', 7840 - 7832), nzTpIcepk0o8(chr(1083 - 1035) + chr(111) + chr(0b110011) + chr(0b101101 + 0o7) + '\x30', 0b1000), nzTpIcepk0o8(chr(2026 - 1978) + chr(111) + chr(50) + '\062', 12270 - 12262), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x34' + chr(0b110110), 16532 - 16524), nzTpIcepk0o8(chr(48) + chr(0b1001011 + 0o44) + chr(0b11101 + 0o24) + '\x30' + '\063', 27275 - 27267), nzTpIcepk0o8(chr(0b10011 + 0o35) + chr(11938 - 11827) + chr(0b101111 + 0o4) + chr(0b110011) + chr(52), 60443 - 60435), nzTpIcepk0o8(chr(0b1 + 0o57) + '\x6f' + chr(0b10010 + 0o37) + chr(0b100110 + 0o16) + chr(243 - 194), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + '\063' + chr(0b11100 + 0o27) + chr(50), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(0b11010 + 0o27) + chr(0b110110) + chr(0b110011), 0o10), nzTpIcepk0o8(chr(1124 - 1076) + chr(0b101111 + 0o100) + chr(1795 - 1744) + chr(48) + '\x31', ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(0b1010 + 0o50) + '\065' + '\060', 41653 - 41645), nzTpIcepk0o8(chr(1732 - 1684) + chr(0b1001111 + 0o40) + '\x31' + chr(0b110000) + '\065', 46974 - 46966), nzTpIcepk0o8(chr(584 - 536) + '\157' + '\x31' + '\061' + chr(0b11011 + 0o33), 0b1000), nzTpIcepk0o8(chr(0b11010 + 0o26) + chr(647 - 536) + chr(0b11000 + 0o35) + chr(0b101011 + 0o6), ord("\x08")), nzTpIcepk0o8(chr(0b100000 + 0o20) + '\157' + chr(0b110011) + chr(0b110100) + '\065', 8), nzTpIcepk0o8(chr(48) + chr(111) + chr(715 - 664) + '\x36' + chr(1635 - 1583), 32751 - 32743), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b11 + 0o60) + chr(52), 14332 - 14324), nzTpIcepk0o8('\060' + chr(111) + '\065' + '\x34', 0b1000), nzTpIcepk0o8(chr(1014 - 966) + chr(0b1100001 + 0o16) + '\061' + chr(2025 - 1977), ord("\x08")), nzTpIcepk0o8(chr(0b101100 + 0o4) + chr(0b110001 + 0o76) + chr(0b110010) + chr(2195 - 2145) + chr(53), 8), nzTpIcepk0o8(chr(476 - 428) + chr(111) + chr(1880 - 1830) + '\066' + chr(0b110101), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110011) + chr(1724 - 1673) + chr(51), ord("\x08")), nzTpIcepk0o8(chr(0b10010 + 0o36) + chr(0b1100 + 0o143) + chr(701 - 651) + chr(0b100010 + 0o21) + '\x32', 11594 - 11586), nzTpIcepk0o8('\060' + '\x6f' + '\061' + chr(1714 - 1665) + chr(0b110111), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(222 - 171), 64810 - 64802), nzTpIcepk0o8('\060' + chr(10550 - 10439) + '\x32' + chr(2688 - 2636) + '\x33', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x33' + '\065' + '\061', 38249 - 38241), nzTpIcepk0o8(chr(0b11011 + 0o25) + chr(111) + chr(0b100 + 0o56) + chr(0b110101 + 0o0) + chr(0b110010), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1111 + 0o140) + '\x31' + chr(0b11011 + 0o31) + chr(53), ord("\x08")), nzTpIcepk0o8(chr(1679 - 1631) + '\x6f' + '\062' + chr(0b110011) + chr(0b110011), 13438 - 13430), nzTpIcepk0o8(chr(0b101011 + 0o5) + chr(111) + '\062' + '\063' + chr(0b110000), 61943 - 61935), nzTpIcepk0o8(chr(274 - 226) + chr(0b1101111) + '\062' + chr(0b110000) + '\x31', 14863 - 14855), nzTpIcepk0o8(chr(48) + '\x6f' + chr(405 - 356) + '\061' + chr(54), 8), nzTpIcepk0o8(chr(0b100100 + 0o14) + chr(0b1001010 + 0o45) + '\x33' + chr(0b110001) + '\x30', 0o10), nzTpIcepk0o8(chr(267 - 219) + '\157' + chr(0b110010) + chr(0b100100 + 0o21) + chr(0b101100 + 0o5), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b100111 + 0o11) + '\157' + chr(0b1111 + 0o46) + chr(48), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xcb'), chr(100) + chr(101) + chr(99) + chr(111) + chr(7913 - 7813) + chr(0b0 + 0o145))(chr(9426 - 9309) + chr(0b1101 + 0o147) + chr(102) + chr(1032 - 987) + chr(0b111000)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def bZWmgf4GjgvH(hXMPsSrOQzbh, *eemPYp2vtTSr, **q5n0sHDDTy90):
kIMfkyypPTcC = hXMPsSrOQzbh.parser().bZWmgf4GjgvH()
for (B6UAF1zReOyJ, r7AA1pbLjb44) in eemPYp2vtTSr:
roI3spqORKae(kIMfkyypPTcC, roI3spqORKae(ES5oEprVxulp(b'\xba\\\xe6\x80\x05\xf4\x83wy&\xb1\x03\xbf\x17\xa5\xcd!\x11]\x9c\x84y'), chr(100) + '\145' + chr(0b1100011) + chr(7961 - 7850) + chr(0b1100100) + chr(0b1100101))(chr(0b10110 + 0o137) + chr(0b110001 + 0o103) + '\x66' + chr(45) + chr(2337 - 2281)))(B6UAF1zReOyJ, r7AA1pbLjb44)
for (B6UAF1zReOyJ, r7AA1pbLjb44) in roI3spqORKae(q5n0sHDDTy90, roI3spqORKae(ES5oEprVxulp(b'\xbcq\xed\xbe,\xef\xa8&\x155\x84\x08'), '\144' + '\x65' + '\143' + '\157' + chr(0b110000 + 0o64) + chr(0b1100 + 0o131))(chr(117) + '\164' + chr(0b11 + 0o143) + chr(0b101101 + 0o0) + chr(0b1001 + 0o57)))():
lCf1uzpaIUMv(kIMfkyypPTcC, B6UAF1zReOyJ, r7AA1pbLjb44)
return kIMfkyypPTcC |
hubo1016/namedstruct | namedstruct/namedstruct.py | enum.getName | def getName(self, value, defaultName = None):
'''
Get the enumerate name of a specified value.
:param value: the enumerate value
:param defaultName: returns if the enumerate value is not defined
:returns: the corresponding enumerate value or *defaultName* if not found
'''
for k,v in self._values.items():
if v == value:
return k
return defaultName | python | def getName(self, value, defaultName = None):
'''
Get the enumerate name of a specified value.
:param value: the enumerate value
:param defaultName: returns if the enumerate value is not defined
:returns: the corresponding enumerate value or *defaultName* if not found
'''
for k,v in self._values.items():
if v == value:
return k
return defaultName | [
"def",
"getName",
"(",
"self",
",",
"value",
",",
"defaultName",
"=",
"None",
")",
":",
"for",
"k",
",",
"v",
"in",
"self",
".",
"_values",
".",
"items",
"(",
")",
":",
"if",
"v",
"==",
"value",
":",
"return",
"k",
"return",
"defaultName"
] | Get the enumerate name of a specified value.
:param value: the enumerate value
:param defaultName: returns if the enumerate value is not defined
:returns: the corresponding enumerate value or *defaultName* if not found | [
"Get",
"the",
"enumerate",
"name",
"of",
"a",
"specified",
"value",
".",
":",
"param",
"value",
":",
"the",
"enumerate",
"value",
":",
"param",
"defaultName",
":",
"returns",
"if",
"the",
"enumerate",
"value",
"is",
"not",
"defined",
":",
"returns",
":",
"the",
"corresponding",
"enumerate",
"value",
"or",
"*",
"defaultName",
"*",
"if",
"not",
"found"
] | 5039026e0df4ce23003d212358918dbe1a6e1d76 | https://github.com/hubo1016/namedstruct/blob/5039026e0df4ce23003d212358918dbe1a6e1d76/namedstruct/namedstruct.py#L2559-L2569 | train | Get the enumerate name of a specified value. | 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,mRTjFWUmjlQ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29S1SS,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(1149 - 1101) + '\x6f' + chr(0b110011) + '\x35' + '\x34', ord("\x08")), nzTpIcepk0o8(chr(1709 - 1661) + chr(4713 - 4602) + '\x31' + '\x37' + chr(0b110000), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1001 + 0o146) + '\x32' + '\x31', 0o10), nzTpIcepk0o8('\060' + chr(8387 - 8276) + chr(0b100000 + 0o23) + '\x30' + chr(0b110100), 0o10), nzTpIcepk0o8(chr(0b100001 + 0o17) + chr(0b11001 + 0o126) + '\x33' + chr(52) + chr(2111 - 2056), 2726 - 2718), nzTpIcepk0o8(chr(0b110000) + chr(294 - 183) + chr(353 - 299) + '\065', 0o10), nzTpIcepk0o8('\x30' + '\157' + '\x36' + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(1404 - 1356) + '\x6f' + chr(0b110011) + chr(53) + chr(0b110000), 0o10), nzTpIcepk0o8(chr(0b111 + 0o51) + '\x6f' + '\x32' + '\065' + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(1979 - 1931) + '\x6f' + '\x33' + '\061' + '\066', 14945 - 14937), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b100001 + 0o20) + '\x35' + chr(0b110100), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110010) + '\x34' + chr(1047 - 996), 0b1000), nzTpIcepk0o8(chr(763 - 715) + chr(6292 - 6181) + chr(0b10011 + 0o36) + '\063', 0b1000), nzTpIcepk0o8(chr(0b100101 + 0o13) + '\157' + '\x32' + chr(54) + '\062', 0o10), nzTpIcepk0o8('\060' + chr(0b1011001 + 0o26) + chr(0b110010) + chr(0b110101), ord("\x08")), nzTpIcepk0o8(chr(0b1111 + 0o41) + '\157' + '\x31' + '\x36' + chr(51), 0o10), nzTpIcepk0o8(chr(0b101 + 0o53) + chr(0b1101111) + '\061' + '\x37' + '\x31', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1100001 + 0o16) + chr(0b1110 + 0o45) + chr(233 - 184) + chr(665 - 611), 8), nzTpIcepk0o8(chr(48) + '\x6f' + chr(54) + chr(1116 - 1064), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b110001 + 0o76) + chr(705 - 656) + chr(0b110110) + chr(49), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + '\062' + '\066' + chr(55), 45491 - 45483), nzTpIcepk0o8(chr(48) + chr(111) + '\063' + chr(0b110100) + chr(496 - 443), 0o10), nzTpIcepk0o8(chr(486 - 438) + chr(111) + '\x33', 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110010) + '\x33' + '\x32', 0o10), nzTpIcepk0o8(chr(0b1011 + 0o45) + '\x6f' + chr(0b110111) + chr(55), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(9223 - 9112) + '\x31' + chr(0b110001) + chr(1046 - 997), 0o10), nzTpIcepk0o8(chr(48) + chr(4897 - 4786) + '\x33' + '\067' + chr(0b1011 + 0o47), 2389 - 2381), nzTpIcepk0o8(chr(429 - 381) + '\x6f' + '\x31' + chr(0b110001) + chr(49), 8), nzTpIcepk0o8(chr(0b11111 + 0o21) + chr(0b1101111) + chr(0b101101 + 0o6) + chr(0b110101) + chr(50), 0b1000), nzTpIcepk0o8(chr(235 - 187) + '\157' + '\x31' + chr(49) + chr(0b110100), ord("\x08")), nzTpIcepk0o8(chr(0b1000 + 0o50) + '\157' + chr(1530 - 1479) + chr(0b110001 + 0o1) + chr(0b101101 + 0o11), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101101 + 0o2) + chr(52) + '\x33', 61084 - 61076), nzTpIcepk0o8(chr(1054 - 1006) + chr(0b1101111) + '\061' + '\065' + chr(1375 - 1324), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(0b110000 + 0o2) + chr(51) + chr(55), 0o10), nzTpIcepk0o8(chr(898 - 850) + chr(3323 - 3212) + chr(0b110001) + '\x31' + chr(1613 - 1563), 0o10), nzTpIcepk0o8('\x30' + chr(4695 - 4584) + chr(51) + chr(374 - 323) + chr(53), 0o10), nzTpIcepk0o8(chr(846 - 798) + '\x6f' + '\x33' + '\x34' + chr(53), 8), nzTpIcepk0o8('\060' + '\157' + chr(0b10111 + 0o35) + '\x30', 0o10), nzTpIcepk0o8('\060' + chr(2161 - 2050) + chr(0b110101) + chr(2265 - 2211), ord("\x08")), nzTpIcepk0o8(chr(0b10101 + 0o33) + chr(0b1101111) + chr(0b101000 + 0o11) + '\061' + '\063', 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(2024 - 1976) + chr(0b1101111) + chr(479 - 426) + chr(323 - 275), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xc2'), chr(0b1100100) + chr(0b1000100 + 0o41) + chr(5939 - 5840) + chr(0b10101 + 0o132) + chr(100) + chr(0b1001101 + 0o30))(chr(8649 - 8532) + chr(5546 - 5430) + chr(0b1100110) + '\x2d' + '\x38') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def JBs0b9aAjkOB(hXMPsSrOQzbh, uV9iBiw0y_Mp, H2b8vHaSVxRC=None):
for (B6UAF1zReOyJ, r7AA1pbLjb44) in roI3spqORKae(hXMPsSrOQzbh._values, roI3spqORKae(ES5oEprVxulp(b"\xb5'\x7f\x8a\xa2Oy\xdc\x9a\xb84\xca"), '\x64' + chr(0b0 + 0o145) + chr(6166 - 6067) + chr(0b111001 + 0o66) + chr(6011 - 5911) + chr(0b1001111 + 0o26))('\x75' + chr(116) + chr(103 - 1) + chr(45) + chr(313 - 257)))():
if r7AA1pbLjb44 == uV9iBiw0y_Mp:
return B6UAF1zReOyJ
return H2b8vHaSVxRC |
hubo1016/namedstruct | namedstruct/namedstruct.py | enum.importAll | def importAll(self, gs):
'''
Import all the enumerate values from this enumerate to *gs*
:param gs: usually globals(), a dictionary. At lease __setitem__ should be implemented if not a dictionary.
'''
for k,v in self._values.items():
gs[k] = v | python | def importAll(self, gs):
'''
Import all the enumerate values from this enumerate to *gs*
:param gs: usually globals(), a dictionary. At lease __setitem__ should be implemented if not a dictionary.
'''
for k,v in self._values.items():
gs[k] = v | [
"def",
"importAll",
"(",
"self",
",",
"gs",
")",
":",
"for",
"k",
",",
"v",
"in",
"self",
".",
"_values",
".",
"items",
"(",
")",
":",
"gs",
"[",
"k",
"]",
"=",
"v"
] | Import all the enumerate values from this enumerate to *gs*
:param gs: usually globals(), a dictionary. At lease __setitem__ should be implemented if not a dictionary. | [
"Import",
"all",
"the",
"enumerate",
"values",
"from",
"this",
"enumerate",
"to",
"*",
"gs",
"*",
":",
"param",
"gs",
":",
"usually",
"globals",
"()",
"a",
"dictionary",
".",
"At",
"lease",
"__setitem__",
"should",
"be",
"implemented",
"if",
"not",
"a",
"dictionary",
"."
] | 5039026e0df4ce23003d212358918dbe1a6e1d76 | https://github.com/hubo1016/namedstruct/blob/5039026e0df4ce23003d212358918dbe1a6e1d76/namedstruct/namedstruct.py#L2578-L2584 | train | Import all the enumerate values from this enumerate to gs | 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,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DF7Tq,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(0b110010) + chr(2038 - 1988) + '\x36', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1100011 + 0o14) + chr(0b10101 + 0o42) + '\x33', 31940 - 31932), nzTpIcepk0o8(chr(0b110000) + chr(0b1001010 + 0o45) + '\063' + chr(0b110000 + 0o6) + chr(0b101110 + 0o5), ord("\x08")), nzTpIcepk0o8(chr(0b100011 + 0o15) + chr(111) + chr(0b10111 + 0o34) + '\067' + chr(1931 - 1876), 0b1000), nzTpIcepk0o8(chr(0b101111 + 0o1) + chr(0b1011111 + 0o20) + chr(0b11011 + 0o26) + '\x30' + '\062', 0o10), nzTpIcepk0o8(chr(0b101101 + 0o3) + '\157' + chr(0b101001 + 0o11) + '\063' + chr(48), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(55) + chr(2289 - 2236), 0o10), nzTpIcepk0o8(chr(890 - 842) + '\x6f' + chr(914 - 859) + '\x35', 8), nzTpIcepk0o8(chr(2178 - 2130) + '\x6f' + '\063' + chr(344 - 295) + chr(52), 0o10), nzTpIcepk0o8(chr(1032 - 984) + chr(5980 - 5869) + chr(977 - 928) + chr(1459 - 1408) + chr(1298 - 1248), 44627 - 44619), nzTpIcepk0o8(chr(48) + chr(0b1000000 + 0o57) + '\x32' + chr(0b110110) + chr(0b11111 + 0o22), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b10 + 0o57) + chr(48) + chr(1842 - 1792), 8), nzTpIcepk0o8('\060' + chr(5397 - 5286) + '\x31' + chr(55) + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(2137 - 2089) + '\157' + chr(51) + chr(0b10 + 0o65) + chr(0b100010 + 0o21), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x31' + chr(0b110010) + chr(53), 35685 - 35677), nzTpIcepk0o8(chr(0b100010 + 0o16) + chr(0b110001 + 0o76) + chr(1644 - 1594) + chr(50) + chr(1299 - 1244), 0o10), nzTpIcepk0o8(chr(1301 - 1253) + chr(0b1011011 + 0o24) + '\x32' + '\060' + '\x30', 10199 - 10191), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x31' + '\x33', 45046 - 45038), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x31' + '\x37' + '\x31', 8), nzTpIcepk0o8('\060' + chr(111) + chr(893 - 842) + chr(51) + chr(0b10001 + 0o43), 44806 - 44798), nzTpIcepk0o8('\060' + chr(12292 - 12181) + chr(49) + chr(0b10000 + 0o43) + chr(52), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(1985 - 1935) + chr(0b110000 + 0o7) + chr(0b10 + 0o62), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x32' + '\064' + chr(0b110101 + 0o0), ord("\x08")), nzTpIcepk0o8(chr(0b101111 + 0o1) + chr(0b1101111) + '\x31' + '\x37' + chr(0b1010 + 0o52), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(2377 - 2326) + '\x35' + chr(52), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(3196 - 3085) + chr(0b1 + 0o60) + chr(52) + chr(122 - 68), 58065 - 58057), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\067' + chr(0b1000 + 0o53), 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x33' + '\062' + chr(0b11001 + 0o30), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x32' + chr(2537 - 2485) + '\x35', 8), nzTpIcepk0o8(chr(0b1100 + 0o44) + chr(3267 - 3156) + '\x32' + chr(0b110111 + 0o0) + chr(0b110010 + 0o2), 8), nzTpIcepk0o8('\x30' + chr(0b111001 + 0o66) + '\062' + chr(49) + chr(50), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(2270 - 2159) + chr(0b11 + 0o60) + chr(0b0 + 0o61) + '\x36', 0b1000), nzTpIcepk0o8(chr(0b101 + 0o53) + chr(0b1101111) + chr(2453 - 2403) + chr(0b10110 + 0o36) + chr(0b101000 + 0o17), 0o10), nzTpIcepk0o8('\x30' + chr(5926 - 5815) + chr(49) + chr(0b110100) + '\x35', 15291 - 15283), nzTpIcepk0o8(chr(476 - 428) + chr(0b1101111) + chr(50) + '\066' + '\067', 65517 - 65509), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x31' + '\062' + chr(983 - 935), 1843 - 1835), nzTpIcepk0o8('\x30' + chr(111) + chr(0b11010 + 0o27) + chr(0b1101 + 0o43) + chr(247 - 199), 23036 - 23028), nzTpIcepk0o8('\060' + '\x6f' + chr(0b10 + 0o57) + chr(211 - 160) + chr(0b110011), ord("\x08")), nzTpIcepk0o8(chr(0b1001 + 0o47) + chr(0b1011100 + 0o23) + '\x32' + chr(1190 - 1141) + '\063', 0o10), nzTpIcepk0o8(chr(0b10001 + 0o37) + '\157' + chr(0b101000 + 0o13) + chr(0b11010 + 0o30) + chr(0b100011 + 0o15), 27146 - 27138)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b1010 + 0o46) + '\157' + chr(53) + '\060', 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xb8'), '\144' + chr(0b1100101) + '\143' + chr(0b1101111) + chr(8155 - 8055) + chr(101))(chr(0b1011000 + 0o35) + chr(6393 - 6277) + chr(0b1100110) + chr(1149 - 1104) + chr(56)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def xwuxb28rg_hV(hXMPsSrOQzbh, ik2gkqZ87cZ3):
for (B6UAF1zReOyJ, r7AA1pbLjb44) in roI3spqORKae(hXMPsSrOQzbh._values, roI3spqORKae(ES5oEprVxulp(b'\xcfd\x9d\xb1\x07\xe2u\t\xff,\xe9+'), chr(0b111110 + 0o46) + '\145' + chr(99) + chr(0b110100 + 0o73) + '\x64' + chr(0b1100101))('\x75' + '\164' + chr(0b1100110) + chr(1533 - 1488) + chr(0b111000)))():
ik2gkqZ87cZ3[B6UAF1zReOyJ] = r7AA1pbLjb44 |
hubo1016/namedstruct | namedstruct/namedstruct.py | enum.extend | def extend(self, namespace = None, name = None, **kwargs):
'''
Create a new enumerate with current values merged with new enumerate values
:param namespace: same as __init__
:param name: same as __init__
:param kwargs: same as __init__
:returns: a new enumerate type
'''
if name is None:
name = self._readablename
d = dict(self._values)
d.update(kwargs)
return enum(name, namespace, self, self._bitwise, **d) | python | def extend(self, namespace = None, name = None, **kwargs):
'''
Create a new enumerate with current values merged with new enumerate values
:param namespace: same as __init__
:param name: same as __init__
:param kwargs: same as __init__
:returns: a new enumerate type
'''
if name is None:
name = self._readablename
d = dict(self._values)
d.update(kwargs)
return enum(name, namespace, self, self._bitwise, **d) | [
"def",
"extend",
"(",
"self",
",",
"namespace",
"=",
"None",
",",
"name",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"if",
"name",
"is",
"None",
":",
"name",
"=",
"self",
".",
"_readablename",
"d",
"=",
"dict",
"(",
"self",
".",
"_values",
")",
"d",
".",
"update",
"(",
"kwargs",
")",
"return",
"enum",
"(",
"name",
",",
"namespace",
",",
"self",
",",
"self",
".",
"_bitwise",
",",
"*",
"*",
"d",
")"
] | Create a new enumerate with current values merged with new enumerate values
:param namespace: same as __init__
:param name: same as __init__
:param kwargs: same as __init__
:returns: a new enumerate type | [
"Create",
"a",
"new",
"enumerate",
"with",
"current",
"values",
"merged",
"with",
"new",
"enumerate",
"values",
":",
"param",
"namespace",
":",
"same",
"as",
"__init__",
":",
"param",
"name",
":",
"same",
"as",
"__init__",
":",
"param",
"kwargs",
":",
"same",
"as",
"__init__",
":",
"returns",
":",
"a",
"new",
"enumerate",
"type"
] | 5039026e0df4ce23003d212358918dbe1a6e1d76 | https://github.com/hubo1016/namedstruct/blob/5039026e0df4ce23003d212358918dbe1a6e1d76/namedstruct/namedstruct.py#L2585-L2597 | train | Create a new enumerate with current values merged with new enumerate values
| GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j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qORKae,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(11383 - 11272) + '\x33' + '\064' + '\x33', ord("\x08")), nzTpIcepk0o8(chr(1818 - 1770) + chr(8294 - 8183) + chr(1337 - 1288) + '\x34' + '\x32', 57234 - 57226), nzTpIcepk0o8(chr(641 - 593) + chr(0b110011 + 0o74) + chr(0b10011 + 0o36) + '\060' + '\066', 0b1000), nzTpIcepk0o8('\060' + '\157' + chr(49) + '\x36' + '\060', 4298 - 4290), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(82 - 32) + chr(0b1101 + 0o44) + chr(1208 - 1155), 0o10), nzTpIcepk0o8(chr(0b100110 + 0o12) + chr(0b1101111) + '\x33' + chr(51) + '\064', 37843 - 37835), nzTpIcepk0o8(chr(0b100111 + 0o11) + '\x6f' + '\063' + chr(54), 0o10), nzTpIcepk0o8(chr(138 - 90) + '\157' + chr(0b110011) + chr(0b110100) + '\x32', ord("\x08")), nzTpIcepk0o8(chr(0b100011 + 0o15) + chr(8523 - 8412) + chr(0b110001) + '\x34' + '\066', 0o10), nzTpIcepk0o8('\x30' + chr(111) + '\063' + '\060' + '\x30', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b11111 + 0o120) + chr(2666 - 2611) + '\061', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(825 - 774) + chr(54) + chr(0b110001), 15148 - 15140), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x31' + chr(0b110100) + chr(0b110000 + 0o4), 0o10), nzTpIcepk0o8('\060' + chr(111) + '\x33' + chr(0b10011 + 0o44) + chr(0b110010), 13367 - 13359), nzTpIcepk0o8('\x30' + '\157' + '\x33' + chr(0b110000) + chr(0b100110 + 0o16), 43845 - 43837), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(50) + '\x30' + '\062', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110010) + chr(52) + '\066', ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(0b110100) + chr(50), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(4011 - 3900) + chr(0b110 + 0o60), 0o10), nzTpIcepk0o8(chr(2069 - 2021) + '\x6f' + chr(0b100000 + 0o21) + chr(0b100110 + 0o13), 50118 - 50110), nzTpIcepk0o8('\x30' + chr(1334 - 1223) + chr(51) + chr(51) + chr(0b110110), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(1407 - 1356) + '\067' + chr(0b100001 + 0o23), 62338 - 62330), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110011) + chr(1641 - 1589) + chr(0b110000), 0b1000), nzTpIcepk0o8('\060' + chr(3343 - 3232) + '\x33' + chr(0b1010 + 0o46) + chr(63 - 12), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(49) + chr(706 - 653) + chr(0b110101), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + '\063' + '\x33', 2446 - 2438), nzTpIcepk0o8(chr(48) + chr(741 - 630) + chr(0b110011) + chr(255 - 203) + chr(52), 0o10), nzTpIcepk0o8('\x30' + chr(111) + '\x33' + chr(863 - 815) + chr(0b110111), ord("\x08")), nzTpIcepk0o8(chr(0b11000 + 0o30) + chr(0b1101111) + '\x33' + chr(0b100 + 0o56) + chr(53), 0o10), nzTpIcepk0o8('\x30' + chr(1409 - 1298) + chr(1801 - 1751) + chr(52) + chr(0b10 + 0o60), 0o10), nzTpIcepk0o8('\x30' + '\157' + '\063' + '\065' + chr(0b10111 + 0o40), ord("\x08")), nzTpIcepk0o8(chr(337 - 289) + '\157' + chr(1580 - 1530) + chr(0b101011 + 0o11) + chr(49), 15032 - 15024), nzTpIcepk0o8(chr(1670 - 1622) + chr(1627 - 1516) + chr(0b110001) + chr(0b100101 + 0o20) + chr(1367 - 1318), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(9041 - 8930) + chr(954 - 903) + '\064' + '\061', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(1286 - 1175) + '\x37' + chr(0b110110), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(5433 - 5322) + '\063' + '\x34' + chr(821 - 772), 8), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(52) + chr(0b110100), 0o10), nzTpIcepk0o8('\x30' + chr(0b100010 + 0o115) + chr(0b101000 + 0o13) + '\061' + '\x36', 51115 - 51107), nzTpIcepk0o8('\060' + chr(0b1010010 + 0o35) + '\063' + chr(0b110010) + chr(0b110111 + 0o0), 59364 - 59356), nzTpIcepk0o8('\x30' + chr(0b11001 + 0o126) + '\x33' + chr(0b100010 + 0o23) + '\x35', ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b100100 + 0o14) + chr(0b1101111) + '\065' + chr(1001 - 953), ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xcd'), chr(1830 - 1730) + chr(0b101001 + 0o74) + '\143' + '\157' + '\x64' + '\145')('\165' + '\164' + '\x66' + '\055' + chr(0b1001 + 0o57)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def T_3ModLW_Bbq(hXMPsSrOQzbh, BawhyueOIhlf=None, SLVB2BPA_mIe=None, **q5n0sHDDTy90):
if SLVB2BPA_mIe is None:
SLVB2BPA_mIe = hXMPsSrOQzbh._readablename
vPPlOXQgR3SM = znjnJWK64FDT(hXMPsSrOQzbh.NisoCHjtrfMU)
roI3spqORKae(vPPlOXQgR3SM, roI3spqORKae(ES5oEprVxulp(b'\xa9=-B\xc4\x85\\\xd3\x05\xa5H\x9f'), chr(0b10111 + 0o115) + chr(0b1100101) + '\x63' + '\157' + chr(100) + chr(101))(chr(3982 - 3865) + chr(0b1110100) + chr(102) + '\x2d' + chr(0b11100 + 0o34)))(q5n0sHDDTy90)
return p6_oLiI_IXEH(SLVB2BPA_mIe, BawhyueOIhlf, hXMPsSrOQzbh, roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xbc\x00/\x04\xfa\xb5m\x87'), '\x64' + chr(4655 - 4554) + '\143' + chr(4142 - 4031) + '\144' + chr(0b101110 + 0o67))(chr(0b1110101) + chr(116) + chr(102) + '\055' + chr(0b111000))), **vPPlOXQgR3SM) |
hubo1016/namedstruct | namedstruct/namedstruct.py | enum.formatter | def formatter(self, value):
'''
Format a enumerate value to enumerate names if possible. Used to generate human readable
dump result.
'''
if not self._bitwise:
n = self.getName(value)
if n is None:
return value
else:
return n
else:
names = []
for k,v in sorted(self._values.items(), key=lambda x: x[1], reverse=True):
if (v & value) == v:
names.append(k)
value = value ^ v
names.reverse()
if value != 0:
names.append(hex(value))
if not names:
return 0
return ' '.join(names) | python | def formatter(self, value):
'''
Format a enumerate value to enumerate names if possible. Used to generate human readable
dump result.
'''
if not self._bitwise:
n = self.getName(value)
if n is None:
return value
else:
return n
else:
names = []
for k,v in sorted(self._values.items(), key=lambda x: x[1], reverse=True):
if (v & value) == v:
names.append(k)
value = value ^ v
names.reverse()
if value != 0:
names.append(hex(value))
if not names:
return 0
return ' '.join(names) | [
"def",
"formatter",
"(",
"self",
",",
"value",
")",
":",
"if",
"not",
"self",
".",
"_bitwise",
":",
"n",
"=",
"self",
".",
"getName",
"(",
"value",
")",
"if",
"n",
"is",
"None",
":",
"return",
"value",
"else",
":",
"return",
"n",
"else",
":",
"names",
"=",
"[",
"]",
"for",
"k",
",",
"v",
"in",
"sorted",
"(",
"self",
".",
"_values",
".",
"items",
"(",
")",
",",
"key",
"=",
"lambda",
"x",
":",
"x",
"[",
"1",
"]",
",",
"reverse",
"=",
"True",
")",
":",
"if",
"(",
"v",
"&",
"value",
")",
"==",
"v",
":",
"names",
".",
"append",
"(",
"k",
")",
"value",
"=",
"value",
"^",
"v",
"names",
".",
"reverse",
"(",
")",
"if",
"value",
"!=",
"0",
":",
"names",
".",
"append",
"(",
"hex",
"(",
"value",
")",
")",
"if",
"not",
"names",
":",
"return",
"0",
"return",
"' '",
".",
"join",
"(",
"names",
")"
] | Format a enumerate value to enumerate names if possible. Used to generate human readable
dump result. | [
"Format",
"a",
"enumerate",
"value",
"to",
"enumerate",
"names",
"if",
"possible",
".",
"Used",
"to",
"generate",
"human",
"readable",
"dump",
"result",
"."
] | 5039026e0df4ce23003d212358918dbe1a6e1d76 | https://github.com/hubo1016/namedstruct/blob/5039026e0df4ce23003d212358918dbe1a6e1d76/namedstruct/namedstruct.py#L2626-L2648 | train | Format a enumerate value to enumerate names if possible. Used to generate human readable a dump result. | GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3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,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(2392 - 2281) + '\x32' + '\062' + chr(681 - 627), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + '\062' + chr(52) + chr(51), 49626 - 49618), nzTpIcepk0o8(chr(48) + '\x6f' + '\061' + chr(0b110110), 0b1000), nzTpIcepk0o8(chr(558 - 510) + '\x6f' + '\x31' + '\064' + '\x36', 52106 - 52098), nzTpIcepk0o8(chr(203 - 155) + chr(111) + chr(51) + chr(0b110001), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(782 - 733) + chr(0b110001) + '\x34', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(11353 - 11242) + chr(899 - 849) + chr(55) + chr(51), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + '\x32' + chr(49) + '\x37', ord("\x08")), nzTpIcepk0o8(chr(0b1110 + 0o42) + chr(0b11010 + 0o125) + chr(607 - 555) + chr(0b110000), 37895 - 37887), nzTpIcepk0o8(chr(0b100101 + 0o13) + chr(111) + chr(0b101010 + 0o15), 0o10), nzTpIcepk0o8(chr(1398 - 1350) + '\157' + chr(0b11 + 0o63) + chr(2207 - 2158), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b110010 + 0o75) + '\x32' + chr(0b110110), 0b1000), nzTpIcepk0o8('\060' + chr(0b1011010 + 0o25) + '\x33' + '\062' + chr(0b110110), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110001) + chr(0b110010) + chr(50), ord("\x08")), nzTpIcepk0o8(chr(0b101100 + 0o4) + chr(0b100 + 0o153) + chr(0b110001) + chr(49) + chr(0b0 + 0o63), 28162 - 28154), nzTpIcepk0o8(chr(48) + chr(0b1010101 + 0o32) + chr(50) + chr(2121 - 2066) + chr(0b10 + 0o64), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110001) + '\062', 35615 - 35607), nzTpIcepk0o8(chr(0b110000) + chr(3487 - 3376) + '\062' + chr(48) + chr(54), 0b1000), nzTpIcepk0o8('\060' + '\157' + chr(290 - 241) + chr(0b110001) + chr(51), 8), nzTpIcepk0o8('\x30' + chr(0b1011000 + 0o27) + '\x32' + '\x35' + chr(51), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(4431 - 4320) + chr(50) + chr(51) + chr(0b110000), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(55) + '\066', ord("\x08")), nzTpIcepk0o8(chr(1236 - 1188) + chr(0b1101111) + chr(212 - 162) + chr(0b110100), 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(1611 - 1560) + '\x33' + chr(0b110010), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(51) + '\x33' + '\066', 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(50) + '\066' + chr(1807 - 1753), ord("\x08")), nzTpIcepk0o8('\060' + chr(10212 - 10101) + chr(0b110001) + '\x32' + chr(509 - 459), 8), nzTpIcepk0o8('\x30' + '\157' + '\x32' + '\060' + '\x36', 8), nzTpIcepk0o8('\060' + '\157' + chr(0b110010) + '\064' + chr(0b100111 + 0o13), 0o10), nzTpIcepk0o8(chr(839 - 791) + chr(3513 - 3402) + chr(2441 - 2391) + '\x33', 48693 - 48685), nzTpIcepk0o8(chr(983 - 935) + chr(0b1110 + 0o141) + '\062' + chr(0b110101) + chr(112 - 60), 0o10), nzTpIcepk0o8(chr(1493 - 1445) + '\157' + chr(0b110010) + '\x33' + chr(1816 - 1761), 50002 - 49994), nzTpIcepk0o8(chr(1873 - 1825) + chr(111) + chr(0b0 + 0o62) + chr(0b110100) + '\x35', 0o10), nzTpIcepk0o8('\060' + '\157' + chr(50) + chr(0b10000 + 0o46) + chr(0b11000 + 0o35), 29707 - 29699), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x33' + chr(636 - 581) + '\065', 0o10), nzTpIcepk0o8(chr(0b110 + 0o52) + '\157' + chr(0b101010 + 0o10) + '\x34', 8), nzTpIcepk0o8(chr(0b110000) + chr(5676 - 5565) + chr(1698 - 1647) + chr(0b11011 + 0o34) + '\x30', ord("\x08")), nzTpIcepk0o8(chr(1194 - 1146) + chr(111) + '\065' + chr(52), 0o10), nzTpIcepk0o8(chr(48) + '\157' + '\063' + chr(124 - 71) + '\061', 0o10), nzTpIcepk0o8(chr(1591 - 1543) + chr(6801 - 6690) + chr(0b11010 + 0o31) + chr(54) + '\060', 44759 - 44751)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(1664 - 1616) + chr(111) + chr(2620 - 2567) + chr(48), ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xb8'), '\144' + '\x65' + '\143' + chr(3599 - 3488) + '\x64' + chr(2597 - 2496))('\x75' + chr(116) + chr(8038 - 7936) + chr(0b11111 + 0o16) + chr(0b1101 + 0o53)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def Cn6yf2gY02SW(hXMPsSrOQzbh, uV9iBiw0y_Mp):
if not roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xc9\xc1g\x12n%\xc8\xea'), chr(8453 - 8353) + chr(101) + chr(0b1100011) + chr(1917 - 1806) + chr(8009 - 7909) + chr(101))(chr(117) + '\x74' + chr(102) + chr(1822 - 1777) + chr(56))):
NoZxuO7wjArS = hXMPsSrOQzbh.JBs0b9aAjkOB(uV9iBiw0y_Mp)
if NoZxuO7wjArS is None:
return uV9iBiw0y_Mp
else:
return NoZxuO7wjArS
else:
TMMrjsiU6eED = []
for (B6UAF1zReOyJ, r7AA1pbLjb44) in V3OlOVg98A85(roI3spqORKae(hXMPsSrOQzbh._values, roI3spqORKae(ES5oEprVxulp(b'\xcf\xfc`(\\6\xf3\xbb\x13qi\x7f'), chr(0b10 + 0o142) + '\x65' + chr(99) + '\157' + chr(4910 - 4810) + '\x65')(chr(0b110101 + 0o100) + '\x74' + chr(9370 - 9268) + chr(1817 - 1772) + '\070'))(), key=lambda bI5jsQ9OkQtj: bI5jsQ9OkQtj[nzTpIcepk0o8('\060' + '\x6f' + chr(49), 0b1000)], reverse=nzTpIcepk0o8('\060' + '\x6f' + '\x31', 8)):
if r7AA1pbLjb44 & uV9iBiw0y_Mp == r7AA1pbLjb44:
roI3spqORKae(TMMrjsiU6eED, roI3spqORKae(ES5oEprVxulp(b'\xde\xf7]Ra+\xfc\xe0Jhd#'), '\144' + chr(101) + chr(0b1100011) + chr(0b1101111) + chr(6402 - 6302) + chr(0b1100101))(chr(6619 - 6502) + chr(10106 - 9990) + '\146' + chr(0b101 + 0o50) + chr(56)))(B6UAF1zReOyJ)
uV9iBiw0y_Mp = uV9iBiw0y_Mp ^ r7AA1pbLjb44
roI3spqORKae(TMMrjsiU6eED, roI3spqORKae(ES5oEprVxulp(b'\xf1\x96{!\x7f\x02\x8a\xe7WDGu'), chr(6452 - 6352) + chr(0b1001111 + 0o26) + chr(0b100100 + 0o77) + '\157' + chr(0b1100100) + chr(101))(chr(0b100011 + 0o122) + chr(0b1110100) + '\x66' + chr(45) + '\070'))()
if uV9iBiw0y_Mp != nzTpIcepk0o8('\060' + '\x6f' + chr(1037 - 989), 0b1000):
roI3spqORKae(TMMrjsiU6eED, roI3spqORKae(ES5oEprVxulp(b'\xde\xf7]Ra+\xfc\xe0Jhd#'), '\x64' + '\145' + chr(99) + chr(0b111011 + 0o64) + '\x64' + '\145')('\x75' + chr(0b1110100) + chr(102) + '\x2d' + chr(3125 - 3069)))(vgO67Nkl7Kt9(uV9iBiw0y_Mp))
if not TMMrjsiU6eED:
return nzTpIcepk0o8('\060' + chr(3478 - 3367) + chr(0b1 + 0o57), 8)
return roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\xb6'), chr(100) + chr(0b1000011 + 0o42) + chr(0b101001 + 0o72) + chr(0b1101111) + chr(0b1100100) + '\x65')(chr(117) + chr(12444 - 12328) + '\146' + '\055' + '\070'), roI3spqORKae(ES5oEprVxulp(b'\xcf\x97w+ \x0e\xd8\xe9tD\x7fg'), chr(100) + '\145' + chr(1822 - 1723) + chr(111) + '\x64' + '\x65')(chr(0b1110101) + '\164' + chr(0b1100110) + chr(0b1100 + 0o41) + '\x38'))(TMMrjsiU6eED) |
hubo1016/namedstruct | namedstruct/namedstruct.py | OptionalParser.packto | def packto(self, namedstruct, stream):
"""
Pack a struct to a stream
"""
if hasattr(namedstruct, self.name):
return _tostream(self.basetypeparser, getattr(namedstruct, self.name), stream, True)
else:
return 0 | python | def packto(self, namedstruct, stream):
"""
Pack a struct to a stream
"""
if hasattr(namedstruct, self.name):
return _tostream(self.basetypeparser, getattr(namedstruct, self.name), stream, True)
else:
return 0 | [
"def",
"packto",
"(",
"self",
",",
"namedstruct",
",",
"stream",
")",
":",
"if",
"hasattr",
"(",
"namedstruct",
",",
"self",
".",
"name",
")",
":",
"return",
"_tostream",
"(",
"self",
".",
"basetypeparser",
",",
"getattr",
"(",
"namedstruct",
",",
"self",
".",
"name",
")",
",",
"stream",
",",
"True",
")",
"else",
":",
"return",
"0"
] | Pack a struct to a stream | [
"Pack",
"a",
"struct",
"to",
"a",
"stream"
] | 5039026e0df4ce23003d212358918dbe1a6e1d76 | https://github.com/hubo1016/namedstruct/blob/5039026e0df4ce23003d212358918dbe1a6e1d76/namedstruct/namedstruct.py#L2764-L2771 | train | Pack a struct to a stream | 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,Wdo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,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' + chr(2005 - 1956) + chr(2017 - 1964) + chr(49), 1550 - 1542), nzTpIcepk0o8(chr(0b110000) + chr(0b11111 + 0o120) + chr(0b10001 + 0o40) + chr(0b101010 + 0o6), ord("\x08")), nzTpIcepk0o8(chr(1867 - 1819) + chr(0b111010 + 0o65) + chr(50) + '\x34' + chr(345 - 296), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101100 + 0o3) + '\063' + '\060' + '\x35', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1010011 + 0o34) + chr(0b110001) + '\x36' + chr(0b110101), 61333 - 61325), nzTpIcepk0o8(chr(921 - 873) + chr(0b1100010 + 0o15) + '\062' + '\062' + chr(0b100 + 0o60), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(258 - 207) + '\x36' + '\062', ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + '\x31' + chr(49) + '\x32', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + '\067' + chr(0b100 + 0o56), 42160 - 42152), nzTpIcepk0o8(chr(48) + chr(8984 - 8873) + chr(1414 - 1365) + '\062' + chr(54), 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110110) + '\x30', 0b1000), nzTpIcepk0o8(chr(48) + '\157' + '\061' + '\x35' + chr(53), 0o10), nzTpIcepk0o8(chr(0b100110 + 0o12) + chr(0b100011 + 0o114) + chr(0b110010) + chr(1575 - 1524), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + '\062' + '\x36' + chr(0b101100 + 0o11), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + '\062', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(54) + chr(48), 8), nzTpIcepk0o8(chr(2178 - 2130) + chr(0b0 + 0o157) + chr(50) + chr(0b110010), 0b1000), nzTpIcepk0o8(chr(0b101101 + 0o3) + chr(0b1101111) + chr(51) + chr(0b110110) + chr(0b110111), ord("\x08")), nzTpIcepk0o8(chr(0b10001 + 0o37) + chr(111) + chr(0b110011) + chr(0b1 + 0o62), ord("\x08")), nzTpIcepk0o8(chr(1696 - 1648) + chr(759 - 648) + chr(0b1101 + 0o44) + chr(673 - 624) + chr(0b101010 + 0o12), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b10010 + 0o135) + chr(0b110011) + chr(48) + '\064', 5676 - 5668), nzTpIcepk0o8(chr(0b100101 + 0o13) + chr(0b100111 + 0o110) + chr(51) + chr(0b110001) + chr(51), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + '\062' + chr(372 - 324) + '\x35', 0b1000), nzTpIcepk0o8(chr(0b1110 + 0o42) + '\x6f' + chr(150 - 98) + '\065', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + '\x31' + chr(0b110010) + chr(55), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(51) + '\x37' + '\067', 11803 - 11795), nzTpIcepk0o8(chr(0b1111 + 0o41) + chr(0b1101101 + 0o2) + chr(0b10111 + 0o34) + '\x36' + chr(236 - 183), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110011) + chr(1661 - 1610) + chr(1517 - 1463), 0o10), nzTpIcepk0o8('\x30' + '\157' + '\063' + chr(0b110011) + '\x35', 0b1000), nzTpIcepk0o8(chr(1223 - 1175) + chr(0b1101111) + '\x33' + chr(0b10010 + 0o44) + chr(52), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110011) + '\064' + chr(278 - 228), 0b1000), nzTpIcepk0o8('\060' + chr(0b1011001 + 0o26) + '\x31' + chr(1120 - 1067) + chr(62 - 13), 8), nzTpIcepk0o8(chr(0b111 + 0o51) + '\x6f' + chr(49) + '\063' + chr(0b100000 + 0o21), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1010110 + 0o31) + chr(0b110001) + '\064' + chr(0b110 + 0o56), ord("\x08")), nzTpIcepk0o8(chr(0b101100 + 0o4) + chr(1301 - 1190) + chr(0b100000 + 0o22) + chr(0b110000) + chr(658 - 603), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(50) + chr(1087 - 1033) + chr(50), 45528 - 45520), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\061' + '\x36' + chr(0b101001 + 0o14), 8), nzTpIcepk0o8(chr(0b1111 + 0o41) + chr(0b1111 + 0o140) + chr(575 - 524) + chr(884 - 834), 0o10), nzTpIcepk0o8('\060' + '\157' + chr(0b10110 + 0o34) + chr(2375 - 2320) + chr(0b110000), 10682 - 10674), nzTpIcepk0o8(chr(48) + chr(111) + chr(52), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110101) + chr(48), 46165 - 46157)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'G'), chr(100) + chr(4205 - 4104) + '\143' + chr(0b1101111) + chr(0b1100100) + '\x65')('\x75' + chr(0b1000010 + 0o62) + chr(0b101101 + 0o71) + chr(0b10 + 0o53) + chr(0b1101 + 0o53)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def edpmAnKfPLVU(hXMPsSrOQzbh, TtOW53BH7FVE, ztC3O2ZXmsJr):
if dRKdVnHPFq7C(TtOW53BH7FVE, roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b':D\xf7\x87G\xd6\xa2\x0be;y\x08'), chr(3596 - 3496) + '\145' + '\143' + chr(0b1101111) + '\144' + chr(101))(chr(117) + '\164' + '\146' + chr(64 - 19) + '\x38'))):
return i4g20znNpwUV(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x0bi\xd2\xa0\x01\xed\x82/J7B\x1ev\xc7'), '\x64' + chr(0b1100101) + chr(99) + chr(0b1101111) + '\x64' + chr(0b1100101))(chr(0b111 + 0o156) + chr(0b101111 + 0o105) + '\146' + chr(45) + chr(2859 - 2803))), roI3spqORKae(TtOW53BH7FVE, roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b':D\xf7\x87G\xd6\xa2\x0be;y\x08'), '\x64' + chr(0b1100101) + chr(0b110111 + 0o54) + chr(111) + chr(100) + '\x65')('\165' + chr(116) + chr(0b1100110) + chr(0b1010 + 0o43) + chr(2913 - 2857)))), ztC3O2ZXmsJr, nzTpIcepk0o8(chr(2256 - 2208) + chr(11665 - 11554) + '\x31', 30080 - 30072))
else:
return nzTpIcepk0o8(chr(504 - 456) + chr(0b1101111) + '\x30', 0o10) |
hubo1016/namedstruct | namedstruct/namedstruct.py | OptionalParser.prepack | def prepack(self, namedstruct, skip_self=False, skip_sub=False):
'''
Run prepack
'''
if not skip_sub and hasattr(namedstruct, self.name) and hasattr(self.basetypeparser, 'fullprepack'):
self.basetypeparser.fullprepack(getattr(namedstruct, self.name))
Parser.prepack(self, namedstruct, skip_self, skip_sub) | python | def prepack(self, namedstruct, skip_self=False, skip_sub=False):
'''
Run prepack
'''
if not skip_sub and hasattr(namedstruct, self.name) and hasattr(self.basetypeparser, 'fullprepack'):
self.basetypeparser.fullprepack(getattr(namedstruct, self.name))
Parser.prepack(self, namedstruct, skip_self, skip_sub) | [
"def",
"prepack",
"(",
"self",
",",
"namedstruct",
",",
"skip_self",
"=",
"False",
",",
"skip_sub",
"=",
"False",
")",
":",
"if",
"not",
"skip_sub",
"and",
"hasattr",
"(",
"namedstruct",
",",
"self",
".",
"name",
")",
"and",
"hasattr",
"(",
"self",
".",
"basetypeparser",
",",
"'fullprepack'",
")",
":",
"self",
".",
"basetypeparser",
".",
"fullprepack",
"(",
"getattr",
"(",
"namedstruct",
",",
"self",
".",
"name",
")",
")",
"Parser",
".",
"prepack",
"(",
"self",
",",
"namedstruct",
",",
"skip_self",
",",
"skip_sub",
")"
] | Run prepack | [
"Run",
"prepack"
] | 5039026e0df4ce23003d212358918dbe1a6e1d76 | https://github.com/hubo1016/namedstruct/blob/5039026e0df4ce23003d212358918dbe1a6e1d76/namedstruct/namedstruct.py#L2779-L2785 | train | Run prepack on the namedstruct. | 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,JD7LadPikpP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Lg8O5zPT,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(2013 - 1965) + chr(0b1101111) + '\061', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110010) + chr(0b10 + 0o62) + chr(55), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b101011 + 0o104) + chr(0b100101 + 0o14) + '\x34' + chr(52), 46111 - 46103), nzTpIcepk0o8(chr(0b0 + 0o60) + chr(0b1101111) + chr(2228 - 2177) + chr(1889 - 1835), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(2412 - 2361) + '\x31' + chr(55), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\061' + chr(0b110110) + chr(2821 - 2767), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101110 + 0o1) + '\x33' + chr(1808 - 1753) + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(0b100 + 0o54) + chr(111) + chr(0b110010) + chr(51) + chr(0b1100 + 0o51), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b1101 + 0o45) + chr(48) + '\064', 0b1000), nzTpIcepk0o8('\060' + '\157' + '\x33' + '\x33' + chr(2026 - 1978), 46406 - 46398), nzTpIcepk0o8('\x30' + '\x6f' + '\063' + chr(55) + '\x31', 8), nzTpIcepk0o8(chr(1759 - 1711) + '\x6f' + '\x32' + '\063' + chr(2396 - 2342), 0b1000), nzTpIcepk0o8('\060' + chr(822 - 711) + chr(51) + '\x32' + chr(826 - 777), 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(49) + chr(0b110101) + '\x35', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110001) + chr(1094 - 1044) + chr(327 - 273), 0o10), nzTpIcepk0o8('\060' + chr(11001 - 10890) + chr(0b110011) + '\061' + chr(0b111 + 0o53), ord("\x08")), nzTpIcepk0o8(chr(2099 - 2051) + chr(8208 - 8097) + '\062' + chr(54) + chr(262 - 212), 56150 - 56142), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(51) + '\062' + chr(0b110100), 25680 - 25672), nzTpIcepk0o8('\060' + '\x6f' + chr(49) + '\062' + chr(1034 - 981), 0o10), nzTpIcepk0o8(chr(0b10011 + 0o35) + chr(0b1010000 + 0o37) + '\x33' + chr(1002 - 952), ord("\x08")), nzTpIcepk0o8('\060' + chr(9591 - 9480) + '\063' + chr(53) + '\x37', 0o10), nzTpIcepk0o8(chr(0b101110 + 0o2) + chr(0b1101111) + '\x31' + chr(0b100101 + 0o13) + '\065', 43208 - 43200), nzTpIcepk0o8(chr(0b0 + 0o60) + chr(2547 - 2436) + chr(757 - 706) + '\x30' + chr(2018 - 1970), 0b1000), nzTpIcepk0o8(chr(185 - 137) + chr(0b1010000 + 0o37) + '\063' + '\x34' + '\065', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(9361 - 9250) + chr(2360 - 2311) + '\065' + chr(55), 56677 - 56669), nzTpIcepk0o8(chr(0b101110 + 0o2) + '\x6f' + '\x35' + chr(0b110111), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(2158 - 2108) + chr(0b110101), 17083 - 17075), nzTpIcepk0o8('\060' + chr(0b111110 + 0o61) + '\x32' + chr(0b110100) + chr(53), 0o10), nzTpIcepk0o8(chr(48) + chr(3014 - 2903) + '\063' + '\066', 8), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110010) + chr(0b110100) + chr(48), 57036 - 57028), nzTpIcepk0o8('\060' + '\157' + chr(53) + chr(0b101 + 0o53), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110010) + chr(1849 - 1798) + chr(0b10011 + 0o41), 64997 - 64989), nzTpIcepk0o8('\060' + chr(0b1100010 + 0o15) + chr(0b101011 + 0o7) + chr(0b110111) + chr(0b110111), 0o10), nzTpIcepk0o8(chr(1226 - 1178) + chr(111) + chr(0b110001), 8), nzTpIcepk0o8(chr(0b100111 + 0o11) + '\x6f' + chr(0b110001) + '\x32' + chr(55 - 3), ord("\x08")), nzTpIcepk0o8(chr(1473 - 1425) + chr(111) + chr(0b101001 + 0o10) + chr(51) + chr(0b110011), 0o10), nzTpIcepk0o8('\060' + chr(111) + '\063' + '\x32' + chr(0b1001 + 0o56), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(9169 - 9058) + chr(0b11001 + 0o30) + chr(0b101 + 0o62) + '\063', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110011 + 0o3) + chr(0b110100), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(479 - 428) + chr(0b110101) + '\067', 8)][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + chr(0b1101111) + 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(8536 - 8436) + chr(0b1100101) + chr(0b1010 + 0o131) + chr(0b1101111) + '\x64' + '\x65')('\x75' + '\x74' + chr(0b1100110) + chr(45) + '\070') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def qVM7sCwFQOHy(hXMPsSrOQzbh, TtOW53BH7FVE, vOmJfkYJreC3=nzTpIcepk0o8(chr(916 - 868) + chr(8243 - 8132) + chr(0b11111 + 0o21), 0b1000), Lm72N1CRBFhv=nzTpIcepk0o8('\060' + chr(0b101110 + 0o101) + chr(48), 8)):
if not Lm72N1CRBFhv and dRKdVnHPFq7C(TtOW53BH7FVE, roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'R\xeb2\\\xfd4\xa9\xdc\xdb\xb5\xb0\xfb'), chr(100) + '\145' + '\143' + chr(5329 - 5218) + '\144' + chr(101))('\165' + chr(0b1011100 + 0o30) + chr(0b1100110) + chr(0b101101) + chr(0b101011 + 0o15)))) and dRKdVnHPFq7C(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'c\xc6\x17{\xbb\x0f\x89\xf8\xf4\xb9\x8b\xed\xb4\x1f'), chr(0b1001 + 0o133) + chr(0b1100101) + chr(0b1000011 + 0o40) + chr(0b1101111 + 0o0) + '\x64' + '\145')('\165' + chr(0b1110100) + chr(102) + chr(45) + '\070')), roI3spqORKae(ES5oEprVxulp(b'g\xd2\x08r\xbf\x04\x9c\xed\xe5\xbb\x92'), chr(0b11011 + 0o111) + chr(0b10110 + 0o117) + '\x63' + chr(111) + chr(100) + '\145')(chr(0b1101011 + 0o12) + chr(0b1110100) + '\146' + chr(0b1010 + 0o43) + chr(605 - 549))):
roI3spqORKae(hXMPsSrOQzbh.basetypeparser, roI3spqORKae(ES5oEprVxulp(b'g\xd2\x08r\xbf\x04\x9c\xed\xe5\xbb\x92'), chr(0b10100 + 0o120) + chr(3899 - 3798) + '\x63' + chr(0b1101111) + chr(0b1100100) + chr(6097 - 5996))(chr(9073 - 8956) + chr(116) + chr(102) + chr(0b101101) + chr(0b111000)))(roI3spqORKae(TtOW53BH7FVE, roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'R\xeb2\\\xfd4\xa9\xdc\xdb\xb5\xb0\xfb'), chr(0b1100100) + '\145' + '\x63' + chr(0b1000 + 0o147) + chr(0b1100100) + chr(0b1001011 + 0o32))(chr(0b1110101) + chr(116) + chr(102) + chr(0b101101) + chr(0b101100 + 0o14)))))
roI3spqORKae(Jny8t9tNuyse, roI3spqORKae(ES5oEprVxulp(b'q\xd5\x01n\xae\x15\x92'), '\x64' + chr(0b1100101) + '\x63' + '\x6f' + '\x64' + chr(0b11110 + 0o107))(chr(117) + chr(0b1110100) + chr(1710 - 1608) + chr(0b10110 + 0o27) + chr(0b110 + 0o62)))(hXMPsSrOQzbh, TtOW53BH7FVE, vOmJfkYJreC3, Lm72N1CRBFhv) |
hubo1016/namedstruct | namedstruct/namedstruct.py | DArrayParser.prepack | def prepack(self, namedstruct, skip_self=False, skip_sub=False):
'''
Run prepack
'''
if not skip_sub and hasattr(self.innertypeparser, 'fullprepack'):
for v in getattr(namedstruct, self.name):
self.innertypeparser.fullprepack(v)
Parser.prepack(self, namedstruct, skip_self, skip_sub) | python | def prepack(self, namedstruct, skip_self=False, skip_sub=False):
'''
Run prepack
'''
if not skip_sub and hasattr(self.innertypeparser, 'fullprepack'):
for v in getattr(namedstruct, self.name):
self.innertypeparser.fullprepack(v)
Parser.prepack(self, namedstruct, skip_self, skip_sub) | [
"def",
"prepack",
"(",
"self",
",",
"namedstruct",
",",
"skip_self",
"=",
"False",
",",
"skip_sub",
"=",
"False",
")",
":",
"if",
"not",
"skip_sub",
"and",
"hasattr",
"(",
"self",
".",
"innertypeparser",
",",
"'fullprepack'",
")",
":",
"for",
"v",
"in",
"getattr",
"(",
"namedstruct",
",",
"self",
".",
"name",
")",
":",
"self",
".",
"innertypeparser",
".",
"fullprepack",
"(",
"v",
")",
"Parser",
".",
"prepack",
"(",
"self",
",",
"namedstruct",
",",
"skip_self",
",",
"skip_sub",
")"
] | Run prepack | [
"Run",
"prepack"
] | 5039026e0df4ce23003d212358918dbe1a6e1d76 | https://github.com/hubo1016/namedstruct/blob/5039026e0df4ce23003d212358918dbe1a6e1d76/namedstruct/namedstruct.py#L2928-L2935 | train | Run prepack on the namedstruct. | 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,WbNHlD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YiXoIEhJY,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) + '\066' + chr(831 - 778), 0b1000), nzTpIcepk0o8(chr(0b1000 + 0o50) + '\157' + '\062' + '\064' + chr(0b1101 + 0o47), 0o10), nzTpIcepk0o8(chr(0b1101 + 0o43) + chr(111) + '\063' + chr(0b110011) + chr(51), 0o10), nzTpIcepk0o8(chr(82 - 34) + '\157' + chr(0b101000 + 0o15) + '\x32', ord("\x08")), nzTpIcepk0o8(chr(1125 - 1077) + chr(111) + '\062' + chr(48) + chr(0b110110), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + '\x33' + chr(2416 - 2363), 61262 - 61254), nzTpIcepk0o8(chr(48) + '\x6f' + chr(51) + chr(0b110111) + chr(55), 0b1000), nzTpIcepk0o8(chr(1581 - 1533) + chr(111) + '\x32' + '\060' + '\x36', 8), nzTpIcepk0o8('\x30' + chr(0b101001 + 0o106) + '\062' + chr(0b101110 + 0o5) + chr(51), 0b1000), nzTpIcepk0o8('\060' + '\157' + chr(0b110001) + chr(0b100011 + 0o21) + chr(0b110110), 60402 - 60394), nzTpIcepk0o8(chr(0b100000 + 0o20) + chr(0b1011000 + 0o27) + chr(1143 - 1092) + '\x31' + chr(0b111 + 0o51), 17734 - 17726), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x33' + '\x30' + chr(2271 - 2219), 0b1000), nzTpIcepk0o8('\060' + chr(0b1000111 + 0o50) + chr(1736 - 1687) + chr(1636 - 1583) + chr(0b110010), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\062' + chr(49) + '\066', 0b1000), nzTpIcepk0o8(chr(0b1101 + 0o43) + '\x6f' + '\x33' + chr(50) + chr(54), 0o10), nzTpIcepk0o8('\x30' + chr(0b1100011 + 0o14) + chr(51) + chr(51) + '\x31', 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(49) + '\x33' + '\x34', 0o10), nzTpIcepk0o8(chr(1700 - 1652) + chr(111) + chr(307 - 256) + '\x35' + chr(52), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + '\066' + chr(50), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(49) + chr(0b110111) + chr(921 - 868), ord("\x08")), nzTpIcepk0o8(chr(1517 - 1469) + chr(3386 - 3275) + chr(0b110011) + chr(678 - 627) + chr(0b110100), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1100100 + 0o13) + chr(0b10010 + 0o37) + chr(1316 - 1264) + chr(2604 - 2552), 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(49) + '\x31' + '\x32', 0b1000), nzTpIcepk0o8('\060' + '\157' + chr(50) + '\x34', 0o10), nzTpIcepk0o8(chr(0b1000 + 0o50) + chr(4936 - 4825) + '\062' + chr(0b110111) + chr(0b111 + 0o55), ord("\x08")), nzTpIcepk0o8(chr(290 - 242) + chr(0b1011111 + 0o20) + chr(285 - 235) + chr(52) + '\061', 0b1000), nzTpIcepk0o8(chr(1539 - 1491) + chr(111) + chr(0b11110 + 0o24) + chr(50) + '\064', 0b1000), nzTpIcepk0o8(chr(0b10100 + 0o34) + chr(111) + '\x33' + chr(51) + '\x34', 8), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x32' + chr(0b1100 + 0o47) + chr(51), 8), nzTpIcepk0o8('\060' + chr(111) + '\062' + chr(979 - 925) + chr(48), ord("\x08")), nzTpIcepk0o8(chr(87 - 39) + chr(0b1101111) + chr(0b111 + 0o54) + chr(294 - 239) + chr(0b110111), 8), nzTpIcepk0o8(chr(0b1110 + 0o42) + chr(0b11001 + 0o126) + '\061' + chr(580 - 531) + chr(0b110100), 0o10), nzTpIcepk0o8('\060' + '\157' + '\x31' + chr(2182 - 2129) + chr(0b110001), 0o10), nzTpIcepk0o8(chr(750 - 702) + chr(111) + chr(0b110011) + '\x37' + chr(48), 59001 - 58993), nzTpIcepk0o8('\x30' + '\157' + chr(660 - 609) + chr(541 - 490) + '\x31', 8), nzTpIcepk0o8('\060' + chr(111) + '\062' + chr(980 - 926) + chr(51), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110001) + chr(0b110101) + chr(0b110100), 0b1000), nzTpIcepk0o8('\060' + chr(0b10111 + 0o130) + chr(2329 - 2280) + chr(0b10110 + 0o40) + chr(0b11 + 0o63), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(11302 - 11191) + '\067' + chr(2438 - 2383), 14976 - 14968), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x32' + chr(49) + '\x31', 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(890 - 837) + chr(48), 8327 - 8319)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x1b'), '\x64' + chr(101) + chr(99) + '\157' + chr(2315 - 2215) + chr(0b1100101))(chr(117) + chr(0b1000001 + 0o63) + '\146' + chr(630 - 585) + chr(2652 - 2596)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def qVM7sCwFQOHy(hXMPsSrOQzbh, TtOW53BH7FVE, vOmJfkYJreC3=nzTpIcepk0o8(chr(1183 - 1135) + '\x6f' + chr(48), 0o10), Lm72N1CRBFhv=nzTpIcepk0o8('\060' + chr(0b1101111) + chr(2080 - 2032), 8)):
if not Lm72N1CRBFhv and dRKdVnHPFq7C(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\\\xca\xb5O\xf4i\x86\xf6\xfe\x16\xa9\xb6\x19\xeb\xa4'), chr(2602 - 2502) + chr(101) + '\x63' + chr(3019 - 2908) + chr(0b111100 + 0o50) + chr(101))(chr(13286 - 13169) + '\164' + chr(102) + chr(0b100000 + 0o15) + chr(0b111000))), roI3spqORKae(ES5oEprVxulp(b'S\xd1\xb7F\xf6o\x9a\xf6\xfa\x05\xa3'), '\144' + '\145' + '\143' + '\157' + '\x64' + '\x65')('\x75' + chr(8554 - 8438) + '\146' + chr(45) + chr(0b11100 + 0o34))):
for r7AA1pbLjb44 in roI3spqORKae(TtOW53BH7FVE, roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'f\xe8\x8dh\xb4_\xaf\xc7\xc4\x0b\x81\xa1'), '\144' + chr(0b111000 + 0o55) + chr(9691 - 9592) + chr(0b1101111) + chr(100) + '\x65')(chr(13474 - 13357) + chr(0b1110100) + chr(2382 - 2280) + chr(1798 - 1753) + '\x38'))):
roI3spqORKae(hXMPsSrOQzbh.innertypeparser, roI3spqORKae(ES5oEprVxulp(b'S\xd1\xb7F\xf6o\x9a\xf6\xfa\x05\xa3'), chr(0b1100100) + chr(9105 - 9004) + chr(2390 - 2291) + chr(5464 - 5353) + chr(100) + chr(0b1011100 + 0o11))(chr(117) + '\164' + '\146' + '\x2d' + chr(0b110100 + 0o4)))(r7AA1pbLjb44)
roI3spqORKae(Jny8t9tNuyse, roI3spqORKae(ES5oEprVxulp(b'E\xd6\xbeZ\xe7~\x94'), chr(6438 - 6338) + chr(2901 - 2800) + '\x63' + '\x6f' + chr(5839 - 5739) + chr(101))('\x75' + chr(0b1110100) + chr(0b1100110) + chr(1696 - 1651) + '\070'))(hXMPsSrOQzbh, TtOW53BH7FVE, vOmJfkYJreC3, Lm72N1CRBFhv) |
hubo1016/namedstruct | namedstruct/namedstruct.py | VariantParser.prepack | def prepack(self, namedstruct, skip_self=False, skip_sub=False):
'''
Run prepack
'''
if not skip_sub and self.header is not None and hasattr(self.header, 'fullprepack'):
self.header.fullprepack(namedstruct._seqs[0])
Parser.prepack(self, namedstruct, skip_self, skip_sub) | python | def prepack(self, namedstruct, skip_self=False, skip_sub=False):
'''
Run prepack
'''
if not skip_sub and self.header is not None and hasattr(self.header, 'fullprepack'):
self.header.fullprepack(namedstruct._seqs[0])
Parser.prepack(self, namedstruct, skip_self, skip_sub) | [
"def",
"prepack",
"(",
"self",
",",
"namedstruct",
",",
"skip_self",
"=",
"False",
",",
"skip_sub",
"=",
"False",
")",
":",
"if",
"not",
"skip_sub",
"and",
"self",
".",
"header",
"is",
"not",
"None",
"and",
"hasattr",
"(",
"self",
".",
"header",
",",
"'fullprepack'",
")",
":",
"self",
".",
"header",
".",
"fullprepack",
"(",
"namedstruct",
".",
"_seqs",
"[",
"0",
"]",
")",
"Parser",
".",
"prepack",
"(",
"self",
",",
"namedstruct",
",",
"skip_self",
",",
"skip_sub",
")"
] | Run prepack | [
"Run",
"prepack"
] | 5039026e0df4ce23003d212358918dbe1a6e1d76 | https://github.com/hubo1016/namedstruct/blob/5039026e0df4ce23003d212358918dbe1a6e1d76/namedstruct/namedstruct.py#L3300-L3306 | train | Run prepack on the namedstruct. | 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,DB9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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(3593 - 3482) + chr(0b110001) + chr(0b11001 + 0o34) + '\x36', 39465 - 39457), nzTpIcepk0o8('\x30' + chr(0b111111 + 0o60) + chr(0b10010 + 0o41) + chr(0b110000) + '\x34', 61827 - 61819), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x32' + chr(0b101001 + 0o14) + '\062', 0o10), nzTpIcepk0o8('\060' + chr(3103 - 2992) + '\061' + chr(0b110110) + chr(50), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110001) + '\067' + chr(0b1100 + 0o51), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\061' + chr(0b111 + 0o54) + chr(54), 46646 - 46638), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\063' + chr(0b110101) + chr(0b110100), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + '\x33' + '\064' + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(54 - 6) + '\x6f' + chr(0b110001) + '\061' + chr(0b110010), 0o10), nzTpIcepk0o8(chr(2213 - 2165) + '\157' + '\061' + '\x30' + chr(0b110111), 0o10), nzTpIcepk0o8(chr(1169 - 1121) + chr(3878 - 3767) + chr(0b110010) + chr(49) + chr(49), 22847 - 22839), nzTpIcepk0o8(chr(48) + chr(5714 - 5603) + chr(50) + chr(345 - 295) + chr(0b10 + 0o56), 0b1000), nzTpIcepk0o8(chr(611 - 563) + '\x6f' + '\064' + chr(2156 - 2102), 27045 - 27037), nzTpIcepk0o8(chr(0b110000) + chr(0b111000 + 0o67) + chr(0b100011 + 0o16) + '\x30', 31555 - 31547), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110010) + chr(53) + chr(69 - 21), 0b1000), nzTpIcepk0o8(chr(0b11011 + 0o25) + chr(0b101110 + 0o101) + chr(50) + '\064' + chr(0b110100), 2543 - 2535), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b11101 + 0o26) + chr(52) + chr(0b110101 + 0o1), 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(0b110010) + chr(0b1101 + 0o43) + '\066', 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x31' + chr(0b110011) + '\063', 53215 - 53207), nzTpIcepk0o8(chr(0b11011 + 0o25) + chr(111) + '\x36' + '\064', 0b1000), nzTpIcepk0o8(chr(0b10011 + 0o35) + chr(111) + chr(51) + chr(55) + '\x33', 15434 - 15426), nzTpIcepk0o8(chr(0b110000) + '\157' + '\066' + '\063', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111 + 0o0) + chr(0b10110 + 0o35) + chr(0b110010 + 0o0) + chr(0b110111), 0b1000), nzTpIcepk0o8(chr(503 - 455) + chr(0b1101111) + '\061' + '\x30' + chr(2010 - 1957), 23443 - 23435), nzTpIcepk0o8(chr(48) + chr(111) + '\065', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b10111 + 0o130) + chr(1711 - 1661) + chr(0b110001), 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(50) + chr(0b110011) + chr(0b110111), ord("\x08")), nzTpIcepk0o8(chr(2090 - 2042) + chr(0b1101111) + '\062' + '\x32' + '\x35', 62293 - 62285), nzTpIcepk0o8('\x30' + '\157' + chr(0b110001) + chr(0b11010 + 0o32) + chr(0b110001), 0o10), nzTpIcepk0o8('\x30' + chr(479 - 368) + chr(918 - 867) + '\065' + chr(53), 42234 - 42226), nzTpIcepk0o8('\x30' + chr(4500 - 4389) + chr(51) + chr(0b110100), 45729 - 45721), nzTpIcepk0o8(chr(0b101110 + 0o2) + chr(0b1101111) + chr(51) + '\067' + '\062', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110010) + chr(1081 - 1033) + chr(0b110 + 0o52), ord("\x08")), nzTpIcepk0o8(chr(2177 - 2129) + chr(111) + chr(0b1100 + 0o50) + chr(0b110100), 51788 - 51780), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\062' + '\x33' + chr(2129 - 2077), ord("\x08")), nzTpIcepk0o8('\x30' + chr(7267 - 7156) + chr(0b1000 + 0o52) + chr(2550 - 2499) + chr(0b110010 + 0o2), 8), nzTpIcepk0o8('\x30' + chr(0b1010001 + 0o36) + chr(719 - 668) + chr(2215 - 2163), 8), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x33' + chr(0b110100) + chr(0b1100 + 0o44), 35538 - 35530), nzTpIcepk0o8(chr(561 - 513) + chr(111) + chr(0b110011) + '\063' + chr(53), 0b1000), nzTpIcepk0o8(chr(0b101010 + 0o6) + chr(0b101111 + 0o100) + chr(833 - 782) + '\x35', ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b100110 + 0o12) + chr(0b1100011 + 0o14) + chr(295 - 242) + chr(202 - 154), 60500 - 60492)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'@'), '\x64' + chr(5325 - 5224) + chr(0b1100011) + chr(111) + chr(9926 - 9826) + chr(6236 - 6135))(chr(117) + chr(0b1001001 + 0o53) + '\146' + chr(0b101011 + 0o2) + chr(0b101111 + 0o11)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def qVM7sCwFQOHy(hXMPsSrOQzbh, TtOW53BH7FVE, vOmJfkYJreC3=nzTpIcepk0o8('\060' + chr(111 - 0) + chr(48), 36953 - 36945), Lm72N1CRBFhv=nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110000), 8)):
if not Lm72N1CRBFhv and roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x04\xaf\xda-0f\xbc\x91r\x04\xc0\xe4'), chr(0b1001110 + 0o26) + chr(0b1000110 + 0o37) + '\x63' + chr(0b1101111) + chr(0b1100100) + chr(101))(chr(0b1110101) + chr(116) + '\146' + chr(0b101101) + '\070')) is not None and dRKdVnHPFq7C(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x04\xaf\xda-0f\xbc\x91r\x04\xc0\xe4'), chr(100) + chr(0b1100101) + '\143' + chr(0b1011001 + 0o26) + '\144' + chr(9379 - 9278))(chr(0b1110101) + '\164' + chr(2569 - 2467) + chr(45) + '\070')), roI3spqORKae(ES5oEprVxulp(b'\x08\xb1\xc6\x1e\r,\x89\x91+$\xe2'), '\x64' + chr(0b1100101) + chr(0b1001010 + 0o31) + chr(0b1101100 + 0o3) + '\x64' + chr(0b1011100 + 0o11))('\x75' + chr(0b1011011 + 0o31) + chr(0b1100110) + chr(0b100011 + 0o12) + chr(0b111000))):
roI3spqORKae(hXMPsSrOQzbh.header, roI3spqORKae(ES5oEprVxulp(b'\x08\xb1\xc6\x1e\r,\x89\x91+$\xe2'), chr(100) + chr(101) + '\x63' + '\157' + chr(100) + chr(0b1100101))('\165' + '\x74' + '\x66' + chr(45) + chr(0b10110 + 0o42)))(roI3spqORKae(TtOW53BH7FVE, roI3spqORKae(ES5oEprVxulp(b"\x07\xab\x9a'\x19\x10\xd9\xb98\x13\xdf\xff"), chr(1882 - 1782) + chr(5229 - 5128) + chr(99) + '\157' + '\144' + chr(0b11110 + 0o107))(chr(0b11011 + 0o132) + '\164' + chr(8980 - 8878) + chr(0b101101) + chr(0b111000)))[nzTpIcepk0o8(chr(48) + chr(111) + chr(0b100111 + 0o11), 8)])
roI3spqORKae(Jny8t9tNuyse, roI3spqORKae(ES5oEprVxulp(b'\x1e\xb6\xcf\x02\x1c=\x87'), '\144' + chr(0b1100101) + chr(0b11110 + 0o105) + '\157' + chr(100) + chr(0b1100101))(chr(0b1100110 + 0o17) + chr(116) + chr(102) + chr(1742 - 1697) + chr(458 - 402)))(hXMPsSrOQzbh, TtOW53BH7FVE, vOmJfkYJreC3, Lm72N1CRBFhv) |
mesowx/MesoPy | MesoPy.py | Meso._checkresponse | def _checkresponse(response):
r""" Returns the data requested by the other methods assuming the response from the API is ok. If not, provides
error handling for all possible API errors. HTTP errors are handled in the get_response() function.
Arguments:
----------
None.
Returns:
--------
The response from the API as a dictionary if the API code is 2.
Raises:
-------
MesoPyError: Gives different response messages depending on returned code from API. If the response is 2,
resultsError is displayed. For a response of 200, an authError message is shown. A ruleError is displayed
if the code is 400, a formatError for -1, and catchError for any other invalid response.
"""
results_error = 'No results were found matching your query'
auth_error = 'The token or API key is not valid, please contact Josh Clark at joshua.m.clark@utah.edu to ' \
'resolve this'
rule_error = 'This request violates a rule of the API. Please check the guidelines for formatting a data ' \
'request and try again'
catch_error = 'Something went wrong. Check all your calls and try again'
if response['SUMMARY']['RESPONSE_CODE'] == 1:
return response
elif response['SUMMARY']['RESPONSE_CODE'] == 2:
if response['SUMMARY']['NUMBER_OF_OBJECTS'] == 0:
return None
raise MesoPyError(results_error)
elif response['SUMMARY']['RESPONSE_CODE'] == 200:
raise MesoPyError(auth_error)
elif response['SUMMARY']['RESPONSE_CODE'] == 400:
raise MesoPyError(rule_error)
elif response['SUMMARY']['RESPONSE_CODE'] == -1:
format_error = response['SUMMARY']['RESPONSE_MESSAGE']
raise MesoPyError(format_error)
else:
raise MesoPyError(catch_error) | python | def _checkresponse(response):
r""" Returns the data requested by the other methods assuming the response from the API is ok. If not, provides
error handling for all possible API errors. HTTP errors are handled in the get_response() function.
Arguments:
----------
None.
Returns:
--------
The response from the API as a dictionary if the API code is 2.
Raises:
-------
MesoPyError: Gives different response messages depending on returned code from API. If the response is 2,
resultsError is displayed. For a response of 200, an authError message is shown. A ruleError is displayed
if the code is 400, a formatError for -1, and catchError for any other invalid response.
"""
results_error = 'No results were found matching your query'
auth_error = 'The token or API key is not valid, please contact Josh Clark at joshua.m.clark@utah.edu to ' \
'resolve this'
rule_error = 'This request violates a rule of the API. Please check the guidelines for formatting a data ' \
'request and try again'
catch_error = 'Something went wrong. Check all your calls and try again'
if response['SUMMARY']['RESPONSE_CODE'] == 1:
return response
elif response['SUMMARY']['RESPONSE_CODE'] == 2:
if response['SUMMARY']['NUMBER_OF_OBJECTS'] == 0:
return None
raise MesoPyError(results_error)
elif response['SUMMARY']['RESPONSE_CODE'] == 200:
raise MesoPyError(auth_error)
elif response['SUMMARY']['RESPONSE_CODE'] == 400:
raise MesoPyError(rule_error)
elif response['SUMMARY']['RESPONSE_CODE'] == -1:
format_error = response['SUMMARY']['RESPONSE_MESSAGE']
raise MesoPyError(format_error)
else:
raise MesoPyError(catch_error) | [
"def",
"_checkresponse",
"(",
"response",
")",
":",
"results_error",
"=",
"'No results were found matching your query'",
"auth_error",
"=",
"'The token or API key is not valid, please contact Josh Clark at joshua.m.clark@utah.edu to '",
"'resolve this'",
"rule_error",
"=",
"'This request violates a rule of the API. Please check the guidelines for formatting a data '",
"'request and try again'",
"catch_error",
"=",
"'Something went wrong. Check all your calls and try again'",
"if",
"response",
"[",
"'SUMMARY'",
"]",
"[",
"'RESPONSE_CODE'",
"]",
"==",
"1",
":",
"return",
"response",
"elif",
"response",
"[",
"'SUMMARY'",
"]",
"[",
"'RESPONSE_CODE'",
"]",
"==",
"2",
":",
"if",
"response",
"[",
"'SUMMARY'",
"]",
"[",
"'NUMBER_OF_OBJECTS'",
"]",
"==",
"0",
":",
"return",
"None",
"raise",
"MesoPyError",
"(",
"results_error",
")",
"elif",
"response",
"[",
"'SUMMARY'",
"]",
"[",
"'RESPONSE_CODE'",
"]",
"==",
"200",
":",
"raise",
"MesoPyError",
"(",
"auth_error",
")",
"elif",
"response",
"[",
"'SUMMARY'",
"]",
"[",
"'RESPONSE_CODE'",
"]",
"==",
"400",
":",
"raise",
"MesoPyError",
"(",
"rule_error",
")",
"elif",
"response",
"[",
"'SUMMARY'",
"]",
"[",
"'RESPONSE_CODE'",
"]",
"==",
"-",
"1",
":",
"format_error",
"=",
"response",
"[",
"'SUMMARY'",
"]",
"[",
"'RESPONSE_MESSAGE'",
"]",
"raise",
"MesoPyError",
"(",
"format_error",
")",
"else",
":",
"raise",
"MesoPyError",
"(",
"catch_error",
")"
] | r""" Returns the data requested by the other methods assuming the response from the API is ok. If not, provides
error handling for all possible API errors. HTTP errors are handled in the get_response() function.
Arguments:
----------
None.
Returns:
--------
The response from the API as a dictionary if the API code is 2.
Raises:
-------
MesoPyError: Gives different response messages depending on returned code from API. If the response is 2,
resultsError is displayed. For a response of 200, an authError message is shown. A ruleError is displayed
if the code is 400, a formatError for -1, and catchError for any other invalid response. | [
"r",
"Returns",
"the",
"data",
"requested",
"by",
"the",
"other",
"methods",
"assuming",
"the",
"response",
"from",
"the",
"API",
"is",
"ok",
".",
"If",
"not",
"provides",
"error",
"handling",
"for",
"all",
"possible",
"API",
"errors",
".",
"HTTP",
"errors",
"are",
"handled",
"in",
"the",
"get_response",
"()",
"function",
"."
] | cd1e837e108ed7a110d81cf789f19afcdd52145b | https://github.com/mesowx/MesoPy/blob/cd1e837e108ed7a110d81cf789f19afcdd52145b/MesoPy.py#L84-L125 | train | Checks the response from the API and returns the data requested by the other methods. | GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_H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tJqMV,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(2205 - 2156) + chr(54) + chr(0b110111), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b10101 + 0o35) + chr(51) + '\062', 59140 - 59132), nzTpIcepk0o8(chr(2151 - 2103) + '\157' + chr(0b101001 + 0o11) + '\x37' + chr(50), ord("\x08")), nzTpIcepk0o8(chr(1045 - 997) + chr(111) + chr(237 - 184) + chr(1730 - 1682), 58041 - 58033), nzTpIcepk0o8(chr(0b110000) + chr(0b10100 + 0o133) + chr(0b110001) + '\066', 0o10), nzTpIcepk0o8(chr(1738 - 1690) + chr(0b11011 + 0o124) + chr(49) + chr(122 - 69) + chr(54), 64697 - 64689), nzTpIcepk0o8(chr(0b110000) + chr(0b1000 + 0o147) + chr(0b110010) + chr(55) + chr(0b101011 + 0o14), 32311 - 32303), nzTpIcepk0o8('\060' + '\157' + chr(0b110001) + chr(0b110101 + 0o1) + chr(822 - 774), 16266 - 16258), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(50) + chr(0b1 + 0o57) + chr(0b11101 + 0o23), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(50) + chr(48), 4838 - 4830), nzTpIcepk0o8('\060' + chr(0b1101111) + '\063' + chr(0b0 + 0o63) + '\x36', ord("\x08")), nzTpIcepk0o8(chr(0b111 + 0o51) + '\157' + chr(1715 - 1664) + '\x36' + chr(0b10111 + 0o36), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + '\x32' + '\065' + chr(2796 - 2741), 0b1000), nzTpIcepk0o8(chr(642 - 594) + chr(111) + chr(1752 - 1702) + '\066' + '\x32', 51314 - 51306), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(330 - 280) + chr(48) + chr(599 - 545), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(999 - 948) + chr(54) + chr(48), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(49) + '\x31' + '\061', 0o10), nzTpIcepk0o8('\060' + chr(6205 - 6094) + chr(49) + '\065' + chr(53), ord("\x08")), nzTpIcepk0o8(chr(0b101111 + 0o1) + chr(10136 - 10025) + chr(1328 - 1279) + chr(0b101001 + 0o10) + chr(0b110101), 168 - 160), nzTpIcepk0o8('\060' + chr(0b1101111) + '\061', 0b1000), nzTpIcepk0o8(chr(0b10001 + 0o37) + chr(0b100000 + 0o117) + '\x33' + '\063' + '\062', 0o10), nzTpIcepk0o8('\060' + chr(0b101011 + 0o104) + '\x36' + chr(0b11110 + 0o23), 49021 - 49013), nzTpIcepk0o8('\x30' + chr(4072 - 3961) + '\x33' + chr(0b110011) + chr(0b110011), ord("\x08")), nzTpIcepk0o8(chr(0b101111 + 0o1) + chr(0b1101111) + chr(2448 - 2397) + '\x33' + chr(55), 0b1000), nzTpIcepk0o8(chr(48) + chr(7901 - 7790) + chr(0b110010) + '\065', 0b1000), nzTpIcepk0o8(chr(1214 - 1166) + chr(6168 - 6057) + chr(764 - 713) + chr(2141 - 2087) + '\067', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1010010 + 0o35) + '\062' + chr(53) + chr(0b110101), 0b1000), nzTpIcepk0o8('\x30' + chr(0b10000 + 0o137) + chr(49) + chr(54) + chr(53), 30443 - 30435), nzTpIcepk0o8(chr(698 - 650) + chr(0b1101111) + '\061' + chr(1256 - 1204), 0o10), nzTpIcepk0o8(chr(1721 - 1673) + chr(111) + '\x33' + chr(49) + chr(54), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + '\x33' + chr(0b110010), 0b1000), nzTpIcepk0o8(chr(1939 - 1891) + '\157' + chr(2370 - 2319) + '\063' + chr(52), 0o10), nzTpIcepk0o8(chr(0b11111 + 0o21) + chr(2612 - 2501) + chr(0b110010 + 0o1) + '\060' + chr(0b100 + 0o60), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(2082 - 2031) + '\x35', 62626 - 62618), nzTpIcepk0o8(chr(1806 - 1758) + '\x6f' + '\063' + chr(0b10101 + 0o37) + '\x32', 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(0b101001 + 0o11) + chr(55) + chr(1065 - 1017), 41713 - 41705), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b10011 + 0o36) + chr(0b110101) + '\061', 26365 - 26357), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110011) + chr(0b100100 + 0o17) + '\x37', 8), nzTpIcepk0o8(chr(48) + chr(6724 - 6613) + chr(670 - 621) + chr(53) + chr(2801 - 2747), 8), nzTpIcepk0o8(chr(0b110000) + chr(0b11 + 0o154) + chr(0b100111 + 0o13) + chr(1147 - 1096), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + chr(3142 - 3031) + chr(1298 - 1245) + '\060', 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'Y'), '\x64' + chr(0b10010 + 0o123) + chr(0b10110 + 0o115) + chr(6743 - 6632) + chr(8729 - 8629) + chr(6500 - 6399))(chr(0b110101 + 0o100) + chr(0b1110001 + 0o3) + '\x66' + chr(0b11010 + 0o23) + chr(0b100 + 0o64)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def FoXHz5JTJWZ6(k2zzaFDtbuhL):
CcLf9VyY2PtM = roI3spqORKae(ES5oEprVxulp(b'9\xf5\x9aZk\x1d\xca\x1c\xf4c\xfe\x82\xca\xc0\xe3\xd0/\x028o\xbe\x11\xb6\xbea\x94\xc5\x1cb\xa9:\xa5\xabh\x90\x98\x18\xaa\x0ba\x0e'), chr(100) + chr(101) + chr(99) + chr(0b110010 + 0o75) + '\144' + '\145')(chr(0b1110101) + chr(116) + chr(102) + chr(45) + '\x38')
JiGrwS6RkMXm = roI3spqORKae(ES5oEprVxulp(b'#\xf2\xdf\x08z\x01\xd4\x15\xee0\xb1\x87\x8f\xf3\xd6\xb9i\x06(x\xfaX\xa8\xff{\x98\xd9Uz\xafv\xb5\xa01\xc2\xc8\x05\xba\x0f`\x12\xba\xd9G`\x1a\xde\x13\xf40\x94\x9a\xdc\xda\xa6\xb3%\x0c?j\xfaP\xaf\xff\x7f\x98\xde\x1dy\xaf4\xb1\xea~\x8e\xd9\x1b\xb4.f\x03\xfb\xd2\x06k\n\xcaP\xf4\x7f\xfe\x87\xca\xc1\xe9\x9c?\x08mu\xb2X\xa8'), '\144' + chr(0b101000 + 0o75) + chr(538 - 439) + '\x6f' + chr(100) + '\x65')(chr(0b1110101) + chr(0b1110100) + chr(0b1010010 + 0o24) + chr(45) + '\070')
NMMap8JXWSge = roI3spqORKae(ES5oEprVxulp(b"#\xf2\xd3[.\x1c\xda\x01\xf5u\xad\x81\x8f\xc4\xef\x9f%\x0c9d\xa9\x11\xba\xffg\x82\xc1\x10,\xa1|\xfc\xb0u\x87\x98(\x8f'=W\xca\xd6Mo\x1d\xdaP\xe3x\xbb\x96\xc4\x92\xf2\x98,M*t\xb3U\xbe\xb3|\x99\xc8\x06,\xa8u\xae\xe4{\x8d\xca\x04\xbe\x1ag\x1e\xf4\xdd\x08oN\xdb\x11\xf4q\xfe\x87\xca\xc3\xf3\x95:\x19m`\xb4U\xfb\xabg\x8e\x8d\x14k\xafs\xb2"), chr(100) + chr(101) + chr(0b100010 + 0o101) + chr(5402 - 5291) + chr(100) + '\145')(chr(117) + chr(116) + chr(102) + chr(0b101101) + chr(0b111000))
GPG04KozK58Z = roI3spqORKae(ES5oEprVxulp(b'$\xf5\xd7Mz\x06\xd6\x1e\xe70\xa9\x90\xc1\xc6\xa6\x87;\x02#f\xf4\x11\x98\xb7p\x94\xc6Um\xa2v\xfc\xbdr\x97\xcaI\xbc\x0f\x7f\x1b\xe9\x9aI`\n\x9f\x04\xf2i\xfe\x94\xc8\xd3\xef\x9e'), chr(100) + '\145' + chr(0b1011010 + 0o11) + chr(0b110001 + 0o76) + '\144' + '\145')(chr(0b110101 + 0o100) + '\x74' + '\x66' + chr(342 - 297) + chr(0b10 + 0o66))
if k2zzaFDtbuhL[roI3spqORKae(ES5oEprVxulp(b'$\xcf\xf7eO<\xe6'), '\x64' + chr(101) + '\x63' + '\157' + chr(100) + chr(0b1100101))(chr(0b1110 + 0o147) + chr(0b1010101 + 0o37) + chr(0b111011 + 0o53) + chr(45) + chr(56))][roI3spqORKae(ES5oEprVxulp(b'%\xdf\xe9xA \xec5\xdfS\x91\xb1\xea'), '\x64' + chr(101) + chr(0b11 + 0o140) + '\157' + chr(2092 - 1992) + '\x65')(chr(0b1110101) + chr(0b1110100) + chr(102) + '\x2d' + '\x38')] == nzTpIcepk0o8(chr(0b1 + 0o57) + chr(0b1001111 + 0o40) + '\x31', 8):
return k2zzaFDtbuhL
elif k2zzaFDtbuhL[roI3spqORKae(ES5oEprVxulp(b'$\xcf\xf7eO<\xe6'), chr(0b101100 + 0o70) + chr(0b101010 + 0o73) + '\x63' + chr(111) + chr(0b101 + 0o137) + chr(101))('\x75' + chr(0b1100111 + 0o15) + '\x66' + chr(0b101101) + chr(56))][roI3spqORKae(ES5oEprVxulp(b'%\xdf\xe9xA \xec5\xdfS\x91\xb1\xea'), chr(100) + chr(101) + chr(7004 - 6905) + chr(10963 - 10852) + chr(100) + chr(0b1100101))(chr(122 - 5) + chr(7140 - 7024) + chr(102) + chr(1039 - 994) + '\070')] == nzTpIcepk0o8('\060' + chr(0b1101111) + '\x32', 0b1000):
if k2zzaFDtbuhL[roI3spqORKae(ES5oEprVxulp(b'$\xcf\xf7eO<\xe6'), chr(9875 - 9775) + chr(4663 - 4562) + '\143' + '\157' + chr(0b1100100) + chr(0b10101 + 0o120))(chr(117) + chr(0b1110100) + '\146' + '\055' + chr(1997 - 1941))][roI3spqORKae(ES5oEprVxulp(b'9\xcf\xf7jK<\xe0?\xc6O\x91\xb7\xe5\xf7\xc5\xa4\x1a'), chr(0b1100100) + chr(0b1100101) + chr(0b1011001 + 0o12) + chr(0b1101111) + chr(0b111100 + 0o50) + '\x65')('\x75' + chr(2217 - 2101) + '\146' + '\055' + chr(0b1111 + 0o51))] == nzTpIcepk0o8(chr(0b100111 + 0o11) + chr(0b1101111) + chr(621 - 573), 0o10):
return None
raise wgyAcgIBnjQK(CcLf9VyY2PtM)
elif k2zzaFDtbuhL[roI3spqORKae(ES5oEprVxulp(b'$\xcf\xf7eO<\xe6'), chr(100) + '\145' + chr(99) + chr(0b111110 + 0o61) + chr(0b1100100) + '\x65')(chr(0b11 + 0o162) + chr(9134 - 9018) + chr(0b1100110) + '\x2d' + chr(0b111000))][roI3spqORKae(ES5oEprVxulp(b'%\xdf\xe9xA \xec5\xdfS\x91\xb1\xea'), chr(0b1100100) + chr(4529 - 4428) + chr(0b1100011) + chr(0b1101111) + chr(100) + chr(1902 - 1801))(chr(0b111100 + 0o71) + '\x74' + chr(102) + '\x2d' + chr(56))] == nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x33' + '\x31' + '\x30', 48565 - 48557):
raise wgyAcgIBnjQK(JiGrwS6RkMXm)
elif k2zzaFDtbuhL[roI3spqORKae(ES5oEprVxulp(b'$\xcf\xf7eO<\xe6'), '\144' + chr(101) + chr(99) + chr(280 - 169) + chr(100) + '\x65')(chr(0b1110101) + chr(0b1110100) + chr(0b100010 + 0o104) + chr(0b10101 + 0o30) + chr(56))][roI3spqORKae(ES5oEprVxulp(b'%\xdf\xe9xA \xec5\xdfS\x91\xb1\xea'), chr(2852 - 2752) + chr(101) + '\143' + '\157' + chr(0b1100100) + chr(0b1100101))('\165' + '\164' + chr(1495 - 1393) + chr(45) + '\070')] == nzTpIcepk0o8(chr(48) + chr(111) + chr(54) + '\x32' + chr(0b110000), 0b1000):
raise wgyAcgIBnjQK(NMMap8JXWSge)
elif k2zzaFDtbuhL[roI3spqORKae(ES5oEprVxulp(b'$\xcf\xf7eO<\xe6'), chr(0b1001011 + 0o31) + '\x65' + chr(0b1100011) + chr(0b1101111) + chr(100) + '\x65')('\x75' + chr(12308 - 12192) + chr(0b101001 + 0o75) + chr(0b101101) + '\x38')][roI3spqORKae(ES5oEprVxulp(b'%\xdf\xe9xA \xec5\xdfS\x91\xb1\xea'), '\144' + chr(101) + chr(0b101110 + 0o65) + '\157' + chr(100) + chr(8621 - 8520))('\x75' + chr(0b1110100) + chr(6311 - 6209) + '\055' + chr(0b111000))] == -nzTpIcepk0o8(chr(1415 - 1367) + chr(0b101 + 0o152) + chr(49), 8):
fCknwM4sRxtC = k2zzaFDtbuhL[roI3spqORKae(ES5oEprVxulp(b'$\xcf\xf7eO<\xe6'), chr(0b1001 + 0o133) + chr(9191 - 9090) + '\143' + '\x6f' + '\x64' + chr(0b1011 + 0o132))(chr(0b1110101) + '\164' + chr(102) + chr(0b100000 + 0o15) + chr(0b11100 + 0o34))][roI3spqORKae(ES5oEprVxulp(b'%\xdf\xe9xA \xec5\xdf]\x9b\xa6\xfc\xf3\xc1\xb5'), '\x64' + chr(0b1100101) + chr(99) + chr(111) + chr(100) + chr(1828 - 1727))('\x75' + chr(0b1100101 + 0o17) + chr(0b101111 + 0o67) + chr(1308 - 1263) + chr(0b110100 + 0o4))]
raise wgyAcgIBnjQK(fCknwM4sRxtC)
else:
raise wgyAcgIBnjQK(GPG04KozK58Z) |
mesowx/MesoPy | MesoPy.py | Meso._get_response | def _get_response(self, endpoint, request_dict):
""" Returns a dictionary of data requested by each function.
Arguments:
----------
endpoint: string, mandatory
Set in all other methods, this is the API endpoint specific to each function.
request_dict: string, mandatory
A dictionary of parameters that are formatted into the API call.
Returns:
--------
response: A dictionary that has been dumped from JSON.
Raises:
-------
MesoPyError: Overrides the exceptions given in the requests library to give more custom error messages.
Connection_error occurs if no internet connection exists. Timeout_error occurs if the request takes too
long and redirect_error is shown if the url is formatted incorrectly.
"""
http_error = 'Could not connect to the API. This could be because you have no internet connection, a parameter' \
' was input incorrectly, or the API is currently down. Please try again.'
json_error = 'Could not retrieve JSON values. Try again with a shorter date range.'
# For python 3.4
try:
qsp = urllib.parse.urlencode(request_dict, doseq=True)
resp = urllib.request.urlopen(self.base_url + endpoint + '?' + qsp).read()
# For python 2.7
except AttributeError or NameError:
try:
qsp = urllib.urlencode(request_dict, doseq=True)
resp = urllib2.urlopen(self.base_url + endpoint + '?' + qsp).read()
except urllib2.URLError:
raise MesoPyError(http_error)
except urllib.error.URLError:
raise MesoPyError(http_error)
try:
json_data = json.loads(resp.decode('utf-8'))
except ValueError:
raise MesoPyError(json_error)
return self._checkresponse(json_data) | python | def _get_response(self, endpoint, request_dict):
""" Returns a dictionary of data requested by each function.
Arguments:
----------
endpoint: string, mandatory
Set in all other methods, this is the API endpoint specific to each function.
request_dict: string, mandatory
A dictionary of parameters that are formatted into the API call.
Returns:
--------
response: A dictionary that has been dumped from JSON.
Raises:
-------
MesoPyError: Overrides the exceptions given in the requests library to give more custom error messages.
Connection_error occurs if no internet connection exists. Timeout_error occurs if the request takes too
long and redirect_error is shown if the url is formatted incorrectly.
"""
http_error = 'Could not connect to the API. This could be because you have no internet connection, a parameter' \
' was input incorrectly, or the API is currently down. Please try again.'
json_error = 'Could not retrieve JSON values. Try again with a shorter date range.'
# For python 3.4
try:
qsp = urllib.parse.urlencode(request_dict, doseq=True)
resp = urllib.request.urlopen(self.base_url + endpoint + '?' + qsp).read()
# For python 2.7
except AttributeError or NameError:
try:
qsp = urllib.urlencode(request_dict, doseq=True)
resp = urllib2.urlopen(self.base_url + endpoint + '?' + qsp).read()
except urllib2.URLError:
raise MesoPyError(http_error)
except urllib.error.URLError:
raise MesoPyError(http_error)
try:
json_data = json.loads(resp.decode('utf-8'))
except ValueError:
raise MesoPyError(json_error)
return self._checkresponse(json_data) | [
"def",
"_get_response",
"(",
"self",
",",
"endpoint",
",",
"request_dict",
")",
":",
"http_error",
"=",
"'Could not connect to the API. This could be because you have no internet connection, a parameter'",
"' was input incorrectly, or the API is currently down. Please try again.'",
"json_error",
"=",
"'Could not retrieve JSON values. Try again with a shorter date range.'",
"# For python 3.4",
"try",
":",
"qsp",
"=",
"urllib",
".",
"parse",
".",
"urlencode",
"(",
"request_dict",
",",
"doseq",
"=",
"True",
")",
"resp",
"=",
"urllib",
".",
"request",
".",
"urlopen",
"(",
"self",
".",
"base_url",
"+",
"endpoint",
"+",
"'?'",
"+",
"qsp",
")",
".",
"read",
"(",
")",
"# For python 2.7",
"except",
"AttributeError",
"or",
"NameError",
":",
"try",
":",
"qsp",
"=",
"urllib",
".",
"urlencode",
"(",
"request_dict",
",",
"doseq",
"=",
"True",
")",
"resp",
"=",
"urllib2",
".",
"urlopen",
"(",
"self",
".",
"base_url",
"+",
"endpoint",
"+",
"'?'",
"+",
"qsp",
")",
".",
"read",
"(",
")",
"except",
"urllib2",
".",
"URLError",
":",
"raise",
"MesoPyError",
"(",
"http_error",
")",
"except",
"urllib",
".",
"error",
".",
"URLError",
":",
"raise",
"MesoPyError",
"(",
"http_error",
")",
"try",
":",
"json_data",
"=",
"json",
".",
"loads",
"(",
"resp",
".",
"decode",
"(",
"'utf-8'",
")",
")",
"except",
"ValueError",
":",
"raise",
"MesoPyError",
"(",
"json_error",
")",
"return",
"self",
".",
"_checkresponse",
"(",
"json_data",
")"
] | Returns a dictionary of data requested by each function.
Arguments:
----------
endpoint: string, mandatory
Set in all other methods, this is the API endpoint specific to each function.
request_dict: string, mandatory
A dictionary of parameters that are formatted into the API call.
Returns:
--------
response: A dictionary that has been dumped from JSON.
Raises:
-------
MesoPyError: Overrides the exceptions given in the requests library to give more custom error messages.
Connection_error occurs if no internet connection exists. Timeout_error occurs if the request takes too
long and redirect_error is shown if the url is formatted incorrectly. | [
"Returns",
"a",
"dictionary",
"of",
"data",
"requested",
"by",
"each",
"function",
"."
] | cd1e837e108ed7a110d81cf789f19afcdd52145b | https://github.com/mesowx/MesoPy/blob/cd1e837e108ed7a110d81cf789f19afcdd52145b/MesoPy.py#L127-L173 | train | Returns a dictionary of data requested by each function. | GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7U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_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__
ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b100111 + 0o11) + '\157' + chr(0b100111 + 0o12) + chr(0b110010) + chr(0b110011), 0o10), nzTpIcepk0o8(chr(0b1011 + 0o45) + chr(0b1000111 + 0o50) + '\063' + chr(0b11000 + 0o33) + chr(0b111 + 0o57), 0o10), nzTpIcepk0o8('\x30' + chr(9222 - 9111) + chr(0b110101) + '\060', 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(0b1000 + 0o53) + chr(49) + chr(0b110110), 0o10), nzTpIcepk0o8(chr(48) + chr(3333 - 3222) + chr(0b1010 + 0o53) + chr(0b10 + 0o57), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110011) + chr(0b110011), ord("\x08")), nzTpIcepk0o8(chr(0b1101 + 0o43) + chr(0b1101111) + '\x32' + '\x35' + chr(0b110011), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + '\x31' + '\x33' + chr(51), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(8013 - 7902) + '\061' + '\x30' + '\063', 0o10), nzTpIcepk0o8('\x30' + chr(0b101011 + 0o104) + chr(0b110010) + chr(0b11111 + 0o21) + '\x32', 11267 - 11259), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(51) + '\x35' + chr(55), 62980 - 62972), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110011) + chr(63 - 15) + chr(52), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x35' + chr(2663 - 2609), 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(193 - 143) + '\x32' + chr(0b111 + 0o53), 55600 - 55592), nzTpIcepk0o8('\060' + '\x6f' + '\x31' + chr(474 - 424) + chr(48), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110011) + '\x36' + chr(1090 - 1035), 52956 - 52948), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\061' + '\x36' + chr(0b11111 + 0o21), 0o10), nzTpIcepk0o8(chr(0b100101 + 0o13) + '\x6f' + chr(0b11011 + 0o30) + chr(0b101100 + 0o13) + chr(157 - 103), 0o10), nzTpIcepk0o8(chr(1724 - 1676) + chr(111) + '\063' + '\061' + '\x34', ord("\x08")), nzTpIcepk0o8('\060' + chr(8275 - 8164) + chr(1607 - 1557) + chr(1992 - 1939) + chr(0b110001), 47156 - 47148), nzTpIcepk0o8(chr(0b110000) + chr(12014 - 11903) + chr(0b110011) + chr(50) + chr(0b110100 + 0o1), 0o10), nzTpIcepk0o8('\060' + chr(111) + '\063' + '\x30' + '\066', 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(0b110010) + chr(517 - 462) + chr(0b101111 + 0o7), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(0b110011) + chr(1598 - 1546) + chr(0b110111), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(1274 - 1225) + chr(2293 - 2244) + chr(0b110101), 48717 - 48709), nzTpIcepk0o8('\060' + chr(111) + chr(53) + chr(0b110111), 0o10), nzTpIcepk0o8(chr(0b0 + 0o60) + chr(111) + '\063' + '\060' + '\x30', 0o10), nzTpIcepk0o8(chr(0b11 + 0o55) + '\x6f' + chr(51) + chr(54), 60096 - 60088), nzTpIcepk0o8('\x30' + '\157' + '\063' + '\x37' + chr(0b110100), 20198 - 20190), nzTpIcepk0o8('\060' + '\x6f' + chr(1975 - 1925) + '\x31' + chr(1909 - 1857), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(1130 - 1019) + chr(0b111 + 0o55) + chr(191 - 139), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(50) + '\066' + '\065', 8679 - 8671), nzTpIcepk0o8('\060' + chr(111) + '\060', 54281 - 54273), nzTpIcepk0o8(chr(48) + chr(0b10000 + 0o137) + chr(0b10110 + 0o33) + '\x36' + chr(906 - 855), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x31' + chr(48) + chr(52), 46610 - 46602), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(2433 - 2381) + chr(0b110001), 0b1000), nzTpIcepk0o8('\x30' + chr(1583 - 1472) + '\x31' + chr(294 - 244) + chr(48), 8), nzTpIcepk0o8(chr(48) + chr(5751 - 5640) + '\061' + chr(0b110111) + '\060', 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x31' + chr(1826 - 1771), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\062' + chr(0b110011) + '\063', 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + '\157' + '\065' + chr(0b11001 + 0o27), 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'}'), '\144' + '\145' + chr(0b1001011 + 0o30) + chr(0b1101111) + chr(9381 - 9281) + chr(101))('\x75' + '\164' + '\146' + chr(298 - 253) + chr(56)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def GZkgTshIQRoy(hXMPsSrOQzbh, IxaNW2_TJHzE, GncdUYOY_eaU):
um_j6bOf3rXw = roI3spqORKae(ES5oEprVxulp(b'\x10\xb1]\xa2M;\xc547\xa2\x8c\xab@\xfc5\x94\x04\xde\xb8\xc6\xf5\xb2\xd6\x82mn\x90W\xd2\xacp\xddi\x00dB?\rc\xffs\xbcM\xeeK~\xc8:6\xf1\x8a\xe4W\xfd%\xd7\x18\x9f\xba\xcc\xf5\xa8\xd1\xc7$A\xb4{\x8e\xe2A\xc1 \x10+O>\x1dl\xef:\xb1F\xe2\tz\x8b+"\xf0\x8e\xa9K\xe65\x85P\x89\xad\xda\xf5\xaf\xd0\x978[\xe0w\x92\xefK\xc7r\x16\'U<\x01#\xbb<\xac\x08\xbaA~\x8b\x1a\x13\xcb\xcf\xad]\xb23\x82\x02\x8c\xa9\xc7\xa1\xaa\xc7\xc7)@\xb7p\xd2\xact\xd9e\x127Dp\x0c}\xe2s\xbfO\xaf@u\x85'), '\x64' + chr(0b1100101) + chr(0b110001 + 0o62) + '\157' + chr(100) + '\145')(chr(117) + '\x74' + chr(8463 - 8361) + chr(0b101101) + chr(0b111000))
Tj1iHhfl4DtT = roI3spqORKae(ES5oEprVxulp(b'\x10\xb1]\xa2M;\xc547\xa2\x9d\xa1Z\xe09\x92\x06\x9b\xec\xe3\x86\x89\xf0\xc7;N\xack\x99\xff\n\x95T\x01=\x011\x1fn\xf2=\xfe_\xa7]s\x8b:c\xf1\x87\xab\\\xe65\x85P\x9a\xad\xdd\xb0\xe6\xcc\x86#H\xa50'), chr(0b10010 + 0o122) + chr(0b1100101) + '\143' + '\157' + chr(0b1100100) + '\145')('\165' + chr(0b1010100 + 0o40) + chr(0b1100110) + chr(0b101101) + chr(56))
try:
RO6cXtAqo1Qq = O7cVixZ4g0oW.parse.urlencode(GncdUYOY_eaU, doseq=nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(418 - 369), 0o10))
xxhWttsUDUCM = O7cVixZ4g0oW.request.urlopen(hXMPsSrOQzbh.base_url + IxaNW2_TJHzE + roI3spqORKae(ES5oEprVxulp(b'l'), '\x64' + chr(0b1111 + 0o126) + chr(99) + chr(10763 - 10652) + chr(100) + chr(8998 - 8897))(chr(0b1110101) + '\x74' + '\x66' + chr(1095 - 1050) + '\x38') + RO6cXtAqo1Qq).eoXknH7XUn7m()
except bIsJhlpYrrU2 or aHxuT4bIDdeg:
try:
RO6cXtAqo1Qq = O7cVixZ4g0oW.urlencode(GncdUYOY_eaU, doseq=nzTpIcepk0o8(chr(48) + chr(0b1110 + 0o141) + chr(1208 - 1159), 8))
xxhWttsUDUCM = KWDLBeXYjYCE.urlopen(hXMPsSrOQzbh.base_url + IxaNW2_TJHzE + roI3spqORKae(ES5oEprVxulp(b'l'), '\144' + chr(3361 - 3260) + '\x63' + chr(0b1101111) + chr(100) + chr(0b101011 + 0o72))(chr(0b1001011 + 0o52) + '\x74' + chr(0b1011001 + 0o15) + '\055' + chr(2645 - 2589)) + RO6cXtAqo1Qq).eoXknH7XUn7m()
except roI3spqORKae(KWDLBeXYjYCE, roI3spqORKae(ES5oEprVxulp(b'\x06\x8cd\x8b[i\xc4)'), '\x64' + '\145' + '\x63' + chr(0b1100011 + 0o14) + '\144' + chr(0b1100101))('\x75' + '\x74' + '\146' + chr(0b1100 + 0o41) + '\x38')):
raise wgyAcgIBnjQK(um_j6bOf3rXw)
except roI3spqORKae(O7cVixZ4g0oW.error, roI3spqORKae(ES5oEprVxulp(b'\x06\x8cd\x8b[i\xc4)'), chr(0b1100100) + chr(10063 - 9962) + '\143' + chr(0b1100011 + 0o14) + '\x64' + '\145')(chr(117) + chr(7860 - 7744) + chr(0b1100110) + chr(0b101101) + '\x38')):
raise wgyAcgIBnjQK(um_j6bOf3rXw)
try:
QFjcR0BGftD0 = LNUKEwZDIbyb.OiapAM4bM0Ea(xxhWttsUDUCM.lfbFsdWlT3MB(roI3spqORKae(ES5oEprVxulp(b'&\xaaN\xe3\x11'), chr(3142 - 3042) + chr(0b1100101) + chr(0b11101 + 0o106) + chr(0b111010 + 0o65) + chr(100) + chr(101))('\x75' + chr(116) + chr(0b110001 + 0o65) + chr(0b101101) + chr(0b111000))))
except WbNHlDKpyPtQ:
raise wgyAcgIBnjQK(Tj1iHhfl4DtT)
return roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x0c\xbd@\xabJp\xd9>0\xf2\x80\xaa]\xf7'), chr(100) + chr(6524 - 6423) + chr(99) + chr(328 - 217) + '\144' + chr(101))(chr(0b1110101) + chr(0b11000 + 0o134) + '\x66' + chr(0b1 + 0o54) + chr(0b111 + 0o61)))(QFjcR0BGftD0) |
mesowx/MesoPy | MesoPy.py | Meso._check_geo_param | def _check_geo_param(self, arg_list):
r""" Checks each function call to make sure that the user has provided at least one of the following geographic
parameters: 'stid', 'state', 'country', 'county', 'radius', 'bbox', 'cwa', 'nwsfirezone', 'gacc', or 'subgacc'.
Arguments:
----------
arg_list: list, mandatory
A list of kwargs from other functions.
Returns:
--------
None.
Raises:
-------
MesoPyError if no geographic search criteria is provided.
"""
geo_func = lambda a, b: any(i in b for i in a)
check = geo_func(self.geo_criteria, arg_list)
if check is False:
raise MesoPyError('No stations or geographic search criteria specified. Please provide one of the '
'following: stid, state, county, country, radius, bbox, cwa, nwsfirezone, gacc, subgacc') | python | def _check_geo_param(self, arg_list):
r""" Checks each function call to make sure that the user has provided at least one of the following geographic
parameters: 'stid', 'state', 'country', 'county', 'radius', 'bbox', 'cwa', 'nwsfirezone', 'gacc', or 'subgacc'.
Arguments:
----------
arg_list: list, mandatory
A list of kwargs from other functions.
Returns:
--------
None.
Raises:
-------
MesoPyError if no geographic search criteria is provided.
"""
geo_func = lambda a, b: any(i in b for i in a)
check = geo_func(self.geo_criteria, arg_list)
if check is False:
raise MesoPyError('No stations or geographic search criteria specified. Please provide one of the '
'following: stid, state, county, country, radius, bbox, cwa, nwsfirezone, gacc, subgacc') | [
"def",
"_check_geo_param",
"(",
"self",
",",
"arg_list",
")",
":",
"geo_func",
"=",
"lambda",
"a",
",",
"b",
":",
"any",
"(",
"i",
"in",
"b",
"for",
"i",
"in",
"a",
")",
"check",
"=",
"geo_func",
"(",
"self",
".",
"geo_criteria",
",",
"arg_list",
")",
"if",
"check",
"is",
"False",
":",
"raise",
"MesoPyError",
"(",
"'No stations or geographic search criteria specified. Please provide one of the '",
"'following: stid, state, county, country, radius, bbox, cwa, nwsfirezone, gacc, subgacc'",
")"
] | r""" Checks each function call to make sure that the user has provided at least one of the following geographic
parameters: 'stid', 'state', 'country', 'county', 'radius', 'bbox', 'cwa', 'nwsfirezone', 'gacc', or 'subgacc'.
Arguments:
----------
arg_list: list, mandatory
A list of kwargs from other functions.
Returns:
--------
None.
Raises:
-------
MesoPyError if no geographic search criteria is provided. | [
"r",
"Checks",
"each",
"function",
"call",
"to",
"make",
"sure",
"that",
"the",
"user",
"has",
"provided",
"at",
"least",
"one",
"of",
"the",
"following",
"geographic",
"parameters",
":",
"stid",
"state",
"country",
"county",
"radius",
"bbox",
"cwa",
"nwsfirezone",
"gacc",
"or",
"subgacc",
"."
] | cd1e837e108ed7a110d81cf789f19afcdd52145b | https://github.com/mesowx/MesoPy/blob/cd1e837e108ed7a110d81cf789f19afcdd52145b/MesoPy.py#L175-L198 | train | r Checks each function call to make sure that the user has provided at least one of the following geographic parameters. | GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpF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qMV,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(0b100000 + 0o20) + chr(111) + chr(0b110011) + chr(0b0 + 0o65) + '\x33', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110101) + chr(635 - 582), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b11011 + 0o30) + '\x31' + chr(54), 0b1000), nzTpIcepk0o8(chr(0b11011 + 0o25) + chr(0b100110 + 0o111) + chr(0b110001) + '\062' + '\060', 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\062' + '\061' + chr(451 - 402), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b10000 + 0o43), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(0b11000 + 0o31) + chr(2493 - 2439) + '\x37', 46065 - 46057), nzTpIcepk0o8(chr(0b110000) + chr(7953 - 7842) + '\063' + '\066' + chr(2335 - 2286), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b100011 + 0o17) + chr(0b110101) + chr(51), 46206 - 46198), nzTpIcepk0o8(chr(0b11010 + 0o26) + chr(0b1101111) + chr(0b110010) + chr(50) + chr(1840 - 1788), 0b1000), nzTpIcepk0o8(chr(1690 - 1642) + chr(111) + chr(0b110101) + chr(2123 - 2069), 9432 - 9424), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\061' + '\x35' + chr(0b110110), 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(50), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b110 + 0o151) + '\061' + chr(0b110010), 57901 - 57893), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\063' + '\060', 57062 - 57054), nzTpIcepk0o8(chr(0b11111 + 0o21) + '\157' + chr(0b101000 + 0o11) + chr(0b110000 + 0o5) + chr(50), 0o10), nzTpIcepk0o8('\x30' + '\157' + '\061' + chr(0b100100 + 0o15) + chr(0b101010 + 0o6), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110010 + 0o2) + '\x37', 0o10), nzTpIcepk0o8(chr(1936 - 1888) + '\157' + chr(51) + '\067' + chr(49), 0b1000), nzTpIcepk0o8(chr(0b101111 + 0o1) + '\157' + chr(51) + chr(1625 - 1572) + chr(0b100011 + 0o23), 0o10), nzTpIcepk0o8('\060' + chr(111) + '\x34' + chr(51), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + '\067', 0o10), nzTpIcepk0o8('\060' + '\157' + chr(51) + chr(0b11110 + 0o26) + '\066', 0b1000), nzTpIcepk0o8(chr(0b101110 + 0o2) + chr(0b1101111) + chr(50) + chr(0b110101) + chr(0b110101 + 0o1), 0o10), nzTpIcepk0o8('\x30' + chr(8613 - 8502) + chr(0b110001) + chr(0b110011) + chr(425 - 377), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x31' + chr(49) + chr(51), ord("\x08")), nzTpIcepk0o8('\060' + chr(1613 - 1502) + chr(0b110010) + '\061', 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\061' + chr(0b110000) + chr(0b1 + 0o66), 28521 - 28513), nzTpIcepk0o8('\x30' + chr(111) + '\x31', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1111 + 0o140) + chr(0b110011) + chr(0b110011) + chr(55), 41983 - 41975), nzTpIcepk0o8(chr(1709 - 1661) + '\157' + chr(0b110011) + '\x34' + chr(0b101000 + 0o15), ord("\x08")), nzTpIcepk0o8(chr(0b100010 + 0o16) + '\x6f' + chr(2497 - 2447) + '\063' + chr(54), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b10111 + 0o33) + chr(2964 - 2909) + chr(0b110010), 0b1000), nzTpIcepk0o8('\060' + '\157' + '\x33' + chr(48) + '\060', 18551 - 18543), nzTpIcepk0o8(chr(0b110000) + chr(1759 - 1648) + chr(49) + chr(0b1100 + 0o52) + chr(0b110010), 0b1000), nzTpIcepk0o8(chr(1494 - 1446) + '\x6f' + chr(0b110011) + '\067', 0o10), nzTpIcepk0o8(chr(48) + chr(9108 - 8997) + chr(0b110010) + chr(55) + chr(0b11101 + 0o27), 0o10), nzTpIcepk0o8(chr(511 - 463) + chr(111) + '\063' + '\x34' + chr(48), 7313 - 7305), nzTpIcepk0o8(chr(1963 - 1915) + chr(0b1000111 + 0o50) + '\065', ord("\x08")), nzTpIcepk0o8(chr(2080 - 2032) + chr(111) + chr(2177 - 2127) + '\x31' + chr(0b1 + 0o57), 43065 - 43057)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b1000 + 0o50) + chr(0b1101111) + chr(0b1110 + 0o47) + '\060', 61589 - 61581)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xc5'), chr(0b1000100 + 0o40) + chr(0b1001111 + 0o26) + '\x63' + chr(0b1101111) + chr(0b11100 + 0o110) + '\145')(chr(0b110000 + 0o105) + chr(0b1110100) + chr(3457 - 3355) + '\x2d' + chr(0b1011 + 0o55)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def ew14ZFzCqtad(hXMPsSrOQzbh, WoxFkiTlRIfp):
def Q9rhhLD1hGXl(AQ9ceR9AaoT1, xFDEVQn5qSdh):
return VF4pKOObtlPc((ZlbFMSG8gCoF in xFDEVQn5qSdh for ZlbFMSG8gCoF in AQ9ceR9AaoT1))
TahWqI1KsjrZ = Q9rhhLD1hGXl(hXMPsSrOQzbh.geo_criteria, WoxFkiTlRIfp)
if TahWqI1KsjrZ is nzTpIcepk0o8(chr(0b101001 + 0o7) + chr(0b1101111) + chr(1542 - 1494), 0o10):
raise wgyAcgIBnjQK(roI3spqORKae(ES5oEprVxulp(b'\xa5B\xee#\xfdb\x03\x98\xc4\xfa]Nmx8\r-H\x9e\x9cBw\x8e\xc7;kb"`\xad\x86\xf6\x9a\xa3\x00v\xc8\x85w\xe1\x8a\r\xbd \xec`\x1e\x97\xc2\xf1J@"Zt\x0f)T\x9c\xceSu\x89\xd81/tgn\xb1\x80\xbe\xd5\xa6Rk\xd4\x85%\xee\x84A\xa2?\xfej\x19\x96\x91\xb4]\x1akn4J;S\x98\x9aF+\xc6\xcd7>\x7f3x\xf3\xc5\xfd\xd5\xb5\x1ck\xce\x99)\xa8\x99L\xaa9\xfcp[\xd1\xc9\xf6A\x16.*{\x1d)\x0b\xd9\x80Tt\x80\xc7*.k(o\xba\xc9\xbe\xdd\xa1\x11|\x90\xc0v\xfd\x89J\xaf3\xea'), '\144' + chr(101) + chr(4320 - 4221) + '\157' + '\144' + '\x65')(chr(0b10000 + 0o145) + chr(0b1110100) + chr(3039 - 2937) + chr(0b11011 + 0o22) + chr(0b111000))) |
mesowx/MesoPy | MesoPy.py | Meso.attime | def attime(self, **kwargs):
r""" Returns a dictionary of latest observations at a user specified location for a specified time. Users must
specify at least one geographic search parameter ('stid', 'state', 'country', 'county', 'radius', 'bbox', 'cwa',
'nwsfirezone', 'gacc', or 'subgacc') to obtain observation data. Other parameters may also be included. See
below for optional parameters. Also see the metadata() function for station IDs.
Arguments:
----------
attime: string, required
Date and time in form of YYYYMMDDhhmm for which returned obs are closest. All times are UTC. e.g.
attime='201504261800'
within: string, required
Can be a single number representing a time period before attime or two comma separated numbers representing
a period before and after the attime e.g. attime='201306011800', within='30' would return the ob closest to
attime within a 30 min period before or after attime.
obtimezone: string, optional
Set to either UTC or local. Sets timezone of obs. Default is UTC. e.g. obtimezone='local'
showemptystations: string, optional
Set to '1' to show stations even if no obs exist that match the time period. Stations without obs are
omitted by default.
stid: string, optional
Single or comma separated list of MesoWest station IDs. e.g. stid='kden,kslc,wbb'
county: string, optional
County/parish/borough (US/Canada only), full name e.g. county='Larimer'
state: string, optional
US state, 2-letter ID e.g. state='CO'
country: string, optional
Single or comma separated list of abbreviated 2 or 3 character countries e.g. country='us,ca,mx'
radius: string, optional
Distance from a lat/lon pt or stid as [lat,lon,radius (mi)] or [stid, radius (mi)]. e.g. radius="-120,40,20"
bbox: string, optional
Stations within a [lon/lat] box in the order [lonmin,latmin,lonmax,latmax] e.g. bbox="-120,40,-119,41"
cwa: string, optional
NWS county warning area. See http://www.nws.noaa.gov/organization.php for CWA list. e.g. cwa='LOX'
nwsfirezone: string, optional
NWS fire zones. See http://www.nws.noaa.gov/geodata/catalog/wsom/html/firezone.htm for a shapefile
containing the full list of zones. e.g. nwsfirezone='LOX241'
gacc: string, optional
Name of Geographic Area Coordination Center e.g. gacc='EBCC' See http://gacc.nifc.gov/ for a list of GACCs.
subgacc: string, optional
Name of Sub GACC e.g. subgacc='EB07'
vars: string, optional
Single or comma separated list of sensor variables. Will return all stations that match one of provided
variables. Useful for filtering all stations that sense only certain vars. Do not request vars twice in
the query. e.g. vars='wind_speed,pressure' Use the variables function to see a list of sensor vars.
status: string, optional
A value of either active or inactive returns stations currently set as active or inactive in the archive.
Omitting this param returns all stations. e.g. status='active'
units: string, optional
String or set of strings and pipes separated by commas. Default is metric units. Set units='ENGLISH' for
FREEDOM UNITS ;) Valid other combinations are as follows: temp|C, temp|F, temp|K; speed|mps, speed|mph,
speed|kph, speed|kts; pres|pa, pres|mb; height|m, height|ft; precip|mm, precip|cm, precip|in; alti|pa,
alti|inhg. e.g. units='temp|F,speed|kph,metric'
groupby: string, optional
Results can be grouped by key words: state, county, country, cwa, nwszone, mwsfirezone, gacc, subgacc
e.g. groupby='state'
timeformat: string, optional
A python format string for returning customized date-time groups for observation times. Can include
characters. e.g. timeformat='%m/%d/%Y at %H:%M'
Returns:
--------
Dictionary of observations around a specific time.
Raises:
-------
None.
"""
self._check_geo_param(kwargs)
kwargs['token'] = self.token
return self._get_response('stations/nearesttime', kwargs) | python | def attime(self, **kwargs):
r""" Returns a dictionary of latest observations at a user specified location for a specified time. Users must
specify at least one geographic search parameter ('stid', 'state', 'country', 'county', 'radius', 'bbox', 'cwa',
'nwsfirezone', 'gacc', or 'subgacc') to obtain observation data. Other parameters may also be included. See
below for optional parameters. Also see the metadata() function for station IDs.
Arguments:
----------
attime: string, required
Date and time in form of YYYYMMDDhhmm for which returned obs are closest. All times are UTC. e.g.
attime='201504261800'
within: string, required
Can be a single number representing a time period before attime or two comma separated numbers representing
a period before and after the attime e.g. attime='201306011800', within='30' would return the ob closest to
attime within a 30 min period before or after attime.
obtimezone: string, optional
Set to either UTC or local. Sets timezone of obs. Default is UTC. e.g. obtimezone='local'
showemptystations: string, optional
Set to '1' to show stations even if no obs exist that match the time period. Stations without obs are
omitted by default.
stid: string, optional
Single or comma separated list of MesoWest station IDs. e.g. stid='kden,kslc,wbb'
county: string, optional
County/parish/borough (US/Canada only), full name e.g. county='Larimer'
state: string, optional
US state, 2-letter ID e.g. state='CO'
country: string, optional
Single or comma separated list of abbreviated 2 or 3 character countries e.g. country='us,ca,mx'
radius: string, optional
Distance from a lat/lon pt or stid as [lat,lon,radius (mi)] or [stid, radius (mi)]. e.g. radius="-120,40,20"
bbox: string, optional
Stations within a [lon/lat] box in the order [lonmin,latmin,lonmax,latmax] e.g. bbox="-120,40,-119,41"
cwa: string, optional
NWS county warning area. See http://www.nws.noaa.gov/organization.php for CWA list. e.g. cwa='LOX'
nwsfirezone: string, optional
NWS fire zones. See http://www.nws.noaa.gov/geodata/catalog/wsom/html/firezone.htm for a shapefile
containing the full list of zones. e.g. nwsfirezone='LOX241'
gacc: string, optional
Name of Geographic Area Coordination Center e.g. gacc='EBCC' See http://gacc.nifc.gov/ for a list of GACCs.
subgacc: string, optional
Name of Sub GACC e.g. subgacc='EB07'
vars: string, optional
Single or comma separated list of sensor variables. Will return all stations that match one of provided
variables. Useful for filtering all stations that sense only certain vars. Do not request vars twice in
the query. e.g. vars='wind_speed,pressure' Use the variables function to see a list of sensor vars.
status: string, optional
A value of either active or inactive returns stations currently set as active or inactive in the archive.
Omitting this param returns all stations. e.g. status='active'
units: string, optional
String or set of strings and pipes separated by commas. Default is metric units. Set units='ENGLISH' for
FREEDOM UNITS ;) Valid other combinations are as follows: temp|C, temp|F, temp|K; speed|mps, speed|mph,
speed|kph, speed|kts; pres|pa, pres|mb; height|m, height|ft; precip|mm, precip|cm, precip|in; alti|pa,
alti|inhg. e.g. units='temp|F,speed|kph,metric'
groupby: string, optional
Results can be grouped by key words: state, county, country, cwa, nwszone, mwsfirezone, gacc, subgacc
e.g. groupby='state'
timeformat: string, optional
A python format string for returning customized date-time groups for observation times. Can include
characters. e.g. timeformat='%m/%d/%Y at %H:%M'
Returns:
--------
Dictionary of observations around a specific time.
Raises:
-------
None.
"""
self._check_geo_param(kwargs)
kwargs['token'] = self.token
return self._get_response('stations/nearesttime', kwargs) | [
"def",
"attime",
"(",
"self",
",",
"*",
"*",
"kwargs",
")",
":",
"self",
".",
"_check_geo_param",
"(",
"kwargs",
")",
"kwargs",
"[",
"'token'",
"]",
"=",
"self",
".",
"token",
"return",
"self",
".",
"_get_response",
"(",
"'stations/nearesttime'",
",",
"kwargs",
")"
] | r""" Returns a dictionary of latest observations at a user specified location for a specified time. Users must
specify at least one geographic search parameter ('stid', 'state', 'country', 'county', 'radius', 'bbox', 'cwa',
'nwsfirezone', 'gacc', or 'subgacc') to obtain observation data. Other parameters may also be included. See
below for optional parameters. Also see the metadata() function for station IDs.
Arguments:
----------
attime: string, required
Date and time in form of YYYYMMDDhhmm for which returned obs are closest. All times are UTC. e.g.
attime='201504261800'
within: string, required
Can be a single number representing a time period before attime or two comma separated numbers representing
a period before and after the attime e.g. attime='201306011800', within='30' would return the ob closest to
attime within a 30 min period before or after attime.
obtimezone: string, optional
Set to either UTC or local. Sets timezone of obs. Default is UTC. e.g. obtimezone='local'
showemptystations: string, optional
Set to '1' to show stations even if no obs exist that match the time period. Stations without obs are
omitted by default.
stid: string, optional
Single or comma separated list of MesoWest station IDs. e.g. stid='kden,kslc,wbb'
county: string, optional
County/parish/borough (US/Canada only), full name e.g. county='Larimer'
state: string, optional
US state, 2-letter ID e.g. state='CO'
country: string, optional
Single or comma separated list of abbreviated 2 or 3 character countries e.g. country='us,ca,mx'
radius: string, optional
Distance from a lat/lon pt or stid as [lat,lon,radius (mi)] or [stid, radius (mi)]. e.g. radius="-120,40,20"
bbox: string, optional
Stations within a [lon/lat] box in the order [lonmin,latmin,lonmax,latmax] e.g. bbox="-120,40,-119,41"
cwa: string, optional
NWS county warning area. See http://www.nws.noaa.gov/organization.php for CWA list. e.g. cwa='LOX'
nwsfirezone: string, optional
NWS fire zones. See http://www.nws.noaa.gov/geodata/catalog/wsom/html/firezone.htm for a shapefile
containing the full list of zones. e.g. nwsfirezone='LOX241'
gacc: string, optional
Name of Geographic Area Coordination Center e.g. gacc='EBCC' See http://gacc.nifc.gov/ for a list of GACCs.
subgacc: string, optional
Name of Sub GACC e.g. subgacc='EB07'
vars: string, optional
Single or comma separated list of sensor variables. Will return all stations that match one of provided
variables. Useful for filtering all stations that sense only certain vars. Do not request vars twice in
the query. e.g. vars='wind_speed,pressure' Use the variables function to see a list of sensor vars.
status: string, optional
A value of either active or inactive returns stations currently set as active or inactive in the archive.
Omitting this param returns all stations. e.g. status='active'
units: string, optional
String or set of strings and pipes separated by commas. Default is metric units. Set units='ENGLISH' for
FREEDOM UNITS ;) Valid other combinations are as follows: temp|C, temp|F, temp|K; speed|mps, speed|mph,
speed|kph, speed|kts; pres|pa, pres|mb; height|m, height|ft; precip|mm, precip|cm, precip|in; alti|pa,
alti|inhg. e.g. units='temp|F,speed|kph,metric'
groupby: string, optional
Results can be grouped by key words: state, county, country, cwa, nwszone, mwsfirezone, gacc, subgacc
e.g. groupby='state'
timeformat: string, optional
A python format string for returning customized date-time groups for observation times. Can include
characters. e.g. timeformat='%m/%d/%Y at %H:%M'
Returns:
--------
Dictionary of observations around a specific time.
Raises:
-------
None. | [
"r",
"Returns",
"a",
"dictionary",
"of",
"latest",
"observations",
"at",
"a",
"user",
"specified",
"location",
"for",
"a",
"specified",
"time",
".",
"Users",
"must",
"specify",
"at",
"least",
"one",
"geographic",
"search",
"parameter",
"(",
"stid",
"state",
"country",
"county",
"radius",
"bbox",
"cwa",
"nwsfirezone",
"gacc",
"or",
"subgacc",
")",
"to",
"obtain",
"observation",
"data",
".",
"Other",
"parameters",
"may",
"also",
"be",
"included",
".",
"See",
"below",
"for",
"optional",
"parameters",
".",
"Also",
"see",
"the",
"metadata",
"()",
"function",
"for",
"station",
"IDs",
"."
] | cd1e837e108ed7a110d81cf789f19afcdd52145b | https://github.com/mesowx/MesoPy/blob/cd1e837e108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hm,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(1508 - 1460) + chr(111) + '\x32' + '\x30' + '\062', ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(2401 - 2351) + '\x31' + chr(0b110101), 0b1000), nzTpIcepk0o8('\x30' + chr(5576 - 5465) + chr(0b1100 + 0o51) + chr(48), 61474 - 61466), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\061' + chr(49) + chr(727 - 672), ord("\x08")), nzTpIcepk0o8('\060' + chr(10185 - 10074) + chr(49) + chr(0b1011 + 0o46) + chr(0b100111 + 0o16), 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(52) + chr(50), 0b1000), nzTpIcepk0o8('\060' + chr(111) + '\062' + chr(0b10110 + 0o41) + chr(0b11 + 0o62), 0o10), nzTpIcepk0o8('\060' + '\x6f' + '\062' + chr(0b100111 + 0o15) + '\x35', 0b1000), nzTpIcepk0o8(chr(1511 - 1463) + '\x6f' + chr(49) + '\x30' + chr(0b100001 + 0o26), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(1133 - 1082) + chr(0b11110 + 0o26) + chr(0b101110 + 0o6), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(6831 - 6720) + chr(0b110010) + chr(0b110110) + chr(0b110110), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(1267 - 1217) + chr(49) + chr(1841 - 1789), 0o10), nzTpIcepk0o8(chr(0b100001 + 0o17) + chr(0b10100 + 0o133) + chr(55) + chr(0b110001), 0o10), nzTpIcepk0o8(chr(711 - 663) + chr(0b1101111) + chr(0b110011) + chr(0b101000 + 0o17) + chr(1878 - 1826), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + '\062' + chr(0b110010) + '\x35', 21113 - 21105), nzTpIcepk0o8(chr(0b11 + 0o55) + chr(0b1101111) + '\061' + '\063' + chr(767 - 719), 0o10), nzTpIcepk0o8(chr(1375 - 1327) + '\157' + '\x33' + chr(0b111 + 0o51) + '\x32', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\063' + chr(0b110001) + '\067', 0o10), nzTpIcepk0o8(chr(931 - 883) + chr(0b1100001 + 0o16) + '\x33' + chr(54), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(49) + '\x30' + '\062', 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110001) + '\x30' + chr(0b1111 + 0o43), 8), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x31' + chr(53), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1100111 + 0o10) + chr(0b110011) + '\065' + chr(1884 - 1830), 0b1000), nzTpIcepk0o8(chr(1773 - 1725) + chr(111) + '\061' + chr(2892 - 2838) + chr(55), 0b1000), nzTpIcepk0o8(chr(1413 - 1365) + '\x6f' + chr(51) + '\x30', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b101001 + 0o106) + chr(51) + chr(50) + chr(52), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(0b110001) + chr(0b110000), 0o10), nzTpIcepk0o8('\060' + chr(111) + '\066' + chr(0b110101), 0o10), nzTpIcepk0o8('\x30' + chr(0b1111 + 0o140) + chr(49) + chr(48) + chr(0b101011 + 0o6), 0b1000), nzTpIcepk0o8(chr(498 - 450) + '\157' + chr(0b101101 + 0o6) + '\067' + '\x35', 0o10), nzTpIcepk0o8(chr(0b101100 + 0o4) + '\x6f' + chr(396 - 345) + chr(54), 8), nzTpIcepk0o8('\x30' + '\x6f' + '\062' + '\x33' + chr(0b11110 + 0o22), 0b1000), nzTpIcepk0o8(chr(0b100000 + 0o20) + '\x6f' + chr(1365 - 1316) + chr(0b110101) + chr(0b10000 + 0o45), 31721 - 31713), nzTpIcepk0o8('\x30' + chr(0b1010 + 0o145) + '\061' + '\x35' + chr(0b10100 + 0o35), 51129 - 51121), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110011) + chr(55) + '\063', 29666 - 29658), nzTpIcepk0o8(chr(506 - 458) + '\x6f' + '\061' + chr(0b110011 + 0o2) + chr(0b1010 + 0o47), 8), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b100000 + 0o24) + '\061', 17680 - 17672), nzTpIcepk0o8('\x30' + chr(6997 - 6886) + '\064' + chr(52), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b101111 + 0o3) + chr(2166 - 2117) + chr(1703 - 1655), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110010) + chr(0b110011) + chr(0b100011 + 0o22), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b10111 + 0o31) + chr(11414 - 11303) + chr(1780 - 1727) + '\060', 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xac'), chr(100) + chr(3951 - 3850) + '\143' + '\x6f' + chr(5657 - 5557) + chr(3993 - 3892))(chr(0b1110101) + '\x74' + chr(0b1100110) + '\x2d' + chr(56)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def Gtc7diZgRkAB(hXMPsSrOQzbh, **q5n0sHDDTy90):
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xdd\xee@*.I\xe2\xc2"\x8b\xe9\xfcX\x8e\xf45'), chr(0b101101 + 0o67) + chr(0b1100101) + '\x63' + '\157' + chr(100) + chr(0b1011000 + 0o15))(chr(117) + chr(116) + '\146' + chr(0b101000 + 0o5) + '\070'))(q5n0sHDDTy90)
q5n0sHDDTy90[roI3spqORKae(ES5oEprVxulp(b'\xf6\xe2C*#'), chr(0b111001 + 0o53) + chr(0b1000111 + 0o36) + chr(99) + '\157' + chr(100) + chr(0b1100101))('\x75' + chr(0b1100110 + 0o16) + '\146' + chr(1834 - 1789) + chr(684 - 628))] = hXMPsSrOQzbh.Hd4nWPplSa3h
return roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xdd\xeaM;\x12P\xd8\xd67\x8b\xd8\xff\\'), chr(0b1100100) + chr(0b1100101) + chr(99) + '\x6f' + chr(4007 - 3907) + chr(0b1100101))(chr(0b110010 + 0o103) + chr(4957 - 4841) + chr(10251 - 10149) + chr(1369 - 1324) + chr(0b11001 + 0o37)))(roI3spqORKae(ES5oEprVxulp(b"\xf1\xf9I;$M\xd3\xd6h\x8a\xd3\xedK\x99\xe6,\xb6\xa6s'"), '\x64' + chr(1719 - 1618) + chr(5257 - 5158) + '\157' + '\x64' + chr(0b1100101))(chr(117) + '\164' + chr(6453 - 6351) + chr(0b101101) + chr(1243 - 1187)), q5n0sHDDTy90) |
mesowx/MesoPy | MesoPy.py | Meso.precip | def precip(self, start, end, **kwargs):
r""" Returns precipitation observations at a user specified location for a specified time. Users must specify at
least one geographic search parameter ('stid', 'state', 'country', 'county', 'radius', 'bbox', 'cwa',
'nwsfirezone', 'gacc', or 'subgacc') to obtain observation data. Other parameters may also be included. See
below mandatory and optional parameters. Also see the metadata() function for station IDs.
Arguments:
----------
start: string, mandatory
Start date in form of YYYYMMDDhhmm. MUST BE USED WITH THE END PARAMETER. Default time is UTC
e.g., start='201306011800'
end: string, mandatory
End date in form of YYYYMMDDhhmm. MUST BE USED WITH THE START PARAMETER. Default time is UTC
e.g., end='201306011800'
obtimezone: string, optional
Set to either UTC or local. Sets timezone of obs. Default is UTC. e.g. obtimezone='local'
showemptystations: string, optional
Set to '1' to show stations even if no obs exist that match the time period. Stations without obs are
omitted by default.
stid: string, optional
Single or comma separated list of MesoWest station IDs. e.g. stid='kden,kslc,wbb'
county: string, optional
County/parish/borough (US/Canada only), full name e.g. county='Larimer'
state: string, optional
US state, 2-letter ID e.g. state='CO'
country: string, optional
Single or comma separated list of abbreviated 2 or 3 character countries e.g. country='us,ca,mx'
radius: list, optional
Distance from a lat/lon pt or stid as [lat,lon,radius (mi)] or [stid, radius (mi)]. e.g. radius="-120,40,20"
bbox: list, optional
Stations within a [lon/lat] box in the order [lonmin,latmin,lonmax,latmax] e.g. bbox="-120,40,-119,41"
cwa: string, optional
NWS county warning area. See http://www.nws.noaa.gov/organization.php for CWA list. e.g. cwa='LOX'
nwsfirezone: string, optional
NWS fire zones. See http://www.nws.noaa.gov/geodata/catalog/wsom/html/firezone.htm for a shapefile
containing the full list of zones. e.g. nwsfirezone='LOX241'
gacc: string, optional
Name of Geographic Area Coordination Center e.g. gacc='EBCC' See http://gacc.nifc.gov/ for a list of GACCs.
subgacc: string, optional
Name of Sub GACC e.g. subgacc='EB07'
vars: string, optional
Single or comma separated list of sensor variables. Will return all stations that match one of provided
variables. Useful for filtering all stations that sense only certain vars. Do not request vars twice in
the query. e.g. vars='wind_speed,pressure' Use the variables function to see a list of sensor vars.
status: string, optional
A value of either active or inactive returns stations currently set as active or inactive in the archive.
Omitting this param returns all stations. e.g. status='active'
units: string, optional
String or set of strings and pipes separated by commas. Default is metric units. Set units='ENGLISH' for
FREEDOM UNITS ;) Valid other combinations are as follows: temp|C, temp|F, temp|K; speed|mps, speed|mph,
speed|kph, speed|kts; pres|pa, pres|mb; height|m, height|ft; precip|mm, precip|cm, precip|in; alti|pa,
alti|inhg. e.g. units='temp|F,speed|kph,metric'
groupby: string, optional
Results can be grouped by key words: state, county, country, cwa, nwszone, mwsfirezone, gacc, subgacc
e.g. groupby='state'
timeformat: string, optional
A python format string for returning customized date-time groups for observation times. Can include
characters. e.g. timeformat='%m/%d/%Y at %H:%M'
Returns:
--------
Dictionary of precipitation observations.
Raises:
-------
None.
"""
self._check_geo_param(kwargs)
kwargs['start'] = start
kwargs['end'] = end
kwargs['token'] = self.token
return self._get_response('stations/precipitation', kwargs) | python | def precip(self, start, end, **kwargs):
r""" Returns precipitation observations at a user specified location for a specified time. Users must specify at
least one geographic search parameter ('stid', 'state', 'country', 'county', 'radius', 'bbox', 'cwa',
'nwsfirezone', 'gacc', or 'subgacc') to obtain observation data. Other parameters may also be included. See
below mandatory and optional parameters. Also see the metadata() function for station IDs.
Arguments:
----------
start: string, mandatory
Start date in form of YYYYMMDDhhmm. MUST BE USED WITH THE END PARAMETER. Default time is UTC
e.g., start='201306011800'
end: string, mandatory
End date in form of YYYYMMDDhhmm. MUST BE USED WITH THE START PARAMETER. Default time is UTC
e.g., end='201306011800'
obtimezone: string, optional
Set to either UTC or local. Sets timezone of obs. Default is UTC. e.g. obtimezone='local'
showemptystations: string, optional
Set to '1' to show stations even if no obs exist that match the time period. Stations without obs are
omitted by default.
stid: string, optional
Single or comma separated list of MesoWest station IDs. e.g. stid='kden,kslc,wbb'
county: string, optional
County/parish/borough (US/Canada only), full name e.g. county='Larimer'
state: string, optional
US state, 2-letter ID e.g. state='CO'
country: string, optional
Single or comma separated list of abbreviated 2 or 3 character countries e.g. country='us,ca,mx'
radius: list, optional
Distance from a lat/lon pt or stid as [lat,lon,radius (mi)] or [stid, radius (mi)]. e.g. radius="-120,40,20"
bbox: list, optional
Stations within a [lon/lat] box in the order [lonmin,latmin,lonmax,latmax] e.g. bbox="-120,40,-119,41"
cwa: string, optional
NWS county warning area. See http://www.nws.noaa.gov/organization.php for CWA list. e.g. cwa='LOX'
nwsfirezone: string, optional
NWS fire zones. See http://www.nws.noaa.gov/geodata/catalog/wsom/html/firezone.htm for a shapefile
containing the full list of zones. e.g. nwsfirezone='LOX241'
gacc: string, optional
Name of Geographic Area Coordination Center e.g. gacc='EBCC' See http://gacc.nifc.gov/ for a list of GACCs.
subgacc: string, optional
Name of Sub GACC e.g. subgacc='EB07'
vars: string, optional
Single or comma separated list of sensor variables. Will return all stations that match one of provided
variables. Useful for filtering all stations that sense only certain vars. Do not request vars twice in
the query. e.g. vars='wind_speed,pressure' Use the variables function to see a list of sensor vars.
status: string, optional
A value of either active or inactive returns stations currently set as active or inactive in the archive.
Omitting this param returns all stations. e.g. status='active'
units: string, optional
String or set of strings and pipes separated by commas. Default is metric units. Set units='ENGLISH' for
FREEDOM UNITS ;) Valid other combinations are as follows: temp|C, temp|F, temp|K; speed|mps, speed|mph,
speed|kph, speed|kts; pres|pa, pres|mb; height|m, height|ft; precip|mm, precip|cm, precip|in; alti|pa,
alti|inhg. e.g. units='temp|F,speed|kph,metric'
groupby: string, optional
Results can be grouped by key words: state, county, country, cwa, nwszone, mwsfirezone, gacc, subgacc
e.g. groupby='state'
timeformat: string, optional
A python format string for returning customized date-time groups for observation times. Can include
characters. e.g. timeformat='%m/%d/%Y at %H:%M'
Returns:
--------
Dictionary of precipitation observations.
Raises:
-------
None.
"""
self._check_geo_param(kwargs)
kwargs['start'] = start
kwargs['end'] = end
kwargs['token'] = self.token
return self._get_response('stations/precipitation', kwargs) | [
"def",
"precip",
"(",
"self",
",",
"start",
",",
"end",
",",
"*",
"*",
"kwargs",
")",
":",
"self",
".",
"_check_geo_param",
"(",
"kwargs",
")",
"kwargs",
"[",
"'start'",
"]",
"=",
"start",
"kwargs",
"[",
"'end'",
"]",
"=",
"end",
"kwargs",
"[",
"'token'",
"]",
"=",
"self",
".",
"token",
"return",
"self",
".",
"_get_response",
"(",
"'stations/precipitation'",
",",
"kwargs",
")"
] | r""" Returns precipitation observations at a user specified location for a specified time. Users must specify at
least one geographic search parameter ('stid', 'state', 'country', 'county', 'radius', 'bbox', 'cwa',
'nwsfirezone', 'gacc', or 'subgacc') to obtain observation data. Other parameters may also be included. See
below mandatory and optional parameters. Also see the metadata() function for station IDs.
Arguments:
----------
start: string, mandatory
Start date in form of YYYYMMDDhhmm. MUST BE USED WITH THE END PARAMETER. Default time is UTC
e.g., start='201306011800'
end: string, mandatory
End date in form of YYYYMMDDhhmm. MUST BE USED WITH THE START PARAMETER. Default time is UTC
e.g., end='201306011800'
obtimezone: string, optional
Set to either UTC or local. Sets timezone of obs. Default is UTC. e.g. obtimezone='local'
showemptystations: string, optional
Set to '1' to show stations even if no obs exist that match the time period. Stations without obs are
omitted by default.
stid: string, optional
Single or comma separated list of MesoWest station IDs. e.g. stid='kden,kslc,wbb'
county: string, optional
County/parish/borough (US/Canada only), full name e.g. county='Larimer'
state: string, optional
US state, 2-letter ID e.g. state='CO'
country: string, optional
Single or comma separated list of abbreviated 2 or 3 character countries e.g. country='us,ca,mx'
radius: list, optional
Distance from a lat/lon pt or stid as [lat,lon,radius (mi)] or [stid, radius (mi)]. e.g. radius="-120,40,20"
bbox: list, optional
Stations within a [lon/lat] box in the order [lonmin,latmin,lonmax,latmax] e.g. bbox="-120,40,-119,41"
cwa: string, optional
NWS county warning area. See http://www.nws.noaa.gov/organization.php for CWA list. e.g. cwa='LOX'
nwsfirezone: string, optional
NWS fire zones. See http://www.nws.noaa.gov/geodata/catalog/wsom/html/firezone.htm for a shapefile
containing the full list of zones. e.g. nwsfirezone='LOX241'
gacc: string, optional
Name of Geographic Area Coordination Center e.g. gacc='EBCC' See http://gacc.nifc.gov/ for a list of GACCs.
subgacc: string, optional
Name of Sub GACC e.g. subgacc='EB07'
vars: string, optional
Single or comma separated list of sensor variables. Will return all stations that match one of provided
variables. Useful for filtering all stations that sense only certain vars. Do not request vars twice in
the query. e.g. vars='wind_speed,pressure' Use the variables function to see a list of sensor vars.
status: string, optional
A value of either active or inactive returns stations currently set as active or inactive in the archive.
Omitting this param returns all stations. e.g. status='active'
units: string, optional
String or set of strings and pipes separated by commas. Default is metric units. Set units='ENGLISH' for
FREEDOM UNITS ;) Valid other combinations are as follows: temp|C, temp|F, temp|K; speed|mps, speed|mph,
speed|kph, speed|kts; pres|pa, pres|mb; height|m, height|ft; precip|mm, precip|cm, precip|in; alti|pa,
alti|inhg. e.g. units='temp|F,speed|kph,metric'
groupby: string, optional
Results can be grouped by key words: state, county, country, cwa, nwszone, mwsfirezone, gacc, subgacc
e.g. groupby='state'
timeformat: string, optional
A python format string for returning customized date-time groups for observation times. Can include
characters. e.g. timeformat='%m/%d/%Y at %H:%M'
Returns:
--------
Dictionary of precipitation observations.
Raises:
-------
None. | [
"r",
"Returns",
"precipitation",
"observations",
"at",
"a",
"user",
"specified",
"location",
"for",
"a",
"specified",
"time",
".",
"Users",
"must",
"specify",
"at",
"least",
"one",
"geographic",
"search",
"parameter",
"(",
"stid",
"state",
"country",
"county",
"radius",
"bbox",
"cwa",
"nwsfirezone",
"gacc",
"or",
"subgacc",
")",
"to",
"obtain",
"observation",
"data",
".",
"Other",
"parameters",
"may",
"also",
"be",
"included",
".",
"See",
"below",
"mandatory",
"and",
"optional",
"parameters",
".",
"Also",
"see",
"the",
"metadata",
"()",
"function",
"for",
"station",
"IDs",
"."
] | cd1e837e108ed7a110d81cf789f19afcdd52145b | https://github.com/mesowx/MesoPy/blob/cd1e837e108ed7a110d81cf789f19afcdd52145b/MesoPy.py#L346-L420 | train | r Returns a dictionary of precipitation observations at a user 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,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,ZO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QRcrJP,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) + '\062' + chr(374 - 323) + chr(51), 0o10), nzTpIcepk0o8('\x30' + '\157' + '\066' + chr(2261 - 2206), 64475 - 64467), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b1101 + 0o45) + '\x34' + '\065', 0o10), nzTpIcepk0o8('\060' + chr(0b110110 + 0o71) + chr(0b110011) + '\x33' + '\062', 0b1000), nzTpIcepk0o8(chr(0b11101 + 0o23) + '\157' + '\063' + chr(1922 - 1873) + chr(50), 11571 - 11563), nzTpIcepk0o8('\060' + chr(3268 - 3157) + chr(540 - 491) + '\061', 35995 - 35987), nzTpIcepk0o8('\060' + '\x6f' + chr(591 - 539) + chr(0b110 + 0o55), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\062' + '\x33' + '\064', 0o10), nzTpIcepk0o8(chr(48) + chr(0b1011010 + 0o25) + chr(0b100011 + 0o17) + chr(1805 - 1751) + chr(1959 - 1909), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(0b10010 + 0o40) + '\x34' + chr(0b110001), 0o10), nzTpIcepk0o8(chr(1015 - 967) + '\157' + '\x34' + '\060', 14221 - 14213), nzTpIcepk0o8(chr(0b110000) + '\157' + '\067' + chr(0b110 + 0o56), 49341 - 49333), nzTpIcepk0o8(chr(1016 - 968) + chr(0b1101111) + chr(0b1010 + 0o50) + chr(54), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(6147 - 6036) + chr(0b110010) + chr(48) + '\x35', 0o10), nzTpIcepk0o8('\060' + chr(0b1010101 + 0o32) + '\x31' + chr(50) + chr(0b110100), ord("\x08")), nzTpIcepk0o8(chr(0b1001 + 0o47) + chr(6438 - 6327) + chr(0b1101 + 0o46) + chr(49) + chr(0b110111), 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(2297 - 2247) + chr(0b110110) + chr(0b101000 + 0o10), 0b1000), nzTpIcepk0o8('\060' + chr(1469 - 1358) + '\x32' + chr(0b110011) + '\065', ord("\x08")), nzTpIcepk0o8(chr(0b100111 + 0o11) + '\x6f' + chr(790 - 741) + '\x36' + chr(0b11011 + 0o27), 0b1000), nzTpIcepk0o8(chr(0b11 + 0o55) + chr(8710 - 8599) + chr(0b101101 + 0o5) + chr(55) + chr(49), ord("\x08")), nzTpIcepk0o8(chr(1996 - 1948) + chr(0b101011 + 0o104) + chr(1748 - 1698) + '\061' + chr(52), 0o10), nzTpIcepk0o8(chr(0b101000 + 0o10) + chr(111) + chr(0b110001) + '\x32' + '\066', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\063' + '\x35' + chr(0b110001), 0o10), nzTpIcepk0o8(chr(0b100001 + 0o17) + '\x6f' + chr(0b110010) + chr(0b110001) + chr(48), 26844 - 26836), nzTpIcepk0o8('\x30' + chr(3005 - 2894) + '\063' + chr(0b110 + 0o55) + chr(0b110010), 8), nzTpIcepk0o8(chr(175 - 127) + '\x6f' + chr(0b110001) + '\x32' + '\061', 31770 - 31762), nzTpIcepk0o8(chr(48) + chr(3730 - 3619) + chr(798 - 748) + chr(0b100101 + 0o22) + chr(0b110111), 0b1000), nzTpIcepk0o8(chr(2055 - 2007) + '\157' + chr(509 - 460) + chr(0b101110 + 0o6) + '\x36', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b111 + 0o150) + '\061' + chr(50) + chr(0b101001 + 0o10), 8), nzTpIcepk0o8('\x30' + '\157' + chr(0b10010 + 0o40) + chr(1717 - 1662) + chr(0b11110 + 0o25), 54904 - 54896), nzTpIcepk0o8('\x30' + chr(0b11011 + 0o124) + chr(0b110010) + chr(0b110100) + '\x33', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b11001 + 0o126) + chr(0b0 + 0o63) + chr(0b110101) + chr(0b1000 + 0o56), 0o10), nzTpIcepk0o8('\060' + chr(111) + '\x33' + chr(567 - 512) + chr(941 - 886), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(876 - 827) + '\061' + chr(0b110111), 12742 - 12734), nzTpIcepk0o8('\060' + '\x6f' + chr(50) + chr(0b101011 + 0o6) + chr(54), ord("\x08")), nzTpIcepk0o8(chr(1007 - 959) + chr(111) + '\x32' + chr(50) + chr(0b0 + 0o67), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + '\064' + chr(1023 - 973), 0o10), nzTpIcepk0o8(chr(0b100111 + 0o11) + '\157' + chr(0b10010 + 0o40) + chr(1950 - 1900) + chr(54), 35073 - 35065), nzTpIcepk0o8('\x30' + '\x6f' + '\062' + chr(0b11100 + 0o24) + chr(471 - 423), 5897 - 5889), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(1159 - 1109) + '\x31' + chr(0b110101), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b101110 + 0o2) + '\x6f' + '\065' + chr(0b100011 + 0o15), 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xb5'), chr(100) + chr(101) + '\143' + '\x6f' + chr(0b11111 + 0o105) + chr(0b111101 + 0o50))('\165' + '\164' + chr(0b1010100 + 0o22) + chr(0b100010 + 0o13) + chr(0b10101 + 0o43)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def jkSqcv0NPNEL(hXMPsSrOQzbh, KQbHFTcl_LKy, NiWVjAWn0l6T, **q5n0sHDDTy90):
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xc4T\xcd\xbf\xa9b|\xfb\xd7\xce\x7fLw\xf75\xa2'), chr(0b111111 + 0o45) + chr(101) + chr(581 - 482) + chr(0b1101111) + chr(0b1100100) + '\145')('\165' + '\164' + chr(0b11111 + 0o107) + chr(45) + '\070'))(q5n0sHDDTy90)
q5n0sHDDTy90[roI3spqORKae(ES5oEprVxulp(b'\xe8C\xc4\xa8\xbe'), chr(0b1010011 + 0o21) + chr(101) + chr(0b1111 + 0o124) + '\x6f' + chr(9477 - 9377) + '\x65')(chr(0b100000 + 0o125) + chr(9148 - 9032) + '\x66' + '\055' + chr(56))] = KQbHFTcl_LKy
q5n0sHDDTy90[roI3spqORKae(ES5oEprVxulp(b'\xfeY\xc1'), chr(0b11001 + 0o113) + chr(0b1100101) + '\143' + chr(0b1010010 + 0o35) + chr(0b10110 + 0o116) + chr(0b1100101))(chr(117) + '\x74' + chr(102) + '\x2d' + chr(0b11 + 0o65))] = NiWVjAWn0l6T
q5n0sHDDTy90[roI3spqORKae(ES5oEprVxulp(b'\xefX\xce\xbf\xa4'), chr(5638 - 5538) + '\x65' + chr(0b1100010 + 0o1) + chr(0b1101111) + chr(4806 - 4706) + '\145')('\x75' + chr(6988 - 6872) + '\x66' + chr(0b11000 + 0o25) + '\070')] = hXMPsSrOQzbh.Hd4nWPplSa3h
return roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xc4P\xc0\xae\x95{F\xef\xc2\xceNOs'), chr(100) + chr(0b10101 + 0o120) + chr(0b1011001 + 0o12) + chr(111) + chr(100) + chr(0b1100001 + 0o4))(chr(7070 - 6953) + chr(0b1110100) + '\x66' + '\x2d' + chr(0b1111 + 0o51)))(roI3spqORKae(ES5oEprVxulp(b'\xe8C\xc4\xae\xa3fM\xef\x9d\xd1RYu\xec$\xa6\xc4\xfc\x06\xd0\xe38'), chr(0b100110 + 0o76) + chr(0b0 + 0o145) + chr(99) + chr(0b1010111 + 0o30) + chr(0b1100100) + '\x65')(chr(0b1110101) + chr(0b1110100) + chr(0b1100110) + '\055' + '\x38'), q5n0sHDDTy90) |
mesowx/MesoPy | MesoPy.py | Meso.timeseries | def timeseries(self, start, end, **kwargs):
r""" Returns a time series of observations at a user specified location for a specified time. Users must specify
at least one geographic search parameter ('stid', 'state', 'country', 'county', 'radius', 'bbox', 'cwa',
'nwsfirezone', 'gacc', or 'subgacc') to obtain observation data. Other parameters may also be included. See
below mandatory and optional parameters. Also see the metadata() function for station IDs.
Arguments:
----------
start: string, mandatory
Start date in form of YYYYMMDDhhmm. MUST BE USED WITH THE END PARAMETER. Default time is UTC
e.g., start='201306011800'
end: string, mandatory
End date in form of YYYYMMDDhhmm. MUST BE USED WITH THE START PARAMETER. Default time is UTC
e.g., end='201306011800'
obtimezone: string, optional
Set to either UTC or local. Sets timezone of obs. Default is UTC. e.g. obtimezone='local'
showemptystations: string, optional
Set to '1' to show stations even if no obs exist that match the time period. Stations without obs are
omitted by default.
stid: string, optional
Single or comma separated list of MesoWest station IDs. e.g. stid='kden,kslc,wbb'
county: string, optional
County/parish/borough (US/Canada only), full name e.g. county='Larimer'
state: string, optional
US state, 2-letter ID e.g. state='CO'
country: string, optional
Single or comma separated list of abbreviated 2 or 3 character countries e.g. country='us,ca,mx'
radius: string, optional
Distance from a lat/lon pt or stid as [lat,lon,radius (mi)] or [stid, radius (mi)]. e.g. radius="-120,40,20"
bbox: string, optional
Stations within a [lon/lat] box in the order [lonmin,latmin,lonmax,latmax] e.g. bbox="-120,40,-119,41"
cwa: string, optional
NWS county warning area. See http://www.nws.noaa.gov/organization.php for CWA list. e.g. cwa='LOX'
nwsfirezone: string, optional
NWS fire zones. See http://www.nws.noaa.gov/geodata/catalog/wsom/html/firezone.htm for a shapefile
containing the full list of zones. e.g. nwsfirezone='LOX241'
gacc: string, optional
Name of Geographic Area Coordination Center e.g. gacc='EBCC' See http://gacc.nifc.gov/ for a list of GACCs.
subgacc: string, optional
Name of Sub GACC e.g. subgacc='EB07'
vars: string, optional
Single or comma separated list of sensor variables. Will return all stations that match one of provided
variables. Useful for filtering all stations that sense only certain vars. Do not request vars twice in
the query. e.g. vars='wind_speed,pressure' Use the variables function to see a list of sensor vars.
status: string, optional
A value of either active or inactive returns stations currently set as active or inactive in the archive.
Omitting this param returns all stations. e.g. status='active'
units: string, optional
String or set of strings and pipes separated by commas. Default is metric units. Set units='ENGLISH' for
FREEDOM UNITS ;) Valid other combinations are as follows: temp|C, temp|F, temp|K; speed|mps, speed|mph,
speed|kph, speed|kts; pres|pa, pres|mb; height|m, height|ft; precip|mm, precip|cm, precip|in; alti|pa,
alti|inhg. e.g. units='temp|F,speed|kph,metric'
groupby: string, optional
Results can be grouped by key words: state, county, country, cwa, nwszone, mwsfirezone, gacc, subgacc
e.g. groupby='state'
timeformat: string, optional
A python format string for returning customized date-time groups for observation times. Can include
characters. e.g. timeformat='%m/%d/%Y at %H:%M'
Returns:
--------
Dictionary of time series observations through the get_response() function.
Raises:
-------
None.
"""
self._check_geo_param(kwargs)
kwargs['start'] = start
kwargs['end'] = end
kwargs['token'] = self.token
return self._get_response('stations/timeseries', kwargs) | python | def timeseries(self, start, end, **kwargs):
r""" Returns a time series of observations at a user specified location for a specified time. Users must specify
at least one geographic search parameter ('stid', 'state', 'country', 'county', 'radius', 'bbox', 'cwa',
'nwsfirezone', 'gacc', or 'subgacc') to obtain observation data. Other parameters may also be included. See
below mandatory and optional parameters. Also see the metadata() function for station IDs.
Arguments:
----------
start: string, mandatory
Start date in form of YYYYMMDDhhmm. MUST BE USED WITH THE END PARAMETER. Default time is UTC
e.g., start='201306011800'
end: string, mandatory
End date in form of YYYYMMDDhhmm. MUST BE USED WITH THE START PARAMETER. Default time is UTC
e.g., end='201306011800'
obtimezone: string, optional
Set to either UTC or local. Sets timezone of obs. Default is UTC. e.g. obtimezone='local'
showemptystations: string, optional
Set to '1' to show stations even if no obs exist that match the time period. Stations without obs are
omitted by default.
stid: string, optional
Single or comma separated list of MesoWest station IDs. e.g. stid='kden,kslc,wbb'
county: string, optional
County/parish/borough (US/Canada only), full name e.g. county='Larimer'
state: string, optional
US state, 2-letter ID e.g. state='CO'
country: string, optional
Single or comma separated list of abbreviated 2 or 3 character countries e.g. country='us,ca,mx'
radius: string, optional
Distance from a lat/lon pt or stid as [lat,lon,radius (mi)] or [stid, radius (mi)]. e.g. radius="-120,40,20"
bbox: string, optional
Stations within a [lon/lat] box in the order [lonmin,latmin,lonmax,latmax] e.g. bbox="-120,40,-119,41"
cwa: string, optional
NWS county warning area. See http://www.nws.noaa.gov/organization.php for CWA list. e.g. cwa='LOX'
nwsfirezone: string, optional
NWS fire zones. See http://www.nws.noaa.gov/geodata/catalog/wsom/html/firezone.htm for a shapefile
containing the full list of zones. e.g. nwsfirezone='LOX241'
gacc: string, optional
Name of Geographic Area Coordination Center e.g. gacc='EBCC' See http://gacc.nifc.gov/ for a list of GACCs.
subgacc: string, optional
Name of Sub GACC e.g. subgacc='EB07'
vars: string, optional
Single or comma separated list of sensor variables. Will return all stations that match one of provided
variables. Useful for filtering all stations that sense only certain vars. Do not request vars twice in
the query. e.g. vars='wind_speed,pressure' Use the variables function to see a list of sensor vars.
status: string, optional
A value of either active or inactive returns stations currently set as active or inactive in the archive.
Omitting this param returns all stations. e.g. status='active'
units: string, optional
String or set of strings and pipes separated by commas. Default is metric units. Set units='ENGLISH' for
FREEDOM UNITS ;) Valid other combinations are as follows: temp|C, temp|F, temp|K; speed|mps, speed|mph,
speed|kph, speed|kts; pres|pa, pres|mb; height|m, height|ft; precip|mm, precip|cm, precip|in; alti|pa,
alti|inhg. e.g. units='temp|F,speed|kph,metric'
groupby: string, optional
Results can be grouped by key words: state, county, country, cwa, nwszone, mwsfirezone, gacc, subgacc
e.g. groupby='state'
timeformat: string, optional
A python format string for returning customized date-time groups for observation times. Can include
characters. e.g. timeformat='%m/%d/%Y at %H:%M'
Returns:
--------
Dictionary of time series observations through the get_response() function.
Raises:
-------
None.
"""
self._check_geo_param(kwargs)
kwargs['start'] = start
kwargs['end'] = end
kwargs['token'] = self.token
return self._get_response('stations/timeseries', kwargs) | [
"def",
"timeseries",
"(",
"self",
",",
"start",
",",
"end",
",",
"*",
"*",
"kwargs",
")",
":",
"self",
".",
"_check_geo_param",
"(",
"kwargs",
")",
"kwargs",
"[",
"'start'",
"]",
"=",
"start",
"kwargs",
"[",
"'end'",
"]",
"=",
"end",
"kwargs",
"[",
"'token'",
"]",
"=",
"self",
".",
"token",
"return",
"self",
".",
"_get_response",
"(",
"'stations/timeseries'",
",",
"kwargs",
")"
] | r""" Returns a time series of observations at a user specified location for a specified time. Users must specify
at least one geographic search parameter ('stid', 'state', 'country', 'county', 'radius', 'bbox', 'cwa',
'nwsfirezone', 'gacc', or 'subgacc') to obtain observation data. Other parameters may also be included. See
below mandatory and optional parameters. Also see the metadata() function for station IDs.
Arguments:
----------
start: string, mandatory
Start date in form of YYYYMMDDhhmm. MUST BE USED WITH THE END PARAMETER. Default time is UTC
e.g., start='201306011800'
end: string, mandatory
End date in form of YYYYMMDDhhmm. MUST BE USED WITH THE START PARAMETER. Default time is UTC
e.g., end='201306011800'
obtimezone: string, optional
Set to either UTC or local. Sets timezone of obs. Default is UTC. e.g. obtimezone='local'
showemptystations: string, optional
Set to '1' to show stations even if no obs exist that match the time period. Stations without obs are
omitted by default.
stid: string, optional
Single or comma separated list of MesoWest station IDs. e.g. stid='kden,kslc,wbb'
county: string, optional
County/parish/borough (US/Canada only), full name e.g. county='Larimer'
state: string, optional
US state, 2-letter ID e.g. state='CO'
country: string, optional
Single or comma separated list of abbreviated 2 or 3 character countries e.g. country='us,ca,mx'
radius: string, optional
Distance from a lat/lon pt or stid as [lat,lon,radius (mi)] or [stid, radius (mi)]. e.g. radius="-120,40,20"
bbox: string, optional
Stations within a [lon/lat] box in the order [lonmin,latmin,lonmax,latmax] e.g. bbox="-120,40,-119,41"
cwa: string, optional
NWS county warning area. See http://www.nws.noaa.gov/organization.php for CWA list. e.g. cwa='LOX'
nwsfirezone: string, optional
NWS fire zones. See http://www.nws.noaa.gov/geodata/catalog/wsom/html/firezone.htm for a shapefile
containing the full list of zones. e.g. nwsfirezone='LOX241'
gacc: string, optional
Name of Geographic Area Coordination Center e.g. gacc='EBCC' See http://gacc.nifc.gov/ for a list of GACCs.
subgacc: string, optional
Name of Sub GACC e.g. subgacc='EB07'
vars: string, optional
Single or comma separated list of sensor variables. Will return all stations that match one of provided
variables. Useful for filtering all stations that sense only certain vars. Do not request vars twice in
the query. e.g. vars='wind_speed,pressure' Use the variables function to see a list of sensor vars.
status: string, optional
A value of either active or inactive returns stations currently set as active or inactive in the archive.
Omitting this param returns all stations. e.g. status='active'
units: string, optional
String or set of strings and pipes separated by commas. Default is metric units. Set units='ENGLISH' for
FREEDOM UNITS ;) Valid other combinations are as follows: temp|C, temp|F, temp|K; speed|mps, speed|mph,
speed|kph, speed|kts; pres|pa, pres|mb; height|m, height|ft; precip|mm, precip|cm, precip|in; alti|pa,
alti|inhg. e.g. units='temp|F,speed|kph,metric'
groupby: string, optional
Results can be grouped by key words: state, county, country, cwa, nwszone, mwsfirezone, gacc, subgacc
e.g. groupby='state'
timeformat: string, optional
A python format string for returning customized date-time groups for observation times. Can include
characters. e.g. timeformat='%m/%d/%Y at %H:%M'
Returns:
--------
Dictionary of time series observations through the get_response() function.
Raises:
-------
None. | [
"r",
"Returns",
"a",
"time",
"series",
"of",
"observations",
"at",
"a",
"user",
"specified",
"location",
"for",
"a",
"specified",
"time",
".",
"Users",
"must",
"specify",
"at",
"least",
"one",
"geographic",
"search",
"parameter",
"(",
"stid",
"state",
"country",
"county",
"radius",
"bbox",
"cwa",
"nwsfirezone",
"gacc",
"or",
"subgacc",
")",
"to",
"obtain",
"observation",
"data",
".",
"Other",
"parameters",
"may",
"also",
"be",
"included",
".",
"See",
"below",
"mandatory",
"and",
"optional",
"parameters",
".",
"Also",
"see",
"the",
"metadata",
"()",
"function",
"for",
"station",
"IDs",
"."
] | cd1e837e108ed7a110d81cf789f19afcdd52145b | https://github.com/mesowx/MesoPy/blob/cd1e837e108ed7a110d81cf789f19afcdd52145b/MesoPy.py#L422-L495 | train | r Returns a time series of observations at a user specified location for a specified 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,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,o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aY,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(1468 - 1357) + '\060', 27636 - 27628), nzTpIcepk0o8(chr(0b100100 + 0o14) + chr(0b110100 + 0o73) + chr(70 - 21) + chr(0b10100 + 0o42) + '\066', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(8569 - 8458) + '\061' + chr(195 - 146) + chr(0b110001), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1100100 + 0o13) + chr(51) + chr(2504 - 2453) + chr(0b110100), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(374 - 323) + '\x31' + '\x37', 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(2215 - 2165) + '\x30', 0o10), nzTpIcepk0o8(chr(1054 - 1006) + '\157' + chr(0b100101 + 0o16) + chr(0b110011) + chr(0b1010 + 0o47), 0o10), nzTpIcepk0o8(chr(2104 - 2056) + '\x6f' + '\062' + '\065', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1001100 + 0o43) + chr(713 - 662) + chr(0b110111) + chr(1548 - 1500), 0b1000), nzTpIcepk0o8(chr(0b1001 + 0o47) + chr(5871 - 5760) + chr(0b110011) + chr(2560 - 2509) + chr(1542 - 1489), ord("\x08")), nzTpIcepk0o8(chr(1852 - 1804) + '\x6f' + chr(50) + '\x30' + '\065', 26916 - 26908), nzTpIcepk0o8('\x30' + '\157' + '\063' + chr(0b10110 + 0o33) + '\x35', 0o10), nzTpIcepk0o8('\060' + chr(256 - 145) + chr(0b110010) + chr(0b110010) + chr(800 - 750), 0b1000), nzTpIcepk0o8('\060' + '\157' + chr(533 - 484) + chr(2027 - 1974) + chr(51), 0o10), nzTpIcepk0o8(chr(944 - 896) + chr(672 - 561) + '\061' + chr(49) + '\x32', ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(0b100 + 0o56) + '\062' + '\x30', 20888 - 20880), nzTpIcepk0o8(chr(48) + chr(111) + '\063' + chr(52) + chr(1773 - 1721), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(51) + chr(0b101 + 0o60) + chr(0b10010 + 0o44), ord("\x08")), nzTpIcepk0o8('\060' + chr(9027 - 8916) + chr(245 - 194) + chr(48), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(1238 - 1189) + chr(53) + chr(1629 - 1574), 0b1000), nzTpIcepk0o8(chr(909 - 861) + chr(111) + chr(0b100101 + 0o14) + chr(0b110101) + chr(0b11 + 0o62), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b100111 + 0o13) + chr(0b110001) + chr(51), 51050 - 51042), nzTpIcepk0o8(chr(1471 - 1423) + chr(5977 - 5866) + chr(0b110011) + chr(55) + chr(0b110101), ord("\x08")), nzTpIcepk0o8(chr(1161 - 1113) + chr(0b1101111) + chr(50) + chr(0b110001) + '\067', 0o10), nzTpIcepk0o8(chr(0b11001 + 0o27) + chr(0b11010 + 0o125) + '\063' + '\063' + chr(50), 0o10), nzTpIcepk0o8('\x30' + chr(3564 - 3453) + chr(2253 - 2204) + '\067', ord("\x08")), nzTpIcepk0o8('\060' + chr(3088 - 2977) + chr(0b101110 + 0o3) + '\x36' + chr(50), 0b1000), nzTpIcepk0o8(chr(0b1100 + 0o44) + '\157' + '\062' + chr(0b110100) + '\x36', 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(350 - 299) + chr(167 - 114) + chr(54), 8), nzTpIcepk0o8(chr(774 - 726) + '\x6f' + chr(0b10101 + 0o42), 0o10), nzTpIcepk0o8(chr(2045 - 1997) + '\x6f' + '\x32' + '\x31' + chr(0b100 + 0o56), 0o10), nzTpIcepk0o8('\060' + '\157' + '\063' + chr(1539 - 1486) + chr(52), 0o10), nzTpIcepk0o8(chr(0b10111 + 0o31) + chr(0b1101111) + chr(480 - 430) + chr(53) + chr(48), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1010000 + 0o37) + '\x34' + '\065', 0b1000), nzTpIcepk0o8(chr(48) + chr(6981 - 6870) + chr(49) + chr(53), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(55), 8), nzTpIcepk0o8('\060' + chr(0b1000010 + 0o55) + chr(2559 - 2505), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(54) + '\060', 17166 - 17158), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b101011 + 0o10) + '\061' + '\x35', 8), nzTpIcepk0o8('\x30' + chr(0b1111 + 0o140) + chr(0b110011) + chr(0b100011 + 0o22) + '\064', 8)][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + chr(111) + '\065' + '\x30', 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'.'), chr(0b100011 + 0o101) + chr(101) + chr(0b1100011) + chr(4333 - 4222) + chr(0b11011 + 0o111) + chr(101))(chr(405 - 288) + chr(116) + chr(0b1100110) + chr(45) + '\x38') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def H8vTJ6Gh2sUG(hXMPsSrOQzbh, KQbHFTcl_LKy, NiWVjAWn0l6T, **q5n0sHDDTy90):
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'_\x15!\xb9\xac{\x86r\x9d\xb2\xda\xbd\xf3\x19+\xfd'), chr(5352 - 5252) + chr(0b110110 + 0o57) + chr(99) + chr(0b1101111) + '\x64' + chr(101))('\165' + chr(0b1110100) + '\x66' + chr(1818 - 1773) + chr(56)))(q5n0sHDDTy90)
q5n0sHDDTy90[roI3spqORKae(ES5oEprVxulp(b's\x02(\xae\xbb'), '\x64' + chr(0b1100101) + '\143' + chr(111) + chr(0b1100100) + '\145')(chr(0b1110101) + '\x74' + chr(0b1100110) + '\x2d' + chr(0b110001 + 0o7))] = KQbHFTcl_LKy
q5n0sHDDTy90[roI3spqORKae(ES5oEprVxulp(b'e\x18-'), chr(5450 - 5350) + '\x65' + chr(99) + '\x6f' + '\x64' + chr(0b1100101))('\x75' + chr(116) + chr(0b1100000 + 0o6) + chr(45) + chr(2274 - 2218))] = NiWVjAWn0l6T
q5n0sHDDTy90[roI3spqORKae(ES5oEprVxulp(b't\x19"\xb9\xa1'), '\x64' + chr(0b1100101) + '\x63' + chr(0b1101111) + chr(100) + '\x65')('\165' + '\x74' + chr(0b1100110) + '\x2d' + chr(56))] = hXMPsSrOQzbh.Hd4nWPplSa3h
return roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'_\x11,\xa8\x90b\xbcf\x88\xb2\xeb\xbe\xf7'), '\144' + chr(7385 - 7284) + chr(99) + chr(3991 - 3880) + '\x64' + '\x65')('\165' + chr(0b1110100) + '\x66' + chr(905 - 860) + chr(56)))(roI3spqORKae(ES5oEprVxulp(b's\x02(\xa8\xa6\x7f\xb7f\xd7\xa9\xec\xa0\xf7\x18/\xe2\x8d\x8bk'), chr(100) + '\x65' + '\143' + '\x6f' + chr(0b1100100) + chr(0b1011100 + 0o11))('\165' + chr(116) + '\x66' + chr(45) + chr(0b100101 + 0o23)), q5n0sHDDTy90) |
mesowx/MesoPy | MesoPy.py | Meso.climatology | def climatology(self, startclim, endclim, **kwargs):
r""" Returns a climatology of observations at a user specified location for a specified time. Users must specify
at least one geographic search parameter ('stid', 'state', 'country', 'county', 'radius', 'bbox', 'cwa',
'nwsfirezone', 'gacc', or 'subgacc') to obtain observation data. Other parameters may also be included. See
below mandatory and optional parameters. Also see the metadata() function for station IDs.
Arguments:
----------
startclim: string, mandatory
Start date in form of MMDDhhmm. MUST BE USED WITH THE ENDCLIM PARAMETER. Default time is UTC
e.g. startclim='06011800' Do not specify a year
endclim: string, mandatory
End date in form of MMDDhhmm. MUST BE USED WITH THE STARTCLIM PARAMETER. Default time is UTC
e.g. endclim='06011800' Do not specify a year
obtimezone: string, optional
Set to either UTC or local. Sets timezone of obs. Default is UTC. e.g. obtimezone='local'
showemptystations: string, optional
Set to '1' to show stations even if no obs exist that match the time period. Stations without obs are
omitted by default.
stid: string, optional
Single or comma separated list of MesoWest station IDs. e.g. stid='kden,kslc,wbb'
county: string, optional
County/parish/borough (US/Canada only), full name e.g. county='Larimer'
state: string, optional
US state, 2-letter ID e.g. state='CO'
country: string, optional
Single or comma separated list of abbreviated 2 or 3 character countries e.g. country='us,ca,mx'
radius: string, optional
Distance from a lat/lon pt or stid as [lat,lon,radius (mi)] or [stid, radius (mi)]. e.g. radius="-120,40,20"
bbox: string, optional
Stations within a [lon/lat] box in the order [lonmin,latmin,lonmax,latmax] e.g. bbox="-120,40,-119,41"
cwa: string, optional
NWS county warning area. See http://www.nws.noaa.gov/organization.php for CWA list. e.g. cwa='LOX'
nwsfirezone: string, optional
NWS fire zones. See http://www.nws.noaa.gov/geodata/catalog/wsom/html/firezone.htm for a shapefile
containing the full list of zones. e.g. nwsfirezone='LOX241'
gacc: string, optional
Name of Geographic Area Coordination Center e.g. gacc='EBCC' See http://gacc.nifc.gov/ for a list of GACCs.
subgacc: string, optional
Name of Sub GACC e.g. subgacc='EB07'
vars: string, optional
Single or comma separated list of sensor variables. Will return all stations that match one of provided
variables. Useful for filtering all stations that sense only certain vars. Do not request vars twice in
the query. e.g. vars='wind_speed,pressure' Use the variables function to see a list of sensor vars.
status: string, optional
A value of either active or inactive returns stations currently set as active or inactive in the archive.
Omitting this param returns all stations. e.g. status='active'
units: string, optional
String or set of strings and pipes separated by commas. Default is metric units. Set units='ENGLISH' for
FREEDOM UNITS ;) Valid other combinations are as follows: temp|C, temp|F, temp|K; speed|mps, speed|mph,
speed|kph, speed|kts; pres|pa, pres|mb; height|m, height|ft; precip|mm, precip|cm, precip|in; alti|pa,
alti|inhg. e.g. units='temp|F,speed|kph,metric'
groupby: string, optional
Results can be grouped by key words: state, county, country, cwa, nwszone, mwsfirezone, gacc, subgacc
e.g. groupby='state'
timeformat: string, optional
A python format string for returning customized date-time groups for observation times. Can include
characters. e.g. timeformat='%m/%d/%Y at %H:%M'
Returns:
--------
Dictionary of climatology observations through the get_response() function.
Raises:
-------
None.
"""
self._check_geo_param(kwargs)
kwargs['startclim'] = startclim
kwargs['endclim'] = endclim
kwargs['token'] = self.token
return self._get_response('stations/climatology', kwargs) | python | def climatology(self, startclim, endclim, **kwargs):
r""" Returns a climatology of observations at a user specified location for a specified time. Users must specify
at least one geographic search parameter ('stid', 'state', 'country', 'county', 'radius', 'bbox', 'cwa',
'nwsfirezone', 'gacc', or 'subgacc') to obtain observation data. Other parameters may also be included. See
below mandatory and optional parameters. Also see the metadata() function for station IDs.
Arguments:
----------
startclim: string, mandatory
Start date in form of MMDDhhmm. MUST BE USED WITH THE ENDCLIM PARAMETER. Default time is UTC
e.g. startclim='06011800' Do not specify a year
endclim: string, mandatory
End date in form of MMDDhhmm. MUST BE USED WITH THE STARTCLIM PARAMETER. Default time is UTC
e.g. endclim='06011800' Do not specify a year
obtimezone: string, optional
Set to either UTC or local. Sets timezone of obs. Default is UTC. e.g. obtimezone='local'
showemptystations: string, optional
Set to '1' to show stations even if no obs exist that match the time period. Stations without obs are
omitted by default.
stid: string, optional
Single or comma separated list of MesoWest station IDs. e.g. stid='kden,kslc,wbb'
county: string, optional
County/parish/borough (US/Canada only), full name e.g. county='Larimer'
state: string, optional
US state, 2-letter ID e.g. state='CO'
country: string, optional
Single or comma separated list of abbreviated 2 or 3 character countries e.g. country='us,ca,mx'
radius: string, optional
Distance from a lat/lon pt or stid as [lat,lon,radius (mi)] or [stid, radius (mi)]. e.g. radius="-120,40,20"
bbox: string, optional
Stations within a [lon/lat] box in the order [lonmin,latmin,lonmax,latmax] e.g. bbox="-120,40,-119,41"
cwa: string, optional
NWS county warning area. See http://www.nws.noaa.gov/organization.php for CWA list. e.g. cwa='LOX'
nwsfirezone: string, optional
NWS fire zones. See http://www.nws.noaa.gov/geodata/catalog/wsom/html/firezone.htm for a shapefile
containing the full list of zones. e.g. nwsfirezone='LOX241'
gacc: string, optional
Name of Geographic Area Coordination Center e.g. gacc='EBCC' See http://gacc.nifc.gov/ for a list of GACCs.
subgacc: string, optional
Name of Sub GACC e.g. subgacc='EB07'
vars: string, optional
Single or comma separated list of sensor variables. Will return all stations that match one of provided
variables. Useful for filtering all stations that sense only certain vars. Do not request vars twice in
the query. e.g. vars='wind_speed,pressure' Use the variables function to see a list of sensor vars.
status: string, optional
A value of either active or inactive returns stations currently set as active or inactive in the archive.
Omitting this param returns all stations. e.g. status='active'
units: string, optional
String or set of strings and pipes separated by commas. Default is metric units. Set units='ENGLISH' for
FREEDOM UNITS ;) Valid other combinations are as follows: temp|C, temp|F, temp|K; speed|mps, speed|mph,
speed|kph, speed|kts; pres|pa, pres|mb; height|m, height|ft; precip|mm, precip|cm, precip|in; alti|pa,
alti|inhg. e.g. units='temp|F,speed|kph,metric'
groupby: string, optional
Results can be grouped by key words: state, county, country, cwa, nwszone, mwsfirezone, gacc, subgacc
e.g. groupby='state'
timeformat: string, optional
A python format string for returning customized date-time groups for observation times. Can include
characters. e.g. timeformat='%m/%d/%Y at %H:%M'
Returns:
--------
Dictionary of climatology observations through the get_response() function.
Raises:
-------
None.
"""
self._check_geo_param(kwargs)
kwargs['startclim'] = startclim
kwargs['endclim'] = endclim
kwargs['token'] = self.token
return self._get_response('stations/climatology', kwargs) | [
"def",
"climatology",
"(",
"self",
",",
"startclim",
",",
"endclim",
",",
"*",
"*",
"kwargs",
")",
":",
"self",
".",
"_check_geo_param",
"(",
"kwargs",
")",
"kwargs",
"[",
"'startclim'",
"]",
"=",
"startclim",
"kwargs",
"[",
"'endclim'",
"]",
"=",
"endclim",
"kwargs",
"[",
"'token'",
"]",
"=",
"self",
".",
"token",
"return",
"self",
".",
"_get_response",
"(",
"'stations/climatology'",
",",
"kwargs",
")"
] | r""" Returns a climatology of observations at a user specified location for a specified time. Users must specify
at least one geographic search parameter ('stid', 'state', 'country', 'county', 'radius', 'bbox', 'cwa',
'nwsfirezone', 'gacc', or 'subgacc') to obtain observation data. Other parameters may also be included. See
below mandatory and optional parameters. Also see the metadata() function for station IDs.
Arguments:
----------
startclim: string, mandatory
Start date in form of MMDDhhmm. MUST BE USED WITH THE ENDCLIM PARAMETER. Default time is UTC
e.g. startclim='06011800' Do not specify a year
endclim: string, mandatory
End date in form of MMDDhhmm. MUST BE USED WITH THE STARTCLIM PARAMETER. Default time is UTC
e.g. endclim='06011800' Do not specify a year
obtimezone: string, optional
Set to either UTC or local. Sets timezone of obs. Default is UTC. e.g. obtimezone='local'
showemptystations: string, optional
Set to '1' to show stations even if no obs exist that match the time period. Stations without obs are
omitted by default.
stid: string, optional
Single or comma separated list of MesoWest station IDs. e.g. stid='kden,kslc,wbb'
county: string, optional
County/parish/borough (US/Canada only), full name e.g. county='Larimer'
state: string, optional
US state, 2-letter ID e.g. state='CO'
country: string, optional
Single or comma separated list of abbreviated 2 or 3 character countries e.g. country='us,ca,mx'
radius: string, optional
Distance from a lat/lon pt or stid as [lat,lon,radius (mi)] or [stid, radius (mi)]. e.g. radius="-120,40,20"
bbox: string, optional
Stations within a [lon/lat] box in the order [lonmin,latmin,lonmax,latmax] e.g. bbox="-120,40,-119,41"
cwa: string, optional
NWS county warning area. See http://www.nws.noaa.gov/organization.php for CWA list. e.g. cwa='LOX'
nwsfirezone: string, optional
NWS fire zones. See http://www.nws.noaa.gov/geodata/catalog/wsom/html/firezone.htm for a shapefile
containing the full list of zones. e.g. nwsfirezone='LOX241'
gacc: string, optional
Name of Geographic Area Coordination Center e.g. gacc='EBCC' See http://gacc.nifc.gov/ for a list of GACCs.
subgacc: string, optional
Name of Sub GACC e.g. subgacc='EB07'
vars: string, optional
Single or comma separated list of sensor variables. Will return all stations that match one of provided
variables. Useful for filtering all stations that sense only certain vars. Do not request vars twice in
the query. e.g. vars='wind_speed,pressure' Use the variables function to see a list of sensor vars.
status: string, optional
A value of either active or inactive returns stations currently set as active or inactive in the archive.
Omitting this param returns all stations. e.g. status='active'
units: string, optional
String or set of strings and pipes separated by commas. Default is metric units. Set units='ENGLISH' for
FREEDOM UNITS ;) Valid other combinations are as follows: temp|C, temp|F, temp|K; speed|mps, speed|mph,
speed|kph, speed|kts; pres|pa, pres|mb; height|m, height|ft; precip|mm, precip|cm, precip|in; alti|pa,
alti|inhg. e.g. units='temp|F,speed|kph,metric'
groupby: string, optional
Results can be grouped by key words: state, county, country, cwa, nwszone, mwsfirezone, gacc, subgacc
e.g. groupby='state'
timeformat: string, optional
A python format string for returning customized date-time groups for observation times. Can include
characters. e.g. timeformat='%m/%d/%Y at %H:%M'
Returns:
--------
Dictionary of climatology observations through the get_response() function.
Raises:
-------
None. | [
"r",
"Returns",
"a",
"climatology",
"of",
"observations",
"at",
"a",
"user",
"specified",
"location",
"for",
"a",
"specified",
"time",
".",
"Users",
"must",
"specify",
"at",
"least",
"one",
"geographic",
"search",
"parameter",
"(",
"stid",
"state",
"country",
"county",
"radius",
"bbox",
"cwa",
"nwsfirezone",
"gacc",
"or",
"subgacc",
")",
"to",
"obtain",
"observation",
"data",
".",
"Other",
"parameters",
"may",
"also",
"be",
"included",
".",
"See",
"below",
"mandatory",
"and",
"optional",
"parameters",
".",
"Also",
"see",
"the",
"metadata",
"()",
"function",
"for",
"station",
"IDs",
"."
] | cd1e837e108ed7a110d81cf789f19afcdd52145b | https://github.com/mesowx/MesoPy/blob/cd1e837e108ed7a110d81cf789f19afcdd52145b/MesoPy.py#L497-L571 | train | r Returns a climatology of observations at a user specified location for a specified time. | GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT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06Xw,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(668 - 620) + chr(0b1101111) + '\x32' + chr(50) + chr(52), 0o10), nzTpIcepk0o8(chr(1034 - 986) + chr(111) + chr(0b110101) + chr(1822 - 1770), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1001100 + 0o43) + chr(51) + chr(0b110110), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(0b1110 + 0o43) + '\067' + '\x30', 44260 - 44252), nzTpIcepk0o8(chr(244 - 196) + chr(111) + chr(51) + chr(0b101 + 0o53) + chr(55), 0b1000), nzTpIcepk0o8('\060' + chr(111) + '\062' + '\062' + chr(54), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\062' + chr(0b110111), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b11111 + 0o120) + chr(55) + '\x33', 0o10), nzTpIcepk0o8(chr(0b101000 + 0o10) + chr(5255 - 5144) + '\x32' + chr(0b1111 + 0o41), ord("\x08")), nzTpIcepk0o8(chr(1514 - 1466) + chr(9465 - 9354) + chr(0b110011) + chr(1394 - 1341), 50548 - 50540), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110001) + chr(2520 - 2469), 62079 - 62071), nzTpIcepk0o8('\060' + chr(11110 - 10999) + chr(2118 - 2069) + chr(0b100010 + 0o16), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(629 - 579) + '\064' + chr(52), 44697 - 44689), nzTpIcepk0o8('\x30' + '\x6f' + chr(50) + chr(0b0 + 0o60) + '\063', 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110010) + chr(0b110 + 0o56) + '\x32', 0o10), nzTpIcepk0o8('\060' + '\x6f' + '\063' + chr(2182 - 2127) + '\062', 41495 - 41487), nzTpIcepk0o8(chr(1553 - 1505) + chr(111) + '\063' + chr(0b110110) + chr(306 - 256), 18986 - 18978), nzTpIcepk0o8('\060' + chr(0b1001010 + 0o45) + chr(50) + '\060' + chr(1967 - 1916), 8), nzTpIcepk0o8('\x30' + '\x6f' + '\061' + chr(0b11100 + 0o30) + chr(0b110000), 34144 - 34136), nzTpIcepk0o8(chr(48) + '\x6f' + '\x33' + chr(645 - 590) + '\063', 12415 - 12407), nzTpIcepk0o8(chr(0b10111 + 0o31) + chr(4827 - 4716) + chr(50) + '\063' + chr(55), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + '\063' + '\x33', 0o10), nzTpIcepk0o8('\x30' + chr(0b100010 + 0o115) + '\x31' + '\x36' + chr(1292 - 1243), 0o10), nzTpIcepk0o8('\060' + chr(0b100101 + 0o112) + chr(594 - 543) + '\067' + chr(954 - 902), 7956 - 7948), nzTpIcepk0o8('\x30' + chr(0b1001101 + 0o42) + '\066' + chr(0b110000), 20574 - 20566), nzTpIcepk0o8(chr(48) + '\x6f' + chr(49) + chr(0b101010 + 0o10) + chr(0b110110), 0o10), nzTpIcepk0o8(chr(1743 - 1695) + '\x6f' + '\063' + chr(55) + '\x34', 8), nzTpIcepk0o8(chr(0b110000) + chr(11460 - 11349) + chr(0b110001) + '\x34' + chr(0b100011 + 0o22), 18281 - 18273), nzTpIcepk0o8(chr(0b1001 + 0o47) + '\157' + chr(1789 - 1738) + chr(0b11 + 0o55), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + '\062' + chr(0b111 + 0o52) + chr(0b110000 + 0o5), 0o10), nzTpIcepk0o8('\x30' + '\157' + '\x31' + '\067' + chr(0b100111 + 0o12), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(51) + chr(0b110000) + chr(49), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + '\x32', 0b1000), nzTpIcepk0o8(chr(0b10000 + 0o40) + chr(111) + '\061' + chr(2128 - 2076) + '\066', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(50) + chr(241 - 187) + chr(2076 - 2028), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b11101 + 0o24) + '\x33' + chr(0b100111 + 0o13), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110110) + chr(1410 - 1356), ord("\x08")), nzTpIcepk0o8(chr(738 - 690) + chr(0b100000 + 0o117) + '\x31' + '\060' + chr(54), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(51) + chr(0b110110) + '\067', ord("\x08")), nzTpIcepk0o8(chr(505 - 457) + chr(0b1101111) + '\061' + '\x35' + '\x35', 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + '\x6f' + chr(0b100010 + 0o23) + '\060', ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xba'), chr(0b100110 + 0o76) + '\145' + '\x63' + chr(2509 - 2398) + chr(8293 - 8193) + chr(0b110010 + 0o63))(chr(0b1001001 + 0o54) + chr(0b1000001 + 0o63) + chr(0b1100110) + chr(0b101101) + chr(56)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def qZPPaJdyR3df(hXMPsSrOQzbh, aijpitk89FWT, kVk1_17wv6mS, **q5n0sHDDTy90):
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xcbOv\x1d\xa4\xfdH\\urTx\xc5\xf1\xc3\x97'), '\144' + chr(0b1100101) + '\143' + chr(0b1101111) + chr(100) + chr(0b1100101))(chr(117) + '\x74' + chr(102) + chr(45) + '\x38'))(q5n0sHDDTy90)
q5n0sHDDTy90[roI3spqORKae(ES5oEprVxulp(b'\xe7X\x7f\n\xb3\xf5{R}'), '\144' + chr(0b1100101) + chr(1756 - 1657) + chr(1341 - 1230) + '\144' + chr(0b1010111 + 0o16))('\x75' + '\x74' + '\146' + chr(45) + chr(0b111000))] = aijpitk89FWT
q5n0sHDDTy90[roI3spqORKae(ES5oEprVxulp(b'\xf1Bz\x1b\xab\xffz'), chr(0b1100100) + chr(0b1100101) + chr(99) + '\x6f' + chr(3461 - 3361) + '\145')('\x75' + '\x74' + chr(0b1100110) + '\x2d' + chr(2583 - 2527))] = kVk1_17wv6mS
q5n0sHDDTy90[roI3spqORKae(ES5oEprVxulp(b'\xe0Cu\x1d\xa9'), chr(0b10 + 0o142) + '\145' + '\x63' + chr(11911 - 11800) + chr(100) + chr(101))('\x75' + '\164' + chr(102) + '\x2d' + '\x38')] = hXMPsSrOQzbh.Hd4nWPplSa3h
return roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xcbK{\x0c\x98\xe4rH`re{\xc1'), '\x64' + chr(3684 - 3583) + chr(1004 - 905) + '\157' + '\x64' + chr(6404 - 6303))(chr(12321 - 12204) + chr(388 - 272) + chr(0b1100110) + chr(519 - 474) + '\070'))(roI3spqORKae(ES5oEprVxulp(b'\xe7X\x7f\x0c\xae\xf9yH?~ga\xc9\xe2\xd6\x95\x9e\xec\x07\x82'), '\x64' + chr(0b1100101) + chr(99) + chr(482 - 371) + '\x64' + '\145')(chr(3490 - 3373) + chr(12023 - 11907) + '\146' + chr(45) + chr(2418 - 2362)), q5n0sHDDTy90) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.