repo
stringlengths 7
54
| path
stringlengths 4
223
| func_name
stringlengths 1
134
| original_string
stringlengths 75
104k
| language
stringclasses 1
value | code
stringlengths 75
104k
| code_tokens
listlengths 20
28.4k
| docstring
stringlengths 1
46.3k
| docstring_tokens
listlengths 1
1.66k
| sha
stringlengths 40
40
| url
stringlengths 87
315
| partition
stringclasses 1
value | summary
stringlengths 4
350
| obf_code
stringlengths 7.85k
764k
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dnanexus/dx-toolkit
|
src/python/dxpy/bindings/dxjob.py
|
DXJob.new
|
def new(self, fn_input, fn_name, name=None, tags=None, properties=None, details=None,
instance_type=None, depends_on=None,
**kwargs):
'''
:param fn_input: Function input
:type fn_input: dict
:param fn_name: Name of the function to be called
:type fn_name: string
:param name: Name for the new job (default is "<parent job name>:<fn_name>")
:type name: string
:param tags: Tags to associate with the job
:type tags: list of strings
:param properties: Properties to associate with the job
:type properties: dict with string values
:param details: Details to set for the job
:type details: dict or list
:param instance_type: Instance type on which the job will be run, or a dict mapping function names to instance type requests
:type instance_type: string or dict
:param depends_on: List of data objects or jobs to wait that need to enter the "closed" or "done" states, respectively, before the new job will be run; each element in the list can either be a dxpy handler or a string ID
:type depends_on: list
Creates and enqueues a new job that will execute a particular
function (from the same app or applet as the one the current job
is running).
.. note:: This method is intended for calls made from within
already-executing jobs or apps. If it is called from outside
of an Execution Environment, an exception will be thrown. To
create new jobs from outside the Execution Environment, use
:func:`dxpy.bindings.dxapplet.DXApplet.run` or
:func:`dxpy.bindings.dxapp.DXApp.run`.
'''
final_depends_on = []
if depends_on is not None:
if isinstance(depends_on, list):
for item in depends_on:
if isinstance(item, DXJob) or isinstance(item, DXDataObject):
if item.get_id() is None:
raise DXError('A dxpy handler given in depends_on does not have an ID set')
final_depends_on.append(item.get_id())
elif isinstance(item, basestring):
final_depends_on.append(item)
else:
raise DXError('Expected elements of depends_on to only be either instances of DXJob or DXDataObject, or strings')
else:
raise DXError('Expected depends_on field to be a list')
if 'DX_JOB_ID' in os.environ:
req_input = {}
req_input["input"] = fn_input
req_input["function"] = fn_name
if name is not None:
req_input["name"] = name
if tags is not None:
req_input["tags"] = tags
if properties is not None:
req_input["properties"] = properties
if instance_type is not None:
req_input["systemRequirements"] = SystemRequirementsDict.from_instance_type(instance_type, fn_name).as_dict()
if depends_on is not None:
req_input["dependsOn"] = final_depends_on
if details is not None:
req_input["details"] = details
resp = dxpy.api.job_new(req_input, **kwargs)
self.set_id(resp["id"])
else:
self.set_id(queue_entry_point(function=fn_name, input_hash=fn_input,
depends_on=final_depends_on,
name=name))
|
python
|
def new(self, fn_input, fn_name, name=None, tags=None, properties=None, details=None,
instance_type=None, depends_on=None,
**kwargs):
'''
:param fn_input: Function input
:type fn_input: dict
:param fn_name: Name of the function to be called
:type fn_name: string
:param name: Name for the new job (default is "<parent job name>:<fn_name>")
:type name: string
:param tags: Tags to associate with the job
:type tags: list of strings
:param properties: Properties to associate with the job
:type properties: dict with string values
:param details: Details to set for the job
:type details: dict or list
:param instance_type: Instance type on which the job will be run, or a dict mapping function names to instance type requests
:type instance_type: string or dict
:param depends_on: List of data objects or jobs to wait that need to enter the "closed" or "done" states, respectively, before the new job will be run; each element in the list can either be a dxpy handler or a string ID
:type depends_on: list
Creates and enqueues a new job that will execute a particular
function (from the same app or applet as the one the current job
is running).
.. note:: This method is intended for calls made from within
already-executing jobs or apps. If it is called from outside
of an Execution Environment, an exception will be thrown. To
create new jobs from outside the Execution Environment, use
:func:`dxpy.bindings.dxapplet.DXApplet.run` or
:func:`dxpy.bindings.dxapp.DXApp.run`.
'''
final_depends_on = []
if depends_on is not None:
if isinstance(depends_on, list):
for item in depends_on:
if isinstance(item, DXJob) or isinstance(item, DXDataObject):
if item.get_id() is None:
raise DXError('A dxpy handler given in depends_on does not have an ID set')
final_depends_on.append(item.get_id())
elif isinstance(item, basestring):
final_depends_on.append(item)
else:
raise DXError('Expected elements of depends_on to only be either instances of DXJob or DXDataObject, or strings')
else:
raise DXError('Expected depends_on field to be a list')
if 'DX_JOB_ID' in os.environ:
req_input = {}
req_input["input"] = fn_input
req_input["function"] = fn_name
if name is not None:
req_input["name"] = name
if tags is not None:
req_input["tags"] = tags
if properties is not None:
req_input["properties"] = properties
if instance_type is not None:
req_input["systemRequirements"] = SystemRequirementsDict.from_instance_type(instance_type, fn_name).as_dict()
if depends_on is not None:
req_input["dependsOn"] = final_depends_on
if details is not None:
req_input["details"] = details
resp = dxpy.api.job_new(req_input, **kwargs)
self.set_id(resp["id"])
else:
self.set_id(queue_entry_point(function=fn_name, input_hash=fn_input,
depends_on=final_depends_on,
name=name))
|
[
"def",
"new",
"(",
"self",
",",
"fn_input",
",",
"fn_name",
",",
"name",
"=",
"None",
",",
"tags",
"=",
"None",
",",
"properties",
"=",
"None",
",",
"details",
"=",
"None",
",",
"instance_type",
"=",
"None",
",",
"depends_on",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"final_depends_on",
"=",
"[",
"]",
"if",
"depends_on",
"is",
"not",
"None",
":",
"if",
"isinstance",
"(",
"depends_on",
",",
"list",
")",
":",
"for",
"item",
"in",
"depends_on",
":",
"if",
"isinstance",
"(",
"item",
",",
"DXJob",
")",
"or",
"isinstance",
"(",
"item",
",",
"DXDataObject",
")",
":",
"if",
"item",
".",
"get_id",
"(",
")",
"is",
"None",
":",
"raise",
"DXError",
"(",
"'A dxpy handler given in depends_on does not have an ID set'",
")",
"final_depends_on",
".",
"append",
"(",
"item",
".",
"get_id",
"(",
")",
")",
"elif",
"isinstance",
"(",
"item",
",",
"basestring",
")",
":",
"final_depends_on",
".",
"append",
"(",
"item",
")",
"else",
":",
"raise",
"DXError",
"(",
"'Expected elements of depends_on to only be either instances of DXJob or DXDataObject, or strings'",
")",
"else",
":",
"raise",
"DXError",
"(",
"'Expected depends_on field to be a list'",
")",
"if",
"'DX_JOB_ID'",
"in",
"os",
".",
"environ",
":",
"req_input",
"=",
"{",
"}",
"req_input",
"[",
"\"input\"",
"]",
"=",
"fn_input",
"req_input",
"[",
"\"function\"",
"]",
"=",
"fn_name",
"if",
"name",
"is",
"not",
"None",
":",
"req_input",
"[",
"\"name\"",
"]",
"=",
"name",
"if",
"tags",
"is",
"not",
"None",
":",
"req_input",
"[",
"\"tags\"",
"]",
"=",
"tags",
"if",
"properties",
"is",
"not",
"None",
":",
"req_input",
"[",
"\"properties\"",
"]",
"=",
"properties",
"if",
"instance_type",
"is",
"not",
"None",
":",
"req_input",
"[",
"\"systemRequirements\"",
"]",
"=",
"SystemRequirementsDict",
".",
"from_instance_type",
"(",
"instance_type",
",",
"fn_name",
")",
".",
"as_dict",
"(",
")",
"if",
"depends_on",
"is",
"not",
"None",
":",
"req_input",
"[",
"\"dependsOn\"",
"]",
"=",
"final_depends_on",
"if",
"details",
"is",
"not",
"None",
":",
"req_input",
"[",
"\"details\"",
"]",
"=",
"details",
"resp",
"=",
"dxpy",
".",
"api",
".",
"job_new",
"(",
"req_input",
",",
"*",
"*",
"kwargs",
")",
"self",
".",
"set_id",
"(",
"resp",
"[",
"\"id\"",
"]",
")",
"else",
":",
"self",
".",
"set_id",
"(",
"queue_entry_point",
"(",
"function",
"=",
"fn_name",
",",
"input_hash",
"=",
"fn_input",
",",
"depends_on",
"=",
"final_depends_on",
",",
"name",
"=",
"name",
")",
")"
] |
:param fn_input: Function input
:type fn_input: dict
:param fn_name: Name of the function to be called
:type fn_name: string
:param name: Name for the new job (default is "<parent job name>:<fn_name>")
:type name: string
:param tags: Tags to associate with the job
:type tags: list of strings
:param properties: Properties to associate with the job
:type properties: dict with string values
:param details: Details to set for the job
:type details: dict or list
:param instance_type: Instance type on which the job will be run, or a dict mapping function names to instance type requests
:type instance_type: string or dict
:param depends_on: List of data objects or jobs to wait that need to enter the "closed" or "done" states, respectively, before the new job will be run; each element in the list can either be a dxpy handler or a string ID
:type depends_on: list
Creates and enqueues a new job that will execute a particular
function (from the same app or applet as the one the current job
is running).
.. note:: This method is intended for calls made from within
already-executing jobs or apps. If it is called from outside
of an Execution Environment, an exception will be thrown. To
create new jobs from outside the Execution Environment, use
:func:`dxpy.bindings.dxapplet.DXApplet.run` or
:func:`dxpy.bindings.dxapp.DXApp.run`.
|
[
":",
"param",
"fn_input",
":",
"Function",
"input",
":",
"type",
"fn_input",
":",
"dict",
":",
"param",
"fn_name",
":",
"Name",
"of",
"the",
"function",
"to",
"be",
"called",
":",
"type",
"fn_name",
":",
"string",
":",
"param",
"name",
":",
"Name",
"for",
"the",
"new",
"job",
"(",
"default",
"is",
"<parent",
"job",
"name",
">",
":",
"<fn_name",
">",
")",
":",
"type",
"name",
":",
"string",
":",
"param",
"tags",
":",
"Tags",
"to",
"associate",
"with",
"the",
"job",
":",
"type",
"tags",
":",
"list",
"of",
"strings",
":",
"param",
"properties",
":",
"Properties",
"to",
"associate",
"with",
"the",
"job",
":",
"type",
"properties",
":",
"dict",
"with",
"string",
"values",
":",
"param",
"details",
":",
"Details",
"to",
"set",
"for",
"the",
"job",
":",
"type",
"details",
":",
"dict",
"or",
"list",
":",
"param",
"instance_type",
":",
"Instance",
"type",
"on",
"which",
"the",
"job",
"will",
"be",
"run",
"or",
"a",
"dict",
"mapping",
"function",
"names",
"to",
"instance",
"type",
"requests",
":",
"type",
"instance_type",
":",
"string",
"or",
"dict",
":",
"param",
"depends_on",
":",
"List",
"of",
"data",
"objects",
"or",
"jobs",
"to",
"wait",
"that",
"need",
"to",
"enter",
"the",
"closed",
"or",
"done",
"states",
"respectively",
"before",
"the",
"new",
"job",
"will",
"be",
"run",
";",
"each",
"element",
"in",
"the",
"list",
"can",
"either",
"be",
"a",
"dxpy",
"handler",
"or",
"a",
"string",
"ID",
":",
"type",
"depends_on",
":",
"list"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxjob.py#L104-L173
|
train
|
Creates a new job with the given parameters.
|
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,Uti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BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__
ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(48) + chr(0b1011010 + 0o25) + chr(0b110011) + '\061' + '\067', 0b1000), nzTpIcepk0o8('\060' + '\157' + '\063' + chr(1649 - 1594) + '\x36', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b101010 + 0o105) + chr(0b110010 + 0o0) + chr(0b101 + 0o61) + chr(1449 - 1398), 0b1000), nzTpIcepk0o8(chr(670 - 622) + chr(9367 - 9256) + '\x31' + '\064' + chr(2767 - 2714), 0b1000), nzTpIcepk0o8('\060' + '\157' + chr(1347 - 1298) + chr(0b10010 + 0o37), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\064' + '\060', 18353 - 18345), nzTpIcepk0o8('\x30' + '\157' + '\x34' + '\x35', 23372 - 23364), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(49) + chr(0b110110) + chr(0b110 + 0o56), 0o10), nzTpIcepk0o8(chr(1769 - 1721) + chr(0b1101111) + chr(0b110011) + chr(0b110011) + '\x34', ord("\x08")), nzTpIcepk0o8(chr(0b10011 + 0o35) + chr(0b110101 + 0o72) + chr(49) + chr(2250 - 2200) + '\067', 0b1000), nzTpIcepk0o8(chr(0b1010 + 0o46) + chr(111) + chr(2519 - 2466) + '\x35', 0b1000), nzTpIcepk0o8(chr(0b100100 + 0o14) + chr(111) + chr(958 - 907) + chr(55) + '\060', ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110010) + '\x35', 36786 - 36778), nzTpIcepk0o8('\x30' + chr(0b111101 + 0o62) + chr(0b110001) + chr(0b110101) + chr(0b110110), 36279 - 36271), nzTpIcepk0o8('\060' + chr(0b100000 + 0o117) + chr(0b110011) + chr(54) + chr(49), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(0b1001 + 0o50) + chr(140 - 88) + '\066', 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(410 - 356) + chr(0b1100 + 0o46), ord("\x08")), nzTpIcepk0o8(chr(842 - 794) + chr(111) + chr(0b11101 + 0o24) + '\064' + '\067', 12973 - 12965), nzTpIcepk0o8(chr(48) + '\157' + '\063' + chr(0b110010) + '\063', 0b1000), nzTpIcepk0o8(chr(466 - 418) + chr(0b1101111) + chr(0b110001) + chr(0b110101) + '\063', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(51) + chr(2400 - 2351) + chr(0b110000), 0b1000), nzTpIcepk0o8(chr(0b10100 + 0o34) + chr(3064 - 2953) + chr(1789 - 1740) + chr(0b110000), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(49) + chr(801 - 747) + chr(0b11001 + 0o35), 0o10), nzTpIcepk0o8(chr(966 - 918) + chr(111) + '\066' + chr(50), 8), nzTpIcepk0o8(chr(48) + chr(0b101100 + 0o103) + chr(2195 - 2144) + chr(0b11101 + 0o27) + chr(0b110100), 0b1000), nzTpIcepk0o8('\060' + '\157' + chr(0b10101 + 0o34) + chr(0b101100 + 0o13) + '\x33', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(1107 - 1056) + '\x31' + '\x37', 8), nzTpIcepk0o8('\060' + '\157' + chr(853 - 803) + chr(1704 - 1650) + chr(1334 - 1279), 43052 - 43044), nzTpIcepk0o8('\x30' + chr(111) + '\062' + chr(0b100001 + 0o22) + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(0b1100 + 0o44) + '\157' + '\x32' + chr(48) + chr(49), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b100 + 0o56) + chr(50) + chr(749 - 694), 52055 - 52047), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(1335 - 1285) + '\x34' + '\x35', 33461 - 33453), nzTpIcepk0o8(chr(590 - 542) + chr(0b10000 + 0o137) + chr(527 - 477) + chr(0b10011 + 0o36) + '\062', 0b1000), nzTpIcepk0o8(chr(0b10 + 0o56) + '\157' + chr(0b10100 + 0o35) + chr(0b110001 + 0o5) + chr(0b110011), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x33' + '\065' + chr(53), 18248 - 18240), nzTpIcepk0o8(chr(0b10100 + 0o34) + chr(111) + chr(0b110011) + '\064' + chr(0b110100), 8), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x33' + '\061' + chr(0b101001 + 0o15), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(5937 - 5826) + chr(49) + chr(0b1011 + 0o51) + '\x35', 8), nzTpIcepk0o8(chr(601 - 553) + '\x6f' + chr(576 - 526) + chr(0b110101) + chr(110 - 61), 31151 - 31143), nzTpIcepk0o8('\x30' + chr(0b111001 + 0o66) + chr(136 - 85) + chr(53) + chr(0b110110), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b10 + 0o56) + chr(111) + chr(1974 - 1921) + chr(48), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xe1'), chr(100) + '\145' + '\x63' + chr(0b1101111) + '\144' + '\145')('\x75' + chr(116) + '\146' + chr(1408 - 1363) + chr(56)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def bZWmgf4GjgvH(hXMPsSrOQzbh, BeT3TwtpPv6N, QwSAFHRe9kaK, SLVB2BPA_mIe=None, TFpYP2_05oSC=None, UtZvTnutzMHg=None, MSO7REb1szzF=None, pP9INXzdjklw=None, CvScj4hrkJxm=None, **q5n0sHDDTy90):
VB5xBO6STwcx = []
if CvScj4hrkJxm is not None:
if suIjIS24Zkqw(CvScj4hrkJxm, H4NoA26ON7iG):
for IZ1I2J8X1CQz in CvScj4hrkJxm:
if suIjIS24Zkqw(IZ1I2J8X1CQz, HvlSQUA4m7BV) or suIjIS24Zkqw(IZ1I2J8X1CQz, uY6D96bz1TDe):
if roI3spqORKae(IZ1I2J8X1CQz, roI3spqORKae(ES5oEprVxulp(b'\xa1\x95\xe7\x0bjjF2\x8c;D\xaf'), chr(100) + chr(0b1100101) + '\x63' + chr(0b1101111) + chr(100) + chr(101))(chr(621 - 504) + '\164' + chr(102) + '\055' + '\x38'))() is None:
raise JPU16lJ2koBU(roI3spqORKae(ES5oEprVxulp(b'\x8e\xde\xd7\x1dyY\x05\x1c\xbd9I\x94p\x1c\xd1\x01[\x11\xb6\x05\xe8a\x18\x12\x80\x1e\xbf\xd2\xf7\xe5\xe4\xfa\xe5\x1d\xcd\x80\xa1\x00\xda\xce\xa1\x91\xc7EaAS\x11\xfc6C\xd8\\*\xd1\x15W\x13'), chr(0b101100 + 0o70) + chr(0b1000110 + 0o37) + chr(0b1100001 + 0o2) + chr(0b110011 + 0o74) + chr(5264 - 5164) + '\x65')(chr(0b1110101) + chr(0b1110100) + chr(5029 - 4927) + chr(45) + '\070'))
roI3spqORKae(VB5xBO6STwcx, roI3spqORKae(ES5oEprVxulp(b'\x87\xaa\xe0QqGb\x1b\xb68x\xcd'), chr(0b1100100) + chr(101) + chr(99) + chr(4545 - 4434) + chr(100) + chr(0b1100101))('\x75' + chr(0b1110100) + chr(1104 - 1002) + chr(45) + chr(0b110010 + 0o6)))(roI3spqORKae(IZ1I2J8X1CQz, roI3spqORKae(ES5oEprVxulp(b'\xa1\x95\xe7\x0bjjF2\x8c;D\xaf'), chr(3848 - 3748) + chr(0b1100101) + chr(0b1100011) + chr(0b1101111) + chr(100) + '\x65')(chr(117) + '\x74' + '\x66' + chr(1932 - 1887) + '\070'))())
elif suIjIS24Zkqw(IZ1I2J8X1CQz, JaQstSroDWOP):
roI3spqORKae(VB5xBO6STwcx, roI3spqORKae(ES5oEprVxulp(b'\x87\xaa\xe0QqGb\x1b\xb68x\xcd'), chr(1909 - 1809) + '\x65' + chr(0b1100011) + '\x6f' + chr(100) + chr(0b110101 + 0o60))(chr(0b100110 + 0o117) + chr(0b1110100) + '\x66' + chr(0b101101) + '\070'))(IZ1I2J8X1CQz)
else:
raise JPU16lJ2koBU(roI3spqORKae(ES5oEprVxulp(b'\x8a\x86\xc3\x00jT@\x10\xfc2A\x9dx\x0b\x9f\x12AG\xbc\r\xe8l\x13B\x81\x15\xab\xc4\xc6\xee\xf9\x85\xfe\x1c\xcd\x8b\xa0\t\xd0\xce\xad\x9b\x93\x00`TM\x11\xaewD\x96f\x1a\x90\x08Q\x02\xa0K\xa7nVv\xbc1\xa0\xd5\xb9\xee\xe5\x85\xce+\xa9\x85\xba\x04\xe6\x8c\xa5\x9b\xd0\x11%\x00J\x06\xfc$Y\x8a|\x00\x96\x15'), chr(0b1100100) + chr(0b1001111 + 0o26) + '\x63' + chr(0b1101111) + chr(100) + chr(1326 - 1225))('\x75' + chr(0b1110100) + chr(0b101010 + 0o74) + chr(0b101101) + chr(967 - 911)))
else:
raise JPU16lJ2koBU(roI3spqORKae(ES5oEprVxulp(b'\x8a\x86\xc3\x00jT@\x10\xfc3H\x88p\x00\x95\x15m\x08\xbdK\xaea\x13^\x80[\xbb\xd8\xb9\xe3\xf2\x85\xebS\x81\x8d\xbd\x11'), chr(0b1100100) + chr(101) + chr(0b110000 + 0o63) + '\x6f' + chr(100) + '\145')(chr(117) + chr(0b1011000 + 0o34) + chr(0b1100110) + chr(45) + chr(0b110010 + 0o6)))
if roI3spqORKae(ES5oEprVxulp(b'\x8b\xa6\xec/Fbz=\x98'), chr(0b1100100) + chr(101) + chr(0b1100011) + chr(111) + chr(0b1100100) + '\x65')(chr(0b1110001 + 0o4) + chr(0b1000 + 0o154) + '\146' + chr(425 - 380) + '\x38') in roI3spqORKae(aHUqKstZLeS6, roI3spqORKae(ES5oEprVxulp(b'\x86\xcd\xdf2pc\x13+\x8c\x08`\xb7'), chr(100) + '\145' + chr(99) + chr(111) + chr(0b1010100 + 0o20) + '\x65')(chr(0b1110101) + chr(8403 - 8287) + '\146' + chr(0b100110 + 0o7) + chr(0b111000))):
D9PB5QswZBza = {}
D9PB5QswZBza[roI3spqORKae(ES5oEprVxulp(b'\xa6\x90\xc3\x10}'), '\x64' + chr(9744 - 9643) + chr(0b1000101 + 0o36) + chr(0b101010 + 0o105) + chr(0b1100100) + chr(0b100111 + 0o76))(chr(0b1110101) + chr(0b1110000 + 0o4) + chr(0b111111 + 0o47) + chr(0b101101) + chr(0b111000))] = BeT3TwtpPv6N
D9PB5QswZBza[roI3spqORKae(ES5oEprVxulp(b'\xa9\x8b\xdd\x06}IJ\x1a'), chr(0b101011 + 0o71) + '\x65' + chr(0b1100011) + '\157' + chr(0b111000 + 0o54) + chr(101))('\x75' + chr(0b1110001 + 0o3) + chr(102) + chr(45) + '\070')] = QwSAFHRe9kaK
if SLVB2BPA_mIe is not None:
D9PB5QswZBza[roI3spqORKae(ES5oEprVxulp(b'\xa1\x9f\xde\x00'), chr(1500 - 1400) + chr(0b1100101) + chr(0b10111 + 0o114) + '\x6f' + chr(0b1100100) + '\145')('\165' + chr(116) + chr(0b1100110) + chr(0b0 + 0o55) + '\070')] = SLVB2BPA_mIe
if TFpYP2_05oSC is not None:
D9PB5QswZBza[roI3spqORKae(ES5oEprVxulp(b'\xbb\x9f\xd4\x16'), '\x64' + chr(0b1010010 + 0o23) + chr(4396 - 4297) + chr(0b101011 + 0o104) + '\x64' + chr(101))(chr(117) + chr(116) + '\146' + chr(1096 - 1051) + chr(56))] = TFpYP2_05oSC
if UtZvTnutzMHg is not None:
D9PB5QswZBza[roI3spqORKae(ES5oEprVxulp(b'\xbf\x8c\xdc\x15lRQ\x1d\xb9$'), chr(0b110011 + 0o61) + chr(0b1100101) + '\x63' + '\x6f' + chr(0b1100100) + chr(2173 - 2072))(chr(117) + '\x74' + chr(0b1011011 + 0o13) + chr(45) + chr(0b110010 + 0o6))] = UtZvTnutzMHg
if pP9INXzdjklw is not None:
D9PB5QswZBza[roI3spqORKae(ES5oEprVxulp(b'\xbc\x87\xc0\x11lMw\x11\xad"D\x8ap\x03\x94\x08F\x14'), chr(0b1000100 + 0o40) + chr(0b1100101) + '\143' + chr(4544 - 4433) + chr(0b1100100) + '\x65')(chr(0b1110101) + chr(0b1110100) + '\146' + chr(0b101101) + chr(0b101 + 0o63))] = RLv6pd5MYR00.from_instance_type(pP9INXzdjklw, QwSAFHRe9kaK).wP_hx7Pg2U0r()
if CvScj4hrkJxm is not None:
D9PB5QswZBza[roI3spqORKae(ES5oEprVxulp(b'\xab\x9b\xc3\x00gDV;\xb2'), chr(100) + chr(0b1100101) + chr(99) + chr(111) + chr(0b1100100) + chr(0b1000010 + 0o43))(chr(0b1110101) + '\x74' + chr(1036 - 934) + '\055' + '\070')] = VB5xBO6STwcx
if MSO7REb1szzF is not None:
D9PB5QswZBza[roI3spqORKae(ES5oEprVxulp(b'\xab\x9b\xc7\x04`LV'), chr(100) + '\x65' + '\143' + chr(8994 - 8883) + '\x64' + '\145')(chr(0b1110101) + chr(0b1110100) + chr(0b1100110) + chr(727 - 682) + '\x38')] = MSO7REb1szzF
xxhWttsUDUCM = SsdNdRxXOwsF.api.job_new(D9PB5QswZBza, **q5n0sHDDTy90)
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xbc\x9b\xc7:`D'), chr(0b1011100 + 0o10) + chr(5686 - 5585) + chr(0b1100011) + '\157' + chr(0b1100100) + chr(0b1100101))('\x75' + '\164' + chr(0b1100110) + '\x2d' + chr(0b11001 + 0o37)))(xxhWttsUDUCM[roI3spqORKae(ES5oEprVxulp(b'\xa6\x9a'), chr(0b1100100) + chr(6527 - 6426) + '\143' + chr(11126 - 11015) + '\144' + chr(7500 - 7399))(chr(117) + chr(116) + chr(0b1100110) + '\x2d' + chr(56))])
else:
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xbc\x9b\xc7:`D'), chr(0b1100100) + '\x65' + chr(99) + chr(0b10100 + 0o133) + '\144' + chr(3902 - 3801))(chr(12724 - 12607) + chr(7074 - 6958) + '\x66' + '\055' + chr(1211 - 1155)))(lEYU4sS2X2pp(function=QwSAFHRe9kaK, input_hash=BeT3TwtpPv6N, depends_on=VB5xBO6STwcx, name=SLVB2BPA_mIe))
|
dnanexus/dx-toolkit
|
src/python/dxpy/bindings/dxjob.py
|
DXJob.set_id
|
def set_id(self, dxid):
'''
:param dxid: New job ID to be associated with the handler (localjob IDs also accepted for local runs)
:type dxid: string
Discards the currently stored ID and associates the handler with *dxid*
'''
if dxid is not None:
if not (isinstance(dxid, basestring) and dxid.startswith('localjob-')):
# localjob IDs (which do not follow the usual ID
# syntax) should be allowed; otherwise, follow the
# usual syntax checking
verify_string_dxid(dxid, self._class)
self._dxid = dxid
|
python
|
def set_id(self, dxid):
'''
:param dxid: New job ID to be associated with the handler (localjob IDs also accepted for local runs)
:type dxid: string
Discards the currently stored ID and associates the handler with *dxid*
'''
if dxid is not None:
if not (isinstance(dxid, basestring) and dxid.startswith('localjob-')):
# localjob IDs (which do not follow the usual ID
# syntax) should be allowed; otherwise, follow the
# usual syntax checking
verify_string_dxid(dxid, self._class)
self._dxid = dxid
|
[
"def",
"set_id",
"(",
"self",
",",
"dxid",
")",
":",
"if",
"dxid",
"is",
"not",
"None",
":",
"if",
"not",
"(",
"isinstance",
"(",
"dxid",
",",
"basestring",
")",
"and",
"dxid",
".",
"startswith",
"(",
"'localjob-'",
")",
")",
":",
"# localjob IDs (which do not follow the usual ID",
"# syntax) should be allowed; otherwise, follow the",
"# usual syntax checking",
"verify_string_dxid",
"(",
"dxid",
",",
"self",
".",
"_class",
")",
"self",
".",
"_dxid",
"=",
"dxid"
] |
:param dxid: New job ID to be associated with the handler (localjob IDs also accepted for local runs)
:type dxid: string
Discards the currently stored ID and associates the handler with *dxid*
|
[
":",
"param",
"dxid",
":",
"New",
"job",
"ID",
"to",
"be",
"associated",
"with",
"the",
"handler",
"(",
"localjob",
"IDs",
"also",
"accepted",
"for",
"local",
"runs",
")",
":",
"type",
"dxid",
":",
"string"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxjob.py#L175-L188
|
train
|
Sets the ID of the currently stored handler.
|
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX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ProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,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(50) + chr(310 - 259) + chr(53), 0o10), nzTpIcepk0o8('\060' + '\157' + chr(0b110010) + chr(0b110 + 0o57), 13024 - 13016), nzTpIcepk0o8(chr(2025 - 1977) + chr(0b1101111) + chr(0b110010 + 0o0) + chr(55) + chr(0b110100), 54492 - 54484), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(740 - 687) + chr(0b110111), 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(0b110010) + chr(0b110110) + chr(0b110100), 38823 - 38815), nzTpIcepk0o8('\x30' + chr(2851 - 2740) + chr(50) + chr(2762 - 2708) + chr(0b110101), 52328 - 52320), nzTpIcepk0o8('\x30' + chr(2263 - 2152) + chr(54) + '\x35', ord("\x08")), nzTpIcepk0o8(chr(2087 - 2039) + '\x6f' + chr(50) + '\x32' + '\060', 0b1000), nzTpIcepk0o8(chr(48) + chr(3083 - 2972) + chr(51) + chr(49) + chr(51), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110010) + '\x31' + chr(2418 - 2365), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(5760 - 5649) + chr(49) + chr(48) + chr(1350 - 1299), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110010) + '\x31' + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(463 - 415) + '\x6f' + chr(968 - 918) + '\x35' + chr(54), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101000 + 0o7) + chr(1463 - 1413) + '\063' + chr(1706 - 1657), 0b1000), nzTpIcepk0o8('\060' + chr(0b101110 + 0o101) + chr(0b110011) + chr(49) + '\x34', 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + '\x33' + '\067' + chr(2302 - 2250), 10326 - 10318), nzTpIcepk0o8(chr(0b1010 + 0o46) + '\157' + '\x33' + chr(0b11110 + 0o25) + '\x32', 0o10), nzTpIcepk0o8('\x30' + chr(0b1001000 + 0o47) + chr(0b1010 + 0o55) + '\067', ord("\x08")), nzTpIcepk0o8(chr(352 - 304) + chr(0b100101 + 0o112) + chr(49) + '\x30' + '\x35', ord("\x08")), nzTpIcepk0o8(chr(0b11001 + 0o27) + chr(111) + '\066', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1010100 + 0o33) + '\064' + chr(48), 734 - 726), nzTpIcepk0o8('\x30' + '\157' + chr(49) + chr(0b11001 + 0o34) + '\x33', 20136 - 20128), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110010) + chr(51) + chr(0b1000 + 0o56), ord("\x08")), nzTpIcepk0o8(chr(0b11111 + 0o21) + chr(0b1101111) + '\063' + '\x34' + chr(51), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + '\063' + '\x32' + chr(2305 - 2254), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b11110 + 0o121) + '\x32' + '\x36' + chr(0b101101 + 0o5), 0o10), nzTpIcepk0o8(chr(0b100100 + 0o14) + chr(0b1011111 + 0o20) + chr(1773 - 1723) + chr(0b110001) + chr(55), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(49) + '\062' + '\x32', 51706 - 51698), nzTpIcepk0o8('\060' + '\x6f' + '\x31' + chr(2579 - 2525) + '\x37', 52345 - 52337), nzTpIcepk0o8(chr(2235 - 2187) + chr(0b100011 + 0o114) + '\x33' + '\x32' + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(49) + chr(2163 - 2112) + chr(0b11010 + 0o31), 25528 - 25520), nzTpIcepk0o8('\x30' + '\157' + chr(0b110000 + 0o2) + chr(0b1 + 0o62) + chr(0b110111), 0b1000), nzTpIcepk0o8(chr(0b10011 + 0o35) + chr(111) + '\065' + '\x31', ord("\x08")), nzTpIcepk0o8(chr(0b10000 + 0o40) + chr(0b1101111) + chr(0b110001) + chr(1611 - 1558) + chr(2223 - 2168), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\062' + '\x34' + chr(1799 - 1747), 0b1000), nzTpIcepk0o8('\x30' + chr(11798 - 11687) + '\061' + '\063' + '\067', 58037 - 58029), nzTpIcepk0o8(chr(0b100100 + 0o14) + chr(0b1101111) + chr(0b110010) + chr(0b110001) + chr(55), 8), nzTpIcepk0o8(chr(0b11001 + 0o27) + chr(0b1011011 + 0o24) + chr(51) + '\x37' + '\060', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x35' + chr(0b10101 + 0o36), ord("\x08")), nzTpIcepk0o8(chr(1455 - 1407) + chr(111) + '\x32' + '\064' + chr(2575 - 2524), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(2260 - 2212) + chr(0b11011 + 0o124) + chr(411 - 358) + chr(0b11 + 0o55), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xb3'), chr(0b1100100) + chr(101) + chr(99) + '\x6f' + '\144' + chr(0b1011111 + 0o6))(chr(0b101100 + 0o111) + '\x74' + chr(102) + chr(45) + chr(0b111000)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def VzfLvZsy2J6D(hXMPsSrOQzbh, LaRgxWJnPLsD):
if LaRgxWJnPLsD is not None:
if not (suIjIS24Zkqw(LaRgxWJnPLsD, JaQstSroDWOP) and roI3spqORKae(LaRgxWJnPLsD, roI3spqORKae(ES5oEprVxulp(b'\xeea\xdd]\xc0\xc6B\xf9\xbf\xe5'), chr(0b1100100) + chr(0b11000 + 0o115) + chr(99) + '\157' + '\144' + chr(101))('\x75' + chr(0b1110100) + '\146' + chr(161 - 116) + chr(56)))(roI3spqORKae(ES5oEprVxulp(b'\xf1z\xdfN\xd8\xdfZ\xf2\xe6'), chr(100) + chr(0b111101 + 0o50) + '\143' + chr(111) + chr(100) + '\x65')(chr(0b1010101 + 0o40) + chr(0b1110100 + 0o0) + chr(0b1000111 + 0o37) + chr(0b101100 + 0o1) + '\070'))):
P4Jrngvu_Rir(LaRgxWJnPLsD, roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xecW\xe8z\xfe\xf8^\xc4\x83\xd8{\xe6'), chr(0b1100100) + '\x65' + '\143' + '\x6f' + chr(0b1100100) + chr(0b10000 + 0o125))(chr(0b1011110 + 0o27) + chr(116) + chr(0b1100110) + '\x2d' + chr(3091 - 3035))))
hXMPsSrOQzbh.d6KUnRQv6735 = LaRgxWJnPLsD
|
dnanexus/dx-toolkit
|
src/python/dxpy/bindings/dxjob.py
|
DXJob.describe
|
def describe(self, fields=None, io=None, **kwargs):
"""
:param fields: dict where the keys are field names that should
be returned, and values should be set to True (by default,
all fields are returned)
:type fields: dict
:param io: Include input and output fields in description;
cannot be provided with *fields*; default is True if
*fields* is not provided (deprecated)
:type io: bool
:returns: Description of the job
:rtype: dict
Returns a hash with key-value pairs containing information about
the job, including its state and (optionally) its inputs and
outputs, as described in the API documentation for the
`/job-xxxx/describe
<https://wiki.dnanexus.com/API-Specification-v1.0.0/Applets-and-Entry-Points#API-method:-/job-xxxx/describe>`_
method.
"""
if fields is not None and io is not None:
raise DXError('DXJob.describe: cannot provide non-None values for both fields and io')
describe_input = {}
if fields is not None:
describe_input['fields'] = fields
if io is not None:
describe_input['io'] = io
self._desc = dxpy.api.job_describe(self._dxid, describe_input, **kwargs)
return self._desc
|
python
|
def describe(self, fields=None, io=None, **kwargs):
"""
:param fields: dict where the keys are field names that should
be returned, and values should be set to True (by default,
all fields are returned)
:type fields: dict
:param io: Include input and output fields in description;
cannot be provided with *fields*; default is True if
*fields* is not provided (deprecated)
:type io: bool
:returns: Description of the job
:rtype: dict
Returns a hash with key-value pairs containing information about
the job, including its state and (optionally) its inputs and
outputs, as described in the API documentation for the
`/job-xxxx/describe
<https://wiki.dnanexus.com/API-Specification-v1.0.0/Applets-and-Entry-Points#API-method:-/job-xxxx/describe>`_
method.
"""
if fields is not None and io is not None:
raise DXError('DXJob.describe: cannot provide non-None values for both fields and io')
describe_input = {}
if fields is not None:
describe_input['fields'] = fields
if io is not None:
describe_input['io'] = io
self._desc = dxpy.api.job_describe(self._dxid, describe_input, **kwargs)
return self._desc
|
[
"def",
"describe",
"(",
"self",
",",
"fields",
"=",
"None",
",",
"io",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"if",
"fields",
"is",
"not",
"None",
"and",
"io",
"is",
"not",
"None",
":",
"raise",
"DXError",
"(",
"'DXJob.describe: cannot provide non-None values for both fields and io'",
")",
"describe_input",
"=",
"{",
"}",
"if",
"fields",
"is",
"not",
"None",
":",
"describe_input",
"[",
"'fields'",
"]",
"=",
"fields",
"if",
"io",
"is",
"not",
"None",
":",
"describe_input",
"[",
"'io'",
"]",
"=",
"io",
"self",
".",
"_desc",
"=",
"dxpy",
".",
"api",
".",
"job_describe",
"(",
"self",
".",
"_dxid",
",",
"describe_input",
",",
"*",
"*",
"kwargs",
")",
"return",
"self",
".",
"_desc"
] |
:param fields: dict where the keys are field names that should
be returned, and values should be set to True (by default,
all fields are returned)
:type fields: dict
:param io: Include input and output fields in description;
cannot be provided with *fields*; default is True if
*fields* is not provided (deprecated)
:type io: bool
:returns: Description of the job
:rtype: dict
Returns a hash with key-value pairs containing information about
the job, including its state and (optionally) its inputs and
outputs, as described in the API documentation for the
`/job-xxxx/describe
<https://wiki.dnanexus.com/API-Specification-v1.0.0/Applets-and-Entry-Points#API-method:-/job-xxxx/describe>`_
method.
|
[
":",
"param",
"fields",
":",
"dict",
"where",
"the",
"keys",
"are",
"field",
"names",
"that",
"should",
"be",
"returned",
"and",
"values",
"should",
"be",
"set",
"to",
"True",
"(",
"by",
"default",
"all",
"fields",
"are",
"returned",
")",
":",
"type",
"fields",
":",
"dict",
":",
"param",
"io",
":",
"Include",
"input",
"and",
"output",
"fields",
"in",
"description",
";",
"cannot",
"be",
"provided",
"with",
"*",
"fields",
"*",
";",
"default",
"is",
"True",
"if",
"*",
"fields",
"*",
"is",
"not",
"provided",
"(",
"deprecated",
")",
":",
"type",
"io",
":",
"bool",
":",
"returns",
":",
"Description",
"of",
"the",
"job",
":",
"rtype",
":",
"dict"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxjob.py#L190-L219
|
train
|
Returns a dictionary containing information about the job and its related entries.
|
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,g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viv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__
ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(48) + '\x6f' + '\x34' + chr(0b110010), 18788 - 18780), nzTpIcepk0o8(chr(117 - 69) + chr(509 - 398) + '\065' + '\x33', 0o10), nzTpIcepk0o8(chr(48) + chr(10757 - 10646) + chr(55) + '\x34', 62675 - 62667), nzTpIcepk0o8(chr(0b110000) + chr(11230 - 11119) + '\063' + chr(0b110100) + '\x36', ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(51) + chr(51) + chr(1979 - 1930), ord("\x08")), nzTpIcepk0o8(chr(0b1100 + 0o44) + chr(0b1101111) + '\x32' + chr(52) + '\064', 0o10), nzTpIcepk0o8('\x30' + chr(0b10 + 0o155) + '\x32', 51499 - 51491), nzTpIcepk0o8(chr(0b10101 + 0o33) + chr(0b1111 + 0o140) + chr(1488 - 1437) + '\066' + chr(0b110110), ord("\x08")), nzTpIcepk0o8(chr(0b101110 + 0o2) + chr(111) + '\067' + chr(49), 3026 - 3018), nzTpIcepk0o8(chr(48) + chr(0b1101001 + 0o6) + chr(0b110011) + chr(0b11000 + 0o36) + chr(0b11000 + 0o37), 0o10), nzTpIcepk0o8(chr(0b1110 + 0o42) + chr(0b1010111 + 0o30) + '\x31' + chr(0b101111 + 0o1) + chr(0b110101), ord("\x08")), nzTpIcepk0o8(chr(188 - 140) + chr(0b0 + 0o157) + '\x31' + chr(0b110011) + chr(0b110111), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(251 - 201) + chr(0b110011), ord("\x08")), nzTpIcepk0o8(chr(910 - 862) + chr(111) + chr(49) + '\061' + chr(1834 - 1786), 18170 - 18162), nzTpIcepk0o8(chr(0b101000 + 0o10) + chr(0b1101001 + 0o6) + chr(0b110101) + chr(50), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(246 - 195) + '\x31' + chr(0b110011), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110011) + '\x30', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b11100 + 0o26) + '\067' + '\x32', 0b1000), nzTpIcepk0o8(chr(1403 - 1355) + chr(111) + chr(50) + '\061', 0b1000), nzTpIcepk0o8('\060' + chr(8798 - 8687) + chr(237 - 188) + chr(0b11111 + 0o23) + chr(0b1001 + 0o51), 12034 - 12026), nzTpIcepk0o8(chr(647 - 599) + '\157' + '\x32' + chr(443 - 392) + chr(996 - 942), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b1011 + 0o50) + chr(49) + chr(0b110001), 0b1000), nzTpIcepk0o8('\x30' + chr(8402 - 8291) + '\063' + chr(55), 20072 - 20064), nzTpIcepk0o8(chr(1385 - 1337) + chr(0b1101111) + '\063' + chr(0b110001) + chr(0b110000), 0b1000), nzTpIcepk0o8(chr(1177 - 1129) + chr(0b10100 + 0o133) + chr(49) + chr(0b100011 + 0o17) + chr(1529 - 1479), 8), nzTpIcepk0o8('\060' + chr(326 - 215) + chr(0b110010) + chr(0b110101) + chr(0b110110), ord("\x08")), nzTpIcepk0o8(chr(194 - 146) + chr(1737 - 1626) + chr(0b110000 + 0o3) + chr(48) + '\x31', 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110001) + '\x35' + '\061', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101101 + 0o2) + chr(0b110010) + chr(0b1111 + 0o44) + chr(54), 8), nzTpIcepk0o8(chr(48) + chr(10265 - 10154) + '\062' + chr(1649 - 1598) + '\x34', 0b1000), nzTpIcepk0o8(chr(1099 - 1051) + chr(111) + chr(0b101001 + 0o10) + chr(0b110000) + '\067', 0b1000), nzTpIcepk0o8(chr(0b10000 + 0o40) + chr(111) + '\x32' + '\067' + chr(1383 - 1334), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(2277 - 2228) + chr(0b11010 + 0o35) + chr(0b10 + 0o61), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110010) + chr(50) + chr(1177 - 1128), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b10001 + 0o41) + chr(1901 - 1853) + '\066', 0o10), nzTpIcepk0o8(chr(48) + chr(9512 - 9401) + chr(49) + chr(0b11111 + 0o24) + '\063', 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(68 - 19) + chr(0b0 + 0o67) + chr(0b0 + 0o65), 0o10), nzTpIcepk0o8(chr(0b1001 + 0o47) + chr(0b110011 + 0o74) + chr(53) + chr(0b11000 + 0o30), 52226 - 52218), nzTpIcepk0o8('\x30' + chr(111) + chr(0b11110 + 0o25) + '\x36' + chr(119 - 65), 8), nzTpIcepk0o8('\060' + chr(0b1100010 + 0o15) + chr(0b11001 + 0o32) + '\x31' + chr(0b100111 + 0o12), 8)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x35' + chr(0b110000), 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x0c'), chr(0b1100100) + chr(0b1001110 + 0o27) + chr(0b10001 + 0o122) + chr(111) + chr(8108 - 8008) + '\x65')('\165' + chr(0b1110100) + '\x66' + '\055' + '\x38') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def r18okd2eFtJ8(hXMPsSrOQzbh, ZXDdzgbdtBfz=None, tZd4qAJTuKKm=None, **q5n0sHDDTy90):
if ZXDdzgbdtBfz is not None and tZd4qAJTuKKm is not None:
raise JPU16lJ2koBU(roI3spqORKae(ES5oEprVxulp(b'fsv\x89\xbb\x8af\x93J\x9476q-\x10\xeb{\xdb\x7f<\xf1\xbd?\xb8 \xc1\xb7\x00\xfa\xf9g\xd7\x14\xff\xab\x15\x12F\x93\xe9TJP\x93\xbc\xd7"\x90V\x85e=|<B\xeb~\xd3t>\xfa\xba?\xa9<\xca\xe1\x00\xf1'), chr(0b110110 + 0o56) + '\x65' + chr(0b1100011) + chr(5469 - 5358) + '\x64' + chr(3448 - 3347))(chr(117) + '\x74' + '\x66' + '\x2d' + '\070'))
kMxhmRVvaa4G = {}
if ZXDdzgbdtBfz is not None:
kMxhmRVvaa4G[roI3spqORKae(ES5oEprVxulp(b'DBY\x8a\xbd\xd7'), '\x64' + chr(0b1100101) + chr(7729 - 7630) + chr(0b1101111) + '\x64' + chr(2365 - 2264))(chr(5619 - 5502) + '\x74' + '\x66' + chr(0b101101) + chr(64 - 8))] = ZXDdzgbdtBfz
if tZd4qAJTuKKm is not None:
kMxhmRVvaa4G[roI3spqORKae(ES5oEprVxulp(b'KD'), chr(100) + chr(101) + '\x63' + '\x6f' + '\144' + '\145')('\165' + chr(364 - 248) + chr(102) + '\x2d' + '\070')] = tZd4qAJTuKKm
hXMPsSrOQzbh.Up76sqJenL0f = SsdNdRxXOwsF.api.job_describe(hXMPsSrOQzbh.d6KUnRQv6735, kMxhmRVvaa4G, **q5n0sHDDTy90)
return roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'w[\x0b\xd0\xaa\xd5H\x93W\xbbu9'), chr(100) + '\x65' + chr(5532 - 5433) + '\157' + chr(5736 - 5636) + chr(7556 - 7455))(chr(11520 - 11403) + chr(0b1110100) + '\146' + chr(45) + chr(0b111000)))
|
dnanexus/dx-toolkit
|
src/python/dxpy/bindings/dxjob.py
|
DXJob.add_tags
|
def add_tags(self, tags, **kwargs):
"""
:param tags: Tags to add to the job
:type tags: list of strings
Adds each of the specified tags to the job. Takes no
action for tags that are already listed for the job.
"""
dxpy.api.job_add_tags(self._dxid, {"tags": tags}, **kwargs)
|
python
|
def add_tags(self, tags, **kwargs):
"""
:param tags: Tags to add to the job
:type tags: list of strings
Adds each of the specified tags to the job. Takes no
action for tags that are already listed for the job.
"""
dxpy.api.job_add_tags(self._dxid, {"tags": tags}, **kwargs)
|
[
"def",
"add_tags",
"(",
"self",
",",
"tags",
",",
"*",
"*",
"kwargs",
")",
":",
"dxpy",
".",
"api",
".",
"job_add_tags",
"(",
"self",
".",
"_dxid",
",",
"{",
"\"tags\"",
":",
"tags",
"}",
",",
"*",
"*",
"kwargs",
")"
] |
:param tags: Tags to add to the job
:type tags: list of strings
Adds each of the specified tags to the job. Takes no
action for tags that are already listed for the job.
|
[
":",
"param",
"tags",
":",
"Tags",
"to",
"add",
"to",
"the",
"job",
":",
"type",
"tags",
":",
"list",
"of",
"strings"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxjob.py#L221-L231
|
train
|
Adds each of the specified tags to the job.
|
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,Wa8JM2k53wi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nU3Rq9N5ala,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(2096 - 2048) + chr(0b1101111) + chr(0b110001) + chr(812 - 764) + chr(857 - 807), 39147 - 39139), nzTpIcepk0o8('\x30' + chr(0b110011 + 0o74) + '\067' + chr(1457 - 1403), 0o10), nzTpIcepk0o8('\060' + chr(0b101111 + 0o100) + chr(55) + chr(0b11100 + 0o30), ord("\x08")), nzTpIcepk0o8(chr(2231 - 2183) + chr(0b1101111) + '\061' + chr(0b101001 + 0o12), 0b1000), nzTpIcepk0o8('\060' + chr(8998 - 8887) + chr(52) + chr(48), 38459 - 38451), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110001) + chr(1935 - 1887) + chr(0b110011), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + '\062' + chr(55) + chr(0b110010 + 0o0), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(0b1011 + 0o50) + chr(0b10110 + 0o33) + chr(50), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101001 + 0o6) + '\x31' + chr(49) + chr(1097 - 1049), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(49) + chr(0b110000) + '\060', 0b1000), nzTpIcepk0o8(chr(418 - 370) + chr(0b1101111) + chr(0b110111) + chr(52), 8), nzTpIcepk0o8('\x30' + chr(0b1000000 + 0o57) + '\x31' + chr(52) + chr(0b110111), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b101001 + 0o10) + '\064' + chr(0b110011), ord("\x08")), nzTpIcepk0o8(chr(0b1 + 0o57) + chr(111) + '\x31' + '\x34' + chr(0b110011), 8), nzTpIcepk0o8(chr(48) + chr(111) + '\065' + chr(53), 13478 - 13470), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b10 + 0o64) + '\x30', 0o10), nzTpIcepk0o8(chr(1164 - 1116) + '\157' + '\062' + '\063' + '\x35', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b10 + 0o155) + chr(0b100010 + 0o17) + '\063' + chr(0b110110), 0b1000), nzTpIcepk0o8(chr(163 - 115) + '\x6f' + '\x32' + '\064' + chr(1145 - 1091), 0b1000), nzTpIcepk0o8(chr(1451 - 1403) + chr(111) + chr(0b110001) + '\x31' + '\x31', 0o10), nzTpIcepk0o8('\060' + '\157' + chr(52) + '\064', ord("\x08")), nzTpIcepk0o8('\060' + chr(8621 - 8510) + chr(49) + '\x35' + chr(52), 45852 - 45844), nzTpIcepk0o8(chr(48) + chr(0b1101 + 0o142) + chr(2517 - 2466) + chr(0b101 + 0o60) + chr(51), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b1 + 0o60) + '\064' + chr(0b101011 + 0o6), 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(0b110001) + chr(172 - 123) + chr(0b110110), ord("\x08")), nzTpIcepk0o8(chr(77 - 29) + chr(2466 - 2355) + '\x36', 1854 - 1846), nzTpIcepk0o8('\060' + chr(0b1100000 + 0o17) + '\x31' + chr(0b110011) + '\x34', 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(931 - 880) + chr(0b110 + 0o52) + '\067', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(6793 - 6682) + chr(0b10001 + 0o41) + '\x31' + '\x37', 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b10011 + 0o40) + '\064' + chr(82 - 34), 0o10), nzTpIcepk0o8(chr(0b10000 + 0o40) + chr(0b1001010 + 0o45) + chr(0b1101 + 0o46) + '\x34' + chr(927 - 877), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b100010 + 0o115) + chr(0b1101 + 0o45) + '\x32' + chr(0b1110 + 0o46), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + '\061' + chr(52) + chr(0b10000 + 0o42), 0o10), nzTpIcepk0o8(chr(1754 - 1706) + '\x6f' + chr(1137 - 1087) + chr(0b1101 + 0o46) + '\067', ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110010) + chr(0b110110) + '\x31', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x33' + '\x35' + chr(1387 - 1337), 0o10), nzTpIcepk0o8(chr(121 - 73) + chr(0b1101111) + '\064' + chr(48), 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(49) + '\063', 8), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(837 - 787) + chr(0b1001 + 0o56) + chr(49), ord("\x08")), nzTpIcepk0o8(chr(1643 - 1595) + '\157' + chr(0b100100 + 0o20) + '\067', 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + chr(0b11010 + 0o125) + chr(0b110101) + '\060', 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'l'), chr(865 - 765) + '\x65' + chr(0b1100011) + chr(0b10001 + 0o136) + chr(9334 - 9234) + chr(0b1000100 + 0o41))(chr(117) + chr(0b1110100) + '\146' + '\055' + '\x38') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def wWxo3hTWGyrH(hXMPsSrOQzbh, TFpYP2_05oSC, **q5n0sHDDTy90):
roI3spqORKae(SsdNdRxXOwsF.api, roI3spqORKae(ES5oEprVxulp(b"(Q^TA'\xde\x95<![\x14"), '\144' + chr(0b1100101) + '\143' + '\157' + chr(100) + '\145')('\x75' + chr(0b1110100) + chr(102) + chr(0b101101) + chr(303 - 247)))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'&\x08w^N\x11\xeb\xbc~w\x0fR'), chr(0b101101 + 0o67) + chr(0b1100011 + 0o2) + chr(0b101101 + 0o66) + chr(2727 - 2616) + chr(0b110001 + 0o63) + chr(0b1010000 + 0o25))('\165' + chr(0b1110100) + chr(102) + chr(0b100011 + 0o12) + chr(0b110101 + 0o3))), {roI3spqORKae(ES5oEprVxulp(b'6_[x'), chr(0b1010101 + 0o17) + '\145' + chr(0b1100011) + '\157' + chr(100) + chr(0b100110 + 0o77))(chr(0b111100 + 0o71) + chr(0b1001101 + 0o47) + chr(5055 - 4953) + chr(347 - 302) + chr(3050 - 2994)): TFpYP2_05oSC}, **q5n0sHDDTy90)
|
dnanexus/dx-toolkit
|
src/python/dxpy/bindings/dxjob.py
|
DXJob.remove_tags
|
def remove_tags(self, tags, **kwargs):
"""
:param tags: Tags to remove from the job
:type tags: list of strings
Removes each of the specified tags from the job. Takes
no action for tags that the job does not currently have.
"""
dxpy.api.job_remove_tags(self._dxid, {"tags": tags}, **kwargs)
|
python
|
def remove_tags(self, tags, **kwargs):
"""
:param tags: Tags to remove from the job
:type tags: list of strings
Removes each of the specified tags from the job. Takes
no action for tags that the job does not currently have.
"""
dxpy.api.job_remove_tags(self._dxid, {"tags": tags}, **kwargs)
|
[
"def",
"remove_tags",
"(",
"self",
",",
"tags",
",",
"*",
"*",
"kwargs",
")",
":",
"dxpy",
".",
"api",
".",
"job_remove_tags",
"(",
"self",
".",
"_dxid",
",",
"{",
"\"tags\"",
":",
"tags",
"}",
",",
"*",
"*",
"kwargs",
")"
] |
:param tags: Tags to remove from the job
:type tags: list of strings
Removes each of the specified tags from the job. Takes
no action for tags that the job does not currently have.
|
[
":",
"param",
"tags",
":",
"Tags",
"to",
"remove",
"from",
"the",
"job",
":",
"type",
"tags",
":",
"list",
"of",
"strings"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxjob.py#L233-L243
|
train
|
Removes the specified tags from the job.
|
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(48) + '\157' + '\066' + chr(2217 - 2166), 0b1000), nzTpIcepk0o8(chr(1474 - 1426) + '\157' + '\x32' + chr(1317 - 1269) + '\x32', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1010100 + 0o33) + '\061' + chr(0b10100 + 0o35) + chr(0b110100), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1100010 + 0o15) + chr(1329 - 1279) + '\066', 49423 - 49415), nzTpIcepk0o8(chr(0b111 + 0o51) + '\x6f' + chr(0b110011) + chr(2206 - 2155) + '\x35', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110001) + chr(0b101011 + 0o11) + chr(52), 16797 - 16789), nzTpIcepk0o8('\060' + chr(0b1010001 + 0o36) + chr(51) + chr(53) + chr(51), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(11947 - 11836) + chr(0b110001) + chr(0b110110) + chr(48), ord("\x08")), nzTpIcepk0o8(chr(0b100 + 0o54) + '\x6f' + chr(51) + chr(886 - 833) + chr(0b110110), 11815 - 11807), nzTpIcepk0o8(chr(0b10110 + 0o32) + '\157' + chr(49) + '\061' + '\x37', 0o10), nzTpIcepk0o8(chr(48) + chr(111) + '\x31' + chr(0b110110) + chr(0b11000 + 0o35), 24349 - 24341), nzTpIcepk0o8('\060' + chr(0b1010 + 0o145) + chr(51) + chr(0b110101) + chr(55), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\065' + '\x30', 46516 - 46508), nzTpIcepk0o8(chr(0b110000) + chr(11995 - 11884) + chr(1053 - 1004) + chr(0b101000 + 0o12) + chr(48), 0b1000), nzTpIcepk0o8('\x30' + chr(12305 - 12194) + chr(49) + chr(0b1 + 0o57) + chr(0b110000), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(51) + chr(241 - 189) + chr(1513 - 1458), 49021 - 49013), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b10110 + 0o35) + chr(55) + chr(53), 0b1000), nzTpIcepk0o8(chr(0b10101 + 0o33) + chr(111) + chr(0b110001) + '\x30' + chr(0b111 + 0o53), 0b1000), nzTpIcepk0o8(chr(0b10000 + 0o40) + chr(111) + '\x33' + chr(0b100001 + 0o20) + '\065', 32127 - 32119), nzTpIcepk0o8('\x30' + chr(111) + chr(65 - 14) + chr(50) + chr(0b110101 + 0o2), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(49) + chr(0b11010 + 0o35) + chr(263 - 215), 54918 - 54910), nzTpIcepk0o8(chr(1059 - 1011) + '\x6f' + '\x33' + '\066' + chr(2911 - 2856), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\063' + chr(0b1010 + 0o55) + chr(1720 - 1671), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110010) + chr(0b110010) + '\064', 0b1000), nzTpIcepk0o8(chr(0b100010 + 0o16) + '\157' + chr(0b110010 + 0o3), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(2470 - 2419) + chr(0b101111 + 0o10) + chr(53), 8), nzTpIcepk0o8(chr(0b1001 + 0o47) + '\157' + chr(50) + '\063' + chr(0b101010 + 0o15), ord("\x08")), nzTpIcepk0o8(chr(1034 - 986) + chr(6769 - 6658) + chr(51) + chr(52) + chr(51), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110011) + chr(54) + '\x36', 0o10), nzTpIcepk0o8('\x30' + chr(0b1 + 0o156) + '\x37', 19694 - 19686), nzTpIcepk0o8(chr(48) + chr(5885 - 5774) + chr(49) + chr(0b110 + 0o55) + '\x37', ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + '\x31' + '\x32' + '\061', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1001 + 0o146) + chr(0b100111 + 0o14) + '\x36' + chr(55), 8), nzTpIcepk0o8(chr(0b10011 + 0o35) + chr(11870 - 11759) + chr(50) + '\065', 0o10), nzTpIcepk0o8('\x30' + '\x6f' + '\x33' + chr(2426 - 2375) + chr(1548 - 1498), 22082 - 22074), nzTpIcepk0o8(chr(104 - 56) + '\x6f' + chr(0b110110) + '\x37', 40947 - 40939), nzTpIcepk0o8(chr(0b110000) + chr(11693 - 11582) + chr(2303 - 2254) + chr(0b110100) + chr(1539 - 1488), 27241 - 27233), nzTpIcepk0o8(chr(48) + '\157' + chr(50) + '\065' + '\x31', ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110010) + chr(2485 - 2431) + chr(48), ord("\x08")), nzTpIcepk0o8(chr(802 - 754) + chr(0b111101 + 0o62) + chr(0b110001) + chr(0b101001 + 0o10) + chr(1719 - 1669), 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x35' + '\060', 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x1d'), chr(3236 - 3136) + '\145' + '\x63' + '\x6f' + chr(9235 - 9135) + chr(0b1100101))(chr(117) + chr(0b11100 + 0o130) + chr(3817 - 3715) + '\x2d' + chr(849 - 793)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def FZakyp0UKRsK(hXMPsSrOQzbh, TFpYP2_05oSC, **q5n0sHDDTy90):
roI3spqORKae(SsdNdRxXOwsF.api, roI3spqORKae(ES5oEprVxulp(b'Y\xed.I\xaf\x01\x86\x1f\x98**\x9bI73'), '\144' + chr(0b1100101) + chr(0b1101 + 0o126) + '\x6f' + '\x64' + chr(5467 - 5366))('\x75' + chr(116) + '\x66' + chr(0b101101) + chr(440 - 384)))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'W\xb4\x07C\xb36\xba\x06\xd8xF\xda'), '\144' + chr(0b110000 + 0o65) + chr(0b1100011) + chr(0b1101111) + '\x64' + '\x65')(chr(0b1110011 + 0o2) + '\164' + chr(0b1100110) + chr(45) + chr(0b111000))), {roI3spqORKae(ES5oEprVxulp(b'G\xe3+e'), chr(100) + '\145' + chr(0b1100011) + chr(11096 - 10985) + '\144' + chr(0b1100101))(chr(0b1110101) + '\x74' + '\x66' + chr(1022 - 977) + '\070'): TFpYP2_05oSC}, **q5n0sHDDTy90)
|
dnanexus/dx-toolkit
|
src/python/dxpy/bindings/dxjob.py
|
DXJob.set_properties
|
def set_properties(self, properties, **kwargs):
"""
:param properties: Property names and values given as key-value pairs of strings
:type properties: dict
Given key-value pairs in *properties* for property names and
values, the properties are set on the job for the given
property names. Any property with a value of :const:`None`
indicates the property will be deleted.
.. note:: Any existing properties not mentioned in *properties*
are not modified by this method.
"""
dxpy.api.job_set_properties(self._dxid, {"properties": properties}, **kwargs)
|
python
|
def set_properties(self, properties, **kwargs):
"""
:param properties: Property names and values given as key-value pairs of strings
:type properties: dict
Given key-value pairs in *properties* for property names and
values, the properties are set on the job for the given
property names. Any property with a value of :const:`None`
indicates the property will be deleted.
.. note:: Any existing properties not mentioned in *properties*
are not modified by this method.
"""
dxpy.api.job_set_properties(self._dxid, {"properties": properties}, **kwargs)
|
[
"def",
"set_properties",
"(",
"self",
",",
"properties",
",",
"*",
"*",
"kwargs",
")",
":",
"dxpy",
".",
"api",
".",
"job_set_properties",
"(",
"self",
".",
"_dxid",
",",
"{",
"\"properties\"",
":",
"properties",
"}",
",",
"*",
"*",
"kwargs",
")"
] |
:param properties: Property names and values given as key-value pairs of strings
:type properties: dict
Given key-value pairs in *properties* for property names and
values, the properties are set on the job for the given
property names. Any property with a value of :const:`None`
indicates the property will be deleted.
.. note:: Any existing properties not mentioned in *properties*
are not modified by this method.
|
[
":",
"param",
"properties",
":",
"Property",
"names",
"and",
"values",
"given",
"as",
"key",
"-",
"value",
"pairs",
"of",
"strings",
":",
"type",
"properties",
":",
"dict"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxjob.py#L245-L260
|
train
|
Sets the properties of the job for the given key - value pairs.
|
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,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RaY,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(704 - 656) + '\157' + chr(0b110010) + '\x34' + chr(0b100101 + 0o21), 0b1000), nzTpIcepk0o8('\060' + chr(9412 - 9301) + '\062' + '\066' + '\066', ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(1774 - 1723) + '\x35' + chr(0b110100 + 0o3), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(999 - 949) + '\x30' + chr(0b101011 + 0o11), 37801 - 37793), nzTpIcepk0o8(chr(1181 - 1133) + '\x6f' + '\063' + chr(0b110000) + chr(515 - 465), ord("\x08")), nzTpIcepk0o8(chr(0b10010 + 0o36) + '\157' + chr(49) + '\x33' + chr(54), 0o10), nzTpIcepk0o8(chr(0b101000 + 0o10) + '\x6f' + chr(0b110001) + chr(0b100010 + 0o24) + '\x36', 0b1000), nzTpIcepk0o8('\x30' + chr(2955 - 2844) + chr(261 - 211) + chr(51) + chr(747 - 696), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + '\x31' + '\065' + chr(2422 - 2371), ord("\x08")), nzTpIcepk0o8(chr(0b1 + 0o57) + chr(4403 - 4292) + chr(49) + chr(0b101 + 0o56) + chr(54), 8), nzTpIcepk0o8(chr(0b1 + 0o57) + '\157' + chr(0b1101 + 0o46) + chr(0b1 + 0o63) + chr(53), 46123 - 46115), nzTpIcepk0o8(chr(48) + chr(1785 - 1674) + chr(1305 - 1256) + chr(0b110101) + chr(0b110101), 46962 - 46954), nzTpIcepk0o8(chr(48) + chr(0b1101000 + 0o7) + chr(1001 - 947) + chr(209 - 157), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + '\063' + chr(2298 - 2245) + '\x34', 18377 - 18369), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b11010 + 0o35) + chr(55), 0b1000), nzTpIcepk0o8(chr(496 - 448) + chr(111) + chr(0b110001) + '\x37', 0b1000), nzTpIcepk0o8(chr(48) + chr(2857 - 2746) + chr(50) + chr(0b101111 + 0o3) + chr(2155 - 2104), 0o10), nzTpIcepk0o8(chr(48) + '\157' + '\x32' + chr(0b1110 + 0o44) + chr(0b110001), 0o10), nzTpIcepk0o8(chr(0b10010 + 0o36) + '\157' + chr(0b110010) + '\065' + chr(49), ord("\x08")), nzTpIcepk0o8(chr(0b100110 + 0o12) + chr(111) + chr(766 - 715) + chr(0b110111) + chr(0b110001), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x31' + chr(1144 - 1094) + '\060', 1669 - 1661), nzTpIcepk0o8(chr(0b10111 + 0o31) + chr(111) + chr(55) + chr(0b11010 + 0o35), 8), nzTpIcepk0o8(chr(48) + '\157' + '\x33' + '\x33' + chr(550 - 502), 0o10), nzTpIcepk0o8('\x30' + chr(111) + '\x32' + chr(50) + chr(0b101010 + 0o14), 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(1690 - 1640) + chr(0b110010) + '\x32', 0o10), nzTpIcepk0o8(chr(208 - 160) + chr(0b11 + 0o154) + '\x31' + chr(2236 - 2185) + chr(0b101010 + 0o12), 0b1000), nzTpIcepk0o8('\060' + chr(111) + '\062' + chr(976 - 924) + chr(1684 - 1632), 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(49) + chr(0b100000 + 0o21) + '\060', 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110011) + chr(0b110111) + chr(0b110100), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(51) + chr(0b110111) + '\060', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(1518 - 1467) + chr(0b111 + 0o51) + '\x34', 65399 - 65391), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110011) + chr(0b111 + 0o56) + chr(896 - 845), ord("\x08")), nzTpIcepk0o8(chr(988 - 940) + '\x6f' + chr(311 - 262) + chr(228 - 179) + chr(53), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x33' + chr(0b110111) + chr(0b110100), 8), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110011) + chr(110 - 62) + '\066', 22382 - 22374), nzTpIcepk0o8(chr(676 - 628) + chr(0b110000 + 0o77) + '\061' + chr(0b110110) + '\x37', ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(1908 - 1857) + chr(1143 - 1090) + chr(419 - 365), 57542 - 57534), nzTpIcepk0o8(chr(0b10 + 0o56) + '\157' + '\062' + chr(0b10001 + 0o45) + chr(50), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(0b1010 + 0o50) + chr(0b110110) + chr(0b11101 + 0o23), 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(1655 - 1603) + '\x33', 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(1942 - 1894) + '\157' + '\065' + chr(1565 - 1517), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x88'), '\144' + '\x65' + '\x63' + '\x6f' + chr(0b1111 + 0o125) + chr(4377 - 4276))('\x75' + '\x74' + '\146' + '\055' + chr(0b111000)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def _A8qWiiAVEqQ(hXMPsSrOQzbh, UtZvTnutzMHg, **q5n0sHDDTy90):
roI3spqORKae(SsdNdRxXOwsF.api, roI3spqORKae(ES5oEprVxulp(b'\xcc\xd9\x8d\xdb\xb1;\x02\xc4\x1b,\x8a\x1dQ\x9eKf\xf6\xe2'), chr(0b1011110 + 0o6) + chr(0b1 + 0o144) + '\x63' + '\x6f' + chr(6753 - 6653) + '\145')(chr(117) + chr(0b11100 + 0o130) + chr(10335 - 10233) + chr(0b101101) + chr(56)))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b"\xc2\x80\xa4\xd1\xac\x0c'\xed]i\xd6X"), '\x64' + '\x65' + chr(99) + chr(0b1101111) + chr(0b1100100) + chr(0b1100101))(chr(0b1001111 + 0o46) + '\x74' + chr(0b1100110) + chr(0b101101) + chr(0b100011 + 0o25))), {roI3spqORKae(ES5oEprVxulp(b'\xd6\xc4\x80\xf4\xa7,\x02\xf2\x0e-'), '\144' + chr(101) + chr(99) + '\x6f' + chr(100) + chr(0b1010001 + 0o24))(chr(6576 - 6459) + chr(0b1001110 + 0o46) + chr(0b1100110) + chr(0b101101) + chr(0b111000)): UtZvTnutzMHg}, **q5n0sHDDTy90)
|
dnanexus/dx-toolkit
|
src/python/dxpy/bindings/dxjob.py
|
DXJob.wait_on_done
|
def wait_on_done(self, interval=2, timeout=3600*24*7, **kwargs):
'''
:param interval: Number of seconds between queries to the job's state
:type interval: integer
:param timeout: Maximum amount of time to wait, in seconds, until the job is done running
:type timeout: integer
:raises: :exc:`~dxpy.exceptions.DXError` if the timeout is reached before the job has finished running, or :exc:`dxpy.exceptions.DXJobFailureError` if the job fails
Waits until the job has finished running.
'''
elapsed = 0
while True:
state = self._get_state(**kwargs)
if state == "done":
break
if state == "failed":
desc = self.describe(**kwargs)
err_msg = "Job has failed because of {failureReason}: {failureMessage}".format(**desc)
if desc.get("failureFrom") != None and desc["failureFrom"]["id"] != desc["id"]:
err_msg += " (failure from {id})".format(id=desc['failureFrom']['id'])
raise DXJobFailureError(err_msg)
if state == "terminated":
raise DXJobFailureError("Job was terminated.")
if elapsed >= timeout or elapsed < 0:
raise DXJobFailureError("Reached timeout while waiting for the job to finish")
time.sleep(interval)
elapsed += interval
|
python
|
def wait_on_done(self, interval=2, timeout=3600*24*7, **kwargs):
'''
:param interval: Number of seconds between queries to the job's state
:type interval: integer
:param timeout: Maximum amount of time to wait, in seconds, until the job is done running
:type timeout: integer
:raises: :exc:`~dxpy.exceptions.DXError` if the timeout is reached before the job has finished running, or :exc:`dxpy.exceptions.DXJobFailureError` if the job fails
Waits until the job has finished running.
'''
elapsed = 0
while True:
state = self._get_state(**kwargs)
if state == "done":
break
if state == "failed":
desc = self.describe(**kwargs)
err_msg = "Job has failed because of {failureReason}: {failureMessage}".format(**desc)
if desc.get("failureFrom") != None and desc["failureFrom"]["id"] != desc["id"]:
err_msg += " (failure from {id})".format(id=desc['failureFrom']['id'])
raise DXJobFailureError(err_msg)
if state == "terminated":
raise DXJobFailureError("Job was terminated.")
if elapsed >= timeout or elapsed < 0:
raise DXJobFailureError("Reached timeout while waiting for the job to finish")
time.sleep(interval)
elapsed += interval
|
[
"def",
"wait_on_done",
"(",
"self",
",",
"interval",
"=",
"2",
",",
"timeout",
"=",
"3600",
"*",
"24",
"*",
"7",
",",
"*",
"*",
"kwargs",
")",
":",
"elapsed",
"=",
"0",
"while",
"True",
":",
"state",
"=",
"self",
".",
"_get_state",
"(",
"*",
"*",
"kwargs",
")",
"if",
"state",
"==",
"\"done\"",
":",
"break",
"if",
"state",
"==",
"\"failed\"",
":",
"desc",
"=",
"self",
".",
"describe",
"(",
"*",
"*",
"kwargs",
")",
"err_msg",
"=",
"\"Job has failed because of {failureReason}: {failureMessage}\"",
".",
"format",
"(",
"*",
"*",
"desc",
")",
"if",
"desc",
".",
"get",
"(",
"\"failureFrom\"",
")",
"!=",
"None",
"and",
"desc",
"[",
"\"failureFrom\"",
"]",
"[",
"\"id\"",
"]",
"!=",
"desc",
"[",
"\"id\"",
"]",
":",
"err_msg",
"+=",
"\" (failure from {id})\"",
".",
"format",
"(",
"id",
"=",
"desc",
"[",
"'failureFrom'",
"]",
"[",
"'id'",
"]",
")",
"raise",
"DXJobFailureError",
"(",
"err_msg",
")",
"if",
"state",
"==",
"\"terminated\"",
":",
"raise",
"DXJobFailureError",
"(",
"\"Job was terminated.\"",
")",
"if",
"elapsed",
">=",
"timeout",
"or",
"elapsed",
"<",
"0",
":",
"raise",
"DXJobFailureError",
"(",
"\"Reached timeout while waiting for the job to finish\"",
")",
"time",
".",
"sleep",
"(",
"interval",
")",
"elapsed",
"+=",
"interval"
] |
:param interval: Number of seconds between queries to the job's state
:type interval: integer
:param timeout: Maximum amount of time to wait, in seconds, until the job is done running
:type timeout: integer
:raises: :exc:`~dxpy.exceptions.DXError` if the timeout is reached before the job has finished running, or :exc:`dxpy.exceptions.DXJobFailureError` if the job fails
Waits until the job has finished running.
|
[
":",
"param",
"interval",
":",
"Number",
"of",
"seconds",
"between",
"queries",
"to",
"the",
"job",
"s",
"state",
":",
"type",
"interval",
":",
"integer",
":",
"param",
"timeout",
":",
"Maximum",
"amount",
"of",
"time",
"to",
"wait",
"in",
"seconds",
"until",
"the",
"job",
"is",
"done",
"running",
":",
"type",
"timeout",
":",
"integer",
":",
"raises",
":",
":",
"exc",
":",
"~dxpy",
".",
"exceptions",
".",
"DXError",
"if",
"the",
"timeout",
"is",
"reached",
"before",
"the",
"job",
"has",
"finished",
"running",
"or",
":",
"exc",
":",
"dxpy",
".",
"exceptions",
".",
"DXJobFailureError",
"if",
"the",
"job",
"fails"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxjob.py#L262-L291
|
train
|
Waits until the job is done.
|
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcq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FUos7dinCa7,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(51) + '\x33' + chr(51), 0o10), nzTpIcepk0o8(chr(0b101110 + 0o2) + chr(0b1101111) + '\061' + chr(1218 - 1166) + chr(0b110011), 0o10), nzTpIcepk0o8(chr(48) + '\157' + '\x31' + chr(54) + '\065', 21590 - 21582), nzTpIcepk0o8('\x30' + '\157' + chr(1333 - 1282) + chr(49) + chr(436 - 384), 24631 - 24623), nzTpIcepk0o8('\060' + chr(0b1000001 + 0o56) + '\x33' + chr(0b101 + 0o57) + '\x32', ord("\x08")), nzTpIcepk0o8(chr(2014 - 1966) + '\x6f' + chr(1141 - 1091) + '\x36' + '\060', 0b1000), nzTpIcepk0o8(chr(0b10010 + 0o36) + '\157' + chr(53) + chr(0b1110 + 0o44), 40264 - 40256), nzTpIcepk0o8(chr(0b110000) + chr(0b110010 + 0o75) + '\062' + chr(0b110010) + chr(0b110010), ord("\x08")), nzTpIcepk0o8(chr(0b10111 + 0o31) + chr(6343 - 6232) + chr(0b110001), 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(0b110011) + chr(0b10110 + 0o34) + chr(54), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(9630 - 9519) + chr(0b110000 + 0o3) + chr(0b11111 + 0o22) + chr(49), 13314 - 13306), nzTpIcepk0o8('\060' + '\157' + '\063' + chr(0b110000) + chr(54), 62255 - 62247), nzTpIcepk0o8(chr(0b100000 + 0o20) + '\157' + '\x35' + chr(174 - 119), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x31' + '\066' + chr(2377 - 2326), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + '\x33' + chr(0b101111 + 0o7) + '\061', 0o10), nzTpIcepk0o8('\060' + chr(2447 - 2336) + chr(1805 - 1756) + chr(154 - 104) + '\066', 0b1000), nzTpIcepk0o8(chr(48) + '\157' + '\061' + '\x34' + chr(0b110101), 45817 - 45809), nzTpIcepk0o8(chr(48) + chr(111) + '\x32' + chr(0b110100), ord("\x08")), nzTpIcepk0o8(chr(0b10101 + 0o33) + '\x6f' + '\x32' + chr(50) + '\x36', ord("\x08")), nzTpIcepk0o8(chr(1800 - 1752) + '\x6f' + '\x32' + chr(0b1100 + 0o52) + chr(0b11101 + 0o27), 65486 - 65478), nzTpIcepk0o8(chr(1764 - 1716) + chr(0b1101111) + chr(0b110001) + '\065' + chr(2729 - 2674), 22684 - 22676), nzTpIcepk0o8(chr(0b10010 + 0o36) + '\157' + chr(0b110001) + chr(0b11 + 0o56) + chr(0b11010 + 0o27), 0b1000), nzTpIcepk0o8(chr(1248 - 1200) + '\157' + chr(0b10110 + 0o33) + '\064' + '\060', 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(1080 - 1029) + chr(55) + chr(52), 44696 - 44688), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(50) + chr(482 - 433) + chr(51), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(51) + chr(0b110111) + '\x30', 5199 - 5191), nzTpIcepk0o8(chr(0b11100 + 0o24) + chr(12032 - 11921) + chr(55) + chr(1926 - 1875), 0b1000), nzTpIcepk0o8(chr(1312 - 1264) + chr(6596 - 6485) + chr(0b110001), 8), nzTpIcepk0o8('\x30' + '\x6f' + '\x33' + chr(0b10000 + 0o41) + '\x35', ord("\x08")), nzTpIcepk0o8(chr(0b101 + 0o53) + '\x6f' + chr(49) + '\062' + '\063', 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110011) + '\x37' + chr(0b110100 + 0o3), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110010) + chr(49), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(49) + '\063' + chr(1614 - 1559), 0o10), nzTpIcepk0o8(chr(715 - 667) + chr(111) + chr(50) + chr(0b10101 + 0o33) + chr(947 - 894), 2498 - 2490), nzTpIcepk0o8(chr(1617 - 1569) + chr(111) + '\x33' + chr(0b110011) + chr(55), 0o10), nzTpIcepk0o8(chr(48) + chr(0b101001 + 0o106) + chr(0b110011) + chr(49) + '\x34', 8), nzTpIcepk0o8(chr(0b110000) + chr(8964 - 8853) + '\x32' + chr(2047 - 1999) + chr(0b110011), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(50) + '\063' + '\067', 41058 - 41050), nzTpIcepk0o8(chr(818 - 770) + chr(3334 - 3223) + chr(0b100101 + 0o14) + chr(751 - 697) + chr(0b10 + 0o62), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\061' + chr(49) + '\x37', ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + 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'\xf5'), '\x64' + chr(7144 - 7043) + chr(99) + chr(6227 - 6116) + chr(0b110101 + 0o57) + '\145')(chr(117) + chr(116) + chr(6746 - 6644) + chr(0b101101) + '\x38') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def cPSSHJjmZJu_(hXMPsSrOQzbh, n1CVRUxWAiaX=nzTpIcepk0o8(chr(949 - 901) + chr(0b1101111) + chr(50), 0b1000), ACACUUFQsMpr=nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x37' + chr(1689 - 1641) + chr(0b110010) + chr(48), 0b1000) * nzTpIcepk0o8('\x30' + chr(0b1000 + 0o147) + chr(900 - 849) + chr(333 - 285), 0o10) * nzTpIcepk0o8('\x30' + '\157' + chr(0b10010 + 0o45), 54965 - 54957), **q5n0sHDDTy90):
GCI4bClrnjBQ = nzTpIcepk0o8(chr(0b11101 + 0o23) + chr(111) + '\x30', 0b1000)
while nzTpIcepk0o8(chr(240 - 192) + '\157' + chr(0b101010 + 0o7), 8):
VMBC47Reoq4Q = hXMPsSrOQzbh._get_state(**q5n0sHDDTy90)
if VMBC47Reoq4Q == roI3spqORKae(ES5oEprVxulp(b'\xbf\x0c\x1b\xa9'), chr(0b1100100) + chr(0b10000 + 0o125) + chr(5241 - 5142) + '\157' + chr(336 - 236) + '\145')(chr(0b1110101) + '\x74' + chr(7998 - 7896) + chr(1846 - 1801) + chr(56)):
break
if VMBC47Reoq4Q == roI3spqORKae(ES5oEprVxulp(b'\xbd\x02\x1c\xa0\x87\xd4'), chr(0b1100100) + chr(101) + chr(99) + '\x6f' + chr(0b1100100) + chr(0b1100101))(chr(117) + chr(0b1110100) + chr(0b11100 + 0o112) + '\x2d' + chr(56)):
iSl7yqRxEcuG = hXMPsSrOQzbh.describe(**q5n0sHDDTy90)
rz25atpOjIy0 = roI3spqORKae(ES5oEprVxulp(b'\x91\x0c\x17\xec\x8a\xd1Y\xb2g\xb7\xa0\xaaJ\x17\xd14\x00w\xf7\xc1\x1c,@\x93\xed\xd8@g\xac:\x93d-\xe0\x8d\xa9\xe2\xec\x1b!\xa6YU\xb7\x84\xd1C\xfet\xa4\xac\x8bJ\x00\x827\x02q\xeb'), chr(100) + '\145' + chr(0b11011 + 0o110) + '\x6f' + chr(100) + chr(0b110110 + 0o57))(chr(0b1110101) + '\164' + chr(102) + chr(45) + chr(552 - 496)).q33KG3foQ_CJ(**iSl7yqRxEcuG)
if roI3spqORKae(iSl7yqRxEcuG, roI3spqORKae(ES5oEprVxulp(b'\x9c6>\xa9\x96\xc5\x1e\xea`\x91\xba\x8c'), chr(100) + chr(101) + chr(99) + chr(7965 - 7854) + chr(100) + '\x65')(chr(12256 - 12139) + '\164' + chr(0b1100110) + chr(0b10011 + 0o32) + chr(56)))(roI3spqORKae(ES5oEprVxulp(b'\xbd\x02\x1c\xa0\x97\xc2O\xd4s\xb9\xa4'), chr(0b1100100) + chr(0b100110 + 0o77) + '\143' + '\x6f' + chr(0b1010100 + 0o20) + '\145')(chr(117) + chr(0b1100101 + 0o17) + chr(102) + chr(0b11000 + 0o25) + chr(56))) is not None and iSl7yqRxEcuG[roI3spqORKae(ES5oEprVxulp(b'\xbd\x02\x1c\xa0\x97\xc2O\xd4s\xb9\xa4'), chr(7171 - 7071) + '\x65' + chr(0b1100011) + '\157' + chr(0b1010000 + 0o24) + '\x65')('\x75' + chr(116) + chr(0b1001010 + 0o34) + chr(985 - 940) + '\x38')][roI3spqORKae(ES5oEprVxulp(b'\xb2\x07'), '\x64' + chr(0b11101 + 0o110) + '\x63' + chr(111) + '\144' + chr(101))(chr(0b1110101) + chr(116) + chr(0b1100110) + chr(330 - 285) + '\x38')] != iSl7yqRxEcuG[roI3spqORKae(ES5oEprVxulp(b'\xb2\x07'), '\144' + chr(101) + chr(0b1100011) + chr(0b110010 + 0o75) + chr(0b111111 + 0o45) + chr(0b111100 + 0o51))(chr(3401 - 3284) + '\x74' + chr(0b1100110) + chr(0b101101) + '\070')]:
rz25atpOjIy0 += roI3spqORKae(ES5oEprVxulp(b'\xfbK\x13\xad\x8b\xdc_\xe0d\xf6\xaf\xb4@\x1e\xd1-\x0cp\xeb\x9d'), '\144' + '\x65' + chr(99) + '\157' + chr(2620 - 2520) + chr(2927 - 2826))('\165' + chr(116) + chr(6317 - 6215) + chr(0b10111 + 0o26) + chr(0b10111 + 0o41)).q33KG3foQ_CJ(id=iSl7yqRxEcuG[roI3spqORKae(ES5oEprVxulp(b'\xbd\x02\x1c\xa0\x97\xc2O\xd4s\xb9\xa4'), chr(0b1100100) + chr(0b1100101) + '\143' + chr(11365 - 11254) + '\x64' + chr(0b1001111 + 0o26))('\x75' + chr(3254 - 3138) + chr(102) + '\x2d' + chr(0b1010 + 0o56))][roI3spqORKae(ES5oEprVxulp(b'\xb2\x07'), chr(100) + chr(7838 - 7737) + '\x63' + chr(0b101011 + 0o104) + chr(0b1010101 + 0o17) + '\x65')('\x75' + chr(0b1000001 + 0o63) + chr(102) + chr(0b100011 + 0o12) + chr(513 - 457))])
raise DdAS9CpUWli9(rz25atpOjIy0)
if VMBC47Reoq4Q == roI3spqORKae(ES5oEprVxulp(b'\xaf\x06\x07\xa1\x8b\xdeK\xe6d\xb2'), chr(0b1010000 + 0o24) + chr(101) + chr(0b110001 + 0o62) + '\157' + '\x64' + '\145')(chr(0b1011011 + 0o32) + '\164' + '\146' + chr(0b10010 + 0o33) + chr(989 - 933)):
raise DdAS9CpUWli9(roI3spqORKae(ES5oEprVxulp(b'\x91\x0c\x17\xec\x95\xd1Y\xb2u\xb3\xbb\xabF\x1d\x90"\x00p\xb8'), chr(0b1100100) + chr(7142 - 7041) + '\x63' + chr(111) + chr(0b1011 + 0o131) + '\145')('\165' + chr(0b1110100) + chr(0b1111 + 0o127) + chr(45) + chr(2254 - 2198)))
if GCI4bClrnjBQ >= ACACUUFQsMpr or GCI4bClrnjBQ < nzTpIcepk0o8(chr(0b10111 + 0o31) + chr(0b1101111) + chr(48), 8):
raise DdAS9CpUWli9(roI3spqORKae(ES5oEprVxulp(b'\x89\x06\x14\xaf\x8a\xd5N\xb2u\xbf\xa4\xa3@\x06\x85v\x12|\xff\xd8\ni\x17\x9d\xe2\x8cRo\xaas\x99~-\xa5\xab\xa4\xe6\xbf\x1e \xb9C\x01\xa3\xc2\xd6C\xfch\xa5\xa1'), chr(0b1100100) + '\x65' + '\x63' + chr(111) + chr(0b1100100) + chr(0b1111 + 0o126))('\x75' + chr(116) + '\x66' + chr(0b100 + 0o51) + chr(0b10 + 0o66)))
roI3spqORKae(oprIvDIRQyCb, roI3spqORKae(ES5oEprVxulp(b'\xa8\x0f\x10\xa9\x92'), chr(0b1100100) + chr(101) + '\143' + chr(111) + '\144' + chr(0b11111 + 0o106))(chr(12490 - 12373) + chr(0b1110100) + chr(1723 - 1621) + chr(45) + chr(0b111000)))(n1CVRUxWAiaX)
GCI4bClrnjBQ += n1CVRUxWAiaX
|
dnanexus/dx-toolkit
|
src/python/dxpy/bindings/dxjob.py
|
DXJob._get_state
|
def _get_state(self, **kwargs):
'''
:returns: State of the remote object
:rtype: string
Queries the API server for the job's state.
Note that this function is shorthand for:
dxjob.describe(io=False, **kwargs)["state"]
'''
return self.describe(fields=dict(state=True), **kwargs)["state"]
|
python
|
def _get_state(self, **kwargs):
'''
:returns: State of the remote object
:rtype: string
Queries the API server for the job's state.
Note that this function is shorthand for:
dxjob.describe(io=False, **kwargs)["state"]
'''
return self.describe(fields=dict(state=True), **kwargs)["state"]
|
[
"def",
"_get_state",
"(",
"self",
",",
"*",
"*",
"kwargs",
")",
":",
"return",
"self",
".",
"describe",
"(",
"fields",
"=",
"dict",
"(",
"state",
"=",
"True",
")",
",",
"*",
"*",
"kwargs",
")",
"[",
"\"state\"",
"]"
] |
:returns: State of the remote object
:rtype: string
Queries the API server for the job's state.
Note that this function is shorthand for:
dxjob.describe(io=False, **kwargs)["state"]
|
[
":",
"returns",
":",
"State",
"of",
"the",
"remote",
"object",
":",
"rtype",
":",
"string"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxjob.py#L330-L343
|
train
|
Returns the state of the remote object in the format that is expected by the API server.
|
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5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RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__
ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b110000) + chr(785 - 674) + chr(0b110010) + '\065' + chr(0b1001 + 0o54), 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(0b110010) + chr(0b100011 + 0o22), 28355 - 28347), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(601 - 551) + chr(50) + chr(2467 - 2416), 55834 - 55826), nzTpIcepk0o8(chr(1635 - 1587) + '\x6f' + chr(55) + chr(0b110101), 51914 - 51906), nzTpIcepk0o8(chr(48) + '\157' + chr(51) + chr(54) + chr(54), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(49) + chr(572 - 521) + chr(520 - 472), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + '\x36' + chr(0b110101), 0b1000), nzTpIcepk0o8(chr(178 - 130) + '\157' + chr(567 - 517) + chr(2199 - 2145) + chr(0b110001), 22268 - 22260), nzTpIcepk0o8('\x30' + chr(0b1100100 + 0o13) + '\x33' + chr(51) + chr(302 - 247), 20482 - 20474), nzTpIcepk0o8(chr(48) + '\x6f' + chr(54) + chr(0b1011 + 0o52), 8), nzTpIcepk0o8('\060' + chr(0b1101111) + '\063' + chr(54) + '\067', ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(0b1101 + 0o44) + chr(0b110110) + chr(52), 19480 - 19472), nzTpIcepk0o8(chr(1362 - 1314) + chr(0b1101111) + chr(50) + chr(0b110110) + chr(0b110101), 39047 - 39039), nzTpIcepk0o8(chr(974 - 926) + '\157' + '\061' + chr(54) + '\x36', 52549 - 52541), nzTpIcepk0o8(chr(0b100000 + 0o20) + chr(0b110001 + 0o76) + chr(51) + '\061' + '\063', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110010) + chr(0b110011) + '\063', ord("\x08")), nzTpIcepk0o8(chr(1774 - 1726) + chr(5429 - 5318) + chr(0b110011) + chr(1262 - 1210) + chr(0b10100 + 0o34), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(0b10010 + 0o41) + '\067' + chr(52), 62982 - 62974), nzTpIcepk0o8('\060' + chr(0b1000110 + 0o51) + chr(0b111 + 0o53) + '\064' + chr(0b11010 + 0o35), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110001) + '\x33' + chr(0b10 + 0o61), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(124 - 13) + chr(0b110011) + '\066' + chr(1916 - 1866), 40920 - 40912), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110001) + chr(54) + chr(50), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + '\x32' + chr(54) + chr(0b101010 + 0o12), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(49) + chr(54) + '\x36', 8), nzTpIcepk0o8(chr(1146 - 1098) + chr(111) + '\063' + '\x36' + chr(53), 55735 - 55727), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(50) + chr(0b1100 + 0o51) + '\060', ord("\x08")), nzTpIcepk0o8('\x30' + chr(4501 - 4390) + chr(0b101000 + 0o12) + '\x36' + chr(48), 0b1000), nzTpIcepk0o8(chr(0b101110 + 0o2) + chr(111) + chr(0b110010) + chr(0b110111) + chr(0b100110 + 0o16), 63027 - 63019), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110101) + chr(52), 0o10), nzTpIcepk0o8(chr(1168 - 1120) + chr(0b1 + 0o156) + '\x31' + chr(1781 - 1732) + chr(54), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(11886 - 11775) + '\x33' + chr(0b110110) + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(49) + chr(55) + chr(0b101010 + 0o13), 0b1000), nzTpIcepk0o8(chr(0b100001 + 0o17) + '\x6f' + chr(2372 - 2323) + chr(0b100000 + 0o22) + chr(0b110011), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b10101 + 0o35) + '\061' + '\x35', 0b1000), nzTpIcepk0o8(chr(48) + chr(11052 - 10941) + '\062' + '\x37' + chr(0b110111), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + '\064' + chr(52), 9046 - 9038), nzTpIcepk0o8(chr(48) + chr(0b110 + 0o151) + '\x32' + chr(1456 - 1405), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(51) + '\x30' + '\x37', 0o10), nzTpIcepk0o8('\x30' + '\157' + '\x36' + chr(0b10011 + 0o43), 0o10), nzTpIcepk0o8(chr(1791 - 1743) + '\x6f' + '\x32' + chr(0b110001) + chr(0b11000 + 0o33), 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + chr(8181 - 8070) + '\x35' + '\060', 21016 - 21008)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x83'), '\144' + '\145' + '\143' + chr(0b1101111) + chr(100) + '\145')(chr(0b110101 + 0o100) + chr(0b1000001 + 0o63) + chr(0b1100110) + '\x2d' + chr(0b100010 + 0o26)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def BcgCV9MMKon3(hXMPsSrOQzbh, **q5n0sHDDTy90):
return roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xc9p\xe0^\x841W\xd4'), chr(0b1001001 + 0o33) + chr(312 - 211) + '\x63' + chr(0b1101111) + chr(0b1100100) + chr(0b1100101))('\165' + chr(0b1110100) + chr(0b1100110) + '\055' + chr(482 - 426)))(fields=znjnJWK64FDT(state=nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\061', 0o10)), **q5n0sHDDTy90)[roI3spqORKae(ES5oEprVxulp(b'\xdea\xf2I\x93'), chr(100) + '\145' + chr(8525 - 8426) + '\157' + chr(0b1011100 + 0o10) + chr(101))('\x75' + chr(0b11111 + 0o125) + chr(0b1010100 + 0o22) + chr(0b101101) + chr(0b111000))]
|
dnanexus/dx-toolkit
|
src/python/dxpy/cli/org.py
|
get_user_id
|
def get_user_id(user_id_or_username):
"""Gets the user ID based on the value `user_id_or_username` specified on
the command-line, being extra lenient and lowercasing the value in all
cases.
"""
user_id_or_username = user_id_or_username.lower()
if not user_id_or_username.startswith("user-"):
user_id = "user-" + user_id_or_username.lower()
else:
user_id = user_id_or_username
return user_id
|
python
|
def get_user_id(user_id_or_username):
"""Gets the user ID based on the value `user_id_or_username` specified on
the command-line, being extra lenient and lowercasing the value in all
cases.
"""
user_id_or_username = user_id_or_username.lower()
if not user_id_or_username.startswith("user-"):
user_id = "user-" + user_id_or_username.lower()
else:
user_id = user_id_or_username
return user_id
|
[
"def",
"get_user_id",
"(",
"user_id_or_username",
")",
":",
"user_id_or_username",
"=",
"user_id_or_username",
".",
"lower",
"(",
")",
"if",
"not",
"user_id_or_username",
".",
"startswith",
"(",
"\"user-\"",
")",
":",
"user_id",
"=",
"\"user-\"",
"+",
"user_id_or_username",
".",
"lower",
"(",
")",
"else",
":",
"user_id",
"=",
"user_id_or_username",
"return",
"user_id"
] |
Gets the user ID based on the value `user_id_or_username` specified on
the command-line, being extra lenient and lowercasing the value in all
cases.
|
[
"Gets",
"the",
"user",
"ID",
"based",
"on",
"the",
"value",
"user_id_or_username",
"specified",
"on",
"the",
"command",
"-",
"line",
"being",
"extra",
"lenient",
"and",
"lowercasing",
"the",
"value",
"in",
"all",
"cases",
"."
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/cli/org.py#L32-L42
|
train
|
Gets the user ID based on the value specified on the command - line.
|
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7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ozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__
ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b110000) + chr(10789 - 10678) + chr(49) + chr(606 - 553) + '\060', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b1011 + 0o54) + chr(1876 - 1826), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(241 - 192) + chr(0b101000 + 0o10) + '\064', 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(0b110011) + chr(1107 - 1053) + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(179 - 131) + '\157' + '\061' + '\065' + '\066', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1011011 + 0o24) + chr(54) + chr(2530 - 2479), 0b1000), nzTpIcepk0o8(chr(0b10011 + 0o35) + '\157' + chr(0b110010 + 0o1) + '\x37', ord("\x08")), nzTpIcepk0o8(chr(0b1000 + 0o50) + chr(0b1101111) + chr(51) + chr(53) + '\062', 0b1000), nzTpIcepk0o8(chr(0b100111 + 0o11) + chr(3466 - 3355) + chr(50) + chr(54) + chr(50), 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(0b11101 + 0o25) + chr(0b101100 + 0o6) + chr(0b110111), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(0b101100 + 0o6) + chr(963 - 915) + '\x31', 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(51) + '\060' + chr(0b110010), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(858 - 806) + chr(0b110011), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b0 + 0o157) + '\x31' + chr(0b110101) + chr(50), 0o10), nzTpIcepk0o8('\x30' + chr(0b11110 + 0o121) + chr(0b110101) + chr(0b110001), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\061' + chr(0b10000 + 0o47) + chr(0b11100 + 0o31), 0o10), nzTpIcepk0o8(chr(256 - 208) + '\157' + chr(49) + '\063', ord("\x08")), nzTpIcepk0o8(chr(843 - 795) + chr(10354 - 10243) + chr(49) + chr(1825 - 1776) + chr(0b110111), 0o10), nzTpIcepk0o8('\060' + '\157' + chr(0b1111 + 0o44) + chr(0b110100 + 0o0), 0b1000), nzTpIcepk0o8(chr(382 - 334) + '\x6f' + chr(0b11000 + 0o32) + chr(0b10100 + 0o42) + '\x30', 10798 - 10790), nzTpIcepk0o8(chr(214 - 166) + '\x6f' + chr(0b110001) + chr(0b101110 + 0o5) + '\x30', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(2408 - 2358) + chr(0b110001) + chr(113 - 58), 0b1000), nzTpIcepk0o8(chr(2006 - 1958) + chr(0b10011 + 0o134) + chr(49) + '\060' + chr(0b110011), 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110110) + chr(52), 0b1000), nzTpIcepk0o8(chr(0b101010 + 0o6) + chr(0b1101111) + '\x32' + chr(284 - 234) + '\065', 13889 - 13881), nzTpIcepk0o8('\x30' + chr(0b110010 + 0o75) + chr(374 - 323) + chr(50) + chr(0b110100), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(0b1 + 0o61) + chr(0b110111) + chr(0b10100 + 0o36), 31304 - 31296), nzTpIcepk0o8(chr(0b101010 + 0o6) + chr(111) + '\063' + chr(890 - 837), 0o10), nzTpIcepk0o8('\060' + chr(111) + '\x32' + chr(53) + chr(264 - 209), ord("\x08")), nzTpIcepk0o8(chr(0b101110 + 0o2) + '\157' + chr(2171 - 2121) + chr(380 - 328), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b100010 + 0o20) + chr(0b110101) + chr(0b110111), 8), nzTpIcepk0o8(chr(48) + chr(0b111101 + 0o62) + chr(49) + '\066' + chr(54), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101000 + 0o7) + '\x32' + chr(55) + chr(2325 - 2275), 8), nzTpIcepk0o8(chr(0b10100 + 0o34) + chr(0b111000 + 0o67) + chr(0b110010) + '\x32' + '\x34', 0o10), nzTpIcepk0o8(chr(0b11110 + 0o22) + chr(0b1101111) + chr(53) + chr(0b110011), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(0b110011) + chr(0b110100), 8), nzTpIcepk0o8(chr(1923 - 1875) + chr(0b1101111) + chr(0b110011) + '\065' + '\066', 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110100) + '\x31', 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(1374 - 1325) + chr(52) + '\061', 52230 - 52222), nzTpIcepk0o8(chr(1459 - 1411) + '\x6f' + chr(1972 - 1921) + chr(2236 - 2186) + chr(0b100 + 0o56), 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + chr(0b1011 + 0o144) + chr(0b110101) + chr(139 - 91), ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'F'), chr(0b1011111 + 0o5) + chr(0b101010 + 0o73) + chr(2172 - 2073) + chr(1845 - 1734) + '\144' + '\145')(chr(0b1110101) + chr(116) + chr(1066 - 964) + chr(45) + '\070') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def QznZjSqXdLoS(hnwQJpWBRULm):
hnwQJpWBRULm = hnwQJpWBRULm.Xn8ENWMZdIRt()
if not roI3spqORKae(hnwQJpWBRULm, roI3spqORKae(ES5oEprVxulp(b'\x1bN%\x83\x1a@h\x83\xc6\xff'), chr(0b1100100) + chr(0b1100101) + '\x63' + chr(0b1101111) + chr(100) + chr(3324 - 3223))('\x75' + '\x74' + chr(0b1000010 + 0o44) + chr(45) + chr(56)))(roI3spqORKae(ES5oEprVxulp(b'\x1dI!\x83C'), chr(0b1010001 + 0o23) + chr(0b1100101) + chr(99) + chr(10158 - 10047) + '\144' + '\x65')(chr(117) + chr(116) + chr(7833 - 7731) + chr(1401 - 1356) + '\x38')):
ixUxd0qav6Hd = roI3spqORKae(ES5oEprVxulp(b'\x1dI!\x83C'), chr(100) + chr(101) + chr(99) + chr(111) + chr(4635 - 4535) + chr(4796 - 4695))('\x75' + '\x74' + chr(102) + '\055' + '\070') + hnwQJpWBRULm.Xn8ENWMZdIRt()
else:
ixUxd0qav6Hd = hnwQJpWBRULm
return ixUxd0qav6Hd
|
dnanexus/dx-toolkit
|
src/python/dxpy/cli/org.py
|
get_org_invite_args
|
def get_org_invite_args(user_id, args):
"""
Used by:
- `dx new user`
- `dx add member`
PRECONDITION:
- If /org-x/invite is being called in conjunction with /user/new, then
`_validate_new_user_input()` has been called on `args`; otherwise,
the parser must perform all the basic input validation.
"""
org_invite_args = {"invitee": user_id}
org_invite_args["level"] = args.level
if "set_bill_to" in args and args.set_bill_to is True:
# /org-x/invite is called in conjunction with /user/new.
org_invite_args["allowBillableActivities"] = True
else:
org_invite_args["allowBillableActivities"] = args.allow_billable_activities
org_invite_args["appAccess"] = args.app_access
org_invite_args["projectAccess"] = args.project_access
org_invite_args["suppressEmailNotification"] = args.no_email
return org_invite_args
|
python
|
def get_org_invite_args(user_id, args):
"""
Used by:
- `dx new user`
- `dx add member`
PRECONDITION:
- If /org-x/invite is being called in conjunction with /user/new, then
`_validate_new_user_input()` has been called on `args`; otherwise,
the parser must perform all the basic input validation.
"""
org_invite_args = {"invitee": user_id}
org_invite_args["level"] = args.level
if "set_bill_to" in args and args.set_bill_to is True:
# /org-x/invite is called in conjunction with /user/new.
org_invite_args["allowBillableActivities"] = True
else:
org_invite_args["allowBillableActivities"] = args.allow_billable_activities
org_invite_args["appAccess"] = args.app_access
org_invite_args["projectAccess"] = args.project_access
org_invite_args["suppressEmailNotification"] = args.no_email
return org_invite_args
|
[
"def",
"get_org_invite_args",
"(",
"user_id",
",",
"args",
")",
":",
"org_invite_args",
"=",
"{",
"\"invitee\"",
":",
"user_id",
"}",
"org_invite_args",
"[",
"\"level\"",
"]",
"=",
"args",
".",
"level",
"if",
"\"set_bill_to\"",
"in",
"args",
"and",
"args",
".",
"set_bill_to",
"is",
"True",
":",
"# /org-x/invite is called in conjunction with /user/new.",
"org_invite_args",
"[",
"\"allowBillableActivities\"",
"]",
"=",
"True",
"else",
":",
"org_invite_args",
"[",
"\"allowBillableActivities\"",
"]",
"=",
"args",
".",
"allow_billable_activities",
"org_invite_args",
"[",
"\"appAccess\"",
"]",
"=",
"args",
".",
"app_access",
"org_invite_args",
"[",
"\"projectAccess\"",
"]",
"=",
"args",
".",
"project_access",
"org_invite_args",
"[",
"\"suppressEmailNotification\"",
"]",
"=",
"args",
".",
"no_email",
"return",
"org_invite_args"
] |
Used by:
- `dx new user`
- `dx add member`
PRECONDITION:
- If /org-x/invite is being called in conjunction with /user/new, then
`_validate_new_user_input()` has been called on `args`; otherwise,
the parser must perform all the basic input validation.
|
[
"Used",
"by",
":",
"-",
"dx",
"new",
"user",
"-",
"dx",
"add",
"member"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/cli/org.py#L45-L66
|
train
|
Returns the arguments to pass to the org - x invite command.
|
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,_1qUu0gKi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up,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__
ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(48) + chr(111) + '\063' + chr(0b100111 + 0o15) + chr(2803 - 2749), 0b1000), nzTpIcepk0o8(chr(511 - 463) + '\157' + chr(0b110011) + '\x32' + '\x30', 0o10), nzTpIcepk0o8('\060' + chr(0b1000011 + 0o54) + '\x33' + chr(262 - 214) + '\063', 62389 - 62381), nzTpIcepk0o8('\060' + '\x6f' + '\x32' + '\x30', 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(1499 - 1450) + '\x35' + chr(802 - 750), 11358 - 11350), nzTpIcepk0o8('\x30' + chr(0b1001110 + 0o41) + chr(0b110001) + chr(323 - 269) + '\062', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\063' + chr(0b100101 + 0o14) + chr(0b110001 + 0o4), ord("\x08")), nzTpIcepk0o8(chr(0b10111 + 0o31) + '\x6f' + chr(0b110011) + chr(2281 - 2229) + chr(0b110001), 61485 - 61477), nzTpIcepk0o8(chr(2287 - 2239) + chr(0b1101111) + chr(50) + '\x30' + '\060', 2404 - 2396), nzTpIcepk0o8(chr(0b100001 + 0o17) + chr(2596 - 2485) + chr(1681 - 1630) + chr(0b100000 + 0o20) + chr(977 - 927), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(836 - 786) + '\061' + '\063', 54680 - 54672), nzTpIcepk0o8(chr(0b100000 + 0o20) + chr(3704 - 3593) + '\x33' + '\x32' + chr(55), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + '\x32' + chr(0b11011 + 0o33) + chr(0b11010 + 0o33), 47503 - 47495), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(49) + chr(50) + chr(49), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b111101 + 0o62) + '\x33' + '\063' + chr(1512 - 1460), 0o10), nzTpIcepk0o8('\060' + '\x6f' + '\063' + '\063' + chr(2286 - 2231), ord("\x08")), nzTpIcepk0o8(chr(0b11011 + 0o25) + '\157' + chr(0b101110 + 0o3) + chr(417 - 367), ord("\x08")), nzTpIcepk0o8(chr(678 - 630) + '\x6f' + chr(49) + '\066' + chr(52), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b101101 + 0o102) + chr(661 - 611) + chr(0b110111) + chr(1216 - 1164), ord("\x08")), nzTpIcepk0o8(chr(997 - 949) + chr(6214 - 6103) + chr(0b101111 + 0o3) + chr(50) + '\060', 29400 - 29392), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b10111 + 0o36) + '\067', 0b1000), nzTpIcepk0o8(chr(1321 - 1273) + chr(2198 - 2087) + chr(51) + chr(49) + chr(0b110000), 51190 - 51182), nzTpIcepk0o8('\060' + chr(111) + '\062' + chr(211 - 160) + chr(1959 - 1907), ord("\x08")), nzTpIcepk0o8(chr(0b100010 + 0o16) + '\157' + chr(2074 - 2025) + chr(51) + chr(1669 - 1619), 0b1000), nzTpIcepk0o8(chr(203 - 155) + '\157' + chr(0b10110 + 0o36) + chr(55), 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(51) + chr(0b100010 + 0o21) + chr(763 - 710), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + '\062' + '\x30', 8), nzTpIcepk0o8(chr(0b1111 + 0o41) + chr(111) + chr(1080 - 1030) + '\062' + chr(0b110001), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1001101 + 0o42) + chr(49) + '\060' + chr(49), 0b1000), nzTpIcepk0o8('\060' + chr(3372 - 3261) + chr(0b110101), 0o10), nzTpIcepk0o8(chr(0b10100 + 0o34) + '\157' + chr(2369 - 2318) + chr(2225 - 2170) + chr(0b110110), 27888 - 27880), nzTpIcepk0o8(chr(1959 - 1911) + chr(111) + chr(791 - 742) + chr(0b110000) + chr(49), 8), nzTpIcepk0o8(chr(1538 - 1490) + '\x6f' + '\067' + chr(584 - 532), 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(0b110001) + chr(52) + '\067', 0b1000), nzTpIcepk0o8(chr(0b11001 + 0o27) + chr(111) + chr(0b110001) + chr(48) + chr(0b10100 + 0o37), 44946 - 44938), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110011) + chr(0b110001), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(151 - 100) + chr(0b110101) + chr(53), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110100) + chr(52), 4458 - 4450), nzTpIcepk0o8('\060' + chr(111) + chr(0b101001 + 0o11) + '\x31' + chr(499 - 445), 0o10), nzTpIcepk0o8('\060' + chr(111) + '\x31' + chr(50) + '\x32', 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(711 - 663) + chr(3149 - 3038) + '\065' + chr(0b110000), ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xc8'), chr(100) + chr(0b1001001 + 0o34) + chr(99) + chr(11169 - 11058) + chr(0b1101 + 0o127) + chr(101))(chr(117) + '\164' + chr(102) + chr(1837 - 1792) + chr(0b111000)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def jjrgTHzsseys(ixUxd0qav6Hd, eemPYp2vtTSr):
shpPUpMpPigg = {roI3spqORKae(ES5oEprVxulp(b'\x8f\xbe\xb5y\x18\x17\xa8'), chr(100) + chr(0b1100101) + chr(0b1100011) + chr(0b1101111) + chr(0b1100100) + chr(0b1100101))('\x75' + '\164' + chr(0b1100 + 0o132) + chr(0b101101) + chr(56)): ixUxd0qav6Hd}
shpPUpMpPigg[roI3spqORKae(ES5oEprVxulp(b'\x8a\xb5\xb5u\x00'), chr(0b1000010 + 0o42) + chr(0b1100101) + chr(0b1011111 + 0o4) + chr(958 - 847) + '\144' + chr(0b110010 + 0o63))('\165' + chr(9409 - 9293) + '\x66' + chr(0b10111 + 0o26) + '\x38')] = eemPYp2vtTSr.OHMe9lml54lU
if roI3spqORKae(ES5oEprVxulp(b'\x95\xb5\xb7O\x0e\x1b\xa1\x8d\xdf\xb6\xe4'), '\x64' + '\x65' + '\x63' + '\157' + chr(9831 - 9731) + '\145')('\165' + '\x74' + chr(102) + chr(0b11000 + 0o25) + chr(2539 - 2483)) in eemPYp2vtTSr and roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b'\x95\xb5\xb7O\x0e\x1b\xa1\x8d\xdf\xb6\xe4'), chr(1350 - 1250) + chr(0b1000000 + 0o45) + chr(0b1100011) + chr(8761 - 8650) + chr(4433 - 4333) + chr(7283 - 7182))(chr(0b1110101) + chr(8997 - 8881) + '\x66' + '\x2d' + '\070')) is nzTpIcepk0o8(chr(1713 - 1665) + chr(4470 - 4359) + chr(1296 - 1247), 0o10):
shpPUpMpPigg[roI3spqORKae(ES5oEprVxulp(b'\x87\xbc\xaf\x7f\x1b0\xa4\x8d\xec\xa3\xe9\xbb\xd0\x10\xbf\xabc\x02\xd5\xe4F\xad\xef'), chr(100) + '\x65' + chr(99) + chr(111) + chr(4444 - 4344) + chr(0b110100 + 0o61))('\x75' + chr(0b110110 + 0o76) + '\146' + chr(0b100011 + 0o12) + chr(3007 - 2951))] = nzTpIcepk0o8('\060' + chr(0b1101111) + chr(105 - 56), 8)
else:
shpPUpMpPigg[roI3spqORKae(ES5oEprVxulp(b'\x87\xbc\xaf\x7f\x1b0\xa4\x8d\xec\xa3\xe9\xbb\xd0\x10\xbf\xabc\x02\xd5\xe4F\xad\xef'), '\144' + chr(0b110100 + 0o61) + chr(99) + '\x6f' + chr(0b1100100) + chr(954 - 853))(chr(0b1110101) + '\x74' + chr(5006 - 4904) + chr(0b1011 + 0o42) + chr(2419 - 2363))] = eemPYp2vtTSr.allow_billable_activities
shpPUpMpPigg[roI3spqORKae(ES5oEprVxulp(b'\x87\xa0\xb3Q\x0f\x11\xa8\x92\xf3'), chr(0b1100100) + chr(0b100000 + 0o105) + '\x63' + '\157' + chr(2267 - 2167) + chr(0b101011 + 0o72))(chr(0b1110101) + '\164' + chr(102) + chr(45) + chr(0b111000))] = eemPYp2vtTSr.app_access
shpPUpMpPigg[roI3spqORKae(ES5oEprVxulp(b'\x96\xa2\xacz\t\x11\xb9\xa0\xe3\xa1\xee\xa4\xc6'), chr(0b1100100) + '\145' + chr(0b1100011) + '\x6f' + '\x64' + '\145')(chr(0b1110101) + chr(116) + chr(0b1100110) + chr(45) + chr(1029 - 973))] = eemPYp2vtTSr.project_access
shpPUpMpPigg[roI3spqORKae(ES5oEprVxulp(b'\x95\xa5\xb3`\x1e\x17\xbe\x92\xc5\xaf\xea\xbe\xd9\x1f\xb3\xabc\x12\xd5\xf3N\xbc\xf55I'), chr(100) + chr(0b1100101) + '\143' + chr(0b11100 + 0o123) + chr(100) + chr(101))('\x75' + '\164' + chr(0b101111 + 0o67) + chr(0b101101) + '\070')] = eemPYp2vtTSr.no_email
return shpPUpMpPigg
|
dnanexus/dx-toolkit
|
src/python/dxpy/scripts/dx.py
|
_get_user_new_args
|
def _get_user_new_args(args):
"""
PRECONDITION: `_validate_new_user_input()` has been called on `args`.
"""
user_new_args = {"username": args.username,
"email": args.email}
if args.first is not None:
user_new_args["first"] = args.first
if args.last is not None:
user_new_args["last"] = args.last
if args.middle is not None:
user_new_args["middle"] = args.middle
if args.token_duration is not None:
token_duration_ms = normalize_timedelta(args.token_duration)
if token_duration_ms > 30 * 24 * 60 * 60 * 1000:
raise ValueError("--token-duration must be 30 days or less")
else:
user_new_args["tokenDuration"] = token_duration_ms
if args.occupation is not None:
user_new_args["occupation"] = args.occupation
if args.set_bill_to is True:
user_new_args["billTo"] = args.org
return user_new_args
|
python
|
def _get_user_new_args(args):
"""
PRECONDITION: `_validate_new_user_input()` has been called on `args`.
"""
user_new_args = {"username": args.username,
"email": args.email}
if args.first is not None:
user_new_args["first"] = args.first
if args.last is not None:
user_new_args["last"] = args.last
if args.middle is not None:
user_new_args["middle"] = args.middle
if args.token_duration is not None:
token_duration_ms = normalize_timedelta(args.token_duration)
if token_duration_ms > 30 * 24 * 60 * 60 * 1000:
raise ValueError("--token-duration must be 30 days or less")
else:
user_new_args["tokenDuration"] = token_duration_ms
if args.occupation is not None:
user_new_args["occupation"] = args.occupation
if args.set_bill_to is True:
user_new_args["billTo"] = args.org
return user_new_args
|
[
"def",
"_get_user_new_args",
"(",
"args",
")",
":",
"user_new_args",
"=",
"{",
"\"username\"",
":",
"args",
".",
"username",
",",
"\"email\"",
":",
"args",
".",
"email",
"}",
"if",
"args",
".",
"first",
"is",
"not",
"None",
":",
"user_new_args",
"[",
"\"first\"",
"]",
"=",
"args",
".",
"first",
"if",
"args",
".",
"last",
"is",
"not",
"None",
":",
"user_new_args",
"[",
"\"last\"",
"]",
"=",
"args",
".",
"last",
"if",
"args",
".",
"middle",
"is",
"not",
"None",
":",
"user_new_args",
"[",
"\"middle\"",
"]",
"=",
"args",
".",
"middle",
"if",
"args",
".",
"token_duration",
"is",
"not",
"None",
":",
"token_duration_ms",
"=",
"normalize_timedelta",
"(",
"args",
".",
"token_duration",
")",
"if",
"token_duration_ms",
">",
"30",
"*",
"24",
"*",
"60",
"*",
"60",
"*",
"1000",
":",
"raise",
"ValueError",
"(",
"\"--token-duration must be 30 days or less\"",
")",
"else",
":",
"user_new_args",
"[",
"\"tokenDuration\"",
"]",
"=",
"token_duration_ms",
"if",
"args",
".",
"occupation",
"is",
"not",
"None",
":",
"user_new_args",
"[",
"\"occupation\"",
"]",
"=",
"args",
".",
"occupation",
"if",
"args",
".",
"set_bill_to",
"is",
"True",
":",
"user_new_args",
"[",
"\"billTo\"",
"]",
"=",
"args",
".",
"org",
"return",
"user_new_args"
] |
PRECONDITION: `_validate_new_user_input()` has been called on `args`.
|
[
"PRECONDITION",
":",
"_validate_new_user_input",
"()",
"has",
"been",
"called",
"on",
"args",
"."
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/scripts/dx.py#L1332-L1354
|
train
|
Get the user new 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,LqOf4dR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v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__
ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(52 - 4) + chr(0b1 + 0o156) + '\x31' + chr(0b100110 + 0o16) + '\060', ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + '\x33' + '\x31' + chr(0b110110), 8231 - 8223), nzTpIcepk0o8(chr(839 - 791) + chr(111) + chr(1041 - 992) + '\x31' + '\066', ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(0b110111) + chr(55), ord("\x08")), nzTpIcepk0o8(chr(0b101010 + 0o6) + chr(111) + chr(0b100101 + 0o15) + '\062' + '\x35', 55229 - 55221), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x32' + chr(0b110001) + chr(54), 0b1000), nzTpIcepk0o8('\060' + chr(0b110100 + 0o73) + '\062' + chr(50) + '\064', 0b1000), nzTpIcepk0o8('\x30' + '\157' + '\062' + chr(48) + chr(2702 - 2650), 45432 - 45424), nzTpIcepk0o8(chr(203 - 155) + chr(0b1010010 + 0o35) + chr(2231 - 2180) + chr(0b11101 + 0o27) + '\064', 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(471 - 420) + chr(0b110010) + chr(0b110100 + 0o2), 105 - 97), nzTpIcepk0o8(chr(0b10010 + 0o36) + chr(0b101011 + 0o104) + '\061' + chr(1289 - 1239) + chr(2096 - 2043), ord("\x08")), nzTpIcepk0o8(chr(0b111 + 0o51) + '\x6f' + '\x31' + chr(52) + '\x35', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x32' + '\061' + '\063', 0o10), nzTpIcepk0o8(chr(725 - 677) + chr(0b1101111) + chr(0b110111) + chr(0b110010 + 0o3), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110110) + chr(0b110010), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(11349 - 11238) + chr(0b110001) + '\060' + chr(1152 - 1102), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110011) + chr(1165 - 1117) + chr(0b10 + 0o63), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(2690 - 2579) + chr(0b100000 + 0o25) + chr(0b110010), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(763 - 713) + '\062' + '\067', 0b1000), nzTpIcepk0o8(chr(0b101101 + 0o3) + '\157' + chr(51) + chr(0b10100 + 0o36) + chr(0b10101 + 0o40), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + '\062' + '\x36' + chr(0b10100 + 0o35), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + '\063' + '\x34' + '\x33', 33401 - 33393), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110010) + chr(0b10110 + 0o40) + '\x33', 49583 - 49575), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\065', 35554 - 35546), nzTpIcepk0o8('\060' + '\157' + '\061' + '\063' + chr(0b1000 + 0o53), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + '\x31' + chr(50) + chr(0b110010), 627 - 619), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\063' + '\067' + '\064', 0o10), nzTpIcepk0o8(chr(0b11010 + 0o26) + chr(0b1101111) + '\061' + chr(48) + chr(55), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(0b101101 + 0o6) + chr(573 - 525) + chr(0b10 + 0o62), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b101001 + 0o106) + chr(0b11000 + 0o31) + '\062' + chr(0b110000), 22056 - 22048), nzTpIcepk0o8('\x30' + chr(8012 - 7901) + '\063' + chr(0b110 + 0o53) + chr(52), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\061' + chr(0b110100) + '\062', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(49) + '\x37' + '\x33', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110011) + chr(0b1 + 0o65) + chr(1695 - 1642), 32433 - 32425), nzTpIcepk0o8(chr(48) + chr(0b1101 + 0o142) + '\x32' + chr(1203 - 1152) + chr(0b110000), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1000 + 0o147) + '\x31' + chr(1656 - 1603) + '\x36', 0b1000), nzTpIcepk0o8(chr(1196 - 1148) + '\157' + chr(50) + chr(49) + '\x34', 0b1000), nzTpIcepk0o8(chr(2171 - 2123) + '\157' + '\x33' + chr(52), 0b1000), nzTpIcepk0o8(chr(154 - 106) + chr(0b1101111) + '\x31' + '\065' + '\066', 8), nzTpIcepk0o8(chr(48) + '\x6f' + chr(49) + '\x33' + chr(0b1000 + 0o57), 42847 - 42839)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(111) + '\065' + '\x30', ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'N'), chr(0b111001 + 0o53) + chr(6270 - 6169) + chr(9615 - 9516) + '\x6f' + '\144' + '\145')('\x75' + '\x74' + chr(0b1100110) + chr(45) + chr(56)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def tM_hohz_9FRQ(eemPYp2vtTSr):
ZH7KYK3CrTtc = {roI3spqORKae(ES5oEprVxulp(b'\x15\xbd+M\xfb\xef\xf9\xe1'), chr(0b1 + 0o143) + '\x65' + chr(8569 - 8470) + '\157' + chr(5810 - 5710) + chr(0b1100101))(chr(0b11101 + 0o130) + chr(0b1110100) + chr(102) + chr(0b101101) + '\x38'): eemPYp2vtTSr.fNAasCkJEM0V, roI3spqORKae(ES5oEprVxulp(b'\x05\xa3/V\xf9'), chr(0b1100100) + chr(0b1100101) + chr(0b1100011) + '\x6f' + chr(0b1100100) + '\x65')(chr(9575 - 9458) + '\x74' + '\x66' + chr(0b100000 + 0o15) + chr(56)): eemPYp2vtTSr.BhwKvDaXtiJh}
if roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b'.\xfez`\xcc\xe5\xa6\xb3\xaf\xe5\x18 '), chr(3860 - 3760) + chr(0b1100010 + 0o3) + chr(99) + chr(111) + chr(100) + '\x65')(chr(0b111101 + 0o70) + '\x74' + chr(0b1100110) + '\x2d' + chr(56))) is not None:
ZH7KYK3CrTtc[roI3spqORKae(ES5oEprVxulp(b'\x06\xa7<L\xe1'), chr(100) + chr(101) + chr(0b100101 + 0o76) + chr(0b1001100 + 0o43) + chr(0b1011111 + 0o5) + '\145')('\165' + chr(0b1110100) + '\x66' + chr(45) + '\070')] = eemPYp2vtTSr.N04_Yk27K3ME
if roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b'$\xf9\x19s\xcd\xc9\xf2\xb1\x97\xe7 .'), chr(7770 - 7670) + chr(1063 - 962) + chr(99) + '\x6f' + '\144' + '\145')(chr(4724 - 4607) + chr(0b1110100) + '\x66' + chr(0b11010 + 0o23) + chr(0b101010 + 0o16))) is not None:
ZH7KYK3CrTtc[roI3spqORKae(ES5oEprVxulp(b'\x0c\xaf=K'), chr(8098 - 7998) + '\x65' + '\x63' + chr(0b1010000 + 0o37) + chr(0b1100011 + 0o1) + '\x65')('\x75' + chr(0b1110100) + chr(0b1100110) + '\x2d' + chr(0b100 + 0o64))] = eemPYp2vtTSr.D7WLXGf5s1uK
if roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b'\r\xa7*[\xf9\xeb'), '\x64' + chr(9102 - 9001) + '\143' + chr(0b10000 + 0o137) + '\144' + chr(101))(chr(117) + chr(0b1110100) + chr(0b1100110) + chr(45) + chr(0b110011 + 0o5))) is not None:
ZH7KYK3CrTtc[roI3spqORKae(ES5oEprVxulp(b'\r\xa7*[\xf9\xeb'), '\x64' + chr(0b10 + 0o143) + chr(0b1011100 + 0o7) + chr(8600 - 8489) + chr(0b1100100) + chr(0b101000 + 0o75))('\x75' + chr(116) + '\x66' + chr(45) + chr(0b110011 + 0o5))] = eemPYp2vtTSr.middle
if roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b'\x14\xa1%Z\xfb\xd1\xf0\xf1\x96\xb7!\x0c\xe4S'), '\144' + chr(1484 - 1383) + chr(0b10011 + 0o120) + chr(3630 - 3519) + chr(100) + chr(0b1100101))(chr(2901 - 2784) + '\x74' + chr(0b101001 + 0o75) + chr(831 - 786) + chr(0b111000))) is not None:
i6oZGP6WbQ9o = LiXbgeKZtdT6(eemPYp2vtTSr.token_duration)
if i6oZGP6WbQ9o > nzTpIcepk0o8(chr(0b11001 + 0o27) + chr(0b1101111) + chr(0b1000 + 0o53) + '\066', 51049 - 51041) * nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b11010 + 0o31) + '\060', 0b1000) * nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\067' + chr(0b10011 + 0o41), 0o10) * nzTpIcepk0o8(chr(0b101001 + 0o7) + chr(0b10 + 0o155) + chr(0b110111) + chr(52), 8) * nzTpIcepk0o8(chr(0b10101 + 0o33) + chr(111) + chr(0b110001) + chr(55) + chr(0b11010 + 0o33) + chr(0b1101 + 0o43), 0o10):
raise WbNHlDKpyPtQ(roI3spqORKae(ES5oEprVxulp(b"M\xe3:P\xfe\xeb\xfa\xa9\x80\xa3'\x04\xffT],\xe5G\xe2\xa6\xc5\xc3\xd1`{a\xccg\xa01\xb5\x11[\x9a\xeaN\xe0y\x1d,"), chr(4277 - 4177) + chr(0b111010 + 0o53) + chr(9754 - 9655) + chr(0b1001011 + 0o44) + chr(0b100000 + 0o104) + chr(101))(chr(0b1110101) + chr(0b11010 + 0o132) + chr(0b111011 + 0o53) + chr(0b101101) + '\070'))
else:
ZH7KYK3CrTtc[roI3spqORKae(ES5oEprVxulp(b'\x14\xa1%Z\xfb\xca\xe1\xf6\x85\xa2<\n\xe5'), '\144' + chr(0b1100101) + '\x63' + chr(0b110000 + 0o77) + chr(0b1100100) + '\x65')(chr(3788 - 3671) + chr(116) + '\x66' + chr(0b11010 + 0o23) + '\070')] = i6oZGP6WbQ9o
if roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b'\x0f\xad-J\xe5\xef\xe0\xed\x8b\xb8'), chr(100) + chr(0b1100101) + chr(7376 - 7277) + '\x6f' + '\x64' + chr(101))('\x75' + '\164' + '\x66' + '\055' + '\x38')) is not None:
ZH7KYK3CrTtc[roI3spqORKae(ES5oEprVxulp(b'\x0f\xad-J\xe5\xef\xe0\xed\x8b\xb8'), chr(0b100100 + 0o100) + chr(0b1100101) + chr(0b1100011) + '\157' + '\144' + chr(6364 - 6263))(chr(117) + chr(8968 - 8852) + chr(5278 - 5176) + chr(0b1001 + 0o44) + chr(0b111000))] = eemPYp2vtTSr.occupation
if roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b'\x13\xab:`\xf7\xe7\xf8\xe8\xbb\xa2:'), chr(100) + chr(0b111110 + 0o47) + chr(1263 - 1164) + chr(0b110111 + 0o70) + chr(100) + chr(101))(chr(0b1011110 + 0o27) + '\x74' + chr(102) + chr(1687 - 1642) + chr(0b10010 + 0o46))) is nzTpIcepk0o8(chr(1059 - 1011) + chr(0b1000110 + 0o51) + chr(49), ord("\x08")):
ZH7KYK3CrTtc[roI3spqORKae(ES5oEprVxulp(b'\x02\xa7"S\xc1\xe1'), chr(0b1100100) + '\x65' + chr(2134 - 2035) + '\x6f' + chr(0b1001100 + 0o30) + chr(0b110111 + 0o56))(chr(117) + chr(1774 - 1658) + chr(102) + '\x2d' + chr(1162 - 1106))] = eemPYp2vtTSr.Qocwv3JOtJSf
return ZH7KYK3CrTtc
|
dnanexus/dx-toolkit
|
src/python/dxpy/scripts/dx.py
|
_get_input_for_run
|
def _get_input_for_run(args, executable, preset_inputs=None, input_name_prefix=None):
"""
Returns an input dictionary that can be passed to executable.run()
"""
# The following may throw if the executable is a workflow with no
# input spec available (because a stage is inaccessible)
exec_inputs = try_call(ExecutableInputs,
executable,
input_name_prefix=input_name_prefix,
active_region=args.region)
# Use input and system requirements from a cloned execution
if args.input_json is None and args.filename is None:
# --input-json and --input-json-file completely override input
# from the cloned job
exec_inputs.update(args.input_from_clone, strip_prefix=False)
# Update with inputs passed to the this function
if preset_inputs is not None:
exec_inputs.update(preset_inputs, strip_prefix=False)
# Update with inputs passed with -i, --input_json, --input_json_file, etc.
# If batch_tsv is set, do not prompt for missing arguments
require_all_inputs = (args.batch_tsv is None)
try_call(exec_inputs.update_from_args, args, require_all_inputs)
return exec_inputs.inputs
|
python
|
def _get_input_for_run(args, executable, preset_inputs=None, input_name_prefix=None):
"""
Returns an input dictionary that can be passed to executable.run()
"""
# The following may throw if the executable is a workflow with no
# input spec available (because a stage is inaccessible)
exec_inputs = try_call(ExecutableInputs,
executable,
input_name_prefix=input_name_prefix,
active_region=args.region)
# Use input and system requirements from a cloned execution
if args.input_json is None and args.filename is None:
# --input-json and --input-json-file completely override input
# from the cloned job
exec_inputs.update(args.input_from_clone, strip_prefix=False)
# Update with inputs passed to the this function
if preset_inputs is not None:
exec_inputs.update(preset_inputs, strip_prefix=False)
# Update with inputs passed with -i, --input_json, --input_json_file, etc.
# If batch_tsv is set, do not prompt for missing arguments
require_all_inputs = (args.batch_tsv is None)
try_call(exec_inputs.update_from_args, args, require_all_inputs)
return exec_inputs.inputs
|
[
"def",
"_get_input_for_run",
"(",
"args",
",",
"executable",
",",
"preset_inputs",
"=",
"None",
",",
"input_name_prefix",
"=",
"None",
")",
":",
"# The following may throw if the executable is a workflow with no",
"# input spec available (because a stage is inaccessible)",
"exec_inputs",
"=",
"try_call",
"(",
"ExecutableInputs",
",",
"executable",
",",
"input_name_prefix",
"=",
"input_name_prefix",
",",
"active_region",
"=",
"args",
".",
"region",
")",
"# Use input and system requirements from a cloned execution",
"if",
"args",
".",
"input_json",
"is",
"None",
"and",
"args",
".",
"filename",
"is",
"None",
":",
"# --input-json and --input-json-file completely override input",
"# from the cloned job",
"exec_inputs",
".",
"update",
"(",
"args",
".",
"input_from_clone",
",",
"strip_prefix",
"=",
"False",
")",
"# Update with inputs passed to the this function",
"if",
"preset_inputs",
"is",
"not",
"None",
":",
"exec_inputs",
".",
"update",
"(",
"preset_inputs",
",",
"strip_prefix",
"=",
"False",
")",
"# Update with inputs passed with -i, --input_json, --input_json_file, etc.",
"# If batch_tsv is set, do not prompt for missing arguments",
"require_all_inputs",
"=",
"(",
"args",
".",
"batch_tsv",
"is",
"None",
")",
"try_call",
"(",
"exec_inputs",
".",
"update_from_args",
",",
"args",
",",
"require_all_inputs",
")",
"return",
"exec_inputs",
".",
"inputs"
] |
Returns an input dictionary that can be passed to executable.run()
|
[
"Returns",
"an",
"input",
"dictionary",
"that",
"can",
"be",
"passed",
"to",
"executable",
".",
"run",
"()"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/scripts/dx.py#L2683-L2709
|
train
|
Returns an input dictionary that can be passed to the executable. run method.
|
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_89t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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(11803 - 11692) + chr(0b1111 + 0o42) + '\066' + '\067', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x31' + chr(1348 - 1293) + chr(49), 61771 - 61763), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(1425 - 1375) + chr(0b101100 + 0o4) + chr(799 - 749), 44271 - 44263), nzTpIcepk0o8('\060' + chr(0b1101111) + '\063' + chr(0b10110 + 0o32) + chr(52), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110001 + 0o0) + chr(480 - 427) + chr(52), ord("\x08")), nzTpIcepk0o8(chr(1474 - 1426) + '\x6f' + '\x33' + chr(0b10011 + 0o37) + chr(1125 - 1072), ord("\x08")), nzTpIcepk0o8('\060' + chr(7199 - 7088) + chr(49) + chr(0b100 + 0o55) + '\x34', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(6114 - 6003) + chr(49) + '\x37' + chr(0b110000), 24729 - 24721), nzTpIcepk0o8(chr(0b110000) + chr(8561 - 8450) + chr(50) + '\x33' + chr(2338 - 2283), 0o10), nzTpIcepk0o8(chr(0b10001 + 0o37) + '\x6f' + chr(0b110010) + chr(1138 - 1089) + chr(0b110011), 0o10), nzTpIcepk0o8(chr(0b11001 + 0o27) + '\157' + chr(0b1100 + 0o45) + chr(0b110100) + chr(0b110110 + 0o0), 0o10), nzTpIcepk0o8(chr(0b101111 + 0o1) + chr(0b100000 + 0o117) + chr(0b110011) + chr(49) + chr(2016 - 1968), 0o10), nzTpIcepk0o8('\060' + '\157' + chr(0b110011) + '\067' + chr(0b100000 + 0o20), 0b1000), nzTpIcepk0o8(chr(0b1010 + 0o46) + chr(0b1101111) + chr(1023 - 971) + chr(52), 16124 - 16116), nzTpIcepk0o8(chr(0b10111 + 0o31) + chr(0b1101111) + chr(0b100100 + 0o17) + '\062', 0b1000), nzTpIcepk0o8('\060' + '\157' + chr(0b110010) + chr(831 - 781) + chr(0b10001 + 0o43), 0o10), nzTpIcepk0o8(chr(665 - 617) + chr(111) + chr(0b101111 + 0o3) + chr(135 - 80) + chr(1309 - 1260), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(49) + chr(0b1100 + 0o52) + chr(48), 0b1000), nzTpIcepk0o8('\060' + chr(0b100100 + 0o113) + chr(0b110 + 0o55) + chr(2602 - 2548) + '\x30', 58077 - 58069), nzTpIcepk0o8(chr(345 - 297) + chr(0b1101111) + chr(2034 - 1983) + chr(0b100101 + 0o17) + '\x36', ord("\x08")), nzTpIcepk0o8(chr(374 - 326) + chr(111) + chr(0b100000 + 0o22) + chr(0b110001) + chr(2234 - 2183), 8), nzTpIcepk0o8(chr(1215 - 1167) + chr(672 - 561) + chr(49) + '\062' + chr(0b110111), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(49) + chr(0b110000) + chr(768 - 717), 0b1000), nzTpIcepk0o8('\060' + '\157' + chr(0b10101 + 0o34) + chr(0b1 + 0o62) + chr(0b110011), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110011) + chr(0b110000) + '\x32', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b10011 + 0o134) + chr(0b10110 + 0o33) + '\062' + chr(51), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(1802 - 1753) + chr(704 - 652) + chr(0b10001 + 0o43), 23821 - 23813), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(484 - 433) + chr(0b110000) + chr(1971 - 1916), 13516 - 13508), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110001) + chr(0b110111) + chr(0b11010 + 0o35), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110110) + chr(1652 - 1602), 17827 - 17819), nzTpIcepk0o8('\060' + chr(0b1000001 + 0o56) + '\x32' + chr(50) + chr(0b10001 + 0o44), 0b1000), nzTpIcepk0o8(chr(1117 - 1069) + '\157' + '\x31' + chr(0b110100 + 0o0) + '\062', 0o10), nzTpIcepk0o8('\060' + '\157' + chr(0b101110 + 0o5) + chr(0b101111 + 0o2) + chr(0b1010 + 0o47), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + '\x32' + chr(0b110101) + chr(0b100100 + 0o17), 11886 - 11878), nzTpIcepk0o8(chr(2070 - 2022) + chr(111) + '\x33' + '\x37' + chr(53), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\061' + '\x31' + '\x32', ord("\x08")), nzTpIcepk0o8(chr(1121 - 1073) + chr(0b1101111) + chr(0b1100 + 0o45) + chr(50) + chr(0b110011), 8), nzTpIcepk0o8(chr(1982 - 1934) + '\157' + '\063' + chr(50) + '\063', 56418 - 56410), nzTpIcepk0o8('\x30' + chr(111) + '\x37', 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + '\061' + '\064' + chr(0b110010), 8)][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + chr(0b101 + 0o152) + chr(1644 - 1591) + chr(0b110000), 13615 - 13607)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'Y'), chr(0b1100100) + '\x65' + chr(99) + '\157' + '\144' + chr(0b1100101))('\165' + chr(116) + chr(0b1011 + 0o133) + '\x2d' + '\x38') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def vWIwKrRDrZZk(eemPYp2vtTSr, VpBMt2VU6K6a, R_nXfVOP04_K=None, L6NnRef4dArX=None):
FKWCubsSiCkw = UkAnB0XpZ2SP(WgiZw_XT1NCj, VpBMt2VU6K6a, input_name_prefix=L6NnRef4dArX, active_region=eemPYp2vtTSr.SiTpDn8thAb3)
if roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b'\x1e\x17\xf2\xb1\x18\x8a&\x0b\xf0\xe5'), chr(1169 - 1069) + chr(0b101100 + 0o71) + '\x63' + chr(0b1101111) + '\x64' + chr(101))(chr(0b1110101) + chr(8703 - 8587) + chr(0b1100110) + chr(0b1100 + 0o41) + chr(56))) is None and roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b'1\x01\xd8\x8c\x18\x8d\t\x17\xf3\xd2\x15\x84'), chr(0b1100100) + chr(0b100 + 0o141) + chr(0b100 + 0o137) + chr(421 - 310) + chr(868 - 768) + chr(101))(chr(0b1110101) + chr(0b11100 + 0o130) + chr(0b1100110) + chr(0b1001 + 0o44) + chr(0b1101 + 0o53))) is None:
roI3spqORKae(FKWCubsSiCkw, roI3spqORKae(ES5oEprVxulp(b'=&\xe9\xf6%\x8c\x0eI\xfc\xee\x17\xa6'), chr(0b111110 + 0o46) + chr(101) + '\x63' + '\x6f' + chr(0b1011000 + 0o14) + '\x65')(chr(0b111 + 0o156) + chr(0b1110000 + 0o4) + chr(2465 - 2363) + chr(0b101101) + chr(0b100110 + 0o22)))(roI3spqORKae(eemPYp2vtTSr, roI3spqORKae(ES5oEprVxulp(b'\x1e\x17\xf2\xb1\x18\x8a*\n\xf0\xe69\xab\x94Kt\xf1'), chr(0b1100100) + chr(0b1100101) + chr(0b1100011) + chr(2382 - 2271) + chr(1853 - 1753) + chr(0b1100101))(chr(0b1110101) + chr(11611 - 11495) + chr(0b1100110) + '\055' + chr(56))), strip_prefix=nzTpIcepk0o8(chr(0b110000) + chr(10203 - 10092) + '\x30', 0o10))
if R_nXfVOP04_K is not None:
roI3spqORKae(FKWCubsSiCkw, roI3spqORKae(ES5oEprVxulp(b'=&\xe9\xf6%\x8c\x0eI\xfc\xee\x17\xa6'), chr(0b1100100) + chr(101) + chr(0b110001 + 0o62) + chr(0b1100010 + 0o15) + chr(0b1010100 + 0o20) + chr(101))('\x75' + '\x74' + chr(102) + '\x2d' + '\x38'))(R_nXfVOP04_K, strip_prefix=nzTpIcepk0o8('\x30' + chr(11853 - 11742) + chr(0b110000), 8))
oa1mbR6zKkS_ = eemPYp2vtTSr.batch_tsv is None
UkAnB0XpZ2SP(roI3spqORKae(FKWCubsSiCkw, roI3spqORKae(ES5oEprVxulp(b'\x02\t\xe6\xa5\x18\xb0\x13\x1e\xed\xe4\x0b\x97\x99V}\xe7'), chr(100) + chr(101) + chr(99) + chr(11270 - 11159) + chr(0b100101 + 0o77) + chr(0b100100 + 0o101))('\165' + chr(116) + chr(0b10001 + 0o125) + '\x2d' + '\070')), eemPYp2vtTSr, oa1mbR6zKkS_)
return roI3spqORKae(FKWCubsSiCkw, roI3spqORKae(ES5oEprVxulp(b'02\xee\x94\x07\xb8>O\xde\xfa7\x9c'), chr(0b1100100) + chr(0b1100101) + chr(0b1100011) + chr(111) + '\x64' + '\x65')('\x75' + chr(2369 - 2253) + chr(0b1100110) + chr(0b11000 + 0o25) + chr(0b111000)))
|
dnanexus/dx-toolkit
|
src/python/dxpy/scripts/dx.py
|
register_parser
|
def register_parser(parser, subparsers_action=None, categories=('other', ), add_help=True):
"""Attaches `parser` to the global ``parser_map``. If `add_help` is truthy,
then adds the helpstring of `parser` into the output of ``dx help...``, for
each category in `categories`.
:param subparsers_action: A special action object that is returned by
``ArgumentParser.add_subparsers(...)``, or None.
:type subparsers_action: argparse._SubParsersAction, or None.
"""
name = re.sub('^dx ', '', parser.prog)
if subparsers_action is None:
subparsers_action = subparsers
if isinstance(categories, basestring):
categories = (categories, )
parser_map[name] = parser
if add_help:
_help = subparsers_action._choices_actions[-1].help
parser_categories['all']['cmds'].append((name, _help))
for category in categories:
parser_categories[category]['cmds'].append((name, _help))
|
python
|
def register_parser(parser, subparsers_action=None, categories=('other', ), add_help=True):
"""Attaches `parser` to the global ``parser_map``. If `add_help` is truthy,
then adds the helpstring of `parser` into the output of ``dx help...``, for
each category in `categories`.
:param subparsers_action: A special action object that is returned by
``ArgumentParser.add_subparsers(...)``, or None.
:type subparsers_action: argparse._SubParsersAction, or None.
"""
name = re.sub('^dx ', '', parser.prog)
if subparsers_action is None:
subparsers_action = subparsers
if isinstance(categories, basestring):
categories = (categories, )
parser_map[name] = parser
if add_help:
_help = subparsers_action._choices_actions[-1].help
parser_categories['all']['cmds'].append((name, _help))
for category in categories:
parser_categories[category]['cmds'].append((name, _help))
|
[
"def",
"register_parser",
"(",
"parser",
",",
"subparsers_action",
"=",
"None",
",",
"categories",
"=",
"(",
"'other'",
",",
")",
",",
"add_help",
"=",
"True",
")",
":",
"name",
"=",
"re",
".",
"sub",
"(",
"'^dx '",
",",
"''",
",",
"parser",
".",
"prog",
")",
"if",
"subparsers_action",
"is",
"None",
":",
"subparsers_action",
"=",
"subparsers",
"if",
"isinstance",
"(",
"categories",
",",
"basestring",
")",
":",
"categories",
"=",
"(",
"categories",
",",
")",
"parser_map",
"[",
"name",
"]",
"=",
"parser",
"if",
"add_help",
":",
"_help",
"=",
"subparsers_action",
".",
"_choices_actions",
"[",
"-",
"1",
"]",
".",
"help",
"parser_categories",
"[",
"'all'",
"]",
"[",
"'cmds'",
"]",
".",
"append",
"(",
"(",
"name",
",",
"_help",
")",
")",
"for",
"category",
"in",
"categories",
":",
"parser_categories",
"[",
"category",
"]",
"[",
"'cmds'",
"]",
".",
"append",
"(",
"(",
"name",
",",
"_help",
")",
")"
] |
Attaches `parser` to the global ``parser_map``. If `add_help` is truthy,
then adds the helpstring of `parser` into the output of ``dx help...``, for
each category in `categories`.
:param subparsers_action: A special action object that is returned by
``ArgumentParser.add_subparsers(...)``, or None.
:type subparsers_action: argparse._SubParsersAction, or None.
|
[
"Attaches",
"parser",
"to",
"the",
"global",
"parser_map",
".",
"If",
"add_help",
"is",
"truthy",
"then",
"adds",
"the",
"helpstring",
"of",
"parser",
"into",
"the",
"output",
"of",
"dx",
"help",
"...",
"for",
"each",
"category",
"in",
"categories",
"."
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/scripts/dx.py#L3805-L3825
|
train
|
Register a parser with the global parser_map.
|
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(0b10011 + 0o35) + chr(111) + chr(50) + chr(0b110010) + chr(0b101011 + 0o5), 56623 - 56615), nzTpIcepk0o8(chr(48) + chr(0b1101 + 0o142) + chr(0b101110 + 0o7) + '\065', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(954 - 904) + chr(48) + '\064', 18435 - 18427), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b11101 + 0o26) + chr(0b110101) + chr(51), 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110001) + chr(88 - 33) + chr(0b110111), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b11010 + 0o27) + '\060' + chr(52), 57811 - 57803), nzTpIcepk0o8(chr(48) + chr(0b1001001 + 0o46) + chr(51) + chr(244 - 190), 19825 - 19817), nzTpIcepk0o8(chr(515 - 467) + chr(2679 - 2568) + chr(50) + chr(0b10011 + 0o43) + '\x34', 0o10), nzTpIcepk0o8('\060' + chr(0b1010010 + 0o35) + chr(0b1101 + 0o44) + '\063' + '\x31', 15664 - 15656), nzTpIcepk0o8(chr(48) + chr(11308 - 11197) + '\x32' + '\x34' + chr(0b110000 + 0o7), 26063 - 26055), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x35' + chr(0b110110), 52833 - 52825), nzTpIcepk0o8('\060' + chr(0b1101011 + 0o4) + chr(0b110011) + chr(0b110000 + 0o1) + chr(2223 - 2174), 15422 - 15414), nzTpIcepk0o8(chr(1346 - 1298) + '\x6f' + '\x33' + chr(54) + chr(0b110 + 0o56), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x33' + chr(52) + '\x35', 0o10), nzTpIcepk0o8(chr(1821 - 1773) + chr(4012 - 3901) + '\063' + chr(0b101110 + 0o6) + '\x31', 0b1000), nzTpIcepk0o8(chr(0b1111 + 0o41) + chr(0b1101111) + '\x33' + chr(50) + chr(0b110010 + 0o4), ord("\x08")), nzTpIcepk0o8(chr(1118 - 1070) + chr(0b1101111) + chr(0b110001) + chr(1682 - 1634) + chr(0b110001), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(0b100110 + 0o17) + chr(50), 0o10), nzTpIcepk0o8(chr(0b11001 + 0o27) + chr(0b1101111) + chr(0b101010 + 0o7) + chr(645 - 594) + chr(0b110001 + 0o5), 59462 - 59454), nzTpIcepk0o8(chr(0b10100 + 0o34) + chr(0b1011000 + 0o27) + '\x34' + chr(0b10010 + 0o45), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1011 + 0o144) + chr(52) + '\x33', 63907 - 63899), nzTpIcepk0o8('\060' + chr(4274 - 4163) + chr(0b110010) + '\061' + '\x34', 33185 - 33177), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(128 - 77) + '\x35', 59077 - 59069), nzTpIcepk0o8('\060' + chr(0b1101111) + '\065' + '\x35', 8), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b11010 + 0o32) + '\x31', 7408 - 7400), nzTpIcepk0o8(chr(0b10101 + 0o33) + chr(0b1001000 + 0o47) + '\061' + chr(0b110011) + '\x36', 8), nzTpIcepk0o8(chr(0b100111 + 0o11) + chr(111) + chr(0b1011 + 0o53), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b101 + 0o152) + chr(0b101100 + 0o12) + chr(0b110000), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + '\x31' + chr(1439 - 1390) + chr(0b110010), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\063' + chr(55) + chr(0b110 + 0o56), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x37' + chr(1132 - 1079), ord("\x08")), nzTpIcepk0o8(chr(2097 - 2049) + chr(0b1010 + 0o145) + chr(0b1101 + 0o52) + chr(0b110011), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x31' + chr(465 - 417) + chr(1898 - 1845), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b100111 + 0o12) + '\067' + '\x31', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b10111 + 0o34), 32021 - 32013), nzTpIcepk0o8('\x30' + '\x6f' + chr(1624 - 1573) + chr(0b110010) + chr(2198 - 2143), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b10111 + 0o130) + '\x33' + chr(0b110111) + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + '\061' + '\066' + '\060', 32763 - 32755), nzTpIcepk0o8('\060' + '\x6f' + chr(51) + chr(0b100100 + 0o17) + chr(1146 - 1092), 35004 - 34996), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110001) + chr(1860 - 1806) + '\061', 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x35' + chr(48), ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xbe'), '\144' + chr(101) + chr(0b1100011) + chr(111) + chr(8399 - 8299) + chr(0b1100101))(chr(117) + '\x74' + chr(102) + '\055' + '\070') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def wpgO3jwQtZ6k(ELQLGvoVr2Z_, WOHQAQab5Sb4=None, _oNDOruvfD2i=(roI3spqORKae(ES5oEprVxulp(b'\xffY\xec\x8e\r'), chr(0b11100 + 0o110) + '\x65' + '\143' + chr(111) + chr(100) + chr(0b1100101))(chr(117) + chr(116) + chr(0b1100110) + chr(45) + chr(818 - 762)),), c2O5JZsCutVr=nzTpIcepk0o8('\x30' + chr(0b1010010 + 0o35) + chr(787 - 738), ord("\x08"))):
SLVB2BPA_mIe = aoTc4YA2bs2R._zPndKq6xMgp(roI3spqORKae(ES5oEprVxulp(b'\xceI\xfc\xcb'), '\x64' + '\145' + '\x63' + chr(111) + chr(5748 - 5648) + chr(0b1100101))('\165' + chr(0b111100 + 0o70) + '\x66' + '\x2d' + chr(56)), roI3spqORKae(ES5oEprVxulp(b''), '\x64' + chr(5024 - 4923) + chr(6319 - 6220) + chr(111) + chr(0b111 + 0o135) + '\x65')(chr(0b1110101) + chr(116) + chr(102) + chr(45) + chr(0b111000)), ELQLGvoVr2Z_.prog)
if WOHQAQab5Sb4 is None:
WOHQAQab5Sb4 = M4XAxHq193PO
if suIjIS24Zkqw(_oNDOruvfD2i, JaQstSroDWOP):
_oNDOruvfD2i = (_oNDOruvfD2i,)
WPhY4OdFn5oh[SLVB2BPA_mIe] = ELQLGvoVr2Z_
if c2O5JZsCutVr:
W9xFK1JKOWuB = WOHQAQab5Sb4._choices_actions[-nzTpIcepk0o8(chr(0b0 + 0o60) + '\x6f' + chr(0b110001), 8)].Mq8h41ilRngb
roI3spqORKae(hsukfNknyrBX[roI3spqORKae(ES5oEprVxulp(b'\xf1A\xe8'), '\144' + chr(0b1001010 + 0o33) + '\x63' + chr(111) + chr(0b1100100) + chr(101))(chr(0b111101 + 0o70) + chr(11853 - 11737) + '\x66' + '\x2d' + chr(0b110100 + 0o4))][roI3spqORKae(ES5oEprVxulp(b'\xf3@\xe0\x98'), chr(1292 - 1192) + '\145' + chr(5917 - 5818) + '\157' + chr(0b1100100) + chr(8604 - 8503))(chr(117) + chr(6081 - 5965) + chr(0b1000010 + 0o44) + chr(0b101101) + '\x38')], roI3spqORKae(ES5oEprVxulp(b'\xd8y\xd7\xdf\x07#Y\xdb3\xc8{\xfc'), '\x64' + chr(0b1100101) + '\143' + chr(8491 - 8380) + '\x64' + '\x65')(chr(0b1101000 + 0o15) + chr(116) + chr(102) + chr(0b101101) + chr(0b111000)))((SLVB2BPA_mIe, W9xFK1JKOWuB))
for BSrC2NWCyUqG in _oNDOruvfD2i:
roI3spqORKae(hsukfNknyrBX[BSrC2NWCyUqG][roI3spqORKae(ES5oEprVxulp(b'\xf3@\xe0\x98'), '\144' + '\145' + chr(99) + chr(0b101 + 0o152) + chr(100) + chr(101))(chr(4013 - 3896) + '\164' + chr(1311 - 1209) + '\055' + '\070')], roI3spqORKae(ES5oEprVxulp(b'\xd8y\xd7\xdf\x07#Y\xdb3\xc8{\xfc'), chr(5246 - 5146) + chr(9755 - 9654) + chr(99) + chr(0b1101111) + chr(6621 - 6521) + chr(101))(chr(0b1110101) + chr(0b1110100) + chr(0b1100110) + chr(0b110 + 0o47) + chr(0b111000)))((SLVB2BPA_mIe, W9xFK1JKOWuB))
|
dnanexus/dx-toolkit
|
src/python/dxpy/__init__.py
|
_is_retryable_exception
|
def _is_retryable_exception(e):
"""Returns True if the exception is always safe to retry.
This is True if the client was never able to establish a connection
to the server (for example, name resolution failed or the connection
could otherwise not be initialized).
Conservatively, if we can't tell whether a network connection could
have been established, we return False.
"""
if isinstance(e, urllib3.exceptions.ProtocolError):
e = e.args[1]
if isinstance(e, (socket.gaierror, socket.herror)):
return True
if isinstance(e, socket.error) and e.errno in _RETRYABLE_SOCKET_ERRORS:
return True
if isinstance(e, urllib3.exceptions.NewConnectionError):
return True
return False
|
python
|
def _is_retryable_exception(e):
"""Returns True if the exception is always safe to retry.
This is True if the client was never able to establish a connection
to the server (for example, name resolution failed or the connection
could otherwise not be initialized).
Conservatively, if we can't tell whether a network connection could
have been established, we return False.
"""
if isinstance(e, urllib3.exceptions.ProtocolError):
e = e.args[1]
if isinstance(e, (socket.gaierror, socket.herror)):
return True
if isinstance(e, socket.error) and e.errno in _RETRYABLE_SOCKET_ERRORS:
return True
if isinstance(e, urllib3.exceptions.NewConnectionError):
return True
return False
|
[
"def",
"_is_retryable_exception",
"(",
"e",
")",
":",
"if",
"isinstance",
"(",
"e",
",",
"urllib3",
".",
"exceptions",
".",
"ProtocolError",
")",
":",
"e",
"=",
"e",
".",
"args",
"[",
"1",
"]",
"if",
"isinstance",
"(",
"e",
",",
"(",
"socket",
".",
"gaierror",
",",
"socket",
".",
"herror",
")",
")",
":",
"return",
"True",
"if",
"isinstance",
"(",
"e",
",",
"socket",
".",
"error",
")",
"and",
"e",
".",
"errno",
"in",
"_RETRYABLE_SOCKET_ERRORS",
":",
"return",
"True",
"if",
"isinstance",
"(",
"e",
",",
"urllib3",
".",
"exceptions",
".",
"NewConnectionError",
")",
":",
"return",
"True",
"return",
"False"
] |
Returns True if the exception is always safe to retry.
This is True if the client was never able to establish a connection
to the server (for example, name resolution failed or the connection
could otherwise not be initialized).
Conservatively, if we can't tell whether a network connection could
have been established, we return False.
|
[
"Returns",
"True",
"if",
"the",
"exception",
"is",
"always",
"safe",
"to",
"retry",
"."
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/__init__.py#L326-L345
|
train
|
Returns True if the exception is always safe to retry.
|
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJ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AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__
ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\060' + '\x6f' + '\062' + '\x37' + chr(53), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(0b10000 + 0o43) + chr(1343 - 1288) + '\x33', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b101101 + 0o102) + chr(59 - 8) + chr(2091 - 2043) + '\x37', 0o10), nzTpIcepk0o8('\x30' + chr(0b1110 + 0o141) + chr(0b10001 + 0o43) + chr(0b110000), 0b1000), nzTpIcepk0o8(chr(1975 - 1927) + '\157' + '\061' + '\x34' + '\061', ord("\x08")), nzTpIcepk0o8(chr(0b101 + 0o53) + chr(0b1101111) + chr(51) + '\x36', ord("\x08")), nzTpIcepk0o8(chr(0b11101 + 0o23) + chr(0b1101111) + chr(51) + chr(50) + '\064', ord("\x08")), nzTpIcepk0o8(chr(0b10101 + 0o33) + '\x6f' + '\x37', 64478 - 64470), nzTpIcepk0o8(chr(525 - 477) + '\x6f' + '\067' + chr(0b11100 + 0o32), ord("\x08")), nzTpIcepk0o8(chr(1285 - 1237) + chr(0b1101111) + chr(49) + chr(52), 0b1000), nzTpIcepk0o8(chr(0b110000 + 0o0) + chr(0b1101111) + chr(0b100111 + 0o14) + '\065' + chr(54), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b101110 + 0o101) + chr(0b110101), 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(523 - 474) + chr(1784 - 1735), 37183 - 37175), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(52) + '\064', 0o10), nzTpIcepk0o8(chr(1627 - 1579) + chr(0b1101111) + chr(0b110011) + chr(0b100000 + 0o23) + chr(0b110100), 11301 - 11293), nzTpIcepk0o8('\x30' + '\157' + chr(231 - 182) + '\x31' + chr(0b1001 + 0o55), ord("\x08")), nzTpIcepk0o8(chr(0b101011 + 0o5) + chr(111) + '\x31' + '\x30' + '\x30', 0b1000), nzTpIcepk0o8('\060' + chr(0b10000 + 0o137) + chr(54) + chr(0b110110), ord("\x08")), nzTpIcepk0o8(chr(2142 - 2094) + chr(9397 - 9286) + chr(0b11000 + 0o31) + chr(2135 - 2080) + chr(52), 0o10), nzTpIcepk0o8(chr(0b110 + 0o52) + chr(0b1101111) + '\x31' + '\x33', 34550 - 34542), nzTpIcepk0o8(chr(0b110000) + chr(6124 - 6013) + chr(0b110011) + chr(0b101111 + 0o5) + chr(48), 25796 - 25788), nzTpIcepk0o8(chr(0b11100 + 0o24) + chr(111) + '\063' + chr(2651 - 2598), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(1854 - 1805) + chr(55) + '\x35', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b10101 + 0o132) + '\x33' + chr(0b101 + 0o61) + '\060', 0b1000), nzTpIcepk0o8(chr(728 - 680) + chr(0b11 + 0o154) + '\062' + chr(0b101010 + 0o13) + chr(997 - 948), 0b1000), nzTpIcepk0o8(chr(486 - 438) + chr(111) + chr(0b101010 + 0o10) + chr(0b110011) + chr(55), 0b1000), nzTpIcepk0o8(chr(492 - 444) + chr(111) + chr(745 - 696) + chr(0b110101) + chr(0b100 + 0o56), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b10110 + 0o34) + chr(1461 - 1410) + chr(0b110100), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\061' + chr(2505 - 2453) + chr(1340 - 1288), 0b1000), nzTpIcepk0o8('\060' + chr(9645 - 9534) + chr(0b110010) + chr(0b1100 + 0o50) + '\x34', 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\063' + chr(54) + chr(0b1101 + 0o44), 22014 - 22006), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x37' + '\x35', 0o10), nzTpIcepk0o8('\x30' + '\x6f' + '\062' + chr(54) + '\x32', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(51), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1001000 + 0o47) + '\063' + chr(2012 - 1964) + chr(49), 0o10), nzTpIcepk0o8(chr(0b100011 + 0o15) + chr(0b101110 + 0o101) + chr(50) + '\066' + '\063', ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(1980 - 1928) + '\062', 0o10), nzTpIcepk0o8(chr(0b111 + 0o51) + '\157' + '\062' + chr(0b110000) + chr(681 - 631), 9985 - 9977), nzTpIcepk0o8(chr(48) + chr(0b1001101 + 0o42) + chr(1647 - 1598) + chr(1412 - 1363) + chr(0b10100 + 0o42), 8), nzTpIcepk0o8('\060' + chr(0b11101 + 0o122) + '\061' + '\066' + '\x33', ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(9757 - 9646) + chr(0b101111 + 0o6) + chr(0b110000), ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x93'), chr(100) + '\x65' + '\143' + '\157' + chr(100) + chr(4331 - 4230))(chr(117) + '\164' + chr(0b1100001 + 0o5) + '\055' + '\x38') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def oL8sLbGoUXl_(wgf0sgcu_xPL):
if suIjIS24Zkqw(wgf0sgcu_xPL, roI3spqORKae(a8QC9rYaAbSV.exceptions, roI3spqORKae(ES5oEprVxulp(b'\xed\x89\xa8T\x0e}\xbbk{~\x9cj{'), chr(0b1100100) + '\x65' + '\x63' + '\x6f' + chr(100) + '\145')('\165' + chr(0b1110100) + chr(0b1100110) + '\x2d' + chr(0b10100 + 0o44)))):
wgf0sgcu_xPL = wgf0sgcu_xPL.eemPYp2vtTSr[nzTpIcepk0o8(chr(0b11 + 0o55) + chr(111) + chr(49), 0o10)]
if suIjIS24Zkqw(wgf0sgcu_xPL, (roI3spqORKae(FpbAQ19FR4rX, roI3spqORKae(ES5oEprVxulp(b'\xda\x9a\xaeE\x13l\xbbu'), chr(3717 - 3617) + chr(0b1100101) + chr(4315 - 4216) + chr(0b110100 + 0o73) + chr(1019 - 919) + chr(0b101110 + 0o67))(chr(2746 - 2629) + chr(116) + chr(0b11101 + 0o111) + '\055' + chr(0b111000))), roI3spqORKae(FpbAQ19FR4rX, roI3spqORKae(ES5oEprVxulp(b'\xd5\x9e\xb5R\x0el'), '\x64' + chr(0b1100101) + chr(99) + chr(189 - 78) + '\144' + chr(0b111101 + 0o50))(chr(0b1110101) + '\164' + '\146' + '\x2d' + '\070')))):
return nzTpIcepk0o8('\x30' + chr(111) + chr(2375 - 2326), 8)
if suIjIS24Zkqw(wgf0sgcu_xPL, roI3spqORKae(FpbAQ19FR4rX, roI3spqORKae(ES5oEprVxulp(b'\xcc\x92\xf6W\x08n\x84QHI\xa5a'), chr(100) + '\145' + chr(0b1100011) + '\x6f' + chr(0b1100100) + chr(7948 - 7847))(chr(959 - 842) + chr(116) + chr(4469 - 4367) + chr(45) + chr(0b111000)))) and roI3spqORKae(wgf0sgcu_xPL, roI3spqORKae(ES5oEprVxulp(b'\xd8\x89\xb5N\x0e'), chr(100) + chr(0b1100101) + chr(0b1111 + 0o124) + chr(0b11001 + 0o126) + chr(0b1100100) + chr(7408 - 7307))('\165' + '\164' + chr(2913 - 2811) + chr(0b11110 + 0o17) + chr(506 - 450))) in fk5VSCStl7yM:
return nzTpIcepk0o8('\x30' + '\157' + chr(0b110001), 8)
if suIjIS24Zkqw(wgf0sgcu_xPL, roI3spqORKae(a8QC9rYaAbSV.exceptions, roI3spqORKae(ES5oEprVxulp(b'\xf3\x9e\xb0c\x0ep\xbab]x\x87jga\xae</D'), '\x64' + '\145' + chr(0b1100011) + chr(0b0 + 0o157) + '\144' + chr(0b0 + 0o145))(chr(387 - 270) + chr(0b1010111 + 0o35) + chr(0b1100110) + '\055' + '\x38'))):
return nzTpIcepk0o8(chr(831 - 783) + '\157' + chr(0b110001), 8)
return nzTpIcepk0o8('\060' + chr(0b1101111) + '\060', ord("\x08"))
|
dnanexus/dx-toolkit
|
src/python/dxpy/__init__.py
|
_extract_msg_from_last_exception
|
def _extract_msg_from_last_exception():
''' Extract a useful error message from the last thrown exception '''
last_exc_type, last_error, last_traceback = sys.exc_info()
if isinstance(last_error, exceptions.DXAPIError):
# Using the same code path as below would not
# produce a useful message when the error contains a
# 'details' hash (which would have a last line of
# '}')
return last_error.error_message()
else:
return traceback.format_exc().splitlines()[-1].strip()
|
python
|
def _extract_msg_from_last_exception():
''' Extract a useful error message from the last thrown exception '''
last_exc_type, last_error, last_traceback = sys.exc_info()
if isinstance(last_error, exceptions.DXAPIError):
# Using the same code path as below would not
# produce a useful message when the error contains a
# 'details' hash (which would have a last line of
# '}')
return last_error.error_message()
else:
return traceback.format_exc().splitlines()[-1].strip()
|
[
"def",
"_extract_msg_from_last_exception",
"(",
")",
":",
"last_exc_type",
",",
"last_error",
",",
"last_traceback",
"=",
"sys",
".",
"exc_info",
"(",
")",
"if",
"isinstance",
"(",
"last_error",
",",
"exceptions",
".",
"DXAPIError",
")",
":",
"# Using the same code path as below would not",
"# produce a useful message when the error contains a",
"# 'details' hash (which would have a last line of",
"# '}')",
"return",
"last_error",
".",
"error_message",
"(",
")",
"else",
":",
"return",
"traceback",
".",
"format_exc",
"(",
")",
".",
"splitlines",
"(",
")",
"[",
"-",
"1",
"]",
".",
"strip",
"(",
")"
] |
Extract a useful error message from the last thrown exception
|
[
"Extract",
"a",
"useful",
"error",
"message",
"from",
"the",
"last",
"thrown",
"exception"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/__init__.py#L347-L357
|
train
|
Extract a useful error message from the last thrown exception.
|
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(335 - 287) + '\x6f' + chr(0b11000 + 0o33) + '\x35', 0b1000), nzTpIcepk0o8(chr(0b10100 + 0o34) + chr(111) + chr(276 - 225) + '\x33' + chr(0b110111), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(9505 - 9394) + chr(1557 - 1506) + chr(976 - 926) + '\x34', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + '\x31' + '\066' + chr(0b100001 + 0o21), ord("\x08")), nzTpIcepk0o8(chr(352 - 304) + '\157' + chr(0b10010 + 0o43) + chr(50), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1100010 + 0o15) + chr(0b110001) + chr(0b10100 + 0o36) + chr(0b110011), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b111010 + 0o65) + chr(0b110001) + '\x31' + '\x32', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110011) + chr(0b10111 + 0o32) + chr(94 - 40), 0o10), nzTpIcepk0o8(chr(561 - 513) + chr(111) + chr(0b110011) + chr(1405 - 1350) + chr(54), 0o10), nzTpIcepk0o8('\060' + chr(8851 - 8740) + chr(51) + chr(2220 - 2171) + chr(0b11111 + 0o23), 2140 - 2132), nzTpIcepk0o8(chr(0b101000 + 0o10) + chr(9327 - 9216) + '\063' + chr(1599 - 1551) + chr(1397 - 1343), 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(0b11001 + 0o30) + chr(50) + '\x37', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b111100 + 0o63) + chr(49) + chr(0b11101 + 0o23) + '\x30', 40143 - 40135), nzTpIcepk0o8(chr(48) + '\x6f' + '\x31' + '\067', 47066 - 47058), nzTpIcepk0o8(chr(48) + chr(0b1110 + 0o141) + '\x32' + chr(0b100111 + 0o11) + '\061', 25994 - 25986), nzTpIcepk0o8('\060' + '\x6f' + chr(1009 - 959), 62219 - 62211), nzTpIcepk0o8(chr(2243 - 2195) + chr(0b100111 + 0o110) + chr(216 - 165) + chr(0b100011 + 0o22) + chr(0b11100 + 0o31), 40886 - 40878), nzTpIcepk0o8('\060' + chr(11516 - 11405) + '\x31' + '\x36' + chr(1633 - 1579), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + '\063' + chr(0b110 + 0o56) + chr(51), ord("\x08")), nzTpIcepk0o8(chr(0b11110 + 0o22) + chr(4678 - 4567) + chr(0b110010) + chr(54), 0o10), nzTpIcepk0o8(chr(0b100011 + 0o15) + chr(6258 - 6147) + chr(0b110010) + '\x36' + chr(1280 - 1227), 15563 - 15555), nzTpIcepk0o8('\060' + chr(0b101000 + 0o107) + '\x32' + chr(0b110111) + chr(0b1110 + 0o42), 17043 - 17035), nzTpIcepk0o8('\060' + chr(111) + '\062' + '\062' + '\x35', ord("\x08")), nzTpIcepk0o8(chr(0b1 + 0o57) + chr(2125 - 2014) + '\066' + '\x33', 20564 - 20556), nzTpIcepk0o8(chr(311 - 263) + chr(111) + chr(54) + chr(2238 - 2188), 20604 - 20596), nzTpIcepk0o8('\060' + '\157' + chr(0b110011) + chr(53) + '\x31', 64382 - 64374), nzTpIcepk0o8('\x30' + chr(111) + chr(0b10000 + 0o41) + chr(0b110000), 0b1000), nzTpIcepk0o8('\060' + chr(0b100101 + 0o112) + chr(0b110001) + chr(1578 - 1526) + chr(51), 1656 - 1648), nzTpIcepk0o8(chr(0b10100 + 0o34) + chr(0b1101111) + chr(51) + chr(583 - 532) + chr(52), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + '\x34' + chr(0b110111), 0o10), nzTpIcepk0o8(chr(1034 - 986) + chr(111) + '\x31' + chr(1441 - 1389), 0b1000), nzTpIcepk0o8(chr(874 - 826) + '\x6f' + '\066' + chr(0b110101 + 0o1), 0b1000), nzTpIcepk0o8(chr(0b11000 + 0o30) + '\x6f' + '\061' + chr(0b110110) + chr(0b110011), ord("\x08")), nzTpIcepk0o8(chr(0b101001 + 0o7) + chr(0b100001 + 0o116) + chr(0b110011) + chr(55) + chr(2364 - 2315), 53307 - 53299), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110010) + '\067' + chr(651 - 599), ord("\x08")), nzTpIcepk0o8(chr(0b11111 + 0o21) + '\157' + chr(1079 - 1028) + chr(0b110100) + chr(49), ord("\x08")), nzTpIcepk0o8(chr(1198 - 1150) + chr(0b1001110 + 0o41) + '\x35' + chr(0b11010 + 0o35), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(5379 - 5268) + chr(763 - 713) + chr(0b101111 + 0o3) + chr(49), ord("\x08")), nzTpIcepk0o8(chr(2166 - 2118) + chr(0b1101111) + '\063' + '\064' + '\x35', 0b1000), nzTpIcepk0o8('\060' + '\x6f' + '\062' + chr(55) + chr(0b110001), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(687 - 639) + '\157' + 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'3'), '\144' + '\145' + chr(0b1100011) + chr(0b1010111 + 0o30) + chr(0b101110 + 0o66) + chr(6730 - 6629))('\165' + '\164' + '\x66' + chr(548 - 503) + chr(1440 - 1384)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def WYjI8jwsVyOD():
(w42SwEt5s_sQ, p4p3oYqDY4_c, j3s8FpTGTyrt) = bpyfpu4kTbwL.qF3EF2C3zYWo()
if suIjIS24Zkqw(p4p3oYqDY4_c, roI3spqORKae(cXP3hZV0ntWo, roI3spqORKae(ES5oEprVxulp(b'Y\x87\x95"c\x168\xbc\x91\xb8'), chr(0b1100100) + chr(5759 - 5658) + '\143' + chr(111) + chr(100) + chr(0b1100101))(chr(117) + '\164' + chr(102) + chr(142 - 97) + '\x38'))):
return roI3spqORKae(p4p3oYqDY4_c, roI3spqORKae(ES5oEprVxulp(b'\x7f\x8c\xe34z\x1f!\x80\xb0\xa9\x95\x1e'), chr(8706 - 8606) + chr(0b1100101) + '\143' + chr(5649 - 5538) + chr(6943 - 6843) + '\145')(chr(0b1110101) + chr(5513 - 5397) + chr(102) + '\x2d' + chr(0b111000)))()
else:
return roI3spqORKae(N5iKB8EqlT7p.format_exc().splitlines()[-nzTpIcepk0o8(chr(0b10 + 0o56) + '\x6f' + chr(49), 0o10)], roI3spqORKae(ES5oEprVxulp(b'v\xbb\x9d6X0=\x94\xaa\x89\xb5b'), chr(0b1000 + 0o134) + chr(0b1100101) + chr(0b1100011) + chr(0b1010111 + 0o30) + chr(0b1100100) + chr(0b100000 + 0o105))('\x75' + '\x74' + '\146' + chr(0b10001 + 0o34) + chr(0b111000)))()
|
dnanexus/dx-toolkit
|
src/python/dxpy/__init__.py
|
_calculate_retry_delay
|
def _calculate_retry_delay(response, num_attempts):
'''
Returns the time in seconds that we should wait.
:param num_attempts: number of attempts that have been made to the
resource, including the most recent failed one
:type num_attempts: int
'''
if response is not None and response.status == 503 and 'retry-after' in response.headers:
try:
return int(response.headers['retry-after'])
except ValueError:
# In RFC 2616, retry-after can be formatted as absolute time
# instead of seconds to wait. We don't bother to parse that,
# but the apiserver doesn't generate such responses anyway.
pass
if num_attempts <= 1:
return 1
num_attempts = min(num_attempts, 7)
return randint(2 ** (num_attempts - 2), 2 ** (num_attempts - 1))
|
python
|
def _calculate_retry_delay(response, num_attempts):
'''
Returns the time in seconds that we should wait.
:param num_attempts: number of attempts that have been made to the
resource, including the most recent failed one
:type num_attempts: int
'''
if response is not None and response.status == 503 and 'retry-after' in response.headers:
try:
return int(response.headers['retry-after'])
except ValueError:
# In RFC 2616, retry-after can be formatted as absolute time
# instead of seconds to wait. We don't bother to parse that,
# but the apiserver doesn't generate such responses anyway.
pass
if num_attempts <= 1:
return 1
num_attempts = min(num_attempts, 7)
return randint(2 ** (num_attempts - 2), 2 ** (num_attempts - 1))
|
[
"def",
"_calculate_retry_delay",
"(",
"response",
",",
"num_attempts",
")",
":",
"if",
"response",
"is",
"not",
"None",
"and",
"response",
".",
"status",
"==",
"503",
"and",
"'retry-after'",
"in",
"response",
".",
"headers",
":",
"try",
":",
"return",
"int",
"(",
"response",
".",
"headers",
"[",
"'retry-after'",
"]",
")",
"except",
"ValueError",
":",
"# In RFC 2616, retry-after can be formatted as absolute time",
"# instead of seconds to wait. We don't bother to parse that,",
"# but the apiserver doesn't generate such responses anyway.",
"pass",
"if",
"num_attempts",
"<=",
"1",
":",
"return",
"1",
"num_attempts",
"=",
"min",
"(",
"num_attempts",
",",
"7",
")",
"return",
"randint",
"(",
"2",
"**",
"(",
"num_attempts",
"-",
"2",
")",
",",
"2",
"**",
"(",
"num_attempts",
"-",
"1",
")",
")"
] |
Returns the time in seconds that we should wait.
:param num_attempts: number of attempts that have been made to the
resource, including the most recent failed one
:type num_attempts: int
|
[
"Returns",
"the",
"time",
"in",
"seconds",
"that",
"we",
"should",
"wait",
"."
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/__init__.py#L360-L379
|
train
|
Calculate the delay that we should wait for a resource to be retried.
|
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_7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ZfwvC,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(580 - 532) + chr(0b11 + 0o154) + '\062' + chr(0b110111) + chr(0b110101), 4953 - 4945), nzTpIcepk0o8(chr(0b101001 + 0o7) + chr(0b1001000 + 0o47) + '\062' + '\x35' + chr(2411 - 2358), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(49) + chr(0b110100), 58979 - 58971), nzTpIcepk0o8(chr(48) + chr(4401 - 4290) + chr(1938 - 1889) + '\060', 43777 - 43769), nzTpIcepk0o8(chr(0b100001 + 0o17) + '\x6f' + chr(1265 - 1215) + chr(0b100 + 0o57) + chr(50), 0b1000), nzTpIcepk0o8('\060' + '\157' + chr(2549 - 2498) + '\065' + chr(0b110101), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(49) + '\x32' + chr(0b110010 + 0o1), 1697 - 1689), nzTpIcepk0o8(chr(460 - 412) + chr(0b1101111) + chr(50) + chr(2248 - 2195) + chr(1607 - 1553), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(214 - 159) + chr(0b110000), 42388 - 42380), nzTpIcepk0o8(chr(1194 - 1146) + chr(0b1101111) + '\x33' + chr(0b10010 + 0o45) + chr(55), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b110010 + 0o75) + chr(0b110010) + chr(77 - 26) + chr(1679 - 1624), 43631 - 43623), nzTpIcepk0o8('\060' + chr(111) + '\062' + chr(52) + chr(0b110011), 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(0b11000 + 0o33) + chr(0b11101 + 0o27) + '\064', 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\061' + chr(1635 - 1584) + chr(0b101000 + 0o11), 41760 - 41752), nzTpIcepk0o8(chr(584 - 536) + chr(111) + '\062' + '\x36' + chr(0b110101), 0b1000), nzTpIcepk0o8('\x30' + chr(0b110000 + 0o77) + chr(0b110001) + chr(0b11110 + 0o27) + chr(289 - 240), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + '\062' + chr(51) + chr(0b110111), 8), nzTpIcepk0o8('\x30' + chr(0b1101011 + 0o4) + '\x33' + '\x33' + '\x36', 0b1000), nzTpIcepk0o8('\x30' + chr(111) + '\x31' + '\064' + '\x37', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x32' + chr(0b110001) + chr(54), 0o10), nzTpIcepk0o8('\060' + '\157' + '\x31' + chr(0b110 + 0o61) + '\x33', 0b1000), nzTpIcepk0o8(chr(2058 - 2010) + chr(111) + chr(0b110001) + chr(50) + chr(0b10100 + 0o40), 41805 - 41797), nzTpIcepk0o8(chr(48) + chr(11114 - 11003) + chr(0b101011 + 0o6) + '\x37' + '\x31', ord("\x08")), nzTpIcepk0o8(chr(1465 - 1417) + '\x6f' + '\062' + '\066' + chr(0b110000), 8172 - 8164), nzTpIcepk0o8(chr(48) + chr(0b101001 + 0o106) + '\063' + chr(0b110111) + chr(0b10111 + 0o35), 0b1000), nzTpIcepk0o8(chr(0b101010 + 0o6) + chr(111) + chr(0b101000 + 0o11) + chr(552 - 502) + chr(872 - 821), 8), nzTpIcepk0o8('\060' + chr(111) + chr(0b1001 + 0o50) + '\x31' + '\061', 53798 - 53790), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(50) + '\x30' + chr(54), 0b1000), nzTpIcepk0o8(chr(271 - 223) + '\x6f' + chr(0b110110) + chr(48), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(49) + chr(0b110011) + chr(52), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b100 + 0o57) + chr(0b111 + 0o52) + chr(49), 21258 - 21250), nzTpIcepk0o8('\x30' + chr(0b10100 + 0o133) + chr(0b110111) + '\066', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(49) + '\x30' + chr(0b100110 + 0o20), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(7901 - 7790) + chr(1171 - 1121) + '\060' + chr(1713 - 1663), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b100000 + 0o117) + chr(50) + chr(0b110100) + '\064', 211 - 203), nzTpIcepk0o8('\x30' + '\x6f' + chr(2373 - 2322) + '\x30' + '\065', 42312 - 42304), nzTpIcepk0o8(chr(48) + '\157' + '\063' + chr(2100 - 2051) + chr(2165 - 2110), 0o10), nzTpIcepk0o8('\060' + chr(8224 - 8113) + chr(49) + '\061' + chr(0b110101), 56541 - 56533), nzTpIcepk0o8('\x30' + '\157' + chr(0b11100 + 0o27) + chr(1042 - 994), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b1 + 0o60) + chr(55) + '\062', 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + chr(7308 - 7197) + '\065' + chr(48), 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x93'), chr(0b1100100) + chr(3378 - 3277) + chr(99) + chr(0b1101111) + chr(0b110101 + 0o57) + chr(101))('\165' + chr(0b1110100) + chr(0b1010100 + 0o22) + chr(0b101101) + chr(1222 - 1166)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def NyHXoUZxJ01w(k2zzaFDtbuhL, dSNia86X894i):
if k2zzaFDtbuhL is not None and roI3spqORKae(k2zzaFDtbuhL, roI3spqORKae(ES5oEprVxulp(b'\xe9\xc4Na\xd7\x9e#\xe3h\xa7\xda\xef'), chr(0b1100100) + chr(9313 - 9212) + chr(99) + chr(0b1101111 + 0o0) + chr(100) + chr(0b10110 + 0o117))(chr(117) + '\x74' + chr(0b1100110) + '\x2d' + chr(342 - 286))) == nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b10 + 0o65) + chr(0b110010 + 0o4) + chr(0b100100 + 0o23), 0o10) and (roI3spqORKae(ES5oEprVxulp(b'\xcf\xc8xz\xe3\xc02\xc8L\x9a\xed'), '\144' + chr(0b1100101) + chr(0b101 + 0o136) + chr(0b1101111) + '\144' + chr(0b110110 + 0o57))(chr(7767 - 7650) + '\x74' + chr(102) + chr(0b1011 + 0o42) + chr(1194 - 1138)) in roI3spqORKae(k2zzaFDtbuhL, roI3spqORKae(ES5oEprVxulp(b'\xe8\xd4{g\xe8\xb75\xddT\xb7\xf5\xc0'), '\x64' + '\x65' + chr(0b1011001 + 0o12) + chr(0b0 + 0o157) + chr(0b1001111 + 0o25) + chr(6613 - 6512))('\x75' + chr(116) + chr(102) + '\055' + '\070'))):
try:
return nzTpIcepk0o8(roI3spqORKae(k2zzaFDtbuhL, roI3spqORKae(ES5oEprVxulp(b'\xe8\xd4{g\xe8\xb75\xddT\xb7\xf5\xc0'), chr(9867 - 9767) + chr(0b110100 + 0o61) + '\x63' + chr(111) + chr(100) + '\145')(chr(117) + chr(116) + chr(0b1100110) + '\055' + chr(56)))[roI3spqORKae(ES5oEprVxulp(b'\xcf\xc8xz\xe3\xc02\xc8L\x9a\xed'), chr(0b1100100) + chr(101) + '\x63' + chr(0b1101111) + '\144' + chr(0b1100101))(chr(0b10011 + 0o142) + chr(0b1110100) + chr(10384 - 10282) + chr(0b101101) + chr(1941 - 1885))])
except WbNHlDKpyPtQ:
pass
if dSNia86X894i <= nzTpIcepk0o8('\060' + chr(0b1101111) + chr(49), 59753 - 59745):
return nzTpIcepk0o8('\060' + '\x6f' + chr(2390 - 2341), 8)
dSNia86X894i = XURpmPuEWCNF(dSNia86X894i, nzTpIcepk0o8('\060' + chr(4963 - 4852) + chr(0b110111), 0b1000))
return _rnzDsvtGH5C(nzTpIcepk0o8(chr(0b101100 + 0o4) + chr(0b1101111) + chr(0b110010), 26470 - 26462) ** (dSNia86X894i - nzTpIcepk0o8(chr(0b1000 + 0o50) + chr(0b1100001 + 0o16) + chr(0b1100 + 0o46), 8)), nzTpIcepk0o8(chr(0b110000 + 0o0) + chr(0b110000 + 0o77) + chr(0b110010), 8) ** (dSNia86X894i - nzTpIcepk0o8('\x30' + chr(0b11001 + 0o126) + chr(0b110001), 8)))
|
dnanexus/dx-toolkit
|
src/python/dxpy/__init__.py
|
DXHTTPRequest
|
def DXHTTPRequest(resource, data, method='POST', headers=None, auth=True,
timeout=DEFAULT_TIMEOUT,
use_compression=None, jsonify_data=True, want_full_response=False,
decode_response_body=True, prepend_srv=True, session_handler=None,
max_retries=DEFAULT_RETRIES, always_retry=False,
**kwargs):
'''
:param resource: API server route, e.g. "/record/new". If *prepend_srv* is False, a fully qualified URL is expected. If this argument is a callable, it will be called just before each request attempt, and expected to return a tuple (URL, headers). Headers returned by the callback are updated with *headers* (including headers set by this method).
:type resource: string
:param data: Content of the request body
:type data: list or dict, if *jsonify_data* is True; or string or file-like object, otherwise
:param headers: Names and values of HTTP headers to submit with the request (in addition to those needed for authentication, compression, or other options specified with the call).
:type headers: dict
:param auth:
Controls the ``Authentication`` header or other means of authentication supplied with the request. If ``True``
(default), a token is obtained from the ``DX_SECURITY_CONTEXT``. If the value evaluates to false, no action is
taken to prepare authentication for the request. Otherwise, the value is assumed to be callable, and called with
three arguments (method, url, headers) and expected to prepare the authentication headers by reference.
:type auth: tuple, object, True (default), or None
:param timeout: HTTP request timeout, in seconds
:type timeout: float
:param config: *config* value to pass through to :meth:`requests.request`
:type config: dict
:param use_compression: Deprecated
:type use_compression: string or None
:param jsonify_data: If True, *data* is converted from a Python list or dict to a JSON string
:type jsonify_data: boolean
:param want_full_response: If True, the full :class:`requests.Response` object is returned (otherwise, only the content of the response body is returned)
:type want_full_response: boolean
:param decode_response_body: If True (and *want_full_response* is False), the response body is decoded and, if it is a JSON string, deserialized. Otherwise, the response body is uncompressed if transport compression is on, and returned raw.
:type decode_response_body: boolean
:param prepend_srv: If True, prepends the API server location to the URL
:type prepend_srv: boolean
:param session_handler: Deprecated.
:param max_retries: Maximum number of retries to perform for a request. A "failed" request is retried if any of the following is true:
- A response is received from the server, and the content length received does not match the "Content-Length" header.
- A response is received from the server, and the response has an HTTP status code in 5xx range.
- A response is received from the server, the "Content-Length" header is not set, and the response JSON cannot be parsed.
- No response is received from the server, and either *always_retry* is True or the request *method* is "GET".
:type max_retries: int
:param always_retry: If True, indicates that it is safe to retry a request on failure
- Note: It is not guaranteed that the request will *always* be retried on failure; rather, this is an indication to the function that it would be safe to do so.
:type always_retry: boolean
:returns: Response from API server in the format indicated by *want_full_response* and *decode_response_body*.
:raises: :exc:`exceptions.DXAPIError` or a subclass if the server returned a non-200 status code; :exc:`requests.exceptions.HTTPError` if an invalid response was received from the server; or :exc:`requests.exceptions.ConnectionError` if a connection cannot be established.
Wrapper around :meth:`requests.request()` that makes an HTTP
request, inserting authentication headers and (by default)
converting *data* to JSON.
.. note:: Bindings methods that make API calls make the underlying
HTTP request(s) using :func:`DXHTTPRequest`, and most of them
will pass any unrecognized keyword arguments you have supplied
through to :func:`DXHTTPRequest`.
'''
if headers is None:
headers = {}
global _UPGRADE_NOTIFY
seq_num = _get_sequence_number()
url = APISERVER + resource if prepend_srv else resource
method = method.upper() # Convert method name to uppercase, to ease string comparisons later
if auth is True:
auth = AUTH_HELPER
if auth:
auth(_RequestForAuth(method, url, headers))
pool_args = {arg: kwargs.pop(arg, None) for arg in ("verify", "cert_file", "key_file")}
test_retry = kwargs.pop("_test_retry_http_request", False)
# data is a sequence/buffer or a dict
# serialized_data is a sequence/buffer
if jsonify_data:
serialized_data = json.dumps(data)
if 'Content-Type' not in headers and method == 'POST':
headers['Content-Type'] = 'application/json'
else:
serialized_data = data
# If the input is a buffer, its data gets consumed by
# requests.request (moving the read position). Record the initial
# buffer position so that we can return to it if the request fails
# and needs to be retried.
rewind_input_buffer_offset = None
if hasattr(data, 'seek') and hasattr(data, 'tell'):
rewind_input_buffer_offset = data.tell()
# Maintain two separate counters for the number of tries...
try_index = 0 # excluding 503 errors. The number of tries as given here
# cannot exceed (max_retries + 1).
try_index_including_503 = 0 # including 503 errors. This number is used to
# do exponential backoff.
retried_responses = []
_url = None
while True:
success, time_started = True, None
response = None
req_id = None
try:
time_started = time.time()
_method, _url, _headers = _process_method_url_headers(method, url, headers)
_debug_print_request(_DEBUG, seq_num, time_started, _method, _url, _headers, jsonify_data, data)
body = _maybe_truncate_request(_url, serialized_data)
# throws BadStatusLine if the server returns nothing
try:
pool_manager = _get_pool_manager(**pool_args)
_headers['User-Agent'] = USER_AGENT
_headers['DNAnexus-API'] = API_VERSION
# Converted Unicode headers to ASCII and throw an error if not possible
def ensure_ascii(i):
if not isinstance(i, bytes):
i = i.encode('ascii')
return i
_headers = {ensure_ascii(k): ensure_ascii(v) for k, v in _headers.items()}
if USING_PYTHON2:
encoded_url = _url
else:
# This is needed for python 3 urllib
_headers.pop(b'host', None)
_headers.pop(b'content-length', None)
# The libraries downstream (http client) require elimination of non-ascii
# chars from URL.
# We check if the URL contains non-ascii characters to see if we need to
# quote it. It is important not to always quote the path (here: parts[2])
# since it might contain elements (e.g. HMAC for api proxy) containing
# special characters that should not be quoted.
try:
ensure_ascii(_url)
encoded_url = _url
except UnicodeEncodeError:
import urllib.parse
parts = list(urllib.parse.urlparse(_url))
parts[2] = urllib.parse.quote(parts[2])
encoded_url = urllib.parse.urlunparse(parts)
response = pool_manager.request(_method, encoded_url, headers=_headers, body=body,
timeout=timeout, retries=False, **kwargs)
except urllib3.exceptions.ClosedPoolError:
# If another thread closed the pool before the request was
# started, will throw ClosedPoolError
raise exceptions.UrllibInternalError("ClosedPoolError")
_raise_error_for_testing(try_index, method)
req_id = response.headers.get("x-request-id", "unavailable")
if (_UPGRADE_NOTIFY
and response.headers.get('x-upgrade-info', '').startswith('A recommended update is available')
and '_ARGCOMPLETE' not in os.environ):
logger.info(response.headers['x-upgrade-info'])
try:
with file(_UPGRADE_NOTIFY, 'a'):
os.utime(_UPGRADE_NOTIFY, None)
except:
pass
_UPGRADE_NOTIFY = False
# If an HTTP code that is not in the 200 series is received and the content is JSON, parse it and throw the
# appropriate error. Otherwise, raise the usual exception.
if response.status // 100 != 2:
# response.headers key lookup is case-insensitive
if response.headers.get('content-type', '').startswith('application/json'):
try:
content = response.data.decode('utf-8')
except AttributeError:
raise exceptions.UrllibInternalError("Content is none", response.status)
try:
content = json.loads(content)
except ValueError:
# The JSON is not parsable, but we should be able to retry.
raise exceptions.BadJSONInReply("Invalid JSON received from server", response.status)
try:
error_class = getattr(exceptions, content["error"]["type"], exceptions.DXAPIError)
except (KeyError, AttributeError, TypeError):
raise exceptions.HTTPError(response.status, content)
raise error_class(content, response.status, time_started, req_id)
else:
try:
content = response.data.decode('utf-8')
except AttributeError:
raise exceptions.UrllibInternalError("Content is none", response.status)
raise exceptions.HTTPError("{} {} [Time={} RequestID={}]\n{}".format(response.status,
response.reason,
time_started,
req_id,
content))
if want_full_response:
return response
else:
if 'content-length' in response.headers:
if int(response.headers['content-length']) != len(response.data):
range_str = (' (%s)' % (headers['Range'],)) if 'Range' in headers else ''
raise exceptions.ContentLengthError(
"Received response with content-length header set to %s but content length is %d%s. " +
"[Time=%f RequestID=%s]" %
(response.headers['content-length'], len(response.data), range_str, time_started, req_id)
)
content = response.data
response_was_json = False
if decode_response_body:
content = content.decode('utf-8')
if response.headers.get('content-type', '').startswith('application/json'):
try:
content = json.loads(content)
except ValueError:
# The JSON is not parsable, but we should be able to retry.
raise exceptions.BadJSONInReply("Invalid JSON received from server", response.status)
else:
response_was_json = True
req_id = response.headers.get('x-request-id') or "--"
_debug_print_response(_DEBUG, seq_num, time_started, req_id, response.status, response_was_json,
_method, _url, content)
if test_retry:
retried_responses.append(content)
if len(retried_responses) == 1:
continue
else:
_set_retry_response(retried_responses[0])
return retried_responses[1]
return content
raise AssertionError('Should never reach this line: expected a result to have been returned by now')
except Exception as e:
# Avoid reusing connections in the pool, since they may be
# in an inconsistent state (observed as "ResponseNotReady"
# errors).
_get_pool_manager(**pool_args).clear()
success = False
exception_msg = _extract_msg_from_last_exception()
if isinstance(e, _expected_exceptions):
# Total number of allowed tries is the initial try PLUS
# up to (max_retries) subsequent retries.
total_allowed_tries = max_retries + 1
ok_to_retry = False
is_retryable = always_retry or (method == 'GET') or _is_retryable_exception(e)
# Because try_index is not incremented until we escape
# this iteration of the loop, try_index is equal to the
# number of tries that have failed so far, minus one.
if try_index + 1 < total_allowed_tries:
# BadStatusLine --- server did not return anything
# BadJSONInReply --- server returned JSON that didn't parse properly
if (response is None
or isinstance(e, (exceptions.ContentLengthError, BadStatusLine, exceptions.BadJSONInReply,
urllib3.exceptions.ProtocolError, exceptions.UrllibInternalError))):
ok_to_retry = is_retryable
else:
ok_to_retry = 500 <= response.status < 600
# The server has closed the connection prematurely
if (response is not None
and response.status == 400 and is_retryable and method == 'PUT'
and isinstance(e, requests.exceptions.HTTPError)):
if '<Code>RequestTimeout</Code>' in exception_msg:
logger.info("Retrying 400 HTTP error, due to slow data transfer. " +
"Request Time=%f Request ID=%s", time_started, req_id)
else:
logger.info("400 HTTP error, of unknown origin, exception_msg=[%s]. " +
"Request Time=%f Request ID=%s", exception_msg, time_started, req_id)
ok_to_retry = True
# Unprocessable entity, request has semantical errors
if response is not None and response.status == 422:
ok_to_retry = False
if ok_to_retry:
if rewind_input_buffer_offset is not None:
data.seek(rewind_input_buffer_offset)
delay = _calculate_retry_delay(response, try_index_including_503 + 1)
range_str = (' (range=%s)' % (headers['Range'],)) if 'Range' in headers else ''
if response is not None and response.status == 503:
waiting_msg = 'Waiting %d seconds before retry...' % (delay,)
else:
waiting_msg = 'Waiting %d seconds before retry %d of %d...' % (
delay, try_index + 1, max_retries)
logger.warning("[%s] %s %s: %s. %s %s",
time.ctime(), method, _url, exception_msg, waiting_msg, range_str)
time.sleep(delay)
try_index_including_503 += 1
if response is None or response.status != 503:
try_index += 1
continue
# All retries have been exhausted OR the error is deemed not
# retryable. Print the latest error and propagate it back to the caller.
if not isinstance(e, exceptions.DXAPIError):
logger.error("[%s] %s %s: %s.", time.ctime(), method, _url, exception_msg)
if isinstance(e, urllib3.exceptions.ProtocolError) and \
'Connection reset by peer' in exception_msg:
# If the protocol error is 'connection reset by peer', most likely it is an
# error in the ssl handshake due to unsupported TLS protocol.
_test_tls_version()
# Retries have been exhausted, and we are unable to get a full
# buffer from the data source. Raise a special exception.
if isinstance(e, urllib3.exceptions.ProtocolError) and \
'Connection broken: IncompleteRead' in exception_msg:
raise exceptions.DXIncompleteReadsError(exception_msg)
raise
finally:
if success and try_index > 0:
logger.info("[%s] %s %s: Recovered after %d retries", time.ctime(), method, _url, try_index)
raise AssertionError('Should never reach this line: should have attempted a retry or reraised by now')
raise AssertionError('Should never reach this line: should never break out of loop')
|
python
|
def DXHTTPRequest(resource, data, method='POST', headers=None, auth=True,
timeout=DEFAULT_TIMEOUT,
use_compression=None, jsonify_data=True, want_full_response=False,
decode_response_body=True, prepend_srv=True, session_handler=None,
max_retries=DEFAULT_RETRIES, always_retry=False,
**kwargs):
'''
:param resource: API server route, e.g. "/record/new". If *prepend_srv* is False, a fully qualified URL is expected. If this argument is a callable, it will be called just before each request attempt, and expected to return a tuple (URL, headers). Headers returned by the callback are updated with *headers* (including headers set by this method).
:type resource: string
:param data: Content of the request body
:type data: list or dict, if *jsonify_data* is True; or string or file-like object, otherwise
:param headers: Names and values of HTTP headers to submit with the request (in addition to those needed for authentication, compression, or other options specified with the call).
:type headers: dict
:param auth:
Controls the ``Authentication`` header or other means of authentication supplied with the request. If ``True``
(default), a token is obtained from the ``DX_SECURITY_CONTEXT``. If the value evaluates to false, no action is
taken to prepare authentication for the request. Otherwise, the value is assumed to be callable, and called with
three arguments (method, url, headers) and expected to prepare the authentication headers by reference.
:type auth: tuple, object, True (default), or None
:param timeout: HTTP request timeout, in seconds
:type timeout: float
:param config: *config* value to pass through to :meth:`requests.request`
:type config: dict
:param use_compression: Deprecated
:type use_compression: string or None
:param jsonify_data: If True, *data* is converted from a Python list or dict to a JSON string
:type jsonify_data: boolean
:param want_full_response: If True, the full :class:`requests.Response` object is returned (otherwise, only the content of the response body is returned)
:type want_full_response: boolean
:param decode_response_body: If True (and *want_full_response* is False), the response body is decoded and, if it is a JSON string, deserialized. Otherwise, the response body is uncompressed if transport compression is on, and returned raw.
:type decode_response_body: boolean
:param prepend_srv: If True, prepends the API server location to the URL
:type prepend_srv: boolean
:param session_handler: Deprecated.
:param max_retries: Maximum number of retries to perform for a request. A "failed" request is retried if any of the following is true:
- A response is received from the server, and the content length received does not match the "Content-Length" header.
- A response is received from the server, and the response has an HTTP status code in 5xx range.
- A response is received from the server, the "Content-Length" header is not set, and the response JSON cannot be parsed.
- No response is received from the server, and either *always_retry* is True or the request *method* is "GET".
:type max_retries: int
:param always_retry: If True, indicates that it is safe to retry a request on failure
- Note: It is not guaranteed that the request will *always* be retried on failure; rather, this is an indication to the function that it would be safe to do so.
:type always_retry: boolean
:returns: Response from API server in the format indicated by *want_full_response* and *decode_response_body*.
:raises: :exc:`exceptions.DXAPIError` or a subclass if the server returned a non-200 status code; :exc:`requests.exceptions.HTTPError` if an invalid response was received from the server; or :exc:`requests.exceptions.ConnectionError` if a connection cannot be established.
Wrapper around :meth:`requests.request()` that makes an HTTP
request, inserting authentication headers and (by default)
converting *data* to JSON.
.. note:: Bindings methods that make API calls make the underlying
HTTP request(s) using :func:`DXHTTPRequest`, and most of them
will pass any unrecognized keyword arguments you have supplied
through to :func:`DXHTTPRequest`.
'''
if headers is None:
headers = {}
global _UPGRADE_NOTIFY
seq_num = _get_sequence_number()
url = APISERVER + resource if prepend_srv else resource
method = method.upper() # Convert method name to uppercase, to ease string comparisons later
if auth is True:
auth = AUTH_HELPER
if auth:
auth(_RequestForAuth(method, url, headers))
pool_args = {arg: kwargs.pop(arg, None) for arg in ("verify", "cert_file", "key_file")}
test_retry = kwargs.pop("_test_retry_http_request", False)
# data is a sequence/buffer or a dict
# serialized_data is a sequence/buffer
if jsonify_data:
serialized_data = json.dumps(data)
if 'Content-Type' not in headers and method == 'POST':
headers['Content-Type'] = 'application/json'
else:
serialized_data = data
# If the input is a buffer, its data gets consumed by
# requests.request (moving the read position). Record the initial
# buffer position so that we can return to it if the request fails
# and needs to be retried.
rewind_input_buffer_offset = None
if hasattr(data, 'seek') and hasattr(data, 'tell'):
rewind_input_buffer_offset = data.tell()
# Maintain two separate counters for the number of tries...
try_index = 0 # excluding 503 errors. The number of tries as given here
# cannot exceed (max_retries + 1).
try_index_including_503 = 0 # including 503 errors. This number is used to
# do exponential backoff.
retried_responses = []
_url = None
while True:
success, time_started = True, None
response = None
req_id = None
try:
time_started = time.time()
_method, _url, _headers = _process_method_url_headers(method, url, headers)
_debug_print_request(_DEBUG, seq_num, time_started, _method, _url, _headers, jsonify_data, data)
body = _maybe_truncate_request(_url, serialized_data)
# throws BadStatusLine if the server returns nothing
try:
pool_manager = _get_pool_manager(**pool_args)
_headers['User-Agent'] = USER_AGENT
_headers['DNAnexus-API'] = API_VERSION
# Converted Unicode headers to ASCII and throw an error if not possible
def ensure_ascii(i):
if not isinstance(i, bytes):
i = i.encode('ascii')
return i
_headers = {ensure_ascii(k): ensure_ascii(v) for k, v in _headers.items()}
if USING_PYTHON2:
encoded_url = _url
else:
# This is needed for python 3 urllib
_headers.pop(b'host', None)
_headers.pop(b'content-length', None)
# The libraries downstream (http client) require elimination of non-ascii
# chars from URL.
# We check if the URL contains non-ascii characters to see if we need to
# quote it. It is important not to always quote the path (here: parts[2])
# since it might contain elements (e.g. HMAC for api proxy) containing
# special characters that should not be quoted.
try:
ensure_ascii(_url)
encoded_url = _url
except UnicodeEncodeError:
import urllib.parse
parts = list(urllib.parse.urlparse(_url))
parts[2] = urllib.parse.quote(parts[2])
encoded_url = urllib.parse.urlunparse(parts)
response = pool_manager.request(_method, encoded_url, headers=_headers, body=body,
timeout=timeout, retries=False, **kwargs)
except urllib3.exceptions.ClosedPoolError:
# If another thread closed the pool before the request was
# started, will throw ClosedPoolError
raise exceptions.UrllibInternalError("ClosedPoolError")
_raise_error_for_testing(try_index, method)
req_id = response.headers.get("x-request-id", "unavailable")
if (_UPGRADE_NOTIFY
and response.headers.get('x-upgrade-info', '').startswith('A recommended update is available')
and '_ARGCOMPLETE' not in os.environ):
logger.info(response.headers['x-upgrade-info'])
try:
with file(_UPGRADE_NOTIFY, 'a'):
os.utime(_UPGRADE_NOTIFY, None)
except:
pass
_UPGRADE_NOTIFY = False
# If an HTTP code that is not in the 200 series is received and the content is JSON, parse it and throw the
# appropriate error. Otherwise, raise the usual exception.
if response.status // 100 != 2:
# response.headers key lookup is case-insensitive
if response.headers.get('content-type', '').startswith('application/json'):
try:
content = response.data.decode('utf-8')
except AttributeError:
raise exceptions.UrllibInternalError("Content is none", response.status)
try:
content = json.loads(content)
except ValueError:
# The JSON is not parsable, but we should be able to retry.
raise exceptions.BadJSONInReply("Invalid JSON received from server", response.status)
try:
error_class = getattr(exceptions, content["error"]["type"], exceptions.DXAPIError)
except (KeyError, AttributeError, TypeError):
raise exceptions.HTTPError(response.status, content)
raise error_class(content, response.status, time_started, req_id)
else:
try:
content = response.data.decode('utf-8')
except AttributeError:
raise exceptions.UrllibInternalError("Content is none", response.status)
raise exceptions.HTTPError("{} {} [Time={} RequestID={}]\n{}".format(response.status,
response.reason,
time_started,
req_id,
content))
if want_full_response:
return response
else:
if 'content-length' in response.headers:
if int(response.headers['content-length']) != len(response.data):
range_str = (' (%s)' % (headers['Range'],)) if 'Range' in headers else ''
raise exceptions.ContentLengthError(
"Received response with content-length header set to %s but content length is %d%s. " +
"[Time=%f RequestID=%s]" %
(response.headers['content-length'], len(response.data), range_str, time_started, req_id)
)
content = response.data
response_was_json = False
if decode_response_body:
content = content.decode('utf-8')
if response.headers.get('content-type', '').startswith('application/json'):
try:
content = json.loads(content)
except ValueError:
# The JSON is not parsable, but we should be able to retry.
raise exceptions.BadJSONInReply("Invalid JSON received from server", response.status)
else:
response_was_json = True
req_id = response.headers.get('x-request-id') or "--"
_debug_print_response(_DEBUG, seq_num, time_started, req_id, response.status, response_was_json,
_method, _url, content)
if test_retry:
retried_responses.append(content)
if len(retried_responses) == 1:
continue
else:
_set_retry_response(retried_responses[0])
return retried_responses[1]
return content
raise AssertionError('Should never reach this line: expected a result to have been returned by now')
except Exception as e:
# Avoid reusing connections in the pool, since they may be
# in an inconsistent state (observed as "ResponseNotReady"
# errors).
_get_pool_manager(**pool_args).clear()
success = False
exception_msg = _extract_msg_from_last_exception()
if isinstance(e, _expected_exceptions):
# Total number of allowed tries is the initial try PLUS
# up to (max_retries) subsequent retries.
total_allowed_tries = max_retries + 1
ok_to_retry = False
is_retryable = always_retry or (method == 'GET') or _is_retryable_exception(e)
# Because try_index is not incremented until we escape
# this iteration of the loop, try_index is equal to the
# number of tries that have failed so far, minus one.
if try_index + 1 < total_allowed_tries:
# BadStatusLine --- server did not return anything
# BadJSONInReply --- server returned JSON that didn't parse properly
if (response is None
or isinstance(e, (exceptions.ContentLengthError, BadStatusLine, exceptions.BadJSONInReply,
urllib3.exceptions.ProtocolError, exceptions.UrllibInternalError))):
ok_to_retry = is_retryable
else:
ok_to_retry = 500 <= response.status < 600
# The server has closed the connection prematurely
if (response is not None
and response.status == 400 and is_retryable and method == 'PUT'
and isinstance(e, requests.exceptions.HTTPError)):
if '<Code>RequestTimeout</Code>' in exception_msg:
logger.info("Retrying 400 HTTP error, due to slow data transfer. " +
"Request Time=%f Request ID=%s", time_started, req_id)
else:
logger.info("400 HTTP error, of unknown origin, exception_msg=[%s]. " +
"Request Time=%f Request ID=%s", exception_msg, time_started, req_id)
ok_to_retry = True
# Unprocessable entity, request has semantical errors
if response is not None and response.status == 422:
ok_to_retry = False
if ok_to_retry:
if rewind_input_buffer_offset is not None:
data.seek(rewind_input_buffer_offset)
delay = _calculate_retry_delay(response, try_index_including_503 + 1)
range_str = (' (range=%s)' % (headers['Range'],)) if 'Range' in headers else ''
if response is not None and response.status == 503:
waiting_msg = 'Waiting %d seconds before retry...' % (delay,)
else:
waiting_msg = 'Waiting %d seconds before retry %d of %d...' % (
delay, try_index + 1, max_retries)
logger.warning("[%s] %s %s: %s. %s %s",
time.ctime(), method, _url, exception_msg, waiting_msg, range_str)
time.sleep(delay)
try_index_including_503 += 1
if response is None or response.status != 503:
try_index += 1
continue
# All retries have been exhausted OR the error is deemed not
# retryable. Print the latest error and propagate it back to the caller.
if not isinstance(e, exceptions.DXAPIError):
logger.error("[%s] %s %s: %s.", time.ctime(), method, _url, exception_msg)
if isinstance(e, urllib3.exceptions.ProtocolError) and \
'Connection reset by peer' in exception_msg:
# If the protocol error is 'connection reset by peer', most likely it is an
# error in the ssl handshake due to unsupported TLS protocol.
_test_tls_version()
# Retries have been exhausted, and we are unable to get a full
# buffer from the data source. Raise a special exception.
if isinstance(e, urllib3.exceptions.ProtocolError) and \
'Connection broken: IncompleteRead' in exception_msg:
raise exceptions.DXIncompleteReadsError(exception_msg)
raise
finally:
if success and try_index > 0:
logger.info("[%s] %s %s: Recovered after %d retries", time.ctime(), method, _url, try_index)
raise AssertionError('Should never reach this line: should have attempted a retry or reraised by now')
raise AssertionError('Should never reach this line: should never break out of loop')
|
[
"def",
"DXHTTPRequest",
"(",
"resource",
",",
"data",
",",
"method",
"=",
"'POST'",
",",
"headers",
"=",
"None",
",",
"auth",
"=",
"True",
",",
"timeout",
"=",
"DEFAULT_TIMEOUT",
",",
"use_compression",
"=",
"None",
",",
"jsonify_data",
"=",
"True",
",",
"want_full_response",
"=",
"False",
",",
"decode_response_body",
"=",
"True",
",",
"prepend_srv",
"=",
"True",
",",
"session_handler",
"=",
"None",
",",
"max_retries",
"=",
"DEFAULT_RETRIES",
",",
"always_retry",
"=",
"False",
",",
"*",
"*",
"kwargs",
")",
":",
"if",
"headers",
"is",
"None",
":",
"headers",
"=",
"{",
"}",
"global",
"_UPGRADE_NOTIFY",
"seq_num",
"=",
"_get_sequence_number",
"(",
")",
"url",
"=",
"APISERVER",
"+",
"resource",
"if",
"prepend_srv",
"else",
"resource",
"method",
"=",
"method",
".",
"upper",
"(",
")",
"# Convert method name to uppercase, to ease string comparisons later",
"if",
"auth",
"is",
"True",
":",
"auth",
"=",
"AUTH_HELPER",
"if",
"auth",
":",
"auth",
"(",
"_RequestForAuth",
"(",
"method",
",",
"url",
",",
"headers",
")",
")",
"pool_args",
"=",
"{",
"arg",
":",
"kwargs",
".",
"pop",
"(",
"arg",
",",
"None",
")",
"for",
"arg",
"in",
"(",
"\"verify\"",
",",
"\"cert_file\"",
",",
"\"key_file\"",
")",
"}",
"test_retry",
"=",
"kwargs",
".",
"pop",
"(",
"\"_test_retry_http_request\"",
",",
"False",
")",
"# data is a sequence/buffer or a dict",
"# serialized_data is a sequence/buffer",
"if",
"jsonify_data",
":",
"serialized_data",
"=",
"json",
".",
"dumps",
"(",
"data",
")",
"if",
"'Content-Type'",
"not",
"in",
"headers",
"and",
"method",
"==",
"'POST'",
":",
"headers",
"[",
"'Content-Type'",
"]",
"=",
"'application/json'",
"else",
":",
"serialized_data",
"=",
"data",
"# If the input is a buffer, its data gets consumed by",
"# requests.request (moving the read position). Record the initial",
"# buffer position so that we can return to it if the request fails",
"# and needs to be retried.",
"rewind_input_buffer_offset",
"=",
"None",
"if",
"hasattr",
"(",
"data",
",",
"'seek'",
")",
"and",
"hasattr",
"(",
"data",
",",
"'tell'",
")",
":",
"rewind_input_buffer_offset",
"=",
"data",
".",
"tell",
"(",
")",
"# Maintain two separate counters for the number of tries...",
"try_index",
"=",
"0",
"# excluding 503 errors. The number of tries as given here",
"# cannot exceed (max_retries + 1).",
"try_index_including_503",
"=",
"0",
"# including 503 errors. This number is used to",
"# do exponential backoff.",
"retried_responses",
"=",
"[",
"]",
"_url",
"=",
"None",
"while",
"True",
":",
"success",
",",
"time_started",
"=",
"True",
",",
"None",
"response",
"=",
"None",
"req_id",
"=",
"None",
"try",
":",
"time_started",
"=",
"time",
".",
"time",
"(",
")",
"_method",
",",
"_url",
",",
"_headers",
"=",
"_process_method_url_headers",
"(",
"method",
",",
"url",
",",
"headers",
")",
"_debug_print_request",
"(",
"_DEBUG",
",",
"seq_num",
",",
"time_started",
",",
"_method",
",",
"_url",
",",
"_headers",
",",
"jsonify_data",
",",
"data",
")",
"body",
"=",
"_maybe_truncate_request",
"(",
"_url",
",",
"serialized_data",
")",
"# throws BadStatusLine if the server returns nothing",
"try",
":",
"pool_manager",
"=",
"_get_pool_manager",
"(",
"*",
"*",
"pool_args",
")",
"_headers",
"[",
"'User-Agent'",
"]",
"=",
"USER_AGENT",
"_headers",
"[",
"'DNAnexus-API'",
"]",
"=",
"API_VERSION",
"# Converted Unicode headers to ASCII and throw an error if not possible",
"def",
"ensure_ascii",
"(",
"i",
")",
":",
"if",
"not",
"isinstance",
"(",
"i",
",",
"bytes",
")",
":",
"i",
"=",
"i",
".",
"encode",
"(",
"'ascii'",
")",
"return",
"i",
"_headers",
"=",
"{",
"ensure_ascii",
"(",
"k",
")",
":",
"ensure_ascii",
"(",
"v",
")",
"for",
"k",
",",
"v",
"in",
"_headers",
".",
"items",
"(",
")",
"}",
"if",
"USING_PYTHON2",
":",
"encoded_url",
"=",
"_url",
"else",
":",
"# This is needed for python 3 urllib",
"_headers",
".",
"pop",
"(",
"b'host'",
",",
"None",
")",
"_headers",
".",
"pop",
"(",
"b'content-length'",
",",
"None",
")",
"# The libraries downstream (http client) require elimination of non-ascii",
"# chars from URL.",
"# We check if the URL contains non-ascii characters to see if we need to",
"# quote it. It is important not to always quote the path (here: parts[2])",
"# since it might contain elements (e.g. HMAC for api proxy) containing",
"# special characters that should not be quoted.",
"try",
":",
"ensure_ascii",
"(",
"_url",
")",
"encoded_url",
"=",
"_url",
"except",
"UnicodeEncodeError",
":",
"import",
"urllib",
".",
"parse",
"parts",
"=",
"list",
"(",
"urllib",
".",
"parse",
".",
"urlparse",
"(",
"_url",
")",
")",
"parts",
"[",
"2",
"]",
"=",
"urllib",
".",
"parse",
".",
"quote",
"(",
"parts",
"[",
"2",
"]",
")",
"encoded_url",
"=",
"urllib",
".",
"parse",
".",
"urlunparse",
"(",
"parts",
")",
"response",
"=",
"pool_manager",
".",
"request",
"(",
"_method",
",",
"encoded_url",
",",
"headers",
"=",
"_headers",
",",
"body",
"=",
"body",
",",
"timeout",
"=",
"timeout",
",",
"retries",
"=",
"False",
",",
"*",
"*",
"kwargs",
")",
"except",
"urllib3",
".",
"exceptions",
".",
"ClosedPoolError",
":",
"# If another thread closed the pool before the request was",
"# started, will throw ClosedPoolError",
"raise",
"exceptions",
".",
"UrllibInternalError",
"(",
"\"ClosedPoolError\"",
")",
"_raise_error_for_testing",
"(",
"try_index",
",",
"method",
")",
"req_id",
"=",
"response",
".",
"headers",
".",
"get",
"(",
"\"x-request-id\"",
",",
"\"unavailable\"",
")",
"if",
"(",
"_UPGRADE_NOTIFY",
"and",
"response",
".",
"headers",
".",
"get",
"(",
"'x-upgrade-info'",
",",
"''",
")",
".",
"startswith",
"(",
"'A recommended update is available'",
")",
"and",
"'_ARGCOMPLETE'",
"not",
"in",
"os",
".",
"environ",
")",
":",
"logger",
".",
"info",
"(",
"response",
".",
"headers",
"[",
"'x-upgrade-info'",
"]",
")",
"try",
":",
"with",
"file",
"(",
"_UPGRADE_NOTIFY",
",",
"'a'",
")",
":",
"os",
".",
"utime",
"(",
"_UPGRADE_NOTIFY",
",",
"None",
")",
"except",
":",
"pass",
"_UPGRADE_NOTIFY",
"=",
"False",
"# If an HTTP code that is not in the 200 series is received and the content is JSON, parse it and throw the",
"# appropriate error. Otherwise, raise the usual exception.",
"if",
"response",
".",
"status",
"//",
"100",
"!=",
"2",
":",
"# response.headers key lookup is case-insensitive",
"if",
"response",
".",
"headers",
".",
"get",
"(",
"'content-type'",
",",
"''",
")",
".",
"startswith",
"(",
"'application/json'",
")",
":",
"try",
":",
"content",
"=",
"response",
".",
"data",
".",
"decode",
"(",
"'utf-8'",
")",
"except",
"AttributeError",
":",
"raise",
"exceptions",
".",
"UrllibInternalError",
"(",
"\"Content is none\"",
",",
"response",
".",
"status",
")",
"try",
":",
"content",
"=",
"json",
".",
"loads",
"(",
"content",
")",
"except",
"ValueError",
":",
"# The JSON is not parsable, but we should be able to retry.",
"raise",
"exceptions",
".",
"BadJSONInReply",
"(",
"\"Invalid JSON received from server\"",
",",
"response",
".",
"status",
")",
"try",
":",
"error_class",
"=",
"getattr",
"(",
"exceptions",
",",
"content",
"[",
"\"error\"",
"]",
"[",
"\"type\"",
"]",
",",
"exceptions",
".",
"DXAPIError",
")",
"except",
"(",
"KeyError",
",",
"AttributeError",
",",
"TypeError",
")",
":",
"raise",
"exceptions",
".",
"HTTPError",
"(",
"response",
".",
"status",
",",
"content",
")",
"raise",
"error_class",
"(",
"content",
",",
"response",
".",
"status",
",",
"time_started",
",",
"req_id",
")",
"else",
":",
"try",
":",
"content",
"=",
"response",
".",
"data",
".",
"decode",
"(",
"'utf-8'",
")",
"except",
"AttributeError",
":",
"raise",
"exceptions",
".",
"UrllibInternalError",
"(",
"\"Content is none\"",
",",
"response",
".",
"status",
")",
"raise",
"exceptions",
".",
"HTTPError",
"(",
"\"{} {} [Time={} RequestID={}]\\n{}\"",
".",
"format",
"(",
"response",
".",
"status",
",",
"response",
".",
"reason",
",",
"time_started",
",",
"req_id",
",",
"content",
")",
")",
"if",
"want_full_response",
":",
"return",
"response",
"else",
":",
"if",
"'content-length'",
"in",
"response",
".",
"headers",
":",
"if",
"int",
"(",
"response",
".",
"headers",
"[",
"'content-length'",
"]",
")",
"!=",
"len",
"(",
"response",
".",
"data",
")",
":",
"range_str",
"=",
"(",
"' (%s)'",
"%",
"(",
"headers",
"[",
"'Range'",
"]",
",",
")",
")",
"if",
"'Range'",
"in",
"headers",
"else",
"''",
"raise",
"exceptions",
".",
"ContentLengthError",
"(",
"\"Received response with content-length header set to %s but content length is %d%s. \"",
"+",
"\"[Time=%f RequestID=%s]\"",
"%",
"(",
"response",
".",
"headers",
"[",
"'content-length'",
"]",
",",
"len",
"(",
"response",
".",
"data",
")",
",",
"range_str",
",",
"time_started",
",",
"req_id",
")",
")",
"content",
"=",
"response",
".",
"data",
"response_was_json",
"=",
"False",
"if",
"decode_response_body",
":",
"content",
"=",
"content",
".",
"decode",
"(",
"'utf-8'",
")",
"if",
"response",
".",
"headers",
".",
"get",
"(",
"'content-type'",
",",
"''",
")",
".",
"startswith",
"(",
"'application/json'",
")",
":",
"try",
":",
"content",
"=",
"json",
".",
"loads",
"(",
"content",
")",
"except",
"ValueError",
":",
"# The JSON is not parsable, but we should be able to retry.",
"raise",
"exceptions",
".",
"BadJSONInReply",
"(",
"\"Invalid JSON received from server\"",
",",
"response",
".",
"status",
")",
"else",
":",
"response_was_json",
"=",
"True",
"req_id",
"=",
"response",
".",
"headers",
".",
"get",
"(",
"'x-request-id'",
")",
"or",
"\"--\"",
"_debug_print_response",
"(",
"_DEBUG",
",",
"seq_num",
",",
"time_started",
",",
"req_id",
",",
"response",
".",
"status",
",",
"response_was_json",
",",
"_method",
",",
"_url",
",",
"content",
")",
"if",
"test_retry",
":",
"retried_responses",
".",
"append",
"(",
"content",
")",
"if",
"len",
"(",
"retried_responses",
")",
"==",
"1",
":",
"continue",
"else",
":",
"_set_retry_response",
"(",
"retried_responses",
"[",
"0",
"]",
")",
"return",
"retried_responses",
"[",
"1",
"]",
"return",
"content",
"raise",
"AssertionError",
"(",
"'Should never reach this line: expected a result to have been returned by now'",
")",
"except",
"Exception",
"as",
"e",
":",
"# Avoid reusing connections in the pool, since they may be",
"# in an inconsistent state (observed as \"ResponseNotReady\"",
"# errors).",
"_get_pool_manager",
"(",
"*",
"*",
"pool_args",
")",
".",
"clear",
"(",
")",
"success",
"=",
"False",
"exception_msg",
"=",
"_extract_msg_from_last_exception",
"(",
")",
"if",
"isinstance",
"(",
"e",
",",
"_expected_exceptions",
")",
":",
"# Total number of allowed tries is the initial try PLUS",
"# up to (max_retries) subsequent retries.",
"total_allowed_tries",
"=",
"max_retries",
"+",
"1",
"ok_to_retry",
"=",
"False",
"is_retryable",
"=",
"always_retry",
"or",
"(",
"method",
"==",
"'GET'",
")",
"or",
"_is_retryable_exception",
"(",
"e",
")",
"# Because try_index is not incremented until we escape",
"# this iteration of the loop, try_index is equal to the",
"# number of tries that have failed so far, minus one.",
"if",
"try_index",
"+",
"1",
"<",
"total_allowed_tries",
":",
"# BadStatusLine --- server did not return anything",
"# BadJSONInReply --- server returned JSON that didn't parse properly",
"if",
"(",
"response",
"is",
"None",
"or",
"isinstance",
"(",
"e",
",",
"(",
"exceptions",
".",
"ContentLengthError",
",",
"BadStatusLine",
",",
"exceptions",
".",
"BadJSONInReply",
",",
"urllib3",
".",
"exceptions",
".",
"ProtocolError",
",",
"exceptions",
".",
"UrllibInternalError",
")",
")",
")",
":",
"ok_to_retry",
"=",
"is_retryable",
"else",
":",
"ok_to_retry",
"=",
"500",
"<=",
"response",
".",
"status",
"<",
"600",
"# The server has closed the connection prematurely",
"if",
"(",
"response",
"is",
"not",
"None",
"and",
"response",
".",
"status",
"==",
"400",
"and",
"is_retryable",
"and",
"method",
"==",
"'PUT'",
"and",
"isinstance",
"(",
"e",
",",
"requests",
".",
"exceptions",
".",
"HTTPError",
")",
")",
":",
"if",
"'<Code>RequestTimeout</Code>'",
"in",
"exception_msg",
":",
"logger",
".",
"info",
"(",
"\"Retrying 400 HTTP error, due to slow data transfer. \"",
"+",
"\"Request Time=%f Request ID=%s\"",
",",
"time_started",
",",
"req_id",
")",
"else",
":",
"logger",
".",
"info",
"(",
"\"400 HTTP error, of unknown origin, exception_msg=[%s]. \"",
"+",
"\"Request Time=%f Request ID=%s\"",
",",
"exception_msg",
",",
"time_started",
",",
"req_id",
")",
"ok_to_retry",
"=",
"True",
"# Unprocessable entity, request has semantical errors",
"if",
"response",
"is",
"not",
"None",
"and",
"response",
".",
"status",
"==",
"422",
":",
"ok_to_retry",
"=",
"False",
"if",
"ok_to_retry",
":",
"if",
"rewind_input_buffer_offset",
"is",
"not",
"None",
":",
"data",
".",
"seek",
"(",
"rewind_input_buffer_offset",
")",
"delay",
"=",
"_calculate_retry_delay",
"(",
"response",
",",
"try_index_including_503",
"+",
"1",
")",
"range_str",
"=",
"(",
"' (range=%s)'",
"%",
"(",
"headers",
"[",
"'Range'",
"]",
",",
")",
")",
"if",
"'Range'",
"in",
"headers",
"else",
"''",
"if",
"response",
"is",
"not",
"None",
"and",
"response",
".",
"status",
"==",
"503",
":",
"waiting_msg",
"=",
"'Waiting %d seconds before retry...'",
"%",
"(",
"delay",
",",
")",
"else",
":",
"waiting_msg",
"=",
"'Waiting %d seconds before retry %d of %d...'",
"%",
"(",
"delay",
",",
"try_index",
"+",
"1",
",",
"max_retries",
")",
"logger",
".",
"warning",
"(",
"\"[%s] %s %s: %s. %s %s\"",
",",
"time",
".",
"ctime",
"(",
")",
",",
"method",
",",
"_url",
",",
"exception_msg",
",",
"waiting_msg",
",",
"range_str",
")",
"time",
".",
"sleep",
"(",
"delay",
")",
"try_index_including_503",
"+=",
"1",
"if",
"response",
"is",
"None",
"or",
"response",
".",
"status",
"!=",
"503",
":",
"try_index",
"+=",
"1",
"continue",
"# All retries have been exhausted OR the error is deemed not",
"# retryable. Print the latest error and propagate it back to the caller.",
"if",
"not",
"isinstance",
"(",
"e",
",",
"exceptions",
".",
"DXAPIError",
")",
":",
"logger",
".",
"error",
"(",
"\"[%s] %s %s: %s.\"",
",",
"time",
".",
"ctime",
"(",
")",
",",
"method",
",",
"_url",
",",
"exception_msg",
")",
"if",
"isinstance",
"(",
"e",
",",
"urllib3",
".",
"exceptions",
".",
"ProtocolError",
")",
"and",
"'Connection reset by peer'",
"in",
"exception_msg",
":",
"# If the protocol error is 'connection reset by peer', most likely it is an",
"# error in the ssl handshake due to unsupported TLS protocol.",
"_test_tls_version",
"(",
")",
"# Retries have been exhausted, and we are unable to get a full",
"# buffer from the data source. Raise a special exception.",
"if",
"isinstance",
"(",
"e",
",",
"urllib3",
".",
"exceptions",
".",
"ProtocolError",
")",
"and",
"'Connection broken: IncompleteRead'",
"in",
"exception_msg",
":",
"raise",
"exceptions",
".",
"DXIncompleteReadsError",
"(",
"exception_msg",
")",
"raise",
"finally",
":",
"if",
"success",
"and",
"try_index",
">",
"0",
":",
"logger",
".",
"info",
"(",
"\"[%s] %s %s: Recovered after %d retries\"",
",",
"time",
".",
"ctime",
"(",
")",
",",
"method",
",",
"_url",
",",
"try_index",
")",
"raise",
"AssertionError",
"(",
"'Should never reach this line: should have attempted a retry or reraised by now'",
")",
"raise",
"AssertionError",
"(",
"'Should never reach this line: should never break out of loop'",
")"
] |
:param resource: API server route, e.g. "/record/new". If *prepend_srv* is False, a fully qualified URL is expected. If this argument is a callable, it will be called just before each request attempt, and expected to return a tuple (URL, headers). Headers returned by the callback are updated with *headers* (including headers set by this method).
:type resource: string
:param data: Content of the request body
:type data: list or dict, if *jsonify_data* is True; or string or file-like object, otherwise
:param headers: Names and values of HTTP headers to submit with the request (in addition to those needed for authentication, compression, or other options specified with the call).
:type headers: dict
:param auth:
Controls the ``Authentication`` header or other means of authentication supplied with the request. If ``True``
(default), a token is obtained from the ``DX_SECURITY_CONTEXT``. If the value evaluates to false, no action is
taken to prepare authentication for the request. Otherwise, the value is assumed to be callable, and called with
three arguments (method, url, headers) and expected to prepare the authentication headers by reference.
:type auth: tuple, object, True (default), or None
:param timeout: HTTP request timeout, in seconds
:type timeout: float
:param config: *config* value to pass through to :meth:`requests.request`
:type config: dict
:param use_compression: Deprecated
:type use_compression: string or None
:param jsonify_data: If True, *data* is converted from a Python list or dict to a JSON string
:type jsonify_data: boolean
:param want_full_response: If True, the full :class:`requests.Response` object is returned (otherwise, only the content of the response body is returned)
:type want_full_response: boolean
:param decode_response_body: If True (and *want_full_response* is False), the response body is decoded and, if it is a JSON string, deserialized. Otherwise, the response body is uncompressed if transport compression is on, and returned raw.
:type decode_response_body: boolean
:param prepend_srv: If True, prepends the API server location to the URL
:type prepend_srv: boolean
:param session_handler: Deprecated.
:param max_retries: Maximum number of retries to perform for a request. A "failed" request is retried if any of the following is true:
- A response is received from the server, and the content length received does not match the "Content-Length" header.
- A response is received from the server, and the response has an HTTP status code in 5xx range.
- A response is received from the server, the "Content-Length" header is not set, and the response JSON cannot be parsed.
- No response is received from the server, and either *always_retry* is True or the request *method* is "GET".
:type max_retries: int
:param always_retry: If True, indicates that it is safe to retry a request on failure
- Note: It is not guaranteed that the request will *always* be retried on failure; rather, this is an indication to the function that it would be safe to do so.
:type always_retry: boolean
:returns: Response from API server in the format indicated by *want_full_response* and *decode_response_body*.
:raises: :exc:`exceptions.DXAPIError` or a subclass if the server returned a non-200 status code; :exc:`requests.exceptions.HTTPError` if an invalid response was received from the server; or :exc:`requests.exceptions.ConnectionError` if a connection cannot be established.
Wrapper around :meth:`requests.request()` that makes an HTTP
request, inserting authentication headers and (by default)
converting *data* to JSON.
.. note:: Bindings methods that make API calls make the underlying
HTTP request(s) using :func:`DXHTTPRequest`, and most of them
will pass any unrecognized keyword arguments you have supplied
through to :func:`DXHTTPRequest`.
|
[
":",
"param",
"resource",
":",
"API",
"server",
"route",
"e",
".",
"g",
".",
"/",
"record",
"/",
"new",
".",
"If",
"*",
"prepend_srv",
"*",
"is",
"False",
"a",
"fully",
"qualified",
"URL",
"is",
"expected",
".",
"If",
"this",
"argument",
"is",
"a",
"callable",
"it",
"will",
"be",
"called",
"just",
"before",
"each",
"request",
"attempt",
"and",
"expected",
"to",
"return",
"a",
"tuple",
"(",
"URL",
"headers",
")",
".",
"Headers",
"returned",
"by",
"the",
"callback",
"are",
"updated",
"with",
"*",
"headers",
"*",
"(",
"including",
"headers",
"set",
"by",
"this",
"method",
")",
".",
":",
"type",
"resource",
":",
"string",
":",
"param",
"data",
":",
"Content",
"of",
"the",
"request",
"body",
":",
"type",
"data",
":",
"list",
"or",
"dict",
"if",
"*",
"jsonify_data",
"*",
"is",
"True",
";",
"or",
"string",
"or",
"file",
"-",
"like",
"object",
"otherwise",
":",
"param",
"headers",
":",
"Names",
"and",
"values",
"of",
"HTTP",
"headers",
"to",
"submit",
"with",
"the",
"request",
"(",
"in",
"addition",
"to",
"those",
"needed",
"for",
"authentication",
"compression",
"or",
"other",
"options",
"specified",
"with",
"the",
"call",
")",
".",
":",
"type",
"headers",
":",
"dict",
":",
"param",
"auth",
":",
"Controls",
"the",
"Authentication",
"header",
"or",
"other",
"means",
"of",
"authentication",
"supplied",
"with",
"the",
"request",
".",
"If",
"True",
"(",
"default",
")",
"a",
"token",
"is",
"obtained",
"from",
"the",
"DX_SECURITY_CONTEXT",
".",
"If",
"the",
"value",
"evaluates",
"to",
"false",
"no",
"action",
"is",
"taken",
"to",
"prepare",
"authentication",
"for",
"the",
"request",
".",
"Otherwise",
"the",
"value",
"is",
"assumed",
"to",
"be",
"callable",
"and",
"called",
"with",
"three",
"arguments",
"(",
"method",
"url",
"headers",
")",
"and",
"expected",
"to",
"prepare",
"the",
"authentication",
"headers",
"by",
"reference",
".",
":",
"type",
"auth",
":",
"tuple",
"object",
"True",
"(",
"default",
")",
"or",
"None",
":",
"param",
"timeout",
":",
"HTTP",
"request",
"timeout",
"in",
"seconds",
":",
"type",
"timeout",
":",
"float",
":",
"param",
"config",
":",
"*",
"config",
"*",
"value",
"to",
"pass",
"through",
"to",
":",
"meth",
":",
"requests",
".",
"request",
":",
"type",
"config",
":",
"dict",
":",
"param",
"use_compression",
":",
"Deprecated",
":",
"type",
"use_compression",
":",
"string",
"or",
"None",
":",
"param",
"jsonify_data",
":",
"If",
"True",
"*",
"data",
"*",
"is",
"converted",
"from",
"a",
"Python",
"list",
"or",
"dict",
"to",
"a",
"JSON",
"string",
":",
"type",
"jsonify_data",
":",
"boolean",
":",
"param",
"want_full_response",
":",
"If",
"True",
"the",
"full",
":",
"class",
":",
"requests",
".",
"Response",
"object",
"is",
"returned",
"(",
"otherwise",
"only",
"the",
"content",
"of",
"the",
"response",
"body",
"is",
"returned",
")",
":",
"type",
"want_full_response",
":",
"boolean",
":",
"param",
"decode_response_body",
":",
"If",
"True",
"(",
"and",
"*",
"want_full_response",
"*",
"is",
"False",
")",
"the",
"response",
"body",
"is",
"decoded",
"and",
"if",
"it",
"is",
"a",
"JSON",
"string",
"deserialized",
".",
"Otherwise",
"the",
"response",
"body",
"is",
"uncompressed",
"if",
"transport",
"compression",
"is",
"on",
"and",
"returned",
"raw",
".",
":",
"type",
"decode_response_body",
":",
"boolean",
":",
"param",
"prepend_srv",
":",
"If",
"True",
"prepends",
"the",
"API",
"server",
"location",
"to",
"the",
"URL",
":",
"type",
"prepend_srv",
":",
"boolean",
":",
"param",
"session_handler",
":",
"Deprecated",
".",
":",
"param",
"max_retries",
":",
"Maximum",
"number",
"of",
"retries",
"to",
"perform",
"for",
"a",
"request",
".",
"A",
"failed",
"request",
"is",
"retried",
"if",
"any",
"of",
"the",
"following",
"is",
"true",
":"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/__init__.py#L487-L820
|
train
|
A basic HTTP 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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eeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__
ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b100010 + 0o16) + chr(111) + '\062' + '\063' + chr(1121 - 1072), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + '\066' + chr(0b100011 + 0o22), 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(2209 - 2158) + '\x33' + '\061', 0o10), nzTpIcepk0o8(chr(984 - 936) + chr(2078 - 1967) + chr(0b100 + 0o57) + chr(488 - 440) + chr(55), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b10010 + 0o41) + '\x33' + chr(0b1100 + 0o45), 8), nzTpIcepk0o8('\060' + '\x6f' + chr(0b100011 + 0o17) + '\061' + chr(48), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1100010 + 0o15) + '\061' + '\060' + '\x34', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b10100 + 0o133) + chr(2108 - 2059) + chr(54) + chr(0b11010 + 0o34), 26432 - 26424), nzTpIcepk0o8(chr(48) + chr(0b110111 + 0o70) + chr(364 - 315) + '\062' + chr(942 - 893), 55990 - 55982), nzTpIcepk0o8('\060' + chr(0b101010 + 0o105) + chr(2078 - 2029) + '\x36' + '\x37', 0b1000), nzTpIcepk0o8(chr(48) + '\157' + '\063' + chr(50) + '\x34', 4127 - 4119), nzTpIcepk0o8('\x30' + chr(111) + '\x37' + '\x34', 60574 - 60566), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(319 - 269) + chr(0b110001) + '\x33', 0b1000), nzTpIcepk0o8(chr(0b1101 + 0o43) + '\x6f' + '\x31' + chr(0b10000 + 0o42), 0o10), nzTpIcepk0o8('\060' + chr(111) + '\x32' + chr(0b110011) + chr(0b110101), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(1801 - 1690) + chr(0b110010) + chr(1055 - 1007) + chr(0b10000 + 0o44), 0o10), nzTpIcepk0o8(chr(1810 - 1762) + chr(111) + chr(0b110010) + chr(573 - 524) + chr(48), 8), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x33' + chr(0b100001 + 0o21) + chr(0b110110), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(525 - 472) + '\060', 46875 - 46867), nzTpIcepk0o8(chr(1000 - 952) + chr(111) + '\x31' + chr(0b1110 + 0o47) + chr(0b110001), 26329 - 26321), nzTpIcepk0o8(chr(0b101100 + 0o4) + '\157' + '\063' + chr(54) + chr(0b110011), 11335 - 11327), nzTpIcepk0o8(chr(0b10100 + 0o34) + '\x6f' + chr(50) + chr(0b100010 + 0o21) + chr(0b110101), 8), nzTpIcepk0o8('\060' + '\x6f' + '\x32' + '\064' + chr(0b110101), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b11111 + 0o24) + chr(0b1100 + 0o45) + chr(48), 0o10), nzTpIcepk0o8(chr(0b11000 + 0o30) + chr(12308 - 12197) + '\x33' + chr(0b110100) + chr(53), 0o10), nzTpIcepk0o8('\060' + '\157' + '\x32' + '\x30' + chr(0b1001 + 0o55), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(4874 - 4763) + chr(1987 - 1937) + chr(50) + chr(2075 - 2020), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b11110 + 0o121) + '\x36' + chr(2063 - 2011), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(0b111 + 0o54) + '\063' + '\067', ord("\x08")), nzTpIcepk0o8(chr(970 - 922) + chr(9514 - 9403) + '\x31' + '\x30' + chr(214 - 165), ord("\x08")), nzTpIcepk0o8(chr(2023 - 1975) + chr(111) + '\063' + chr(214 - 161) + chr(1023 - 971), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b101010 + 0o11) + chr(0b10000 + 0o40) + chr(2165 - 2114), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(4823 - 4712) + '\x32', 0o10), nzTpIcepk0o8(chr(0b10011 + 0o35) + chr(4493 - 4382) + chr(1190 - 1141) + chr(54) + '\x36', 8), nzTpIcepk0o8(chr(48) + chr(0b100011 + 0o114) + chr(592 - 537), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(0b100101 + 0o22), 8), nzTpIcepk0o8('\x30' + chr(0b100101 + 0o112) + '\x32' + chr(0b10 + 0o61) + chr(54), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(52) + chr(49), 564 - 556), nzTpIcepk0o8(chr(1020 - 972) + '\x6f' + chr(0b110001 + 0o1) + chr(55), ord("\x08")), nzTpIcepk0o8(chr(0b101000 + 0o10) + chr(0b1101111) + chr(1634 - 1584) + chr(0b110110) + chr(0b110010 + 0o4), 61612 - 61604)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(1335 - 1287) + chr(229 - 118) + chr(53) + '\x30', 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xb7'), chr(0b1100100) + '\x65' + chr(4058 - 3959) + chr(0b1101111) + chr(0b1100011 + 0o1) + '\x65')(chr(0b101011 + 0o112) + chr(0b1110100) + '\146' + chr(45) + chr(0b111000)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def oyT_DnLPci7k(Touxl2u0siZW, FfKOThdpoDTb, e5rcHW8hR5dL=roI3spqORKae(ES5oEprVxulp(b'\xc9z\x8a\x93'), chr(0b110 + 0o136) + chr(101) + chr(99) + chr(0b100010 + 0o115) + chr(100) + '\145')('\165' + chr(116) + chr(0b1100 + 0o132) + chr(0b101101) + chr(56)), UyworZfslHjc=None, U6VIYdxcqUeb=nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(2191 - 2142), 0b1000), ACACUUFQsMpr=kmTRt4e7y95y, PkceImm2n98X=None, a9Q4uKNGiY7k=nzTpIcepk0o8('\x30' + chr(111) + chr(0b100000 + 0o21), 8), DQr4TPaQSy17=nzTpIcepk0o8(chr(48) + chr(111) + '\x30', 0o10), WNTlbYW2wRmo=nzTpIcepk0o8('\x30' + chr(4511 - 4400) + chr(1590 - 1541), 8), QxdDKX_MKsgw=nzTpIcepk0o8('\x30' + chr(7595 - 7484) + chr(0b100001 + 0o20), 8), k5i_MDgyZbh8=None, egwxxHE5P7VT=lGhm2ntJBzS7, lGUYPM253vYL=nzTpIcepk0o8(chr(0b110 + 0o52) + chr(1018 - 907) + '\060', 8), **q5n0sHDDTy90):
if UyworZfslHjc is None:
UyworZfslHjc = {}
global tpy6dtg7TviY
QX7syIGP7Rta = Wb2Y0UZI7xJQ()
XuBkOpBKZJ5Z = C5eVgfLV7_c7 + Touxl2u0siZW if QxdDKX_MKsgw else Touxl2u0siZW
e5rcHW8hR5dL = e5rcHW8hR5dL.iq1mNMefb1Zd()
if U6VIYdxcqUeb is nzTpIcepk0o8('\x30' + chr(111) + '\061', 8):
U6VIYdxcqUeb = _MRWKJrMw7iH
if U6VIYdxcqUeb:
U6VIYdxcqUeb(gBgPDcjR5SBA(e5rcHW8hR5dL, XuBkOpBKZJ5Z, UyworZfslHjc))
CU6weHjDzS0i = {S6EI_gyMl2nC: q5n0sHDDTy90.uC_Yoybx7J0I(S6EI_gyMl2nC, None) for S6EI_gyMl2nC in (roI3spqORKae(ES5oEprVxulp(b'\xefP\xab\xae\xbf\xf1'), '\x64' + chr(0b1011011 + 0o12) + chr(0b1100011) + chr(111) + chr(0b111111 + 0o45) + chr(101))(chr(7546 - 7429) + chr(0b1110100) + chr(0b1001011 + 0o33) + chr(1826 - 1781) + chr(56)), roI3spqORKae(ES5oEprVxulp(b'\xfaP\xab\xb3\x86\xee-\x1a4'), '\144' + chr(101) + chr(99) + chr(1853 - 1742) + '\x64' + '\145')(chr(0b1110101) + chr(0b1110100) + '\x66' + chr(459 - 414) + '\x38'), roI3spqORKae(ES5oEprVxulp(b'\xf2P\xa0\x98\xbf\xe1(\x13'), chr(100) + chr(101) + chr(0b1100011) + chr(4020 - 3909) + chr(100) + chr(101))('\165' + chr(2285 - 2169) + chr(102) + chr(0b101101) + chr(0b11011 + 0o35)))}
VvJNbiccrO4u = q5n0sHDDTy90.uC_Yoybx7J0I(roI3spqORKae(ES5oEprVxulp(b'\xc6A\xbc\xb4\xad\xd76\x13%\x05\xadc\xe3~\xe9\xf4\xd7\xa4M\x18\x86\xf8\xd6\xbc'), '\x64' + '\145' + '\x63' + chr(111) + chr(3255 - 3155) + chr(2071 - 1970))(chr(0b1110101) + chr(0b1110100) + '\146' + chr(0b100101 + 0o10) + '\x38'), nzTpIcepk0o8('\060' + '\157' + chr(0b10101 + 0o33), 8))
if a9Q4uKNGiY7k:
lvP1UyMJMpdW = LNUKEwZDIbyb.Zjglmm8uenkC(FfKOThdpoDTb)
if roI3spqORKae(ES5oEprVxulp(b'\xdaZ\xb7\xb3\xbc\xe60[\x05\x0e\xa4Y'), '\144' + chr(783 - 682) + chr(1175 - 1076) + chr(9180 - 9069) + '\x64' + '\x65')(chr(0b10111 + 0o136) + chr(0b1101001 + 0o13) + chr(2695 - 2593) + chr(614 - 569) + chr(1181 - 1125)) not in UyworZfslHjc and e5rcHW8hR5dL == roI3spqORKae(ES5oEprVxulp(b'\xc9z\x8a\x93'), chr(0b111101 + 0o47) + '\x65' + chr(0b1100011) + '\x6f' + chr(100) + chr(5255 - 5154))(chr(117) + chr(2124 - 2008) + chr(102) + chr(0b11111 + 0o16) + '\070'):
UyworZfslHjc[roI3spqORKae(ES5oEprVxulp(b'\xdaZ\xb7\xb3\xbc\xe60[\x05\x0e\xa4Y'), chr(100) + chr(0b11 + 0o142) + '\143' + chr(2998 - 2887) + chr(100) + '\x65')('\x75' + chr(116) + chr(0b1100110) + '\055' + chr(0b111000))] = roI3spqORKae(ES5oEprVxulp(b'\xf8E\xa9\xab\xb0\xeb%\x028\x18\xba\x13\xe1y\xf2\xea'), chr(0b1100100) + chr(3733 - 3632) + '\143' + chr(111) + '\144' + chr(0b1100101))('\x75' + '\x74' + chr(6379 - 6277) + chr(0b101010 + 0o3) + chr(0b111000))
else:
lvP1UyMJMpdW = FfKOThdpoDTb
v2xJaqvkU8dz = None
if dRKdVnHPFq7C(FfKOThdpoDTb, roI3spqORKae(ES5oEprVxulp(b'\xeaP\xbc\xac'), '\144' + '\x65' + chr(0b1100011) + chr(0b1011011 + 0o24) + chr(100) + '\145')('\165' + chr(0b1000010 + 0o62) + chr(2782 - 2680) + '\x2d' + chr(0b11101 + 0o33))) and dRKdVnHPFq7C(FfKOThdpoDTb, roI3spqORKae(ES5oEprVxulp(b'\xedP\xb5\xab'), '\x64' + chr(0b1001011 + 0o32) + '\x63' + '\x6f' + '\x64' + chr(101))(chr(0b11110 + 0o127) + chr(116) + chr(0b1100110) + chr(45) + '\070')):
v2xJaqvkU8dz = FfKOThdpoDTb.tell()
HDMxwRui7nO2 = nzTpIcepk0o8(chr(820 - 772) + chr(0b1101111) + chr(1834 - 1786), 8)
zy6F1BWIPQNn = nzTpIcepk0o8('\060' + chr(0b100010 + 0o115) + chr(0b110000), 8)
oybbSqZuN_UD = []
IGP5zgitF7WX = None
while nzTpIcepk0o8(chr(0b110000) + chr(0b1100010 + 0o15) + chr(0b110001), 8):
(Eve7WKj3GZpi, x9aYM4aNRi1g) = (nzTpIcepk0o8(chr(48) + '\x6f' + chr(1918 - 1869), 8), None)
k2zzaFDtbuhL = None
XKBYWG7qWCAm = None
try:
x9aYM4aNRi1g = oprIvDIRQyCb.oprIvDIRQyCb()
(D7tkeeD2zMuf, IGP5zgitF7WX, dE0JR_S1FOo2) = z5RCttLeCEkg(e5rcHW8hR5dL, XuBkOpBKZJ5Z, UyworZfslHjc)
pi2IVsnYds1W(OSoC1rFElOcn, QX7syIGP7Rta, x9aYM4aNRi1g, D7tkeeD2zMuf, IGP5zgitF7WX, dE0JR_S1FOo2, a9Q4uKNGiY7k, FfKOThdpoDTb)
ryRPGaxqs24n = bOTMNNw7xJTy(IGP5zgitF7WX, lvP1UyMJMpdW)
try:
k8zQcFLqoqJY = oUzVlGbtgXIK(**CU6weHjDzS0i)
dE0JR_S1FOo2[roI3spqORKae(ES5oEprVxulp(b'\xccF\xbc\xb5\xf4\xc9#\x13?\x03'), chr(8460 - 8360) + chr(0b111100 + 0o51) + chr(99) + chr(0b1101100 + 0o3) + chr(100) + chr(101))(chr(0b1110101) + '\164' + chr(0b1100110) + '\x2d' + chr(1647 - 1591))] = cJa6Cn7UiBig
dE0JR_S1FOo2[roI3spqORKae(ES5oEprVxulp(b'\xdd{\x98\xa9\xbc\xf01\x05|6\x84u'), chr(1341 - 1241) + chr(901 - 800) + '\x63' + '\x6f' + chr(100) + chr(5154 - 5053))(chr(0b1110101) + chr(0b1011100 + 0o30) + chr(0b1100110) + chr(0b1111 + 0o36) + '\x38')] = rL16wOBGhvDZ
def LmaWwXAEveyz(ZlbFMSG8gCoF):
if not suIjIS24Zkqw(ZlbFMSG8gCoF, QNQS9e6tJqMV):
ZlbFMSG8gCoF = ZlbFMSG8gCoF.YqIaRFfeo4Ha(roI3spqORKae(ES5oEprVxulp(b'\xf8F\xba\xae\xb0'), chr(100) + chr(10044 - 9943) + chr(0b1100011) + chr(12252 - 12141) + chr(0b1100100) + chr(7700 - 7599))(chr(0b1110101) + chr(0b1010101 + 0o37) + chr(102) + chr(0b101101) + '\070'))
return ZlbFMSG8gCoF
dE0JR_S1FOo2 = {LmaWwXAEveyz(B6UAF1zReOyJ): LmaWwXAEveyz(r7AA1pbLjb44) for (B6UAF1zReOyJ, r7AA1pbLjb44) in dE0JR_S1FOo2.Y_nNEzH43vXi()}
if Yt6GOS_tiQ1Y:
Fl1Un9ieqOnn = IGP5zgitF7WX
else:
roI3spqORKae(dE0JR_S1FOo2, roI3spqORKae(ES5oEprVxulp(b'\xecv\x86\x9e\xb6\xf1&\x0ef=\xe4u'), '\x64' + '\x65' + chr(99) + chr(0b10011 + 0o134) + chr(100) + chr(101))(chr(0b1110101) + chr(13149 - 13033) + chr(1245 - 1143) + chr(0b101101) + chr(0b100 + 0o64)))(ES5oEprVxulp(b'\xf1Z\xaa\xb3'), None)
roI3spqORKae(dE0JR_S1FOo2, roI3spqORKae(ES5oEprVxulp(b'\xecv\x86\x9e\xb6\xf1&\x0ef=\xe4u'), '\x64' + chr(0b110100 + 0o61) + chr(3432 - 3333) + '\157' + '\x64' + chr(101))('\x75' + '\164' + chr(3527 - 3425) + '\x2d' + '\x38'))(ES5oEprVxulp(b'\xfaZ\xb7\xb3\xbc\xe60[=\x12\xba[\xffb'), None)
try:
LmaWwXAEveyz(IGP5zgitF7WX)
Fl1Un9ieqOnn = IGP5zgitF7WX
except aP29ipGsOVzf:
(O7cVixZ4g0oW,) = (zGgTE_CdZfvi(roI3spqORKae(ES5oEprVxulp(b'\xecG\xb5\xab\xb0\xeaj\x060\x05\xa7Y'), chr(988 - 888) + chr(9358 - 9257) + chr(99) + chr(111) + chr(0b1100100) + chr(0b100111 + 0o76))('\165' + '\x74' + '\x66' + '\055' + chr(56))),)
ws_9aXBYp0Zv = H4NoA26ON7iG(O7cVixZ4g0oW.parse.urlparse(IGP5zgitF7WX))
ws_9aXBYp0Zv[nzTpIcepk0o8('\x30' + chr(6235 - 6124) + chr(239 - 189), 8)] = O7cVixZ4g0oW.parse.quote(ws_9aXBYp0Zv[nzTpIcepk0o8('\060' + chr(111) + chr(0b110010), 8)])
Fl1Un9ieqOnn = O7cVixZ4g0oW.parse.urlunparse(ws_9aXBYp0Zv)
k2zzaFDtbuhL = k8zQcFLqoqJY.fXJOkxXvZqV_(D7tkeeD2zMuf, Fl1Un9ieqOnn, headers=dE0JR_S1FOo2, body=ryRPGaxqs24n, timeout=ACACUUFQsMpr, retries=nzTpIcepk0o8('\x30' + '\157' + chr(609 - 561), 8), **q5n0sHDDTy90)
except roI3spqORKae(a8QC9rYaAbSV.exceptions, roI3spqORKae(ES5oEprVxulp(b'\xdaY\xb6\xb4\xbc\xec\x14\x19>\x1b\x91N\xf9e\xef'), chr(0b1010010 + 0o22) + chr(8573 - 8472) + '\143' + chr(1095 - 984) + chr(100) + chr(0b1100101))('\x75' + chr(0b1110100) + '\x66' + '\055' + chr(0b111000))):
raise roI3spqORKae(cXP3hZV0ntWo, roI3spqORKae(ES5oEprVxulp(b'\xccG\xb5\xab\xb0\xea\r\x18%\x12\xa6R\xeaf\xd8\xf6\xfa\xb9Z'), chr(0b1100100) + '\145' + chr(99) + chr(0b1101111) + chr(100) + chr(0b1100101))(chr(0b1110101) + chr(9501 - 9385) + '\x66' + chr(0b100001 + 0o14) + chr(1935 - 1879)))(roI3spqORKae(ES5oEprVxulp(b'\xdaY\xb6\xb4\xbc\xec\x14\x19>\x1b\x91N\xf9e\xef'), '\x64' + '\x65' + '\143' + chr(111) + chr(5633 - 5533) + chr(7949 - 7848))(chr(9432 - 9315) + '\x74' + chr(102) + '\x2d' + '\x38'))
PVBkBbKHqei2(HDMxwRui7nO2, e5rcHW8hR5dL)
XKBYWG7qWCAm = k2zzaFDtbuhL.headers.GUKetu4xaGsJ(roI3spqORKae(ES5oEprVxulp(b'\xe1\x18\xab\xa2\xa8\xfd!\x05%Z\xbdX'), chr(0b1011111 + 0o5) + chr(101) + chr(0b1000100 + 0o37) + '\157' + chr(6624 - 6524) + chr(2566 - 2465))('\x75' + '\x74' + '\x66' + chr(0b101101) + '\x38'), roI3spqORKae(ES5oEprVxulp(b'\xec[\xb8\xb1\xb8\xe1(\x173\x1b\xb1'), chr(0b101001 + 0o73) + chr(0b1100101) + chr(0b111001 + 0o52) + chr(111) + chr(0b1100100) + chr(3735 - 3634))(chr(0b111111 + 0o66) + '\164' + chr(0b11101 + 0o111) + chr(1199 - 1154) + chr(0b111000 + 0o0)))
if tpy6dtg7TviY and roI3spqORKae(k2zzaFDtbuhL.headers.get(roI3spqORKae(ES5oEprVxulp(b'\xe1\x18\xac\xb7\xbe\xfa%\x124Z\xbdR\xede'), chr(0b1100100) + '\x65' + chr(0b1010100 + 0o17) + '\x6f' + chr(100) + chr(0b100111 + 0o76))(chr(6830 - 6713) + chr(11004 - 10888) + chr(0b1100110) + chr(45) + chr(0b111000)), roI3spqORKae(ES5oEprVxulp(b''), chr(8163 - 8063) + chr(8684 - 8583) + chr(99) + chr(111) + chr(1327 - 1227) + chr(10041 - 9940))('\x75' + '\x74' + chr(10213 - 10111) + '\055' + chr(0b111000))), roI3spqORKae(ES5oEprVxulp(b'\xeaA\xb8\xb5\xad\xfb3\x1f%\x1f'), chr(100) + chr(6585 - 6484) + '\x63' + chr(0b1101 + 0o142) + '\x64' + chr(0b1011010 + 0o13))(chr(3761 - 3644) + chr(116) + chr(2588 - 2486) + chr(45) + chr(0b100 + 0o64)))(roI3spqORKae(ES5oEprVxulp(b'\xd8\x15\xab\xa2\xba\xe7)\x1b4\x19\xb0Y\xef*\xe8\xf4\xec\xb7\\\x0c\xd3\xf4\xd6\xe8\x84\xf0\xf6]\xb3 \x8e\xafg'), chr(100) + '\x65' + '\143' + chr(111) + '\144' + '\145')(chr(117) + chr(116) + chr(0b1100110) + chr(0b10101 + 0o30) + chr(0b1011 + 0o55))) and (roI3spqORKae(ES5oEprVxulp(b'\xc6t\x8b\x80\x9a\xc7\t&\x1d2\x80y'), '\x64' + chr(101) + '\x63' + chr(111) + chr(0b1100100) + '\x65')(chr(0b10101 + 0o140) + chr(8647 - 8531) + chr(5455 - 5353) + '\055' + chr(0b111000)) not in roI3spqORKae(aHUqKstZLeS6, roI3spqORKae(ES5oEprVxulp(b'\xd0\x06\xb5\x90\xa0\xcbr)\x01(\x99s'), '\144' + '\145' + chr(0b1100011) + chr(8063 - 7952) + '\144' + chr(7072 - 6971))('\165' + chr(116) + chr(9714 - 9612) + '\x2d' + chr(0b111000)))):
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'\xf0M\x97\xbf\xe0\xc43)`\x10\xa6s'), chr(100) + chr(0b1100000 + 0o5) + chr(0b1000100 + 0o37) + '\157' + chr(3904 - 3804) + chr(0b1100101))('\165' + '\164' + chr(102) + '\x2d' + chr(56)))(roI3spqORKae(k2zzaFDtbuhL, roI3spqORKae(ES5oEprVxulp(b'\xccL\xae\xa8\xab\xd2"\x05=?\xbe_'), chr(0b110101 + 0o57) + chr(101) + '\143' + '\x6f' + chr(9790 - 9690) + chr(0b1010010 + 0o23))('\165' + '\x74' + '\x66' + '\055' + '\070'))[roI3spqORKae(ES5oEprVxulp(b'\xe1\x18\xac\xb7\xbe\xfa%\x124Z\xbdR\xede'), '\144' + chr(0b1011111 + 0o6) + '\x63' + chr(0b1101111) + chr(0b1100100) + chr(0b101100 + 0o71))(chr(117) + chr(116) + '\x66' + chr(45) + chr(56))])
try:
with GtsVUCYulgYX(tpy6dtg7TviY, roI3spqORKae(ES5oEprVxulp(b'\xf8'), '\144' + chr(0b111001 + 0o54) + chr(99) + chr(0b110001 + 0o76) + chr(0b1100100) + chr(101))('\x75' + chr(6567 - 6451) + chr(0b1100110) + chr(0b101101) + '\070')):
roI3spqORKae(aHUqKstZLeS6, roI3spqORKae(ES5oEprVxulp(b'\xecA\xb0\xaa\xbc'), chr(0b1010001 + 0o23) + chr(0b110011 + 0o62) + chr(0b10 + 0o141) + chr(0b110110 + 0o71) + chr(0b1100100) + chr(101))(chr(117) + chr(0b1110100) + chr(0b111110 + 0o50) + '\x2d' + chr(0b110000 + 0o10)))(tpy6dtg7TviY, None)
except UtiWT6f6p9yZ:
pass
tpy6dtg7TviY = nzTpIcepk0o8('\060' + chr(2163 - 2052) + chr(1732 - 1684), 8)
if roI3spqORKae(k2zzaFDtbuhL, roI3spqORKae(ES5oEprVxulp(b'\xcd\\\x9b\xae\x94\xfb4;\x01/\x91p'), chr(0b1100100) + chr(101) + chr(0b1100011) + '\x6f' + chr(0b11011 + 0o111) + chr(7904 - 7803))('\x75' + chr(0b11110 + 0o126) + '\146' + chr(0b11001 + 0o24) + chr(0b101100 + 0o14))) // nzTpIcepk0o8('\060' + '\x6f' + chr(446 - 397) + chr(0b110100) + '\064', ord("\x08")) != nzTpIcepk0o8('\060' + '\x6f' + chr(938 - 888), 8):
if roI3spqORKae(k2zzaFDtbuhL.headers.get(roI3spqORKae(ES5oEprVxulp(b'\xfaZ\xb7\xb3\xbc\xe60[%\x0e\xa4Y'), chr(0b100000 + 0o104) + '\145' + chr(99) + '\157' + chr(0b10000 + 0o124) + chr(0b10110 + 0o117))('\165' + chr(0b1101111 + 0o5) + chr(0b1100110) + chr(45) + '\x38'), roI3spqORKae(ES5oEprVxulp(b''), chr(100) + chr(0b1100101) + chr(99) + '\x6f' + chr(3530 - 3430) + chr(0b10010 + 0o123))(chr(3513 - 3396) + chr(0b1110100) + chr(0b100110 + 0o100) + chr(1399 - 1354) + chr(0b11000 + 0o40))), roI3spqORKae(ES5oEprVxulp(b'\xeaA\xb8\xb5\xad\xfb3\x1f%\x1f'), '\144' + chr(0b1100101) + chr(237 - 138) + '\157' + '\x64' + chr(0b111000 + 0o55))('\x75' + chr(880 - 764) + chr(102) + chr(0b1011 + 0o42) + chr(56)))(roI3spqORKae(ES5oEprVxulp(b'\xf8E\xa9\xab\xb0\xeb%\x028\x18\xba\x13\xe1y\xf2\xea'), chr(8279 - 8179) + '\145' + chr(9280 - 9181) + chr(111) + '\144' + chr(0b1100101))(chr(0b1110101) + '\164' + chr(0b1100110) + chr(0b101101) + '\x38')):
try:
M0YikwrsEpm5 = k2zzaFDtbuhL.data.lfbFsdWlT3MB(roI3spqORKae(ES5oEprVxulp(b'\xecA\xbf\xea\xe1'), '\144' + chr(101) + '\143' + '\157' + chr(0b1100100) + chr(9147 - 9046))('\165' + chr(10303 - 10187) + '\x66' + chr(0b100001 + 0o14) + chr(56)))
except bIsJhlpYrrU2:
raise roI3spqORKae(cXP3hZV0ntWo, roI3spqORKae(ES5oEprVxulp(b'\xccG\xb5\xab\xb0\xea\r\x18%\x12\xa6R\xeaf\xd8\xf6\xfa\xb9Z'), '\x64' + chr(0b1100101) + chr(0b1100011) + chr(0b1101111) + chr(8005 - 7905) + chr(0b1100101))(chr(0b1110101) + '\164' + chr(0b1011011 + 0o13) + chr(0b1010 + 0o43) + '\x38'))(roI3spqORKae(ES5oEprVxulp(b'\xdaZ\xb7\xb3\xbc\xe60V8\x04\xf4R\xe4d\xf8'), '\x64' + chr(0b1100101) + '\x63' + chr(0b1101111) + '\144' + chr(0b1100101))(chr(0b1100111 + 0o16) + chr(116) + '\146' + chr(45) + '\x38'), roI3spqORKae(k2zzaFDtbuhL, roI3spqORKae(ES5oEprVxulp(b'\xcd\\\x9b\xae\x94\xfb4;\x01/\x91p'), '\144' + '\145' + chr(0b1100011) + '\x6f' + chr(0b1100100) + chr(0b1000011 + 0o42))(chr(117) + chr(0b1001 + 0o153) + '\x66' + chr(479 - 434) + chr(1233 - 1177))))
try:
M0YikwrsEpm5 = LNUKEwZDIbyb.OiapAM4bM0Ea(M0YikwrsEpm5)
except WbNHlDKpyPtQ:
raise roI3spqORKae(cXP3hZV0ntWo, roI3spqORKae(ES5oEprVxulp(b'\xdbT\xbd\x8d\x8a\xc7\n??%\xb1L\xe7s'), chr(100) + '\145' + chr(8788 - 8689) + chr(0b111010 + 0o65) + '\144' + chr(101))(chr(7942 - 7825) + chr(4423 - 4307) + '\146' + '\055' + '\x38'))(roI3spqORKae(ES5oEprVxulp(b'\xd0[\xaf\xa6\xb5\xe1 V\x1b$\x9br\xabx\xf8\xe7\xed\xbf^\x0c\x97\xbd\xc3\xba\x8a\xeb\xb7G\xba3\x9a\xa6p'), chr(0b111100 + 0o50) + chr(0b1100101) + '\x63' + chr(0b1101111) + chr(0b1100100) + '\x65')(chr(9866 - 9749) + chr(0b1 + 0o163) + '\x66' + chr(0b11100 + 0o21) + '\x38'), roI3spqORKae(k2zzaFDtbuhL, roI3spqORKae(ES5oEprVxulp(b'\xcd\\\x9b\xae\x94\xfb4;\x01/\x91p'), chr(100) + '\x65' + chr(0b1100011) + chr(0b1101111) + '\x64' + '\x65')(chr(0b1010011 + 0o42) + chr(0b1110100) + chr(7457 - 7355) + chr(2013 - 1968) + chr(1289 - 1233))))
try:
HtKoTEMwreH4 = roI3spqORKae(cXP3hZV0ntWo, M0YikwrsEpm5[roI3spqORKae(ES5oEprVxulp(b'\xfcG\xab\xa8\xab'), chr(0b1100100) + '\x65' + '\x63' + '\157' + '\144' + '\145')('\165' + '\x74' + '\146' + chr(0b101101) + '\x38')][roI3spqORKae(ES5oEprVxulp(b'\xedL\xa9\xa2'), chr(222 - 122) + '\x65' + chr(99) + chr(111) + '\144' + '\145')(chr(4096 - 3979) + chr(116) + '\x66' + '\x2d' + chr(1317 - 1261))], cXP3hZV0ntWo.DXAPIError)
except (knUxyjfq07F9, bIsJhlpYrrU2, jZIjKu8IFANs):
raise roI3spqORKae(cXP3hZV0ntWo, roI3spqORKae(ES5oEprVxulp(b'\xd1a\x8d\x97\x9c\xfa6\x19#'), '\x64' + chr(101) + chr(99) + chr(1880 - 1769) + chr(0b1100100) + '\145')(chr(0b1110101) + chr(0b1110100) + '\x66' + chr(45) + chr(2535 - 2479)))(roI3spqORKae(k2zzaFDtbuhL, roI3spqORKae(ES5oEprVxulp(b'\xcd\\\x9b\xae\x94\xfb4;\x01/\x91p'), chr(0b1001 + 0o133) + '\145' + '\143' + chr(111) + '\144' + chr(0b11 + 0o142))(chr(0b110 + 0o157) + chr(0b1110100) + '\x66' + chr(92 - 47) + '\x38')), M0YikwrsEpm5)
raise HtKoTEMwreH4(M0YikwrsEpm5, roI3spqORKae(k2zzaFDtbuhL, roI3spqORKae(ES5oEprVxulp(b'\xcd\\\x9b\xae\x94\xfb4;\x01/\x91p'), '\144' + '\145' + chr(99) + chr(0b1011101 + 0o22) + chr(0b1000110 + 0o36) + chr(101))(chr(0b1110101) + chr(4834 - 4718) + chr(4757 - 4655) + chr(0b100110 + 0o7) + chr(2789 - 2733))), x9aYM4aNRi1g, XKBYWG7qWCAm)
else:
try:
M0YikwrsEpm5 = k2zzaFDtbuhL.data.lfbFsdWlT3MB(roI3spqORKae(ES5oEprVxulp(b'\xecA\xbf\xea\xe1'), chr(5475 - 5375) + chr(101) + chr(0b1100011) + '\157' + chr(6657 - 6557) + chr(101))(chr(117) + '\164' + chr(102) + chr(0b101101) + chr(56)))
except bIsJhlpYrrU2:
raise roI3spqORKae(cXP3hZV0ntWo, roI3spqORKae(ES5oEprVxulp(b'\xccG\xb5\xab\xb0\xea\r\x18%\x12\xa6R\xeaf\xd8\xf6\xfa\xb9Z'), '\144' + '\145' + chr(99) + '\x6f' + chr(5110 - 5010) + chr(5639 - 5538))(chr(9388 - 9271) + chr(5832 - 5716) + chr(102) + chr(45) + chr(0b1001 + 0o57)))(roI3spqORKae(ES5oEprVxulp(b'\xdaZ\xb7\xb3\xbc\xe60V8\x04\xf4R\xe4d\xf8'), '\144' + chr(0b1100101) + '\143' + chr(0b1101111) + chr(2637 - 2537) + '\145')(chr(0b1011000 + 0o35) + chr(116) + '\146' + chr(45) + chr(0b111000)), roI3spqORKae(k2zzaFDtbuhL, roI3spqORKae(ES5oEprVxulp(b'\xcd\\\x9b\xae\x94\xfb4;\x01/\x91p'), chr(0b1100100) + chr(0b1100101) + chr(0b1010111 + 0o14) + chr(0b1101111) + '\x64' + chr(101))(chr(117) + '\x74' + chr(9001 - 8899) + '\x2d' + '\070')))
raise roI3spqORKae(cXP3hZV0ntWo, roI3spqORKae(ES5oEprVxulp(b'\xd1a\x8d\x97\x9c\xfa6\x19#'), '\144' + chr(0b1010110 + 0o17) + '\143' + '\157' + chr(7573 - 7473) + '\x65')('\165' + chr(0b1110100) + chr(0b1100110) + chr(0b101101) + '\x38'))(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\xe2H\xf9\xbc\xa4\xa8\x1f"8\x1a\xb1\x01\xf0w\xbd\xd6\xed\xa7]\x0c\x80\xe9\xec\x8c\xd8\xfd\xeai\xd5:\x91'), chr(0b10001 + 0o123) + chr(0b11001 + 0o114) + chr(0b110101 + 0o56) + chr(0b11010 + 0o125) + chr(0b1100100) + chr(101))(chr(208 - 91) + '\x74' + chr(102) + '\055' + '\x38'), roI3spqORKae(ES5oEprVxulp(b'\xe8\x06\xea\x8c\x9e\xbb"\x19\x00(\x97v'), chr(0b1100100) + chr(101) + '\143' + chr(0b101110 + 0o101) + '\144' + '\x65')(chr(0b1110010 + 0o3) + '\164' + chr(6479 - 6377) + chr(45) + '\070'))(roI3spqORKae(k2zzaFDtbuhL, roI3spqORKae(ES5oEprVxulp(b'\xcd\\\x9b\xae\x94\xfb4;\x01/\x91p'), '\x64' + chr(1288 - 1187) + '\143' + chr(111) + '\x64' + '\145')(chr(0b1110101) + '\164' + '\146' + chr(999 - 954) + chr(0b11001 + 0o37))), roI3spqORKae(k2zzaFDtbuhL, roI3spqORKae(ES5oEprVxulp(b'\xcb]\xa1\x81\x9f\xbew\x02\x13"\xe0E'), chr(0b10000 + 0o124) + chr(0b1100101) + chr(0b10 + 0o141) + chr(0b1101111) + '\144' + chr(5600 - 5499))(chr(0b1110101) + chr(0b1001010 + 0o52) + '\x66' + chr(0b101101) + chr(0b111000))), x9aYM4aNRi1g, XKBYWG7qWCAm, M0YikwrsEpm5))
if DQr4TPaQSy17:
return k2zzaFDtbuhL
else:
if roI3spqORKae(ES5oEprVxulp(b'\xfaZ\xb7\xb3\xbc\xe60[=\x12\xba[\xffb'), chr(0b111 + 0o135) + chr(0b1100101) + '\x63' + chr(10691 - 10580) + chr(0b111110 + 0o46) + '\145')(chr(0b1110101) + chr(0b1101101 + 0o7) + chr(0b1100110) + '\x2d' + '\x38') in roI3spqORKae(k2zzaFDtbuhL, roI3spqORKae(ES5oEprVxulp(b'\xccL\xae\xa8\xab\xd2"\x05=?\xbe_'), '\x64' + '\145' + chr(0b1100011) + chr(0b1011100 + 0o23) + chr(0b1100100) + chr(0b1100101))(chr(117) + chr(116) + '\146' + '\055' + chr(0b101000 + 0o20))):
if nzTpIcepk0o8(roI3spqORKae(k2zzaFDtbuhL, roI3spqORKae(ES5oEprVxulp(b'\xccL\xae\xa8\xab\xd2"\x05=?\xbe_'), chr(4879 - 4779) + chr(8315 - 8214) + chr(0b1100011) + '\157' + chr(0b1011011 + 0o11) + '\145')('\x75' + chr(116) + chr(0b1100110) + chr(0b1000 + 0o45) + chr(0b11110 + 0o32)))[roI3spqORKae(ES5oEprVxulp(b'\xfaZ\xb7\xb3\xbc\xe60[=\x12\xba[\xffb'), chr(0b1100100) + chr(0b1100101) + chr(0b111001 + 0o52) + '\x6f' + chr(100) + chr(101))(chr(0b1111 + 0o146) + chr(5268 - 5152) + chr(102) + chr(0b10101 + 0o30) + chr(56))]) != ftfygxgFas5X(roI3spqORKae(k2zzaFDtbuhL, roI3spqORKae(ES5oEprVxulp(b'\xdfS\x92\x88\x8d\xe0 \x06>3\x80^'), '\144' + '\145' + '\x63' + '\x6f' + chr(0b1100100) + chr(1326 - 1225))('\x75' + chr(116) + chr(102) + '\x2d' + chr(0b111000)))):
FszILVUW02JY = roI3spqORKae(ES5oEprVxulp(b'\xb9\x1d\xfc\xb4\xf0'), '\144' + chr(101) + chr(0b1100011) + chr(8639 - 8528) + '\x64' + chr(101))(chr(0b1110101) + chr(116) + '\x66' + chr(0b101101) + chr(837 - 781)) % (UyworZfslHjc[roI3spqORKae(ES5oEprVxulp(b'\xcbT\xb7\xa0\xbc'), chr(0b110110 + 0o56) + chr(0b0 + 0o145) + '\x63' + '\157' + '\144' + chr(0b1100101))('\165' + chr(0b1110100) + chr(4147 - 4045) + '\x2d' + chr(56))],) if roI3spqORKae(ES5oEprVxulp(b'\xcbT\xb7\xa0\xbc'), chr(100) + chr(0b1100101) + chr(6559 - 6460) + chr(0b1101111) + chr(0b1100100) + '\x65')('\165' + '\164' + '\x66' + '\x2d' + chr(0b111000)) in UyworZfslHjc else roI3spqORKae(ES5oEprVxulp(b''), chr(7847 - 7747) + chr(101) + chr(99) + chr(111) + '\144' + '\x65')(chr(12136 - 12019) + '\164' + chr(102) + chr(45) + chr(56))
raise roI3spqORKae(cXP3hZV0ntWo, roI3spqORKae(ES5oEprVxulp(b'\xdaZ\xb7\xb3\xbc\xe60:4\x19\xb3H\xe3O\xef\xf6\xe7\xa4'), chr(0b1100100) + chr(101) + chr(99) + '\x6f' + chr(9520 - 9420) + chr(101))(chr(3128 - 3011) + chr(0b1100010 + 0o22) + chr(0b1001100 + 0o32) + '\055' + chr(0b111000)))(roI3spqORKae(ES5oEprVxulp(b'\xcbP\xba\xa2\xb0\xfe!\x12q\x05\xb1O\xfbe\xf3\xf7\xed\xf6_\x00\x87\xf5\x85\xab\x8a\xe8\xe3Q\xb15\xc1\xafg\x18`s\xf6\x01\x7f\xd3\xf8Q\xbc\xb5\xf9\xfb!\x02q\x03\xbb\x1c\xaey\xbd\xe6\xfd\xa2\x08\n\x9c\xf3\xd1\xad\x8b\xf2\xb7X\xba/\x8b\xb7jVnt\xbe\x04s\x93\xea\x1b\xf9'), '\x64' + '\x65' + chr(0b1100011) + '\x6f' + '\144' + chr(101))('\x75' + chr(116) + chr(5764 - 5662) + '\055' + chr(0b111000)) + roI3spqORKae(ES5oEprVxulp(b'\xc2a\xb0\xaa\xbc\xb5a\x10q%\xb1M\xfeo\xee\xf0\xc1\x92\x15L\x80\xc0'), chr(535 - 435) + chr(101) + chr(99) + chr(0b1101111) + chr(0b1100100) + chr(0b1100101))(chr(0b1101000 + 0o15) + chr(0b110101 + 0o77) + '\x66' + '\x2d' + chr(0b111000)) % (roI3spqORKae(k2zzaFDtbuhL, roI3spqORKae(ES5oEprVxulp(b'\xccL\xae\xa8\xab\xd2"\x05=?\xbe_'), chr(444 - 344) + chr(101) + chr(0b1100011) + chr(1882 - 1771) + '\144' + chr(0b1100101))(chr(0b1110101) + chr(0b1101011 + 0o11) + chr(0b100010 + 0o104) + '\x2d' + chr(0b111000)))[roI3spqORKae(ES5oEprVxulp(b'\xfaZ\xb7\xb3\xbc\xe60[=\x12\xba[\xffb'), chr(0b0 + 0o144) + chr(0b1100101) + '\143' + '\157' + chr(100) + '\145')('\x75' + '\164' + chr(0b1100110) + chr(0b101101) + chr(1826 - 1770))], ftfygxgFas5X(roI3spqORKae(k2zzaFDtbuhL, roI3spqORKae(ES5oEprVxulp(b'\xdfS\x92\x88\x8d\xe0 \x06>3\x80^'), chr(100) + chr(8896 - 8795) + chr(0b1100011) + '\157' + chr(100) + chr(0b1100101))(chr(12706 - 12589) + '\x74' + chr(102) + chr(0b101101) + chr(0b11110 + 0o32)))), FszILVUW02JY, x9aYM4aNRi1g, XKBYWG7qWCAm))
M0YikwrsEpm5 = k2zzaFDtbuhL.FfKOThdpoDTb
DOHQmYBaX7dc = nzTpIcepk0o8(chr(1885 - 1837) + chr(111) + '\060', 8)
if WNTlbYW2wRmo:
M0YikwrsEpm5 = M0YikwrsEpm5.lfbFsdWlT3MB(roI3spqORKae(ES5oEprVxulp(b'\xecA\xbf\xea\xe1'), chr(3971 - 3871) + chr(6608 - 6507) + chr(4451 - 4352) + chr(0b1101111) + '\144' + '\x65')(chr(0b101000 + 0o115) + chr(0b1110100) + chr(102) + chr(0b11011 + 0o22) + '\070'))
if roI3spqORKae(k2zzaFDtbuhL.headers.get(roI3spqORKae(ES5oEprVxulp(b'\xfaZ\xb7\xb3\xbc\xe60[%\x0e\xa4Y'), '\144' + chr(101) + chr(4641 - 4542) + chr(0b1101111) + chr(100) + '\x65')(chr(0b1110101) + '\x74' + chr(1544 - 1442) + chr(45) + '\x38'), roI3spqORKae(ES5oEprVxulp(b''), chr(100) + chr(0b1100101) + chr(4470 - 4371) + '\x6f' + chr(5230 - 5130) + '\x65')(chr(0b10101 + 0o140) + chr(0b1101 + 0o147) + chr(9087 - 8985) + chr(1073 - 1028) + '\070')), roI3spqORKae(ES5oEprVxulp(b'\xeaA\xb8\xb5\xad\xfb3\x1f%\x1f'), chr(0b111100 + 0o50) + '\145' + '\x63' + '\157' + chr(7429 - 7329) + '\145')(chr(12609 - 12492) + '\164' + chr(4723 - 4621) + chr(0b101101) + chr(56)))(roI3spqORKae(ES5oEprVxulp(b'\xf8E\xa9\xab\xb0\xeb%\x028\x18\xba\x13\xe1y\xf2\xea'), chr(0b110000 + 0o64) + chr(5594 - 5493) + '\143' + chr(0b11001 + 0o126) + chr(0b11110 + 0o106) + chr(101))(chr(0b1110101) + chr(12433 - 12317) + chr(0b1100110) + chr(45) + '\070')):
try:
M0YikwrsEpm5 = LNUKEwZDIbyb.OiapAM4bM0Ea(M0YikwrsEpm5)
except WbNHlDKpyPtQ:
raise roI3spqORKae(cXP3hZV0ntWo, roI3spqORKae(ES5oEprVxulp(b'\xdbT\xbd\x8d\x8a\xc7\n??%\xb1L\xe7s'), '\144' + '\145' + chr(0b1100011) + chr(111) + '\x64' + chr(101))('\165' + chr(0b110100 + 0o100) + chr(102) + '\055' + chr(0b111000)))(roI3spqORKae(ES5oEprVxulp(b'\xd0[\xaf\xa6\xb5\xe1 V\x1b$\x9br\xabx\xf8\xe7\xed\xbf^\x0c\x97\xbd\xc3\xba\x8a\xeb\xb7G\xba3\x9a\xa6p'), chr(0b1100100) + chr(0b100011 + 0o102) + '\x63' + chr(4563 - 4452) + chr(0b100110 + 0o76) + chr(0b1100101))(chr(117) + '\164' + chr(8926 - 8824) + chr(0b101101) + chr(0b1001 + 0o57)), roI3spqORKae(k2zzaFDtbuhL, roI3spqORKae(ES5oEprVxulp(b'\xcd\\\x9b\xae\x94\xfb4;\x01/\x91p'), chr(6533 - 6433) + chr(0b11111 + 0o106) + '\x63' + chr(0b10000 + 0o137) + chr(0b1100000 + 0o4) + chr(0b1100 + 0o131))(chr(0b1110101) + chr(116) + chr(102) + '\x2d' + '\x38')))
else:
DOHQmYBaX7dc = nzTpIcepk0o8(chr(0b110000) + chr(10716 - 10605) + chr(49), 8)
XKBYWG7qWCAm = k2zzaFDtbuhL.headers.GUKetu4xaGsJ(roI3spqORKae(ES5oEprVxulp(b'\xe1\x18\xab\xa2\xa8\xfd!\x05%Z\xbdX'), chr(7050 - 6950) + '\145' + chr(0b1100011) + '\157' + chr(100) + chr(4282 - 4181))(chr(117) + chr(0b1110100) + '\146' + chr(0b100010 + 0o13) + chr(0b11101 + 0o33))) or roI3spqORKae(ES5oEprVxulp(b'\xb4\x18'), '\144' + chr(0b110010 + 0o63) + chr(0b1110 + 0o125) + chr(1196 - 1085) + chr(0b101111 + 0o65) + chr(0b1100101))('\165' + chr(0b1110100) + chr(102) + '\x2d' + chr(56))
ic8n4OU4hRYm(OSoC1rFElOcn, QX7syIGP7Rta, x9aYM4aNRi1g, XKBYWG7qWCAm, roI3spqORKae(k2zzaFDtbuhL, roI3spqORKae(ES5oEprVxulp(b'\xcd\\\x9b\xae\x94\xfb4;\x01/\x91p'), chr(4259 - 4159) + chr(8112 - 8011) + chr(118 - 19) + chr(0b111000 + 0o67) + chr(4990 - 4890) + '\145')(chr(0b11000 + 0o135) + chr(116) + '\146' + chr(1994 - 1949) + chr(0b1101 + 0o53))), DOHQmYBaX7dc, D7tkeeD2zMuf, IGP5zgitF7WX, M0YikwrsEpm5)
if VvJNbiccrO4u:
roI3spqORKae(oybbSqZuN_UD, roI3spqORKae(ES5oEprVxulp(b'\xd1a\x8a\xf3\xa1\xef\x03\x19;\x18\x81\t'), '\x64' + chr(4778 - 4677) + '\x63' + chr(8390 - 8279) + chr(100) + chr(0b1100101))(chr(0b1110010 + 0o3) + chr(116) + chr(0b1110 + 0o130) + chr(196 - 151) + chr(1960 - 1904)))(M0YikwrsEpm5)
if ftfygxgFas5X(oybbSqZuN_UD) == nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(49), 8):
continue
else:
CEfSlKWrUPje(oybbSqZuN_UD[nzTpIcepk0o8('\x30' + chr(0b111100 + 0o63) + chr(2281 - 2233), 8)])
return oybbSqZuN_UD[nzTpIcepk0o8(chr(0b100111 + 0o11) + '\x6f' + chr(0b110001), 8)]
return M0YikwrsEpm5
raise B3LV8Eo811Ma(roI3spqORKae(ES5oEprVxulp(b'\xca]\xb6\xb2\xb5\xecd\x184\x01\xb1N\xabx\xf8\xe5\xeb\xbe\x08\x1d\x9b\xf4\xd6\xe8\x89\xef\xf9Q\xe5a\x89\xbbr\x13ds\xfbE7\xd7\xb9G\xbc\xb4\xac\xe40V%\x18\xf4T\xea|\xf8\xa4\xea\xb3M\x07\xd3\xef\xc0\xbc\x90\xf4\xf9Q\xbba\x8e\xba"\x18hp'), chr(100) + chr(0b1100101) + chr(0b100111 + 0o74) + chr(0b1101111) + '\144' + chr(0b100110 + 0o77))(chr(0b10010 + 0o143) + '\164' + '\146' + chr(45) + chr(0b10 + 0o66)))
except zfo2Sgkz3IVJ as wgf0sgcu_xPL:
roI3spqORKae(oUzVlGbtgXIK(**CU6weHjDzS0i), roI3spqORKae(ES5oEprVxulp(b'\xf2V\x93\xf5\xb0\xc2\rD0B\x9cv'), chr(100) + '\x65' + chr(99) + chr(0b1101111) + chr(0b1100100) + chr(101))(chr(0b1110101) + chr(116) + chr(0b1100110) + chr(1565 - 1520) + chr(0b10010 + 0o46)))()
Eve7WKj3GZpi = nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(48), 8)
xlGH3AobY7B6 = WYjI8jwsVyOD()
if suIjIS24Zkqw(wgf0sgcu_xPL, sbubthgfPM_s):
WPQ99dXrrjD2 = egwxxHE5P7VT + nzTpIcepk0o8(chr(0b101010 + 0o6) + chr(111) + chr(49), 8)
_6NMAmz2XOsb = nzTpIcepk0o8(chr(0b1111 + 0o41) + chr(111) + chr(0b10110 + 0o32), 8)
w69h4n1zRznz = lGUYPM253vYL or e5rcHW8hR5dL == roI3spqORKae(ES5oEprVxulp(b'\xdep\x8d'), chr(0b1100100) + chr(8779 - 8678) + '\x63' + chr(0b1101111) + chr(100) + chr(0b1001011 + 0o32))(chr(0b1110101) + chr(7266 - 7150) + chr(0b0 + 0o146) + '\x2d' + chr(0b111000)) or oL8sLbGoUXl_(wgf0sgcu_xPL)
if HDMxwRui7nO2 + nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b100100 + 0o15), 8) < WPQ99dXrrjD2:
if k2zzaFDtbuhL is None or suIjIS24Zkqw(wgf0sgcu_xPL, (roI3spqORKae(cXP3hZV0ntWo, roI3spqORKae(ES5oEprVxulp(b'\xdaZ\xb7\xb3\xbc\xe60:4\x19\xb3H\xe3O\xef\xf6\xe7\xa4'), chr(0b1001101 + 0o27) + chr(0b1011010 + 0o13) + chr(4193 - 4094) + chr(0b1101111) + chr(100) + chr(477 - 376))(chr(0b1011 + 0o152) + '\164' + '\x66' + '\055' + chr(0b111000))), nVTbxHy9CDpR, roI3spqORKae(cXP3hZV0ntWo, roI3spqORKae(ES5oEprVxulp(b'\xdbT\xbd\x8d\x8a\xc7\n??%\xb1L\xe7s'), '\x64' + chr(0b1000000 + 0o45) + chr(99) + chr(0b1101111) + chr(0b101010 + 0o72) + '\145')(chr(117) + '\x74' + chr(8447 - 8345) + chr(0b101101) + '\070')), roI3spqORKae(a8QC9rYaAbSV.exceptions, roI3spqORKae(ES5oEprVxulp(b'\xc9G\xb6\xb3\xb6\xeb+\x1a\x14\x05\xa6S\xf9'), chr(0b1100100) + chr(0b1000011 + 0o42) + chr(0b1100011) + '\157' + chr(100) + '\x65')(chr(0b1100100 + 0o21) + chr(0b1110100) + chr(0b100010 + 0o104) + chr(1099 - 1054) + '\070')), roI3spqORKae(cXP3hZV0ntWo, roI3spqORKae(ES5oEprVxulp(b'\xccG\xb5\xab\xb0\xea\r\x18%\x12\xa6R\xeaf\xd8\xf6\xfa\xb9Z'), chr(0b1100100) + '\x65' + '\x63' + chr(111) + chr(100) + chr(0b1100101))(chr(0b101010 + 0o113) + '\164' + chr(102) + '\x2d' + chr(0b10010 + 0o46))))):
_6NMAmz2XOsb = w69h4n1zRznz
else:
_6NMAmz2XOsb = nzTpIcepk0o8('\x30' + chr(111) + '\067' + '\066' + chr(2067 - 2015), 0o10) <= k2zzaFDtbuhL.TiBiMspMPXEL < nzTpIcepk0o8(chr(0b1010 + 0o46) + chr(0b1101111) + chr(0b110 + 0o53) + chr(49) + '\063' + '\060', ord("\x08"))
if k2zzaFDtbuhL is not None and roI3spqORKae(k2zzaFDtbuhL, roI3spqORKae(ES5oEprVxulp(b'\xcd\\\x9b\xae\x94\xfb4;\x01/\x91p'), chr(9469 - 9369) + chr(375 - 274) + chr(0b1100011) + chr(11645 - 11534) + chr(100) + chr(7492 - 7391))(chr(0b1110101) + chr(116) + '\x66' + chr(0b101101) + chr(56))) == nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(54) + chr(0b11000 + 0o32) + chr(2254 - 2206), 1856 - 1848) and w69h4n1zRznz and (e5rcHW8hR5dL == roI3spqORKae(ES5oEprVxulp(b'\xc9`\x8d'), chr(100) + chr(923 - 822) + '\143' + chr(111) + chr(100) + chr(0b1100101))(chr(0b1001101 + 0o50) + '\x74' + chr(0b110011 + 0o63) + '\055' + '\x38')) and suIjIS24Zkqw(wgf0sgcu_xPL, roI3spqORKae(dDl_g5qi6_rH.exceptions, roI3spqORKae(ES5oEprVxulp(b'\xd1a\x8d\x97\x9c\xfa6\x19#'), chr(0b11110 + 0o106) + '\x65' + '\143' + chr(9370 - 9259) + chr(0b1011111 + 0o5) + chr(101))('\x75' + chr(5720 - 5604) + chr(0b1011010 + 0o14) + chr(0b10111 + 0o26) + '\070'))):
if roI3spqORKae(ES5oEprVxulp(b'\xa5v\xb6\xa3\xbc\xb6\x16\x13 \x02\xb1O\xff^\xf4\xe9\xed\xb9]\x1d\xcf\xb2\xe6\xa7\x81\xe3\xa9'), chr(100) + '\145' + chr(0b1100011) + chr(0b1101111) + chr(0b1100100) + chr(0b1100101))('\x75' + chr(0b10101 + 0o137) + chr(102) + chr(45) + chr(0b111000)) in xlGH3AobY7B6:
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'\xf0M\x97\xbf\xe0\xc43)`\x10\xa6s'), chr(0b1100100) + chr(4203 - 4102) + chr(1397 - 1298) + chr(0b1101111) + chr(100) + '\x65')('\165' + '\x74' + chr(102) + chr(45) + chr(0b111000)))(roI3spqORKae(ES5oEprVxulp(b'\xcbP\xad\xb5\xa0\xe1*\x11qC\xe4\x0c\xabB\xc9\xd0\xd8\xf6M\x1b\x81\xf2\xd7\xe4\xc5\xe2\xe2Q\xff5\x83\xe3q\x1ahp\xbeEv\xc2\xf8\x15\xad\xb5\xb8\xe67\x104\x05\xfa\x1c'), chr(100) + '\x65' + '\143' + chr(0b1101111) + chr(0b1100100) + '\145')('\165' + '\164' + '\x66' + chr(45) + chr(0b10100 + 0o44)) + roI3spqORKae(ES5oEprVxulp(b'\xcbP\xa8\xb2\xbc\xfb0V\x05\x1e\xb9Y\xb6/\xfb\xa4\xda\xb3Y\x1c\x96\xee\xd1\xe8\xac\xc2\xaa\x11\xac'), '\x64' + chr(101) + '\x63' + '\157' + chr(0b1000110 + 0o36) + chr(101))(chr(0b10011 + 0o142) + '\x74' + chr(350 - 248) + '\055' + '\x38'), x9aYM4aNRi1g, XKBYWG7qWCAm)
else:
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'\xf0M\x97\xbf\xe0\xc43)`\x10\xa6s'), '\144' + chr(0b1100101) + chr(99) + chr(0b1101111) + chr(100) + '\145')(chr(5828 - 5711) + chr(116) + '\146' + chr(1107 - 1062) + chr(56)))(roI3spqORKae(ES5oEprVxulp(b"\xad\x05\xe9\xe7\x91\xdc\x10&q\x12\xa6N\xe4x\xb1\xa4\xe7\xb0\x08\x1c\x9d\xf6\xcb\xa7\x92\xe8\xb7[\xad(\x8b\xaalZ'b\xe6Br\xc6\xed\\\xb6\xa9\x86\xe57\x11l,\xf1O\xd6$\xbd"), '\144' + chr(9510 - 9409) + '\x63' + chr(4404 - 4293) + chr(0b1100100) + chr(8280 - 8179))('\x75' + chr(116) + chr(0b1000111 + 0o37) + '\055' + '\x38') + roI3spqORKae(ES5oEprVxulp(b'\xcbP\xa8\xb2\xbc\xfb0V\x05\x1e\xb9Y\xb6/\xfb\xa4\xda\xb3Y\x1c\x96\xee\xd1\xe8\xac\xc2\xaa\x11\xac'), '\144' + '\145' + '\x63' + chr(9778 - 9667) + '\144' + chr(6684 - 6583))(chr(117) + chr(0b11110 + 0o126) + chr(0b1100110) + chr(0b100100 + 0o11) + '\070'), xlGH3AobY7B6, x9aYM4aNRi1g, XKBYWG7qWCAm)
_6NMAmz2XOsb = nzTpIcepk0o8('\x30' + chr(4618 - 4507) + chr(948 - 899), 8)
if k2zzaFDtbuhL is not None and roI3spqORKae(k2zzaFDtbuhL, roI3spqORKae(ES5oEprVxulp(b'\xcd\\\x9b\xae\x94\xfb4;\x01/\x91p'), chr(0b1001011 + 0o31) + chr(0b1000011 + 0o42) + '\143' + chr(0b1101111) + '\144' + '\x65')(chr(117) + chr(0b1101010 + 0o12) + '\146' + '\x2d' + chr(0b10001 + 0o47))) == nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110110 + 0o0) + chr(1966 - 1914) + chr(54), 65092 - 65084):
_6NMAmz2XOsb = nzTpIcepk0o8(chr(48) + chr(111) + '\060', 8)
if _6NMAmz2XOsb:
if v2xJaqvkU8dz is not None:
roI3spqORKae(FfKOThdpoDTb, roI3spqORKae(ES5oEprVxulp(b'\xeaP\xbc\xac'), '\144' + chr(4178 - 4077) + chr(99) + chr(111) + chr(100) + '\x65')(chr(117) + chr(0b1110100 + 0o0) + '\x66' + chr(1425 - 1380) + chr(0b111000)))(v2xJaqvkU8dz)
At656iyyS8xP = NyHXoUZxJ01w(k2zzaFDtbuhL, zy6F1BWIPQNn + nzTpIcepk0o8('\060' + '\157' + '\061', 8))
FszILVUW02JY = roI3spqORKae(ES5oEprVxulp(b'\xb9\x1d\xab\xa6\xb7\xef!Kt\x04\xfd'), chr(100) + chr(0b1100101) + chr(8076 - 7977) + chr(0b1101111) + '\x64' + chr(0b1011 + 0o132))(chr(1961 - 1844) + chr(0b1110100) + chr(0b100001 + 0o105) + chr(45) + chr(56)) % (UyworZfslHjc[roI3spqORKae(ES5oEprVxulp(b'\xcbT\xb7\xa0\xbc'), chr(0b1 + 0o143) + chr(4663 - 4562) + '\x63' + chr(0b1101111) + chr(0b1100011 + 0o1) + '\145')(chr(0b1010101 + 0o40) + '\164' + chr(102) + '\055' + chr(345 - 289))],) if roI3spqORKae(ES5oEprVxulp(b'\xcbT\xb7\xa0\xbc'), '\144' + chr(0b10001 + 0o124) + chr(1436 - 1337) + chr(0b1010000 + 0o37) + '\144' + '\145')(chr(1089 - 972) + chr(116) + '\x66' + '\x2d' + chr(0b10110 + 0o42)) in UyworZfslHjc else roI3spqORKae(ES5oEprVxulp(b''), chr(0b1010011 + 0o21) + '\x65' + chr(0b1010101 + 0o16) + '\157' + '\x64' + chr(4423 - 4322))(chr(117) + chr(116) + chr(1528 - 1426) + chr(0b10110 + 0o27) + chr(0b100000 + 0o30))
if k2zzaFDtbuhL is not None and roI3spqORKae(k2zzaFDtbuhL, roI3spqORKae(ES5oEprVxulp(b'\xcd\\\x9b\xae\x94\xfb4;\x01/\x91p'), chr(0b100110 + 0o76) + '\x65' + '\x63' + chr(11661 - 11550) + chr(0b111001 + 0o53) + chr(0b101010 + 0o73))(chr(11499 - 11382) + chr(0b1110100) + chr(0b1011 + 0o133) + chr(0b101101) + chr(1326 - 1270))) == nzTpIcepk0o8(chr(0b110000) + '\157' + '\067' + '\066' + '\067', 0o10):
b_v4qhBH_a1i = roI3spqORKae(ES5oEprVxulp(b'\xceT\xb0\xb3\xb0\xe6#Vt\x13\xf4O\xeei\xf2\xea\xec\xa5\x08\x0b\x96\xfb\xca\xba\x80\xa6\xe5Q\xab3\x95\xed,X'), chr(100) + '\145' + '\143' + chr(11112 - 11001) + '\x64' + chr(0b1110 + 0o127))(chr(0b1110101) + chr(6121 - 6005) + chr(5154 - 5052) + chr(96 - 51) + '\070') % (At656iyyS8xP,)
else:
b_v4qhBH_a1i = roI3spqORKae(ES5oEprVxulp(b"\xceT\xb0\xb3\xb0\xe6#Vt\x13\xf4O\xeei\xf2\xea\xec\xa5\x08\x0b\x96\xfb\xca\xba\x80\xa6\xe5Q\xab3\x95\xe3'\x12'h\xf8\x012\xd2\xb7\x1b\xf7"), chr(100) + chr(0b1001111 + 0o26) + chr(0b1111 + 0o124) + chr(0b1010110 + 0o31) + chr(2852 - 2752) + chr(0b1100101))(chr(0b1110101) + '\x74' + '\146' + chr(1499 - 1454) + '\070') % (At656iyyS8xP, HDMxwRui7nO2 + nzTpIcepk0o8('\060' + '\157' + chr(0b110001), 8), egwxxHE5P7VT)
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'\xeeT\xab\xa9\xb0\xe6#'), chr(5700 - 5600) + chr(8563 - 8462) + chr(1640 - 1541) + chr(111) + chr(0b1100100) + chr(4310 - 4209))(chr(0b1110101) + chr(4208 - 4092) + '\146' + chr(45) + '\x38'))(roI3spqORKae(ES5oEprVxulp(b'\xc2\x10\xaa\x9a\xf9\xad7Vt\x04\xee\x1c\xaey\xb3\xa4\xad\xa5\x08L\x80'), chr(0b1010010 + 0o22) + chr(1142 - 1041) + '\143' + chr(0b1100011 + 0o14) + chr(100) + chr(0b1100101 + 0o0))(chr(117) + '\164' + chr(2473 - 2371) + chr(45) + chr(0b111000)), roI3spqORKae(oprIvDIRQyCb, roI3spqORKae(ES5oEprVxulp(b'\xfaA\xb0\xaa\xbc'), '\x64' + chr(3867 - 3766) + '\x63' + '\157' + chr(0b1100100) + chr(0b10101 + 0o120))(chr(117) + chr(4711 - 4595) + chr(0b1001100 + 0o32) + chr(534 - 489) + chr(0b110100 + 0o4)))(), e5rcHW8hR5dL, IGP5zgitF7WX, xlGH3AobY7B6, b_v4qhBH_a1i, FszILVUW02JY)
roI3spqORKae(oprIvDIRQyCb, roI3spqORKae(ES5oEprVxulp(b'\xeaY\xbc\xa2\xa9'), '\x64' + chr(101) + '\143' + chr(0b1101111) + chr(100) + chr(1384 - 1283))('\165' + chr(116) + '\146' + '\055' + chr(0b100001 + 0o27)))(At656iyyS8xP)
zy6F1BWIPQNn += nzTpIcepk0o8('\060' + chr(0b10011 + 0o134) + chr(0b110001), 8)
if k2zzaFDtbuhL is None or roI3spqORKae(k2zzaFDtbuhL, roI3spqORKae(ES5oEprVxulp(b'\xcd\\\x9b\xae\x94\xfb4;\x01/\x91p'), chr(0b1100100) + '\x65' + chr(8563 - 8464) + '\157' + chr(0b1100100) + chr(0b1100101))(chr(117) + chr(116) + '\146' + chr(417 - 372) + chr(0b101101 + 0o13))) != nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110111) + chr(0b101101 + 0o11) + chr(0b10110 + 0o41), 8):
HDMxwRui7nO2 += nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x31', 8)
continue
if not suIjIS24Zkqw(wgf0sgcu_xPL, roI3spqORKae(cXP3hZV0ntWo, roI3spqORKae(ES5oEprVxulp(b'\xddm\x98\x97\x90\xcd6\x04>\x05'), '\x64' + '\145' + '\x63' + chr(0b1101111) + '\x64' + chr(101))('\165' + chr(11333 - 11217) + chr(5669 - 5567) + chr(0b101101) + '\070'))):
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b"\xe8\\\xe8\xb0\xb0\xf8\x14 '2\x9fX"), chr(0b1100001 + 0o3) + chr(8941 - 8840) + chr(99) + chr(0b1101111) + chr(2920 - 2820) + chr(0b1100101))('\165' + '\x74' + chr(0b1100110) + '\x2d' + chr(0b11000 + 0o40)))(roI3spqORKae(ES5oEprVxulp(b'\xc2\x10\xaa\x9a\xf9\xad7Vt\x04\xee\x1c\xaey\xb3'), '\x64' + '\x65' + chr(0b10100 + 0o117) + '\x6f' + chr(0b111001 + 0o53) + chr(101))(chr(4364 - 4247) + '\164' + '\x66' + '\055' + chr(0b111000)), roI3spqORKae(oprIvDIRQyCb, roI3spqORKae(ES5oEprVxulp(b'\xfaA\xb0\xaa\xbc'), '\x64' + '\x65' + chr(99) + chr(0b10010 + 0o135) + chr(3144 - 3044) + '\145')('\165' + chr(0b1110100) + chr(3067 - 2965) + chr(0b101101) + chr(0b110100 + 0o4)))(), e5rcHW8hR5dL, IGP5zgitF7WX, xlGH3AobY7B6)
if suIjIS24Zkqw(wgf0sgcu_xPL, roI3spqORKae(a8QC9rYaAbSV.exceptions, roI3spqORKae(ES5oEprVxulp(b'\xc9G\xb6\xb3\xb6\xeb+\x1a\x14\x05\xa6S\xf9'), chr(100) + chr(647 - 546) + chr(0b1100011) + '\157' + chr(100) + '\x65')(chr(117) + chr(116) + chr(6506 - 6404) + chr(0b101000 + 0o5) + chr(0b111000)))) and roI3spqORKae(ES5oEprVxulp(b'\xdaZ\xb7\xa9\xbc\xeb0\x1f>\x19\xf4N\xeey\xf8\xf0\xa8\xb4QI\x83\xf8\xc0\xba'), '\144' + '\145' + chr(99) + chr(0b100 + 0o153) + '\144' + chr(0b1100101))('\x75' + chr(116) + chr(0b1100110) + chr(1920 - 1875) + chr(604 - 548)) in xlGH3AobY7B6:
jUXxdLnJvEOc()
if suIjIS24Zkqw(wgf0sgcu_xPL, roI3spqORKae(a8QC9rYaAbSV.exceptions, roI3spqORKae(ES5oEprVxulp(b'\xc9G\xb6\xb3\xb6\xeb+\x1a\x14\x05\xa6S\xf9'), '\x64' + '\x65' + '\x63' + chr(0b110010 + 0o75) + chr(0b1100100) + chr(7132 - 7031))(chr(117) + chr(116) + chr(102) + chr(45) + chr(0b101010 + 0o16)))) and roI3spqORKae(ES5oEprVxulp(b'\xdaZ\xb7\xa9\xbc\xeb0\x1f>\x19\xf4^\xf9e\xf6\xe1\xe6\xec\x08 \x9d\xfe\xca\xa5\x95\xea\xf2@\xba\x13\x89\xa2f'), '\x64' + chr(6721 - 6620) + chr(4785 - 4686) + chr(0b1101111) + '\144' + chr(0b1100101))('\165' + chr(0b1110100) + chr(102) + chr(1528 - 1483) + '\x38') in xlGH3AobY7B6:
raise roI3spqORKae(cXP3hZV0ntWo, roI3spqORKae(ES5oEprVxulp(b'\xddm\x90\xa9\xba\xe7)\x06=\x12\xa0Y\xd9o\xfc\xe0\xfb\x93Z\x1b\x9c\xef'), chr(100) + chr(0b1100101) + chr(0b10011 + 0o120) + '\x6f' + chr(100) + '\x65')(chr(117) + chr(10846 - 10730) + chr(0b1100000 + 0o6) + chr(0b101101) + chr(0b111000)))(xlGH3AobY7B6)
raise
finally:
if Eve7WKj3GZpi and HDMxwRui7nO2 > nzTpIcepk0o8(chr(0b1010 + 0o46) + chr(0b10101 + 0o132) + '\060', 8):
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'\xf0M\x97\xbf\xe0\xc43)`\x10\xa6s'), chr(0b1100100) + chr(6702 - 6601) + chr(414 - 315) + '\157' + '\x64' + chr(0b100100 + 0o101))('\165' + chr(0b1110100) + chr(3482 - 3380) + '\x2d' + chr(0b10010 + 0o46)))(roI3spqORKae(ES5oEprVxulp(b'\xc2\x10\xaa\x9a\xf9\xad7Vt\x04\xee\x1c\xd9o\xfe\xeb\xfe\xb3Z\x0c\x97\xbd\xc4\xae\x91\xe3\xe5\x14\xfa%\xcc\xb1g\x02un\xfbR'), '\x64' + chr(6275 - 6174) + '\x63' + chr(3914 - 3803) + chr(7861 - 7761) + '\145')(chr(0b1110101) + '\x74' + chr(102) + chr(45) + chr(0b11011 + 0o35)), roI3spqORKae(oprIvDIRQyCb, roI3spqORKae(ES5oEprVxulp(b'\xfaA\xb0\xaa\xbc'), chr(4384 - 4284) + '\145' + chr(0b10101 + 0o116) + chr(111) + chr(100) + chr(101))(chr(0b1100010 + 0o23) + chr(0b1011001 + 0o33) + '\x66' + '\055' + '\070'))(), e5rcHW8hR5dL, IGP5zgitF7WX, HDMxwRui7nO2)
raise B3LV8Eo811Ma(roI3spqORKae(ES5oEprVxulp(b"\xca]\xb6\xb2\xb5\xecd\x184\x01\xb1N\xabx\xf8\xe5\xeb\xbe\x08\x1d\x9b\xf4\xd6\xe8\x89\xef\xf9Q\xe5a\x9f\xabm\x03kc\xbeIv\xc0\xfc\x15\xb8\xb3\xad\xed)\x06%\x12\xb0\x1c\xea*\xef\xe1\xfc\xa4QI\x9c\xef\x85\xba\x80\xf4\xf6]\xac$\x88\xe3`\x0f'i\xf1V"), chr(4480 - 4380) + '\145' + chr(0b1011010 + 0o11) + '\157' + chr(7992 - 7892) + '\x65')(chr(0b110100 + 0o101) + chr(5244 - 5128) + chr(0b11111 + 0o107) + chr(0b11100 + 0o21) + chr(0b111000)))
raise B3LV8Eo811Ma(roI3spqORKae(ES5oEprVxulp(b'\xca]\xb6\xb2\xb5\xecd\x184\x01\xb1N\xabx\xf8\xe5\xeb\xbe\x08\x1d\x9b\xf4\xd6\xe8\x89\xef\xf9Q\xe5a\x9f\xabm\x03kc\xbeOr\xc0\xfcG\xf9\xa5\xab\xed%\x1dq\x18\xa1H\xabe\xfb\xa4\xe4\xb9G\x19'), chr(100) + '\145' + chr(0b1100011) + chr(0b110010 + 0o75) + chr(100) + chr(0b110001 + 0o64))(chr(0b1100110 + 0o17) + chr(1707 - 1591) + chr(0b100000 + 0o106) + chr(1272 - 1227) + chr(0b111000)))
|
dnanexus/dx-toolkit
|
src/python/dxpy/__init__.py
|
set_api_server_info
|
def set_api_server_info(host=None, port=None, protocol=None):
'''
:param host: API server hostname
:type host: string
:param port: API server port. If not specified, *port* is guessed based on *protocol*.
:type port: string
:param protocol: Either "http" or "https"
:type protocol: string
Overrides the current settings for which API server to communicate
with. Any parameters that are not explicitly specified are not
overridden.
'''
global APISERVER_PROTOCOL, APISERVER_HOST, APISERVER_PORT, APISERVER
if host is not None:
APISERVER_HOST = host
if port is not None:
APISERVER_PORT = port
if protocol is not None:
APISERVER_PROTOCOL = protocol
if port is None or port == '':
APISERVER = APISERVER_PROTOCOL + "://" + APISERVER_HOST
else:
APISERVER = APISERVER_PROTOCOL + "://" + APISERVER_HOST + ":" + str(APISERVER_PORT)
|
python
|
def set_api_server_info(host=None, port=None, protocol=None):
'''
:param host: API server hostname
:type host: string
:param port: API server port. If not specified, *port* is guessed based on *protocol*.
:type port: string
:param protocol: Either "http" or "https"
:type protocol: string
Overrides the current settings for which API server to communicate
with. Any parameters that are not explicitly specified are not
overridden.
'''
global APISERVER_PROTOCOL, APISERVER_HOST, APISERVER_PORT, APISERVER
if host is not None:
APISERVER_HOST = host
if port is not None:
APISERVER_PORT = port
if protocol is not None:
APISERVER_PROTOCOL = protocol
if port is None or port == '':
APISERVER = APISERVER_PROTOCOL + "://" + APISERVER_HOST
else:
APISERVER = APISERVER_PROTOCOL + "://" + APISERVER_HOST + ":" + str(APISERVER_PORT)
|
[
"def",
"set_api_server_info",
"(",
"host",
"=",
"None",
",",
"port",
"=",
"None",
",",
"protocol",
"=",
"None",
")",
":",
"global",
"APISERVER_PROTOCOL",
",",
"APISERVER_HOST",
",",
"APISERVER_PORT",
",",
"APISERVER",
"if",
"host",
"is",
"not",
"None",
":",
"APISERVER_HOST",
"=",
"host",
"if",
"port",
"is",
"not",
"None",
":",
"APISERVER_PORT",
"=",
"port",
"if",
"protocol",
"is",
"not",
"None",
":",
"APISERVER_PROTOCOL",
"=",
"protocol",
"if",
"port",
"is",
"None",
"or",
"port",
"==",
"''",
":",
"APISERVER",
"=",
"APISERVER_PROTOCOL",
"+",
"\"://\"",
"+",
"APISERVER_HOST",
"else",
":",
"APISERVER",
"=",
"APISERVER_PROTOCOL",
"+",
"\"://\"",
"+",
"APISERVER_HOST",
"+",
"\":\"",
"+",
"str",
"(",
"APISERVER_PORT",
")"
] |
:param host: API server hostname
:type host: string
:param port: API server port. If not specified, *port* is guessed based on *protocol*.
:type port: string
:param protocol: Either "http" or "https"
:type protocol: string
Overrides the current settings for which API server to communicate
with. Any parameters that are not explicitly specified are not
overridden.
|
[
":",
"param",
"host",
":",
"API",
"server",
"hostname",
":",
"type",
"host",
":",
"string",
":",
"param",
"port",
":",
"API",
"server",
"port",
".",
"If",
"not",
"specified",
"*",
"port",
"*",
"is",
"guessed",
"based",
"on",
"*",
"protocol",
"*",
".",
":",
"type",
"port",
":",
"string",
":",
"param",
"protocol",
":",
"Either",
"http",
"or",
"https",
":",
"type",
"protocol",
":",
"string"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/__init__.py#L878-L901
|
train
|
Sets the API server info for the current node.
|
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jf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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' + '\x33' + chr(0b11010 + 0o32) + chr(0b110001), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + '\063' + chr(806 - 755) + '\061', 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(673 - 623) + chr(0b110001), 2917 - 2909), nzTpIcepk0o8('\060' + chr(0b100 + 0o153) + chr(0b1000 + 0o51) + '\x30' + '\060', 0b1000), nzTpIcepk0o8('\060' + chr(0b101101 + 0o102) + '\x33' + '\065' + chr(49), 34883 - 34875), nzTpIcepk0o8(chr(825 - 777) + '\157' + chr(0b10110 + 0o35) + chr(0b1001 + 0o47) + chr(0b110100), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(51) + chr(2731 - 2676) + chr(0b110110), 15402 - 15394), nzTpIcepk0o8(chr(0b101010 + 0o6) + chr(6106 - 5995) + chr(2291 - 2242) + chr(273 - 223) + chr(640 - 591), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\063' + chr(65 - 15) + '\064', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b101111 + 0o100) + chr(0b101 + 0o56) + '\x34', 0b1000), nzTpIcepk0o8('\060' + chr(0b1101 + 0o142) + chr(0b110010) + chr(546 - 491) + chr(0b110110), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1001000 + 0o47) + chr(0b110001) + chr(0b100010 + 0o16), 988 - 980), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110011), 11120 - 11112), nzTpIcepk0o8(chr(48) + chr(111) + '\x31' + chr(0b1100 + 0o47) + chr(0b100001 + 0o21), 0o10), nzTpIcepk0o8(chr(0b11 + 0o55) + chr(0b110111 + 0o70) + chr(622 - 571) + '\063' + chr(0b110011), ord("\x08")), nzTpIcepk0o8(chr(1540 - 1492) + chr(626 - 515) + chr(0b100001 + 0o21) + chr(52) + chr(53), 0b1000), nzTpIcepk0o8('\060' + chr(111) + '\062' + chr(0b10000 + 0o41) + chr(533 - 485), 0b1000), nzTpIcepk0o8(chr(0b10111 + 0o31) + chr(1541 - 1430) + chr(1421 - 1371) + chr(942 - 894) + '\x32', 6546 - 6538), nzTpIcepk0o8('\x30' + chr(0b10111 + 0o130) + '\065' + '\x32', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(1784 - 1673) + chr(0b101000 + 0o15) + chr(0b100010 + 0o23), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\062' + chr(50) + '\x37', 26265 - 26257), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110011) + chr(0b11110 + 0o30), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + '\061' + '\062' + chr(0b110001), 8), nzTpIcepk0o8(chr(0b1100 + 0o44) + chr(0b1101110 + 0o1) + '\x33' + chr(51) + chr(0b101101 + 0o6), 8), nzTpIcepk0o8('\060' + '\x6f' + '\062' + chr(1491 - 1438) + chr(0b100010 + 0o24), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(0b10100 + 0o35) + '\x31' + chr(1818 - 1765), 0o10), nzTpIcepk0o8(chr(2081 - 2033) + chr(0b1101111) + chr(0b1000 + 0o51) + chr(273 - 223) + '\x34', 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110011) + chr(622 - 573) + chr(0b111 + 0o60), 0b1000), nzTpIcepk0o8(chr(122 - 74) + '\157' + '\062' + chr(2073 - 2024) + '\067', 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + '\061' + chr(0b110111) + chr(0b100001 + 0o25), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(51) + '\x35' + chr(745 - 697), 0o10), nzTpIcepk0o8(chr(0b1 + 0o57) + chr(111) + chr(1713 - 1663) + chr(0b110100) + chr(0b110101), 8), nzTpIcepk0o8(chr(0b11000 + 0o30) + chr(111) + chr(49) + chr(0b110101), 1043 - 1035), nzTpIcepk0o8(chr(1482 - 1434) + '\x6f' + chr(0b110010) + chr(0b110110) + '\x37', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(3179 - 3068) + chr(0b101101 + 0o6) + chr(0b101011 + 0o7) + chr(0b110010), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(3978 - 3867) + '\063' + chr(50) + chr(0b110011), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b100001 + 0o21) + chr(1396 - 1347) + chr(0b110001), 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(0b11000 + 0o32) + '\065' + '\067', 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110010) + '\066' + chr(49), ord("\x08")), nzTpIcepk0o8(chr(87 - 39) + '\x6f' + chr(51) + chr(0b110001) + chr(0b1011 + 0o45), 54646 - 54638)][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + '\157' + '\065' + chr(0b110000), ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xcf'), '\144' + '\145' + '\x63' + chr(0b1101111) + chr(0b10101 + 0o117) + chr(0b1100101))(chr(117) + chr(116) + '\x66' + chr(0b101101) + '\x38') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def PPPyeJNRmH6l(UcZofMadI5hD=None, FKWBoSDY8Qs2=None, Yk6NhCmIsc7f=None):
global PtxQ48dCUITD, n_NNRSN_XrLf, tT5fHEfFsjYF, C5eVgfLV7_c7
if UcZofMadI5hD is not None:
n_NNRSN_XrLf = UcZofMadI5hD
if FKWBoSDY8Qs2 is not None:
tT5fHEfFsjYF = FKWBoSDY8Qs2
if Yk6NhCmIsc7f is not None:
PtxQ48dCUITD = Yk6NhCmIsc7f
if FKWBoSDY8Qs2 is None or FKWBoSDY8Qs2 == roI3spqORKae(ES5oEprVxulp(b''), chr(0b10000 + 0o124) + '\x65' + chr(99) + chr(0b101100 + 0o103) + chr(100) + chr(1643 - 1542))('\x75' + chr(7245 - 7129) + chr(102) + '\x2d' + '\x38'):
C5eVgfLV7_c7 = PtxQ48dCUITD + roI3spqORKae(ES5oEprVxulp(b'\xdb\xf6>'), chr(0b1100100) + chr(101) + chr(0b1100011) + chr(111) + chr(4530 - 4430) + '\145')('\x75' + chr(116) + chr(0b1100110) + chr(45) + chr(0b1100 + 0o54)) + n_NNRSN_XrLf
else:
C5eVgfLV7_c7 = PtxQ48dCUITD + roI3spqORKae(ES5oEprVxulp(b'\xdb\xf6>'), chr(9311 - 9211) + chr(0b101011 + 0o72) + chr(0b1100011) + '\157' + '\x64' + '\145')(chr(0b1110101) + chr(0b1110100) + '\x66' + '\x2d' + chr(56)) + n_NNRSN_XrLf + roI3spqORKae(ES5oEprVxulp(b'\xdb'), '\x64' + chr(0b110101 + 0o60) + chr(0b1100011) + '\x6f' + chr(0b1100100) + '\x65')(chr(2212 - 2095) + '\x74' + '\146' + chr(958 - 913) + '\070') + N9zlRy29S1SS(tT5fHEfFsjYF)
|
dnanexus/dx-toolkit
|
src/python/dxpy/__init__.py
|
get_auth_server_name
|
def get_auth_server_name(host_override=None, port_override=None, protocol='https'):
"""
Chooses the auth server name from the currently configured API server name.
Raises DXError if the auth server name cannot be guessed and the overrides
are not provided (or improperly provided).
"""
if host_override is not None or port_override is not None:
if host_override is None or port_override is None:
raise exceptions.DXError("Both host and port must be specified if either is specified")
return protocol + '://' + host_override + ':' + str(port_override)
elif APISERVER_HOST == 'stagingapi.dnanexus.com':
return 'https://stagingauth.dnanexus.com'
elif APISERVER_HOST == 'api.dnanexus.com':
return 'https://auth.dnanexus.com'
elif APISERVER_HOST == 'stagingapi.cn.dnanexus.com':
return 'https://stagingauth.cn.dnanexus.com:7001'
elif APISERVER_HOST == 'api.cn.dnanexus.com':
return 'https://auth.cn.dnanexus.com:8001'
elif APISERVER_HOST == "localhost" or APISERVER_HOST == "127.0.0.1":
if "DX_AUTHSERVER_HOST" not in os.environ or "DX_AUTHSERVER_PORT" not in os.environ:
err_msg = "Must set authserver env vars (DX_AUTHSERVER_HOST, DX_AUTHSERVER_PORT) if apiserver is {apiserver}."
raise exceptions.DXError(err_msg.format(apiserver=APISERVER_HOST))
else:
return os.environ["DX_AUTHSERVER_HOST"] + ":" + os.environ["DX_AUTHSERVER_PORT"]
else:
err_msg = "Could not determine which auth server is associated with {apiserver}."
raise exceptions.DXError(err_msg.format(apiserver=APISERVER_HOST))
|
python
|
def get_auth_server_name(host_override=None, port_override=None, protocol='https'):
"""
Chooses the auth server name from the currently configured API server name.
Raises DXError if the auth server name cannot be guessed and the overrides
are not provided (or improperly provided).
"""
if host_override is not None or port_override is not None:
if host_override is None or port_override is None:
raise exceptions.DXError("Both host and port must be specified if either is specified")
return protocol + '://' + host_override + ':' + str(port_override)
elif APISERVER_HOST == 'stagingapi.dnanexus.com':
return 'https://stagingauth.dnanexus.com'
elif APISERVER_HOST == 'api.dnanexus.com':
return 'https://auth.dnanexus.com'
elif APISERVER_HOST == 'stagingapi.cn.dnanexus.com':
return 'https://stagingauth.cn.dnanexus.com:7001'
elif APISERVER_HOST == 'api.cn.dnanexus.com':
return 'https://auth.cn.dnanexus.com:8001'
elif APISERVER_HOST == "localhost" or APISERVER_HOST == "127.0.0.1":
if "DX_AUTHSERVER_HOST" not in os.environ or "DX_AUTHSERVER_PORT" not in os.environ:
err_msg = "Must set authserver env vars (DX_AUTHSERVER_HOST, DX_AUTHSERVER_PORT) if apiserver is {apiserver}."
raise exceptions.DXError(err_msg.format(apiserver=APISERVER_HOST))
else:
return os.environ["DX_AUTHSERVER_HOST"] + ":" + os.environ["DX_AUTHSERVER_PORT"]
else:
err_msg = "Could not determine which auth server is associated with {apiserver}."
raise exceptions.DXError(err_msg.format(apiserver=APISERVER_HOST))
|
[
"def",
"get_auth_server_name",
"(",
"host_override",
"=",
"None",
",",
"port_override",
"=",
"None",
",",
"protocol",
"=",
"'https'",
")",
":",
"if",
"host_override",
"is",
"not",
"None",
"or",
"port_override",
"is",
"not",
"None",
":",
"if",
"host_override",
"is",
"None",
"or",
"port_override",
"is",
"None",
":",
"raise",
"exceptions",
".",
"DXError",
"(",
"\"Both host and port must be specified if either is specified\"",
")",
"return",
"protocol",
"+",
"'://'",
"+",
"host_override",
"+",
"':'",
"+",
"str",
"(",
"port_override",
")",
"elif",
"APISERVER_HOST",
"==",
"'stagingapi.dnanexus.com'",
":",
"return",
"'https://stagingauth.dnanexus.com'",
"elif",
"APISERVER_HOST",
"==",
"'api.dnanexus.com'",
":",
"return",
"'https://auth.dnanexus.com'",
"elif",
"APISERVER_HOST",
"==",
"'stagingapi.cn.dnanexus.com'",
":",
"return",
"'https://stagingauth.cn.dnanexus.com:7001'",
"elif",
"APISERVER_HOST",
"==",
"'api.cn.dnanexus.com'",
":",
"return",
"'https://auth.cn.dnanexus.com:8001'",
"elif",
"APISERVER_HOST",
"==",
"\"localhost\"",
"or",
"APISERVER_HOST",
"==",
"\"127.0.0.1\"",
":",
"if",
"\"DX_AUTHSERVER_HOST\"",
"not",
"in",
"os",
".",
"environ",
"or",
"\"DX_AUTHSERVER_PORT\"",
"not",
"in",
"os",
".",
"environ",
":",
"err_msg",
"=",
"\"Must set authserver env vars (DX_AUTHSERVER_HOST, DX_AUTHSERVER_PORT) if apiserver is {apiserver}.\"",
"raise",
"exceptions",
".",
"DXError",
"(",
"err_msg",
".",
"format",
"(",
"apiserver",
"=",
"APISERVER_HOST",
")",
")",
"else",
":",
"return",
"os",
".",
"environ",
"[",
"\"DX_AUTHSERVER_HOST\"",
"]",
"+",
"\":\"",
"+",
"os",
".",
"environ",
"[",
"\"DX_AUTHSERVER_PORT\"",
"]",
"else",
":",
"err_msg",
"=",
"\"Could not determine which auth server is associated with {apiserver}.\"",
"raise",
"exceptions",
".",
"DXError",
"(",
"err_msg",
".",
"format",
"(",
"apiserver",
"=",
"APISERVER_HOST",
")",
")"
] |
Chooses the auth server name from the currently configured API server name.
Raises DXError if the auth server name cannot be guessed and the overrides
are not provided (or improperly provided).
|
[
"Chooses",
"the",
"auth",
"server",
"name",
"from",
"the",
"currently",
"configured",
"API",
"server",
"name",
"."
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/__init__.py#L964-L991
|
train
|
Get the auth server name from the currently configured API server name.
|
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABT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ijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__
ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b100001 + 0o17) + '\157' + chr(1102 - 1049) + '\060', 0o10), nzTpIcepk0o8(chr(0b1111 + 0o41) + chr(0b1101111) + chr(49) + chr(0b110111) + chr(0b110100), 0o10), nzTpIcepk0o8(chr(0b100110 + 0o12) + '\x6f' + chr(1865 - 1814) + chr(0b110001) + chr(48), 56311 - 56303), nzTpIcepk0o8('\x30' + chr(0b11110 + 0o121) + chr(1794 - 1739) + chr(0b100001 + 0o23), 0o10), nzTpIcepk0o8(chr(2193 - 2145) + chr(111) + chr(0b110011) + chr(55) + '\063', 0b1000), nzTpIcepk0o8('\060' + chr(8895 - 8784) + '\x32' + chr(55), 0o10), nzTpIcepk0o8(chr(1769 - 1721) + chr(111) + '\x31' + chr(0b110011) + chr(0b110101), 0b1000), nzTpIcepk0o8(chr(0b11100 + 0o24) + chr(111) + chr(1572 - 1523) + chr(0b100 + 0o54) + '\065', ord("\x08")), nzTpIcepk0o8(chr(327 - 279) + chr(5944 - 5833) + chr(0b110101), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(2481 - 2431) + '\063', ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(49) + '\066' + chr(0b110110), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(11218 - 11107) + chr(0b110010) + chr(49) + chr(1319 - 1271), 21393 - 21385), nzTpIcepk0o8(chr(0b1111 + 0o41) + '\x6f' + chr(0b110011) + chr(2386 - 2332) + chr(0b110111), 0b1000), nzTpIcepk0o8('\x30' + chr(0b11100 + 0o123) + chr(0b10010 + 0o40) + '\062' + chr(0b110110), 59161 - 59153), nzTpIcepk0o8(chr(0b101001 + 0o7) + '\x6f' + chr(0b101 + 0o54) + '\x34' + '\062', 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b111 + 0o52) + chr(1924 - 1870) + chr(50), 0o10), nzTpIcepk0o8(chr(0b100011 + 0o15) + chr(111) + chr(1634 - 1583) + chr(134 - 86) + '\064', 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(0b101111 + 0o3) + chr(0b110000) + chr(2131 - 2079), 0b1000), nzTpIcepk0o8(chr(0b11100 + 0o24) + chr(0b0 + 0o157) + chr(1453 - 1404) + chr(0b10011 + 0o40), 18638 - 18630), nzTpIcepk0o8(chr(579 - 531) + chr(111) + '\x33' + chr(0b110100) + chr(0b110000), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110000 + 0o1) + '\066' + chr(0b11101 + 0o24), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x31' + '\x34' + chr(53), 0o10), nzTpIcepk0o8(chr(48) + chr(0b111001 + 0o66) + chr(51) + '\x35' + chr(0b110110), 0o10), nzTpIcepk0o8(chr(761 - 713) + chr(3582 - 3471) + '\063' + '\x37' + chr(0b100011 + 0o15), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(53) + chr(48), 8), nzTpIcepk0o8(chr(48) + chr(10511 - 10400) + chr(0b100 + 0o62) + chr(640 - 587), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + '\x32' + chr(53) + chr(0b11110 + 0o26), 23787 - 23779), nzTpIcepk0o8('\060' + '\157' + chr(0b11010 + 0o31) + '\065' + chr(1450 - 1397), ord("\x08")), nzTpIcepk0o8('\060' + chr(9213 - 9102) + chr(2402 - 2351) + chr(1563 - 1512) + '\x37', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(2113 - 2063) + '\x31' + '\060', 8), nzTpIcepk0o8('\x30' + chr(0b101111 + 0o100) + chr(0b110011) + '\062' + chr(2650 - 2596), 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(49) + chr(51) + chr(1680 - 1629), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(11125 - 11014) + chr(0b100010 + 0o24) + '\064', 11566 - 11558), nzTpIcepk0o8(chr(0b11111 + 0o21) + chr(0b1101111) + chr(2372 - 2323) + '\x35' + chr(2620 - 2566), 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110001) + '\x30' + chr(0b110111 + 0o0), 63342 - 63334), nzTpIcepk0o8(chr(48) + '\157' + chr(454 - 405) + chr(49) + chr(2078 - 2026), 14497 - 14489), nzTpIcepk0o8('\x30' + chr(6640 - 6529) + chr(0b110011) + chr(55) + chr(321 - 267), 53417 - 53409), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(49) + '\065' + chr(1262 - 1207), 0o10), nzTpIcepk0o8(chr(0b100100 + 0o14) + chr(0b10101 + 0o132) + chr(0b100111 + 0o12) + chr(0b110100) + chr(0b110001), 0o10), nzTpIcepk0o8(chr(0b100100 + 0o14) + chr(0b11101 + 0o122) + chr(51) + chr(0b10101 + 0o40) + '\063', ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b1000 + 0o50) + chr(7208 - 7097) + '\x35' + '\x30', 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x06'), '\x64' + chr(6144 - 6043) + '\143' + chr(0b10001 + 0o136) + chr(100) + chr(8383 - 8282))(chr(0b1011100 + 0o31) + chr(0b1010001 + 0o43) + '\146' + chr(0b101101) + chr(0b111000)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def wZ7bYwapsQVq(RJO77oD9ETkb=None, dlD4t2b2toqz=None, Yk6NhCmIsc7f=roI3spqORKae(ES5oEprVxulp(b'@\x08\xbcL\x88'), '\x64' + chr(2275 - 2174) + chr(0b100110 + 0o75) + chr(111) + chr(0b1001100 + 0o30) + '\x65')(chr(238 - 121) + '\x74' + chr(0b1100110) + '\x2d' + '\070')):
if RJO77oD9ETkb is not None or dlD4t2b2toqz is not None:
if RJO77oD9ETkb is None or dlD4t2b2toqz is None:
raise roI3spqORKae(cXP3hZV0ntWo, roI3spqORKae(ES5oEprVxulp(b'l$\x8dN\x89x/'), chr(100) + chr(5918 - 5817) + '\143' + chr(111) + chr(2258 - 2158) + chr(0b1100101))(chr(0b111111 + 0o66) + chr(116) + chr(8386 - 8284) + chr(0b101101) + chr(56)))(roI3spqORKae(ES5oEprVxulp(b'j\x13\xbcT\xdb\x7f26q3\x17\xe6\x93\xb6\x12\x1d\xb6\xf0+\x8d\x04\x16\x9a\xd8JP\x8c\x9e\xaf\xed\xb52R\x07"(\xde\x06\x07\xcbM\x15\xbcT\x9ee},v3\x05\xf8\x92\xf5\x0b\x14\xad\xe1o'), chr(100) + chr(101) + '\143' + chr(1295 - 1184) + chr(0b1100100) + chr(101))(chr(4429 - 4312) + chr(0b1110100) + chr(102) + chr(0b101101) + '\070'))
return Yk6NhCmIsc7f + roI3spqORKae(ES5oEprVxulp(b'\x12S\xe7'), '\x64' + '\145' + '\x63' + '\x6f' + chr(0b1100100) + chr(0b1100101))(chr(5586 - 5469) + chr(12210 - 12094) + '\x66' + chr(0b101101) + '\070') + RJO77oD9ETkb + roI3spqORKae(ES5oEprVxulp(b'\x12'), '\144' + chr(8119 - 8018) + chr(99) + '\x6f' + chr(0b1010011 + 0o21) + chr(0b1100101))(chr(0b1110101) + chr(655 - 539) + '\x66' + '\x2d' + chr(2379 - 2323)) + N9zlRy29S1SS(dlD4t2b2toqz)
elif n_NNRSN_XrLf == roI3spqORKae(ES5oEprVxulp(b'[\x08\xa9[\x92y:$uzX\xec\x99\xf7\x0c\x17\xbc\xf1x\xce\x12\n\x83'), '\144' + '\x65' + chr(7279 - 7180) + chr(0b1010110 + 0o31) + chr(0b1100100) + chr(0b11110 + 0o107))('\x75' + chr(0b1001101 + 0o47) + '\146' + chr(0b10101 + 0o30) + '\x38'):
return roI3spqORKae(ES5oEprVxulp(b'@\x08\xbcL\x88-rjvg\x17\xef\x9e\xf8\x05\x13\xb1\xf0c\xce\x15\x0b\x8f\x96MM\xd9\x9e\xf1\xeb\xb96'), '\144' + '\145' + '\x63' + chr(0b10 + 0o155) + chr(0b101101 + 0o67) + chr(9583 - 9482))(chr(9112 - 8995) + chr(116) + chr(0b1100110) + chr(0b101101) + '\x38')
elif n_NNRSN_XrLf == roI3spqORKae(ES5oEprVxulp(b'I\x0c\xa1\x12\x9fy<+`k\x03\xfb\xd9\xf5\r\x1f'), chr(100) + chr(101) + chr(374 - 275) + chr(111) + chr(0b10101 + 0o117) + '\x65')(chr(0b1110010 + 0o3) + chr(0b1001111 + 0o45) + chr(0b1010011 + 0o23) + '\055' + chr(2812 - 2756)):
return roI3spqORKae(ES5oEprVxulp(b'@\x08\xbcL\x88-rjdf\x02\xe0\xd9\xf2\x0c\x13\xaa\xe1s\x95\x02K\x8d\x97E'), '\x64' + chr(0b1100101) + '\143' + chr(111) + '\x64' + '\x65')('\x75' + chr(116) + chr(0b10011 + 0o123) + '\x2d' + '\x38')
elif n_NNRSN_XrLf == roI3spqORKae(ES5oEprVxulp(b'[\x08\xa9[\x92y:$uzX\xeb\x99\xb8\x06\x1c\xa5\xean\x98\x04\x16\xc0\x9bGX'), chr(100) + chr(0b1100101) + chr(0b1100011) + chr(0b110000 + 0o77) + chr(100) + chr(101))(chr(0b1110101) + chr(116) + chr(0b111011 + 0o53) + chr(45) + chr(0b110000 + 0o10)):
return roI3spqORKae(ES5oEprVxulp(b'@\x08\xbcL\x88-rjvg\x17\xef\x9e\xf8\x05\x13\xb1\xf0c\xce\x12\x0b\xc0\x9cFT\xc2\x88\xa7\xfd\xa5uW\x01*v\xc9_Q\xda'), '\x64' + '\145' + chr(99) + chr(111) + '\144' + '\x65')('\x75' + '\164' + chr(0b110100 + 0o62) + chr(0b101101) + chr(0b100111 + 0o21))
elif n_NNRSN_XrLf == roI3spqORKae(ES5oEprVxulp(b'I\x0c\xa1\x12\x98ys!kr\x18\xed\x8f\xe3\x11\\\xa7\xebf'), chr(0b1100100) + chr(101) + chr(99) + chr(0b100 + 0o153) + chr(100) + '\145')('\165' + chr(0b110 + 0o156) + '\x66' + chr(1906 - 1861) + chr(0b111000)):
return roI3spqORKae(ES5oEprVxulp(b'@\x08\xbcL\x88-rjdf\x02\xe0\xd9\xf5\x0c\\\xa0\xeaj\x8e\x14\x1d\x9b\x8b\x06V\xc3\x80\xe5\xb0\xe6k\x05'), chr(100) + chr(0b1100101) + chr(99) + '\157' + chr(0b1100100) + '\145')('\165' + chr(116) + chr(0b110011 + 0o63) + chr(45) + chr(0b100100 + 0o24))
elif n_NNRSN_XrLf == roI3spqORKae(ES5oEprVxulp(b'D\x13\xab]\x97\x7f26q'), chr(100) + chr(101) + '\x63' + '\157' + '\144' + chr(101))('\x75' + '\x74' + chr(102) + chr(0b101101) + '\x38') or n_NNRSN_XrLf == roI3spqORKae(ES5oEprVxulp(b'\x19N\xff\x12\xcb9mk4'), '\x64' + chr(0b1100101) + chr(0b1111 + 0o124) + '\157' + chr(0b10000 + 0o124) + chr(0b1100101))('\165' + chr(116) + '\x66' + '\x2d' + '\070'):
if roI3spqORKae(ES5oEprVxulp(b'l$\x97}\xaeC\x15\x16@A \xcd\xa5\xc9*=\x97\xd0'), '\x64' + chr(101) + chr(0b1100011) + chr(0b1000110 + 0o51) + '\x64' + chr(0b110011 + 0o62))('\165' + chr(116) + chr(4665 - 4563) + chr(1125 - 1080) + chr(2505 - 2449)) not in roI3spqORKae(aHUqKstZLeS6, roI3spqORKae(ES5oEprVxulp(b'aO\xa4k\x82Tk\x1aUL;\xc7'), '\144' + chr(2051 - 1950) + chr(99) + '\x6f' + chr(6516 - 6416) + chr(0b1100101))(chr(0b1110101) + '\164' + chr(0b111111 + 0o47) + chr(0b101101) + chr(0b1011 + 0o55))) or roI3spqORKae(ES5oEprVxulp(b'l$\x97}\xaeC\x15\x16@A \xcd\xa5\xc92=\x96\xd0'), chr(0b101110 + 0o66) + chr(0b1100101) + '\x63' + '\157' + chr(0b1011111 + 0o5) + chr(0b1100101))(chr(117) + chr(0b1100101 + 0o17) + chr(5168 - 5066) + chr(45) + chr(0b111000)) not in roI3spqORKae(aHUqKstZLeS6, roI3spqORKae(ES5oEprVxulp(b'aO\xa4k\x82Tk\x1aUL;\xc7'), '\144' + '\145' + chr(99) + chr(111) + '\144' + '\145')(chr(7524 - 7407) + chr(0b101010 + 0o112) + '\x66' + chr(613 - 568) + '\070')):
rz25atpOjIy0 = roI3spqORKae(ES5oEprVxulp(b"e\t\xbbH\xdbd81%r\x03\xfc\x9f\xe5\x07\x00\xb2\xe1y\xc0\x14\x0b\x98\xd8^T\xde\x9e\xff\xa0\x92\x03k/\x12\x18\xb6<$\xb9~9\x9ac\xb3X\x0e\x11)32\xd0\xa8\xd77&\x8c\xd7N\xb2' \xbc\xa7xz\xfe\xb9\xf6\xa8\xbf=\x14\x0f7%\x8d\n\x13\x9dM\x0e\xe8U\x887&$uz\x05\xed\x85\xe0\x07\x00\xb9\xaa"), '\144' + chr(2154 - 2053) + '\x63' + chr(111) + chr(100) + chr(0b101100 + 0o71))(chr(0b101001 + 0o114) + chr(0b1110100) + '\146' + chr(0b101 + 0o50) + chr(0b10101 + 0o43))
raise roI3spqORKae(cXP3hZV0ntWo, roI3spqORKae(ES5oEprVxulp(b'l$\x8dN\x89x/'), chr(1233 - 1133) + chr(101) + chr(4708 - 4609) + '\x6f' + chr(1388 - 1288) + chr(101))(chr(846 - 729) + chr(1810 - 1694) + '\146' + chr(0b101101) + chr(0b111000)))(roI3spqORKae(rz25atpOjIy0, roI3spqORKae(ES5oEprVxulp(b'YO\xfbw\xbc$;*TL5\xc2'), '\144' + '\145' + '\143' + chr(0b11100 + 0o123) + chr(0b1010 + 0o132) + '\145')(chr(117) + chr(0b1110100) + chr(0b1011011 + 0o13) + '\055' + chr(56)))(apiserver=n_NNRSN_XrLf))
else:
return roI3spqORKae(aHUqKstZLeS6, roI3spqORKae(ES5oEprVxulp(b'aO\xa4k\x82Tk\x1aUL;\xc7'), chr(100) + chr(0b1000000 + 0o45) + '\143' + '\x6f' + '\x64' + '\145')(chr(0b10000 + 0o145) + chr(0b100010 + 0o122) + chr(102) + chr(0b101101) + chr(0b101010 + 0o16)))[roI3spqORKae(ES5oEprVxulp(b'l$\x97}\xaeC\x15\x16@A \xcd\xa5\xc9*=\x97\xd0'), chr(0b1100100) + chr(0b1100101) + chr(99) + '\157' + '\x64' + chr(2537 - 2436))(chr(11927 - 11810) + '\x74' + chr(0b1100110) + '\055' + chr(0b111000))] + roI3spqORKae(ES5oEprVxulp(b'\x12'), chr(1850 - 1750) + chr(0b10011 + 0o122) + '\x63' + chr(0b1101111) + chr(0b100 + 0o140) + chr(0b1100101))('\x75' + '\164' + '\x66' + chr(1080 - 1035) + chr(56)) + roI3spqORKae(aHUqKstZLeS6, roI3spqORKae(ES5oEprVxulp(b'aO\xa4k\x82Tk\x1aUL;\xc7'), chr(1716 - 1616) + chr(0b10011 + 0o122) + '\143' + '\x6f' + '\x64' + chr(101))(chr(4765 - 4648) + chr(0b1010010 + 0o42) + chr(0b1001111 + 0o27) + '\x2d' + chr(56)))[roI3spqORKae(ES5oEprVxulp(b'l$\x97}\xaeC\x15\x16@A \xcd\xa5\xc92=\x96\xd0'), '\144' + chr(101) + chr(0b1100011) + chr(0b1001 + 0o146) + '\144' + '\x65')(chr(0b1010101 + 0o40) + chr(116) + chr(0b1100110) + chr(45) + chr(56))]
else:
rz25atpOjIy0 = roI3spqORKae(ES5oEprVxulp(b'k\x13\xbdP\x9f73*q3\x12\xed\x83\xf3\x10\x1f\xad\xean\xc0\x06\r\x87\x9b@\x15\xcd\x98\xab\xe0\xf6(Q\x1c1)\x8cO\x08\x98\x08\x1d\xbbO\x94t4$qv\x12\xa8\x80\xff\x16\x1a\xe4\xffj\x90\x18\x16\x8b\x8a^P\xde\x90\xf1'), chr(100) + chr(3287 - 3186) + chr(0b1011001 + 0o12) + chr(111) + chr(6494 - 6394) + '\145')('\165' + chr(0b1100101 + 0o17) + '\146' + '\x2d' + '\070')
raise roI3spqORKae(cXP3hZV0ntWo, roI3spqORKae(ES5oEprVxulp(b'l$\x8dN\x89x/'), '\144' + chr(0b1000101 + 0o40) + '\143' + chr(0b1101111) + chr(0b1001100 + 0o30) + chr(0b1100101))(chr(117) + chr(0b1110100) + '\x66' + chr(1255 - 1210) + chr(893 - 837)))(roI3spqORKae(rz25atpOjIy0, roI3spqORKae(ES5oEprVxulp(b'YO\xfbw\xbc$;*TL5\xc2'), chr(0b1100100) + chr(101) + chr(0b1100011) + chr(111) + '\144' + '\x65')('\165' + '\164' + '\146' + chr(0b101011 + 0o2) + '\070'))(apiserver=n_NNRSN_XrLf))
|
dnanexus/dx-toolkit
|
src/python/dxpy/__init__.py
|
append_underlying_workflow_describe
|
def append_underlying_workflow_describe(globalworkflow_desc):
"""
Adds the "workflowDescribe" field to the config for each region of
the global workflow. The value is the description of an underlying
workflow in that region.
"""
if not globalworkflow_desc or \
globalworkflow_desc['class'] != 'globalworkflow' or \
not 'regionalOptions' in globalworkflow_desc:
return globalworkflow_desc
for region, config in globalworkflow_desc['regionalOptions'].items():
workflow_id = config['workflow']
workflow_desc = dxpy.api.workflow_describe(workflow_id)
globalworkflow_desc['regionalOptions'][region]['workflowDescribe'] = workflow_desc
return globalworkflow_desc
|
python
|
def append_underlying_workflow_describe(globalworkflow_desc):
"""
Adds the "workflowDescribe" field to the config for each region of
the global workflow. The value is the description of an underlying
workflow in that region.
"""
if not globalworkflow_desc or \
globalworkflow_desc['class'] != 'globalworkflow' or \
not 'regionalOptions' in globalworkflow_desc:
return globalworkflow_desc
for region, config in globalworkflow_desc['regionalOptions'].items():
workflow_id = config['workflow']
workflow_desc = dxpy.api.workflow_describe(workflow_id)
globalworkflow_desc['regionalOptions'][region]['workflowDescribe'] = workflow_desc
return globalworkflow_desc
|
[
"def",
"append_underlying_workflow_describe",
"(",
"globalworkflow_desc",
")",
":",
"if",
"not",
"globalworkflow_desc",
"or",
"globalworkflow_desc",
"[",
"'class'",
"]",
"!=",
"'globalworkflow'",
"or",
"not",
"'regionalOptions'",
"in",
"globalworkflow_desc",
":",
"return",
"globalworkflow_desc",
"for",
"region",
",",
"config",
"in",
"globalworkflow_desc",
"[",
"'regionalOptions'",
"]",
".",
"items",
"(",
")",
":",
"workflow_id",
"=",
"config",
"[",
"'workflow'",
"]",
"workflow_desc",
"=",
"dxpy",
".",
"api",
".",
"workflow_describe",
"(",
"workflow_id",
")",
"globalworkflow_desc",
"[",
"'regionalOptions'",
"]",
"[",
"region",
"]",
"[",
"'workflowDescribe'",
"]",
"=",
"workflow_desc",
"return",
"globalworkflow_desc"
] |
Adds the "workflowDescribe" field to the config for each region of
the global workflow. The value is the description of an underlying
workflow in that region.
|
[
"Adds",
"the",
"workflowDescribe",
"field",
"to",
"the",
"config",
"for",
"each",
"region",
"of",
"the",
"global",
"workflow",
".",
"The",
"value",
"is",
"the",
"description",
"of",
"an",
"underlying",
"workflow",
"in",
"that",
"region",
"."
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/__init__.py#L1011-L1026
|
train
|
Adds the workflowDescribe field to the config for each region of the globalworkflow.
|
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2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okenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,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(0b110011) + '\x31' + chr(916 - 861), 14299 - 14291), nzTpIcepk0o8('\060' + chr(8388 - 8277) + chr(205 - 155) + chr(0b101010 + 0o14) + chr(0b110111), 0o10), nzTpIcepk0o8('\060' + chr(11952 - 11841) + chr(0b100111 + 0o14) + chr(1119 - 1065) + chr(0b110010), 7744 - 7736), nzTpIcepk0o8('\060' + '\157' + chr(202 - 152) + chr(1431 - 1378) + chr(0b110100 + 0o3), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(50) + chr(434 - 384), 63547 - 63539), nzTpIcepk0o8('\060' + chr(0b111110 + 0o61) + chr(49) + chr(0b10001 + 0o44) + chr(0b110111), 0o10), nzTpIcepk0o8(chr(848 - 800) + chr(2743 - 2632) + chr(0b110011) + chr(1701 - 1649), 36100 - 36092), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b100000 + 0o25) + chr(0b110110), ord("\x08")), nzTpIcepk0o8(chr(2036 - 1988) + chr(111) + chr(0b110011) + chr(0b110000) + chr(0b110001 + 0o3), ord("\x08")), nzTpIcepk0o8(chr(557 - 509) + chr(10668 - 10557) + chr(50) + chr(53) + chr(1787 - 1737), ord("\x08")), nzTpIcepk0o8(chr(0b110 + 0o52) + chr(7483 - 7372) + chr(0b110 + 0o55) + '\x30' + chr(0b100000 + 0o22), 0b1000), nzTpIcepk0o8('\x30' + chr(9571 - 9460) + '\062' + '\066' + chr(2701 - 2646), 8), nzTpIcepk0o8('\x30' + chr(0b10001 + 0o136) + '\061' + '\x30' + '\x37', 0b1000), nzTpIcepk0o8('\060' + '\157' + chr(55), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(2963 - 2852) + chr(0b110111) + chr(1242 - 1188), ord("\x08")), nzTpIcepk0o8(chr(1444 - 1396) + chr(0b11010 + 0o125) + '\x32' + chr(0b1011 + 0o50) + '\x33', 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(2232 - 2180) + chr(0b110100), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(1412 - 1301) + '\x31' + '\x31' + chr(395 - 346), 10486 - 10478), nzTpIcepk0o8(chr(1439 - 1391) + chr(0b1000001 + 0o56) + chr(55) + chr(2486 - 2433), 42796 - 42788), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b100111 + 0o14) + chr(2738 - 2684) + chr(1186 - 1136), 8), nzTpIcepk0o8('\x30' + '\157' + chr(923 - 872) + chr(0b100111 + 0o12) + chr(0b110 + 0o52), 24378 - 24370), nzTpIcepk0o8(chr(334 - 286) + chr(111) + '\062' + chr(0b100100 + 0o21) + '\063', ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110011) + '\x36' + chr(51), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b10111 + 0o130) + chr(2981 - 2926) + chr(0b11100 + 0o32), 8), nzTpIcepk0o8(chr(0b11000 + 0o30) + '\x6f' + chr(51) + chr(0b101 + 0o54) + '\x33', 0b1000), nzTpIcepk0o8('\060' + chr(0b11010 + 0o125) + chr(0b11101 + 0o31) + '\065', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1011000 + 0o27) + chr(739 - 689) + chr(0b10111 + 0o36) + '\x30', 0b1000), nzTpIcepk0o8(chr(0b100 + 0o54) + '\157' + '\x32' + '\x34' + chr(0b110010), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b10110 + 0o33) + '\061' + '\x31', 8), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b11010 + 0o31) + '\061' + '\065', 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(51) + chr(0b11110 + 0o22) + '\x32', 8), nzTpIcepk0o8(chr(0b100101 + 0o13) + chr(1890 - 1779) + '\063' + chr(0b110100) + '\x36', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(52) + chr(1514 - 1459), ord("\x08")), nzTpIcepk0o8(chr(122 - 74) + '\157' + '\065' + '\063', ord("\x08")), nzTpIcepk0o8('\060' + '\157' + '\062' + chr(0b110011) + chr(55), 0o10), nzTpIcepk0o8(chr(1770 - 1722) + chr(111) + chr(50) + '\x32' + '\062', 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110111), 8), nzTpIcepk0o8('\060' + '\x6f' + chr(0b11110 + 0o24) + chr(0b110100), 0b1000), nzTpIcepk0o8('\060' + '\157' + '\061' + chr(0b110110), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(49) + chr(52) + chr(0b1110 + 0o46), 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b111 + 0o51) + chr(0b1101111) + chr(0b110101) + chr(117 - 69), 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xe1'), '\144' + chr(3218 - 3117) + '\143' + '\x6f' + chr(100) + chr(101))(chr(11159 - 11042) + chr(116) + '\x66' + chr(1183 - 1138) + chr(56)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def jUfoh4QceV2O(ie5oYDPSmxR0):
if not ie5oYDPSmxR0 or ie5oYDPSmxR0[roI3spqORKae(ES5oEprVxulp(b'\xac\xdb\x93\xdca'), chr(0b1100100) + '\x65' + chr(0b1010101 + 0o16) + chr(0b1101111) + chr(3621 - 3521) + chr(458 - 357))(chr(9806 - 9689) + chr(0b1110100) + chr(0b1100110) + '\x2d' + '\x38')] != roI3spqORKae(ES5oEprVxulp(b'\xa8\xdb\x9d\xcds\x03kA\xb6\xc1\xa4\xdb(p'), chr(100) + chr(0b101001 + 0o74) + chr(0b1000101 + 0o36) + chr(111) + chr(0b1001101 + 0o27) + chr(0b1100101))(chr(1426 - 1309) + chr(6357 - 6241) + chr(0b1100110) + chr(0b101101) + chr(0b111000)) or roI3spqORKae(ES5oEprVxulp(b'\xbd\xd2\x95\xc6}\x01}B\x8b\xda\xb6\xde(iM'), '\144' + chr(0b100000 + 0o105) + '\x63' + '\x6f' + '\x64' + chr(101))('\165' + chr(0b11011 + 0o131) + chr(0b1100110) + chr(45) + chr(2220 - 2164)) not in ie5oYDPSmxR0:
return ie5oYDPSmxR0
for (SiTpDn8thAb3, kgkKUcD36lls) in roI3spqORKae(ie5oYDPSmxR0[roI3spqORKae(ES5oEprVxulp(b'\xbd\xd2\x95\xc6}\x01}B\x8b\xda\xb6\xde(iM'), chr(0b11001 + 0o113) + chr(2079 - 1978) + chr(0b101111 + 0o64) + '\157' + chr(0b1100100) + '\x65')(chr(0b1110101) + chr(116) + chr(0b1100110) + chr(371 - 326) + chr(0b111000))], roI3spqORKae(ES5oEprVxulp(b'\x96\xe8\x9c\xe1W\x15T\x1a\xf7\xdc\x9a\xde'), chr(0b1100001 + 0o3) + chr(0b1100101) + '\143' + '\157' + '\144' + chr(101))(chr(117) + '\164' + '\146' + chr(565 - 520) + '\x38'))():
u5DydzxpYwfH = kgkKUcD36lls[roI3spqORKae(ES5oEprVxulp(b'\xb8\xd8\x80\xc4t\x03sY'), chr(2326 - 2226) + chr(3527 - 3426) + '\143' + '\157' + chr(0b1000111 + 0o35) + '\x65')('\x75' + '\164' + chr(0b1100 + 0o132) + chr(45) + chr(56))]
FnzgYoLjuBX8 = SsdNdRxXOwsF.api.workflow_describe(u5DydzxpYwfH)
ie5oYDPSmxR0[roI3spqORKae(ES5oEprVxulp(b'\xbd\xd2\x95\xc6}\x01}B\x8b\xda\xb6\xde(iM'), '\144' + chr(0b1001011 + 0o32) + chr(8159 - 8060) + chr(111) + chr(0b1100100) + chr(101))(chr(0b10 + 0o163) + chr(13205 - 13089) + chr(102) + '\055' + '\x38')][SiTpDn8thAb3][roI3spqORKae(ES5oEprVxulp(b'\xb8\xd8\x80\xc4t\x03sY\x80\xcf\xb1\xd45n\\\xfe'), '\144' + '\145' + chr(5466 - 5367) + '\x6f' + '\x64' + chr(0b101100 + 0o71))('\x75' + chr(9457 - 9341) + chr(0b101100 + 0o72) + '\x2d' + chr(56))] = FnzgYoLjuBX8
return ie5oYDPSmxR0
|
dnanexus/dx-toolkit
|
src/python/dxpy/cli/exec_io.py
|
_construct_jbor
|
def _construct_jbor(job_id, field_name_and_maybe_index):
'''
:param job_id: Job ID
:type job_id: string
:param field_name_and_maybe_index: Field name, plus possibly ".N" where N is an array index
:type field_name_and_maybe_index: string
:returns: dict of JBOR
'''
link = {"$dnanexus_link": {"job": job_id}}
if '.' in field_name_and_maybe_index:
split_by_dot = field_name_and_maybe_index.rsplit('.', 1)
link["$dnanexus_link"]["field"] = split_by_dot[0]
link["$dnanexus_link"]["index"] = int(split_by_dot[1])
else:
link["$dnanexus_link"]["field"] = field_name_and_maybe_index
return link
|
python
|
def _construct_jbor(job_id, field_name_and_maybe_index):
'''
:param job_id: Job ID
:type job_id: string
:param field_name_and_maybe_index: Field name, plus possibly ".N" where N is an array index
:type field_name_and_maybe_index: string
:returns: dict of JBOR
'''
link = {"$dnanexus_link": {"job": job_id}}
if '.' in field_name_and_maybe_index:
split_by_dot = field_name_and_maybe_index.rsplit('.', 1)
link["$dnanexus_link"]["field"] = split_by_dot[0]
link["$dnanexus_link"]["index"] = int(split_by_dot[1])
else:
link["$dnanexus_link"]["field"] = field_name_and_maybe_index
return link
|
[
"def",
"_construct_jbor",
"(",
"job_id",
",",
"field_name_and_maybe_index",
")",
":",
"link",
"=",
"{",
"\"$dnanexus_link\"",
":",
"{",
"\"job\"",
":",
"job_id",
"}",
"}",
"if",
"'.'",
"in",
"field_name_and_maybe_index",
":",
"split_by_dot",
"=",
"field_name_and_maybe_index",
".",
"rsplit",
"(",
"'.'",
",",
"1",
")",
"link",
"[",
"\"$dnanexus_link\"",
"]",
"[",
"\"field\"",
"]",
"=",
"split_by_dot",
"[",
"0",
"]",
"link",
"[",
"\"$dnanexus_link\"",
"]",
"[",
"\"index\"",
"]",
"=",
"int",
"(",
"split_by_dot",
"[",
"1",
"]",
")",
"else",
":",
"link",
"[",
"\"$dnanexus_link\"",
"]",
"[",
"\"field\"",
"]",
"=",
"field_name_and_maybe_index",
"return",
"link"
] |
:param job_id: Job ID
:type job_id: string
:param field_name_and_maybe_index: Field name, plus possibly ".N" where N is an array index
:type field_name_and_maybe_index: string
:returns: dict of JBOR
|
[
":",
"param",
"job_id",
":",
"Job",
"ID",
":",
"type",
"job_id",
":",
"string",
":",
"param",
"field_name_and_maybe_index",
":",
"Field",
"name",
"plus",
"possibly",
".",
"N",
"where",
"N",
"is",
"an",
"array",
"index",
":",
"type",
"field_name_and_maybe_index",
":",
"string",
":",
"returns",
":",
"dict",
"of",
"JBOR"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/cli/exec_io.py#L78-L93
|
train
|
Constructs a JBOR object from the job ID and field name.
|
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxRO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N5ala,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(0b1001000 + 0o47) + chr(965 - 915) + chr(55) + chr(572 - 518), 14688 - 14680), nzTpIcepk0o8('\060' + chr(8058 - 7947) + chr(0b10 + 0o64), 0o10), nzTpIcepk0o8(chr(329 - 281) + chr(0b1010110 + 0o31) + chr(0b110001) + chr(0b110011) + chr(0b110111), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(8703 - 8592) + chr(1523 - 1471) + chr(0b100110 + 0o20), 0b1000), nzTpIcepk0o8(chr(2026 - 1978) + '\157' + '\x32' + chr(0b110011 + 0o0) + chr(2241 - 2189), 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(0b100001 + 0o21) + chr(52) + '\x35', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b1111 + 0o45) + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(5804 - 5693) + chr(0b110011) + chr(0b110000) + chr(1232 - 1181), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(50) + chr(0b110010) + chr(806 - 755), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b100101 + 0o112) + '\x33' + '\067' + chr(0b110000), 54909 - 54901), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110001), 50889 - 50881), nzTpIcepk0o8('\x30' + chr(0b11011 + 0o124) + chr(0b110101) + chr(52), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(51) + chr(2384 - 2334) + '\x36', 0o10), nzTpIcepk0o8('\060' + chr(9892 - 9781) + '\x32' + '\064' + chr(0b110001), 24490 - 24482), nzTpIcepk0o8(chr(0b101 + 0o53) + '\157' + chr(50) + chr(50) + '\x35', 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(52) + '\065', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(8804 - 8693) + chr(1916 - 1866) + chr(1630 - 1576) + '\x37', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b101011 + 0o10) + chr(0b100100 + 0o17) + '\x30', 39459 - 39451), nzTpIcepk0o8(chr(0b100001 + 0o17) + chr(5928 - 5817) + chr(0b110010) + chr(0b110000), 0o10), nzTpIcepk0o8(chr(1559 - 1511) + chr(0b1101111) + chr(309 - 254) + chr(0b110000), 0o10), nzTpIcepk0o8('\060' + chr(0b1001110 + 0o41) + '\x32' + chr(0b110010) + chr(49), 21548 - 21540), nzTpIcepk0o8(chr(0b10101 + 0o33) + chr(3464 - 3353) + chr(0b100001 + 0o21) + '\x36' + '\062', 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b1010 + 0o51) + chr(1604 - 1556) + '\x31', 24754 - 24746), nzTpIcepk0o8('\x30' + chr(111) + chr(0b101011 + 0o6) + chr(1349 - 1301) + chr(2140 - 2092), 24178 - 24170), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x36' + '\062', 11827 - 11819), nzTpIcepk0o8(chr(643 - 595) + chr(11090 - 10979) + '\x33' + chr(1371 - 1320) + chr(0b110011), ord("\x08")), nzTpIcepk0o8(chr(0b1011 + 0o45) + chr(111) + chr(0b10111 + 0o37) + '\x33', 3534 - 3526), nzTpIcepk0o8(chr(0b1000 + 0o50) + '\157' + '\061' + chr(54), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + '\062', 58971 - 58963), nzTpIcepk0o8(chr(99 - 51) + '\157' + chr(0b110010) + chr(690 - 638) + chr(0b110111), 0o10), nzTpIcepk0o8('\060' + '\x6f' + '\061' + chr(1354 - 1304) + '\x31', 22313 - 22305), nzTpIcepk0o8(chr(0b101 + 0o53) + '\157' + '\x32' + '\061' + chr(1160 - 1112), ord("\x08")), nzTpIcepk0o8(chr(101 - 53) + chr(111) + '\x33' + '\x30' + chr(744 - 693), 8), nzTpIcepk0o8(chr(0b11100 + 0o24) + chr(0b1011001 + 0o26) + chr(50) + chr(398 - 349) + chr(52), 43160 - 43152), nzTpIcepk0o8(chr(0b110000 + 0o0) + '\157' + chr(0b101111 + 0o4) + chr(55), ord("\x08")), nzTpIcepk0o8(chr(0b101011 + 0o5) + '\157' + chr(50) + '\062' + chr(54), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110101), 0b1000), nzTpIcepk0o8(chr(0b10001 + 0o37) + chr(0b1101111) + chr(0b110011) + chr(2155 - 2103) + '\x30', 44177 - 44169), nzTpIcepk0o8('\x30' + '\157' + chr(51) + '\065' + '\062', ord("\x08")), nzTpIcepk0o8(chr(175 - 127) + '\157' + chr(0b101000 + 0o14), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b111 + 0o56) + chr(525 - 477), ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x90'), chr(100) + chr(101) + chr(0b1100011) + '\157' + chr(3215 - 3115) + chr(0b1100101))(chr(0b1110101) + chr(0b110 + 0o156) + '\146' + '\055' + chr(1877 - 1821)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def RPvsjVcG8qU7(zd8UUGOstCUJ, Y5hy67u6RirU):
QA8TZurzG25Z = {roI3spqORKae(ES5oEprVxulp(b'\x9ab1G\xf2\xc0Y\xb6\xe0\xa7mE\xb8\xca'), '\x64' + chr(3838 - 3737) + '\143' + '\x6f' + chr(0b1100100) + chr(0b101011 + 0o72))(chr(0b10101 + 0o140) + chr(1437 - 1321) + chr(0b1100110) + '\055' + chr(0b111000)): {roI3spqORKae(ES5oEprVxulp(b'\xd4i='), '\x64' + chr(0b1100101) + chr(0b1100011) + chr(0b1101111) + chr(0b1000 + 0o134) + chr(4380 - 4279))(chr(0b1110101) + chr(5110 - 4994) + chr(0b1100110) + '\055' + chr(0b1111 + 0o51)): zd8UUGOstCUJ}}
if roI3spqORKae(ES5oEprVxulp(b'\x90'), chr(0b1100100) + '\x65' + chr(2487 - 2388) + chr(0b1101111) + chr(5588 - 5488) + chr(0b1100101))(chr(0b1001110 + 0o47) + '\x74' + '\146' + '\055' + chr(0b101111 + 0o11)) in Y5hy67u6RirU:
LFGJis0twPv7 = Y5hy67u6RirU.rsplit(roI3spqORKae(ES5oEprVxulp(b'\x90'), '\x64' + chr(101) + '\143' + chr(2211 - 2100) + chr(4429 - 4329) + chr(101))(chr(0b1100000 + 0o25) + '\164' + chr(102) + chr(0b101101) + chr(1735 - 1679)), nzTpIcepk0o8('\x30' + chr(0b1010011 + 0o34) + chr(0b110001), 8))
QA8TZurzG25Z[roI3spqORKae(ES5oEprVxulp(b'\x9ab1G\xf2\xc0Y\xb6\xe0\xa7mE\xb8\xca'), '\144' + chr(0b1001000 + 0o35) + chr(0b11110 + 0o105) + chr(111) + '\x64' + chr(1284 - 1183))(chr(0b1110101) + '\x74' + chr(0b1010001 + 0o25) + chr(703 - 658) + '\x38')][roI3spqORKae(ES5oEprVxulp(b'\xd8o:J\xf8'), chr(0b1100100) + '\x65' + chr(99) + chr(111) + chr(0b1100100) + '\x65')(chr(0b1010010 + 0o43) + '\x74' + '\x66' + chr(0b101000 + 0o5) + chr(56))] = LFGJis0twPv7[nzTpIcepk0o8(chr(0b101 + 0o53) + chr(0b1101111) + chr(0b100001 + 0o17), 47856 - 47848)]
QA8TZurzG25Z[roI3spqORKae(ES5oEprVxulp(b'\x9ab1G\xf2\xc0Y\xb6\xe0\xa7mE\xb8\xca'), chr(1587 - 1487) + chr(6442 - 6341) + chr(0b1100011) + '\x6f' + chr(0b1100 + 0o130) + chr(0b1100101))(chr(0b1110101) + '\x74' + '\146' + '\055' + chr(1268 - 1212))][roI3spqORKae(ES5oEprVxulp(b'\xd7h;C\xe4'), chr(100) + chr(0b1100101) + chr(99) + chr(0b1110 + 0o141) + '\144' + '\145')(chr(0b1010011 + 0o42) + chr(6200 - 6084) + chr(0b1100110) + chr(0b101101) + chr(1030 - 974))] = nzTpIcepk0o8(LFGJis0twPv7[nzTpIcepk0o8(chr(726 - 678) + '\x6f' + chr(2200 - 2151), 8)])
else:
QA8TZurzG25Z[roI3spqORKae(ES5oEprVxulp(b'\x9ab1G\xf2\xc0Y\xb6\xe0\xa7mE\xb8\xca'), chr(100) + chr(7577 - 7476) + chr(99) + chr(0b1101111) + chr(0b1011101 + 0o7) + chr(101))(chr(0b1110101) + chr(0b1001 + 0o153) + chr(0b1100110) + '\x2d' + chr(465 - 409))][roI3spqORKae(ES5oEprVxulp(b'\xd8o:J\xf8'), chr(7495 - 7395) + chr(0b1100101) + '\x63' + '\x6f' + chr(0b1001101 + 0o27) + '\x65')(chr(9936 - 9819) + chr(116) + '\x66' + '\055' + chr(1343 - 1287))] = Y5hy67u6RirU
return QA8TZurzG25Z
|
dnanexus/dx-toolkit
|
src/python/dxpy/cli/exec_io.py
|
ExecutableInputs.update
|
def update(self, new_inputs, strip_prefix=True):
"""
Updates the inputs dictionary with the key/value pairs from new_inputs, overwriting existing keys.
"""
if strip_prefix and self.input_name_prefix is not None:
for i in new_inputs:
if i.startswith(self.input_name_prefix):
self.inputs[i[len(self.input_name_prefix):]] = new_inputs[i]
else:
self.inputs.update(new_inputs)
|
python
|
def update(self, new_inputs, strip_prefix=True):
"""
Updates the inputs dictionary with the key/value pairs from new_inputs, overwriting existing keys.
"""
if strip_prefix and self.input_name_prefix is not None:
for i in new_inputs:
if i.startswith(self.input_name_prefix):
self.inputs[i[len(self.input_name_prefix):]] = new_inputs[i]
else:
self.inputs.update(new_inputs)
|
[
"def",
"update",
"(",
"self",
",",
"new_inputs",
",",
"strip_prefix",
"=",
"True",
")",
":",
"if",
"strip_prefix",
"and",
"self",
".",
"input_name_prefix",
"is",
"not",
"None",
":",
"for",
"i",
"in",
"new_inputs",
":",
"if",
"i",
".",
"startswith",
"(",
"self",
".",
"input_name_prefix",
")",
":",
"self",
".",
"inputs",
"[",
"i",
"[",
"len",
"(",
"self",
".",
"input_name_prefix",
")",
":",
"]",
"]",
"=",
"new_inputs",
"[",
"i",
"]",
"else",
":",
"self",
".",
"inputs",
".",
"update",
"(",
"new_inputs",
")"
] |
Updates the inputs dictionary with the key/value pairs from new_inputs, overwriting existing keys.
|
[
"Updates",
"the",
"inputs",
"dictionary",
"with",
"the",
"key",
"/",
"value",
"pairs",
"from",
"new_inputs",
"overwriting",
"existing",
"keys",
"."
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/cli/exec_io.py#L486-L495
|
train
|
Updates the internal inputs dictionary with the key value pairs from new_inputs overwriting existing keys.
|
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,knUxyjfq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JNtLk2mncQ,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(6619 - 6508) + chr(0b110010 + 0o1) + chr(0b110011 + 0o3) + chr(0b110001 + 0o3), 10390 - 10382), nzTpIcepk0o8(chr(355 - 307) + chr(0b100011 + 0o114) + chr(49) + '\061' + chr(0b110010), 0b1000), nzTpIcepk0o8(chr(0b10101 + 0o33) + chr(0b1101111) + '\x31' + '\060', 22678 - 22670), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(356 - 306) + '\x37' + chr(522 - 473), 9674 - 9666), nzTpIcepk0o8(chr(0b100001 + 0o17) + '\x6f' + chr(0b110010) + chr(0b110011) + chr(53), 49490 - 49482), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(721 - 670) + chr(0b110101), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110010) + chr(51) + chr(88 - 34), ord("\x08")), nzTpIcepk0o8(chr(1839 - 1791) + '\157' + '\066', 0b1000), nzTpIcepk0o8(chr(48) + chr(3944 - 3833) + '\062' + '\063' + '\x36', 8), nzTpIcepk0o8(chr(2084 - 2036) + '\x6f' + '\x33' + '\x32' + chr(0b10 + 0o61), ord("\x08")), nzTpIcepk0o8(chr(423 - 375) + '\x6f' + '\061' + '\065' + chr(2444 - 2389), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(51) + '\065' + '\x33', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(51) + chr(49) + chr(50), 38607 - 38599), nzTpIcepk0o8(chr(2219 - 2171) + chr(0b1101111) + chr(2243 - 2190) + chr(0b10100 + 0o43), ord("\x08")), nzTpIcepk0o8(chr(943 - 895) + chr(7542 - 7431) + chr(1978 - 1923) + chr(1770 - 1715), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\061' + chr(1752 - 1700) + '\064', 0o10), nzTpIcepk0o8(chr(746 - 698) + '\x6f' + chr(51) + '\064' + chr(148 - 97), 0b1000), nzTpIcepk0o8('\x30' + chr(7073 - 6962) + '\x33' + chr(0b110010), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x31' + chr(2449 - 2395) + chr(0b100101 + 0o15), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(51) + chr(0b110110) + '\060', 0o10), nzTpIcepk0o8('\060' + chr(111) + '\x33' + '\x32' + '\x37', 0b1000), nzTpIcepk0o8(chr(0b110 + 0o52) + chr(0b1100000 + 0o17) + '\x33' + chr(54) + chr(0b110100), 8), nzTpIcepk0o8('\x30' + chr(0b1000111 + 0o50) + chr(0b110011) + chr(175 - 127) + chr(2561 - 2507), ord("\x08")), nzTpIcepk0o8(chr(0b1001 + 0o47) + '\x6f' + '\x37' + chr(0b101101 + 0o6), 13876 - 13868), nzTpIcepk0o8(chr(0b1 + 0o57) + chr(111) + chr(758 - 703) + chr(0b110 + 0o55), 8), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110001) + chr(0b110011) + chr(0b110011), 45306 - 45298), nzTpIcepk0o8('\060' + chr(0b111001 + 0o66) + '\x32' + chr(780 - 729), ord("\x08")), nzTpIcepk0o8('\060' + chr(9297 - 9186) + '\063' + chr(0b110011) + chr(54), 47494 - 47486), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110011) + chr(1932 - 1879), 8), nzTpIcepk0o8('\x30' + chr(0b101 + 0o152) + '\061' + '\x34' + chr(0b110110), 0b1000), nzTpIcepk0o8(chr(48) + chr(8031 - 7920) + chr(989 - 939) + '\067', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\062' + chr(0b110000) + chr(0b101100 + 0o4), 9260 - 9252), nzTpIcepk0o8(chr(1869 - 1821) + chr(0b1101111) + chr(54) + chr(0b110111), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b100110 + 0o17) + chr(1714 - 1662), 0o10), nzTpIcepk0o8(chr(2069 - 2021) + chr(111) + chr(52) + chr(0b110010), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(51) + chr(429 - 380) + '\x32', 8), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(50) + chr(52) + chr(48), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(1871 - 1822) + chr(0b110111), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + '\x33' + chr(0b110110) + chr(901 - 846), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x35' + chr(0b110000), 49126 - 49118)][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + chr(4600 - 4489) + '\x35' + chr(0b110000), 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xda'), chr(0b100100 + 0o100) + chr(8233 - 8132) + chr(0b1100011) + '\x6f' + chr(0b100101 + 0o77) + chr(0b1100101))(chr(4283 - 4166) + chr(116) + chr(6175 - 6073) + chr(1029 - 984) + chr(0b111000)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def J_k2IYB1ceqn(hXMPsSrOQzbh, ztqXoBKTme7v, QL2Xm7n5iPds=nzTpIcepk0o8('\x30' + '\157' + chr(49), 58567 - 58559)):
if QL2Xm7n5iPds and roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x9d$x\xcc\xe9B\xf0g\xf3\xb60\x9b\xb8JY\r\x9b'), chr(0b1100100) + chr(2803 - 2702) + '\x63' + chr(0b1101111) + chr(0b11010 + 0o112) + chr(0b10100 + 0o121))(chr(13026 - 12909) + '\164' + '\x66' + chr(0b10011 + 0o32) + '\070')) is not None:
for ZlbFMSG8gCoF in ztqXoBKTme7v:
if roI3spqORKae(ZlbFMSG8gCoF, roI3spqORKae(ES5oEprVxulp(b'\x87>i\xcb\xe9n\xe9o\xea\xbb'), chr(0b100101 + 0o77) + '\x65' + chr(99) + chr(623 - 512) + chr(0b1100100) + chr(2164 - 2063))(chr(0b1101111 + 0o6) + chr(116) + chr(0b1011010 + 0o14) + '\x2d' + chr(0b10101 + 0o43)))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x9d$x\xcc\xe9B\xf0g\xf3\xb60\x9b\xb8JY\r\x9b'), chr(100) + '\145' + '\143' + '\157' + chr(4090 - 3990) + '\x65')(chr(117) + chr(0b100000 + 0o124) + '\146' + chr(45) + '\070'))):
hXMPsSrOQzbh.GKlPkmr7AqQT[ZlbFMSG8gCoF[ftfygxgFas5X(hXMPsSrOQzbh.L6NnRef4dArX):]] = ztqXoBKTme7v[ZlbFMSG8gCoF]
else:
roI3spqORKae(hXMPsSrOQzbh.inputs, roI3spqORKae(ES5oEprVxulp(b'\xbe\x15c\x8b\xd4D\xdc7\xfd\xb6\x1e\x85'), chr(0b11111 + 0o105) + '\x65' + chr(0b1100011) + chr(6267 - 6156) + chr(0b1100100) + chr(2534 - 2433))(chr(0b1110101) + chr(0b111010 + 0o72) + '\146' + '\055' + '\070'))(ztqXoBKTme7v)
|
dnanexus/dx-toolkit
|
src/python/dxpy/cli/exec_io.py
|
ExecutableInputs._update_requires_resolution_inputs
|
def _update_requires_resolution_inputs(self):
"""
Updates self.inputs with resolved input values (the input values that were provided
as paths to items that require resolutions, eg. folder or job/analyses ids)
"""
input_paths = [quad[1] for quad in self.requires_resolution]
results = resolve_multiple_existing_paths(input_paths)
for input_name, input_value, input_class, input_index in self.requires_resolution:
project = results[input_value]['project']
folderpath = results[input_value]['folder']
entity_result = results[input_value]['name']
if input_class is None:
if entity_result is not None:
if isinstance(entity_result, basestring):
# Case: -ifoo=job-012301230123012301230123
# Case: -ifoo=analysis-012301230123012301230123
assert(is_job_id(entity_result) or
(is_analysis_id(entity_result)))
input_value = entity_result
elif is_hashid(input_value):
input_value = {'$dnanexus_link': entity_result['id']}
elif 'describe' in entity_result:
# Then findDataObjects was called (returned describe hash)
input_value = {"$dnanexus_link": {"project": entity_result['describe']['project'],
"id": entity_result['id']}}
else:
# Then resolveDataObjects was called in a batch (no describe hash)
input_value = {"$dnanexus_link": {"project": entity_result['project'],
"id": entity_result['id']}}
if input_index >= 0:
if self.inputs[input_name][input_index] is not None:
raise AssertionError("Expected 'self.inputs' to have saved a spot for 'input_value'.")
self.inputs[input_name][input_index] = input_value
else:
if self.inputs[input_name] is not None:
raise AssertionError("Expected 'self.inputs' to have saved a spot for 'input_value'.")
self.inputs[input_name] = input_value
else:
msg = 'Value provided for input field "' + input_name + '" could not be parsed as ' + \
input_class + ': '
if input_value == '':
raise DXCLIError(msg + 'empty string cannot be resolved')
if entity_result is None:
raise DXCLIError(msg + 'could not resolve \"' + input_value + '\" to a name or ID')
try:
dxpy.bindings.verify_string_dxid(entity_result['id'], input_class)
except DXError as details:
raise DXCLIError(msg + str(details))
if is_hashid(input_value):
input_value = {'$dnanexus_link': entity_result['id']}
elif 'describe' in entity_result:
# Then findDataObjects was called (returned describe hash)
input_value = {'$dnanexus_link': {"project": entity_result['describe']['project'],
"id": entity_result['id']}}
else:
# Then resolveDataObjects was called in a batch (no describe hash)
input_value = {"$dnanexus_link": {"project": entity_result['project'],
"id": entity_result['id']}}
if input_index != -1:
# The class is an array, so append the resolved value
self.inputs[input_name].append(input_value)
else:
self.inputs[input_name] = input_value
|
python
|
def _update_requires_resolution_inputs(self):
"""
Updates self.inputs with resolved input values (the input values that were provided
as paths to items that require resolutions, eg. folder or job/analyses ids)
"""
input_paths = [quad[1] for quad in self.requires_resolution]
results = resolve_multiple_existing_paths(input_paths)
for input_name, input_value, input_class, input_index in self.requires_resolution:
project = results[input_value]['project']
folderpath = results[input_value]['folder']
entity_result = results[input_value]['name']
if input_class is None:
if entity_result is not None:
if isinstance(entity_result, basestring):
# Case: -ifoo=job-012301230123012301230123
# Case: -ifoo=analysis-012301230123012301230123
assert(is_job_id(entity_result) or
(is_analysis_id(entity_result)))
input_value = entity_result
elif is_hashid(input_value):
input_value = {'$dnanexus_link': entity_result['id']}
elif 'describe' in entity_result:
# Then findDataObjects was called (returned describe hash)
input_value = {"$dnanexus_link": {"project": entity_result['describe']['project'],
"id": entity_result['id']}}
else:
# Then resolveDataObjects was called in a batch (no describe hash)
input_value = {"$dnanexus_link": {"project": entity_result['project'],
"id": entity_result['id']}}
if input_index >= 0:
if self.inputs[input_name][input_index] is not None:
raise AssertionError("Expected 'self.inputs' to have saved a spot for 'input_value'.")
self.inputs[input_name][input_index] = input_value
else:
if self.inputs[input_name] is not None:
raise AssertionError("Expected 'self.inputs' to have saved a spot for 'input_value'.")
self.inputs[input_name] = input_value
else:
msg = 'Value provided for input field "' + input_name + '" could not be parsed as ' + \
input_class + ': '
if input_value == '':
raise DXCLIError(msg + 'empty string cannot be resolved')
if entity_result is None:
raise DXCLIError(msg + 'could not resolve \"' + input_value + '\" to a name or ID')
try:
dxpy.bindings.verify_string_dxid(entity_result['id'], input_class)
except DXError as details:
raise DXCLIError(msg + str(details))
if is_hashid(input_value):
input_value = {'$dnanexus_link': entity_result['id']}
elif 'describe' in entity_result:
# Then findDataObjects was called (returned describe hash)
input_value = {'$dnanexus_link': {"project": entity_result['describe']['project'],
"id": entity_result['id']}}
else:
# Then resolveDataObjects was called in a batch (no describe hash)
input_value = {"$dnanexus_link": {"project": entity_result['project'],
"id": entity_result['id']}}
if input_index != -1:
# The class is an array, so append the resolved value
self.inputs[input_name].append(input_value)
else:
self.inputs[input_name] = input_value
|
[
"def",
"_update_requires_resolution_inputs",
"(",
"self",
")",
":",
"input_paths",
"=",
"[",
"quad",
"[",
"1",
"]",
"for",
"quad",
"in",
"self",
".",
"requires_resolution",
"]",
"results",
"=",
"resolve_multiple_existing_paths",
"(",
"input_paths",
")",
"for",
"input_name",
",",
"input_value",
",",
"input_class",
",",
"input_index",
"in",
"self",
".",
"requires_resolution",
":",
"project",
"=",
"results",
"[",
"input_value",
"]",
"[",
"'project'",
"]",
"folderpath",
"=",
"results",
"[",
"input_value",
"]",
"[",
"'folder'",
"]",
"entity_result",
"=",
"results",
"[",
"input_value",
"]",
"[",
"'name'",
"]",
"if",
"input_class",
"is",
"None",
":",
"if",
"entity_result",
"is",
"not",
"None",
":",
"if",
"isinstance",
"(",
"entity_result",
",",
"basestring",
")",
":",
"# Case: -ifoo=job-012301230123012301230123",
"# Case: -ifoo=analysis-012301230123012301230123",
"assert",
"(",
"is_job_id",
"(",
"entity_result",
")",
"or",
"(",
"is_analysis_id",
"(",
"entity_result",
")",
")",
")",
"input_value",
"=",
"entity_result",
"elif",
"is_hashid",
"(",
"input_value",
")",
":",
"input_value",
"=",
"{",
"'$dnanexus_link'",
":",
"entity_result",
"[",
"'id'",
"]",
"}",
"elif",
"'describe'",
"in",
"entity_result",
":",
"# Then findDataObjects was called (returned describe hash)",
"input_value",
"=",
"{",
"\"$dnanexus_link\"",
":",
"{",
"\"project\"",
":",
"entity_result",
"[",
"'describe'",
"]",
"[",
"'project'",
"]",
",",
"\"id\"",
":",
"entity_result",
"[",
"'id'",
"]",
"}",
"}",
"else",
":",
"# Then resolveDataObjects was called in a batch (no describe hash)",
"input_value",
"=",
"{",
"\"$dnanexus_link\"",
":",
"{",
"\"project\"",
":",
"entity_result",
"[",
"'project'",
"]",
",",
"\"id\"",
":",
"entity_result",
"[",
"'id'",
"]",
"}",
"}",
"if",
"input_index",
">=",
"0",
":",
"if",
"self",
".",
"inputs",
"[",
"input_name",
"]",
"[",
"input_index",
"]",
"is",
"not",
"None",
":",
"raise",
"AssertionError",
"(",
"\"Expected 'self.inputs' to have saved a spot for 'input_value'.\"",
")",
"self",
".",
"inputs",
"[",
"input_name",
"]",
"[",
"input_index",
"]",
"=",
"input_value",
"else",
":",
"if",
"self",
".",
"inputs",
"[",
"input_name",
"]",
"is",
"not",
"None",
":",
"raise",
"AssertionError",
"(",
"\"Expected 'self.inputs' to have saved a spot for 'input_value'.\"",
")",
"self",
".",
"inputs",
"[",
"input_name",
"]",
"=",
"input_value",
"else",
":",
"msg",
"=",
"'Value provided for input field \"'",
"+",
"input_name",
"+",
"'\" could not be parsed as '",
"+",
"input_class",
"+",
"': '",
"if",
"input_value",
"==",
"''",
":",
"raise",
"DXCLIError",
"(",
"msg",
"+",
"'empty string cannot be resolved'",
")",
"if",
"entity_result",
"is",
"None",
":",
"raise",
"DXCLIError",
"(",
"msg",
"+",
"'could not resolve \\\"'",
"+",
"input_value",
"+",
"'\\\" to a name or ID'",
")",
"try",
":",
"dxpy",
".",
"bindings",
".",
"verify_string_dxid",
"(",
"entity_result",
"[",
"'id'",
"]",
",",
"input_class",
")",
"except",
"DXError",
"as",
"details",
":",
"raise",
"DXCLIError",
"(",
"msg",
"+",
"str",
"(",
"details",
")",
")",
"if",
"is_hashid",
"(",
"input_value",
")",
":",
"input_value",
"=",
"{",
"'$dnanexus_link'",
":",
"entity_result",
"[",
"'id'",
"]",
"}",
"elif",
"'describe'",
"in",
"entity_result",
":",
"# Then findDataObjects was called (returned describe hash)",
"input_value",
"=",
"{",
"'$dnanexus_link'",
":",
"{",
"\"project\"",
":",
"entity_result",
"[",
"'describe'",
"]",
"[",
"'project'",
"]",
",",
"\"id\"",
":",
"entity_result",
"[",
"'id'",
"]",
"}",
"}",
"else",
":",
"# Then resolveDataObjects was called in a batch (no describe hash)",
"input_value",
"=",
"{",
"\"$dnanexus_link\"",
":",
"{",
"\"project\"",
":",
"entity_result",
"[",
"'project'",
"]",
",",
"\"id\"",
":",
"entity_result",
"[",
"'id'",
"]",
"}",
"}",
"if",
"input_index",
"!=",
"-",
"1",
":",
"# The class is an array, so append the resolved value",
"self",
".",
"inputs",
"[",
"input_name",
"]",
".",
"append",
"(",
"input_value",
")",
"else",
":",
"self",
".",
"inputs",
"[",
"input_name",
"]",
"=",
"input_value"
] |
Updates self.inputs with resolved input values (the input values that were provided
as paths to items that require resolutions, eg. folder or job/analyses ids)
|
[
"Updates",
"self",
".",
"inputs",
"with",
"resolved",
"input",
"values",
"(",
"the",
"input",
"values",
"that",
"were",
"provided",
"as",
"paths",
"to",
"items",
"that",
"require",
"resolutions",
"eg",
".",
"folder",
"or",
"job",
"/",
"analyses",
"ids",
")"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/cli/exec_io.py#L497-L559
|
train
|
Updates self. inputs with resolved input 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,Awc2Qm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,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(0b10000 + 0o137) + chr(55) + '\065', 0b1000), nzTpIcepk0o8(chr(0b1001 + 0o47) + chr(0b1101111) + chr(914 - 865) + chr(49) + '\060', 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b100111 + 0o12) + chr(578 - 526) + chr(260 - 210), 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(0b110001) + chr(0b0 + 0o60) + chr(594 - 546), 44691 - 44683), nzTpIcepk0o8('\x30' + '\157' + chr(0b11111 + 0o24) + '\x32' + '\060', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(8341 - 8230) + '\x34' + chr(0b110010), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(7106 - 6995) + '\061' + '\x32' + chr(0b110101), 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(2124 - 2072) + chr(0b110100), 0o10), nzTpIcepk0o8('\060' + chr(11453 - 11342) + chr(0b110000 + 0o6), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x33' + '\x32' + chr(52), ord("\x08")), nzTpIcepk0o8('\x30' + chr(9014 - 8903) + '\x33' + chr(0b110110) + chr(0b100011 + 0o17), 0o10), nzTpIcepk0o8(chr(0b101011 + 0o5) + chr(111) + chr(0b110011) + chr(494 - 440) + '\065', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1000000 + 0o57) + chr(50) + '\x33' + chr(52), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1001101 + 0o42) + chr(0b111 + 0o54) + chr(0b101101 + 0o4) + '\x34', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(880 - 827) + chr(0b10000 + 0o42), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(53) + chr(48), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110010) + chr(176 - 127) + chr(1041 - 988), ord("\x08")), nzTpIcepk0o8(chr(0b110 + 0o52) + '\157' + chr(0b1100 + 0o46) + '\x30' + chr(0b110000), ord("\x08")), nzTpIcepk0o8(chr(2072 - 2024) + '\157' + chr(0b110011) + chr(0b0 + 0o64) + chr(48), 0b1000), nzTpIcepk0o8('\060' + chr(0b1010100 + 0o33) + chr(51) + chr(53), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b101111 + 0o3) + '\x30' + chr(0b110100), 37878 - 37870), nzTpIcepk0o8(chr(48) + chr(1178 - 1067) + '\x31', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(48), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110111) + chr(69 - 20), 18959 - 18951), nzTpIcepk0o8('\x30' + '\157' + chr(0b110101) + '\x30', 8), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(960 - 909) + chr(1540 - 1485) + chr(49), 0b1000), nzTpIcepk0o8(chr(991 - 943) + chr(0b1101111) + chr(0b110011) + '\x33' + '\065', 0b1000), nzTpIcepk0o8(chr(361 - 313) + '\x6f' + chr(49) + chr(2006 - 1951) + chr(0b101000 + 0o10), 0b1000), nzTpIcepk0o8(chr(0b10101 + 0o33) + '\x6f' + '\x33' + chr(0b110110) + chr(54), ord("\x08")), nzTpIcepk0o8(chr(238 - 190) + '\x6f' + '\067' + '\061', 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1011111 + 0o20) + '\063' + chr(0b101101 + 0o12) + chr(0b110001), 8), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110010) + chr(0b111 + 0o57) + chr(0b1000 + 0o57), 0o10), nzTpIcepk0o8(chr(917 - 869) + chr(8066 - 7955) + chr(0b110010) + '\x30' + chr(48), 8), nzTpIcepk0o8(chr(0b101110 + 0o2) + chr(1100 - 989) + chr(51) + chr(0b110011 + 0o4) + chr(50), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1010100 + 0o33) + chr(0b110110) + '\065', 0b1000), nzTpIcepk0o8(chr(833 - 785) + chr(0b1000 + 0o147) + chr(2905 - 2851) + chr(0b1111 + 0o43), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b100000 + 0o117) + '\x31' + chr(0b110111) + chr(50), ord("\x08")), nzTpIcepk0o8(chr(1989 - 1941) + '\157' + chr(0b110011 + 0o0) + chr(0b110000) + chr(1595 - 1545), 0b1000), nzTpIcepk0o8('\x30' + chr(0b10 + 0o155) + chr(0b110101), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110011) + chr(1040 - 986) + chr(48), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(1233 - 1180) + chr(0b1111 + 0o41), 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x13'), chr(100) + '\x65' + '\143' + chr(0b1100100 + 0o13) + chr(100) + chr(0b1100101))(chr(0b1110101) + '\164' + '\146' + chr(0b101101) + chr(0b111000)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def TH63RQl0CuWi(hXMPsSrOQzbh):
NWsxfMwQ7xmY = [vQ4opNoO5L6q[nzTpIcepk0o8('\x30' + '\157' + chr(49), 8)] for vQ4opNoO5L6q in hXMPsSrOQzbh.requires_resolution]
v3B6eeO_B_ws = A22WknY07m5X(NWsxfMwQ7xmY)
for (kuoRyThafoKX, QGp8342avm0i, Hwf8kiRD9jLA, ZUg5ZGnD8mWF) in roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'O-\x135\xb9P0WY\xa6\x97\x86\xf3\xa0_\\\xe4\xef\x8e'), chr(100) + chr(0b101 + 0o140) + '\143' + chr(4570 - 4459) + chr(100) + chr(5981 - 5880))(chr(117) + '\164' + chr(3527 - 3425) + '\x2d' + chr(56))):
mcjejRq_Q0_k = v3B6eeO_B_ws[QGp8342avm0i][roI3spqORKae(ES5oEprVxulp(b'M:\r*\xb5A!'), '\144' + chr(0b100111 + 0o76) + chr(0b100010 + 0o101) + '\x6f' + chr(100) + '\x65')('\165' + chr(0b110000 + 0o104) + '\146' + chr(0b10 + 0o53) + '\070')]
rkFuI3Ydes2E = v3B6eeO_B_ws[QGp8342avm0i][roI3spqORKae(ES5oEprVxulp(b"['\x0e$\xb5P"), chr(0b10111 + 0o115) + '\145' + chr(99) + chr(111) + '\x64' + chr(0b1010111 + 0o16))(chr(117) + chr(0b1010101 + 0o37) + chr(0b110 + 0o140) + chr(0b101101) + chr(0b1100 + 0o54))]
FWnd62k_xczJ = v3B6eeO_B_ws[QGp8342avm0i][roI3spqORKae(ES5oEprVxulp(b'S)\x0f%'), chr(100) + chr(7147 - 7046) + chr(0b1100011) + chr(7896 - 7785) + '\x64' + '\x65')('\165' + '\164' + chr(0b11010 + 0o114) + chr(0b101101) + chr(56))]
if Hwf8kiRD9jLA is None:
if FWnd62k_xczJ is not None:
if suIjIS24Zkqw(FWnd62k_xczJ, JaQstSroDWOP):
assert j3uM4EdgM5f5(FWnd62k_xczJ) or jqrbH9kZMHQC(FWnd62k_xczJ)
QGp8342avm0i = FWnd62k_xczJ
elif fBxieHaVkyd6(QGp8342avm0i):
QGp8342avm0i = {roI3spqORKae(ES5oEprVxulp(b'\x19,\x0c!\xbeG-Qu\x8b\x9e\x9c\xf2\xa7'), chr(7198 - 7098) + chr(101) + chr(1481 - 1382) + chr(1435 - 1324) + chr(0b1011000 + 0o14) + '\145')('\x75' + '\x74' + '\x66' + '\055' + chr(0b111000)): FWnd62k_xczJ[roI3spqORKae(ES5oEprVxulp(b'T,'), chr(100) + chr(0b1100101) + '\x63' + '\x6f' + chr(9962 - 9862) + chr(202 - 101))(chr(0b1110101) + chr(8424 - 8308) + '\x66' + '\055' + '\x38')]}
elif roI3spqORKae(ES5oEprVxulp(b'Y-\x11#\xa2K7A'), chr(0b1011 + 0o131) + chr(101) + chr(3220 - 3121) + '\x6f' + '\144' + chr(3814 - 3713))('\x75' + chr(3167 - 3051) + chr(0b111000 + 0o56) + chr(0b101101) + chr(56)) in FWnd62k_xczJ:
QGp8342avm0i = {roI3spqORKae(ES5oEprVxulp(b'\x19,\x0c!\xbeG-Qu\x8b\x9e\x9c\xf2\xa7'), chr(5695 - 5595) + chr(612 - 511) + chr(99) + chr(3267 - 3156) + chr(100) + chr(0b1100101))(chr(117) + chr(0b1000010 + 0o62) + chr(4092 - 3990) + '\055' + '\x38'): {roI3spqORKae(ES5oEprVxulp(b'M:\r*\xb5A!'), chr(0b1100100) + chr(101) + chr(0b1100000 + 0o3) + chr(6928 - 6817) + chr(100) + chr(0b1100101))('\165' + chr(11444 - 11328) + chr(0b1100110) + chr(45) + chr(56)): FWnd62k_xczJ[roI3spqORKae(ES5oEprVxulp(b'Y-\x11#\xa2K7A'), chr(9966 - 9866) + chr(0b11001 + 0o114) + chr(4917 - 4818) + '\x6f' + '\x64' + chr(0b1100101))('\165' + chr(0b1110100) + chr(0b1010 + 0o134) + chr(189 - 144) + chr(0b11111 + 0o31))][roI3spqORKae(ES5oEprVxulp(b'M:\r*\xb5A!'), chr(0b1100100) + '\x65' + chr(99) + '\157' + '\144' + chr(0b1100101))(chr(7744 - 7627) + chr(0b10101 + 0o137) + '\x66' + chr(0b101101) + chr(0b111000))], roI3spqORKae(ES5oEprVxulp(b'T,'), chr(0b101101 + 0o67) + chr(101) + chr(99) + chr(0b101111 + 0o100) + '\144' + chr(5282 - 5181))(chr(0b1110101) + chr(116) + chr(0b1100110) + chr(0b101101) + '\070'): FWnd62k_xczJ[roI3spqORKae(ES5oEprVxulp(b'T,'), chr(3985 - 3885) + chr(8329 - 8228) + chr(2344 - 2245) + chr(825 - 714) + '\x64' + '\145')(chr(0b1110101) + '\164' + '\x66' + '\x2d' + '\070')]}}
else:
QGp8342avm0i = {roI3spqORKae(ES5oEprVxulp(b'\x19,\x0c!\xbeG-Qu\x8b\x9e\x9c\xf2\xa7'), '\x64' + chr(101) + chr(99) + chr(4344 - 4233) + chr(1207 - 1107) + '\145')(chr(0b1110101 + 0o0) + chr(116) + '\x66' + '\x2d' + '\070'): {roI3spqORKae(ES5oEprVxulp(b'M:\r*\xb5A!'), '\x64' + '\x65' + chr(6273 - 6174) + chr(0b11110 + 0o121) + chr(0b1100100) + chr(4762 - 4661))(chr(117) + '\x74' + '\146' + chr(0b1011 + 0o42) + '\x38'): FWnd62k_xczJ[roI3spqORKae(ES5oEprVxulp(b'M:\r*\xb5A!'), chr(0b1100100) + chr(0b111111 + 0o46) + chr(0b11100 + 0o107) + chr(8711 - 8600) + chr(1191 - 1091) + chr(4969 - 4868))(chr(0b1101110 + 0o7) + chr(0b100011 + 0o121) + chr(102) + chr(0b101101) + '\x38')], roI3spqORKae(ES5oEprVxulp(b'T,'), chr(100) + chr(8121 - 8020) + '\x63' + chr(0b1101111) + chr(0b101000 + 0o74) + chr(101))(chr(0b1110101) + chr(0b1110100) + '\146' + chr(1647 - 1602) + chr(0b1111 + 0o51)): FWnd62k_xczJ[roI3spqORKae(ES5oEprVxulp(b'T,'), '\144' + '\x65' + chr(0b111111 + 0o44) + '\157' + '\144' + chr(0b1100101))(chr(117) + chr(0b1110100) + '\146' + chr(0b1110 + 0o37) + chr(2391 - 2335))]}}
if ZUg5ZGnD8mWF >= nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b1001 + 0o47), 8):
if roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b"z\x03\x0e\x10\xbbO'\x13G\xa5\xa3\xa1"), chr(0b1100100) + chr(6316 - 6215) + chr(0b111 + 0o134) + chr(0b1100110 + 0o11) + '\x64' + '\145')(chr(0b100011 + 0o122) + chr(116) + chr(9509 - 9407) + chr(0b101101) + '\x38'))[kuoRyThafoKX][ZUg5ZGnD8mWF] is not None:
raise B3LV8Eo811Ma(roI3spqORKae(ES5oEprVxulp(b"x0\x12%\xb3V0@&\xf3\x81\x90\xf0\xaa\x04A\xe3\xf0\x95i\xf7& MG\xd9\xb5\x19\x80\\\xd9\xc4\xe1\x8cPVZ\xa3%\x83M'\x16`\xb6M'\x04!\xbd\x9c\x85\xe9\xb8u^\xec\xec\x95x\xa3/"), chr(0b1100100) + '\145' + chr(99) + '\x6f' + '\x64' + '\145')(chr(117) + chr(11386 - 11270) + '\146' + chr(0b101101) + chr(833 - 777)))
hXMPsSrOQzbh.GKlPkmr7AqQT[kuoRyThafoKX][ZUg5ZGnD8mWF] = QGp8342avm0i
else:
if roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b"z\x03\x0e\x10\xbbO'\x13G\xa5\xa3\xa1"), chr(1712 - 1612) + chr(0b10011 + 0o122) + chr(0b111 + 0o134) + chr(0b1101 + 0o142) + chr(100) + chr(0b110111 + 0o56))('\x75' + chr(0b1110100) + chr(0b1100110) + chr(0b101101) + chr(56)))[kuoRyThafoKX] is not None:
raise B3LV8Eo811Ma(roI3spqORKae(ES5oEprVxulp(b"x0\x12%\xb3V0@&\xf3\x81\x90\xf0\xaa\x04A\xe3\xf0\x95i\xf7& MG\xd9\xb5\x19\x80\\\xd9\xc4\xe1\x8cPVZ\xa3%\x83M'\x16`\xb6M'\x04!\xbd\x9c\x85\xe9\xb8u^\xec\xec\x95x\xa3/"), chr(0b1100100) + chr(0b1010000 + 0o25) + chr(5538 - 5439) + chr(9496 - 9385) + chr(0b1100100) + chr(0b11101 + 0o110))(chr(0b1110101) + chr(116) + '\146' + chr(0b11010 + 0o23) + '\070'))
hXMPsSrOQzbh.GKlPkmr7AqQT[kuoRyThafoKX] = QGp8342avm0i
else:
sldzbHve8G1S = roI3spqORKae(ES5oEprVxulp(b'k)\x0e5\xb5\x02%Vi\xa2\x9b\x91\xf9\xa8\nN\xe2\xf2\xc0t\xeaquM\x08\x9f\xb4\x1d\x9a]\xd9\x95'), chr(7870 - 7770) + chr(0b1100101) + chr(0b11110 + 0o105) + chr(5432 - 5321) + chr(0b110011 + 0o61) + chr(101))('\165' + chr(0b1110 + 0o146) + '\x66' + '\055' + '\070') + kuoRyThafoKX + roI3spqORKae(ES5oEprVxulp(b'\x1fh\x01/\xa5N1\x04h\xbb\x86\xd5\xfe\xa9\nX\xec\xf2\x93x\xe0!aJ\x08'), '\144' + chr(0b1100101) + '\x63' + '\x6f' + chr(0b1100000 + 0o4) + chr(0b1111 + 0o126))('\x75' + chr(0b1010100 + 0o40) + '\146' + chr(0b101101) + chr(2345 - 2289)) + Hwf8kiRD9jLA + roI3spqORKae(ES5oEprVxulp(b'\x07h'), '\x64' + '\x65' + '\x63' + '\x6f' + '\144' + chr(6943 - 6842))(chr(0b1100011 + 0o22) + chr(0b1110100) + chr(0b1100110) + '\x2d' + chr(0b11001 + 0o37))
if QGp8342avm0i == roI3spqORKae(ES5oEprVxulp(b''), chr(0b1010010 + 0o22) + '\145' + chr(0b11101 + 0o106) + '\157' + chr(0b10001 + 0o123) + chr(3793 - 3692))(chr(117) + chr(11270 - 11154) + '\146' + chr(0b101101) + chr(0b111000)):
raise AIt41jcDTxpM(sldzbHve8G1S + roI3spqORKae(ES5oEprVxulp(b'X%\x124\xa9\x02&Pt\xbd\x9c\x92\xbc\xafKF\xe3\xef\x94=\xe6d KM\x8a\xb2\x14\x80\\\x9d'), chr(0b1000111 + 0o35) + chr(101) + '\x63' + chr(11520 - 11409) + '\x64' + chr(0b1100101))(chr(12652 - 12535) + '\x74' + '\x66' + '\055' + chr(923 - 867)))
if FWnd62k_xczJ is None:
raise AIt41jcDTxpM(sldzbHve8G1S + roI3spqORKae(ES5oEprVxulp(b"^'\x17,\xb4\x02;Kr\xf4\x80\x90\xef\xa3F^\xe8\xa0\xc2"), chr(1327 - 1227) + chr(0b1100 + 0o131) + chr(99) + '\157' + chr(100) + '\x65')(chr(7473 - 7356) + chr(0b111011 + 0o71) + '\x66' + '\055' + chr(0b111000)) + QGp8342avm0i + roI3spqORKae(ES5oEprVxulp(b'\x1fh\x16/\xf0CuJg\xb9\x97\xd5\xf3\xbe\na\xc9'), chr(0b1001011 + 0o31) + chr(4305 - 4204) + chr(0b1010100 + 0o17) + chr(111) + chr(0b101100 + 0o70) + chr(0b1100101))(chr(358 - 241) + chr(2817 - 2701) + chr(0b1100110) + '\x2d' + chr(56)))
try:
roI3spqORKae(SsdNdRxXOwsF.bindings, roI3spqORKae(ES5oEprVxulp(b'K-\x10)\xb6[\nWr\xa6\x9b\x9b\xfb\x93NP\xe4\xe4'), chr(0b1100100) + chr(101) + chr(6772 - 6673) + chr(111) + chr(3489 - 3389) + '\145')(chr(117) + '\x74' + '\146' + '\055' + '\x38'))(FWnd62k_xczJ[roI3spqORKae(ES5oEprVxulp(b'T,'), '\x64' + '\145' + chr(99) + chr(0b1100101 + 0o12) + chr(0b1100100) + chr(0b101101 + 0o70))(chr(117) + chr(0b11110 + 0o126) + chr(102) + chr(0b101101) + '\070')], Hwf8kiRD9jLA)
except JPU16lJ2koBU as MSO7REb1szzF:
raise AIt41jcDTxpM(sldzbHve8G1S + N9zlRy29S1SS(MSO7REb1szzF))
if fBxieHaVkyd6(QGp8342avm0i):
QGp8342avm0i = {roI3spqORKae(ES5oEprVxulp(b'\x19,\x0c!\xbeG-Qu\x8b\x9e\x9c\xf2\xa7'), chr(0b1100100) + '\145' + '\x63' + chr(111) + chr(100) + chr(0b1100101))(chr(117) + chr(0b1011011 + 0o31) + chr(9321 - 9219) + chr(0b11 + 0o52) + '\070'): FWnd62k_xczJ[roI3spqORKae(ES5oEprVxulp(b'T,'), chr(0b110 + 0o136) + chr(3267 - 3166) + '\x63' + '\x6f' + '\x64' + chr(849 - 748))(chr(0b11001 + 0o134) + chr(0b1110100) + '\x66' + chr(0b101101) + '\x38')]}
elif roI3spqORKae(ES5oEprVxulp(b'Y-\x11#\xa2K7A'), chr(100) + '\x65' + '\x63' + chr(0b110001 + 0o76) + '\x64' + chr(101))(chr(0b1001001 + 0o54) + '\164' + '\x66' + '\x2d' + '\070') in FWnd62k_xczJ:
QGp8342avm0i = {roI3spqORKae(ES5oEprVxulp(b'\x19,\x0c!\xbeG-Qu\x8b\x9e\x9c\xf2\xa7'), chr(0b1010001 + 0o23) + chr(0b110111 + 0o56) + '\143' + chr(6356 - 6245) + '\144' + chr(3747 - 3646))(chr(117) + chr(116) + chr(0b1000111 + 0o37) + chr(0b101101) + chr(0b111000)): {roI3spqORKae(ES5oEprVxulp(b'M:\r*\xb5A!'), chr(0b1100100) + chr(0b1100000 + 0o5) + chr(0b1100011) + chr(0b101000 + 0o107) + '\144' + chr(101))(chr(930 - 813) + chr(9291 - 9175) + chr(102) + chr(45) + chr(0b111000)): FWnd62k_xczJ[roI3spqORKae(ES5oEprVxulp(b'Y-\x11#\xa2K7A'), chr(0b1100100) + '\x65' + '\x63' + '\157' + chr(1564 - 1464) + chr(101))('\x75' + chr(0b1110100) + '\146' + chr(1944 - 1899) + chr(56))][roI3spqORKae(ES5oEprVxulp(b'M:\r*\xb5A!'), '\x64' + chr(101) + '\143' + chr(2097 - 1986) + chr(1279 - 1179) + '\x65')(chr(0b10111 + 0o136) + '\164' + '\146' + chr(0b101101) + '\x38')], roI3spqORKae(ES5oEprVxulp(b'T,'), chr(7669 - 7569) + chr(0b1001011 + 0o32) + '\x63' + chr(0b1101111) + chr(0b1100100) + chr(101))('\165' + chr(0b1110100) + '\146' + chr(798 - 753) + chr(0b1001 + 0o57)): FWnd62k_xczJ[roI3spqORKae(ES5oEprVxulp(b'T,'), chr(9069 - 8969) + '\145' + chr(0b1100011) + chr(0b1101111) + chr(0b10001 + 0o123) + chr(0b1100101))(chr(0b1110101) + chr(1326 - 1210) + chr(1747 - 1645) + '\x2d' + '\x38')]}}
else:
QGp8342avm0i = {roI3spqORKae(ES5oEprVxulp(b'\x19,\x0c!\xbeG-Qu\x8b\x9e\x9c\xf2\xa7'), chr(0b1000000 + 0o44) + chr(0b1100101) + '\143' + chr(0b1000010 + 0o55) + chr(100) + chr(0b1100000 + 0o5))(chr(6406 - 6289) + chr(9291 - 9175) + chr(6887 - 6785) + chr(45) + chr(0b111000)): {roI3spqORKae(ES5oEprVxulp(b'M:\r*\xb5A!'), chr(0b110011 + 0o61) + chr(0b1111 + 0o126) + '\x63' + '\157' + chr(8548 - 8448) + '\145')(chr(117) + '\x74' + chr(7355 - 7253) + chr(0b11100 + 0o21) + chr(0b101 + 0o63)): FWnd62k_xczJ[roI3spqORKae(ES5oEprVxulp(b'M:\r*\xb5A!'), chr(0b1100100) + chr(0b111001 + 0o54) + chr(9062 - 8963) + chr(111) + chr(6474 - 6374) + chr(0b1100101))(chr(0b100010 + 0o123) + chr(116) + '\x66' + '\055' + '\070')], roI3spqORKae(ES5oEprVxulp(b'T,'), '\144' + chr(0b1100101) + chr(660 - 561) + '\x6f' + chr(100) + chr(7881 - 7780))('\x75' + '\164' + chr(102) + chr(124 - 79) + '\x38'): FWnd62k_xczJ[roI3spqORKae(ES5oEprVxulp(b'T,'), chr(100) + chr(1606 - 1505) + chr(99) + '\x6f' + chr(100) + chr(7655 - 7554))(chr(117) + chr(8139 - 8023) + '\x66' + '\055' + chr(0b101101 + 0o13))]}}
if ZUg5ZGnD8mWF != -nzTpIcepk0o8('\x30' + '\157' + chr(0b110001), 8):
roI3spqORKae(hXMPsSrOQzbh.inputs[kuoRyThafoKX], roI3spqORKae(ES5oEprVxulp(b'u\x1c1t\xa8E\x12Kl\xbb\xa7\xc0'), chr(100) + '\145' + chr(99) + chr(0b1101111) + '\x64' + chr(144 - 43))(chr(117) + '\x74' + chr(0b1100110) + chr(0b100001 + 0o14) + '\x38'))(QGp8342avm0i)
else:
hXMPsSrOQzbh.GKlPkmr7AqQT[kuoRyThafoKX] = QGp8342avm0i
|
dnanexus/dx-toolkit
|
src/python/dxpy/utils/pretty_print.py
|
escape_unicode_string
|
def escape_unicode_string(u):
"""
Escapes the nonprintable chars 0-31 and 127, and backslash;
preferably with a friendly equivalent such as '\n' if available, but
otherwise with a Python-style backslashed hex escape.
"""
def replacer(matchobj):
if ord(matchobj.group(1)) == 127:
return "\\x7f"
if ord(matchobj.group(1)) == 92: # backslash
return "\\\\"
return REPLACEMENT_TABLE[ord(matchobj.group(1))]
return re.sub("([\\000-\\037\\134\\177])", replacer, u)
|
python
|
def escape_unicode_string(u):
"""
Escapes the nonprintable chars 0-31 and 127, and backslash;
preferably with a friendly equivalent such as '\n' if available, but
otherwise with a Python-style backslashed hex escape.
"""
def replacer(matchobj):
if ord(matchobj.group(1)) == 127:
return "\\x7f"
if ord(matchobj.group(1)) == 92: # backslash
return "\\\\"
return REPLACEMENT_TABLE[ord(matchobj.group(1))]
return re.sub("([\\000-\\037\\134\\177])", replacer, u)
|
[
"def",
"escape_unicode_string",
"(",
"u",
")",
":",
"def",
"replacer",
"(",
"matchobj",
")",
":",
"if",
"ord",
"(",
"matchobj",
".",
"group",
"(",
"1",
")",
")",
"==",
"127",
":",
"return",
"\"\\\\x7f\"",
"if",
"ord",
"(",
"matchobj",
".",
"group",
"(",
"1",
")",
")",
"==",
"92",
":",
"# backslash",
"return",
"\"\\\\\\\\\"",
"return",
"REPLACEMENT_TABLE",
"[",
"ord",
"(",
"matchobj",
".",
"group",
"(",
"1",
")",
")",
"]",
"return",
"re",
".",
"sub",
"(",
"\"([\\\\000-\\\\037\\\\134\\\\177])\"",
",",
"replacer",
",",
"u",
")"
] |
Escapes the nonprintable chars 0-31 and 127, and backslash;
preferably with a friendly equivalent such as '\n' if available, but
otherwise with a Python-style backslashed hex escape.
|
[
"Escapes",
"the",
"nonprintable",
"chars",
"0",
"-",
"31",
"and",
"127",
"and",
"backslash",
";",
"preferably",
"with",
"a",
"friendly",
"equivalent",
"such",
"as",
"\\",
"n",
"if",
"available",
"but",
"otherwise",
"with",
"a",
"Python",
"-",
"style",
"backslashed",
"hex",
"escape",
"."
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/utils/pretty_print.py#L61-L73
|
train
|
Escapes the given unicode 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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Lk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__
ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\060' + chr(111) + '\x31' + '\x36', 0b1000), nzTpIcepk0o8(chr(1246 - 1198) + chr(0b1011010 + 0o25) + chr(422 - 373) + chr(0b110110) + chr(0b110101 + 0o0), 0b1000), nzTpIcepk0o8('\060' + chr(111) + '\062' + chr(0b110101) + chr(0b110010), 20424 - 20416), nzTpIcepk0o8(chr(0b101000 + 0o10) + chr(111) + chr(0b110001) + chr(49) + chr(0b101 + 0o61), 0o10), nzTpIcepk0o8(chr(48) + '\157' + '\063' + '\x34' + '\x31', 0b1000), nzTpIcepk0o8(chr(659 - 611) + chr(0b100 + 0o153) + chr(0b110010) + chr(0b11010 + 0o27) + '\x31', 0o10), nzTpIcepk0o8('\x30' + '\157' + '\x32' + chr(0b101011 + 0o13) + chr(53), 44802 - 44794), nzTpIcepk0o8(chr(0b111 + 0o51) + chr(2214 - 2103) + chr(49) + chr(1818 - 1767) + chr(55), 7090 - 7082), nzTpIcepk0o8(chr(0b10011 + 0o35) + '\x6f' + chr(0b110101) + '\x31', ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + '\x32' + chr(53) + chr(1269 - 1219), 8), nzTpIcepk0o8(chr(48) + chr(10031 - 9920) + '\062' + chr(0b110010), 63530 - 63522), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b11000 + 0o32) + '\065' + chr(1534 - 1480), 0o10), nzTpIcepk0o8(chr(613 - 565) + chr(0b1000010 + 0o55) + chr(1208 - 1158) + chr(48) + chr(51), 0b1000), nzTpIcepk0o8(chr(0b10110 + 0o32) + '\157' + '\061' + '\x35' + '\061', 25742 - 25734), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b1110 + 0o43) + chr(0b110010) + chr(0b110101), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101 + 0o142) + '\064' + chr(0b110011), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\064' + chr(0b110110), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(2098 - 2049) + chr(50) + '\061', 0o10), nzTpIcepk0o8('\060' + chr(11524 - 11413) + '\062' + '\x33' + chr(51), ord("\x08")), nzTpIcepk0o8(chr(724 - 676) + chr(0b100 + 0o153) + '\x31' + chr(53) + '\067', 62367 - 62359), nzTpIcepk0o8(chr(0b1100 + 0o44) + chr(0b1101111) + chr(0b10010 + 0o40) + chr(0b110000), 0o10), nzTpIcepk0o8('\060' + '\x6f' + '\062' + '\064' + '\067', ord("\x08")), nzTpIcepk0o8(chr(1313 - 1265) + '\157' + chr(49) + chr(0b110000) + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110010) + chr(48) + '\x30', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(5844 - 5733) + chr(49) + '\x37' + chr(197 - 143), 64841 - 64833), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(49) + chr(215 - 163) + '\063', 36810 - 36802), nzTpIcepk0o8('\x30' + chr(111) + '\063' + chr(50) + '\x30', 2176 - 2168), nzTpIcepk0o8(chr(0b110 + 0o52) + '\x6f' + '\x33' + chr(0b111 + 0o55) + chr(0b110100), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(49) + chr(0b110000) + chr(0b110101), 0b1000), nzTpIcepk0o8(chr(1870 - 1822) + chr(0b1101111) + chr(51) + chr(795 - 744) + chr(0b110111), 48251 - 48243), nzTpIcepk0o8('\x30' + '\157' + '\x31' + chr(49) + '\x30', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\062' + chr(0b100 + 0o60) + chr(2373 - 2320), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x33' + '\067', 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110111) + chr(0b11001 + 0o27), 0o10), nzTpIcepk0o8(chr(1802 - 1754) + '\x6f' + '\063' + '\066' + '\x34', 13903 - 13895), nzTpIcepk0o8(chr(2007 - 1959) + chr(0b1101111) + chr(0b110011) + '\061' + chr(2170 - 2119), 0o10), nzTpIcepk0o8(chr(48) + chr(10550 - 10439) + '\x31' + chr(0b10001 + 0o45) + chr(0b10011 + 0o40), 62967 - 62959), nzTpIcepk0o8(chr(48) + chr(0b1000011 + 0o54) + chr(0b110011) + chr(0b100111 + 0o13) + chr(0b110001), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(12216 - 12105) + '\x33' + chr(53) + chr(0b110111), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(53) + chr(0b101100 + 0o12), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(308 - 260) + chr(0b1101111) + chr(53) + '\x30', 30359 - 30351)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b' '), '\144' + chr(0b1100101) + chr(0b1100011) + chr(0b1101111) + chr(100) + '\x65')(chr(0b100 + 0o161) + chr(0b1110100) + chr(2201 - 2099) + chr(0b101101) + chr(56)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def zrBjeGGLxtmY(GRbsaHW8BT5I):
def PO2XBfCeNZCv(qRB0sgUftr7V):
if RmKXV0QRcrJP(roI3spqORKae(qRB0sgUftr7V, roI3spqORKae(ES5oEprVxulp(b'HL\xc6\x04\xd9\xdb\xd7\x16F\xc4c\xcc'), chr(8811 - 8711) + chr(0b111101 + 0o50) + chr(99) + chr(0b1101111) + '\x64' + chr(0b10010 + 0o123))(chr(0b1110101) + chr(0b1110100) + chr(0b1100110) + chr(45) + chr(0b100101 + 0o23)))(nzTpIcepk0o8(chr(434 - 386) + chr(4160 - 4049) + chr(2380 - 2331), 0o10))) == nzTpIcepk0o8('\x30' + '\x6f' + chr(0b1001 + 0o50) + '\x37' + chr(0b110111), ord("\x08")):
return roI3spqORKae(ES5oEprVxulp(b'R\r\x9d('), chr(100) + '\x65' + chr(99) + chr(0b1010100 + 0o33) + chr(100) + '\145')(chr(6974 - 6857) + chr(8062 - 7946) + '\146' + '\055' + chr(0b111000))
if RmKXV0QRcrJP(roI3spqORKae(qRB0sgUftr7V, roI3spqORKae(ES5oEprVxulp(b'HL\xc6\x04\xd9\xdb\xd7\x16F\xc4c\xcc'), chr(100) + chr(101) + chr(0b1100011) + '\x6f' + chr(0b1100100) + '\145')('\165' + chr(10750 - 10634) + chr(0b1100011 + 0o3) + chr(402 - 357) + chr(0b111000)))(nzTpIcepk0o8(chr(48) + '\x6f' + chr(1761 - 1712), 8))) == nzTpIcepk0o8('\060' + chr(111) + chr(49) + chr(51) + chr(905 - 853), 0b1000):
return roI3spqORKae(ES5oEprVxulp(b'R)'), chr(0b110101 + 0o57) + '\x65' + chr(99) + '\157' + chr(0b1100100) + chr(0b1100101))('\x75' + chr(0b1110100) + chr(0b1100110) + chr(1672 - 1627) + chr(56))
return xkVoW8xHCDxF[RmKXV0QRcrJP(roI3spqORKae(qRB0sgUftr7V, roI3spqORKae(ES5oEprVxulp(b'HL\xc6\x04\xd9\xdb\xd7\x16F\xc4c\xcc'), chr(100) + chr(0b1100101) + chr(99) + chr(111) + chr(1243 - 1143) + chr(0b10011 + 0o122))('\x75' + chr(116) + '\146' + chr(0b100010 + 0o13) + chr(1762 - 1706)))(nzTpIcepk0o8('\060' + chr(862 - 751) + '\061', 8)))]
return roI3spqORKae(aoTc4YA2bs2R, roI3spqORKae(ES5oEprVxulp(b'Q\x0f\xfa \x85\xc2\xc4iQ\xe7u\xde'), chr(100) + chr(5148 - 5047) + '\143' + chr(0b1101111) + '\144' + '\145')(chr(11509 - 11392) + '\x74' + chr(0b1000100 + 0o42) + '\055' + chr(56)))(roI3spqORKae(ES5oEprVxulp(b'&.\xf6~\xd1\xb9\x98\x03\x19\x99%\xf2\xb2Za\x7f\x17f\xac29'), chr(100) + '\x65' + chr(356 - 257) + chr(111) + chr(0b1100100) + '\145')(chr(0b1110101) + chr(0b110001 + 0o103) + chr(10331 - 10229) + chr(45) + chr(0b111000)), PO2XBfCeNZCv, GRbsaHW8BT5I)
|
dnanexus/dx-toolkit
|
src/python/dxpy/utils/pretty_print.py
|
format_tree
|
def format_tree(tree, root=None):
''' Tree pretty printer.
Expects trees to be given as mappings (dictionaries). Keys will be printed; values will be traversed if they are
mappings. To preserve order, use collections.OrderedDict.
Example:
print format_tree(collections.OrderedDict({'foo': 0, 'bar': {'xyz': 0}}))
'''
formatted_tree = [root] if root is not None else []
def _format(tree, prefix=' '):
nodes = list(tree.keys())
for i in range(len(nodes)):
node = nodes[i]
if i == len(nodes)-1 and len(prefix) > 1:
my_prefix = prefix[:-4] + '└── '
my_multiline_prefix = prefix[:-4] + ' '
else:
my_prefix = prefix[:-4] + '├── '
my_multiline_prefix = prefix[:-4] + '│ '
n = 0
for line in node.splitlines():
if n == 0:
formatted_tree.append(my_prefix + line)
else:
formatted_tree.append(my_multiline_prefix + line)
n += 1
if isinstance(tree[node], collections.Mapping):
subprefix = prefix
if i < len(nodes)-1 and len(prefix) > 1 and prefix[-4:] == ' ':
subprefix = prefix[:-4] + '│ '
_format(tree[node], subprefix + ' ')
_format(tree)
return '\n'.join(formatted_tree)
|
python
|
def format_tree(tree, root=None):
''' Tree pretty printer.
Expects trees to be given as mappings (dictionaries). Keys will be printed; values will be traversed if they are
mappings. To preserve order, use collections.OrderedDict.
Example:
print format_tree(collections.OrderedDict({'foo': 0, 'bar': {'xyz': 0}}))
'''
formatted_tree = [root] if root is not None else []
def _format(tree, prefix=' '):
nodes = list(tree.keys())
for i in range(len(nodes)):
node = nodes[i]
if i == len(nodes)-1 and len(prefix) > 1:
my_prefix = prefix[:-4] + '└── '
my_multiline_prefix = prefix[:-4] + ' '
else:
my_prefix = prefix[:-4] + '├── '
my_multiline_prefix = prefix[:-4] + '│ '
n = 0
for line in node.splitlines():
if n == 0:
formatted_tree.append(my_prefix + line)
else:
formatted_tree.append(my_multiline_prefix + line)
n += 1
if isinstance(tree[node], collections.Mapping):
subprefix = prefix
if i < len(nodes)-1 and len(prefix) > 1 and prefix[-4:] == ' ':
subprefix = prefix[:-4] + '│ '
_format(tree[node], subprefix + ' ')
_format(tree)
return '\n'.join(formatted_tree)
|
[
"def",
"format_tree",
"(",
"tree",
",",
"root",
"=",
"None",
")",
":",
"formatted_tree",
"=",
"[",
"root",
"]",
"if",
"root",
"is",
"not",
"None",
"else",
"[",
"]",
"def",
"_format",
"(",
"tree",
",",
"prefix",
"=",
"' '",
")",
":",
"nodes",
"=",
"list",
"(",
"tree",
".",
"keys",
"(",
")",
")",
"for",
"i",
"in",
"range",
"(",
"len",
"(",
"nodes",
")",
")",
":",
"node",
"=",
"nodes",
"[",
"i",
"]",
"if",
"i",
"==",
"len",
"(",
"nodes",
")",
"-",
"1",
"and",
"len",
"(",
"prefix",
")",
">",
"1",
":",
"my_prefix",
"=",
"prefix",
"[",
":",
"-",
"4",
"]",
"+",
"'└── '",
"my_multiline_prefix",
"=",
"prefix",
"[",
":",
"-",
"4",
"]",
"+",
"' '",
"else",
":",
"my_prefix",
"=",
"prefix",
"[",
":",
"-",
"4",
"]",
"+",
"'├── '",
"my_multiline_prefix",
"=",
"prefix",
"[",
":",
"-",
"4",
"]",
"+",
"'│ '",
"n",
"=",
"0",
"for",
"line",
"in",
"node",
".",
"splitlines",
"(",
")",
":",
"if",
"n",
"==",
"0",
":",
"formatted_tree",
".",
"append",
"(",
"my_prefix",
"+",
"line",
")",
"else",
":",
"formatted_tree",
".",
"append",
"(",
"my_multiline_prefix",
"+",
"line",
")",
"n",
"+=",
"1",
"if",
"isinstance",
"(",
"tree",
"[",
"node",
"]",
",",
"collections",
".",
"Mapping",
")",
":",
"subprefix",
"=",
"prefix",
"if",
"i",
"<",
"len",
"(",
"nodes",
")",
"-",
"1",
"and",
"len",
"(",
"prefix",
")",
">",
"1",
"and",
"prefix",
"[",
"-",
"4",
":",
"]",
"==",
"' '",
":",
"subprefix",
"=",
"prefix",
"[",
":",
"-",
"4",
"]",
"+",
"'│ '",
"_format",
"(",
"tree",
"[",
"node",
"]",
",",
"subprefix",
"+",
"' '",
")",
"_format",
"(",
"tree",
")",
"return",
"'\\n'",
".",
"join",
"(",
"formatted_tree",
")"
] |
Tree pretty printer.
Expects trees to be given as mappings (dictionaries). Keys will be printed; values will be traversed if they are
mappings. To preserve order, use collections.OrderedDict.
Example:
print format_tree(collections.OrderedDict({'foo': 0, 'bar': {'xyz': 0}}))
|
[
"Tree",
"pretty",
"printer",
".",
"Expects",
"trees",
"to",
"be",
"given",
"as",
"mappings",
"(",
"dictionaries",
")",
".",
"Keys",
"will",
"be",
"printed",
";",
"values",
"will",
"be",
"traversed",
"if",
"they",
"are",
"mappings",
".",
"To",
"preserve",
"order",
"use",
"collections",
".",
"OrderedDict",
"."
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/utils/pretty_print.py#L75-L110
|
train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AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__
ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110011) + '\x37' + '\x30', 0b1000), nzTpIcepk0o8(chr(0b101011 + 0o5) + chr(0b110000 + 0o77) + '\063' + chr(1331 - 1276) + chr(0b101010 + 0o11), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110100) + chr(0b100110 + 0o13), 53406 - 53398), nzTpIcepk0o8(chr(1774 - 1726) + chr(7436 - 7325) + '\x32' + '\x32' + '\x32', 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(732 - 681) + '\x30' + chr(51), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x31' + '\063' + '\x30', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110001) + chr(52) + chr(1537 - 1489), 0b1000), nzTpIcepk0o8(chr(48) + chr(3014 - 2903) + chr(49) + '\064' + '\x37', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b101101 + 0o102) + chr(49) + chr(685 - 630) + chr(0b110000), 14512 - 14504), nzTpIcepk0o8('\060' + '\157' + chr(0b100101 + 0o14) + chr(0b101110 + 0o7), 0b1000), nzTpIcepk0o8(chr(1134 - 1086) + chr(9091 - 8980) + chr(0b10 + 0o61) + '\063' + chr(48), 65368 - 65360), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110010) + chr(55) + chr(0b110010 + 0o4), ord("\x08")), nzTpIcepk0o8(chr(0b101010 + 0o6) + '\157' + chr(0b110010) + chr(48) + chr(52), 0b1000), nzTpIcepk0o8('\x30' + chr(11102 - 10991) + chr(0b110 + 0o53) + chr(0b110111) + '\060', 8), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110010) + chr(0b110001) + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b10110 + 0o131) + chr(0b110010) + chr(0b110010) + '\x30', 5214 - 5206), nzTpIcepk0o8(chr(0b100111 + 0o11) + chr(0b11010 + 0o125) + '\x32' + chr(845 - 792) + '\064', 56762 - 56754), nzTpIcepk0o8(chr(0b1000 + 0o50) + chr(3289 - 3178) + '\x34' + chr(103 - 49), ord("\x08")), nzTpIcepk0o8(chr(0b100101 + 0o13) + chr(0b0 + 0o157) + '\x31' + chr(0b1110 + 0o42) + chr(0b101110 + 0o2), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\063' + chr(2249 - 2201) + chr(975 - 922), 57368 - 57360), nzTpIcepk0o8(chr(0b100111 + 0o11) + '\157' + chr(902 - 853) + '\062' + '\x30', 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(51) + chr(54) + '\063', ord("\x08")), nzTpIcepk0o8(chr(0b11100 + 0o24) + chr(111) + chr(936 - 886) + chr(49) + '\x33', ord("\x08")), nzTpIcepk0o8(chr(367 - 319) + '\157' + '\x34' + chr(0b110111), 0o10), nzTpIcepk0o8('\060' + chr(0b10 + 0o155) + chr(0b110001) + '\x33' + '\x34', 61985 - 61977), nzTpIcepk0o8(chr(0b11100 + 0o24) + chr(0b110011 + 0o74) + chr(0b110010) + '\060' + '\061', 64690 - 64682), nzTpIcepk0o8(chr(48) + chr(111) + '\065' + chr(96 - 44), ord("\x08")), nzTpIcepk0o8(chr(0b1010 + 0o46) + chr(111) + chr(696 - 645) + '\x30' + chr(0b110011), 8), nzTpIcepk0o8(chr(385 - 337) + chr(5674 - 5563) + chr(0b11011 + 0o30) + chr(0b110011) + chr(48), 8), nzTpIcepk0o8(chr(2288 - 2240) + '\x6f' + chr(0b11011 + 0o26) + chr(48) + chr(0b1011 + 0o50), 29313 - 29305), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110001) + chr(0b11 + 0o57) + chr(55), 28927 - 28919), nzTpIcepk0o8(chr(48) + '\157' + '\063' + '\062' + chr(50), 0b1000), nzTpIcepk0o8(chr(0b11011 + 0o25) + '\157' + chr(2337 - 2288) + chr(1413 - 1358) + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(0b10 + 0o56) + chr(111) + chr(48), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + '\062' + chr(0b1100 + 0o50) + '\x30', 0o10), nzTpIcepk0o8('\060' + chr(0b1100 + 0o143) + chr(498 - 444), 42404 - 42396), nzTpIcepk0o8('\x30' + chr(4179 - 4068) + '\062' + '\062' + chr(2009 - 1957), 0o10), nzTpIcepk0o8(chr(0b1100 + 0o44) + chr(0b1011001 + 0o26) + chr(0b110010) + chr(0b110000 + 0o6) + chr(0b110011), 0b1000), nzTpIcepk0o8(chr(1391 - 1343) + '\157' + chr(2487 - 2436) + chr(0b100010 + 0o21) + chr(2045 - 1993), 0b1000), nzTpIcepk0o8('\x30' + chr(0b11100 + 0o123) + chr(49) + '\066' + chr(0b1011 + 0o52), 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + chr(111) + '\065' + chr(913 - 865), 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xd6'), chr(0b1100100) + chr(4268 - 4167) + '\143' + chr(111) + '\144' + '\145')('\x75' + chr(116) + '\x66' + chr(0b1011 + 0o42) + '\070') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def As2tQjDIJkwy(BEwy6Gm_1uLr, kF9CWBi2ucGu=None):
FVHeQvBYTn_h = [kF9CWBi2ucGu] if kF9CWBi2ucGu is not None else []
def aLbSMgDSyX91(BEwy6Gm_1uLr, ZJwZgaHE72Po=roI3spqORKae(ES5oEprVxulp(b'\xd8\xdb\x01\xb2'), '\x64' + chr(101) + chr(0b1000010 + 0o41) + '\157' + '\x64' + '\x65')(chr(8186 - 8069) + '\x74' + chr(102) + chr(920 - 875) + chr(0b111000))):
B4QyIILDjNeo = H4NoA26ON7iG(BEwy6Gm_1uLr.keys())
for ZlbFMSG8gCoF in bbT2xIe5pzk7(ftfygxgFas5X(B4QyIILDjNeo)):
E9rx2AZiWGOm = B4QyIILDjNeo[ZlbFMSG8gCoF]
if ZlbFMSG8gCoF == ftfygxgFas5X(B4QyIILDjNeo) - nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b1 + 0o60), 0b1000) and ftfygxgFas5X(ZJwZgaHE72Po) > nzTpIcepk0o8(chr(48) + chr(0b10110 + 0o131) + '\x31', 8):
toQblaHr91bf = ZJwZgaHE72Po[:-nzTpIcepk0o8(chr(48) + chr(0b1 + 0o156) + '\x34', 9839 - 9831)] + roI3spqORKae(ES5oEprVxulp(b'\x1ao\xb5pW\xd8\x82\xf3\xf8-'), chr(0b1001110 + 0o26) + chr(7696 - 7595) + chr(0b11011 + 0o110) + '\157' + '\144' + chr(8353 - 8252))('\165' + chr(0b1 + 0o163) + chr(0b1000001 + 0o45) + '\055' + chr(0b111000))
r4xfjgRZaSQZ = ZJwZgaHE72Po[:-nzTpIcepk0o8('\x30' + chr(10783 - 10672) + '\064', 8)] + roI3spqORKae(ES5oEprVxulp(b'\xd8\xdb\x01\xb2'), chr(0b1100100) + '\145' + chr(2868 - 2769) + chr(0b1100011 + 0o14) + chr(100) + chr(0b1100101))('\x75' + chr(0b1110100) + chr(102) + chr(45) + chr(0b111000))
else:
toQblaHr91bf = ZJwZgaHE72Po[:-nzTpIcepk0o8(chr(48) + '\157' + chr(52), 8)] + roI3spqORKae(ES5oEprVxulp(b'\x1ao\xbdpW\xd8\x82\xf3\xf8-'), chr(0b1011101 + 0o7) + '\145' + chr(5720 - 5621) + chr(0b1010010 + 0o35) + chr(5546 - 5446) + chr(9220 - 9119))(chr(0b1110101) + '\164' + chr(0b1101 + 0o131) + '\x2d' + '\x38')
r4xfjgRZaSQZ = ZJwZgaHE72Po[:-nzTpIcepk0o8(chr(48) + chr(0b1010101 + 0o32) + chr(0b101100 + 0o10), 8)] + roI3spqORKae(ES5oEprVxulp(b'\x1ao\xa3\xb2\xe3x'), chr(100) + chr(101) + '\x63' + chr(0b0 + 0o157) + chr(100) + chr(3863 - 3762))(chr(6620 - 6503) + '\164' + chr(102) + '\x2d' + chr(0b111000))
NoZxuO7wjArS = nzTpIcepk0o8(chr(48) + '\157' + chr(2293 - 2245), 8)
for ffiOpFBWGmZU in roI3spqORKae(E9rx2AZiWGOm, roI3spqORKae(ES5oEprVxulp(b'\x8b\x8bM\xfb\xb74\t\t\x1d~'), chr(1800 - 1700) + chr(0b1100101) + chr(99) + '\x6f' + chr(100) + chr(0b100001 + 0o104))(chr(0b1110101) + chr(0b1011100 + 0o30) + chr(102) + '\x2d' + chr(279 - 223)))():
if NoZxuO7wjArS == nzTpIcepk0o8('\060' + '\157' + chr(48), 8):
roI3spqORKae(FVHeQvBYTn_h, roI3spqORKae(ES5oEprVxulp(b"\xb0\xafr\xa6\xbb?'\x08\x12b\x8d\x8b"), '\x64' + '\145' + '\x63' + chr(4325 - 4214) + chr(0b10101 + 0o117) + chr(0b1100101))(chr(0b1110101) + chr(0b1110100) + '\x66' + chr(0b101101) + '\070'))(toQblaHr91bf + ffiOpFBWGmZU)
else:
roI3spqORKae(FVHeQvBYTn_h, roI3spqORKae(ES5oEprVxulp(b"\xb0\xafr\xa6\xbb?'\x08\x12b\x8d\x8b"), chr(9372 - 9272) + '\145' + '\x63' + '\157' + chr(100) + chr(0b1100101))(chr(117) + chr(0b1110100) + '\x66' + chr(899 - 854) + chr(0b11001 + 0o37)))(r4xfjgRZaSQZ + ffiOpFBWGmZU)
NoZxuO7wjArS += nzTpIcepk0o8(chr(0b11001 + 0o27) + chr(12282 - 12171) + chr(49), 8)
if suIjIS24Zkqw(BEwy6Gm_1uLr[E9rx2AZiWGOm], roI3spqORKae(VmGquQq8pzNa, roI3spqORKae(ES5oEprVxulp(b'\xa7\x83[\xc7\x97*3+KG\xef\xfc'), chr(0b1010101 + 0o17) + chr(101) + chr(99) + chr(111) + chr(0b1100100) + chr(0b1100101))(chr(0b1000111 + 0o56) + chr(11100 - 10984) + chr(5591 - 5489) + chr(45) + chr(0b10001 + 0o47)))):
UAUOWo3_VkFa = ZJwZgaHE72Po
if ZlbFMSG8gCoF < ftfygxgFas5X(B4QyIILDjNeo) - nzTpIcepk0o8('\060' + chr(0b1101111) + chr(49), 8) and ftfygxgFas5X(ZJwZgaHE72Po) > nzTpIcepk0o8('\060' + chr(0b1101111) + '\x31', 8) and (ZJwZgaHE72Po[-nzTpIcepk0o8('\x30' + chr(0b1001000 + 0o47) + chr(52), 8):] == roI3spqORKae(ES5oEprVxulp(b'\xd8\xdb\x01\xb2'), '\144' + chr(0b1100101) + '\143' + chr(0b1101111) + chr(100) + chr(2026 - 1925))('\165' + chr(9187 - 9071) + chr(6344 - 6242) + chr(45) + chr(416 - 360))):
UAUOWo3_VkFa = ZJwZgaHE72Po[:-nzTpIcepk0o8('\060' + chr(111) + '\x34', 8)] + roI3spqORKae(ES5oEprVxulp(b'\x1ao\xa3\xb2\xe3x'), '\144' + '\x65' + '\x63' + '\x6f' + chr(1154 - 1054) + '\x65')(chr(117) + chr(0b100111 + 0o115) + '\x66' + chr(0b1111 + 0o36) + '\070')
aLbSMgDSyX91(BEwy6Gm_1uLr[E9rx2AZiWGOm], UAUOWo3_VkFa + roI3spqORKae(ES5oEprVxulp(b'\xd8\xdb\x01\xb2'), '\x64' + chr(9400 - 9299) + '\143' + chr(0b1101111) + chr(0b10001 + 0o123) + chr(0b1100101))(chr(0b100001 + 0o124) + chr(0b1110100) + chr(0b11111 + 0o107) + '\055' + chr(1325 - 1269)))
aLbSMgDSyX91(BEwy6Gm_1uLr)
return roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\xf2'), chr(0b10010 + 0o122) + '\x65' + chr(5002 - 4903) + '\157' + chr(100) + chr(101))(chr(0b1110101) + '\x74' + chr(102) + chr(0b101101) + chr(0b100110 + 0o22)), roI3spqORKae(ES5oEprVxulp(b'\xa1\xcfX\xdf\xfa\x1a\x03\x01,N\x96\xcf'), chr(100) + chr(0b1100101) + chr(0b100000 + 0o103) + chr(0b1101111) + chr(0b1100100) + chr(0b1011100 + 0o11))(chr(117) + chr(116) + chr(0b10011 + 0o123) + '\055' + chr(56)))(FVHeQvBYTn_h)
|
dnanexus/dx-toolkit
|
src/python/dxpy/utils/pretty_print.py
|
format_table
|
def format_table(table, column_names=None, column_specs=None, max_col_width=32,
report_dimensions=False):
''' Table pretty printer.
Expects tables to be given as arrays of arrays.
Example:
print format_table([[1, "2"], [3, "456"]], column_names=['A', 'B'])
'''
if len(table) > 0:
col_widths = [0] * len(list(table)[0])
elif column_specs is not None:
col_widths = [0] * (len(column_specs) + 1)
elif column_names is not None:
col_widths = [0] * len(column_names)
my_column_names = []
if column_specs is not None:
column_names = ['Row']
column_names.extend([col['name'] for col in column_specs])
column_specs = [{'name': 'Row', 'type': 'float'}] + column_specs
if column_names is not None:
for i in range(len(column_names)):
my_col = str(column_names[i])
if len(my_col) > max_col_width:
my_col = my_col[:max_col_width-1] + '…'
my_column_names.append(my_col)
col_widths[i] = max(col_widths[i], len(my_col))
my_table = []
for row in table:
my_row = []
for i in range(len(row)):
my_item = escape_unicode_string(str(row[i]))
if len(my_item) > max_col_width:
my_item = my_item[:max_col_width-1] + '…'
my_row.append(my_item)
col_widths[i] = max(col_widths[i], len(my_item))
my_table.append(my_row)
def border(i):
return WHITE() + i + ENDC()
type_colormap = {'boolean': BLUE(),
'integer': YELLOW(),
'float': WHITE(),
'string': GREEN()}
for i in 'uint8', 'int16', 'uint16', 'int32', 'uint32', 'int64':
type_colormap[i] = type_colormap['integer']
type_colormap['double'] = type_colormap['float']
def col_head(i):
if column_specs is not None:
return BOLD() + type_colormap[column_specs[i]['type']] + column_names[i] + ENDC()
else:
return BOLD() + WHITE() + column_names[i] + ENDC()
formatted_table = [border('┌') + border('┬').join(border('─')*i for i in col_widths) + border('┐')]
if len(my_column_names) > 0:
padded_column_names = [col_head(i) + ' '*(col_widths[i]-len(my_column_names[i])) for i in range(len(my_column_names))]
formatted_table.append(border('│') + border('│').join(padded_column_names) + border('│'))
formatted_table.append(border('├') + border('┼').join(border('─')*i for i in col_widths) + border('┤'))
for row in my_table:
padded_row = [row[i] + ' '*(col_widths[i]-len(row[i])) for i in range(len(row))]
formatted_table.append(border('│') + border('│').join(padded_row) + border('│'))
formatted_table.append(border('└') + border('┴').join(border('─')*i for i in col_widths) + border('┘'))
if report_dimensions:
return '\n'.join(formatted_table), len(formatted_table), sum(col_widths) + len(col_widths) + 1
else:
return '\n'.join(formatted_table)
|
python
|
def format_table(table, column_names=None, column_specs=None, max_col_width=32,
report_dimensions=False):
''' Table pretty printer.
Expects tables to be given as arrays of arrays.
Example:
print format_table([[1, "2"], [3, "456"]], column_names=['A', 'B'])
'''
if len(table) > 0:
col_widths = [0] * len(list(table)[0])
elif column_specs is not None:
col_widths = [0] * (len(column_specs) + 1)
elif column_names is not None:
col_widths = [0] * len(column_names)
my_column_names = []
if column_specs is not None:
column_names = ['Row']
column_names.extend([col['name'] for col in column_specs])
column_specs = [{'name': 'Row', 'type': 'float'}] + column_specs
if column_names is not None:
for i in range(len(column_names)):
my_col = str(column_names[i])
if len(my_col) > max_col_width:
my_col = my_col[:max_col_width-1] + '…'
my_column_names.append(my_col)
col_widths[i] = max(col_widths[i], len(my_col))
my_table = []
for row in table:
my_row = []
for i in range(len(row)):
my_item = escape_unicode_string(str(row[i]))
if len(my_item) > max_col_width:
my_item = my_item[:max_col_width-1] + '…'
my_row.append(my_item)
col_widths[i] = max(col_widths[i], len(my_item))
my_table.append(my_row)
def border(i):
return WHITE() + i + ENDC()
type_colormap = {'boolean': BLUE(),
'integer': YELLOW(),
'float': WHITE(),
'string': GREEN()}
for i in 'uint8', 'int16', 'uint16', 'int32', 'uint32', 'int64':
type_colormap[i] = type_colormap['integer']
type_colormap['double'] = type_colormap['float']
def col_head(i):
if column_specs is not None:
return BOLD() + type_colormap[column_specs[i]['type']] + column_names[i] + ENDC()
else:
return BOLD() + WHITE() + column_names[i] + ENDC()
formatted_table = [border('┌') + border('┬').join(border('─')*i for i in col_widths) + border('┐')]
if len(my_column_names) > 0:
padded_column_names = [col_head(i) + ' '*(col_widths[i]-len(my_column_names[i])) for i in range(len(my_column_names))]
formatted_table.append(border('│') + border('│').join(padded_column_names) + border('│'))
formatted_table.append(border('├') + border('┼').join(border('─')*i for i in col_widths) + border('┤'))
for row in my_table:
padded_row = [row[i] + ' '*(col_widths[i]-len(row[i])) for i in range(len(row))]
formatted_table.append(border('│') + border('│').join(padded_row) + border('│'))
formatted_table.append(border('└') + border('┴').join(border('─')*i for i in col_widths) + border('┘'))
if report_dimensions:
return '\n'.join(formatted_table), len(formatted_table), sum(col_widths) + len(col_widths) + 1
else:
return '\n'.join(formatted_table)
|
[
"def",
"format_table",
"(",
"table",
",",
"column_names",
"=",
"None",
",",
"column_specs",
"=",
"None",
",",
"max_col_width",
"=",
"32",
",",
"report_dimensions",
"=",
"False",
")",
":",
"if",
"len",
"(",
"table",
")",
">",
"0",
":",
"col_widths",
"=",
"[",
"0",
"]",
"*",
"len",
"(",
"list",
"(",
"table",
")",
"[",
"0",
"]",
")",
"elif",
"column_specs",
"is",
"not",
"None",
":",
"col_widths",
"=",
"[",
"0",
"]",
"*",
"(",
"len",
"(",
"column_specs",
")",
"+",
"1",
")",
"elif",
"column_names",
"is",
"not",
"None",
":",
"col_widths",
"=",
"[",
"0",
"]",
"*",
"len",
"(",
"column_names",
")",
"my_column_names",
"=",
"[",
"]",
"if",
"column_specs",
"is",
"not",
"None",
":",
"column_names",
"=",
"[",
"'Row'",
"]",
"column_names",
".",
"extend",
"(",
"[",
"col",
"[",
"'name'",
"]",
"for",
"col",
"in",
"column_specs",
"]",
")",
"column_specs",
"=",
"[",
"{",
"'name'",
":",
"'Row'",
",",
"'type'",
":",
"'float'",
"}",
"]",
"+",
"column_specs",
"if",
"column_names",
"is",
"not",
"None",
":",
"for",
"i",
"in",
"range",
"(",
"len",
"(",
"column_names",
")",
")",
":",
"my_col",
"=",
"str",
"(",
"column_names",
"[",
"i",
"]",
")",
"if",
"len",
"(",
"my_col",
")",
">",
"max_col_width",
":",
"my_col",
"=",
"my_col",
"[",
":",
"max_col_width",
"-",
"1",
"]",
"+",
"'…'",
"my_column_names",
".",
"append",
"(",
"my_col",
")",
"col_widths",
"[",
"i",
"]",
"=",
"max",
"(",
"col_widths",
"[",
"i",
"]",
",",
"len",
"(",
"my_col",
")",
")",
"my_table",
"=",
"[",
"]",
"for",
"row",
"in",
"table",
":",
"my_row",
"=",
"[",
"]",
"for",
"i",
"in",
"range",
"(",
"len",
"(",
"row",
")",
")",
":",
"my_item",
"=",
"escape_unicode_string",
"(",
"str",
"(",
"row",
"[",
"i",
"]",
")",
")",
"if",
"len",
"(",
"my_item",
")",
">",
"max_col_width",
":",
"my_item",
"=",
"my_item",
"[",
":",
"max_col_width",
"-",
"1",
"]",
"+",
"'…'",
"my_row",
".",
"append",
"(",
"my_item",
")",
"col_widths",
"[",
"i",
"]",
"=",
"max",
"(",
"col_widths",
"[",
"i",
"]",
",",
"len",
"(",
"my_item",
")",
")",
"my_table",
".",
"append",
"(",
"my_row",
")",
"def",
"border",
"(",
"i",
")",
":",
"return",
"WHITE",
"(",
")",
"+",
"i",
"+",
"ENDC",
"(",
")",
"type_colormap",
"=",
"{",
"'boolean'",
":",
"BLUE",
"(",
")",
",",
"'integer'",
":",
"YELLOW",
"(",
")",
",",
"'float'",
":",
"WHITE",
"(",
")",
",",
"'string'",
":",
"GREEN",
"(",
")",
"}",
"for",
"i",
"in",
"'uint8'",
",",
"'int16'",
",",
"'uint16'",
",",
"'int32'",
",",
"'uint32'",
",",
"'int64'",
":",
"type_colormap",
"[",
"i",
"]",
"=",
"type_colormap",
"[",
"'integer'",
"]",
"type_colormap",
"[",
"'double'",
"]",
"=",
"type_colormap",
"[",
"'float'",
"]",
"def",
"col_head",
"(",
"i",
")",
":",
"if",
"column_specs",
"is",
"not",
"None",
":",
"return",
"BOLD",
"(",
")",
"+",
"type_colormap",
"[",
"column_specs",
"[",
"i",
"]",
"[",
"'type'",
"]",
"]",
"+",
"column_names",
"[",
"i",
"]",
"+",
"ENDC",
"(",
")",
"else",
":",
"return",
"BOLD",
"(",
")",
"+",
"WHITE",
"(",
")",
"+",
"column_names",
"[",
"i",
"]",
"+",
"ENDC",
"(",
")",
"formatted_table",
"=",
"[",
"border",
"(",
"'┌') ",
"+",
"b",
"rder('",
"┬",
"').jo",
"i",
"n",
"(bor",
"d",
"er('─'",
")",
"*i fo",
"r",
" ",
"i",
"in ",
"o",
"_w",
"dths) + bo",
"r",
"e",
"('┐')]",
"",
"",
"",
"",
"if",
"len",
"(",
"my_column_names",
")",
">",
"0",
":",
"padded_column_names",
"=",
"[",
"col_head",
"(",
"i",
")",
"+",
"' '",
"*",
"(",
"col_widths",
"[",
"i",
"]",
"-",
"len",
"(",
"my_column_names",
"[",
"i",
"]",
")",
")",
"for",
"i",
"in",
"range",
"(",
"len",
"(",
"my_column_names",
")",
")",
"]",
"formatted_table",
".",
"append",
"(",
"border",
"(",
"'│') ",
"+",
"b",
"rder('",
"│",
"').jo",
"i",
"n",
"(pad",
"d",
"ed_column_names) + ",
"b",
"r",
"er('│'",
")",
")",
"",
"",
"formatted_table",
".",
"append",
"(",
"border",
"(",
"'├') ",
"+",
"b",
"rder('",
"┼",
"').jo",
"i",
"n",
"(bor",
"d",
"er('─'",
")",
"*i fo",
"r",
" ",
"i",
"in ",
"o",
"_w",
"dths) + bo",
"r",
"e",
"('┤'))",
"",
"",
"",
"",
"for",
"row",
"in",
"my_table",
":",
"padded_row",
"=",
"[",
"row",
"[",
"i",
"]",
"+",
"' '",
"*",
"(",
"col_widths",
"[",
"i",
"]",
"-",
"len",
"(",
"row",
"[",
"i",
"]",
")",
")",
"for",
"i",
"in",
"range",
"(",
"len",
"(",
"row",
")",
")",
"]",
"formatted_table",
".",
"append",
"(",
"border",
"(",
"'│') ",
"+",
"b",
"rder('",
"│",
"').jo",
"i",
"n",
"(pad",
"d",
"ed_row) + ",
"b",
"r",
"er('│'",
")",
")",
"",
"",
"formatted_table",
".",
"append",
"(",
"border",
"(",
"'└') ",
"+",
"b",
"rder('",
"┴",
"').jo",
"i",
"n",
"(bor",
"d",
"er('─'",
")",
"*i fo",
"r",
" ",
"i",
"in ",
"o",
"_w",
"dths) + bo",
"r",
"e",
"('┘'))",
"",
"",
"",
"",
"if",
"report_dimensions",
":",
"return",
"'\\n'",
".",
"join",
"(",
"formatted_table",
")",
",",
"len",
"(",
"formatted_table",
")",
",",
"sum",
"(",
"col_widths",
")",
"+",
"len",
"(",
"col_widths",
")",
"+",
"1",
"else",
":",
"return",
"'\\n'",
".",
"join",
"(",
"formatted_table",
")"
] |
Table pretty printer.
Expects tables to be given as arrays of arrays.
Example:
print format_table([[1, "2"], [3, "456"]], column_names=['A', 'B'])
|
[
"Table",
"pretty",
"printer",
".",
"Expects",
"tables",
"to",
"be",
"given",
"as",
"arrays",
"of",
"arrays",
"."
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/utils/pretty_print.py#L112-L182
|
train
|
Pretty printer.
|
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,WdoB9EK8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SkfijeeBr,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(749 - 701) + chr(0b1101111) + chr(2538 - 2487) + chr(0b110000) + chr(354 - 304), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1011010 + 0o25) + chr(0b110011) + chr(2194 - 2143) + '\062', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b100010 + 0o115) + chr(2524 - 2473) + chr(55) + chr(0b110110), 47610 - 47602), nzTpIcepk0o8(chr(0b110000) + chr(10203 - 10092) + chr(1155 - 1105) + chr(0b110110) + chr(53), 31426 - 31418), nzTpIcepk0o8(chr(0b101 + 0o53) + chr(0b1101111) + chr(558 - 507) + chr(0b110111) + '\x36', 8), nzTpIcepk0o8(chr(495 - 447) + chr(6354 - 6243) + chr(49) + chr(54) + chr(0b110111), 0o10), nzTpIcepk0o8(chr(531 - 483) + chr(7823 - 7712) + chr(0b110011) + '\061' + chr(49), 19269 - 19261), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110001) + chr(0b10110 + 0o34) + chr(0b110100), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(54) + chr(0b1110 + 0o45), 23473 - 23465), nzTpIcepk0o8(chr(48) + chr(111) + chr(49) + chr(0b110111) + '\x34', 0o10), nzTpIcepk0o8(chr(48) + '\157' + '\063' + '\x34' + chr(493 - 441), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(49) + '\065' + chr(1970 - 1917), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x32' + '\x37' + '\x33', ord("\x08")), nzTpIcepk0o8('\060' + chr(6625 - 6514) + '\063' + '\063' + chr(2072 - 2017), 46348 - 46340), nzTpIcepk0o8(chr(769 - 721) + chr(0b101110 + 0o101) + chr(49) + '\x30' + chr(0b110101), 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(0b100001 + 0o23) + '\x34', 0b1000), nzTpIcepk0o8(chr(48) + chr(6341 - 6230) + chr(0b1 + 0o62) + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(304 - 255) + chr(0b110111) + chr(295 - 243), 8), nzTpIcepk0o8('\x30' + chr(111) + chr(985 - 936) + chr(51) + chr(0b110111), 56723 - 56715), nzTpIcepk0o8(chr(2248 - 2200) + '\157' + chr(0b110010) + chr(0b1100 + 0o45) + '\x36', 0b1000), nzTpIcepk0o8(chr(2058 - 2010) + '\x6f' + chr(49) + chr(1789 - 1737) + '\065', 25431 - 25423), nzTpIcepk0o8(chr(0b10100 + 0o34) + chr(111) + chr(0b100110 + 0o15) + chr(0b110010) + chr(1809 - 1755), 0b1000), nzTpIcepk0o8(chr(1546 - 1498) + chr(8763 - 8652) + '\x31' + '\066' + '\060', 0o10), nzTpIcepk0o8(chr(738 - 690) + chr(111) + chr(0b110010) + chr(0b110101) + chr(0b110111), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + '\061' + chr(54) + chr(0b11101 + 0o24), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(5661 - 5550) + '\x32' + chr(54) + chr(52), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\063' + chr(51) + '\x32', 8), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b0 + 0o61) + '\x37' + '\066', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(55) + chr(0b101100 + 0o4), ord("\x08")), nzTpIcepk0o8(chr(323 - 275) + chr(111) + chr(52) + chr(0b110000), 28754 - 28746), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b100 + 0o55) + '\x34' + chr(697 - 645), 53890 - 53882), nzTpIcepk0o8(chr(48) + chr(4840 - 4729) + chr(0b0 + 0o62) + '\x35' + chr(55), 8), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110001) + chr(0b101111 + 0o1) + '\x31', 0o10), nzTpIcepk0o8(chr(0b1100 + 0o44) + chr(111) + '\x31' + '\x33' + '\x30', 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110000 + 0o1) + chr(505 - 452) + chr(0b1101 + 0o46), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + '\061' + '\x33' + chr(0b1110 + 0o45), 0b1000), nzTpIcepk0o8(chr(0b10100 + 0o34) + chr(1463 - 1352) + chr(0b111 + 0o53) + '\x31' + chr(1983 - 1933), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(0b110011) + chr(55) + chr(49), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(2481 - 2370) + chr(1398 - 1347) + '\x33' + '\x30', 4873 - 4865), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\063' + chr(0b111 + 0o54) + '\x36', ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + '\x6f' + chr(53) + '\060', 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xec'), chr(0b1100100) + chr(0b1100101) + chr(99) + chr(111) + chr(100) + chr(7811 - 7710))(chr(117) + chr(0b1011011 + 0o31) + chr(9560 - 9458) + chr(1316 - 1271) + chr(56)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def jEoL5UrCIzuU(JlcDRbBtmPwV, ORu_qqzPRE7h=None, HJoZk1jjUsNt=None, J5TjEK4AzJF3=nzTpIcepk0o8('\x30' + chr(5439 - 5328) + chr(52) + '\x30', 8), s5fVv8gYyWGJ=nzTpIcepk0o8(chr(1571 - 1523) + '\157' + '\x30', 32664 - 32656)):
if ftfygxgFas5X(JlcDRbBtmPwV) > nzTpIcepk0o8('\060' + chr(2159 - 2048) + chr(0b11001 + 0o27), 8):
z5NTtqTGUznU = [nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(48), 8)] * ftfygxgFas5X(H4NoA26ON7iG(JlcDRbBtmPwV)[nzTpIcepk0o8('\x30' + chr(1265 - 1154) + '\x30', 8)])
elif HJoZk1jjUsNt is not None:
z5NTtqTGUznU = [nzTpIcepk0o8(chr(59 - 11) + '\x6f' + chr(48), 8)] * (ftfygxgFas5X(HJoZk1jjUsNt) + nzTpIcepk0o8('\060' + chr(0b1101111) + chr(924 - 875), 0o10))
elif ORu_qqzPRE7h is not None:
z5NTtqTGUznU = [nzTpIcepk0o8('\x30' + '\x6f' + '\060', 8)] * ftfygxgFas5X(ORu_qqzPRE7h)
SP8X8lk1B9Qg = []
if HJoZk1jjUsNt is not None:
ORu_qqzPRE7h = [roI3spqORKae(ES5oEprVxulp(b'\x90\xb5\x89'), chr(0b1001001 + 0o33) + chr(101) + '\143' + chr(1708 - 1597) + chr(8462 - 8362) + chr(3750 - 3649))(chr(0b1110101) + chr(0b1110100) + chr(3061 - 2959) + '\055' + chr(358 - 302))]
roI3spqORKae(ORu_qqzPRE7h, roI3spqORKae(ES5oEprVxulp(b'\x96\x85\xcd\xf8\x91\x13\x85\x03l>\x86\x1c'), chr(100) + '\x65' + chr(0b1001011 + 0o30) + chr(0b1101111) + '\x64' + chr(9928 - 9827))(chr(117) + '\164' + '\x66' + '\055' + '\x38'))([hRTUxJgvuslu[roI3spqORKae(ES5oEprVxulp(b'\xac\xbb\x93\xd0'), '\144' + chr(0b1000101 + 0o40) + chr(0b1100011) + chr(0b10110 + 0o131) + chr(0b1011001 + 0o13) + chr(3691 - 3590))(chr(0b1110101) + chr(0b1101100 + 0o10) + chr(102) + chr(0b101000 + 0o5) + chr(2786 - 2730))] for hRTUxJgvuslu in HJoZk1jjUsNt])
HJoZk1jjUsNt = [{roI3spqORKae(ES5oEprVxulp(b'\xac\xbb\x93\xd0'), chr(3193 - 3093) + chr(101) + chr(0b1100011) + chr(0b1101 + 0o142) + '\144' + chr(2716 - 2615))('\165' + chr(0b1110100) + chr(4841 - 4739) + '\055' + chr(0b111000)): roI3spqORKae(ES5oEprVxulp(b'\x90\xb5\x89'), '\144' + chr(101) + chr(0b1100011) + chr(8164 - 8053) + chr(0b1100100) + chr(101))('\x75' + chr(9100 - 8984) + '\146' + chr(45) + chr(56)), roI3spqORKae(ES5oEprVxulp(b'\xb6\xa3\x8e\xd0'), chr(0b10100 + 0o120) + chr(101) + '\143' + chr(111) + '\144' + chr(7940 - 7839))('\x75' + chr(0b1 + 0o163) + '\x66' + chr(1761 - 1716) + '\x38'): roI3spqORKae(ES5oEprVxulp(b'\xa4\xb6\x91\xd4\x8a'), '\144' + chr(101) + chr(99) + chr(0b1101111) + chr(3628 - 3528) + chr(101))('\x75' + chr(0b1110100) + '\146' + chr(0b101000 + 0o5) + chr(0b1011 + 0o55))}] + HJoZk1jjUsNt
if ORu_qqzPRE7h is not None:
for ZlbFMSG8gCoF in bbT2xIe5pzk7(ftfygxgFas5X(ORu_qqzPRE7h)):
oJFWHRcT1Mkv = N9zlRy29S1SS(ORu_qqzPRE7h[ZlbFMSG8gCoF])
if ftfygxgFas5X(oJFWHRcT1Mkv) > J5TjEK4AzJF3:
oJFWHRcT1Mkv = oJFWHRcT1Mkv[:J5TjEK4AzJF3 - nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110001), 8)] + roI3spqORKae(ES5oEprVxulp(b' ZX'), '\x64' + chr(0b1100101) + chr(0b0 + 0o143) + '\157' + chr(0b1100100) + chr(0b1100101))(chr(0b1110101) + chr(11559 - 11443) + chr(0b1100110) + chr(0b101101) + chr(0b100000 + 0o30))
roI3spqORKae(SP8X8lk1B9Qg, roI3spqORKae(ES5oEprVxulp(b'\x8a\x8e\xad\x81\x86\x10\x8e;Y\x13\xb1X'), chr(0b1100100) + chr(7355 - 7254) + chr(99) + chr(0b1101111) + chr(100) + chr(3717 - 3616))(chr(117) + '\x74' + chr(0b1100110) + chr(45) + chr(1749 - 1693)))(oJFWHRcT1Mkv)
z5NTtqTGUznU[ZlbFMSG8gCoF] = KV9ckIhroIia(z5NTtqTGUznU[ZlbFMSG8gCoF], ftfygxgFas5X(oJFWHRcT1Mkv))
tKAGGG4CBtlm = []
for o6UWUO21mH25 in JlcDRbBtmPwV:
kcsml_R8SZDr = []
for ZlbFMSG8gCoF in bbT2xIe5pzk7(ftfygxgFas5X(o6UWUO21mH25)):
yeqinGGzLLMp = zrBjeGGLxtmY(N9zlRy29S1SS(o6UWUO21mH25[ZlbFMSG8gCoF]))
if ftfygxgFas5X(yeqinGGzLLMp) > J5TjEK4AzJF3:
yeqinGGzLLMp = yeqinGGzLLMp[:J5TjEK4AzJF3 - nzTpIcepk0o8(chr(0b110000) + chr(8967 - 8856) + chr(1624 - 1575), 8)] + roI3spqORKae(ES5oEprVxulp(b' ZX'), chr(100) + chr(0b1100101) + chr(9688 - 9589) + '\157' + chr(100) + chr(0b1010010 + 0o23))(chr(7362 - 7245) + chr(0b1110100) + chr(364 - 262) + chr(0b101101) + '\x38')
roI3spqORKae(kcsml_R8SZDr, roI3spqORKae(ES5oEprVxulp(b'\x8a\x8e\xad\x81\x86\x10\x8e;Y\x13\xb1X'), chr(100) + '\x65' + chr(99) + chr(0b1101111) + chr(100) + chr(0b1100101))('\x75' + chr(0b1110100) + chr(10251 - 10149) + chr(0b100101 + 0o10) + '\x38'))(yeqinGGzLLMp)
z5NTtqTGUznU[ZlbFMSG8gCoF] = KV9ckIhroIia(z5NTtqTGUznU[ZlbFMSG8gCoF], ftfygxgFas5X(yeqinGGzLLMp))
roI3spqORKae(tKAGGG4CBtlm, roI3spqORKae(ES5oEprVxulp(b'\x8a\x8e\xad\x81\x86\x10\x8e;Y\x13\xb1X'), chr(3640 - 3540) + chr(101) + chr(850 - 751) + chr(3671 - 3560) + chr(0b1100100) + chr(101))('\165' + chr(0b1110100) + chr(0b1101 + 0o131) + chr(45) + chr(56)))(kcsml_R8SZDr)
def JBBblcuB3OqR(ZlbFMSG8gCoF):
return iuJrnjTIwe5L() + ZlbFMSG8gCoF + vPE5JUmMJxDj()
xh35BsSQ0JCU = {roI3spqORKae(ES5oEprVxulp(b'\xa0\xb5\x91\xd9\x9b\x16\xa7'), chr(0b1011101 + 0o7) + chr(9014 - 8913) + '\143' + '\157' + chr(0b1001011 + 0o31) + chr(1823 - 1722))('\165' + chr(9586 - 9470) + chr(0b1011111 + 0o7) + '\x2d' + chr(0b111000)): trT9B2PppBdY(), roI3spqORKae(ES5oEprVxulp(b'\xab\xb4\x8a\xd0\x99\x12\xbb'), '\x64' + '\x65' + '\143' + '\x6f' + chr(0b1100 + 0o130) + '\x65')('\x75' + '\x74' + '\x66' + '\x2d' + chr(0b111000)): hCokMX7qUDv6(), roI3spqORKae(ES5oEprVxulp(b'\xa4\xb6\x91\xd4\x8a'), chr(0b1100100) + '\x65' + chr(99) + chr(0b1100101 + 0o12) + chr(100) + chr(1166 - 1065))('\165' + chr(0b1110100) + chr(4503 - 4401) + '\055' + '\070'): iuJrnjTIwe5L(), roI3spqORKae(ES5oEprVxulp(b'\xb1\xae\x8c\xdc\x90\x10'), '\x64' + chr(0b1100101) + chr(0b1100011) + chr(11480 - 11369) + chr(100) + chr(0b1100101))(chr(0b110001 + 0o104) + chr(0b111010 + 0o72) + chr(9256 - 9154) + '\055' + chr(0b10110 + 0o42)): yqvJHvY8vTBF()}
for ZlbFMSG8gCoF in (roI3spqORKae(ES5oEprVxulp(b'\xb7\xb3\x90\xc1\xc6'), chr(0b101110 + 0o66) + chr(0b1100101) + chr(99) + chr(0b1101111) + chr(100) + chr(101))(chr(0b1110101) + '\164' + '\x66' + chr(0b101101) + '\070'), roI3spqORKae(ES5oEprVxulp(b'\xab\xb4\x8a\x84\xc8'), chr(1166 - 1066) + chr(101) + chr(0b100111 + 0o74) + chr(0b1101111) + chr(100) + chr(7310 - 7209))('\165' + '\x74' + chr(3731 - 3629) + '\x2d' + '\x38'), roI3spqORKae(ES5oEprVxulp(b'\xb7\xb3\x90\xc1\xcfA'), chr(0b1001111 + 0o25) + chr(0b1100101) + chr(0b111011 + 0o50) + '\x6f' + chr(0b1100100) + chr(6032 - 5931))(chr(0b101000 + 0o115) + chr(0b1100001 + 0o23) + chr(7460 - 7358) + chr(0b11001 + 0o24) + chr(0b110010 + 0o6)), roI3spqORKae(ES5oEprVxulp(b'\xab\xb4\x8a\x86\xcc'), '\144' + '\x65' + chr(0b1100011) + chr(0b1101111) + '\x64' + chr(0b1100101))(chr(117) + chr(3648 - 3532) + chr(102) + '\x2d' + '\x38'), roI3spqORKae(ES5oEprVxulp(b'\xb7\xb3\x90\xc1\xcdE'), '\144' + '\145' + chr(0b1100011) + '\157' + chr(100) + '\x65')(chr(0b1110101) + chr(0b1110100) + '\x66' + chr(0b1110 + 0o37) + chr(1776 - 1720)), roI3spqORKae(ES5oEprVxulp(b'\xab\xb4\x8a\x83\xca'), chr(723 - 623) + chr(0b1100101) + '\143' + chr(0b1000 + 0o147) + '\144' + chr(0b1100101))(chr(6299 - 6182) + '\164' + chr(0b1100110) + chr(0b0 + 0o55) + chr(0b111000))):
xh35BsSQ0JCU[ZlbFMSG8gCoF] = xh35BsSQ0JCU[roI3spqORKae(ES5oEprVxulp(b'\xab\xb4\x8a\xd0\x99\x12\xbb'), chr(3414 - 3314) + chr(0b10 + 0o143) + chr(6889 - 6790) + chr(0b1010110 + 0o31) + chr(1628 - 1528) + chr(0b1000111 + 0o36))('\165' + chr(0b1100110 + 0o16) + chr(8418 - 8316) + chr(0b101101) + '\x38')]
xh35BsSQ0JCU[roI3spqORKae(ES5oEprVxulp(b'\xa6\xb5\x8b\xd7\x92\x12'), '\144' + chr(0b1010101 + 0o20) + chr(4328 - 4229) + '\x6f' + chr(0b1100100) + chr(0b1000110 + 0o37))(chr(117) + chr(0b1110100) + '\146' + chr(0b100001 + 0o14) + chr(0b110001 + 0o7))] = xh35BsSQ0JCU[roI3spqORKae(ES5oEprVxulp(b'\xa4\xb6\x91\xd4\x8a'), chr(100) + chr(9207 - 9106) + '\143' + chr(0b1101111) + chr(100) + chr(0b1010000 + 0o25))(chr(4560 - 4443) + chr(116) + chr(0b10 + 0o144) + chr(45) + '\x38')]
def ucCJOD9iQGyx(ZlbFMSG8gCoF):
if HJoZk1jjUsNt is not None:
return mYHHDOuQ88eP() + xh35BsSQ0JCU[HJoZk1jjUsNt[ZlbFMSG8gCoF][roI3spqORKae(ES5oEprVxulp(b'\xb6\xa3\x8e\xd0'), chr(0b1100100) + chr(101) + chr(99) + '\x6f' + chr(0b110100 + 0o60) + '\x65')(chr(0b1110101) + chr(0b10110 + 0o136) + '\x66' + chr(0b101101) + chr(0b111000))]] + ORu_qqzPRE7h[ZlbFMSG8gCoF] + vPE5JUmMJxDj()
else:
return mYHHDOuQ88eP() + iuJrnjTIwe5L() + ORu_qqzPRE7h[ZlbFMSG8gCoF] + vPE5JUmMJxDj()
xYLgMH5cwdd8 = [JBBblcuB3OqR(roI3spqORKae(ES5oEprVxulp(b' Nr'), '\144' + '\x65' + chr(656 - 557) + '\157' + chr(100) + chr(0b1100101))(chr(11010 - 10893) + '\164' + chr(0b1100101 + 0o1) + '\x2d' + chr(173 - 117))) + JBBblcuB3OqR(roI3spqORKae(ES5oEprVxulp(b' NR'), chr(100) + chr(0b1111 + 0o126) + '\143' + '\x6f' + chr(0b110000 + 0o64) + '\x65')(chr(0b11010 + 0o133) + '\x74' + '\146' + chr(45) + '\070')).Y4yM9BcfTCNq((JBBblcuB3OqR(roI3spqORKae(ES5oEprVxulp(b' N~'), chr(7436 - 7336) + chr(101) + chr(99) + '\157' + chr(100) + chr(0b1001101 + 0o30))(chr(117) + chr(217 - 101) + chr(0b1010011 + 0o23) + chr(0b0 + 0o55) + chr(0b111000))) * ZlbFMSG8gCoF for ZlbFMSG8gCoF in z5NTtqTGUznU)) + JBBblcuB3OqR(roI3spqORKae(ES5oEprVxulp(b' Nn'), chr(0b10101 + 0o117) + chr(101) + chr(99) + chr(0b1101111) + chr(100) + chr(4955 - 4854))(chr(117) + '\x74' + chr(102) + '\055' + '\070'))]
if ftfygxgFas5X(SP8X8lk1B9Qg) > nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(506 - 458), 8):
ti7ytrXAVphm = [ucCJOD9iQGyx(ZlbFMSG8gCoF) + roI3spqORKae(ES5oEprVxulp(b'\xe2'), chr(100) + chr(5907 - 5806) + chr(99) + chr(0b1101111) + '\144' + chr(9785 - 9684))(chr(117) + '\x74' + chr(0b1100110) + chr(0b101101) + chr(1348 - 1292)) * (z5NTtqTGUznU[ZlbFMSG8gCoF] - ftfygxgFas5X(SP8X8lk1B9Qg[ZlbFMSG8gCoF])) for ZlbFMSG8gCoF in bbT2xIe5pzk7(ftfygxgFas5X(SP8X8lk1B9Qg))]
roI3spqORKae(xYLgMH5cwdd8, roI3spqORKae(ES5oEprVxulp(b'\x8a\x8e\xad\x81\x86\x10\x8e;Y\x13\xb1X'), '\144' + chr(101) + chr(961 - 862) + '\x6f' + '\x64' + chr(0b1100101))('\x75' + chr(0b1110100) + chr(0b10101 + 0o121) + chr(45) + '\070'))(JBBblcuB3OqR(roI3spqORKae(ES5oEprVxulp(b' N|'), '\x64' + chr(0b101101 + 0o70) + chr(99) + chr(111) + chr(8570 - 8470) + chr(101))('\x75' + chr(5949 - 5833) + chr(0b10 + 0o144) + chr(45) + chr(0b101000 + 0o20))) + roI3spqORKae(JBBblcuB3OqR(roI3spqORKae(ES5oEprVxulp(b' N|'), chr(0b1100100) + chr(3687 - 3586) + '\x63' + chr(3655 - 3544) + chr(0b1100100) + chr(0b1100101))('\x75' + '\x74' + chr(0b1100110) + '\055' + chr(0b110010 + 0o6))), roI3spqORKae(ES5oEprVxulp(b'\x9b\xee\x87\xf8\xc75\xaa2g?\xaa\x1c'), '\144' + chr(101) + chr(99) + chr(0b1101111) + chr(0b1100100) + chr(0b100010 + 0o103))(chr(11667 - 11550) + chr(0b1110100) + '\x66' + '\055' + chr(56)))(ti7ytrXAVphm) + JBBblcuB3OqR(roI3spqORKae(ES5oEprVxulp(b' N|'), chr(0b1011101 + 0o7) + chr(2662 - 2561) + chr(4656 - 4557) + chr(9881 - 9770) + '\144' + chr(101))(chr(0b1110101) + chr(116) + chr(0b1100110) + '\055' + chr(56))))
roI3spqORKae(xYLgMH5cwdd8, roI3spqORKae(ES5oEprVxulp(b'\x8a\x8e\xad\x81\x86\x10\x8e;Y\x13\xb1X'), chr(0b1011011 + 0o11) + chr(1113 - 1012) + chr(99) + chr(0b1000001 + 0o56) + '\144' + chr(101))(chr(0b1110101) + chr(0b100010 + 0o122) + '\x66' + chr(759 - 714) + '\070'))(JBBblcuB3OqR(roI3spqORKae(ES5oEprVxulp(b' Nb'), chr(3584 - 3484) + chr(0b1100101) + chr(9006 - 8907) + '\x6f' + '\144' + chr(3436 - 3335))(chr(0b1110101) + chr(12831 - 12715) + '\x66' + '\x2d' + chr(2780 - 2724))) + roI3spqORKae(JBBblcuB3OqR(roI3spqORKae(ES5oEprVxulp(b' NB'), chr(1212 - 1112) + '\x65' + chr(0b1010 + 0o131) + chr(0b10 + 0o155) + chr(0b10011 + 0o121) + chr(3936 - 3835))(chr(147 - 30) + chr(9889 - 9773) + '\x66' + chr(1389 - 1344) + chr(0b111000))), roI3spqORKae(ES5oEprVxulp(b'\x9b\xee\x87\xf8\xc75\xaa2g?\xaa\x1c'), chr(100) + '\145' + '\143' + '\x6f' + chr(9680 - 9580) + chr(0b1100101))('\165' + chr(116) + '\146' + chr(917 - 872) + chr(2906 - 2850)))((JBBblcuB3OqR(roI3spqORKae(ES5oEprVxulp(b' N~'), '\144' + '\x65' + chr(4792 - 4693) + '\x6f' + chr(0b1101 + 0o127) + chr(101))('\165' + '\164' + chr(7619 - 7517) + '\055' + chr(0b0 + 0o70))) * ZlbFMSG8gCoF for ZlbFMSG8gCoF in z5NTtqTGUznU)) + JBBblcuB3OqR(roI3spqORKae(ES5oEprVxulp(b' NZ'), chr(0b1100100) + chr(0b1001110 + 0o27) + chr(0b1100011) + chr(111) + chr(100) + chr(101))(chr(117) + chr(8674 - 8558) + chr(0b101011 + 0o73) + chr(1411 - 1366) + chr(56))))
for o6UWUO21mH25 in tKAGGG4CBtlm:
c2fFNnC9yR4S = [o6UWUO21mH25[ZlbFMSG8gCoF] + roI3spqORKae(ES5oEprVxulp(b'\xe2'), chr(7036 - 6936) + chr(101) + '\143' + chr(0b110001 + 0o76) + '\144' + '\145')('\x75' + chr(9187 - 9071) + '\x66' + chr(0b101101) + '\x38') * (z5NTtqTGUznU[ZlbFMSG8gCoF] - ftfygxgFas5X(o6UWUO21mH25[ZlbFMSG8gCoF])) for ZlbFMSG8gCoF in bbT2xIe5pzk7(ftfygxgFas5X(o6UWUO21mH25))]
roI3spqORKae(xYLgMH5cwdd8, roI3spqORKae(ES5oEprVxulp(b'\x8a\x8e\xad\x81\x86\x10\x8e;Y\x13\xb1X'), chr(0b1000001 + 0o43) + chr(0b1111 + 0o126) + chr(99) + '\157' + chr(100) + chr(0b1100101))(chr(0b1110010 + 0o3) + '\x74' + chr(0b1100110) + '\x2d' + '\x38'))(JBBblcuB3OqR(roI3spqORKae(ES5oEprVxulp(b' N|'), '\x64' + chr(0b111 + 0o136) + chr(0b1000010 + 0o41) + '\x6f' + '\144' + chr(101))(chr(13082 - 12965) + chr(0b110110 + 0o76) + chr(102) + chr(0b11111 + 0o16) + chr(56))) + roI3spqORKae(JBBblcuB3OqR(roI3spqORKae(ES5oEprVxulp(b' N|'), chr(100) + chr(0b111101 + 0o50) + '\x63' + chr(0b1010111 + 0o30) + '\144' + chr(0b1100101))(chr(0b1110101) + chr(0b1100 + 0o150) + chr(102) + '\x2d' + '\x38')), roI3spqORKae(ES5oEprVxulp(b'\x9b\xee\x87\xf8\xc75\xaa2g?\xaa\x1c'), chr(4788 - 4688) + chr(101) + chr(0b1011 + 0o130) + '\157' + chr(2063 - 1963) + '\x65')('\165' + '\x74' + chr(9010 - 8908) + '\055' + chr(0b111000)))(c2fFNnC9yR4S) + JBBblcuB3OqR(roI3spqORKae(ES5oEprVxulp(b' N|'), chr(0b10001 + 0o123) + '\145' + chr(0b1000101 + 0o36) + chr(0b11001 + 0o126) + chr(0b1100100) + chr(200 - 99))(chr(0b1110101) + chr(0b101001 + 0o113) + '\x66' + chr(0b101101) + chr(0b111000))))
roI3spqORKae(xYLgMH5cwdd8, roI3spqORKae(ES5oEprVxulp(b'\x8a\x8e\xad\x81\x86\x10\x8e;Y\x13\xb1X'), chr(0b1100100) + chr(8316 - 8215) + chr(99) + '\157' + chr(0b1100100) + chr(0b1100001 + 0o4))(chr(0b10011 + 0o142) + chr(116) + '\146' + chr(0b11011 + 0o22) + chr(0b10101 + 0o43)))(JBBblcuB3OqR(roI3spqORKae(ES5oEprVxulp(b' Nj'), chr(100) + chr(0b1011100 + 0o11) + chr(99) + chr(111) + chr(6866 - 6766) + '\145')(chr(117) + chr(10798 - 10682) + chr(0b1100110) + chr(0b10001 + 0o34) + chr(0b111000))) + roI3spqORKae(JBBblcuB3OqR(roI3spqORKae(ES5oEprVxulp(b' NJ'), chr(0b1011111 + 0o5) + chr(0b1100101) + '\x63' + chr(0b1101111) + chr(0b1000010 + 0o42) + chr(101))('\x75' + '\x74' + chr(0b1001110 + 0o30) + chr(0b100001 + 0o14) + '\x38')), roI3spqORKae(ES5oEprVxulp(b'\x9b\xee\x87\xf8\xc75\xaa2g?\xaa\x1c'), chr(0b110011 + 0o61) + '\145' + '\x63' + chr(0b100001 + 0o116) + chr(4251 - 4151) + '\145')('\x75' + chr(1209 - 1093) + chr(102) + chr(0b101101) + chr(0b110010 + 0o6)))((JBBblcuB3OqR(roI3spqORKae(ES5oEprVxulp(b' N~'), '\144' + '\145' + '\x63' + chr(0b100100 + 0o113) + chr(0b100000 + 0o104) + chr(101))('\165' + chr(0b111100 + 0o70) + chr(4247 - 4145) + chr(45) + '\070')) * ZlbFMSG8gCoF for ZlbFMSG8gCoF in z5NTtqTGUznU)) + JBBblcuB3OqR(roI3spqORKae(ES5oEprVxulp(b' Nf'), '\x64' + chr(101) + chr(0b1100011) + '\x6f' + chr(3997 - 3897) + chr(0b1100101))(chr(117) + '\x74' + chr(102) + chr(1876 - 1831) + '\070')))
if s5fVv8gYyWGJ:
return (roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\xc8'), chr(4706 - 4606) + chr(101) + '\143' + chr(0b1101111) + '\144' + chr(0b1100101))(chr(0b1110101) + chr(0b1110100) + chr(0b1100110) + chr(0b1010 + 0o43) + '\x38'), roI3spqORKae(ES5oEprVxulp(b'\x9b\xee\x87\xf8\xc75\xaa2g?\xaa\x1c'), '\x64' + chr(0b1100101) + '\143' + '\157' + chr(0b100011 + 0o101) + chr(101))(chr(117) + '\164' + chr(8054 - 7952) + chr(1807 - 1762) + chr(0b111000)))(xYLgMH5cwdd8), ftfygxgFas5X(xYLgMH5cwdd8), oclC8DLjA_lV(z5NTtqTGUznU) + ftfygxgFas5X(z5NTtqTGUznU) + nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b101110 + 0o3), 8))
else:
return roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\xc8'), '\144' + chr(0b1000011 + 0o42) + chr(99) + chr(0b1101111) + chr(9122 - 9022) + chr(609 - 508))(chr(466 - 349) + '\x74' + chr(8970 - 8868) + '\055' + chr(56)), roI3spqORKae(ES5oEprVxulp(b'\x9b\xee\x87\xf8\xc75\xaa2g?\xaa\x1c'), chr(5963 - 5863) + '\x65' + chr(502 - 403) + '\x6f' + chr(5450 - 5350) + chr(0b1100101))('\x75' + chr(116) + chr(301 - 199) + chr(0b101101) + chr(56)))(xYLgMH5cwdd8)
|
dnanexus/dx-toolkit
|
src/python/dxpy/utils/pretty_print.py
|
flatten_json_array
|
def flatten_json_array(json_string, array_name):
"""
Flattens all arrays with the same name in the JSON string
:param json_string: JSON string
:type json_string: str
:param array_name: Array name to flatten
:type array_name: str
"""
result = re.sub('"{}": \\[\r?\n\\s*'.format(array_name), '"{}": ['.format(array_name), json_string, flags=re.MULTILINE)
flatten_regexp = re.compile('"{}": \\[(.*)(?<=,)\r?\n\\s*'.format(array_name), flags=re.MULTILINE)
while flatten_regexp.search(result):
result = flatten_regexp.sub('"{}": [\\1 '.format(array_name), result)
result = re.sub('"{}": \\[(.*)\r?\n\\s*\\]'.format(array_name), '"{}": [\\1]'.format(array_name), result, flags=re.MULTILINE)
return result
|
python
|
def flatten_json_array(json_string, array_name):
"""
Flattens all arrays with the same name in the JSON string
:param json_string: JSON string
:type json_string: str
:param array_name: Array name to flatten
:type array_name: str
"""
result = re.sub('"{}": \\[\r?\n\\s*'.format(array_name), '"{}": ['.format(array_name), json_string, flags=re.MULTILINE)
flatten_regexp = re.compile('"{}": \\[(.*)(?<=,)\r?\n\\s*'.format(array_name), flags=re.MULTILINE)
while flatten_regexp.search(result):
result = flatten_regexp.sub('"{}": [\\1 '.format(array_name), result)
result = re.sub('"{}": \\[(.*)\r?\n\\s*\\]'.format(array_name), '"{}": [\\1]'.format(array_name), result, flags=re.MULTILINE)
return result
|
[
"def",
"flatten_json_array",
"(",
"json_string",
",",
"array_name",
")",
":",
"result",
"=",
"re",
".",
"sub",
"(",
"'\"{}\": \\\\[\\r?\\n\\\\s*'",
".",
"format",
"(",
"array_name",
")",
",",
"'\"{}\": ['",
".",
"format",
"(",
"array_name",
")",
",",
"json_string",
",",
"flags",
"=",
"re",
".",
"MULTILINE",
")",
"flatten_regexp",
"=",
"re",
".",
"compile",
"(",
"'\"{}\": \\\\[(.*)(?<=,)\\r?\\n\\\\s*'",
".",
"format",
"(",
"array_name",
")",
",",
"flags",
"=",
"re",
".",
"MULTILINE",
")",
"while",
"flatten_regexp",
".",
"search",
"(",
"result",
")",
":",
"result",
"=",
"flatten_regexp",
".",
"sub",
"(",
"'\"{}\": [\\\\1 '",
".",
"format",
"(",
"array_name",
")",
",",
"result",
")",
"result",
"=",
"re",
".",
"sub",
"(",
"'\"{}\": \\\\[(.*)\\r?\\n\\\\s*\\\\]'",
".",
"format",
"(",
"array_name",
")",
",",
"'\"{}\": [\\\\1]'",
".",
"format",
"(",
"array_name",
")",
",",
"result",
",",
"flags",
"=",
"re",
".",
"MULTILINE",
")",
"return",
"result"
] |
Flattens all arrays with the same name in the JSON string
:param json_string: JSON string
:type json_string: str
:param array_name: Array name to flatten
:type array_name: str
|
[
"Flattens",
"all",
"arrays",
"with",
"the",
"same",
"name",
"in",
"the",
"JSON",
"string"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/utils/pretty_print.py#L184-L199
|
train
|
Flattens all arrays with the same name in the JSON 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,Fc8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Q,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__
ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\060' + chr(10471 - 10360) + '\065' + '\x33', 0o10), nzTpIcepk0o8(chr(0b10011 + 0o35) + chr(472 - 361) + chr(55) + chr(1947 - 1894), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1000101 + 0o52) + '\063' + '\063' + chr(0b1110 + 0o42), 0b1000), nzTpIcepk0o8(chr(100 - 52) + chr(111) + chr(2592 - 2540) + '\061', 3606 - 3598), nzTpIcepk0o8(chr(0b101010 + 0o6) + '\x6f' + chr(0b1010 + 0o52) + chr(0b110000 + 0o7), 0b1000), nzTpIcepk0o8(chr(0b1010 + 0o46) + chr(0b11011 + 0o124) + '\x31' + chr(0b101101 + 0o7) + '\065', 0o10), nzTpIcepk0o8(chr(126 - 78) + chr(0b1001100 + 0o43) + chr(55) + '\x35', 8), nzTpIcepk0o8('\x30' + chr(0b1100110 + 0o11) + chr(0b110010) + '\060' + chr(48), ord("\x08")), nzTpIcepk0o8(chr(572 - 524) + chr(111) + chr(1648 - 1598) + '\x33' + chr(0b11010 + 0o31), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(2335 - 2284) + '\x33' + '\x34', 0b1000), nzTpIcepk0o8('\x30' + chr(7131 - 7020) + chr(0b110001) + chr(0b10 + 0o57) + chr(503 - 454), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + '\061' + chr(0b1011 + 0o45), 0o10), nzTpIcepk0o8('\x30' + chr(111) + '\x31' + chr(0b110110) + chr(0b101010 + 0o11), 6253 - 6245), nzTpIcepk0o8(chr(0b101011 + 0o5) + chr(1434 - 1323) + chr(2173 - 2123) + chr(1843 - 1792) + '\x31', 0o10), nzTpIcepk0o8(chr(0b10110 + 0o32) + chr(0b1101111) + chr(49) + chr(0b101100 + 0o5) + chr(0b110111), 12254 - 12246), nzTpIcepk0o8('\x30' + chr(0b10 + 0o155) + chr(0b110010) + chr(0b101011 + 0o5) + chr(0b101111 + 0o6), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b101011 + 0o104) + '\062' + chr(51) + chr(0b11100 + 0o32), ord("\x08")), nzTpIcepk0o8('\060' + chr(2704 - 2593) + '\x31' + '\066' + '\x37', 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(0b1111 + 0o43) + chr(0b110110) + '\067', ord("\x08")), nzTpIcepk0o8(chr(882 - 834) + '\x6f' + chr(0b110000 + 0o2) + '\065' + chr(0b111 + 0o56), 0o10), nzTpIcepk0o8(chr(0b101001 + 0o7) + chr(0b1101111) + '\061' + chr(0b110010) + chr(53), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(1803 - 1752) + chr(0b110111) + chr(49), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b10100 + 0o37) + chr(0b110011), 30942 - 30934), nzTpIcepk0o8('\060' + chr(0b1100001 + 0o16) + '\063' + '\x35' + '\066', 0o10), nzTpIcepk0o8('\x30' + chr(11456 - 11345) + '\063' + '\060' + chr(54), 1910 - 1902), nzTpIcepk0o8(chr(1982 - 1934) + chr(0b111001 + 0o66) + '\061' + chr(0b110101) + chr(0b1011 + 0o52), 46465 - 46457), nzTpIcepk0o8(chr(0b10000 + 0o40) + '\157' + '\063' + chr(1824 - 1774) + chr(48), 0o10), nzTpIcepk0o8(chr(0b100011 + 0o15) + '\157' + chr(2379 - 2325) + chr(0b110000), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110010) + chr(0b110001 + 0o2) + '\065', 0o10), nzTpIcepk0o8(chr(48) + chr(1382 - 1271) + '\x32' + chr(53), 11964 - 11956), nzTpIcepk0o8(chr(552 - 504) + chr(0b1101111) + '\060', 0o10), nzTpIcepk0o8(chr(2135 - 2087) + chr(111) + chr(51) + chr(1903 - 1855) + '\x33', 21107 - 21099), nzTpIcepk0o8(chr(0b101011 + 0o5) + chr(111) + chr(2392 - 2341) + chr(0b11100 + 0o33) + chr(0b110001), 8), nzTpIcepk0o8('\x30' + chr(111) + chr(0b11000 + 0o32) + chr(0b110000) + '\x36', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b11110 + 0o24) + '\x31' + '\x37', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b11010 + 0o125) + chr(49) + chr(55) + '\x36', 58406 - 58398), nzTpIcepk0o8(chr(984 - 936) + chr(7106 - 6995) + chr(0b110011) + chr(0b110100), 34234 - 34226), nzTpIcepk0o8(chr(629 - 581) + '\157' + '\x32' + '\067' + '\065', 15932 - 15924), nzTpIcepk0o8('\x30' + '\157' + '\063' + '\x31' + chr(0b110000 + 0o0), 0o10), nzTpIcepk0o8('\060' + chr(6230 - 6119) + '\x32' + chr(55) + '\060', 57884 - 57876)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + chr(8848 - 8737) + '\x35' + '\060', 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x05'), '\144' + chr(101) + '\143' + chr(0b1101111) + chr(0b1100100) + chr(0b1100101))(chr(0b1110101) + chr(6154 - 6038) + chr(102) + chr(0b101101) + chr(0b100010 + 0o26)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def wmICtXb1vyCq(G6Gkf_X1vAq9, aBf_Thx2Hb8G):
POx95m7SPOVy = aoTc4YA2bs2R._zPndKq6xMgp(roI3spqORKae(ES5oEprVxulp(b'\tF\xa5\x03\x1dEa\xdb\x96\xe3CT\x00\xb3'), chr(100) + chr(0b1100101) + chr(99) + chr(0b1101111) + chr(100) + '\145')(chr(0b1111 + 0o146) + chr(0b1110100) + chr(3932 - 3830) + '\055' + chr(292 - 236)).q33KG3foQ_CJ(aBf_Thx2Hb8G), roI3spqORKae(ES5oEprVxulp(b'\tF\xa5\x03\x1dEf'), chr(5123 - 5023) + chr(3174 - 3073) + chr(8610 - 8511) + '\157' + chr(0b1100100) + chr(4337 - 4236))('\165' + '\x74' + chr(0b1100110) + chr(0b101101) + chr(1546 - 1490)).q33KG3foQ_CJ(aBf_Thx2Hb8G), G6Gkf_X1vAq9, flags=aoTc4YA2bs2R.MULTILINE)
VEPoBDLJY0Yb = aoTc4YA2bs2R.compile(roI3spqORKae(ES5oEprVxulp(b'\tF\xa5\x03\x1dEa\xdb\xb3\xf2c![\xa6s\xb8\xb2^\xba\x92_\xa5h\xc4'), '\x64' + '\145' + '\x63' + chr(0b10010 + 0o135) + '\x64' + chr(0b100000 + 0o105))(chr(8960 - 8843) + '\164' + chr(0b1010000 + 0o26) + chr(617 - 572) + chr(0b110110 + 0o2)).q33KG3foQ_CJ(aBf_Thx2Hb8G), flags=aoTc4YA2bs2R.MULTILINE)
while roI3spqORKae(VEPoBDLJY0Yb, roI3spqORKae(ES5oEprVxulp(b'o\\\x82\x19n\x0bG\xd1\xfc\x9a\x03~'), '\144' + chr(0b10100 + 0o121) + chr(0b10011 + 0o120) + chr(0b101001 + 0o106) + '\144' + chr(1118 - 1017))(chr(0b1110101) + chr(0b1101010 + 0o12) + chr(0b1100110) + '\055' + chr(0b111000)))(POx95m7SPOVy):
POx95m7SPOVy = VEPoBDLJY0Yb._zPndKq6xMgp(roI3spqORKae(ES5oEprVxulp(b'\tF\xa5\x03\x1dEf\xdc\xaa\xfc'), '\144' + '\145' + '\143' + chr(6712 - 6601) + chr(0b1100100) + chr(0b11100 + 0o111))('\165' + chr(0b1110100) + chr(10284 - 10182) + chr(0b11001 + 0o24) + '\x38').q33KG3foQ_CJ(aBf_Thx2Hb8G), POx95m7SPOVy)
POx95m7SPOVy = aoTc4YA2bs2R._zPndKq6xMgp(roI3spqORKae(ES5oEprVxulp(b'\tF\xa5\x03\x1dEa\xdb\xb3\xf2c!~\xa6E\xd9\xed]\xeb\xf0'), chr(0b1100100) + chr(0b11111 + 0o106) + '\x63' + '\157' + chr(0b101000 + 0o74) + chr(5501 - 5400))('\x75' + chr(0b1011 + 0o151) + '\x66' + chr(0b10101 + 0o30) + chr(1407 - 1351)).q33KG3foQ_CJ(aBf_Thx2Hb8G), roI3spqORKae(ES5oEprVxulp(b'\tF\xa5\x03\x1dEf\xdc\xaa\x81'), chr(0b1100100) + chr(101) + chr(99) + '\157' + '\x64' + chr(0b1100101))(chr(0b1110101) + chr(0b1100011 + 0o21) + chr(3979 - 3877) + '\055' + chr(56)).q33KG3foQ_CJ(aBf_Thx2Hb8G), POx95m7SPOVy, flags=aoTc4YA2bs2R.MULTILINE)
return POx95m7SPOVy
|
dnanexus/dx-toolkit
|
src/python/dxpy/bindings/dxworkflow.py
|
new_dxworkflow
|
def new_dxworkflow(title=None, summary=None, description=None, output_folder=None, init_from=None, **kwargs):
'''
:param title: Workflow title (optional)
:type title: string
:param summary: Workflow summary (optional)
:type summary: string
:param description: Workflow description (optional)
:type description: string
:param output_folder: Default output folder of the workflow (optional)
:type output_folder: string
:param init_from: Another analysis workflow object handler or and analysis (string or handler) from which to initialize the metadata (optional)
:type init_from: :class:`~dxpy.bindings.dxworkflow.DXWorkflow`, :class:`~dxpy.bindings.dxanalysis.DXAnalysis`, or string (for analysis IDs only)
:rtype: :class:`DXWorkflow`
Additional optional parameters not listed: all those under
:func:`dxpy.bindings.DXDataObject.new`, except `details`.
Creates a new remote workflow object with project set to *project*
and returns the appropriate handler.
Example:
r = dxpy.new_dxworkflow(title="My Workflow", description="This workflow contains...")
Note that this function is shorthand for::
dxworkflow = DXWorkflow()
dxworkflow.new(**kwargs)
'''
dxworkflow = DXWorkflow()
dxworkflow.new(title=title, summary=summary, description=description, output_folder=output_folder, init_from=init_from, **kwargs)
return dxworkflow
|
python
|
def new_dxworkflow(title=None, summary=None, description=None, output_folder=None, init_from=None, **kwargs):
'''
:param title: Workflow title (optional)
:type title: string
:param summary: Workflow summary (optional)
:type summary: string
:param description: Workflow description (optional)
:type description: string
:param output_folder: Default output folder of the workflow (optional)
:type output_folder: string
:param init_from: Another analysis workflow object handler or and analysis (string or handler) from which to initialize the metadata (optional)
:type init_from: :class:`~dxpy.bindings.dxworkflow.DXWorkflow`, :class:`~dxpy.bindings.dxanalysis.DXAnalysis`, or string (for analysis IDs only)
:rtype: :class:`DXWorkflow`
Additional optional parameters not listed: all those under
:func:`dxpy.bindings.DXDataObject.new`, except `details`.
Creates a new remote workflow object with project set to *project*
and returns the appropriate handler.
Example:
r = dxpy.new_dxworkflow(title="My Workflow", description="This workflow contains...")
Note that this function is shorthand for::
dxworkflow = DXWorkflow()
dxworkflow.new(**kwargs)
'''
dxworkflow = DXWorkflow()
dxworkflow.new(title=title, summary=summary, description=description, output_folder=output_folder, init_from=init_from, **kwargs)
return dxworkflow
|
[
"def",
"new_dxworkflow",
"(",
"title",
"=",
"None",
",",
"summary",
"=",
"None",
",",
"description",
"=",
"None",
",",
"output_folder",
"=",
"None",
",",
"init_from",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"dxworkflow",
"=",
"DXWorkflow",
"(",
")",
"dxworkflow",
".",
"new",
"(",
"title",
"=",
"title",
",",
"summary",
"=",
"summary",
",",
"description",
"=",
"description",
",",
"output_folder",
"=",
"output_folder",
",",
"init_from",
"=",
"init_from",
",",
"*",
"*",
"kwargs",
")",
"return",
"dxworkflow"
] |
:param title: Workflow title (optional)
:type title: string
:param summary: Workflow summary (optional)
:type summary: string
:param description: Workflow description (optional)
:type description: string
:param output_folder: Default output folder of the workflow (optional)
:type output_folder: string
:param init_from: Another analysis workflow object handler or and analysis (string or handler) from which to initialize the metadata (optional)
:type init_from: :class:`~dxpy.bindings.dxworkflow.DXWorkflow`, :class:`~dxpy.bindings.dxanalysis.DXAnalysis`, or string (for analysis IDs only)
:rtype: :class:`DXWorkflow`
Additional optional parameters not listed: all those under
:func:`dxpy.bindings.DXDataObject.new`, except `details`.
Creates a new remote workflow object with project set to *project*
and returns the appropriate handler.
Example:
r = dxpy.new_dxworkflow(title="My Workflow", description="This workflow contains...")
Note that this function is shorthand for::
dxworkflow = DXWorkflow()
dxworkflow.new(**kwargs)
|
[
":",
"param",
"title",
":",
"Workflow",
"title",
"(",
"optional",
")",
":",
"type",
"title",
":",
"string",
":",
"param",
"summary",
":",
"Workflow",
"summary",
"(",
"optional",
")",
":",
"type",
"summary",
":",
"string",
":",
"param",
"description",
":",
"Workflow",
"description",
"(",
"optional",
")",
":",
"type",
"description",
":",
"string",
":",
"param",
"output_folder",
":",
"Default",
"output",
"folder",
"of",
"the",
"workflow",
"(",
"optional",
")",
":",
"type",
"output_folder",
":",
"string",
":",
"param",
"init_from",
":",
"Another",
"analysis",
"workflow",
"object",
"handler",
"or",
"and",
"analysis",
"(",
"string",
"or",
"handler",
")",
"from",
"which",
"to",
"initialize",
"the",
"metadata",
"(",
"optional",
")",
":",
"type",
"init_from",
":",
":",
"class",
":",
"~dxpy",
".",
"bindings",
".",
"dxworkflow",
".",
"DXWorkflow",
":",
"class",
":",
"~dxpy",
".",
"bindings",
".",
"dxanalysis",
".",
"DXAnalysis",
"or",
"string",
"(",
"for",
"analysis",
"IDs",
"only",
")",
":",
"rtype",
":",
":",
"class",
":",
"DXWorkflow"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxworkflow.py#L40-L71
|
train
|
Creates a new remote workflow object with the specified title summary and description.
|
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,YikXQ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3OlOVg98A85,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(1018 - 970) + chr(0b1101111) + chr(2262 - 2209) + chr(50), 0o10), nzTpIcepk0o8('\060' + chr(8898 - 8787) + '\062' + chr(0b101110 + 0o3) + chr(54), 0o10), nzTpIcepk0o8(chr(2000 - 1952) + chr(0b1101111) + chr(0b110001) + chr(0b110101) + '\065', 0b1000), nzTpIcepk0o8('\060' + chr(10942 - 10831) + chr(49) + chr(54), 0b1000), nzTpIcepk0o8('\x30' + '\157' + '\061' + chr(48) + chr(55), 0b1000), nzTpIcepk0o8('\060' + chr(6488 - 6377) + chr(51) + '\x36' + chr(0b110111), 0b1000), nzTpIcepk0o8(chr(0b110 + 0o52) + chr(0b1000111 + 0o50) + '\x32' + '\x31' + chr(0b101110 + 0o10), 8), nzTpIcepk0o8(chr(48) + chr(111) + '\061' + chr(0b1101 + 0o44) + chr(2816 - 2761), 42964 - 42956), nzTpIcepk0o8('\060' + chr(0b101001 + 0o106) + chr(0b101000 + 0o15) + chr(48), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\061' + '\063' + '\066', 0b1000), nzTpIcepk0o8(chr(0b10000 + 0o40) + '\x6f' + '\063' + '\x32' + '\x36', 0o10), nzTpIcepk0o8('\060' + chr(0b1011100 + 0o23) + '\061' + '\067' + chr(0b10001 + 0o41), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + '\x31' + chr(0b101111 + 0o10) + '\x30', 0b1000), nzTpIcepk0o8('\x30' + chr(11141 - 11030) + chr(1097 - 1048) + chr(0b110001) + '\x33', 0o10), nzTpIcepk0o8(chr(1409 - 1361) + '\x6f' + chr(0b10000 + 0o43) + chr(49) + chr(604 - 554), 16900 - 16892), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x32' + '\x35' + '\063', ord("\x08")), nzTpIcepk0o8(chr(2098 - 2050) + '\157' + chr(0b100011 + 0o20) + '\x37' + chr(0b1000 + 0o54), 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(0b110000 + 0o1) + '\x30', 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(49) + '\061' + chr(0b10 + 0o62), 0b1000), nzTpIcepk0o8('\x30' + '\157' + '\066' + chr(50), 15964 - 15956), nzTpIcepk0o8(chr(433 - 385) + '\x6f' + '\x32' + '\x37' + chr(1306 - 1257), 0o10), nzTpIcepk0o8(chr(1642 - 1594) + '\x6f' + chr(0b110011) + chr(1445 - 1394) + chr(0b110101), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + '\x34' + chr(0b110111), 2857 - 2849), nzTpIcepk0o8(chr(48) + chr(0b1000111 + 0o50) + '\x33' + chr(2176 - 2125), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b10111 + 0o33) + chr(0b11110 + 0o24) + '\066', ord("\x08")), nzTpIcepk0o8('\060' + chr(1965 - 1854) + chr(49) + chr(0b110100) + chr(54), 0b1000), nzTpIcepk0o8(chr(0b10 + 0o56) + chr(111) + chr(51) + chr(53) + '\061', 0o10), nzTpIcepk0o8('\x30' + chr(0b11001 + 0o126) + chr(50) + '\063' + chr(52), 0o10), nzTpIcepk0o8('\060' + chr(1468 - 1357) + chr(0b110001) + chr(740 - 688) + chr(55), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(51) + chr(950 - 901) + '\x30', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101001 + 0o6) + '\x33' + chr(0b110011) + chr(49), 12728 - 12720), nzTpIcepk0o8('\x30' + chr(111) + chr(0b101101 + 0o5) + chr(0b110111) + chr(0b101100 + 0o10), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(4351 - 4240) + chr(49) + chr(2095 - 2045) + '\065', 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(640 - 591) + '\x37' + '\063', 24651 - 24643), nzTpIcepk0o8(chr(0b10011 + 0o35) + chr(0b1101111) + '\061' + chr(2017 - 1966) + '\x32', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b10011 + 0o134) + chr(50) + chr(208 - 156) + '\060', 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + '\063' + chr(0b110100) + chr(2277 - 2227), 19621 - 19613), nzTpIcepk0o8('\060' + '\157' + '\x31' + chr(48) + '\x34', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101011 + 0o4) + chr(765 - 714) + chr(52) + '\x33', 0o10), nzTpIcepk0o8('\060' + chr(0b1000000 + 0o57) + '\062' + chr(0b100010 + 0o17) + chr(0b110011), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(466 - 418) + '\x6f' + chr(0b110101) + chr(0b110000), 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x04'), chr(0b1100100) + '\145' + chr(0b1100011) + '\x6f' + chr(8393 - 8293) + chr(101))(chr(0b1110101) + chr(0b1110100) + '\146' + '\x2d' + chr(2725 - 2669)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def hnXZKrdQUcni(OO0tRW9aj_xh=None, QEXp0HPqz7Se=None, HPRlMhFQZATD=None, VYk4CN_ByWOq=None, mzJd_C061Ekt=None, **q5n0sHDDTy90):
BQPPFVEQXfaz = nVNunTRQVGGy()
roI3spqORKae(BQPPFVEQXfaz, roI3spqORKae(ES5oEprVxulp(b'H\xd4:c \x91\xba\x08B9\xa02'), '\x64' + '\x65' + chr(0b1100011) + chr(0b1101111) + chr(0b1100100) + chr(0b1011000 + 0o15))(chr(117) + chr(116) + chr(10330 - 10228) + chr(0b10001 + 0o34) + chr(56)))(title=OO0tRW9aj_xh, summary=QEXp0HPqz7Se, description=HPRlMhFQZATD, output_folder=VYk4CN_ByWOq, init_from=mzJd_C061Ekt, **q5n0sHDDTy90)
return BQPPFVEQXfaz
|
dnanexus/dx-toolkit
|
src/python/dxpy/bindings/dxworkflow.py
|
DXWorkflow._new
|
def _new(self, dx_hash, **kwargs):
"""
:param dx_hash: Standard hash populated in :func:`dxpy.bindings.DXDataObject.new()` containing attributes common to all data object classes.
:type dx_hash: dict
:param title: Workflow title (optional)
:type title: string
:param summary: Workflow summary (optional)
:type summary: string
:param description: Workflow description (optional)
:type description: string
:param output_folder: Default output folder of the workflow (optional)
:type output_folder: string
:param stages: Stages of the workflow (optional)
:type stages: array of dictionaries
:param workflow_inputs: Workflow-level input specification (optional)
:type workflow_inputs: array of dictionaries
:param workflow_outputs: Workflow-level output specification (optional)
:type workflow_outputs: array of dictionaries
:param init_from: Another analysis workflow object handler or and analysis (string or handler) from which to initialize the metadata (optional)
:type init_from: :class:`~dxpy.bindings.dxworkflow.DXWorkflow`, :class:`~dxpy.bindings.dxanalysis.DXAnalysis`, or string (for analysis IDs only)
Create a new remote workflow object.
"""
def _set_dx_hash(kwargs, dxhash, key, new_key=None):
new_key = key if new_key is None else new_key
if key in kwargs:
if kwargs[key] is not None:
dxhash[new_key] = kwargs[key]
del kwargs[key]
if "init_from" in kwargs:
if kwargs["init_from"] is not None:
if not (isinstance(kwargs["init_from"], (DXWorkflow, DXAnalysis)) or \
(isinstance(kwargs["init_from"], basestring) and \
re.compile('^analysis-[0-9A-Za-z]{24}$').match(kwargs["init_from"]))):
raise DXError("Expected init_from to be an instance of DXWorkflow or DXAnalysis, or to be a string analysis ID.")
if isinstance(kwargs["init_from"], basestring):
dx_hash["initializeFrom"] = {"id": kwargs["init_from"]}
else:
dx_hash["initializeFrom"] = {"id": kwargs["init_from"].get_id()}
if isinstance(kwargs["init_from"], DXWorkflow):
dx_hash["initializeFrom"]["project"] = kwargs["init_from"].get_proj_id()
del kwargs["init_from"]
_set_dx_hash(kwargs, dx_hash, "title")
_set_dx_hash(kwargs, dx_hash, "summary")
_set_dx_hash(kwargs, dx_hash, "description")
_set_dx_hash(kwargs, dx_hash, "output_folder", "outputFolder")
_set_dx_hash(kwargs, dx_hash, "stages")
_set_dx_hash(kwargs, dx_hash, "workflow_inputs", "inputs")
_set_dx_hash(kwargs, dx_hash, "workflow_outputs", "outputs")
resp = dxpy.api.workflow_new(dx_hash, **kwargs)
self.set_ids(resp["id"], dx_hash["project"])
|
python
|
def _new(self, dx_hash, **kwargs):
"""
:param dx_hash: Standard hash populated in :func:`dxpy.bindings.DXDataObject.new()` containing attributes common to all data object classes.
:type dx_hash: dict
:param title: Workflow title (optional)
:type title: string
:param summary: Workflow summary (optional)
:type summary: string
:param description: Workflow description (optional)
:type description: string
:param output_folder: Default output folder of the workflow (optional)
:type output_folder: string
:param stages: Stages of the workflow (optional)
:type stages: array of dictionaries
:param workflow_inputs: Workflow-level input specification (optional)
:type workflow_inputs: array of dictionaries
:param workflow_outputs: Workflow-level output specification (optional)
:type workflow_outputs: array of dictionaries
:param init_from: Another analysis workflow object handler or and analysis (string or handler) from which to initialize the metadata (optional)
:type init_from: :class:`~dxpy.bindings.dxworkflow.DXWorkflow`, :class:`~dxpy.bindings.dxanalysis.DXAnalysis`, or string (for analysis IDs only)
Create a new remote workflow object.
"""
def _set_dx_hash(kwargs, dxhash, key, new_key=None):
new_key = key if new_key is None else new_key
if key in kwargs:
if kwargs[key] is not None:
dxhash[new_key] = kwargs[key]
del kwargs[key]
if "init_from" in kwargs:
if kwargs["init_from"] is not None:
if not (isinstance(kwargs["init_from"], (DXWorkflow, DXAnalysis)) or \
(isinstance(kwargs["init_from"], basestring) and \
re.compile('^analysis-[0-9A-Za-z]{24}$').match(kwargs["init_from"]))):
raise DXError("Expected init_from to be an instance of DXWorkflow or DXAnalysis, or to be a string analysis ID.")
if isinstance(kwargs["init_from"], basestring):
dx_hash["initializeFrom"] = {"id": kwargs["init_from"]}
else:
dx_hash["initializeFrom"] = {"id": kwargs["init_from"].get_id()}
if isinstance(kwargs["init_from"], DXWorkflow):
dx_hash["initializeFrom"]["project"] = kwargs["init_from"].get_proj_id()
del kwargs["init_from"]
_set_dx_hash(kwargs, dx_hash, "title")
_set_dx_hash(kwargs, dx_hash, "summary")
_set_dx_hash(kwargs, dx_hash, "description")
_set_dx_hash(kwargs, dx_hash, "output_folder", "outputFolder")
_set_dx_hash(kwargs, dx_hash, "stages")
_set_dx_hash(kwargs, dx_hash, "workflow_inputs", "inputs")
_set_dx_hash(kwargs, dx_hash, "workflow_outputs", "outputs")
resp = dxpy.api.workflow_new(dx_hash, **kwargs)
self.set_ids(resp["id"], dx_hash["project"])
|
[
"def",
"_new",
"(",
"self",
",",
"dx_hash",
",",
"*",
"*",
"kwargs",
")",
":",
"def",
"_set_dx_hash",
"(",
"kwargs",
",",
"dxhash",
",",
"key",
",",
"new_key",
"=",
"None",
")",
":",
"new_key",
"=",
"key",
"if",
"new_key",
"is",
"None",
"else",
"new_key",
"if",
"key",
"in",
"kwargs",
":",
"if",
"kwargs",
"[",
"key",
"]",
"is",
"not",
"None",
":",
"dxhash",
"[",
"new_key",
"]",
"=",
"kwargs",
"[",
"key",
"]",
"del",
"kwargs",
"[",
"key",
"]",
"if",
"\"init_from\"",
"in",
"kwargs",
":",
"if",
"kwargs",
"[",
"\"init_from\"",
"]",
"is",
"not",
"None",
":",
"if",
"not",
"(",
"isinstance",
"(",
"kwargs",
"[",
"\"init_from\"",
"]",
",",
"(",
"DXWorkflow",
",",
"DXAnalysis",
")",
")",
"or",
"(",
"isinstance",
"(",
"kwargs",
"[",
"\"init_from\"",
"]",
",",
"basestring",
")",
"and",
"re",
".",
"compile",
"(",
"'^analysis-[0-9A-Za-z]{24}$'",
")",
".",
"match",
"(",
"kwargs",
"[",
"\"init_from\"",
"]",
")",
")",
")",
":",
"raise",
"DXError",
"(",
"\"Expected init_from to be an instance of DXWorkflow or DXAnalysis, or to be a string analysis ID.\"",
")",
"if",
"isinstance",
"(",
"kwargs",
"[",
"\"init_from\"",
"]",
",",
"basestring",
")",
":",
"dx_hash",
"[",
"\"initializeFrom\"",
"]",
"=",
"{",
"\"id\"",
":",
"kwargs",
"[",
"\"init_from\"",
"]",
"}",
"else",
":",
"dx_hash",
"[",
"\"initializeFrom\"",
"]",
"=",
"{",
"\"id\"",
":",
"kwargs",
"[",
"\"init_from\"",
"]",
".",
"get_id",
"(",
")",
"}",
"if",
"isinstance",
"(",
"kwargs",
"[",
"\"init_from\"",
"]",
",",
"DXWorkflow",
")",
":",
"dx_hash",
"[",
"\"initializeFrom\"",
"]",
"[",
"\"project\"",
"]",
"=",
"kwargs",
"[",
"\"init_from\"",
"]",
".",
"get_proj_id",
"(",
")",
"del",
"kwargs",
"[",
"\"init_from\"",
"]",
"_set_dx_hash",
"(",
"kwargs",
",",
"dx_hash",
",",
"\"title\"",
")",
"_set_dx_hash",
"(",
"kwargs",
",",
"dx_hash",
",",
"\"summary\"",
")",
"_set_dx_hash",
"(",
"kwargs",
",",
"dx_hash",
",",
"\"description\"",
")",
"_set_dx_hash",
"(",
"kwargs",
",",
"dx_hash",
",",
"\"output_folder\"",
",",
"\"outputFolder\"",
")",
"_set_dx_hash",
"(",
"kwargs",
",",
"dx_hash",
",",
"\"stages\"",
")",
"_set_dx_hash",
"(",
"kwargs",
",",
"dx_hash",
",",
"\"workflow_inputs\"",
",",
"\"inputs\"",
")",
"_set_dx_hash",
"(",
"kwargs",
",",
"dx_hash",
",",
"\"workflow_outputs\"",
",",
"\"outputs\"",
")",
"resp",
"=",
"dxpy",
".",
"api",
".",
"workflow_new",
"(",
"dx_hash",
",",
"*",
"*",
"kwargs",
")",
"self",
".",
"set_ids",
"(",
"resp",
"[",
"\"id\"",
"]",
",",
"dx_hash",
"[",
"\"project\"",
"]",
")"
] |
:param dx_hash: Standard hash populated in :func:`dxpy.bindings.DXDataObject.new()` containing attributes common to all data object classes.
:type dx_hash: dict
:param title: Workflow title (optional)
:type title: string
:param summary: Workflow summary (optional)
:type summary: string
:param description: Workflow description (optional)
:type description: string
:param output_folder: Default output folder of the workflow (optional)
:type output_folder: string
:param stages: Stages of the workflow (optional)
:type stages: array of dictionaries
:param workflow_inputs: Workflow-level input specification (optional)
:type workflow_inputs: array of dictionaries
:param workflow_outputs: Workflow-level output specification (optional)
:type workflow_outputs: array of dictionaries
:param init_from: Another analysis workflow object handler or and analysis (string or handler) from which to initialize the metadata (optional)
:type init_from: :class:`~dxpy.bindings.dxworkflow.DXWorkflow`, :class:`~dxpy.bindings.dxanalysis.DXAnalysis`, or string (for analysis IDs only)
Create a new remote workflow object.
|
[
":",
"param",
"dx_hash",
":",
"Standard",
"hash",
"populated",
"in",
":",
"func",
":",
"dxpy",
".",
"bindings",
".",
"DXDataObject",
".",
"new",
"()",
"containing",
"attributes",
"common",
"to",
"all",
"data",
"object",
"classes",
".",
":",
"type",
"dx_hash",
":",
"dict",
":",
"param",
"title",
":",
"Workflow",
"title",
"(",
"optional",
")",
":",
"type",
"title",
":",
"string",
":",
"param",
"summary",
":",
"Workflow",
"summary",
"(",
"optional",
")",
":",
"type",
"summary",
":",
"string",
":",
"param",
"description",
":",
"Workflow",
"description",
"(",
"optional",
")",
":",
"type",
"description",
":",
"string",
":",
"param",
"output_folder",
":",
"Default",
"output",
"folder",
"of",
"the",
"workflow",
"(",
"optional",
")",
":",
"type",
"output_folder",
":",
"string",
":",
"param",
"stages",
":",
"Stages",
"of",
"the",
"workflow",
"(",
"optional",
")",
":",
"type",
"stages",
":",
"array",
"of",
"dictionaries",
":",
"param",
"workflow_inputs",
":",
"Workflow",
"-",
"level",
"input",
"specification",
"(",
"optional",
")",
":",
"type",
"workflow_inputs",
":",
"array",
"of",
"dictionaries",
":",
"param",
"workflow_outputs",
":",
"Workflow",
"-",
"level",
"output",
"specification",
"(",
"optional",
")",
":",
"type",
"workflow_outputs",
":",
"array",
"of",
"dictionaries",
":",
"param",
"init_from",
":",
"Another",
"analysis",
"workflow",
"object",
"handler",
"or",
"and",
"analysis",
"(",
"string",
"or",
"handler",
")",
"from",
"which",
"to",
"initialize",
"the",
"metadata",
"(",
"optional",
")",
":",
"type",
"init_from",
":",
":",
"class",
":",
"~dxpy",
".",
"bindings",
".",
"dxworkflow",
".",
"DXWorkflow",
":",
"class",
":",
"~dxpy",
".",
"bindings",
".",
"dxanalysis",
".",
"DXAnalysis",
"or",
"string",
"(",
"for",
"analysis",
"IDs",
"only",
")"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxworkflow.py#L94-L148
|
train
|
Create a new remote workflow 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,K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aYV6U2,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) + '\157' + chr(0b110011) + chr(0b0 + 0o63) + chr(0b110010), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101110 + 0o1) + '\063' + chr(55), ord("\x08")), nzTpIcepk0o8(chr(0b11 + 0o55) + chr(7347 - 7236) + '\063' + '\x34', 0o10), nzTpIcepk0o8('\060' + '\157' + chr(2181 - 2130) + '\063' + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(2256 - 2205) + '\067' + chr(0b10011 + 0o41), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(49) + chr(51) + chr(0b1010 + 0o47), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110100) + '\060', 0b1000), nzTpIcepk0o8('\x30' + chr(0b100111 + 0o110) + '\x33' + chr(0b110101) + '\x30', 43438 - 43430), nzTpIcepk0o8(chr(48) + '\157' + chr(51) + chr(0b110011) + chr(53), ord("\x08")), nzTpIcepk0o8(chr(2014 - 1966) + '\157' + chr(0b110011) + '\064' + chr(0b110011), 26633 - 26625), nzTpIcepk0o8('\x30' + '\x6f' + chr(50) + chr(0b1100 + 0o45) + chr(50), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110011) + chr(174 - 123) + chr(0b110101 + 0o0), 8), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b0 + 0o62) + '\066' + chr(53), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b111000 + 0o67) + chr(0b11111 + 0o24) + '\x32' + chr(0b100110 + 0o15), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b100110 + 0o111) + chr(0b110001) + '\x35' + chr(0b110111), 45077 - 45069), nzTpIcepk0o8(chr(1571 - 1523) + chr(3015 - 2904) + chr(51) + chr(53) + chr(0b110001 + 0o4), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110001) + chr(0b110100) + '\x35', 0o10), nzTpIcepk0o8(chr(0b100111 + 0o11) + '\157' + '\x33' + chr(0b110011) + chr(0b101000 + 0o13), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101000 + 0o7) + chr(1325 - 1274) + chr(0b101 + 0o57) + chr(0b10 + 0o60), ord("\x08")), nzTpIcepk0o8('\x30' + chr(1774 - 1663) + chr(0b11 + 0o57) + '\x35' + chr(52), 0o10), nzTpIcepk0o8('\060' + chr(7354 - 7243) + chr(49) + '\066' + chr(53), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + '\x33' + chr(0b1000 + 0o52) + chr(0b101101 + 0o7), 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(0b11 + 0o56) + '\065' + '\066', 0o10), nzTpIcepk0o8(chr(0b11 + 0o55) + '\157' + chr(0b110011) + '\061' + '\066', 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110001) + chr(2204 - 2155) + '\x32', ord("\x08")), nzTpIcepk0o8(chr(0b110 + 0o52) + '\x6f' + '\x32' + '\x36' + chr(1109 - 1060), 57140 - 57132), nzTpIcepk0o8(chr(48) + chr(11698 - 11587) + chr(54) + chr(49), ord("\x08")), nzTpIcepk0o8(chr(0b11111 + 0o21) + chr(0b1011101 + 0o22) + '\x31' + '\x31' + '\x36', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x31' + chr(0b11110 + 0o22) + chr(0b11 + 0o62), 35964 - 35956), nzTpIcepk0o8('\060' + chr(7562 - 7451) + '\x36' + chr(0b110100), 0b1000), nzTpIcepk0o8('\060' + chr(111) + '\062' + chr(0b110 + 0o55) + '\x33', ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110001) + '\063' + chr(114 - 59), ord("\x08")), nzTpIcepk0o8(chr(0b100011 + 0o15) + chr(0b11001 + 0o126) + '\x31' + '\x31' + chr(78 - 25), 0o10), nzTpIcepk0o8(chr(659 - 611) + '\x6f' + chr(50) + chr(0b0 + 0o64) + chr(54), 56713 - 56705), nzTpIcepk0o8(chr(2121 - 2073) + '\x6f' + '\x32' + chr(1660 - 1609) + chr(0b110101), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + '\066' + '\x30', 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\063' + chr(0b101011 + 0o6) + '\064', 0b1000), nzTpIcepk0o8(chr(966 - 918) + '\157' + chr(51) + chr(0b10111 + 0o31) + '\x37', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b100001 + 0o21) + chr(54) + chr(49), 8), nzTpIcepk0o8('\060' + chr(7244 - 7133) + '\x33' + '\x30' + chr(54), 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(2200 - 2152) + '\157' + '\x35' + chr(0b110000), 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xf4'), chr(4175 - 4075) + chr(0b1100101) + chr(9565 - 9466) + '\157' + chr(3823 - 3723) + '\x65')('\165' + '\x74' + '\x66' + chr(827 - 782) + chr(0b101101 + 0o13)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def i9ryDsDa9wkg(hXMPsSrOQzbh, uLIGGIY0qRFO, **q5n0sHDDTy90):
def GEHdMDUTmZWf(q5n0sHDDTy90, dXyKY097TfGi, QYodcsDtoGq7, VzXAKXWSgBLn=None):
VzXAKXWSgBLn = QYodcsDtoGq7 if VzXAKXWSgBLn is None else VzXAKXWSgBLn
if QYodcsDtoGq7 in q5n0sHDDTy90:
if q5n0sHDDTy90[QYodcsDtoGq7] is not None:
dXyKY097TfGi[VzXAKXWSgBLn] = q5n0sHDDTy90[QYodcsDtoGq7]
del q5n0sHDDTy90[QYodcsDtoGq7]
if roI3spqORKae(ES5oEprVxulp(b'\xb3qu\xad\xa3?R\x87\xb0'), chr(0b1100001 + 0o3) + chr(4113 - 4012) + chr(0b1100011) + '\x6f' + chr(0b101010 + 0o72) + chr(0b1000000 + 0o45))('\165' + chr(0b1101 + 0o147) + chr(4570 - 4468) + chr(0b101101) + chr(0b10001 + 0o47)) in q5n0sHDDTy90:
if q5n0sHDDTy90[roI3spqORKae(ES5oEprVxulp(b'\xb3qu\xad\xa3?R\x87\xb0'), chr(0b11010 + 0o112) + chr(8860 - 8759) + chr(0b1000101 + 0o36) + '\x6f' + chr(100) + chr(0b110011 + 0o62))('\x75' + chr(0b1110100) + chr(102) + '\x2d' + chr(0b11010 + 0o36))] is not None:
if not (suIjIS24Zkqw(q5n0sHDDTy90[roI3spqORKae(ES5oEprVxulp(b'\xb3qu\xad\xa3?R\x87\xb0'), chr(100) + chr(0b1100101) + '\x63' + chr(0b1101111) + chr(100) + chr(3727 - 3626))(chr(5788 - 5671) + '\164' + '\146' + chr(45) + '\x38')], (nVNunTRQVGGy, qPdD84w2KJu4)) or (suIjIS24Zkqw(q5n0sHDDTy90[roI3spqORKae(ES5oEprVxulp(b'\xb3qu\xad\xa3?R\x87\xb0'), chr(8134 - 8034) + '\145' + chr(99) + chr(111) + '\144' + chr(101))(chr(496 - 379) + chr(0b10100 + 0o140) + chr(6851 - 6749) + chr(0b10110 + 0o27) + chr(2965 - 2909))], JaQstSroDWOP) and roI3spqORKae(aoTc4YA2bs2R.compile(roI3spqORKae(ES5oEprVxulp(b'\x84~r\xb8\x90 S\x81\xae\xce\xd1\xed\x98\xea.\xc0?\xba\xcf\xd6(\xaf\\\xfa7\x95'), chr(0b1100100) + chr(101) + chr(5573 - 5474) + '\157' + chr(0b1100100 + 0o0) + chr(0b1100101))('\165' + chr(0b1001100 + 0o50) + chr(0b1100110) + chr(540 - 495) + '\070')), roI3spqORKae(ES5oEprVxulp(b'\xb2t%\x96\x953M\x81\x9e\xbc\xf0\x9c'), '\144' + chr(0b1100101) + chr(99) + chr(111) + chr(0b1100100) + '\x65')(chr(4732 - 4615) + '\x74' + chr(0b1011101 + 0o11) + chr(45) + chr(2459 - 2403)))(q5n0sHDDTy90[roI3spqORKae(ES5oEprVxulp(b'\xb3qu\xad\xa3?R\x87\xb0'), '\x64' + chr(7660 - 7559) + chr(0b11010 + 0o111) + chr(0b1101111) + chr(0b1000101 + 0o37) + chr(4470 - 4369))(chr(117) + chr(116) + chr(3061 - 2959) + chr(0b101101) + chr(56))]))):
raise JPU16lJ2koBU(roI3spqORKae(ES5oEprVxulp(b'\x9fgl\xbc\x9f-E\x8c\xfd\x8a\xe4\xb4\xc1\x8c\t\x9f\n\xb6\xc2\xd8\x1a\xf4\x0c\xabj\xd0_n,Z\xe8+,\xc8\xfeU\xec\xa8\xd7\xe6\x9eGK\xb6\x8e2F\x84\xb2\x94\xaa\xb2\xc7\xf3+\xb5$\xb5\x83\xc0\x0c\xa7\x07\xbdf\x91^<e@\xf4\x7f/\xc3\xbdQ\xec\xb4\xc5\xb4\xb3q{\xf9\x9d7A\x84\xa4\x90\xe3\xae\x95\x9a+\xc3'), chr(0b1100100) + chr(0b1100101) + chr(0b1100011) + chr(0b101000 + 0o107) + chr(100) + '\x65')(chr(0b1101001 + 0o14) + chr(116) + chr(0b1100110) + chr(45) + '\x38'))
if suIjIS24Zkqw(q5n0sHDDTy90[roI3spqORKae(ES5oEprVxulp(b'\xb3qu\xad\xa3?R\x87\xb0'), '\x64' + '\145' + chr(0b1100011) + chr(11727 - 11616) + chr(0b1100100) + '\145')(chr(3179 - 3062) + chr(116) + '\x66' + chr(0b101101) + '\x38')], JaQstSroDWOP):
uLIGGIY0qRFO[roI3spqORKae(ES5oEprVxulp(b'\xb3qu\xad\x958L\x81\xa7\x86\xcc\xaf\xda\xbe'), chr(0b1100001 + 0o3) + '\x65' + chr(6198 - 6099) + chr(0b1101 + 0o142) + chr(0b11011 + 0o111) + chr(0b1100101))(chr(0b100101 + 0o120) + '\x74' + '\146' + chr(1202 - 1157) + chr(56))] = {roI3spqORKae(ES5oEprVxulp(b'\xb3{'), chr(0b1100100) + chr(0b1100101) + chr(0b1001110 + 0o25) + chr(111) + chr(1516 - 1416) + chr(0b1100101))(chr(117) + '\164' + '\146' + '\055' + chr(0b111000)): q5n0sHDDTy90[roI3spqORKae(ES5oEprVxulp(b'\xb3qu\xad\xa3?R\x87\xb0'), '\x64' + chr(7156 - 7055) + chr(99) + chr(0b111101 + 0o62) + chr(0b1100100) + chr(101))(chr(0b100100 + 0o121) + '\164' + chr(0b111110 + 0o50) + chr(0b101101) + chr(0b111000))]}
else:
uLIGGIY0qRFO[roI3spqORKae(ES5oEprVxulp(b'\xb3qu\xad\x958L\x81\xa7\x86\xcc\xaf\xda\xbe'), chr(2914 - 2814) + chr(101) + chr(893 - 794) + chr(0b1101111) + chr(100) + '\x65')(chr(10643 - 10526) + '\x74' + chr(1471 - 1369) + chr(45) + chr(298 - 242))] = {roI3spqORKae(ES5oEprVxulp(b'\xb3{'), chr(0b1100100) + chr(8803 - 8702) + chr(99) + '\x6f' + chr(6104 - 6004) + '\145')(chr(0b1110101) + chr(1492 - 1376) + chr(102) + chr(0b100011 + 0o12) + '\070'): q5n0sHDDTy90[roI3spqORKae(ES5oEprVxulp(b'\xb3qu\xad\xa3?R\x87\xb0'), chr(0b1100100) + chr(101) + chr(99) + chr(0b1001001 + 0o46) + '\144' + '\145')('\165' + '\x74' + chr(0b10001 + 0o125) + chr(592 - 547) + chr(56))].nkTncJcFPliW()}
if suIjIS24Zkqw(q5n0sHDDTy90[roI3spqORKae(ES5oEprVxulp(b'\xb3qu\xad\xa3?R\x87\xb0'), chr(0b110010 + 0o62) + chr(0b1100101) + '\x63' + chr(111) + chr(0b1011011 + 0o11) + chr(0b1100010 + 0o3))(chr(117) + '\x74' + chr(5217 - 5115) + '\055' + chr(0b111000))], nVNunTRQVGGy):
uLIGGIY0qRFO[roI3spqORKae(ES5oEprVxulp(b'\xb3qu\xad\x958L\x81\xa7\x86\xcc\xaf\xda\xbe'), chr(6589 - 6489) + '\x65' + '\x63' + chr(0b11001 + 0o126) + chr(0b1011000 + 0o14) + '\x65')(chr(10045 - 9928) + chr(116) + chr(102) + chr(614 - 569) + '\070')][roI3spqORKae(ES5oEprVxulp(b'\xaams\xb3\x99:T'), chr(0b1100100) + chr(0b1010101 + 0o20) + '\x63' + chr(111) + chr(7848 - 7748) + '\x65')(chr(117) + '\164' + '\x66' + '\055' + chr(0b111000))] = q5n0sHDDTy90[roI3spqORKae(ES5oEprVxulp(b'\xb3qu\xad\xa3?R\x87\xb0'), chr(0b1100100) + '\145' + chr(0b101101 + 0o66) + chr(0b101111 + 0o100) + '\144' + chr(0b1100101))('\165' + '\x74' + '\x66' + '\x2d' + chr(0b110 + 0o62))].get_proj_id()
del q5n0sHDDTy90[roI3spqORKae(ES5oEprVxulp(b'\xb3qu\xad\xa3?R\x87\xb0'), chr(0b111011 + 0o51) + chr(0b110110 + 0o57) + chr(0b1100011) + chr(0b1101111) + chr(0b1100100) + chr(0b1100101))(chr(117) + chr(0b1110100) + chr(5897 - 5795) + chr(45) + chr(0b111000))]
GEHdMDUTmZWf(q5n0sHDDTy90, uLIGGIY0qRFO, roI3spqORKae(ES5oEprVxulp(b'\xaevh\xb5\x99'), chr(100) + chr(0b1100101) + '\x63' + '\157' + chr(6340 - 6240) + chr(101))(chr(117) + chr(0b1011000 + 0o34) + chr(8484 - 8382) + chr(45) + chr(0b100001 + 0o27)))
GEHdMDUTmZWf(q5n0sHDDTy90, uLIGGIY0qRFO, roI3spqORKae(ES5oEprVxulp(b'\xa9jq\xb4\x9d+Y'), chr(0b1001100 + 0o30) + chr(0b1100100 + 0o1) + '\x63' + chr(0b1101111) + chr(100) + chr(7946 - 7845))('\x75' + chr(10426 - 10310) + '\146' + '\x2d' + chr(56)))
GEHdMDUTmZWf(q5n0sHDDTy90, uLIGGIY0qRFO, roI3spqORKae(ES5oEprVxulp(b'\xbezo\xba\x8e0P\x9c\xb4\x8c\xe4'), chr(0b1100100) + chr(0b1001111 + 0o26) + '\143' + chr(0b1101111) + '\144' + '\x65')(chr(117) + '\x74' + chr(0b1100110) + chr(0b101101) + chr(0b111000)))
GEHdMDUTmZWf(q5n0sHDDTy90, uLIGGIY0qRFO, roI3spqORKae(ES5oEprVxulp(b'\xb5jh\xa9\x89-\x7f\x8e\xb2\x8f\xee\xb8\xc7'), chr(0b101100 + 0o70) + chr(101) + chr(99) + chr(111) + '\144' + chr(101))(chr(4949 - 4832) + '\164' + '\146' + chr(45) + chr(0b111000 + 0o0)), roI3spqORKae(ES5oEprVxulp(b'\xb5jh\xa9\x89-f\x87\xb1\x87\xef\xaf'), '\x64' + '\x65' + chr(0b1100011) + chr(5333 - 5222) + chr(0b1100100) + '\145')(chr(10722 - 10605) + chr(11935 - 11819) + chr(0b10011 + 0o123) + '\055' + chr(0b11010 + 0o36)))
GEHdMDUTmZWf(q5n0sHDDTy90, uLIGGIY0qRFO, roI3spqORKae(ES5oEprVxulp(b'\xa9k}\xbe\x99*'), '\144' + '\145' + chr(99) + chr(0b1101111) + '\x64' + chr(10154 - 10053))(chr(5419 - 5302) + chr(0b111010 + 0o72) + chr(102) + '\055' + chr(1053 - 997)))
GEHdMDUTmZWf(q5n0sHDDTy90, uLIGGIY0qRFO, roI3spqORKae(ES5oEprVxulp(b'\xadpn\xb2\x9a5O\x9f\x82\x8a\xe4\xad\xc0\xa7\x1c'), chr(0b10011 + 0o121) + '\145' + chr(0b1 + 0o142) + chr(10272 - 10161) + chr(0b1100100) + chr(101))('\165' + chr(0b10110 + 0o136) + chr(102) + chr(1702 - 1657) + '\070'), roI3spqORKae(ES5oEprVxulp(b'\xb3ql\xac\x88*'), chr(0b101001 + 0o73) + chr(101) + chr(99) + '\x6f' + chr(0b1100100) + chr(101))(chr(6212 - 6095) + chr(116) + chr(102) + chr(0b10110 + 0o27) + '\x38'))
GEHdMDUTmZWf(q5n0sHDDTy90, uLIGGIY0qRFO, roI3spqORKae(ES5oEprVxulp(b'\xadpn\xb2\x9a5O\x9f\x82\x8c\xff\xa9\xc5\xa6\x1b\x9e'), '\x64' + '\145' + chr(99) + '\x6f' + '\144' + chr(5026 - 4925))(chr(0b11110 + 0o127) + chr(4207 - 4091) + chr(0b11011 + 0o113) + chr(0b101101) + chr(0b11011 + 0o35)), roI3spqORKae(ES5oEprVxulp(b'\xb5jh\xa9\x89-S'), chr(0b1001100 + 0o30) + '\145' + chr(0b100010 + 0o101) + chr(0b1101111) + chr(0b101001 + 0o73) + '\145')(chr(0b100010 + 0o123) + '\x74' + chr(102) + chr(349 - 304) + chr(56)))
xxhWttsUDUCM = SsdNdRxXOwsF.api.workflow_new(uLIGGIY0qRFO, **q5n0sHDDTy90)
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xa9zh\x86\x95=S'), chr(6531 - 6431) + chr(101) + chr(0b110101 + 0o56) + chr(8604 - 8493) + chr(0b1001 + 0o133) + '\x65')(chr(0b1110101) + chr(0b1110100) + '\146' + chr(1230 - 1185) + chr(56)))(xxhWttsUDUCM[roI3spqORKae(ES5oEprVxulp(b'\xb3{'), '\144' + chr(7628 - 7527) + chr(0b1100011) + '\x6f' + chr(8176 - 8076) + chr(101))('\x75' + chr(0b1011000 + 0o34) + '\146' + chr(0b1110 + 0o37) + '\070')], uLIGGIY0qRFO[roI3spqORKae(ES5oEprVxulp(b'\xaams\xb3\x99:T'), chr(0b1001011 + 0o31) + chr(101) + chr(5410 - 5311) + '\x6f' + chr(0b11000 + 0o114) + chr(10179 - 10078))(chr(0b1110011 + 0o2) + chr(0b1110100) + chr(0b1100110) + chr(498 - 453) + '\070')])
|
dnanexus/dx-toolkit
|
src/python/dxpy/bindings/dxworkflow.py
|
DXWorkflow._get_stage_id
|
def _get_stage_id(self, stage):
'''
:param stage: A stage ID, name, or index (stage index is the number n for the nth stage, starting from 0; can be provided as an int or a string)
:type stage: int or string
:returns: The stage ID (this is a no-op if it was already a stage ID)
:raises: :class:`~dxpy.exceptions.DXError` if *stage* could not be parsed, resolved to a stage ID, or it could not be found in the workflow
'''
# first, if it is a string, see if it is an integer
if isinstance(stage, basestring):
try:
stage = int(stage)
except:
# we'll try parsing it as a string later
pass
if not isinstance(stage, basestring):
# Try to parse as stage index; ensure that if it's not a
# string that it is an integer at this point.
try:
stage_index = int(stage)
except:
raise DXError('DXWorkflow: the given stage identifier was neither a string stage ID nor an integer index')
if stage_index < 0 or stage_index >= len(self.stages):
raise DXError('DXWorkflow: the workflow contains ' + str(len(self.stages)) + \
' stage(s), and the numerical value of the given stage identifier is out of range')
return self.stages[stage_index].get("id")
if re.compile('^([a-zA-Z_]|stage-)[0-9a-zA-Z_]*$').match(stage) is not None:
# Check if there exists a stage with this stage id
stage_id_exists = any([stg['id'] for stg in self.stages if stg.get('id') == stage])
if stage_id_exists:
return stage
# A stage with the provided ID can't be found in the workflow, so look for it as a name
stage_ids_matching_name = [stg['id'] for stg in self.stages if stg.get('name') == stage]
if len(stage_ids_matching_name) == 0:
raise DXError('DXWorkflow: the given stage identifier ' + stage + ' could not be found as a stage ID nor as a stage name')
elif len(stage_ids_matching_name) > 1:
raise DXError('DXWorkflow: more than one workflow stage was found to have the name "' + stage + '"')
else:
return stage_ids_matching_name[0]
|
python
|
def _get_stage_id(self, stage):
'''
:param stage: A stage ID, name, or index (stage index is the number n for the nth stage, starting from 0; can be provided as an int or a string)
:type stage: int or string
:returns: The stage ID (this is a no-op if it was already a stage ID)
:raises: :class:`~dxpy.exceptions.DXError` if *stage* could not be parsed, resolved to a stage ID, or it could not be found in the workflow
'''
# first, if it is a string, see if it is an integer
if isinstance(stage, basestring):
try:
stage = int(stage)
except:
# we'll try parsing it as a string later
pass
if not isinstance(stage, basestring):
# Try to parse as stage index; ensure that if it's not a
# string that it is an integer at this point.
try:
stage_index = int(stage)
except:
raise DXError('DXWorkflow: the given stage identifier was neither a string stage ID nor an integer index')
if stage_index < 0 or stage_index >= len(self.stages):
raise DXError('DXWorkflow: the workflow contains ' + str(len(self.stages)) + \
' stage(s), and the numerical value of the given stage identifier is out of range')
return self.stages[stage_index].get("id")
if re.compile('^([a-zA-Z_]|stage-)[0-9a-zA-Z_]*$').match(stage) is not None:
# Check if there exists a stage with this stage id
stage_id_exists = any([stg['id'] for stg in self.stages if stg.get('id') == stage])
if stage_id_exists:
return stage
# A stage with the provided ID can't be found in the workflow, so look for it as a name
stage_ids_matching_name = [stg['id'] for stg in self.stages if stg.get('name') == stage]
if len(stage_ids_matching_name) == 0:
raise DXError('DXWorkflow: the given stage identifier ' + stage + ' could not be found as a stage ID nor as a stage name')
elif len(stage_ids_matching_name) > 1:
raise DXError('DXWorkflow: more than one workflow stage was found to have the name "' + stage + '"')
else:
return stage_ids_matching_name[0]
|
[
"def",
"_get_stage_id",
"(",
"self",
",",
"stage",
")",
":",
"# first, if it is a string, see if it is an integer",
"if",
"isinstance",
"(",
"stage",
",",
"basestring",
")",
":",
"try",
":",
"stage",
"=",
"int",
"(",
"stage",
")",
"except",
":",
"# we'll try parsing it as a string later",
"pass",
"if",
"not",
"isinstance",
"(",
"stage",
",",
"basestring",
")",
":",
"# Try to parse as stage index; ensure that if it's not a",
"# string that it is an integer at this point.",
"try",
":",
"stage_index",
"=",
"int",
"(",
"stage",
")",
"except",
":",
"raise",
"DXError",
"(",
"'DXWorkflow: the given stage identifier was neither a string stage ID nor an integer index'",
")",
"if",
"stage_index",
"<",
"0",
"or",
"stage_index",
">=",
"len",
"(",
"self",
".",
"stages",
")",
":",
"raise",
"DXError",
"(",
"'DXWorkflow: the workflow contains '",
"+",
"str",
"(",
"len",
"(",
"self",
".",
"stages",
")",
")",
"+",
"' stage(s), and the numerical value of the given stage identifier is out of range'",
")",
"return",
"self",
".",
"stages",
"[",
"stage_index",
"]",
".",
"get",
"(",
"\"id\"",
")",
"if",
"re",
".",
"compile",
"(",
"'^([a-zA-Z_]|stage-)[0-9a-zA-Z_]*$'",
")",
".",
"match",
"(",
"stage",
")",
"is",
"not",
"None",
":",
"# Check if there exists a stage with this stage id",
"stage_id_exists",
"=",
"any",
"(",
"[",
"stg",
"[",
"'id'",
"]",
"for",
"stg",
"in",
"self",
".",
"stages",
"if",
"stg",
".",
"get",
"(",
"'id'",
")",
"==",
"stage",
"]",
")",
"if",
"stage_id_exists",
":",
"return",
"stage",
"# A stage with the provided ID can't be found in the workflow, so look for it as a name",
"stage_ids_matching_name",
"=",
"[",
"stg",
"[",
"'id'",
"]",
"for",
"stg",
"in",
"self",
".",
"stages",
"if",
"stg",
".",
"get",
"(",
"'name'",
")",
"==",
"stage",
"]",
"if",
"len",
"(",
"stage_ids_matching_name",
")",
"==",
"0",
":",
"raise",
"DXError",
"(",
"'DXWorkflow: the given stage identifier '",
"+",
"stage",
"+",
"' could not be found as a stage ID nor as a stage name'",
")",
"elif",
"len",
"(",
"stage_ids_matching_name",
")",
">",
"1",
":",
"raise",
"DXError",
"(",
"'DXWorkflow: more than one workflow stage was found to have the name \"'",
"+",
"stage",
"+",
"'\"'",
")",
"else",
":",
"return",
"stage_ids_matching_name",
"[",
"0",
"]"
] |
:param stage: A stage ID, name, or index (stage index is the number n for the nth stage, starting from 0; can be provided as an int or a string)
:type stage: int or string
:returns: The stage ID (this is a no-op if it was already a stage ID)
:raises: :class:`~dxpy.exceptions.DXError` if *stage* could not be parsed, resolved to a stage ID, or it could not be found in the workflow
|
[
":",
"param",
"stage",
":",
"A",
"stage",
"ID",
"name",
"or",
"index",
"(",
"stage",
"index",
"is",
"the",
"number",
"n",
"for",
"the",
"nth",
"stage",
"starting",
"from",
"0",
";",
"can",
"be",
"provided",
"as",
"an",
"int",
"or",
"a",
"string",
")",
":",
"type",
"stage",
":",
"int",
"or",
"string",
":",
"returns",
":",
"The",
"stage",
"ID",
"(",
"this",
"is",
"a",
"no",
"-",
"op",
"if",
"it",
"was",
"already",
"a",
"stage",
"ID",
")",
":",
"raises",
":",
":",
"class",
":",
"~dxpy",
".",
"exceptions",
".",
"DXError",
"if",
"*",
"stage",
"*",
"could",
"not",
"be",
"parsed",
"resolved",
"to",
"a",
"stage",
"ID",
"or",
"it",
"could",
"not",
"be",
"found",
"in",
"the",
"workflow"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxworkflow.py#L156-L196
|
train
|
Get the stage ID from the given stage.
|
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,Wa8JM2k53wi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nU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__
ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(48) + '\157' + chr(0b11010 + 0o31) + chr(0b110101) + chr(1801 - 1749), 0b1000), nzTpIcepk0o8('\x30' + chr(0b10001 + 0o136) + '\x33' + chr(0b110110) + chr(0b1111 + 0o47), 0b1000), nzTpIcepk0o8(chr(1279 - 1231) + chr(8763 - 8652) + chr(51) + '\x30' + '\x31', 0b1000), nzTpIcepk0o8(chr(0b101101 + 0o3) + '\157' + chr(0b10011 + 0o36) + chr(0b100110 + 0o14) + chr(1563 - 1514), 0b1000), nzTpIcepk0o8(chr(787 - 739) + chr(0b11 + 0o154) + '\063' + chr(0b11011 + 0o25) + chr(0b10101 + 0o33), 19472 - 19464), nzTpIcepk0o8(chr(48) + '\x6f' + chr(225 - 170) + '\061', 38797 - 38789), nzTpIcepk0o8(chr(1893 - 1845) + '\x6f' + chr(329 - 280) + '\x32' + chr(53), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x31' + chr(1864 - 1810) + chr(0b110010), 0o10), nzTpIcepk0o8('\060' + chr(0b11010 + 0o125) + chr(51) + '\061' + '\064', 55405 - 55397), nzTpIcepk0o8('\060' + '\157' + '\x31' + '\x34' + chr(0b10100 + 0o37), 24262 - 24254), nzTpIcepk0o8('\060' + chr(0b1010101 + 0o32) + '\061' + chr(113 - 65) + '\x36', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\065' + chr(55), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(53) + '\061', ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110111) + chr(0b110001), 8), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\062' + chr(0b101000 + 0o10) + '\063', 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x36' + chr(51), 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110010) + chr(53) + chr(0b11101 + 0o31), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b100000 + 0o23) + '\x31' + chr(1438 - 1388), ord("\x08")), nzTpIcepk0o8(chr(737 - 689) + '\x6f' + '\x33' + chr(0b100000 + 0o26) + chr(48), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1110 + 0o141) + chr(1771 - 1721) + '\x32' + '\x34', 44840 - 44832), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\063' + '\066' + chr(0b110011), 0o10), nzTpIcepk0o8(chr(1491 - 1443) + '\157' + chr(838 - 789) + chr(49) + chr(0b110101), 0o10), nzTpIcepk0o8(chr(0b101011 + 0o5) + chr(0b1101111) + chr(2117 - 2066) + chr(0b101101 + 0o5) + chr(638 - 586), 0b1000), nzTpIcepk0o8(chr(385 - 337) + '\x6f' + chr(1771 - 1721) + chr(0b10000 + 0o41) + chr(1667 - 1617), 0b1000), nzTpIcepk0o8(chr(239 - 191) + chr(0b1101111) + '\061' + chr(0b110110) + chr(0b0 + 0o61), 2665 - 2657), nzTpIcepk0o8(chr(1194 - 1146) + '\157' + '\x31' + chr(0b0 + 0o66) + chr(54), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(995 - 945) + '\x30' + '\x31', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1000000 + 0o57) + chr(0b10101 + 0o34) + chr(55), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(53) + chr(0b100010 + 0o17), 8), nzTpIcepk0o8(chr(0b110000) + chr(162 - 51) + chr(0b110010) + chr(1924 - 1869) + '\065', 0o10), nzTpIcepk0o8(chr(460 - 412) + chr(0b110111 + 0o70) + chr(0b11010 + 0o34) + chr(0b110010), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + '\062' + chr(52) + chr(1796 - 1747), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\062' + chr(51) + chr(48), 48917 - 48909), nzTpIcepk0o8('\x30' + '\x6f' + '\062' + chr(0b101101 + 0o5) + chr(0b110111), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110010) + '\060' + '\x30', 0o10), nzTpIcepk0o8('\x30' + chr(0b100000 + 0o117) + chr(86 - 36) + '\062' + chr(0b10101 + 0o34), ord("\x08")), nzTpIcepk0o8(chr(0b100 + 0o54) + chr(0b1101111) + chr(51) + chr(53) + chr(0b11100 + 0o27), ord("\x08")), nzTpIcepk0o8(chr(658 - 610) + chr(10209 - 10098) + '\x33' + '\x33' + chr(0b110010), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b10001 + 0o41) + '\x37' + chr(48), 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + '\063' + '\061' + chr(1904 - 1854), 8)][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + chr(0b1101111) + '\065' + '\x30', ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xc2'), '\x64' + chr(6530 - 6429) + '\143' + chr(111) + chr(5901 - 5801) + chr(0b11110 + 0o107))(chr(8315 - 8198) + chr(0b1110100) + '\146' + chr(1002 - 957) + chr(56)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def x0s9Qj6mDm_7(hXMPsSrOQzbh, zjGR30ByKU96):
if suIjIS24Zkqw(zjGR30ByKU96, JaQstSroDWOP):
try:
zjGR30ByKU96 = nzTpIcepk0o8(zjGR30ByKU96)
except UtiWT6f6p9yZ:
pass
if not suIjIS24Zkqw(zjGR30ByKU96, JaQstSroDWOP):
try:
ArISqT17crsL = nzTpIcepk0o8(zjGR30ByKU96)
except UtiWT6f6p9yZ:
raise JPU16lJ2koBU(roI3spqORKae(ES5oEprVxulp(b'\xa8\xae\x96>\xb2R3\x1e\xa3\x14|\x0f]Q\xe6\x13\xc9\xa3\x86\xf1\x9dm\xa7\xfe\x10\x11\xe4/@\xd9W\xcf\xec\xfe\xe6\xf8\x8e\xa8\x98\xbd\x8d\x85\xe1?\xa5P!\x1a\xa9\x11fN\tJ\xf7A\xc7\xa4\x97\xb4\x809\xb5\xed\x14V\xc8K\t\xd3]\xd3\xb8\xf6\xee\xb1\x82\xb4\xcc\xaf\x8b\x93\xb3q\xa9W1\x17\xb4'), chr(1379 - 1279) + chr(101) + chr(0b1100011) + '\157' + chr(0b111100 + 0o50) + chr(0b111101 + 0o50))(chr(0b1110101) + chr(116) + chr(0b1100110) + chr(45) + '\x38'))
if ArISqT17crsL < nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b1010 + 0o46), 0o10) or ArISqT17crsL >= ftfygxgFas5X(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x9f\x82\xa06\xa5J'), chr(100) + chr(101) + '\143' + chr(0b1000010 + 0o55) + chr(711 - 611) + '\145')(chr(4419 - 4302) + '\164' + chr(102) + '\055' + chr(2822 - 2766)))):
raise JPU16lJ2koBU(roI3spqORKae(ES5oEprVxulp(b'\xa8\xae\x96>\xb2R3\x1e\xa3\x14|\x0f]Q\xe6\x13\xd9\xa5\x82\xff\x95!\xbb\xfdQ\x15\xeea]\xdc[\xcf\xeb\xb7'), chr(0b1100100) + chr(0b1100101) + '\143' + chr(0b1101111) + chr(4833 - 4733) + '\145')(chr(117) + chr(1815 - 1699) + '\x66' + '\x2d' + chr(0b11001 + 0o37)) + N9zlRy29S1SS(ftfygxgFas5X(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x9f\x82\xa06\xa5J'), chr(7530 - 7430) + '\145' + chr(6461 - 6362) + '\x6f' + chr(100) + '\x65')(chr(0b11101 + 0o130) + chr(0b1110100) + chr(0b1100110) + '\055' + chr(0b111000))))) + roI3spqORKae(ES5oEprVxulp(b"\xcc\x85\xb50\xa7\\}\x01\xe5OfNG]\xa3G\xc6\xaf\xd0\xfa\x86 \xb1\xf8\x18\x15\xe0c\t\xcbS\xcd\xed\xf2\xa0\xfe\x8d\xfa\xcc\xa2\x89\xd6\xa68\xb6\\;R\xbf\x17'HL\x19\xeaW\xcb\xa4\x84\xfd\x95$\xb1\xf8Q\x1f\xf2/F\xc8F\x81\xf7\xf1\xa0\xe3\x8a\xb4\xdf\xaf"), '\x64' + '\145' + '\143' + '\157' + chr(4881 - 4781) + chr(101))('\x75' + '\164' + '\146' + '\055' + chr(56)))
return roI3spqORKae(hXMPsSrOQzbh.stages[ArISqT17crsL], roI3spqORKae(ES5oEprVxulp(b'\xab\xa3\x8a4\xb4La\n\xad$5e'), chr(0b1100100) + chr(101) + chr(99) + chr(3246 - 3135) + chr(0b1100100) + '\x65')(chr(0b1000010 + 0o63) + '\x74' + '\x66' + '\055' + chr(0b111000)))(roI3spqORKae(ES5oEprVxulp(b'\x85\x92'), '\x64' + '\x65' + chr(0b1100011) + chr(111) + '\x64' + '\145')('\x75' + '\x74' + chr(0b1011000 + 0o16) + '\x2d' + chr(1342 - 1286)))
if roI3spqORKae(aoTc4YA2bs2R.compile(roI3spqORKae(ES5oEprVxulp(b'\xb2\xde\x9a0\xedC\x14_\x96<\x1bSZM\xe2T\xcb\xe7\xd9\xcf\xc3`\xed\xeb\\\x0c\xc0"s\xe2o\x8b\xbc'), '\144' + chr(0b1100101) + '\x63' + chr(8440 - 8329) + chr(0b1100100) + chr(0b111100 + 0o51))('\x75' + chr(0b1011001 + 0o33) + chr(0b1101 + 0o131) + chr(0b101101) + '\x38')), roI3spqORKae(ES5oEprVxulp(b'\x84\x9d\xf8\x1e\xa9S8\x1b\x8f<<n'), chr(0b1100100) + chr(0b1100101) + chr(99) + chr(3498 - 3387) + '\x64' + '\x65')('\x75' + chr(3803 - 3687) + chr(102) + chr(0b101101) + '\x38'))(zjGR30ByKU96) is not None:
_KM5Y61uhZis = VF4pKOObtlPc([xSPZoxPFaH6C[roI3spqORKae(ES5oEprVxulp(b'\x85\x92'), chr(1867 - 1767) + chr(0b111001 + 0o54) + chr(99) + chr(111) + chr(0b110001 + 0o63) + '\x65')('\165' + chr(7220 - 7104) + chr(0b1100110) + '\055' + chr(0b111000))] for xSPZoxPFaH6C in hXMPsSrOQzbh.stages if xSPZoxPFaH6C.GUKetu4xaGsJ(roI3spqORKae(ES5oEprVxulp(b'\x85\x92'), '\144' + chr(0b100111 + 0o76) + chr(0b10 + 0o141) + chr(111) + chr(4509 - 4409) + '\145')('\165' + '\x74' + chr(0b1100110) + chr(0b110 + 0o47) + chr(0b100 + 0o64))) == zjGR30ByKU96])
if _KM5Y61uhZis:
return zjGR30ByKU96
FhM95lzJDaJN = [xSPZoxPFaH6C[roI3spqORKae(ES5oEprVxulp(b'\x85\x92'), chr(0b1100100) + chr(101) + chr(0b1100011) + chr(11301 - 11190) + '\144' + chr(0b1100101))('\x75' + chr(0b1110100) + '\x66' + chr(1198 - 1153) + '\070')] for xSPZoxPFaH6C in hXMPsSrOQzbh.stages if xSPZoxPFaH6C.GUKetu4xaGsJ(roI3spqORKae(ES5oEprVxulp(b'\x82\x97\xac4'), chr(0b110011 + 0o61) + chr(101) + chr(99) + '\x6f' + chr(0b1010110 + 0o16) + '\145')('\165' + chr(0b1110100) + chr(5734 - 5632) + chr(565 - 520) + chr(0b101011 + 0o15))) == zjGR30ByKU96]
if ftfygxgFas5X(FhM95lzJDaJN) == nzTpIcepk0o8('\060' + chr(977 - 866) + chr(48), 8):
raise JPU16lJ2koBU(roI3spqORKae(ES5oEprVxulp(b'\xa8\xae\x96>\xb2R3\x1e\xa3\x14|\x0f]Q\xe6\x13\xc9\xa3\x86\xf1\x9dm\xa7\xfe\x10\x11\xe4/@\xd9W\xcf\xec\xfe\xe6\xf8\x8e\xa8\x98'), '\144' + chr(0b1010001 + 0o24) + chr(0b1100011) + chr(8779 - 8668) + '\144' + '\x65')(chr(117) + '\164' + chr(0b1100110) + '\x2d' + chr(0b0 + 0o70)) + zjGR30ByKU96 + roI3spqORKae(ES5oEprVxulp(b'\xcc\x95\xae$\xac]u\x1c\xa3\x17fML\x19\xe5\\\xdb\xa4\x94\xb4\x92>\xf4\xebQ\x05\xf5nN\xd8\x12\xe8\xdc\xb7\xee\xfe\x99\xfa\xd9\xb9\xcc\x97\xe1"\xb4X2\x17\xec\r\'BL'), chr(100) + chr(101) + chr(99) + chr(0b1011 + 0o144) + '\144' + chr(0b1100101))(chr(0b1101001 + 0o14) + chr(0b1100000 + 0o24) + '\x66' + chr(182 - 137) + chr(56)))
elif ftfygxgFas5X(FhM95lzJDaJN) > nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b111 + 0o52), 0o10):
raise JPU16lJ2koBU(roI3spqORKae(ES5oEprVxulp(b'\xa8\xae\x96>\xb2R3\x1e\xa3\x14|\x0fDV\xf1V\x8e\xbe\x98\xf5\x9dm\xbb\xe4\x14V\xf6`[\xd6T\xcd\xf7\xe0\xa0\xe2\x9f\xbb\xdf\xaf\xcc\x81\xa0"\xe0_:\x07\xa2\x07f[F\x19\xebR\xd8\xaf\xd0\xe0\x9b(\xf4\xe4\x10\x1b\xe4/\x0b'), '\x64' + '\145' + '\x63' + '\157' + chr(0b1100100) + chr(4576 - 4475))(chr(117) + chr(0b1110100) + '\146' + chr(45) + chr(1839 - 1783)) + zjGR30ByKU96 + roI3spqORKae(ES5oEprVxulp(b'\xce'), chr(0b1011101 + 0o7) + chr(0b1100101) + '\x63' + chr(111) + chr(0b1100100) + chr(0b110010 + 0o63))('\x75' + chr(116) + chr(0b1011 + 0o133) + '\x2d' + chr(0b111000)))
else:
return FhM95lzJDaJN[nzTpIcepk0o8(chr(950 - 902) + '\x6f' + chr(48), 8)]
|
dnanexus/dx-toolkit
|
src/python/dxpy/bindings/dxworkflow.py
|
DXWorkflow.add_stage
|
def add_stage(self, executable, stage_id=None, name=None, folder=None, stage_input=None, instance_type=None,
edit_version=None, **kwargs):
'''
:param executable: string or a handler for an app or applet
:type executable: string, DXApplet, or DXApp
:param stage_id: id for the stage (optional)
:type stage_id: string
:param name: name for the stage (optional)
:type name: string
:param folder: default output folder for the stage; either a relative or absolute path (optional)
:type folder: string
:param stage_input: input fields to bind as default inputs for the executable (optional)
:type stage_input: dict
:param instance_type: Default instance type on which all jobs will be run for this stage, or a dict mapping function names to instance type requests
:type instance_type: string or dict
:param edit_version: if provided, the edit version of the workflow that should be modified; if not provided, the current edit version will be used (optional)
:type edit_version: int
:returns: ID of the added stage
:rtype: string
:raises: :class:`~dxpy.exceptions.DXError` if *executable* is not an expected type :class:`~dxpy.exceptions.DXAPIError` for errors thrown from the API call
Adds the specified executable as a new stage in the workflow.
'''
if isinstance(executable, basestring):
exec_id = executable
elif isinstance(executable, DXExecutable):
exec_id = executable.get_id()
else:
raise DXError("dxpy.DXWorkflow.add_stage: executable must be a string or an instance of DXApplet or DXApp")
add_stage_input = {"executable": exec_id}
if stage_id is not None:
add_stage_input["id"] = stage_id
if name is not None:
add_stage_input["name"] = name
if folder is not None:
add_stage_input["folder"] = folder
if stage_input is not None:
add_stage_input["input"] = stage_input
if instance_type is not None:
add_stage_input["systemRequirements"] = SystemRequirementsDict.from_instance_type(instance_type).as_dict()
self._add_edit_version_to_request(add_stage_input, edit_version)
try:
result = dxpy.api.workflow_add_stage(self._dxid, add_stage_input, **kwargs)
finally:
self.describe() # update cached describe
return result['stage']
|
python
|
def add_stage(self, executable, stage_id=None, name=None, folder=None, stage_input=None, instance_type=None,
edit_version=None, **kwargs):
'''
:param executable: string or a handler for an app or applet
:type executable: string, DXApplet, or DXApp
:param stage_id: id for the stage (optional)
:type stage_id: string
:param name: name for the stage (optional)
:type name: string
:param folder: default output folder for the stage; either a relative or absolute path (optional)
:type folder: string
:param stage_input: input fields to bind as default inputs for the executable (optional)
:type stage_input: dict
:param instance_type: Default instance type on which all jobs will be run for this stage, or a dict mapping function names to instance type requests
:type instance_type: string or dict
:param edit_version: if provided, the edit version of the workflow that should be modified; if not provided, the current edit version will be used (optional)
:type edit_version: int
:returns: ID of the added stage
:rtype: string
:raises: :class:`~dxpy.exceptions.DXError` if *executable* is not an expected type :class:`~dxpy.exceptions.DXAPIError` for errors thrown from the API call
Adds the specified executable as a new stage in the workflow.
'''
if isinstance(executable, basestring):
exec_id = executable
elif isinstance(executable, DXExecutable):
exec_id = executable.get_id()
else:
raise DXError("dxpy.DXWorkflow.add_stage: executable must be a string or an instance of DXApplet or DXApp")
add_stage_input = {"executable": exec_id}
if stage_id is not None:
add_stage_input["id"] = stage_id
if name is not None:
add_stage_input["name"] = name
if folder is not None:
add_stage_input["folder"] = folder
if stage_input is not None:
add_stage_input["input"] = stage_input
if instance_type is not None:
add_stage_input["systemRequirements"] = SystemRequirementsDict.from_instance_type(instance_type).as_dict()
self._add_edit_version_to_request(add_stage_input, edit_version)
try:
result = dxpy.api.workflow_add_stage(self._dxid, add_stage_input, **kwargs)
finally:
self.describe() # update cached describe
return result['stage']
|
[
"def",
"add_stage",
"(",
"self",
",",
"executable",
",",
"stage_id",
"=",
"None",
",",
"name",
"=",
"None",
",",
"folder",
"=",
"None",
",",
"stage_input",
"=",
"None",
",",
"instance_type",
"=",
"None",
",",
"edit_version",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"if",
"isinstance",
"(",
"executable",
",",
"basestring",
")",
":",
"exec_id",
"=",
"executable",
"elif",
"isinstance",
"(",
"executable",
",",
"DXExecutable",
")",
":",
"exec_id",
"=",
"executable",
".",
"get_id",
"(",
")",
"else",
":",
"raise",
"DXError",
"(",
"\"dxpy.DXWorkflow.add_stage: executable must be a string or an instance of DXApplet or DXApp\"",
")",
"add_stage_input",
"=",
"{",
"\"executable\"",
":",
"exec_id",
"}",
"if",
"stage_id",
"is",
"not",
"None",
":",
"add_stage_input",
"[",
"\"id\"",
"]",
"=",
"stage_id",
"if",
"name",
"is",
"not",
"None",
":",
"add_stage_input",
"[",
"\"name\"",
"]",
"=",
"name",
"if",
"folder",
"is",
"not",
"None",
":",
"add_stage_input",
"[",
"\"folder\"",
"]",
"=",
"folder",
"if",
"stage_input",
"is",
"not",
"None",
":",
"add_stage_input",
"[",
"\"input\"",
"]",
"=",
"stage_input",
"if",
"instance_type",
"is",
"not",
"None",
":",
"add_stage_input",
"[",
"\"systemRequirements\"",
"]",
"=",
"SystemRequirementsDict",
".",
"from_instance_type",
"(",
"instance_type",
")",
".",
"as_dict",
"(",
")",
"self",
".",
"_add_edit_version_to_request",
"(",
"add_stage_input",
",",
"edit_version",
")",
"try",
":",
"result",
"=",
"dxpy",
".",
"api",
".",
"workflow_add_stage",
"(",
"self",
".",
"_dxid",
",",
"add_stage_input",
",",
"*",
"*",
"kwargs",
")",
"finally",
":",
"self",
".",
"describe",
"(",
")",
"# update cached describe",
"return",
"result",
"[",
"'stage'",
"]"
] |
:param executable: string or a handler for an app or applet
:type executable: string, DXApplet, or DXApp
:param stage_id: id for the stage (optional)
:type stage_id: string
:param name: name for the stage (optional)
:type name: string
:param folder: default output folder for the stage; either a relative or absolute path (optional)
:type folder: string
:param stage_input: input fields to bind as default inputs for the executable (optional)
:type stage_input: dict
:param instance_type: Default instance type on which all jobs will be run for this stage, or a dict mapping function names to instance type requests
:type instance_type: string or dict
:param edit_version: if provided, the edit version of the workflow that should be modified; if not provided, the current edit version will be used (optional)
:type edit_version: int
:returns: ID of the added stage
:rtype: string
:raises: :class:`~dxpy.exceptions.DXError` if *executable* is not an expected type :class:`~dxpy.exceptions.DXAPIError` for errors thrown from the API call
Adds the specified executable as a new stage in the workflow.
|
[
":",
"param",
"executable",
":",
"string",
"or",
"a",
"handler",
"for",
"an",
"app",
"or",
"applet",
":",
"type",
"executable",
":",
"string",
"DXApplet",
"or",
"DXApp",
":",
"param",
"stage_id",
":",
"id",
"for",
"the",
"stage",
"(",
"optional",
")",
":",
"type",
"stage_id",
":",
"string",
":",
"param",
"name",
":",
"name",
"for",
"the",
"stage",
"(",
"optional",
")",
":",
"type",
"name",
":",
"string",
":",
"param",
"folder",
":",
"default",
"output",
"folder",
"for",
"the",
"stage",
";",
"either",
"a",
"relative",
"or",
"absolute",
"path",
"(",
"optional",
")",
":",
"type",
"folder",
":",
"string",
":",
"param",
"stage_input",
":",
"input",
"fields",
"to",
"bind",
"as",
"default",
"inputs",
"for",
"the",
"executable",
"(",
"optional",
")",
":",
"type",
"stage_input",
":",
"dict",
":",
"param",
"instance_type",
":",
"Default",
"instance",
"type",
"on",
"which",
"all",
"jobs",
"will",
"be",
"run",
"for",
"this",
"stage",
"or",
"a",
"dict",
"mapping",
"function",
"names",
"to",
"instance",
"type",
"requests",
":",
"type",
"instance_type",
":",
"string",
"or",
"dict",
":",
"param",
"edit_version",
":",
"if",
"provided",
"the",
"edit",
"version",
"of",
"the",
"workflow",
"that",
"should",
"be",
"modified",
";",
"if",
"not",
"provided",
"the",
"current",
"edit",
"version",
"will",
"be",
"used",
"(",
"optional",
")",
":",
"type",
"edit_version",
":",
"int",
":",
"returns",
":",
"ID",
"of",
"the",
"added",
"stage",
":",
"rtype",
":",
"string",
":",
"raises",
":",
":",
"class",
":",
"~dxpy",
".",
"exceptions",
".",
"DXError",
"if",
"*",
"executable",
"*",
"is",
"not",
"an",
"expected",
"type",
":",
"class",
":",
"~dxpy",
".",
"exceptions",
".",
"DXAPIError",
"for",
"errors",
"thrown",
"from",
"the",
"API",
"call"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxworkflow.py#L198-L243
|
train
|
Adds a new stage to the workflow.
|
GiP5xwVCF98Z,B3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T9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,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(1668 - 1620) + chr(0b1101111) + chr(49) + '\064' + chr(0b110000), 9176 - 9168), nzTpIcepk0o8(chr(48) + chr(111) + chr(432 - 381) + '\x32' + chr(0b110110), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(0b100101 + 0o16) + chr(50) + chr(1313 - 1262), 21850 - 21842), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110001) + chr(55) + '\x37', 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(49) + chr(55) + '\x31', 0o10), nzTpIcepk0o8(chr(0b1 + 0o57) + '\x6f' + '\061' + '\x36' + chr(495 - 441), 0b1000), nzTpIcepk0o8('\x30' + chr(4693 - 4582) + chr(49) + chr(0b110100) + '\066', 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x31' + chr(0b110000) + chr(0b110100), 0o10), nzTpIcepk0o8(chr(0b101011 + 0o5) + '\x6f' + '\061' + chr(0b110001) + '\060', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\065' + chr(48), 0o10), nzTpIcepk0o8('\x30' + chr(0b101100 + 0o103) + chr(0b110011) + '\x34' + chr(0b101011 + 0o11), 0b1000), nzTpIcepk0o8(chr(613 - 565) + chr(0b11 + 0o154) + chr(0b11 + 0o60) + chr(0b110100) + chr(0b110110), 61094 - 61086), nzTpIcepk0o8(chr(519 - 471) + chr(111) + '\061' + '\066' + chr(1356 - 1308), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1010001 + 0o36) + chr(0b110110) + chr(0b100100 + 0o15), 0o10), nzTpIcepk0o8('\060' + chr(0b100101 + 0o112) + chr(1990 - 1940) + chr(0b110010) + chr(55), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110011) + chr(50) + chr(0b110110), 8), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x34' + '\061', 0b1000), nzTpIcepk0o8(chr(0b1011 + 0o45) + chr(111) + chr(51) + chr(0b110100) + chr(0b10111 + 0o32), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(2756 - 2645) + chr(0b110011) + chr(0b11011 + 0o33) + '\x31', 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x32' + chr(0b110110) + '\065', 60001 - 59993), nzTpIcepk0o8('\x30' + '\x6f' + '\063' + chr(0b110001) + chr(2164 - 2113), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b11101 + 0o122) + '\x33' + chr(0b110111) + chr(0b100110 + 0o20), 0o10), nzTpIcepk0o8('\060' + '\157' + '\x31' + chr(2579 - 2527) + chr(0b110010), 19847 - 19839), nzTpIcepk0o8(chr(347 - 299) + '\x6f' + chr(49) + chr(0b101000 + 0o14) + chr(1286 - 1237), 14727 - 14719), nzTpIcepk0o8(chr(0b1111 + 0o41) + chr(4328 - 4217) + chr(2006 - 1956) + '\062' + chr(53), ord("\x08")), nzTpIcepk0o8(chr(1107 - 1059) + chr(4014 - 3903) + chr(1674 - 1625) + chr(51) + chr(0b110100), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(152 - 102) + chr(54) + chr(0b110000), 0o10), nzTpIcepk0o8(chr(192 - 144) + chr(0b11111 + 0o120) + chr(51) + chr(941 - 893) + chr(53), 0o10), nzTpIcepk0o8(chr(1049 - 1001) + chr(0b1101111) + '\x31' + chr(2183 - 2134) + '\x31', 32994 - 32986), nzTpIcepk0o8(chr(1571 - 1523) + '\157' + chr(0b101011 + 0o6) + chr(948 - 894) + '\067', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\062' + chr(50) + chr(55), 8), nzTpIcepk0o8('\060' + chr(111) + '\064', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1100100 + 0o13) + '\062' + '\x31' + chr(0b110110), 0o10), nzTpIcepk0o8(chr(995 - 947) + chr(0b10 + 0o155) + chr(51) + chr(171 - 121) + chr(292 - 242), 0o10), nzTpIcepk0o8(chr(0b101101 + 0o3) + '\157' + chr(49) + chr(0b1110 + 0o42) + chr(49), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b11 + 0o56) + chr(0b110110) + chr(0b110110), 8), nzTpIcepk0o8(chr(0b11101 + 0o23) + '\157' + chr(0b110011) + chr(0b110011) + chr(0b110101), 43886 - 43878), nzTpIcepk0o8(chr(1928 - 1880) + chr(111) + chr(49) + chr(49) + '\x30', 8), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b101011 + 0o10) + chr(1965 - 1911) + chr(54), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x37' + chr(2794 - 2740), 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b1101 + 0o43) + chr(0b1010100 + 0o33) + chr(0b110101) + chr(470 - 422), 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'N'), chr(0b1001001 + 0o33) + chr(4064 - 3963) + chr(0b1100011) + '\x6f' + '\x64' + chr(0b1011101 + 0o10))('\x75' + chr(232 - 116) + '\x66' + chr(0b101101) + chr(0b101011 + 0o15)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def NobXL6N4vED8(hXMPsSrOQzbh, VpBMt2VU6K6a, a8VzXl3dbtEN=None, SLVB2BPA_mIe=None, jJYsaQE2l_C4=None, Qm3J6Llq0VHL=None, pP9INXzdjklw=None, wm0h8t4NciGf=None, **q5n0sHDDTy90):
if suIjIS24Zkqw(VpBMt2VU6K6a, JaQstSroDWOP):
_zRHhGBR_1kI = VpBMt2VU6K6a
elif suIjIS24Zkqw(VpBMt2VU6K6a, jlCJWXzhlwmV):
_zRHhGBR_1kI = VpBMt2VU6K6a.nkTncJcFPliW()
else:
raise JPU16lJ2koBU(roI3spqORKae(ES5oEprVxulp(b"\x04\xae\xa3\x06W2>\x13'Z\x8f\x80\x1c^\xe0\xf8@\x85\x95\xea\xb8\x8a\x03\x06\xf0f\x90\xa01\x12\xf4q\xfa\xb3#\x1a\xb8h\x9bK\x13\xa2\xf3\x1d\x1cV\x07d;\\\x96\x8f\x1eV\xb7\xb9S\xc1\x90\xdb\xeb\x97\x0c\x12\xe1=\xde\xa6,W\xf8b\xae\x96\x197\xad8\x9a[\x14\xf6\xbc\rY2>\x058X"), chr(0b1100100) + chr(0b10000 + 0o125) + chr(0b10110 + 0o115) + '\x6f' + chr(0b1100100) + chr(101))(chr(117) + chr(116) + chr(1130 - 1028) + chr(0b110 + 0o47) + chr(56)))
Iosn6HlVtbgK = {roI3spqORKae(ES5oEprVxulp(b'\x05\xae\xb6\x1c\x0c\x02\x07&$M'), '\x64' + chr(7394 - 7293) + chr(0b1010010 + 0o21) + chr(3140 - 3029) + chr(100) + chr(0b110001 + 0o64))(chr(1029 - 912) + chr(116) + chr(0b1100110) + chr(1595 - 1550) + chr(598 - 542)): _zRHhGBR_1kI}
if a8VzXl3dbtEN is not None:
Iosn6HlVtbgK[roI3spqORKae(ES5oEprVxulp(b'\t\xb2'), chr(1739 - 1639) + '\x65' + chr(99) + '\157' + '\x64' + chr(1055 - 954))(chr(0b111001 + 0o74) + '\164' + chr(1778 - 1676) + '\055' + chr(56))] = a8VzXl3dbtEN
if SLVB2BPA_mIe is not None:
Iosn6HlVtbgK[roI3spqORKae(ES5oEprVxulp(b'\x0e\xb7\xbe\x1a'), chr(0b11010 + 0o112) + chr(3049 - 2948) + '\x63' + chr(0b1101111) + chr(100) + chr(0b1100101))(chr(0b111100 + 0o71) + chr(6090 - 5974) + chr(0b1100110) + chr(45) + '\x38')] = SLVB2BPA_mIe
if jJYsaQE2l_C4 is not None:
Iosn6HlVtbgK[roI3spqORKae(ES5oEprVxulp(b'\x06\xb9\xbf\x1b\x1c\x04'), chr(0b1011111 + 0o5) + chr(0b1100101) + chr(99) + '\x6f' + chr(100) + chr(9806 - 9705))(chr(10057 - 9940) + chr(8759 - 8643) + chr(0b1100110) + chr(0b101101) + chr(56))] = jJYsaQE2l_C4
if Qm3J6Llq0VHL is not None:
Iosn6HlVtbgK[roI3spqORKae(ES5oEprVxulp(b'\t\xb8\xa3\n\r'), chr(0b10101 + 0o117) + chr(5967 - 5866) + '\x63' + chr(9510 - 9399) + chr(100) + chr(8923 - 8822))(chr(0b101100 + 0o111) + chr(0b100001 + 0o123) + chr(0b110101 + 0o61) + chr(1335 - 1290) + chr(2196 - 2140))] = Qm3J6Llq0VHL
if pP9INXzdjklw is not None:
Iosn6HlVtbgK[roI3spqORKae(ES5oEprVxulp(b'\x13\xaf\xa0\x0b\x1c\x1b4!9]\x8d\x94\x15\\\xf2\xb8U\x92'), chr(0b1010 + 0o132) + chr(8067 - 7966) + '\x63' + chr(11545 - 11434) + '\x64' + chr(0b1100101))(chr(117) + chr(116) + '\x66' + chr(0b10 + 0o53) + chr(0b111000))] = RLv6pd5MYR00.from_instance_type(pP9INXzdjklw).wP_hx7Pg2U0r()
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'?\xb7\xb7\x1b&\x13\x02-<w\x92\x83\x02B\xfe\xb9O\xbe\x85\xda\x94\x8c\x07\x10\xe09\xc3\xb1'), '\x64' + chr(0b1100101) + chr(0b1100011) + '\x6f' + '\144' + chr(101))('\x75' + '\x74' + chr(0b1100110) + chr(0b101101) + chr(0b111000)))(Iosn6HlVtbgK, wm0h8t4NciGf)
try:
POx95m7SPOVy = SsdNdRxXOwsF.api.workflow_add_stage(hXMPsSrOQzbh.d6KUnRQv6735, Iosn6HlVtbgK, **q5n0sHDDTy90)
finally:
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x04\xb3\xa0\x1c\x0b\x1f\x04!'), '\144' + chr(0b100001 + 0o104) + chr(0b11100 + 0o107) + chr(0b111100 + 0o63) + chr(4614 - 4514) + '\x65')('\165' + chr(0b110011 + 0o101) + '\x66' + '\055' + chr(56)))()
return POx95m7SPOVy[roI3spqORKae(ES5oEprVxulp(b'\x13\xa2\xb2\x18\x1c'), chr(0b11010 + 0o112) + chr(0b1100101) + chr(0b1100011) + '\x6f' + chr(7993 - 7893) + '\x65')(chr(2997 - 2880) + chr(0b1110100) + chr(1666 - 1564) + '\x2d' + chr(2782 - 2726))]
|
dnanexus/dx-toolkit
|
src/python/dxpy/bindings/dxworkflow.py
|
DXWorkflow.get_stage
|
def get_stage(self, stage, **kwargs):
'''
:param stage: A number for the stage index (for the nth stage, starting from 0), or a string of the stage index, name, or ID
:type stage: int or string
:returns: Hash of stage descriptor in workflow
'''
stage_id = self._get_stage_id(stage)
result = next((stage for stage in self.stages if stage['id'] == stage_id), None)
if result is None:
raise DXError('The stage ID ' + stage_id + ' could not be found')
return result
|
python
|
def get_stage(self, stage, **kwargs):
'''
:param stage: A number for the stage index (for the nth stage, starting from 0), or a string of the stage index, name, or ID
:type stage: int or string
:returns: Hash of stage descriptor in workflow
'''
stage_id = self._get_stage_id(stage)
result = next((stage for stage in self.stages if stage['id'] == stage_id), None)
if result is None:
raise DXError('The stage ID ' + stage_id + ' could not be found')
return result
|
[
"def",
"get_stage",
"(",
"self",
",",
"stage",
",",
"*",
"*",
"kwargs",
")",
":",
"stage_id",
"=",
"self",
".",
"_get_stage_id",
"(",
"stage",
")",
"result",
"=",
"next",
"(",
"(",
"stage",
"for",
"stage",
"in",
"self",
".",
"stages",
"if",
"stage",
"[",
"'id'",
"]",
"==",
"stage_id",
")",
",",
"None",
")",
"if",
"result",
"is",
"None",
":",
"raise",
"DXError",
"(",
"'The stage ID '",
"+",
"stage_id",
"+",
"' could not be found'",
")",
"return",
"result"
] |
:param stage: A number for the stage index (for the nth stage, starting from 0), or a string of the stage index, name, or ID
:type stage: int or string
:returns: Hash of stage descriptor in workflow
|
[
":",
"param",
"stage",
":",
"A",
"number",
"for",
"the",
"stage",
"index",
"(",
"for",
"the",
"nth",
"stage",
"starting",
"from",
"0",
")",
"or",
"a",
"string",
"of",
"the",
"stage",
"index",
"name",
"or",
"ID",
":",
"type",
"stage",
":",
"int",
"or",
"string",
":",
"returns",
":",
"Hash",
"of",
"stage",
"descriptor",
"in",
"workflow"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxworkflow.py#L245-L255
|
train
|
Get the stage descriptor in the workflow.
|
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,G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gW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__
ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b110000) + chr(111) + '\061' + '\064' + chr(2352 - 2301), 57990 - 57982), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(50) + chr(1072 - 1021) + '\x34', 0b1000), nzTpIcepk0o8(chr(0b11 + 0o55) + '\x6f' + chr(0b110001) + chr(0b110100) + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(504 - 456) + chr(111) + chr(50) + '\060' + chr(0b10101 + 0o35), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b1010 + 0o47) + chr(284 - 229) + chr(0b110111), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x33' + chr(0b110111) + '\x35', ord("\x08")), nzTpIcepk0o8(chr(1689 - 1641) + chr(111) + chr(0b101110 + 0o5) + chr(2894 - 2840) + chr(2033 - 1984), 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(50) + chr(535 - 487), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + '\x36' + chr(49), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(49) + chr(52) + chr(0b110010 + 0o0), 0b1000), nzTpIcepk0o8(chr(48) + chr(10688 - 10577) + chr(0b11 + 0o64) + chr(0b110111), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1000001 + 0o56) + '\x31' + chr(0b110010), 39617 - 39609), nzTpIcepk0o8(chr(1512 - 1464) + chr(0b1101111) + chr(1924 - 1873) + chr(48) + '\x35', 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(0b100001 + 0o22) + chr(0b110010), 0o10), nzTpIcepk0o8(chr(0b11110 + 0o22) + chr(0b111001 + 0o66) + '\061' + chr(53) + chr(54), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110001) + chr(0b110010) + '\x34', 0o10), nzTpIcepk0o8(chr(0b10000 + 0o40) + chr(111) + '\x32' + chr(2427 - 2375) + chr(53), 17806 - 17798), nzTpIcepk0o8(chr(48) + '\x6f' + chr(49) + chr(55) + chr(0b11101 + 0o30), 0o10), nzTpIcepk0o8(chr(1053 - 1005) + '\x6f' + chr(2156 - 2105) + chr(51), 49914 - 49906), nzTpIcepk0o8(chr(48) + '\x6f' + chr(52) + chr(53), 0o10), nzTpIcepk0o8(chr(1704 - 1656) + '\157' + chr(49) + chr(0b10011 + 0o37) + chr(0b110111), 0o10), nzTpIcepk0o8(chr(48) + chr(10816 - 10705) + chr(0b110010) + chr(52), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b11011 + 0o32) + chr(0b11101 + 0o27), ord("\x08")), nzTpIcepk0o8(chr(838 - 790) + '\157' + '\x31' + chr(0b110101), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + '\061' + chr(0b101000 + 0o15) + chr(2038 - 1990), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(50) + '\x30' + '\061', 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110010 + 0o1) + '\x35' + chr(55), 0o10), nzTpIcepk0o8(chr(1613 - 1565) + chr(111) + chr(2295 - 2244) + chr(271 - 221) + chr(0b101111 + 0o4), 6727 - 6719), nzTpIcepk0o8(chr(0b11110 + 0o22) + chr(111) + chr(0b110011) + '\067' + chr(0b10001 + 0o37), 0b1000), nzTpIcepk0o8(chr(0b11100 + 0o24) + chr(4707 - 4596) + chr(0b110010) + chr(0b110000 + 0o2) + '\061', 24029 - 24021), nzTpIcepk0o8('\x30' + chr(111) + chr(374 - 324) + chr(1724 - 1669) + '\067', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110110) + '\062', 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(0b1 + 0o62) + chr(0b110001), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(52) + chr(0b1011 + 0o54), 5704 - 5696), nzTpIcepk0o8('\060' + '\x6f' + '\x32' + '\065' + chr(0b1 + 0o61), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + '\063' + chr(51) + chr(55), 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(968 - 917) + chr(52) + '\x32', ord("\x08")), nzTpIcepk0o8('\060' + chr(8472 - 8361) + '\x32' + chr(0b11 + 0o55) + chr(50), 8), nzTpIcepk0o8(chr(0b101011 + 0o5) + '\x6f' + chr(2394 - 2345), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + '\x32' + '\x30', 8)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(833 - 785) + chr(5569 - 5458) + chr(0b11111 + 0o26) + chr(2064 - 2016), 52765 - 52757)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'M'), chr(0b1000001 + 0o43) + chr(6681 - 6580) + '\143' + '\x6f' + '\144' + '\x65')('\x75' + '\164' + '\x66' + '\x2d' + '\x38') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def TzPK6O67sCzV(hXMPsSrOQzbh, zjGR30ByKU96, **q5n0sHDDTy90):
a8VzXl3dbtEN = hXMPsSrOQzbh._get_stage_id(zjGR30ByKU96)
POx95m7SPOVy = ltB3XhPy2rYf((zjGR30ByKU96 for zjGR30ByKU96 in hXMPsSrOQzbh.stages if zjGR30ByKU96[roI3spqORKae(ES5oEprVxulp(b'\n\xf8'), chr(5753 - 5653) + chr(0b1000111 + 0o36) + chr(0b1100011) + chr(0b110010 + 0o75) + chr(0b1100100) + chr(0b110111 + 0o56))('\165' + '\x74' + chr(0b1100110) + chr(0b101101) + chr(0b111000))] == a8VzXl3dbtEN), None)
if POx95m7SPOVy is None:
raise JPU16lJ2koBU(roI3spqORKae(ES5oEprVxulp(b'7\xf4\x01\xa2\x0c\x89\x90wTBvN\xe5'), chr(100) + chr(101) + '\143' + chr(10709 - 10598) + chr(3384 - 3284) + chr(0b1100101))(chr(0b1110101) + chr(1527 - 1411) + '\146' + chr(45) + '\070') + a8VzXl3dbtEN + roI3spqORKae(ES5oEprVxulp(b'C\xff\x0b\xf7\x13\x99\xd1~^\x16\x1fh\xa0:\x08;\xd0\x13\x7f'), chr(100) + chr(1261 - 1160) + chr(4473 - 4374) + '\x6f' + chr(100) + '\145')('\x75' + chr(0b1011001 + 0o33) + chr(0b1011110 + 0o10) + chr(0b100000 + 0o15) + '\070'))
return POx95m7SPOVy
|
dnanexus/dx-toolkit
|
src/python/dxpy/bindings/dxworkflow.py
|
DXWorkflow.remove_stage
|
def remove_stage(self, stage, edit_version=None, **kwargs):
'''
:param stage: A number for the stage index (for the nth stage, starting from 0), or a string of the stage index, name, or ID
:type stage: int or string
:param edit_version: if provided, the edit version of the workflow that should be modified; if not provided, the current edit version will be used (optional)
:type edit_version: int
:returns: Stage ID that was removed
:rtype: string
Removes the specified stage from the workflow
'''
stage_id = self._get_stage_id(stage)
remove_stage_input = {"stage": stage_id}
self._add_edit_version_to_request(remove_stage_input, edit_version)
try:
dxpy.api.workflow_remove_stage(self._dxid, remove_stage_input, **kwargs)
finally:
self.describe() # update cached describe
return stage_id
|
python
|
def remove_stage(self, stage, edit_version=None, **kwargs):
'''
:param stage: A number for the stage index (for the nth stage, starting from 0), or a string of the stage index, name, or ID
:type stage: int or string
:param edit_version: if provided, the edit version of the workflow that should be modified; if not provided, the current edit version will be used (optional)
:type edit_version: int
:returns: Stage ID that was removed
:rtype: string
Removes the specified stage from the workflow
'''
stage_id = self._get_stage_id(stage)
remove_stage_input = {"stage": stage_id}
self._add_edit_version_to_request(remove_stage_input, edit_version)
try:
dxpy.api.workflow_remove_stage(self._dxid, remove_stage_input, **kwargs)
finally:
self.describe() # update cached describe
return stage_id
|
[
"def",
"remove_stage",
"(",
"self",
",",
"stage",
",",
"edit_version",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"stage_id",
"=",
"self",
".",
"_get_stage_id",
"(",
"stage",
")",
"remove_stage_input",
"=",
"{",
"\"stage\"",
":",
"stage_id",
"}",
"self",
".",
"_add_edit_version_to_request",
"(",
"remove_stage_input",
",",
"edit_version",
")",
"try",
":",
"dxpy",
".",
"api",
".",
"workflow_remove_stage",
"(",
"self",
".",
"_dxid",
",",
"remove_stage_input",
",",
"*",
"*",
"kwargs",
")",
"finally",
":",
"self",
".",
"describe",
"(",
")",
"# update cached describe",
"return",
"stage_id"
] |
:param stage: A number for the stage index (for the nth stage, starting from 0), or a string of the stage index, name, or ID
:type stage: int or string
:param edit_version: if provided, the edit version of the workflow that should be modified; if not provided, the current edit version will be used (optional)
:type edit_version: int
:returns: Stage ID that was removed
:rtype: string
Removes the specified stage from the workflow
|
[
":",
"param",
"stage",
":",
"A",
"number",
"for",
"the",
"stage",
"index",
"(",
"for",
"the",
"nth",
"stage",
"starting",
"from",
"0",
")",
"or",
"a",
"string",
"of",
"the",
"stage",
"index",
"name",
"or",
"ID",
":",
"type",
"stage",
":",
"int",
"or",
"string",
":",
"param",
"edit_version",
":",
"if",
"provided",
"the",
"edit",
"version",
"of",
"the",
"workflow",
"that",
"should",
"be",
"modified",
";",
"if",
"not",
"provided",
"the",
"current",
"edit",
"version",
"will",
"be",
"used",
"(",
"optional",
")",
":",
"type",
"edit_version",
":",
"int",
":",
"returns",
":",
"Stage",
"ID",
"that",
"was",
"removed",
":",
"rtype",
":",
"string"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxworkflow.py#L257-L275
|
train
|
Removes the specified stage from the workflow.
|
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3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cezIXzQNA,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(753 - 705) + chr(0b1101111) + chr(2030 - 1976) + '\063', 0o10), nzTpIcepk0o8('\x30' + chr(7664 - 7553) + chr(0b110010) + chr(55) + chr(54), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(3553 - 3442) + chr(49) + chr(49) + '\066', 38696 - 38688), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110101) + chr(1545 - 1493), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(4411 - 4300) + chr(51) + '\060' + chr(0b110000), 44340 - 44332), nzTpIcepk0o8(chr(0b11100 + 0o24) + chr(0b1101111) + chr(2297 - 2248) + '\x35' + chr(50), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\061' + chr(50) + '\x31', ord("\x08")), nzTpIcepk0o8(chr(1262 - 1214) + chr(0b1101111) + '\x33' + '\063' + chr(0b10110 + 0o32), 0o10), nzTpIcepk0o8(chr(0b11101 + 0o23) + chr(0b1101111) + '\063' + '\x33' + '\x32', 62124 - 62116), nzTpIcepk0o8(chr(48) + chr(11719 - 11608) + '\062' + '\x35' + '\x34', 0b1000), nzTpIcepk0o8(chr(1244 - 1196) + chr(0b1000010 + 0o55) + '\061', 7091 - 7083), nzTpIcepk0o8(chr(979 - 931) + chr(7431 - 7320) + chr(0b110001) + chr(1366 - 1313) + chr(54), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(0b100000 + 0o23) + chr(0b11101 + 0o30) + '\064', 24069 - 24061), nzTpIcepk0o8('\x30' + chr(2110 - 1999) + chr(0b110010) + chr(50) + '\064', ord("\x08")), nzTpIcepk0o8(chr(1533 - 1485) + chr(0b1000101 + 0o52) + chr(50) + chr(0b11110 + 0o30) + chr(0b1101 + 0o50), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b1001 + 0o51) + chr(0b1101 + 0o46) + chr(1416 - 1368), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + '\066' + chr(52), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(0b1000 + 0o51) + chr(0b101110 + 0o3) + chr(0b110100), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + '\061' + '\x36' + chr(0b110010 + 0o1), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(51) + '\x30' + '\062', 41842 - 41834), nzTpIcepk0o8(chr(48) + chr(6078 - 5967) + chr(0b111 + 0o52) + chr(0b100000 + 0o27), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + '\x35' + chr(52), 8), nzTpIcepk0o8('\x30' + chr(111) + '\x36', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110010) + chr(51) + chr(0b110000), 8), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\063' + chr(0b110110), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1001101 + 0o42) + chr(50) + '\x34' + '\065', ord("\x08")), nzTpIcepk0o8(chr(0b11100 + 0o24) + '\157' + '\062' + chr(0b11001 + 0o34) + chr(0b110001), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b100010 + 0o20) + '\060', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b11011 + 0o27) + chr(0b110000) + '\067', ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(51) + chr(2284 - 2235) + '\061', 3911 - 3903), nzTpIcepk0o8(chr(48) + chr(111) + chr(1987 - 1934) + chr(2167 - 2113), 35601 - 35593), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(466 - 415) + chr(0b110000 + 0o6) + chr(49), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(49) + chr(2226 - 2176) + chr(805 - 751), 0o10), nzTpIcepk0o8(chr(0b11100 + 0o24) + chr(0b1001010 + 0o45) + chr(49) + chr(0b110010), 0o10), nzTpIcepk0o8('\060' + chr(0b1100101 + 0o12) + chr(1565 - 1515) + chr(48) + chr(0b101000 + 0o13), ord("\x08")), nzTpIcepk0o8(chr(677 - 629) + chr(111) + chr(0b100 + 0o56) + '\x31' + '\060', 14971 - 14963), nzTpIcepk0o8(chr(48) + '\157' + chr(0b101111 + 0o4), ord("\x08")), nzTpIcepk0o8(chr(358 - 310) + chr(111) + chr(0b110001) + chr(53), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + '\x31' + chr(48) + chr(1267 - 1216), ord("\x08")), nzTpIcepk0o8(chr(2300 - 2252) + chr(0b101000 + 0o107) + chr(1008 - 959) + chr(938 - 888) + '\x31', 8)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(0b101100 + 0o103) + chr(53) + '\060', ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x1d'), chr(0b1000 + 0o134) + chr(3484 - 3383) + chr(99) + chr(6878 - 6767) + '\x64' + chr(101))('\x75' + '\164' + '\x66' + chr(0b101101) + chr(436 - 380)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def ClD58Bium6qZ(hXMPsSrOQzbh, zjGR30ByKU96, wm0h8t4NciGf=None, **q5n0sHDDTy90):
a8VzXl3dbtEN = hXMPsSrOQzbh._get_stage_id(zjGR30ByKU96)
LdcL900P1Yfn = {roI3spqORKae(ES5oEprVxulp(b'@\xca/K\xa5'), '\x64' + chr(6230 - 6129) + '\143' + chr(5177 - 5066) + chr(0b1100100) + chr(101))(chr(117) + chr(116) + chr(0b1100110) + chr(0b101101) + chr(0b101011 + 0o15)): a8VzXl3dbtEN}
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'l\xdf*H\x9f\x0f5\xb1\xae\xf3w\x0b\x9e\xe7\xdc\xf7Z\x13\x07\xadP^c\xe9k\xc0\xdad'), chr(0b110 + 0o136) + chr(101) + chr(99) + chr(5367 - 5256) + chr(100) + chr(101))(chr(10699 - 10582) + '\164' + chr(102) + chr(117 - 72) + '\070'))(LdcL900P1Yfn, wm0h8t4NciGf)
try:
roI3spqORKae(SsdNdRxXOwsF.api, roI3spqORKae(ES5oEprVxulp(b'D\xd1<G\xa6\x06>\xaf\x85\xded\x03\x83\xe2\xd0\xc7G8\x12\xa5j'), '\144' + chr(0b1100101) + chr(7668 - 7569) + chr(0b1101111) + '\x64' + chr(0b1001111 + 0o26))(chr(117) + chr(0b110011 + 0o101) + '\x66' + '\055' + '\x38'))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'W\x88\x05y\xae8\x00\xae\xec\x9b2['), chr(8462 - 8362) + chr(101) + chr(99) + '\157' + chr(100) + chr(101))(chr(0b1110101) + chr(0b111000 + 0o74) + '\x66' + '\x2d' + chr(56))), LdcL900P1Yfn, **q5n0sHDDTy90)
finally:
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'W\xdb=O\xb2\x033\xbd'), chr(0b1001001 + 0o33) + '\x65' + '\143' + chr(111) + '\x64' + '\145')(chr(117) + chr(0b1000000 + 0o64) + chr(102) + chr(0b11100 + 0o21) + chr(56)))()
return a8VzXl3dbtEN
|
dnanexus/dx-toolkit
|
src/python/dxpy/bindings/dxworkflow.py
|
DXWorkflow.move_stage
|
def move_stage(self, stage, new_index, edit_version=None, **kwargs):
'''
:param stage: A number for the stage index (for the nth stage, starting from 0), or a string of the stage index, name, or ID
:type stage: int or string
:param new_index: The new position in the order of stages that the specified stage should have (where 0 indicates the first stage)
:type new_index: int
:param edit_version: if provided, the edit version of the workflow that should be modified; if not provided, the current edit version will be used (optional)
:type edit_version: int
Removes the specified stage from the workflow
'''
stage_id = self._get_stage_id(stage)
move_stage_input = {"stage": stage_id,
"newIndex": new_index}
self._add_edit_version_to_request(move_stage_input, edit_version)
try:
dxpy.api.workflow_move_stage(self._dxid, move_stage_input, **kwargs)
finally:
self.describe()
|
python
|
def move_stage(self, stage, new_index, edit_version=None, **kwargs):
'''
:param stage: A number for the stage index (for the nth stage, starting from 0), or a string of the stage index, name, or ID
:type stage: int or string
:param new_index: The new position in the order of stages that the specified stage should have (where 0 indicates the first stage)
:type new_index: int
:param edit_version: if provided, the edit version of the workflow that should be modified; if not provided, the current edit version will be used (optional)
:type edit_version: int
Removes the specified stage from the workflow
'''
stage_id = self._get_stage_id(stage)
move_stage_input = {"stage": stage_id,
"newIndex": new_index}
self._add_edit_version_to_request(move_stage_input, edit_version)
try:
dxpy.api.workflow_move_stage(self._dxid, move_stage_input, **kwargs)
finally:
self.describe()
|
[
"def",
"move_stage",
"(",
"self",
",",
"stage",
",",
"new_index",
",",
"edit_version",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"stage_id",
"=",
"self",
".",
"_get_stage_id",
"(",
"stage",
")",
"move_stage_input",
"=",
"{",
"\"stage\"",
":",
"stage_id",
",",
"\"newIndex\"",
":",
"new_index",
"}",
"self",
".",
"_add_edit_version_to_request",
"(",
"move_stage_input",
",",
"edit_version",
")",
"try",
":",
"dxpy",
".",
"api",
".",
"workflow_move_stage",
"(",
"self",
".",
"_dxid",
",",
"move_stage_input",
",",
"*",
"*",
"kwargs",
")",
"finally",
":",
"self",
".",
"describe",
"(",
")"
] |
:param stage: A number for the stage index (for the nth stage, starting from 0), or a string of the stage index, name, or ID
:type stage: int or string
:param new_index: The new position in the order of stages that the specified stage should have (where 0 indicates the first stage)
:type new_index: int
:param edit_version: if provided, the edit version of the workflow that should be modified; if not provided, the current edit version will be used (optional)
:type edit_version: int
Removes the specified stage from the workflow
|
[
":",
"param",
"stage",
":",
"A",
"number",
"for",
"the",
"stage",
"index",
"(",
"for",
"the",
"nth",
"stage",
"starting",
"from",
"0",
")",
"or",
"a",
"string",
"of",
"the",
"stage",
"index",
"name",
"or",
"ID",
":",
"type",
"stage",
":",
"int",
"or",
"string",
":",
"param",
"new_index",
":",
"The",
"new",
"position",
"in",
"the",
"order",
"of",
"stages",
"that",
"the",
"specified",
"stage",
"should",
"have",
"(",
"where",
"0",
"indicates",
"the",
"first",
"stage",
")",
":",
"type",
"new_index",
":",
"int",
":",
"param",
"edit_version",
":",
"if",
"provided",
"the",
"edit",
"version",
"of",
"the",
"workflow",
"that",
"should",
"be",
"modified",
";",
"if",
"not",
"provided",
"the",
"current",
"edit",
"version",
"will",
"be",
"used",
"(",
"optional",
")",
":",
"type",
"edit_version",
":",
"int"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxworkflow.py#L277-L295
|
train
|
Moves the specified stage to a new index.
|
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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hVJa,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(2108 - 2059) + chr(2477 - 2424), 0b1000), nzTpIcepk0o8(chr(0b11110 + 0o22) + chr(4492 - 4381) + chr(1119 - 1071), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110001) + '\064', 0o10), nzTpIcepk0o8(chr(1902 - 1854) + chr(0b1101111) + chr(2509 - 2455) + chr(49), 0b1000), nzTpIcepk0o8(chr(1644 - 1596) + chr(111) + chr(0b110011) + chr(0b110000) + chr(0b110111), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + '\x31' + chr(0b0 + 0o61) + chr(0b110110 + 0o0), 0b1000), nzTpIcepk0o8(chr(660 - 612) + chr(0b111110 + 0o61) + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(121 - 70) + chr(49) + chr(0b110101), ord("\x08")), nzTpIcepk0o8(chr(1689 - 1641) + chr(0b1101111) + '\067' + '\061', 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(51) + '\063' + '\x36', 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(50) + chr(1521 - 1471) + chr(0b11001 + 0o36), 30569 - 30561), nzTpIcepk0o8(chr(1426 - 1378) + chr(0b1101111) + chr(0b101111 + 0o2) + '\066' + chr(52), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110001) + chr(53) + chr(0b110010), ord("\x08")), nzTpIcepk0o8('\060' + chr(1495 - 1384) + chr(0b110011) + chr(0b110101) + chr(0b110010), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b100101 + 0o16) + chr(0b110000) + chr(2843 - 2788), 8), nzTpIcepk0o8(chr(1352 - 1304) + chr(111) + chr(0b110100) + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(1143 - 1094) + chr(0b110010) + '\x30', 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(0b110010) + '\x32', 0b1000), nzTpIcepk0o8('\060' + chr(3788 - 3677) + '\065' + chr(0b110000 + 0o5), 0o10), nzTpIcepk0o8('\060' + chr(0b1001110 + 0o41) + '\066', 26877 - 26869), nzTpIcepk0o8('\060' + chr(0b11 + 0o154) + chr(0b10101 + 0o34) + chr(54) + chr(0b110100), 8), nzTpIcepk0o8(chr(1059 - 1011) + '\157' + chr(0b101001 + 0o12) + chr(0b110001) + '\065', 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x33' + '\x33' + '\067', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(55) + chr(0b110101), 3337 - 3329), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110011) + '\x32' + '\067', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(8709 - 8598) + chr(0b110011) + chr(52) + '\063', ord("\x08")), nzTpIcepk0o8(chr(0b11000 + 0o30) + '\x6f' + chr(0b110010) + chr(53) + chr(0b110000), 12007 - 11999), nzTpIcepk0o8(chr(1350 - 1302) + chr(111) + chr(0b110010 + 0o4) + '\065', 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b101000 + 0o12) + chr(0b110110) + '\x34', 0b1000), nzTpIcepk0o8(chr(0b111 + 0o51) + chr(0b1100110 + 0o11) + chr(0b110001) + chr(2901 - 2847) + chr(51), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b100111 + 0o12) + '\x35' + chr(2319 - 2265), 0o10), nzTpIcepk0o8('\x30' + chr(4605 - 4494) + '\x32' + chr(49) + chr(168 - 114), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b1011 + 0o46) + chr(0b110100 + 0o0) + chr(0b110001), 0b1000), nzTpIcepk0o8('\x30' + chr(2282 - 2171) + chr(55) + chr(2746 - 2691), 0o10), nzTpIcepk0o8(chr(1241 - 1193) + '\x6f' + '\065' + '\060', 55 - 47), nzTpIcepk0o8('\060' + '\157' + '\x31' + '\065' + '\x35', 54508 - 54500), nzTpIcepk0o8('\x30' + '\157' + chr(49) + chr(55) + '\063', 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(49) + '\065' + chr(48), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(10308 - 10197) + chr(0b101 + 0o55) + '\x30' + chr(55), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b11010 + 0o125) + '\061' + '\063' + chr(48), 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(1573 - 1525) + chr(11955 - 11844) + '\065' + '\x30', 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'#'), chr(0b1100100) + '\x65' + chr(0b101001 + 0o72) + '\157' + '\x64' + chr(101))(chr(0b1110101) + chr(1836 - 1720) + chr(0b1100110) + chr(100 - 55) + chr(56)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def HsTfhZEBjoAY(hXMPsSrOQzbh, zjGR30ByKU96, rk70SgGzAAom, wm0h8t4NciGf=None, **q5n0sHDDTy90):
a8VzXl3dbtEN = hXMPsSrOQzbh._get_stage_id(zjGR30ByKU96)
b8HavSsgLwOg = {roI3spqORKae(ES5oEprVxulp(b'~tmV\xa2'), chr(0b10000 + 0o124) + chr(0b1100101) + chr(0b1001 + 0o132) + chr(0b1001 + 0o146) + '\x64' + '\x65')('\x75' + '\x74' + chr(6042 - 5940) + chr(45) + '\x38'): a8VzXl3dbtEN, roI3spqORKae(ES5oEprVxulp(b'ce{x\xa9*a\xb5'), chr(100) + chr(0b1100101) + chr(6503 - 6404) + chr(9209 - 9098) + chr(0b1100100) + chr(0b1100101))(chr(0b1110101) + chr(8952 - 8836) + chr(0b1100110) + '\055' + chr(0b101001 + 0o17)): rk70SgGzAAom}
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'RahU\x98+`\xa4M\x81\xe1\x11\x18\x99\xaeK>MYi+\xbf\xbaL\xa2\x86\xdbA'), chr(0b1100100) + chr(0b1100101) + '\x63' + chr(0b101111 + 0o100) + '\144' + '\x65')(chr(6563 - 6446) + '\164' + chr(0b1100110) + chr(0b1010 + 0o43) + '\x38'))(b8HavSsgLwOg, wm0h8t4NciGf)
try:
roI3spqORKae(SsdNdRxXOwsF.api, roI3spqORKae(ES5oEprVxulp(b'zo~Z\xa1"k\xbaf\xb3\xf8\x02\x0f\xb5\xb4P1uH'), chr(100) + '\145' + chr(0b1100011) + chr(0b1101111) + chr(100) + '\x65')(chr(11685 - 11568) + '\164' + chr(0b1100110) + '\x2d' + chr(804 - 748)))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'i6Gd\xa9\x1cU\xbb\x0f\xe9\xa4A'), chr(100) + chr(3052 - 2951) + chr(0b101000 + 0o73) + chr(0b1101011 + 0o4) + '\144' + chr(0b1100001 + 0o4))(chr(117) + chr(116) + chr(0b1001010 + 0o34) + chr(1618 - 1573) + chr(0b101001 + 0o17))), b8HavSsgLwOg, **q5n0sHDDTy90)
finally:
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b"ie\x7fR\xb5'f\xa8"), chr(6202 - 6102) + '\x65' + '\143' + chr(111) + chr(0b1100100) + chr(101))(chr(0b11111 + 0o126) + '\164' + chr(0b1000111 + 0o37) + chr(0b101101) + '\070'))()
|
dnanexus/dx-toolkit
|
src/python/dxpy/bindings/dxworkflow.py
|
DXWorkflow.update
|
def update(self, title=None, unset_title=False, summary=None, description=None,
output_folder=None, unset_output_folder=False,
workflow_inputs=None, unset_workflow_inputs=False,
workflow_outputs=None, unset_workflow_outputs=False,
stages=None, edit_version=None, **kwargs):
'''
:param title: workflow title to set; cannot be provided with *unset_title* set to True
:type title: string
:param unset_title: whether to unset the title; cannot be provided with string value for *title*
:type unset_title: boolean
:param summary: workflow summary to set
:type summary: string
:param description: workflow description to set
:type description: string
:param output_folder: new default output folder for the workflow
:type output_folder: string
:param unset_folder: whether to unset the default output folder; cannot be True with string value for *output_folder*
:type unset_folder: boolean
:param stages: updates to the stages to make; see API documentation for /workflow-xxxx/update for syntax of this field; use :meth:`update_stage()` to update a single stage
:type stages: dict
:param workflow_inputs: updates to the workflow input to make; see API documentation for /workflow-xxxx/update for syntax of this field
:type workflow_inputs: dict
:param workflow_outputs: updates to the workflow output to make; see API documentation for /workflow-xxxx/update for syntax of this field
:type workflow_outputs: dict
:param edit_version: if provided, the edit version of the workflow that should be modified; if not provided, the current edit version will be used (optional)
:type edit_version: int
Make general metadata updates to the workflow
'''
update_input = {}
if title is not None and unset_title:
raise DXError('dxpy.DXWorkflow.update: cannot provide both "title" and set "unset_title"')
if output_folder is not None and unset_output_folder:
raise DXError('dxpy.DXWorkflow.update: cannot provide both "output_folder" and set "unset_output_folder"')
if workflow_inputs is not None and unset_workflow_inputs:
raise DXError('dxpy.DXWorkflow.update: cannot provide both "workflow_inputs" and set "unset_workflow_inputs"')
if workflow_outputs is not None and unset_workflow_outputs:
raise DXError('dxpy.DXWorkflow.update: cannot provide both "workflow_outputs" and set "unset_workflow_outputs"')
if title is not None:
update_input["title"] = title
elif unset_title:
update_input["title"] = None
if summary is not None:
update_input["summary"] = summary
if description is not None:
update_input["description"] = description
if output_folder is not None:
update_input["outputFolder"] = output_folder
elif unset_output_folder:
update_input["outputFolder"] = None
if stages is not None:
update_input["stages"] = stages
if workflow_inputs is not None:
update_input["inputs"] = workflow_inputs
elif unset_workflow_inputs:
update_input["inputs"] = None
if workflow_outputs is not None:
update_input["outputs"] = workflow_outputs
elif unset_workflow_outputs:
update_input["outputs"] = None
# only perform update if there are changes to make
if update_input:
self._add_edit_version_to_request(update_input, edit_version)
try:
dxpy.api.workflow_update(self._dxid, update_input, **kwargs)
finally:
self.describe()
|
python
|
def update(self, title=None, unset_title=False, summary=None, description=None,
output_folder=None, unset_output_folder=False,
workflow_inputs=None, unset_workflow_inputs=False,
workflow_outputs=None, unset_workflow_outputs=False,
stages=None, edit_version=None, **kwargs):
'''
:param title: workflow title to set; cannot be provided with *unset_title* set to True
:type title: string
:param unset_title: whether to unset the title; cannot be provided with string value for *title*
:type unset_title: boolean
:param summary: workflow summary to set
:type summary: string
:param description: workflow description to set
:type description: string
:param output_folder: new default output folder for the workflow
:type output_folder: string
:param unset_folder: whether to unset the default output folder; cannot be True with string value for *output_folder*
:type unset_folder: boolean
:param stages: updates to the stages to make; see API documentation for /workflow-xxxx/update for syntax of this field; use :meth:`update_stage()` to update a single stage
:type stages: dict
:param workflow_inputs: updates to the workflow input to make; see API documentation for /workflow-xxxx/update for syntax of this field
:type workflow_inputs: dict
:param workflow_outputs: updates to the workflow output to make; see API documentation for /workflow-xxxx/update for syntax of this field
:type workflow_outputs: dict
:param edit_version: if provided, the edit version of the workflow that should be modified; if not provided, the current edit version will be used (optional)
:type edit_version: int
Make general metadata updates to the workflow
'''
update_input = {}
if title is not None and unset_title:
raise DXError('dxpy.DXWorkflow.update: cannot provide both "title" and set "unset_title"')
if output_folder is not None and unset_output_folder:
raise DXError('dxpy.DXWorkflow.update: cannot provide both "output_folder" and set "unset_output_folder"')
if workflow_inputs is not None and unset_workflow_inputs:
raise DXError('dxpy.DXWorkflow.update: cannot provide both "workflow_inputs" and set "unset_workflow_inputs"')
if workflow_outputs is not None and unset_workflow_outputs:
raise DXError('dxpy.DXWorkflow.update: cannot provide both "workflow_outputs" and set "unset_workflow_outputs"')
if title is not None:
update_input["title"] = title
elif unset_title:
update_input["title"] = None
if summary is not None:
update_input["summary"] = summary
if description is not None:
update_input["description"] = description
if output_folder is not None:
update_input["outputFolder"] = output_folder
elif unset_output_folder:
update_input["outputFolder"] = None
if stages is not None:
update_input["stages"] = stages
if workflow_inputs is not None:
update_input["inputs"] = workflow_inputs
elif unset_workflow_inputs:
update_input["inputs"] = None
if workflow_outputs is not None:
update_input["outputs"] = workflow_outputs
elif unset_workflow_outputs:
update_input["outputs"] = None
# only perform update if there are changes to make
if update_input:
self._add_edit_version_to_request(update_input, edit_version)
try:
dxpy.api.workflow_update(self._dxid, update_input, **kwargs)
finally:
self.describe()
|
[
"def",
"update",
"(",
"self",
",",
"title",
"=",
"None",
",",
"unset_title",
"=",
"False",
",",
"summary",
"=",
"None",
",",
"description",
"=",
"None",
",",
"output_folder",
"=",
"None",
",",
"unset_output_folder",
"=",
"False",
",",
"workflow_inputs",
"=",
"None",
",",
"unset_workflow_inputs",
"=",
"False",
",",
"workflow_outputs",
"=",
"None",
",",
"unset_workflow_outputs",
"=",
"False",
",",
"stages",
"=",
"None",
",",
"edit_version",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"update_input",
"=",
"{",
"}",
"if",
"title",
"is",
"not",
"None",
"and",
"unset_title",
":",
"raise",
"DXError",
"(",
"'dxpy.DXWorkflow.update: cannot provide both \"title\" and set \"unset_title\"'",
")",
"if",
"output_folder",
"is",
"not",
"None",
"and",
"unset_output_folder",
":",
"raise",
"DXError",
"(",
"'dxpy.DXWorkflow.update: cannot provide both \"output_folder\" and set \"unset_output_folder\"'",
")",
"if",
"workflow_inputs",
"is",
"not",
"None",
"and",
"unset_workflow_inputs",
":",
"raise",
"DXError",
"(",
"'dxpy.DXWorkflow.update: cannot provide both \"workflow_inputs\" and set \"unset_workflow_inputs\"'",
")",
"if",
"workflow_outputs",
"is",
"not",
"None",
"and",
"unset_workflow_outputs",
":",
"raise",
"DXError",
"(",
"'dxpy.DXWorkflow.update: cannot provide both \"workflow_outputs\" and set \"unset_workflow_outputs\"'",
")",
"if",
"title",
"is",
"not",
"None",
":",
"update_input",
"[",
"\"title\"",
"]",
"=",
"title",
"elif",
"unset_title",
":",
"update_input",
"[",
"\"title\"",
"]",
"=",
"None",
"if",
"summary",
"is",
"not",
"None",
":",
"update_input",
"[",
"\"summary\"",
"]",
"=",
"summary",
"if",
"description",
"is",
"not",
"None",
":",
"update_input",
"[",
"\"description\"",
"]",
"=",
"description",
"if",
"output_folder",
"is",
"not",
"None",
":",
"update_input",
"[",
"\"outputFolder\"",
"]",
"=",
"output_folder",
"elif",
"unset_output_folder",
":",
"update_input",
"[",
"\"outputFolder\"",
"]",
"=",
"None",
"if",
"stages",
"is",
"not",
"None",
":",
"update_input",
"[",
"\"stages\"",
"]",
"=",
"stages",
"if",
"workflow_inputs",
"is",
"not",
"None",
":",
"update_input",
"[",
"\"inputs\"",
"]",
"=",
"workflow_inputs",
"elif",
"unset_workflow_inputs",
":",
"update_input",
"[",
"\"inputs\"",
"]",
"=",
"None",
"if",
"workflow_outputs",
"is",
"not",
"None",
":",
"update_input",
"[",
"\"outputs\"",
"]",
"=",
"workflow_outputs",
"elif",
"unset_workflow_outputs",
":",
"update_input",
"[",
"\"outputs\"",
"]",
"=",
"None",
"# only perform update if there are changes to make",
"if",
"update_input",
":",
"self",
".",
"_add_edit_version_to_request",
"(",
"update_input",
",",
"edit_version",
")",
"try",
":",
"dxpy",
".",
"api",
".",
"workflow_update",
"(",
"self",
".",
"_dxid",
",",
"update_input",
",",
"*",
"*",
"kwargs",
")",
"finally",
":",
"self",
".",
"describe",
"(",
")"
] |
:param title: workflow title to set; cannot be provided with *unset_title* set to True
:type title: string
:param unset_title: whether to unset the title; cannot be provided with string value for *title*
:type unset_title: boolean
:param summary: workflow summary to set
:type summary: string
:param description: workflow description to set
:type description: string
:param output_folder: new default output folder for the workflow
:type output_folder: string
:param unset_folder: whether to unset the default output folder; cannot be True with string value for *output_folder*
:type unset_folder: boolean
:param stages: updates to the stages to make; see API documentation for /workflow-xxxx/update for syntax of this field; use :meth:`update_stage()` to update a single stage
:type stages: dict
:param workflow_inputs: updates to the workflow input to make; see API documentation for /workflow-xxxx/update for syntax of this field
:type workflow_inputs: dict
:param workflow_outputs: updates to the workflow output to make; see API documentation for /workflow-xxxx/update for syntax of this field
:type workflow_outputs: dict
:param edit_version: if provided, the edit version of the workflow that should be modified; if not provided, the current edit version will be used (optional)
:type edit_version: int
Make general metadata updates to the workflow
|
[
":",
"param",
"title",
":",
"workflow",
"title",
"to",
"set",
";",
"cannot",
"be",
"provided",
"with",
"*",
"unset_title",
"*",
"set",
"to",
"True",
":",
"type",
"title",
":",
"string",
":",
"param",
"unset_title",
":",
"whether",
"to",
"unset",
"the",
"title",
";",
"cannot",
"be",
"provided",
"with",
"string",
"value",
"for",
"*",
"title",
"*",
":",
"type",
"unset_title",
":",
"boolean",
":",
"param",
"summary",
":",
"workflow",
"summary",
"to",
"set",
":",
"type",
"summary",
":",
"string",
":",
"param",
"description",
":",
"workflow",
"description",
"to",
"set",
":",
"type",
"description",
":",
"string",
":",
"param",
"output_folder",
":",
"new",
"default",
"output",
"folder",
"for",
"the",
"workflow",
":",
"type",
"output_folder",
":",
"string",
":",
"param",
"unset_folder",
":",
"whether",
"to",
"unset",
"the",
"default",
"output",
"folder",
";",
"cannot",
"be",
"True",
"with",
"string",
"value",
"for",
"*",
"output_folder",
"*",
":",
"type",
"unset_folder",
":",
"boolean",
":",
"param",
"stages",
":",
"updates",
"to",
"the",
"stages",
"to",
"make",
";",
"see",
"API",
"documentation",
"for",
"/",
"workflow",
"-",
"xxxx",
"/",
"update",
"for",
"syntax",
"of",
"this",
"field",
";",
"use",
":",
"meth",
":",
"update_stage",
"()",
"to",
"update",
"a",
"single",
"stage",
":",
"type",
"stages",
":",
"dict",
":",
"param",
"workflow_inputs",
":",
"updates",
"to",
"the",
"workflow",
"input",
"to",
"make",
";",
"see",
"API",
"documentation",
"for",
"/",
"workflow",
"-",
"xxxx",
"/",
"update",
"for",
"syntax",
"of",
"this",
"field",
":",
"type",
"workflow_inputs",
":",
"dict",
":",
"param",
"workflow_outputs",
":",
"updates",
"to",
"the",
"workflow",
"output",
"to",
"make",
";",
"see",
"API",
"documentation",
"for",
"/",
"workflow",
"-",
"xxxx",
"/",
"update",
"for",
"syntax",
"of",
"this",
"field",
":",
"type",
"workflow_outputs",
":",
"dict",
":",
"param",
"edit_version",
":",
"if",
"provided",
"the",
"edit",
"version",
"of",
"the",
"workflow",
"that",
"should",
"be",
"modified",
";",
"if",
"not",
"provided",
"the",
"current",
"edit",
"version",
"will",
"be",
"used",
"(",
"optional",
")",
":",
"type",
"edit_version",
":",
"int"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxworkflow.py#L297-L365
|
train
|
Updates the metadata of a specific workflow entry.
|
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,j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b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__
ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\x30' + chr(111) + chr(0b110110) + chr(0b11000 + 0o33), 51589 - 51581), nzTpIcepk0o8(chr(0b100000 + 0o20) + '\x6f' + chr(493 - 443) + '\062' + chr(55), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(49) + '\x32' + '\061', ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + '\065' + '\064', 0b1000), nzTpIcepk0o8(chr(1412 - 1364) + chr(0b1000000 + 0o57) + chr(49) + '\x31' + chr(48), 50049 - 50041), nzTpIcepk0o8(chr(48) + '\157' + chr(49) + chr(54) + chr(52), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(2192 - 2141) + chr(52), 6754 - 6746), nzTpIcepk0o8('\060' + chr(111) + chr(0b110010) + '\062' + '\067', 8), nzTpIcepk0o8('\x30' + chr(0b110110 + 0o71) + '\x31' + '\x30' + '\067', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b1101 + 0o44) + chr(0b10011 + 0o43) + '\x35', 0o10), nzTpIcepk0o8('\060' + chr(0b1101001 + 0o6) + chr(0b100101 + 0o14) + '\062' + '\x34', 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\061' + chr(0b110 + 0o60) + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(713 - 665) + chr(2605 - 2494) + '\x33' + chr(0b110010) + chr(0b110000), ord("\x08")), nzTpIcepk0o8(chr(0b1000 + 0o50) + chr(0b101000 + 0o107) + chr(100 - 49) + '\x36' + chr(2451 - 2399), 19478 - 19470), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110001 + 0o2) + chr(2510 - 2456) + chr(0b11 + 0o56), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x33' + chr(0b110111) + chr(0b110100), 51186 - 51178), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110010) + '\061', 0b1000), nzTpIcepk0o8(chr(48) + '\157' + '\064' + '\x37', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(1371 - 1320) + '\066' + '\061', 8), nzTpIcepk0o8(chr(1100 - 1052) + chr(111) + '\064' + chr(0b100 + 0o55), 0o10), nzTpIcepk0o8(chr(0b1111 + 0o41) + chr(111) + chr(51) + chr(0b110111) + chr(0b1100 + 0o47), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110010) + chr(0b1011 + 0o52), 54000 - 53992), nzTpIcepk0o8('\060' + chr(0b1000 + 0o147) + chr(0b10000 + 0o43) + '\x35' + '\x30', 0b1000), nzTpIcepk0o8(chr(48) + '\157' + '\x33' + chr(1653 - 1605) + chr(0b110110), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(0b101001 + 0o12) + chr(1097 - 1042) + '\x30', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1000011 + 0o54) + '\x32' + chr(0b101001 + 0o15) + chr(53), 0o10), nzTpIcepk0o8('\x30' + chr(0b111011 + 0o64) + chr(0b110001) + '\x33' + chr(0b110100), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(1270 - 1221) + chr(53) + chr(862 - 812), 0o10), nzTpIcepk0o8('\060' + '\157' + chr(50) + '\066' + chr(950 - 899), 25981 - 25973), nzTpIcepk0o8(chr(0b11001 + 0o27) + chr(0b1101111) + chr(0b110010) + chr(0b110011), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101001 + 0o6) + chr(51) + '\x37' + chr(923 - 874), 0b1000), nzTpIcepk0o8('\x30' + chr(9657 - 9546) + chr(0b110100) + chr(53), 0o10), nzTpIcepk0o8(chr(1428 - 1380) + '\x6f' + '\062' + chr(58 - 6) + chr(0b110001), 0o10), nzTpIcepk0o8(chr(0b101100 + 0o4) + '\157' + chr(51) + '\060', 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110001) + chr(0b110100) + '\066', 0o10), nzTpIcepk0o8(chr(48) + chr(2517 - 2406) + chr(1762 - 1713) + chr(1533 - 1485) + '\067', 8), nzTpIcepk0o8('\060' + chr(1221 - 1110) + '\061' + chr(0b110111) + chr(54), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110100) + chr(51), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(1495 - 1444) + chr(0b100011 + 0o16), 0b1000), nzTpIcepk0o8('\x30' + chr(0b10011 + 0o134) + chr(51) + chr(49) + chr(0b100011 + 0o16), 57356 - 57348)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(53) + '\060', 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x1d'), chr(0b1001000 + 0o34) + chr(101) + '\x63' + chr(0b1101111) + chr(0b1100100) + '\145')(chr(0b1011 + 0o152) + '\x74' + chr(0b1000111 + 0o37) + chr(0b110 + 0o47) + chr(56)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def J_k2IYB1ceqn(hXMPsSrOQzbh, OO0tRW9aj_xh=None, aFngCB3qyyof=nzTpIcepk0o8('\060' + chr(5297 - 5186) + chr(0b110000), 0b1000), QEXp0HPqz7Se=None, HPRlMhFQZATD=None, VYk4CN_ByWOq=None, e3hoKEFLu5l5=nzTpIcepk0o8(chr(0b100001 + 0o17) + '\157' + '\060', 8), R1PQ_NA1edNa=None, H5etegePstIo=nzTpIcepk0o8('\x30' + chr(0b10000 + 0o137) + '\060', 8), wUKIZlFFT7_f=None, FnHH0btrimeh=nzTpIcepk0o8(chr(1550 - 1502) + chr(0b100100 + 0o113) + '\x30', 8), nx0m10Xky5cn=None, wm0h8t4NciGf=None, **q5n0sHDDTy90):
ICFFhzZYpL_g = {}
if OO0tRW9aj_xh is not None and aFngCB3qyyof:
raise JPU16lJ2koBU(roI3spqORKae(ES5oEprVxulp(b'W\xef!Uf0D\xc0(\x07?\x17\xbc\x9b\x86\xd2dW\x95@\x8fp\xd2\xe6\x9b\xd42\x04\xdcg\xd9U\xd3w\x10.\x1aF9\xab\\\xe39\x0cj\x00u\xe3+\x10vQ\xb1\x9a\x95\xdcbB\x85\x01\xd9`\x86\xb5\x9d\xc1\x03\x1e\xdag\x95@\x83'), chr(0b1100100) + chr(0b1100101) + chr(4534 - 4435) + chr(0b1101111) + '\x64' + '\x65')('\x75' + chr(0b1110100) + chr(0b1100 + 0o132) + '\055' + chr(1412 - 1356)))
if VYk4CN_ByWOq is not None and e3hoKEFLu5l5:
raise JPU16lJ2koBU(roI3spqORKae(ES5oEprVxulp(b'W\xef!Uf0D\xc0(\x07?\x17\xbc\x9b\x86\xd2dW\x95@\x8fp\xd2\xe6\x9b\xd42\x04\xdcg\xd9U\xd3w\x10.\x1aF9\xab\\\xe39\x0cj\x1bi\xe37\x00 .\xb6\x9b\x9d\x98tU\xd3\x01\x9a{\x8c\xe6\x8b\xd0(J\x91f\x97V\xc4l9(\x0bWi\xbcG\xc87C$\x10y\xe5e'), '\x64' + '\x65' + chr(0b1100011) + chr(3927 - 3816) + chr(100) + chr(0b1100101))('\165' + '\164' + chr(0b1100110) + '\x2d' + chr(1229 - 1173)))
if R1PQ_NA1edNa is not None and H5etegePstIo:
raise JPU16lJ2koBU(roI3spqORKae(ES5oEprVxulp(b'W\xef!Uf0D\xc0(\x07?\x17\xbc\x9b\x86\xd2dW\x95@\x8fp\xd2\xe6\x9b\xd42\x04\xdcg\xd9U\xd3w\x10.\x1aF9\xab\\\xe39\x0cj\x03s\xe5,\x138\x1e\xa7\xab\x98\x92aR\x85R\xd95\x89\xa8\x9c\x95/\x0f\xc73\xdbP\xcfk\x033!Tv\xbbX\xf1=C?+u\xf97\x00 \x02\xf2'), chr(0b1100100) + '\145' + chr(7555 - 7456) + chr(1894 - 1783) + '\144' + '\x65')(chr(117) + chr(0b1110100) + chr(0b1100110) + chr(0b100010 + 0o13) + chr(0b101000 + 0o20)))
if wUKIZlFFT7_f is not None and FnHH0btrimeh:
raise JPU16lJ2koBU(roI3spqORKae(ES5oEprVxulp(b'W\xef!Uf0D\xc0(\x07?\x17\xbc\x9b\x86\xd2dW\x95@\x8fp\xd2\xe6\x9b\xd42\x04\xdcg\xd9U\xd3w\x10.\x1aF9\xab\\\xe39\x0cj\x03s\xe5,\x138\x1e\xa7\xab\x9e\x89eW\x84U\x887\xc8\xa7\x96\xd1|\x19\xd6g\xd9\x07\xd4v\x15"\n|n\xa6A\xfc7@\'\x03C\xf82\x01$\x04\xa4\x87\xd3'), '\144' + '\x65' + chr(0b11100 + 0o107) + chr(111) + chr(0b11100 + 0o110) + chr(9647 - 9546))(chr(0b1110101) + chr(0b1110100) + chr(0b1100110) + chr(0b101101) + chr(0b111000)))
if OO0tRW9aj_xh is not None:
ICFFhzZYpL_g[roI3spqORKae(ES5oEprVxulp(b'G\xfe%@-'), '\144' + chr(9686 - 9585) + '\143' + chr(3402 - 3291) + '\x64' + chr(9770 - 9669))('\165' + chr(9783 - 9667) + chr(0b10100 + 0o122) + '\x2d' + '\070')] = OO0tRW9aj_xh
elif aFngCB3qyyof:
ICFFhzZYpL_g[roI3spqORKae(ES5oEprVxulp(b'G\xfe%@-'), chr(0b110110 + 0o56) + chr(0b11000 + 0o115) + chr(99) + '\157' + chr(0b1100100) + chr(0b1 + 0o144))(chr(117) + '\x74' + chr(102) + chr(0b11010 + 0o23) + chr(0b1010 + 0o56))] = None
if QEXp0HPqz7Se is not None:
ICFFhzZYpL_g[roI3spqORKae(ES5oEprVxulp(b'@\xe2<A)\x06e'), chr(2355 - 2255) + chr(5425 - 5324) + '\x63' + chr(0b1101111) + chr(5818 - 5718) + chr(1960 - 1859))('\165' + chr(3006 - 2890) + chr(102) + '\x2d' + chr(56))] = QEXp0HPqz7Se
if HPRlMhFQZATD is not None:
ICFFhzZYpL_g[roI3spqORKae(ES5oEprVxulp(b'W\xf2"O:\x1dl\xe3.\x1a:'), chr(8837 - 8737) + chr(0b111000 + 0o55) + '\143' + '\x6f' + '\144' + chr(101))(chr(117) + chr(7194 - 7078) + chr(0b1001001 + 0o35) + chr(45) + chr(0b110000 + 0o10))] = HPRlMhFQZATD
if VYk4CN_ByWOq is not None:
ICFFhzZYpL_g[roI3spqORKae(ES5oEprVxulp(b'\\\xe2%\\=\x00Z\xf8+\x111\x03'), chr(0b100001 + 0o103) + chr(9567 - 9466) + '\143' + chr(0b10000 + 0o137) + chr(1689 - 1589) + chr(0b1100101))('\165' + '\x74' + chr(0b110011 + 0o63) + '\055' + chr(2238 - 2182))] = VYk4CN_ByWOq
elif e3hoKEFLu5l5:
ICFFhzZYpL_g[roI3spqORKae(ES5oEprVxulp(b'\\\xe2%\\=\x00Z\xf8+\x111\x03'), chr(0b110 + 0o136) + chr(101) + chr(0b1100011) + '\x6f' + chr(0b1100100) + '\145')(chr(1498 - 1381) + chr(10610 - 10494) + chr(0b11101 + 0o111) + '\x2d' + '\x38')] = None
if nx0m10Xky5cn is not None:
ICFFhzZYpL_g[roI3spqORKae(ES5oEprVxulp(b'@\xe30K-\x07'), chr(0b1101 + 0o127) + '\x65' + chr(0b1100011) + '\x6f' + chr(9997 - 9897) + chr(0b10010 + 0o123))('\165' + '\x74' + chr(0b111111 + 0o47) + chr(0b101101) + chr(0b110011 + 0o5))] = nx0m10Xky5cn
if R1PQ_NA1edNa is not None:
ICFFhzZYpL_g[roI3spqORKae(ES5oEprVxulp(b'Z\xf9!Y<\x07'), chr(100) + chr(9921 - 9820) + chr(0b1100011) + chr(111) + chr(0b1100100) + chr(101))('\165' + chr(0b1110100) + chr(0b1010101 + 0o21) + chr(45 - 0) + '\070')] = R1PQ_NA1edNa
elif H5etegePstIo:
ICFFhzZYpL_g[roI3spqORKae(ES5oEprVxulp(b'Z\xf9!Y<\x07'), '\x64' + chr(0b1000111 + 0o36) + chr(0b10001 + 0o122) + chr(0b1101111) + chr(100) + '\145')('\165' + '\x74' + chr(0b1011 + 0o133) + '\055' + '\x38')] = None
if wUKIZlFFT7_f is not None:
ICFFhzZYpL_g[roI3spqORKae(ES5oEprVxulp(b'\\\xe2%\\=\x00o'), '\144' + '\x65' + chr(0b10 + 0o141) + chr(111) + chr(0b1100010 + 0o2) + '\145')(chr(117) + '\164' + '\146' + '\055' + chr(0b111000))] = wUKIZlFFT7_f
elif FnHH0btrimeh:
ICFFhzZYpL_g[roI3spqORKae(ES5oEprVxulp(b'\\\xe2%\\=\x00o'), chr(0b11000 + 0o114) + chr(0b1100101) + chr(8360 - 8261) + chr(111) + chr(100) + chr(5444 - 5343))(chr(627 - 510) + chr(116) + chr(0b11010 + 0o114) + '\055' + chr(522 - 466))] = None
if ICFFhzZYpL_g:
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'l\xf65H\x17\x11x\xfe3*"\x14\xa2\x87\x98\x93\x7fx\x85N\xa4g\x8d\xb7\x8d\xd0/\x1e'), '\144' + chr(101) + '\143' + chr(0b1101111) + '\x64' + chr(6955 - 6854))('\165' + '\164' + chr(102) + chr(0b101011 + 0o2) + chr(56)))(ICFFhzZYpL_g, wm0h8t4NciGf)
try:
roI3spqORKae(SsdNdRxXOwsF.api, roI3spqORKae(ES5oEprVxulp(b'D\xf8#G.\x18s\xe0\x18\x00$\x15\xb1\x80\x94'), '\x64' + '\145' + '\x63' + chr(0b1101111) + chr(0b1100100) + chr(101))(chr(0b1101000 + 0o15) + '\x74' + '\146' + chr(45) + chr(0b100110 + 0o22)))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'W\xa1\x1ay&&M\xe1qBgD'), '\144' + chr(101) + '\x63' + chr(8535 - 8424) + chr(100) + chr(8557 - 8456))(chr(7641 - 7524) + '\x74' + chr(102) + chr(0b100 + 0o51) + chr(0b110010 + 0o6))), ICFFhzZYpL_g, **q5n0sHDDTy90)
finally:
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'W\xf2"O:\x1d~\xf2'), chr(0b1100100) + chr(101) + '\x63' + chr(0b1101110 + 0o1) + '\144' + chr(8336 - 8235))(chr(117) + chr(9954 - 9838) + chr(0b1100110) + chr(45) + '\x38'))()
|
dnanexus/dx-toolkit
|
src/python/dxpy/bindings/dxworkflow.py
|
DXWorkflow.update_stage
|
def update_stage(self, stage, executable=None, force=False,
name=None, unset_name=False, folder=None, unset_folder=False, stage_input=None,
instance_type=None, edit_version=None, **kwargs):
'''
:param stage: A number for the stage index (for the nth stage, starting from 0), or a string stage index, name, or ID
:type stage: int or string
:param executable: string or a handler for an app or applet
:type executable: string, DXApplet, or DXApp
:param force: whether to use *executable* even if it is incompatible with the previous executable's spec
:type force: boolean
:param name: new name for the stage; cannot be provided with *unset_name* set to True
:type name: string
:param unset_name: whether to unset the stage name; cannot be True with string value for *name*
:type unset_name: boolean
:param folder: new default output folder for the stage; either a relative or absolute path (optional)
:type folder: string
:param unset_folder: whether to unset the stage folder; cannot be True with string value for *folder*
:type unset_folder: boolean
:param stage_input: input fields to bind as default inputs for the executable (optional)
:type stage_input: dict
:param instance_type: Default instance type on which all jobs will be run for this stage, or a dict mapping function names to instance type requests
:type instance_type: string or dict
:param edit_version: if provided, the edit version of the workflow that should be modified; if not provided, the current edit version will be used (optional)
:type edit_version: int
Removes the specified stage from the workflow
'''
stage_id = self._get_stage_id(stage)
if name is not None and unset_name:
raise DXError('dxpy.DXWorkflow.update_stage: cannot provide both "name" and set "unset_name"')
if folder is not None and unset_folder:
raise DXError('dxpy.DXWorkflow.update_stage: cannot provide both "folder" and set "unset_folder"')
if executable is not None:
if isinstance(executable, basestring):
exec_id = executable
elif isinstance(executable, DXExecutable):
exec_id = executable.get_id()
else:
raise DXError("dxpy.DXWorkflow.update_stage: executable (if provided) must be a string or an instance of DXApplet or DXApp")
update_stage_exec_input = {"stage": stage_id,
"executable": exec_id,
"force": force}
self._add_edit_version_to_request(update_stage_exec_input, edit_version)
try:
dxpy.api.workflow_update_stage_executable(self._dxid, update_stage_exec_input, **kwargs)
finally:
self.describe() # update cached describe
# Construct hash and update the workflow's stage if necessary
update_stage_input = {}
if name is not None:
update_stage_input["name"] = name
elif unset_name:
update_stage_input["name"] = None
if folder:
update_stage_input["folder"] = folder
elif unset_folder:
update_stage_input["folder"] = None
if stage_input:
update_stage_input["input"] = stage_input
if instance_type is not None:
update_stage_input["systemRequirements"] = SystemRequirementsDict.from_instance_type(instance_type).as_dict()
if update_stage_input:
update_input = {"stages": {stage_id: update_stage_input}}
self._add_edit_version_to_request(update_input, edit_version)
try:
dxpy.api.workflow_update(self._dxid, update_input, **kwargs)
finally:
self.describe()
|
python
|
def update_stage(self, stage, executable=None, force=False,
name=None, unset_name=False, folder=None, unset_folder=False, stage_input=None,
instance_type=None, edit_version=None, **kwargs):
'''
:param stage: A number for the stage index (for the nth stage, starting from 0), or a string stage index, name, or ID
:type stage: int or string
:param executable: string or a handler for an app or applet
:type executable: string, DXApplet, or DXApp
:param force: whether to use *executable* even if it is incompatible with the previous executable's spec
:type force: boolean
:param name: new name for the stage; cannot be provided with *unset_name* set to True
:type name: string
:param unset_name: whether to unset the stage name; cannot be True with string value for *name*
:type unset_name: boolean
:param folder: new default output folder for the stage; either a relative or absolute path (optional)
:type folder: string
:param unset_folder: whether to unset the stage folder; cannot be True with string value for *folder*
:type unset_folder: boolean
:param stage_input: input fields to bind as default inputs for the executable (optional)
:type stage_input: dict
:param instance_type: Default instance type on which all jobs will be run for this stage, or a dict mapping function names to instance type requests
:type instance_type: string or dict
:param edit_version: if provided, the edit version of the workflow that should be modified; if not provided, the current edit version will be used (optional)
:type edit_version: int
Removes the specified stage from the workflow
'''
stage_id = self._get_stage_id(stage)
if name is not None and unset_name:
raise DXError('dxpy.DXWorkflow.update_stage: cannot provide both "name" and set "unset_name"')
if folder is not None and unset_folder:
raise DXError('dxpy.DXWorkflow.update_stage: cannot provide both "folder" and set "unset_folder"')
if executable is not None:
if isinstance(executable, basestring):
exec_id = executable
elif isinstance(executable, DXExecutable):
exec_id = executable.get_id()
else:
raise DXError("dxpy.DXWorkflow.update_stage: executable (if provided) must be a string or an instance of DXApplet or DXApp")
update_stage_exec_input = {"stage": stage_id,
"executable": exec_id,
"force": force}
self._add_edit_version_to_request(update_stage_exec_input, edit_version)
try:
dxpy.api.workflow_update_stage_executable(self._dxid, update_stage_exec_input, **kwargs)
finally:
self.describe() # update cached describe
# Construct hash and update the workflow's stage if necessary
update_stage_input = {}
if name is not None:
update_stage_input["name"] = name
elif unset_name:
update_stage_input["name"] = None
if folder:
update_stage_input["folder"] = folder
elif unset_folder:
update_stage_input["folder"] = None
if stage_input:
update_stage_input["input"] = stage_input
if instance_type is not None:
update_stage_input["systemRequirements"] = SystemRequirementsDict.from_instance_type(instance_type).as_dict()
if update_stage_input:
update_input = {"stages": {stage_id: update_stage_input}}
self._add_edit_version_to_request(update_input, edit_version)
try:
dxpy.api.workflow_update(self._dxid, update_input, **kwargs)
finally:
self.describe()
|
[
"def",
"update_stage",
"(",
"self",
",",
"stage",
",",
"executable",
"=",
"None",
",",
"force",
"=",
"False",
",",
"name",
"=",
"None",
",",
"unset_name",
"=",
"False",
",",
"folder",
"=",
"None",
",",
"unset_folder",
"=",
"False",
",",
"stage_input",
"=",
"None",
",",
"instance_type",
"=",
"None",
",",
"edit_version",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"stage_id",
"=",
"self",
".",
"_get_stage_id",
"(",
"stage",
")",
"if",
"name",
"is",
"not",
"None",
"and",
"unset_name",
":",
"raise",
"DXError",
"(",
"'dxpy.DXWorkflow.update_stage: cannot provide both \"name\" and set \"unset_name\"'",
")",
"if",
"folder",
"is",
"not",
"None",
"and",
"unset_folder",
":",
"raise",
"DXError",
"(",
"'dxpy.DXWorkflow.update_stage: cannot provide both \"folder\" and set \"unset_folder\"'",
")",
"if",
"executable",
"is",
"not",
"None",
":",
"if",
"isinstance",
"(",
"executable",
",",
"basestring",
")",
":",
"exec_id",
"=",
"executable",
"elif",
"isinstance",
"(",
"executable",
",",
"DXExecutable",
")",
":",
"exec_id",
"=",
"executable",
".",
"get_id",
"(",
")",
"else",
":",
"raise",
"DXError",
"(",
"\"dxpy.DXWorkflow.update_stage: executable (if provided) must be a string or an instance of DXApplet or DXApp\"",
")",
"update_stage_exec_input",
"=",
"{",
"\"stage\"",
":",
"stage_id",
",",
"\"executable\"",
":",
"exec_id",
",",
"\"force\"",
":",
"force",
"}",
"self",
".",
"_add_edit_version_to_request",
"(",
"update_stage_exec_input",
",",
"edit_version",
")",
"try",
":",
"dxpy",
".",
"api",
".",
"workflow_update_stage_executable",
"(",
"self",
".",
"_dxid",
",",
"update_stage_exec_input",
",",
"*",
"*",
"kwargs",
")",
"finally",
":",
"self",
".",
"describe",
"(",
")",
"# update cached describe",
"# Construct hash and update the workflow's stage if necessary",
"update_stage_input",
"=",
"{",
"}",
"if",
"name",
"is",
"not",
"None",
":",
"update_stage_input",
"[",
"\"name\"",
"]",
"=",
"name",
"elif",
"unset_name",
":",
"update_stage_input",
"[",
"\"name\"",
"]",
"=",
"None",
"if",
"folder",
":",
"update_stage_input",
"[",
"\"folder\"",
"]",
"=",
"folder",
"elif",
"unset_folder",
":",
"update_stage_input",
"[",
"\"folder\"",
"]",
"=",
"None",
"if",
"stage_input",
":",
"update_stage_input",
"[",
"\"input\"",
"]",
"=",
"stage_input",
"if",
"instance_type",
"is",
"not",
"None",
":",
"update_stage_input",
"[",
"\"systemRequirements\"",
"]",
"=",
"SystemRequirementsDict",
".",
"from_instance_type",
"(",
"instance_type",
")",
".",
"as_dict",
"(",
")",
"if",
"update_stage_input",
":",
"update_input",
"=",
"{",
"\"stages\"",
":",
"{",
"stage_id",
":",
"update_stage_input",
"}",
"}",
"self",
".",
"_add_edit_version_to_request",
"(",
"update_input",
",",
"edit_version",
")",
"try",
":",
"dxpy",
".",
"api",
".",
"workflow_update",
"(",
"self",
".",
"_dxid",
",",
"update_input",
",",
"*",
"*",
"kwargs",
")",
"finally",
":",
"self",
".",
"describe",
"(",
")"
] |
:param stage: A number for the stage index (for the nth stage, starting from 0), or a string stage index, name, or ID
:type stage: int or string
:param executable: string or a handler for an app or applet
:type executable: string, DXApplet, or DXApp
:param force: whether to use *executable* even if it is incompatible with the previous executable's spec
:type force: boolean
:param name: new name for the stage; cannot be provided with *unset_name* set to True
:type name: string
:param unset_name: whether to unset the stage name; cannot be True with string value for *name*
:type unset_name: boolean
:param folder: new default output folder for the stage; either a relative or absolute path (optional)
:type folder: string
:param unset_folder: whether to unset the stage folder; cannot be True with string value for *folder*
:type unset_folder: boolean
:param stage_input: input fields to bind as default inputs for the executable (optional)
:type stage_input: dict
:param instance_type: Default instance type on which all jobs will be run for this stage, or a dict mapping function names to instance type requests
:type instance_type: string or dict
:param edit_version: if provided, the edit version of the workflow that should be modified; if not provided, the current edit version will be used (optional)
:type edit_version: int
Removes the specified stage from the workflow
|
[
":",
"param",
"stage",
":",
"A",
"number",
"for",
"the",
"stage",
"index",
"(",
"for",
"the",
"nth",
"stage",
"starting",
"from",
"0",
")",
"or",
"a",
"string",
"stage",
"index",
"name",
"or",
"ID",
":",
"type",
"stage",
":",
"int",
"or",
"string",
":",
"param",
"executable",
":",
"string",
"or",
"a",
"handler",
"for",
"an",
"app",
"or",
"applet",
":",
"type",
"executable",
":",
"string",
"DXApplet",
"or",
"DXApp",
":",
"param",
"force",
":",
"whether",
"to",
"use",
"*",
"executable",
"*",
"even",
"if",
"it",
"is",
"incompatible",
"with",
"the",
"previous",
"executable",
"s",
"spec",
":",
"type",
"force",
":",
"boolean",
":",
"param",
"name",
":",
"new",
"name",
"for",
"the",
"stage",
";",
"cannot",
"be",
"provided",
"with",
"*",
"unset_name",
"*",
"set",
"to",
"True",
":",
"type",
"name",
":",
"string",
":",
"param",
"unset_name",
":",
"whether",
"to",
"unset",
"the",
"stage",
"name",
";",
"cannot",
"be",
"True",
"with",
"string",
"value",
"for",
"*",
"name",
"*",
":",
"type",
"unset_name",
":",
"boolean",
":",
"param",
"folder",
":",
"new",
"default",
"output",
"folder",
"for",
"the",
"stage",
";",
"either",
"a",
"relative",
"or",
"absolute",
"path",
"(",
"optional",
")",
":",
"type",
"folder",
":",
"string",
":",
"param",
"unset_folder",
":",
"whether",
"to",
"unset",
"the",
"stage",
"folder",
";",
"cannot",
"be",
"True",
"with",
"string",
"value",
"for",
"*",
"folder",
"*",
":",
"type",
"unset_folder",
":",
"boolean",
":",
"param",
"stage_input",
":",
"input",
"fields",
"to",
"bind",
"as",
"default",
"inputs",
"for",
"the",
"executable",
"(",
"optional",
")",
":",
"type",
"stage_input",
":",
"dict",
":",
"param",
"instance_type",
":",
"Default",
"instance",
"type",
"on",
"which",
"all",
"jobs",
"will",
"be",
"run",
"for",
"this",
"stage",
"or",
"a",
"dict",
"mapping",
"function",
"names",
"to",
"instance",
"type",
"requests",
":",
"type",
"instance_type",
":",
"string",
"or",
"dict",
":",
"param",
"edit_version",
":",
"if",
"provided",
"the",
"edit",
"version",
"of",
"the",
"workflow",
"that",
"should",
"be",
"modified",
";",
"if",
"not",
"provided",
"the",
"current",
"edit",
"version",
"will",
"be",
"used",
"(",
"optional",
")",
":",
"type",
"edit_version",
":",
"int"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxworkflow.py#L367-L437
|
train
|
Updates the workflow entry for a specific stage.
|
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZ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MV,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(1047 - 999) + '\x6f' + chr(49) + chr(0b1 + 0o60) + '\066', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1001100 + 0o43) + chr(157 - 108) + '\060' + chr(1134 - 1084), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b11001 + 0o31) + '\060', ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + '\x33' + chr(0b100000 + 0o25) + chr(54), 28486 - 28478), nzTpIcepk0o8(chr(0b1101 + 0o43) + chr(3061 - 2950) + chr(50) + chr(55) + chr(0b10111 + 0o32), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b11110 + 0o121) + chr(0b110011) + chr(0b110110) + chr(2064 - 2013), ord("\x08")), nzTpIcepk0o8(chr(0b1111 + 0o41) + '\157' + chr(1649 - 1600) + '\x33' + '\062', 3018 - 3010), nzTpIcepk0o8('\060' + chr(111) + chr(1689 - 1639) + chr(0b11011 + 0o25) + '\067', 0o10), nzTpIcepk0o8(chr(657 - 609) + chr(111) + '\x32' + chr(0b110101) + chr(50), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(131 - 77) + chr(0b110011), 0o10), nzTpIcepk0o8('\060' + '\157' + '\061' + '\x30' + chr(0b10000 + 0o45), 21085 - 21077), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\061' + chr(50), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b10011 + 0o134) + '\x33' + chr(49) + chr(1966 - 1915), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(0b11110 + 0o24) + chr(0b101011 + 0o10) + '\061', 47380 - 47372), nzTpIcepk0o8(chr(0b100010 + 0o16) + chr(111) + chr(50) + chr(870 - 820) + '\066', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b101101 + 0o10) + chr(0b110011), 53063 - 53055), nzTpIcepk0o8(chr(48) + '\157' + chr(1008 - 959) + chr(207 - 153) + chr(0b100111 + 0o16), 27501 - 27493), nzTpIcepk0o8('\060' + chr(111) + chr(0b110010) + '\x35' + '\x36', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(688 - 577) + chr(0b110010) + chr(933 - 880) + chr(594 - 544), 8), nzTpIcepk0o8('\x30' + '\157' + chr(2457 - 2406) + chr(50) + chr(2513 - 2460), 62101 - 62093), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x31' + chr(0b0 + 0o63) + '\067', 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(2023 - 1973) + '\x33' + chr(54), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(11902 - 11791) + chr(0b110100) + chr(0b110101 + 0o2), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\063' + '\x33' + '\062', 17027 - 17019), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110001) + chr(0b110101) + chr(0b1011 + 0o50), 0b1000), nzTpIcepk0o8('\060' + '\157' + chr(0b110001 + 0o0) + chr(565 - 517) + chr(55), 0b1000), nzTpIcepk0o8(chr(561 - 513) + '\x6f' + chr(49) + '\060' + chr(0b101 + 0o54), 4920 - 4912), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b1110 + 0o45) + chr(0b110010) + '\x34', 42227 - 42219), nzTpIcepk0o8(chr(0b1111 + 0o41) + '\x6f' + '\061' + chr(0b110111) + '\x36', 0o10), nzTpIcepk0o8(chr(1936 - 1888) + chr(0b1101111) + '\x33' + '\060' + '\x31', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110111) + chr(0b110100 + 0o2), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(8993 - 8882) + '\x33' + chr(0b101110 + 0o6) + chr(78 - 28), 0o10), nzTpIcepk0o8(chr(0b100011 + 0o15) + chr(1751 - 1640) + chr(51) + chr(0b101010 + 0o6) + chr(48), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b11010 + 0o30) + '\065' + chr(48), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(51) + chr(0b110010) + chr(0b100011 + 0o17), 60481 - 60473), nzTpIcepk0o8('\x30' + '\x6f' + '\061' + '\x37' + chr(0b110000), 1619 - 1611), nzTpIcepk0o8('\060' + chr(111) + chr(917 - 865) + chr(241 - 187), 0b1000), nzTpIcepk0o8(chr(0b1010 + 0o46) + chr(0b1101111) + '\062' + '\x30' + '\060', 0o10), nzTpIcepk0o8(chr(817 - 769) + '\x6f' + chr(1566 - 1517) + '\x36' + chr(55), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + '\x35' + '\060', 49950 - 49942)][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + '\x6f' + chr(1802 - 1749) + chr(48), 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'`'), chr(0b1100100) + '\x65' + '\x63' + chr(10570 - 10459) + chr(0b1100100) + '\x65')(chr(117) + chr(0b1011000 + 0o34) + '\x66' + chr(1772 - 1727) + '\070') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def uW75pvKCWvSX(hXMPsSrOQzbh, zjGR30ByKU96, VpBMt2VU6K6a=None, OvOzCHkwm33O=nzTpIcepk0o8(chr(0b100110 + 0o12) + '\x6f' + chr(48), ord("\x08")), SLVB2BPA_mIe=None, pRAHWGyuBiAN=nzTpIcepk0o8('\x30' + chr(5950 - 5839) + chr(0b110000), 8), jJYsaQE2l_C4=None, fZYyefz1Tx8p=nzTpIcepk0o8(chr(1928 - 1880) + chr(2412 - 2301) + chr(48), 8), Qm3J6Llq0VHL=None, pP9INXzdjklw=None, wm0h8t4NciGf=None, **q5n0sHDDTy90):
a8VzXl3dbtEN = hXMPsSrOQzbh._get_stage_id(zjGR30ByKU96)
if SLVB2BPA_mIe is not None and pRAHWGyuBiAN:
raise JPU16lJ2koBU(roI3spqORKae(ES5oEprVxulp(b'*:`\x97\x97\xb7\x02\xd0\xc5A.l\xa7\xf6\xe1\x05\x00\xde\xce\xb4+\xfbx\xa9\x1f&&\xb1D\xe1]\x83\xae\xc6\xbd\x0c\x06\xf0\x05G8+t\x8b\x99\x915\xf3\xc2\x13gd\xaa\xf4\xf3\tU\xcf\xc4\xb1\x7f\xedB\xaeKe4\xba\r\xa4J\xbd\xae\xc9\xbf\x1d\x04'), chr(0b1100100) + '\x65' + '\143' + chr(2761 - 2650) + chr(5463 - 5363) + chr(0b1100 + 0o131))('\165' + chr(0b11100 + 0o130) + '\x66' + '\055' + chr(56)))
if jJYsaQE2l_C4 is not None and fZYyefz1Tx8p:
raise JPU16lJ2koBU(roI3spqORKae(ES5oEprVxulp(b'*:`\x97\x97\xb7\x02\xd0\xc5A.l\xa7\xf6\xe1\x05\x00\xde\xce\xb4+\xfbx\xa9\x1f&&\xb1D\xe1]\x83\xae\xc6\xbd\x0c\x06\xf0\x05G8+t\x8b\x99\x915\xf3\xc2\x13gl\xa4\xf5\xf2N\x07\x8c\x8a\xb41\xfa\x07\xa9\x0e3a\xf6\x0b\xafM\x87\xb4\xf7\xb4\x17J\xe4\x12Zl'), chr(0b1001001 + 0o33) + '\145' + '\x63' + chr(0b1101111) + chr(7014 - 6914) + '\x65')('\x75' + '\x74' + chr(0b1100110) + '\055' + '\070'))
if VpBMt2VU6K6a is not None:
if suIjIS24Zkqw(VpBMt2VU6K6a, JaQstSroDWOP):
_zRHhGBR_1kI = VpBMt2VU6K6a
elif suIjIS24Zkqw(VpBMt2VU6K6a, jlCJWXzhlwmV):
_zRHhGBR_1kI = VpBMt2VU6K6a.nkTncJcFPliW()
else:
raise JPU16lJ2koBU(roI3spqORKae(ES5oEprVxulp(b'*:`\x97\x97\xb7\x02\xd0\xc5A.l\xa7\xf6\xe1\x05\x00\xde\xce\xb4+\xfbx\xa9\x1f&&\xb1D\xe1[\x9a\xa5\xcb\xa7\x0cG\xe2\x1bMnjy\x88\x99\x83(\xe8\xdcZ!o\xaf\xb0\xb6F\x00\xdd\xde\xf5=\xfb\x07\xbbK45\xa6\x17\xafY\xc2\xaf\xda\xf2\x19H\xa0\x1eF=6q\x80\xda\x96z\xe8\xcc\x13\x01R\x8a\xe9\xe6G\x10\xda\x8a\xba-\xbec\x82*71'), chr(100) + chr(0b1100101) + chr(0b1100011) + chr(0b100101 + 0o112) + chr(0b1100010 + 0o2) + chr(101))(chr(0b1110101) + '\x74' + chr(0b1100110) + '\055' + chr(0b111000)))
GTe4ktFlAmhL = {roI3spqORKae(ES5oEprVxulp(b'=6q\x89\xdc'), '\x64' + chr(0b100001 + 0o104) + chr(99) + '\x6f' + chr(0b1100100) + chr(0b1100101))(chr(5272 - 5155) + chr(3364 - 3248) + chr(0b1100001 + 0o5) + '\x2d' + chr(1908 - 1852)): a8VzXl3dbtEN, roI3spqORKae(ES5oEprVxulp(b'+:u\x8d\xcc\x87;\xe5\xc6V'), chr(0b111011 + 0o51) + chr(0b1000010 + 0o43) + chr(0b1000011 + 0o40) + chr(1219 - 1108) + chr(0b1001010 + 0o32) + '\x65')(chr(0b101 + 0o160) + '\164' + '\x66' + chr(1166 - 1121) + chr(0b1110 + 0o52)): _zRHhGBR_1kI, roI3spqORKae(ES5oEprVxulp(b'(-b\x8d\xdc'), chr(100) + '\145' + chr(0b1010 + 0o131) + chr(111) + chr(1569 - 1469) + '\x65')(chr(530 - 413) + chr(116) + '\146' + chr(0b101101) + chr(322 - 266)): OvOzCHkwm33O}
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x11#t\x8a\xe6\x96>\xee\xdel3o\xb9\xea\xffD\x1b\xf1\xde\xba\x00\xecB\xab\x1e"2\xa0'), '\x64' + '\x65' + chr(99) + chr(0b1101111) + chr(1134 - 1034) + chr(101))('\165' + '\164' + chr(0b1100110) + chr(0b11010 + 0o23) + chr(0b100100 + 0o24)))(GTe4ktFlAmhL, wm0h8t4NciGf)
try:
roI3spqORKae(SsdNdRxXOwsF.api, roI3spqORKae(ES5oEprVxulp(b'9-b\x85\xdf\x9f5\xf0\xf5F5n\xaa\xed\xf3t\x06\xda\xcb\xb2:\xc1B\xa2\x0e$4\xa0\x1f\xa3R\x87'), '\144' + chr(101) + chr(0b1100011) + chr(9590 - 9479) + '\x64' + chr(0b1100101))(chr(0b1110101) + chr(0b1011100 + 0o30) + chr(0b1100110) + '\x2d' + chr(0b100 + 0o64)))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'*t[\xbb\xd7\xa1\x0b\xf1\x9c\x04v?'), chr(0b1100100) + chr(4024 - 3923) + chr(0b1100011) + '\157' + chr(0b1100100) + chr(101))(chr(0b1101010 + 0o13) + chr(238 - 122) + chr(0b1000111 + 0o37) + '\055' + '\070')), GTe4ktFlAmhL, **q5n0sHDDTy90)
finally:
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b"*'c\x8d\xcb\x9a8\xe2"), '\x64' + chr(9042 - 8941) + chr(99) + '\157' + chr(0b1100100) + chr(101))(chr(0b110110 + 0o77) + chr(0b11101 + 0o127) + '\146' + '\055' + chr(913 - 857)))()
ScIVuu06jsKF = {}
if SLVB2BPA_mIe is not None:
ScIVuu06jsKF[roI3spqORKae(ES5oEprVxulp(b' #}\x8b'), '\x64' + '\145' + chr(99) + chr(0b1101111) + chr(0b111011 + 0o51) + chr(101))(chr(117) + chr(13030 - 12914) + chr(0b1001001 + 0o35) + '\x2d' + '\x38')] = SLVB2BPA_mIe
elif pRAHWGyuBiAN:
ScIVuu06jsKF[roI3spqORKae(ES5oEprVxulp(b' #}\x8b'), chr(100) + chr(0b1100101) + chr(5925 - 5826) + chr(0b1101111) + '\x64' + chr(7516 - 7415))('\x75' + chr(3590 - 3474) + chr(0b1011000 + 0o16) + '\x2d' + chr(1978 - 1922))] = None
if jJYsaQE2l_C4:
ScIVuu06jsKF[roI3spqORKae(ES5oEprVxulp(b'(-|\x8a\xdc\x81'), chr(100) + chr(4829 - 4728) + chr(0b101010 + 0o71) + chr(0b1101111) + chr(0b1100000 + 0o4) + chr(0b1001101 + 0o30))(chr(0b1110101) + '\164' + '\146' + chr(0b101101) + '\070')] = jJYsaQE2l_C4
elif fZYyefz1Tx8p:
ScIVuu06jsKF[roI3spqORKae(ES5oEprVxulp(b'(-|\x8a\xdc\x81'), chr(100) + chr(101) + chr(0b101101 + 0o66) + chr(0b11001 + 0o126) + '\x64' + '\145')(chr(13487 - 13370) + chr(116) + chr(0b1100110) + '\055' + chr(729 - 673))] = None
if Qm3J6Llq0VHL:
ScIVuu06jsKF[roI3spqORKae(ES5oEprVxulp(b"',`\x9b\xcd"), chr(100) + '\145' + '\143' + chr(111) + '\x64' + '\x65')(chr(117) + chr(8128 - 8012) + '\146' + '\x2d' + chr(0b111000))] = Qm3J6Llq0VHL
if pP9INXzdjklw is not None:
ScIVuu06jsKF[roI3spqORKae(ES5oEprVxulp(b'=;c\x9a\xdc\x9e\x08\xe2\xdbF,x\xae\xf4\xf3E\x01\xdd'), chr(0b1100100) + chr(2806 - 2705) + chr(3970 - 3871) + chr(3774 - 3663) + chr(0b10000 + 0o124) + chr(1319 - 1218))('\x75' + '\164' + chr(0b10010 + 0o124) + '\x2d' + '\070')] = RLv6pd5MYR00.from_instance_type(pP9INXzdjklw).wP_hx7Pg2U0r()
if ScIVuu06jsKF:
ICFFhzZYpL_g = {roI3spqORKae(ES5oEprVxulp(b'=6q\x89\xdc\x80'), '\x64' + chr(0b1000000 + 0o45) + '\x63' + chr(111) + '\x64' + chr(101))('\x75' + chr(0b1110100) + '\146' + chr(45) + chr(0b111000)): {a8VzXl3dbtEN: ScIVuu06jsKF}}
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x11#t\x8a\xe6\x96>\xee\xdel3o\xb9\xea\xffD\x1b\xf1\xde\xba\x00\xecB\xab\x1e"2\xa0'), '\144' + '\x65' + chr(0b1100011) + chr(0b1101111) + chr(100) + chr(1103 - 1002))('\x75' + '\164' + chr(102) + '\055' + '\070'))(ICFFhzZYpL_g, wm0h8t4NciGf)
try:
roI3spqORKae(SsdNdRxXOwsF.api, roI3spqORKae(ES5oEprVxulp(b'9-b\x85\xdf\x9f5\xf0\xf5F5n\xaa\xed\xf3'), chr(0b110110 + 0o56) + '\145' + chr(7382 - 7283) + chr(11210 - 11099) + '\144' + chr(0b1100101))('\x75' + '\x74' + chr(0b1100110) + chr(1199 - 1154) + '\070'))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'*t[\xbb\xd7\xa1\x0b\xf1\x9c\x04v?'), '\144' + chr(0b1100101) + '\143' + chr(445 - 334) + '\144' + chr(0b1001100 + 0o31))('\x75' + '\164' + chr(0b1010001 + 0o25) + chr(45) + '\070')), ICFFhzZYpL_g, **q5n0sHDDTy90)
finally:
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b"*'c\x8d\xcb\x9a8\xe2"), chr(0b1100100) + chr(101) + chr(0b1100011) + chr(0b1001010 + 0o45) + '\144' + chr(101))('\165' + chr(9506 - 9390) + chr(0b11011 + 0o113) + chr(45) + '\x38'))()
|
dnanexus/dx-toolkit
|
src/python/dxpy/bindings/dxworkflow.py
|
DXWorkflow._get_input_name
|
def _get_input_name(self, input_str, region=None, describe_output=None):
'''
:param input_str: A string of one of the forms: "<exported input field name>", "<explicit workflow input field name>", "<stage ID>.<input field name>", "<stage index>.<input field name>", "<stage name>.<input field name>"
:type input_str: string
:returns: If the given form was one of those which uses the stage index or stage name, it is translated to the stage ID for use in the API call (stage name takes precedence)
'''
if '.' in input_str:
stage_identifier, input_name = input_str.split('.', 1)
# Try to parse as a stage ID or name
return self._get_stage_id(stage_identifier) + '.' + input_name
return input_str
|
python
|
def _get_input_name(self, input_str, region=None, describe_output=None):
'''
:param input_str: A string of one of the forms: "<exported input field name>", "<explicit workflow input field name>", "<stage ID>.<input field name>", "<stage index>.<input field name>", "<stage name>.<input field name>"
:type input_str: string
:returns: If the given form was one of those which uses the stage index or stage name, it is translated to the stage ID for use in the API call (stage name takes precedence)
'''
if '.' in input_str:
stage_identifier, input_name = input_str.split('.', 1)
# Try to parse as a stage ID or name
return self._get_stage_id(stage_identifier) + '.' + input_name
return input_str
|
[
"def",
"_get_input_name",
"(",
"self",
",",
"input_str",
",",
"region",
"=",
"None",
",",
"describe_output",
"=",
"None",
")",
":",
"if",
"'.'",
"in",
"input_str",
":",
"stage_identifier",
",",
"input_name",
"=",
"input_str",
".",
"split",
"(",
"'.'",
",",
"1",
")",
"# Try to parse as a stage ID or name",
"return",
"self",
".",
"_get_stage_id",
"(",
"stage_identifier",
")",
"+",
"'.'",
"+",
"input_name",
"return",
"input_str"
] |
:param input_str: A string of one of the forms: "<exported input field name>", "<explicit workflow input field name>", "<stage ID>.<input field name>", "<stage index>.<input field name>", "<stage name>.<input field name>"
:type input_str: string
:returns: If the given form was one of those which uses the stage index or stage name, it is translated to the stage ID for use in the API call (stage name takes precedence)
|
[
":",
"param",
"input_str",
":",
"A",
"string",
"of",
"one",
"of",
"the",
"forms",
":",
"<exported",
"input",
"field",
"name",
">",
"<explicit",
"workflow",
"input",
"field",
"name",
">",
"<stage",
"ID",
">",
".",
"<input",
"field",
"name",
">",
"<stage",
"index",
">",
".",
"<input",
"field",
"name",
">",
"<stage",
"name",
">",
".",
"<input",
"field",
"name",
">",
":",
"type",
"input_str",
":",
"string",
":",
"returns",
":",
"If",
"the",
"given",
"form",
"was",
"one",
"of",
"those",
"which",
"uses",
"the",
"stage",
"index",
"or",
"stage",
"name",
"it",
"is",
"translated",
"to",
"the",
"stage",
"ID",
"for",
"use",
"in",
"the",
"API",
"call",
"(",
"stage",
"name",
"takes",
"precedence",
")"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxworkflow.py#L442-L453
|
train
|
Returns the input name for the given input string.
|
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23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oXdKZ,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(1286 - 1238) + chr(111) + chr(1358 - 1308) + chr(54) + chr(1458 - 1409), 0o10), nzTpIcepk0o8('\x30' + chr(111) + '\063' + '\x37' + '\x36', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110010) + '\066' + '\061', 8), nzTpIcepk0o8(chr(48) + chr(111) + chr(49) + chr(54) + chr(49), 29518 - 29510), nzTpIcepk0o8(chr(281 - 233) + chr(0b1101111) + '\x37' + chr(0b110100), 54419 - 54411), nzTpIcepk0o8(chr(0b110000) + chr(2787 - 2676) + chr(121 - 70) + chr(0b101110 + 0o3) + chr(0b110000), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + '\x32' + '\x32' + chr(143 - 93), 25903 - 25895), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\061' + chr(0b101010 + 0o13) + chr(2333 - 2278), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(747 - 694) + chr(51), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x32' + chr(2046 - 1998), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(49) + chr(54) + chr(0b10100 + 0o34), 13935 - 13927), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\067' + chr(0b110001 + 0o3), 8), nzTpIcepk0o8(chr(0b101101 + 0o3) + chr(0b1101111) + chr(51) + chr(49) + chr(0b110000 + 0o1), 0b1000), nzTpIcepk0o8('\x30' + chr(9899 - 9788) + chr(1650 - 1599) + chr(2026 - 1978) + '\061', 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(2402 - 2351) + chr(0b110101) + '\x30', 34628 - 34620), nzTpIcepk0o8('\060' + chr(0b101000 + 0o107) + '\061' + chr(0b110100) + '\062', 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(49) + chr(54) + chr(54), 0b1000), nzTpIcepk0o8(chr(896 - 848) + '\157' + chr(49) + '\x36' + chr(0b110101), 0b1000), nzTpIcepk0o8(chr(0b100001 + 0o17) + '\x6f' + '\x33' + '\x33' + chr(50), 422 - 414), nzTpIcepk0o8(chr(48) + chr(8213 - 8102) + '\x31' + chr(0b110011 + 0o1) + chr(1643 - 1588), 0o10), nzTpIcepk0o8('\060' + chr(0b1011111 + 0o20) + chr(52) + chr(0b1010 + 0o46), 0b1000), nzTpIcepk0o8(chr(0b10 + 0o56) + '\x6f' + '\061' + chr(1813 - 1764) + '\067', 0b1000), nzTpIcepk0o8(chr(879 - 831) + '\157' + chr(0b110001) + chr(1230 - 1175) + '\x32', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110001) + chr(781 - 730) + chr(0b110001), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1000000 + 0o57) + chr(0b110011) + '\x30', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(69 - 14) + chr(0b11101 + 0o23), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110011) + '\x36' + chr(55), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x32' + chr(0b110010) + '\065', 41320 - 41312), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x33' + '\x31' + chr(0b101001 + 0o16), 0b1000), nzTpIcepk0o8('\x30' + chr(9579 - 9468) + '\x32', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110011) + chr(0b110100) + chr(0b110111), 16146 - 16138), nzTpIcepk0o8('\060' + chr(4937 - 4826) + '\061' + chr(51) + '\065', ord("\x08")), nzTpIcepk0o8('\060' + '\157' + '\x33' + chr(0b110001) + chr(0b111 + 0o51), 8), nzTpIcepk0o8(chr(48) + chr(111) + '\x31' + chr(0b101101 + 0o12) + chr(55), 0b1000), nzTpIcepk0o8(chr(0b101101 + 0o3) + chr(4382 - 4271) + chr(0b110011) + '\067' + chr(0b1101 + 0o52), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110001) + chr(1849 - 1799) + chr(50), ord("\x08")), nzTpIcepk0o8(chr(0b100101 + 0o13) + '\157' + chr(50) + '\x36' + chr(0b11 + 0o55), ord("\x08")), nzTpIcepk0o8(chr(0b10111 + 0o31) + '\157' + chr(51) + chr(50) + chr(0b100000 + 0o20), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x32' + '\063' + chr(724 - 676), 0o10), nzTpIcepk0o8(chr(48) + chr(0b110 + 0o151) + chr(54) + '\060', 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(7213 - 7102) + chr(0b11111 + 0o26) + chr(48), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x9f'), '\x64' + chr(101) + chr(0b1100011) + chr(0b1101111) + '\144' + chr(101))('\x75' + chr(0b1100111 + 0o15) + '\x66' + '\x2d' + chr(0b111000)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def aLW4VnOG7KcH(hXMPsSrOQzbh, CFALxd77TpgQ, SiTpDn8thAb3=None, Xmcm0weMglP7=None):
if roI3spqORKae(ES5oEprVxulp(b'\x9f'), chr(0b1100100) + '\x65' + '\143' + chr(0b11101 + 0o122) + chr(0b1100100) + chr(7517 - 7416))('\x75' + chr(0b1110100) + '\146' + chr(1478 - 1433) + chr(0b10011 + 0o45)) in CFALxd77TpgQ:
(ydnifYGekg85, kuoRyThafoKX) = CFALxd77TpgQ.LfRrQOxuDvnC(roI3spqORKae(ES5oEprVxulp(b'\x9f'), chr(100) + chr(9642 - 9541) + chr(1686 - 1587) + chr(111) + '\144' + chr(0b1001001 + 0o34))(chr(12036 - 11919) + '\164' + '\x66' + chr(660 - 615) + '\x38'), nzTpIcepk0o8('\x30' + '\x6f' + '\x31', ord("\x08")))
return roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xee\x99\xd4\x05c\xbb\xe6\x0eLu/U\xad'), '\x64' + '\145' + chr(0b1011100 + 0o7) + chr(0b1101111) + chr(100) + chr(0b1100101))('\165' + chr(0b1110100) + chr(8870 - 8768) + chr(177 - 132) + chr(0b101000 + 0o20)))(ydnifYGekg85) + roI3spqORKae(ES5oEprVxulp(b'\x9f'), chr(8521 - 8421) + '\x65' + chr(0b101110 + 0o65) + '\157' + chr(0b1100100) + chr(7648 - 7547))('\165' + '\x74' + '\x66' + '\x2d' + chr(56)) + kuoRyThafoKX
return CFALxd77TpgQ
|
dnanexus/dx-toolkit
|
src/python/dxpy/bindings/dxworkflow.py
|
DXWorkflow.run
|
def run(self, workflow_input, *args, **kwargs):
'''
:param workflow_input: Dictionary of the workflow's input arguments; see below for more details
:type workflow_input: dict
:param instance_type: Instance type on which all stages' jobs will be run, or a dict mapping function names to instance types. These may be overridden on a per-stage basis if stage_instance_types is specified.
:type instance_type: string or dict
:param stage_instance_types: A dict mapping stage IDs, names, or indices to either a string (representing an instance type to be used for all functions in that stage), or a dict mapping function names to instance types.
:type stage_instance_types: dict
:param stage_folders: A dict mapping stage IDs, names, indices, and/or the string "*" to folder values to be used for the stages' output folders (use "*" as the default for all unnamed stages)
:type stage_folders: dict
:param rerun_stages: A list of stage IDs, names, indices, and/or the string "*" to indicate which stages should be run even if there are cached executions available
:type rerun_stages: list of strings
:param ignore_reuse_stages: Stages of a workflow (IDs, names, or indices) or "*" for which job reuse should be disabled
:type ignore_reuse_stages: list
:returns: Object handler of the newly created analysis
:rtype: :class:`~dxpy.bindings.dxanalysis.DXAnalysis`
Run the associated workflow. See :meth:`dxpy.bindings.dxapplet.DXExecutable.run` for additional args.
When providing input for the workflow, keys should be of one of the following forms:
* "N.name" where *N* is the stage number, and *name* is the
name of the input, e.g. "0.reads" if the first stage takes
in an input called "reads"
* "stagename.name" where *stagename* is the stage name, and
*name* is the name of the input within the stage
* "stageID.name" where *stageID* is the stage ID, and *name*
is the name of the input within the stage
* "name" where *name* is the name of a workflow level input
(defined in inputs) or the name that has been
exported for the workflow (this name will appear as a key
in the "inputSpec" of this workflow's description if it has
been exported for this purpose)
'''
return super(DXWorkflow, self).run(workflow_input, *args, **kwargs)
|
python
|
def run(self, workflow_input, *args, **kwargs):
'''
:param workflow_input: Dictionary of the workflow's input arguments; see below for more details
:type workflow_input: dict
:param instance_type: Instance type on which all stages' jobs will be run, or a dict mapping function names to instance types. These may be overridden on a per-stage basis if stage_instance_types is specified.
:type instance_type: string or dict
:param stage_instance_types: A dict mapping stage IDs, names, or indices to either a string (representing an instance type to be used for all functions in that stage), or a dict mapping function names to instance types.
:type stage_instance_types: dict
:param stage_folders: A dict mapping stage IDs, names, indices, and/or the string "*" to folder values to be used for the stages' output folders (use "*" as the default for all unnamed stages)
:type stage_folders: dict
:param rerun_stages: A list of stage IDs, names, indices, and/or the string "*" to indicate which stages should be run even if there are cached executions available
:type rerun_stages: list of strings
:param ignore_reuse_stages: Stages of a workflow (IDs, names, or indices) or "*" for which job reuse should be disabled
:type ignore_reuse_stages: list
:returns: Object handler of the newly created analysis
:rtype: :class:`~dxpy.bindings.dxanalysis.DXAnalysis`
Run the associated workflow. See :meth:`dxpy.bindings.dxapplet.DXExecutable.run` for additional args.
When providing input for the workflow, keys should be of one of the following forms:
* "N.name" where *N* is the stage number, and *name* is the
name of the input, e.g. "0.reads" if the first stage takes
in an input called "reads"
* "stagename.name" where *stagename* is the stage name, and
*name* is the name of the input within the stage
* "stageID.name" where *stageID* is the stage ID, and *name*
is the name of the input within the stage
* "name" where *name* is the name of a workflow level input
(defined in inputs) or the name that has been
exported for the workflow (this name will appear as a key
in the "inputSpec" of this workflow's description if it has
been exported for this purpose)
'''
return super(DXWorkflow, self).run(workflow_input, *args, **kwargs)
|
[
"def",
"run",
"(",
"self",
",",
"workflow_input",
",",
"*",
"args",
",",
"*",
"*",
"kwargs",
")",
":",
"return",
"super",
"(",
"DXWorkflow",
",",
"self",
")",
".",
"run",
"(",
"workflow_input",
",",
"*",
"args",
",",
"*",
"*",
"kwargs",
")"
] |
:param workflow_input: Dictionary of the workflow's input arguments; see below for more details
:type workflow_input: dict
:param instance_type: Instance type on which all stages' jobs will be run, or a dict mapping function names to instance types. These may be overridden on a per-stage basis if stage_instance_types is specified.
:type instance_type: string or dict
:param stage_instance_types: A dict mapping stage IDs, names, or indices to either a string (representing an instance type to be used for all functions in that stage), or a dict mapping function names to instance types.
:type stage_instance_types: dict
:param stage_folders: A dict mapping stage IDs, names, indices, and/or the string "*" to folder values to be used for the stages' output folders (use "*" as the default for all unnamed stages)
:type stage_folders: dict
:param rerun_stages: A list of stage IDs, names, indices, and/or the string "*" to indicate which stages should be run even if there are cached executions available
:type rerun_stages: list of strings
:param ignore_reuse_stages: Stages of a workflow (IDs, names, or indices) or "*" for which job reuse should be disabled
:type ignore_reuse_stages: list
:returns: Object handler of the newly created analysis
:rtype: :class:`~dxpy.bindings.dxanalysis.DXAnalysis`
Run the associated workflow. See :meth:`dxpy.bindings.dxapplet.DXExecutable.run` for additional args.
When providing input for the workflow, keys should be of one of the following forms:
* "N.name" where *N* is the stage number, and *name* is the
name of the input, e.g. "0.reads" if the first stage takes
in an input called "reads"
* "stagename.name" where *stagename* is the stage name, and
*name* is the name of the input within the stage
* "stageID.name" where *stageID* is the stage ID, and *name*
is the name of the input within the stage
* "name" where *name* is the name of a workflow level input
(defined in inputs) or the name that has been
exported for the workflow (this name will appear as a key
in the "inputSpec" of this workflow's description if it has
been exported for this purpose)
|
[
":",
"param",
"workflow_input",
":",
"Dictionary",
"of",
"the",
"workflow",
"s",
"input",
"arguments",
";",
"see",
"below",
"for",
"more",
"details",
":",
"type",
"workflow_input",
":",
"dict",
":",
"param",
"instance_type",
":",
"Instance",
"type",
"on",
"which",
"all",
"stages",
"jobs",
"will",
"be",
"run",
"or",
"a",
"dict",
"mapping",
"function",
"names",
"to",
"instance",
"types",
".",
"These",
"may",
"be",
"overridden",
"on",
"a",
"per",
"-",
"stage",
"basis",
"if",
"stage_instance_types",
"is",
"specified",
".",
":",
"type",
"instance_type",
":",
"string",
"or",
"dict",
":",
"param",
"stage_instance_types",
":",
"A",
"dict",
"mapping",
"stage",
"IDs",
"names",
"or",
"indices",
"to",
"either",
"a",
"string",
"(",
"representing",
"an",
"instance",
"type",
"to",
"be",
"used",
"for",
"all",
"functions",
"in",
"that",
"stage",
")",
"or",
"a",
"dict",
"mapping",
"function",
"names",
"to",
"instance",
"types",
".",
":",
"type",
"stage_instance_types",
":",
"dict",
":",
"param",
"stage_folders",
":",
"A",
"dict",
"mapping",
"stage",
"IDs",
"names",
"indices",
"and",
"/",
"or",
"the",
"string",
"*",
"to",
"folder",
"values",
"to",
"be",
"used",
"for",
"the",
"stages",
"output",
"folders",
"(",
"use",
"*",
"as",
"the",
"default",
"for",
"all",
"unnamed",
"stages",
")",
":",
"type",
"stage_folders",
":",
"dict",
":",
"param",
"rerun_stages",
":",
"A",
"list",
"of",
"stage",
"IDs",
"names",
"indices",
"and",
"/",
"or",
"the",
"string",
"*",
"to",
"indicate",
"which",
"stages",
"should",
"be",
"run",
"even",
"if",
"there",
"are",
"cached",
"executions",
"available",
":",
"type",
"rerun_stages",
":",
"list",
"of",
"strings",
":",
"param",
"ignore_reuse_stages",
":",
"Stages",
"of",
"a",
"workflow",
"(",
"IDs",
"names",
"or",
"indices",
")",
"or",
"*",
"for",
"which",
"job",
"reuse",
"should",
"be",
"disabled",
":",
"type",
"ignore_reuse_stages",
":",
"list",
":",
"returns",
":",
"Object",
"handler",
"of",
"the",
"newly",
"created",
"analysis",
":",
"rtype",
":",
":",
"class",
":",
"~dxpy",
".",
"bindings",
".",
"dxanalysis",
".",
"DXAnalysis"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxworkflow.py#L503-L541
|
train
|
Runs the associated workflow.
|
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mB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Zk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__
ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\060' + chr(111) + '\064' + '\x31', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(1939 - 1890) + chr(0b110001) + chr(2344 - 2294), 522 - 514), nzTpIcepk0o8(chr(0b1111 + 0o41) + '\157' + '\x32' + chr(0b0 + 0o63) + '\066', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b111111 + 0o60) + chr(50) + '\066' + chr(0b10111 + 0o35), 0o10), nzTpIcepk0o8('\060' + '\157' + chr(49) + chr(900 - 852) + chr(48), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(2232 - 2121) + '\061' + chr(0b110010) + '\x32', 0o10), nzTpIcepk0o8('\060' + '\x6f' + '\x33' + chr(2016 - 1961) + chr(0b100011 + 0o22), 0b1000), nzTpIcepk0o8('\060' + chr(0b1000001 + 0o56) + '\x32' + chr(2964 - 2909) + '\x33', 48076 - 48068), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b100001 + 0o21) + chr(0b10010 + 0o37) + '\x34', ord("\x08")), nzTpIcepk0o8(chr(0b100011 + 0o15) + '\x6f' + chr(0b1111 + 0o41), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x33' + '\x31' + '\063', 48518 - 48510), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x33' + chr(0b110010) + chr(289 - 236), 44752 - 44744), nzTpIcepk0o8(chr(0b10011 + 0o35) + '\157' + chr(0b110001) + chr(0b110101) + chr(0b110111), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(1509 - 1460) + chr(0b101 + 0o61) + chr(1274 - 1223), 44601 - 44593), nzTpIcepk0o8(chr(0b111 + 0o51) + chr(11134 - 11023) + chr(50) + chr(0b101100 + 0o12) + '\x37', 0b1000), nzTpIcepk0o8(chr(1906 - 1858) + '\157' + chr(0b110010) + chr(0b110000) + chr(0b100101 + 0o13), 0b1000), nzTpIcepk0o8(chr(108 - 60) + chr(111) + chr(0b110011 + 0o1) + '\062', 49495 - 49487), nzTpIcepk0o8(chr(898 - 850) + chr(111) + chr(0b110001 + 0o2) + chr(0b100100 + 0o21) + chr(54), 0o10), nzTpIcepk0o8('\060' + '\157' + chr(0b110001) + '\x36' + '\x32', 0o10), nzTpIcepk0o8(chr(1584 - 1536) + chr(0b1101111) + chr(315 - 265) + chr(0b110001) + chr(501 - 448), 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(1929 - 1880) + chr(0b100011 + 0o24) + '\064', 4555 - 4547), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\061' + chr(0b110000) + chr(53), 0b1000), nzTpIcepk0o8(chr(1766 - 1718) + chr(0b1101111) + chr(0b1000 + 0o51) + chr(55) + chr(0b100111 + 0o16), 60528 - 60520), nzTpIcepk0o8('\060' + chr(0b1010 + 0o145) + '\064' + chr(51), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b10000 + 0o42) + chr(1360 - 1311) + chr(2509 - 2455), 0o10), nzTpIcepk0o8('\x30' + chr(111) + '\x30', 8), nzTpIcepk0o8(chr(0b101010 + 0o6) + '\x6f' + chr(0b110001) + chr(0b110011) + chr(0b100000 + 0o26), 26973 - 26965), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x33' + chr(2758 - 2703) + '\061', ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(0b1010 + 0o50) + '\x31' + chr(302 - 253), 0o10), nzTpIcepk0o8('\060' + chr(111) + '\x31' + chr(55) + '\063', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101101 + 0o2) + chr(178 - 128) + chr(1338 - 1288) + chr(0b100 + 0o57), 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(0b1101 + 0o46) + '\x34' + chr(0b11011 + 0o31), 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(50) + '\x33' + chr(53), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + '\063' + '\x31' + '\x33', 8), nzTpIcepk0o8(chr(0b100 + 0o54) + '\x6f' + chr(0b110010) + chr(204 - 156) + '\061', 0o10), nzTpIcepk0o8('\x30' + '\157' + '\x31' + '\x33' + chr(0b110001 + 0o3), 18302 - 18294), nzTpIcepk0o8(chr(622 - 574) + chr(0b111000 + 0o67) + '\061' + chr(51) + chr(0b101001 + 0o13), 8), nzTpIcepk0o8(chr(0b1101 + 0o43) + chr(12258 - 12147) + chr(54) + chr(0b110101), 0o10), nzTpIcepk0o8(chr(0b10001 + 0o37) + '\157' + '\x33' + chr(51) + chr(55), ord("\x08")), nzTpIcepk0o8(chr(0b100001 + 0o17) + chr(111) + chr(0b110011) + chr(54) + chr(0b100 + 0o55), 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + '\157' + chr(53) + '\x30', ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x0f'), chr(6434 - 6334) + '\x65' + '\x63' + chr(3138 - 3027) + chr(100) + chr(0b1010000 + 0o25))(chr(117) + chr(116) + chr(0b1001100 + 0o32) + chr(0b101101) + chr(0b111000)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def qnPOIdBQJdzY(hXMPsSrOQzbh, F0CXygh972_k, *eemPYp2vtTSr, **q5n0sHDDTy90):
return roI3spqORKae(CO2YiXoIEhJY(nVNunTRQVGGy, hXMPsSrOQzbh), roI3spqORKae(ES5oEprVxulp(b'P$\xce\xfb\t6\xbf\xea\xc6d\xb1\x8c'), '\144' + '\145' + '\x63' + chr(1133 - 1022) + chr(0b1100100) + '\x65')('\x75' + chr(116) + chr(102) + chr(0b101101) + chr(0b11010 + 0o36)))(F0CXygh972_k, *eemPYp2vtTSr, **q5n0sHDDTy90)
|
dnanexus/dx-toolkit
|
src/python/dxpy/utils/completer.py
|
get_folder_matches
|
def get_folder_matches(text, delim_pos, dxproj, folderpath):
'''
:param text: String to be tab-completed; still in escaped form
:type text: string
:param delim_pos: index of last unescaped "/" in text
:type delim_pos: int
:param dxproj: DXProject handler to use
:type dxproj: DXProject
:param folderpath: Unescaped path in which to search for folder matches
:type folderpath: string
:returns: List of matches
:rtype: list of strings
Members of the returned list are guaranteed to start with *text*
and be in escaped form for consumption by the command-line.
'''
try:
folders = dxproj.list_folder(folder=folderpath, only='folders')['folders']
folder_names = [name[name.rfind('/') + 1:] for name in folders]
if text != '' and delim_pos != len(text) - 1:
folder_names += ['.', '..']
prefix = text[:delim_pos + 1]
return [prefix + f + '/' for f in folder_names if (prefix + f + '/').startswith(text)]
except:
return []
|
python
|
def get_folder_matches(text, delim_pos, dxproj, folderpath):
'''
:param text: String to be tab-completed; still in escaped form
:type text: string
:param delim_pos: index of last unescaped "/" in text
:type delim_pos: int
:param dxproj: DXProject handler to use
:type dxproj: DXProject
:param folderpath: Unescaped path in which to search for folder matches
:type folderpath: string
:returns: List of matches
:rtype: list of strings
Members of the returned list are guaranteed to start with *text*
and be in escaped form for consumption by the command-line.
'''
try:
folders = dxproj.list_folder(folder=folderpath, only='folders')['folders']
folder_names = [name[name.rfind('/') + 1:] for name in folders]
if text != '' and delim_pos != len(text) - 1:
folder_names += ['.', '..']
prefix = text[:delim_pos + 1]
return [prefix + f + '/' for f in folder_names if (prefix + f + '/').startswith(text)]
except:
return []
|
[
"def",
"get_folder_matches",
"(",
"text",
",",
"delim_pos",
",",
"dxproj",
",",
"folderpath",
")",
":",
"try",
":",
"folders",
"=",
"dxproj",
".",
"list_folder",
"(",
"folder",
"=",
"folderpath",
",",
"only",
"=",
"'folders'",
")",
"[",
"'folders'",
"]",
"folder_names",
"=",
"[",
"name",
"[",
"name",
".",
"rfind",
"(",
"'/'",
")",
"+",
"1",
":",
"]",
"for",
"name",
"in",
"folders",
"]",
"if",
"text",
"!=",
"''",
"and",
"delim_pos",
"!=",
"len",
"(",
"text",
")",
"-",
"1",
":",
"folder_names",
"+=",
"[",
"'.'",
",",
"'..'",
"]",
"prefix",
"=",
"text",
"[",
":",
"delim_pos",
"+",
"1",
"]",
"return",
"[",
"prefix",
"+",
"f",
"+",
"'/'",
"for",
"f",
"in",
"folder_names",
"if",
"(",
"prefix",
"+",
"f",
"+",
"'/'",
")",
".",
"startswith",
"(",
"text",
")",
"]",
"except",
":",
"return",
"[",
"]"
] |
:param text: String to be tab-completed; still in escaped form
:type text: string
:param delim_pos: index of last unescaped "/" in text
:type delim_pos: int
:param dxproj: DXProject handler to use
:type dxproj: DXProject
:param folderpath: Unescaped path in which to search for folder matches
:type folderpath: string
:returns: List of matches
:rtype: list of strings
Members of the returned list are guaranteed to start with *text*
and be in escaped form for consumption by the command-line.
|
[
":",
"param",
"text",
":",
"String",
"to",
"be",
"tab",
"-",
"completed",
";",
"still",
"in",
"escaped",
"form",
":",
"type",
"text",
":",
"string",
":",
"param",
"delim_pos",
":",
"index",
"of",
"last",
"unescaped",
"/",
"in",
"text",
":",
"type",
"delim_pos",
":",
"int",
":",
"param",
"dxproj",
":",
"DXProject",
"handler",
"to",
"use",
":",
"type",
"dxproj",
":",
"DXProject",
":",
"param",
"folderpath",
":",
"Unescaped",
"path",
"in",
"which",
"to",
"search",
"for",
"folder",
"matches",
":",
"type",
"folderpath",
":",
"string",
":",
"returns",
":",
"List",
"of",
"matches",
":",
"rtype",
":",
"list",
"of",
"strings"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/utils/completer.py#L87-L111
|
train
|
Returns a list of strings that are part of the given text in the specified folder.
|
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,D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,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(1260 - 1212) + chr(4309 - 4198) + chr(0b110011) + '\064', 0b1000), nzTpIcepk0o8(chr(0b101001 + 0o7) + chr(0b1000101 + 0o52) + '\x35', ord("\x08")), nzTpIcepk0o8(chr(74 - 26) + '\x6f' + '\066' + chr(0b110010), 50214 - 50206), nzTpIcepk0o8('\x30' + '\157' + chr(154 - 104) + chr(0b110010), 0o10), nzTpIcepk0o8(chr(1062 - 1014) + '\157' + '\067' + '\065', ord("\x08")), nzTpIcepk0o8('\x30' + chr(976 - 865) + '\x31' + '\x37' + '\066', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b110100 + 0o73) + chr(49) + chr(0b100111 + 0o17) + chr(0b110011), 53675 - 53667), nzTpIcepk0o8(chr(48) + '\x6f' + '\x33' + chr(0b101111 + 0o3) + '\x30', 0b1000), nzTpIcepk0o8(chr(1946 - 1898) + chr(0b11000 + 0o127) + chr(0b110011) + '\060' + chr(0b110100), 4337 - 4329), nzTpIcepk0o8(chr(2267 - 2219) + chr(4935 - 4824) + '\x32' + chr(0b100101 + 0o16) + '\065', ord("\x08")), nzTpIcepk0o8(chr(1381 - 1333) + chr(6283 - 6172) + chr(49) + chr(1297 - 1244) + chr(0b11110 + 0o23), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(51) + chr(2791 - 2736) + '\x34', ord("\x08")), nzTpIcepk0o8(chr(0b1111 + 0o41) + chr(11024 - 10913) + chr(2378 - 2329) + chr(0b110011) + chr(0b10011 + 0o40), 50468 - 50460), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(210 - 161) + chr(2264 - 2216) + chr(53), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b100001 + 0o20) + '\062' + chr(519 - 470), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(216 - 166) + chr(54) + chr(2768 - 2714), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b110001 + 0o76) + '\066' + chr(48), 0b1000), nzTpIcepk0o8('\060' + '\157' + chr(49) + chr(1766 - 1713), 0b1000), nzTpIcepk0o8('\x30' + chr(7921 - 7810) + '\063' + chr(0b11010 + 0o31) + chr(0b101100 + 0o13), 41356 - 41348), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110000), ord("\x08")), nzTpIcepk0o8(chr(202 - 154) + chr(0b1101111) + chr(54) + '\x32', 8), nzTpIcepk0o8(chr(0b10010 + 0o36) + chr(0b1101111) + '\062' + chr(0b100011 + 0o22) + chr(53), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110001) + chr(53) + chr(0b100101 + 0o20), 0b1000), nzTpIcepk0o8('\060' + chr(3605 - 3494) + chr(50) + '\067' + chr(0b11100 + 0o25), 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(0b110011) + chr(52) + chr(2513 - 2459), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1010 + 0o145) + '\x33' + chr(0b110011) + chr(0b110000), 16035 - 16027), nzTpIcepk0o8(chr(48) + '\x6f' + '\x31' + chr(0b110101) + chr(50), 0o10), nzTpIcepk0o8('\x30' + chr(9518 - 9407) + chr(50) + '\x37' + chr(2195 - 2140), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(5510 - 5399) + chr(1845 - 1795), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + '\062' + '\x35' + '\061', ord("\x08")), nzTpIcepk0o8(chr(862 - 814) + chr(0b100011 + 0o114) + chr(51) + chr(0b101111 + 0o7) + '\x37', 59751 - 59743), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b101110 + 0o3) + chr(0b11010 + 0o31) + '\x33', 8), nzTpIcepk0o8(chr(0b110000) + chr(3731 - 3620) + '\x32' + chr(2250 - 2199), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(0b110011) + chr(0b110110) + '\x33', 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(50) + chr(1467 - 1418), 0b1000), nzTpIcepk0o8(chr(0b11000 + 0o30) + chr(111) + '\061' + chr(0b100010 + 0o21) + chr(1674 - 1623), 8), nzTpIcepk0o8(chr(0b101111 + 0o1) + chr(111) + chr(0b101001 + 0o10) + chr(235 - 183) + '\064', ord("\x08")), nzTpIcepk0o8(chr(1265 - 1217) + '\157' + chr(0b110001) + '\063' + chr(1515 - 1463), 0b1000), nzTpIcepk0o8('\060' + chr(4726 - 4615) + '\063' + chr(0b1 + 0o63) + '\x35', 0b1000), nzTpIcepk0o8('\x30' + chr(6253 - 6142) + '\x33' + chr(48) + '\061', ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b100111 + 0o11) + '\x6f' + '\065' + '\x30', ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'2'), '\x64' + chr(101) + chr(99) + chr(111) + chr(0b1100100) + '\x65')(chr(9535 - 9418) + chr(12018 - 11902) + '\x66' + chr(0b101101) + chr(0b11110 + 0o32)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def MgizFAVY4Q0v(cpStk7cY1TJd, XSuHICyKOA41, USE0lnWsGHEP, rkFuI3Ydes2E):
try:
ai1HwZ6BJd2i = USE0lnWsGHEP.list_folder(folder=rkFuI3Ydes2E, only=roI3spqORKae(ES5oEprVxulp(b'zj^vX\x0c\x00'), chr(100) + '\x65' + chr(8727 - 8628) + chr(0b1001001 + 0o46) + chr(5374 - 5274) + chr(0b1100101))('\165' + '\x74' + chr(102) + '\x2d' + chr(0b111000)))[roI3spqORKae(ES5oEprVxulp(b'zj^vX\x0c\x00'), chr(100) + '\x65' + '\x63' + '\x6f' + chr(0b1000111 + 0o35) + '\145')('\x75' + chr(6109 - 5993) + chr(102) + chr(45) + chr(0b110100 + 0o4))]
pMsqo6ayHF_p = [SLVB2BPA_mIe[SLVB2BPA_mIe.rfind(roI3spqORKae(ES5oEprVxulp(b'3'), chr(0b1100100) + chr(0b1100101) + chr(2419 - 2320) + chr(111) + '\144' + chr(9905 - 9804))('\x75' + chr(12532 - 12416) + chr(102) + chr(0b101101) + chr(56))) + nzTpIcepk0o8('\060' + chr(1416 - 1305) + '\061', ord("\x08")):] for SLVB2BPA_mIe in ai1HwZ6BJd2i]
if cpStk7cY1TJd != roI3spqORKae(ES5oEprVxulp(b''), chr(5714 - 5614) + chr(101) + chr(0b1100011) + '\157' + '\x64' + chr(101))(chr(0b1110101) + chr(0b1110100) + '\146' + '\x2d' + '\070') and XSuHICyKOA41 != ftfygxgFas5X(cpStk7cY1TJd) - nzTpIcepk0o8(chr(0b1100 + 0o44) + chr(0b1101111) + chr(49), 8):
pMsqo6ayHF_p += [roI3spqORKae(ES5oEprVxulp(b'2'), chr(0b111000 + 0o54) + '\145' + chr(99) + '\x6f' + chr(0b1100100) + chr(101))(chr(11679 - 11562) + chr(0b1110100) + '\x66' + chr(0b101101) + '\x38'), roI3spqORKae(ES5oEprVxulp(b'2+'), chr(6619 - 6519) + chr(101) + chr(0b1100011) + chr(0b101010 + 0o105) + chr(100) + '\x65')(chr(2053 - 1936) + chr(0b1110100) + '\x66' + chr(0b101101) + chr(0b111000))]
ZJwZgaHE72Po = cpStk7cY1TJd[:XSuHICyKOA41 + nzTpIcepk0o8(chr(0b11001 + 0o27) + chr(0b1001110 + 0o41) + chr(0b110001), 8)]
return [ZJwZgaHE72Po + _R8IKF5IwAfX + roI3spqORKae(ES5oEprVxulp(b'3'), chr(0b0 + 0o144) + chr(0b1011110 + 0o7) + '\x63' + '\157' + '\x64' + '\x65')('\165' + chr(0b1110100) + chr(0b11101 + 0o111) + chr(0b101101) + chr(0b1100 + 0o54)) for _R8IKF5IwAfX in pMsqo6ayHF_p if roI3spqORKae(ZJwZgaHE72Po + _R8IKF5IwAfX + roI3spqORKae(ES5oEprVxulp(b'3'), chr(0b110001 + 0o63) + '\x65' + chr(0b1100011) + chr(0b1101111) + chr(100) + chr(101))(chr(0b110010 + 0o103) + chr(116) + chr(0b1100110) + chr(0b1000 + 0o45) + '\070'), roI3spqORKae(ES5oEprVxulp(b'oqS`I\r\x04\xb9\xb0\xf5'), '\144' + chr(0b1000111 + 0o36) + chr(0b1100011) + chr(7507 - 7396) + '\x64' + '\145')('\165' + '\164' + chr(2218 - 2116) + '\x2d' + '\070'))(cpStk7cY1TJd)]
except UtiWT6f6p9yZ:
return []
|
dnanexus/dx-toolkit
|
src/python/dxpy/utils/completer.py
|
get_data_matches
|
def get_data_matches(text, delim_pos, dxproj, folderpath, classname=None,
typespec=None, visibility=None):
'''
:param text: String to be tab-completed; still in escaped form
:type text: string
:param delim_pos: index of last unescaped "/" or ":" in text
:type delim_pos: int
:param dxproj: DXProject handler to use
:type dxproj: DXProject
:param folderpath: Unescaped path in which to search for data object matches
:type folderpath: string
:param classname: Data object class by which to restrict the search (None for no restriction on class)
:type classname: string
:param visibility: Visibility to constrain the results to; default is "visible" for empty strings, "either" for nonempty
:type visibility: string
:returns: List of matches
:rtype: list of strings
Members of the returned list are guaranteed to start with *text*
and be in escaped form for consumption by the command-line.
'''
#unescaped_text = unescape_completion_name_str(text[delim_pos + 1:])
unescaped_text = text[delim_pos + 1:]
if visibility is None:
if text != '' and delim_pos != len(text) - 1:
visibility = "either"
else:
visibility = "visible"
try:
results = list(dxpy.find_data_objects(project=dxproj.get_id(),
folder=folderpath,
name=unescaped_text + "*",
name_mode="glob",
recurse=False,
visibility=visibility,
classname=classname,
limit=100,
describe=dict(fields=dict(name=True)),
typename=typespec))
prefix = '' if text == '' else text[:delim_pos + 1]
return [prefix + escape_name(result['describe']['name']) for result in results]
except:
return []
|
python
|
def get_data_matches(text, delim_pos, dxproj, folderpath, classname=None,
typespec=None, visibility=None):
'''
:param text: String to be tab-completed; still in escaped form
:type text: string
:param delim_pos: index of last unescaped "/" or ":" in text
:type delim_pos: int
:param dxproj: DXProject handler to use
:type dxproj: DXProject
:param folderpath: Unescaped path in which to search for data object matches
:type folderpath: string
:param classname: Data object class by which to restrict the search (None for no restriction on class)
:type classname: string
:param visibility: Visibility to constrain the results to; default is "visible" for empty strings, "either" for nonempty
:type visibility: string
:returns: List of matches
:rtype: list of strings
Members of the returned list are guaranteed to start with *text*
and be in escaped form for consumption by the command-line.
'''
#unescaped_text = unescape_completion_name_str(text[delim_pos + 1:])
unescaped_text = text[delim_pos + 1:]
if visibility is None:
if text != '' and delim_pos != len(text) - 1:
visibility = "either"
else:
visibility = "visible"
try:
results = list(dxpy.find_data_objects(project=dxproj.get_id(),
folder=folderpath,
name=unescaped_text + "*",
name_mode="glob",
recurse=False,
visibility=visibility,
classname=classname,
limit=100,
describe=dict(fields=dict(name=True)),
typename=typespec))
prefix = '' if text == '' else text[:delim_pos + 1]
return [prefix + escape_name(result['describe']['name']) for result in results]
except:
return []
|
[
"def",
"get_data_matches",
"(",
"text",
",",
"delim_pos",
",",
"dxproj",
",",
"folderpath",
",",
"classname",
"=",
"None",
",",
"typespec",
"=",
"None",
",",
"visibility",
"=",
"None",
")",
":",
"#unescaped_text = unescape_completion_name_str(text[delim_pos + 1:])",
"unescaped_text",
"=",
"text",
"[",
"delim_pos",
"+",
"1",
":",
"]",
"if",
"visibility",
"is",
"None",
":",
"if",
"text",
"!=",
"''",
"and",
"delim_pos",
"!=",
"len",
"(",
"text",
")",
"-",
"1",
":",
"visibility",
"=",
"\"either\"",
"else",
":",
"visibility",
"=",
"\"visible\"",
"try",
":",
"results",
"=",
"list",
"(",
"dxpy",
".",
"find_data_objects",
"(",
"project",
"=",
"dxproj",
".",
"get_id",
"(",
")",
",",
"folder",
"=",
"folderpath",
",",
"name",
"=",
"unescaped_text",
"+",
"\"*\"",
",",
"name_mode",
"=",
"\"glob\"",
",",
"recurse",
"=",
"False",
",",
"visibility",
"=",
"visibility",
",",
"classname",
"=",
"classname",
",",
"limit",
"=",
"100",
",",
"describe",
"=",
"dict",
"(",
"fields",
"=",
"dict",
"(",
"name",
"=",
"True",
")",
")",
",",
"typename",
"=",
"typespec",
")",
")",
"prefix",
"=",
"''",
"if",
"text",
"==",
"''",
"else",
"text",
"[",
":",
"delim_pos",
"+",
"1",
"]",
"return",
"[",
"prefix",
"+",
"escape_name",
"(",
"result",
"[",
"'describe'",
"]",
"[",
"'name'",
"]",
")",
"for",
"result",
"in",
"results",
"]",
"except",
":",
"return",
"[",
"]"
] |
:param text: String to be tab-completed; still in escaped form
:type text: string
:param delim_pos: index of last unescaped "/" or ":" in text
:type delim_pos: int
:param dxproj: DXProject handler to use
:type dxproj: DXProject
:param folderpath: Unescaped path in which to search for data object matches
:type folderpath: string
:param classname: Data object class by which to restrict the search (None for no restriction on class)
:type classname: string
:param visibility: Visibility to constrain the results to; default is "visible" for empty strings, "either" for nonempty
:type visibility: string
:returns: List of matches
:rtype: list of strings
Members of the returned list are guaranteed to start with *text*
and be in escaped form for consumption by the command-line.
|
[
":",
"param",
"text",
":",
"String",
"to",
"be",
"tab",
"-",
"completed",
";",
"still",
"in",
"escaped",
"form",
":",
"type",
"text",
":",
"string",
":",
"param",
"delim_pos",
":",
"index",
"of",
"last",
"unescaped",
"/",
"or",
":",
"in",
"text",
":",
"type",
"delim_pos",
":",
"int",
":",
"param",
"dxproj",
":",
"DXProject",
"handler",
"to",
"use",
":",
"type",
"dxproj",
":",
"DXProject",
":",
"param",
"folderpath",
":",
"Unescaped",
"path",
"in",
"which",
"to",
"search",
"for",
"data",
"object",
"matches",
":",
"type",
"folderpath",
":",
"string",
":",
"param",
"classname",
":",
"Data",
"object",
"class",
"by",
"which",
"to",
"restrict",
"the",
"search",
"(",
"None",
"for",
"no",
"restriction",
"on",
"class",
")",
":",
"type",
"classname",
":",
"string",
":",
"param",
"visibility",
":",
"Visibility",
"to",
"constrain",
"the",
"results",
"to",
";",
"default",
"is",
"visible",
"for",
"empty",
"strings",
"either",
"for",
"nonempty",
":",
"type",
"visibility",
":",
"string",
":",
"returns",
":",
"List",
"of",
"matches",
":",
"rtype",
":",
"list",
"of",
"strings"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/utils/completer.py#L113-L157
|
train
|
Returns a list of data objects that match the given text.
|
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,WdoB9E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8MSkfijeeBr,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' + chr(2282 - 2228) + chr(1003 - 950), 22423 - 22415), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x31' + chr(2331 - 2280) + chr(362 - 308), 49202 - 49194), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x33' + chr(1645 - 1594) + chr(50), 0o10), nzTpIcepk0o8(chr(0b10101 + 0o33) + chr(0b1101111) + chr(0b10000 + 0o43) + chr(55), ord("\x08")), nzTpIcepk0o8(chr(0b11 + 0o55) + chr(0b1100010 + 0o15) + chr(50) + chr(0b110101), ord("\x08")), nzTpIcepk0o8(chr(0b10100 + 0o34) + chr(0b1101111) + '\x33' + chr(0b110001 + 0o2) + '\062', 8), nzTpIcepk0o8(chr(48) + '\157' + '\062' + '\067' + chr(0b110010), 0b1000), nzTpIcepk0o8(chr(48) + chr(11698 - 11587) + '\063' + chr(0b110111) + chr(0b110010), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110001) + chr(1746 - 1691) + chr(1047 - 997), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(49) + '\067' + chr(0b110110), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b11010 + 0o31) + chr(0b10110 + 0o32) + '\067', 0b1000), nzTpIcepk0o8('\060' + chr(0b1100100 + 0o13) + '\063' + chr(0b111 + 0o54) + chr(0b110010 + 0o0), 8), nzTpIcepk0o8(chr(0b100100 + 0o14) + chr(0b1101111) + chr(0b110011) + chr(0b110001) + '\062', 0o10), nzTpIcepk0o8(chr(1050 - 1002) + chr(5569 - 5458) + chr(51) + chr(0b110110) + '\x35', 0o10), nzTpIcepk0o8('\x30' + chr(0b1000 + 0o147) + chr(0b100010 + 0o20) + '\066' + '\x30', 0o10), nzTpIcepk0o8(chr(1382 - 1334) + chr(0b1101111) + '\063' + chr(0b100 + 0o61) + chr(0b100111 + 0o14), 0b1000), nzTpIcepk0o8('\060' + chr(0b1101001 + 0o6) + chr(1277 - 1227) + chr(0b110111) + chr(0b110111), 27114 - 27106), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110110) + chr(0b110100), 21211 - 21203), nzTpIcepk0o8(chr(2295 - 2247) + '\157' + chr(49) + chr(1654 - 1604) + '\x36', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110010) + '\x35' + '\x32', 44575 - 44567), nzTpIcepk0o8(chr(0b111 + 0o51) + '\157' + chr(0b1101 + 0o45) + chr(51) + chr(0b110000), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x32' + '\x30', 0b1000), nzTpIcepk0o8(chr(0b110000 + 0o0) + chr(111) + chr(1447 - 1398) + '\x32' + chr(0b101010 + 0o6), 15447 - 15439), nzTpIcepk0o8(chr(0b1110 + 0o42) + chr(0b1000001 + 0o56) + '\x32' + chr(52) + chr(0b110101), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1001101 + 0o42) + '\x31' + chr(54), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b101010 + 0o7) + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(0b100101 + 0o13) + chr(8758 - 8647) + chr(0b1010 + 0o54) + chr(0b110010), ord("\x08")), nzTpIcepk0o8(chr(751 - 703) + '\x6f' + chr(1286 - 1237) + chr(0b101101 + 0o10), 34807 - 34799), nzTpIcepk0o8(chr(48) + chr(12143 - 12032) + chr(49) + chr(0b110010) + chr(53), ord("\x08")), nzTpIcepk0o8('\060' + chr(4546 - 4435) + '\x35' + chr(0b110110), 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(49) + '\x35' + '\067', 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b11001 + 0o33) + '\x34', ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(51) + chr(51) + chr(481 - 433), 0b1000), nzTpIcepk0o8(chr(2132 - 2084) + '\x6f' + '\x30', 0o10), nzTpIcepk0o8('\x30' + '\x6f' + '\x32' + chr(0b110011) + chr(0b110011), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b10110 + 0o34) + chr(0b100010 + 0o17) + '\065', 39004 - 38996), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110010) + '\065', 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\062' + chr(0b110000) + chr(0b110100), 0o10), nzTpIcepk0o8(chr(1046 - 998) + chr(4306 - 4195) + chr(1108 - 1058) + chr(1498 - 1450) + chr(48), 0b1000), nzTpIcepk0o8(chr(778 - 730) + chr(0b101 + 0o152) + chr(0b101011 + 0o7) + '\x37' + chr(0b110101), 2141 - 2133)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(1343 - 1295) + '\157' + chr(0b110101) + chr(0b11010 + 0o26), ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x1b'), chr(9998 - 9898) + chr(101) + '\x63' + chr(3354 - 3243) + chr(0b1000 + 0o134) + '\145')(chr(0b1110101) + '\x74' + '\x66' + chr(0b101010 + 0o3) + '\070') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def RPOuM9xSODUL(cpStk7cY1TJd, XSuHICyKOA41, USE0lnWsGHEP, rkFuI3Ydes2E, lKkMh44Cd7EO=None, JRXrVUvZ89BR=None, i5Jrt2X_89tH=None):
CuJK_RUukErf = cpStk7cY1TJd[XSuHICyKOA41 + nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110001), 0o10):]
if i5Jrt2X_89tH is None:
if cpStk7cY1TJd != roI3spqORKae(ES5oEprVxulp(b''), chr(100) + '\x65' + chr(99) + '\x6f' + '\144' + chr(0b1000 + 0o135))(chr(0b1110001 + 0o4) + chr(116) + chr(0b10001 + 0o125) + '\055' + chr(2386 - 2330)) and XSuHICyKOA41 != ftfygxgFas5X(cpStk7cY1TJd) - nzTpIcepk0o8(chr(1923 - 1875) + chr(6326 - 6215) + chr(0b110001), 8):
i5Jrt2X_89tH = roI3spqORKae(ES5oEprVxulp(b'P7\xaewp\xa8'), chr(0b1100100) + '\145' + chr(0b1100011) + chr(111) + chr(0b1100100) + chr(101))(chr(117) + chr(11471 - 11355) + chr(0b111001 + 0o55) + '\055' + chr(56))
else:
i5Jrt2X_89tH = roI3spqORKae(ES5oEprVxulp(b'C7\xa9vw\xb6\xdf'), '\144' + chr(101) + '\143' + chr(0b1101111) + '\144' + chr(0b110010 + 0o63))('\165' + '\x74' + chr(0b1010110 + 0o20) + chr(45) + '\x38')
try:
v3B6eeO_B_ws = H4NoA26ON7iG(SsdNdRxXOwsF.find_data_objects(project=USE0lnWsGHEP.nkTncJcFPliW(), folder=rkFuI3Ydes2E, name=CuJK_RUukErf + roI3spqORKae(ES5oEprVxulp(b'\x1f'), chr(0b1100100) + chr(0b1100101) + chr(0b1011 + 0o130) + chr(111) + '\144' + '\x65')(chr(11466 - 11349) + chr(3666 - 3550) + chr(0b1100001 + 0o5) + chr(1499 - 1454) + chr(0b111000)), name_mode=roI3spqORKae(ES5oEprVxulp(b'R2\xb5}'), chr(100) + chr(0b1100101) + '\x63' + '\157' + chr(0b110110 + 0o56) + chr(2705 - 2604))(chr(6943 - 6826) + '\164' + chr(0b1100110) + chr(0b101101) + chr(56)), recurse=nzTpIcepk0o8('\060' + chr(7221 - 7110) + '\x30', 8), visibility=i5Jrt2X_89tH, classname=lKkMh44Cd7EO, limit=nzTpIcepk0o8('\060' + '\x6f' + chr(49) + chr(0b1 + 0o63) + '\064', ord("\x08")), describe=znjnJWK64FDT(fields=znjnJWK64FDT(name=nzTpIcepk0o8('\060' + chr(111) + chr(49), 8))), typename=JRXrVUvZ89BR))
ZJwZgaHE72Po = roI3spqORKae(ES5oEprVxulp(b''), chr(8626 - 8526) + chr(0b100101 + 0o100) + chr(99) + chr(0b1001100 + 0o43) + chr(2709 - 2609) + chr(101))(chr(9080 - 8963) + chr(0b1000000 + 0o64) + chr(0b1100110) + chr(0b100000 + 0o15) + chr(0b100011 + 0o25)) if cpStk7cY1TJd == roI3spqORKae(ES5oEprVxulp(b''), chr(1280 - 1180) + chr(0b1110 + 0o127) + chr(99) + chr(0b110110 + 0o71) + chr(0b1100100) + chr(101))(chr(0b1010111 + 0o36) + '\x74' + chr(0b1100110) + chr(0b11101 + 0o20) + '\070') else cpStk7cY1TJd[:XSuHICyKOA41 + nzTpIcepk0o8('\060' + '\157' + '\061', 8)]
return [ZJwZgaHE72Po + mzt5PLrCCjYt(POx95m7SPOVy[roI3spqORKae(ES5oEprVxulp(b'Q;\xa9|g\xb3\xd8\x9f'), chr(1692 - 1592) + chr(101) + chr(0b1011111 + 0o4) + chr(8813 - 8702) + '\x64' + chr(101))(chr(0b1110101) + chr(13138 - 13022) + '\146' + chr(45) + chr(0b110000 + 0o10))][roI3spqORKae(ES5oEprVxulp(b'[?\xb7z'), chr(100) + '\145' + chr(0b1100011) + chr(4284 - 4173) + '\144' + '\145')(chr(117) + '\x74' + chr(0b1100110) + chr(45) + chr(0b111000))]) for POx95m7SPOVy in v3B6eeO_B_ws]
except UtiWT6f6p9yZ:
return []
|
dnanexus/dx-toolkit
|
src/python/dxpy/utils/completer.py
|
path_completer
|
def path_completer(text, expected=None, classes=None, perm_level=None,
include_current_proj=False, typespec=None, visibility=None):
'''
:param text: String to tab-complete to a path matching the syntax project-name:folder/entity_or_folder_name
:type text: string
:param expected: "folder", "entity", "project", or None (no restriction) as to the types of answers to look for
:type expected: string
:param classes: if expected="entity", the possible data object classes that are acceptable
:type classes: list of strings
:param perm_level: the minimum permissions level required, e.g. "VIEW" or "CONTRIBUTE"
:type perm_level: string
:param include_current_proj: Indicate whether the current project's name should be a potential result
:type include_current_proj: boolean
:param visibility: Visibility with which to restrict the completion (one of "either", "visible", or "hidden") (default behavior is dependent on *text*)
Returns a list of matches to the text and restricted by the
requested parameters.
'''
colon_pos = get_last_pos_of_char(':', text)
slash_pos = get_last_pos_of_char('/', text)
delim_pos = max(colon_pos, slash_pos)
# First get projects if necessary
matches = []
if expected == 'project' and colon_pos > 0 and colon_pos == len(text) - 1:
if dxpy.find_one_project(zero_ok=True, name=text[:colon_pos]) is not None:
return [text + " "]
if colon_pos < 0 and slash_pos < 0:
# Might be tab-completing a project, but don't ever include
# whatever's set as dxpy.WORKSPACE_ID unless expected == "project"
# Also, don't bother if text=="" and expected is NOT "project"
# Also, add space if expected == "project"
if text != "" or expected == 'project':
results = dxpy.find_projects(describe=True, level=perm_level)
if not include_current_proj:
results = [r for r in results if r['id'] != dxpy.WORKSPACE_ID]
matches += [escape_colon(r['describe']['name'])+':' for r in results if r['describe']['name'].startswith(text)]
if expected == 'project':
return matches
# Attempt to tab-complete to a folder or data object name
if colon_pos < 0 and slash_pos >= 0:
# Not tab-completing a project, and the project is unambiguous
# (use dxpy.WORKSPACE_ID)
if dxpy.WORKSPACE_ID is not None:
# try-catch block in case dxpy.WORKSPACE_ID is garbage
try:
dxproj = dxpy.get_handler(dxpy.WORKSPACE_ID)
folderpath, entity_name = clean_folder_path(text)
matches += get_folder_matches(text, slash_pos, dxproj, folderpath)
if expected != 'folder':
if classes is not None:
for classname in classes:
matches += get_data_matches(text, slash_pos, dxproj,
folderpath, classname=classname,
typespec=typespec,
visibility=visibility)
else:
matches += get_data_matches(text, slash_pos, dxproj,
folderpath, typespec=typespec,
visibility=visibility)
except:
pass
else:
# project is given by a path, but attempt to resolve to an
# object or folder anyway
try:
proj_ids, folderpath, entity_name = resolve_path(text, multi_projects=True)
except ResolutionError as details:
sys.stderr.write("\n" + fill(str(details)))
return matches
for proj in proj_ids:
# protects against dxpy.WORKSPACE_ID being garbage
try:
dxproj = dxpy.get_handler(proj)
matches += get_folder_matches(text, delim_pos, dxproj, folderpath)
if expected != 'folder':
if classes is not None:
for classname in classes:
matches += get_data_matches(text, delim_pos, dxproj,
folderpath, classname=classname,
typespec=typespec, visibility=visibility)
else:
matches += get_data_matches(text, delim_pos, dxproj,
folderpath, typespec=typespec,
visibility=visibility)
except:
pass
return matches
|
python
|
def path_completer(text, expected=None, classes=None, perm_level=None,
include_current_proj=False, typespec=None, visibility=None):
'''
:param text: String to tab-complete to a path matching the syntax project-name:folder/entity_or_folder_name
:type text: string
:param expected: "folder", "entity", "project", or None (no restriction) as to the types of answers to look for
:type expected: string
:param classes: if expected="entity", the possible data object classes that are acceptable
:type classes: list of strings
:param perm_level: the minimum permissions level required, e.g. "VIEW" or "CONTRIBUTE"
:type perm_level: string
:param include_current_proj: Indicate whether the current project's name should be a potential result
:type include_current_proj: boolean
:param visibility: Visibility with which to restrict the completion (one of "either", "visible", or "hidden") (default behavior is dependent on *text*)
Returns a list of matches to the text and restricted by the
requested parameters.
'''
colon_pos = get_last_pos_of_char(':', text)
slash_pos = get_last_pos_of_char('/', text)
delim_pos = max(colon_pos, slash_pos)
# First get projects if necessary
matches = []
if expected == 'project' and colon_pos > 0 and colon_pos == len(text) - 1:
if dxpy.find_one_project(zero_ok=True, name=text[:colon_pos]) is not None:
return [text + " "]
if colon_pos < 0 and slash_pos < 0:
# Might be tab-completing a project, but don't ever include
# whatever's set as dxpy.WORKSPACE_ID unless expected == "project"
# Also, don't bother if text=="" and expected is NOT "project"
# Also, add space if expected == "project"
if text != "" or expected == 'project':
results = dxpy.find_projects(describe=True, level=perm_level)
if not include_current_proj:
results = [r for r in results if r['id'] != dxpy.WORKSPACE_ID]
matches += [escape_colon(r['describe']['name'])+':' for r in results if r['describe']['name'].startswith(text)]
if expected == 'project':
return matches
# Attempt to tab-complete to a folder or data object name
if colon_pos < 0 and slash_pos >= 0:
# Not tab-completing a project, and the project is unambiguous
# (use dxpy.WORKSPACE_ID)
if dxpy.WORKSPACE_ID is not None:
# try-catch block in case dxpy.WORKSPACE_ID is garbage
try:
dxproj = dxpy.get_handler(dxpy.WORKSPACE_ID)
folderpath, entity_name = clean_folder_path(text)
matches += get_folder_matches(text, slash_pos, dxproj, folderpath)
if expected != 'folder':
if classes is not None:
for classname in classes:
matches += get_data_matches(text, slash_pos, dxproj,
folderpath, classname=classname,
typespec=typespec,
visibility=visibility)
else:
matches += get_data_matches(text, slash_pos, dxproj,
folderpath, typespec=typespec,
visibility=visibility)
except:
pass
else:
# project is given by a path, but attempt to resolve to an
# object or folder anyway
try:
proj_ids, folderpath, entity_name = resolve_path(text, multi_projects=True)
except ResolutionError as details:
sys.stderr.write("\n" + fill(str(details)))
return matches
for proj in proj_ids:
# protects against dxpy.WORKSPACE_ID being garbage
try:
dxproj = dxpy.get_handler(proj)
matches += get_folder_matches(text, delim_pos, dxproj, folderpath)
if expected != 'folder':
if classes is not None:
for classname in classes:
matches += get_data_matches(text, delim_pos, dxproj,
folderpath, classname=classname,
typespec=typespec, visibility=visibility)
else:
matches += get_data_matches(text, delim_pos, dxproj,
folderpath, typespec=typespec,
visibility=visibility)
except:
pass
return matches
|
[
"def",
"path_completer",
"(",
"text",
",",
"expected",
"=",
"None",
",",
"classes",
"=",
"None",
",",
"perm_level",
"=",
"None",
",",
"include_current_proj",
"=",
"False",
",",
"typespec",
"=",
"None",
",",
"visibility",
"=",
"None",
")",
":",
"colon_pos",
"=",
"get_last_pos_of_char",
"(",
"':'",
",",
"text",
")",
"slash_pos",
"=",
"get_last_pos_of_char",
"(",
"'/'",
",",
"text",
")",
"delim_pos",
"=",
"max",
"(",
"colon_pos",
",",
"slash_pos",
")",
"# First get projects if necessary",
"matches",
"=",
"[",
"]",
"if",
"expected",
"==",
"'project'",
"and",
"colon_pos",
">",
"0",
"and",
"colon_pos",
"==",
"len",
"(",
"text",
")",
"-",
"1",
":",
"if",
"dxpy",
".",
"find_one_project",
"(",
"zero_ok",
"=",
"True",
",",
"name",
"=",
"text",
"[",
":",
"colon_pos",
"]",
")",
"is",
"not",
"None",
":",
"return",
"[",
"text",
"+",
"\" \"",
"]",
"if",
"colon_pos",
"<",
"0",
"and",
"slash_pos",
"<",
"0",
":",
"# Might be tab-completing a project, but don't ever include",
"# whatever's set as dxpy.WORKSPACE_ID unless expected == \"project\"",
"# Also, don't bother if text==\"\" and expected is NOT \"project\"",
"# Also, add space if expected == \"project\"",
"if",
"text",
"!=",
"\"\"",
"or",
"expected",
"==",
"'project'",
":",
"results",
"=",
"dxpy",
".",
"find_projects",
"(",
"describe",
"=",
"True",
",",
"level",
"=",
"perm_level",
")",
"if",
"not",
"include_current_proj",
":",
"results",
"=",
"[",
"r",
"for",
"r",
"in",
"results",
"if",
"r",
"[",
"'id'",
"]",
"!=",
"dxpy",
".",
"WORKSPACE_ID",
"]",
"matches",
"+=",
"[",
"escape_colon",
"(",
"r",
"[",
"'describe'",
"]",
"[",
"'name'",
"]",
")",
"+",
"':'",
"for",
"r",
"in",
"results",
"if",
"r",
"[",
"'describe'",
"]",
"[",
"'name'",
"]",
".",
"startswith",
"(",
"text",
")",
"]",
"if",
"expected",
"==",
"'project'",
":",
"return",
"matches",
"# Attempt to tab-complete to a folder or data object name",
"if",
"colon_pos",
"<",
"0",
"and",
"slash_pos",
">=",
"0",
":",
"# Not tab-completing a project, and the project is unambiguous",
"# (use dxpy.WORKSPACE_ID)",
"if",
"dxpy",
".",
"WORKSPACE_ID",
"is",
"not",
"None",
":",
"# try-catch block in case dxpy.WORKSPACE_ID is garbage",
"try",
":",
"dxproj",
"=",
"dxpy",
".",
"get_handler",
"(",
"dxpy",
".",
"WORKSPACE_ID",
")",
"folderpath",
",",
"entity_name",
"=",
"clean_folder_path",
"(",
"text",
")",
"matches",
"+=",
"get_folder_matches",
"(",
"text",
",",
"slash_pos",
",",
"dxproj",
",",
"folderpath",
")",
"if",
"expected",
"!=",
"'folder'",
":",
"if",
"classes",
"is",
"not",
"None",
":",
"for",
"classname",
"in",
"classes",
":",
"matches",
"+=",
"get_data_matches",
"(",
"text",
",",
"slash_pos",
",",
"dxproj",
",",
"folderpath",
",",
"classname",
"=",
"classname",
",",
"typespec",
"=",
"typespec",
",",
"visibility",
"=",
"visibility",
")",
"else",
":",
"matches",
"+=",
"get_data_matches",
"(",
"text",
",",
"slash_pos",
",",
"dxproj",
",",
"folderpath",
",",
"typespec",
"=",
"typespec",
",",
"visibility",
"=",
"visibility",
")",
"except",
":",
"pass",
"else",
":",
"# project is given by a path, but attempt to resolve to an",
"# object or folder anyway",
"try",
":",
"proj_ids",
",",
"folderpath",
",",
"entity_name",
"=",
"resolve_path",
"(",
"text",
",",
"multi_projects",
"=",
"True",
")",
"except",
"ResolutionError",
"as",
"details",
":",
"sys",
".",
"stderr",
".",
"write",
"(",
"\"\\n\"",
"+",
"fill",
"(",
"str",
"(",
"details",
")",
")",
")",
"return",
"matches",
"for",
"proj",
"in",
"proj_ids",
":",
"# protects against dxpy.WORKSPACE_ID being garbage",
"try",
":",
"dxproj",
"=",
"dxpy",
".",
"get_handler",
"(",
"proj",
")",
"matches",
"+=",
"get_folder_matches",
"(",
"text",
",",
"delim_pos",
",",
"dxproj",
",",
"folderpath",
")",
"if",
"expected",
"!=",
"'folder'",
":",
"if",
"classes",
"is",
"not",
"None",
":",
"for",
"classname",
"in",
"classes",
":",
"matches",
"+=",
"get_data_matches",
"(",
"text",
",",
"delim_pos",
",",
"dxproj",
",",
"folderpath",
",",
"classname",
"=",
"classname",
",",
"typespec",
"=",
"typespec",
",",
"visibility",
"=",
"visibility",
")",
"else",
":",
"matches",
"+=",
"get_data_matches",
"(",
"text",
",",
"delim_pos",
",",
"dxproj",
",",
"folderpath",
",",
"typespec",
"=",
"typespec",
",",
"visibility",
"=",
"visibility",
")",
"except",
":",
"pass",
"return",
"matches"
] |
:param text: String to tab-complete to a path matching the syntax project-name:folder/entity_or_folder_name
:type text: string
:param expected: "folder", "entity", "project", or None (no restriction) as to the types of answers to look for
:type expected: string
:param classes: if expected="entity", the possible data object classes that are acceptable
:type classes: list of strings
:param perm_level: the minimum permissions level required, e.g. "VIEW" or "CONTRIBUTE"
:type perm_level: string
:param include_current_proj: Indicate whether the current project's name should be a potential result
:type include_current_proj: boolean
:param visibility: Visibility with which to restrict the completion (one of "either", "visible", or "hidden") (default behavior is dependent on *text*)
Returns a list of matches to the text and restricted by the
requested parameters.
|
[
":",
"param",
"text",
":",
"String",
"to",
"tab",
"-",
"complete",
"to",
"a",
"path",
"matching",
"the",
"syntax",
"project",
"-",
"name",
":",
"folder",
"/",
"entity_or_folder_name",
":",
"type",
"text",
":",
"string",
":",
"param",
"expected",
":",
"folder",
"entity",
"project",
"or",
"None",
"(",
"no",
"restriction",
")",
"as",
"to",
"the",
"types",
"of",
"answers",
"to",
"look",
"for",
":",
"type",
"expected",
":",
"string",
":",
"param",
"classes",
":",
"if",
"expected",
"=",
"entity",
"the",
"possible",
"data",
"object",
"classes",
"that",
"are",
"acceptable",
":",
"type",
"classes",
":",
"list",
"of",
"strings",
":",
"param",
"perm_level",
":",
"the",
"minimum",
"permissions",
"level",
"required",
"e",
".",
"g",
".",
"VIEW",
"or",
"CONTRIBUTE",
":",
"type",
"perm_level",
":",
"string",
":",
"param",
"include_current_proj",
":",
"Indicate",
"whether",
"the",
"current",
"project",
"s",
"name",
"should",
"be",
"a",
"potential",
"result",
":",
"type",
"include_current_proj",
":",
"boolean",
":",
"param",
"visibility",
":",
"Visibility",
"with",
"which",
"to",
"restrict",
"the",
"completion",
"(",
"one",
"of",
"either",
"visible",
"or",
"hidden",
")",
"(",
"default",
"behavior",
"is",
"dependent",
"on",
"*",
"text",
"*",
")"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/utils/completer.py#L159-L249
|
train
|
A function that returns a list of strings that can be tab - completed to a 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_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(0b110000) + chr(11302 - 11191) + chr(0b110001) + chr(51), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(50) + '\x30' + chr(52), 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(186 - 136) + chr(590 - 539) + chr(0b11111 + 0o25), 0o10), nzTpIcepk0o8(chr(1858 - 1810) + chr(0b1101111) + chr(50) + '\061' + chr(2633 - 2580), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(52) + chr(1209 - 1161), 0o10), nzTpIcepk0o8('\x30' + chr(6367 - 6256) + '\063' + '\060' + '\065', 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(50) + chr(2300 - 2246) + chr(0b110010), 0o10), nzTpIcepk0o8(chr(0b101010 + 0o6) + chr(111) + '\x33' + chr(51) + '\062', 43778 - 43770), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110101) + '\063', 8361 - 8353), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(50) + '\x35' + chr(583 - 535), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110111) + chr(0b110100), 28395 - 28387), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(358 - 304) + chr(0b110110), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1011001 + 0o26) + chr(1141 - 1090) + '\066' + '\x30', 0o10), nzTpIcepk0o8('\x30' + '\x6f' + '\062' + chr(1362 - 1311), 60889 - 60881), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110001) + chr(2020 - 1966) + chr(0b1011 + 0o46), 0o10), nzTpIcepk0o8(chr(0b10 + 0o56) + '\x6f' + '\062' + '\066' + chr(48), 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(0b101001 + 0o12) + chr(0b110111) + '\067', 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(624 - 574) + chr(66 - 11) + chr(244 - 195), 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(0b110010) + chr(0b1111 + 0o43) + '\x32', 38399 - 38391), nzTpIcepk0o8('\x30' + chr(111) + '\061' + chr(0b110011) + chr(0b110000 + 0o2), 59652 - 59644), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110010) + '\x30' + '\067', 168 - 160), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110111) + chr(0b1010 + 0o55), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x32' + '\064' + chr(291 - 240), ord("\x08")), nzTpIcepk0o8(chr(763 - 715) + chr(0b1001000 + 0o47) + '\061' + chr(54) + chr(680 - 630), 36030 - 36022), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x36' + '\x35', 0o10), nzTpIcepk0o8(chr(0b11111 + 0o21) + chr(111) + chr(0b110001) + chr(0b110000) + chr(0b110100), 9355 - 9347), nzTpIcepk0o8(chr(242 - 194) + '\x6f' + chr(49) + chr(54), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + '\063' + chr(51) + chr(0b10100 + 0o42), 56383 - 56375), nzTpIcepk0o8('\060' + '\x6f' + '\x36' + chr(0b110101), 8), nzTpIcepk0o8('\x30' + '\157' + chr(0b1101 + 0o44) + chr(0b1000 + 0o57) + chr(0b10010 + 0o36), 7537 - 7529), nzTpIcepk0o8(chr(0b11111 + 0o21) + '\157' + '\x33' + chr(0b110000) + '\063', 0o10), nzTpIcepk0o8(chr(0b11 + 0o55) + chr(0b1100000 + 0o17) + '\x33' + chr(667 - 613) + chr(288 - 240), 8), nzTpIcepk0o8(chr(0b110000 + 0o0) + chr(0b1100101 + 0o12) + chr(0b110010) + chr(0b110111) + chr(0b1110 + 0o43), 8), nzTpIcepk0o8(chr(813 - 765) + chr(0b1101111) + chr(0b10001 + 0o42) + chr(0b100 + 0o55) + '\x34', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110010 + 0o0) + '\x34' + chr(2686 - 2634), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110001) + '\067' + chr(0b10111 + 0o33), 0b1000), nzTpIcepk0o8(chr(2290 - 2242) + chr(0b1010001 + 0o36) + chr(0b110000 + 0o2) + chr(2523 - 2469) + chr(51), 0o10), nzTpIcepk0o8('\060' + chr(3442 - 3331) + '\063' + '\060' + '\060', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b111 + 0o55) + chr(0b1101 + 0o51), 0o10), nzTpIcepk0o8('\060' + '\157' + chr(50) + chr(0b10111 + 0o36) + chr(2680 - 2628), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + '\157' + chr(0b110101) + chr(0b110000), 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'%'), chr(100) + '\x65' + chr(0b110 + 0o135) + '\157' + chr(0b1100100) + '\x65')(chr(9361 - 9244) + chr(116) + chr(4755 - 4653) + '\x2d' + chr(0b10101 + 0o43)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def WpZVKiKVXSMw(cpStk7cY1TJd, CPqgJmwVQYNH=None, eY2SHkRq4ap8=None, lvhpQLc6lQBS=None, DDsi9Zlk71C0=nzTpIcepk0o8('\x30' + chr(111) + '\x30', 24982 - 24974), JRXrVUvZ89BR=None, i5Jrt2X_89tH=None):
JLxP2UOmYsRd = de6vXukRsfn1(roI3spqORKae(ES5oEprVxulp(b'1'), '\x64' + '\x65' + chr(0b110010 + 0o61) + '\x6f' + '\144' + chr(101))('\165' + chr(11378 - 11262) + chr(0b1011100 + 0o12) + '\055' + chr(56)), cpStk7cY1TJd)
UL_4SmXSLkFt = de6vXukRsfn1(roI3spqORKae(ES5oEprVxulp(b'$'), '\144' + chr(0b1100101) + '\143' + chr(0b1001110 + 0o41) + chr(4173 - 4073) + chr(101))('\x75' + chr(10790 - 10674) + chr(102) + chr(0b101101) + '\070'), cpStk7cY1TJd)
XSuHICyKOA41 = KV9ckIhroIia(JLxP2UOmYsRd, UL_4SmXSLkFt)
ONopK8INb53O = []
if CPqgJmwVQYNH == roI3spqORKae(ES5oEprVxulp(b'{\xf6\xf3\xe7E\xa6\xc6'), chr(4397 - 4297) + chr(0b1100001 + 0o4) + '\143' + chr(111) + chr(0b1011001 + 0o13) + '\x65')('\165' + chr(0b11111 + 0o125) + chr(102) + chr(45) + chr(2954 - 2898)) and JLxP2UOmYsRd > nzTpIcepk0o8(chr(1888 - 1840) + chr(111) + '\x30', 8) and (JLxP2UOmYsRd == ftfygxgFas5X(cpStk7cY1TJd) - nzTpIcepk0o8(chr(0b110000) + chr(0b10001 + 0o136) + '\x31', 35261 - 35253)):
if roI3spqORKae(SsdNdRxXOwsF, roI3spqORKae(ES5oEprVxulp(b'm\xed\xf2\xe9\x7f\xaa\xdc\xbft\xd8NY\x9av\x12\xc4'), '\x64' + '\x65' + chr(0b1100011) + '\x6f' + chr(322 - 222) + '\145')(chr(0b100101 + 0o120) + '\164' + chr(102) + '\x2d' + '\x38'))(zero_ok=nzTpIcepk0o8(chr(0b11111 + 0o21) + '\x6f' + chr(1102 - 1053), 8), name=cpStk7cY1TJd[:JLxP2UOmYsRd]) is not None:
return [cpStk7cY1TJd + roI3spqORKae(ES5oEprVxulp(b'+'), '\144' + chr(6956 - 6855) + '\x63' + chr(0b1000100 + 0o53) + chr(0b10 + 0o142) + '\x65')('\x75' + '\x74' + chr(102) + '\x2d' + '\070')]
if JLxP2UOmYsRd < nzTpIcepk0o8(chr(48) + chr(0b1011111 + 0o20) + chr(0b1100 + 0o44), 8) and UL_4SmXSLkFt < nzTpIcepk0o8('\060' + chr(9409 - 9298) + chr(0b110000), 8):
if cpStk7cY1TJd != roI3spqORKae(ES5oEprVxulp(b''), '\x64' + '\x65' + chr(0b1100011) + '\157' + chr(0b101010 + 0o72) + chr(3213 - 3112))('\165' + chr(9011 - 8895) + chr(0b1100110 + 0o0) + chr(0b101101) + '\070') or CPqgJmwVQYNH == roI3spqORKae(ES5oEprVxulp(b'{\xf6\xf3\xe7E\xa6\xc6'), chr(3469 - 3369) + chr(0b1100101) + chr(0b110110 + 0o55) + '\157' + chr(4518 - 4418) + '\x65')(chr(0b1110101) + '\x74' + '\x66' + chr(1524 - 1479) + '\070'):
v3B6eeO_B_ws = SsdNdRxXOwsF.find_projects(describe=nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b100001 + 0o20), 8), level=lvhpQLc6lQBS)
if not DDsi9Zlk71C0:
v3B6eeO_B_ws = [LCrwg7lcbmU9 for LCrwg7lcbmU9 in v3B6eeO_B_ws if LCrwg7lcbmU9[roI3spqORKae(ES5oEprVxulp(b'b\xe0'), chr(0b1010011 + 0o21) + chr(0b1100101) + chr(0b101 + 0o136) + chr(0b111 + 0o150) + '\x64' + chr(101))(chr(0b1110101) + chr(6681 - 6565) + chr(5923 - 5821) + chr(45) + '\x38')] != SsdNdRxXOwsF.WORKSPACE_ID]
ONopK8INb53O += [QBm7W9ztvxSS(LCrwg7lcbmU9[roI3spqORKae(ES5oEprVxulp(b'o\xe1\xef\xeeR\xac\xd0\xbf'), chr(100) + chr(0b1100101) + chr(99) + chr(10814 - 10703) + chr(0b1100011 + 0o1) + chr(0b1100101))('\165' + chr(0b1110100) + chr(102) + chr(0b101101) + '\070')][roI3spqORKae(ES5oEprVxulp(b'e\xe5\xf1\xe8'), chr(100) + chr(0b1100101) + chr(0b1000110 + 0o35) + chr(0b1100 + 0o143) + '\x64' + '\145')('\x75' + chr(0b111001 + 0o73) + '\146' + chr(0b101101) + '\x38')]) + roI3spqORKae(ES5oEprVxulp(b'1'), chr(100) + chr(101) + chr(0b0 + 0o143) + '\157' + chr(0b1100100) + chr(0b110100 + 0o61))(chr(117) + '\x74' + '\146' + chr(0b101101) + chr(0b100 + 0o64)) for LCrwg7lcbmU9 in v3B6eeO_B_ws if LCrwg7lcbmU9[roI3spqORKae(ES5oEprVxulp(b'o\xe1\xef\xeeR\xac\xd0\xbf'), chr(474 - 374) + chr(0b1000100 + 0o41) + chr(0b11001 + 0o112) + chr(111) + '\x64' + chr(0b1100101))('\x75' + chr(11843 - 11727) + chr(0b10010 + 0o124) + '\055' + '\070')][roI3spqORKae(ES5oEprVxulp(b'e\xe5\xf1\xe8'), chr(100) + '\x65' + chr(99) + chr(11078 - 10967) + '\144' + chr(5448 - 5347))(chr(950 - 833) + chr(0b11101 + 0o127) + chr(102) + chr(45) + chr(56))].startswith(cpStk7cY1TJd)]
if CPqgJmwVQYNH == roI3spqORKae(ES5oEprVxulp(b'{\xf6\xf3\xe7E\xa6\xc6'), chr(0b1010111 + 0o15) + '\145' + chr(0b1100011) + chr(0b101101 + 0o102) + chr(0b1100100) + chr(0b1001 + 0o134))(chr(0b11001 + 0o134) + chr(0b10100 + 0o140) + chr(5971 - 5869) + chr(1301 - 1256) + '\x38'):
return ONopK8INb53O
if JLxP2UOmYsRd < nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b1111 + 0o41), 8) and UL_4SmXSLkFt >= nzTpIcepk0o8(chr(48) + '\157' + chr(0b11111 + 0o21), 8):
if roI3spqORKae(SsdNdRxXOwsF, roI3spqORKae(ES5oEprVxulp(b'\\\xcb\xce\xc6s\x95\xf3\x99n\xf7ur'), '\x64' + '\x65' + chr(0b1100 + 0o127) + chr(0b1101111) + chr(0b101011 + 0o71) + chr(101))('\165' + '\x74' + '\x66' + chr(355 - 310) + '\070')) is not None:
try:
USE0lnWsGHEP = SsdNdRxXOwsF.get_handler(SsdNdRxXOwsF.WORKSPACE_ID)
(rkFuI3Ydes2E, A5Y3b6TVbOLY) = dPNyV7B3muat(cpStk7cY1TJd)
ONopK8INb53O += MgizFAVY4Q0v(cpStk7cY1TJd, UL_4SmXSLkFt, USE0lnWsGHEP, rkFuI3Ydes2E)
if CPqgJmwVQYNH != roI3spqORKae(ES5oEprVxulp(b'm\xeb\xf0\xe9E\xb7'), chr(100) + '\145' + chr(0b1000110 + 0o35) + '\x6f' + '\x64' + chr(3395 - 3294))('\165' + chr(0b1110100) + chr(0b1100110) + chr(0b101101) + '\070'):
if eY2SHkRq4ap8 is not None:
for lKkMh44Cd7EO in eY2SHkRq4ap8:
ONopK8INb53O += RPOuM9xSODUL(cpStk7cY1TJd, UL_4SmXSLkFt, USE0lnWsGHEP, rkFuI3Ydes2E, classname=lKkMh44Cd7EO, typespec=JRXrVUvZ89BR, visibility=i5Jrt2X_89tH)
else:
ONopK8INb53O += RPOuM9xSODUL(cpStk7cY1TJd, UL_4SmXSLkFt, USE0lnWsGHEP, rkFuI3Ydes2E, typespec=JRXrVUvZ89BR, visibility=i5Jrt2X_89tH)
except UtiWT6f6p9yZ:
pass
else:
try:
(Ik0q0CEDdulI, rkFuI3Ydes2E, A5Y3b6TVbOLY) = yQmHveYpYTp3(cpStk7cY1TJd, multi_projects=nzTpIcepk0o8(chr(48) + chr(12308 - 12197) + chr(0b110001), 8))
except LWKiq8vNpkJc as MSO7REb1szzF:
roI3spqORKae(bpyfpu4kTbwL.stderr, roI3spqORKae(ES5oEprVxulp(b'f\xe8\xac\xe5H\xb5\xc4\xebg\xd8M\x04'), chr(0b10100 + 0o120) + '\x65' + chr(1433 - 1334) + chr(111) + chr(100) + chr(0b1100101))(chr(0b1000101 + 0o60) + '\164' + chr(102) + chr(0b101101) + '\x38'))(roI3spqORKae(ES5oEprVxulp(b'\x01'), chr(7225 - 7125) + chr(0b1011111 + 0o6) + chr(0b1110 + 0o125) + '\x6f' + chr(8877 - 8777) + chr(0b1011111 + 0o6))(chr(0b1110101) + '\x74' + '\146' + chr(0b101101) + chr(1229 - 1173)) + pPmkLCVA328e(N9zlRy29S1SS(MSO7REb1szzF)))
return ONopK8INb53O
for yNS8IgQS0ymV in Ik0q0CEDdulI:
try:
USE0lnWsGHEP = SsdNdRxXOwsF.get_handler(yNS8IgQS0ymV)
ONopK8INb53O += MgizFAVY4Q0v(cpStk7cY1TJd, XSuHICyKOA41, USE0lnWsGHEP, rkFuI3Ydes2E)
if CPqgJmwVQYNH != roI3spqORKae(ES5oEprVxulp(b'm\xeb\xf0\xe9E\xb7'), chr(8353 - 8253) + chr(0b1100101) + '\143' + chr(0b1010000 + 0o37) + chr(0b1100100) + chr(0b1100101))(chr(117) + chr(116) + chr(0b1100110) + '\x2d' + chr(56)):
if eY2SHkRq4ap8 is not None:
for lKkMh44Cd7EO in eY2SHkRq4ap8:
ONopK8INb53O += RPOuM9xSODUL(cpStk7cY1TJd, XSuHICyKOA41, USE0lnWsGHEP, rkFuI3Ydes2E, classname=lKkMh44Cd7EO, typespec=JRXrVUvZ89BR, visibility=i5Jrt2X_89tH)
else:
ONopK8INb53O += RPOuM9xSODUL(cpStk7cY1TJd, XSuHICyKOA41, USE0lnWsGHEP, rkFuI3Ydes2E, typespec=JRXrVUvZ89BR, visibility=i5Jrt2X_89tH)
except UtiWT6f6p9yZ:
pass
return ONopK8INb53O
|
dnanexus/dx-toolkit
|
src/python/dxpy/bindings/__init__.py
|
verify_string_dxid
|
def verify_string_dxid(dxid, expected_classes):
'''
:param dxid: Value to verify as a DNAnexus ID of class *expected_class*
:param expected_classes: Single string or list of strings of allowed classes of the ID, e.g. "file" or ["project", "container"]
:type expected_classes: string or list of strings
:raises: :exc:`~dxpy.exceptions.DXError` if *dxid* is not a string or is not a valid DNAnexus ID of the expected class
'''
if isinstance(expected_classes, basestring):
expected_classes = [expected_classes]
if not isinstance(expected_classes, list) or len(expected_classes) == 0:
raise DXError('verify_string_dxid: expected_classes should be a string or list of strings')
if not (isinstance(dxid, basestring) and
re.match('^(' + '|'.join(expected_classes) + ')-[0-9a-zA-Z]{24}$', dxid)):
if len(expected_classes) == 1:
str_expected_classes = expected_classes[0]
elif len(expected_classes) == 2:
str_expected_classes = ' or '.join(expected_classes)
else:
str_expected_classes = ', '.join(expected_classes[:-1]) + ', or ' + expected_classes[-1]
raise DXError('Invalid ID of class %s: %r' % (str_expected_classes, dxid))
|
python
|
def verify_string_dxid(dxid, expected_classes):
'''
:param dxid: Value to verify as a DNAnexus ID of class *expected_class*
:param expected_classes: Single string or list of strings of allowed classes of the ID, e.g. "file" or ["project", "container"]
:type expected_classes: string or list of strings
:raises: :exc:`~dxpy.exceptions.DXError` if *dxid* is not a string or is not a valid DNAnexus ID of the expected class
'''
if isinstance(expected_classes, basestring):
expected_classes = [expected_classes]
if not isinstance(expected_classes, list) or len(expected_classes) == 0:
raise DXError('verify_string_dxid: expected_classes should be a string or list of strings')
if not (isinstance(dxid, basestring) and
re.match('^(' + '|'.join(expected_classes) + ')-[0-9a-zA-Z]{24}$', dxid)):
if len(expected_classes) == 1:
str_expected_classes = expected_classes[0]
elif len(expected_classes) == 2:
str_expected_classes = ' or '.join(expected_classes)
else:
str_expected_classes = ', '.join(expected_classes[:-1]) + ', or ' + expected_classes[-1]
raise DXError('Invalid ID of class %s: %r' % (str_expected_classes, dxid))
|
[
"def",
"verify_string_dxid",
"(",
"dxid",
",",
"expected_classes",
")",
":",
"if",
"isinstance",
"(",
"expected_classes",
",",
"basestring",
")",
":",
"expected_classes",
"=",
"[",
"expected_classes",
"]",
"if",
"not",
"isinstance",
"(",
"expected_classes",
",",
"list",
")",
"or",
"len",
"(",
"expected_classes",
")",
"==",
"0",
":",
"raise",
"DXError",
"(",
"'verify_string_dxid: expected_classes should be a string or list of strings'",
")",
"if",
"not",
"(",
"isinstance",
"(",
"dxid",
",",
"basestring",
")",
"and",
"re",
".",
"match",
"(",
"'^('",
"+",
"'|'",
".",
"join",
"(",
"expected_classes",
")",
"+",
"')-[0-9a-zA-Z]{24}$'",
",",
"dxid",
")",
")",
":",
"if",
"len",
"(",
"expected_classes",
")",
"==",
"1",
":",
"str_expected_classes",
"=",
"expected_classes",
"[",
"0",
"]",
"elif",
"len",
"(",
"expected_classes",
")",
"==",
"2",
":",
"str_expected_classes",
"=",
"' or '",
".",
"join",
"(",
"expected_classes",
")",
"else",
":",
"str_expected_classes",
"=",
"', '",
".",
"join",
"(",
"expected_classes",
"[",
":",
"-",
"1",
"]",
")",
"+",
"', or '",
"+",
"expected_classes",
"[",
"-",
"1",
"]",
"raise",
"DXError",
"(",
"'Invalid ID of class %s: %r'",
"%",
"(",
"str_expected_classes",
",",
"dxid",
")",
")"
] |
:param dxid: Value to verify as a DNAnexus ID of class *expected_class*
:param expected_classes: Single string or list of strings of allowed classes of the ID, e.g. "file" or ["project", "container"]
:type expected_classes: string or list of strings
:raises: :exc:`~dxpy.exceptions.DXError` if *dxid* is not a string or is not a valid DNAnexus ID of the expected class
|
[
":",
"param",
"dxid",
":",
"Value",
"to",
"verify",
"as",
"a",
"DNAnexus",
"ID",
"of",
"class",
"*",
"expected_class",
"*",
":",
"param",
"expected_classes",
":",
"Single",
"string",
"or",
"list",
"of",
"strings",
"of",
"allowed",
"classes",
"of",
"the",
"ID",
"e",
".",
"g",
".",
"file",
"or",
"[",
"project",
"container",
"]",
":",
"type",
"expected_classes",
":",
"string",
"or",
"list",
"of",
"strings",
":",
"raises",
":",
":",
"exc",
":",
"~dxpy",
".",
"exceptions",
".",
"DXError",
"if",
"*",
"dxid",
"*",
"is",
"not",
"a",
"string",
"or",
"is",
"not",
"a",
"valid",
"DNAnexus",
"ID",
"of",
"the",
"expected",
"class"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/__init__.py#L32-L52
|
train
|
Verifies that the given string is a valid DNAnexus ID of the class expected_class.
|
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKBy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5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__
ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(48) + '\157' + '\x32' + chr(0b1011 + 0o52) + chr(0b100010 + 0o24), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\061' + chr(0b110010) + chr(48), 54515 - 54507), nzTpIcepk0o8('\060' + chr(11210 - 11099) + '\063' + chr(0b110011) + '\x37', 0o10), nzTpIcepk0o8(chr(1730 - 1682) + '\157' + chr(50) + chr(0b11011 + 0o25) + chr(0b10001 + 0o44), 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110001) + chr(2228 - 2179) + chr(53), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(1147 - 1097) + '\062' + chr(831 - 782), 0b1000), nzTpIcepk0o8(chr(1521 - 1473) + '\x6f' + chr(55) + '\062', 0b1000), nzTpIcepk0o8('\x30' + chr(8331 - 8220) + '\x32' + '\062' + chr(0b11100 + 0o27), 0b1000), nzTpIcepk0o8(chr(0b10100 + 0o34) + chr(0b1000001 + 0o56) + chr(2281 - 2232) + '\x30' + chr(345 - 290), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(49) + chr(0b110100) + chr(2015 - 1964), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1011100 + 0o23) + '\x35' + chr(51), 0o10), nzTpIcepk0o8('\060' + chr(0b1011101 + 0o22) + chr(0b110011) + '\x32' + '\x30', 0o10), nzTpIcepk0o8(chr(48) + chr(111) + '\x31' + chr(50) + chr(0b110111), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x33' + chr(455 - 406), 0o10), nzTpIcepk0o8(chr(680 - 632) + chr(0b1101111) + '\062' + chr(0b11000 + 0o31) + '\x34', 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(0b10000 + 0o41) + chr(0b110100) + '\061', 61608 - 61600), nzTpIcepk0o8(chr(48) + chr(5325 - 5214) + chr(2159 - 2109) + '\x34' + chr(2500 - 2447), 22865 - 22857), nzTpIcepk0o8(chr(524 - 476) + chr(111) + chr(593 - 541) + chr(55), 0o10), nzTpIcepk0o8(chr(0b101000 + 0o10) + chr(7015 - 6904) + '\x32' + '\x32' + '\065', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110011) + chr(2923 - 2868) + '\x30', 34456 - 34448), nzTpIcepk0o8(chr(1949 - 1901) + chr(0b1101111) + chr(0b110011) + '\x30' + chr(0b100 + 0o54), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + '\x34' + chr(55), 8), nzTpIcepk0o8(chr(48) + chr(111) + chr(51) + chr(55) + chr(0b100011 + 0o20), ord("\x08")), nzTpIcepk0o8(chr(0b11110 + 0o22) + chr(0b1101111) + chr(2381 - 2330) + chr(51) + chr(0b110000), 12574 - 12566), nzTpIcepk0o8('\x30' + chr(111) + chr(1422 - 1372) + chr(55) + '\065', 0o10), nzTpIcepk0o8(chr(48) + chr(6329 - 6218) + '\061' + '\065' + chr(878 - 824), 0o10), nzTpIcepk0o8(chr(0b100010 + 0o16) + chr(0b1101111) + chr(0b1011 + 0o50) + chr(711 - 658) + '\x37', 58829 - 58821), nzTpIcepk0o8('\060' + '\157' + chr(0b1000 + 0o52) + chr(753 - 700) + chr(0b110101), 0o10), nzTpIcepk0o8(chr(0b100 + 0o54) + '\x6f' + '\x31' + chr(897 - 845) + chr(1232 - 1177), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(1493 - 1443) + '\060' + chr(0b101 + 0o57), 6235 - 6227), nzTpIcepk0o8(chr(0b101010 + 0o6) + chr(3537 - 3426) + chr(0b100001 + 0o21) + '\060', 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(53) + chr(724 - 670), 0b1000), nzTpIcepk0o8(chr(1912 - 1864) + '\x6f' + chr(0b110101) + '\060', 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(53) + chr(0b100010 + 0o24), 8), nzTpIcepk0o8('\x30' + chr(0b1101001 + 0o6) + chr(0b10011 + 0o37) + chr(0b101100 + 0o11) + chr(0b10111 + 0o32), ord("\x08")), nzTpIcepk0o8(chr(1736 - 1688) + '\x6f' + '\062' + chr(0b110000 + 0o6) + chr(54), 0b1000), nzTpIcepk0o8(chr(0b111 + 0o51) + '\x6f' + '\x31' + '\x30' + chr(52 - 2), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b101011 + 0o104) + chr(49) + chr(0b110010) + '\x36', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\062' + chr(52) + chr(1855 - 1805), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1 + 0o156) + chr(0b110010) + chr(0b110000) + chr(252 - 204), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + '\x6f' + chr(393 - 340) + chr(0b110000), 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x80'), chr(100) + chr(101) + chr(0b110100 + 0o57) + chr(0b1101111) + chr(0b1011001 + 0o13) + chr(101))(chr(4558 - 4441) + chr(0b1110100) + chr(315 - 213) + '\x2d' + chr(56)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def P4Jrngvu_Rir(LaRgxWJnPLsD, fZr8kR1kKbZN):
if suIjIS24Zkqw(fZr8kR1kKbZN, JaQstSroDWOP):
fZr8kR1kKbZN = [fZr8kR1kKbZN]
if not suIjIS24Zkqw(fZr8kR1kKbZN, H4NoA26ON7iG) or ftfygxgFas5X(fZr8kR1kKbZN) == nzTpIcepk0o8(chr(1208 - 1160) + chr(0b1101111) + '\060', 0b1000):
raise JPU16lJ2koBU(roI3spqORKae(ES5oEprVxulp(b'\xd85\xad\xec+\xe8e\xe03\x11B\xbe0F\xe8\x19\xccC\xaf\xd8\xa5_\x8b\xbd\xde\x1a\x8a\xc98\xe7|O[]\xcc\xc5b%\xca\xef\xdb<\xbb\xa5/\xf4\x1a\xf2g\x10_\xa2>w\xebA\xcaU\xb5\x94\xa9T\x8f\xf8\xd2\x08\xcf\xde\x13\xf6y@O]'), chr(0b111111 + 0o45) + chr(0b1100101) + chr(0b1000010 + 0o41) + chr(0b110010 + 0o75) + '\x64' + chr(0b1100101))('\x75' + chr(0b111111 + 0o65) + '\146' + '\x2d' + chr(0b111000)))
if not (suIjIS24Zkqw(LaRgxWJnPLsD, JaQstSroDWOP) and roI3spqORKae(aoTc4YA2bs2R, roI3spqORKae(ES5oEprVxulp(b'\xc6;\xe6\xca$\xfbW\xfa\x04<Q\x91'), chr(903 - 803) + chr(0b1001 + 0o134) + '\143' + chr(111) + chr(0b1100100) + chr(0b1011111 + 0o6))(chr(0b1000 + 0o155) + chr(0b1110100) + chr(0b1100110) + '\x2d' + '\x38'))(roI3spqORKae(ES5oEprVxulp(b'\xf0x'), chr(0b1100100) + chr(101) + chr(0b111000 + 0o53) + '\x6f' + chr(0b1100011 + 0o1) + '\x65')(chr(8351 - 8234) + chr(0b11111 + 0o125) + chr(0b1100110) + chr(0b101101) + '\x38') + roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\xd2'), chr(144 - 44) + chr(5103 - 5002) + chr(7632 - 7533) + chr(111) + '\x64' + chr(101))(chr(0b1110101) + chr(0b1110100) + chr(0b101100 + 0o72) + chr(0b101101) + chr(0b11000 + 0o40)), roI3spqORKae(ES5oEprVxulp(b'\xf7d\xa6\xc8t\xd3Y\xf5\x13 e\xa1'), chr(100) + chr(0b1100101) + chr(99) + chr(111) + chr(617 - 517) + chr(0b11010 + 0o113))(chr(0b10101 + 0o140) + '\x74' + chr(0b1100110) + chr(617 - 572) + '\x38'))(fZr8kR1kKbZN) + roI3spqORKae(ES5oEprVxulp(b'\x87}\x84\xb5`\xa8[\xbe="\x06\x8a\nb\xbeU\xd8\x03'), chr(6674 - 6574) + '\145' + chr(0b1100011) + chr(0b1101100 + 0o3) + '\x64' + chr(101))(chr(1840 - 1723) + '\164' + chr(102) + chr(45) + '\x38'), LaRgxWJnPLsD)):
if ftfygxgFas5X(fZr8kR1kKbZN) == nzTpIcepk0o8(chr(48) + '\x6f' + chr(49), 61687 - 61679):
QvJtc0D2vMoa = fZr8kR1kKbZN[nzTpIcepk0o8(chr(0b1110 + 0o42) + chr(111) + '\x30', 8)]
elif ftfygxgFas5X(fZr8kR1kKbZN) == nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110010), 0b1000):
QvJtc0D2vMoa = roI3spqORKae(ES5oEprVxulp(b'\x8e?\xad\xa5'), chr(100) + '\145' + chr(0b1100011) + '\x6f' + '\144' + '\145')(chr(10702 - 10585) + chr(5384 - 5268) + chr(0b1011011 + 0o13) + chr(196 - 151) + chr(56)).Y4yM9BcfTCNq(fZr8kR1kKbZN)
else:
QvJtc0D2vMoa = roI3spqORKae(ES5oEprVxulp(b'\x82p'), chr(0b111000 + 0o54) + '\145' + '\143' + chr(1540 - 1429) + '\x64' + '\145')('\x75' + chr(8954 - 8838) + chr(0b1100110) + chr(446 - 401) + chr(0b111000)).Y4yM9BcfTCNq(fZr8kR1kKbZN[:-nzTpIcepk0o8(chr(0b11001 + 0o27) + '\x6f' + '\x31', 8)]) + roI3spqORKae(ES5oEprVxulp(b'\x82p\xb0\xf7m'), chr(0b100111 + 0o75) + '\145' + chr(0b110100 + 0o57) + '\157' + chr(0b1011111 + 0o5) + chr(0b1100101))('\x75' + chr(116) + '\x66' + '\055' + '\070') + fZr8kR1kKbZN[-nzTpIcepk0o8(chr(795 - 747) + chr(9578 - 9467) + chr(0b101100 + 0o5), 8)]
raise JPU16lJ2koBU(roI3spqORKae(ES5oEprVxulp(b"\xe7>\xa9\xe4!\xf8^\xb3\x0e'\x0b\xbf19\xef\r\xc4T\xe6\xd8\xe5T\xc1\xf8\x98\x1c"), '\144' + chr(101) + '\x63' + chr(111) + '\x64' + '\145')(chr(0b1110101) + '\x74' + chr(3193 - 3091) + '\055' + chr(1360 - 1304)) % (QvJtc0D2vMoa, LaRgxWJnPLsD))
|
dnanexus/dx-toolkit
|
src/python/dxpy/bindings/__init__.py
|
DXObject.set_id
|
def set_id(self, dxid):
'''
:param dxid: New ID to be associated with the handler
:type dxid: string
Discards the currently stored ID and associates the handler with *dxid*
'''
if dxid is not None:
verify_string_dxid(dxid, self._class)
self._dxid = dxid
|
python
|
def set_id(self, dxid):
'''
:param dxid: New ID to be associated with the handler
:type dxid: string
Discards the currently stored ID and associates the handler with *dxid*
'''
if dxid is not None:
verify_string_dxid(dxid, self._class)
self._dxid = dxid
|
[
"def",
"set_id",
"(",
"self",
",",
"dxid",
")",
":",
"if",
"dxid",
"is",
"not",
"None",
":",
"verify_string_dxid",
"(",
"dxid",
",",
"self",
".",
"_class",
")",
"self",
".",
"_dxid",
"=",
"dxid"
] |
:param dxid: New ID to be associated with the handler
:type dxid: string
Discards the currently stored ID and associates the handler with *dxid*
|
[
":",
"param",
"dxid",
":",
"New",
"ID",
"to",
"be",
"associated",
"with",
"the",
"handler",
":",
"type",
"dxid",
":",
"string"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/__init__.py#L113-L123
|
train
|
Sets the ID of the currently stored handler.
|
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJ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,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(1220 - 1172) + '\x6f' + chr(1507 - 1457) + chr(0b101010 + 0o14) + '\x30', 0o10), nzTpIcepk0o8(chr(300 - 252) + chr(6335 - 6224) + chr(0b110011) + chr(50) + chr(0b10011 + 0o40), 41695 - 41687), nzTpIcepk0o8(chr(48) + chr(111) + '\x31' + chr(0b110110) + '\064', 0o10), nzTpIcepk0o8(chr(593 - 545) + '\157' + chr(0b110011) + chr(1659 - 1605) + '\x31', ord("\x08")), nzTpIcepk0o8(chr(2219 - 2171) + chr(0b1101111) + chr(49) + '\x30' + chr(1297 - 1244), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(51) + '\063' + chr(52), 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(51) + '\x36' + chr(54), 1401 - 1393), nzTpIcepk0o8('\x30' + chr(8837 - 8726) + '\x37' + chr(48), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x33' + '\x36' + '\x33', 46745 - 46737), nzTpIcepk0o8(chr(0b1001 + 0o47) + chr(7279 - 7168) + chr(1152 - 1098), 55923 - 55915), nzTpIcepk0o8(chr(0b1100 + 0o44) + chr(6194 - 6083) + '\063' + chr(0b110001), 34308 - 34300), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\062' + chr(52) + chr(0b110 + 0o56), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(1913 - 1864) + chr(0b110101) + '\x33', 0b1000), nzTpIcepk0o8(chr(1728 - 1680) + '\157' + chr(1048 - 998) + '\x34' + chr(0b110 + 0o61), 20264 - 20256), nzTpIcepk0o8('\060' + '\157' + '\062' + chr(48) + chr(1965 - 1914), 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(2339 - 2288) + chr(50) + chr(52), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b100 + 0o153) + '\x33' + chr(51) + chr(54), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(1478 - 1429) + chr(1209 - 1154), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1011000 + 0o27) + chr(0b110010) + '\067' + chr(54), 44575 - 44567), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110111) + '\064', 4961 - 4953), nzTpIcepk0o8(chr(2070 - 2022) + chr(0b1101111) + chr(0b1100 + 0o46) + chr(0b110000) + '\065', ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(0b11011 + 0o27) + chr(0b110000) + chr(0b11111 + 0o30), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110001) + '\x32' + '\064', 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(2552 - 2501) + '\x35', 0b1000), nzTpIcepk0o8('\060' + chr(111) + '\x31' + chr(650 - 601) + chr(0b11000 + 0o36), 7817 - 7809), nzTpIcepk0o8(chr(0b100101 + 0o13) + '\x6f' + '\x32' + chr(0b101100 + 0o10), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b1 + 0o61) + '\x33' + chr(53), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b11100 + 0o33) + chr(0b110001 + 0o0), 0o10), nzTpIcepk0o8('\060' + chr(2453 - 2342) + chr(0b101101 + 0o4) + chr(55) + '\x37', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\063' + '\x32' + chr(0b110111), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\062' + '\x33' + '\x36', 29173 - 29165), nzTpIcepk0o8('\060' + '\x6f' + chr(219 - 168) + chr(0b110000) + chr(53), 21993 - 21985), nzTpIcepk0o8(chr(1835 - 1787) + chr(3748 - 3637) + chr(50) + chr(2265 - 2216) + '\067', 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(2039 - 1990) + chr(52) + chr(52), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(51) + '\x30' + chr(55), 25123 - 25115), nzTpIcepk0o8('\x30' + '\157' + '\x32' + chr(1612 - 1561) + chr(0b110111), ord("\x08")), nzTpIcepk0o8(chr(1088 - 1040) + chr(0b1101111) + chr(0b110001) + chr(0b110011), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b101101 + 0o5) + chr(48) + chr(0b110 + 0o61), 8), nzTpIcepk0o8('\060' + chr(347 - 236) + '\062' + '\x30' + chr(0b1100 + 0o47), 8), nzTpIcepk0o8('\x30' + '\157' + chr(1594 - 1539), 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(1480 - 1432) + chr(9837 - 9726) + chr(1864 - 1811) + '\060', 15862 - 15854)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x9e'), chr(8472 - 8372) + '\145' + '\x63' + chr(111) + '\144' + chr(0b110111 + 0o56))(chr(117) + chr(0b1010110 + 0o36) + chr(0b1010110 + 0o20) + chr(45) + chr(0b100000 + 0o30)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def VzfLvZsy2J6D(hXMPsSrOQzbh, LaRgxWJnPLsD):
if LaRgxWJnPLsD is not None:
P4Jrngvu_Rir(LaRgxWJnPLsD, roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xc1\x91 \xa4\x0f\x91\x9dl\xbbS!\xcb'), chr(0b1100100) + chr(6000 - 5899) + chr(0b1100011) + chr(11125 - 11014) + chr(0b100010 + 0o102) + '\145')(chr(0b1110101) + '\x74' + chr(0b100010 + 0o104) + '\055' + '\070')))
hXMPsSrOQzbh.d6KUnRQv6735 = LaRgxWJnPLsD
|
dnanexus/dx-toolkit
|
src/python/dxpy/bindings/__init__.py
|
DXDataObject.new
|
def new(self, **kwargs):
'''
:param project: Project ID in which to create the new remote object
:type project: string
:param name: Name for the object
:type name: string
:param tags: Tags to add for the object
:type tags: list of strings
:param types: Types to add to the object
:type types: list of strings
:param hidden: Whether the object is to be hidden
:type hidden: boolean
:param properties: Properties given as key-value pairs of strings
:type properties: dict
:param details: Details to set for the object
:type details: dict or list
:param folder: Full path to the destination folder
:type folder: string
:param parents: If True, recursively create all parent folders if they are missing
:type parents: boolean
:rtype: :class:`DXDataObject`
Creates a data object with the given fields. Only *project* is
required, and only if no default project or workspace is set;
the remaining arguments are optional and have default behavior
as specified in the API documentation for the ``/new`` method of
each data object class.
'''
if not hasattr(self, '_class'):
raise NotImplementedError(
"DXDataObject is an abstract class; a subclass should" + \
"be initialized instead.")
dx_hash, remaining_kwargs = self._get_creation_params(kwargs)
self._new(dx_hash, **remaining_kwargs)
|
python
|
def new(self, **kwargs):
'''
:param project: Project ID in which to create the new remote object
:type project: string
:param name: Name for the object
:type name: string
:param tags: Tags to add for the object
:type tags: list of strings
:param types: Types to add to the object
:type types: list of strings
:param hidden: Whether the object is to be hidden
:type hidden: boolean
:param properties: Properties given as key-value pairs of strings
:type properties: dict
:param details: Details to set for the object
:type details: dict or list
:param folder: Full path to the destination folder
:type folder: string
:param parents: If True, recursively create all parent folders if they are missing
:type parents: boolean
:rtype: :class:`DXDataObject`
Creates a data object with the given fields. Only *project* is
required, and only if no default project or workspace is set;
the remaining arguments are optional and have default behavior
as specified in the API documentation for the ``/new`` method of
each data object class.
'''
if not hasattr(self, '_class'):
raise NotImplementedError(
"DXDataObject is an abstract class; a subclass should" + \
"be initialized instead.")
dx_hash, remaining_kwargs = self._get_creation_params(kwargs)
self._new(dx_hash, **remaining_kwargs)
|
[
"def",
"new",
"(",
"self",
",",
"*",
"*",
"kwargs",
")",
":",
"if",
"not",
"hasattr",
"(",
"self",
",",
"'_class'",
")",
":",
"raise",
"NotImplementedError",
"(",
"\"DXDataObject is an abstract class; a subclass should\"",
"+",
"\"be initialized instead.\"",
")",
"dx_hash",
",",
"remaining_kwargs",
"=",
"self",
".",
"_get_creation_params",
"(",
"kwargs",
")",
"self",
".",
"_new",
"(",
"dx_hash",
",",
"*",
"*",
"remaining_kwargs",
")"
] |
:param project: Project ID in which to create the new remote object
:type project: string
:param name: Name for the object
:type name: string
:param tags: Tags to add for the object
:type tags: list of strings
:param types: Types to add to the object
:type types: list of strings
:param hidden: Whether the object is to be hidden
:type hidden: boolean
:param properties: Properties given as key-value pairs of strings
:type properties: dict
:param details: Details to set for the object
:type details: dict or list
:param folder: Full path to the destination folder
:type folder: string
:param parents: If True, recursively create all parent folders if they are missing
:type parents: boolean
:rtype: :class:`DXDataObject`
Creates a data object with the given fields. Only *project* is
required, and only if no default project or workspace is set;
the remaining arguments are optional and have default behavior
as specified in the API documentation for the ``/new`` method of
each data object class.
|
[
":",
"param",
"project",
":",
"Project",
"ID",
"in",
"which",
"to",
"create",
"the",
"new",
"remote",
"object",
":",
"type",
"project",
":",
"string",
":",
"param",
"name",
":",
"Name",
"for",
"the",
"object",
":",
"type",
"name",
":",
"string",
":",
"param",
"tags",
":",
"Tags",
"to",
"add",
"for",
"the",
"object",
":",
"type",
"tags",
":",
"list",
"of",
"strings",
":",
"param",
"types",
":",
"Types",
"to",
"add",
"to",
"the",
"object",
":",
"type",
"types",
":",
"list",
"of",
"strings",
":",
"param",
"hidden",
":",
"Whether",
"the",
"object",
"is",
"to",
"be",
"hidden",
":",
"type",
"hidden",
":",
"boolean",
":",
"param",
"properties",
":",
"Properties",
"given",
"as",
"key",
"-",
"value",
"pairs",
"of",
"strings",
":",
"type",
"properties",
":",
"dict",
":",
"param",
"details",
":",
"Details",
"to",
"set",
"for",
"the",
"object",
":",
"type",
"details",
":",
"dict",
"or",
"list",
":",
"param",
"folder",
":",
"Full",
"path",
"to",
"the",
"destination",
"folder",
":",
"type",
"folder",
":",
"string",
":",
"param",
"parents",
":",
"If",
"True",
"recursively",
"create",
"all",
"parent",
"folders",
"if",
"they",
"are",
"missing",
":",
"type",
"parents",
":",
"boolean"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/__init__.py#L222-L258
|
train
|
Creates a new object in the specified project.
|
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,C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a,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__
ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\060' + '\x6f' + chr(50) + '\060' + '\x35', 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b1000 + 0o51) + chr(2151 - 2103) + chr(0b11100 + 0o31), ord("\x08")), nzTpIcepk0o8('\x30' + chr(9600 - 9489) + chr(53) + chr(1454 - 1399), 0b1000), nzTpIcepk0o8(chr(1044 - 996) + '\157' + '\065' + chr(0b110111), 8), nzTpIcepk0o8('\060' + '\x6f' + '\062' + '\x36' + '\x35', 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110001) + chr(0b101000 + 0o17) + chr(0b110011), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(49) + chr(1012 - 960) + '\x33', 0b1000), nzTpIcepk0o8(chr(1203 - 1155) + chr(111) + chr(49) + '\x33' + '\x37', 33554 - 33546), nzTpIcepk0o8('\x30' + chr(7733 - 7622) + chr(49) + chr(52) + '\x37', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b11010 + 0o30) + chr(1060 - 1009) + chr(53), ord("\x08")), nzTpIcepk0o8(chr(0b100111 + 0o11) + chr(0b1100101 + 0o12) + '\066' + chr(53), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(1281 - 1230) + chr(52) + chr(0b101101 + 0o4), 0b1000), nzTpIcepk0o8(chr(0b100011 + 0o15) + chr(0b101 + 0o152) + chr(0b110011) + chr(0b111 + 0o56) + chr(0b110110), 9622 - 9614), nzTpIcepk0o8('\x30' + chr(111) + chr(0b101101 + 0o4) + chr(54) + chr(0b110100), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110010 + 0o1) + chr(0b110011) + chr(0b110011), 0b1000), nzTpIcepk0o8(chr(312 - 264) + chr(3310 - 3199) + chr(2044 - 1994) + chr(0b110011) + '\x34', 29847 - 29839), nzTpIcepk0o8(chr(0b1 + 0o57) + '\157' + '\067' + chr(0b100 + 0o60), ord("\x08")), nzTpIcepk0o8(chr(0b1100 + 0o44) + chr(111) + chr(50) + '\x33' + chr(0b1101 + 0o43), 0o10), nzTpIcepk0o8('\x30' + chr(10751 - 10640) + chr(0b110011) + '\x36' + '\064', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(12291 - 12180) + chr(0b110010) + chr(0b100010 + 0o24) + chr(0b110101), 8), nzTpIcepk0o8(chr(48) + chr(111) + '\x32' + chr(0b101101 + 0o4) + '\x36', 25002 - 24994), nzTpIcepk0o8('\060' + chr(111) + '\063' + chr(1586 - 1537) + chr(0b110011 + 0o1), ord("\x08")), nzTpIcepk0o8(chr(0b1101 + 0o43) + chr(0b1101111) + '\062' + chr(49) + chr(0b1010 + 0o46), 0o10), nzTpIcepk0o8(chr(0b1110 + 0o42) + chr(111) + chr(0b100000 + 0o23) + chr(0b110011) + chr(55), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(53) + chr(49), 30938 - 30930), nzTpIcepk0o8(chr(1193 - 1145) + '\x6f' + '\x33' + chr(2089 - 2041) + chr(862 - 813), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b101010 + 0o10) + '\x31' + chr(0b100000 + 0o23), ord("\x08")), nzTpIcepk0o8(chr(931 - 883) + '\x6f' + '\x37' + '\061', 0o10), nzTpIcepk0o8(chr(320 - 272) + '\x6f' + chr(0b100100 + 0o15) + chr(0b110010) + chr(0b110010), 48552 - 48544), nzTpIcepk0o8(chr(0b10011 + 0o35) + chr(111) + chr(1215 - 1165) + chr(55) + chr(0b110010), 0b1000), nzTpIcepk0o8(chr(0b1011 + 0o45) + chr(0b1010110 + 0o31) + '\x31' + chr(0b110000) + chr(0b110000), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(2121 - 2072) + chr(51) + chr(52), 59376 - 59368), nzTpIcepk0o8(chr(0b101101 + 0o3) + chr(0b1101111) + chr(185 - 136) + '\x30' + chr(0b110110), 0o10), nzTpIcepk0o8(chr(2161 - 2113) + '\157' + chr(0b110001) + chr(0b110011) + chr(52), 8), nzTpIcepk0o8('\060' + chr(111) + chr(50) + '\066' + chr(0b10 + 0o60), 0o10), nzTpIcepk0o8(chr(48) + chr(0b0 + 0o157) + '\061' + chr(0b110111) + chr(0b11 + 0o56), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b11011 + 0o26) + chr(52) + '\064', ord("\x08")), nzTpIcepk0o8('\060' + chr(3454 - 3343) + chr(0b10110 + 0o35) + chr(0b11000 + 0o37) + chr(0b1011 + 0o53), 0b1000), nzTpIcepk0o8(chr(1050 - 1002) + '\157' + chr(0b110011) + chr(53) + chr(0b10111 + 0o33), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1111 + 0o140) + '\x31' + chr(54) + chr(0b11100 + 0o26), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110101) + chr(0b110000), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xab'), chr(0b1011000 + 0o14) + chr(0b1100101) + '\x63' + '\157' + chr(100) + chr(2246 - 2145))(chr(0b110011 + 0o102) + '\x74' + chr(0b100011 + 0o103) + chr(1682 - 1637) + '\x38') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def bZWmgf4GjgvH(hXMPsSrOQzbh, **q5n0sHDDTy90):
if not dRKdVnHPFq7C(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xda&CN\xc6\x08'), chr(9159 - 9059) + chr(0b101000 + 0o75) + chr(7011 - 6912) + '\157' + '\144' + chr(0b1101 + 0o130))(chr(940 - 823) + chr(0b1110100) + '\146' + '\x2d' + chr(0b1011 + 0o55))):
raise Y1otPTwLRJvi(roI3spqORKae(ES5oEprVxulp(b'\xc1\x1dkN\xc1\x1a,=\r\xf8V\x95\xce\x1d\xa8\xbc]\xf6\xd4\xd4\xec\xbf\xfc\xadH\xa2\xff\x191\xd6!/5g\x92\x18D\x8d\x9f\x10\xe6)N\\\xc6[\x107\x08\xe8Y\x85'), chr(0b101 + 0o137) + '\x65' + chr(99) + chr(9713 - 9602) + chr(0b1100100) + chr(101))('\x75' + '\164' + chr(0b1100110) + chr(45) + chr(56)) + roI3spqORKae(ES5oEprVxulp(b'\xe7 \x0fF\xdb\x12\x176\x06\xf1\\\x9b\x8b\x10\xfb\xf5R\xeb\x80\xd0\xef\xa8\xa6'), chr(0b1100100) + chr(101) + chr(0b11100 + 0o107) + chr(0b1101111) + chr(8745 - 8645) + '\145')('\x75' + chr(116) + '\x66' + chr(1845 - 1800) + '\x38'))
(uLIGGIY0qRFO, yS8WmAyRjQ15) = hXMPsSrOQzbh._get_creation_params(q5n0sHDDTy90)
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xda+JX'), chr(100) + chr(101) + chr(0b11000 + 0o113) + '\157' + '\144' + '\x65')(chr(117) + chr(0b1110100) + '\146' + chr(0b11111 + 0o16) + chr(1703 - 1647)))(uLIGGIY0qRFO, **yS8WmAyRjQ15)
|
dnanexus/dx-toolkit
|
src/python/dxpy/bindings/__init__.py
|
DXDataObject.set_ids
|
def set_ids(self, dxid, project=None):
'''
:param dxid: Object ID or a DNAnexus link (a dict with key "$dnanexus_link"); if a project ID is provided in the DNAnexus link, it will be used as *project* unless *project* has been explictly provided
:type dxid: string or dict
:param project: Project ID
:type project: string
Discards the currently stored ID and associates the handler with
*dxid*. Associates the handler with the copy of the object in
*project* (if no project is explicitly specified, the default
data container is used).
'''
if is_dxlink(dxid):
dxid, project_from_link = get_dxlink_ids(dxid)
if project is None:
project = project_from_link
if dxid is not None:
verify_string_dxid(dxid, self._class)
self._dxid = dxid
if project is None:
self._proj = dxpy.WORKSPACE_ID
elif project is not None:
verify_string_dxid(project, ['project', 'container'])
self._proj = project
|
python
|
def set_ids(self, dxid, project=None):
'''
:param dxid: Object ID or a DNAnexus link (a dict with key "$dnanexus_link"); if a project ID is provided in the DNAnexus link, it will be used as *project* unless *project* has been explictly provided
:type dxid: string or dict
:param project: Project ID
:type project: string
Discards the currently stored ID and associates the handler with
*dxid*. Associates the handler with the copy of the object in
*project* (if no project is explicitly specified, the default
data container is used).
'''
if is_dxlink(dxid):
dxid, project_from_link = get_dxlink_ids(dxid)
if project is None:
project = project_from_link
if dxid is not None:
verify_string_dxid(dxid, self._class)
self._dxid = dxid
if project is None:
self._proj = dxpy.WORKSPACE_ID
elif project is not None:
verify_string_dxid(project, ['project', 'container'])
self._proj = project
|
[
"def",
"set_ids",
"(",
"self",
",",
"dxid",
",",
"project",
"=",
"None",
")",
":",
"if",
"is_dxlink",
"(",
"dxid",
")",
":",
"dxid",
",",
"project_from_link",
"=",
"get_dxlink_ids",
"(",
"dxid",
")",
"if",
"project",
"is",
"None",
":",
"project",
"=",
"project_from_link",
"if",
"dxid",
"is",
"not",
"None",
":",
"verify_string_dxid",
"(",
"dxid",
",",
"self",
".",
"_class",
")",
"self",
".",
"_dxid",
"=",
"dxid",
"if",
"project",
"is",
"None",
":",
"self",
".",
"_proj",
"=",
"dxpy",
".",
"WORKSPACE_ID",
"elif",
"project",
"is",
"not",
"None",
":",
"verify_string_dxid",
"(",
"project",
",",
"[",
"'project'",
",",
"'container'",
"]",
")",
"self",
".",
"_proj",
"=",
"project"
] |
:param dxid: Object ID or a DNAnexus link (a dict with key "$dnanexus_link"); if a project ID is provided in the DNAnexus link, it will be used as *project* unless *project* has been explictly provided
:type dxid: string or dict
:param project: Project ID
:type project: string
Discards the currently stored ID and associates the handler with
*dxid*. Associates the handler with the copy of the object in
*project* (if no project is explicitly specified, the default
data container is used).
|
[
":",
"param",
"dxid",
":",
"Object",
"ID",
"or",
"a",
"DNAnexus",
"link",
"(",
"a",
"dict",
"with",
"key",
"$dnanexus_link",
")",
";",
"if",
"a",
"project",
"ID",
"is",
"provided",
"in",
"the",
"DNAnexus",
"link",
"it",
"will",
"be",
"used",
"as",
"*",
"project",
"*",
"unless",
"*",
"project",
"*",
"has",
"been",
"explictly",
"provided",
":",
"type",
"dxid",
":",
"string",
"or",
"dict",
":",
"param",
"project",
":",
"Project",
"ID",
":",
"type",
"project",
":",
"string"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/__init__.py#L271-L297
|
train
|
Sets the ID and project of the currently stored 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,fPFTJx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,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' + '\063' + chr(49) + '\066', 63032 - 63024), nzTpIcepk0o8(chr(0b11011 + 0o25) + chr(10266 - 10155) + '\x32' + '\067' + '\061', ord("\x08")), nzTpIcepk0o8(chr(1213 - 1165) + chr(11014 - 10903) + chr(49) + chr(0b10101 + 0o35) + '\x30', 0o10), nzTpIcepk0o8('\060' + '\157' + chr(0b110011) + chr(0b100010 + 0o21) + chr(0b110000), 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(1237 - 1188) + chr(0b110110) + chr(1964 - 1916), 0o10), nzTpIcepk0o8(chr(0b100101 + 0o13) + chr(8278 - 8167) + chr(2556 - 2505) + '\x35' + '\x31', 4868 - 4860), nzTpIcepk0o8(chr(625 - 577) + chr(0b10100 + 0o133) + chr(0b1000 + 0o52) + '\x31' + chr(1500 - 1447), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\063' + chr(53) + chr(0b110110), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x37', 15240 - 15232), nzTpIcepk0o8(chr(48) + '\x6f' + '\062' + chr(0b110101) + chr(285 - 233), 0o10), nzTpIcepk0o8(chr(0b1000 + 0o50) + chr(0b1100000 + 0o17) + chr(0b110010) + chr(120 - 72) + chr(1321 - 1273), 0b1000), nzTpIcepk0o8(chr(48) + chr(1949 - 1838) + chr(0b101011 + 0o12) + '\060', 16199 - 16191), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(248 - 197) + chr(1475 - 1421) + '\063', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1001111 + 0o40) + chr(0b110010) + chr(0b110011) + '\x31', ord("\x08")), nzTpIcepk0o8('\060' + chr(4661 - 4550) + '\063' + chr(0b110001 + 0o5) + chr(0b110000), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(2271 - 2220) + chr(2185 - 2130) + '\x37', 0o10), nzTpIcepk0o8(chr(48) + '\157' + '\062' + chr(2115 - 2063) + chr(49), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b111 + 0o150) + chr(0b10011 + 0o44) + chr(0b100111 + 0o16), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(0b10010 + 0o40) + chr(1941 - 1888) + chr(0b100011 + 0o21), 8), nzTpIcepk0o8(chr(48) + chr(111) + chr(53) + chr(0b110001), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + '\x33' + chr(0b101101 + 0o6) + chr(54), 0b1000), nzTpIcepk0o8('\060' + chr(7169 - 7058) + chr(0b11 + 0o60) + '\066', 34546 - 34538), nzTpIcepk0o8(chr(0b11 + 0o55) + '\157' + '\x33' + chr(3024 - 2969) + '\x36', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1001001 + 0o46) + chr(0b110001) + chr(53) + '\x30', 38492 - 38484), nzTpIcepk0o8(chr(0b100100 + 0o14) + chr(9084 - 8973) + '\x31' + chr(0b110101) + chr(0b1011 + 0o53), 0o10), nzTpIcepk0o8(chr(1128 - 1080) + chr(0b1101111) + chr(2167 - 2116) + chr(0b1 + 0o65) + chr(0b110001), 37718 - 37710), nzTpIcepk0o8('\060' + chr(0b1001010 + 0o45) + '\x36', ord("\x08")), nzTpIcepk0o8('\060' + chr(3170 - 3059) + chr(0b110001) + '\067' + chr(0b110011), 0o10), nzTpIcepk0o8('\x30' + chr(111) + '\x32' + '\061' + chr(0b11011 + 0o34), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(1518 - 1407) + '\062' + '\x35' + '\x33', 26854 - 26846), nzTpIcepk0o8(chr(153 - 105) + chr(11630 - 11519) + chr(1268 - 1217) + chr(2681 - 2628) + chr(1524 - 1473), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + '\061' + chr(1558 - 1508) + '\x35', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(49) + chr(0b110100) + chr(0b110111), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(9653 - 9542) + chr(0b10100 + 0o37) + '\x35' + chr(1116 - 1068), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(11976 - 11865) + '\x31' + '\x31' + '\x32', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b100001 + 0o116) + '\061' + chr(51) + chr(0b110001), 30163 - 30155), nzTpIcepk0o8(chr(48) + chr(0b101110 + 0o101) + chr(1148 - 1098) + chr(0b100010 + 0o17) + chr(0b111 + 0o55), 23392 - 23384), nzTpIcepk0o8(chr(1232 - 1184) + chr(0b1 + 0o156) + chr(0b1101 + 0o46) + chr(0b110000) + chr(0b10011 + 0o43), ord("\x08")), nzTpIcepk0o8(chr(0b11001 + 0o27) + '\157' + chr(0b110010) + chr(1932 - 1884) + chr(55), 7831 - 7823), nzTpIcepk0o8('\x30' + chr(7755 - 7644) + '\062' + '\x30' + chr(960 - 911), 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b100001 + 0o17) + chr(8171 - 8060) + chr(0b100001 + 0o24) + chr(48), 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xe0'), chr(7446 - 7346) + chr(0b1000010 + 0o43) + chr(0b101101 + 0o66) + '\x6f' + chr(7328 - 7228) + '\x65')('\165' + '\164' + chr(102) + chr(0b101101) + '\070') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def P2ocNcQnLx6E(hXMPsSrOQzbh, LaRgxWJnPLsD, mcjejRq_Q0_k=None):
if Ks3IgO_hjqvX(LaRgxWJnPLsD):
(LaRgxWJnPLsD, BfXLFHVGcyXI) = P42BNw5zahrr(LaRgxWJnPLsD)
if mcjejRq_Q0_k is None:
mcjejRq_Q0_k = BfXLFHVGcyXI
if LaRgxWJnPLsD is not None:
P4Jrngvu_Rir(LaRgxWJnPLsD, roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xbf\xfb\x04\x8d:\xa4\xe6\xbaO\xf9\xb8G'), chr(0b1100100) + chr(0b1100101) + chr(0b100011 + 0o100) + chr(111) + chr(0b1100100) + '\145')('\x75' + chr(116) + '\x66' + chr(0b101101) + '\x38')))
hXMPsSrOQzbh.d6KUnRQv6735 = LaRgxWJnPLsD
if mcjejRq_Q0_k is None:
hXMPsSrOQzbh.IUmXRX3SJ1GV = SsdNdRxXOwsF.WORKSPACE_ID
elif mcjejRq_Q0_k is not None:
P4Jrngvu_Rir(mcjejRq_Q0_k, [roI3spqORKae(ES5oEprVxulp(b'\xbe\xcb?\xb2\x15\x8a\xf9'), chr(0b101 + 0o137) + '\145' + chr(0b11 + 0o140) + chr(9417 - 9306) + chr(0b10000 + 0o124) + '\145')(chr(0b1110101) + chr(116) + chr(0b1100110) + '\055' + chr(0b110001 + 0o7)), roI3spqORKae(ES5oEprVxulp(b'\xad\xd6>\xac\x11\x80\xe3\x8bu'), chr(0b1010100 + 0o20) + chr(7269 - 7168) + chr(1623 - 1524) + '\x6f' + chr(100) + chr(101))(chr(0b1110101) + chr(8434 - 8318) + '\x66' + chr(0b1011 + 0o42) + chr(0b1100 + 0o54))])
hXMPsSrOQzbh.IUmXRX3SJ1GV = mcjejRq_Q0_k
|
dnanexus/dx-toolkit
|
src/python/dxpy/bindings/__init__.py
|
DXDataObject.describe
|
def describe(self, incl_properties=False, incl_details=False, fields=None, default_fields=None, **kwargs):
"""
:param fields: set of fields to include in the output, for
example ``{'name', 'modified'}``. The field ``id`` is always
implicitly included. If ``fields`` is specified, the default
fields are not included (that is, only the fields specified
here, and ``id``, are included) unless ``default_fields`` is
additionally set to True.
:type fields: set or sequence of str
:param default_fields: if True, include the default fields in
addition to fields requested in ``fields``, if any; if
False, only the fields specified in ``fields``, if any, are
returned (defaults to False if ``fields`` is specified, True
otherwise)
:type default_fields: bool
:param incl_properties: if true, includes the properties of the
object in the output (deprecated; use
``fields={'properties'}, default_fields=True`` instead)
:type incl_properties: bool
:param incl_details: if true, includes the details of the object
in the output (deprecated; use ``fields={'details'},
default_fields=True`` instead)
:type incl_details: bool
:returns: Description of the remote object
:rtype: dict
Return a dict with a description of the remote data object.
The result includes the key-value pairs as specified in the API
documentation for the ``/describe`` method of each data object
class. The API defines some default set of fields that will be
included (at a minimum, "id", "class", etc. should be available,
and there may be additional fields that vary based on the
class); the set of fields may be customized using ``fields`` and
``default_fields``.
Any project-specific metadata fields (name, properties, and
tags) are obtained from the copy of the object in the project
associated with the handler, if possible.
"""
if self._dxid is None:
raise DXError('This {handler} handler has not been initialized with a {_class} ID and cannot be described'.format(
handler=self.__class__.__name__,
_class=self._class)
)
if (incl_properties or incl_details) and (fields is not None or default_fields is not None):
raise ValueError('Cannot specify properties or details in conjunction with fields or default_fields')
if incl_properties or incl_details:
describe_input = dict(properties=incl_properties, details=incl_details)
else:
describe_input = {}
if default_fields is not None:
describe_input['defaultFields'] = default_fields
if fields is not None:
describe_input['fields'] = {field_name: True for field_name in fields}
if self._proj is not None:
describe_input["project"] = self._proj
self._desc = self._describe(self._dxid, describe_input, **kwargs)
return self._desc
|
python
|
def describe(self, incl_properties=False, incl_details=False, fields=None, default_fields=None, **kwargs):
"""
:param fields: set of fields to include in the output, for
example ``{'name', 'modified'}``. The field ``id`` is always
implicitly included. If ``fields`` is specified, the default
fields are not included (that is, only the fields specified
here, and ``id``, are included) unless ``default_fields`` is
additionally set to True.
:type fields: set or sequence of str
:param default_fields: if True, include the default fields in
addition to fields requested in ``fields``, if any; if
False, only the fields specified in ``fields``, if any, are
returned (defaults to False if ``fields`` is specified, True
otherwise)
:type default_fields: bool
:param incl_properties: if true, includes the properties of the
object in the output (deprecated; use
``fields={'properties'}, default_fields=True`` instead)
:type incl_properties: bool
:param incl_details: if true, includes the details of the object
in the output (deprecated; use ``fields={'details'},
default_fields=True`` instead)
:type incl_details: bool
:returns: Description of the remote object
:rtype: dict
Return a dict with a description of the remote data object.
The result includes the key-value pairs as specified in the API
documentation for the ``/describe`` method of each data object
class. The API defines some default set of fields that will be
included (at a minimum, "id", "class", etc. should be available,
and there may be additional fields that vary based on the
class); the set of fields may be customized using ``fields`` and
``default_fields``.
Any project-specific metadata fields (name, properties, and
tags) are obtained from the copy of the object in the project
associated with the handler, if possible.
"""
if self._dxid is None:
raise DXError('This {handler} handler has not been initialized with a {_class} ID and cannot be described'.format(
handler=self.__class__.__name__,
_class=self._class)
)
if (incl_properties or incl_details) and (fields is not None or default_fields is not None):
raise ValueError('Cannot specify properties or details in conjunction with fields or default_fields')
if incl_properties or incl_details:
describe_input = dict(properties=incl_properties, details=incl_details)
else:
describe_input = {}
if default_fields is not None:
describe_input['defaultFields'] = default_fields
if fields is not None:
describe_input['fields'] = {field_name: True for field_name in fields}
if self._proj is not None:
describe_input["project"] = self._proj
self._desc = self._describe(self._dxid, describe_input, **kwargs)
return self._desc
|
[
"def",
"describe",
"(",
"self",
",",
"incl_properties",
"=",
"False",
",",
"incl_details",
"=",
"False",
",",
"fields",
"=",
"None",
",",
"default_fields",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"if",
"self",
".",
"_dxid",
"is",
"None",
":",
"raise",
"DXError",
"(",
"'This {handler} handler has not been initialized with a {_class} ID and cannot be described'",
".",
"format",
"(",
"handler",
"=",
"self",
".",
"__class__",
".",
"__name__",
",",
"_class",
"=",
"self",
".",
"_class",
")",
")",
"if",
"(",
"incl_properties",
"or",
"incl_details",
")",
"and",
"(",
"fields",
"is",
"not",
"None",
"or",
"default_fields",
"is",
"not",
"None",
")",
":",
"raise",
"ValueError",
"(",
"'Cannot specify properties or details in conjunction with fields or default_fields'",
")",
"if",
"incl_properties",
"or",
"incl_details",
":",
"describe_input",
"=",
"dict",
"(",
"properties",
"=",
"incl_properties",
",",
"details",
"=",
"incl_details",
")",
"else",
":",
"describe_input",
"=",
"{",
"}",
"if",
"default_fields",
"is",
"not",
"None",
":",
"describe_input",
"[",
"'defaultFields'",
"]",
"=",
"default_fields",
"if",
"fields",
"is",
"not",
"None",
":",
"describe_input",
"[",
"'fields'",
"]",
"=",
"{",
"field_name",
":",
"True",
"for",
"field_name",
"in",
"fields",
"}",
"if",
"self",
".",
"_proj",
"is",
"not",
"None",
":",
"describe_input",
"[",
"\"project\"",
"]",
"=",
"self",
".",
"_proj",
"self",
".",
"_desc",
"=",
"self",
".",
"_describe",
"(",
"self",
".",
"_dxid",
",",
"describe_input",
",",
"*",
"*",
"kwargs",
")",
"return",
"self",
".",
"_desc"
] |
:param fields: set of fields to include in the output, for
example ``{'name', 'modified'}``. The field ``id`` is always
implicitly included. If ``fields`` is specified, the default
fields are not included (that is, only the fields specified
here, and ``id``, are included) unless ``default_fields`` is
additionally set to True.
:type fields: set or sequence of str
:param default_fields: if True, include the default fields in
addition to fields requested in ``fields``, if any; if
False, only the fields specified in ``fields``, if any, are
returned (defaults to False if ``fields`` is specified, True
otherwise)
:type default_fields: bool
:param incl_properties: if true, includes the properties of the
object in the output (deprecated; use
``fields={'properties'}, default_fields=True`` instead)
:type incl_properties: bool
:param incl_details: if true, includes the details of the object
in the output (deprecated; use ``fields={'details'},
default_fields=True`` instead)
:type incl_details: bool
:returns: Description of the remote object
:rtype: dict
Return a dict with a description of the remote data object.
The result includes the key-value pairs as specified in the API
documentation for the ``/describe`` method of each data object
class. The API defines some default set of fields that will be
included (at a minimum, "id", "class", etc. should be available,
and there may be additional fields that vary based on the
class); the set of fields may be customized using ``fields`` and
``default_fields``.
Any project-specific metadata fields (name, properties, and
tags) are obtained from the copy of the object in the project
associated with the handler, if possible.
|
[
":",
"param",
"fields",
":",
"set",
"of",
"fields",
"to",
"include",
"in",
"the",
"output",
"for",
"example",
"{",
"name",
"modified",
"}",
".",
"The",
"field",
"id",
"is",
"always",
"implicitly",
"included",
".",
"If",
"fields",
"is",
"specified",
"the",
"default",
"fields",
"are",
"not",
"included",
"(",
"that",
"is",
"only",
"the",
"fields",
"specified",
"here",
"and",
"id",
"are",
"included",
")",
"unless",
"default_fields",
"is",
"additionally",
"set",
"to",
"True",
".",
":",
"type",
"fields",
":",
"set",
"or",
"sequence",
"of",
"str",
":",
"param",
"default_fields",
":",
"if",
"True",
"include",
"the",
"default",
"fields",
"in",
"addition",
"to",
"fields",
"requested",
"in",
"fields",
"if",
"any",
";",
"if",
"False",
"only",
"the",
"fields",
"specified",
"in",
"fields",
"if",
"any",
"are",
"returned",
"(",
"defaults",
"to",
"False",
"if",
"fields",
"is",
"specified",
"True",
"otherwise",
")",
":",
"type",
"default_fields",
":",
"bool",
":",
"param",
"incl_properties",
":",
"if",
"true",
"includes",
"the",
"properties",
"of",
"the",
"object",
"in",
"the",
"output",
"(",
"deprecated",
";",
"use",
"fields",
"=",
"{",
"properties",
"}",
"default_fields",
"=",
"True",
"instead",
")",
":",
"type",
"incl_properties",
":",
"bool",
":",
"param",
"incl_details",
":",
"if",
"true",
"includes",
"the",
"details",
"of",
"the",
"object",
"in",
"the",
"output",
"(",
"deprecated",
";",
"use",
"fields",
"=",
"{",
"details",
"}",
"default_fields",
"=",
"True",
"instead",
")",
":",
"type",
"incl_details",
":",
"bool",
":",
"returns",
":",
"Description",
"of",
"the",
"remote",
"object",
":",
"rtype",
":",
"dict"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/__init__.py#L311-L376
|
train
|
Return a dict containing the description of the object.
|
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas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1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__
ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\060' + chr(0b1101111) + '\x36', ord("\x08")), nzTpIcepk0o8(chr(545 - 497) + chr(111) + '\x34' + '\063', 17004 - 16996), nzTpIcepk0o8('\x30' + '\157' + '\x33' + chr(55) + chr(1335 - 1285), 0b1000), nzTpIcepk0o8(chr(0b100 + 0o54) + '\157' + chr(0b110010) + chr(0b110110) + chr(114 - 65), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b101010 + 0o11) + chr(2183 - 2132) + chr(687 - 634), 26571 - 26563), nzTpIcepk0o8(chr(0b110 + 0o52) + chr(11172 - 11061) + '\x33' + '\061' + chr(0b111 + 0o54), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110011) + chr(0b110100) + chr(0b110101), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110101) + chr(0b110101), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110011 + 0o1), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(385 - 334) + '\x30', 0o10), nzTpIcepk0o8(chr(0b1010 + 0o46) + chr(444 - 333) + chr(0b110001) + chr(0b110010) + '\x37', 48038 - 48030), nzTpIcepk0o8('\060' + '\157' + '\x31' + chr(0b110100) + '\065', 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(51) + chr(0b110011 + 0o3) + chr(582 - 533), 0b1000), nzTpIcepk0o8('\x30' + chr(6713 - 6602) + '\062' + chr(0b101101 + 0o6), 0o10), nzTpIcepk0o8(chr(912 - 864) + chr(111) + chr(0b1010 + 0o51) + chr(51) + chr(0b110010), 5740 - 5732), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110001) + chr(1642 - 1587) + chr(0b110011), ord("\x08")), nzTpIcepk0o8(chr(0b11 + 0o55) + chr(111) + '\062' + chr(0b110010 + 0o2) + '\067', 58927 - 58919), nzTpIcepk0o8(chr(0b110000) + chr(10030 - 9919) + '\061' + chr(52) + chr(1258 - 1205), 8), nzTpIcepk0o8(chr(0b0 + 0o60) + '\157' + chr(49) + '\065' + chr(2384 - 2334), ord("\x08")), nzTpIcepk0o8(chr(0b100100 + 0o14) + '\157' + '\x32' + '\x31' + '\067', ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + '\061' + chr(50) + '\x37', 8), nzTpIcepk0o8('\060' + chr(0b1011110 + 0o21) + chr(599 - 549) + chr(52) + chr(700 - 650), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110011) + '\066' + chr(0b10000 + 0o40), 0b1000), nzTpIcepk0o8(chr(836 - 788) + chr(0b1101111) + '\x36' + '\x35', 0o10), nzTpIcepk0o8(chr(0b1101 + 0o43) + chr(4800 - 4689) + chr(0b110010) + chr(0b1000 + 0o52) + chr(0b11100 + 0o33), 0o10), nzTpIcepk0o8(chr(1944 - 1896) + chr(0b1001001 + 0o46) + chr(1685 - 1635) + chr(0b1110 + 0o44) + chr(0b110010), 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + '\065' + chr(48), 38354 - 38346), nzTpIcepk0o8('\x30' + '\157' + '\066' + chr(0b10010 + 0o42), 29287 - 29279), nzTpIcepk0o8(chr(0b110000) + chr(0b10000 + 0o137) + '\x32' + chr(0b110001) + '\x37', 8), nzTpIcepk0o8(chr(98 - 50) + chr(9928 - 9817) + chr(296 - 246) + '\061' + chr(0b110000), 0o10), nzTpIcepk0o8(chr(1405 - 1357) + '\157' + chr(830 - 781) + chr(0b110010) + chr(49), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1000001 + 0o56) + '\063', 0o10), nzTpIcepk0o8('\060' + '\157' + '\066' + '\066', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1001000 + 0o47) + '\063' + chr(0b1001 + 0o53), 0b1000), nzTpIcepk0o8(chr(0b111 + 0o51) + '\x6f' + chr(0b11011 + 0o33), 8), nzTpIcepk0o8('\060' + chr(0b1000 + 0o147) + chr(686 - 635) + chr(0b111 + 0o56) + chr(0b110110), 0o10), nzTpIcepk0o8(chr(1225 - 1177) + chr(3486 - 3375) + chr(53) + chr(499 - 444), 5785 - 5777), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(1508 - 1453) + '\x31', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b0 + 0o63) + chr(0b11111 + 0o27) + '\061', 8), nzTpIcepk0o8(chr(726 - 678) + chr(420 - 309) + chr(2023 - 1970), 48899 - 48891)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(111) + '\065' + chr(48), 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'('), chr(6256 - 6156) + chr(101) + chr(0b1100011) + chr(0b1101011 + 0o4) + chr(0b1100100) + chr(0b11110 + 0o107))(chr(0b1110101) + '\164' + chr(0b1100110) + chr(0b1000 + 0o45) + '\070') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def r18okd2eFtJ8(hXMPsSrOQzbh, fqT_nBcjNR77=nzTpIcepk0o8(chr(48) + chr(111) + chr(1911 - 1863), 35391 - 35383), OruOlnF0vYg4=nzTpIcepk0o8(chr(0b101110 + 0o2) + '\x6f' + '\x30', 8), ZXDdzgbdtBfz=None, uRY3OK4h7JcD=None, **q5n0sHDDTy90):
if roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'b\x15\xb1\xe4\xb3\x99\xb4[2/dP'), '\144' + '\145' + chr(99) + chr(0b1101111) + chr(0b1100100) + chr(0b1100101))(chr(0b1110101) + chr(0b1110100) + chr(0b11010 + 0o114) + chr(1559 - 1514) + chr(1751 - 1695))) is None:
raise JPU16lJ2koBU(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'RK\x93\xc2\xfd\xb0\x8dLj|;\x00\x83n\xfa\x13\xc6\x0b\x0e\xe32\xd0\xd0]\xf6\xe1\x08Z\xe0\xfcqaSyh\xceFW\x98qoB\x96\xd8\xa7\xae\x81\rsq#\r\xd1r\xfa\x00\xf8\x06\x06\xee$\xd1\x8d\x15\xde\xd6\x08U\xe1\xecq`Wrh\x81[\x19\x93`&G\x9f\xc2\xbe\xb9\x8cOa|'), chr(0b10001 + 0o123) + chr(101) + chr(4242 - 4143) + chr(0b110101 + 0o72) + '\144' + chr(0b1100101))(chr(117) + '\x74' + chr(102) + chr(45) + chr(0b101000 + 0o20)), roI3spqORKae(ES5oEprVxulp(b'w\x10\xc9\xfa\x9a\xf8\x83BUG\x14/'), chr(0b1111 + 0o125) + '\x65' + '\143' + chr(0b1101111) + chr(100) + '\x65')(chr(117) + chr(116) + chr(3375 - 3273) + '\055' + chr(305 - 249)))(handler=roI3spqORKae(hXMPsSrOQzbh.__class__, roI3spqORKae(ES5oEprVxulp(b'Gz\x8e\xf5\x8f\xa7\x94HT(#\x14'), chr(0b1100100) + chr(5396 - 5295) + '\x63' + '\x6f' + chr(0b1 + 0o143) + chr(0b1100101))(chr(0b1110101) + chr(4361 - 4245) + chr(10288 - 10186) + chr(0b101101) + chr(0b1100 + 0o54))), _class=roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'wa\xae\xe4\x97\x86\x8eyLMo\n'), chr(0b1100100) + chr(101) + chr(99) + chr(0b101101 + 0o102) + '\x64' + chr(3781 - 3680))(chr(0b111100 + 0o71) + chr(0b100101 + 0o117) + chr(102) + chr(0b101000 + 0o5) + '\x38'))))
if (fqT_nBcjNR77 or OruOlnF0vYg4) and (ZXDdzgbdtBfz is not None or uRY3OK4h7JcD is not None):
raise WbNHlDKpyPtQ(roI3spqORKae(ES5oEprVxulp(b'EB\x94\xdf\xb2\xbf\xc5^t}4\x0c\x97j\xfa\x0b\xd5\n\x1a\xea%\xd6\x99P\xe4\xb2GF\xaf\xec4wWuj\x9d\x0fP\x9f%eL\x94\xdb\xa8\xa5\x86Ymw9E\x86z\xae\x13\x87\x03\x03\xea;\xc6\x83\x15\xf8\xe0\x08P\xea\xee0vZhY\x88F\\\x9dau'), '\x64' + chr(2757 - 2656) + chr(0b101001 + 0o72) + '\x6f' + '\x64' + chr(2641 - 2540))(chr(5928 - 5811) + chr(116) + '\146' + chr(45) + chr(3029 - 2973)))
if fqT_nBcjNR77 or OruOlnF0vYg4:
kMxhmRVvaa4G = znjnJWK64FDT(properties=fqT_nBcjNR77, details=OruOlnF0vYg4)
else:
kMxhmRVvaa4G = {}
if uRY3OK4h7JcD is not None:
kMxhmRVvaa4G[roI3spqORKae(ES5oEprVxulp(b'bF\x9c\xd0\xa8\xa7\x91km};\x01\x82'), chr(4367 - 4267) + '\x65' + chr(3352 - 3253) + chr(11027 - 10916) + chr(401 - 301) + '\145')(chr(117) + '\x74' + '\x66' + '\x2d' + chr(56))] = uRY3OK4h7JcD
if ZXDdzgbdtBfz is not None:
kMxhmRVvaa4G[roI3spqORKae(ES5oEprVxulp(b'`J\x9f\xdd\xb9\xb8'), '\x64' + '\x65' + '\x63' + chr(0b111110 + 0o61) + chr(100) + '\145')(chr(0b1011000 + 0o35) + chr(0b1110100) + chr(5930 - 5828) + chr(433 - 388) + '\070')] = {XTg7r9SbyaPD: nzTpIcepk0o8(chr(0b11111 + 0o21) + chr(111) + chr(0b10111 + 0o32), ord("\x08")) for XTg7r9SbyaPD in ZXDdzgbdtBfz}
if roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'Ov\x97\xe9\x8f\x93\xd6~N)\x103'), chr(0b1100100) + '\x65' + '\143' + chr(0b1101111) + chr(0b1100100) + '\145')(chr(0b1110101) + chr(0b1101010 + 0o12) + chr(3912 - 3810) + chr(45) + chr(0b101000 + 0o20))) is not None:
kMxhmRVvaa4G[roI3spqORKae(ES5oEprVxulp(b'vQ\x95\xdb\xb8\xa8\x91'), chr(0b110111 + 0o55) + chr(0b1100101) + chr(0b100110 + 0o75) + chr(0b1101111) + '\144' + chr(6922 - 6821))(chr(11118 - 11001) + '\164' + '\x66' + '\x2d' + '\x38')] = hXMPsSrOQzbh.IUmXRX3SJ1GV
hXMPsSrOQzbh.Up76sqJenL0f = hXMPsSrOQzbh._describe(hXMPsSrOQzbh.d6KUnRQv6735, kMxhmRVvaa4G, **q5n0sHDDTy90)
return roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'SS\xcd\x87\xae\xba\xafHjTg\x03'), chr(100) + chr(0b1100101 + 0o0) + '\x63' + chr(0b1010111 + 0o30) + chr(0b1011011 + 0o11) + '\x65')(chr(0b10000 + 0o145) + '\x74' + '\x66' + chr(0b1111 + 0o36) + chr(2686 - 2630)))
|
dnanexus/dx-toolkit
|
src/python/dxpy/bindings/__init__.py
|
DXDataObject.add_types
|
def add_types(self, types, **kwargs):
"""
:param types: Types to add to the object
:type types: list of strings
:raises: :class:`~dxpy.exceptions.DXAPIError` if the object is not in the "open" state
Adds each of the specified types to the remote object. Takes no
action for types that are already listed for the object.
"""
self._add_types(self._dxid, {"types": types}, **kwargs)
|
python
|
def add_types(self, types, **kwargs):
"""
:param types: Types to add to the object
:type types: list of strings
:raises: :class:`~dxpy.exceptions.DXAPIError` if the object is not in the "open" state
Adds each of the specified types to the remote object. Takes no
action for types that are already listed for the object.
"""
self._add_types(self._dxid, {"types": types}, **kwargs)
|
[
"def",
"add_types",
"(",
"self",
",",
"types",
",",
"*",
"*",
"kwargs",
")",
":",
"self",
".",
"_add_types",
"(",
"self",
".",
"_dxid",
",",
"{",
"\"types\"",
":",
"types",
"}",
",",
"*",
"*",
"kwargs",
")"
] |
:param types: Types to add to the object
:type types: list of strings
:raises: :class:`~dxpy.exceptions.DXAPIError` if the object is not in the "open" state
Adds each of the specified types to the remote object. Takes no
action for types that are already listed for the object.
|
[
":",
"param",
"types",
":",
"Types",
"to",
"add",
"to",
"the",
"object",
":",
"type",
"types",
":",
"list",
"of",
"strings",
":",
"raises",
":",
":",
"class",
":",
"~dxpy",
".",
"exceptions",
".",
"DXAPIError",
"if",
"the",
"object",
"is",
"not",
"in",
"the",
"open",
"state"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/__init__.py#L378-L389
|
train
|
Adds each of the specified types to the object.
|
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1g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IhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__
ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110010) + '\x30' + chr(53), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(2091 - 1980) + '\x33' + '\061' + chr(192 - 144), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(54), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110010) + chr(0b10000 + 0o42) + '\x36', 0b1000), nzTpIcepk0o8('\x30' + chr(111) + '\061' + '\060' + '\x35', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x32' + chr(0b100000 + 0o24), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110010) + chr(0b10000 + 0o43) + '\x33', 14498 - 14490), nzTpIcepk0o8('\060' + '\157' + chr(0b110000 + 0o6) + chr(0b1010 + 0o47), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(49) + '\x33' + chr(0b1110 + 0o43), 33342 - 33334), nzTpIcepk0o8('\x30' + chr(111) + chr(0b101010 + 0o7) + chr(0b10101 + 0o42) + chr(54), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(49) + chr(0b101 + 0o60) + chr(0b0 + 0o66), 0o10), nzTpIcepk0o8(chr(50 - 2) + chr(0b1001010 + 0o45) + chr(0b110011) + chr(0b11111 + 0o25) + chr(49), 0o10), nzTpIcepk0o8('\060' + '\157' + chr(1509 - 1460) + '\x34', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\063' + chr(0b100010 + 0o16) + chr(0b110010), 9543 - 9535), nzTpIcepk0o8(chr(0b101 + 0o53) + chr(0b1101111) + chr(0b100010 + 0o17) + chr(0b110110) + '\x36', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(49) + chr(0b110110) + chr(0b10100 + 0o35), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(1495 - 1443) + '\061', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(5222 - 5111) + '\062' + chr(0b11110 + 0o26), 8), nzTpIcepk0o8(chr(48) + chr(111) + chr(51) + '\060' + chr(0b100000 + 0o22), 8), nzTpIcepk0o8('\x30' + '\157' + '\065' + chr(170 - 121), 43515 - 43507), nzTpIcepk0o8('\x30' + chr(111) + chr(976 - 926) + '\065' + '\064', 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x31' + chr(53), 0b1000), nzTpIcepk0o8(chr(681 - 633) + '\157' + chr(0b110010) + '\062' + chr(0b1010 + 0o47), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1000110 + 0o51) + chr(0b110011) + chr(0b110111) + chr(0b110111), 30258 - 30250), nzTpIcepk0o8('\060' + chr(0b100000 + 0o117) + chr(0b110011) + chr(0b101110 + 0o10) + chr(0b110101), 10828 - 10820), nzTpIcepk0o8(chr(0b101100 + 0o4) + chr(111) + chr(0b110011) + '\064' + chr(0b110110), 53441 - 53433), nzTpIcepk0o8('\060' + chr(0b1001111 + 0o40) + chr(1049 - 999) + chr(0b100001 + 0o20) + chr(1429 - 1376), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b100100 + 0o113) + '\x32' + chr(0b110100) + chr(49), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + '\x32' + chr(0b110001) + chr(359 - 310), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(1785 - 1736) + chr(0b110001) + '\x32', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + '\063' + '\066' + '\060', 25061 - 25053), nzTpIcepk0o8(chr(2084 - 2036) + '\x6f' + '\063' + chr(0b110111) + chr(371 - 321), ord("\x08")), nzTpIcepk0o8(chr(0b11010 + 0o26) + chr(0b1101111) + chr(0b101110 + 0o4) + '\067' + chr(2504 - 2449), 0b1000), nzTpIcepk0o8(chr(0b100 + 0o54) + '\x6f' + chr(50) + chr(530 - 475), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + '\062' + '\x35' + '\x32', 0b1000), nzTpIcepk0o8(chr(48) + '\157' + '\x36' + '\x36', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(50) + chr(1153 - 1105) + '\x36', 8985 - 8977), nzTpIcepk0o8('\x30' + chr(7371 - 7260) + '\x33' + chr(0b100 + 0o56) + chr(0b111 + 0o56), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1001110 + 0o41) + '\062' + chr(0b11011 + 0o26) + '\066', 43239 - 43231), nzTpIcepk0o8('\060' + '\x6f' + chr(51) + '\067' + '\x30', 2273 - 2265)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + '\x6f' + '\065' + chr(0b110000 + 0o0), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xab'), chr(100) + '\145' + chr(0b100 + 0o137) + chr(0b1101111) + '\144' + '\145')(chr(117) + '\164' + chr(0b1100110) + chr(45) + '\070') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def p9hzTosPzJL4(hXMPsSrOQzbh, DzfuqSe6qH0o, **q5n0sHDDTy90):
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xda\xa9b\xf2\x1a`\xe2A<\r'), chr(100) + chr(0b1010100 + 0o21) + chr(0b1100011) + '\x6f' + chr(100) + chr(0b1100101))('\165' + chr(5436 - 5320) + chr(102) + chr(1330 - 1285) + chr(0b101111 + 0o11)))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xe1\xfeM\xc3+F\xcaGoI]\xd4'), chr(953 - 853) + chr(0b11 + 0o142) + '\143' + chr(111) + chr(0b1100100) + '\145')(chr(0b1110101) + chr(116) + chr(5943 - 5841) + '\x2d' + chr(0b111000))), {roI3spqORKae(ES5oEprVxulp(b'\xf1\xb1v\xf36'), chr(0b1000100 + 0o40) + '\145' + chr(99) + '\157' + chr(0b1100100) + chr(0b1100101))(chr(0b1110101) + chr(9008 - 8892) + chr(0b1100110) + '\x2d' + chr(56)): DzfuqSe6qH0o}, **q5n0sHDDTy90)
|
dnanexus/dx-toolkit
|
src/python/dxpy/bindings/__init__.py
|
DXDataObject.remove_types
|
def remove_types(self, types, **kwargs):
"""
:param types: Types to remove from the object
:type types: list of strings
:raises: :class:`~dxpy.exceptions.DXAPIError` if the object is not in the "open" state
Removes each the specified types from the remote object. Takes
no action for types that the object does not currently have.
"""
self._remove_types(self._dxid, {"types": types}, **kwargs)
|
python
|
def remove_types(self, types, **kwargs):
"""
:param types: Types to remove from the object
:type types: list of strings
:raises: :class:`~dxpy.exceptions.DXAPIError` if the object is not in the "open" state
Removes each the specified types from the remote object. Takes
no action for types that the object does not currently have.
"""
self._remove_types(self._dxid, {"types": types}, **kwargs)
|
[
"def",
"remove_types",
"(",
"self",
",",
"types",
",",
"*",
"*",
"kwargs",
")",
":",
"self",
".",
"_remove_types",
"(",
"self",
".",
"_dxid",
",",
"{",
"\"types\"",
":",
"types",
"}",
",",
"*",
"*",
"kwargs",
")"
] |
:param types: Types to remove from the object
:type types: list of strings
:raises: :class:`~dxpy.exceptions.DXAPIError` if the object is not in the "open" state
Removes each the specified types from the remote object. Takes
no action for types that the object does not currently have.
|
[
":",
"param",
"types",
":",
"Types",
"to",
"remove",
"from",
"the",
"object",
":",
"type",
"types",
":",
"list",
"of",
"strings",
":",
"raises",
":",
":",
"class",
":",
"~dxpy",
".",
"exceptions",
".",
"DXAPIError",
"if",
"the",
"object",
"is",
"not",
"in",
"the",
"open",
"state"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/__init__.py#L391-L402
|
train
|
Removes the specified types from the object.
|
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60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Ie5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__
ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\060' + '\x6f' + '\x36' + chr(262 - 209), ord("\x08")), nzTpIcepk0o8(chr(1305 - 1257) + '\x6f' + '\063' + '\x33' + chr(0b100111 + 0o12), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110010) + '\060' + '\x37', 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(49) + '\061' + '\x37', 0b1000), nzTpIcepk0o8(chr(697 - 649) + '\157' + chr(0b11011 + 0o30) + chr(0b100 + 0o57) + chr(1471 - 1423), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + '\x32' + '\061' + chr(0b110101), 0o10), nzTpIcepk0o8(chr(48) + chr(3789 - 3678) + chr(0b110011) + '\065' + '\067', 0o10), nzTpIcepk0o8('\x30' + '\x6f' + '\x32' + chr(2226 - 2175) + chr(0b110 + 0o60), 34767 - 34759), nzTpIcepk0o8(chr(1842 - 1794) + chr(7238 - 7127) + '\062' + '\x36' + chr(0b110100), 0o10), nzTpIcepk0o8('\x30' + chr(0b1010110 + 0o31) + '\062' + chr(0b110111) + '\064', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110001) + chr(50) + chr(0b110111), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b11111 + 0o120) + chr(1183 - 1134) + chr(54) + chr(2470 - 2419), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110010) + chr(1007 - 956) + chr(0b110111), 0b1000), nzTpIcepk0o8('\060' + chr(0b1001100 + 0o43) + chr(49) + chr(0b1101 + 0o47) + chr(0b110001), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(49) + '\x34' + chr(53), 0b1000), nzTpIcepk0o8(chr(0b110000 + 0o0) + chr(0b101001 + 0o106) + chr(0b110001) + chr(1109 - 1059) + chr(0b11011 + 0o32), 63687 - 63679), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b11110 + 0o25) + chr(0b110001) + chr(0b10001 + 0o43), 52722 - 52714), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x32' + '\x31' + chr(0b110011), 0b1000), nzTpIcepk0o8('\060' + chr(111) + '\x31' + chr(0b110001) + '\063', 0o10), nzTpIcepk0o8('\060' + chr(2389 - 2278) + chr(0b1110 + 0o43) + '\x32' + '\061', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(10548 - 10437) + chr(1359 - 1309) + chr(52) + chr(0b101000 + 0o11), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b10100 + 0o133) + chr(0b101001 + 0o12) + chr(1789 - 1740) + '\063', 42822 - 42814), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(787 - 738) + chr(51) + chr(55), ord("\x08")), nzTpIcepk0o8(chr(0b101000 + 0o10) + '\x6f' + chr(49) + chr(0b11110 + 0o25) + chr(0b110011), 0o10), nzTpIcepk0o8(chr(1299 - 1251) + chr(0b1101111) + chr(0b110010) + chr(1264 - 1212) + chr(48), 0o10), nzTpIcepk0o8('\x30' + chr(5089 - 4978) + chr(0b11000 + 0o33) + chr(1430 - 1379) + chr(48), 8), nzTpIcepk0o8(chr(1746 - 1698) + chr(0b1011111 + 0o20) + '\x33' + chr(0b101110 + 0o4) + chr(53), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + '\x33' + chr(51) + '\065', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b100 + 0o153) + chr(0b110110) + chr(0b1001 + 0o52), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(49) + '\x35', 0b1000), nzTpIcepk0o8(chr(1001 - 953) + chr(111) + chr(2061 - 2007) + chr(55), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110010) + chr(50) + chr(52), 28015 - 28007), nzTpIcepk0o8('\060' + chr(0b1101111) + '\062' + chr(0b110010), 0o10), nzTpIcepk0o8(chr(1366 - 1318) + chr(111) + '\x32' + chr(0b101000 + 0o16) + '\065', ord("\x08")), nzTpIcepk0o8(chr(0b101011 + 0o5) + chr(4433 - 4322) + chr(55) + chr(49), 0b1000), nzTpIcepk0o8(chr(1768 - 1720) + chr(6298 - 6187) + '\x31' + chr(53), 8), nzTpIcepk0o8(chr(0b101000 + 0o10) + chr(0b111010 + 0o65) + '\x31' + chr(0b110101) + chr(2426 - 2374), ord("\x08")), nzTpIcepk0o8('\x30' + chr(10091 - 9980) + chr(55) + '\061', 8), nzTpIcepk0o8('\060' + chr(0b111001 + 0o66) + '\063' + chr(0b110111) + '\x33', ord("\x08")), nzTpIcepk0o8(chr(0b11100 + 0o24) + '\x6f' + chr(2263 - 2214) + chr(0b1110 + 0o42) + chr(50), 61203 - 61195)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(2303 - 2255) + '\157' + chr(0b110101) + chr(1685 - 1637), 2547 - 2539)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x1b'), chr(0b1100100) + chr(0b1100101) + chr(8342 - 8243) + '\x6f' + chr(0b1001111 + 0o25) + '\x65')(chr(0b11101 + 0o130) + chr(0b1 + 0o163) + chr(102) + chr(45) + chr(0b111000)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def LmsY3Ls8zq0x(hXMPsSrOQzbh, DzfuqSe6qH0o, **q5n0sHDDTy90):
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'j\xab\xe2"\xb7\xfb\x8a\xc1\xc0\xc5\'\x16\xec'), chr(100) + chr(10062 - 9961) + '\x63' + chr(0b111 + 0o150) + chr(100) + '\x65')('\165' + chr(0b1110100) + chr(102) + chr(45) + '\070'))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'Q\xef\xcc\x1a\xb6\xdf\xbe\xe8\x82\x8bdF'), chr(5379 - 5279) + '\145' + chr(0b101 + 0o136) + chr(7301 - 7190) + chr(0b11001 + 0o113) + chr(101))('\165' + chr(0b1110100) + '\146' + '\x2d' + chr(0b111000))), {roI3spqORKae(ES5oEprVxulp(b'A\xa0\xf7*\xab'), chr(0b1100100) + chr(0b1100101) + '\x63' + chr(111) + chr(7622 - 7522) + chr(0b1100101))(chr(2886 - 2769) + chr(0b1011011 + 0o31) + '\x66' + chr(0b1111 + 0o36) + chr(2384 - 2328)): DzfuqSe6qH0o}, **q5n0sHDDTy90)
|
dnanexus/dx-toolkit
|
src/python/dxpy/bindings/__init__.py
|
DXDataObject.set_details
|
def set_details(self, details, **kwargs):
"""
:param details: Details to set for the object
:type details: dict or list
:raises: :class:`~dxpy.exceptions.DXAPIError` if the object is not in the "open" state
Sets the details for the remote object with the specified value.
If the input contains the string ``"$dnanexus_link"`` as a key
in a hash, it must be the only key in the hash, and its value
must be a valid ID of an existing object.
"""
return self._set_details(self._dxid, details, **kwargs)
|
python
|
def set_details(self, details, **kwargs):
"""
:param details: Details to set for the object
:type details: dict or list
:raises: :class:`~dxpy.exceptions.DXAPIError` if the object is not in the "open" state
Sets the details for the remote object with the specified value.
If the input contains the string ``"$dnanexus_link"`` as a key
in a hash, it must be the only key in the hash, and its value
must be a valid ID of an existing object.
"""
return self._set_details(self._dxid, details, **kwargs)
|
[
"def",
"set_details",
"(",
"self",
",",
"details",
",",
"*",
"*",
"kwargs",
")",
":",
"return",
"self",
".",
"_set_details",
"(",
"self",
".",
"_dxid",
",",
"details",
",",
"*",
"*",
"kwargs",
")"
] |
:param details: Details to set for the object
:type details: dict or list
:raises: :class:`~dxpy.exceptions.DXAPIError` if the object is not in the "open" state
Sets the details for the remote object with the specified value.
If the input contains the string ``"$dnanexus_link"`` as a key
in a hash, it must be the only key in the hash, and its value
must be a valid ID of an existing object.
|
[
":",
"param",
"details",
":",
"Details",
"to",
"set",
"for",
"the",
"object",
":",
"type",
"details",
":",
"dict",
"or",
"list",
":",
"raises",
":",
":",
"class",
":",
"~dxpy",
".",
"exceptions",
".",
"DXAPIError",
"if",
"the",
"object",
"is",
"not",
"in",
"the",
"open",
"state"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/__init__.py#L413-L426
|
train
|
Sets the details for the object with the 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,Wa8J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lr8F,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(52) + '\064', 0b1000), nzTpIcepk0o8(chr(0b11 + 0o55) + chr(0b1100101 + 0o12) + '\x32' + chr(0b110010) + '\x32', 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110001) + chr(0b1110 + 0o51) + '\x36', 0o10), nzTpIcepk0o8('\x30' + chr(5928 - 5817) + chr(0b101011 + 0o6) + chr(52) + chr(0b110000), 0o10), nzTpIcepk0o8('\060' + '\157' + '\x31' + chr(1657 - 1605) + chr(2340 - 2291), 22766 - 22758), nzTpIcepk0o8(chr(0b110000) + chr(0b110110 + 0o71) + chr(0b110001) + chr(773 - 724), 0b1000), nzTpIcepk0o8('\060' + chr(7542 - 7431) + chr(49) + chr(50) + '\063', 6981 - 6973), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x31' + chr(50) + '\064', 43543 - 43535), nzTpIcepk0o8(chr(0b110000) + chr(257 - 146) + chr(0b110011) + chr(53) + '\065', 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110101), 4749 - 4741), nzTpIcepk0o8('\060' + chr(0b100101 + 0o112) + chr(2057 - 2007) + chr(2969 - 2914) + chr(0b111 + 0o55), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b10001 + 0o136) + chr(0b110001) + chr(2587 - 2535) + '\x33', 20052 - 20044), nzTpIcepk0o8(chr(0b110000) + chr(4097 - 3986) + chr(50) + '\063' + '\065', 50953 - 50945), nzTpIcepk0o8('\060' + chr(111) + '\066', ord("\x08")), nzTpIcepk0o8(chr(0b11111 + 0o21) + '\x6f' + '\x31' + chr(2327 - 2272) + chr(54), 8), nzTpIcepk0o8(chr(0b1000 + 0o50) + chr(111) + '\062' + chr(404 - 349), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(2780 - 2669) + chr(0b100000 + 0o22) + '\064' + chr(55), 0o10), nzTpIcepk0o8('\060' + chr(0b1010000 + 0o37) + chr(0b110 + 0o53) + '\x35' + chr(2350 - 2300), 10036 - 10028), nzTpIcepk0o8('\x30' + chr(11565 - 11454) + '\x32' + chr(0b100000 + 0o26) + chr(53), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101001 + 0o6) + chr(0b110011) + chr(55) + chr(0b100000 + 0o24), 0b1000), nzTpIcepk0o8('\060' + chr(0b110111 + 0o70) + chr(0b10001 + 0o41) + chr(0b1110 + 0o46) + '\061', 18271 - 18263), nzTpIcepk0o8(chr(1579 - 1531) + chr(111) + chr(51) + chr(0b110010) + '\x34', ord("\x08")), nzTpIcepk0o8('\060' + '\157' + '\x31' + chr(55) + '\x33', ord("\x08")), nzTpIcepk0o8(chr(0b110000 + 0o0) + chr(11102 - 10991) + chr(50) + chr(0b110000) + '\x35', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(7336 - 7225) + '\x32' + '\063' + chr(0b10001 + 0o41), ord("\x08")), nzTpIcepk0o8(chr(0b100001 + 0o17) + '\x6f' + chr(0b110001) + chr(0b110101) + chr(0b110011), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110010) + chr(53) + chr(1691 - 1636), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b10010 + 0o40) + chr(0b110101) + '\x32', ord("\x08")), nzTpIcepk0o8(chr(1614 - 1566) + chr(111) + chr(49) + chr(0b1110 + 0o44) + '\x35', 0b1000), nzTpIcepk0o8(chr(0b0 + 0o60) + chr(111) + chr(51) + '\x36' + '\066', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\061' + '\064' + chr(0b100111 + 0o15), 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(0b100011 + 0o17) + chr(0b111 + 0o52) + '\066', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(1781 - 1732) + chr(0b110100) + chr(0b10000 + 0o46), 0b1000), nzTpIcepk0o8(chr(808 - 760) + chr(0b101001 + 0o106) + chr(600 - 549) + '\067' + chr(0b101111 + 0o5), 8), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\062' + chr(0b110101) + chr(48), 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(0b10100 + 0o35) + '\x34' + chr(51), 8), nzTpIcepk0o8(chr(0b110000) + chr(9462 - 9351) + chr(50) + chr(52) + chr(2597 - 2546), 0o10), nzTpIcepk0o8('\x30' + chr(1685 - 1574) + chr(0b1101 + 0o46) + chr(820 - 771) + '\063', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b11 + 0o154) + chr(617 - 568) + chr(0b1001 + 0o54) + chr(54), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + '\x32' + '\060' + chr(0b100001 + 0o23), 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b11101 + 0o23) + chr(0b10001 + 0o136) + chr(0b110101) + chr(1398 - 1350), 30602 - 30594)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\n'), chr(0b1100100) + '\x65' + chr(0b1110 + 0o125) + chr(111) + '\144' + chr(0b1100101))(chr(1592 - 1475) + '\x74' + chr(0b1100110) + chr(0b11011 + 0o22) + chr(0b10010 + 0o46)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def W3Fle1XcYGsP(hXMPsSrOQzbh, MSO7REb1szzF, **q5n0sHDDTy90):
return roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'{\xe1\x1b\x14>m6 \x8cl\xd0\x10'), '\144' + '\145' + chr(5390 - 5291) + chr(163 - 52) + chr(0b1100100) + chr(0b1100101))(chr(0b1110101) + '\164' + chr(9592 - 9490) + chr(0b101101) + chr(1883 - 1827)))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'@\xa455\x0f[\x02"\xdb2\x8fV'), '\x64' + chr(0b1100101) + chr(6401 - 6302) + '\x6f' + '\x64' + chr(0b1100101))(chr(12033 - 11916) + chr(0b1001000 + 0o54) + '\x66' + chr(45) + '\x38')), MSO7REb1szzF, **q5n0sHDDTy90)
|
dnanexus/dx-toolkit
|
src/python/dxpy/bindings/__init__.py
|
DXDataObject.rename
|
def rename(self, name, **kwargs):
"""
:param name: New name for the object
:type name: string
Renames the remote object.
The name is changed on the copy of the object in the project
associated with the handler.
"""
return self._rename(self._dxid, {"project": self._proj,
"name": name}, **kwargs)
|
python
|
def rename(self, name, **kwargs):
"""
:param name: New name for the object
:type name: string
Renames the remote object.
The name is changed on the copy of the object in the project
associated with the handler.
"""
return self._rename(self._dxid, {"project": self._proj,
"name": name}, **kwargs)
|
[
"def",
"rename",
"(",
"self",
",",
"name",
",",
"*",
"*",
"kwargs",
")",
":",
"return",
"self",
".",
"_rename",
"(",
"self",
".",
"_dxid",
",",
"{",
"\"project\"",
":",
"self",
".",
"_proj",
",",
"\"name\"",
":",
"name",
"}",
",",
"*",
"*",
"kwargs",
")"
] |
:param name: New name for the object
:type name: string
Renames the remote object.
The name is changed on the copy of the object in the project
associated with the handler.
|
[
":",
"param",
"name",
":",
"New",
"name",
"for",
"the",
"object",
":",
"type",
"name",
":",
"string"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/__init__.py#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aWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,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(0b1101 + 0o142) + chr(55) + chr(0b100101 + 0o13), 49582 - 49574), nzTpIcepk0o8(chr(48) + chr(0b111001 + 0o66) + chr(2575 - 2524) + '\x37' + chr(1416 - 1361), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(51) + '\067' + '\x34', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1010100 + 0o33) + chr(0b110001) + chr(50) + '\060', 0o10), nzTpIcepk0o8('\x30' + chr(111) + '\x31' + chr(0b10010 + 0o41) + chr(49), 0b1000), nzTpIcepk0o8(chr(0b10000 + 0o40) + chr(2063 - 1952) + chr(1304 - 1253) + chr(1682 - 1629) + chr(0b110111), 7924 - 7916), nzTpIcepk0o8(chr(48) + chr(0b1011010 + 0o25) + '\x31' + chr(49) + '\x31', 46030 - 46022), nzTpIcepk0o8(chr(0b101111 + 0o1) + chr(10762 - 10651) + '\x33' + '\064' + '\x31', 0o10), nzTpIcepk0o8(chr(2252 - 2204) + '\x6f' + chr(50) + '\x32' + chr(0b110111), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(2342 - 2293) + chr(52) + chr(0b11100 + 0o32), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(143 - 93) + chr(814 - 763) + chr(54), 19827 - 19819), nzTpIcepk0o8('\x30' + chr(111) + chr(49) + chr(53) + '\x36', 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b10110 + 0o34) + '\064' + chr(55), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110001 + 0o2) + chr(656 - 607) + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(0b10 + 0o56) + '\157' + chr(630 - 580) + chr(49) + '\061', 0o10), nzTpIcepk0o8(chr(48) + chr(0b10001 + 0o136) + '\x32' + chr(48) + chr(55), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b100000 + 0o21), 27556 - 27548), nzTpIcepk0o8('\x30' + '\x6f' + '\x34' + chr(0b100000 + 0o23), ord("\x08")), nzTpIcepk0o8(chr(1063 - 1015) + chr(111) + chr(1607 - 1557) + '\x31' + '\x33', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + '\062' + '\x34' + '\x30', ord("\x08")), nzTpIcepk0o8(chr(0b100011 + 0o15) + chr(0b1101111) + chr(0b110010 + 0o4) + '\063', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(9929 - 9818) + chr(0b110011) + '\063' + chr(2553 - 2501), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(49) + chr(722 - 669) + chr(1071 - 1016), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110100 + 0o0), 40374 - 40366), nzTpIcepk0o8(chr(48) + chr(0b1 + 0o156) + '\x31' + chr(0b110100) + chr(0b1001 + 0o53), 0b1000), nzTpIcepk0o8('\060' + chr(0b1101 + 0o142) + chr(50) + '\067' + '\066', 0o10), nzTpIcepk0o8(chr(1047 - 999) + chr(0b1101111) + '\x33' + chr(0b110110) + '\x34', 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + '\065' + chr(0b100001 + 0o20), 0o10), nzTpIcepk0o8('\x30' + chr(0b1100010 + 0o15) + chr(1629 - 1580) + chr(0b111 + 0o56) + chr(0b110 + 0o53), 41118 - 41110), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b1100 + 0o47) + chr(0b110100), 0o10), nzTpIcepk0o8(chr(0b1110 + 0o42) + chr(5982 - 5871) + chr(0b110001) + chr(2129 - 2080) + chr(1554 - 1499), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x32' + chr(0b110111) + chr(0b110110), 8), nzTpIcepk0o8('\060' + chr(4704 - 4593) + chr(0b110111) + chr(50), 0b1000), nzTpIcepk0o8(chr(801 - 753) + chr(1843 - 1732) + '\061' + chr(53), 21933 - 21925), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(49) + chr(1806 - 1752), ord("\x08")), nzTpIcepk0o8(chr(1182 - 1134) + chr(111) + chr(54) + chr(0b110010), 30029 - 30021), nzTpIcepk0o8('\x30' + chr(10094 - 9983) + chr(0b10010 + 0o37) + chr(0b110000) + chr(921 - 871), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(0b11001 + 0o31) + '\x37' + '\066', 8), nzTpIcepk0o8(chr(48) + '\x6f' + '\x33' + chr(0b110000) + '\x37', 60587 - 60579), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b0 + 0o61) + '\x32' + chr(0b1100 + 0o53), 34384 - 34376)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(2299 - 2251) + chr(111) + chr(0b110101) + chr(0b110000), 60772 - 60764)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x16'), '\144' + '\145' + chr(0b101111 + 0o64) + chr(0b1101111) + chr(100) + chr(0b1100101))(chr(0b1110011 + 0o2) + chr(116) + '\146' + chr(0b1111 + 0o36) + chr(56)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def ZohmqmdcMJZT(hXMPsSrOQzbh, SLVB2BPA_mIe, **q5n0sHDDTy90):
return roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'g\x8d\x99>8\x82,'), chr(100) + '\145' + '\x63' + '\x6f' + chr(0b1100100) + chr(1970 - 1869))(chr(2304 - 2187) + '\164' + '\x66' + '\055' + '\070'))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\\\xc9\xb7\x057\xbd\x18\x97\xa1Q\xad['), '\144' + chr(0b10 + 0o143) + chr(0b1100011) + chr(0b1101111) + '\144' + chr(0b10111 + 0o116))('\165' + chr(0b1110100) + chr(0b111111 + 0o47) + '\055' + chr(0b100 + 0o64))), {roI3spqORKae(ES5oEprVxulp(b'H\x8d\x93:<\x8c='), chr(0b1100100) + chr(0b1100100 + 0o1) + chr(3875 - 3776) + '\157' + '\144' + chr(101))(chr(117) + '\164' + '\146' + '\x2d' + chr(0b111000)): roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'q\xaa\x91\x08\x0b\xb7z\xb2\xddW\xd98'), '\144' + '\x65' + chr(0b1100011) + chr(111) + chr(4824 - 4724) + '\145')(chr(117) + chr(2286 - 2170) + chr(1584 - 1482) + '\x2d' + '\070')), roI3spqORKae(ES5oEprVxulp(b'V\x9e\x915'), '\x64' + chr(0b1100101) + chr(99) + chr(11396 - 11285) + chr(9279 - 9179) + '\x65')('\x75' + '\164' + '\146' + '\x2d' + chr(56)): SLVB2BPA_mIe}, **q5n0sHDDTy90)
|
dnanexus/dx-toolkit
|
src/python/dxpy/bindings/__init__.py
|
DXDataObject.set_properties
|
def set_properties(self, properties, **kwargs):
"""
:param properties: Property names and values given as key-value pairs of strings
:type properties: dict
Given key-value pairs in *properties* for property names and
values, the properties are set on the object for the given
property names. Any property with a value of :const:`None`
indicates the property will be deleted.
.. note:: Any existing properties not mentioned in *properties*
are not modified by this method.
The properties are written to the copy of the object in the
project associated with the handler.
The following example sets the properties for "name" and
"project" for a remote file::
dxfile.set_properties({"name": "George", "project": "cancer"})
Subsequently, the following would delete the property "project"::
dxfile.set_properties({"project": None})
"""
self._set_properties(self._dxid, {"project": self._proj,
"properties": properties},
**kwargs)
|
python
|
def set_properties(self, properties, **kwargs):
"""
:param properties: Property names and values given as key-value pairs of strings
:type properties: dict
Given key-value pairs in *properties* for property names and
values, the properties are set on the object for the given
property names. Any property with a value of :const:`None`
indicates the property will be deleted.
.. note:: Any existing properties not mentioned in *properties*
are not modified by this method.
The properties are written to the copy of the object in the
project associated with the handler.
The following example sets the properties for "name" and
"project" for a remote file::
dxfile.set_properties({"name": "George", "project": "cancer"})
Subsequently, the following would delete the property "project"::
dxfile.set_properties({"project": None})
"""
self._set_properties(self._dxid, {"project": self._proj,
"properties": properties},
**kwargs)
|
[
"def",
"set_properties",
"(",
"self",
",",
"properties",
",",
"*",
"*",
"kwargs",
")",
":",
"self",
".",
"_set_properties",
"(",
"self",
".",
"_dxid",
",",
"{",
"\"project\"",
":",
"self",
".",
"_proj",
",",
"\"properties\"",
":",
"properties",
"}",
",",
"*",
"*",
"kwargs",
")"
] |
:param properties: Property names and values given as key-value pairs of strings
:type properties: dict
Given key-value pairs in *properties* for property names and
values, the properties are set on the object for the given
property names. Any property with a value of :const:`None`
indicates the property will be deleted.
.. note:: Any existing properties not mentioned in *properties*
are not modified by this method.
The properties are written to the copy of the object in the
project associated with the handler.
The following example sets the properties for "name" and
"project" for a remote file::
dxfile.set_properties({"name": "George", "project": "cancer"})
Subsequently, the following would delete the property "project"::
dxfile.set_properties({"project": None})
|
[
":",
"param",
"properties",
":",
"Property",
"names",
"and",
"values",
"given",
"as",
"key",
"-",
"value",
"pairs",
"of",
"strings",
":",
"type",
"properties",
":",
"dict"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/__init__.py#L476-L505
|
train
|
Sets the properties of the object for the given key - value pairs.
|
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,kn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q7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__
ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\x30' + chr(111) + chr(50) + chr(52) + chr(1249 - 1195), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(2305 - 2256) + chr(49) + chr(0b110111), 0b1000), nzTpIcepk0o8('\060' + chr(0b1100010 + 0o15) + chr(2034 - 1985) + '\x30' + chr(54), 34995 - 34987), nzTpIcepk0o8(chr(0b10000 + 0o40) + '\157' + chr(49) + '\061' + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(0b111 + 0o51) + '\157' + chr(50) + chr(51) + chr(0b101000 + 0o11), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(2936 - 2825) + chr(50) + chr(0b110000) + '\061', 13111 - 13103), nzTpIcepk0o8('\060' + '\x6f' + chr(475 - 424) + '\x37' + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(530 - 482) + chr(0b110010 + 0o75) + '\x32' + '\066' + '\060', 0o10), nzTpIcepk0o8(chr(1627 - 1579) + '\x6f' + '\061' + '\062' + '\062', 0o10), nzTpIcepk0o8(chr(1777 - 1729) + chr(8351 - 8240) + chr(0b110111) + chr(0b110011), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110101) + chr(0b110011), 10911 - 10903), nzTpIcepk0o8(chr(0b100111 + 0o11) + chr(2055 - 1944) + chr(50) + chr(0b110011) + '\x34', 7580 - 7572), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b10111 + 0o32) + chr(278 - 230) + chr(0b110110), 8), nzTpIcepk0o8(chr(0b11000 + 0o30) + chr(4447 - 4336) + chr(0b110110) + chr(0b101111 + 0o1), 23793 - 23785), nzTpIcepk0o8('\x30' + chr(4815 - 4704) + '\063' + '\x36' + '\060', ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(1349 - 1295) + '\060', 8), nzTpIcepk0o8(chr(278 - 230) + chr(0b11001 + 0o126) + chr(54), 0b1000), nzTpIcepk0o8(chr(48) + chr(5729 - 5618) + chr(0b1000 + 0o52) + '\062', 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b100 + 0o56) + chr(0b110000 + 0o7) + chr(52), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(0b1 + 0o62) + chr(50) + chr(1986 - 1937), 0o10), nzTpIcepk0o8(chr(163 - 115) + chr(111) + chr(1926 - 1874) + chr(55), 0o10), nzTpIcepk0o8(chr(0b1000 + 0o50) + chr(0b1101111) + chr(0b100010 + 0o21) + chr(0b110000) + '\x32', 0o10), nzTpIcepk0o8('\x30' + '\x6f' + '\063' + chr(0b110000) + chr(52), 0b1000), nzTpIcepk0o8(chr(240 - 192) + chr(111) + chr(1292 - 1239) + chr(2061 - 2011), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(51) + chr(0b110011) + chr(1572 - 1523), 0o10), nzTpIcepk0o8('\060' + '\157' + chr(50) + '\x32', 8), nzTpIcepk0o8(chr(0b1101 + 0o43) + '\157' + chr(0b10110 + 0o35) + chr(49) + chr(1538 - 1487), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x32' + chr(0b11110 + 0o31) + chr(0b110100), 8), nzTpIcepk0o8('\060' + '\157' + chr(2108 - 2059) + chr(49) + chr(0b110111), 8), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(163 - 114) + chr(0b110000) + '\x35', 0b1000), nzTpIcepk0o8('\060' + chr(8815 - 8704) + chr(0b111 + 0o52) + '\061' + chr(0b110100), 8), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110010 + 0o0) + '\064' + chr(0b110100), 52372 - 52364), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110101) + chr(49), 0o10), nzTpIcepk0o8(chr(1382 - 1334) + chr(111) + '\061' + chr(51) + chr(49), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110010) + chr(0b110000 + 0o5) + chr(1067 - 1016), ord("\x08")), nzTpIcepk0o8(chr(1068 - 1020) + '\x6f' + chr(0b1111 + 0o43) + '\x30' + chr(0b11000 + 0o30), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(749 - 696) + '\x30', 50840 - 50832), nzTpIcepk0o8(chr(2145 - 2097) + chr(2027 - 1916) + chr(858 - 808) + chr(381 - 329) + '\065', 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(49) + chr(0b110011) + '\x31', 8), nzTpIcepk0o8(chr(0b100000 + 0o20) + '\157' + chr(0b110001) + '\060' + chr(1232 - 1184), 33605 - 33597)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(2263 - 2215) + chr(341 - 230) + '\065' + chr(0b110000), 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x88'), '\144' + chr(0b110110 + 0o57) + chr(9164 - 9065) + '\157' + chr(0b1100100) + chr(101))(chr(0b1011 + 0o152) + chr(1304 - 1188) + chr(0b1100110) + chr(45) + chr(238 - 182)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def _A8qWiiAVEqQ(hXMPsSrOQzbh, UtZvTnutzMHg, **q5n0sHDDTy90):
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xf9<#8\xc6\xf1\x8e\xdf"^Y\xe8/U\x83'), chr(100) + '\x65' + '\x63' + '\157' + chr(0b1100100) + '\x65')(chr(0b1110101) + chr(0b1110100) + chr(6971 - 6869) + '\x2d' + chr(0b110000 + 0o10)))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xc2y\r\x19\xf7\xd3\xad\xc6d\x0c\x18\xa9'), chr(100) + chr(6709 - 6608) + '\x63' + chr(111) + chr(1294 - 1194) + chr(0b1100101))(chr(0b1110101) + '\x74' + '\146' + chr(0b101101) + '\070')), {roI3spqORKae(ES5oEprVxulp(b'\xd6=)&\xfc\xe2\x88'), '\x64' + chr(101) + chr(99) + '\x6f' + '\144' + chr(101))('\x75' + '\x74' + chr(0b1011 + 0o133) + chr(0b101101) + chr(0b11110 + 0o32)): roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xef\x1a+\x14\xcb\xd9\xcf\xe3\x18\nl\xca'), chr(0b11 + 0o141) + '\145' + chr(0b1010111 + 0o14) + '\157' + chr(8383 - 8283) + chr(2651 - 2550))(chr(117) + '\164' + chr(0b1100110) + chr(85 - 40) + '\x38')), roI3spqORKae(ES5oEprVxulp(b'\xd6=)<\xfc\xf3\x88\xd97H'), chr(0b1100100) + '\145' + chr(4102 - 4003) + '\157' + chr(100) + chr(0b1100101))(chr(117) + '\164' + chr(9047 - 8945) + chr(0b101101) + chr(0b11100 + 0o34)): UtZvTnutzMHg}, **q5n0sHDDTy90)
|
dnanexus/dx-toolkit
|
src/python/dxpy/bindings/__init__.py
|
DXDataObject.add_tags
|
def add_tags(self, tags, **kwargs):
"""
:param tags: Tags to add to the object
:type tags: list of strings
Adds each of the specified tags to the remote object. Takes no
action for tags that are already listed for the object.
The tags are added to the copy of the object in the project
associated with the handler.
"""
self._add_tags(self._dxid, {"project": self._proj, "tags": tags},
**kwargs)
|
python
|
def add_tags(self, tags, **kwargs):
"""
:param tags: Tags to add to the object
:type tags: list of strings
Adds each of the specified tags to the remote object. Takes no
action for tags that are already listed for the object.
The tags are added to the copy of the object in the project
associated with the handler.
"""
self._add_tags(self._dxid, {"project": self._proj, "tags": tags},
**kwargs)
|
[
"def",
"add_tags",
"(",
"self",
",",
"tags",
",",
"*",
"*",
"kwargs",
")",
":",
"self",
".",
"_add_tags",
"(",
"self",
".",
"_dxid",
",",
"{",
"\"project\"",
":",
"self",
".",
"_proj",
",",
"\"tags\"",
":",
"tags",
"}",
",",
"*",
"*",
"kwargs",
")"
] |
:param tags: Tags to add to the object
:type tags: list of strings
Adds each of the specified tags to the remote object. Takes no
action for tags that are already listed for the object.
The tags are added to the copy of the object in the project
associated with the handler.
|
[
":",
"param",
"tags",
":",
"Tags",
"to",
"add",
"to",
"the",
"object",
":",
"type",
"tags",
":",
"list",
"of",
"strings"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/__init__.py#L507-L521
|
train
|
Adds each of the specified tags to the remote 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,Zn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Z4,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(11641 - 11530) + '\x31' + chr(53) + '\x35', ord("\x08")), nzTpIcepk0o8('\x30' + chr(11206 - 11095) + chr(0b110011) + chr(0b100101 + 0o14) + '\067', 0o10), nzTpIcepk0o8('\060' + chr(3221 - 3110) + chr(50) + '\060' + '\x30', 39595 - 39587), nzTpIcepk0o8(chr(48) + chr(111) + '\x35' + chr(0b110111), 18698 - 18690), nzTpIcepk0o8(chr(79 - 31) + '\157' + chr(136 - 86) + chr(0b110010) + '\x32', ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(475 - 422) + chr(54), 50335 - 50327), nzTpIcepk0o8(chr(0b110000) + chr(5819 - 5708) + chr(51) + chr(0b1000 + 0o51) + '\x36', 0b1000), nzTpIcepk0o8(chr(1711 - 1663) + '\x6f' + chr(0b110010) + '\x31' + '\066', ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + '\066' + chr(2268 - 2214), 9822 - 9814), nzTpIcepk0o8('\060' + chr(111) + chr(1644 - 1595) + chr(484 - 434) + chr(0b110101), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110010) + '\064', 14339 - 14331), nzTpIcepk0o8(chr(0b10111 + 0o31) + '\x6f' + chr(2287 - 2238) + chr(49) + chr(0b110011 + 0o4), 0o10), nzTpIcepk0o8('\x30' + chr(0b1011001 + 0o26) + chr(77 - 28) + '\x34' + chr(1373 - 1324), 46961 - 46953), nzTpIcepk0o8(chr(1505 - 1457) + '\x6f' + chr(0b100100 + 0o23), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(1899 - 1849) + chr(48) + chr(0b110101), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b101000 + 0o13) + chr(52) + chr(1932 - 1884), 0b1000), nzTpIcepk0o8(chr(261 - 213) + chr(0b1011101 + 0o22) + chr(1728 - 1676) + chr(0b110110), ord("\x08")), nzTpIcepk0o8(chr(0b100000 + 0o20) + chr(9586 - 9475) + chr(0b100010 + 0o20) + '\x36' + '\x31', 0b1000), nzTpIcepk0o8(chr(2061 - 2013) + chr(6966 - 6855) + chr(0b1111 + 0o44) + chr(0b110000) + chr(0b110101), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\061' + chr(54), 0o10), nzTpIcepk0o8(chr(0b100100 + 0o14) + chr(0b1101111) + chr(1515 - 1464) + '\064', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(2547 - 2436) + chr(0b110001) + '\063' + chr(0b110111), 0b1000), nzTpIcepk0o8(chr(0b100111 + 0o11) + chr(111) + '\061' + '\063' + '\x30', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101010 + 0o5) + chr(0b110001), 0b1000), nzTpIcepk0o8('\060' + chr(2324 - 2213) + chr(0b110011) + chr(50) + chr(0b1101 + 0o46), 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(117 - 67) + chr(0b110110) + chr(1831 - 1777), 57125 - 57117), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(50) + chr(51) + chr(0b110100), 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(0b1100 + 0o46) + chr(0b10 + 0o63) + chr(1782 - 1729), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(50) + chr(51) + '\064', 8), nzTpIcepk0o8('\060' + chr(5655 - 5544) + '\061' + '\064' + chr(0b110 + 0o60), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + '\067' + chr(1341 - 1293), 0b1000), nzTpIcepk0o8('\x30' + '\157' + '\061' + chr(0b110101) + chr(1897 - 1848), 0o10), nzTpIcepk0o8('\x30' + chr(0b1000011 + 0o54) + chr(0b110001 + 0o0) + chr(0b11110 + 0o30) + chr(49), 0b1000), nzTpIcepk0o8(chr(1894 - 1846) + '\x6f' + chr(672 - 623) + chr(0b110100) + chr(0b110000), 29070 - 29062), nzTpIcepk0o8('\x30' + chr(0b11100 + 0o123) + chr(731 - 680) + chr(0b101001 + 0o11) + chr(2178 - 2125), 45160 - 45152), nzTpIcepk0o8(chr(0b10 + 0o56) + chr(111) + chr(0b101100 + 0o5) + chr(0b100111 + 0o15), 55316 - 55308), nzTpIcepk0o8(chr(1419 - 1371) + chr(111) + chr(50) + chr(0b110000) + '\066', 33771 - 33763), nzTpIcepk0o8(chr(0b10111 + 0o31) + '\157' + chr(202 - 151) + chr(0b110010) + '\062', 0o10), nzTpIcepk0o8(chr(48) + chr(10998 - 10887) + chr(1585 - 1534) + '\x37' + '\063', 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(611 - 562) + chr(0b110001) + '\062', 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(1628 - 1580) + chr(0b1101111) + '\x35' + '\060', 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'C'), chr(0b10001 + 0o123) + chr(9517 - 9416) + chr(6259 - 6160) + chr(0b1101111) + chr(100) + chr(8103 - 8002))('\165' + '\164' + chr(0b1100110) + chr(0b1 + 0o54) + chr(0b111000)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def wWxo3hTWGyrH(hXMPsSrOQzbh, TFpYP2_05oSC, **q5n0sHDDTy90):
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'2\xae\xe4K\xcdZ\xaf\xe9E'), chr(0b1100100) + chr(0b10101 + 0o120) + chr(0b1100011) + chr(111) + chr(100) + chr(0b1000110 + 0o37))('\165' + chr(0b1110100) + chr(5235 - 5133) + chr(0b1100 + 0o41) + chr(56)))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b"\t\xf9\xcbz\xfc|\x9f\xf8\x00b'z"), chr(100) + chr(101) + chr(3474 - 3375) + chr(5537 - 5426) + chr(0b110001 + 0o63) + '\x65')('\165' + chr(0b1110100) + chr(0b110010 + 0o64) + chr(0b101101) + chr(0b1111 + 0o51))), {roI3spqORKae(ES5oEprVxulp(b'\x1d\xbd\xefE\xf7M\xba'), '\x64' + chr(0b1010101 + 0o20) + '\x63' + chr(0b1101111) + '\x64' + '\145')(chr(117) + chr(116) + chr(102) + '\055' + chr(56)): roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'$\x9a\xedw\xc0v\xfd\xdd|dS\x19'), chr(0b1100100) + chr(1444 - 1343) + chr(9229 - 9130) + chr(0b11001 + 0o126) + '\144' + '\145')(chr(2391 - 2274) + chr(116) + '\146' + '\055' + chr(0b111000))), roI3spqORKae(ES5oEprVxulp(b'\x19\xae\xe7\\'), chr(5802 - 5702) + '\x65' + chr(99) + '\157' + '\x64' + chr(101))(chr(117) + '\164' + chr(0b1100110) + chr(0b101101) + chr(79 - 23)): TFpYP2_05oSC}, **q5n0sHDDTy90)
|
dnanexus/dx-toolkit
|
src/python/dxpy/bindings/__init__.py
|
DXDataObject.remove_tags
|
def remove_tags(self, tags, **kwargs):
"""
:param tags: Tags to remove from the object
:type tags: list of strings
Removes each of the specified tags from the remote object. Takes
no action for tags that the object does not currently have.
The tags are removed from the copy of the object in the project
associated with the handler.
"""
self._remove_tags(self._dxid, {"project": self._proj, "tags": tags},
**kwargs)
|
python
|
def remove_tags(self, tags, **kwargs):
"""
:param tags: Tags to remove from the object
:type tags: list of strings
Removes each of the specified tags from the remote object. Takes
no action for tags that the object does not currently have.
The tags are removed from the copy of the object in the project
associated with the handler.
"""
self._remove_tags(self._dxid, {"project": self._proj, "tags": tags},
**kwargs)
|
[
"def",
"remove_tags",
"(",
"self",
",",
"tags",
",",
"*",
"*",
"kwargs",
")",
":",
"self",
".",
"_remove_tags",
"(",
"self",
".",
"_dxid",
",",
"{",
"\"project\"",
":",
"self",
".",
"_proj",
",",
"\"tags\"",
":",
"tags",
"}",
",",
"*",
"*",
"kwargs",
")"
] |
:param tags: Tags to remove from the object
:type tags: list of strings
Removes each of the specified tags from the remote object. Takes
no action for tags that the object does not currently have.
The tags are removed from the copy of the object in the project
associated with the handler.
|
[
":",
"param",
"tags",
":",
"Tags",
"to",
"remove",
"from",
"the",
"object",
":",
"type",
"tags",
":",
"list",
"of",
"strings"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/__init__.py#L523-L537
|
train
|
Removes the specified tags from the object.
|
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQt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qOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__
ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\061' + chr(0b110101) + chr(0b110001), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110010) + chr(50) + chr(0b100110 + 0o20), ord("\x08")), nzTpIcepk0o8(chr(0b101001 + 0o7) + chr(0b1101111) + chr(0b110010 + 0o1) + chr(0b110110), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(51) + chr(0b110110) + chr(52), 38963 - 38955), nzTpIcepk0o8(chr(0b111 + 0o51) + chr(0b1101100 + 0o3) + chr(0b10111 + 0o33) + '\066' + chr(715 - 666), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(7743 - 7632) + chr(49) + '\064' + '\x33', ord("\x08")), nzTpIcepk0o8(chr(0b1101 + 0o43) + chr(0b1100110 + 0o11) + '\064' + chr(50), 0o10), nzTpIcepk0o8(chr(0b11110 + 0o22) + chr(111) + '\063' + chr(52) + chr(0b11010 + 0o26), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110001 + 0o2) + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(51) + '\x32', 0b1000), nzTpIcepk0o8(chr(481 - 433) + chr(0b1101111) + chr(0b110010) + '\x31' + chr(0b110001), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(1690 - 1640) + chr(0b10 + 0o57) + chr(0b110110), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b11001 + 0o30) + chr(0b110000 + 0o4) + chr(0b110101), 0b1000), nzTpIcepk0o8('\x30' + chr(0b101100 + 0o103) + chr(1092 - 1042) + chr(1267 - 1215) + chr(0b110110), 31172 - 31164), nzTpIcepk0o8('\x30' + chr(0b110101 + 0o72) + chr(556 - 505) + '\x35' + chr(100 - 46), 63237 - 63229), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(621 - 572) + chr(1898 - 1845) + chr(49), 8), nzTpIcepk0o8('\060' + chr(111) + chr(0b110110) + chr(0b110010), 0o10), nzTpIcepk0o8('\060' + chr(0b1010110 + 0o31) + chr(50) + chr(0b110111) + chr(1943 - 1893), 16645 - 16637), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b11011 + 0o26) + '\x31', 0b1000), nzTpIcepk0o8(chr(0b11000 + 0o30) + chr(0b1000101 + 0o52) + chr(2001 - 1952) + '\064' + chr(50), 25375 - 25367), nzTpIcepk0o8(chr(0b1110 + 0o42) + '\x6f' + chr(0b110001) + chr(0b110010) + '\x36', 13492 - 13484), nzTpIcepk0o8(chr(48) + chr(111) + '\066' + chr(55), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b101001 + 0o12) + chr(2646 - 2593), 0b1000), nzTpIcepk0o8(chr(266 - 218) + '\x6f' + chr(51) + chr(50) + chr(0b110011), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b11111 + 0o23) + chr(2891 - 2837) + '\060', 0o10), nzTpIcepk0o8(chr(48) + chr(0b11011 + 0o124) + chr(0b101111 + 0o3) + '\061' + '\x36', 8), nzTpIcepk0o8('\x30' + '\x6f' + chr(50) + chr(52) + chr(0b110010), 0b1000), nzTpIcepk0o8(chr(0b1101 + 0o43) + chr(0b1101111) + chr(50) + '\065' + '\x36', 29964 - 29956), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x33' + chr(0b110000) + chr(0b110111), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x31' + '\067' + chr(681 - 632), 51890 - 51882), nzTpIcepk0o8('\x30' + chr(0b1101011 + 0o4) + chr(1010 - 960) + chr(1303 - 1253) + chr(51), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + '\062' + '\x33' + chr(2173 - 2124), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(816 - 765) + '\063' + '\060', 0o10), nzTpIcepk0o8(chr(0b10 + 0o56) + chr(0b101000 + 0o107) + chr(1498 - 1448) + '\064', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(2691 - 2638) + '\x34', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(52) + '\063', 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110010) + chr(0b110110) + chr(165 - 112), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x33' + chr(2698 - 2643) + chr(52), 0b1000), nzTpIcepk0o8(chr(48) + chr(3072 - 2961) + chr(1748 - 1698) + chr(2411 - 2358) + chr(0b10100 + 0o34), 0o10), nzTpIcepk0o8('\060' + chr(1030 - 919) + '\061' + chr(0b110010) + chr(55), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110001 + 0o4) + chr(1577 - 1529), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'G'), '\x64' + chr(8866 - 8765) + chr(0b1010111 + 0o14) + '\x6f' + '\x64' + '\x65')(chr(13312 - 13195) + chr(0b1110100) + '\146' + '\055' + chr(1673 - 1617)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def FZakyp0UKRsK(hXMPsSrOQzbh, TFpYP2_05oSC, **q5n0sHDDTy90):
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'6\xe4{\x99\xde\x15G\xbfm{\xee\xfd'), chr(0b1100 + 0o130) + chr(0b11101 + 0o110) + '\x63' + chr(0b1101111) + chr(0b1100100) + '\145')(chr(117) + chr(0b101101 + 0o107) + chr(0b1100110) + chr(70 - 25) + chr(56)))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\r\xa0U\xa1\xdf1s\x96/-\xba\xbb'), chr(0b1100100) + chr(0b1100101) + '\143' + chr(6086 - 5975) + '\144' + chr(2597 - 2496))('\165' + chr(116) + chr(102) + chr(0b101101) + '\070')), {roI3spqORKae(ES5oEprVxulp(b'\x19\xe4q\x9e\xd4\x00V'), chr(1893 - 1793) + '\x65' + chr(99) + chr(0b111100 + 0o63) + chr(0b110100 + 0o60) + '\145')('\165' + '\x74' + '\146' + chr(0b10000 + 0o35) + chr(94 - 38)): roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b' \xc3s\xac\xe3;\x11\xb3S+\xce\xd8'), chr(0b1100100) + '\145' + chr(99) + chr(8068 - 7957) + '\144' + '\x65')('\x75' + '\x74' + chr(0b1100110) + '\x2d' + chr(0b100111 + 0o21))), roI3spqORKae(ES5oEprVxulp(b'\x1d\xf7y\x87'), chr(0b1100100) + chr(0b1100101) + chr(6990 - 6891) + chr(0b11100 + 0o123) + chr(0b110001 + 0o63) + chr(4972 - 4871))(chr(8739 - 8622) + chr(0b1100100 + 0o20) + '\x66' + chr(0b101101) + chr(0b111000)): TFpYP2_05oSC}, **q5n0sHDDTy90)
|
dnanexus/dx-toolkit
|
src/python/dxpy/bindings/__init__.py
|
DXDataObject.remove
|
def remove(self, **kwargs):
'''
:raises: :exc:`~dxpy.exceptions.DXError` if no project is associated with the object
Permanently removes the associated remote object from the
associated project.
'''
if self._proj is None:
raise DXError("Remove called when a project ID was not associated with this object handler")
dxpy.api.project_remove_objects(self._proj, {"objects": [self._dxid]},
**kwargs)
# Reset internal state
self._dxid = None
self._proj = None
self._desc = {}
|
python
|
def remove(self, **kwargs):
'''
:raises: :exc:`~dxpy.exceptions.DXError` if no project is associated with the object
Permanently removes the associated remote object from the
associated project.
'''
if self._proj is None:
raise DXError("Remove called when a project ID was not associated with this object handler")
dxpy.api.project_remove_objects(self._proj, {"objects": [self._dxid]},
**kwargs)
# Reset internal state
self._dxid = None
self._proj = None
self._desc = {}
|
[
"def",
"remove",
"(",
"self",
",",
"*",
"*",
"kwargs",
")",
":",
"if",
"self",
".",
"_proj",
"is",
"None",
":",
"raise",
"DXError",
"(",
"\"Remove called when a project ID was not associated with this object handler\"",
")",
"dxpy",
".",
"api",
".",
"project_remove_objects",
"(",
"self",
".",
"_proj",
",",
"{",
"\"objects\"",
":",
"[",
"self",
".",
"_dxid",
"]",
"}",
",",
"*",
"*",
"kwargs",
")",
"# Reset internal state",
"self",
".",
"_dxid",
"=",
"None",
"self",
".",
"_proj",
"=",
"None",
"self",
".",
"_desc",
"=",
"{",
"}"
] |
:raises: :exc:`~dxpy.exceptions.DXError` if no project is associated with the object
Permanently removes the associated remote object from the
associated project.
|
[
":",
"raises",
":",
":",
"exc",
":",
"~dxpy",
".",
"exceptions",
".",
"DXError",
"if",
"no",
"project",
"is",
"associated",
"with",
"the",
"object"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/__init__.py#L559-L576
|
train
|
Removes the object from the project.
|
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY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KIfuW,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(0b101010 + 0o6) + chr(0b1101111) + chr(892 - 843) + '\064' + chr(0b110000), 61000 - 60992), nzTpIcepk0o8(chr(0b1010 + 0o46) + chr(0b1101111) + chr(0b101111 + 0o3) + chr(975 - 927), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + '\062' + '\066' + chr(692 - 644), ord("\x08")), nzTpIcepk0o8(chr(2244 - 2196) + chr(9064 - 8953) + '\x33' + '\x32' + chr(0b110110), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + '\x31' + '\x31' + '\065', 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b11010 + 0o31) + '\067' + '\064', 0o10), nzTpIcepk0o8(chr(0b100111 + 0o11) + '\157' + chr(51) + chr(632 - 581) + '\x32', 17371 - 17363), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(1172 - 1122) + '\x30' + chr(0b10100 + 0o41), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + '\063' + '\064' + chr(54), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b101110 + 0o5) + chr(815 - 766) + '\x37', 36476 - 36468), nzTpIcepk0o8(chr(54 - 6) + '\157' + '\063' + chr(0b110011 + 0o0), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x33' + chr(0b110010) + chr(0b101011 + 0o12), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\061' + chr(0b110110) + chr(0b10001 + 0o43), 1067 - 1059), nzTpIcepk0o8(chr(2166 - 2118) + chr(0b1101111) + chr(0b11010 + 0o27) + chr(53) + '\x36', 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(51) + chr(51) + '\066', 0b1000), nzTpIcepk0o8(chr(257 - 209) + chr(7841 - 7730) + '\061' + chr(2387 - 2338) + chr(0b100010 + 0o23), 8), nzTpIcepk0o8(chr(866 - 818) + chr(0b1101111) + '\x35' + '\062', 55804 - 55796), nzTpIcepk0o8(chr(385 - 337) + chr(0b1101111) + chr(50) + chr(0b110001) + chr(54), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(51) + chr(49), 0b1000), nzTpIcepk0o8(chr(0b1110 + 0o42) + '\157' + chr(1941 - 1891) + '\063' + '\x34', 29333 - 29325), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110001) + '\062' + chr(0b110001 + 0o6), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + '\062' + '\062' + chr(0b110000), 0b1000), nzTpIcepk0o8('\060' + chr(0b10 + 0o155) + chr(50) + '\063' + chr(543 - 495), 8838 - 8830), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\064', 11685 - 11677), nzTpIcepk0o8(chr(48) + '\157' + chr(0b0 + 0o63) + '\x35' + chr(50), ord("\x08")), nzTpIcepk0o8(chr(0b11111 + 0o21) + '\x6f' + chr(2242 - 2192) + chr(0b110011) + chr(53), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(2036 - 1987) + '\x34' + chr(654 - 604), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1010000 + 0o37) + chr(51) + '\063' + '\065', 34346 - 34338), nzTpIcepk0o8(chr(0b110000) + chr(6415 - 6304) + '\x33' + chr(0b110001) + chr(0b11101 + 0o25), 23975 - 23967), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110100) + chr(1841 - 1786), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(5060 - 4949) + chr(0b100001 + 0o22) + chr(54) + chr(50), 0o10), nzTpIcepk0o8('\x30' + chr(0b111101 + 0o62) + '\062' + chr(0b110001) + chr(0b100001 + 0o21), 0o10), nzTpIcepk0o8(chr(438 - 390) + chr(0b1101111) + '\061', 0o10), nzTpIcepk0o8('\060' + '\157' + '\x37' + chr(0b11101 + 0o23), 14713 - 14705), nzTpIcepk0o8(chr(801 - 753) + chr(4070 - 3959) + chr(2213 - 2163) + chr(0b110111) + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b111011 + 0o64) + chr(55) + '\067', 0b1000), nzTpIcepk0o8(chr(0b101000 + 0o10) + chr(0b1101010 + 0o5) + '\x31', 8), nzTpIcepk0o8(chr(0b10 + 0o56) + '\157' + '\067', 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110011) + chr(1175 - 1126) + '\x37', 8), nzTpIcepk0o8('\060' + '\x6f' + '\x33' + '\061' + chr(48), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(1277 - 1229) + chr(1618 - 1507) + chr(0b100110 + 0o17) + chr(0b110000), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'N'), '\144' + '\x65' + chr(8915 - 8816) + '\x6f' + chr(7542 - 7442) + '\x65')(chr(0b1110 + 0o147) + chr(5636 - 5520) + chr(0b1001101 + 0o31) + chr(0b101101) + '\x38') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def pMlUhd2JmKAE(hXMPsSrOQzbh, **q5n0sHDDTy90):
if roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b')E\xdd\x8e\x1f\xa4\xe9\xd6\xac\xfe\\\x83'), chr(9816 - 9716) + chr(0b1010101 + 0o20) + chr(0b1100011) + chr(0b10111 + 0o130) + chr(0b110000 + 0o64) + chr(101))('\165' + chr(0b1110100) + chr(102) + chr(1138 - 1093) + chr(0b111000))) is None:
raise JPU16lJ2koBU(roI3spqORKae(ES5oEprVxulp(b'2u\xdd\xb9;\x99\xfa\xe6\x87\xa3w\xb0\x10N\xa9%O\xe09\xfdw\xe0\xeak\x80\xf8\x01\xa9\xean\xb6\xaavY\xca\x1foh\xbb\xe8\x01c\xc3\xb9.\x95\xbb\xf1\x83\xab;\xa2\x1d\x1a\xb6m^\xe6p\xefw\xff\xfan\x8f\xfe\x16\xfd\xa2F\x9c\xeem]\xcb'), chr(8919 - 8819) + '\x65' + chr(99) + chr(0b1101111) + chr(0b1100100) + '\x65')(chr(117) + chr(0b11000 + 0o134) + chr(102) + chr(45) + '\070'))
roI3spqORKae(SsdNdRxXOwsF.api, roI3spqORKae(ES5oEprVxulp(b'\x10b\xdf\xbc(\x9f\xae\xda\x94\xaav\xba\x02\x0b\x81"H\xe4|\xff#\xe3'), chr(0b100000 + 0o104) + chr(0b1000100 + 0o41) + chr(0b1100011) + chr(9197 - 9086) + '\144' + chr(0b101100 + 0o71))(chr(117) + chr(116) + chr(0b1100110) + '\x2d' + '\x38'))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b')E\xdd\x8e\x1f\xa4\xe9\xd6\xac\xfe\\\x83'), chr(0b1100100) + '\x65' + chr(99) + '\157' + '\144' + chr(101))(chr(0b1001 + 0o154) + chr(10805 - 10689) + chr(0b1100110) + chr(1203 - 1158) + '\x38')), {roI3spqORKae(ES5oEprVxulp(b'\x0fr\xda\xb3.\x88\xa9'), chr(6191 - 6091) + chr(101) + '\x63' + chr(0b1101111) + chr(0b1100100) + '\145')(chr(117) + chr(0b111001 + 0o73) + '\146' + '\x2d' + chr(489 - 433)): [roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x04&\xfb\x83#\xae\x8b\xf3\xd0\xf8(\xe0'), '\x64' + '\145' + chr(0b1100011) + chr(0b1101111) + chr(100) + '\145')('\165' + chr(0b1100110 + 0o16) + chr(0b1100110) + '\055' + chr(0b110110 + 0o2)))]}, **q5n0sHDDTy90)
hXMPsSrOQzbh.d6KUnRQv6735 = None
hXMPsSrOQzbh.IUmXRX3SJ1GV = None
hXMPsSrOQzbh.Up76sqJenL0f = {}
|
dnanexus/dx-toolkit
|
src/python/dxpy/bindings/__init__.py
|
DXDataObject.move
|
def move(self, folder, **kwargs):
'''
:param folder: Folder route to which to move the object
:type folder: string
:raises: :exc:`~dxpy.exceptions.DXError` if no project is associated with the object
Moves the associated remote object to *folder*.
'''
if self._proj is None:
raise DXError("Move called when a project ID was not associated with this object handler")
dxpy.api.project_move(self._proj, {"objects": [self._dxid],
"destination": folder},
**kwargs)
|
python
|
def move(self, folder, **kwargs):
'''
:param folder: Folder route to which to move the object
:type folder: string
:raises: :exc:`~dxpy.exceptions.DXError` if no project is associated with the object
Moves the associated remote object to *folder*.
'''
if self._proj is None:
raise DXError("Move called when a project ID was not associated with this object handler")
dxpy.api.project_move(self._proj, {"objects": [self._dxid],
"destination": folder},
**kwargs)
|
[
"def",
"move",
"(",
"self",
",",
"folder",
",",
"*",
"*",
"kwargs",
")",
":",
"if",
"self",
".",
"_proj",
"is",
"None",
":",
"raise",
"DXError",
"(",
"\"Move called when a project ID was not associated with this object handler\"",
")",
"dxpy",
".",
"api",
".",
"project_move",
"(",
"self",
".",
"_proj",
",",
"{",
"\"objects\"",
":",
"[",
"self",
".",
"_dxid",
"]",
",",
"\"destination\"",
":",
"folder",
"}",
",",
"*",
"*",
"kwargs",
")"
] |
:param folder: Folder route to which to move the object
:type folder: string
:raises: :exc:`~dxpy.exceptions.DXError` if no project is associated with the object
Moves the associated remote object to *folder*.
|
[
":",
"param",
"folder",
":",
"Folder",
"route",
"to",
"which",
"to",
"move",
"the",
"object",
":",
"type",
"folder",
":",
"string",
":",
"raises",
":",
":",
"exc",
":",
"~dxpy",
".",
"exceptions",
".",
"DXError",
"if",
"no",
"project",
"is",
"associated",
"with",
"the",
"object"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/__init__.py#L578-L593
|
train
|
Moves the associated remote object to the specified folder.
|
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,GA4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cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__
ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\060' + '\x6f' + chr(54) + chr(0b110000 + 0o2), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(0b11101 + 0o24) + '\066' + '\064', ord("\x08")), nzTpIcepk0o8(chr(1915 - 1867) + chr(111) + chr(0b11100 + 0o31) + '\060', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110010) + chr(0b100100 + 0o17) + chr(0b11 + 0o56), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b10010 + 0o37) + chr(1749 - 1695), 0b1000), nzTpIcepk0o8(chr(0b110 + 0o52) + chr(0b1101111) + '\062' + chr(0b110100), 0o10), nzTpIcepk0o8('\x30' + chr(1023 - 912) + chr(0b110010) + '\063' + '\060', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1000110 + 0o51) + '\062' + chr(0b110110) + chr(48), 46098 - 46090), nzTpIcepk0o8(chr(335 - 287) + chr(0b10011 + 0o134) + '\x33' + chr(350 - 301), 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(0b1101 + 0o44) + chr(50) + '\060', 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + '\064' + chr(0b110011), 17633 - 17625), nzTpIcepk0o8(chr(0b11110 + 0o22) + chr(0b10 + 0o155) + '\061' + chr(83 - 33) + chr(326 - 276), 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(0b1100 + 0o46) + chr(148 - 96) + chr(0b11100 + 0o26), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110000 + 0o1) + '\x32' + chr(496 - 442), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b100001 + 0o21) + chr(51) + chr(1758 - 1710), 8), nzTpIcepk0o8('\060' + chr(111) + '\x31' + '\x37' + '\060', 7749 - 7741), nzTpIcepk0o8(chr(0b100010 + 0o16) + '\157' + '\x32' + chr(55) + chr(0b101101 + 0o6), 0b1000), nzTpIcepk0o8(chr(1416 - 1368) + chr(111) + '\061' + '\063' + '\x32', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b11110 + 0o121) + '\062' + chr(48) + chr(48), ord("\x08")), nzTpIcepk0o8(chr(1797 - 1749) + chr(111) + chr(0b110010) + '\x31' + chr(49), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(814 - 763) + chr(1562 - 1512) + chr(0b1110 + 0o47), 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(0b110001) + chr(2319 - 2266) + '\x32', 0o10), nzTpIcepk0o8('\060' + chr(1485 - 1374) + chr(0b110010) + '\063' + '\x30', 8), nzTpIcepk0o8(chr(60 - 12) + chr(0b1101111) + chr(51) + chr(0b1100 + 0o50) + chr(0b110111), ord("\x08")), nzTpIcepk0o8(chr(0b10110 + 0o32) + chr(111) + '\x33' + chr(48) + chr(0b110110), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(53) + chr(52), 0b1000), nzTpIcepk0o8(chr(0b100111 + 0o11) + chr(111) + chr(0b1100 + 0o47) + '\x31' + '\060', 0o10), nzTpIcepk0o8('\x30' + chr(5629 - 5518) + '\x37' + chr(1564 - 1513), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(1019 - 970) + '\x36' + '\x33', 0b1000), nzTpIcepk0o8('\x30' + chr(3893 - 3782) + '\062' + chr(0b1101 + 0o52) + chr(0b110111), 0b1000), nzTpIcepk0o8(chr(0b11011 + 0o25) + chr(111) + chr(0b110001 + 0o1) + '\x35' + '\065', 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(0b110001) + '\067' + chr(2167 - 2115), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101011 + 0o4) + '\x33' + '\x35', 0b1000), nzTpIcepk0o8(chr(1524 - 1476) + chr(1122 - 1011) + '\x34' + chr(0b100101 + 0o15), 50933 - 50925), nzTpIcepk0o8(chr(381 - 333) + chr(0b1101111) + '\x31' + chr(52) + chr(0b110011), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1100000 + 0o17) + '\063' + '\x36' + chr(50), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(5044 - 4933) + '\x36' + chr(0b110111), 0o10), nzTpIcepk0o8(chr(1796 - 1748) + '\x6f' + '\x33' + '\x36' + '\x34', 0b1000), nzTpIcepk0o8(chr(0b101000 + 0o10) + chr(111) + chr(2109 - 2060) + '\x35' + chr(0b101100 + 0o6), 8), nzTpIcepk0o8('\x30' + '\x6f' + '\062' + chr(0b110011) + chr(1268 - 1215), 49266 - 49258)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b1111 + 0o41) + '\x6f' + chr(741 - 688) + chr(0b110000), 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x1c'), chr(7498 - 7398) + chr(3447 - 3346) + chr(5737 - 5638) + '\157' + '\144' + '\x65')(chr(0b1110101) + chr(0b1110100) + chr(8536 - 8434) + chr(45) + chr(56)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def xd7THyEXxkz0(hXMPsSrOQzbh, jJYsaQE2l_C4, **q5n0sHDDTy90):
if roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'{!E\xc1\\L\xab\xe3Sad\x04'), chr(9523 - 9423) + chr(852 - 751) + chr(0b1100011) + chr(0b1001111 + 0o40) + chr(0b1100100) + chr(0b1100101))('\x75' + chr(0b1110100) + chr(0b110111 + 0o57) + chr(0b101101) + chr(250 - 194))) is None:
raise JPU16lJ2koBU(roI3spqORKae(ES5oEprVxulp(b"\x7f\x1b^\xfc.w\xf9\xdcu5Gr\xd5>\xfd\x16\x9b;\xa0\xf9\xa7\x05\xf2\x82\xa5X\xe8r7\x9f\xda\x1dn\x02\r\x9dC\xd4\x0b\xeeA\x1bK\xf0o`\xfd\xd49'J&\xcav\xec\x10\xd2)\xa0\xe6\xb7\x00\xfd\x84\xb2\x0c\xa0Z\x1d\xdb\xc1\x19o"), chr(6042 - 5942) + '\x65' + chr(99) + chr(0b1101111) + chr(0b101001 + 0o73) + '\145')(chr(0b1110101) + chr(116) + chr(0b1100110) + chr(45) + '\070'))
roI3spqORKae(SsdNdRxXOwsF.api, roI3spqORKae(ES5oEprVxulp(b'B\x06G\xf3kw\xec\xeft?U7'), '\x64' + chr(3869 - 3768) + chr(99) + chr(0b1101111) + chr(0b101111 + 0o65) + chr(0b1100101))(chr(0b1110101) + chr(116) + chr(0b1100110) + '\x2d' + chr(0b11111 + 0o31)))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'{!E\xc1\\L\xab\xe3Sad\x04'), chr(0b1100100) + chr(101) + chr(0b1001010 + 0o31) + '\157' + chr(0b111011 + 0o51) + '\x65')('\x75' + '\164' + chr(6956 - 6854) + '\055' + chr(0b111000))), {roI3spqORKae(ES5oEprVxulp(b']\x16B\xfcm`\xeb'), chr(9801 - 9701) + chr(0b1010101 + 0o20) + chr(0b100100 + 0o77) + chr(111) + chr(100) + chr(457 - 356))('\165' + '\164' + chr(6883 - 6781) + '\x2d' + chr(253 - 197)): [roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'VBc\xcc`F\xc9\xc6/g\x10g'), chr(0b1100100) + chr(0b1100101) + chr(0b1100011) + chr(0b111010 + 0o65) + chr(100) + chr(101))(chr(0b1010011 + 0o42) + chr(116) + '\x66' + chr(811 - 766) + '\x38'))], roI3spqORKae(ES5oEprVxulp(b'V\x11[\xedgz\xf9\xc4p?M'), '\144' + chr(0b1000110 + 0o37) + chr(0b110111 + 0o54) + chr(111) + '\144' + '\145')('\165' + chr(10383 - 10267) + '\x66' + chr(45) + chr(56)): jJYsaQE2l_C4}, **q5n0sHDDTy90)
|
dnanexus/dx-toolkit
|
src/python/dxpy/bindings/__init__.py
|
DXDataObject.clone
|
def clone(self, project, folder="/", **kwargs):
'''
:param project: Destination project ID
:type project: string
:param folder: Folder route to which to move the object
:type folder: string
:raises: :exc:`~dxpy.exceptions.DXError` if no project is associated with the object
:returns: An object handler for the new cloned object
:rtype: :class:`DXDataObject`
Clones the associated remote object to *folder* in *project* and
returns an object handler for the new object in the destination
project.
'''
if self._proj is None:
raise DXError("Clone called when a project ID was not associated with this object handler")
dxpy.api.project_clone(self._proj,
{"objects": [self._dxid],
"project": project,
"destination": folder},
**kwargs)
cloned_copy = copy.copy(self)
cloned_copy.set_ids(cloned_copy.get_id(), project)
return cloned_copy
|
python
|
def clone(self, project, folder="/", **kwargs):
'''
:param project: Destination project ID
:type project: string
:param folder: Folder route to which to move the object
:type folder: string
:raises: :exc:`~dxpy.exceptions.DXError` if no project is associated with the object
:returns: An object handler for the new cloned object
:rtype: :class:`DXDataObject`
Clones the associated remote object to *folder* in *project* and
returns an object handler for the new object in the destination
project.
'''
if self._proj is None:
raise DXError("Clone called when a project ID was not associated with this object handler")
dxpy.api.project_clone(self._proj,
{"objects": [self._dxid],
"project": project,
"destination": folder},
**kwargs)
cloned_copy = copy.copy(self)
cloned_copy.set_ids(cloned_copy.get_id(), project)
return cloned_copy
|
[
"def",
"clone",
"(",
"self",
",",
"project",
",",
"folder",
"=",
"\"/\"",
",",
"*",
"*",
"kwargs",
")",
":",
"if",
"self",
".",
"_proj",
"is",
"None",
":",
"raise",
"DXError",
"(",
"\"Clone called when a project ID was not associated with this object handler\"",
")",
"dxpy",
".",
"api",
".",
"project_clone",
"(",
"self",
".",
"_proj",
",",
"{",
"\"objects\"",
":",
"[",
"self",
".",
"_dxid",
"]",
",",
"\"project\"",
":",
"project",
",",
"\"destination\"",
":",
"folder",
"}",
",",
"*",
"*",
"kwargs",
")",
"cloned_copy",
"=",
"copy",
".",
"copy",
"(",
"self",
")",
"cloned_copy",
".",
"set_ids",
"(",
"cloned_copy",
".",
"get_id",
"(",
")",
",",
"project",
")",
"return",
"cloned_copy"
] |
:param project: Destination project ID
:type project: string
:param folder: Folder route to which to move the object
:type folder: string
:raises: :exc:`~dxpy.exceptions.DXError` if no project is associated with the object
:returns: An object handler for the new cloned object
:rtype: :class:`DXDataObject`
Clones the associated remote object to *folder* in *project* and
returns an object handler for the new object in the destination
project.
|
[
":",
"param",
"project",
":",
"Destination",
"project",
"ID",
":",
"type",
"project",
":",
"string",
":",
"param",
"folder",
":",
"Folder",
"route",
"to",
"which",
"to",
"move",
"the",
"object",
":",
"type",
"folder",
":",
"string",
":",
"raises",
":",
":",
"exc",
":",
"~dxpy",
".",
"exceptions",
".",
"DXError",
"if",
"no",
"project",
"is",
"associated",
"with",
"the",
"object",
":",
"returns",
":",
"An",
"object",
"handler",
"for",
"the",
"new",
"cloned",
"object",
":",
"rtype",
":",
":",
"class",
":",
"DXDataObject"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/__init__.py#L596-L622
|
train
|
Clones the object to the destination project and returns a new object handler for 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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l7Kt9,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(1212 - 1164) + chr(111) + chr(51) + chr(54) + '\065', 0o10), nzTpIcepk0o8(chr(48) + chr(9358 - 9247) + '\062' + chr(108 - 53) + chr(0b11011 + 0o31), 0o10), nzTpIcepk0o8(chr(0b100 + 0o54) + '\157' + chr(0b100100 + 0o16) + chr(2361 - 2310) + '\060', 0o10), nzTpIcepk0o8(chr(0b10011 + 0o35) + '\x6f' + '\x33' + chr(0b100101 + 0o17) + '\060', 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(51) + chr(1499 - 1444) + chr(49), 50339 - 50331), nzTpIcepk0o8(chr(770 - 722) + chr(0b110001 + 0o76) + chr(1937 - 1888) + chr(0b110000) + chr(0b110101), 0b1000), nzTpIcepk0o8(chr(0b100101 + 0o13) + chr(0b1101111) + chr(0b10011 + 0o40) + '\060' + '\x35', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110010) + chr(62 - 14) + chr(550 - 500), 62439 - 62431), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(49) + '\x34' + '\060', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b11111 + 0o120) + chr(0b110001) + chr(0b11111 + 0o24) + chr(2417 - 2366), 32280 - 32272), nzTpIcepk0o8('\060' + chr(0b1101011 + 0o4) + chr(0b110010) + '\x32' + chr(360 - 306), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(50) + chr(360 - 308) + chr(0b11000 + 0o35), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(7842 - 7731) + '\062' + chr(0b110001) + chr(0b10010 + 0o43), 0o10), nzTpIcepk0o8('\060' + chr(0b1100001 + 0o16) + chr(0b110011) + chr(0b10001 + 0o37), 54253 - 54245), nzTpIcepk0o8(chr(0b11 + 0o55) + chr(0b1101100 + 0o3) + chr(0b110001) + '\x35' + chr(55), 0b1000), nzTpIcepk0o8(chr(1768 - 1720) + chr(0b1100001 + 0o16) + chr(50) + chr(48) + chr(0b110000 + 0o0), 9987 - 9979), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(1451 - 1399) + chr(0b110110), 0b1000), nzTpIcepk0o8(chr(1294 - 1246) + chr(0b101000 + 0o107) + chr(0b10100 + 0o36) + '\x32' + '\060', 0o10), nzTpIcepk0o8(chr(797 - 749) + chr(111) + '\x31' + chr(0b110000) + '\061', 161 - 153), nzTpIcepk0o8('\060' + '\x6f' + chr(0b101101 + 0o4) + '\061' + chr(339 - 289), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(11029 - 10918) + '\x31' + '\x36', 0b1000), nzTpIcepk0o8(chr(0b101110 + 0o2) + '\x6f' + '\061' + chr(53) + chr(0b110101), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b110110 + 0o71) + chr(54) + chr(0b10011 + 0o41), 0b1000), nzTpIcepk0o8('\060' + chr(0b10000 + 0o137) + chr(2263 - 2214) + '\x33' + chr(105 - 54), 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(1155 - 1106) + '\x37', 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(0b110011) + chr(2104 - 2049) + '\x35', 0o10), nzTpIcepk0o8(chr(48) + chr(9253 - 9142) + chr(0b101100 + 0o7) + chr(2375 - 2321) + chr(813 - 762), 0b1000), nzTpIcepk0o8(chr(101 - 53) + chr(0b1011010 + 0o25) + chr(860 - 810) + chr(136 - 82) + chr(0b110101), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b11111 + 0o22) + chr(51) + chr(0b1001 + 0o51), 62738 - 62730), nzTpIcepk0o8(chr(48) + chr(11808 - 11697) + chr(0b100010 + 0o20) + '\x30' + '\x37', 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\063' + chr(53) + '\x36', 30487 - 30479), nzTpIcepk0o8('\060' + chr(111) + chr(0b101101 + 0o3), 58697 - 58689), nzTpIcepk0o8('\060' + '\157' + chr(0b110010) + chr(51) + '\x32', 0o10), nzTpIcepk0o8('\x30' + chr(0b1100001 + 0o16) + '\x32' + chr(0b110111) + chr(845 - 791), 0b1000), nzTpIcepk0o8(chr(0b101 + 0o53) + chr(111) + chr(0b110001) + chr(0b11000 + 0o35) + chr(0b10010 + 0o45), 8), nzTpIcepk0o8(chr(48) + chr(0b100110 + 0o111) + chr(0b100101 + 0o14) + '\067' + '\067', 0o10), nzTpIcepk0o8(chr(1596 - 1548) + chr(10925 - 10814) + chr(0b101001 + 0o14) + chr(52), 13135 - 13127), nzTpIcepk0o8(chr(0b110000) + chr(822 - 711) + chr(0b110011) + chr(55) + chr(48), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b100111 + 0o14) + chr(971 - 919) + '\067', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b111 + 0o53) + '\062' + chr(0b110010), 3211 - 3203)][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + chr(0b100011 + 0o114) + chr(53) + '\060', 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xdb'), chr(0b1000101 + 0o37) + '\145' + '\143' + chr(0b1101111) + chr(100) + chr(0b111111 + 0o46))('\165' + chr(116) + '\146' + chr(0b101101) + chr(0b111000)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def SXuP0tUUXymu(hXMPsSrOQzbh, mcjejRq_Q0_k, jJYsaQE2l_C4=roI3spqORKae(ES5oEprVxulp(b'\xda'), chr(5389 - 5289) + chr(0b1100101) + '\143' + '\x6f' + chr(0b110100 + 0o60) + chr(0b10111 + 0o116))('\x75' + '\164' + '\146' + chr(1925 - 1880) + '\x38'), **q5n0sHDDTy90):
if roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xbc\xe9\xf5\xb8\xab\x1d\xf6\xd1*j\xd1\xf3'), chr(5671 - 5571) + chr(0b1100101) + chr(99) + '\x6f' + '\144' + chr(0b100110 + 0o77))(chr(0b101100 + 0o111) + chr(116) + chr(0b1100110) + '\055' + chr(0b111000))) is None:
raise JPU16lJ2koBU(roI3spqORKae(ES5oEprVxulp(b'\xb6\xd0\xf7\x8e\x9ce\xa6\xe3\x0c7\xf3\xc1\xado\x07\xe5H\xb0 j~\x1f[1j\x9e\x87\x95\x13\xc3\xcew\xfb\xcdO\x11C\x8c\xc7\xf3\x86\xcf\xf7\x83\x90$\xb1\xe7\x04{\xe1\xcc\xf9pO\xf4N\xf92ja\x0f^>l\x89\xd3\xdd;\xe9\x8al\xff\xcc'), chr(100) + chr(0b110011 + 0o62) + '\143' + '\x6f' + '\x64' + chr(467 - 366))(chr(117) + '\164' + chr(6823 - 6721) + chr(206 - 161) + chr(0b111000)))
roI3spqORKae(SsdNdRxXOwsF.api, roI3spqORKae(ES5oEprVxulp(b'\x85\xce\xf7\x8a\x9c&\xb1\xdd\x037\xf9\xcb\xe8'), chr(0b1111 + 0o125) + '\145' + chr(0b1100011) + chr(111) + '\144' + '\145')(chr(117) + chr(12333 - 12217) + chr(0b1100011 + 0o3) + chr(0b101101) + '\x38'))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xbc\xe9\xf5\xb8\xab\x1d\xf6\xd1*j\xd1\xf3'), chr(100) + chr(101) + chr(99) + '\x6f' + '\144' + chr(5222 - 5121))('\x75' + chr(0b11011 + 0o131) + chr(0b1011100 + 0o12) + '\x2d' + chr(0b111000))), {roI3spqORKae(ES5oEprVxulp(b'\x9a\xde\xf2\x85\x9a1\xb6'), chr(0b1100100) + '\x65' + '\143' + '\157' + chr(0b100 + 0o140) + chr(0b1100101))(chr(0b1100 + 0o151) + chr(0b1110100) + chr(0b1011100 + 0o12) + chr(0b1110 + 0o37) + chr(56)): [roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x91\x8a\xd3\xb5\x97\x17\x94\xf4Vl\xa5\x90'), chr(391 - 291) + chr(0b1100101) + chr(0b1010110 + 0o15) + chr(5884 - 5773) + '\x64' + '\145')(chr(0b1000 + 0o155) + chr(116) + '\146' + '\055' + chr(0b110000 + 0o10)))], roI3spqORKae(ES5oEprVxulp(b'\x85\xce\xf7\x8a\x9c&\xb1'), chr(100) + chr(101) + chr(0b1011011 + 0o10) + chr(0b1101111) + '\144' + chr(0b1100101))(chr(117) + chr(0b1110100) + chr(0b1100110) + '\x2d' + chr(56)): mcjejRq_Q0_k, roI3spqORKae(ES5oEprVxulp(b'\x91\xd9\xeb\x94\x90+\xa4\xf6\t4\xf8'), '\x64' + chr(8895 - 8794) + '\x63' + '\x6f' + chr(0b1100100) + chr(0b1001011 + 0o32))(chr(0b1000001 + 0o64) + chr(10855 - 10739) + chr(5483 - 5381) + chr(45) + '\x38'): jJYsaQE2l_C4}, **q5n0sHDDTy90)
Wbm2PFiZnq2n = aZTCj4v5QdfO.copy(hXMPsSrOQzbh)
roI3spqORKae(Wbm2PFiZnq2n, roI3spqORKae(ES5oEprVxulp(b'\x86\xd9\xec\xbf\x90!\xb6'), '\144' + '\145' + '\x63' + '\157' + chr(7904 - 7804) + chr(101))(chr(8829 - 8712) + '\x74' + '\146' + chr(0b11011 + 0o22) + chr(0b111000)))(roI3spqORKae(Wbm2PFiZnq2n, roI3spqORKae(ES5oEprVxulp(b'\x9b\xd7\xcc\x8e\x9a\x0f\xa6\xc407\xff\xf2'), chr(8667 - 8567) + chr(101) + '\x63' + '\157' + chr(100) + '\x65')(chr(7494 - 7377) + chr(0b1110100) + chr(0b1100110) + chr(0b11111 + 0o16) + chr(606 - 550)))(), mcjejRq_Q0_k)
return Wbm2PFiZnq2n
|
dnanexus/dx-toolkit
|
src/python/dxpy/utils/config.py
|
DXConfig.get_session_conf_dir
|
def get_session_conf_dir(self, cleanup=False):
"""
Tries to find the session configuration directory by looking in ~/.dnanexus_config/sessions/<PID>,
where <PID> is pid of the parent of this process, then its parent, and so on.
If none of those exist, the path for the immediate parent is given, even if it doesn't exist.
If *cleanup* is True, looks up and deletes all session configuration directories that belong to nonexistent
processes.
"""
sessions_dir = os.path.join(self._user_conf_dir, "sessions")
try:
from psutil import Process, pid_exists
if cleanup:
try:
session_dirs = os.listdir(sessions_dir)
except OSError as e:
# Silently skip cleanup and continue if we are unable to
# enumerate the session directories for any reason
# (including, most commonly, because the sessions dir
# doesn't exist)
session_dirs = []
for session_dir in session_dirs:
try:
session_pid = int(session_dir)
except ValueError:
# If dir name doesn't look like an int, leave it
# alone
continue
if not pid_exists(session_pid):
rmtree(os.path.join(sessions_dir, session_dir), ignore_errors=True)
parent_process = Process(os.getpid()).parent()
default_session_dir = os.path.join(sessions_dir, str(parent_process.pid))
while parent_process is not None and parent_process.pid != 0:
session_dir = os.path.join(sessions_dir, str(parent_process.pid))
if os.path.exists(session_dir):
return session_dir
parent_process = parent_process.parent()
return default_session_dir
except (ImportError, IOError, AttributeError) as e:
# We don't bundle psutil with Windows, so failure to import
# psutil would be expected.
if platform.system() != 'Windows':
warn(fill("Error while retrieving session configuration: " + format_exception(e)))
except Exception as e:
warn(fill("Unexpected error while retrieving session configuration: " + format_exception(e)))
return self._get_ppid_session_conf_dir(sessions_dir)
|
python
|
def get_session_conf_dir(self, cleanup=False):
"""
Tries to find the session configuration directory by looking in ~/.dnanexus_config/sessions/<PID>,
where <PID> is pid of the parent of this process, then its parent, and so on.
If none of those exist, the path for the immediate parent is given, even if it doesn't exist.
If *cleanup* is True, looks up and deletes all session configuration directories that belong to nonexistent
processes.
"""
sessions_dir = os.path.join(self._user_conf_dir, "sessions")
try:
from psutil import Process, pid_exists
if cleanup:
try:
session_dirs = os.listdir(sessions_dir)
except OSError as e:
# Silently skip cleanup and continue if we are unable to
# enumerate the session directories for any reason
# (including, most commonly, because the sessions dir
# doesn't exist)
session_dirs = []
for session_dir in session_dirs:
try:
session_pid = int(session_dir)
except ValueError:
# If dir name doesn't look like an int, leave it
# alone
continue
if not pid_exists(session_pid):
rmtree(os.path.join(sessions_dir, session_dir), ignore_errors=True)
parent_process = Process(os.getpid()).parent()
default_session_dir = os.path.join(sessions_dir, str(parent_process.pid))
while parent_process is not None and parent_process.pid != 0:
session_dir = os.path.join(sessions_dir, str(parent_process.pid))
if os.path.exists(session_dir):
return session_dir
parent_process = parent_process.parent()
return default_session_dir
except (ImportError, IOError, AttributeError) as e:
# We don't bundle psutil with Windows, so failure to import
# psutil would be expected.
if platform.system() != 'Windows':
warn(fill("Error while retrieving session configuration: " + format_exception(e)))
except Exception as e:
warn(fill("Unexpected error while retrieving session configuration: " + format_exception(e)))
return self._get_ppid_session_conf_dir(sessions_dir)
|
[
"def",
"get_session_conf_dir",
"(",
"self",
",",
"cleanup",
"=",
"False",
")",
":",
"sessions_dir",
"=",
"os",
".",
"path",
".",
"join",
"(",
"self",
".",
"_user_conf_dir",
",",
"\"sessions\"",
")",
"try",
":",
"from",
"psutil",
"import",
"Process",
",",
"pid_exists",
"if",
"cleanup",
":",
"try",
":",
"session_dirs",
"=",
"os",
".",
"listdir",
"(",
"sessions_dir",
")",
"except",
"OSError",
"as",
"e",
":",
"# Silently skip cleanup and continue if we are unable to",
"# enumerate the session directories for any reason",
"# (including, most commonly, because the sessions dir",
"# doesn't exist)",
"session_dirs",
"=",
"[",
"]",
"for",
"session_dir",
"in",
"session_dirs",
":",
"try",
":",
"session_pid",
"=",
"int",
"(",
"session_dir",
")",
"except",
"ValueError",
":",
"# If dir name doesn't look like an int, leave it",
"# alone",
"continue",
"if",
"not",
"pid_exists",
"(",
"session_pid",
")",
":",
"rmtree",
"(",
"os",
".",
"path",
".",
"join",
"(",
"sessions_dir",
",",
"session_dir",
")",
",",
"ignore_errors",
"=",
"True",
")",
"parent_process",
"=",
"Process",
"(",
"os",
".",
"getpid",
"(",
")",
")",
".",
"parent",
"(",
")",
"default_session_dir",
"=",
"os",
".",
"path",
".",
"join",
"(",
"sessions_dir",
",",
"str",
"(",
"parent_process",
".",
"pid",
")",
")",
"while",
"parent_process",
"is",
"not",
"None",
"and",
"parent_process",
".",
"pid",
"!=",
"0",
":",
"session_dir",
"=",
"os",
".",
"path",
".",
"join",
"(",
"sessions_dir",
",",
"str",
"(",
"parent_process",
".",
"pid",
")",
")",
"if",
"os",
".",
"path",
".",
"exists",
"(",
"session_dir",
")",
":",
"return",
"session_dir",
"parent_process",
"=",
"parent_process",
".",
"parent",
"(",
")",
"return",
"default_session_dir",
"except",
"(",
"ImportError",
",",
"IOError",
",",
"AttributeError",
")",
"as",
"e",
":",
"# We don't bundle psutil with Windows, so failure to import",
"# psutil would be expected.",
"if",
"platform",
".",
"system",
"(",
")",
"!=",
"'Windows'",
":",
"warn",
"(",
"fill",
"(",
"\"Error while retrieving session configuration: \"",
"+",
"format_exception",
"(",
"e",
")",
")",
")",
"except",
"Exception",
"as",
"e",
":",
"warn",
"(",
"fill",
"(",
"\"Unexpected error while retrieving session configuration: \"",
"+",
"format_exception",
"(",
"e",
")",
")",
")",
"return",
"self",
".",
"_get_ppid_session_conf_dir",
"(",
"sessions_dir",
")"
] |
Tries to find the session configuration directory by looking in ~/.dnanexus_config/sessions/<PID>,
where <PID> is pid of the parent of this process, then its parent, and so on.
If none of those exist, the path for the immediate parent is given, even if it doesn't exist.
If *cleanup* is True, looks up and deletes all session configuration directories that belong to nonexistent
processes.
|
[
"Tries",
"to",
"find",
"the",
"session",
"configuration",
"directory",
"by",
"looking",
"in",
"~",
"/",
".",
"dnanexus_config",
"/",
"sessions",
"/",
"<PID",
">",
"where",
"<PID",
">",
"is",
"pid",
"of",
"the",
"parent",
"of",
"this",
"process",
"then",
"its",
"parent",
"and",
"so",
"on",
".",
"If",
"none",
"of",
"those",
"exist",
"the",
"path",
"for",
"the",
"immediate",
"parent",
"is",
"given",
"even",
"if",
"it",
"doesn",
"t",
"exist",
"."
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/utils/config.py#L161-L208
|
train
|
Tries to find the session configuration directory by looking in ~/.dnanexus_config and looking in ~/.dnanexus_config for the immediate parent of this process and then its 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,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7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__
ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(48) + chr(111) + '\063' + chr(197 - 143) + chr(0b101010 + 0o14), 8171 - 8163), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b1011 + 0o47) + chr(0b110000) + chr(0b10100 + 0o35), 21168 - 21160), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b1001 + 0o50) + '\x36' + chr(0b101111 + 0o2), 0o10), nzTpIcepk0o8('\060' + chr(12155 - 12044) + chr(0b110011) + chr(53) + chr(0b10110 + 0o32), 7013 - 7005), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b101111 + 0o3) + '\060' + chr(2018 - 1964), ord("\x08")), nzTpIcepk0o8(chr(269 - 221) + chr(9694 - 9583) + chr(0b110001) + chr(53) + chr(1174 - 1125), 0b1000), nzTpIcepk0o8(chr(0b1111 + 0o41) + chr(0b1101111) + '\x33' + chr(0b110101) + chr(0b10100 + 0o37), 31037 - 31029), nzTpIcepk0o8('\x30' + '\157' + chr(0b110010) + chr(0b110100) + chr(49), 0b1000), nzTpIcepk0o8(chr(0b1001 + 0o47) + chr(2828 - 2717) + chr(50) + '\061' + '\x35', 37087 - 37079), nzTpIcepk0o8('\060' + chr(111) + chr(0b110010) + chr(0b100101 + 0o16) + chr(361 - 312), 1219 - 1211), nzTpIcepk0o8('\x30' + '\157' + chr(0b110001) + '\x30' + '\x34', 17109 - 17101), nzTpIcepk0o8(chr(48) + chr(2607 - 2496) + chr(0b110011), 53304 - 53296), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(54) + '\x36', 0b1000), nzTpIcepk0o8(chr(1843 - 1795) + '\157' + chr(0b11 + 0o60) + chr(0b110101) + chr(55), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x31' + chr(0b100101 + 0o17) + chr(55), 60694 - 60686), nzTpIcepk0o8(chr(1954 - 1906) + chr(0b1010101 + 0o32) + chr(0b110010 + 0o0) + chr(0b110010 + 0o3) + '\x32', 0o10), nzTpIcepk0o8(chr(0b100011 + 0o15) + '\x6f' + chr(0b110011 + 0o1) + '\x36', 53929 - 53921), nzTpIcepk0o8('\x30' + chr(0b1100000 + 0o17) + '\063' + chr(0b110010) + chr(48), ord("\x08")), nzTpIcepk0o8(chr(0b100 + 0o54) + chr(0b1101110 + 0o1) + chr(0b1010 + 0o50) + chr(1643 - 1589) + chr(55), ord("\x08")), nzTpIcepk0o8(chr(0b101101 + 0o3) + chr(0b1101111) + chr(50) + chr(0b11000 + 0o34) + '\064', 0o10), nzTpIcepk0o8(chr(502 - 454) + chr(0b1000011 + 0o54) + chr(51) + '\x37' + chr(54), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101010 + 0o5) + chr(478 - 429) + chr(395 - 340), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1001101 + 0o42) + '\x33' + chr(0b1000 + 0o52), 8919 - 8911), nzTpIcepk0o8(chr(0b10001 + 0o37) + chr(10251 - 10140) + '\x31' + chr(50) + chr(0b110010), 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x33' + chr(0b10 + 0o56) + '\x37', 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + '\x34' + '\x37', 2978 - 2970), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\063' + '\065' + '\062', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(10777 - 10666) + chr(1191 - 1140) + chr(1912 - 1857) + chr(55), 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(0b110100) + '\x34', 25189 - 25181), nzTpIcepk0o8('\060' + '\x6f' + chr(0b11000 + 0o31) + '\064' + chr(1307 - 1259), 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(0b101101 + 0o12) + chr(0b10011 + 0o37), 21146 - 21138), nzTpIcepk0o8(chr(0b1 + 0o57) + '\x6f' + chr(51) + '\x33' + chr(0b110001 + 0o0), 0b1000), nzTpIcepk0o8(chr(0b11 + 0o55) + '\x6f' + chr(0b110011), 8), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(933 - 882) + '\065' + '\067', 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1101011 + 0o4) + chr(0b110011) + chr(0b110101) + chr(48), 8), nzTpIcepk0o8(chr(0b11100 + 0o24) + '\x6f' + chr(0b100010 + 0o21) + chr(0b10101 + 0o42) + '\067', 8), nzTpIcepk0o8(chr(204 - 156) + chr(0b101001 + 0o106) + '\x33' + chr(0b110100) + chr(857 - 802), 0o10), nzTpIcepk0o8(chr(48) + chr(11755 - 11644) + chr(0b100101 + 0o14) + chr(0b100111 + 0o16), 0o10), nzTpIcepk0o8('\060' + '\157' + '\x32' + chr(0b1010 + 0o47), 23623 - 23615), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b11 + 0o57) + '\x33' + chr(0b110000), 12611 - 12603)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(1468 - 1420) + chr(8666 - 8555) + '\065' + chr(0b110000), ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xd8'), chr(0b101010 + 0o72) + chr(0b1100101) + '\x63' + '\157' + '\x64' + chr(0b1101 + 0o130))(chr(117) + '\164' + '\146' + chr(45) + chr(678 - 622)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def XbPcv49m09R6(hXMPsSrOQzbh, dYlCHfNMN2Nz=nzTpIcepk0o8(chr(48) + chr(111) + chr(48), 10132 - 10124)):
hzLYpcy0lyoi = aHUqKstZLeS6.path.Y4yM9BcfTCNq(hXMPsSrOQzbh._user_conf_dir, roI3spqORKae(ES5oEprVxulp(b'\x85\xe4\x02\x9b\xef\x06\x85\xd2'), '\x64' + '\145' + chr(0b10101 + 0o116) + chr(0b10110 + 0o131) + chr(972 - 872) + chr(0b10000 + 0o125))('\x75' + '\x74' + '\146' + chr(0b101101) + '\x38'))
try:
(bE3SqjreW2iy, fUGTAmYgFW2z) = (roI3spqORKae(rFFUeiYWzOhx(roI3spqORKae(ES5oEprVxulp(b'\x86\xf2\x04\x9c\xef\x05'), chr(0b100 + 0o140) + '\x65' + chr(9569 - 9470) + '\157' + chr(483 - 383) + chr(0b101100 + 0o71))(chr(0b1110101) + chr(0b11101 + 0o127) + chr(0b101111 + 0o67) + '\x2d' + '\070'), roI3spqORKae(ES5oEprVxulp(b'\xa6\xf3\x1e\x8b\xe3\x1a\x98'), chr(100) + chr(0b1100101) + '\143' + '\x6f' + '\144' + chr(101))(chr(0b1110101) + chr(116) + '\146' + chr(0b101101) + '\070')), roI3spqORKae(ES5oEprVxulp(b'\xa6\xf3\x1e\x8b\xe3\x1a\x98'), chr(100) + '\x65' + chr(99) + chr(4441 - 4330) + chr(0b11010 + 0o112) + chr(101))(chr(117) + '\164' + chr(0b1100110) + '\x2d' + '\x38')), roI3spqORKae(rFFUeiYWzOhx(roI3spqORKae(ES5oEprVxulp(b'\x86\xf2\x04\x9c\xef\x05'), chr(100) + '\x65' + chr(0b100010 + 0o101) + chr(8964 - 8853) + chr(5298 - 5198) + '\x65')('\165' + '\164' + chr(0b0 + 0o146) + '\055' + '\070'), roI3spqORKae(ES5oEprVxulp(b'\x86\xe8\x15\xb7\xe3\x11\x82\xd2\xf9\xea'), '\144' + '\145' + chr(0b1100011) + '\x6f' + '\144' + '\x65')('\x75' + chr(0b1101111 + 0o5) + chr(102) + chr(226 - 181) + chr(0b111000))), roI3spqORKae(ES5oEprVxulp(b'\x86\xe8\x15\xb7\xe3\x11\x82\xd2\xf9\xea'), chr(0b1010110 + 0o16) + chr(101) + '\x63' + chr(1696 - 1585) + chr(0b111101 + 0o47) + '\145')('\x75' + chr(116) + '\146' + chr(0b101101) + '\070')))
if dYlCHfNMN2Nz:
try:
g8_ZuvZcp6r4 = aHUqKstZLeS6.listdir(hzLYpcy0lyoi)
except zsedrPqY_EmW as wgf0sgcu_xPL:
g8_ZuvZcp6r4 = []
for jplgk2hDvk6i in g8_ZuvZcp6r4:
try:
DNMtNWImdyk_ = nzTpIcepk0o8(jplgk2hDvk6i)
except WbNHlDKpyPtQ:
continue
if not fUGTAmYgFW2z(DNMtNWImdyk_):
TZ5VJDaRNJDl(roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'\xaf\xb5\x08\xa5\xbf+\x88\xc7\xd9\xda\nr'), chr(0b1010001 + 0o23) + '\x65' + chr(0b11000 + 0o113) + '\x6f' + chr(100) + chr(0b1001111 + 0o26))('\165' + chr(13306 - 13190) + chr(102) + chr(0b101101) + '\x38'))(hzLYpcy0lyoi, jplgk2hDvk6i), ignore_errors=nzTpIcepk0o8('\060' + chr(111) + '\061', 29599 - 29591))
z0Z1JdOmW0Nv = bE3SqjreW2iy(aHUqKstZLeS6.getpid()).aY0lxtg5akD2()
CndOS1DJ8Jl5 = aHUqKstZLeS6.path.Y4yM9BcfTCNq(hzLYpcy0lyoi, N9zlRy29S1SS(z0Z1JdOmW0Nv.DvWXOSonGyAy))
while z0Z1JdOmW0Nv is not None and roI3spqORKae(z0Z1JdOmW0Nv, roI3spqORKae(ES5oEprVxulp(b'\xb2\xf7&\xb0\xc9:\x84\xcf\xca\xe0\x05z'), chr(6328 - 6228) + '\x65' + chr(5410 - 5311) + chr(0b10 + 0o155) + chr(554 - 454) + chr(101))(chr(0b10100 + 0o141) + chr(0b1110100) + chr(667 - 565) + chr(0b101101) + '\070')) != nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b100001 + 0o17), 8):
jplgk2hDvk6i = aHUqKstZLeS6.path.Y4yM9BcfTCNq(hzLYpcy0lyoi, N9zlRy29S1SS(z0Z1JdOmW0Nv.DvWXOSonGyAy))
if roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'\x8c\xd28\x91\xe89\x9e\xe4\xfb\xf5\x157'), chr(0b1100100) + '\145' + chr(9507 - 9408) + '\157' + chr(0b1000011 + 0o41) + chr(0b11010 + 0o113))('\x75' + chr(0b1110 + 0o146) + chr(102) + '\055' + chr(56)))(jplgk2hDvk6i):
return jplgk2hDvk6i
z0Z1JdOmW0Nv = z0Z1JdOmW0Nv.aY0lxtg5akD2()
return CndOS1DJ8Jl5
except (fPFTJxVnGShv, Awc2QmWaiVq8, bIsJhlpYrrU2) as wgf0sgcu_xPL:
if roI3spqORKae(Mrg3y1GQ55C0, roI3spqORKae(ES5oEprVxulp(b'\x85\xf8\x02\x9c\xe3\x04'), '\x64' + '\145' + '\x63' + chr(111) + '\x64' + chr(101))('\x75' + chr(0b1110100) + chr(6060 - 5958) + chr(45) + chr(2514 - 2458)))() != roI3spqORKae(ES5oEprVxulp(b'\xa1\xe8\x1f\x8c\xe9\x1e\x98'), '\x64' + chr(101) + chr(99) + '\157' + '\x64' + chr(101))('\165' + '\x74' + chr(102) + '\x2d' + '\x38'):
sJQV_HqS9fgz(pPmkLCVA328e(roI3spqORKae(ES5oEprVxulp(b'\xb3\xf3\x03\x87\xf4I\x9c\xc9\xe4\xf5!#D\x8a\x13\xd8O\xb5\xc1\xcd\x90h:!\xa2T\x99\x96K\x0e\x1a\xbal\x81\x8e\x96\x80xc\xf9\x82\xe8\x1e\x86\xbcI'), '\x64' + '\145' + '\143' + chr(111) + chr(0b1100100) + '\145')('\165' + chr(116) + chr(0b1100110) + chr(1015 - 970) + '\x38') + NtA5Lcp9RBcP(wgf0sgcu_xPL)))
except zfo2Sgkz3IVJ as wgf0sgcu_xPL:
sJQV_HqS9fgz(pPmkLCVA328e(roI3spqORKae(ES5oEprVxulp(b'\xa3\xef\x14\x90\xf6\x0c\x88\xd5\xe8\xfddfD\x9d\x08\xd8\x06\xa7\xdf\xcd\x92j: \xa2S\x98\x96A\x16S\xb7d\xcf\x9b\x9a\x94~x\xf7\x98\xa1\x12\x87\xe8\x0f\x82\xc6\xf8\xeb%w_\x80\t\x90\x06'), chr(0b1100100) + chr(0b100011 + 0o102) + chr(0b1100011) + chr(0b1101111) + '\x64' + chr(970 - 869))(chr(117) + chr(116) + '\146' + chr(0b101101) + '\x38') + NtA5Lcp9RBcP(wgf0sgcu_xPL)))
return roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xa9\xe6\x14\x9c\xd9\x19\x9b\xc8\xe9\xc67fE\x9c\x0e\xc5H\x8f\xd4\xcb\x90iE6\xaeU'), chr(2601 - 2501) + '\x65' + '\x63' + '\x6f' + chr(100) + chr(0b1010010 + 0o23))(chr(0b100000 + 0o125) + '\164' + '\x66' + '\055' + chr(56)))(hzLYpcy0lyoi)
|
dnanexus/dx-toolkit
|
src/python/dxpy/bindings/dxdataobject_functions.py
|
dxlink
|
def dxlink(object_id, project_id=None, field=None):
'''
:param object_id: Object ID or the object handler itself
:type object_id: string or :class:`~dxpy.bindings.DXDataObject`
:param project_id: A project ID, if creating a cross-project DXLink
:type project_id: string
:param field: A field name, if creating a job-based object reference
:type field: string
:returns: A dict formatted as a symbolic DNAnexus object reference
:rtype: dict
Creates a DXLink to the specified object.
If `object_id` is already a link, it is returned without modification.
If `object_id is a `~dxpy.bindings.DXDataObject`, the object ID is
retrieved via its `get_id()` method.
If `field` is not `None`, `object_id` is expected to be of class 'job'
and the link created is a Job Based Object Reference (JBOR), which is
of the form::
{'$dnanexus_link': {'job': object_id, 'field': field}}
If `field` is `None` and `project_id` is not `None`, the link created
is a project-specific link of the form::
{'$dnanexus_link': {'project': project_id, 'id': object_id}}
'''
if is_dxlink(object_id):
return object_id
if isinstance(object_id, DXDataObject):
object_id = object_id.get_id()
if not any((project_id, field)):
return {'$dnanexus_link': object_id}
elif field:
dxpy.verify_string_dxid(object_id, "job")
return {'$dnanexus_link': {'job': object_id, 'field': field}}
else:
return {'$dnanexus_link': {'project': project_id, 'id': object_id}}
|
python
|
def dxlink(object_id, project_id=None, field=None):
'''
:param object_id: Object ID or the object handler itself
:type object_id: string or :class:`~dxpy.bindings.DXDataObject`
:param project_id: A project ID, if creating a cross-project DXLink
:type project_id: string
:param field: A field name, if creating a job-based object reference
:type field: string
:returns: A dict formatted as a symbolic DNAnexus object reference
:rtype: dict
Creates a DXLink to the specified object.
If `object_id` is already a link, it is returned without modification.
If `object_id is a `~dxpy.bindings.DXDataObject`, the object ID is
retrieved via its `get_id()` method.
If `field` is not `None`, `object_id` is expected to be of class 'job'
and the link created is a Job Based Object Reference (JBOR), which is
of the form::
{'$dnanexus_link': {'job': object_id, 'field': field}}
If `field` is `None` and `project_id` is not `None`, the link created
is a project-specific link of the form::
{'$dnanexus_link': {'project': project_id, 'id': object_id}}
'''
if is_dxlink(object_id):
return object_id
if isinstance(object_id, DXDataObject):
object_id = object_id.get_id()
if not any((project_id, field)):
return {'$dnanexus_link': object_id}
elif field:
dxpy.verify_string_dxid(object_id, "job")
return {'$dnanexus_link': {'job': object_id, 'field': field}}
else:
return {'$dnanexus_link': {'project': project_id, 'id': object_id}}
|
[
"def",
"dxlink",
"(",
"object_id",
",",
"project_id",
"=",
"None",
",",
"field",
"=",
"None",
")",
":",
"if",
"is_dxlink",
"(",
"object_id",
")",
":",
"return",
"object_id",
"if",
"isinstance",
"(",
"object_id",
",",
"DXDataObject",
")",
":",
"object_id",
"=",
"object_id",
".",
"get_id",
"(",
")",
"if",
"not",
"any",
"(",
"(",
"project_id",
",",
"field",
")",
")",
":",
"return",
"{",
"'$dnanexus_link'",
":",
"object_id",
"}",
"elif",
"field",
":",
"dxpy",
".",
"verify_string_dxid",
"(",
"object_id",
",",
"\"job\"",
")",
"return",
"{",
"'$dnanexus_link'",
":",
"{",
"'job'",
":",
"object_id",
",",
"'field'",
":",
"field",
"}",
"}",
"else",
":",
"return",
"{",
"'$dnanexus_link'",
":",
"{",
"'project'",
":",
"project_id",
",",
"'id'",
":",
"object_id",
"}",
"}"
] |
:param object_id: Object ID or the object handler itself
:type object_id: string or :class:`~dxpy.bindings.DXDataObject`
:param project_id: A project ID, if creating a cross-project DXLink
:type project_id: string
:param field: A field name, if creating a job-based object reference
:type field: string
:returns: A dict formatted as a symbolic DNAnexus object reference
:rtype: dict
Creates a DXLink to the specified object.
If `object_id` is already a link, it is returned without modification.
If `object_id is a `~dxpy.bindings.DXDataObject`, the object ID is
retrieved via its `get_id()` method.
If `field` is not `None`, `object_id` is expected to be of class 'job'
and the link created is a Job Based Object Reference (JBOR), which is
of the form::
{'$dnanexus_link': {'job': object_id, 'field': field}}
If `field` is `None` and `project_id` is not `None`, the link created
is a project-specific link of the form::
{'$dnanexus_link': {'project': project_id, 'id': object_id}}
|
[
":",
"param",
"object_id",
":",
"Object",
"ID",
"or",
"the",
"object",
"handler",
"itself",
":",
"type",
"object_id",
":",
"string",
"or",
":",
"class",
":",
"~dxpy",
".",
"bindings",
".",
"DXDataObject",
":",
"param",
"project_id",
":",
"A",
"project",
"ID",
"if",
"creating",
"a",
"cross",
"-",
"project",
"DXLink",
":",
"type",
"project_id",
":",
"string",
":",
"param",
"field",
":",
"A",
"field",
"name",
"if",
"creating",
"a",
"job",
"-",
"based",
"object",
"reference",
":",
"type",
"field",
":",
"string",
":",
"returns",
":",
"A",
"dict",
"formatted",
"as",
"a",
"symbolic",
"DNAnexus",
"object",
"reference",
":",
"rtype",
":",
"dict"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxdataobject_functions.py#L37-L76
|
train
|
Returns a dict formatted as a symbolic DNAnexus object reference.
|
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,REazVyvp6OI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O,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__
ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x33' + '\x32' + chr(0b1 + 0o62), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + '\062' + chr(251 - 203) + chr(53), 0b1000), nzTpIcepk0o8(chr(1930 - 1882) + '\157' + chr(1987 - 1937) + chr(0b11011 + 0o32) + '\x31', 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(2343 - 2294) + chr(51) + chr(0b110101), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + '\x31' + chr(350 - 296) + '\x31', ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(50) + chr(0b110101) + chr(0b101000 + 0o17), 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110100) + chr(2184 - 2134), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x36' + chr(48), 0b1000), nzTpIcepk0o8(chr(1910 - 1862) + chr(0b1101111) + chr(0b110001) + chr(53), ord("\x08")), nzTpIcepk0o8(chr(1896 - 1848) + chr(0b1101111) + chr(0b110 + 0o55) + chr(53) + chr(2540 - 2489), 0b1000), nzTpIcepk0o8('\060' + chr(111) + '\064' + chr(55), 50783 - 50775), nzTpIcepk0o8(chr(48) + '\157' + chr(1524 - 1473) + '\x30' + chr(0b110010), 0o10), nzTpIcepk0o8(chr(0b100000 + 0o20) + '\157' + chr(0b110 + 0o54) + chr(0b1100 + 0o50) + '\062', ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(49) + chr(442 - 394) + chr(204 - 153), 0b1000), nzTpIcepk0o8('\x30' + chr(5792 - 5681) + '\x33' + chr(0b110 + 0o56) + '\062', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x33' + chr(54) + chr(1694 - 1641), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(49) + '\x34' + chr(0b110101), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\063' + chr(0b110100) + chr(0b101111 + 0o1), 46145 - 46137), nzTpIcepk0o8('\060' + chr(111) + '\x32' + '\060' + chr(48), 0o10), nzTpIcepk0o8(chr(0b100110 + 0o12) + chr(0b1101111) + '\x32' + chr(0b110011) + chr(0b101 + 0o53), 0o10), nzTpIcepk0o8(chr(0b10101 + 0o33) + chr(0b10011 + 0o134) + '\061' + chr(49) + chr(53), 47176 - 47168), nzTpIcepk0o8('\060' + chr(0b1101111) + '\063' + '\x35' + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x33' + chr(0b110 + 0o61) + '\064', 0b1000), nzTpIcepk0o8(chr(0b10001 + 0o37) + '\157' + chr(0b110011) + chr(0b110001) + chr(2544 - 2492), 24122 - 24114), nzTpIcepk0o8('\060' + '\x6f' + '\x32' + chr(0b110110) + '\x35', 0b1000), nzTpIcepk0o8(chr(0b11000 + 0o30) + '\x6f' + '\x31' + chr(1893 - 1840) + chr(2197 - 2148), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b10110 + 0o33) + '\060' + chr(53), 7529 - 7521), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110010) + chr(2372 - 2323) + chr(1877 - 1826), 35184 - 35176), nzTpIcepk0o8(chr(369 - 321) + chr(0b1101111) + '\062' + chr(0b110001 + 0o1) + chr(2280 - 2226), 0b1000), nzTpIcepk0o8('\x30' + '\157' + '\x32' + chr(0b1111 + 0o50) + '\x36', ord("\x08")), nzTpIcepk0o8(chr(0b10000 + 0o40) + '\x6f' + '\062' + '\067' + chr(2799 - 2744), 0o10), nzTpIcepk0o8(chr(0b101101 + 0o3) + chr(0b1110 + 0o141) + '\x32' + '\064' + chr(51), 46528 - 46520), nzTpIcepk0o8('\x30' + '\x6f' + '\062' + chr(0b110111), ord("\x08")), nzTpIcepk0o8(chr(0b1111 + 0o41) + chr(0b1101111) + chr(54), 0o10), nzTpIcepk0o8('\060' + '\157' + chr(0b11010 + 0o27) + '\066' + chr(2441 - 2388), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(867 - 817) + '\067' + chr(51), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101100 + 0o3) + chr(0b110010 + 0o0) + chr(0b110001) + '\x36', 58633 - 58625), nzTpIcepk0o8('\x30' + chr(6940 - 6829) + chr(0b110001) + chr(1871 - 1821) + '\x32', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1010100 + 0o33) + chr(922 - 872) + '\060' + chr(0b110000), 8), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(160 - 106) + '\x32', 26203 - 26195)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b1111 + 0o41) + chr(3283 - 3172) + chr(53) + '\x30', 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xfd'), '\144' + chr(101) + chr(0b1100011) + '\157' + chr(0b1000110 + 0o36) + '\145')(chr(117) + '\x74' + chr(0b1011100 + 0o12) + chr(45) + chr(0b11100 + 0o34)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def Hjp_0tmYOYvj(rnbcGJmmyWa9, vHKdDCuCDKCU=None, uF4zwjUGNIxR=None):
if Ks3IgO_hjqvX(rnbcGJmmyWa9):
return rnbcGJmmyWa9
if suIjIS24Zkqw(rnbcGJmmyWa9, uY6D96bz1TDe):
rnbcGJmmyWa9 = rnbcGJmmyWa9.nkTncJcFPliW()
if not VF4pKOObtlPc((vHKdDCuCDKCU, uF4zwjUGNIxR)):
return {roI3spqORKae(ES5oEprVxulp(b'\xf7\xe1\xc7<\x1f\xcaZE~\xb4K\xab\xcc('), '\x64' + '\x65' + chr(5733 - 5634) + chr(0b1101111) + '\x64' + chr(0b1100101))(chr(0b1011101 + 0o30) + chr(9840 - 9724) + chr(0b111111 + 0o47) + chr(0b100000 + 0o15) + chr(56)): rnbcGJmmyWa9}
elif uF4zwjUGNIxR:
roI3spqORKae(SsdNdRxXOwsF, roI3spqORKae(ES5oEprVxulp(b'\xa5\xe0\xdb4\x17\xd6}Cy\x99N\xac\xc5\x1c\x86\x8d\x0c\x84'), chr(100) + '\145' + chr(0b1100010 + 0o1) + chr(2241 - 2130) + '\x64' + chr(0b1000 + 0o135))(chr(2710 - 2593) + '\164' + '\146' + chr(1207 - 1162) + chr(56)))(rnbcGJmmyWa9, roI3spqORKae(ES5oEprVxulp(b'\xb9\xea\xcb'), chr(0b1100100) + chr(0b1100101) + '\x63' + chr(111) + chr(100) + chr(5414 - 5313))('\x75' + chr(10490 - 10374) + chr(0b1100110) + chr(0b101101) + '\070'))
return {roI3spqORKae(ES5oEprVxulp(b'\xf7\xe1\xc7<\x1f\xcaZE~\xb4K\xab\xcc('), chr(0b1100100) + chr(0b1100101) + chr(99) + '\x6f' + '\144' + '\x65')('\165' + '\164' + '\x66' + chr(1148 - 1103) + '\x38'): {roI3spqORKae(ES5oEprVxulp(b'\xb9\xea\xcb'), '\144' + chr(0b101110 + 0o67) + '\143' + chr(0b1101001 + 0o6) + chr(0b1100100) + chr(0b1100101))(chr(3414 - 3297) + chr(116) + chr(0b10100 + 0o122) + chr(1170 - 1125) + chr(0b111000)): rnbcGJmmyWa9, roI3spqORKae(ES5oEprVxulp(b'\xb5\xec\xcc1\x15'), chr(0b10011 + 0o121) + chr(2014 - 1913) + '\x63' + chr(0b1101001 + 0o6) + chr(0b10101 + 0o117) + chr(0b1100101))('\x75' + '\x74' + chr(8993 - 8891) + '\055' + '\x38'): uF4zwjUGNIxR}}
else:
return {roI3spqORKae(ES5oEprVxulp(b'\xf7\xe1\xc7<\x1f\xcaZE~\xb4K\xab\xcc('), chr(0b1100100) + chr(101) + '\x63' + chr(2704 - 2593) + chr(100) + chr(101))('\165' + '\164' + '\x66' + chr(0b101101) + chr(56)): {roI3spqORKae(ES5oEprVxulp(b'\xa3\xf7\xc67\x14\xccV'), chr(100) + chr(0b111100 + 0o51) + chr(99) + chr(0b1101111) + chr(0b1100100) + chr(0b1100101))('\x75' + '\164' + '\146' + chr(0b101101) + chr(0b111000)): vHKdDCuCDKCU, roI3spqORKae(ES5oEprVxulp(b'\xba\xe1'), '\144' + '\145' + '\143' + chr(0b100001 + 0o116) + chr(0b1100100) + '\145')(chr(0b1000000 + 0o65) + '\164' + '\146' + '\x2d' + '\070'): rnbcGJmmyWa9}}
|
dnanexus/dx-toolkit
|
src/python/dxpy/bindings/dxdataobject_functions.py
|
is_dxlink
|
def is_dxlink(x):
'''
:param x: A potential DNAnexus link
Returns whether *x* appears to be a DNAnexus link (is a dict with
key ``"$dnanexus_link"``) with a referenced data object.
'''
if not isinstance(x, dict):
return False
if '$dnanexus_link' not in x:
return False
link = x['$dnanexus_link']
if isinstance(link, basestring):
return True
elif isinstance(link, dict):
return any(key in link for key in ('id', 'job'))
return False
|
python
|
def is_dxlink(x):
'''
:param x: A potential DNAnexus link
Returns whether *x* appears to be a DNAnexus link (is a dict with
key ``"$dnanexus_link"``) with a referenced data object.
'''
if not isinstance(x, dict):
return False
if '$dnanexus_link' not in x:
return False
link = x['$dnanexus_link']
if isinstance(link, basestring):
return True
elif isinstance(link, dict):
return any(key in link for key in ('id', 'job'))
return False
|
[
"def",
"is_dxlink",
"(",
"x",
")",
":",
"if",
"not",
"isinstance",
"(",
"x",
",",
"dict",
")",
":",
"return",
"False",
"if",
"'$dnanexus_link'",
"not",
"in",
"x",
":",
"return",
"False",
"link",
"=",
"x",
"[",
"'$dnanexus_link'",
"]",
"if",
"isinstance",
"(",
"link",
",",
"basestring",
")",
":",
"return",
"True",
"elif",
"isinstance",
"(",
"link",
",",
"dict",
")",
":",
"return",
"any",
"(",
"key",
"in",
"link",
"for",
"key",
"in",
"(",
"'id'",
",",
"'job'",
")",
")",
"return",
"False"
] |
:param x: A potential DNAnexus link
Returns whether *x* appears to be a DNAnexus link (is a dict with
key ``"$dnanexus_link"``) with a referenced data object.
|
[
":",
"param",
"x",
":",
"A",
"potential",
"DNAnexus",
"link"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxdataobject_functions.py#L78-L94
|
train
|
Returns True if x is a DNAnexus link.
|
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,K3alqetB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2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__
ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(48) + '\x6f' + chr(51) + '\x32' + '\061', ord("\x08")), nzTpIcepk0o8(chr(0b11111 + 0o21) + chr(0b1101111) + '\065', 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(0b100001 + 0o21) + chr(0b110110) + '\x33', ord("\x08")), nzTpIcepk0o8(chr(81 - 33) + chr(0b1101111) + chr(51) + chr(48) + '\060', 0o10), nzTpIcepk0o8(chr(0b11001 + 0o27) + chr(2280 - 2169) + '\061' + chr(0b110001) + '\061', ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + '\x32' + chr(54) + chr(2114 - 2062), 0o10), nzTpIcepk0o8('\x30' + chr(3131 - 3020) + chr(2326 - 2275) + '\x37' + chr(0b110110), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(3912 - 3801) + chr(51) + chr(1249 - 1198), 0b1000), nzTpIcepk0o8(chr(1600 - 1552) + chr(9245 - 9134) + chr(0b101011 + 0o7) + chr(0b100001 + 0o26) + chr(0b110001 + 0o0), 0o10), nzTpIcepk0o8(chr(238 - 190) + '\x6f' + '\x34' + chr(54), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110001) + chr(0b1000 + 0o54) + chr(0b110011), 35742 - 35734), nzTpIcepk0o8(chr(341 - 293) + chr(0b1101111) + chr(0b110 + 0o53) + chr(50) + '\065', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(50) + '\x36', 5302 - 5294), nzTpIcepk0o8(chr(0b10001 + 0o37) + chr(0b11 + 0o154) + chr(381 - 331) + '\064' + chr(0b11110 + 0o31), 26677 - 26669), nzTpIcepk0o8('\060' + chr(111) + chr(0b110011) + chr(53) + chr(0b1000 + 0o52), ord("\x08")), nzTpIcepk0o8(chr(0b10 + 0o56) + chr(0b1000111 + 0o50) + '\062' + '\x37' + chr(0b110001), 8), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b10001 + 0o42) + chr(0b101010 + 0o12) + '\062', 0o10), nzTpIcepk0o8(chr(1589 - 1541) + '\157' + '\x33' + chr(51) + '\064', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x33' + chr(0b110100) + chr(0b11010 + 0o27), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b110110 + 0o71) + chr(49) + chr(182 - 127) + '\x32', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\064' + chr(51), 29617 - 29609), nzTpIcepk0o8(chr(48) + '\x6f' + chr(50) + '\x36' + chr(55), 421 - 413), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110001) + '\x37' + '\x37', 34088 - 34080), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b1 + 0o60) + '\065' + chr(48), 0o10), nzTpIcepk0o8('\060' + chr(762 - 651) + chr(0b110001) + '\x36' + chr(48), 53256 - 53248), nzTpIcepk0o8('\x30' + '\x6f' + '\x36' + '\x31', 0b1000), nzTpIcepk0o8(chr(2051 - 2003) + '\157' + chr(0b110010) + chr(55) + chr(0b10101 + 0o34), 8), nzTpIcepk0o8(chr(48) + chr(111) + '\x31' + '\065', 40692 - 40684), nzTpIcepk0o8('\x30' + chr(0b10101 + 0o132) + chr(0b0 + 0o62) + '\x36' + '\x33', 8), nzTpIcepk0o8('\x30' + '\157' + chr(0b101010 + 0o10) + chr(0b110100), 0o10), nzTpIcepk0o8('\x30' + chr(6338 - 6227) + chr(0b11100 + 0o26) + chr(778 - 730) + '\061', 0b1000), nzTpIcepk0o8(chr(0b101100 + 0o4) + '\157' + chr(564 - 514) + chr(308 - 255), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110011) + chr(0b11001 + 0o36), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110001) + chr(51) + chr(53), 55077 - 55069), nzTpIcepk0o8(chr(1899 - 1851) + chr(10407 - 10296) + chr(0b110011) + '\063' + chr(0b110010), 0b1000), nzTpIcepk0o8('\x30' + chr(1849 - 1738) + chr(0b110101) + '\065', 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + '\061' + '\065' + chr(0b100101 + 0o15), 39191 - 39183), nzTpIcepk0o8('\060' + chr(468 - 357) + '\063' + '\x30' + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(1019 - 971) + '\x6f' + '\x33' + '\065' + chr(0b110001), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110100) + chr(0b110010), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x35' + '\060', 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xff'), chr(0b1100100) + '\x65' + '\143' + chr(111) + chr(0b1010101 + 0o17) + '\x65')(chr(0b101100 + 0o111) + '\x74' + chr(102) + '\x2d' + '\070') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def Ks3IgO_hjqvX(bI5jsQ9OkQtj):
if not suIjIS24Zkqw(bI5jsQ9OkQtj, znjnJWK64FDT):
return nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(48), 0o10)
if roI3spqORKae(ES5oEprVxulp(b"\xf5a\xdd\xa1'\xd1\x86n\xcay\x0f<x\xcc"), chr(0b1100100) + chr(7110 - 7009) + chr(1352 - 1253) + '\157' + chr(0b1100100) + chr(757 - 656))(chr(0b1001011 + 0o52) + chr(116) + '\146' + chr(0b101101) + chr(56)) not in bI5jsQ9OkQtj:
return nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x30', 8)
QA8TZurzG25Z = bI5jsQ9OkQtj[roI3spqORKae(ES5oEprVxulp(b"\xf5a\xdd\xa1'\xd1\x86n\xcay\x0f<x\xcc"), chr(0b1100100) + '\145' + chr(3880 - 3781) + '\x6f' + chr(100) + '\145')('\165' + '\x74' + chr(102) + '\055' + chr(0b11010 + 0o36))]
if suIjIS24Zkqw(QA8TZurzG25Z, JaQstSroDWOP):
return nzTpIcepk0o8(chr(48) + chr(111) + chr(0b11100 + 0o25), 0b1000)
elif suIjIS24Zkqw(QA8TZurzG25Z, znjnJWK64FDT):
return VF4pKOObtlPc((QYodcsDtoGq7 in QA8TZurzG25Z for QYodcsDtoGq7 in (roI3spqORKae(ES5oEprVxulp(b'\xb8a'), chr(0b1100100) + '\x65' + chr(99) + chr(0b1101111) + chr(0b1100100) + '\x65')(chr(0b1110101) + '\164' + chr(0b1100110) + chr(1244 - 1199) + chr(0b111000)), roI3spqORKae(ES5oEprVxulp(b'\xbbj\xd1'), chr(0b10111 + 0o115) + chr(0b1100101) + chr(99) + '\x6f' + '\x64' + chr(0b110001 + 0o64))('\165' + '\164' + chr(0b100010 + 0o104) + chr(534 - 489) + chr(0b111000)))))
return nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110000), 8)
|
dnanexus/dx-toolkit
|
src/python/dxpy/bindings/dxdataobject_functions.py
|
get_dxlink_ids
|
def get_dxlink_ids(link):
'''
:param link: A DNAnexus link
:type link: dict
:returns: (Object ID, Project ID) if the link is to a data object (or :const:`None`
if no project specified in the link), or (Job ID, Field) if the link is
a job-based object reference (JBOR).
:rtype: tuple
Get the object ID and detail from a link. There are three types of links:
* Simple link of the form ``{"$dnanexus_link": "file-XXXX"}`` returns
``("file-XXXX", None)``.
* Data object link of the form ``{"$dnanexus_link': {"id": "file-XXXX",
"project": "project-XXXX"}}`` returns ``("file-XXXX", "project-XXXX")``.
* Job-based object reference (JBOR) of the form ``{"$dnanexus_link":
{"job": "job-XXXX", "field": "foo"}}`` returns ``("job-XXXX", "foo")``.
'''
if not is_dxlink(link):
raise DXError('Invalid link: %r' % link)
if isinstance(link['$dnanexus_link'], basestring):
return link['$dnanexus_link'], None
elif 'id' in link['$dnanexus_link']:
return link['$dnanexus_link']['id'], link['$dnanexus_link'].get('project')
else:
return link['$dnanexus_link']['job'], link['$dnanexus_link']['field']
|
python
|
def get_dxlink_ids(link):
'''
:param link: A DNAnexus link
:type link: dict
:returns: (Object ID, Project ID) if the link is to a data object (or :const:`None`
if no project specified in the link), or (Job ID, Field) if the link is
a job-based object reference (JBOR).
:rtype: tuple
Get the object ID and detail from a link. There are three types of links:
* Simple link of the form ``{"$dnanexus_link": "file-XXXX"}`` returns
``("file-XXXX", None)``.
* Data object link of the form ``{"$dnanexus_link': {"id": "file-XXXX",
"project": "project-XXXX"}}`` returns ``("file-XXXX", "project-XXXX")``.
* Job-based object reference (JBOR) of the form ``{"$dnanexus_link":
{"job": "job-XXXX", "field": "foo"}}`` returns ``("job-XXXX", "foo")``.
'''
if not is_dxlink(link):
raise DXError('Invalid link: %r' % link)
if isinstance(link['$dnanexus_link'], basestring):
return link['$dnanexus_link'], None
elif 'id' in link['$dnanexus_link']:
return link['$dnanexus_link']['id'], link['$dnanexus_link'].get('project')
else:
return link['$dnanexus_link']['job'], link['$dnanexus_link']['field']
|
[
"def",
"get_dxlink_ids",
"(",
"link",
")",
":",
"if",
"not",
"is_dxlink",
"(",
"link",
")",
":",
"raise",
"DXError",
"(",
"'Invalid link: %r'",
"%",
"link",
")",
"if",
"isinstance",
"(",
"link",
"[",
"'$dnanexus_link'",
"]",
",",
"basestring",
")",
":",
"return",
"link",
"[",
"'$dnanexus_link'",
"]",
",",
"None",
"elif",
"'id'",
"in",
"link",
"[",
"'$dnanexus_link'",
"]",
":",
"return",
"link",
"[",
"'$dnanexus_link'",
"]",
"[",
"'id'",
"]",
",",
"link",
"[",
"'$dnanexus_link'",
"]",
".",
"get",
"(",
"'project'",
")",
"else",
":",
"return",
"link",
"[",
"'$dnanexus_link'",
"]",
"[",
"'job'",
"]",
",",
"link",
"[",
"'$dnanexus_link'",
"]",
"[",
"'field'",
"]"
] |
:param link: A DNAnexus link
:type link: dict
:returns: (Object ID, Project ID) if the link is to a data object (or :const:`None`
if no project specified in the link), or (Job ID, Field) if the link is
a job-based object reference (JBOR).
:rtype: tuple
Get the object ID and detail from a link. There are three types of links:
* Simple link of the form ``{"$dnanexus_link": "file-XXXX"}`` returns
``("file-XXXX", None)``.
* Data object link of the form ``{"$dnanexus_link': {"id": "file-XXXX",
"project": "project-XXXX"}}`` returns ``("file-XXXX", "project-XXXX")``.
* Job-based object reference (JBOR) of the form ``{"$dnanexus_link":
{"job": "job-XXXX", "field": "foo"}}`` returns ``("job-XXXX", "foo")``.
|
[
":",
"param",
"link",
":",
"A",
"DNAnexus",
"link",
":",
"type",
"link",
":",
"dict",
":",
"returns",
":",
"(",
"Object",
"ID",
"Project",
"ID",
")",
"if",
"the",
"link",
"is",
"to",
"a",
"data",
"object",
"(",
"or",
":",
"const",
":",
"None",
"if",
"no",
"project",
"specified",
"in",
"the",
"link",
")",
"or",
"(",
"Job",
"ID",
"Field",
")",
"if",
"the",
"link",
"is",
"a",
"job",
"-",
"based",
"object",
"reference",
"(",
"JBOR",
")",
".",
":",
"rtype",
":",
"tuple"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxdataobject_functions.py#L96-L121
|
train
|
Get the object ID and project ID from a DNXLink object.
|
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdI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,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__
ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110001) + chr(0b110010) + chr(48), ord("\x08")), nzTpIcepk0o8(chr(0b1001 + 0o47) + chr(0b1001010 + 0o45) + '\x32' + chr(2355 - 2304) + chr(1843 - 1794), 0b1000), nzTpIcepk0o8(chr(2079 - 2031) + '\157' + chr(0b110011) + chr(0b110111), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + '\063' + chr(1483 - 1434) + '\x35', 0o10), nzTpIcepk0o8('\x30' + chr(0b11111 + 0o120) + chr(0b110011) + chr(48) + chr(0b110101), ord("\x08")), nzTpIcepk0o8(chr(0b101000 + 0o10) + chr(0b1101101 + 0o2) + '\063' + chr(0b110000 + 0o3) + '\x33', 6317 - 6309), nzTpIcepk0o8('\x30' + chr(111) + chr(1285 - 1236) + '\x31', 0o10), nzTpIcepk0o8(chr(48) + chr(111) + '\x31' + chr(51) + chr(2069 - 2021), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + '\063' + chr(111 - 60) + chr(0b10101 + 0o37), 10145 - 10137), nzTpIcepk0o8(chr(48) + chr(1511 - 1400) + chr(0b110011) + chr(0b110000) + '\067', ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(1610 - 1559) + chr(2218 - 2166) + '\066', 0b1000), nzTpIcepk0o8('\060' + '\x6f' + '\062' + chr(50) + chr(455 - 400), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b1001 + 0o52) + chr(0b1010 + 0o53) + chr(0b110001), 44496 - 44488), nzTpIcepk0o8('\060' + chr(111) + chr(710 - 659) + '\x32' + chr(0b11010 + 0o30), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(7282 - 7171) + chr(0b110011) + chr(0b110100) + '\063', 0b1000), nzTpIcepk0o8(chr(48) + chr(3376 - 3265) + '\x31' + chr(0b110101) + chr(48), 17315 - 17307), nzTpIcepk0o8('\x30' + '\157' + '\x33' + chr(0b101100 + 0o4) + chr(48), 0o10), nzTpIcepk0o8(chr(306 - 258) + '\x6f' + chr(55) + chr(0b110111), 29004 - 28996), nzTpIcepk0o8(chr(0b11111 + 0o21) + chr(0b1101111) + '\x32' + '\x30' + '\061', ord("\x08")), nzTpIcepk0o8(chr(0b100100 + 0o14) + chr(0b1100000 + 0o17) + chr(0b110111) + '\067', 8), nzTpIcepk0o8('\x30' + chr(9069 - 8958) + '\x35' + chr(55), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(49), 25339 - 25331), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110010) + chr(0b110100) + chr(2417 - 2366), 0o10), nzTpIcepk0o8(chr(1862 - 1814) + '\x6f' + chr(51) + chr(779 - 730) + chr(54), 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(0b11010 + 0o31) + chr(0b110100) + chr(0b110010), 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110010) + chr(52) + chr(0b101101 + 0o10), 0b1000), nzTpIcepk0o8(chr(821 - 773) + chr(111) + chr(0b101101 + 0o5) + chr(0b11001 + 0o30), 65345 - 65337), nzTpIcepk0o8('\060' + '\157' + chr(0b110000), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + '\x32' + '\x30' + chr(0b100100 + 0o22), 18185 - 18177), nzTpIcepk0o8(chr(1760 - 1712) + chr(0b1100011 + 0o14) + '\x31' + chr(0b101001 + 0o7), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110010) + '\x36' + chr(1141 - 1087), 0o10), nzTpIcepk0o8('\060' + '\157' + chr(396 - 345) + chr(0b101010 + 0o10) + '\066', 55075 - 55067), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(51) + chr(0b101000 + 0o12) + '\060', 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + '\062' + chr(48) + chr(1181 - 1130), 0b1000), nzTpIcepk0o8(chr(0b101100 + 0o4) + chr(0b1101111) + chr(51) + chr(2019 - 1969) + '\x37', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(51) + '\x32' + chr(48), 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(51) + chr(0b100110 + 0o17) + '\065', 42573 - 42565), nzTpIcepk0o8(chr(0b10 + 0o56) + chr(111) + chr(51) + '\x35' + chr(0b10111 + 0o37), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b11010 + 0o31) + chr(1589 - 1534) + chr(0b110 + 0o56), 29114 - 29106), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(215 - 164) + chr(0b110000) + chr(0b110011), 30028 - 30020)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(1710 - 1662) + '\157' + '\x35' + chr(1645 - 1597), ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'~'), chr(0b1100100) + chr(101) + chr(0b10110 + 0o115) + chr(3744 - 3633) + chr(0b101100 + 0o70) + '\x65')(chr(6094 - 5977) + '\164' + chr(102) + chr(1153 - 1108) + chr(0b110110 + 0o2)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def P42BNw5zahrr(QA8TZurzG25Z):
if not Ks3IgO_hjqvX(QA8TZurzG25Z):
raise JPU16lJ2koBU(roI3spqORKae(ES5oEprVxulp(b'\x19\xf7i\xac\xa9\xb2mx\xb0\xae\x88\xfc\xd3\xf2\xc6\x1a'), '\x64' + chr(0b10101 + 0o120) + '\x63' + chr(0b1101000 + 0o7) + chr(1335 - 1235) + '\145')('\x75' + chr(0b1001111 + 0o45) + chr(1022 - 920) + chr(45) + '\x38') % QA8TZurzG25Z)
if suIjIS24Zkqw(QA8TZurzG25Z[roI3spqORKae(ES5oEprVxulp(b't\xfdq\xac\xab\xbeq-\xaf\x98\x8a\xfe\x87\xb9'), chr(100) + chr(1581 - 1480) + chr(99) + chr(111) + '\144' + '\x65')('\x75' + '\164' + chr(3475 - 3373) + chr(0b101101) + chr(0b111000))], JaQstSroDWOP):
return (QA8TZurzG25Z[roI3spqORKae(ES5oEprVxulp(b't\xfdq\xac\xab\xbeq-\xaf\x98\x8a\xfe\x87\xb9'), chr(100) + '\x65' + chr(0b1100011) + chr(0b1101111) + '\144' + chr(7020 - 6919))('\165' + chr(116) + chr(102) + chr(0b1 + 0o54) + '\x38')], None)
elif roI3spqORKae(ES5oEprVxulp(b'9\xfd'), '\x64' + '\145' + '\143' + chr(0b110010 + 0o75) + '\x64' + chr(101))('\x75' + '\164' + chr(0b1100110) + '\x2d' + chr(0b111000)) in QA8TZurzG25Z[roI3spqORKae(ES5oEprVxulp(b't\xfdq\xac\xab\xbeq-\xaf\x98\x8a\xfe\x87\xb9'), chr(0b1100100) + chr(0b1100101) + '\143' + '\157' + chr(0b1000000 + 0o44) + '\145')(chr(117) + chr(4648 - 4532) + chr(0b1100110) + '\x2d' + '\x38')]:
return (QA8TZurzG25Z[roI3spqORKae(ES5oEprVxulp(b't\xfdq\xac\xab\xbeq-\xaf\x98\x8a\xfe\x87\xb9'), chr(0b1100100) + '\145' + chr(99) + chr(0b100010 + 0o115) + chr(3334 - 3234) + chr(101))('\165' + chr(116) + chr(0b1100110) + '\055' + chr(708 - 652))][roI3spqORKae(ES5oEprVxulp(b'9\xfd'), '\144' + chr(0b100110 + 0o77) + chr(99) + chr(0b1101110 + 0o1) + chr(100) + chr(0b1010 + 0o133))('\165' + chr(7788 - 7672) + chr(0b1100110) + chr(45) + '\x38')], roI3spqORKae(QA8TZurzG25Z[roI3spqORKae(ES5oEprVxulp(b't\xfdq\xac\xab\xbeq-\xaf\x98\x8a\xfe\x87\xb9'), chr(100) + chr(101) + chr(844 - 745) + chr(111) + chr(0b1100100) + chr(0b11101 + 0o110))(chr(117) + chr(9753 - 9637) + chr(0b1100110) + chr(0b11101 + 0o20) + chr(0b101010 + 0o16))], roI3spqORKae(ES5oEprVxulp(b'\x17\xccT\xa8\xb1\xae= \xbd\x80\x95\xdd'), chr(0b100100 + 0o100) + chr(0b1100101) + chr(0b1100011) + chr(1463 - 1352) + chr(0b1100100) + chr(101))(chr(0b10010 + 0o143) + '\164' + chr(0b1100110) + '\x2d' + '\070'))(roI3spqORKae(ES5oEprVxulp(b' \xebp\xa7\xa0\xb8}'), '\144' + '\145' + chr(0b1100011) + chr(0b1101111) + chr(0b110011 + 0o61) + chr(0b1000111 + 0o36))(chr(0b1010101 + 0o40) + chr(13046 - 12930) + '\x66' + chr(755 - 710) + chr(659 - 603))))
else:
return (QA8TZurzG25Z[roI3spqORKae(ES5oEprVxulp(b't\xfdq\xac\xab\xbeq-\xaf\x98\x8a\xfe\x87\xb9'), chr(100) + chr(0b1100101) + '\143' + chr(8498 - 8387) + '\x64' + chr(0b1100101))(chr(117) + chr(0b100010 + 0o122) + '\x66' + '\x2d' + '\x38')][roI3spqORKae(ES5oEprVxulp(b':\xf6}'), '\x64' + chr(101) + chr(0b1100011) + '\157' + chr(0b1100100) + chr(284 - 183))('\165' + '\164' + chr(6823 - 6721) + chr(0b11011 + 0o22) + chr(0b111000))], QA8TZurzG25Z[roI3spqORKae(ES5oEprVxulp(b't\xfdq\xac\xab\xbeq-\xaf\x98\x8a\xfe\x87\xb9'), chr(0b1100100) + chr(101) + chr(0b1111 + 0o124) + chr(111) + chr(1646 - 1546) + chr(0b11110 + 0o107))('\165' + chr(5937 - 5821) + '\146' + chr(0b101101) + '\x38')][roI3spqORKae(ES5oEprVxulp(b'6\xf0z\xa1\xa1'), chr(100) + chr(0b1100101) + '\x63' + chr(0b1101111) + chr(7324 - 7224) + chr(7383 - 7282))(chr(0b1110101) + chr(0b10100 + 0o140) + chr(102) + '\055' + chr(0b111000))])
|
dnanexus/dx-toolkit
|
src/python/dxpy/bindings/dxdataobject_functions.py
|
get_handler
|
def get_handler(id_or_link, project=None):
'''
:param id_or_link: String containing an object ID or dict containing a DXLink
:type id_or_link: string or dict
:param project: String project ID to use as the context if the the object is a data object
:type project: string
:rtype: :class:`~dxpy.bindings.DXObject`, :class:`~dxpy.bindings.DXApp`, or :class:`~dxpy.bindings.DXGlobalWorkflow`
Parses a string or DXLink dict. Creates and returns an object handler for it.
Example::
get_handler("file-1234")
'''
try:
cls = _guess_link_target_type(id_or_link)
except Exception as e:
raise DXError("Could not parse link {}: {}".format(id_or_link, e))
if cls in [dxpy.DXApp, dxpy.DXGlobalWorkflow]:
# This special case should translate identifiers of the form
# "app-name" or "app-name/version_or_tag" to the appropriate
# arguments
if dxpy.utils.resolver.is_hashid(id_or_link):
return cls(id_or_link)
else:
slash_pos = id_or_link.find('/')
dash_pos = id_or_link.find('-')
if slash_pos == -1:
return cls(name=id_or_link[dash_pos+1:])
else:
return cls(name=id_or_link[dash_pos+1:slash_pos],
alias=id_or_link[slash_pos + 1:])
elif project is None or cls in [dxpy.DXJob, dxpy.DXAnalysis, dxpy.DXProject, dxpy.DXContainer]:
# This case is important for the handlers which do not
# take a project field
return cls(id_or_link)
else:
return cls(id_or_link, project=project)
|
python
|
def get_handler(id_or_link, project=None):
'''
:param id_or_link: String containing an object ID or dict containing a DXLink
:type id_or_link: string or dict
:param project: String project ID to use as the context if the the object is a data object
:type project: string
:rtype: :class:`~dxpy.bindings.DXObject`, :class:`~dxpy.bindings.DXApp`, or :class:`~dxpy.bindings.DXGlobalWorkflow`
Parses a string or DXLink dict. Creates and returns an object handler for it.
Example::
get_handler("file-1234")
'''
try:
cls = _guess_link_target_type(id_or_link)
except Exception as e:
raise DXError("Could not parse link {}: {}".format(id_or_link, e))
if cls in [dxpy.DXApp, dxpy.DXGlobalWorkflow]:
# This special case should translate identifiers of the form
# "app-name" or "app-name/version_or_tag" to the appropriate
# arguments
if dxpy.utils.resolver.is_hashid(id_or_link):
return cls(id_or_link)
else:
slash_pos = id_or_link.find('/')
dash_pos = id_or_link.find('-')
if slash_pos == -1:
return cls(name=id_or_link[dash_pos+1:])
else:
return cls(name=id_or_link[dash_pos+1:slash_pos],
alias=id_or_link[slash_pos + 1:])
elif project is None or cls in [dxpy.DXJob, dxpy.DXAnalysis, dxpy.DXProject, dxpy.DXContainer]:
# This case is important for the handlers which do not
# take a project field
return cls(id_or_link)
else:
return cls(id_or_link, project=project)
|
[
"def",
"get_handler",
"(",
"id_or_link",
",",
"project",
"=",
"None",
")",
":",
"try",
":",
"cls",
"=",
"_guess_link_target_type",
"(",
"id_or_link",
")",
"except",
"Exception",
"as",
"e",
":",
"raise",
"DXError",
"(",
"\"Could not parse link {}: {}\"",
".",
"format",
"(",
"id_or_link",
",",
"e",
")",
")",
"if",
"cls",
"in",
"[",
"dxpy",
".",
"DXApp",
",",
"dxpy",
".",
"DXGlobalWorkflow",
"]",
":",
"# This special case should translate identifiers of the form",
"# \"app-name\" or \"app-name/version_or_tag\" to the appropriate",
"# arguments",
"if",
"dxpy",
".",
"utils",
".",
"resolver",
".",
"is_hashid",
"(",
"id_or_link",
")",
":",
"return",
"cls",
"(",
"id_or_link",
")",
"else",
":",
"slash_pos",
"=",
"id_or_link",
".",
"find",
"(",
"'/'",
")",
"dash_pos",
"=",
"id_or_link",
".",
"find",
"(",
"'-'",
")",
"if",
"slash_pos",
"==",
"-",
"1",
":",
"return",
"cls",
"(",
"name",
"=",
"id_or_link",
"[",
"dash_pos",
"+",
"1",
":",
"]",
")",
"else",
":",
"return",
"cls",
"(",
"name",
"=",
"id_or_link",
"[",
"dash_pos",
"+",
"1",
":",
"slash_pos",
"]",
",",
"alias",
"=",
"id_or_link",
"[",
"slash_pos",
"+",
"1",
":",
"]",
")",
"elif",
"project",
"is",
"None",
"or",
"cls",
"in",
"[",
"dxpy",
".",
"DXJob",
",",
"dxpy",
".",
"DXAnalysis",
",",
"dxpy",
".",
"DXProject",
",",
"dxpy",
".",
"DXContainer",
"]",
":",
"# This case is important for the handlers which do not",
"# take a project field",
"return",
"cls",
"(",
"id_or_link",
")",
"else",
":",
"return",
"cls",
"(",
"id_or_link",
",",
"project",
"=",
"project",
")"
] |
:param id_or_link: String containing an object ID or dict containing a DXLink
:type id_or_link: string or dict
:param project: String project ID to use as the context if the the object is a data object
:type project: string
:rtype: :class:`~dxpy.bindings.DXObject`, :class:`~dxpy.bindings.DXApp`, or :class:`~dxpy.bindings.DXGlobalWorkflow`
Parses a string or DXLink dict. Creates and returns an object handler for it.
Example::
get_handler("file-1234")
|
[
":",
"param",
"id_or_link",
":",
"String",
"containing",
"an",
"object",
"ID",
"or",
"dict",
"containing",
"a",
"DXLink",
":",
"type",
"id_or_link",
":",
"string",
"or",
"dict",
":",
"param",
"project",
":",
"String",
"project",
"ID",
"to",
"use",
"as",
"the",
"context",
"if",
"the",
"the",
"object",
"is",
"a",
"data",
"object",
":",
"type",
"project",
":",
"string",
":",
"rtype",
":",
":",
"class",
":",
"~dxpy",
".",
"bindings",
".",
"DXObject",
":",
"class",
":",
"~dxpy",
".",
"bindings",
".",
"DXApp",
"or",
":",
"class",
":",
"~dxpy",
".",
"bindings",
".",
"DXGlobalWorkflow"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxdataobject_functions.py#L136-L174
|
train
|
Returns an object handler for the object identified by id_or_link.
|
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,ej204HIOxzo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,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(0b111110 + 0o61) + '\062' + chr(1663 - 1611) + chr(54), ord("\x08")), nzTpIcepk0o8(chr(1292 - 1244) + chr(0b1101111) + '\064' + chr(52), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(53) + chr(316 - 267), 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(51) + chr(51) + chr(134 - 82), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b11101 + 0o122) + '\063' + chr(0b110000) + chr(50), 0b1000), nzTpIcepk0o8('\060' + '\157' + chr(2450 - 2399) + chr(0b110011) + chr(0b1101 + 0o52), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(2091 - 2042) + chr(0b110110) + '\x31', 62848 - 62840), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(49) + '\x36' + chr(763 - 712), 0o10), nzTpIcepk0o8('\060' + chr(0b10011 + 0o134) + chr(0b1010 + 0o51) + chr(0b110000), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(315 - 266) + chr(1295 - 1240) + '\x31', ord("\x08")), nzTpIcepk0o8(chr(0b100011 + 0o15) + chr(9535 - 9424) + chr(0b10 + 0o61) + chr(51) + chr(0b110000), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110011) + chr(0b110011) + chr(52), 8), nzTpIcepk0o8('\060' + chr(111) + chr(49) + chr(0b10010 + 0o37) + chr(1898 - 1848), 30950 - 30942), nzTpIcepk0o8(chr(937 - 889) + chr(111) + chr(1247 - 1197) + '\060' + chr(55), 18773 - 18765), nzTpIcepk0o8(chr(1231 - 1183) + '\x6f' + chr(1499 - 1449) + '\067' + chr(0b110100), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(51) + '\x37' + '\x35', 27173 - 27165), nzTpIcepk0o8('\060' + chr(0b1000101 + 0o52) + '\x33' + chr(0b110000 + 0o2) + '\x35', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(50) + '\x35' + chr(0b110000), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110110) + chr(1127 - 1076), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110001) + '\062' + chr(995 - 947), 0o10), nzTpIcepk0o8('\060' + chr(0b10100 + 0o133) + '\061' + '\067' + chr(0b110011), ord("\x08")), nzTpIcepk0o8(chr(0b100100 + 0o14) + chr(111) + chr(1488 - 1438) + '\x35' + '\065', ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + '\066' + chr(1190 - 1137), 0o10), nzTpIcepk0o8(chr(0b100011 + 0o15) + '\157' + chr(52), 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(49) + chr(616 - 568) + '\x31', ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(1106 - 1055) + '\x31' + chr(0b110010), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b10000 + 0o43) + chr(51) + '\067', 8), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b10010 + 0o37) + chr(53), ord("\x08")), nzTpIcepk0o8('\060' + chr(10444 - 10333) + chr(2134 - 2085) + '\063' + chr(0b110000), 0o10), nzTpIcepk0o8(chr(0b11100 + 0o24) + chr(111) + chr(0b11001 + 0o31) + chr(54) + chr(0b11 + 0o61), 5334 - 5326), nzTpIcepk0o8(chr(48) + chr(111) + chr(1279 - 1230) + chr(0b11100 + 0o27) + chr(212 - 161), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(49) + chr(0b110100) + chr(48), 0o10), nzTpIcepk0o8(chr(1641 - 1593) + chr(0b1101011 + 0o4) + '\061' + chr(384 - 334) + chr(0b10000 + 0o41), 1529 - 1521), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b101000 + 0o11) + chr(51) + chr(51), 8), nzTpIcepk0o8('\060' + chr(2432 - 2321) + chr(0b101001 + 0o15) + '\063', 8), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110010) + chr(0b110101) + chr(239 - 184), 0o10), nzTpIcepk0o8(chr(2275 - 2227) + '\157' + chr(51) + chr(0b101 + 0o54) + '\x34', 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(51) + chr(0b10011 + 0o36) + '\x30', 0o10), nzTpIcepk0o8(chr(1244 - 1196) + chr(0b1101111) + chr(0b101101 + 0o4) + '\063' + chr(54), 35691 - 35683), nzTpIcepk0o8(chr(0b110 + 0o52) + chr(1817 - 1706) + chr(49) + chr(0b110111) + '\x35', 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b101001 + 0o7) + chr(111) + '\065' + '\x30', 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x88'), chr(3164 - 3064) + chr(101) + chr(99) + '\x6f' + chr(100) + chr(0b11010 + 0o113))(chr(0b1110101) + chr(0b1001100 + 0o50) + chr(0b1100110) + chr(0b110 + 0o47) + '\x38') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def CTSMfYu2UehJ(e5Egg1JDUNBi, mcjejRq_Q0_k=None):
try:
_1vzISbJ_R2i = _kB2voHoB9xq(e5Egg1JDUNBi)
except zfo2Sgkz3IVJ as wgf0sgcu_xPL:
raise JPU16lJ2koBU(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\xe5K\\\xb0\xa6\xff\x1f\x1clY\xa8\xbd8\xf4\xd9\xdd\xb9\xc1];[\xd6H>a\xb1\xa2'), '\144' + chr(101) + '\143' + chr(0b1101111) + '\144' + '\x65')('\165' + '\x74' + chr(0b1100110) + '\x2d' + '\x38'), roI3spqORKae(ES5oEprVxulp(b'\xd7\x17\x1a\x97\x85\xec\x17\x1cI&\x9b\x96'), chr(0b1100100) + chr(0b101110 + 0o67) + chr(0b101010 + 0o71) + chr(0b1101111) + chr(100) + chr(0b100011 + 0o102))(chr(0b101110 + 0o107) + '\x74' + chr(8458 - 8356) + chr(0b10100 + 0o31) + '\x38'))(e5Egg1JDUNBi, wgf0sgcu_xPL))
if _1vzISbJ_R2i in [roI3spqORKae(SsdNdRxXOwsF, roI3spqORKae(ES5oEprVxulp(b'\xe2|h\xac\xb2'), '\x64' + '\x65' + chr(200 - 101) + chr(111) + '\x64' + chr(101))('\x75' + chr(0b1110100) + chr(0b110001 + 0o65) + chr(45) + chr(3101 - 3045))), roI3spqORKae(SsdNdRxXOwsF, roI3spqORKae(ES5oEprVxulp(b'\xe2|n\xb0\xad\xbd\x10\x1fO\x16\xaa\xb7,\xeb\xd3\x8a'), chr(0b1100100 + 0o0) + '\145' + chr(0b1010000 + 0o23) + chr(111) + chr(100) + chr(0b100001 + 0o104))('\165' + chr(116) + chr(0b1010 + 0o134) + chr(45) + chr(0b111000)))]:
if roI3spqORKae(SsdNdRxXOwsF.utils.resolver, roI3spqORKae(ES5oEprVxulp(b'\xcfWv\xb4\xa3\xac\x19\x1a|'), chr(100) + chr(0b1100101) + '\143' + chr(0b1000101 + 0o52) + chr(0b1100100) + '\x65')('\165' + chr(0b1010110 + 0o36) + chr(9601 - 9499) + chr(45) + chr(56)))(e5Egg1JDUNBi):
return _1vzISbJ_R2i(e5Egg1JDUNBi)
else:
UL_4SmXSLkFt = e5Egg1JDUNBi.mlLPzxww6J51(roI3spqORKae(ES5oEprVxulp(b'\x89'), chr(0b110011 + 0o61) + chr(0b1100101) + chr(7628 - 7529) + chr(0b1000010 + 0o55) + '\x64' + '\145')('\x75' + '\164' + chr(102) + chr(0b101101) + chr(56)))
AscU1jRncY3V = e5Egg1JDUNBi.mlLPzxww6J51(roI3spqORKae(ES5oEprVxulp(b'\x8b'), '\144' + '\145' + chr(99) + chr(2217 - 2106) + chr(0b1100100) + chr(682 - 581))('\x75' + chr(0b1101111 + 0o5) + chr(3469 - 3367) + '\055' + chr(56)))
if UL_4SmXSLkFt == -nzTpIcepk0o8(chr(0b110000) + '\157' + chr(49), 0o10):
return _1vzISbJ_R2i(name=e5Egg1JDUNBi[AscU1jRncY3V + nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x31', 8):])
else:
return _1vzISbJ_R2i(name=e5Egg1JDUNBi[AscU1jRncY3V + nzTpIcepk0o8(chr(0b110000) + '\157' + '\061', 8):UL_4SmXSLkFt], alias=e5Egg1JDUNBi[UL_4SmXSLkFt + nzTpIcepk0o8(chr(48) + chr(4332 - 4221) + chr(520 - 471), 8):])
elif mcjejRq_Q0_k is None or _1vzISbJ_R2i in [roI3spqORKae(SsdNdRxXOwsF, roI3spqORKae(ES5oEprVxulp(b'\xe2|c\xb3\xa0'), chr(0b110010 + 0o62) + chr(0b1100101) + chr(5379 - 5280) + chr(0b101001 + 0o106) + '\144' + chr(0b1100101))('\x75' + chr(339 - 223) + chr(9610 - 9508) + '\055' + chr(56))), roI3spqORKae(SsdNdRxXOwsF, roI3spqORKae(ES5oEprVxulp(b'\xe2|h\xb2\xa3\xb3\x08\x00q\n'), chr(0b1100100) + '\x65' + chr(6375 - 6276) + chr(111) + chr(0b1010011 + 0o21) + chr(791 - 690))(chr(117) + '\x74' + chr(0b1100110) + '\x2d' + chr(0b111000))), roI3spqORKae(SsdNdRxXOwsF, roI3spqORKae(ES5oEprVxulp(b'\xe2|y\xae\xad\xb5\x14\x10l'), chr(100) + chr(101) + chr(0b110000 + 0o63) + chr(0b1010110 + 0o31) + chr(100) + '\x65')('\165' + chr(116) + chr(1815 - 1713) + chr(0b1010 + 0o43) + chr(56))), roI3spqORKae(SsdNdRxXOwsF, roI3spqORKae(ES5oEprVxulp(b'\xe2|j\xb3\xac\xab\x10\x1av\x1c\xaa'), '\144' + chr(0b1 + 0o144) + chr(0b1100011) + chr(0b1000010 + 0o55) + chr(5804 - 5704) + chr(0b1100101))(chr(10088 - 9971) + chr(0b110101 + 0o77) + chr(0b1001000 + 0o36) + '\055' + '\x38'))]:
return _1vzISbJ_R2i(e5Egg1JDUNBi)
else:
return _1vzISbJ_R2i(e5Egg1JDUNBi, project=mcjejRq_Q0_k)
|
dnanexus/dx-toolkit
|
src/python/dxpy/bindings/dxdataobject_functions.py
|
describe
|
def describe(id_or_link, **kwargs):
'''
:param id_or_link: String containing an object ID or dict containing a DXLink,
or a list of object IDs or dicts containing a DXLink.
Given an object ID, calls :meth:`~dxpy.bindings.DXDataObject.describe` on the object.
Example::
describe("file-1234")
Given a list of object IDs, calls :meth:`~dxpy.api.system_describe_data_objects`.
Example::
describe(["file-1234", "workflow-5678"])
Note: If id_or_link is a list and **kwargs contains a "fields" parameter, these
fields will be returned in the response for each data object in addition to the
fields included by default. Additionally, describe options can be provided for
each data object class in the "classDescribeOptions" kwargs argument. See
https://wiki.dnanexus.com/API-Specification-v1.0.0/System-Methods#API-method:-/system/describeDataObjects
for input parameters used with the multiple object describe method.
'''
# If this is a list, extract the ids.
# TODO: modify the procedure to use project ID when possible
if isinstance(id_or_link, basestring) or is_dxlink(id_or_link):
handler = get_handler(id_or_link)
return handler.describe(**kwargs)
else:
links = []
for link in id_or_link:
# If this entry is a dxlink, then get the id.
if is_dxlink(link):
# Guaranteed by is_dxlink that one of the following will work
if isinstance(link['$dnanexus_link'], basestring):
link = link['$dnanexus_link']
else:
link = link['$dnanexus_link']['id']
links.append(link)
# Prepare input to system_describe_data_objects, the same fields will be passed
# for all data object classes; if a class doesn't include a field in its describe
# output, it will be ignored
describe_input = \
dict([(field, True) for field in kwargs['fields']]) if kwargs.get('fields', []) else True
describe_links_input = [{'id': link, 'describe': describe_input} for link in links]
bulk_describe_input = {'objects': describe_links_input}
if 'classDescribeOptions' in kwargs:
bulk_describe_input['classDescribeOptions'] = kwargs['classDescribeOptions']
data_object_descriptions = dxpy.api.system_describe_data_objects(bulk_describe_input)
return [desc['describe'] for desc in data_object_descriptions['results']]
|
python
|
def describe(id_or_link, **kwargs):
'''
:param id_or_link: String containing an object ID or dict containing a DXLink,
or a list of object IDs or dicts containing a DXLink.
Given an object ID, calls :meth:`~dxpy.bindings.DXDataObject.describe` on the object.
Example::
describe("file-1234")
Given a list of object IDs, calls :meth:`~dxpy.api.system_describe_data_objects`.
Example::
describe(["file-1234", "workflow-5678"])
Note: If id_or_link is a list and **kwargs contains a "fields" parameter, these
fields will be returned in the response for each data object in addition to the
fields included by default. Additionally, describe options can be provided for
each data object class in the "classDescribeOptions" kwargs argument. See
https://wiki.dnanexus.com/API-Specification-v1.0.0/System-Methods#API-method:-/system/describeDataObjects
for input parameters used with the multiple object describe method.
'''
# If this is a list, extract the ids.
# TODO: modify the procedure to use project ID when possible
if isinstance(id_or_link, basestring) or is_dxlink(id_or_link):
handler = get_handler(id_or_link)
return handler.describe(**kwargs)
else:
links = []
for link in id_or_link:
# If this entry is a dxlink, then get the id.
if is_dxlink(link):
# Guaranteed by is_dxlink that one of the following will work
if isinstance(link['$dnanexus_link'], basestring):
link = link['$dnanexus_link']
else:
link = link['$dnanexus_link']['id']
links.append(link)
# Prepare input to system_describe_data_objects, the same fields will be passed
# for all data object classes; if a class doesn't include a field in its describe
# output, it will be ignored
describe_input = \
dict([(field, True) for field in kwargs['fields']]) if kwargs.get('fields', []) else True
describe_links_input = [{'id': link, 'describe': describe_input} for link in links]
bulk_describe_input = {'objects': describe_links_input}
if 'classDescribeOptions' in kwargs:
bulk_describe_input['classDescribeOptions'] = kwargs['classDescribeOptions']
data_object_descriptions = dxpy.api.system_describe_data_objects(bulk_describe_input)
return [desc['describe'] for desc in data_object_descriptions['results']]
|
[
"def",
"describe",
"(",
"id_or_link",
",",
"*",
"*",
"kwargs",
")",
":",
"# If this is a list, extract the ids.",
"# TODO: modify the procedure to use project ID when possible",
"if",
"isinstance",
"(",
"id_or_link",
",",
"basestring",
")",
"or",
"is_dxlink",
"(",
"id_or_link",
")",
":",
"handler",
"=",
"get_handler",
"(",
"id_or_link",
")",
"return",
"handler",
".",
"describe",
"(",
"*",
"*",
"kwargs",
")",
"else",
":",
"links",
"=",
"[",
"]",
"for",
"link",
"in",
"id_or_link",
":",
"# If this entry is a dxlink, then get the id.",
"if",
"is_dxlink",
"(",
"link",
")",
":",
"# Guaranteed by is_dxlink that one of the following will work",
"if",
"isinstance",
"(",
"link",
"[",
"'$dnanexus_link'",
"]",
",",
"basestring",
")",
":",
"link",
"=",
"link",
"[",
"'$dnanexus_link'",
"]",
"else",
":",
"link",
"=",
"link",
"[",
"'$dnanexus_link'",
"]",
"[",
"'id'",
"]",
"links",
".",
"append",
"(",
"link",
")",
"# Prepare input to system_describe_data_objects, the same fields will be passed",
"# for all data object classes; if a class doesn't include a field in its describe",
"# output, it will be ignored",
"describe_input",
"=",
"dict",
"(",
"[",
"(",
"field",
",",
"True",
")",
"for",
"field",
"in",
"kwargs",
"[",
"'fields'",
"]",
"]",
")",
"if",
"kwargs",
".",
"get",
"(",
"'fields'",
",",
"[",
"]",
")",
"else",
"True",
"describe_links_input",
"=",
"[",
"{",
"'id'",
":",
"link",
",",
"'describe'",
":",
"describe_input",
"}",
"for",
"link",
"in",
"links",
"]",
"bulk_describe_input",
"=",
"{",
"'objects'",
":",
"describe_links_input",
"}",
"if",
"'classDescribeOptions'",
"in",
"kwargs",
":",
"bulk_describe_input",
"[",
"'classDescribeOptions'",
"]",
"=",
"kwargs",
"[",
"'classDescribeOptions'",
"]",
"data_object_descriptions",
"=",
"dxpy",
".",
"api",
".",
"system_describe_data_objects",
"(",
"bulk_describe_input",
")",
"return",
"[",
"desc",
"[",
"'describe'",
"]",
"for",
"desc",
"in",
"data_object_descriptions",
"[",
"'results'",
"]",
"]"
] |
:param id_or_link: String containing an object ID or dict containing a DXLink,
or a list of object IDs or dicts containing a DXLink.
Given an object ID, calls :meth:`~dxpy.bindings.DXDataObject.describe` on the object.
Example::
describe("file-1234")
Given a list of object IDs, calls :meth:`~dxpy.api.system_describe_data_objects`.
Example::
describe(["file-1234", "workflow-5678"])
Note: If id_or_link is a list and **kwargs contains a "fields" parameter, these
fields will be returned in the response for each data object in addition to the
fields included by default. Additionally, describe options can be provided for
each data object class in the "classDescribeOptions" kwargs argument. See
https://wiki.dnanexus.com/API-Specification-v1.0.0/System-Methods#API-method:-/system/describeDataObjects
for input parameters used with the multiple object describe method.
|
[
":",
"param",
"id_or_link",
":",
"String",
"containing",
"an",
"object",
"ID",
"or",
"dict",
"containing",
"a",
"DXLink",
"or",
"a",
"list",
"of",
"object",
"IDs",
"or",
"dicts",
"containing",
"a",
"DXLink",
"."
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxdataobject_functions.py#L176-L229
|
train
|
Returns a string containing the description of the object.
|
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV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aRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__
ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b101011 + 0o5) + chr(0b1101111) + chr(0b110001) + chr(914 - 865) + chr(0b110110), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110111) + chr(53), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110011) + '\x32' + chr(0b110111), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b11011 + 0o30) + '\x33' + chr(1653 - 1601), 22357 - 22349), nzTpIcepk0o8(chr(0b110000) + chr(0b111100 + 0o63) + '\064' + chr(0b101100 + 0o13), ord("\x08")), nzTpIcepk0o8(chr(0b100001 + 0o17) + chr(0b111111 + 0o60) + chr(0b10101 + 0o34) + chr(0b110010 + 0o2) + '\x33', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(6883 - 6772) + chr(49) + '\x34' + chr(0b110001 + 0o0), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + '\063' + '\x34' + chr(1420 - 1369), 65232 - 65224), nzTpIcepk0o8(chr(0b110000) + chr(12053 - 11942) + chr(0b110011) + chr(0b101101 + 0o12) + chr(0b110101), 0o10), nzTpIcepk0o8(chr(0b101101 + 0o3) + chr(111) + chr(0b110001) + chr(0b1100 + 0o53), ord("\x08")), nzTpIcepk0o8(chr(0b1100 + 0o44) + chr(0b1010111 + 0o30) + chr(87 - 38) + chr(0b1111 + 0o45) + '\062', 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(51) + chr(0b110111) + chr(1720 - 1668), 21790 - 21782), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(50) + '\065' + '\x30', 0o10), nzTpIcepk0o8(chr(900 - 852) + '\157' + '\061' + chr(1729 - 1676) + chr(1567 - 1518), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(51) + '\065' + chr(1470 - 1415), 4698 - 4690), nzTpIcepk0o8(chr(986 - 938) + chr(0b1101111) + chr(50) + chr(0b10111 + 0o32) + chr(0b101000 + 0o15), 0b1000), nzTpIcepk0o8(chr(501 - 453) + chr(111) + '\x33', 0o10), nzTpIcepk0o8('\060' + chr(1922 - 1811) + '\063' + chr(55) + chr(2382 - 2327), 0o10), nzTpIcepk0o8(chr(1768 - 1720) + '\157' + chr(0b111 + 0o53) + '\067' + chr(1707 - 1652), 0b1000), nzTpIcepk0o8(chr(0b11001 + 0o27) + chr(1054 - 943) + chr(0b100010 + 0o20) + '\x33', 0b1000), nzTpIcepk0o8('\060' + chr(0b1101011 + 0o4) + '\062' + '\060' + chr(0b110111), 0o10), nzTpIcepk0o8('\060' + chr(3707 - 3596) + '\063' + chr(51) + chr(53), 0o10), nzTpIcepk0o8(chr(523 - 475) + chr(0b110 + 0o151) + '\x32' + chr(0b110100) + chr(0b110000), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + '\x33' + '\x36' + chr(0b110100), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(9277 - 9166) + '\066' + chr(0b10010 + 0o44), ord("\x08")), nzTpIcepk0o8(chr(0b100111 + 0o11) + '\x6f' + chr(49) + chr(1774 - 1721) + chr(2791 - 2736), 0o10), nzTpIcepk0o8(chr(0b100110 + 0o12) + '\157' + chr(0b1100 + 0o45) + '\067', 8), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\063', 8), nzTpIcepk0o8(chr(0b1010 + 0o46) + chr(0b1101111) + chr(0b100 + 0o56) + chr(759 - 709) + chr(55), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110001) + '\x30' + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(2066 - 2018) + '\157' + chr(0b11111 + 0o22) + chr(0b110010 + 0o0), 59961 - 59953), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b111 + 0o53) + chr(0b101 + 0o60) + chr(0b110101), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b10101 + 0o35) + '\x32' + '\x36', 0o10), nzTpIcepk0o8(chr(0b110 + 0o52) + chr(0b1101111) + chr(1215 - 1166) + '\x37' + chr(1982 - 1934), ord("\x08")), nzTpIcepk0o8(chr(1485 - 1437) + chr(111) + chr(49) + chr(1980 - 1931) + chr(0b110101), 44679 - 44671), nzTpIcepk0o8(chr(696 - 648) + chr(111) + '\063' + '\x32' + chr(0b10011 + 0o42), 0b1000), nzTpIcepk0o8(chr(1222 - 1174) + chr(0b110001 + 0o76) + chr(0b0 + 0o63) + chr(0b110010) + chr(49), 31100 - 31092), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(49) + chr(0b101101 + 0o4) + chr(0b0 + 0o62), 38820 - 38812), nzTpIcepk0o8('\x30' + chr(111) + chr(50) + chr(53) + '\x31', ord("\x08")), nzTpIcepk0o8(chr(0b101010 + 0o6) + chr(111) + chr(912 - 861) + '\x35' + chr(0b110101), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b11101 + 0o23) + chr(111) + chr(0b110101) + chr(0b10111 + 0o31), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'`'), chr(100) + chr(0b1001 + 0o134) + '\143' + '\157' + chr(5069 - 4969) + chr(7478 - 7377))('\165' + chr(0b1110100) + chr(0b1100110) + chr(45) + '\x38') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def r18okd2eFtJ8(e5Egg1JDUNBi, **q5n0sHDDTy90):
if suIjIS24Zkqw(e5Egg1JDUNBi, JaQstSroDWOP) or Ks3IgO_hjqvX(e5Egg1JDUNBi):
AiPqNgD8WRmS = CTSMfYu2UehJ(e5Egg1JDUNBi)
return roI3spqORKae(AiPqNgD8WRmS, roI3spqORKae(ES5oEprVxulp(b'*X\xa4\xbfU\n\x03\x86'), chr(100) + chr(1653 - 1552) + chr(0b1100011) + chr(8355 - 8244) + chr(8858 - 8758) + chr(0b101001 + 0o74))('\165' + chr(13029 - 12913) + chr(102) + '\055' + chr(0b110111 + 0o1)))(**q5n0sHDDTy90)
else:
Vdf0TtdkEDX6 = []
for QA8TZurzG25Z in e5Egg1JDUNBi:
if Ks3IgO_hjqvX(QA8TZurzG25Z):
if suIjIS24Zkqw(QA8TZurzG25Z[roI3spqORKae(ES5oEprVxulp(b'jY\xb9\xbdI\x06\x19\x96\x8eP\x0e\x95\xc6\x02'), chr(0b101101 + 0o67) + '\x65' + '\x63' + '\x6f' + chr(0b10001 + 0o123) + chr(101))(chr(0b100010 + 0o123) + '\164' + chr(0b1100110) + chr(45) + chr(56))], JaQstSroDWOP):
QA8TZurzG25Z = QA8TZurzG25Z[roI3spqORKae(ES5oEprVxulp(b'jY\xb9\xbdI\x06\x19\x96\x8eP\x0e\x95\xc6\x02'), '\x64' + chr(101) + '\143' + '\x6f' + '\x64' + '\x65')('\165' + chr(0b110111 + 0o75) + chr(102) + chr(45) + chr(0b100010 + 0o26))]
else:
QA8TZurzG25Z = QA8TZurzG25Z[roI3spqORKae(ES5oEprVxulp(b'jY\xb9\xbdI\x06\x19\x96\x8eP\x0e\x95\xc6\x02'), chr(0b1100011 + 0o1) + '\145' + '\x63' + chr(0b1101111) + '\144' + chr(0b1100101))('\x75' + chr(116) + '\x66' + chr(0b101100 + 0o1) + '\070')][roI3spqORKae(ES5oEprVxulp(b"'Y"), chr(6901 - 6801) + chr(0b1100101) + '\x63' + chr(111) + chr(0b111100 + 0o50) + '\x65')('\x75' + chr(116) + chr(0b1100110) + '\x2d' + chr(0b111000))]
roI3spqORKae(Vdf0TtdkEDX6, roI3spqORKae(ES5oEprVxulp(b'\x06i\x84\xe8_\x04&\x8c\x97`7\xc9'), chr(0b1010011 + 0o21) + '\x65' + chr(99) + chr(0b1101110 + 0o1) + '\144' + chr(0b1100101))(chr(0b1001011 + 0o52) + '\x74' + chr(0b1100110) + '\x2d' + chr(0b111000)))(QA8TZurzG25Z)
kMxhmRVvaa4G = znjnJWK64FDT([(uF4zwjUGNIxR, nzTpIcepk0o8('\x30' + chr(0b1000011 + 0o54) + chr(0b110001), 0b1000)) for uF4zwjUGNIxR in q5n0sHDDTy90[roI3spqORKae(ES5oEprVxulp(b'(T\xb2\xb0C\x10'), '\144' + chr(0b1100101) + chr(0b1100011) + chr(0b1001010 + 0o45) + chr(2547 - 2447) + '\145')(chr(11706 - 11589) + chr(3092 - 2976) + '\146' + chr(0b100101 + 0o10) + '\070')]]) if q5n0sHDDTy90.GUKetu4xaGsJ(roI3spqORKae(ES5oEprVxulp(b'(T\xb2\xb0C\x10'), chr(100) + '\x65' + chr(0b1100011) + '\157' + chr(100) + chr(101))(chr(0b1110101) + chr(0b1110100) + '\x66' + chr(1790 - 1745) + chr(0b111000)), []) else nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110001), 8)
zA54YgR5KHfc = [{roI3spqORKae(ES5oEprVxulp(b"'Y"), '\144' + chr(5817 - 5716) + chr(0b11 + 0o140) + chr(0b1100011 + 0o14) + '\x64' + '\145')(chr(0b1110101) + chr(116) + chr(5304 - 5202) + chr(1449 - 1404) + '\070'): QA8TZurzG25Z, roI3spqORKae(ES5oEprVxulp(b'*X\xa4\xbfU\n\x03\x86'), chr(100) + '\x65' + chr(0b1100011) + chr(0b1101111) + chr(0b1100100) + chr(5945 - 5844))(chr(1455 - 1338) + '\164' + chr(102) + '\x2d' + '\070'): kMxhmRVvaa4G} for QA8TZurzG25Z in Vdf0TtdkEDX6]
e7yf4atGRIxp = {roI3spqORKae(ES5oEprVxulp(b'!_\xbd\xb9D\x17\x12'), chr(3849 - 3749) + chr(9554 - 9453) + chr(0b1100011) + chr(0b1101111) + chr(6449 - 6349) + chr(8318 - 8217))(chr(0b1001 + 0o154) + chr(778 - 662) + chr(102) + chr(1535 - 1490) + chr(56)): zA54YgR5KHfc}
if roI3spqORKae(ES5oEprVxulp(b"-Q\xb6\xafT'\x04\x90\x9e}\x0b\x9e\xcd&\x9f\xf9j\x90\xd1`"), chr(0b1100100) + chr(5107 - 5006) + '\143' + '\x6f' + chr(5398 - 5298) + chr(101))(chr(0b1110011 + 0o2) + chr(0b1110100) + chr(0b1100110) + '\x2d' + '\x38') in q5n0sHDDTy90:
e7yf4atGRIxp[roI3spqORKae(ES5oEprVxulp(b"-Q\xb6\xafT'\x04\x90\x9e}\x0b\x9e\xcd&\x9f\xf9j\x90\xd1`"), chr(3565 - 3465) + chr(101) + '\143' + '\157' + '\144' + chr(0b100001 + 0o104))(chr(0b1001000 + 0o55) + chr(8495 - 8379) + '\x66' + '\055' + chr(575 - 519))] = q5n0sHDDTy90[roI3spqORKae(ES5oEprVxulp(b"-Q\xb6\xafT'\x04\x90\x9e}\x0b\x9e\xcd&\x9f\xf9j\x90\xd1`"), '\x64' + chr(5100 - 4999) + '\x63' + '\x6f' + chr(0b100 + 0o140) + chr(101))(chr(994 - 877) + chr(116) + '\146' + chr(0b101101) + chr(1297 - 1241))]
zwyN4y8gnkuE = SsdNdRxXOwsF.api.system_describe_data_objects(e7yf4atGRIxp)
return [iSl7yqRxEcuG[roI3spqORKae(ES5oEprVxulp(b'*X\xa4\xbfU\n\x03\x86'), '\x64' + '\145' + chr(0b1100011) + chr(7459 - 7348) + chr(4923 - 4823) + chr(0b1100101))(chr(0b1110101) + chr(116) + '\x66' + chr(0b11 + 0o52) + chr(2693 - 2637))] for iSl7yqRxEcuG in zwyN4y8gnkuE[roI3spqORKae(ES5oEprVxulp(b'<X\xa4\xa9K\x17\x12'), '\144' + '\145' + chr(6628 - 6529) + chr(0b1101111) + '\144' + '\145')(chr(117) + chr(2358 - 2242) + '\146' + chr(45) + chr(56))]]
|
dnanexus/dx-toolkit
|
src/python/dxpy/bindings/dxproject.py
|
DXContainer.describe
|
def describe(self, **kwargs):
"""
:returns: A hash containing attributes of the project or container.
:rtype: dict
Returns a hash with key-value pairs as specified by the API
specification for the `/project-xxxx/describe
<https://wiki.dnanexus.com/API-Specification-v1.0.0/Projects#API-method%3A-%2Fproject-xxxx%2Fdescribe>`_
method. This will usually include keys such as "id", "name",
"class", "billTo", "created", "modified", and "dataUsage".
"""
# TODO: link to /container-xxxx/describe
api_method = dxpy.api.container_describe
if isinstance(self, DXProject):
api_method = dxpy.api.project_describe
self._desc = api_method(self._dxid, **kwargs)
return self._desc
|
python
|
def describe(self, **kwargs):
"""
:returns: A hash containing attributes of the project or container.
:rtype: dict
Returns a hash with key-value pairs as specified by the API
specification for the `/project-xxxx/describe
<https://wiki.dnanexus.com/API-Specification-v1.0.0/Projects#API-method%3A-%2Fproject-xxxx%2Fdescribe>`_
method. This will usually include keys such as "id", "name",
"class", "billTo", "created", "modified", and "dataUsage".
"""
# TODO: link to /container-xxxx/describe
api_method = dxpy.api.container_describe
if isinstance(self, DXProject):
api_method = dxpy.api.project_describe
self._desc = api_method(self._dxid, **kwargs)
return self._desc
|
[
"def",
"describe",
"(",
"self",
",",
"*",
"*",
"kwargs",
")",
":",
"# TODO: link to /container-xxxx/describe",
"api_method",
"=",
"dxpy",
".",
"api",
".",
"container_describe",
"if",
"isinstance",
"(",
"self",
",",
"DXProject",
")",
":",
"api_method",
"=",
"dxpy",
".",
"api",
".",
"project_describe",
"self",
".",
"_desc",
"=",
"api_method",
"(",
"self",
".",
"_dxid",
",",
"*",
"*",
"kwargs",
")",
"return",
"self",
".",
"_desc"
] |
:returns: A hash containing attributes of the project or container.
:rtype: dict
Returns a hash with key-value pairs as specified by the API
specification for the `/project-xxxx/describe
<https://wiki.dnanexus.com/API-Specification-v1.0.0/Projects#API-method%3A-%2Fproject-xxxx%2Fdescribe>`_
method. This will usually include keys such as "id", "name",
"class", "billTo", "created", "modified", and "dataUsage".
|
[
":",
"returns",
":",
"A",
"hash",
"containing",
"attributes",
"of",
"the",
"project",
"or",
"container",
".",
":",
"rtype",
":",
"dict"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxproject.py#L58-L75
|
train
|
Returns a dictionary containing the attributes of the project or container.
|
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH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h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__
ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\x30' + '\157' + chr(0b110001) + chr(0b1100 + 0o51) + '\067', 31322 - 31314), nzTpIcepk0o8(chr(0b10 + 0o56) + chr(111) + '\061' + '\x30' + '\x31', ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(54) + '\067', ord("\x08")), nzTpIcepk0o8(chr(423 - 375) + chr(2045 - 1934) + chr(0b110011) + chr(0b110010) + '\x32', 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(2375 - 2326) + chr(0b110100 + 0o1) + '\064', 0o10), nzTpIcepk0o8(chr(0b101100 + 0o4) + chr(0b1101111) + chr(2849 - 2795) + '\063', 25753 - 25745), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110100 + 0o2) + chr(0b110011), 8), nzTpIcepk0o8('\x30' + '\x6f' + chr(489 - 438) + chr(0b110100) + chr(50), 22937 - 22929), nzTpIcepk0o8('\060' + chr(111) + '\x31' + chr(49) + chr(51), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110010) + chr(54) + '\x37', 0b1000), nzTpIcepk0o8(chr(1310 - 1262) + '\x6f' + '\064' + '\066', 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b101101 + 0o6) + chr(0b10011 + 0o36) + chr(54), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(51) + chr(2016 - 1966) + chr(55), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1 + 0o156) + chr(0b110110) + chr(50), 0o10), nzTpIcepk0o8('\x30' + chr(0b11100 + 0o123) + chr(0b101 + 0o56) + '\x31' + chr(120 - 67), ord("\x08")), nzTpIcepk0o8(chr(0b1101 + 0o43) + '\157' + chr(2398 - 2349) + chr(0b11111 + 0o21) + chr(0b110001), 8), nzTpIcepk0o8('\060' + '\157' + '\061' + chr(0b110110) + '\x35', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(51) + chr(0b110111) + chr(49), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\061' + '\060' + chr(376 - 323), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1011010 + 0o25) + '\x31' + '\x36' + chr(0b110 + 0o60), 47082 - 47074), nzTpIcepk0o8('\x30' + chr(210 - 99) + '\x32' + chr(671 - 620) + chr(55), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\062' + '\x36' + chr(0b101001 + 0o13), ord("\x08")), nzTpIcepk0o8(chr(1868 - 1820) + chr(0b1011000 + 0o27) + chr(51) + chr(0b110000) + chr(0b10001 + 0o42), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(49) + chr(0b110101), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(2944 - 2833) + chr(0b110110) + '\066', 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(51) + chr(1501 - 1446) + chr(0b1 + 0o66), 0o10), nzTpIcepk0o8(chr(0b101101 + 0o3) + '\157' + chr(0b100001 + 0o21) + chr(1716 - 1667) + '\x31', 38065 - 38057), nzTpIcepk0o8(chr(48) + '\157' + '\x33' + chr(49) + chr(0b110111), 0o10), nzTpIcepk0o8('\x30' + chr(0b1001101 + 0o42) + '\x32' + chr(0b100011 + 0o16) + chr(0b110100), 0o10), nzTpIcepk0o8(chr(1207 - 1159) + '\157' + chr(0b10011 + 0o37) + chr(0b110101) + chr(1829 - 1779), 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(0b101001 + 0o11) + chr(49), 0o10), nzTpIcepk0o8(chr(48) + chr(917 - 806) + chr(286 - 237) + chr(54) + '\x37', 0b1000), nzTpIcepk0o8('\060' + chr(0b110 + 0o151) + chr(0b110011) + chr(374 - 324) + chr(2514 - 2462), 0b1000), nzTpIcepk0o8(chr(0b0 + 0o60) + chr(11697 - 11586) + chr(55), 0b1000), nzTpIcepk0o8(chr(1258 - 1210) + '\157' + '\066' + chr(54), 8), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b100 + 0o56) + chr(0b100110 + 0o20) + '\x31', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(51) + chr(0b110 + 0o54) + chr(0b110011), 0b1000), nzTpIcepk0o8(chr(0b111 + 0o51) + chr(111) + '\063' + '\060' + chr(0b110100), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(1670 - 1617) + chr(0b101011 + 0o13), 0o10), nzTpIcepk0o8(chr(0b10010 + 0o36) + chr(0b1101111) + '\063' + chr(1893 - 1844) + chr(0b101100 + 0o4), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + '\x6f' + '\065' + '\x30', 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'A'), '\144' + chr(0b110110 + 0o57) + '\x63' + chr(111) + chr(100) + chr(0b1100101))(chr(0b1010011 + 0o42) + chr(0b1110100) + chr(102) + '\x2d' + chr(56)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def r18okd2eFtJ8(hXMPsSrOQzbh, **q5n0sHDDTy90):
T6VwPH4X4B2I = SsdNdRxXOwsF.api.container_describe
if suIjIS24Zkqw(hXMPsSrOQzbh, sxYo2dozQU0n):
T6VwPH4X4B2I = SsdNdRxXOwsF.api.project_describe
hXMPsSrOQzbh.Up76sqJenL0f = T6VwPH4X4B2I(hXMPsSrOQzbh.d6KUnRQv6735, **q5n0sHDDTy90)
return roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b':1\x00\xe4\x1fBy\x87%\xfb\x16\xa8'), chr(0b10 + 0o142) + chr(0b1100101) + chr(99) + '\157' + chr(100) + chr(4926 - 4825))(chr(117) + chr(0b1110100) + chr(102) + chr(45) + chr(56)))
|
dnanexus/dx-toolkit
|
src/python/dxpy/bindings/dxproject.py
|
DXContainer.new_folder
|
def new_folder(self, folder, parents=False, **kwargs):
"""
:param folder: Full path to the new folder to create
:type folder: string
:param parents: If True, recursively create any parent folders that are missing
:type parents: boolean
Creates a new folder in the project or container.
"""
api_method = dxpy.api.container_new_folder
if isinstance(self, DXProject):
api_method = dxpy.api.project_new_folder
api_method(self._dxid, {"folder": folder,
"parents": parents},
**kwargs)
|
python
|
def new_folder(self, folder, parents=False, **kwargs):
"""
:param folder: Full path to the new folder to create
:type folder: string
:param parents: If True, recursively create any parent folders that are missing
:type parents: boolean
Creates a new folder in the project or container.
"""
api_method = dxpy.api.container_new_folder
if isinstance(self, DXProject):
api_method = dxpy.api.project_new_folder
api_method(self._dxid, {"folder": folder,
"parents": parents},
**kwargs)
|
[
"def",
"new_folder",
"(",
"self",
",",
"folder",
",",
"parents",
"=",
"False",
",",
"*",
"*",
"kwargs",
")",
":",
"api_method",
"=",
"dxpy",
".",
"api",
".",
"container_new_folder",
"if",
"isinstance",
"(",
"self",
",",
"DXProject",
")",
":",
"api_method",
"=",
"dxpy",
".",
"api",
".",
"project_new_folder",
"api_method",
"(",
"self",
".",
"_dxid",
",",
"{",
"\"folder\"",
":",
"folder",
",",
"\"parents\"",
":",
"parents",
"}",
",",
"*",
"*",
"kwargs",
")"
] |
:param folder: Full path to the new folder to create
:type folder: string
:param parents: If True, recursively create any parent folders that are missing
:type parents: boolean
Creates a new folder in the project or container.
|
[
":",
"param",
"folder",
":",
"Full",
"path",
"to",
"the",
"new",
"folder",
"to",
"create",
":",
"type",
"folder",
":",
"string",
":",
"param",
"parents",
":",
"If",
"True",
"recursively",
"create",
"any",
"parent",
"folders",
"that",
"are",
"missing",
":",
"type",
"parents",
":",
"boolean"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxproject.py#L77-L93
|
train
|
Creates a new folder in the specified folder.
|
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,zs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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(1698 - 1650) + '\157' + chr(0b110001) + chr(1040 - 987) + chr(0b110000), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b1 + 0o62) + chr(0b110100) + chr(0b110000), ord("\x08")), nzTpIcepk0o8(chr(0b11101 + 0o23) + chr(111) + chr(193 - 143) + '\062' + chr(58 - 8), 0o10), nzTpIcepk0o8(chr(1714 - 1666) + chr(0b1101111) + chr(1240 - 1190), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(3406 - 3295) + '\x33' + chr(0b110001) + '\060', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + '\062' + chr(0b1111 + 0o47) + chr(48), ord("\x08")), nzTpIcepk0o8(chr(813 - 765) + '\x6f' + '\x32' + chr(0b110011) + '\x33', ord("\x08")), nzTpIcepk0o8(chr(0b100101 + 0o13) + chr(10743 - 10632) + chr(0b110001) + chr(0b11100 + 0o24) + '\064', 0o10), nzTpIcepk0o8(chr(1193 - 1145) + chr(0b101101 + 0o102) + '\062' + '\061' + chr(1057 - 1004), 0b1000), nzTpIcepk0o8('\x30' + '\157' + '\065' + chr(0b110101), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(0b100010 + 0o20) + chr(54) + chr(50), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + '\061' + chr(48), ord("\x08")), nzTpIcepk0o8(chr(0b1 + 0o57) + chr(5369 - 5258) + chr(1502 - 1453) + chr(0b10001 + 0o43), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(9614 - 9503) + chr(0b110010) + chr(1657 - 1609) + chr(55), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110010) + chr(0b110100) + '\062', 0o10), nzTpIcepk0o8(chr(1948 - 1900) + '\157' + '\x32' + '\x32' + chr(52), ord("\x08")), nzTpIcepk0o8(chr(418 - 370) + chr(0b1101111) + '\x32' + chr(50) + chr(48), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1000010 + 0o55) + chr(0b1 + 0o63) + '\x34', 30853 - 30845), nzTpIcepk0o8(chr(0b110000) + chr(0b1001101 + 0o42) + chr(333 - 283) + '\062' + '\x34', 8), nzTpIcepk0o8('\060' + '\x6f' + '\067' + '\064', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + '\061' + '\067' + '\x36', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110010) + chr(0b100 + 0o61) + chr(0b110010), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + '\x35' + chr(0b110000), ord("\x08")), nzTpIcepk0o8(chr(744 - 696) + chr(0b1101111) + chr(0b110011) + '\063' + chr(0b1 + 0o66), 41454 - 41446), nzTpIcepk0o8(chr(0b1101 + 0o43) + chr(111) + chr(51) + chr(48) + '\x30', 7803 - 7795), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b101110 + 0o5) + chr(0b101001 + 0o11) + '\x30', 0o10), nzTpIcepk0o8('\x30' + chr(0b1001111 + 0o40) + '\x36' + '\062', 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(2255 - 2203) + chr(0b1110 + 0o47), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1000 + 0o147) + '\x36' + chr(55), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110001) + chr(0b110011) + '\060', 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b100010 + 0o17) + '\x37' + chr(51), 0b1000), nzTpIcepk0o8(chr(85 - 37) + chr(4467 - 4356) + chr(178 - 129) + chr(0b110010) + chr(1013 - 958), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b100 + 0o57) + chr(0b101111 + 0o4) + chr(52), 55501 - 55493), nzTpIcepk0o8(chr(0b110000) + chr(3126 - 3015) + chr(51) + '\x30' + chr(49), ord("\x08")), nzTpIcepk0o8(chr(748 - 700) + chr(111) + chr(2138 - 2087) + chr(0b10 + 0o63) + chr(2749 - 2695), 41684 - 41676), nzTpIcepk0o8(chr(48) + chr(0b11 + 0o154) + chr(937 - 886) + chr(49) + chr(0b110000), 8), nzTpIcepk0o8(chr(1344 - 1296) + chr(0b1100110 + 0o11) + chr(1977 - 1927) + '\x32' + chr(0b110100), 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x32' + '\x32' + chr(0b110100), 8), nzTpIcepk0o8('\x30' + chr(111) + chr(50) + chr(1551 - 1499) + chr(0b110111), 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(49) + chr(0b1 + 0o65) + '\065', 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b11000 + 0o30) + '\157' + chr(53) + chr(0b110000), 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'F'), chr(5425 - 5325) + chr(0b111000 + 0o55) + chr(99) + chr(111) + chr(9495 - 9395) + chr(2628 - 2527))('\165' + '\164' + '\146' + chr(930 - 885) + chr(0b111 + 0o61)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def Zrf18n9N6K2X(hXMPsSrOQzbh, jJYsaQE2l_C4, nP99tO3t3cvU=nzTpIcepk0o8('\x30' + chr(4297 - 4186) + '\x30', ord("\x08")), **q5n0sHDDTy90):
T6VwPH4X4B2I = SsdNdRxXOwsF.api.container_new_folder
if suIjIS24Zkqw(hXMPsSrOQzbh, sxYo2dozQU0n):
T6VwPH4X4B2I = SsdNdRxXOwsF.api.project_new_folder
T6VwPH4X4B2I(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x0c\xd6\xd9W\xa6\xe2\xca2\xbb\x1a\x81='), chr(0b1011010 + 0o12) + chr(101) + chr(3233 - 3134) + chr(111) + chr(100) + chr(101))(chr(0b1110101) + chr(116) + chr(102) + chr(45) + '\x38')), {roI3spqORKae(ES5oEprVxulp(b'\x0e\x8f\xfef\xad\xc2'), chr(100) + chr(0b100100 + 0o101) + chr(0b1010100 + 0o17) + chr(0b1101111) + '\144' + chr(101))('\x75' + '\164' + '\x66' + '\x2d' + '\x38'): jJYsaQE2l_C4, roI3spqORKae(ES5oEprVxulp(b'\x18\x81\xe0g\xa6\xc4\xe8'), '\144' + '\145' + chr(99) + chr(389 - 278) + '\x64' + chr(0b1100101))('\x75' + chr(0b1110100) + chr(102) + chr(0b101 + 0o50) + chr(56)): nP99tO3t3cvU}, **q5n0sHDDTy90)
|
dnanexus/dx-toolkit
|
src/python/dxpy/bindings/dxproject.py
|
DXContainer.list_folder
|
def list_folder(self, folder="/", describe=False, only="all", includeHidden=False, **kwargs):
"""
:param folder: Full path to the folder to list
:type folder: string
:param describe: If True, returns the output of ``/describe`` on each object (see below for notes)
:type describe: bool or dict
:param only: Indicate "objects" for only objects, "folders" for only folders, or "all" for both
:type only: string
:param includeHidden: Indicate whether hidden objects should be returned
:type includeHidden: bool
:returns: A hash with key "objects" for the list of object IDs and key "folders" for the list of folder routes
:rtype: dict
Returns a hash containing a list of objects that reside directly
inside the specified folder, and a list of strings representing
the full paths to folders that reside directly inside the
specified folder.
By default, the list of objects is provided as a list containing
one hash ``{"id": "class-XXXX"}`` with the ID of each matching
object. If *describe* is not False, the output of ``/describe``
is also included in an additional field "describe" for each
object. If *describe* is True, ``/describe`` is called with the
default arguments. *describe* may also be a hash, indicating the
input hash to be supplied to each ``/describe`` call.
"""
# TODO: it would be nice if we could supply describe
# fields/defaultFields in a similar way to what we pass to the
# high-level describe method, rather than having to construct
# the literal API input
api_method = dxpy.api.container_list_folder
if isinstance(self, DXProject):
api_method = dxpy.api.project_list_folder
return api_method(self._dxid, {"folder": folder,
"describe": describe,
"only": only,
"includeHidden": includeHidden},
**kwargs)
|
python
|
def list_folder(self, folder="/", describe=False, only="all", includeHidden=False, **kwargs):
"""
:param folder: Full path to the folder to list
:type folder: string
:param describe: If True, returns the output of ``/describe`` on each object (see below for notes)
:type describe: bool or dict
:param only: Indicate "objects" for only objects, "folders" for only folders, or "all" for both
:type only: string
:param includeHidden: Indicate whether hidden objects should be returned
:type includeHidden: bool
:returns: A hash with key "objects" for the list of object IDs and key "folders" for the list of folder routes
:rtype: dict
Returns a hash containing a list of objects that reside directly
inside the specified folder, and a list of strings representing
the full paths to folders that reside directly inside the
specified folder.
By default, the list of objects is provided as a list containing
one hash ``{"id": "class-XXXX"}`` with the ID of each matching
object. If *describe* is not False, the output of ``/describe``
is also included in an additional field "describe" for each
object. If *describe* is True, ``/describe`` is called with the
default arguments. *describe* may also be a hash, indicating the
input hash to be supplied to each ``/describe`` call.
"""
# TODO: it would be nice if we could supply describe
# fields/defaultFields in a similar way to what we pass to the
# high-level describe method, rather than having to construct
# the literal API input
api_method = dxpy.api.container_list_folder
if isinstance(self, DXProject):
api_method = dxpy.api.project_list_folder
return api_method(self._dxid, {"folder": folder,
"describe": describe,
"only": only,
"includeHidden": includeHidden},
**kwargs)
|
[
"def",
"list_folder",
"(",
"self",
",",
"folder",
"=",
"\"/\"",
",",
"describe",
"=",
"False",
",",
"only",
"=",
"\"all\"",
",",
"includeHidden",
"=",
"False",
",",
"*",
"*",
"kwargs",
")",
":",
"# TODO: it would be nice if we could supply describe",
"# fields/defaultFields in a similar way to what we pass to the",
"# high-level describe method, rather than having to construct",
"# the literal API input",
"api_method",
"=",
"dxpy",
".",
"api",
".",
"container_list_folder",
"if",
"isinstance",
"(",
"self",
",",
"DXProject",
")",
":",
"api_method",
"=",
"dxpy",
".",
"api",
".",
"project_list_folder",
"return",
"api_method",
"(",
"self",
".",
"_dxid",
",",
"{",
"\"folder\"",
":",
"folder",
",",
"\"describe\"",
":",
"describe",
",",
"\"only\"",
":",
"only",
",",
"\"includeHidden\"",
":",
"includeHidden",
"}",
",",
"*",
"*",
"kwargs",
")"
] |
:param folder: Full path to the folder to list
:type folder: string
:param describe: If True, returns the output of ``/describe`` on each object (see below for notes)
:type describe: bool or dict
:param only: Indicate "objects" for only objects, "folders" for only folders, or "all" for both
:type only: string
:param includeHidden: Indicate whether hidden objects should be returned
:type includeHidden: bool
:returns: A hash with key "objects" for the list of object IDs and key "folders" for the list of folder routes
:rtype: dict
Returns a hash containing a list of objects that reside directly
inside the specified folder, and a list of strings representing
the full paths to folders that reside directly inside the
specified folder.
By default, the list of objects is provided as a list containing
one hash ``{"id": "class-XXXX"}`` with the ID of each matching
object. If *describe* is not False, the output of ``/describe``
is also included in an additional field "describe" for each
object. If *describe* is True, ``/describe`` is called with the
default arguments. *describe* may also be a hash, indicating the
input hash to be supplied to each ``/describe`` call.
|
[
":",
"param",
"folder",
":",
"Full",
"path",
"to",
"the",
"folder",
"to",
"list",
":",
"type",
"folder",
":",
"string",
":",
"param",
"describe",
":",
"If",
"True",
"returns",
"the",
"output",
"of",
"/",
"describe",
"on",
"each",
"object",
"(",
"see",
"below",
"for",
"notes",
")",
":",
"type",
"describe",
":",
"bool",
"or",
"dict",
":",
"param",
"only",
":",
"Indicate",
"objects",
"for",
"only",
"objects",
"folders",
"for",
"only",
"folders",
"or",
"all",
"for",
"both",
":",
"type",
"only",
":",
"string",
":",
"param",
"includeHidden",
":",
"Indicate",
"whether",
"hidden",
"objects",
"should",
"be",
"returned",
":",
"type",
"includeHidden",
":",
"bool",
":",
"returns",
":",
"A",
"hash",
"with",
"key",
"objects",
"for",
"the",
"list",
"of",
"object",
"IDs",
"and",
"key",
"folders",
"for",
"the",
"list",
"of",
"folder",
"routes",
":",
"rtype",
":",
"dict"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxproject.py#L95-L135
|
train
|
List the contents of the specified folder.
|
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,ZtIuyIq3ta7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WTqT_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' + '\x32' + chr(48) + chr(827 - 774), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b10001 + 0o46) + '\066', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(3904 - 3793) + '\x32' + chr(55) + chr(1656 - 1608), 56437 - 56429), nzTpIcepk0o8(chr(48) + chr(4120 - 4009) + chr(1216 - 1167) + chr(0b110110), 0o10), nzTpIcepk0o8(chr(0b11111 + 0o21) + chr(111) + chr(0b110011) + chr(510 - 460) + chr(0b1010 + 0o54), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b100010 + 0o17) + '\063' + chr(0b110000 + 0o2), 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(937 - 886) + chr(1007 - 959) + '\061', 0b1000), nzTpIcepk0o8(chr(1670 - 1622) + '\x6f' + chr(51) + '\x30', 0o10), nzTpIcepk0o8(chr(1036 - 988) + chr(111) + '\061' + '\063' + '\065', 39819 - 39811), nzTpIcepk0o8('\x30' + chr(0b101 + 0o152) + '\062' + chr(0b110010) + '\x35', 35420 - 35412), nzTpIcepk0o8(chr(48) + chr(111) + '\x31', 21197 - 21189), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\062' + '\x34' + chr(0b1101 + 0o44), 0b1000), nzTpIcepk0o8(chr(2145 - 2097) + '\157' + '\061' + '\x32' + chr(0b110001), 0b1000), nzTpIcepk0o8('\x30' + '\157' + '\063' + chr(0b10001 + 0o41) + chr(1393 - 1344), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\063' + '\060' + chr(0b100110 + 0o17), 0o10), nzTpIcepk0o8(chr(0b10110 + 0o32) + chr(111) + chr(0b110011) + chr(54) + '\x33', ord("\x08")), nzTpIcepk0o8('\060' + chr(10048 - 9937) + chr(50) + chr(0b10100 + 0o41), 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(282 - 232) + chr(49) + chr(54), 58539 - 58531), nzTpIcepk0o8('\060' + '\157' + '\x37' + chr(0b110010), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b111000 + 0o67) + chr(0b110001) + chr(0b10010 + 0o43) + '\061', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b0 + 0o62) + chr(0b110001) + '\x32', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(1770 - 1718) + chr(0b111 + 0o54), 0b1000), nzTpIcepk0o8(chr(48) + chr(6739 - 6628) + chr(1224 - 1174) + chr(0b101000 + 0o13) + chr(51), 32089 - 32081), nzTpIcepk0o8(chr(0b110000) + chr(0b101100 + 0o103) + chr(0b10111 + 0o33) + '\x31', 59635 - 59627), nzTpIcepk0o8(chr(2111 - 2063) + chr(111) + chr(49) + chr(51) + chr(0b101001 + 0o13), ord("\x08")), nzTpIcepk0o8(chr(166 - 118) + chr(595 - 484) + '\062' + chr(0b110100) + chr(54), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(5744 - 5633) + '\x32' + chr(51) + '\065', 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b100001 + 0o20) + chr(0b101011 + 0o10) + '\062', 8), nzTpIcepk0o8(chr(2179 - 2131) + chr(5836 - 5725) + chr(0b110101), 0b1000), nzTpIcepk0o8(chr(0b110 + 0o52) + chr(12082 - 11971) + '\x37' + chr(55), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(5810 - 5699) + '\062' + chr(1673 - 1623) + chr(50), 0b1000), nzTpIcepk0o8(chr(638 - 590) + '\157' + chr(0b110010) + chr(0b1101 + 0o43) + chr(0b10001 + 0o45), 0o10), nzTpIcepk0o8(chr(2226 - 2178) + '\157' + chr(1257 - 1202) + chr(0b0 + 0o60), ord("\x08")), nzTpIcepk0o8(chr(0b101101 + 0o3) + chr(111) + chr(0b101101 + 0o6) + chr(1637 - 1582) + chr(55), ord("\x08")), nzTpIcepk0o8(chr(1000 - 952) + chr(3122 - 3011) + chr(1940 - 1891) + chr(0b110101) + chr(0b110000), 0b1000), nzTpIcepk0o8('\060' + chr(111) + '\x32' + '\x36' + chr(53), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + '\061' + chr(462 - 411) + '\x36', ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110001) + chr(52) + chr(49), 50847 - 50839), nzTpIcepk0o8(chr(48) + chr(7440 - 7329) + chr(0b101001 + 0o10) + chr(0b110100) + chr(2944 - 2889), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x32' + chr(54) + chr(0b110100), 17111 - 17103)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + '\157' + chr(0b110000 + 0o5) + '\x30', ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xab'), chr(100) + chr(3109 - 3008) + '\x63' + chr(0b1101111) + '\x64' + chr(0b1100101))(chr(13526 - 13409) + chr(116) + '\x66' + chr(0b101101) + chr(2472 - 2416)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def hpeev9Sbf1ou(hXMPsSrOQzbh, jJYsaQE2l_C4=roI3spqORKae(ES5oEprVxulp(b'\xaa'), chr(0b1100100) + '\x65' + '\143' + chr(1600 - 1489) + '\144' + chr(1102 - 1001))('\165' + '\x74' + chr(0b10011 + 0o123) + '\x2d' + '\x38'), r18okd2eFtJ8=nzTpIcepk0o8('\x30' + chr(5311 - 5200) + chr(48), 0b1000), oud5ToVoUnWQ=roI3spqORKae(ES5oEprVxulp(b'\xe4R\xd4'), chr(100) + '\x65' + chr(0b110 + 0o135) + '\157' + chr(100) + '\145')(chr(117) + '\x74' + '\146' + '\x2d' + chr(896 - 840)), RiF0DEq9MV3u=nzTpIcepk0o8('\060' + '\x6f' + chr(2233 - 2185), 8), **q5n0sHDDTy90):
T6VwPH4X4B2I = SsdNdRxXOwsF.api.container_list_folder
if suIjIS24Zkqw(hXMPsSrOQzbh, sxYo2dozQU0n):
T6VwPH4X4B2I = SsdNdRxXOwsF.api.project_list_folder
return T6VwPH4X4B2I(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xe1\x08\xf3[\xb8\x08\x90nk\xa22\x94'), chr(0b1100100) + '\x65' + '\x63' + '\157' + '\144' + '\x65')(chr(0b1110101) + chr(0b1110100) + chr(102) + '\x2d' + chr(0b10111 + 0o41))), {roI3spqORKae(ES5oEprVxulp(b'\xe3Q\xd4j\xb3('), chr(100) + chr(101) + '\x63' + '\x6f' + chr(0b100010 + 0o102) + chr(4029 - 3928))(chr(117) + chr(116) + '\146' + '\055' + '\x38'): jJYsaQE2l_C4, roI3spqORKae(ES5oEprVxulp(b'\xe1[\xcbm\xa43\xa3}'), chr(6928 - 6828) + chr(101) + chr(0b1011110 + 0o5) + chr(0b1101111) + chr(100) + chr(7956 - 7855))('\165' + chr(9469 - 9353) + '\x66' + chr(0b101101) + chr(0b111000)): r18okd2eFtJ8, roI3spqORKae(ES5oEprVxulp(b'\xeaP\xd4w'), '\x64' + '\145' + chr(99) + chr(0b1101111) + '\x64' + chr(9793 - 9692))(chr(117) + chr(116) + chr(0b1100110) + chr(45) + chr(56)): oud5ToVoUnWQ, roI3spqORKae(ES5oEprVxulp(b'\xecP\xdbb\xa3>\xa4P4\xf1e\xc4?'), chr(0b110011 + 0o61) + chr(4810 - 4709) + chr(0b111000 + 0o53) + '\x6f' + chr(0b100 + 0o140) + '\x65')(chr(10538 - 10421) + chr(1687 - 1571) + chr(0b1100110) + chr(0b110 + 0o47) + chr(0b111000)): RiF0DEq9MV3u}, **q5n0sHDDTy90)
|
dnanexus/dx-toolkit
|
src/python/dxpy/bindings/dxproject.py
|
DXContainer.move
|
def move(self, destination, objects=[], folders=[], **kwargs):
"""
:param destination: Path of destination folder
:type destination: string
:param objects: List of object IDs to move
:type objects: list of strings
:param folders: List of full paths to folders to move
:type folders: list of strings
Moves the specified objects and folders into the folder
represented by *destination*. Moving a folder also moves all
contained folders and objects. If an object or folder is
explicitly specified but also appears inside another specified
folder, it will be removed from its parent folder and placed
directly in *destination*.
"""
api_method = dxpy.api.container_move
if isinstance(self, DXProject):
api_method = dxpy.api.project_move
api_method(self._dxid, {"objects": objects,
"folders": folders,
"destination": destination},
**kwargs)
|
python
|
def move(self, destination, objects=[], folders=[], **kwargs):
"""
:param destination: Path of destination folder
:type destination: string
:param objects: List of object IDs to move
:type objects: list of strings
:param folders: List of full paths to folders to move
:type folders: list of strings
Moves the specified objects and folders into the folder
represented by *destination*. Moving a folder also moves all
contained folders and objects. If an object or folder is
explicitly specified but also appears inside another specified
folder, it will be removed from its parent folder and placed
directly in *destination*.
"""
api_method = dxpy.api.container_move
if isinstance(self, DXProject):
api_method = dxpy.api.project_move
api_method(self._dxid, {"objects": objects,
"folders": folders,
"destination": destination},
**kwargs)
|
[
"def",
"move",
"(",
"self",
",",
"destination",
",",
"objects",
"=",
"[",
"]",
",",
"folders",
"=",
"[",
"]",
",",
"*",
"*",
"kwargs",
")",
":",
"api_method",
"=",
"dxpy",
".",
"api",
".",
"container_move",
"if",
"isinstance",
"(",
"self",
",",
"DXProject",
")",
":",
"api_method",
"=",
"dxpy",
".",
"api",
".",
"project_move",
"api_method",
"(",
"self",
".",
"_dxid",
",",
"{",
"\"objects\"",
":",
"objects",
",",
"\"folders\"",
":",
"folders",
",",
"\"destination\"",
":",
"destination",
"}",
",",
"*",
"*",
"kwargs",
")"
] |
:param destination: Path of destination folder
:type destination: string
:param objects: List of object IDs to move
:type objects: list of strings
:param folders: List of full paths to folders to move
:type folders: list of strings
Moves the specified objects and folders into the folder
represented by *destination*. Moving a folder also moves all
contained folders and objects. If an object or folder is
explicitly specified but also appears inside another specified
folder, it will be removed from its parent folder and placed
directly in *destination*.
|
[
":",
"param",
"destination",
":",
"Path",
"of",
"destination",
"folder",
":",
"type",
"destination",
":",
"string",
":",
"param",
"objects",
":",
"List",
"of",
"object",
"IDs",
"to",
"move",
":",
"type",
"objects",
":",
"list",
"of",
"strings",
":",
"param",
"folders",
":",
"List",
"of",
"full",
"paths",
"to",
"folders",
"to",
"move",
":",
"type",
"folders",
":",
"list",
"of",
"strings"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxproject.py#L137-L161
|
train
|
Moves the specified objects and folders into the specified destination folder.
|
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,NfwEQ1VK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_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__
ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\060' + '\x6f' + '\x33' + '\x36', 0o10), nzTpIcepk0o8('\060' + chr(111) + '\x31' + '\x30' + chr(52), 0b1000), nzTpIcepk0o8('\060' + chr(111) + '\x31', 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + '\067' + '\061', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110011) + chr(0b100011 + 0o16) + chr(0b110000), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(9063 - 8952) + chr(0b110101 + 0o0) + '\x37', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x32' + chr(0b110000) + chr(479 - 424), 20421 - 20413), nzTpIcepk0o8(chr(0b101011 + 0o5) + chr(0b1010011 + 0o34) + chr(0b110010) + chr(0b110010), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + '\x32' + chr(48) + '\064', 39716 - 39708), nzTpIcepk0o8(chr(0b100000 + 0o20) + chr(111) + chr(0b1010 + 0o51) + chr(55) + '\065', 0o10), nzTpIcepk0o8('\060' + chr(0b1100011 + 0o14) + '\x32' + chr(0b110010) + chr(49), 0b1000), nzTpIcepk0o8(chr(0b1 + 0o57) + '\x6f' + chr(50) + chr(0b110010) + chr(0b0 + 0o65), 22863 - 22855), nzTpIcepk0o8(chr(0b110000) + chr(2522 - 2411) + chr(1461 - 1411) + chr(0b110010), 8), nzTpIcepk0o8(chr(0b110000) + chr(9399 - 9288) + chr(52) + '\060', 0b1000), nzTpIcepk0o8(chr(1398 - 1350) + '\157' + chr(0b1011 + 0o50) + '\x32' + chr(1535 - 1486), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x33' + chr(0b110001) + chr(54), 0o10), nzTpIcepk0o8(chr(0b1110 + 0o42) + '\157' + chr(50) + '\x32' + '\x32', 0o10), nzTpIcepk0o8(chr(74 - 26) + chr(111) + '\063' + chr(0b11011 + 0o25) + '\x33', 13522 - 13514), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b11001 + 0o31) + chr(1338 - 1284), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(0b101101 + 0o11) + chr(52), ord("\x08")), nzTpIcepk0o8(chr(1569 - 1521) + chr(0b1101111) + '\x31' + chr(1542 - 1493) + chr(0b1111 + 0o43), 20831 - 20823), nzTpIcepk0o8('\060' + chr(10998 - 10887) + chr(0b110010) + chr(55) + chr(2299 - 2250), 0o10), nzTpIcepk0o8(chr(1644 - 1596) + chr(0b1101111) + chr(2196 - 2145) + chr(1068 - 1015) + chr(54), 0b1000), nzTpIcepk0o8(chr(0b100110 + 0o12) + chr(4607 - 4496) + chr(0b110001) + chr(0b110011) + chr(0b11000 + 0o32), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110001) + chr(576 - 526) + chr(0b110101), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(2149 - 2099) + '\x33' + '\060', 1099 - 1091), nzTpIcepk0o8('\x30' + chr(9269 - 9158) + '\065' + chr(0b10000 + 0o45), 56283 - 56275), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x33' + '\x30', 0o10), nzTpIcepk0o8('\060' + '\157' + chr(0b11101 + 0o24) + '\x34' + chr(0b110010), 0o10), nzTpIcepk0o8(chr(48) + chr(1408 - 1297) + '\064' + chr(0b110100), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(10619 - 10508) + '\061' + '\066' + chr(0b1101 + 0o45), 0o10), nzTpIcepk0o8('\x30' + chr(7326 - 7215) + chr(1709 - 1660) + chr(53), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + '\x33' + chr(0b110010 + 0o4) + chr(0b11101 + 0o25), 17025 - 17017), nzTpIcepk0o8(chr(48) + chr(111) + '\061' + '\x35' + chr(0b1111 + 0o50), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(10033 - 9922) + chr(1656 - 1605) + chr(0b110001) + chr(0b110110), 8), nzTpIcepk0o8('\x30' + '\157' + chr(0b10111 + 0o33) + chr(0b1101 + 0o43) + chr(51), 9229 - 9221), nzTpIcepk0o8('\060' + chr(9928 - 9817) + chr(0b110001) + chr(0b11010 + 0o32) + '\x32', 8), nzTpIcepk0o8('\060' + chr(564 - 453) + chr(50) + chr(0b101100 + 0o4) + chr(0b110001), 13889 - 13881), nzTpIcepk0o8('\060' + '\157' + chr(0b110001) + chr(0b110101) + '\x35', 26792 - 26784), nzTpIcepk0o8(chr(56 - 8) + chr(8384 - 8273) + '\x33' + chr(2429 - 2378) + chr(1004 - 951), 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + chr(111) + chr(0b110101) + chr(0b110000), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'0'), '\x64' + '\145' + chr(0b1100011) + chr(10836 - 10725) + chr(100) + '\145')(chr(7993 - 7876) + '\164' + '\146' + chr(0b100001 + 0o14) + chr(976 - 920)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def xd7THyEXxkz0(hXMPsSrOQzbh, ZvPf2p7avF3N, unFw4B5pa4XN=[], ai1HwZ6BJd2i=[], **q5n0sHDDTy90):
T6VwPH4X4B2I = SsdNdRxXOwsF.api.container_move
if suIjIS24Zkqw(hXMPsSrOQzbh, sxYo2dozQU0n):
T6VwPH4X4B2I = SsdNdRxXOwsF.api.project_move
T6VwPH4X4B2I(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'zrJl\xa6}\xd6d\xb2\xca\xa2\xa0'), '\x64' + chr(5244 - 5143) + '\x63' + chr(111) + chr(0b1010001 + 0o23) + '\x65')(chr(0b111110 + 0o67) + '\164' + '\x66' + '\x2d' + chr(0b110101 + 0o3))), {roI3spqORKae(ES5oEprVxulp(b'q&k\\\xab[\xf4'), '\144' + chr(6460 - 6359) + chr(99) + chr(111) + chr(100) + chr(0b1010010 + 0o23))('\x75' + chr(0b1110100) + chr(102) + '\x2d' + '\x38'): unFw4B5pa4XN, roI3spqORKae(ES5oEprVxulp(b'x+m]\xad]\xf4'), '\x64' + '\x65' + chr(0b1100011) + '\157' + chr(0b111010 + 0o52) + chr(101))(chr(3932 - 3815) + chr(116) + chr(0b1100110) + '\x2d' + chr(212 - 156)): ai1HwZ6BJd2i, roI3spqORKae(ES5oEprVxulp(b'z!rM\xa1A\xe6f\xed\x92\xff'), '\144' + chr(0b1100101) + chr(99) + chr(0b1101 + 0o142) + chr(100) + chr(6314 - 6213))(chr(0b1110101) + chr(10134 - 10018) + chr(0b1100110) + chr(283 - 238) + chr(56)): ZvPf2p7avF3N}, **q5n0sHDDTy90)
|
dnanexus/dx-toolkit
|
src/python/dxpy/bindings/dxproject.py
|
DXContainer.move_folder
|
def move_folder(self, folder, destination, **kwargs):
"""
:param folder: Full path to the folder to move
:type folder: string
:param destination: Full path to the destination folder that will contain *folder*
:type destination: string
Moves *folder* to reside in *destination* in the same project or
container. All objects and subfolders inside *folder* are also
moved.
"""
api_method = dxpy.api.container_move
if isinstance(self, DXProject):
api_method = dxpy.api.project_move
api_method(self._dxid, {"folders": [folder],
"destination": destination},
**kwargs)
|
python
|
def move_folder(self, folder, destination, **kwargs):
"""
:param folder: Full path to the folder to move
:type folder: string
:param destination: Full path to the destination folder that will contain *folder*
:type destination: string
Moves *folder* to reside in *destination* in the same project or
container. All objects and subfolders inside *folder* are also
moved.
"""
api_method = dxpy.api.container_move
if isinstance(self, DXProject):
api_method = dxpy.api.project_move
api_method(self._dxid, {"folders": [folder],
"destination": destination},
**kwargs)
|
[
"def",
"move_folder",
"(",
"self",
",",
"folder",
",",
"destination",
",",
"*",
"*",
"kwargs",
")",
":",
"api_method",
"=",
"dxpy",
".",
"api",
".",
"container_move",
"if",
"isinstance",
"(",
"self",
",",
"DXProject",
")",
":",
"api_method",
"=",
"dxpy",
".",
"api",
".",
"project_move",
"api_method",
"(",
"self",
".",
"_dxid",
",",
"{",
"\"folders\"",
":",
"[",
"folder",
"]",
",",
"\"destination\"",
":",
"destination",
"}",
",",
"*",
"*",
"kwargs",
")"
] |
:param folder: Full path to the folder to move
:type folder: string
:param destination: Full path to the destination folder that will contain *folder*
:type destination: string
Moves *folder* to reside in *destination* in the same project or
container. All objects and subfolders inside *folder* are also
moved.
|
[
":",
"param",
"folder",
":",
"Full",
"path",
"to",
"the",
"folder",
"to",
"move",
":",
"type",
"folder",
":",
"string",
":",
"param",
"destination",
":",
"Full",
"path",
"to",
"the",
"destination",
"folder",
"that",
"will",
"contain",
"*",
"folder",
"*",
":",
"type",
"destination",
":",
"string"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxproject.py#L163-L181
|
train
|
Moves the contents of the specified folder to the specified destination folder.
|
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(0b100001 + 0o17) + chr(111) + '\061' + chr(0b101001 + 0o14) + '\x32', 0o10), nzTpIcepk0o8(chr(2263 - 2215) + '\157' + chr(0b110011) + chr(0b110000) + '\x34', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(8682 - 8571) + chr(0b110010) + '\x31' + chr(1815 - 1765), 0o10), nzTpIcepk0o8('\060' + chr(9506 - 9395) + '\x31' + chr(554 - 500) + chr(0b110110), 0b1000), nzTpIcepk0o8(chr(0b100001 + 0o17) + chr(111) + chr(0b10100 + 0o42) + chr(1521 - 1471), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(49) + '\x36' + chr(0b1100 + 0o50), ord("\x08")), nzTpIcepk0o8(chr(64 - 16) + '\157' + chr(0b10111 + 0o37) + chr(0b1100 + 0o52), ord("\x08")), nzTpIcepk0o8(chr(0b10011 + 0o35) + '\157' + '\x33' + '\060' + chr(2191 - 2141), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1100 + 0o143) + '\061' + chr(0b1101 + 0o52) + chr(48), 0o10), nzTpIcepk0o8(chr(1665 - 1617) + chr(111) + chr(0b110010) + chr(54) + chr(0b110000), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x32' + '\061', ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(50) + chr(1973 - 1922) + chr(53), 0o10), nzTpIcepk0o8(chr(0b100 + 0o54) + chr(111) + chr(0b110110), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(52) + chr(0b100100 + 0o14), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b101001 + 0o16) + chr(53), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(51) + chr(53) + chr(1672 - 1621), 17722 - 17714), nzTpIcepk0o8('\060' + '\x6f' + chr(0b10 + 0o60) + '\x30' + chr(49), 61784 - 61776), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(53) + chr(49), ord("\x08")), nzTpIcepk0o8(chr(0b0 + 0o60) + chr(12236 - 12125) + '\065' + '\064', 0b1000), nzTpIcepk0o8('\x30' + chr(2927 - 2816) + chr(697 - 646) + chr(1778 - 1730), 0b1000), nzTpIcepk0o8('\060' + chr(0b1000000 + 0o57) + chr(52) + chr(0b11110 + 0o22), 8), nzTpIcepk0o8(chr(999 - 951) + '\x6f' + chr(434 - 381) + chr(0b110001), 8), nzTpIcepk0o8('\x30' + '\157' + chr(0b10001 + 0o46) + chr(55), 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(0b110001) + chr(0b110101) + chr(0b1011 + 0o53), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b10010 + 0o43) + chr(0b110100), 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(2099 - 2050) + chr(0b110000), 0b1000), nzTpIcepk0o8('\x30' + chr(2608 - 2497) + chr(49) + chr(53) + chr(0b110110), 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\063' + chr(0b110100) + chr(0b110111), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b111111 + 0o60) + '\x32' + chr(51) + chr(834 - 784), 45934 - 45926), nzTpIcepk0o8(chr(48) + chr(0b1000111 + 0o50) + '\x37' + '\063', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(1272 - 1221) + chr(0b1001 + 0o52) + chr(0b1110 + 0o44), 7123 - 7115), nzTpIcepk0o8(chr(48) + chr(111) + chr(2023 - 1974) + '\x32' + chr(0b110000), ord("\x08")), nzTpIcepk0o8(chr(2091 - 2043) + chr(111) + chr(0b110011 + 0o0) + '\x34' + chr(0b0 + 0o67), 8), nzTpIcepk0o8(chr(0b10110 + 0o32) + chr(6850 - 6739) + chr(135 - 86) + '\x37' + chr(55), 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(0b11101 + 0o24) + chr(0b110000) + '\067', 56330 - 56322), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(51) + '\060' + '\x34', 8), nzTpIcepk0o8('\060' + chr(0b111010 + 0o65) + '\067' + '\063', 8), nzTpIcepk0o8(chr(48) + '\157' + chr(50) + chr(0b10101 + 0o42) + chr(55), 0o10), nzTpIcepk0o8(chr(2036 - 1988) + chr(0b1101111) + chr(2408 - 2357) + chr(0b110000) + chr(885 - 837), 16139 - 16131), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(895 - 846) + '\064' + chr(0b110011), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + '\x6f' + chr(53) + chr(1840 - 1792), 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'D'), chr(7517 - 7417) + chr(101) + chr(9457 - 9358) + chr(0b1101100 + 0o3) + chr(0b1100100) + chr(0b1100101))('\165' + chr(7952 - 7836) + chr(102) + '\x2d' + chr(56)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def zSSSrhGu_S5Z(hXMPsSrOQzbh, jJYsaQE2l_C4, ZvPf2p7avF3N, **q5n0sHDDTy90):
T6VwPH4X4B2I = SsdNdRxXOwsF.api.container_move
if suIjIS24Zkqw(hXMPsSrOQzbh, sxYo2dozQU0n):
T6VwPH4X4B2I = SsdNdRxXOwsF.api.project_move
T6VwPH4X4B2I(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x0e\xf2\xc1#\\&g\xb4N\x87"\xa8'), chr(0b1001100 + 0o30) + chr(0b1100101) + '\x63' + chr(0b1101111) + '\x64' + '\145')('\165' + '\164' + chr(0b1100110) + chr(1956 - 1911) + '\070')), {roI3spqORKae(ES5oEprVxulp(b'\x0c\xab\xe6\x12W\x06E'), chr(0b111101 + 0o47) + '\145' + chr(4773 - 4674) + chr(111) + chr(100) + chr(0b1100101))(chr(117) + '\164' + '\146' + '\x2d' + '\x38'): [jJYsaQE2l_C4], roI3spqORKae(ES5oEprVxulp(b'\x0e\xa1\xf9\x02[\x1aW\xb6\x11\xdf\x7f'), '\x64' + chr(0b1011010 + 0o13) + chr(0b1100011) + chr(0b1101111) + chr(0b1011111 + 0o5) + chr(9222 - 9121))('\x75' + chr(0b1110100) + chr(0b1100110) + '\x2d' + chr(0b111000)): ZvPf2p7avF3N}, **q5n0sHDDTy90)
|
dnanexus/dx-toolkit
|
src/python/dxpy/bindings/dxproject.py
|
DXContainer.remove_folder
|
def remove_folder(self, folder, recurse=False, force=False, **kwargs):
"""
:param folder: Full path to the folder to remove
:type folder: string
:param recurse: If True, recursively remove all objects and subfolders in the folder
:type recurse: bool
:param force: If True, will suppress errors for folders that do not exist
:type force: bool
Removes the specified folder from the project or container. It
must be empty to be removed, unless *recurse* is True.
Removal propagates to any hidden objects that become unreachable
from any visible object in the same project or container as a
result of this operation. (This can only happen if *recurse* is
True.)
"""
api_method = dxpy.api.container_remove_folder
if isinstance(self, DXProject):
api_method = dxpy.api.project_remove_folder
completed = False
while not completed:
resp = api_method(self._dxid,
{"folder": folder, "recurse": recurse, "force": force, "partial": True},
always_retry=force, # api call is idempotent under 'force' semantics
**kwargs)
if 'completed' not in resp:
raise DXError('Error removing folder')
completed = resp['completed']
|
python
|
def remove_folder(self, folder, recurse=False, force=False, **kwargs):
"""
:param folder: Full path to the folder to remove
:type folder: string
:param recurse: If True, recursively remove all objects and subfolders in the folder
:type recurse: bool
:param force: If True, will suppress errors for folders that do not exist
:type force: bool
Removes the specified folder from the project or container. It
must be empty to be removed, unless *recurse* is True.
Removal propagates to any hidden objects that become unreachable
from any visible object in the same project or container as a
result of this operation. (This can only happen if *recurse* is
True.)
"""
api_method = dxpy.api.container_remove_folder
if isinstance(self, DXProject):
api_method = dxpy.api.project_remove_folder
completed = False
while not completed:
resp = api_method(self._dxid,
{"folder": folder, "recurse": recurse, "force": force, "partial": True},
always_retry=force, # api call is idempotent under 'force' semantics
**kwargs)
if 'completed' not in resp:
raise DXError('Error removing folder')
completed = resp['completed']
|
[
"def",
"remove_folder",
"(",
"self",
",",
"folder",
",",
"recurse",
"=",
"False",
",",
"force",
"=",
"False",
",",
"*",
"*",
"kwargs",
")",
":",
"api_method",
"=",
"dxpy",
".",
"api",
".",
"container_remove_folder",
"if",
"isinstance",
"(",
"self",
",",
"DXProject",
")",
":",
"api_method",
"=",
"dxpy",
".",
"api",
".",
"project_remove_folder",
"completed",
"=",
"False",
"while",
"not",
"completed",
":",
"resp",
"=",
"api_method",
"(",
"self",
".",
"_dxid",
",",
"{",
"\"folder\"",
":",
"folder",
",",
"\"recurse\"",
":",
"recurse",
",",
"\"force\"",
":",
"force",
",",
"\"partial\"",
":",
"True",
"}",
",",
"always_retry",
"=",
"force",
",",
"# api call is idempotent under 'force' semantics",
"*",
"*",
"kwargs",
")",
"if",
"'completed'",
"not",
"in",
"resp",
":",
"raise",
"DXError",
"(",
"'Error removing folder'",
")",
"completed",
"=",
"resp",
"[",
"'completed'",
"]"
] |
:param folder: Full path to the folder to remove
:type folder: string
:param recurse: If True, recursively remove all objects and subfolders in the folder
:type recurse: bool
:param force: If True, will suppress errors for folders that do not exist
:type force: bool
Removes the specified folder from the project or container. It
must be empty to be removed, unless *recurse* is True.
Removal propagates to any hidden objects that become unreachable
from any visible object in the same project or container as a
result of this operation. (This can only happen if *recurse* is
True.)
|
[
":",
"param",
"folder",
":",
"Full",
"path",
"to",
"the",
"folder",
"to",
"remove",
":",
"type",
"folder",
":",
"string",
":",
"param",
"recurse",
":",
"If",
"True",
"recursively",
"remove",
"all",
"objects",
"and",
"subfolders",
"in",
"the",
"folder",
":",
"type",
"recurse",
":",
"bool",
":",
"param",
"force",
":",
"If",
"True",
"will",
"suppress",
"errors",
"for",
"folders",
"that",
"do",
"not",
"exist",
":",
"type",
"force",
":",
"bool"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxproject.py#L183-L213
|
train
|
Removes the specified folder from the project or container.
|
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5K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kNqd1bagO6,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(0b11101 + 0o23) + chr(111) + chr(2321 - 2272) + '\060' + chr(0b101101 + 0o5), 0b1000), nzTpIcepk0o8('\060' + chr(0b100010 + 0o115) + chr(2915 - 2861) + chr(53), 0b1000), nzTpIcepk0o8('\x30' + chr(5206 - 5095) + chr(51) + chr(182 - 132) + '\061', 0b1000), nzTpIcepk0o8(chr(0b101100 + 0o4) + '\157' + chr(0b110011) + '\x37' + chr(50), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + '\x33' + chr(0b10101 + 0o34) + chr(0b100010 + 0o17), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(0b10111 + 0o37) + chr(1138 - 1083), 54226 - 54218), nzTpIcepk0o8(chr(0b1111 + 0o41) + chr(4979 - 4868) + chr(0b110010) + '\064', 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110011) + chr(52) + chr(0b11 + 0o57), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(0b111 + 0o52) + chr(0b110000) + '\062', 8), nzTpIcepk0o8(chr(598 - 550) + chr(111) + '\061' + '\062' + chr(1824 - 1774), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(861 - 811) + chr(0b0 + 0o62) + chr(52), 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(49) + chr(0b110 + 0o53) + chr(0b1110 + 0o46), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(54) + '\062', 27057 - 27049), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110010) + chr(0b101100 + 0o7) + chr(0b110101), 0o10), nzTpIcepk0o8('\x30' + chr(0b11101 + 0o122) + chr(0b100111 + 0o12) + '\060' + '\066', 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(51) + '\061' + '\067', 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110010) + chr(51), 0b1000), nzTpIcepk0o8('\x30' + chr(8283 - 8172) + chr(0b11001 + 0o32) + '\x31' + '\x35', 0b1000), nzTpIcepk0o8(chr(1908 - 1860) + '\157' + chr(50) + chr(888 - 840) + chr(0b101001 + 0o7), 0b1000), nzTpIcepk0o8('\060' + '\157' + '\067' + chr(0b101011 + 0o10), ord("\x08")), nzTpIcepk0o8(chr(78 - 30) + chr(3545 - 3434) + '\x32' + chr(1754 - 1705) + chr(0b11111 + 0o30), ord("\x08")), nzTpIcepk0o8(chr(1986 - 1938) + chr(111) + chr(0b110001) + '\066' + '\060', 52110 - 52102), nzTpIcepk0o8(chr(0b100100 + 0o14) + chr(111) + '\063' + '\x34' + '\060', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1011001 + 0o26) + chr(0b110111) + '\067', 0b1000), nzTpIcepk0o8(chr(0b10110 + 0o32) + chr(0b1100110 + 0o11) + chr(0b101101 + 0o4) + chr(52) + '\066', ord("\x08")), nzTpIcepk0o8(chr(0b100000 + 0o20) + '\x6f' + chr(0b100110 + 0o14) + chr(1413 - 1361) + chr(0b100101 + 0o13), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(0b100111 + 0o12) + chr(0b11010 + 0o32) + chr(54), 8), nzTpIcepk0o8('\060' + chr(0b1001000 + 0o47) + '\064', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x30', 0o10), nzTpIcepk0o8(chr(820 - 772) + chr(0b111100 + 0o63) + '\062' + chr(795 - 740) + chr(49), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1011001 + 0o26) + chr(2176 - 2126) + '\062' + chr(52), 8), nzTpIcepk0o8(chr(48) + chr(0b1100000 + 0o17) + chr(938 - 888) + chr(51), 8), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\062' + chr(0b100000 + 0o23) + chr(49), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(51) + chr(49) + chr(49), 8), nzTpIcepk0o8(chr(0b1101 + 0o43) + chr(0b110111 + 0o70) + chr(0b10001 + 0o42) + '\x30' + chr(0b110100), 0o10), nzTpIcepk0o8('\x30' + chr(12318 - 12207) + chr(0b110010) + '\062' + '\065', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(1466 - 1416) + chr(0b101010 + 0o14) + '\061', 37688 - 37680), nzTpIcepk0o8(chr(48) + chr(6021 - 5910) + chr(1630 - 1576) + chr(0b110000), 0o10), nzTpIcepk0o8(chr(1257 - 1209) + chr(111) + chr(53), 0b1000), nzTpIcepk0o8('\060' + '\157' + chr(0b100100 + 0o16) + chr(0b110100 + 0o1) + '\x31', ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + chr(2300 - 2189) + chr(53) + chr(774 - 726), 4529 - 4521)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'l'), chr(2901 - 2801) + chr(6411 - 6310) + chr(99) + chr(0b1101010 + 0o5) + '\144' + '\145')(chr(0b1011 + 0o152) + chr(116) + '\x66' + '\055' + '\070') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def rtpfOz25N6vF(hXMPsSrOQzbh, jJYsaQE2l_C4, w2xgm1neLvkh=nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(1241 - 1193), 8), OvOzCHkwm33O=nzTpIcepk0o8(chr(48) + chr(111) + chr(542 - 494), 8), **q5n0sHDDTy90):
T6VwPH4X4B2I = SsdNdRxXOwsF.api.container_remove_folder
if suIjIS24Zkqw(hXMPsSrOQzbh, sxYo2dozQU0n):
T6VwPH4X4B2I = SsdNdRxXOwsF.api.project_remove_folder
JFm5zLDo1O0B = nzTpIcepk0o8(chr(194 - 146) + chr(265 - 154) + chr(48), 8)
while not JFm5zLDo1O0B:
xxhWttsUDUCM = T6VwPH4X4B2I(hXMPsSrOQzbh.d6KUnRQv6735, {roI3spqORKae(ES5oEprVxulp(b'$Z\xbd\x9e\xacE'), chr(7432 - 7332) + chr(101) + chr(0b1100011) + '\x6f' + chr(0b1011110 + 0o6) + '\x65')(chr(0b1011001 + 0o34) + '\x74' + chr(7462 - 7360) + '\x2d' + chr(1940 - 1884)): jJYsaQE2l_C4, roI3spqORKae(ES5oEprVxulp(b'0P\xb2\x8f\xbbDq'), chr(100) + '\145' + chr(0b1 + 0o142) + chr(111) + chr(4599 - 4499) + '\x65')('\165' + '\164' + '\146' + '\055' + chr(0b1110 + 0o52)): w2xgm1neLvkh, roI3spqORKae(ES5oEprVxulp(b'$Z\xa3\x99\xac'), chr(1758 - 1658) + chr(0b1100101) + chr(0b1100011) + chr(3848 - 3737) + chr(100) + chr(0b1001110 + 0o27))(chr(1699 - 1582) + chr(116) + '\146' + '\055' + chr(2158 - 2102)): OvOzCHkwm33O, roI3spqORKae(ES5oEprVxulp(b'2T\xa3\x8e\xa0Vx'), chr(100) + '\x65' + chr(0b1100011) + '\157' + chr(100) + chr(0b1100101))(chr(8550 - 8433) + chr(484 - 368) + chr(9521 - 9419) + '\x2d' + chr(0b111000)): nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(49), 0o10)}, always_retry=OvOzCHkwm33O, **q5n0sHDDTy90)
if roI3spqORKae(ES5oEprVxulp(b'!Z\xbc\x8a\xa5R`\x87&'), chr(100) + chr(0b1100101) + '\x63' + chr(111) + '\x64' + chr(4279 - 4178))(chr(7588 - 7471) + chr(9171 - 9055) + '\x66' + '\055' + chr(2599 - 2543)) not in xxhWttsUDUCM:
raise JPU16lJ2koBU(roI3spqORKae(ES5oEprVxulp(b'\x07G\xa3\x95\xbb\x17f\x87/=\xe2%\\\xfaf\xa9|\xa1\xe4^\xfd'), chr(8877 - 8777) + chr(101) + '\x63' + chr(0b1100100 + 0o13) + chr(0b1100100) + chr(101))(chr(117) + chr(909 - 793) + '\146' + chr(1361 - 1316) + chr(0b11101 + 0o33)))
JFm5zLDo1O0B = xxhWttsUDUCM[roI3spqORKae(ES5oEprVxulp(b'!Z\xbc\x8a\xa5R`\x87&'), '\x64' + chr(0b1100101) + chr(0b1100011) + chr(111) + '\144' + '\145')(chr(0b11010 + 0o133) + chr(116) + '\x66' + chr(0b101010 + 0o3) + '\x38')]
|
dnanexus/dx-toolkit
|
src/python/dxpy/bindings/dxproject.py
|
DXContainer.remove_objects
|
def remove_objects(self, objects, force=False, **kwargs):
"""
:param objects: List of object IDs to remove from the project or container
:type objects: list of strings
:param force: If True, will suppress errors for objects that do not exist
:type force: bool
Removes the specified objects from the project or container.
Removal propagates to any hidden objects that become unreachable
from any visible object in the same project or container as a
result of this operation.
"""
api_method = dxpy.api.container_remove_objects
if isinstance(self, DXProject):
api_method = dxpy.api.project_remove_objects
api_method(self._dxid,
{"objects": objects, "force": force},
always_retry=force, # api call is idempotent under 'force' semantics
**kwargs)
|
python
|
def remove_objects(self, objects, force=False, **kwargs):
"""
:param objects: List of object IDs to remove from the project or container
:type objects: list of strings
:param force: If True, will suppress errors for objects that do not exist
:type force: bool
Removes the specified objects from the project or container.
Removal propagates to any hidden objects that become unreachable
from any visible object in the same project or container as a
result of this operation.
"""
api_method = dxpy.api.container_remove_objects
if isinstance(self, DXProject):
api_method = dxpy.api.project_remove_objects
api_method(self._dxid,
{"objects": objects, "force": force},
always_retry=force, # api call is idempotent under 'force' semantics
**kwargs)
|
[
"def",
"remove_objects",
"(",
"self",
",",
"objects",
",",
"force",
"=",
"False",
",",
"*",
"*",
"kwargs",
")",
":",
"api_method",
"=",
"dxpy",
".",
"api",
".",
"container_remove_objects",
"if",
"isinstance",
"(",
"self",
",",
"DXProject",
")",
":",
"api_method",
"=",
"dxpy",
".",
"api",
".",
"project_remove_objects",
"api_method",
"(",
"self",
".",
"_dxid",
",",
"{",
"\"objects\"",
":",
"objects",
",",
"\"force\"",
":",
"force",
"}",
",",
"always_retry",
"=",
"force",
",",
"# api call is idempotent under 'force' semantics",
"*",
"*",
"kwargs",
")"
] |
:param objects: List of object IDs to remove from the project or container
:type objects: list of strings
:param force: If True, will suppress errors for objects that do not exist
:type force: bool
Removes the specified objects from the project or container.
Removal propagates to any hidden objects that become unreachable
from any visible object in the same project or container as a
result of this operation.
|
[
":",
"param",
"objects",
":",
"List",
"of",
"object",
"IDs",
"to",
"remove",
"from",
"the",
"project",
"or",
"container",
":",
"type",
"objects",
":",
"list",
"of",
"strings",
":",
"param",
"force",
":",
"If",
"True",
"will",
"suppress",
"errors",
"for",
"objects",
"that",
"do",
"not",
"exist",
":",
"type",
"force",
":",
"bool"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxproject.py#L215-L236
|
train
|
Removes the specified objects from the project or container.
|
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympY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c3n6e0b,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(823 - 775) + '\157' + chr(1888 - 1834), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(2289 - 2238) + '\062' + chr(0b11000 + 0o36), ord("\x08")), nzTpIcepk0o8(chr(0b10110 + 0o32) + '\157' + '\062' + chr(0b100111 + 0o13), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(895 - 846) + chr(54), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(0b1011 + 0o47) + '\x36' + '\066', ord("\x08")), nzTpIcepk0o8(chr(765 - 717) + chr(111) + '\x33' + chr(0b110010) + '\x37', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1000011 + 0o54) + chr(0b110010) + chr(0b110110) + '\x35', 52814 - 52806), nzTpIcepk0o8('\x30' + '\x6f' + chr(49) + chr(0b101111 + 0o10) + '\x35', 0b1000), nzTpIcepk0o8(chr(284 - 236) + chr(11670 - 11559) + chr(51) + '\065' + chr(0b110010), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(9673 - 9562) + '\065' + chr(0b110100), ord("\x08")), nzTpIcepk0o8('\x30' + chr(8801 - 8690) + chr(49) + '\x36' + chr(1674 - 1623), 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(49) + chr(0b110001) + '\060', 0b1000), nzTpIcepk0o8(chr(0b1010 + 0o46) + '\157' + chr(1094 - 1045) + '\065', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(12302 - 12191) + '\x31' + chr(0b11100 + 0o30) + '\x31', 46429 - 46421), nzTpIcepk0o8(chr(745 - 697) + '\157' + chr(0b1000 + 0o52) + '\065', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x33' + '\x33' + '\063', ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + '\x31' + '\067' + chr(0b110111), 0o10), nzTpIcepk0o8(chr(48) + '\157' + '\x31' + '\x32' + '\x34', ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(380 - 328) + chr(0b1 + 0o62), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(535 - 486) + chr(0b101 + 0o53) + '\063', 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(2162 - 2112) + chr(54) + chr(0b10110 + 0o34), 38609 - 38601), nzTpIcepk0o8(chr(48) + '\x6f' + '\062' + chr(48) + chr(55), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110011), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b11111 + 0o120) + chr(50) + chr(0b110111) + chr(0b10110 + 0o36), ord("\x08")), nzTpIcepk0o8('\060' + chr(7386 - 7275) + '\063' + '\067' + '\x30', 64657 - 64649), nzTpIcepk0o8(chr(226 - 178) + '\157' + '\x33' + '\062', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(51) + '\063' + '\065', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110011) + '\066' + '\x32', 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + '\064' + '\x30', ord("\x08")), nzTpIcepk0o8(chr(0b10100 + 0o34) + '\x6f' + chr(0b100010 + 0o20) + '\067' + chr(1407 - 1354), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110100) + chr(0b110100), 0o10), nzTpIcepk0o8(chr(793 - 745) + chr(0b1101111) + '\x36' + '\062', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b10111 + 0o130) + chr(49) + chr(1519 - 1468) + chr(694 - 641), 46660 - 46652), nzTpIcepk0o8('\060' + chr(11666 - 11555) + chr(0b110100), 0o10), nzTpIcepk0o8('\x30' + chr(0b111100 + 0o63) + '\x32' + chr(50) + chr(49), 0b1000), nzTpIcepk0o8(chr(0b101010 + 0o6) + chr(111) + chr(0b110001) + chr(0b110110 + 0o0) + '\066', 0b1000), nzTpIcepk0o8(chr(359 - 311) + chr(0b1011010 + 0o25) + '\x33' + chr(51) + '\x32', 0o10), nzTpIcepk0o8(chr(48) + '\157' + '\x33' + '\x34' + chr(2142 - 2091), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\062' + chr(0b110111) + chr(270 - 217), 8), nzTpIcepk0o8(chr(48) + '\157' + chr(554 - 505) + '\x34' + chr(768 - 714), 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110001 + 0o4) + '\060', 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'('), chr(2008 - 1908) + chr(0b1100101) + chr(0b1100011) + chr(0b11110 + 0o121) + '\144' + chr(0b110001 + 0o64))('\x75' + '\164' + chr(0b1001011 + 0o33) + chr(45) + chr(56)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def _OmY9GhDsom6(hXMPsSrOQzbh, unFw4B5pa4XN, OvOzCHkwm33O=nzTpIcepk0o8('\060' + chr(111) + chr(48), 0b1000), **q5n0sHDDTy90):
T6VwPH4X4B2I = SsdNdRxXOwsF.api.container_remove_objects
if suIjIS24Zkqw(hXMPsSrOQzbh, sxYo2dozQU0n):
T6VwPH4X4B2I = SsdNdRxXOwsF.api.project_remove_objects
T6VwPH4X4B2I(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'b\xe0Y[\xd8\x85\xe4\x0b\xdc\x1b@}'), '\x64' + '\145' + chr(0b110100 + 0o57) + chr(8336 - 8225) + chr(100) + chr(0b1100101))(chr(117) + chr(10235 - 10119) + chr(0b11000 + 0o116) + '\x2d' + '\x38')), {roI3spqORKae(ES5oEprVxulp(b'i\xb4xk\xd5\xa3\xc6'), '\144' + chr(101) + '\143' + chr(1462 - 1351) + chr(100) + chr(5729 - 5628))(chr(117) + chr(116) + chr(8836 - 8734) + chr(45) + '\x38'): unFw4B5pa4XN, roI3spqORKae(ES5oEprVxulp(b'`\xb9`m\xd3'), '\x64' + '\145' + chr(7140 - 7041) + '\157' + '\144' + '\145')(chr(117) + chr(116) + chr(5885 - 5783) + chr(0b100111 + 0o6) + '\070'): OvOzCHkwm33O}, always_retry=OvOzCHkwm33O, **q5n0sHDDTy90)
|
dnanexus/dx-toolkit
|
src/python/dxpy/bindings/dxproject.py
|
DXContainer.clone
|
def clone(self, container, destination="/", objects=[], folders=[], parents=False, **kwargs):
"""
:param container: Destination container ID
:type container: string
:param destination: Path of destination folder in the destination container
:type destination: string
:param objects: List of object IDs to move
:type objects: list of strings
:param folders: List of full paths to folders to move
:type folders: list of strings
:param parents: Whether the destination folder and/or parent folders should be created if they do not exist
:type parents: boolean
Clones (copies) the specified objects and folders in the
container into the folder *destination* in the container
*container*. Cloning a folder also clones all all folders and
objects it contains. If an object or folder is explicitly
specified but also appears inside another specified folder, it
will be removed from its parent folder and placed directly in
*destination*. No objects or folders are modified in the source
container.
Objects must be in the "closed" state to be cloned.
"""
api_method = dxpy.api.container_clone
if isinstance(self, DXProject):
api_method = dxpy.api.project_clone
return api_method(self._dxid,
{"objects": objects,
"folders": folders,
"project": container,
"destination": destination,
"parents": parents},
**kwargs)
|
python
|
def clone(self, container, destination="/", objects=[], folders=[], parents=False, **kwargs):
"""
:param container: Destination container ID
:type container: string
:param destination: Path of destination folder in the destination container
:type destination: string
:param objects: List of object IDs to move
:type objects: list of strings
:param folders: List of full paths to folders to move
:type folders: list of strings
:param parents: Whether the destination folder and/or parent folders should be created if they do not exist
:type parents: boolean
Clones (copies) the specified objects and folders in the
container into the folder *destination* in the container
*container*. Cloning a folder also clones all all folders and
objects it contains. If an object or folder is explicitly
specified but also appears inside another specified folder, it
will be removed from its parent folder and placed directly in
*destination*. No objects or folders are modified in the source
container.
Objects must be in the "closed" state to be cloned.
"""
api_method = dxpy.api.container_clone
if isinstance(self, DXProject):
api_method = dxpy.api.project_clone
return api_method(self._dxid,
{"objects": objects,
"folders": folders,
"project": container,
"destination": destination,
"parents": parents},
**kwargs)
|
[
"def",
"clone",
"(",
"self",
",",
"container",
",",
"destination",
"=",
"\"/\"",
",",
"objects",
"=",
"[",
"]",
",",
"folders",
"=",
"[",
"]",
",",
"parents",
"=",
"False",
",",
"*",
"*",
"kwargs",
")",
":",
"api_method",
"=",
"dxpy",
".",
"api",
".",
"container_clone",
"if",
"isinstance",
"(",
"self",
",",
"DXProject",
")",
":",
"api_method",
"=",
"dxpy",
".",
"api",
".",
"project_clone",
"return",
"api_method",
"(",
"self",
".",
"_dxid",
",",
"{",
"\"objects\"",
":",
"objects",
",",
"\"folders\"",
":",
"folders",
",",
"\"project\"",
":",
"container",
",",
"\"destination\"",
":",
"destination",
",",
"\"parents\"",
":",
"parents",
"}",
",",
"*",
"*",
"kwargs",
")"
] |
:param container: Destination container ID
:type container: string
:param destination: Path of destination folder in the destination container
:type destination: string
:param objects: List of object IDs to move
:type objects: list of strings
:param folders: List of full paths to folders to move
:type folders: list of strings
:param parents: Whether the destination folder and/or parent folders should be created if they do not exist
:type parents: boolean
Clones (copies) the specified objects and folders in the
container into the folder *destination* in the container
*container*. Cloning a folder also clones all all folders and
objects it contains. If an object or folder is explicitly
specified but also appears inside another specified folder, it
will be removed from its parent folder and placed directly in
*destination*. No objects or folders are modified in the source
container.
Objects must be in the "closed" state to be cloned.
|
[
":",
"param",
"container",
":",
"Destination",
"container",
"ID",
":",
"type",
"container",
":",
"string",
":",
"param",
"destination",
":",
"Path",
"of",
"destination",
"folder",
"in",
"the",
"destination",
"container",
":",
"type",
"destination",
":",
"string",
":",
"param",
"objects",
":",
"List",
"of",
"object",
"IDs",
"to",
"move",
":",
"type",
"objects",
":",
"list",
"of",
"strings",
":",
"param",
"folders",
":",
"List",
"of",
"full",
"paths",
"to",
"folders",
"to",
"move",
":",
"type",
"folders",
":",
"list",
"of",
"strings",
":",
"param",
"parents",
":",
"Whether",
"the",
"destination",
"folder",
"and",
"/",
"or",
"parent",
"folders",
"should",
"be",
"created",
"if",
"they",
"do",
"not",
"exist",
":",
"type",
"parents",
":",
"boolean"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxproject.py#L238-L273
|
train
|
Clones the specified objects and folders in the specified container into the specified destination folder.
|
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,w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4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__
ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(48) + '\157' + chr(0b110010) + '\064' + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(300 - 249) + '\x33', ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(2464 - 2414) + chr(0b110110) + chr(1647 - 1593), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(0b110011) + chr(0b110101) + chr(0b110110), ord("\x08")), nzTpIcepk0o8('\060' + chr(4079 - 3968) + chr(0b110110 + 0o1) + chr(855 - 806), 0b1000), nzTpIcepk0o8('\060' + chr(0b101011 + 0o104) + chr(1861 - 1810) + chr(0b110110) + '\x32', 57494 - 57486), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(51) + chr(55) + chr(48), 0b1000), nzTpIcepk0o8('\060' + '\157' + chr(2200 - 2150) + '\061' + chr(54), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(4697 - 4586) + '\062' + '\065' + chr(0b110011), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + '\067' + chr(0b101100 + 0o12), 52760 - 52752), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b10011 + 0o36) + chr(0b111 + 0o60) + chr(1001 - 950), 0b1000), nzTpIcepk0o8(chr(48) + chr(11807 - 11696) + '\064' + '\067', ord("\x08")), nzTpIcepk0o8('\060' + chr(123 - 12) + chr(0b100000 + 0o22) + '\060' + chr(2205 - 2152), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + '\062' + chr(50) + chr(0b110001), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101 + 0o142) + chr(0b110001) + chr(48) + '\066', 42822 - 42814), nzTpIcepk0o8(chr(0b10000 + 0o40) + chr(111) + chr(50) + chr(0b110011) + chr(0b10110 + 0o36), 49511 - 49503), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110001) + chr(0b1101 + 0o51) + '\063', 0b1000), nzTpIcepk0o8(chr(1161 - 1113) + '\157' + chr(2095 - 2046) + chr(100 - 52) + chr(1721 - 1666), 59615 - 59607), nzTpIcepk0o8(chr(0b10000 + 0o40) + chr(111) + '\062' + chr(0b110011) + chr(1580 - 1528), 8), nzTpIcepk0o8('\060' + chr(111) + '\063' + chr(55) + '\062', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110001) + chr(0b1 + 0o66) + chr(0b100000 + 0o20), ord("\x08")), nzTpIcepk0o8(chr(1261 - 1213) + '\x6f' + chr(0b110101) + '\x32', 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x33', 0o10), nzTpIcepk0o8(chr(0b101 + 0o53) + chr(111) + chr(0b110111) + chr(0b100011 + 0o16), 8), nzTpIcepk0o8('\060' + chr(111) + chr(51) + chr(0b11111 + 0o24) + chr(1174 - 1119), ord("\x08")), nzTpIcepk0o8(chr(0b11001 + 0o27) + chr(111) + chr(49) + '\x35', 719 - 711), nzTpIcepk0o8(chr(1882 - 1834) + chr(111) + chr(50) + chr(52) + chr(1271 - 1222), 8), nzTpIcepk0o8(chr(0b1110 + 0o42) + chr(0b1111 + 0o140) + chr(51), 8), nzTpIcepk0o8('\060' + chr(0b10100 + 0o133) + chr(50) + chr(0b1000 + 0o51) + chr(0b10110 + 0o32), 0o10), nzTpIcepk0o8(chr(231 - 183) + chr(0b1101111) + chr(0b110001) + chr(471 - 422), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\063' + '\061' + chr(50), 0b1000), nzTpIcepk0o8('\060' + chr(597 - 486) + '\x31' + chr(49), 8), nzTpIcepk0o8(chr(1740 - 1692) + '\157' + chr(53) + chr(55), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x33' + chr(0b110100) + '\063', 0o10), nzTpIcepk0o8(chr(1600 - 1552) + '\157' + chr(0b110011) + '\060' + chr(0b1011 + 0o52), 0o10), nzTpIcepk0o8(chr(0b10000 + 0o40) + '\x6f' + '\x32' + chr(0b111 + 0o57), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(288 - 237) + chr(52) + '\067', ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(1423 - 1374) + '\x31' + chr(276 - 225), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\063' + chr(55) + '\x37', 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(1897 - 1848) + chr(0b11100 + 0o32) + '\066', ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + 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'\x8f'), chr(0b110 + 0o136) + '\x65' + chr(4125 - 4026) + chr(0b1101 + 0o142) + chr(100) + chr(0b1011000 + 0o15))('\165' + '\164' + chr(102) + chr(0b101101) + chr(0b111000)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def SXuP0tUUXymu(hXMPsSrOQzbh, LjETPHM4c_0l, ZvPf2p7avF3N=roI3spqORKae(ES5oEprVxulp(b'\x8e'), chr(9582 - 9482) + '\145' + '\143' + chr(111) + chr(100) + chr(0b101010 + 0o73))(chr(117) + '\x74' + '\x66' + chr(0b101101) + chr(1951 - 1895)), unFw4B5pa4XN=[], ai1HwZ6BJd2i=[], nP99tO3t3cvU=nzTpIcepk0o8('\x30' + '\157' + '\060', 0o10), **q5n0sHDDTy90):
T6VwPH4X4B2I = SsdNdRxXOwsF.api.container_clone
if suIjIS24Zkqw(hXMPsSrOQzbh, sxYo2dozQU0n):
T6VwPH4X4B2I = SsdNdRxXOwsF.api.project_clone
return T6VwPH4X4B2I(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xc5-\xfd\xbbW\xa0\xa9\xf8\x9d\tH\x12'), chr(0b10101 + 0o117) + chr(0b1010010 + 0o23) + '\x63' + '\157' + chr(100) + '\x65')(chr(117) + chr(0b1110100) + '\x66' + chr(45) + '\070')), {roI3spqORKae(ES5oEprVxulp(b'\xcey\xdc\x8bZ\x86\x8b'), '\x64' + chr(101) + chr(6373 - 6274) + '\157' + '\x64' + chr(101))(chr(0b10101 + 0o140) + chr(0b1110100) + '\x66' + '\055' + chr(102 - 46)): unFw4B5pa4XN, roI3spqORKae(ES5oEprVxulp(b'\xc7t\xda\x8a\\\x80\x8b'), chr(0b1100100) + '\145' + chr(99) + chr(0b1101101 + 0o2) + chr(7914 - 7814) + chr(101))(chr(0b101101 + 0o110) + chr(1525 - 1409) + '\146' + '\055' + chr(1214 - 1158)): ai1HwZ6BJd2i, roI3spqORKae(ES5oEprVxulp(b'\xd1i\xd9\x84\\\x91\x8c'), chr(0b1100100) + '\x65' + chr(1468 - 1369) + chr(3652 - 3541) + chr(3380 - 3280) + '\145')(chr(8090 - 7973) + chr(0b1110010 + 0o2) + '\146' + '\055' + '\x38'): LjETPHM4c_0l, roI3spqORKae(ES5oEprVxulp(b'\xc5~\xc5\x9aP\x9c\x99\xfa\xc2Q\x15'), chr(0b1100100) + chr(0b1100101) + chr(0b1100011) + chr(0b1101111) + '\x64' + '\x65')('\x75' + chr(9204 - 9088) + chr(1730 - 1628) + chr(0b101101) + chr(56)): ZvPf2p7avF3N, roI3spqORKae(ES5oEprVxulp(b'\xd1z\xc4\x8bW\x86\x8b'), chr(0b1001010 + 0o32) + '\145' + chr(0b1100011) + chr(0b1011 + 0o144) + chr(0b1011010 + 0o12) + chr(101))(chr(0b11110 + 0o127) + chr(0b10110 + 0o136) + '\146' + chr(517 - 472) + '\x38'): nP99tO3t3cvU}, **q5n0sHDDTy90)
|
dnanexus/dx-toolkit
|
src/python/dxpy/bindings/dxproject.py
|
DXProject.new
|
def new(self, name, summary=None, description=None, protected=None,
restricted=None, download_restricted=None, contains_phi=None, tags=None,
properties=None, bill_to=None, **kwargs):
"""
:param name: The name of the project
:type name: string
:param summary: If provided, a short summary of what the project contains
:type summary: string
:param description: If provided, the new project description
:type name: string
:param protected: If provided, whether the project should be protected
:type protected: boolean
:param restricted: If provided, whether the project should be restricted
:type restricted: boolean
:param download_restricted: If provided, whether external downloads should be restricted
:type download_restricted: boolean
:param contains_phi: If provided, whether the project should be marked as containing protected health information (PHI)
:type contains_phi: boolean
:param tags: If provided, tags to associate with the project
:type tags: list of strings
:param properties: If provided, properties to associate with the project
:type properties: dict
:param bill_to: If provided, ID of the entity to which any costs associated with this project will be billed; must be the ID of the requesting user or an org of which the requesting user is a member with allowBillableActivities permission
:type bill_to: string
Creates a new project. Initially only the user performing this action
will be in the permissions/member list, with ADMINISTER access.
See the API documentation for the `/project/new
<https://wiki.dnanexus.com/API-Specification-v1.0.0/Projects#API-method%3A-%2Fproject%2Fnew>`_
method for more info.
"""
input_hash = {}
input_hash["name"] = name
if summary is not None:
input_hash["summary"] = summary
if description is not None:
input_hash["description"] = description
if protected is not None:
input_hash["protected"] = protected
if restricted is not None:
input_hash["restricted"] = restricted
if download_restricted is not None:
input_hash["downloadRestricted"] = download_restricted
if contains_phi is not None:
input_hash["containsPHI"] = contains_phi
if bill_to is not None:
input_hash["billTo"] = bill_to
if tags is not None:
input_hash["tags"] = tags
if properties is not None:
input_hash["properties"] = properties
self.set_id(dxpy.api.project_new(input_hash, **kwargs)["id"])
self._desc = {}
return self._dxid
|
python
|
def new(self, name, summary=None, description=None, protected=None,
restricted=None, download_restricted=None, contains_phi=None, tags=None,
properties=None, bill_to=None, **kwargs):
"""
:param name: The name of the project
:type name: string
:param summary: If provided, a short summary of what the project contains
:type summary: string
:param description: If provided, the new project description
:type name: string
:param protected: If provided, whether the project should be protected
:type protected: boolean
:param restricted: If provided, whether the project should be restricted
:type restricted: boolean
:param download_restricted: If provided, whether external downloads should be restricted
:type download_restricted: boolean
:param contains_phi: If provided, whether the project should be marked as containing protected health information (PHI)
:type contains_phi: boolean
:param tags: If provided, tags to associate with the project
:type tags: list of strings
:param properties: If provided, properties to associate with the project
:type properties: dict
:param bill_to: If provided, ID of the entity to which any costs associated with this project will be billed; must be the ID of the requesting user or an org of which the requesting user is a member with allowBillableActivities permission
:type bill_to: string
Creates a new project. Initially only the user performing this action
will be in the permissions/member list, with ADMINISTER access.
See the API documentation for the `/project/new
<https://wiki.dnanexus.com/API-Specification-v1.0.0/Projects#API-method%3A-%2Fproject%2Fnew>`_
method for more info.
"""
input_hash = {}
input_hash["name"] = name
if summary is not None:
input_hash["summary"] = summary
if description is not None:
input_hash["description"] = description
if protected is not None:
input_hash["protected"] = protected
if restricted is not None:
input_hash["restricted"] = restricted
if download_restricted is not None:
input_hash["downloadRestricted"] = download_restricted
if contains_phi is not None:
input_hash["containsPHI"] = contains_phi
if bill_to is not None:
input_hash["billTo"] = bill_to
if tags is not None:
input_hash["tags"] = tags
if properties is not None:
input_hash["properties"] = properties
self.set_id(dxpy.api.project_new(input_hash, **kwargs)["id"])
self._desc = {}
return self._dxid
|
[
"def",
"new",
"(",
"self",
",",
"name",
",",
"summary",
"=",
"None",
",",
"description",
"=",
"None",
",",
"protected",
"=",
"None",
",",
"restricted",
"=",
"None",
",",
"download_restricted",
"=",
"None",
",",
"contains_phi",
"=",
"None",
",",
"tags",
"=",
"None",
",",
"properties",
"=",
"None",
",",
"bill_to",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"input_hash",
"=",
"{",
"}",
"input_hash",
"[",
"\"name\"",
"]",
"=",
"name",
"if",
"summary",
"is",
"not",
"None",
":",
"input_hash",
"[",
"\"summary\"",
"]",
"=",
"summary",
"if",
"description",
"is",
"not",
"None",
":",
"input_hash",
"[",
"\"description\"",
"]",
"=",
"description",
"if",
"protected",
"is",
"not",
"None",
":",
"input_hash",
"[",
"\"protected\"",
"]",
"=",
"protected",
"if",
"restricted",
"is",
"not",
"None",
":",
"input_hash",
"[",
"\"restricted\"",
"]",
"=",
"restricted",
"if",
"download_restricted",
"is",
"not",
"None",
":",
"input_hash",
"[",
"\"downloadRestricted\"",
"]",
"=",
"download_restricted",
"if",
"contains_phi",
"is",
"not",
"None",
":",
"input_hash",
"[",
"\"containsPHI\"",
"]",
"=",
"contains_phi",
"if",
"bill_to",
"is",
"not",
"None",
":",
"input_hash",
"[",
"\"billTo\"",
"]",
"=",
"bill_to",
"if",
"tags",
"is",
"not",
"None",
":",
"input_hash",
"[",
"\"tags\"",
"]",
"=",
"tags",
"if",
"properties",
"is",
"not",
"None",
":",
"input_hash",
"[",
"\"properties\"",
"]",
"=",
"properties",
"self",
".",
"set_id",
"(",
"dxpy",
".",
"api",
".",
"project_new",
"(",
"input_hash",
",",
"*",
"*",
"kwargs",
")",
"[",
"\"id\"",
"]",
")",
"self",
".",
"_desc",
"=",
"{",
"}",
"return",
"self",
".",
"_dxid"
] |
:param name: The name of the project
:type name: string
:param summary: If provided, a short summary of what the project contains
:type summary: string
:param description: If provided, the new project description
:type name: string
:param protected: If provided, whether the project should be protected
:type protected: boolean
:param restricted: If provided, whether the project should be restricted
:type restricted: boolean
:param download_restricted: If provided, whether external downloads should be restricted
:type download_restricted: boolean
:param contains_phi: If provided, whether the project should be marked as containing protected health information (PHI)
:type contains_phi: boolean
:param tags: If provided, tags to associate with the project
:type tags: list of strings
:param properties: If provided, properties to associate with the project
:type properties: dict
:param bill_to: If provided, ID of the entity to which any costs associated with this project will be billed; must be the ID of the requesting user or an org of which the requesting user is a member with allowBillableActivities permission
:type bill_to: string
Creates a new project. Initially only the user performing this action
will be in the permissions/member list, with ADMINISTER access.
See the API documentation for the `/project/new
<https://wiki.dnanexus.com/API-Specification-v1.0.0/Projects#API-method%3A-%2Fproject%2Fnew>`_
method for more info.
|
[
":",
"param",
"name",
":",
"The",
"name",
"of",
"the",
"project",
":",
"type",
"name",
":",
"string",
":",
"param",
"summary",
":",
"If",
"provided",
"a",
"short",
"summary",
"of",
"what",
"the",
"project",
"contains",
":",
"type",
"summary",
":",
"string",
":",
"param",
"description",
":",
"If",
"provided",
"the",
"new",
"project",
"description",
":",
"type",
"name",
":",
"string",
":",
"param",
"protected",
":",
"If",
"provided",
"whether",
"the",
"project",
"should",
"be",
"protected",
":",
"type",
"protected",
":",
"boolean",
":",
"param",
"restricted",
":",
"If",
"provided",
"whether",
"the",
"project",
"should",
"be",
"restricted",
":",
"type",
"restricted",
":",
"boolean",
":",
"param",
"download_restricted",
":",
"If",
"provided",
"whether",
"external",
"downloads",
"should",
"be",
"restricted",
":",
"type",
"download_restricted",
":",
"boolean",
":",
"param",
"contains_phi",
":",
"If",
"provided",
"whether",
"the",
"project",
"should",
"be",
"marked",
"as",
"containing",
"protected",
"health",
"information",
"(",
"PHI",
")",
":",
"type",
"contains_phi",
":",
"boolean",
":",
"param",
"tags",
":",
"If",
"provided",
"tags",
"to",
"associate",
"with",
"the",
"project",
":",
"type",
"tags",
":",
"list",
"of",
"strings",
":",
"param",
"properties",
":",
"If",
"provided",
"properties",
"to",
"associate",
"with",
"the",
"project",
":",
"type",
"properties",
":",
"dict",
":",
"param",
"bill_to",
":",
"If",
"provided",
"ID",
"of",
"the",
"entity",
"to",
"which",
"any",
"costs",
"associated",
"with",
"this",
"project",
"will",
"be",
"billed",
";",
"must",
"be",
"the",
"ID",
"of",
"the",
"requesting",
"user",
"or",
"an",
"org",
"of",
"which",
"the",
"requesting",
"user",
"is",
"a",
"member",
"with",
"allowBillableActivities",
"permission",
":",
"type",
"bill_to",
":",
"string"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxproject.py#L284-L339
|
train
|
Creates a new project with the given parameters.
|
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) + '\x6f' + chr(0b110010) + chr(0b101110 + 0o7) + chr(0b110000), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(891 - 780) + chr(49) + '\064' + '\x34', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b101100 + 0o103) + chr(464 - 414) + '\064' + chr(0b101010 + 0o7), ord("\x08")), nzTpIcepk0o8(chr(0b101010 + 0o6) + chr(111) + chr(1981 - 1930) + chr(1574 - 1520) + chr(0b110101), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + '\061' + '\067' + chr(0b110100), 14731 - 14723), nzTpIcepk0o8('\060' + chr(111) + chr(0b1100 + 0o47) + chr(0b110111) + chr(533 - 479), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(50), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110001) + '\067' + '\x31', 0b1000), nzTpIcepk0o8(chr(370 - 322) + '\157' + chr(0b10010 + 0o37) + chr(0b110100) + chr(49), 63596 - 63588), nzTpIcepk0o8('\060' + chr(111) + '\x32' + chr(50) + '\062', 0b1000), nzTpIcepk0o8(chr(1477 - 1429) + chr(4103 - 3992) + chr(0b101011 + 0o7) + chr(932 - 878), 29016 - 29008), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110101) + '\060', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b11001 + 0o31) + chr(0b110011), 0o10), nzTpIcepk0o8(chr(48) + chr(9813 - 9702) + '\064' + chr(51), ord("\x08")), nzTpIcepk0o8(chr(0b11110 + 0o22) + chr(7420 - 7309) + '\061' + chr(0b110110) + chr(0b110011), 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b11101 + 0o24) + chr(52) + '\064', 8), nzTpIcepk0o8(chr(0b10111 + 0o31) + '\157' + '\061' + chr(0b11110 + 0o31) + '\062', 0o10), nzTpIcepk0o8(chr(0b100010 + 0o16) + chr(0b10100 + 0o133) + chr(49) + '\x32' + chr(0b100111 + 0o13), 0b1000), nzTpIcepk0o8('\x30' + '\157' + '\x33' + chr(0b1011 + 0o47), 28620 - 28612), nzTpIcepk0o8(chr(1186 - 1138) + chr(0b1101111) + '\x32' + chr(0b110111) + '\x33', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110011), ord("\x08")), nzTpIcepk0o8(chr(0b111 + 0o51) + '\157' + chr(1917 - 1864) + chr(1091 - 1043), 8), nzTpIcepk0o8(chr(48) + chr(0b110001 + 0o76) + chr(0b110001) + chr(0b110001) + chr(0b1 + 0o61), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(2430 - 2379) + chr(1458 - 1407) + chr(0b11100 + 0o32), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\065' + '\x32', 60174 - 60166), nzTpIcepk0o8('\060' + '\x6f' + chr(0b100000 + 0o23) + chr(50) + '\064', 0b1000), nzTpIcepk0o8(chr(0b101 + 0o53) + '\157' + chr(49) + chr(0b110101) + '\x37', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + '\062' + chr(55), 29334 - 29326), nzTpIcepk0o8(chr(0b1100 + 0o44) + chr(0b1101111) + chr(0b11101 + 0o26) + chr(1729 - 1675) + '\x36', 11177 - 11169), nzTpIcepk0o8(chr(0b100111 + 0o11) + '\x6f' + '\x33' + chr(0b110111) + chr(0b110010), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1000 + 0o147) + chr(0b11011 + 0o27) + '\060' + chr(0b110001), ord("\x08")), nzTpIcepk0o8('\x30' + chr(12294 - 12183) + chr(55) + '\060', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b110010 + 0o75) + chr(0b110100) + '\x37', 45398 - 45390), nzTpIcepk0o8('\x30' + '\157' + chr(50) + chr(1172 - 1122) + chr(1813 - 1761), 0b1000), nzTpIcepk0o8(chr(1966 - 1918) + chr(0b1101111) + '\x32' + chr(0b110010) + chr(1379 - 1328), 0b1000), nzTpIcepk0o8(chr(0b100101 + 0o13) + chr(0b1000110 + 0o51) + chr(0b101111 + 0o2) + chr(52) + '\x33', 11831 - 11823), nzTpIcepk0o8('\060' + chr(111) + chr(2025 - 1976) + chr(2239 - 2186) + '\x30', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(11242 - 11131) + chr(0b110010) + '\x33' + chr(0b110011 + 0o1), 0b1000), nzTpIcepk0o8('\060' + chr(0b101 + 0o152) + '\x32' + '\x37' + chr(0b110111), 0o10), nzTpIcepk0o8('\x30' + '\157' + '\063' + '\x33' + '\061', 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + chr(0b1110 + 0o141) + '\x35' + chr(2279 - 2231), 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x86'), chr(100) + chr(0b1010000 + 0o25) + chr(99) + '\157' + chr(0b1100100) + chr(101))('\x75' + chr(0b1001101 + 0o47) + chr(2906 - 2804) + chr(45) + chr(56)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def bZWmgf4GjgvH(hXMPsSrOQzbh, SLVB2BPA_mIe, QEXp0HPqz7Se=None, HPRlMhFQZATD=None, tqfnJtqJU1fc=None, kiXbsu4Nvlph=None, kkjd6j16aUXb=None, ztPIgEwDbzCm=None, TFpYP2_05oSC=None, UtZvTnutzMHg=None, mRBFarVUW3KF=None, **q5n0sHDDTy90):
oMtL96Cc36D6 = {}
oMtL96Cc36D6[roI3spqORKae(ES5oEprVxulp(b'\xc6\x05\xcc\x90'), '\144' + '\145' + '\143' + chr(111) + chr(100) + chr(7993 - 7892))(chr(117) + chr(116) + chr(0b1010001 + 0o25) + chr(45) + chr(1565 - 1509))] = SLVB2BPA_mIe
if QEXp0HPqz7Se is not None:
oMtL96Cc36D6[roI3spqORKae(ES5oEprVxulp(b'\xdb\x11\xcc\x98\x1d\x8c{'), '\x64' + '\145' + chr(0b1010110 + 0o15) + '\x6f' + '\144' + chr(8756 - 8655))('\165' + chr(116) + '\146' + '\055' + '\x38')] = QEXp0HPqz7Se
if HPRlMhFQZATD is not None:
oMtL96Cc36D6[roI3spqORKae(ES5oEprVxulp(b'\xcc\x01\xd2\x96\x0e\x97r\r\x08\xfdx'), chr(4960 - 4860) + chr(0b100110 + 0o77) + chr(99) + chr(5463 - 5352) + chr(0b1011000 + 0o14) + chr(0b1100 + 0o131))(chr(0b1110101) + chr(0b1110100) + chr(0b1100110) + chr(45) + chr(56))] = HPRlMhFQZATD
if tqfnJtqJU1fc is not None:
oMtL96Cc36D6[roI3spqORKae(ES5oEprVxulp(b'\xd8\x16\xce\x81\x19\x9dv\x1c\x05'), chr(0b110101 + 0o57) + chr(0b101011 + 0o72) + chr(1865 - 1766) + chr(0b1101111) + chr(9606 - 9506) + '\145')(chr(117) + '\164' + chr(0b1100110) + '\x2d' + chr(2636 - 2580))] = tqfnJtqJU1fc
if kiXbsu4Nvlph is not None:
oMtL96Cc36D6[roI3spqORKae(ES5oEprVxulp(b'\xda\x01\xd2\x81\x0e\x97a\r\x04\xf6'), '\144' + chr(5656 - 5555) + '\x63' + '\157' + '\x64' + '\x65')('\165' + '\x74' + chr(0b1100110) + '\055' + chr(1460 - 1404))] = kiXbsu4Nvlph
if kkjd6j16aUXb is not None:
oMtL96Cc36D6[roI3spqORKae(ES5oEprVxulp(b'\xcc\x0b\xd6\x9b\x10\x91c\x1d3\xf7e\\aJ\x10\x10\x1f6'), '\x64' + chr(0b1100011 + 0o2) + chr(99) + chr(0b1101 + 0o142) + chr(9613 - 9513) + '\x65')('\165' + chr(10984 - 10868) + chr(0b1100110) + chr(398 - 353) + chr(0b110101 + 0o3))] = kkjd6j16aUXb
if ztPIgEwDbzCm is not None:
oMtL96Cc36D6[roI3spqORKae(ES5oEprVxulp(b'\xcb\x0b\xcf\x81\x1d\x97l\n1\xda_'), chr(5107 - 5007) + '\145' + chr(0b1100011) + chr(0b1101111) + chr(0b1100100) + chr(101))('\x75' + '\x74' + chr(0b1011100 + 0o12) + chr(0b1101 + 0o40) + '\x38')] = ztPIgEwDbzCm
if mRBFarVUW3KF is not None:
oMtL96Cc36D6[roI3spqORKae(ES5oEprVxulp(b'\xca\r\xcd\x99(\x91'), chr(0b1011100 + 0o10) + chr(101) + '\x63' + chr(111) + chr(100) + '\145')('\165' + chr(116) + '\x66' + chr(45) + chr(0b111000))] = mRBFarVUW3KF
if TFpYP2_05oSC is not None:
oMtL96Cc36D6[roI3spqORKae(ES5oEprVxulp(b'\xdc\x05\xc6\x86'), chr(0b1100100) + chr(7567 - 7466) + chr(0b1011000 + 0o13) + '\x6f' + '\x64' + chr(4649 - 4548))(chr(1719 - 1602) + chr(3026 - 2910) + '\146' + chr(45) + chr(0b111000))] = TFpYP2_05oSC
if UtZvTnutzMHg is not None:
oMtL96Cc36D6[roI3spqORKae(ES5oEprVxulp(b'\xd8\x16\xce\x85\x19\x8cv\x10\x04\xe1'), '\x64' + chr(0b1100101) + '\143' + chr(9369 - 9258) + chr(0b100001 + 0o103) + chr(0b1011 + 0o132))(chr(7301 - 7184) + chr(0b1110100) + chr(0b1001100 + 0o32) + chr(45) + '\x38')] = UtZvTnutzMHg
roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xdb\x01\xd5\xaa\x15\x9a'), '\144' + '\145' + chr(0b1100011) + '\157' + '\144' + chr(7643 - 7542))(chr(0b1010000 + 0o45) + chr(116) + chr(3841 - 3739) + chr(694 - 649) + chr(0b111000)))(roI3spqORKae(SsdNdRxXOwsF.api, roI3spqORKae(ES5oEprVxulp(b'\xd8\x16\xce\x9f\x19\x9dv&\x0f\xf7a'), chr(0b1000110 + 0o36) + chr(2205 - 2104) + '\143' + chr(10556 - 10445) + '\x64' + '\145')(chr(117) + chr(8808 - 8692) + chr(0b1100110) + chr(713 - 668) + chr(0b111000)))(oMtL96Cc36D6, **q5n0sHDDTy90)[roI3spqORKae(ES5oEprVxulp(b'\xc1\x00'), chr(100) + chr(101) + chr(99) + chr(0b1101111) + chr(9833 - 9733) + chr(0b1001110 + 0o27))(chr(117) + chr(0b1011111 + 0o25) + chr(102) + chr(45) + chr(56))])
hXMPsSrOQzbh.Up76sqJenL0f = {}
return roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xccR\xea\xa0\x12\xacS\x0fW\xa5%\x1d'), chr(0b1100100) + chr(0b1 + 0o144) + '\143' + chr(0b0 + 0o157) + chr(1048 - 948) + chr(6177 - 6076))('\x75' + '\164' + chr(6224 - 6122) + chr(1050 - 1005) + chr(56)))
|
dnanexus/dx-toolkit
|
src/python/dxpy/bindings/dxproject.py
|
DXProject.update
|
def update(self, name=None, summary=None, description=None, protected=None,
restricted=None, download_restricted=None, version=None, **kwargs):
"""
:param name: If provided, the new project name
:type name: string
:param summary: If provided, the new project summary
:type summary: string
:param description: If provided, the new project description
:type name: string
:param protected: If provided, whether the project should be protected
:type protected: boolean
:param restricted: If provided, whether the project should be restricted
:type restricted: boolean
:param download_restricted: If provided, whether external downloads should be restricted
:type download_restricted: boolean
:param version: If provided, the update will only occur if the value matches the current project's version number
:type version: int
Updates the project with the new fields. All fields are
optional. Fields that are not provided are not changed.
See the API documentation for the `/project-xxxx/update
<https://wiki.dnanexus.com/API-Specification-v1.0.0/Projects#API-method%3A-%2Fproject-xxxx%2Fupdate>`_
method for more info.
"""
update_hash = {}
if name is not None:
update_hash["name"] = name
if summary is not None:
update_hash["summary"] = summary
if description is not None:
update_hash["description"] = description
if protected is not None:
update_hash["protected"] = protected
if restricted is not None:
update_hash["restricted"] = restricted
if download_restricted is not None:
update_hash["downloadRestricted"] = download_restricted
if version is not None:
update_hash["version"] = version
dxpy.api.project_update(self._dxid, update_hash, **kwargs)
|
python
|
def update(self, name=None, summary=None, description=None, protected=None,
restricted=None, download_restricted=None, version=None, **kwargs):
"""
:param name: If provided, the new project name
:type name: string
:param summary: If provided, the new project summary
:type summary: string
:param description: If provided, the new project description
:type name: string
:param protected: If provided, whether the project should be protected
:type protected: boolean
:param restricted: If provided, whether the project should be restricted
:type restricted: boolean
:param download_restricted: If provided, whether external downloads should be restricted
:type download_restricted: boolean
:param version: If provided, the update will only occur if the value matches the current project's version number
:type version: int
Updates the project with the new fields. All fields are
optional. Fields that are not provided are not changed.
See the API documentation for the `/project-xxxx/update
<https://wiki.dnanexus.com/API-Specification-v1.0.0/Projects#API-method%3A-%2Fproject-xxxx%2Fupdate>`_
method for more info.
"""
update_hash = {}
if name is not None:
update_hash["name"] = name
if summary is not None:
update_hash["summary"] = summary
if description is not None:
update_hash["description"] = description
if protected is not None:
update_hash["protected"] = protected
if restricted is not None:
update_hash["restricted"] = restricted
if download_restricted is not None:
update_hash["downloadRestricted"] = download_restricted
if version is not None:
update_hash["version"] = version
dxpy.api.project_update(self._dxid, update_hash, **kwargs)
|
[
"def",
"update",
"(",
"self",
",",
"name",
"=",
"None",
",",
"summary",
"=",
"None",
",",
"description",
"=",
"None",
",",
"protected",
"=",
"None",
",",
"restricted",
"=",
"None",
",",
"download_restricted",
"=",
"None",
",",
"version",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"update_hash",
"=",
"{",
"}",
"if",
"name",
"is",
"not",
"None",
":",
"update_hash",
"[",
"\"name\"",
"]",
"=",
"name",
"if",
"summary",
"is",
"not",
"None",
":",
"update_hash",
"[",
"\"summary\"",
"]",
"=",
"summary",
"if",
"description",
"is",
"not",
"None",
":",
"update_hash",
"[",
"\"description\"",
"]",
"=",
"description",
"if",
"protected",
"is",
"not",
"None",
":",
"update_hash",
"[",
"\"protected\"",
"]",
"=",
"protected",
"if",
"restricted",
"is",
"not",
"None",
":",
"update_hash",
"[",
"\"restricted\"",
"]",
"=",
"restricted",
"if",
"download_restricted",
"is",
"not",
"None",
":",
"update_hash",
"[",
"\"downloadRestricted\"",
"]",
"=",
"download_restricted",
"if",
"version",
"is",
"not",
"None",
":",
"update_hash",
"[",
"\"version\"",
"]",
"=",
"version",
"dxpy",
".",
"api",
".",
"project_update",
"(",
"self",
".",
"_dxid",
",",
"update_hash",
",",
"*",
"*",
"kwargs",
")"
] |
:param name: If provided, the new project name
:type name: string
:param summary: If provided, the new project summary
:type summary: string
:param description: If provided, the new project description
:type name: string
:param protected: If provided, whether the project should be protected
:type protected: boolean
:param restricted: If provided, whether the project should be restricted
:type restricted: boolean
:param download_restricted: If provided, whether external downloads should be restricted
:type download_restricted: boolean
:param version: If provided, the update will only occur if the value matches the current project's version number
:type version: int
Updates the project with the new fields. All fields are
optional. Fields that are not provided are not changed.
See the API documentation for the `/project-xxxx/update
<https://wiki.dnanexus.com/API-Specification-v1.0.0/Projects#API-method%3A-%2Fproject-xxxx%2Fupdate>`_
method for more info.
|
[
":",
"param",
"name",
":",
"If",
"provided",
"the",
"new",
"project",
"name",
":",
"type",
"name",
":",
"string",
":",
"param",
"summary",
":",
"If",
"provided",
"the",
"new",
"project",
"summary",
":",
"type",
"summary",
":",
"string",
":",
"param",
"description",
":",
"If",
"provided",
"the",
"new",
"project",
"description",
":",
"type",
"name",
":",
"string",
":",
"param",
"protected",
":",
"If",
"provided",
"whether",
"the",
"project",
"should",
"be",
"protected",
":",
"type",
"protected",
":",
"boolean",
":",
"param",
"restricted",
":",
"If",
"provided",
"whether",
"the",
"project",
"should",
"be",
"restricted",
":",
"type",
"restricted",
":",
"boolean",
":",
"param",
"download_restricted",
":",
"If",
"provided",
"whether",
"external",
"downloads",
"should",
"be",
"restricted",
":",
"type",
"download_restricted",
":",
"boolean",
":",
"param",
"version",
":",
"If",
"provided",
"the",
"update",
"will",
"only",
"occur",
"if",
"the",
"value",
"matches",
"the",
"current",
"project",
"s",
"version",
"number",
":",
"type",
"version",
":",
"int"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxproject.py#L341-L381
|
train
|
Updates the current project s attributes with the values provided.
|
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(0b10100 + 0o34) + chr(111) + '\062' + chr(0b110000) + chr(50), 0o10), nzTpIcepk0o8(chr(0b11100 + 0o24) + chr(111) + '\x32' + chr(0b110011) + chr(48), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110010) + chr(2205 - 2157) + '\067', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x32' + chr(0b110011) + chr(53), 0b1000), nzTpIcepk0o8(chr(1101 - 1053) + chr(111) + chr(0b110010) + chr(50) + chr(803 - 751), 27564 - 27556), nzTpIcepk0o8(chr(0b110000) + chr(6704 - 6593) + chr(1983 - 1933) + '\x37' + '\x33', 0b1000), nzTpIcepk0o8('\060' + '\157' + '\063' + '\x32' + chr(0b10100 + 0o36), 53075 - 53067), nzTpIcepk0o8('\060' + '\157' + chr(0b110010 + 0o1) + '\x37' + chr(1565 - 1514), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(51) + chr(640 - 585) + '\x35', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(1325 - 1275) + '\066' + chr(0b100101 + 0o15), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(5938 - 5827) + chr(0b110001) + '\066', 52851 - 52843), nzTpIcepk0o8(chr(0b101010 + 0o6) + chr(111) + chr(0b1101 + 0o44) + chr(0b101110 + 0o11), 56850 - 56842), nzTpIcepk0o8('\x30' + '\157' + chr(53), 0b1000), nzTpIcepk0o8(chr(1809 - 1761) + chr(0b10000 + 0o137) + '\x31' + chr(0b110101) + chr(0b11011 + 0o34), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b111101 + 0o62) + chr(0b100000 + 0o23) + '\060' + chr(0b101 + 0o53), 31179 - 31171), nzTpIcepk0o8(chr(277 - 229) + chr(4283 - 4172) + chr(0b10011 + 0o40) + '\x33' + '\x36', 910 - 902), nzTpIcepk0o8(chr(48) + chr(0b110000 + 0o77) + chr(50) + chr(553 - 499), 0o10), nzTpIcepk0o8(chr(955 - 907) + chr(2489 - 2378) + chr(0b111 + 0o56) + '\064', 0b1000), nzTpIcepk0o8(chr(0b101010 + 0o6) + chr(111) + '\x32' + chr(0b110100) + chr(2031 - 1981), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110100) + '\063', 21981 - 21973), nzTpIcepk0o8('\060' + '\x6f' + chr(804 - 755) + '\062' + chr(0b101000 + 0o10), 0b1000), nzTpIcepk0o8(chr(0b10100 + 0o34) + chr(0b1101 + 0o142) + chr(0b110010 + 0o5) + chr(0b11011 + 0o25), 0o10), nzTpIcepk0o8(chr(0b100110 + 0o12) + '\x6f' + '\064' + '\066', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b101101 + 0o102) + chr(997 - 943) + '\061', 0b1000), nzTpIcepk0o8('\x30' + chr(8123 - 8012) + chr(0b1101 + 0o44) + chr(1118 - 1070) + chr(52), 54048 - 54040), nzTpIcepk0o8(chr(48) + chr(8316 - 8205) + chr(50) + chr(0b1010 + 0o52), 40192 - 40184), nzTpIcepk0o8(chr(48) + chr(7025 - 6914) + chr(50) + '\066' + chr(54), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(54) + chr(0b111 + 0o56), 0b1000), nzTpIcepk0o8(chr(0b1101 + 0o43) + chr(0b1101110 + 0o1) + chr(0b11100 + 0o26) + '\060' + chr(0b110100 + 0o1), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(6878 - 6767) + chr(51) + chr(911 - 863) + '\063', 0b1000), nzTpIcepk0o8(chr(2148 - 2100) + chr(9404 - 9293) + chr(0b110011) + '\064' + chr(0b110001), 20871 - 20863), nzTpIcepk0o8(chr(48) + chr(111) + '\063' + chr(90 - 38) + chr(1307 - 1257), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b100101 + 0o112) + chr(0b100011 + 0o17) + chr(2053 - 2005) + chr(48), 0o10), nzTpIcepk0o8(chr(0b100100 + 0o14) + chr(0b1101111) + '\x36' + chr(2107 - 2054), 8), nzTpIcepk0o8(chr(48) + chr(9442 - 9331) + chr(1207 - 1152) + chr(2835 - 2780), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110001) + chr(0b101000 + 0o12) + chr(640 - 592), 8), nzTpIcepk0o8(chr(0b11000 + 0o30) + chr(0b1101111) + '\061' + '\x31', ord("\x08")), nzTpIcepk0o8(chr(0b110000 + 0o0) + chr(7402 - 7291) + '\x31' + chr(54) + chr(151 - 102), 0o10), nzTpIcepk0o8(chr(128 - 80) + chr(10678 - 10567) + chr(0b110001) + chr(1725 - 1676) + chr(327 - 275), 0o10), nzTpIcepk0o8('\060' + '\157' + chr(2113 - 2064) + chr(0b110000) + chr(51), 28151 - 28143)][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + chr(111) + '\065' + chr(352 - 304), 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xac'), '\144' + '\145' + chr(1697 - 1598) + chr(0b1101110 + 0o1) + chr(0b1100100) + chr(101))('\165' + chr(116) + chr(0b100101 + 0o101) + chr(0b101101) + chr(551 - 495)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def J_k2IYB1ceqn(hXMPsSrOQzbh, SLVB2BPA_mIe=None, QEXp0HPqz7Se=None, HPRlMhFQZATD=None, tqfnJtqJU1fc=None, kiXbsu4Nvlph=None, kkjd6j16aUXb=None, J4eG487sJbAu=None, **q5n0sHDDTy90):
tw954sRaoToz = {}
if SLVB2BPA_mIe is not None:
tw954sRaoToz[roI3spqORKae(ES5oEprVxulp(b'\xec\xf9\xea\xf8'), chr(100) + '\x65' + chr(99) + chr(0b1101111) + chr(0b1100100) + '\145')('\165' + chr(0b1110100) + chr(0b101010 + 0o74) + '\055' + chr(0b101011 + 0o15))] = SLVB2BPA_mIe
if QEXp0HPqz7Se is not None:
tw954sRaoToz[roI3spqORKae(ES5oEprVxulp(b'\xf1\xed\xea\xf0\xf5\xc9\xab'), chr(0b1100100) + chr(5159 - 5058) + chr(99) + chr(0b100100 + 0o113) + chr(100) + chr(101))(chr(0b1110101) + chr(116) + chr(1472 - 1370) + '\x2d' + chr(0b111000))] = QEXp0HPqz7Se
if HPRlMhFQZATD is not None:
tw954sRaoToz[roI3spqORKae(ES5oEprVxulp(b'\xe6\xfd\xf4\xfe\xe6\xd2\xa2\x8f\x94\xdd`'), '\x64' + '\145' + chr(99) + '\x6f' + '\144' + '\x65')(chr(0b1110001 + 0o4) + '\x74' + chr(102) + chr(0b101101) + '\x38')] = HPRlMhFQZATD
if tqfnJtqJU1fc is not None:
tw954sRaoToz[roI3spqORKae(ES5oEprVxulp(b'\xf2\xea\xe8\xe9\xf1\xd8\xa6\x9e\x99'), chr(0b110101 + 0o57) + chr(0b110100 + 0o61) + chr(0b1100011) + '\157' + '\x64' + chr(3649 - 3548))(chr(0b1001101 + 0o50) + chr(2986 - 2870) + chr(102) + '\x2d' + chr(0b111000))] = tqfnJtqJU1fc
if kiXbsu4Nvlph is not None:
tw954sRaoToz[roI3spqORKae(ES5oEprVxulp(b'\xf0\xfd\xf4\xe9\xe6\xd2\xb1\x8f\x98\xd6'), chr(0b1010111 + 0o15) + chr(0b11000 + 0o115) + '\143' + chr(0b1101111) + '\x64' + chr(9692 - 9591))('\165' + chr(0b1100010 + 0o22) + '\x66' + '\x2d' + chr(683 - 627))] = kiXbsu4Nvlph
if kkjd6j16aUXb is not None:
tw954sRaoToz[roI3spqORKae(ES5oEprVxulp(b'\xe6\xf7\xf0\xf3\xf8\xd4\xb3\x9f\xaf\xd7}{w\x06\xa3\xaasH'), chr(100) + chr(1356 - 1255) + chr(99) + '\157' + chr(0b1011000 + 0o14) + '\x65')(chr(11535 - 11418) + chr(0b1110100) + chr(7886 - 7784) + '\055' + '\x38')] = kkjd6j16aUXb
if J4eG487sJbAu is not None:
tw954sRaoToz[roI3spqORKae(ES5oEprVxulp(b'\xf4\xfd\xf5\xee\xfd\xd4\xbc'), chr(0b1 + 0o143) + chr(0b1100101) + chr(0b1100011) + chr(0b11111 + 0o120) + chr(4151 - 4051) + chr(0b1100101))('\165' + '\164' + '\x66' + chr(45) + chr(56))] = J4eG487sJbAu
roI3spqORKae(SsdNdRxXOwsF.api, roI3spqORKae(ES5oEprVxulp(b'\xf2\xea\xe8\xf7\xf1\xd8\xa6\xa4\x88\xc2jnq\n'), chr(100) + chr(7225 - 7124) + chr(0b100110 + 0o75) + chr(766 - 655) + '\x64' + '\145')('\x75' + '\x74' + chr(102) + chr(45) + chr(326 - 270)))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xe6\xae\xcc\xc8\xfa\xe9\x83\x8d\xcb\x85=:'), chr(0b1001111 + 0o25) + chr(0b1100101) + '\143' + chr(111) + chr(100) + '\x65')(chr(4002 - 3885) + chr(0b1000111 + 0o55) + chr(0b1001011 + 0o33) + chr(45) + chr(0b100001 + 0o27))), tw954sRaoToz, **q5n0sHDDTy90)
|
dnanexus/dx-toolkit
|
src/python/dxpy/bindings/dxproject.py
|
DXProject.invite
|
def invite(self, invitee, level, send_email=True, **kwargs):
"""
:param invitee: Username (of the form "user-USERNAME") or email address of person to be invited to the project; use "PUBLIC" to make the project publicly available (in which case level must be set to "VIEW").
:type invitee: string
:param level: Permissions level that the invitee would get ("VIEW", "UPLOAD", "CONTRIBUTE", or "ADMINISTER")
:type level: string
:param send_email: Determines whether user receives email notifications regarding the project invitation
:type send_email: boolean
Invites the specified user to have access to the project.
"""
return dxpy.api.project_invite(self._dxid,
{"invitee": invitee, "level": level,
"suppressEmailNotification": not send_email},
**kwargs)
|
python
|
def invite(self, invitee, level, send_email=True, **kwargs):
"""
:param invitee: Username (of the form "user-USERNAME") or email address of person to be invited to the project; use "PUBLIC" to make the project publicly available (in which case level must be set to "VIEW").
:type invitee: string
:param level: Permissions level that the invitee would get ("VIEW", "UPLOAD", "CONTRIBUTE", or "ADMINISTER")
:type level: string
:param send_email: Determines whether user receives email notifications regarding the project invitation
:type send_email: boolean
Invites the specified user to have access to the project.
"""
return dxpy.api.project_invite(self._dxid,
{"invitee": invitee, "level": level,
"suppressEmailNotification": not send_email},
**kwargs)
|
[
"def",
"invite",
"(",
"self",
",",
"invitee",
",",
"level",
",",
"send_email",
"=",
"True",
",",
"*",
"*",
"kwargs",
")",
":",
"return",
"dxpy",
".",
"api",
".",
"project_invite",
"(",
"self",
".",
"_dxid",
",",
"{",
"\"invitee\"",
":",
"invitee",
",",
"\"level\"",
":",
"level",
",",
"\"suppressEmailNotification\"",
":",
"not",
"send_email",
"}",
",",
"*",
"*",
"kwargs",
")"
] |
:param invitee: Username (of the form "user-USERNAME") or email address of person to be invited to the project; use "PUBLIC" to make the project publicly available (in which case level must be set to "VIEW").
:type invitee: string
:param level: Permissions level that the invitee would get ("VIEW", "UPLOAD", "CONTRIBUTE", or "ADMINISTER")
:type level: string
:param send_email: Determines whether user receives email notifications regarding the project invitation
:type send_email: boolean
Invites the specified user to have access to the project.
|
[
":",
"param",
"invitee",
":",
"Username",
"(",
"of",
"the",
"form",
"user",
"-",
"USERNAME",
")",
"or",
"email",
"address",
"of",
"person",
"to",
"be",
"invited",
"to",
"the",
"project",
";",
"use",
"PUBLIC",
"to",
"make",
"the",
"project",
"publicly",
"available",
"(",
"in",
"which",
"case",
"level",
"must",
"be",
"set",
"to",
"VIEW",
")",
".",
":",
"type",
"invitee",
":",
"string",
":",
"param",
"level",
":",
"Permissions",
"level",
"that",
"the",
"invitee",
"would",
"get",
"(",
"VIEW",
"UPLOAD",
"CONTRIBUTE",
"or",
"ADMINISTER",
")",
":",
"type",
"level",
":",
"string",
":",
"param",
"send_email",
":",
"Determines",
"whether",
"user",
"receives",
"email",
"notifications",
"regarding",
"the",
"project",
"invitation",
":",
"type",
"send_email",
":",
"boolean"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxproject.py#L383-L399
|
train
|
Invites the specified person to the project.
|
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJ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AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__
ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\x30' + chr(8687 - 8576) + chr(0b110011) + chr(50) + chr(0b101111 + 0o10), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x34' + chr(2222 - 2174), ord("\x08")), nzTpIcepk0o8(chr(235 - 187) + chr(111) + chr(194 - 144) + chr(0b110 + 0o52) + chr(585 - 530), 0b1000), nzTpIcepk0o8(chr(586 - 538) + chr(111) + chr(49) + chr(1794 - 1740) + chr(54), 0b1000), nzTpIcepk0o8(chr(0b11 + 0o55) + chr(111) + chr(0b110010) + '\060', 0o10), nzTpIcepk0o8(chr(48) + '\157' + '\061' + chr(0b101010 + 0o7) + chr(0b110010), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1000101 + 0o52) + '\062' + chr(0b110110) + chr(61 - 12), 0b1000), nzTpIcepk0o8(chr(0b10100 + 0o34) + chr(0b1101111) + chr(51) + '\x32', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(1664 - 1615) + chr(0b1101 + 0o45) + '\060', 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(0b10101 + 0o34) + chr(54), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(50) + '\065' + chr(53), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(2255 - 2204) + chr(2589 - 2538) + chr(1320 - 1267), 9044 - 9036), nzTpIcepk0o8(chr(0b111 + 0o51) + chr(448 - 337) + '\067', 0b1000), nzTpIcepk0o8(chr(391 - 343) + chr(0b1101111) + chr(2369 - 2315) + '\x32', ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b101 + 0o55) + '\x31' + chr(0b110011), 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(0b1111 + 0o42) + chr(48) + chr(0b10100 + 0o43), 2297 - 2289), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b10111 + 0o34) + chr(54) + chr(1462 - 1414), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(675 - 626) + chr(2495 - 2443) + chr(2032 - 1982), ord("\x08")), nzTpIcepk0o8(chr(2024 - 1976) + '\157' + chr(1341 - 1289) + '\060', 8), nzTpIcepk0o8(chr(73 - 25) + chr(111) + chr(0b10001 + 0o42) + '\x32' + chr(2414 - 2360), 23869 - 23861), nzTpIcepk0o8(chr(747 - 699) + chr(3127 - 3016) + chr(2259 - 2208) + chr(2424 - 2370) + '\067', 65468 - 65460), nzTpIcepk0o8(chr(0b101 + 0o53) + chr(111) + '\061' + '\x36' + chr(0b110001 + 0o0), ord("\x08")), nzTpIcepk0o8(chr(0b10001 + 0o37) + '\157' + chr(0b110011) + '\067' + chr(0b110000), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(1851 - 1800) + chr(163 - 108) + chr(53), 0o10), nzTpIcepk0o8(chr(0b100101 + 0o13) + chr(0b1101111) + chr(0b110101 + 0o2) + chr(632 - 578), 0o10), nzTpIcepk0o8(chr(0b10100 + 0o34) + '\157' + chr(49) + chr(0b110011), ord("\x08")), nzTpIcepk0o8(chr(0b1111 + 0o41) + '\157' + '\065' + chr(0b110010), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(11900 - 11789) + '\062' + '\x35', 25833 - 25825), nzTpIcepk0o8(chr(48) + chr(0b1000 + 0o147) + chr(176 - 121) + chr(0b110010), 0o10), nzTpIcepk0o8(chr(461 - 413) + chr(8431 - 8320) + chr(50) + chr(2673 - 2621) + chr(0b101 + 0o56), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(50) + chr(0b110000), 8), nzTpIcepk0o8(chr(1438 - 1390) + '\157' + chr(49) + chr(0b110110) + '\x36', 8), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b11110 + 0o24) + '\066', 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(1335 - 1285) + chr(53), 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1001 + 0o146) + '\061' + chr(51) + chr(1292 - 1240), 60975 - 60967), nzTpIcepk0o8(chr(1915 - 1867) + '\x6f' + chr(49) + chr(0b110111) + chr(1747 - 1694), 0b1000), nzTpIcepk0o8(chr(1272 - 1224) + '\x6f' + chr(0b110011) + '\061' + chr(0b110010), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x35' + chr(0b100 + 0o57), 0o10), nzTpIcepk0o8('\x30' + chr(7468 - 7357) + chr(0b110011) + '\x33' + '\067', 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(49) + chr(0b10100 + 0o43) + chr(567 - 515), 17985 - 17977)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(2709 - 2656) + chr(0b100101 + 0o13), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xf9'), '\x64' + chr(0b1010100 + 0o21) + chr(99) + '\x6f' + chr(0b1011010 + 0o12) + chr(101))(chr(0b1110101) + chr(0b1101100 + 0o10) + '\146' + chr(0b11 + 0o52) + '\070') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def DOt61a8Bj_jf(hXMPsSrOQzbh, jDvFLyP5l2_1, OHMe9lml54lU, ikerB5cUFgml=nzTpIcepk0o8(chr(48) + chr(10334 - 10223) + '\x31', 39270 - 39262), **q5n0sHDDTy90):
return roI3spqORKae(SsdNdRxXOwsF.api, roI3spqORKae(ES5oEprVxulp(b'\xa7R\xe8\x1cu)\xc5E9`\xdb\xb4sW'), chr(0b10010 + 0o122) + chr(764 - 663) + chr(99) + '\157' + chr(1868 - 1768) + chr(6118 - 6017))(chr(0b1110101) + chr(116) + chr(0b1100110) + '\x2d' + chr(186 - 130)))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xb3\x16\xcc#~\x18\xe0lf9\x9e\xe8'), '\144' + chr(0b1100101) + '\x63' + '\157' + '\x64' + chr(101))(chr(3011 - 2894) + chr(7334 - 7218) + '\x66' + '\x2d' + chr(1796 - 1740))), {roI3spqORKae(ES5oEprVxulp(b'\xbeN\xf1\x1fd/\xd4'), chr(2932 - 2832) + chr(101) + chr(0b101110 + 0o65) + '\157' + '\144' + chr(101))(chr(117) + chr(0b1010001 + 0o43) + chr(102) + '\055' + chr(0b111000)): jDvFLyP5l2_1, roI3spqORKae(ES5oEprVxulp(b'\xbbE\xf1\x13|'), '\x64' + chr(0b1010100 + 0o21) + chr(7653 - 7554) + chr(111) + chr(0b1100100) + chr(101))('\165' + '\164' + '\146' + chr(0b11001 + 0o24) + chr(56)): OHMe9lml54lU, roI3spqORKae(ES5oEprVxulp(b'\xa4U\xf7\x06b/\xc2i\x15c\xcc\xb4k|\xe43\x99\x04I\xb5\x96\x05\x91\x92P'), '\144' + chr(8551 - 8450) + '\143' + chr(0b1101001 + 0o6) + chr(0b1100100) + chr(5608 - 5507))(chr(117) + '\x74' + chr(4630 - 4528) + chr(126 - 81) + '\x38'): not ikerB5cUFgml}, **q5n0sHDDTy90)
|
dnanexus/dx-toolkit
|
src/python/dxpy/bindings/dxproject.py
|
DXProject.decrease_perms
|
def decrease_perms(self, member, level, **kwargs):
"""
:param member: Username (of the form "user-USERNAME") of the project member whose permissions will be decreased.
:type member: string
:param level: Permissions level that the member will have after this operation (None, "VIEW", "UPLOAD", or "CONTRIBUTE")
:type level: string or None
Decreases the permissions that the specified user has in the project.
"""
input_hash = {}
input_hash[member] = level
return dxpy.api.project_decrease_permissions(self._dxid,
input_hash,
**kwargs)
|
python
|
def decrease_perms(self, member, level, **kwargs):
"""
:param member: Username (of the form "user-USERNAME") of the project member whose permissions will be decreased.
:type member: string
:param level: Permissions level that the member will have after this operation (None, "VIEW", "UPLOAD", or "CONTRIBUTE")
:type level: string or None
Decreases the permissions that the specified user has in the project.
"""
input_hash = {}
input_hash[member] = level
return dxpy.api.project_decrease_permissions(self._dxid,
input_hash,
**kwargs)
|
[
"def",
"decrease_perms",
"(",
"self",
",",
"member",
",",
"level",
",",
"*",
"*",
"kwargs",
")",
":",
"input_hash",
"=",
"{",
"}",
"input_hash",
"[",
"member",
"]",
"=",
"level",
"return",
"dxpy",
".",
"api",
".",
"project_decrease_permissions",
"(",
"self",
".",
"_dxid",
",",
"input_hash",
",",
"*",
"*",
"kwargs",
")"
] |
:param member: Username (of the form "user-USERNAME") of the project member whose permissions will be decreased.
:type member: string
:param level: Permissions level that the member will have after this operation (None, "VIEW", "UPLOAD", or "CONTRIBUTE")
:type level: string or None
Decreases the permissions that the specified user has in the project.
|
[
":",
"param",
"member",
":",
"Username",
"(",
"of",
"the",
"form",
"user",
"-",
"USERNAME",
")",
"of",
"the",
"project",
"member",
"whose",
"permissions",
"will",
"be",
"decreased",
".",
":",
"type",
"member",
":",
"string",
":",
"param",
"level",
":",
"Permissions",
"level",
"that",
"the",
"member",
"will",
"have",
"after",
"this",
"operation",
"(",
"None",
"VIEW",
"UPLOAD",
"or",
"CONTRIBUTE",
")",
":",
"type",
"level",
":",
"string",
"or",
"None"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxproject.py#L401-L417
|
train
|
Decreases the permissions of a project member.
|
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,KSw3AkHk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67Nkl7Kt9,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(0b101010 + 0o6) + '\157' + chr(0b110001) + '\x33' + chr(66 - 14), 48373 - 48365), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x32' + chr(0b110100) + '\062', ord("\x08")), nzTpIcepk0o8('\x30' + chr(4893 - 4782) + chr(0b101100 + 0o5) + chr(0b11101 + 0o27) + chr(0b110100), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1011000 + 0o27) + chr(2557 - 2506) + chr(0b1000 + 0o56), 0b1000), nzTpIcepk0o8(chr(1181 - 1133) + '\157' + chr(51) + '\x31' + chr(50), 13847 - 13839), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110011) + chr(0b110111) + chr(0b110101), 56135 - 56127), nzTpIcepk0o8(chr(0b1100 + 0o44) + '\x6f' + '\x31' + '\061', 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110100), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(0b1010 + 0o50) + chr(51) + chr(0b100110 + 0o17), 47096 - 47088), nzTpIcepk0o8('\060' + chr(1838 - 1727) + chr(0b110001) + '\062' + chr(406 - 357), 0b1000), nzTpIcepk0o8(chr(0b101011 + 0o5) + chr(2543 - 2432) + chr(1666 - 1617) + chr(50) + chr(0b110110), 0o10), nzTpIcepk0o8(chr(1615 - 1567) + chr(9215 - 9104) + '\x32' + chr(0b110000) + '\067', 0b1000), nzTpIcepk0o8(chr(1392 - 1344) + chr(0b1011000 + 0o27) + '\063' + chr(0b110111), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101011 + 0o4) + chr(2517 - 2466) + '\064' + '\064', 0o10), nzTpIcepk0o8(chr(0b100111 + 0o11) + chr(111) + chr(1085 - 1033) + chr(0b1111 + 0o43), 65422 - 65414), nzTpIcepk0o8(chr(0b10111 + 0o31) + chr(1411 - 1300) + chr(0b11101 + 0o26) + '\x33', 44193 - 44185), nzTpIcepk0o8('\060' + '\x6f' + '\x31' + chr(0b110010) + chr(1574 - 1525), 8), nzTpIcepk0o8(chr(48) + chr(0b1000010 + 0o55) + chr(0b110010) + chr(995 - 942) + '\060', ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(50) + chr(1900 - 1852) + '\062', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(6914 - 6803) + chr(54) + chr(0b101111 + 0o1), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(1127 - 1076) + '\062' + chr(0b10110 + 0o40), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b11001 + 0o126) + '\x31' + chr(0b110011) + chr(776 - 722), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(2390 - 2341) + chr(0b110111) + '\060', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\063' + chr(0b101111 + 0o7), 8), nzTpIcepk0o8('\x30' + chr(5990 - 5879) + chr(2270 - 2219) + chr(49) + chr(50), 8), nzTpIcepk0o8('\060' + '\157' + chr(429 - 380) + chr(0b110000) + chr(2709 - 2655), ord("\x08")), nzTpIcepk0o8(chr(0b101110 + 0o2) + chr(11290 - 11179) + '\062' + chr(0b110100) + '\x35', ord("\x08")), nzTpIcepk0o8(chr(0b100110 + 0o12) + chr(0b1101111) + chr(1536 - 1485) + chr(0b11111 + 0o24) + chr(134 - 82), 15509 - 15501), nzTpIcepk0o8(chr(0b100110 + 0o12) + chr(7238 - 7127) + chr(51) + chr(51) + chr(742 - 690), 8), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110110), 0b1000), nzTpIcepk0o8(chr(48) + chr(1502 - 1391) + chr(2079 - 2029) + '\062' + '\x33', 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110001 + 0o0) + chr(518 - 470) + chr(968 - 920), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b10111 + 0o32) + '\x36' + chr(0b101000 + 0o15), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(1322 - 1271) + chr(241 - 189), 0o10), nzTpIcepk0o8('\x30' + chr(0b111100 + 0o63) + chr(95 - 44) + '\x34' + chr(1567 - 1517), ord("\x08")), nzTpIcepk0o8(chr(1538 - 1490) + chr(5691 - 5580) + chr(50) + '\x32' + '\x30', ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(604 - 554) + chr(0b110001 + 0o5) + '\x30', 0o10), nzTpIcepk0o8(chr(0b101101 + 0o3) + chr(0b1101111) + '\066' + chr(0b110011), 7760 - 7752), nzTpIcepk0o8('\x30' + '\157' + chr(0b1101 + 0o44) + chr(0b110110) + '\062', ord("\x08")), nzTpIcepk0o8(chr(0b10011 + 0o35) + chr(111) + '\062' + chr(0b110101) + '\x31', 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + chr(1173 - 1062) + '\x35' + '\060', 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'r'), '\144' + chr(101) + '\143' + chr(0b1101111) + '\144' + chr(0b101000 + 0o75))('\x75' + chr(10153 - 10037) + chr(3811 - 3709) + chr(45) + '\x38') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def dbY9MqbRy9Jt(hXMPsSrOQzbh, hpZQRtyjIUcR, OHMe9lml54lU, **q5n0sHDDTy90):
oMtL96Cc36D6 = {}
oMtL96Cc36D6[hpZQRtyjIUcR] = OHMe9lml54lU
return roI3spqORKae(SsdNdRxXOwsF.api, roI3spqORKae(ES5oEprVxulp(b',\xd0\x0bt\xaf\x9e}[\xf945\xf5z\x85Q~\x0e\xd8\xe7B\xbb7\x0bm\xa3)\xcb\xaf'), chr(100) + chr(1869 - 1768) + chr(0b10010 + 0o121) + '\157' + chr(3640 - 3540) + '\145')(chr(3521 - 3404) + chr(0b1110100) + '\146' + chr(0b110 + 0o47) + '\070'))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'8\x94/K\xa4\xafXr\xabfe\xb2'), chr(0b1000010 + 0o42) + chr(0b1100101) + chr(0b110101 + 0o56) + chr(0b100011 + 0o114) + chr(0b10 + 0o142) + chr(0b111100 + 0o51))(chr(12297 - 12180) + chr(9215 - 9099) + '\x66' + chr(45) + chr(1826 - 1770))), oMtL96Cc36D6, **q5n0sHDDTy90)
|
dnanexus/dx-toolkit
|
src/python/dxpy/bindings/dxproject.py
|
DXProject.set_properties
|
def set_properties(self, properties, **kwargs):
"""
:param properties: Property names and values given as key-value pairs of strings
:type properties: dict
Given key-value pairs in *properties* for property names and
values, the properties are set on the project for the given
property names. Any property with a value of :const:`None`
indicates the property will be deleted.
.. note:: Any existing properties not mentioned in *properties*
are not modified by this method.
"""
return dxpy.api.project_set_properties(self._dxid, {"properties": properties}, **kwargs)
|
python
|
def set_properties(self, properties, **kwargs):
"""
:param properties: Property names and values given as key-value pairs of strings
:type properties: dict
Given key-value pairs in *properties* for property names and
values, the properties are set on the project for the given
property names. Any property with a value of :const:`None`
indicates the property will be deleted.
.. note:: Any existing properties not mentioned in *properties*
are not modified by this method.
"""
return dxpy.api.project_set_properties(self._dxid, {"properties": properties}, **kwargs)
|
[
"def",
"set_properties",
"(",
"self",
",",
"properties",
",",
"*",
"*",
"kwargs",
")",
":",
"return",
"dxpy",
".",
"api",
".",
"project_set_properties",
"(",
"self",
".",
"_dxid",
",",
"{",
"\"properties\"",
":",
"properties",
"}",
",",
"*",
"*",
"kwargs",
")"
] |
:param properties: Property names and values given as key-value pairs of strings
:type properties: dict
Given key-value pairs in *properties* for property names and
values, the properties are set on the project for the given
property names. Any property with a value of :const:`None`
indicates the property will be deleted.
.. note:: Any existing properties not mentioned in *properties*
are not modified by this method.
|
[
":",
"param",
"properties",
":",
"Property",
"names",
"and",
"values",
"given",
"as",
"key",
"-",
"value",
"pairs",
"of",
"strings",
":",
"type",
"properties",
":",
"dict"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxproject.py#L426-L441
|
train
|
Set the properties of the project for the given key - value pairs.
|
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,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a7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__
ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\060' + chr(0b1101010 + 0o5) + chr(513 - 464) + chr(54) + chr(0b1 + 0o60), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(51) + '\065' + chr(48), 0o10), nzTpIcepk0o8('\060' + '\157' + chr(0b110000), 9736 - 9728), nzTpIcepk0o8(chr(1811 - 1763) + '\x6f' + '\x33', 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(0b110001) + chr(52) + '\063', 0b1000), nzTpIcepk0o8(chr(0b10 + 0o56) + chr(0b1101111) + chr(52) + chr(50), 0b1000), nzTpIcepk0o8(chr(244 - 196) + chr(111) + '\x31' + chr(0b110010) + chr(0b11000 + 0o30), ord("\x08")), nzTpIcepk0o8(chr(0b111 + 0o51) + '\x6f' + '\061' + chr(0b10110 + 0o36) + chr(52), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b100101 + 0o22), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b11001 + 0o126) + chr(0b100001 + 0o21) + chr(0b110111) + '\x31', ord("\x08")), nzTpIcepk0o8('\x30' + chr(8105 - 7994) + chr(1918 - 1869) + '\060' + chr(55), 58916 - 58908), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110010) + chr(0b110100) + '\060', 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + '\x31' + chr(52) + chr(0b10101 + 0o34), ord("\x08")), nzTpIcepk0o8(chr(0b101111 + 0o1) + chr(0b10000 + 0o137) + chr(0b1000 + 0o52) + chr(1055 - 1000) + '\065', 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(50) + '\x35' + chr(366 - 312), 12088 - 12080), nzTpIcepk0o8('\x30' + chr(0b111001 + 0o66) + chr(0b10101 + 0o36) + '\x31' + chr(54), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(0b11 + 0o57) + '\x35' + chr(172 - 120), 36833 - 36825), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110011 + 0o0) + '\065' + chr(0b110000), 8), nzTpIcepk0o8(chr(609 - 561) + '\157' + '\067', 8), nzTpIcepk0o8('\x30' + '\x6f' + '\067', 8), nzTpIcepk0o8(chr(2120 - 2072) + '\157' + chr(552 - 501) + '\062' + chr(2184 - 2130), ord("\x08")), nzTpIcepk0o8(chr(1280 - 1232) + chr(6607 - 6496) + chr(0b11 + 0o57) + chr(667 - 617) + chr(0b110000), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110010) + chr(0b11111 + 0o26) + '\062', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(50) + chr(486 - 433) + chr(54), 8), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110111) + '\062', 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(1238 - 1188), 0b1000), nzTpIcepk0o8(chr(48) + chr(9361 - 9250) + '\062' + '\x37' + '\x37', 26603 - 26595), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x33' + '\065' + chr(0b101 + 0o61), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b101011 + 0o10) + chr(0b110001) + chr(55), 0o10), nzTpIcepk0o8(chr(765 - 717) + chr(0b110 + 0o151) + '\061' + '\060' + '\061', ord("\x08")), nzTpIcepk0o8(chr(0b100111 + 0o11) + '\x6f' + chr(51) + '\x36' + chr(0b110000 + 0o3), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b11111 + 0o23) + '\x32' + '\x32', ord("\x08")), nzTpIcepk0o8(chr(2138 - 2090) + '\157' + '\x32' + '\067' + '\065', 8), nzTpIcepk0o8('\060' + '\x6f' + chr(49) + '\060' + chr(0b110011), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + '\x33' + chr(53) + '\062', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1010000 + 0o37) + '\x31' + chr(55) + '\062', ord("\x08")), nzTpIcepk0o8(chr(1377 - 1329) + chr(3469 - 3358) + chr(0b0 + 0o66) + chr(0b1111 + 0o50), 0o10), nzTpIcepk0o8('\060' + chr(111) + '\061' + chr(0b110110) + '\x30', 0o10), nzTpIcepk0o8(chr(1195 - 1147) + chr(0b1100 + 0o143) + chr(0b110011) + chr(832 - 777) + chr(1274 - 1221), 9905 - 9897), nzTpIcepk0o8(chr(0b110000) + chr(7294 - 7183) + chr(0b110101) + chr(0b110111), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + chr(111) + '\065' + chr(0b10010 + 0o36), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'_'), chr(100) + chr(101) + '\x63' + chr(1718 - 1607) + chr(100) + chr(0b1100101))('\165' + chr(0b111001 + 0o73) + '\146' + chr(45) + '\x38') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def _A8qWiiAVEqQ(hXMPsSrOQzbh, UtZvTnutzMHg, **q5n0sHDDTy90):
return roI3spqORKae(SsdNdRxXOwsF.api, roI3spqORKae(ES5oEprVxulp(b'\x01\x9aoi\x06A$;t\xdc3\xff\x11\xcf\xc1\xbe\xc9\x9asn\xb3\xe3'), chr(1742 - 1642) + chr(8592 - 8491) + chr(99) + '\157' + '\144' + '\x65')(chr(117) + chr(3821 - 3705) + chr(0b1100110) + chr(45) + '\x38'))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x15\xdeKV\rp\x01\x121\x8et\x95'), chr(100) + chr(3876 - 3775) + '\x63' + chr(111) + chr(100) + chr(0b1100101))(chr(0b1110101) + '\x74' + '\146' + chr(1846 - 1801) + '\x38')), {roI3spqORKae(ES5oEprVxulp(b'\x01\x9aos\x06P$\rb\xca'), '\144' + chr(0b1100101) + chr(99) + chr(0b1101111) + '\x64' + chr(101))(chr(117) + '\164' + chr(0b100001 + 0o105) + chr(0b110 + 0o47) + chr(1112 - 1056)): UtZvTnutzMHg}, **q5n0sHDDTy90)
|
dnanexus/dx-toolkit
|
src/python/dxpy/exceptions.py
|
format_exception
|
def format_exception(e):
"""Returns a string containing the type and text of the exception.
"""
from .utils.printing import fill
return '\n'.join(fill(line) for line in traceback.format_exception_only(type(e), e))
|
python
|
def format_exception(e):
"""Returns a string containing the type and text of the exception.
"""
from .utils.printing import fill
return '\n'.join(fill(line) for line in traceback.format_exception_only(type(e), e))
|
[
"def",
"format_exception",
"(",
"e",
")",
":",
"from",
".",
"utils",
".",
"printing",
"import",
"fill",
"return",
"'\\n'",
".",
"join",
"(",
"fill",
"(",
"line",
")",
"for",
"line",
"in",
"traceback",
".",
"format_exception_only",
"(",
"type",
"(",
"e",
")",
",",
"e",
")",
")"
] |
Returns a string containing the type and text of the exception.
|
[
"Returns",
"a",
"string",
"containing",
"the",
"type",
"and",
"text",
"of",
"the",
"exception",
"."
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/exceptions.py#L185-L190
|
train
|
Returns a string containing the type and text of the exception.
|
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,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RaY,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) + '\061' + '\063' + chr(0b110000), 0o10), nzTpIcepk0o8('\x30' + chr(0b101010 + 0o105) + chr(0b1101 + 0o44) + chr(0b1110 + 0o45) + chr(1164 - 1113), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110010) + '\063' + '\063', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110 + 0o53) + chr(53) + '\x34', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110001) + chr(0b110 + 0o60), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110000 + 0o1) + '\061' + chr(243 - 190), 43550 - 43542), nzTpIcepk0o8(chr(0b10110 + 0o32) + chr(111) + chr(1651 - 1601) + chr(675 - 624) + chr(268 - 220), 0o10), nzTpIcepk0o8('\060' + chr(0b11001 + 0o126) + chr(50) + '\062' + chr(994 - 943), 39072 - 39064), nzTpIcepk0o8('\060' + chr(0b1100011 + 0o14) + '\x31' + '\x34' + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x31' + '\063' + chr(52), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110011) + chr(0b110010 + 0o2), 50412 - 50404), nzTpIcepk0o8(chr(0b100101 + 0o13) + '\157' + chr(0b110110) + '\063', 37443 - 37435), nzTpIcepk0o8(chr(0b1001 + 0o47) + chr(111) + '\062' + chr(0b10110 + 0o41) + '\060', 0b1000), nzTpIcepk0o8('\060' + chr(111) + '\062' + chr(0b100100 + 0o16) + '\066', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(1546 - 1496) + '\062' + '\066', 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x33' + chr(49) + chr(0b110111), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\062' + chr(0b110010) + '\061', 30763 - 30755), nzTpIcepk0o8(chr(1115 - 1067) + chr(111) + '\x33' + '\066', 25228 - 25220), nzTpIcepk0o8('\060' + '\x6f' + chr(0b1100 + 0o47) + '\x35' + '\062', 50932 - 50924), nzTpIcepk0o8(chr(0b1 + 0o57) + '\157' + chr(0b110011) + chr(0b110111) + '\060', 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(50) + chr(0b110111), 26006 - 25998), nzTpIcepk0o8(chr(842 - 794) + chr(0b1101111) + '\063', ord("\x08")), nzTpIcepk0o8(chr(0b101 + 0o53) + chr(111) + '\061' + chr(1876 - 1823) + chr(52), 8), nzTpIcepk0o8('\060' + '\157' + '\x35' + chr(53), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(2048 - 1997) + chr(1560 - 1508) + chr(0b11001 + 0o31), 0o10), nzTpIcepk0o8(chr(0b101010 + 0o6) + chr(111) + chr(1447 - 1396) + '\x32', ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(0b100110 + 0o13) + chr(2194 - 2145) + '\066', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x37', 47577 - 47569), nzTpIcepk0o8('\x30' + '\157' + chr(51) + chr(1591 - 1541) + chr(52), 16775 - 16767), nzTpIcepk0o8(chr(0b100111 + 0o11) + chr(111) + '\x31' + chr(49) + chr(939 - 886), 8), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110001) + chr(2161 - 2110) + chr(1414 - 1361), 10508 - 10500), nzTpIcepk0o8(chr(48) + chr(0b1001100 + 0o43) + '\066' + chr(0b100 + 0o54), 0o10), nzTpIcepk0o8('\x30' + chr(111) + '\x31' + '\064', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b1 + 0o61) + chr(50) + '\064', ord("\x08")), nzTpIcepk0o8(chr(869 - 821) + '\157' + chr(2214 - 2165) + chr(0b101110 + 0o10) + chr(0b10000 + 0o42), 0o10), nzTpIcepk0o8(chr(48) + chr(6502 - 6391) + chr(0b110011) + chr(52), 8), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b1100 + 0o45) + '\063' + '\066', 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(51) + '\x35', 0o10), nzTpIcepk0o8(chr(48) + '\157' + '\061' + chr(50) + chr(432 - 381), 0b1000), nzTpIcepk0o8(chr(2293 - 2245) + chr(11190 - 11079) + chr(1282 - 1233) + chr(0b110010), 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(1044 - 996) + chr(0b1011 + 0o144) + '\065' + chr(48), 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'v'), chr(5415 - 5315) + '\x65' + '\143' + '\x6f' + chr(2065 - 1965) + chr(9829 - 9728))(chr(117) + chr(0b1110100) + chr(102) + '\055' + '\070') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def NtA5Lcp9RBcP(wgf0sgcu_xPL):
(pPmkLCVA328e,) = (roI3spqORKae(roI3spqORKae(rFFUeiYWzOhx(roI3spqORKae(ES5oEprVxulp(b'-/\xf2\x00}c\xe8\xe1\x082hZ\xd6\xf1'), chr(0b1100100) + '\x65' + chr(7114 - 7015) + chr(0b101 + 0o152) + chr(0b1100100) + '\145')(chr(0b11000 + 0o135) + chr(116) + chr(0b1100110) + chr(0b101101) + '\x38'), roI3spqORKae(ES5oEprVxulp(b'>2\xf7\x00'), '\x64' + chr(0b1001 + 0o134) + chr(0b111111 + 0o44) + chr(0b1101111) + '\x64' + '\145')('\x75' + '\x74' + chr(0b1100110) + chr(45) + chr(1259 - 1203))), roI3spqORKae(ES5oEprVxulp(b'()\xf2\x02z$\xf6\xf4'), chr(0b1100100) + '\145' + '\x63' + chr(0b1101111) + chr(7451 - 7351) + chr(0b1100101))(chr(0b111000 + 0o75) + '\x74' + '\x66' + chr(793 - 748) + chr(0b11010 + 0o36))), roI3spqORKae(ES5oEprVxulp(b'>2\xf7\x00'), '\144' + chr(101) + '\143' + '\x6f' + '\144' + chr(9806 - 9705))(chr(0b1110101) + '\164' + '\x66' + chr(947 - 902) + '\x38')),)
return roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'R'), '\144' + chr(7378 - 7277) + chr(99) + '\157' + chr(0b100 + 0o140) + chr(0b100 + 0o141))('\165' + chr(0b1110100) + '\146' + '\x2d' + chr(56)), roI3spqORKae(ES5oEprVxulp(b'\x01o\xe2!7\x0f\xfb\xf55\x1fRB'), chr(0b111011 + 0o51) + '\x65' + chr(0b1100011) + chr(533 - 422) + '\x64' + chr(0b110011 + 0o62))(chr(117) + '\164' + chr(0b1010001 + 0o25) + chr(0b100001 + 0o14) + chr(56)))((pPmkLCVA328e(ffiOpFBWGmZU) for ffiOpFBWGmZU in roI3spqORKae(N5iKB8EqlT7p, roI3spqORKae(ES5oEprVxulp(b'>4\xe9\x01o9\xc7\xf6\x19?yC\xcc\xff\xf9\xa1\xceq\x84\x94n'), chr(100) + '\145' + '\143' + '\157' + chr(0b110010 + 0o62) + chr(0b1100101))(chr(0b1010110 + 0o37) + chr(116) + chr(102) + chr(45) + '\070'))(MJ07XsN5uFgW(wgf0sgcu_xPL), wgf0sgcu_xPL)))
|
dnanexus/dx-toolkit
|
src/python/dxpy/exceptions.py
|
exit_with_exc_info
|
def exit_with_exc_info(code=1, message='', print_tb=False, exception=None):
'''Exits the program, printing information about the last exception (if
any) and an optional error message. Uses *exception* instead if provided.
:param code: Exit code.
:type code: integer (valid exit code, 0-255)
:param message: Message to be printed after the exception information.
:type message: string
:param print_tb: If set to True, prints the exception traceback; otherwise, suppresses it.
:type print_tb: boolean
:type exception: an exception to use in place of the last exception raised
'''
exc_type, exc_value = (exception.__class__, exception) \
if exception is not None else sys.exc_info()[:2]
if exc_type is not None:
if print_tb:
traceback.print_exc()
elif isinstance(exc_value, KeyboardInterrupt):
sys.stderr.write('^C\n')
else:
for line in traceback.format_exception_only(exc_type, exc_value):
sys.stderr.write(line)
sys.stderr.write(message)
if message != '' and not message.endswith('\n'):
sys.stderr.write('\n')
sys.exit(code)
|
python
|
def exit_with_exc_info(code=1, message='', print_tb=False, exception=None):
'''Exits the program, printing information about the last exception (if
any) and an optional error message. Uses *exception* instead if provided.
:param code: Exit code.
:type code: integer (valid exit code, 0-255)
:param message: Message to be printed after the exception information.
:type message: string
:param print_tb: If set to True, prints the exception traceback; otherwise, suppresses it.
:type print_tb: boolean
:type exception: an exception to use in place of the last exception raised
'''
exc_type, exc_value = (exception.__class__, exception) \
if exception is not None else sys.exc_info()[:2]
if exc_type is not None:
if print_tb:
traceback.print_exc()
elif isinstance(exc_value, KeyboardInterrupt):
sys.stderr.write('^C\n')
else:
for line in traceback.format_exception_only(exc_type, exc_value):
sys.stderr.write(line)
sys.stderr.write(message)
if message != '' and not message.endswith('\n'):
sys.stderr.write('\n')
sys.exit(code)
|
[
"def",
"exit_with_exc_info",
"(",
"code",
"=",
"1",
",",
"message",
"=",
"''",
",",
"print_tb",
"=",
"False",
",",
"exception",
"=",
"None",
")",
":",
"exc_type",
",",
"exc_value",
"=",
"(",
"exception",
".",
"__class__",
",",
"exception",
")",
"if",
"exception",
"is",
"not",
"None",
"else",
"sys",
".",
"exc_info",
"(",
")",
"[",
":",
"2",
"]",
"if",
"exc_type",
"is",
"not",
"None",
":",
"if",
"print_tb",
":",
"traceback",
".",
"print_exc",
"(",
")",
"elif",
"isinstance",
"(",
"exc_value",
",",
"KeyboardInterrupt",
")",
":",
"sys",
".",
"stderr",
".",
"write",
"(",
"'^C\\n'",
")",
"else",
":",
"for",
"line",
"in",
"traceback",
".",
"format_exception_only",
"(",
"exc_type",
",",
"exc_value",
")",
":",
"sys",
".",
"stderr",
".",
"write",
"(",
"line",
")",
"sys",
".",
"stderr",
".",
"write",
"(",
"message",
")",
"if",
"message",
"!=",
"''",
"and",
"not",
"message",
".",
"endswith",
"(",
"'\\n'",
")",
":",
"sys",
".",
"stderr",
".",
"write",
"(",
"'\\n'",
")",
"sys",
".",
"exit",
"(",
"code",
")"
] |
Exits the program, printing information about the last exception (if
any) and an optional error message. Uses *exception* instead if provided.
:param code: Exit code.
:type code: integer (valid exit code, 0-255)
:param message: Message to be printed after the exception information.
:type message: string
:param print_tb: If set to True, prints the exception traceback; otherwise, suppresses it.
:type print_tb: boolean
:type exception: an exception to use in place of the last exception raised
|
[
"Exits",
"the",
"program",
"printing",
"information",
"about",
"the",
"last",
"exception",
"(",
"if",
"any",
")",
"and",
"an",
"optional",
"error",
"message",
".",
"Uses",
"*",
"exception",
"*",
"instead",
"if",
"provided",
"."
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/exceptions.py#L193-L220
|
train
|
Exits the program with an exception information.
|
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('\x30' + chr(0b100010 + 0o115) + '\x33' + chr(1766 - 1716) + chr(0b110111), ord("\x08")), nzTpIcepk0o8(chr(361 - 313) + '\157' + '\x31' + chr(53) + chr(0b1011 + 0o50), 0o10), nzTpIcepk0o8('\060' + chr(1724 - 1613) + '\x35' + '\065', 0o10), nzTpIcepk0o8('\060' + '\x6f' + '\061' + chr(0b110110), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(10289 - 10178) + '\061' + chr(0b110111), 61207 - 61199), nzTpIcepk0o8(chr(1079 - 1031) + '\x6f' + chr(0b110001) + chr(50) + '\x30', 0b1000), nzTpIcepk0o8(chr(0b101111 + 0o1) + chr(111) + chr(0b110011) + '\066' + chr(51), 3786 - 3778), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(49) + '\063' + chr(0b10001 + 0o43), 0o10), nzTpIcepk0o8('\060' + '\157' + chr(2140 - 2090) + chr(51) + chr(0b110010 + 0o3), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(1871 - 1822) + chr(1874 - 1820) + chr(0b11000 + 0o36), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(1873 - 1824) + '\065' + chr(0b11 + 0o60), 8), nzTpIcepk0o8(chr(0b10 + 0o56) + chr(111) + '\061' + chr(1059 - 1009) + chr(0b110101 + 0o1), 0b1000), nzTpIcepk0o8(chr(1520 - 1472) + '\x6f' + chr(0b110011 + 0o0) + '\061' + chr(1340 - 1291), 20729 - 20721), nzTpIcepk0o8(chr(0b101001 + 0o7) + '\157' + chr(1994 - 1944) + '\x30', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b111011 + 0o64) + chr(2203 - 2154) + chr(0b110110) + chr(0b100010 + 0o25), ord("\x08")), nzTpIcepk0o8(chr(554 - 506) + '\157' + chr(51) + '\x35' + chr(55), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + '\063', 0b1000), nzTpIcepk0o8('\060' + chr(0b101011 + 0o104) + chr(0b1001 + 0o52) + '\x34' + chr(0b110100), 0o10), nzTpIcepk0o8(chr(0b111 + 0o51) + chr(1113 - 1002) + '\065' + chr(2492 - 2441), 0o10), nzTpIcepk0o8(chr(0b110000 + 0o0) + chr(111) + chr(0b110101) + '\061', 0o10), nzTpIcepk0o8('\060' + '\157' + '\x32' + '\066' + '\066', ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + '\x33' + '\062' + chr(1064 - 1016), 60510 - 60502), nzTpIcepk0o8(chr(48) + chr(111) + '\066' + chr(51), 38948 - 38940), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(74 - 24) + '\x33' + '\x30', 0o10), nzTpIcepk0o8(chr(48) + chr(2341 - 2230) + chr(784 - 734) + chr(54) + chr(50), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\061' + '\x36' + chr(2282 - 2229), 0b1000), nzTpIcepk0o8(chr(0b11010 + 0o26) + chr(0b111000 + 0o67) + '\062' + '\060' + chr(177 - 122), 6522 - 6514), nzTpIcepk0o8(chr(48) + chr(0b1011101 + 0o22) + chr(0b1100 + 0o47) + chr(0b110001) + chr(618 - 568), 0b1000), nzTpIcepk0o8('\060' + chr(6914 - 6803) + '\062' + chr(0b110000) + '\x33', ord("\x08")), nzTpIcepk0o8(chr(177 - 129) + '\157' + chr(51) + chr(0b110000) + '\x30', 0o10), nzTpIcepk0o8(chr(0b10111 + 0o31) + chr(111) + chr(0b11100 + 0o25) + chr(0b11000 + 0o32) + '\061', 0o10), nzTpIcepk0o8('\060' + '\157' + chr(0b10100 + 0o36) + '\060' + chr(1264 - 1210), 0o10), nzTpIcepk0o8(chr(48) + chr(3566 - 3455) + '\067' + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110010) + chr(0b10110 + 0o35) + '\x37', 0b1000), nzTpIcepk0o8(chr(516 - 468) + chr(0b1101111) + '\062' + chr(51) + chr(0b110110), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(0b10 + 0o61) + '\x31' + '\x36', ord("\x08")), nzTpIcepk0o8(chr(0b10110 + 0o32) + chr(2327 - 2216) + '\x36', 0o10), nzTpIcepk0o8('\x30' + '\157' + '\061' + '\063' + chr(54), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + '\061' + '\064' + chr(0b101001 + 0o14), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b0 + 0o61) + chr(292 - 241), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b1001 + 0o47) + chr(8711 - 8600) + '\065' + '\060', ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xf9'), chr(0b1100100) + chr(101) + chr(99) + '\157' + chr(0b1100100) + '\x65')(chr(117) + chr(0b1011111 + 0o25) + chr(0b1100110) + chr(0b11000 + 0o25) + chr(56)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def YbY1nYxWfUP2(MJEGgvK3nnE9=nzTpIcepk0o8(chr(0b1000 + 0o50) + '\157' + '\x31', ord("\x08")), FksNMH1w_ns6=roI3spqORKae(ES5oEprVxulp(b''), chr(0b1100100) + chr(1333 - 1232) + '\143' + chr(0b1101111) + '\144' + chr(101))(chr(0b101010 + 0o113) + chr(2386 - 2270) + chr(0b1100110) + '\055' + chr(0b111000)), o0myIlCfTTPw=nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(48), 0b1000), rcLaJbcJMcNv=None):
(XSswSSN4D6p8, iFwag1Q2Cqei) = (rcLaJbcJMcNv.ms49tbQaVKwA, rcLaJbcJMcNv) if rcLaJbcJMcNv is not None else bpyfpu4kTbwL.qF3EF2C3zYWo()[:nzTpIcepk0o8('\060' + '\x6f' + chr(50), 39514 - 39506)]
if XSswSSN4D6p8 is not None:
if o0myIlCfTTPw:
roI3spqORKae(N5iKB8EqlT7p, roI3spqORKae(ES5oEprVxulp(b'\xa7\x19D`{\x0f\x96$\xfe'), chr(3234 - 3134) + chr(0b111010 + 0o53) + chr(0b1100011) + '\157' + chr(0b1000001 + 0o43) + '\145')(chr(7461 - 7344) + chr(0b1000011 + 0o61) + chr(0b1100110) + chr(45) + '\070'))()
elif suIjIS24Zkqw(iFwag1Q2Cqei, Fc8q2OvvlH7d):
roI3spqORKae(bpyfpu4kTbwL.stderr, roI3spqORKae(ES5oEprVxulp(b'\xba\x07\x1dfg \x85m\xd1\x06\x1ad'), chr(8674 - 8574) + chr(101) + chr(0b1100011) + chr(111) + chr(100) + '\145')(chr(117) + chr(8280 - 8164) + chr(4692 - 4590) + chr(450 - 405) + chr(1007 - 951)))(roI3spqORKae(ES5oEprVxulp(b"\x89('"), chr(0b100110 + 0o76) + chr(0b1100101) + '\x63' + chr(111) + chr(456 - 356) + chr(9697 - 9596))(chr(0b1001010 + 0o53) + '\x74' + chr(0b1010010 + 0o24) + chr(247 - 202) + chr(227 - 171)))
else:
for ffiOpFBWGmZU in roI3spqORKae(N5iKB8EqlT7p, roI3spqORKae(ES5oEprVxulp(b'\xb1\x04_cn$\xac9\xe5\x15\x0e&\xbdy\x18\x81\\\x8bEE\xcf'), '\x64' + chr(101) + chr(0b1100011) + chr(0b1000000 + 0o57) + '\x64' + chr(445 - 344))('\165' + chr(10200 - 10084) + chr(0b1100110) + '\x2d' + chr(848 - 792)))(XSswSSN4D6p8, iFwag1Q2Cqei):
roI3spqORKae(bpyfpu4kTbwL.stderr, roI3spqORKae(ES5oEprVxulp(b'\xba\x07\x1dfg \x85m\xd1\x06\x1ad'), chr(100) + chr(1836 - 1735) + chr(0b1100011) + '\x6f' + '\x64' + chr(101))('\x75' + chr(0b1100 + 0o150) + chr(102) + chr(0b101001 + 0o4) + chr(0b110111 + 0o1)))(ffiOpFBWGmZU)
roI3spqORKae(bpyfpu4kTbwL.stderr, roI3spqORKae(ES5oEprVxulp(b'\xba\x07\x1dfg \x85m\xd1\x06\x1ad'), chr(0b1100100) + '\145' + '\x63' + '\157' + chr(0b11110 + 0o106) + chr(101))(chr(0b1110101) + chr(0b1110100) + chr(5862 - 5760) + chr(45) + chr(0b101101 + 0o13)))(FksNMH1w_ns6)
if FksNMH1w_ns6 != roI3spqORKae(ES5oEprVxulp(b''), chr(0b111101 + 0o47) + chr(0b1100000 + 0o5) + '\143' + chr(0b1101111 + 0o0) + chr(7513 - 7413) + chr(0b1100101))(chr(0b1110101) + '\x74' + chr(102) + '\055' + chr(339 - 283)) and (not roI3spqORKae(FksNMH1w_ns6, roI3spqORKae(ES5oEprVxulp(b'\x9eRKEF\x13\xb2\x10\xfc\x03!$'), chr(0b101 + 0o137) + chr(0b1100101) + chr(99) + chr(0b1101111) + '\x64' + chr(0b10000 + 0o125))(chr(0b1110101) + '\164' + chr(1802 - 1700) + chr(45) + chr(0b110011 + 0o5)))(roI3spqORKae(ES5oEprVxulp(b'\xdd'), chr(0b1100100) + '\x65' + chr(0b100 + 0o137) + chr(9574 - 9463) + chr(100) + chr(0b1100100 + 0o1))(chr(117) + chr(0b1110100) + '\x66' + chr(1850 - 1805) + '\x38'))):
roI3spqORKae(bpyfpu4kTbwL.stderr, roI3spqORKae(ES5oEprVxulp(b'\xba\x07\x1dfg \x85m\xd1\x06\x1ad'), chr(100) + chr(4650 - 4549) + '\x63' + chr(0b1100001 + 0o16) + chr(0b1100100) + chr(0b1110 + 0o127))(chr(117) + chr(0b1011001 + 0o33) + chr(3449 - 3347) + chr(0b1100 + 0o41) + chr(1939 - 1883)))(roI3spqORKae(ES5oEprVxulp(b'\xdd'), '\144' + '\145' + chr(99) + chr(111) + '\x64' + chr(1418 - 1317))(chr(117) + '\164' + chr(0b1100110) + chr(0b101100 + 0o1) + chr(1151 - 1095)))
roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\x8d\x1e_dl\x05\xbfm\xee\x05*n'), chr(100) + chr(0b1001001 + 0o34) + chr(0b1100011) + chr(0b11010 + 0o125) + '\x64' + chr(0b1100101))(chr(0b101100 + 0o111) + '\164' + chr(4250 - 4148) + chr(45) + chr(2788 - 2732)))(MJEGgvK3nnE9)
|
dnanexus/dx-toolkit
|
src/python/dxpy/exceptions.py
|
err_exit
|
def err_exit(message='', code=None, expected_exceptions=default_expected_exceptions, arg_parser=None,
ignore_sigpipe=True, exception=None):
'''Exits the program, printing information about the last exception (if
any) and an optional error message. Uses *exception* instead if provided.
Uses **expected_exceptions** to set the error code decide whether to
suppress the error traceback.
:param message: Message to be printed after the exception information.
:type message: string
:param code: Exit code.
:type code: integer (valid exit code, 0-255)
:param expected_exceptions: Exceptions for which to exit with error code 3 (expected error condition) and suppress the stack trace (unless the _DX_DEBUG environment variable is set).
:type expected_exceptions: iterable
:param arg_parser: argparse.ArgumentParser object used in the program (optional)
:param ignore_sigpipe: Whether to exit silently with code 3 when IOError with code EPIPE is raised. Default true.
:type ignore_sigpipe: boolean
:param exception: an exception to use in place of the last exception raised
'''
if arg_parser is not None:
message = arg_parser.prog + ": " + message
exc = exception if exception is not None else sys.exc_info()[1]
if isinstance(exc, SystemExit):
raise exc
elif isinstance(exc, expected_exceptions):
exit_with_exc_info(EXPECTED_ERR_EXIT_STATUS, message, print_tb=dxpy._DEBUG > 0, exception=exception)
elif ignore_sigpipe and isinstance(exc, IOError) and getattr(exc, 'errno', None) == errno.EPIPE:
if dxpy._DEBUG > 0:
print("Broken pipe", file=sys.stderr)
sys.exit(3)
else:
if code is None:
code = 1
exit_with_exc_info(code, message, print_tb=True, exception=exception)
|
python
|
def err_exit(message='', code=None, expected_exceptions=default_expected_exceptions, arg_parser=None,
ignore_sigpipe=True, exception=None):
'''Exits the program, printing information about the last exception (if
any) and an optional error message. Uses *exception* instead if provided.
Uses **expected_exceptions** to set the error code decide whether to
suppress the error traceback.
:param message: Message to be printed after the exception information.
:type message: string
:param code: Exit code.
:type code: integer (valid exit code, 0-255)
:param expected_exceptions: Exceptions for which to exit with error code 3 (expected error condition) and suppress the stack trace (unless the _DX_DEBUG environment variable is set).
:type expected_exceptions: iterable
:param arg_parser: argparse.ArgumentParser object used in the program (optional)
:param ignore_sigpipe: Whether to exit silently with code 3 when IOError with code EPIPE is raised. Default true.
:type ignore_sigpipe: boolean
:param exception: an exception to use in place of the last exception raised
'''
if arg_parser is not None:
message = arg_parser.prog + ": " + message
exc = exception if exception is not None else sys.exc_info()[1]
if isinstance(exc, SystemExit):
raise exc
elif isinstance(exc, expected_exceptions):
exit_with_exc_info(EXPECTED_ERR_EXIT_STATUS, message, print_tb=dxpy._DEBUG > 0, exception=exception)
elif ignore_sigpipe and isinstance(exc, IOError) and getattr(exc, 'errno', None) == errno.EPIPE:
if dxpy._DEBUG > 0:
print("Broken pipe", file=sys.stderr)
sys.exit(3)
else:
if code is None:
code = 1
exit_with_exc_info(code, message, print_tb=True, exception=exception)
|
[
"def",
"err_exit",
"(",
"message",
"=",
"''",
",",
"code",
"=",
"None",
",",
"expected_exceptions",
"=",
"default_expected_exceptions",
",",
"arg_parser",
"=",
"None",
",",
"ignore_sigpipe",
"=",
"True",
",",
"exception",
"=",
"None",
")",
":",
"if",
"arg_parser",
"is",
"not",
"None",
":",
"message",
"=",
"arg_parser",
".",
"prog",
"+",
"\": \"",
"+",
"message",
"exc",
"=",
"exception",
"if",
"exception",
"is",
"not",
"None",
"else",
"sys",
".",
"exc_info",
"(",
")",
"[",
"1",
"]",
"if",
"isinstance",
"(",
"exc",
",",
"SystemExit",
")",
":",
"raise",
"exc",
"elif",
"isinstance",
"(",
"exc",
",",
"expected_exceptions",
")",
":",
"exit_with_exc_info",
"(",
"EXPECTED_ERR_EXIT_STATUS",
",",
"message",
",",
"print_tb",
"=",
"dxpy",
".",
"_DEBUG",
">",
"0",
",",
"exception",
"=",
"exception",
")",
"elif",
"ignore_sigpipe",
"and",
"isinstance",
"(",
"exc",
",",
"IOError",
")",
"and",
"getattr",
"(",
"exc",
",",
"'errno'",
",",
"None",
")",
"==",
"errno",
".",
"EPIPE",
":",
"if",
"dxpy",
".",
"_DEBUG",
">",
"0",
":",
"print",
"(",
"\"Broken pipe\"",
",",
"file",
"=",
"sys",
".",
"stderr",
")",
"sys",
".",
"exit",
"(",
"3",
")",
"else",
":",
"if",
"code",
"is",
"None",
":",
"code",
"=",
"1",
"exit_with_exc_info",
"(",
"code",
",",
"message",
",",
"print_tb",
"=",
"True",
",",
"exception",
"=",
"exception",
")"
] |
Exits the program, printing information about the last exception (if
any) and an optional error message. Uses *exception* instead if provided.
Uses **expected_exceptions** to set the error code decide whether to
suppress the error traceback.
:param message: Message to be printed after the exception information.
:type message: string
:param code: Exit code.
:type code: integer (valid exit code, 0-255)
:param expected_exceptions: Exceptions for which to exit with error code 3 (expected error condition) and suppress the stack trace (unless the _DX_DEBUG environment variable is set).
:type expected_exceptions: iterable
:param arg_parser: argparse.ArgumentParser object used in the program (optional)
:param ignore_sigpipe: Whether to exit silently with code 3 when IOError with code EPIPE is raised. Default true.
:type ignore_sigpipe: boolean
:param exception: an exception to use in place of the last exception raised
|
[
"Exits",
"the",
"program",
"printing",
"information",
"about",
"the",
"last",
"exception",
"(",
"if",
"any",
")",
"and",
"an",
"optional",
"error",
"message",
".",
"Uses",
"*",
"exception",
"*",
"instead",
"if",
"provided",
"."
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/exceptions.py#L235-L269
|
train
|
Exits the program with an error code and an optional error message.
|
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,UBvEeZymp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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(48) + '\x6f' + chr(51) + '\061' + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(1268 - 1157) + '\067' + chr(0b110011), 10936 - 10928), nzTpIcepk0o8(chr(48) + chr(0b11100 + 0o123) + chr(0b110101) + chr(2341 - 2286), 63085 - 63077), nzTpIcepk0o8(chr(0b10010 + 0o36) + chr(0b1101111) + '\063' + chr(0b110101) + '\x33', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1011011 + 0o24) + chr(0b101111 + 0o6) + chr(0b110 + 0o53), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(55 - 4) + chr(49) + chr(48), 63181 - 63173), nzTpIcepk0o8(chr(1987 - 1939) + chr(0b1101111) + chr(0b11111 + 0o23) + chr(0b0 + 0o64) + '\064', 64944 - 64936), nzTpIcepk0o8('\x30' + '\157' + '\x32' + chr(52) + chr(50), 0b1000), nzTpIcepk0o8(chr(1779 - 1731) + chr(0b1010101 + 0o32) + chr(0b101010 + 0o10) + chr(641 - 590) + chr(55), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + '\061' + chr(0b100001 + 0o17) + chr(0b101011 + 0o5), 0o10), nzTpIcepk0o8(chr(1257 - 1209) + chr(573 - 462) + chr(2215 - 2166) + '\x35' + chr(2135 - 2084), 36060 - 36052), nzTpIcepk0o8(chr(56 - 8) + chr(11194 - 11083) + '\062' + chr(0b110000), ord("\x08")), nzTpIcepk0o8(chr(447 - 399) + chr(0b1101111) + '\x33' + chr(0b11110 + 0o26) + chr(0b10 + 0o64), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(5823 - 5712) + chr(0b110010) + chr(51) + chr(0b110100), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(0b11111 + 0o24) + chr(0b1010 + 0o46) + chr(2053 - 1998), 0b1000), nzTpIcepk0o8('\x30' + chr(0b11000 + 0o127) + chr(0b110001) + chr(52) + chr(0b110000), 45512 - 45504), nzTpIcepk0o8(chr(0b100001 + 0o17) + '\x6f' + '\062' + chr(0b101000 + 0o12) + chr(116 - 62), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + '\061' + chr(50) + '\067', ord("\x08")), nzTpIcepk0o8(chr(705 - 657) + chr(0b10100 + 0o133) + '\x32' + '\x31' + chr(0b110011 + 0o3), 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110011) + chr(52) + chr(53), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b10110 + 0o33) + chr(0b100011 + 0o22) + chr(55), ord("\x08")), nzTpIcepk0o8(chr(429 - 381) + chr(11243 - 11132) + chr(51) + '\x35' + '\063', 8), nzTpIcepk0o8(chr(48) + chr(11855 - 11744) + chr(1716 - 1666) + chr(0b101000 + 0o10) + chr(440 - 385), 0b1000), nzTpIcepk0o8(chr(990 - 942) + chr(111) + chr(1301 - 1250) + chr(0b11000 + 0o31) + '\063', ord("\x08")), nzTpIcepk0o8(chr(1211 - 1163) + chr(0b1101111) + '\x33' + '\x36' + '\066', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(1910 - 1859) + chr(0b110100) + '\064', 56868 - 56860), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(51) + chr(0b101111 + 0o1) + chr(55), 8), nzTpIcepk0o8(chr(430 - 382) + chr(4752 - 4641) + chr(0b110010) + '\x31' + '\x37', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b11110 + 0o121) + chr(0b110001) + chr(303 - 252) + '\062', 47722 - 47714), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b10010 + 0o41) + '\065' + chr(53), 2714 - 2706), nzTpIcepk0o8('\060' + chr(0b1101111) + '\063' + '\x33' + chr(0b100010 + 0o20), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b100100 + 0o113) + chr(50) + chr(0b100001 + 0o17) + chr(315 - 261), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(1355 - 1305) + chr(55) + chr(0b1110 + 0o51), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b100 + 0o55) + '\065' + chr(54), 44250 - 44242), nzTpIcepk0o8(chr(0b101011 + 0o5) + chr(0b1001000 + 0o47) + '\061' + chr(418 - 369) + '\x36', ord("\x08")), nzTpIcepk0o8(chr(2043 - 1995) + chr(0b1101111) + chr(0b1011 + 0o50) + chr(189 - 138) + chr(52), 0o10), nzTpIcepk0o8(chr(1998 - 1950) + '\x6f' + '\065', ord("\x08")), nzTpIcepk0o8(chr(819 - 771) + chr(0b1101111) + chr(50) + chr(1718 - 1669) + '\067', 8), nzTpIcepk0o8('\x30' + chr(111) + chr(0b100111 + 0o13) + chr(0b110100) + '\062', 8), nzTpIcepk0o8(chr(1196 - 1148) + '\x6f' + chr(0b110 + 0o55) + chr(109 - 55) + chr(0b100100 + 0o14), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + chr(0b100001 + 0o116) + chr(0b100101 + 0o20) + chr(0b110000), ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xe2'), chr(5731 - 5631) + '\145' + chr(99) + '\x6f' + chr(0b1100100) + '\145')(chr(1543 - 1426) + '\164' + '\x66' + chr(1679 - 1634) + '\070') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def F16fGuypkEJS(FksNMH1w_ns6=roI3spqORKae(ES5oEprVxulp(b''), chr(2299 - 2199) + chr(0b1100101) + chr(0b100110 + 0o75) + chr(111) + chr(0b111101 + 0o47) + chr(101))('\x75' + '\x74' + '\x66' + '\x2d' + chr(56)), MJEGgvK3nnE9=None, qoUu3s5YmIJT=KjLO6xwdFCfJ, bCPkA5flNgHN=None, vODAXWc80ttB=nzTpIcepk0o8('\x30' + chr(11168 - 11057) + chr(0b110001), 0b1000), rcLaJbcJMcNv=None):
if bCPkA5flNgHN is not None:
FksNMH1w_ns6 = bCPkA5flNgHN.prog + roI3spqORKae(ES5oEprVxulp(b'\xf6\x1b'), chr(4976 - 4876) + '\x65' + chr(5118 - 5019) + '\157' + chr(0b1100100) + chr(101))(chr(117) + '\x74' + '\x66' + chr(45) + chr(0b111000)) + FksNMH1w_ns6
UmlM4OyLHmCY = rcLaJbcJMcNv if rcLaJbcJMcNv is not None else bpyfpu4kTbwL.qF3EF2C3zYWo()[nzTpIcepk0o8(chr(0b10111 + 0o31) + chr(111) + chr(0b11110 + 0o23), 8)]
if suIjIS24Zkqw(UmlM4OyLHmCY, UIHY5MV5X5uS):
raise UmlM4OyLHmCY
elif suIjIS24Zkqw(UmlM4OyLHmCY, qoUu3s5YmIJT):
YbY1nYxWfUP2(gyfuSX3AsZCt, FksNMH1w_ns6, print_tb=roI3spqORKae(SsdNdRxXOwsF, roI3spqORKae(ES5oEprVxulp(b'\x93\x7fj\xa9|\x8f'), chr(0b1100100) + chr(0b1100101) + chr(0b1100011) + chr(0b1000101 + 0o52) + chr(0b10111 + 0o115) + chr(0b1100101))(chr(0b1110101) + '\x74' + chr(0b1000 + 0o136) + chr(207 - 162) + chr(2145 - 2089))) > nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(653 - 605), ord("\x08")), exception=rcLaJbcJMcNv)
elif vODAXWc80ttB and suIjIS24Zkqw(UmlM4OyLHmCY, Awc2QmWaiVq8) and (roI3spqORKae(UmlM4OyLHmCY, roI3spqORKae(ES5oEprVxulp(b'\xa9I]\x85F'), '\144' + chr(0b111010 + 0o53) + chr(6783 - 6684) + '\157' + chr(0b1100100) + '\x65')(chr(117) + chr(116) + '\146' + chr(0b101101) + chr(3060 - 3004)), None) == roI3spqORKae(h3248tw1YxI0, roI3spqORKae(ES5oEprVxulp(b'\x89kf\xbbl'), chr(3132 - 3032) + '\x65' + chr(0b1100011) + chr(0b1010110 + 0o31) + chr(100) + chr(0b1100101))('\165' + chr(4423 - 4307) + chr(0b1100110) + chr(1594 - 1549) + chr(0b10001 + 0o47)))):
if roI3spqORKae(SsdNdRxXOwsF, roI3spqORKae(ES5oEprVxulp(b'\x93\x7fj\xa9|\x8f'), chr(100) + chr(0b100 + 0o141) + chr(0b1100011) + '\x6f' + chr(100) + chr(101))(chr(117) + chr(116) + '\146' + chr(0b11 + 0o52) + chr(56))) > nzTpIcepk0o8(chr(0b11110 + 0o22) + '\x6f' + chr(0b11110 + 0o22), 8):
v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\x8eI@\x80L\xa6\x84\xd2\xf60\x0e'), chr(100) + chr(1444 - 1343) + chr(99) + chr(111) + chr(0b1100100) + '\x65')('\x75' + '\x74' + chr(0b1100110) + chr(1453 - 1408) + '\070'), file=roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\xa3i\x1c\x9fh\xbb\xca\xed\xde0\x06V'), chr(2533 - 2433) + '\145' + chr(2010 - 1911) + '\157' + '\x64' + chr(5033 - 4932))('\165' + chr(4645 - 4529) + chr(102) + chr(45) + chr(0b110100 + 0o4))))
roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\x96N]\x81J\x9d\xe8\x93\xec3*('), chr(100) + chr(0b10011 + 0o122) + chr(0b1100011) + chr(0b1101111) + chr(100) + '\145')(chr(117) + '\164' + chr(1037 - 935) + chr(0b1001 + 0o44) + '\x38'))(nzTpIcepk0o8(chr(1628 - 1580) + chr(252 - 141) + '\063', ord("\x08")))
else:
if MJEGgvK3nnE9 is None:
MJEGgvK3nnE9 = nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(811 - 762), 8)
YbY1nYxWfUP2(MJEGgvK3nnE9, FksNMH1w_ns6, print_tb=nzTpIcepk0o8(chr(0b101000 + 0o10) + chr(0b1011100 + 0o23) + chr(49), 8), exception=rcLaJbcJMcNv)
|
dnanexus/dx-toolkit
|
src/python/dxpy/exceptions.py
|
DXAPIError.error_message
|
def error_message(self):
"Returns a one-line description of the error."
output = self.msg + ", code " + str(self.code)
output += ". Request Time={}, Request ID={}".format(self.timestamp, self.req_id)
if self.name != self.__class__.__name__:
output = self.name + ": " + output
return output
|
python
|
def error_message(self):
"Returns a one-line description of the error."
output = self.msg + ", code " + str(self.code)
output += ". Request Time={}, Request ID={}".format(self.timestamp, self.req_id)
if self.name != self.__class__.__name__:
output = self.name + ": " + output
return output
|
[
"def",
"error_message",
"(",
"self",
")",
":",
"output",
"=",
"self",
".",
"msg",
"+",
"\", code \"",
"+",
"str",
"(",
"self",
".",
"code",
")",
"output",
"+=",
"\". Request Time={}, Request ID={}\"",
".",
"format",
"(",
"self",
".",
"timestamp",
",",
"self",
".",
"req_id",
")",
"if",
"self",
".",
"name",
"!=",
"self",
".",
"__class__",
".",
"__name__",
":",
"output",
"=",
"self",
".",
"name",
"+",
"\": \"",
"+",
"output",
"return",
"output"
] |
Returns a one-line description of the error.
|
[
"Returns",
"a",
"one",
"-",
"line",
"description",
"of",
"the",
"error",
"."
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/exceptions.py#L51-L57
|
train
|
Returns a one - line description of the error.
|
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,zn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ZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__
ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110011), 0o10), nzTpIcepk0o8(chr(0b10001 + 0o37) + chr(0b1101111) + '\066' + chr(0b110101), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(1515 - 1464) + chr(53) + chr(0b110010), 0o10), nzTpIcepk0o8(chr(0b100000 + 0o20) + '\157' + '\x33' + chr(48) + chr(0b110111), ord("\x08")), nzTpIcepk0o8(chr(0b101111 + 0o1) + chr(0b1101111) + chr(2253 - 2203) + chr(1613 - 1565) + '\062', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(51) + chr(0b10010 + 0o40) + chr(0b110001 + 0o6), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + '\x36' + chr(0b110101), 8), nzTpIcepk0o8('\060' + chr(111) + chr(51) + chr(54) + chr(0b100000 + 0o20), 18453 - 18445), nzTpIcepk0o8(chr(506 - 458) + '\x6f' + '\x31' + '\x30' + chr(2263 - 2208), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(72 - 22) + chr(50) + chr(1216 - 1162), 0b1000), nzTpIcepk0o8(chr(141 - 93) + '\x6f' + chr(49) + '\x33' + '\x36', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(8709 - 8598) + chr(0b101110 + 0o3) + chr(0b11111 + 0o23) + '\x35', 44398 - 44390), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(51) + '\061' + '\061', 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110001) + chr(53) + chr(54), 0o10), nzTpIcepk0o8('\060' + '\157' + chr(1990 - 1941) + chr(1457 - 1403) + chr(2920 - 2865), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(50) + chr(0b110000 + 0o2) + '\063', ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + '\063' + chr(0b11000 + 0o33) + chr(0b101100 + 0o7), 8563 - 8555), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(49) + chr(2243 - 2189) + '\x35', 0b1000), nzTpIcepk0o8(chr(0b11011 + 0o25) + chr(0b1101111) + chr(622 - 570) + '\x36', 0b1000), nzTpIcepk0o8(chr(0b11101 + 0o23) + chr(111) + chr(0b101011 + 0o7) + chr(55) + chr(0b0 + 0o67), 0b1000), nzTpIcepk0o8(chr(1148 - 1100) + chr(111) + chr(1402 - 1353) + chr(52) + chr(0b110 + 0o54), 0o10), nzTpIcepk0o8(chr(732 - 684) + chr(111) + chr(0b110111) + chr(0b100111 + 0o17), 43785 - 43777), nzTpIcepk0o8('\x30' + chr(0b10111 + 0o130) + chr(1521 - 1468), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(49) + chr(1693 - 1643) + chr(700 - 650), 11715 - 11707), nzTpIcepk0o8(chr(0b100111 + 0o11) + '\157' + chr(103 - 53) + '\x32' + chr(0b100100 + 0o23), 15306 - 15298), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110001) + chr(53) + chr(0b101001 + 0o13), 0b1000), nzTpIcepk0o8(chr(0b101001 + 0o7) + '\x6f' + chr(0b100110 + 0o13) + chr(0b110001) + chr(0b110111), 17430 - 17422), nzTpIcepk0o8(chr(229 - 181) + chr(0b110101 + 0o72) + '\x33' + chr(0b110101) + chr(0b110011), 0b1000), nzTpIcepk0o8(chr(0b10101 + 0o33) + '\x6f' + '\x32' + chr(48) + '\061', ord("\x08")), nzTpIcepk0o8(chr(0b11011 + 0o25) + chr(0b1101111) + '\x31' + '\061' + chr(0b100 + 0o56), 0o10), nzTpIcepk0o8(chr(0b10 + 0o56) + '\157' + chr(0b110001) + chr(0b101001 + 0o12) + '\063', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(2071 - 2020) + '\066' + chr(730 - 680), 0o10), nzTpIcepk0o8(chr(0b1010 + 0o46) + chr(0b1101111) + '\066' + chr(0b1111 + 0o44), 0o10), nzTpIcepk0o8('\060' + '\157' + chr(1402 - 1352) + '\x37' + '\x30', ord("\x08")), nzTpIcepk0o8(chr(1498 - 1450) + '\157' + chr(656 - 605) + '\x33', 41736 - 41728), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110010) + chr(0b110110) + chr(1834 - 1786), 25367 - 25359), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110001) + '\061' + '\x32', 8), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b100110 + 0o21) + chr(52), 36905 - 36897), nzTpIcepk0o8(chr(2067 - 2019) + chr(111) + '\061' + '\x30' + '\064', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + '\x32' + chr(0b110101) + chr(52), 10471 - 10463)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + '\157' + '\x35' + chr(264 - 216), 35741 - 35733)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'-'), '\x64' + chr(0b1001101 + 0o30) + '\x63' + '\x6f' + chr(0b1100100) + chr(3214 - 3113))('\165' + '\164' + '\146' + chr(45) + chr(56)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def bS7FPLkNNcSI(hXMPsSrOQzbh):
toKQXlEvBKaK = hXMPsSrOQzbh.sldzbHve8G1S + roI3spqORKae(ES5oEprVxulp(b'/\x15\x89\xa8\xe6\xb2\x15'), chr(1997 - 1897) + chr(3430 - 3329) + '\143' + chr(0b1101111) + chr(0b111011 + 0o51) + chr(0b1100101))(chr(0b1110101) + '\x74' + '\146' + '\x2d' + '\070') + N9zlRy29S1SS(hXMPsSrOQzbh.MJEGgvK3nnE9)
toKQXlEvBKaK += roI3spqORKae(ES5oEprVxulp(b'-\x15\xb8\xa2\xf3\xa2P\x833\xb6\n<\xa4\x0bJ\xe8\xa6Y\x06\xed\x07Op7\xe4\x18o\xa2\xc5w \x8f'), chr(1634 - 1534) + chr(101) + chr(0b1101 + 0o126) + chr(0b1000110 + 0o51) + chr(100) + chr(0b1100101))(chr(0b1011100 + 0o31) + chr(0b10010 + 0o142) + chr(0b1100110) + '\x2d' + chr(56)).q33KG3foQ_CJ(hXMPsSrOQzbh.rob7nZM55s6v, hXMPsSrOQzbh.req_id)
if roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'Py\xbc\x85\xb0\x95e\xb1\x18\xfb\x170'), '\144' + '\x65' + '\x63' + chr(0b1101111) + chr(1444 - 1344) + chr(0b1100101))(chr(0b1110101) + chr(0b1110100) + chr(2545 - 2443) + chr(0b101101) + chr(0b10 + 0o66))) != roI3spqORKae(hXMPsSrOQzbh.__class__, roI3spqORKae(ES5oEprVxulp(b'Bl\x9e\x83\xd0\xbbD\x95\x17\xa6*$'), chr(3332 - 3232) + '\x65' + chr(2229 - 2130) + '\157' + chr(4558 - 4458) + chr(101))(chr(0b1011110 + 0o27) + chr(0b1110100) + chr(102) + chr(0b100010 + 0o13) + chr(1688 - 1632))):
toKQXlEvBKaK = hXMPsSrOQzbh.SLVB2BPA_mIe + roI3spqORKae(ES5oEprVxulp(b'9\x15'), chr(0b1010001 + 0o23) + '\x65' + '\143' + chr(455 - 344) + chr(0b1100100) + '\145')(chr(117) + chr(5417 - 5301) + chr(0b1100110) + chr(826 - 781) + chr(0b100011 + 0o25)) + toKQXlEvBKaK
return toKQXlEvBKaK
|
dnanexus/dx-toolkit
|
src/python/dxpy/bindings/dxglobalworkflow.py
|
DXGlobalWorkflow.publish
|
def publish(self, **kwargs):
"""
Publishes the global workflow, so all users can find it and use it on the platform.
The current user must be a developer of the workflow.
"""
if self._dxid is not None:
return dxpy.api.global_workflow_publish(self._dxid, **kwargs)
else:
return dxpy.api.global_workflow_publish('globalworkflow-' + self._name, alias=self._alias, **kwargs)
|
python
|
def publish(self, **kwargs):
"""
Publishes the global workflow, so all users can find it and use it on the platform.
The current user must be a developer of the workflow.
"""
if self._dxid is not None:
return dxpy.api.global_workflow_publish(self._dxid, **kwargs)
else:
return dxpy.api.global_workflow_publish('globalworkflow-' + self._name, alias=self._alias, **kwargs)
|
[
"def",
"publish",
"(",
"self",
",",
"*",
"*",
"kwargs",
")",
":",
"if",
"self",
".",
"_dxid",
"is",
"not",
"None",
":",
"return",
"dxpy",
".",
"api",
".",
"global_workflow_publish",
"(",
"self",
".",
"_dxid",
",",
"*",
"*",
"kwargs",
")",
"else",
":",
"return",
"dxpy",
".",
"api",
".",
"global_workflow_publish",
"(",
"'globalworkflow-'",
"+",
"self",
".",
"_name",
",",
"alias",
"=",
"self",
".",
"_alias",
",",
"*",
"*",
"kwargs",
")"
] |
Publishes the global workflow, so all users can find it and use it on the platform.
The current user must be a developer of the workflow.
|
[
"Publishes",
"the",
"global",
"workflow",
"so",
"all",
"users",
"can",
"find",
"it",
"and",
"use",
"it",
"on",
"the",
"platform",
"."
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxglobalworkflow.py#L152-L161
|
train
|
Publishes the global workflow.
|
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp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vlqO,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) + chr(111) + chr(1111 - 1061) + '\x34' + '\067', 0o10), nzTpIcepk0o8(chr(1783 - 1735) + chr(111) + chr(0b101 + 0o57) + '\x30', 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(0b100111 + 0o12) + '\060' + '\064', 0b1000), nzTpIcepk0o8('\060' + '\157' + '\061' + chr(0b110110), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + '\x33' + '\x36' + chr(0b110011), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(49) + chr(55) + chr(0b110011), 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(0b100111 + 0o14) + chr(757 - 704) + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(1438 - 1387) + '\062' + chr(0b110111), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(51) + '\x32' + chr(1564 - 1513), 24809 - 24801), nzTpIcepk0o8('\060' + chr(0b1101 + 0o142) + chr(0b110010) + chr(2272 - 2223) + chr(52), ord("\x08")), nzTpIcepk0o8('\060' + chr(7661 - 7550) + chr(0b100011 + 0o16) + chr(1319 - 1265) + chr(0b110110), 0o10), nzTpIcepk0o8(chr(1558 - 1510) + chr(3865 - 3754) + '\061' + '\x36', 8), nzTpIcepk0o8(chr(0b11100 + 0o24) + '\x6f' + chr(0b110001) + chr(601 - 549) + chr(0b110000), 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(0b110110), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b101110 + 0o3) + '\x31' + '\060', 0o10), nzTpIcepk0o8(chr(0b0 + 0o60) + '\x6f' + chr(1964 - 1913) + chr(0b110001 + 0o5), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(0b110011) + chr(0b101100 + 0o13) + chr(502 - 450), 9648 - 9640), nzTpIcepk0o8(chr(371 - 323) + chr(1108 - 997) + '\x32' + '\065' + chr(0b110100), 0b1000), nzTpIcepk0o8('\x30' + chr(0b11110 + 0o121) + chr(0b110100 + 0o1) + '\x32', 20391 - 20383), nzTpIcepk0o8(chr(0b10011 + 0o35) + chr(0b1101111) + chr(336 - 285) + chr(0b110101) + '\x35', 0o10), nzTpIcepk0o8('\060' + '\157' + chr(51) + chr(0b11 + 0o60) + '\066', 64750 - 64742), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110011) + chr(0b110111) + '\x33', 23175 - 23167), nzTpIcepk0o8(chr(841 - 793) + chr(10263 - 10152) + '\063' + '\065' + chr(1758 - 1707), 56681 - 56673), nzTpIcepk0o8('\x30' + chr(0b111110 + 0o61) + chr(0b110011) + '\061' + chr(0b100110 + 0o16), 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(0b101110 + 0o4) + chr(50) + chr(0b101110 + 0o3), 0o10), nzTpIcepk0o8(chr(0b10101 + 0o33) + '\157' + chr(0b110011) + chr(0b101010 + 0o14) + chr(54), 49704 - 49696), nzTpIcepk0o8('\x30' + chr(10406 - 10295) + '\063' + chr(49) + chr(2493 - 2442), 0o10), nzTpIcepk0o8('\060' + '\157' + '\x32' + '\x35' + chr(0b110011 + 0o4), 0o10), nzTpIcepk0o8('\x30' + chr(8161 - 8050) + '\063' + chr(1619 - 1571) + '\x37', 34315 - 34307), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110001) + '\x31' + chr(2104 - 2051), 43653 - 43645), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b10101 + 0o35) + chr(0b101101 + 0o5), ord("\x08")), nzTpIcepk0o8(chr(0b1000 + 0o50) + chr(0b1101111) + '\x33' + '\067' + '\063', 8), nzTpIcepk0o8('\060' + '\x6f' + '\061' + '\060' + '\060', 42794 - 42786), nzTpIcepk0o8('\060' + chr(111) + '\061' + chr(0b10100 + 0o35) + '\061', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(11051 - 10940) + '\062' + chr(0b110001) + chr(0b100101 + 0o20), 13746 - 13738), nzTpIcepk0o8(chr(48) + chr(5829 - 5718) + '\x34' + '\x35', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110011) + chr(0b1001 + 0o55) + chr(0b110100 + 0o2), 8), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110010) + chr(0b1011 + 0o51) + chr(0b11111 + 0o21), ord("\x08")), nzTpIcepk0o8(chr(688 - 640) + chr(0b10110 + 0o131) + chr(0b10000 + 0o42) + chr(0b110001) + '\x32', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x32' + chr(2670 - 2616), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + '\157' + 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'\x89'), chr(100) + chr(0b1001010 + 0o33) + chr(0b1100010 + 0o1) + chr(0b1101111) + chr(0b1100100) + chr(1873 - 1772))(chr(1939 - 1822) + '\x74' + chr(0b1100110) + chr(0b10111 + 0o26) + chr(0b101011 + 0o15)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def ZRkmNLRvN8fl(hXMPsSrOQzbh, **q5n0sHDDTy90):
if roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xc3\x16\x0f[\x9d)\xb8\xa1\xe5\xbbE;'), chr(0b1100100) + '\x65' + '\x63' + '\x6f' + chr(0b1100100) + '\x65')(chr(11327 - 11210) + chr(0b1000101 + 0o57) + chr(102) + chr(45) + chr(0b111000))) is not None:
return roI3spqORKae(SsdNdRxXOwsF.api, roI3spqORKae(ES5oEprVxulp(b'\xc0L+l\x92\x17\xb6\xa0\xbc\xfe\x1dh\x0ci?A\x8c\xd9H\x81\xb7\x88\x83'), '\144' + '\145' + '\x63' + chr(0b111000 + 0o67) + '\144' + chr(0b1100101))(chr(0b110010 + 0o103) + chr(0b1110100) + chr(4629 - 4527) + '\055' + chr(0b111000)))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xc3\x16\x0f[\x9d)\xb8\xa1\xe5\xbbE;'), chr(100) + chr(0b101110 + 0o67) + chr(99) + chr(0b1011011 + 0o24) + '\x64' + '\x65')('\x75' + '\164' + chr(0b1100110) + '\055' + chr(2938 - 2882))), **q5n0sHDDTy90)
else:
return roI3spqORKae(SsdNdRxXOwsF.api, roI3spqORKae(ES5oEprVxulp(b'\xc0L+l\x92\x17\xb6\xa0\xbc\xfe\x1dh\x0ci?A\x8c\xd9H\x81\xb7\x88\x83'), '\x64' + '\x65' + chr(7916 - 7817) + chr(0b1101111) + chr(0b1100011 + 0o1) + chr(0b10010 + 0o123))('\165' + chr(0b1111 + 0o145) + chr(10101 - 9999) + '\055' + chr(0b11100 + 0o34)))(roI3spqORKae(ES5oEprVxulp(b'\xc0L+l\x92\x17\x9e\xb8\xa1\xe7\x10b\x0fqe'), chr(100) + chr(0b1100101) + chr(99) + chr(6694 - 6583) + '\144' + chr(0b1100101))(chr(5047 - 4930) + chr(0b1000001 + 0o63) + '\x66' + chr(0b101101) + chr(0b110011 + 0o5)) + roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xd2Z\x01h\x9d0\xbf\xaf\x9b\xd8\x06;'), chr(4422 - 4322) + chr(5064 - 4963) + chr(0b1100011) + chr(0b1100000 + 0o17) + '\x64' + chr(8765 - 8664))('\x75' + chr(0b1110100) + chr(0b1000110 + 0o40) + '\055' + chr(2046 - 1990))), alias=roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xf8A(g\x92\x08'), chr(4844 - 4744) + '\145' + chr(99) + chr(0b11011 + 0o124) + chr(0b110001 + 0o63) + '\145')('\165' + chr(3197 - 3081) + chr(0b1100110) + '\x2d' + chr(56))), **q5n0sHDDTy90)
|
dnanexus/dx-toolkit
|
src/python/dxpy/bindings/dxglobalworkflow.py
|
DXGlobalWorkflow.describe_underlying_workflow
|
def describe_underlying_workflow(self, region, describe_output=None):
"""
:param region: region name
:type region: string
:param describe_output: description of a global workflow
:type describe_output: dict
:returns: object description of a workflow
:rtype: : dict
Returns an object description of an underlying workflow from a given region.
"""
assert(describe_output is None or describe_output.get('class', '') == 'globalworkflow')
if region is None:
raise DXError(
'DXGlobalWorkflow: region must be provided to get an underlying workflow')
# Perhaps we have cached it already
if region in self._workflow_desc_by_region:
return self._workflow_desc_by_region[region]
if not describe_output:
describe_output = self.describe()
if region not in describe_output['regionalOptions'].keys():
raise DXError('DXGlobalWorkflow: the global workflow {} is not enabled in region {}'.format(
self.get_id(), region))
underlying_workflow_id = describe_output['regionalOptions'][region]['workflow']
dxworkflow = dxpy.DXWorkflow(underlying_workflow_id)
dxworkflow_desc = dxworkflow.describe()
self._workflow_desc_by_region = dxworkflow_desc
return dxworkflow_desc
|
python
|
def describe_underlying_workflow(self, region, describe_output=None):
"""
:param region: region name
:type region: string
:param describe_output: description of a global workflow
:type describe_output: dict
:returns: object description of a workflow
:rtype: : dict
Returns an object description of an underlying workflow from a given region.
"""
assert(describe_output is None or describe_output.get('class', '') == 'globalworkflow')
if region is None:
raise DXError(
'DXGlobalWorkflow: region must be provided to get an underlying workflow')
# Perhaps we have cached it already
if region in self._workflow_desc_by_region:
return self._workflow_desc_by_region[region]
if not describe_output:
describe_output = self.describe()
if region not in describe_output['regionalOptions'].keys():
raise DXError('DXGlobalWorkflow: the global workflow {} is not enabled in region {}'.format(
self.get_id(), region))
underlying_workflow_id = describe_output['regionalOptions'][region]['workflow']
dxworkflow = dxpy.DXWorkflow(underlying_workflow_id)
dxworkflow_desc = dxworkflow.describe()
self._workflow_desc_by_region = dxworkflow_desc
return dxworkflow_desc
|
[
"def",
"describe_underlying_workflow",
"(",
"self",
",",
"region",
",",
"describe_output",
"=",
"None",
")",
":",
"assert",
"(",
"describe_output",
"is",
"None",
"or",
"describe_output",
".",
"get",
"(",
"'class'",
",",
"''",
")",
"==",
"'globalworkflow'",
")",
"if",
"region",
"is",
"None",
":",
"raise",
"DXError",
"(",
"'DXGlobalWorkflow: region must be provided to get an underlying workflow'",
")",
"# Perhaps we have cached it already",
"if",
"region",
"in",
"self",
".",
"_workflow_desc_by_region",
":",
"return",
"self",
".",
"_workflow_desc_by_region",
"[",
"region",
"]",
"if",
"not",
"describe_output",
":",
"describe_output",
"=",
"self",
".",
"describe",
"(",
")",
"if",
"region",
"not",
"in",
"describe_output",
"[",
"'regionalOptions'",
"]",
".",
"keys",
"(",
")",
":",
"raise",
"DXError",
"(",
"'DXGlobalWorkflow: the global workflow {} is not enabled in region {}'",
".",
"format",
"(",
"self",
".",
"get_id",
"(",
")",
",",
"region",
")",
")",
"underlying_workflow_id",
"=",
"describe_output",
"[",
"'regionalOptions'",
"]",
"[",
"region",
"]",
"[",
"'workflow'",
"]",
"dxworkflow",
"=",
"dxpy",
".",
"DXWorkflow",
"(",
"underlying_workflow_id",
")",
"dxworkflow_desc",
"=",
"dxworkflow",
".",
"describe",
"(",
")",
"self",
".",
"_workflow_desc_by_region",
"=",
"dxworkflow_desc",
"return",
"dxworkflow_desc"
] |
:param region: region name
:type region: string
:param describe_output: description of a global workflow
:type describe_output: dict
:returns: object description of a workflow
:rtype: : dict
Returns an object description of an underlying workflow from a given region.
|
[
":",
"param",
"region",
":",
"region",
"name",
":",
"type",
"region",
":",
"string",
":",
"param",
"describe_output",
":",
"description",
"of",
"a",
"global",
"workflow",
":",
"type",
"describe_output",
":",
"dict",
":",
"returns",
":",
"object",
"description",
"of",
"a",
"workflow",
":",
"rtype",
":",
":",
"dict"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxglobalworkflow.py#L163-L195
|
train
|
Get the global workflow description for a given region.
|
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,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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hJY,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) + '\x31' + chr(0b110101) + chr(1865 - 1816), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + '\x34' + chr(1496 - 1446), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(7986 - 7875) + chr(0b11000 + 0o31) + '\062' + '\x33', ord("\x08")), nzTpIcepk0o8(chr(0b101101 + 0o3) + chr(0b11010 + 0o125) + chr(0b101111 + 0o4) + chr(1215 - 1166) + chr(0b110110 + 0o0), 42895 - 42887), nzTpIcepk0o8(chr(0b101110 + 0o2) + chr(295 - 184) + chr(0b10010 + 0o37) + chr(55) + chr(0b110000), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b11000 + 0o33) + chr(339 - 286) + '\066', 0o10), nzTpIcepk0o8(chr(1851 - 1803) + chr(0b1101111) + chr(1808 - 1759) + '\x30' + chr(0b0 + 0o60), 0b1000), nzTpIcepk0o8('\x30' + '\157' + '\x33' + '\x37' + chr(1956 - 1901), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x33' + '\x30' + chr(50), 0o10), nzTpIcepk0o8('\060' + chr(111) + '\x32' + chr(0b110101 + 0o0) + chr(1510 - 1462), ord("\x08")), nzTpIcepk0o8(chr(973 - 925) + '\157' + chr(49) + chr(50) + chr(0b110000), 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(0b110001) + '\x30' + chr(0b100011 + 0o17), 34852 - 34844), nzTpIcepk0o8(chr(0b10011 + 0o35) + chr(601 - 490) + chr(0b10100 + 0o36) + chr(48) + '\066', 0o10), nzTpIcepk0o8('\060' + chr(8388 - 8277) + '\x31' + '\x36', 0b1000), nzTpIcepk0o8(chr(2215 - 2167) + '\157' + chr(970 - 921) + '\063' + chr(2188 - 2137), 30915 - 30907), nzTpIcepk0o8(chr(2243 - 2195) + chr(0b1101111) + chr(54) + '\063', ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(0b100001 + 0o22) + chr(0b110010) + chr(1794 - 1742), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + '\063' + chr(0b110100) + chr(265 - 210), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1001 + 0o146) + '\x31' + chr(54) + chr(0b110101), ord("\x08")), nzTpIcepk0o8('\060' + chr(11568 - 11457) + chr(1873 - 1818) + chr(431 - 376), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1011 + 0o144) + '\065' + chr(54), 57942 - 57934), nzTpIcepk0o8(chr(661 - 613) + '\157' + chr(0b11 + 0o60) + chr(0b11011 + 0o33) + chr(0b110101), 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(1337 - 1288) + chr(0b110101) + chr(0b10011 + 0o43), 0b1000), nzTpIcepk0o8(chr(0b1011 + 0o45) + '\157' + chr(1212 - 1158) + chr(0b110101), 0o10), nzTpIcepk0o8(chr(0b110 + 0o52) + chr(5170 - 5059) + '\062' + chr(0b110000) + '\x30', 0o10), nzTpIcepk0o8('\060' + chr(3751 - 3640) + chr(50) + chr(0b110001) + chr(49), 46545 - 46537), nzTpIcepk0o8('\060' + chr(0b11 + 0o154) + chr(50) + '\x32' + '\x35', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(1925 - 1875) + chr(727 - 677) + '\x36', 0b1000), nzTpIcepk0o8('\060' + chr(10867 - 10756) + chr(1461 - 1411) + chr(1459 - 1407) + chr(0b100000 + 0o22), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(2465 - 2414) + '\x31' + chr(0b110010 + 0o4), 8), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x33' + '\062' + '\063', 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110001) + chr(1157 - 1102), 0b1000), nzTpIcepk0o8(chr(0b111 + 0o51) + chr(0b11110 + 0o121) + '\x31' + chr(0b110110) + chr(0b100101 + 0o16), 18485 - 18477), nzTpIcepk0o8('\060' + '\x6f' + '\x37', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x37' + chr(0b110111), 8), nzTpIcepk0o8('\060' + '\x6f' + chr(1923 - 1873) + chr(876 - 826) + '\x32', 22191 - 22183), nzTpIcepk0o8('\x30' + chr(5819 - 5708) + '\061' + '\063' + chr(0b101011 + 0o12), 0b1000), nzTpIcepk0o8(chr(247 - 199) + chr(0b1101001 + 0o6) + chr(0b110011) + '\x36' + '\x34', 0b1000), nzTpIcepk0o8(chr(0b100111 + 0o11) + chr(0b1101001 + 0o6) + chr(2472 - 2417) + chr(52), 0o10), nzTpIcepk0o8(chr(809 - 761) + chr(0b101 + 0o152) + chr(0b101001 + 0o16), 8)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + chr(111) + chr(53) + chr(0b11101 + 0o23), 63358 - 63350)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'G'), chr(0b1100100) + '\145' + '\143' + chr(0b1011101 + 0o22) + chr(100) + chr(7092 - 6991))('\x75' + chr(0b1110100) + '\146' + chr(1668 - 1623) + chr(56)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def PF6eGFeYsCPO(hXMPsSrOQzbh, SiTpDn8thAb3, Xmcm0weMglP7=None):
assert Xmcm0weMglP7 is None or roI3spqORKae(Xmcm0weMglP7, roI3spqORKae(ES5oEprVxulp(b'.w\x18\xab\x0c\x9bt\x87\xa3\xef#\x08'), '\144' + chr(968 - 867) + '\x63' + '\x6f' + chr(0b1100100) + chr(4557 - 4456))('\x75' + chr(0b1110100) + chr(0b1100110) + '\x2d' + chr(56)))(roI3spqORKae(ES5oEprVxulp(b'\nN2\xbd\x0b'), chr(100) + chr(4652 - 4551) + '\x63' + '\x6f' + chr(100) + chr(0b111010 + 0o53))('\x75' + '\164' + chr(0b1100110) + chr(45) + chr(0b11000 + 0o40)), roI3spqORKae(ES5oEprVxulp(b''), chr(0b1000 + 0o134) + chr(0b111110 + 0o47) + '\x63' + '\157' + '\x64' + chr(0b111000 + 0o55))(chr(117) + chr(0b1110100) + chr(102) + '\x2d' + chr(0b110010 + 0o6))) == roI3spqORKae(ES5oEprVxulp(b'\x0eN<\xac\x19\x827\x90\xb0\xc36.\xe9y'), chr(100) + chr(0b100111 + 0o76) + '\143' + chr(0b1010001 + 0o36) + chr(0b1100100) + chr(0b1100101))(chr(0b1110101) + chr(3583 - 3467) + chr(0b1100110) + chr(0b101101) + '\x38')
if SiTpDn8thAb3 is None:
raise JPU16lJ2koBU(roI3spqORKae(ES5oEprVxulp(b'-z\x14\xa2\x17\x8c!\x93\x95\xc7")\xe0b4D\xee\xc7\x07ZI\x9c\x01[\xa0\xe4\xe0\xe5\xd6\xee\xb1jSwM\xfd+\x9dXb\r\x02\'\xa1X\x89%\x8b\xe2\xc9>b\xf3`?V\xa6\x8b\x0cV@\x92NB\xef\xfb\xfe\xf0\xce\xa1\xa4'), chr(0b1100100) + '\x65' + chr(2240 - 2141) + chr(929 - 818) + chr(0b1100100) + chr(101))(chr(117) + '\x74' + chr(963 - 861) + '\055' + chr(2591 - 2535)))
if SiTpDn8thAb3 in roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b"6U<\xbc\x13\x88,\x90\xb5\xf74'\xf5m\x04Q\xad\xb8\x07ZI\x9c\x01["), '\144' + chr(0b10001 + 0o124) + chr(0b1011 + 0o130) + '\157' + chr(0b1011100 + 0o10) + '\x65')(chr(7887 - 7770) + chr(0b110100 + 0o100) + chr(0b1100110) + '\055' + '\x38')):
return roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b"6U<\xbc\x13\x88,\x90\xb5\xf74'\xf5m\x04Q\xad\xb8\x07ZI\x9c\x01["), '\144' + chr(6920 - 6819) + chr(0b1100011) + '\157' + chr(0b1100100) + '\145')('\x75' + '\x74' + '\x66' + '\055' + '\x38'))[SiTpDn8thAb3]
if not Xmcm0weMglP7:
Xmcm0weMglP7 = hXMPsSrOQzbh.describe()
if SiTpDn8thAb3 not in roI3spqORKae(Xmcm0weMglP7[roI3spqORKae(ES5oEprVxulp(b'\x1bG4\xa7\x17\x80!\x93\x8d\xd8$+\xe9`('), chr(0b100 + 0o140) + chr(0b1100101) + chr(3128 - 3029) + chr(0b1101111) + chr(4080 - 3980) + chr(3606 - 3505))('\165' + chr(9834 - 9718) + '\x66' + chr(45) + chr(56))], roI3spqORKae(ES5oEprVxulp(b'\x02G*\xbd'), '\x64' + chr(6760 - 6659) + chr(5765 - 5666) + '\x6f' + chr(8677 - 8577) + chr(0b1100101))('\x75' + chr(0b1110100) + '\x66' + chr(45) + chr(0b111000)))():
raise JPU16lJ2koBU(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'-z\x14\xa2\x17\x8c!\x93\x95\xc7")\xe0b4D\xee\xc7\x01WK\xd5\tY\xef\xeb\xf4\xfa\x82\xb9\xbc}\x18aS\xfd*\xd4GzIK \xee\x16\x814\xdf\xa7\xc61 \xeak?\x13\xbd\x89UMK\x92\x07Z\xee\xa9\xee\xeb'), chr(0b1100100) + chr(8666 - 8565) + '\x63' + '\x6f' + chr(0b1010 + 0o132) + chr(0b1100101))(chr(12983 - 12866) + '\x74' + chr(0b1100110) + chr(45) + chr(56)), roI3spqORKae(ES5oEprVxulp(b'\x18\x11`\x85?\xdd&\x90\x93\xf7\x13\x08'), chr(0b1100100) + chr(0b1010010 + 0o23) + '\x63' + '\x6f' + '\x64' + chr(0b11111 + 0o106))(chr(10231 - 10114) + chr(0b101110 + 0o106) + chr(0b110001 + 0o65) + chr(0b100 + 0o51) + '\x38'))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x07I\x07\xa0\x1b\xa4#\xb9\x92\xc49\x15'), '\x64' + chr(0b110101 + 0o60) + '\x63' + chr(3595 - 3484) + '\144' + '\x65')(chr(0b1110101) + chr(0b1110100) + '\x66' + chr(0b1000 + 0o45) + '\070'))(), SiTpDn8thAb3))
bTuOUbbmo_mF = Xmcm0weMglP7[roI3spqORKae(ES5oEprVxulp(b'\x1bG4\xa7\x17\x80!\x93\x8d\xd8$+\xe9`('), chr(0b1100100) + chr(101) + '\x63' + chr(0b1101111) + '\144' + chr(101))('\165' + chr(0b1010010 + 0o42) + chr(0b101110 + 0o70) + chr(0b101101) + '\070')][SiTpDn8thAb3][roI3spqORKae(ES5oEprVxulp(b'\x1eM!\xa5\x1e\x82/\x88'), chr(100) + '\145' + chr(99) + chr(0b111101 + 0o62) + '\144' + '\x65')('\165' + chr(116) + '\x66' + chr(0b101010 + 0o3) + chr(56))]
BQPPFVEQXfaz = SsdNdRxXOwsF.DXWorkflow(bTuOUbbmo_mF)
x1BP2km1JRpp = BQPPFVEQXfaz.describe()
hXMPsSrOQzbh.HNUcfVUY5FNV = x1BP2km1JRpp
return x1BP2km1JRpp
|
dnanexus/dx-toolkit
|
src/python/dxpy/bindings/dxglobalworkflow.py
|
DXGlobalWorkflow.get_underlying_workflow
|
def get_underlying_workflow(self, region, describe_output=None):
"""
:param region: region name
:type region: string
:param describe_output: description of a global workflow
:type describe_output: dict
:returns: object handler of a workflow
:rtype: :class:`~dxpy.bindings.dxworkflow.DXWorkflow`
Returns an object handler of an underlying workflow from a given region.
"""
assert(describe_output is None or describe_output.get('class') == 'globalworkflow')
if region is None:
raise DXError(
'DXGlobalWorkflow: region must be provided to get an underlying workflow')
# Perhaps we have cached it already
if region in self._workflows_by_region:
return self._workflows_by_region[region]
if not describe_output:
describe_output = self.describe()
if region not in describe_output['regionalOptions'].keys():
raise DXError('DXGlobalWorkflow: the global workflow {} is not enabled in region {}'.format(
self.get_id(), region))
underlying_workflow_id = describe_output['regionalOptions'][region]['workflow']
self._workflow_desc_by_region = dxpy.DXWorkflow(underlying_workflow_id)
return dxpy.DXWorkflow(underlying_workflow_id)
|
python
|
def get_underlying_workflow(self, region, describe_output=None):
"""
:param region: region name
:type region: string
:param describe_output: description of a global workflow
:type describe_output: dict
:returns: object handler of a workflow
:rtype: :class:`~dxpy.bindings.dxworkflow.DXWorkflow`
Returns an object handler of an underlying workflow from a given region.
"""
assert(describe_output is None or describe_output.get('class') == 'globalworkflow')
if region is None:
raise DXError(
'DXGlobalWorkflow: region must be provided to get an underlying workflow')
# Perhaps we have cached it already
if region in self._workflows_by_region:
return self._workflows_by_region[region]
if not describe_output:
describe_output = self.describe()
if region not in describe_output['regionalOptions'].keys():
raise DXError('DXGlobalWorkflow: the global workflow {} is not enabled in region {}'.format(
self.get_id(), region))
underlying_workflow_id = describe_output['regionalOptions'][region]['workflow']
self._workflow_desc_by_region = dxpy.DXWorkflow(underlying_workflow_id)
return dxpy.DXWorkflow(underlying_workflow_id)
|
[
"def",
"get_underlying_workflow",
"(",
"self",
",",
"region",
",",
"describe_output",
"=",
"None",
")",
":",
"assert",
"(",
"describe_output",
"is",
"None",
"or",
"describe_output",
".",
"get",
"(",
"'class'",
")",
"==",
"'globalworkflow'",
")",
"if",
"region",
"is",
"None",
":",
"raise",
"DXError",
"(",
"'DXGlobalWorkflow: region must be provided to get an underlying workflow'",
")",
"# Perhaps we have cached it already",
"if",
"region",
"in",
"self",
".",
"_workflows_by_region",
":",
"return",
"self",
".",
"_workflows_by_region",
"[",
"region",
"]",
"if",
"not",
"describe_output",
":",
"describe_output",
"=",
"self",
".",
"describe",
"(",
")",
"if",
"region",
"not",
"in",
"describe_output",
"[",
"'regionalOptions'",
"]",
".",
"keys",
"(",
")",
":",
"raise",
"DXError",
"(",
"'DXGlobalWorkflow: the global workflow {} is not enabled in region {}'",
".",
"format",
"(",
"self",
".",
"get_id",
"(",
")",
",",
"region",
")",
")",
"underlying_workflow_id",
"=",
"describe_output",
"[",
"'regionalOptions'",
"]",
"[",
"region",
"]",
"[",
"'workflow'",
"]",
"self",
".",
"_workflow_desc_by_region",
"=",
"dxpy",
".",
"DXWorkflow",
"(",
"underlying_workflow_id",
")",
"return",
"dxpy",
".",
"DXWorkflow",
"(",
"underlying_workflow_id",
")"
] |
:param region: region name
:type region: string
:param describe_output: description of a global workflow
:type describe_output: dict
:returns: object handler of a workflow
:rtype: :class:`~dxpy.bindings.dxworkflow.DXWorkflow`
Returns an object handler of an underlying workflow from a given region.
|
[
":",
"param",
"region",
":",
"region",
"name",
":",
"type",
"region",
":",
"string",
":",
"param",
"describe_output",
":",
"description",
"of",
"a",
"global",
"workflow",
":",
"type",
"describe_output",
":",
"dict",
":",
"returns",
":",
"object",
"handler",
"of",
"a",
"workflow",
":",
"rtype",
":",
":",
"class",
":",
"~dxpy",
".",
"bindings",
".",
"dxworkflow",
".",
"DXWorkflow"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxglobalworkflow.py#L197-L227
|
train
|
Returns an object handler of a global workflow in a given region.
|
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT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r1,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(0b1010 + 0o46) + chr(0b1101111) + '\x32' + chr(0b110000) + chr(0b10100 + 0o34), 0b1000), nzTpIcepk0o8(chr(0b10 + 0o56) + '\157' + '\062' + chr(0b100001 + 0o25) + chr(1824 - 1774), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + '\x32' + '\x36' + chr(48), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x31' + chr(0b10001 + 0o37) + '\062', 0o10), nzTpIcepk0o8('\x30' + chr(474 - 363) + chr(0b100000 + 0o24) + chr(2492 - 2442), 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(1123 - 1072) + chr(1895 - 1842) + chr(1887 - 1838), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + '\x31' + chr(0b1 + 0o57) + chr(2522 - 2467), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(335 - 284) + '\x37' + chr(51), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110100), 16750 - 16742), nzTpIcepk0o8(chr(0b10110 + 0o32) + chr(0b1101111) + chr(0b110010) + chr(0b100101 + 0o13) + '\x32', ord("\x08")), nzTpIcepk0o8(chr(0b101111 + 0o1) + '\x6f' + chr(821 - 771) + chr(0b110101) + chr(0b101110 + 0o11), 33328 - 33320), nzTpIcepk0o8(chr(0b1000 + 0o50) + '\157' + '\062' + chr(53) + '\065', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1111 + 0o140) + '\062' + chr(53) + chr(0b101011 + 0o12), 8), nzTpIcepk0o8('\060' + '\x6f' + '\062' + chr(2438 - 2383) + '\x31', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(731 - 682) + '\x30' + chr(53), 51989 - 51981), nzTpIcepk0o8('\060' + '\x6f' + '\x32' + chr(183 - 130) + chr(1027 - 976), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b100000 + 0o22) + chr(954 - 902) + chr(0b11101 + 0o24), ord("\x08")), nzTpIcepk0o8(chr(0b11111 + 0o21) + '\157' + chr(0b100000 + 0o23) + '\x31' + '\x30', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1111 + 0o140) + '\x33' + chr(2721 - 2667) + chr(1627 - 1573), 0b1000), nzTpIcepk0o8(chr(0b1000 + 0o50) + chr(11734 - 11623) + chr(1647 - 1594) + chr(51), 29082 - 29074), nzTpIcepk0o8(chr(48) + chr(6672 - 6561) + '\063' + '\x34' + chr(53), 0o10), nzTpIcepk0o8('\x30' + chr(0b11 + 0o154) + '\063' + '\060' + chr(0b110001), 57253 - 57245), nzTpIcepk0o8(chr(598 - 550) + chr(1341 - 1230) + chr(0b100111 + 0o14) + chr(1565 - 1510) + '\064', 0b1000), nzTpIcepk0o8(chr(1514 - 1466) + '\x6f' + chr(0b10000 + 0o42) + '\x34' + chr(0b110010), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\062' + chr(0b110101) + chr(1079 - 1029), 43462 - 43454), nzTpIcepk0o8(chr(1091 - 1043) + chr(0b1011000 + 0o27) + '\063' + chr(0b110010) + chr(0b110000 + 0o2), ord("\x08")), nzTpIcepk0o8(chr(225 - 177) + '\x6f' + '\061' + chr(1674 - 1624) + chr(0b101110 + 0o6), 49526 - 49518), nzTpIcepk0o8(chr(1333 - 1285) + chr(111) + chr(0b10011 + 0o40) + chr(0b110111) + chr(351 - 297), 0o10), nzTpIcepk0o8('\x30' + chr(6598 - 6487) + chr(0b110011) + '\x32' + chr(0b110011), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(170 - 121) + chr(53) + chr(48), 7434 - 7426), nzTpIcepk0o8('\060' + '\157' + chr(0b110110) + chr(0b110000), 33587 - 33579), nzTpIcepk0o8(chr(65 - 17) + chr(0b1000111 + 0o50) + '\063' + '\x36' + chr(48), 0b1000), nzTpIcepk0o8(chr(0b101101 + 0o3) + chr(4864 - 4753) + chr(0b11011 + 0o27) + chr(51) + chr(0b101110 + 0o7), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b11101 + 0o122) + '\x32' + chr(377 - 326) + chr(0b11101 + 0o25), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b1010 + 0o51) + '\x37' + '\x31', 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(0b111 + 0o53) + chr(54) + chr(0b110100), 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(0b10011 + 0o44) + chr(1920 - 1872), 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(0b101101 + 0o4) + chr(48) + chr(0b110011), 43960 - 43952), nzTpIcepk0o8(chr(0b10 + 0o56) + chr(0b1010100 + 0o33) + '\x33' + '\x37' + chr(0b110011 + 0o3), 8), nzTpIcepk0o8('\060' + chr(111) + chr(50) + chr(0b110001), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(53) + chr(0b110000), 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xae'), '\x64' + '\x65' + chr(0b1100011) + chr(111) + '\x64' + '\x65')('\165' + chr(116) + '\x66' + chr(0b101 + 0o50) + chr(1538 - 1482)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def Flmj_bkyI9fS(hXMPsSrOQzbh, SiTpDn8thAb3, Xmcm0weMglP7=None):
assert Xmcm0weMglP7 is None or roI3spqORKae(Xmcm0weMglP7, roI3spqORKae(ES5oEprVxulp(b"\xc7\xe7\xfb'V\x9cs\x83e\xc5\xdc\xe7"), '\144' + chr(0b1100101) + chr(0b1100011) + chr(0b1101111) + chr(0b1100100) + chr(0b1100101))(chr(0b110111 + 0o76) + chr(0b1010011 + 0o41) + chr(102) + '\x2d' + '\070'))(roI3spqORKae(ES5oEprVxulp(b'\xe3\xde\xd11Q'), '\x64' + '\x65' + chr(581 - 482) + chr(0b1011111 + 0o20) + chr(7029 - 6929) + '\x65')(chr(0b110001 + 0o104) + '\x74' + '\146' + chr(0b101101) + '\070')) == roI3spqORKae(ES5oEprVxulp(b'\xe7\xde\xdf C\x850\x94v\xe9\xc9\xc1\xc2\xce'), chr(0b1100100) + '\145' + chr(0b1010 + 0o131) + chr(0b11 + 0o154) + '\x64' + chr(3847 - 3746))(chr(0b111011 + 0o72) + chr(0b1101111 + 0o5) + chr(0b1100110) + chr(0b101011 + 0o2) + chr(94 - 38))
if SiTpDn8thAb3 is None:
raise JPU16lJ2koBU(roI3spqORKae(ES5oEprVxulp(b'\xc4\xea\xf7.M\x8b&\x97S\xed\xdd\xc6\xcb\xd5*\xdc\x9b\xe8\x84N\x82\xa8\x93\xcc\x8a\xbf!\x8d\xa7HR\x95\xbd\xea\x8b\xdbN*\x9at\xe4\x92\xc4-\x02\x8e"\x8f$\xe3\xc1\x8d\xd8\xd7!\xce\xd3\xa4\x8fB\x8b\xa6\xdc\xd5\xc5\xa0?\x98\xbf\x07G'), '\144' + '\145' + chr(0b101111 + 0o64) + chr(111) + chr(9254 - 9154) + chr(0b10011 + 0o122))('\x75' + chr(2527 - 2411) + chr(0b100010 + 0o104) + '\x2d' + '\x38'))
if SiTpDn8thAb3 in roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xdf\xc5\xdf0I\x8f+\x94s\xf1\xf0\xcf\xd4\xe67\xce\xc6\xa1\x99E'), '\144' + chr(101) + chr(0b10110 + 0o115) + chr(0b1101111) + chr(0b11 + 0o141) + '\145')(chr(0b1011000 + 0o35) + chr(0b1110100) + chr(9914 - 9812) + chr(0b101101) + chr(0b111000))):
return roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xdf\xc5\xdf0I\x8f+\x94s\xf1\xf0\xcf\xd4\xe67\xce\xc6\xa1\x99E'), chr(793 - 693) + chr(0b1100101) + chr(0b11111 + 0o104) + '\x6f' + '\x64' + chr(0b11111 + 0o106))('\x75' + chr(116) + chr(4032 - 3930) + chr(985 - 940) + '\x38'))[SiTpDn8thAb3]
if not Xmcm0weMglP7:
Xmcm0weMglP7 = hXMPsSrOQzbh.describe()
if SiTpDn8thAb3 not in roI3spqORKae(Xmcm0weMglP7[roI3spqORKae(ES5oEprVxulp(b'\xf2\xd7\xd7+M\x87&\x97K\xf2\xdb\xc4\xc2\xd76'), chr(0b1001110 + 0o26) + '\x65' + chr(0b101000 + 0o73) + chr(111) + '\x64' + '\x65')(chr(117) + chr(6795 - 6679) + chr(4078 - 3976) + '\x2d' + chr(0b10011 + 0o45))], roI3spqORKae(ES5oEprVxulp(b'\xeb\xd7\xc91'), chr(100) + chr(101) + chr(0b1100011) + chr(10444 - 10333) + chr(100) + '\145')(chr(0b1101011 + 0o12) + '\x74' + chr(4545 - 4443) + '\055' + chr(0b10 + 0o66)))():
raise JPU16lJ2koBU(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\xc4\xea\xf7.M\x8b&\x97S\xed\xdd\xc6\xcb\xd5*\xdc\x9b\xe8\x82C\x80\xe1\x9b\xce\xc5\xb05\x92\xf3\x1f_\x82\xf6\xfc\x95\xdbOc\x85l\xa0\xdb\xc3bL\x863\xdba\xec\xce\xcf\xc1\xdc!\x8b\xc8\xa6\xd6Y\x80\xa6\x95\xcd\xc4\xf2/\x83'), chr(0b1 + 0o143) + '\x65' + chr(0b1100011) + chr(0b1101111) + chr(8566 - 8466) + '\x65')('\x75' + chr(0b1110100) + chr(0b1100110) + chr(0b101101) + chr(0b1111 + 0o51)), roI3spqORKae(ES5oEprVxulp(b'\xf1\x81\x83\te\xda!\x94U\xdd\xec\xe7'), chr(100) + '\x65' + chr(0b101110 + 0o65) + '\157' + chr(0b1100100) + chr(0b1100101))('\x75' + chr(5363 - 5247) + '\146' + '\055' + chr(0b111000)))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xee\xd9\xe4,A\xa3$\xbdT\xee\xc6\xfa'), chr(0b110 + 0o136) + chr(0b1100101) + '\x63' + chr(0b1101111) + chr(100) + '\x65')(chr(0b1000111 + 0o56) + '\x74' + '\x66' + chr(0b101101) + '\070'))(), SiTpDn8thAb3))
bTuOUbbmo_mF = Xmcm0weMglP7[roI3spqORKae(ES5oEprVxulp(b'\xf2\xd7\xd7+M\x87&\x97K\xf2\xdb\xc4\xc2\xd76'), chr(0b11001 + 0o113) + chr(143 - 42) + chr(0b10100 + 0o117) + chr(2620 - 2509) + chr(0b101000 + 0o74) + chr(0b1100101))(chr(0b1110 + 0o147) + chr(116) + chr(0b110 + 0o140) + chr(45) + chr(2272 - 2216))][SiTpDn8thAb3][roI3spqORKae(ES5oEprVxulp(b'\xf7\xdd\xc2)D\x85(\x8c'), chr(0b1100100) + chr(101) + chr(0b1100011) + chr(0b1101111) + '\144' + chr(101))(chr(0b1110101) + '\x74' + chr(0b1100110) + chr(0b10010 + 0o33) + chr(56))]
hXMPsSrOQzbh.HNUcfVUY5FNV = SsdNdRxXOwsF.DXWorkflow(bTuOUbbmo_mF)
return roI3spqORKae(SsdNdRxXOwsF, roI3spqORKae(ES5oEprVxulp(b'\xc4\xea\xe7-P\x82!\x97k\xf5'), chr(2574 - 2474) + '\x65' + chr(99) + '\x6f' + chr(1247 - 1147) + chr(0b1100101))('\x75' + chr(8699 - 8583) + chr(7614 - 7512) + '\x2d' + chr(0b111000)))(bTuOUbbmo_mF)
|
dnanexus/dx-toolkit
|
src/python/dxpy/bindings/dxglobalworkflow.py
|
DXGlobalWorkflow.append_underlying_workflow_desc
|
def append_underlying_workflow_desc(self, describe_output, region):
"""
:param region: region name
:type region: string
:param describe_output: description of a global workflow
:type describe_output: dict
:returns: object description of the global workflow
:rtype: : dict
Appends stages, inputs, outputs and other workflow-specific metadata to a global workflow describe output.
Note: global workflow description does not contain functional metadata (stages, IO), since this data
is region-specific (due to applets and bound inputs) and so reside only in region-specific underlying
workflows. We add them to global_workflow_desc so that it can be used for a workflow or a global workflow
"""
assert(describe_output is None or describe_output.get('class') == 'globalworkflow')
underlying_workflow_desc = self.describe_underlying_workflow(region,
describe_output=describe_output)
for field in ['inputs', 'outputs', 'inputSpec', 'outputSpec', 'stages']:
describe_output[field] = underlying_workflow_desc[field]
return describe_output
|
python
|
def append_underlying_workflow_desc(self, describe_output, region):
"""
:param region: region name
:type region: string
:param describe_output: description of a global workflow
:type describe_output: dict
:returns: object description of the global workflow
:rtype: : dict
Appends stages, inputs, outputs and other workflow-specific metadata to a global workflow describe output.
Note: global workflow description does not contain functional metadata (stages, IO), since this data
is region-specific (due to applets and bound inputs) and so reside only in region-specific underlying
workflows. We add them to global_workflow_desc so that it can be used for a workflow or a global workflow
"""
assert(describe_output is None or describe_output.get('class') == 'globalworkflow')
underlying_workflow_desc = self.describe_underlying_workflow(region,
describe_output=describe_output)
for field in ['inputs', 'outputs', 'inputSpec', 'outputSpec', 'stages']:
describe_output[field] = underlying_workflow_desc[field]
return describe_output
|
[
"def",
"append_underlying_workflow_desc",
"(",
"self",
",",
"describe_output",
",",
"region",
")",
":",
"assert",
"(",
"describe_output",
"is",
"None",
"or",
"describe_output",
".",
"get",
"(",
"'class'",
")",
"==",
"'globalworkflow'",
")",
"underlying_workflow_desc",
"=",
"self",
".",
"describe_underlying_workflow",
"(",
"region",
",",
"describe_output",
"=",
"describe_output",
")",
"for",
"field",
"in",
"[",
"'inputs'",
",",
"'outputs'",
",",
"'inputSpec'",
",",
"'outputSpec'",
",",
"'stages'",
"]",
":",
"describe_output",
"[",
"field",
"]",
"=",
"underlying_workflow_desc",
"[",
"field",
"]",
"return",
"describe_output"
] |
:param region: region name
:type region: string
:param describe_output: description of a global workflow
:type describe_output: dict
:returns: object description of the global workflow
:rtype: : dict
Appends stages, inputs, outputs and other workflow-specific metadata to a global workflow describe output.
Note: global workflow description does not contain functional metadata (stages, IO), since this data
is region-specific (due to applets and bound inputs) and so reside only in region-specific underlying
workflows. We add them to global_workflow_desc so that it can be used for a workflow or a global workflow
|
[
":",
"param",
"region",
":",
"region",
"name",
":",
"type",
"region",
":",
"string",
":",
"param",
"describe_output",
":",
"description",
"of",
"a",
"global",
"workflow",
":",
"type",
"describe_output",
":",
"dict",
":",
"returns",
":",
"object",
"description",
"of",
"the",
"global",
"workflow",
":",
"rtype",
":",
":",
"dict"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxglobalworkflow.py#L229-L250
|
train
|
Adds the underlying workflow description to the given dict describe_output.
|
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2S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,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' + '\x32' + chr(0b110110), 22169 - 22161), nzTpIcepk0o8(chr(350 - 302) + chr(0b1101111) + chr(0b100001 + 0o22) + chr(0b10111 + 0o37) + '\x30', 0o10), nzTpIcepk0o8(chr(0b11100 + 0o24) + chr(6835 - 6724) + '\061' + chr(0b1000 + 0o57) + chr(1043 - 989), 0b1000), nzTpIcepk0o8(chr(0b101010 + 0o6) + chr(0b1101111) + chr(0b110011) + chr(0b110111) + '\x33', 0o10), nzTpIcepk0o8(chr(0b1111 + 0o41) + chr(11963 - 11852) + chr(711 - 661) + chr(0b1010 + 0o51) + '\x30', 23944 - 23936), nzTpIcepk0o8('\x30' + chr(2361 - 2250) + '\061' + '\062' + chr(2449 - 2395), 0b1000), nzTpIcepk0o8(chr(0b111 + 0o51) + chr(0b1101111) + chr(52) + chr(0b110001), 0o10), nzTpIcepk0o8('\060' + chr(8408 - 8297) + chr(405 - 355) + chr(0b10000 + 0o42) + chr(0b101010 + 0o11), 0b1000), nzTpIcepk0o8('\060' + chr(11911 - 11800) + chr(49) + chr(0b110110 + 0o1) + '\x35', 0o10), nzTpIcepk0o8(chr(2211 - 2163) + '\157' + chr(0b110011) + chr(49) + chr(0b10110 + 0o40), 45840 - 45832), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(51) + chr(0b110111) + '\063', 8), nzTpIcepk0o8('\x30' + chr(111) + chr(1151 - 1100) + chr(0b110101) + chr(0b1111 + 0o44), 0b1000), nzTpIcepk0o8('\060' + '\157' + chr(0b110001) + chr(49), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + '\061' + '\x37' + chr(664 - 614), 0o10), nzTpIcepk0o8(chr(1995 - 1947) + chr(0b1100101 + 0o12) + chr(504 - 455) + chr(684 - 635) + chr(0b110101), 36086 - 36078), nzTpIcepk0o8('\060' + chr(821 - 710) + chr(51) + chr(0b110101) + chr(50), 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(0b1100 + 0o45) + '\065' + '\x30', ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + '\x32' + '\x37' + '\x35', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\061' + chr(0b101001 + 0o15) + chr(54), 0o10), nzTpIcepk0o8(chr(0b11000 + 0o30) + '\x6f' + chr(1319 - 1268) + chr(0b110111) + chr(1526 - 1477), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110011) + chr(0b110100) + '\x33', 48863 - 48855), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\062' + chr(52) + chr(0b101111 + 0o1), 0o10), nzTpIcepk0o8(chr(0b101 + 0o53) + chr(0b1101111) + '\x33' + '\063' + chr(594 - 539), 47194 - 47186), nzTpIcepk0o8(chr(1115 - 1067) + chr(0b1101111) + '\061' + '\064' + chr(53), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + '\063' + chr(55) + chr(48), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(1232 - 1182) + chr(1599 - 1548) + '\x36', 0o10), nzTpIcepk0o8(chr(0b11 + 0o55) + chr(0b101001 + 0o106) + chr(0b110010) + '\x30' + chr(0b110101), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1010010 + 0o35) + '\x31' + chr(0b11100 + 0o27) + '\x35', ord("\x08")), nzTpIcepk0o8(chr(817 - 769) + '\x6f' + chr(0b110010) + chr(0b110010) + chr(53), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(4721 - 4610) + chr(0b11100 + 0o32) + chr(0b110100), 43955 - 43947), nzTpIcepk0o8(chr(125 - 77) + '\157' + '\061' + chr(647 - 592) + chr(0b110001), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b100000 + 0o117) + chr(0b110011) + chr(0b110001) + chr(52), 21203 - 21195), nzTpIcepk0o8(chr(982 - 934) + chr(0b1101111) + chr(0b101000 + 0o12) + chr(0b101110 + 0o10) + '\x37', ord("\x08")), nzTpIcepk0o8(chr(0b100000 + 0o20) + chr(6066 - 5955) + chr(0b100000 + 0o23) + '\062' + chr(51), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(0b101011 + 0o10) + chr(0b110001) + chr(1504 - 1455), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(10440 - 10329) + '\x31' + '\063' + chr(0b110111), 0b1000), nzTpIcepk0o8('\060' + '\157' + '\x32' + chr(0b11110 + 0o26) + chr(0b11010 + 0o35), 37886 - 37878), nzTpIcepk0o8(chr(0b11010 + 0o26) + chr(111) + chr(198 - 146), ord("\x08")), nzTpIcepk0o8(chr(0b1001 + 0o47) + chr(0b1111 + 0o140) + chr(413 - 362) + chr(0b101010 + 0o15) + chr(0b110100), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110001) + chr(0b110110 + 0o1) + '\x31', 8)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b100010 + 0o23) + chr(0b110000), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'8'), chr(100) + chr(0b1100101) + chr(0b110010 + 0o61) + '\157' + chr(0b1000101 + 0o37) + chr(0b1100101))('\165' + chr(0b1110100) + chr(0b1100110) + '\x2d' + '\070') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def fpaCWNbz6Exe(hXMPsSrOQzbh, Xmcm0weMglP7, SiTpDn8thAb3):
assert Xmcm0weMglP7 is None or roI3spqORKae(Xmcm0weMglP7, roI3spqORKae(ES5oEprVxulp(b'Q\xa55\x9e\xec#\x15\xeb\x1c\x89\x88\xa1'), chr(1080 - 980) + chr(101) + '\x63' + chr(111) + '\144' + chr(101))('\x75' + chr(0b1110100) + chr(6720 - 6618) + '\x2d' + chr(56)))(roI3spqORKae(ES5oEprVxulp(b'u\x9c\x1f\x88\xeb'), '\x64' + chr(2631 - 2530) + '\143' + chr(0b1101 + 0o142) + chr(0b1100100) + chr(9980 - 9879))('\165' + chr(0b110100 + 0o100) + chr(0b1011110 + 0o10) + chr(177 - 132) + '\070')) == roI3spqORKae(ES5oEprVxulp(b'q\x9c\x11\x99\xf9:V\xfc\x0f\xa5\x9d\x87f\r'), chr(2102 - 2002) + chr(0b1100101) + chr(0b1100011) + chr(1317 - 1206) + chr(0b101110 + 0o66) + '\x65')(chr(117) + chr(116) + chr(102) + chr(0b100 + 0o51) + '\070')
AQwGteurYlXl = hXMPsSrOQzbh.describe_underlying_workflow(SiTpDn8thAb3, describe_output=Xmcm0weMglP7)
for uF4zwjUGNIxR in [roI3spqORKae(ES5oEprVxulp(b'\x7f\x9e\x0e\x8e\xec%'), chr(0b1010100 + 0o20) + chr(0b110111 + 0o56) + chr(99) + chr(8950 - 8839) + '\x64' + chr(0b101 + 0o140))('\x75' + chr(0b1110100) + '\x66' + chr(45) + chr(2166 - 2110)), roI3spqORKae(ES5oEprVxulp(b'y\x85\n\x8b\xed"R'), chr(100) + chr(0b1100101) + chr(0b10100 + 0o117) + chr(7086 - 6975) + chr(7812 - 7712) + chr(3214 - 3113))('\165' + chr(6357 - 6241) + chr(0b10001 + 0o125) + '\055' + chr(2267 - 2211)), roI3spqORKae(ES5oEprVxulp(b'\x7f\x9e\x0e\x8e\xec\x05Q\xf6\x1e'), chr(0b111000 + 0o54) + chr(1281 - 1180) + chr(0b1100011) + chr(0b1101111) + chr(100) + chr(0b1100101))('\165' + chr(0b1110100) + chr(0b111110 + 0o50) + chr(368 - 323) + chr(0b111000)), roI3spqORKae(ES5oEprVxulp(b'y\x85\n\x8b\xed"r\xe3\x18\xad'), chr(3215 - 3115) + chr(101) + '\x63' + '\157' + '\144' + chr(101))('\165' + '\x74' + '\x66' + chr(0b11110 + 0o17) + '\x38'), roI3spqORKae(ES5oEprVxulp(b'e\x84\x1f\x9c\xfd%'), chr(3576 - 3476) + chr(0b1100101) + '\143' + chr(111) + chr(0b1001100 + 0o30) + chr(0b1100100 + 0o1))('\165' + '\x74' + '\146' + chr(45) + chr(0b111000))]:
Xmcm0weMglP7[uF4zwjUGNIxR] = AQwGteurYlXl[uF4zwjUGNIxR]
return Xmcm0weMglP7
|
dnanexus/dx-toolkit
|
src/python/dxpy/bindings/dxglobalworkflow.py
|
DXGlobalWorkflow._get_run_input
|
def _get_run_input(self, workflow_input, project=None, **kwargs):
"""
Checks the region in which the global workflow is run
and returns the input associated with the underlying workflow
from that region.
"""
region = dxpy.api.project_describe(project,
input_params={"fields": {"region": True}})["region"]
dxworkflow = self.get_underlying_workflow(region)
return dxworkflow._get_run_input(workflow_input, **kwargs)
|
python
|
def _get_run_input(self, workflow_input, project=None, **kwargs):
"""
Checks the region in which the global workflow is run
and returns the input associated with the underlying workflow
from that region.
"""
region = dxpy.api.project_describe(project,
input_params={"fields": {"region": True}})["region"]
dxworkflow = self.get_underlying_workflow(region)
return dxworkflow._get_run_input(workflow_input, **kwargs)
|
[
"def",
"_get_run_input",
"(",
"self",
",",
"workflow_input",
",",
"project",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"region",
"=",
"dxpy",
".",
"api",
".",
"project_describe",
"(",
"project",
",",
"input_params",
"=",
"{",
"\"fields\"",
":",
"{",
"\"region\"",
":",
"True",
"}",
"}",
")",
"[",
"\"region\"",
"]",
"dxworkflow",
"=",
"self",
".",
"get_underlying_workflow",
"(",
"region",
")",
"return",
"dxworkflow",
".",
"_get_run_input",
"(",
"workflow_input",
",",
"*",
"*",
"kwargs",
")"
] |
Checks the region in which the global workflow is run
and returns the input associated with the underlying workflow
from that region.
|
[
"Checks",
"the",
"region",
"in",
"which",
"the",
"global",
"workflow",
"is",
"run",
"and",
"returns",
"the",
"input",
"associated",
"with",
"the",
"underlying",
"workflow",
"from",
"that",
"region",
"."
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxglobalworkflow.py#L256-L265
|
train
|
Get the input associated with the global workflow.
|
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,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qZE,_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(0b101010 + 0o11) + chr(51) + chr(0b110101), 0o10), nzTpIcepk0o8(chr(0b1010 + 0o46) + chr(0b1101111) + chr(1654 - 1599) + chr(0b110000), 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(2005 - 1955) + '\x30' + chr(53), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b110111 + 0o70) + '\063' + chr(0b110011), 0o10), nzTpIcepk0o8(chr(0b11111 + 0o21) + chr(111) + '\061' + chr(1977 - 1929), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + '\x32' + '\x34', 0o10), nzTpIcepk0o8('\060' + '\157' + '\062' + chr(55) + chr(0b110110), 0b1000), nzTpIcepk0o8(chr(0b101001 + 0o7) + '\x6f' + chr(49) + chr(759 - 705) + chr(50), 48576 - 48568), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b10100 + 0o36) + chr(0b100 + 0o57) + '\x35', 0o10), nzTpIcepk0o8('\060' + '\157' + chr(51) + chr(0b1110 + 0o45) + '\062', ord("\x08")), nzTpIcepk0o8(chr(0b11111 + 0o21) + chr(0b111001 + 0o66) + '\x33' + '\x37' + chr(52), ord("\x08")), nzTpIcepk0o8(chr(2100 - 2052) + chr(2672 - 2561) + chr(0b11010 + 0o30) + '\065', ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(55) + chr(1958 - 1906), 28442 - 28434), nzTpIcepk0o8('\060' + '\157' + '\x33' + chr(0b1011 + 0o54) + chr(0b110001), 26810 - 26802), nzTpIcepk0o8(chr(0b110000) + chr(0b1000111 + 0o50) + chr(51) + chr(48) + '\x34', 0b1000), nzTpIcepk0o8(chr(48) + chr(5744 - 5633) + chr(2225 - 2175) + '\x36' + chr(0b110110), 0o10), nzTpIcepk0o8('\060' + chr(0b1010000 + 0o37) + chr(51) + chr(1212 - 1160), 0o10), nzTpIcepk0o8(chr(0b1010 + 0o46) + '\x6f' + '\062' + '\067' + chr(0b10100 + 0o43), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x31' + chr(0b1101 + 0o47) + chr(0b111 + 0o57), 60823 - 60815), nzTpIcepk0o8(chr(0b101111 + 0o1) + chr(0b1100100 + 0o13) + chr(0b11011 + 0o32) + chr(692 - 642), 0o10), nzTpIcepk0o8(chr(0b1000 + 0o50) + chr(0b1000100 + 0o53) + chr(0b10011 + 0o36) + chr(52) + chr(1367 - 1317), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x32' + chr(0b100100 + 0o23) + chr(286 - 232), 8), nzTpIcepk0o8(chr(2299 - 2251) + chr(4001 - 3890) + chr(49) + '\x30' + chr(0b11110 + 0o23), ord("\x08")), nzTpIcepk0o8(chr(2099 - 2051) + chr(0b1011011 + 0o24) + chr(52) + chr(0b101010 + 0o15), 33769 - 33761), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\061' + chr(1729 - 1681), 8), nzTpIcepk0o8(chr(0b10100 + 0o34) + chr(0b1101111) + chr(0b110011) + chr(0b11011 + 0o27) + '\062', 0b1000), nzTpIcepk0o8(chr(119 - 71) + chr(111) + '\065' + chr(55), 0b1000), nzTpIcepk0o8(chr(1680 - 1632) + '\x6f' + '\x33' + '\061' + '\x31', ord("\x08")), nzTpIcepk0o8(chr(0b101000 + 0o10) + chr(0b110000 + 0o77) + chr(0b100100 + 0o17) + chr(53) + chr(0b110010), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(50) + '\x33' + chr(48), ord("\x08")), nzTpIcepk0o8(chr(0b101011 + 0o5) + '\157' + chr(55) + chr(493 - 444), 58202 - 58194), nzTpIcepk0o8('\x30' + chr(7414 - 7303) + chr(49) + '\063' + '\x34', 0o10), nzTpIcepk0o8('\060' + '\157' + chr(0b101 + 0o54) + chr(48), 8), nzTpIcepk0o8('\x30' + chr(4784 - 4673) + chr(0b110010 + 0o0) + chr(0b110000) + chr(0b110001), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110101) + chr(0b101111 + 0o7), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(0b110011) + '\x33' + '\060', 0b1000), nzTpIcepk0o8(chr(2187 - 2139) + '\x6f' + chr(1670 - 1620) + chr(55) + chr(0b101111 + 0o5), ord("\x08")), nzTpIcepk0o8('\x30' + chr(6966 - 6855) + chr(1378 - 1325) + '\x31', 42307 - 42299), nzTpIcepk0o8(chr(2145 - 2097) + chr(111) + chr(0b110001) + chr(930 - 882), 8), nzTpIcepk0o8(chr(0b10011 + 0o35) + chr(3263 - 3152) + chr(0b101100 + 0o4), 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + '\157' + '\065' + chr(0b110000), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xf3'), chr(100) + '\145' + '\x63' + '\157' + chr(0b10 + 0o142) + chr(3636 - 3535))('\165' + '\x74' + '\146' + chr(0b101101) + chr(0b100111 + 0o21)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def Z1IGA4rjc4EH(hXMPsSrOQzbh, F0CXygh972_k, mcjejRq_Q0_k=None, **q5n0sHDDTy90):
SiTpDn8thAb3 = SsdNdRxXOwsF.api.project_describe(mcjejRq_Q0_k, input_params={roI3spqORKae(ES5oEprVxulp(b'\xbbQ\xe0wlg'), '\x64' + '\145' + '\143' + '\157' + '\144' + chr(101))('\165' + '\164' + chr(0b1001001 + 0o35) + '\055' + chr(56)): {roI3spqORKae(ES5oEprVxulp(b'\xaf]\xe2rgz'), chr(0b100000 + 0o104) + '\x65' + '\x63' + '\157' + chr(100) + chr(101))('\165' + chr(3304 - 3188) + chr(0b1100110) + '\055' + '\x38'): nzTpIcepk0o8('\x30' + chr(2747 - 2636) + chr(49), 52722 - 52714)}})[roI3spqORKae(ES5oEprVxulp(b'\xaf]\xe2rgz'), chr(100) + '\145' + chr(99) + chr(111) + '\144' + chr(0b1100101))('\165' + '\164' + chr(6599 - 6497) + chr(1812 - 1767) + chr(56))]
BQPPFVEQXfaz = hXMPsSrOQzbh.get_underlying_workflow(SiTpDn8thAb3)
return roI3spqORKae(BQPPFVEQXfaz, roI3spqORKae(ES5oEprVxulp(b'\x82_\xe0oWf\xcb\x1c\xc2\xb3\x92eI\x8d'), chr(0b1100100) + '\145' + chr(99) + chr(6340 - 6229) + '\x64' + '\145')(chr(4030 - 3913) + '\x74' + chr(2382 - 2280) + '\x2d' + chr(489 - 433)))(F0CXygh972_k, **q5n0sHDDTy90)
|
dnanexus/dx-toolkit
|
src/python/dxpy/bindings/dxglobalworkflow.py
|
DXGlobalWorkflow.run
|
def run(self, workflow_input, *args, **kwargs):
'''
:param workflow_input: Dictionary of the workflow's input arguments; see below for more details
:type workflow_input: dict
:param instance_type: Instance type on which all stages' jobs will be run, or a dict mapping function names to instance types. These may be overridden on a per-stage basis if stage_instance_types is specified.
:type instance_type: string or dict
:param stage_instance_types: A dict mapping stage IDs, names, or indices to either a string (representing an instance type to be used for all functions in that stage), or a dict mapping function names to instance types.
:type stage_instance_types: dict
:param stage_folders: A dict mapping stage IDs, names, indices, and/or the string "*" to folder values to be used for the stages' output folders (use "*" as the default for all unnamed stages)
:type stage_folders: dict
:param rerun_stages: A list of stage IDs, names, indices, and/or the string "*" to indicate which stages should be run even if there are cached executions available
:type rerun_stages: list of strings
:returns: Object handler of the newly created analysis
:rtype: :class:`~dxpy.bindings.dxanalysis.DXAnalysis`
Run the workflow. See :meth:`dxpy.bindings.dxapplet.DXExecutable.run` for additional args.
When providing input for the workflow, keys should be of one of the following forms:
* "N.name" where *N* is the stage number, and *name* is the
name of the input, e.g. "0.reads" if the first stage takes
in an input called "reads"
* "stagename.name" where *stagename* is the stage name, and
*name* is the name of the input within the stage
* "stageID.name" where *stageID* is the stage ID, and *name*
is the name of the input within the stage
* "name" where *name* is the name of a workflow level input
(defined in inputs) or the name that has been
exported for the workflow (this name will appear as a key
in the "inputSpec" of this workflow's description if it has
been exported for this purpose)
'''
return super(DXGlobalWorkflow, self).run(workflow_input, *args, **kwargs)
|
python
|
def run(self, workflow_input, *args, **kwargs):
'''
:param workflow_input: Dictionary of the workflow's input arguments; see below for more details
:type workflow_input: dict
:param instance_type: Instance type on which all stages' jobs will be run, or a dict mapping function names to instance types. These may be overridden on a per-stage basis if stage_instance_types is specified.
:type instance_type: string or dict
:param stage_instance_types: A dict mapping stage IDs, names, or indices to either a string (representing an instance type to be used for all functions in that stage), or a dict mapping function names to instance types.
:type stage_instance_types: dict
:param stage_folders: A dict mapping stage IDs, names, indices, and/or the string "*" to folder values to be used for the stages' output folders (use "*" as the default for all unnamed stages)
:type stage_folders: dict
:param rerun_stages: A list of stage IDs, names, indices, and/or the string "*" to indicate which stages should be run even if there are cached executions available
:type rerun_stages: list of strings
:returns: Object handler of the newly created analysis
:rtype: :class:`~dxpy.bindings.dxanalysis.DXAnalysis`
Run the workflow. See :meth:`dxpy.bindings.dxapplet.DXExecutable.run` for additional args.
When providing input for the workflow, keys should be of one of the following forms:
* "N.name" where *N* is the stage number, and *name* is the
name of the input, e.g. "0.reads" if the first stage takes
in an input called "reads"
* "stagename.name" where *stagename* is the stage name, and
*name* is the name of the input within the stage
* "stageID.name" where *stageID* is the stage ID, and *name*
is the name of the input within the stage
* "name" where *name* is the name of a workflow level input
(defined in inputs) or the name that has been
exported for the workflow (this name will appear as a key
in the "inputSpec" of this workflow's description if it has
been exported for this purpose)
'''
return super(DXGlobalWorkflow, self).run(workflow_input, *args, **kwargs)
|
[
"def",
"run",
"(",
"self",
",",
"workflow_input",
",",
"*",
"args",
",",
"*",
"*",
"kwargs",
")",
":",
"return",
"super",
"(",
"DXGlobalWorkflow",
",",
"self",
")",
".",
"run",
"(",
"workflow_input",
",",
"*",
"args",
",",
"*",
"*",
"kwargs",
")"
] |
:param workflow_input: Dictionary of the workflow's input arguments; see below for more details
:type workflow_input: dict
:param instance_type: Instance type on which all stages' jobs will be run, or a dict mapping function names to instance types. These may be overridden on a per-stage basis if stage_instance_types is specified.
:type instance_type: string or dict
:param stage_instance_types: A dict mapping stage IDs, names, or indices to either a string (representing an instance type to be used for all functions in that stage), or a dict mapping function names to instance types.
:type stage_instance_types: dict
:param stage_folders: A dict mapping stage IDs, names, indices, and/or the string "*" to folder values to be used for the stages' output folders (use "*" as the default for all unnamed stages)
:type stage_folders: dict
:param rerun_stages: A list of stage IDs, names, indices, and/or the string "*" to indicate which stages should be run even if there are cached executions available
:type rerun_stages: list of strings
:returns: Object handler of the newly created analysis
:rtype: :class:`~dxpy.bindings.dxanalysis.DXAnalysis`
Run the workflow. See :meth:`dxpy.bindings.dxapplet.DXExecutable.run` for additional args.
When providing input for the workflow, keys should be of one of the following forms:
* "N.name" where *N* is the stage number, and *name* is the
name of the input, e.g. "0.reads" if the first stage takes
in an input called "reads"
* "stagename.name" where *stagename* is the stage name, and
*name* is the name of the input within the stage
* "stageID.name" where *stageID* is the stage ID, and *name*
is the name of the input within the stage
* "name" where *name* is the name of a workflow level input
(defined in inputs) or the name that has been
exported for the workflow (this name will appear as a key
in the "inputSpec" of this workflow's description if it has
been exported for this purpose)
|
[
":",
"param",
"workflow_input",
":",
"Dictionary",
"of",
"the",
"workflow",
"s",
"input",
"arguments",
";",
"see",
"below",
"for",
"more",
"details",
":",
"type",
"workflow_input",
":",
"dict",
":",
"param",
"instance_type",
":",
"Instance",
"type",
"on",
"which",
"all",
"stages",
"jobs",
"will",
"be",
"run",
"or",
"a",
"dict",
"mapping",
"function",
"names",
"to",
"instance",
"types",
".",
"These",
"may",
"be",
"overridden",
"on",
"a",
"per",
"-",
"stage",
"basis",
"if",
"stage_instance_types",
"is",
"specified",
".",
":",
"type",
"instance_type",
":",
"string",
"or",
"dict",
":",
"param",
"stage_instance_types",
":",
"A",
"dict",
"mapping",
"stage",
"IDs",
"names",
"or",
"indices",
"to",
"either",
"a",
"string",
"(",
"representing",
"an",
"instance",
"type",
"to",
"be",
"used",
"for",
"all",
"functions",
"in",
"that",
"stage",
")",
"or",
"a",
"dict",
"mapping",
"function",
"names",
"to",
"instance",
"types",
".",
":",
"type",
"stage_instance_types",
":",
"dict",
":",
"param",
"stage_folders",
":",
"A",
"dict",
"mapping",
"stage",
"IDs",
"names",
"indices",
"and",
"/",
"or",
"the",
"string",
"*",
"to",
"folder",
"values",
"to",
"be",
"used",
"for",
"the",
"stages",
"output",
"folders",
"(",
"use",
"*",
"as",
"the",
"default",
"for",
"all",
"unnamed",
"stages",
")",
":",
"type",
"stage_folders",
":",
"dict",
":",
"param",
"rerun_stages",
":",
"A",
"list",
"of",
"stage",
"IDs",
"names",
"indices",
"and",
"/",
"or",
"the",
"string",
"*",
"to",
"indicate",
"which",
"stages",
"should",
"be",
"run",
"even",
"if",
"there",
"are",
"cached",
"executions",
"available",
":",
"type",
"rerun_stages",
":",
"list",
"of",
"strings",
":",
"returns",
":",
"Object",
"handler",
"of",
"the",
"newly",
"created",
"analysis",
":",
"rtype",
":",
":",
"class",
":",
"~dxpy",
".",
"bindings",
".",
"dxanalysis",
".",
"DXAnalysis"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxglobalworkflow.py#L275-L311
|
train
|
Runs the analysis on the given stage and returns the object handler of the newly created analysis.
|
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1A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WCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__
ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b110000) + chr(111) + '\061' + chr(51), 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(695 - 644) + chr(0b110001) + chr(0b1010 + 0o46), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1100101 + 0o12) + '\x31' + chr(0b100100 + 0o21) + chr(55), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(2094 - 2045) + chr(0b11101 + 0o23) + '\x31', ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110011) + chr(1929 - 1877) + chr(53), 0o10), nzTpIcepk0o8(chr(0b100 + 0o54) + '\x6f' + chr(0b10 + 0o57) + chr(0b1111 + 0o43) + chr(53), 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(0b110001) + '\067' + chr(52), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(0b110001) + '\x37' + chr(0b110110), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + '\x33' + chr(0b10011 + 0o44), ord("\x08")), nzTpIcepk0o8(chr(1848 - 1800) + chr(6451 - 6340) + chr(1893 - 1843) + chr(0b110000) + '\x36', ord("\x08")), nzTpIcepk0o8(chr(0b1110 + 0o42) + chr(2601 - 2490) + '\x35' + chr(0b110011), 0b1000), nzTpIcepk0o8(chr(1953 - 1905) + chr(165 - 54) + chr(0b110010) + chr(2475 - 2421) + chr(1286 - 1231), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110011) + chr(54) + '\066', 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(49) + chr(0b100000 + 0o20) + '\062', 13869 - 13861), nzTpIcepk0o8('\x30' + chr(7895 - 7784) + '\x32' + '\x33' + '\x30', 46666 - 46658), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b1101 + 0o44) + '\x37' + '\060', 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110011) + chr(0b110001) + chr(0b1101 + 0o51), ord("\x08")), nzTpIcepk0o8(chr(0b10100 + 0o34) + chr(9274 - 9163) + '\x31' + chr(48) + chr(0b101100 + 0o12), 21116 - 21108), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110010) + chr(0b10100 + 0o40) + chr(0b110101), 0o10), nzTpIcepk0o8(chr(0b10011 + 0o35) + chr(0b1101111) + chr(49) + chr(0b1000 + 0o57) + chr(0b1101 + 0o50), 0o10), nzTpIcepk0o8('\060' + chr(11996 - 11885) + chr(0b1000 + 0o51) + chr(0b110010) + chr(0b100001 + 0o24), 8), nzTpIcepk0o8('\x30' + chr(111) + chr(0b11101 + 0o25) + '\x36' + chr(52), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + '\062' + chr(2033 - 1984) + chr(0b10100 + 0o35), 40780 - 40772), nzTpIcepk0o8('\x30' + chr(10821 - 10710) + chr(50) + '\064', 0o10), nzTpIcepk0o8(chr(428 - 380) + '\x6f' + chr(50) + '\060' + chr(0b110011), 0b1000), nzTpIcepk0o8(chr(0b100011 + 0o15) + '\157' + chr(50) + '\065' + chr(52), 0b1000), nzTpIcepk0o8(chr(48) + chr(11441 - 11330) + '\062' + chr(55) + chr(0b10011 + 0o44), ord("\x08")), nzTpIcepk0o8(chr(1681 - 1633) + chr(111) + '\062' + '\x34' + chr(1065 - 1013), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(55), 36950 - 36942), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110001) + '\066' + chr(0b10000 + 0o40), 61835 - 61827), nzTpIcepk0o8(chr(596 - 548) + '\x6f' + chr(351 - 300) + '\x35' + chr(0b110101), ord("\x08")), nzTpIcepk0o8(chr(528 - 480) + '\157' + chr(51) + chr(53) + chr(485 - 436), ord("\x08")), nzTpIcepk0o8('\x30' + chr(10202 - 10091) + chr(0b101110 + 0o7), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(49) + '\x37' + '\067', 2916 - 2908), nzTpIcepk0o8(chr(0b10010 + 0o36) + chr(111) + chr(50) + chr(0b110111) + chr(0b110111), 8), nzTpIcepk0o8('\x30' + chr(0b1001 + 0o146) + chr(0b110011) + chr(53) + '\x35', 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1001 + 0o146) + chr(51) + chr(0b100010 + 0o17) + '\x30', 8), nzTpIcepk0o8(chr(671 - 623) + chr(1150 - 1039) + chr(915 - 864) + chr(54), 57696 - 57688), nzTpIcepk0o8(chr(0b101101 + 0o3) + chr(0b1101111) + chr(0b110011) + chr(0b110000) + '\061', 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110001) + chr(0b101101 + 0o6) + chr(0b100001 + 0o22), 31582 - 31574)][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + '\157' + '\065' + '\060', ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'%'), '\144' + chr(0b1100101) + '\x63' + chr(0b1101111 + 0o0) + '\144' + '\x65')('\165' + '\x74' + chr(5398 - 5296) + chr(0b1 + 0o54) + chr(1780 - 1724)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def qnPOIdBQJdzY(hXMPsSrOQzbh, F0CXygh972_k, *eemPYp2vtTSr, **q5n0sHDDTy90):
return roI3spqORKae(CO2YiXoIEhJY(Xnr7m9odbC2O, hXMPsSrOQzbh), roI3spqORKae(ES5oEprVxulp(b'z\xa6?\x0e\xac1>/U\xe2Q\xee'), '\x64' + chr(0b1010011 + 0o22) + chr(689 - 590) + '\x6f' + chr(0b110111 + 0o55) + chr(101))('\x75' + chr(116) + chr(0b1010011 + 0o23) + '\x2d' + chr(0b100011 + 0o25)))(F0CXygh972_k, *eemPYp2vtTSr, **q5n0sHDDTy90)
|
dnanexus/dx-toolkit
|
src/python/dxpy/compat.py
|
unwrap_stream
|
def unwrap_stream(stream_name):
"""
Temporarily unwraps a given stream (stdin, stdout, or stderr) to undo the effects of wrap_stdio_in_codecs().
"""
wrapped_stream = None
try:
wrapped_stream = getattr(sys, stream_name)
if hasattr(wrapped_stream, '_original_stream'):
setattr(sys, stream_name, wrapped_stream._original_stream)
yield
finally:
if wrapped_stream:
setattr(sys, stream_name, wrapped_stream)
|
python
|
def unwrap_stream(stream_name):
"""
Temporarily unwraps a given stream (stdin, stdout, or stderr) to undo the effects of wrap_stdio_in_codecs().
"""
wrapped_stream = None
try:
wrapped_stream = getattr(sys, stream_name)
if hasattr(wrapped_stream, '_original_stream'):
setattr(sys, stream_name, wrapped_stream._original_stream)
yield
finally:
if wrapped_stream:
setattr(sys, stream_name, wrapped_stream)
|
[
"def",
"unwrap_stream",
"(",
"stream_name",
")",
":",
"wrapped_stream",
"=",
"None",
"try",
":",
"wrapped_stream",
"=",
"getattr",
"(",
"sys",
",",
"stream_name",
")",
"if",
"hasattr",
"(",
"wrapped_stream",
",",
"'_original_stream'",
")",
":",
"setattr",
"(",
"sys",
",",
"stream_name",
",",
"wrapped_stream",
".",
"_original_stream",
")",
"yield",
"finally",
":",
"if",
"wrapped_stream",
":",
"setattr",
"(",
"sys",
",",
"stream_name",
",",
"wrapped_stream",
")"
] |
Temporarily unwraps a given stream (stdin, stdout, or stderr) to undo the effects of wrap_stdio_in_codecs().
|
[
"Temporarily",
"unwraps",
"a",
"given",
"stream",
"(",
"stdin",
"stdout",
"or",
"stderr",
")",
"to",
"undo",
"the",
"effects",
"of",
"wrap_stdio_in_codecs",
"()",
"."
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/compat.py#L206-L218
|
train
|
Temporarily unwraps a given 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,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(0b110000) + chr(0b1101111) + chr(0b110000 + 0o1) + chr(1457 - 1408) + chr(993 - 939), 0o10), nzTpIcepk0o8('\x30' + chr(0b1011111 + 0o20) + chr(51) + chr(0b10101 + 0o40) + '\x36', 21267 - 21259), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(1331 - 1281) + chr(55) + chr(2341 - 2292), 0o10), nzTpIcepk0o8(chr(947 - 899) + chr(0b1101111) + chr(0b110001) + '\x36' + chr(0b10111 + 0o31), 0o10), nzTpIcepk0o8(chr(0b11100 + 0o24) + chr(111) + '\x33' + chr(0b110110) + chr(48), 0b1000), nzTpIcepk0o8(chr(429 - 381) + '\x6f' + chr(2366 - 2316) + '\x32' + chr(0b110010), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(575 - 524) + '\062', 0b1000), nzTpIcepk0o8(chr(1926 - 1878) + '\x6f' + '\063' + chr(0b110110 + 0o0) + chr(52), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(7132 - 7021) + chr(0b110011) + chr(0b110111 + 0o0) + '\060', 50281 - 50273), nzTpIcepk0o8(chr(48) + chr(502 - 391) + chr(0b10 + 0o57) + chr(54) + '\x32', 0b1000), nzTpIcepk0o8(chr(626 - 578) + '\157' + chr(55) + '\067', 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(0b110010) + '\x33', 0o10), nzTpIcepk0o8(chr(0b1111 + 0o41) + chr(0b1101111) + '\061' + chr(2634 - 2580) + chr(0b110011), 28602 - 28594), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(1934 - 1884) + chr(0b110111) + '\067', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x31' + '\x35' + '\x32', 8927 - 8919), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(52) + chr(0b10111 + 0o32), 3127 - 3119), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x32' + chr(0b110 + 0o52) + chr(0b11011 + 0o25), 51349 - 51341), nzTpIcepk0o8('\060' + chr(0b10011 + 0o134) + chr(0b110110) + '\x32', ord("\x08")), nzTpIcepk0o8('\x30' + chr(11472 - 11361) + chr(52), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x32' + '\066' + chr(49), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b100110 + 0o13) + '\x30', 0o10), nzTpIcepk0o8('\x30' + chr(4496 - 4385) + '\062' + '\064', 0o10), nzTpIcepk0o8(chr(0b110 + 0o52) + '\x6f' + chr(0b11111 + 0o24) + chr(50) + chr(0b10000 + 0o46), ord("\x08")), nzTpIcepk0o8(chr(0b100001 + 0o17) + chr(0b1101111) + chr(1464 - 1412) + chr(1580 - 1530), 0o10), nzTpIcepk0o8('\060' + '\157' + chr(353 - 302) + chr(49) + chr(50), 0o10), nzTpIcepk0o8('\060' + '\x6f' + '\x33' + '\066' + '\x36', 65089 - 65081), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b10110 + 0o41) + chr(50), 2330 - 2322), nzTpIcepk0o8('\x30' + chr(0b11110 + 0o121) + chr(50) + '\065' + '\066', 0b1000), nzTpIcepk0o8(chr(0b0 + 0o60) + '\x6f' + chr(50) + chr(50) + chr(0b11110 + 0o25), 0o10), nzTpIcepk0o8('\060' + chr(0b11100 + 0o123) + chr(51) + chr(770 - 721) + chr(0b101 + 0o53), 0o10), nzTpIcepk0o8('\060' + '\157' + chr(49) + chr(2244 - 2196), 8), nzTpIcepk0o8(chr(1469 - 1421) + chr(11449 - 11338) + chr(49) + chr(1445 - 1394) + '\x34', 0o10), nzTpIcepk0o8('\x30' + '\157' + '\x33' + '\065', ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + '\062' + chr(0b110000) + '\x34', ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + '\x32' + chr(443 - 389) + '\066', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x35' + chr(2691 - 2637), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1000000 + 0o57) + chr(50) + chr(48) + '\061', 33687 - 33679), nzTpIcepk0o8(chr(48) + chr(11762 - 11651) + chr(2205 - 2154) + chr(55) + '\062', 0o10), nzTpIcepk0o8('\x30' + chr(7332 - 7221) + chr(0b110001) + '\x31' + chr(1217 - 1168), 11824 - 11816), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(50) + chr(50) + chr(50), 8)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b1101 + 0o43) + chr(0b10101 + 0o132) + '\065' + chr(178 - 130), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'`'), chr(100) + chr(0b1000100 + 0o41) + chr(0b110001 + 0o62) + chr(6555 - 6444) + chr(0b1100100) + chr(0b111011 + 0o52))(chr(1439 - 1322) + '\x74' + chr(0b111111 + 0o47) + chr(621 - 576) + chr(56)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def HYlhLs1gvR1X(o8_jI9ZfsmIE):
zY2hk8oMzU_D = None
try:
zY2hk8oMzU_D = roI3spqORKae(bpyfpu4kTbwL, o8_jI9ZfsmIE)
if dRKdVnHPFq7C(zY2hk8oMzU_D, roI3spqORKae(ES5oEprVxulp(b'\x11\x81\xcb\x19\x97\xfbt\x95\x94-Lg\x01\xda\x0bL'), chr(0b110101 + 0o57) + '\145' + '\x63' + chr(0b1101111) + chr(100) + chr(101))('\165' + chr(116) + chr(6936 - 6834) + chr(0b1101 + 0o40) + chr(0b10100 + 0o44))):
lCf1uzpaIUMv(bpyfpu4kTbwL, o8_jI9ZfsmIE, roI3spqORKae(zY2hk8oMzU_D, roI3spqORKae(ES5oEprVxulp(b'\x11\x81\xcb\x19\x97\xfbt\x95\x94-Lg\x01\xda\x0bL'), chr(100) + chr(0b1100101) + chr(4368 - 4269) + '\x6f' + chr(0b110 + 0o136) + '\145')(chr(5398 - 5281) + '\x74' + chr(102) + chr(45) + '\x38')))
yield
finally:
if zY2hk8oMzU_D:
lCf1uzpaIUMv(bpyfpu4kTbwL, o8_jI9ZfsmIE, zY2hk8oMzU_D)
|
dnanexus/dx-toolkit
|
src/python/dxpy/bindings/dxfile_functions.py
|
open_dxfile
|
def open_dxfile(dxid, project=None, mode=None, read_buffer_size=dxfile.DEFAULT_BUFFER_SIZE):
'''
:param dxid: file ID
:type dxid: string
:rtype: :class:`~dxpy.bindings.dxfile.DXFile`
Given the object ID of an uploaded file, returns a remote file
handler that is a Python file-like object.
Example::
with open_dxfile("file-xxxx") as fd:
for line in fd:
...
Note that this is shorthand for::
DXFile(dxid)
'''
return DXFile(dxid, project=project, mode=mode, read_buffer_size=read_buffer_size)
|
python
|
def open_dxfile(dxid, project=None, mode=None, read_buffer_size=dxfile.DEFAULT_BUFFER_SIZE):
'''
:param dxid: file ID
:type dxid: string
:rtype: :class:`~dxpy.bindings.dxfile.DXFile`
Given the object ID of an uploaded file, returns a remote file
handler that is a Python file-like object.
Example::
with open_dxfile("file-xxxx") as fd:
for line in fd:
...
Note that this is shorthand for::
DXFile(dxid)
'''
return DXFile(dxid, project=project, mode=mode, read_buffer_size=read_buffer_size)
|
[
"def",
"open_dxfile",
"(",
"dxid",
",",
"project",
"=",
"None",
",",
"mode",
"=",
"None",
",",
"read_buffer_size",
"=",
"dxfile",
".",
"DEFAULT_BUFFER_SIZE",
")",
":",
"return",
"DXFile",
"(",
"dxid",
",",
"project",
"=",
"project",
",",
"mode",
"=",
"mode",
",",
"read_buffer_size",
"=",
"read_buffer_size",
")"
] |
:param dxid: file ID
:type dxid: string
:rtype: :class:`~dxpy.bindings.dxfile.DXFile`
Given the object ID of an uploaded file, returns a remote file
handler that is a Python file-like object.
Example::
with open_dxfile("file-xxxx") as fd:
for line in fd:
...
Note that this is shorthand for::
DXFile(dxid)
|
[
":",
"param",
"dxid",
":",
"file",
"ID",
":",
"type",
"dxid",
":",
"string",
":",
"rtype",
":",
":",
"class",
":",
"~dxpy",
".",
"bindings",
".",
"dxfile",
".",
"DXFile"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxfile_functions.py#L43-L63
|
train
|
Returns a remote file - like object that is a Python 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,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aF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rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__
ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\x30' + chr(2160 - 2049) + '\062' + '\x34' + chr(725 - 674), 0o10), nzTpIcepk0o8(chr(969 - 921) + '\157' + '\062' + '\064', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b10100 + 0o42), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\061' + chr(542 - 494) + '\x33', 0b1000), nzTpIcepk0o8(chr(0b1000 + 0o50) + '\157' + chr(1047 - 998) + '\x36' + chr(0b101100 + 0o10), ord("\x08")), nzTpIcepk0o8(chr(1845 - 1797) + chr(0b101110 + 0o101) + chr(0b110110) + '\065', ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(49) + chr(0b110010) + chr(0b110010), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(0b10100 + 0o37) + chr(51) + chr(1435 - 1383), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110001) + chr(0b100010 + 0o21) + '\060', 47475 - 47467), nzTpIcepk0o8(chr(0b100001 + 0o17) + chr(0b1101111) + '\x33' + '\060' + chr(50), 0b1000), nzTpIcepk0o8('\060' + '\157' + '\062' + chr(0b110100) + chr(0b110011), 8), nzTpIcepk0o8(chr(0b11 + 0o55) + chr(0b101000 + 0o107) + chr(0b101001 + 0o12) + chr(51) + chr(0b110000), 0o10), nzTpIcepk0o8('\060' + chr(0b10010 + 0o135) + chr(1774 - 1723) + '\062' + chr(657 - 602), 0o10), nzTpIcepk0o8('\060' + '\157' + chr(51) + chr(49) + '\061', ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(1392 - 1343) + '\x37' + chr(52), 0o10), nzTpIcepk0o8(chr(48) + chr(6697 - 6586) + chr(50) + chr(231 - 181) + chr(2092 - 2041), 0b1000), nzTpIcepk0o8('\060' + '\157' + chr(50) + '\061' + '\065', 45451 - 45443), nzTpIcepk0o8(chr(0b110000) + chr(5677 - 5566) + chr(0b11001 + 0o32) + chr(2429 - 2379), 0o10), nzTpIcepk0o8('\060' + '\157' + '\x35' + '\x32', ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(0b110001) + '\065' + chr(0b110100), ord("\x08")), nzTpIcepk0o8(chr(1574 - 1526) + chr(0b1101111) + chr(1036 - 985) + chr(0b110 + 0o54) + chr(0b100110 + 0o16), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(10729 - 10618) + chr(0b110010 + 0o0) + chr(1199 - 1149) + chr(0b110111), 0b1000), nzTpIcepk0o8(chr(487 - 439) + '\x6f' + chr(0b100011 + 0o17) + '\x30' + chr(0b10110 + 0o41), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b10111 + 0o34) + chr(0b110100) + '\060', 0b1000), nzTpIcepk0o8(chr(198 - 150) + '\x6f' + '\x32' + '\x36' + chr(51), 0o10), nzTpIcepk0o8(chr(0b101000 + 0o10) + '\157' + '\061' + chr(732 - 679), 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110010) + '\061' + chr(1224 - 1175), 56938 - 56930), nzTpIcepk0o8('\x30' + chr(0b1101101 + 0o2) + chr(244 - 195) + chr(55) + chr(0b110001 + 0o6), 0b1000), nzTpIcepk0o8('\x30' + chr(1361 - 1250) + '\x32' + chr(0b110101) + chr(53), 0b1000), nzTpIcepk0o8('\060' + chr(0b101100 + 0o103) + chr(51) + chr(0b11001 + 0o36) + chr(0b110100), ord("\x08")), nzTpIcepk0o8('\x30' + chr(3776 - 3665) + chr(2698 - 2645) + '\x36', ord("\x08")), nzTpIcepk0o8(chr(0b100100 + 0o14) + '\x6f' + chr(49) + '\x33' + chr(0b110000 + 0o4), ord("\x08")), nzTpIcepk0o8(chr(0b100010 + 0o16) + '\157' + '\x33' + chr(50) + chr(0b10001 + 0o44), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b101000 + 0o11) + chr(54), 60052 - 60044), nzTpIcepk0o8(chr(0b100110 + 0o12) + '\x6f' + chr(0b110001) + chr(53) + chr(0b110100), 8), nzTpIcepk0o8(chr(2241 - 2193) + chr(0b1101111) + chr(49) + chr(0b100011 + 0o21) + '\061', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\063' + chr(0b100001 + 0o17) + '\066', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110010) + chr(48) + chr(0b100111 + 0o14), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(1593 - 1544) + chr(0b110111) + chr(0b110000), 0b1000), nzTpIcepk0o8('\x30' + '\157' + '\x36' + chr(0b110010), 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + chr(0b10011 + 0o134) + chr(0b11 + 0o62) + '\060', ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x8d'), chr(100) + '\x65' + chr(8413 - 8314) + chr(0b1101111) + chr(0b100011 + 0o101) + chr(101))(chr(8714 - 8597) + chr(116) + chr(6546 - 6444) + chr(1855 - 1810) + chr(56)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def xuHVIMAyQ6l8(LaRgxWJnPLsD, mcjejRq_Q0_k=None, bmJ7SvuZE3jD=None, NMsTPv2rFpim=roI3spqORKae(gVH10rjKDCEH, roI3spqORKae(ES5oEprVxulp(b'\xe7Q@\x02!y\x06\x83\x1a\x97\xe5\x9e\x92\x9b#\xc0\xc4@o'), chr(6736 - 6636) + chr(9285 - 9184) + chr(8920 - 8821) + chr(9054 - 8943) + chr(0b1001111 + 0o25) + '\x65')(chr(0b1110101) + chr(0b1110100) + '\146' + chr(45) + '\070'))):
return raWYLn1m7863(LaRgxWJnPLsD, project=mcjejRq_Q0_k, mode=bmJ7SvuZE3jD, read_buffer_size=NMsTPv2rFpim)
|
dnanexus/dx-toolkit
|
src/python/dxpy/bindings/dxfile_functions.py
|
new_dxfile
|
def new_dxfile(mode=None, write_buffer_size=dxfile.DEFAULT_BUFFER_SIZE, expected_file_size=None, file_is_mmapd=False,
**kwargs):
'''
:param mode: One of "w" or "a" for write and append modes, respectively
:type mode: string
:rtype: :class:`~dxpy.bindings.dxfile.DXFile`
Additional optional parameters not listed: all those under
:func:`dxpy.bindings.DXDataObject.new`.
Creates a new remote file object that is ready to be written to;
returns a :class:`~dxpy.bindings.dxfile.DXFile` object that is a
writable file-like object.
Example::
with new_dxfile(media_type="application/json") as fd:
fd.write("foo\\n")
Note that this is shorthand for::
dxFile = DXFile()
dxFile.new(**kwargs)
'''
dx_file = DXFile(mode=mode, write_buffer_size=write_buffer_size, expected_file_size=expected_file_size,
file_is_mmapd=file_is_mmapd)
dx_file.new(**kwargs)
return dx_file
|
python
|
def new_dxfile(mode=None, write_buffer_size=dxfile.DEFAULT_BUFFER_SIZE, expected_file_size=None, file_is_mmapd=False,
**kwargs):
'''
:param mode: One of "w" or "a" for write and append modes, respectively
:type mode: string
:rtype: :class:`~dxpy.bindings.dxfile.DXFile`
Additional optional parameters not listed: all those under
:func:`dxpy.bindings.DXDataObject.new`.
Creates a new remote file object that is ready to be written to;
returns a :class:`~dxpy.bindings.dxfile.DXFile` object that is a
writable file-like object.
Example::
with new_dxfile(media_type="application/json") as fd:
fd.write("foo\\n")
Note that this is shorthand for::
dxFile = DXFile()
dxFile.new(**kwargs)
'''
dx_file = DXFile(mode=mode, write_buffer_size=write_buffer_size, expected_file_size=expected_file_size,
file_is_mmapd=file_is_mmapd)
dx_file.new(**kwargs)
return dx_file
|
[
"def",
"new_dxfile",
"(",
"mode",
"=",
"None",
",",
"write_buffer_size",
"=",
"dxfile",
".",
"DEFAULT_BUFFER_SIZE",
",",
"expected_file_size",
"=",
"None",
",",
"file_is_mmapd",
"=",
"False",
",",
"*",
"*",
"kwargs",
")",
":",
"dx_file",
"=",
"DXFile",
"(",
"mode",
"=",
"mode",
",",
"write_buffer_size",
"=",
"write_buffer_size",
",",
"expected_file_size",
"=",
"expected_file_size",
",",
"file_is_mmapd",
"=",
"file_is_mmapd",
")",
"dx_file",
".",
"new",
"(",
"*",
"*",
"kwargs",
")",
"return",
"dx_file"
] |
:param mode: One of "w" or "a" for write and append modes, respectively
:type mode: string
:rtype: :class:`~dxpy.bindings.dxfile.DXFile`
Additional optional parameters not listed: all those under
:func:`dxpy.bindings.DXDataObject.new`.
Creates a new remote file object that is ready to be written to;
returns a :class:`~dxpy.bindings.dxfile.DXFile` object that is a
writable file-like object.
Example::
with new_dxfile(media_type="application/json") as fd:
fd.write("foo\\n")
Note that this is shorthand for::
dxFile = DXFile()
dxFile.new(**kwargs)
|
[
":",
"param",
"mode",
":",
"One",
"of",
"w",
"or",
"a",
"for",
"write",
"and",
"append",
"modes",
"respectively",
":",
"type",
"mode",
":",
"string",
":",
"rtype",
":",
":",
"class",
":",
"~dxpy",
".",
"bindings",
".",
"dxfile",
".",
"DXFile"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxfile_functions.py#L66-L94
|
train
|
Creates a new remote file object that is ready to be written to.
|
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbi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agO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__
ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(48) + '\157' + chr(0b110001) + chr(0b101111 + 0o10) + chr(55), 15558 - 15550), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(52) + chr(0b110101), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(50) + chr(0b110011) + chr(0b10110 + 0o37), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(50) + chr(1030 - 981) + chr(1823 - 1771), 37490 - 37482), nzTpIcepk0o8('\060' + chr(0b1101111) + '\062' + '\x37' + '\x30', ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + '\061' + '\x33' + chr(0b11101 + 0o24), 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x31' + chr(48) + chr(1406 - 1356), 6069 - 6061), nzTpIcepk0o8('\x30' + '\x6f' + chr(2482 - 2431) + '\062' + chr(1514 - 1459), 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(110 - 61) + chr(0b110000) + chr(0b111 + 0o56), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110001) + chr(381 - 329) + chr(0b110011), 0o10), nzTpIcepk0o8('\060' + '\157' + chr(0b101000 + 0o12) + '\x31' + chr(52), 8), nzTpIcepk0o8('\x30' + chr(6536 - 6425) + '\x32' + chr(345 - 292) + chr(55), ord("\x08")), nzTpIcepk0o8(chr(0b11000 + 0o30) + '\x6f' + '\x33' + '\x33' + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(80 - 32) + '\157' + '\061' + '\x30' + '\x30', ord("\x08")), nzTpIcepk0o8(chr(0b11 + 0o55) + chr(111) + chr(50) + chr(55) + chr(55), 0o10), nzTpIcepk0o8('\060' + chr(477 - 366) + '\061' + chr(0b1011 + 0o51) + chr(0b100000 + 0o27), 6206 - 6198), nzTpIcepk0o8(chr(0b100010 + 0o16) + chr(111) + chr(1877 - 1828) + chr(48) + chr(55), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\062' + chr(735 - 682) + chr(0b110010), 0b1000), nzTpIcepk0o8('\x30' + chr(0b101101 + 0o102) + chr(51) + chr(50) + chr(0b1110 + 0o51), 8), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110100) + '\060', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110001) + '\067' + chr(0b110000), 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(0b11 + 0o56) + '\x36', 0o10), nzTpIcepk0o8('\x30' + chr(0b10110 + 0o131) + '\x32' + chr(49) + chr(0b101011 + 0o14), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + '\x32' + chr(0b110 + 0o54) + chr(53), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110001) + chr(0b100110 + 0o13) + '\061', 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x33' + '\060', 45329 - 45321), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b100001 + 0o20) + '\x37' + '\060', 8), nzTpIcepk0o8(chr(0b101101 + 0o3) + '\x6f' + chr(49) + '\x34' + chr(0b101010 + 0o10), ord("\x08")), nzTpIcepk0o8(chr(0b1110 + 0o42) + '\x6f' + chr(0b110001) + chr(0b100010 + 0o23) + chr(0b110001), 54589 - 54581), nzTpIcepk0o8(chr(0b11001 + 0o27) + chr(0b1101111) + '\062' + chr(48), 0b1000), nzTpIcepk0o8(chr(1492 - 1444) + chr(2493 - 2382) + chr(0b11 + 0o57) + '\066' + chr(0b1100 + 0o44), 0o10), nzTpIcepk0o8(chr(48) + chr(0b101011 + 0o104) + '\x36' + '\x30', 0o10), nzTpIcepk0o8('\060' + chr(4847 - 4736) + '\064' + chr(0b110100 + 0o2), 24869 - 24861), nzTpIcepk0o8(chr(0b11011 + 0o25) + '\157' + '\x31' + chr(52) + '\x32', 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110011) + chr(0b110101) + '\067', 0o10), nzTpIcepk0o8(chr(0b100 + 0o54) + '\x6f' + chr(52) + chr(52), ord("\x08")), nzTpIcepk0o8(chr(176 - 128) + chr(0b1101111) + chr(820 - 771) + '\x31' + chr(0b100101 + 0o22), ord("\x08")), nzTpIcepk0o8(chr(0b101101 + 0o3) + chr(3139 - 3028) + chr(0b11111 + 0o23) + chr(0b101110 + 0o11), 0b1000), nzTpIcepk0o8('\x30' + '\157' + '\061' + chr(55) + '\062', 12351 - 12343), nzTpIcepk0o8('\060' + chr(11672 - 11561) + chr(49) + '\062' + chr(528 - 477), 28689 - 28681)][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + chr(10596 - 10485) + '\x35' + chr(218 - 170), ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'Q'), chr(100) + chr(101) + '\x63' + '\157' + '\144' + chr(8744 - 8643))(chr(0b1110101) + chr(7856 - 7740) + chr(102) + '\055' + '\x38') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def C9hd0eGqQWa0(bmJ7SvuZE3jD=None, cEqsHIQ2VBYK=roI3spqORKae(gVH10rjKDCEH, roI3spqORKae(ES5oEprVxulp(b';`\xdb\xcd\xed\x15\x16\x88\x076\xca\xe9\x9c\x12\xe04\x0e\xf0\x92'), chr(4014 - 3914) + '\x65' + chr(3270 - 3171) + chr(0b1101101 + 0o2) + '\144' + chr(4634 - 4533))(chr(0b1011010 + 0o33) + '\164' + '\x66' + chr(45) + chr(0b110001 + 0o7))), yKAHWOEEphC1=None, Pt79NvKXNlMC=nzTpIcepk0o8(chr(0b110000) + chr(0b110011 + 0o74) + '\x30', 0o10), **q5n0sHDDTy90):
HjwrxIu4uPdy = raWYLn1m7863(mode=bmJ7SvuZE3jD, write_buffer_size=cEqsHIQ2VBYK, expected_file_size=yKAHWOEEphC1, file_is_mmapd=Pt79NvKXNlMC)
roI3spqORKae(HjwrxIu4uPdy, roI3spqORKae(ES5oEprVxulp(b'\x1d\x7f\xca\xe1\xdf?v\x90/\x04\xfa\xe7'), chr(100) + chr(0b1010110 + 0o17) + '\x63' + chr(0b1010 + 0o145) + chr(6774 - 6674) + chr(0b1100101))('\165' + chr(11180 - 11064) + '\x66' + chr(0b101101) + '\070'))(**q5n0sHDDTy90)
return HjwrxIu4uPdy
|
dnanexus/dx-toolkit
|
src/python/dxpy/bindings/dxfile_functions.py
|
download_dxfile
|
def download_dxfile(dxid, filename, chunksize=dxfile.DEFAULT_BUFFER_SIZE, append=False, show_progress=False,
project=None, describe_output=None, **kwargs):
'''
:param dxid: DNAnexus file ID or DXFile (file handler) object
:type dxid: string or DXFile
:param filename: Local filename
:type filename: string
:param append: If True, appends to the local file (default is to truncate local file if it exists)
:type append: boolean
:param project: project to use as context for this download (may affect
which billing account is billed for this download). If None or
DXFile.NO_PROJECT_HINT, no project hint is supplied to the API server.
:type project: str or None
:param describe_output: (experimental) output of the file-xxxx/describe API call,
if available. It will make it possible to skip another describe API call.
It should contain the default fields of the describe API call output and
the "parts" field, not included in the output by default.
:type describe_output: dict or None
Downloads the remote file referenced by *dxid* and saves it to *filename*.
Example::
download_dxfile("file-xxxx", "localfilename.fastq")
'''
# retry the inner loop while there are retriable errors
part_retry_counter = defaultdict(lambda: 3)
success = False
while not success:
success = _download_dxfile(dxid,
filename,
part_retry_counter,
chunksize=chunksize,
append=append,
show_progress=show_progress,
project=project,
describe_output=describe_output,
**kwargs)
|
python
|
def download_dxfile(dxid, filename, chunksize=dxfile.DEFAULT_BUFFER_SIZE, append=False, show_progress=False,
project=None, describe_output=None, **kwargs):
'''
:param dxid: DNAnexus file ID or DXFile (file handler) object
:type dxid: string or DXFile
:param filename: Local filename
:type filename: string
:param append: If True, appends to the local file (default is to truncate local file if it exists)
:type append: boolean
:param project: project to use as context for this download (may affect
which billing account is billed for this download). If None or
DXFile.NO_PROJECT_HINT, no project hint is supplied to the API server.
:type project: str or None
:param describe_output: (experimental) output of the file-xxxx/describe API call,
if available. It will make it possible to skip another describe API call.
It should contain the default fields of the describe API call output and
the "parts" field, not included in the output by default.
:type describe_output: dict or None
Downloads the remote file referenced by *dxid* and saves it to *filename*.
Example::
download_dxfile("file-xxxx", "localfilename.fastq")
'''
# retry the inner loop while there are retriable errors
part_retry_counter = defaultdict(lambda: 3)
success = False
while not success:
success = _download_dxfile(dxid,
filename,
part_retry_counter,
chunksize=chunksize,
append=append,
show_progress=show_progress,
project=project,
describe_output=describe_output,
**kwargs)
|
[
"def",
"download_dxfile",
"(",
"dxid",
",",
"filename",
",",
"chunksize",
"=",
"dxfile",
".",
"DEFAULT_BUFFER_SIZE",
",",
"append",
"=",
"False",
",",
"show_progress",
"=",
"False",
",",
"project",
"=",
"None",
",",
"describe_output",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"# retry the inner loop while there are retriable errors",
"part_retry_counter",
"=",
"defaultdict",
"(",
"lambda",
":",
"3",
")",
"success",
"=",
"False",
"while",
"not",
"success",
":",
"success",
"=",
"_download_dxfile",
"(",
"dxid",
",",
"filename",
",",
"part_retry_counter",
",",
"chunksize",
"=",
"chunksize",
",",
"append",
"=",
"append",
",",
"show_progress",
"=",
"show_progress",
",",
"project",
"=",
"project",
",",
"describe_output",
"=",
"describe_output",
",",
"*",
"*",
"kwargs",
")"
] |
:param dxid: DNAnexus file ID or DXFile (file handler) object
:type dxid: string or DXFile
:param filename: Local filename
:type filename: string
:param append: If True, appends to the local file (default is to truncate local file if it exists)
:type append: boolean
:param project: project to use as context for this download (may affect
which billing account is billed for this download). If None or
DXFile.NO_PROJECT_HINT, no project hint is supplied to the API server.
:type project: str or None
:param describe_output: (experimental) output of the file-xxxx/describe API call,
if available. It will make it possible to skip another describe API call.
It should contain the default fields of the describe API call output and
the "parts" field, not included in the output by default.
:type describe_output: dict or None
Downloads the remote file referenced by *dxid* and saves it to *filename*.
Example::
download_dxfile("file-xxxx", "localfilename.fastq")
|
[
":",
"param",
"dxid",
":",
"DNAnexus",
"file",
"ID",
"or",
"DXFile",
"(",
"file",
"handler",
")",
"object",
":",
"type",
"dxid",
":",
"string",
"or",
"DXFile",
":",
"param",
"filename",
":",
"Local",
"filename",
":",
"type",
"filename",
":",
"string",
":",
"param",
"append",
":",
"If",
"True",
"appends",
"to",
"the",
"local",
"file",
"(",
"default",
"is",
"to",
"truncate",
"local",
"file",
"if",
"it",
"exists",
")",
":",
"type",
"append",
":",
"boolean",
":",
"param",
"project",
":",
"project",
"to",
"use",
"as",
"context",
"for",
"this",
"download",
"(",
"may",
"affect",
"which",
"billing",
"account",
"is",
"billed",
"for",
"this",
"download",
")",
".",
"If",
"None",
"or",
"DXFile",
".",
"NO_PROJECT_HINT",
"no",
"project",
"hint",
"is",
"supplied",
"to",
"the",
"API",
"server",
".",
":",
"type",
"project",
":",
"str",
"or",
"None",
":",
"param",
"describe_output",
":",
"(",
"experimental",
")",
"output",
"of",
"the",
"file",
"-",
"xxxx",
"/",
"describe",
"API",
"call",
"if",
"available",
".",
"It",
"will",
"make",
"it",
"possible",
"to",
"skip",
"another",
"describe",
"API",
"call",
".",
"It",
"should",
"contain",
"the",
"default",
"fields",
"of",
"the",
"describe",
"API",
"call",
"output",
"and",
"the",
"parts",
"field",
"not",
"included",
"in",
"the",
"output",
"by",
"default",
".",
":",
"type",
"describe_output",
":",
"dict",
"or",
"None"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxfile_functions.py#L97-L135
|
train
|
Download a single file from the specified file ID or file handler.
|
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,E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Kae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__
ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\060' + chr(0b101 + 0o152) + '\x32' + '\x32' + chr(0b11011 + 0o26), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110101), 65059 - 65051), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110001) + chr(0b10001 + 0o41) + '\x35', 64092 - 64084), nzTpIcepk0o8('\060' + '\x6f' + chr(0b1000 + 0o52) + chr(0b110111) + chr(54), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(50) + chr(1196 - 1142) + '\062', ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + '\x32' + chr(463 - 410), 0b1000), nzTpIcepk0o8(chr(0b10011 + 0o35) + chr(7015 - 6904) + chr(1153 - 1103) + chr(55) + chr(0b110101), 61347 - 61339), nzTpIcepk0o8('\x30' + chr(0b10010 + 0o135) + '\x33' + '\x33' + '\062', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101100 + 0o3) + chr(49) + chr(55) + '\x34', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(51) + chr(0b10100 + 0o43) + chr(52), 0b1000), nzTpIcepk0o8('\060' + chr(2675 - 2564) + '\061' + chr(0b110000), 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(702 - 651) + '\060' + '\067', 0o10), nzTpIcepk0o8('\060' + '\x6f' + '\062' + chr(130 - 82) + '\x34', 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(0b11001 + 0o33) + '\x32', 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + '\063' + '\x34' + chr(0b1101 + 0o47), 8589 - 8581), nzTpIcepk0o8('\060' + chr(0b101110 + 0o101) + chr(1120 - 1070) + chr(2312 - 2259) + chr(0b110010), 0o10), nzTpIcepk0o8(chr(844 - 796) + '\157' + '\061' + '\x32', 0o10), nzTpIcepk0o8('\060' + chr(6482 - 6371) + '\x31' + chr(0b110111) + chr(0b110010), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(1694 - 1644) + '\067' + '\063', 0b1000), nzTpIcepk0o8('\060' + chr(0b11 + 0o154) + chr(50) + chr(1173 - 1125) + chr(0b110101 + 0o1), 0o10), nzTpIcepk0o8('\060' + '\157' + chr(0b101010 + 0o7) + chr(53), 5790 - 5782), nzTpIcepk0o8('\x30' + chr(111) + chr(0b11 + 0o56) + chr(0b110111) + chr(0b110111), 0o10), nzTpIcepk0o8(chr(0b11001 + 0o27) + chr(8754 - 8643) + chr(0b100110 + 0o14) + chr(2438 - 2386) + chr(1475 - 1420), ord("\x08")), nzTpIcepk0o8('\x30' + chr(11857 - 11746) + chr(49) + chr(0b110110) + chr(0b110010), 40735 - 40727), nzTpIcepk0o8(chr(0b110000) + chr(1882 - 1771) + '\x33' + chr(2033 - 1985) + chr(0b1011 + 0o50), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + '\061' + chr(0b11101 + 0o27) + chr(0b110100 + 0o2), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b111011 + 0o64) + '\x31' + chr(54) + chr(0b100100 + 0o16), 8), nzTpIcepk0o8(chr(48) + '\157' + chr(49) + chr(50) + chr(972 - 924), 0b1000), nzTpIcepk0o8('\x30' + chr(5661 - 5550) + chr(0b11 + 0o63) + chr(0b110110 + 0o1), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + '\x33' + chr(229 - 176) + '\062', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(49) + '\x36' + '\064', 0o10), nzTpIcepk0o8(chr(2153 - 2105) + chr(4311 - 4200) + '\x33' + '\x36' + chr(0b110111), ord("\x08")), nzTpIcepk0o8(chr(0b10111 + 0o31) + chr(0b1101111) + chr(0b11110 + 0o25) + chr(53) + chr(254 - 206), 13182 - 13174), nzTpIcepk0o8(chr(0b110000) + chr(0b110100 + 0o73) + chr(0b110011) + chr(53) + chr(0b100110 + 0o17), ord("\x08")), nzTpIcepk0o8(chr(0b11100 + 0o24) + chr(0b110000 + 0o77) + '\x34' + chr(0b110110), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(54) + '\066', 0b1000), nzTpIcepk0o8(chr(0b11 + 0o55) + chr(111) + '\x33' + '\x36', ord("\x08")), nzTpIcepk0o8(chr(0b100011 + 0o15) + chr(6827 - 6716) + '\x33' + chr(0b110101) + chr(0b110110), 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(50) + chr(0b10101 + 0o35) + '\066', 0b1000), nzTpIcepk0o8(chr(1324 - 1276) + chr(0b1101111) + chr(0b110 + 0o54) + '\064' + chr(0b110011 + 0o1), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + chr(111) + chr(0b1000 + 0o55) + chr(2219 - 2171), 47197 - 47189)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xbf'), '\x64' + chr(0b111 + 0o136) + chr(99) + chr(7057 - 6946) + chr(8601 - 8501) + chr(0b1100101))(chr(0b1010101 + 0o40) + chr(0b1110100) + chr(0b1100110) + '\x2d' + chr(0b100 + 0o64)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def yu8vaOpl_tnw(LaRgxWJnPLsD, FxZHtXEolYsL, QqkiMOFRml3h=roI3spqORKae(gVH10rjKDCEH, roI3spqORKae(ES5oEprVxulp(b'\xd5@\x13\xff\xe7Y\xe9\x85>\xa9N\x81\xc1p\xbb\xf9C \xfe'), chr(5829 - 5729) + '\145' + chr(5607 - 5508) + chr(0b1101111) + chr(0b1100100) + chr(0b1011 + 0o132))('\x75' + chr(0b100001 + 0o123) + chr(0b1100110) + chr(0b10110 + 0o27) + chr(474 - 418))), HTS4xgGojoU5=nzTpIcepk0o8('\x30' + chr(111) + chr(1992 - 1944), ord("\x08")), Bd7K5yyYri9R=nzTpIcepk0o8('\x30' + '\157' + '\060', 8), mcjejRq_Q0_k=None, Xmcm0weMglP7=None, **q5n0sHDDTy90):
EE7Tfca7oYF2 = mM1QxhFYKsbc(lambda : nzTpIcepk0o8(chr(0b101100 + 0o4) + chr(0b1100011 + 0o14) + chr(51), 0o10))
Eve7WKj3GZpi = nzTpIcepk0o8('\060' + chr(6490 - 6379) + chr(0b1000 + 0o50), 8)
while not Eve7WKj3GZpi:
Eve7WKj3GZpi = ifY4hRLFJqyv(LaRgxWJnPLsD, FxZHtXEolYsL, EE7Tfca7oYF2, chunksize=QqkiMOFRml3h, append=HTS4xgGojoU5, show_progress=Bd7K5yyYri9R, project=mcjejRq_Q0_k, describe_output=Xmcm0weMglP7, **q5n0sHDDTy90)
|
dnanexus/dx-toolkit
|
src/python/dxpy/bindings/dxfile_functions.py
|
_download_dxfile
|
def _download_dxfile(dxid, filename, part_retry_counter,
chunksize=dxfile.DEFAULT_BUFFER_SIZE, append=False, show_progress=False,
project=None, describe_output=None, **kwargs):
'''
Core of download logic. Download file-id *dxid* and store it in
a local file *filename*.
The return value is as follows:
- True means the download was successfully completed
- False means the download was stopped because of a retryable error
- Exception raised for other errors
'''
def print_progress(bytes_downloaded, file_size, action="Downloaded"):
num_ticks = 60
effective_file_size = file_size or 1
if bytes_downloaded > effective_file_size:
effective_file_size = bytes_downloaded
ticks = int(round((bytes_downloaded / float(effective_file_size)) * num_ticks))
percent = int(math.floor((bytes_downloaded / float(effective_file_size)) * 100))
fmt = "[{done}{pending}] {action} {done_bytes:,}{remaining} bytes ({percent}%) {name}"
# Erase the line and return the cursor to the start of the line.
# The following VT100 escape sequence will erase the current line.
sys.stderr.write("\33[2K")
sys.stderr.write(fmt.format(action=action,
done=("=" * (ticks - 1) + ">") if ticks > 0 else "",
pending=" " * (num_ticks - ticks),
done_bytes=bytes_downloaded,
remaining=" of {size:,}".format(size=file_size) if file_size else "",
percent=percent,
name=filename))
sys.stderr.flush()
sys.stderr.write("\r")
sys.stderr.flush()
_bytes = 0
if isinstance(dxid, DXFile):
dxfile = dxid
else:
dxfile = DXFile(dxid, mode="r", project=(project if project != DXFile.NO_PROJECT_HINT else None))
if describe_output and describe_output.get("parts") is not None:
dxfile_desc = describe_output
else:
dxfile_desc = dxfile.describe(fields={"parts"}, default_fields=True, **kwargs)
if 'drive' in dxfile_desc:
# A symbolic link. Get the MD5 checksum, if we have it
if 'md5' in dxfile_desc:
md5 = dxfile_desc['md5']
else:
md5 = None
_download_symbolic_link(dxid, md5, project, filename)
return True
parts = dxfile_desc["parts"]
parts_to_get = sorted(parts, key=int)
file_size = dxfile_desc.get("size")
offset = 0
for part_id in parts_to_get:
parts[part_id]["start"] = offset
offset += parts[part_id]["size"]
if append:
fh = open(filename, "ab")
else:
try:
fh = open(filename, "rb+")
except IOError:
fh = open(filename, "wb")
if show_progress:
print_progress(0, None)
def get_chunk(part_id_to_get, start, end):
url, headers = dxfile.get_download_url(project=project, **kwargs)
# If we're fetching the whole object in one shot, avoid setting the Range header to take advantage of gzip
# transfer compression
sub_range = False
if len(parts) > 1 or (start > 0) or (end - start + 1 < parts[part_id_to_get]["size"]):
sub_range = True
data = dxpy._dxhttp_read_range(url, headers, start, end, FILE_REQUEST_TIMEOUT, sub_range)
return part_id_to_get, data
def chunk_requests():
for part_id_to_chunk in parts_to_get:
part_info = parts[part_id_to_chunk]
for chunk_start in range(part_info["start"], part_info["start"] + part_info["size"], chunksize):
chunk_end = min(chunk_start + chunksize, part_info["start"] + part_info["size"]) - 1
yield get_chunk, [part_id_to_chunk, chunk_start, chunk_end], {}
def verify_part(_part_id, got_bytes, hasher):
if got_bytes is not None and got_bytes != parts[_part_id]["size"]:
msg = "Unexpected part data size in {} part {} (expected {}, got {})"
msg = msg.format(dxfile.get_id(), _part_id, parts[_part_id]["size"], got_bytes)
raise DXPartLengthMismatchError(msg)
if hasher is not None and "md5" not in parts[_part_id]:
warnings.warn("Download of file {} is not being checked for integrity".format(dxfile.get_id()))
elif hasher is not None and hasher.hexdigest() != parts[_part_id]["md5"]:
msg = "Checksum mismatch in {} part {} (expected {}, got {})"
msg = msg.format(dxfile.get_id(), _part_id, parts[_part_id]["md5"], hasher.hexdigest())
raise DXChecksumMismatchError(msg)
with fh:
last_verified_pos = 0
if fh.mode == "rb+":
# We already downloaded the beginning of the file, verify that the
# chunk checksums match the metadata.
last_verified_part, max_verify_chunk_size = None, 1024*1024
try:
for part_id in parts_to_get:
part_info = parts[part_id]
if "md5" not in part_info:
raise DXFileError("File {} does not contain part md5 checksums".format(dxfile.get_id()))
bytes_to_read = part_info["size"]
hasher = hashlib.md5()
while bytes_to_read > 0:
chunk = fh.read(min(max_verify_chunk_size, bytes_to_read))
if len(chunk) < min(max_verify_chunk_size, bytes_to_read):
raise DXFileError("Local data for part {} is truncated".format(part_id))
hasher.update(chunk)
bytes_to_read -= max_verify_chunk_size
if hasher.hexdigest() != part_info["md5"]:
raise DXFileError("Checksum mismatch when verifying downloaded part {}".format(part_id))
else:
last_verified_part = part_id
last_verified_pos = fh.tell()
if show_progress:
_bytes += part_info["size"]
print_progress(_bytes, file_size, action="Verified")
except (IOError, DXFileError) as e:
logger.debug(e)
fh.seek(last_verified_pos)
fh.truncate()
if last_verified_part is not None:
del parts_to_get[:parts_to_get.index(last_verified_part)+1]
if show_progress and len(parts_to_get) < len(parts):
print_progress(last_verified_pos, file_size, action="Resuming at")
logger.debug("Verified %s/%d downloaded parts", last_verified_part, len(parts_to_get))
try:
# Main loop. In parallel: download chunks, verify them, and write them to disk.
get_first_chunk_sequentially = (file_size > 128 * 1024 and last_verified_pos == 0 and dxpy.JOB_ID)
cur_part, got_bytes, hasher = None, None, None
for chunk_part, chunk_data in response_iterator(chunk_requests(),
dxfile._http_threadpool,
do_first_task_sequentially=get_first_chunk_sequentially):
if chunk_part != cur_part:
verify_part(cur_part, got_bytes, hasher)
cur_part, got_bytes, hasher = chunk_part, 0, hashlib.md5()
got_bytes += len(chunk_data)
hasher.update(chunk_data)
fh.write(chunk_data)
if show_progress:
_bytes += len(chunk_data)
print_progress(_bytes, file_size)
verify_part(cur_part, got_bytes, hasher)
if show_progress:
print_progress(_bytes, file_size, action="Completed")
except DXFileError:
print(traceback.format_exc(), file=sys.stderr)
part_retry_counter[cur_part] -= 1
if part_retry_counter[cur_part] > 0:
print("Retrying {} ({} tries remain for part {})".format(dxfile.get_id(), part_retry_counter[cur_part], cur_part),
file=sys.stderr)
return False
raise
if show_progress:
sys.stderr.write("\n")
return True
|
python
|
def _download_dxfile(dxid, filename, part_retry_counter,
chunksize=dxfile.DEFAULT_BUFFER_SIZE, append=False, show_progress=False,
project=None, describe_output=None, **kwargs):
'''
Core of download logic. Download file-id *dxid* and store it in
a local file *filename*.
The return value is as follows:
- True means the download was successfully completed
- False means the download was stopped because of a retryable error
- Exception raised for other errors
'''
def print_progress(bytes_downloaded, file_size, action="Downloaded"):
num_ticks = 60
effective_file_size = file_size or 1
if bytes_downloaded > effective_file_size:
effective_file_size = bytes_downloaded
ticks = int(round((bytes_downloaded / float(effective_file_size)) * num_ticks))
percent = int(math.floor((bytes_downloaded / float(effective_file_size)) * 100))
fmt = "[{done}{pending}] {action} {done_bytes:,}{remaining} bytes ({percent}%) {name}"
# Erase the line and return the cursor to the start of the line.
# The following VT100 escape sequence will erase the current line.
sys.stderr.write("\33[2K")
sys.stderr.write(fmt.format(action=action,
done=("=" * (ticks - 1) + ">") if ticks > 0 else "",
pending=" " * (num_ticks - ticks),
done_bytes=bytes_downloaded,
remaining=" of {size:,}".format(size=file_size) if file_size else "",
percent=percent,
name=filename))
sys.stderr.flush()
sys.stderr.write("\r")
sys.stderr.flush()
_bytes = 0
if isinstance(dxid, DXFile):
dxfile = dxid
else:
dxfile = DXFile(dxid, mode="r", project=(project if project != DXFile.NO_PROJECT_HINT else None))
if describe_output and describe_output.get("parts") is not None:
dxfile_desc = describe_output
else:
dxfile_desc = dxfile.describe(fields={"parts"}, default_fields=True, **kwargs)
if 'drive' in dxfile_desc:
# A symbolic link. Get the MD5 checksum, if we have it
if 'md5' in dxfile_desc:
md5 = dxfile_desc['md5']
else:
md5 = None
_download_symbolic_link(dxid, md5, project, filename)
return True
parts = dxfile_desc["parts"]
parts_to_get = sorted(parts, key=int)
file_size = dxfile_desc.get("size")
offset = 0
for part_id in parts_to_get:
parts[part_id]["start"] = offset
offset += parts[part_id]["size"]
if append:
fh = open(filename, "ab")
else:
try:
fh = open(filename, "rb+")
except IOError:
fh = open(filename, "wb")
if show_progress:
print_progress(0, None)
def get_chunk(part_id_to_get, start, end):
url, headers = dxfile.get_download_url(project=project, **kwargs)
# If we're fetching the whole object in one shot, avoid setting the Range header to take advantage of gzip
# transfer compression
sub_range = False
if len(parts) > 1 or (start > 0) or (end - start + 1 < parts[part_id_to_get]["size"]):
sub_range = True
data = dxpy._dxhttp_read_range(url, headers, start, end, FILE_REQUEST_TIMEOUT, sub_range)
return part_id_to_get, data
def chunk_requests():
for part_id_to_chunk in parts_to_get:
part_info = parts[part_id_to_chunk]
for chunk_start in range(part_info["start"], part_info["start"] + part_info["size"], chunksize):
chunk_end = min(chunk_start + chunksize, part_info["start"] + part_info["size"]) - 1
yield get_chunk, [part_id_to_chunk, chunk_start, chunk_end], {}
def verify_part(_part_id, got_bytes, hasher):
if got_bytes is not None and got_bytes != parts[_part_id]["size"]:
msg = "Unexpected part data size in {} part {} (expected {}, got {})"
msg = msg.format(dxfile.get_id(), _part_id, parts[_part_id]["size"], got_bytes)
raise DXPartLengthMismatchError(msg)
if hasher is not None and "md5" not in parts[_part_id]:
warnings.warn("Download of file {} is not being checked for integrity".format(dxfile.get_id()))
elif hasher is not None and hasher.hexdigest() != parts[_part_id]["md5"]:
msg = "Checksum mismatch in {} part {} (expected {}, got {})"
msg = msg.format(dxfile.get_id(), _part_id, parts[_part_id]["md5"], hasher.hexdigest())
raise DXChecksumMismatchError(msg)
with fh:
last_verified_pos = 0
if fh.mode == "rb+":
# We already downloaded the beginning of the file, verify that the
# chunk checksums match the metadata.
last_verified_part, max_verify_chunk_size = None, 1024*1024
try:
for part_id in parts_to_get:
part_info = parts[part_id]
if "md5" not in part_info:
raise DXFileError("File {} does not contain part md5 checksums".format(dxfile.get_id()))
bytes_to_read = part_info["size"]
hasher = hashlib.md5()
while bytes_to_read > 0:
chunk = fh.read(min(max_verify_chunk_size, bytes_to_read))
if len(chunk) < min(max_verify_chunk_size, bytes_to_read):
raise DXFileError("Local data for part {} is truncated".format(part_id))
hasher.update(chunk)
bytes_to_read -= max_verify_chunk_size
if hasher.hexdigest() != part_info["md5"]:
raise DXFileError("Checksum mismatch when verifying downloaded part {}".format(part_id))
else:
last_verified_part = part_id
last_verified_pos = fh.tell()
if show_progress:
_bytes += part_info["size"]
print_progress(_bytes, file_size, action="Verified")
except (IOError, DXFileError) as e:
logger.debug(e)
fh.seek(last_verified_pos)
fh.truncate()
if last_verified_part is not None:
del parts_to_get[:parts_to_get.index(last_verified_part)+1]
if show_progress and len(parts_to_get) < len(parts):
print_progress(last_verified_pos, file_size, action="Resuming at")
logger.debug("Verified %s/%d downloaded parts", last_verified_part, len(parts_to_get))
try:
# Main loop. In parallel: download chunks, verify them, and write them to disk.
get_first_chunk_sequentially = (file_size > 128 * 1024 and last_verified_pos == 0 and dxpy.JOB_ID)
cur_part, got_bytes, hasher = None, None, None
for chunk_part, chunk_data in response_iterator(chunk_requests(),
dxfile._http_threadpool,
do_first_task_sequentially=get_first_chunk_sequentially):
if chunk_part != cur_part:
verify_part(cur_part, got_bytes, hasher)
cur_part, got_bytes, hasher = chunk_part, 0, hashlib.md5()
got_bytes += len(chunk_data)
hasher.update(chunk_data)
fh.write(chunk_data)
if show_progress:
_bytes += len(chunk_data)
print_progress(_bytes, file_size)
verify_part(cur_part, got_bytes, hasher)
if show_progress:
print_progress(_bytes, file_size, action="Completed")
except DXFileError:
print(traceback.format_exc(), file=sys.stderr)
part_retry_counter[cur_part] -= 1
if part_retry_counter[cur_part] > 0:
print("Retrying {} ({} tries remain for part {})".format(dxfile.get_id(), part_retry_counter[cur_part], cur_part),
file=sys.stderr)
return False
raise
if show_progress:
sys.stderr.write("\n")
return True
|
[
"def",
"_download_dxfile",
"(",
"dxid",
",",
"filename",
",",
"part_retry_counter",
",",
"chunksize",
"=",
"dxfile",
".",
"DEFAULT_BUFFER_SIZE",
",",
"append",
"=",
"False",
",",
"show_progress",
"=",
"False",
",",
"project",
"=",
"None",
",",
"describe_output",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"def",
"print_progress",
"(",
"bytes_downloaded",
",",
"file_size",
",",
"action",
"=",
"\"Downloaded\"",
")",
":",
"num_ticks",
"=",
"60",
"effective_file_size",
"=",
"file_size",
"or",
"1",
"if",
"bytes_downloaded",
">",
"effective_file_size",
":",
"effective_file_size",
"=",
"bytes_downloaded",
"ticks",
"=",
"int",
"(",
"round",
"(",
"(",
"bytes_downloaded",
"/",
"float",
"(",
"effective_file_size",
")",
")",
"*",
"num_ticks",
")",
")",
"percent",
"=",
"int",
"(",
"math",
".",
"floor",
"(",
"(",
"bytes_downloaded",
"/",
"float",
"(",
"effective_file_size",
")",
")",
"*",
"100",
")",
")",
"fmt",
"=",
"\"[{done}{pending}] {action} {done_bytes:,}{remaining} bytes ({percent}%) {name}\"",
"# Erase the line and return the cursor to the start of the line.",
"# The following VT100 escape sequence will erase the current line.",
"sys",
".",
"stderr",
".",
"write",
"(",
"\"\\33[2K\"",
")",
"sys",
".",
"stderr",
".",
"write",
"(",
"fmt",
".",
"format",
"(",
"action",
"=",
"action",
",",
"done",
"=",
"(",
"\"=\"",
"*",
"(",
"ticks",
"-",
"1",
")",
"+",
"\">\"",
")",
"if",
"ticks",
">",
"0",
"else",
"\"\"",
",",
"pending",
"=",
"\" \"",
"*",
"(",
"num_ticks",
"-",
"ticks",
")",
",",
"done_bytes",
"=",
"bytes_downloaded",
",",
"remaining",
"=",
"\" of {size:,}\"",
".",
"format",
"(",
"size",
"=",
"file_size",
")",
"if",
"file_size",
"else",
"\"\"",
",",
"percent",
"=",
"percent",
",",
"name",
"=",
"filename",
")",
")",
"sys",
".",
"stderr",
".",
"flush",
"(",
")",
"sys",
".",
"stderr",
".",
"write",
"(",
"\"\\r\"",
")",
"sys",
".",
"stderr",
".",
"flush",
"(",
")",
"_bytes",
"=",
"0",
"if",
"isinstance",
"(",
"dxid",
",",
"DXFile",
")",
":",
"dxfile",
"=",
"dxid",
"else",
":",
"dxfile",
"=",
"DXFile",
"(",
"dxid",
",",
"mode",
"=",
"\"r\"",
",",
"project",
"=",
"(",
"project",
"if",
"project",
"!=",
"DXFile",
".",
"NO_PROJECT_HINT",
"else",
"None",
")",
")",
"if",
"describe_output",
"and",
"describe_output",
".",
"get",
"(",
"\"parts\"",
")",
"is",
"not",
"None",
":",
"dxfile_desc",
"=",
"describe_output",
"else",
":",
"dxfile_desc",
"=",
"dxfile",
".",
"describe",
"(",
"fields",
"=",
"{",
"\"parts\"",
"}",
",",
"default_fields",
"=",
"True",
",",
"*",
"*",
"kwargs",
")",
"if",
"'drive'",
"in",
"dxfile_desc",
":",
"# A symbolic link. Get the MD5 checksum, if we have it",
"if",
"'md5'",
"in",
"dxfile_desc",
":",
"md5",
"=",
"dxfile_desc",
"[",
"'md5'",
"]",
"else",
":",
"md5",
"=",
"None",
"_download_symbolic_link",
"(",
"dxid",
",",
"md5",
",",
"project",
",",
"filename",
")",
"return",
"True",
"parts",
"=",
"dxfile_desc",
"[",
"\"parts\"",
"]",
"parts_to_get",
"=",
"sorted",
"(",
"parts",
",",
"key",
"=",
"int",
")",
"file_size",
"=",
"dxfile_desc",
".",
"get",
"(",
"\"size\"",
")",
"offset",
"=",
"0",
"for",
"part_id",
"in",
"parts_to_get",
":",
"parts",
"[",
"part_id",
"]",
"[",
"\"start\"",
"]",
"=",
"offset",
"offset",
"+=",
"parts",
"[",
"part_id",
"]",
"[",
"\"size\"",
"]",
"if",
"append",
":",
"fh",
"=",
"open",
"(",
"filename",
",",
"\"ab\"",
")",
"else",
":",
"try",
":",
"fh",
"=",
"open",
"(",
"filename",
",",
"\"rb+\"",
")",
"except",
"IOError",
":",
"fh",
"=",
"open",
"(",
"filename",
",",
"\"wb\"",
")",
"if",
"show_progress",
":",
"print_progress",
"(",
"0",
",",
"None",
")",
"def",
"get_chunk",
"(",
"part_id_to_get",
",",
"start",
",",
"end",
")",
":",
"url",
",",
"headers",
"=",
"dxfile",
".",
"get_download_url",
"(",
"project",
"=",
"project",
",",
"*",
"*",
"kwargs",
")",
"# If we're fetching the whole object in one shot, avoid setting the Range header to take advantage of gzip",
"# transfer compression",
"sub_range",
"=",
"False",
"if",
"len",
"(",
"parts",
")",
">",
"1",
"or",
"(",
"start",
">",
"0",
")",
"or",
"(",
"end",
"-",
"start",
"+",
"1",
"<",
"parts",
"[",
"part_id_to_get",
"]",
"[",
"\"size\"",
"]",
")",
":",
"sub_range",
"=",
"True",
"data",
"=",
"dxpy",
".",
"_dxhttp_read_range",
"(",
"url",
",",
"headers",
",",
"start",
",",
"end",
",",
"FILE_REQUEST_TIMEOUT",
",",
"sub_range",
")",
"return",
"part_id_to_get",
",",
"data",
"def",
"chunk_requests",
"(",
")",
":",
"for",
"part_id_to_chunk",
"in",
"parts_to_get",
":",
"part_info",
"=",
"parts",
"[",
"part_id_to_chunk",
"]",
"for",
"chunk_start",
"in",
"range",
"(",
"part_info",
"[",
"\"start\"",
"]",
",",
"part_info",
"[",
"\"start\"",
"]",
"+",
"part_info",
"[",
"\"size\"",
"]",
",",
"chunksize",
")",
":",
"chunk_end",
"=",
"min",
"(",
"chunk_start",
"+",
"chunksize",
",",
"part_info",
"[",
"\"start\"",
"]",
"+",
"part_info",
"[",
"\"size\"",
"]",
")",
"-",
"1",
"yield",
"get_chunk",
",",
"[",
"part_id_to_chunk",
",",
"chunk_start",
",",
"chunk_end",
"]",
",",
"{",
"}",
"def",
"verify_part",
"(",
"_part_id",
",",
"got_bytes",
",",
"hasher",
")",
":",
"if",
"got_bytes",
"is",
"not",
"None",
"and",
"got_bytes",
"!=",
"parts",
"[",
"_part_id",
"]",
"[",
"\"size\"",
"]",
":",
"msg",
"=",
"\"Unexpected part data size in {} part {} (expected {}, got {})\"",
"msg",
"=",
"msg",
".",
"format",
"(",
"dxfile",
".",
"get_id",
"(",
")",
",",
"_part_id",
",",
"parts",
"[",
"_part_id",
"]",
"[",
"\"size\"",
"]",
",",
"got_bytes",
")",
"raise",
"DXPartLengthMismatchError",
"(",
"msg",
")",
"if",
"hasher",
"is",
"not",
"None",
"and",
"\"md5\"",
"not",
"in",
"parts",
"[",
"_part_id",
"]",
":",
"warnings",
".",
"warn",
"(",
"\"Download of file {} is not being checked for integrity\"",
".",
"format",
"(",
"dxfile",
".",
"get_id",
"(",
")",
")",
")",
"elif",
"hasher",
"is",
"not",
"None",
"and",
"hasher",
".",
"hexdigest",
"(",
")",
"!=",
"parts",
"[",
"_part_id",
"]",
"[",
"\"md5\"",
"]",
":",
"msg",
"=",
"\"Checksum mismatch in {} part {} (expected {}, got {})\"",
"msg",
"=",
"msg",
".",
"format",
"(",
"dxfile",
".",
"get_id",
"(",
")",
",",
"_part_id",
",",
"parts",
"[",
"_part_id",
"]",
"[",
"\"md5\"",
"]",
",",
"hasher",
".",
"hexdigest",
"(",
")",
")",
"raise",
"DXChecksumMismatchError",
"(",
"msg",
")",
"with",
"fh",
":",
"last_verified_pos",
"=",
"0",
"if",
"fh",
".",
"mode",
"==",
"\"rb+\"",
":",
"# We already downloaded the beginning of the file, verify that the",
"# chunk checksums match the metadata.",
"last_verified_part",
",",
"max_verify_chunk_size",
"=",
"None",
",",
"1024",
"*",
"1024",
"try",
":",
"for",
"part_id",
"in",
"parts_to_get",
":",
"part_info",
"=",
"parts",
"[",
"part_id",
"]",
"if",
"\"md5\"",
"not",
"in",
"part_info",
":",
"raise",
"DXFileError",
"(",
"\"File {} does not contain part md5 checksums\"",
".",
"format",
"(",
"dxfile",
".",
"get_id",
"(",
")",
")",
")",
"bytes_to_read",
"=",
"part_info",
"[",
"\"size\"",
"]",
"hasher",
"=",
"hashlib",
".",
"md5",
"(",
")",
"while",
"bytes_to_read",
">",
"0",
":",
"chunk",
"=",
"fh",
".",
"read",
"(",
"min",
"(",
"max_verify_chunk_size",
",",
"bytes_to_read",
")",
")",
"if",
"len",
"(",
"chunk",
")",
"<",
"min",
"(",
"max_verify_chunk_size",
",",
"bytes_to_read",
")",
":",
"raise",
"DXFileError",
"(",
"\"Local data for part {} is truncated\"",
".",
"format",
"(",
"part_id",
")",
")",
"hasher",
".",
"update",
"(",
"chunk",
")",
"bytes_to_read",
"-=",
"max_verify_chunk_size",
"if",
"hasher",
".",
"hexdigest",
"(",
")",
"!=",
"part_info",
"[",
"\"md5\"",
"]",
":",
"raise",
"DXFileError",
"(",
"\"Checksum mismatch when verifying downloaded part {}\"",
".",
"format",
"(",
"part_id",
")",
")",
"else",
":",
"last_verified_part",
"=",
"part_id",
"last_verified_pos",
"=",
"fh",
".",
"tell",
"(",
")",
"if",
"show_progress",
":",
"_bytes",
"+=",
"part_info",
"[",
"\"size\"",
"]",
"print_progress",
"(",
"_bytes",
",",
"file_size",
",",
"action",
"=",
"\"Verified\"",
")",
"except",
"(",
"IOError",
",",
"DXFileError",
")",
"as",
"e",
":",
"logger",
".",
"debug",
"(",
"e",
")",
"fh",
".",
"seek",
"(",
"last_verified_pos",
")",
"fh",
".",
"truncate",
"(",
")",
"if",
"last_verified_part",
"is",
"not",
"None",
":",
"del",
"parts_to_get",
"[",
":",
"parts_to_get",
".",
"index",
"(",
"last_verified_part",
")",
"+",
"1",
"]",
"if",
"show_progress",
"and",
"len",
"(",
"parts_to_get",
")",
"<",
"len",
"(",
"parts",
")",
":",
"print_progress",
"(",
"last_verified_pos",
",",
"file_size",
",",
"action",
"=",
"\"Resuming at\"",
")",
"logger",
".",
"debug",
"(",
"\"Verified %s/%d downloaded parts\"",
",",
"last_verified_part",
",",
"len",
"(",
"parts_to_get",
")",
")",
"try",
":",
"# Main loop. In parallel: download chunks, verify them, and write them to disk.",
"get_first_chunk_sequentially",
"=",
"(",
"file_size",
">",
"128",
"*",
"1024",
"and",
"last_verified_pos",
"==",
"0",
"and",
"dxpy",
".",
"JOB_ID",
")",
"cur_part",
",",
"got_bytes",
",",
"hasher",
"=",
"None",
",",
"None",
",",
"None",
"for",
"chunk_part",
",",
"chunk_data",
"in",
"response_iterator",
"(",
"chunk_requests",
"(",
")",
",",
"dxfile",
".",
"_http_threadpool",
",",
"do_first_task_sequentially",
"=",
"get_first_chunk_sequentially",
")",
":",
"if",
"chunk_part",
"!=",
"cur_part",
":",
"verify_part",
"(",
"cur_part",
",",
"got_bytes",
",",
"hasher",
")",
"cur_part",
",",
"got_bytes",
",",
"hasher",
"=",
"chunk_part",
",",
"0",
",",
"hashlib",
".",
"md5",
"(",
")",
"got_bytes",
"+=",
"len",
"(",
"chunk_data",
")",
"hasher",
".",
"update",
"(",
"chunk_data",
")",
"fh",
".",
"write",
"(",
"chunk_data",
")",
"if",
"show_progress",
":",
"_bytes",
"+=",
"len",
"(",
"chunk_data",
")",
"print_progress",
"(",
"_bytes",
",",
"file_size",
")",
"verify_part",
"(",
"cur_part",
",",
"got_bytes",
",",
"hasher",
")",
"if",
"show_progress",
":",
"print_progress",
"(",
"_bytes",
",",
"file_size",
",",
"action",
"=",
"\"Completed\"",
")",
"except",
"DXFileError",
":",
"print",
"(",
"traceback",
".",
"format_exc",
"(",
")",
",",
"file",
"=",
"sys",
".",
"stderr",
")",
"part_retry_counter",
"[",
"cur_part",
"]",
"-=",
"1",
"if",
"part_retry_counter",
"[",
"cur_part",
"]",
">",
"0",
":",
"print",
"(",
"\"Retrying {} ({} tries remain for part {})\"",
".",
"format",
"(",
"dxfile",
".",
"get_id",
"(",
")",
",",
"part_retry_counter",
"[",
"cur_part",
"]",
",",
"cur_part",
")",
",",
"file",
"=",
"sys",
".",
"stderr",
")",
"return",
"False",
"raise",
"if",
"show_progress",
":",
"sys",
".",
"stderr",
".",
"write",
"(",
"\"\\n\"",
")",
"return",
"True"
] |
Core of download logic. Download file-id *dxid* and store it in
a local file *filename*.
The return value is as follows:
- True means the download was successfully completed
- False means the download was stopped because of a retryable error
- Exception raised for other errors
|
[
"Core",
"of",
"download",
"logic",
".",
"Download",
"file",
"-",
"id",
"*",
"dxid",
"*",
"and",
"store",
"it",
"in",
"a",
"local",
"file",
"*",
"filename",
"*",
"."
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxfile_functions.py#L225-L401
|
train
|
Download a file from the local file system and store it in the local file system.
|
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,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(0b1011 + 0o45) + '\157' + '\x33' + chr(0b110000), 0b1000), nzTpIcepk0o8(chr(0b11101 + 0o23) + chr(0b1101101 + 0o2) + chr(0b1001 + 0o52) + chr(0b110011) + chr(0b110110), 0b1000), nzTpIcepk0o8(chr(1028 - 980) + '\157' + '\063' + '\x36' + chr(0b110011), 38070 - 38062), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(49) + '\x36' + chr(52), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1001110 + 0o41) + chr(0b110011) + chr(1589 - 1534), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\064' + chr(0b10100 + 0o40), ord("\x08")), nzTpIcepk0o8(chr(1829 - 1781) + '\x6f' + '\061' + '\063' + chr(1313 - 1263), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(4385 - 4274) + chr(0b11000 + 0o35) + chr(2573 - 2522), 60330 - 60322), nzTpIcepk0o8(chr(1961 - 1913) + chr(0b1000100 + 0o53) + '\065' + '\067', ord("\x08")), nzTpIcepk0o8('\060' + chr(1180 - 1069) + '\061' + '\060' + chr(0b110110), ord("\x08")), nzTpIcepk0o8('\060' + chr(11661 - 11550) + '\x33' + '\063' + '\x34', ord("\x08")), nzTpIcepk0o8(chr(0b0 + 0o60) + '\157' + chr(0b110001) + chr(49) + chr(51), ord("\x08")), nzTpIcepk0o8(chr(0b100111 + 0o11) + '\157' + '\062' + '\x30' + '\x37', 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(51) + '\x37' + chr(52), 31389 - 31381), nzTpIcepk0o8(chr(1970 - 1922) + chr(0b111001 + 0o66) + chr(366 - 317) + chr(55) + '\067', 29362 - 29354), nzTpIcepk0o8('\x30' + '\157' + chr(0b100101 + 0o15) + chr(792 - 742) + chr(0b110010), 0b1000), nzTpIcepk0o8(chr(1651 - 1603) + '\x6f' + chr(50) + '\060' + '\x37', 8), nzTpIcepk0o8(chr(0b101100 + 0o4) + chr(111) + '\061' + chr(0b100001 + 0o20) + '\x36', 0o10), nzTpIcepk0o8(chr(2071 - 2023) + '\x6f' + chr(2076 - 2026) + chr(0b110010) + chr(418 - 366), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1100011 + 0o14) + chr(53) + chr(0b11111 + 0o24), 8), nzTpIcepk0o8('\060' + '\x6f' + chr(51) + chr(0b1101 + 0o47) + chr(0b110010), 0o10), nzTpIcepk0o8('\060' + '\157' + '\062' + chr(0b110010) + '\063', 0b1000), nzTpIcepk0o8(chr(48) + '\157' + '\061' + '\067' + chr(0b100 + 0o55), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + '\062' + '\x37' + '\064', 13145 - 13137), nzTpIcepk0o8(chr(0b1011 + 0o45) + chr(0b1101111) + chr(1895 - 1844) + chr(1833 - 1785) + chr(2513 - 2461), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1100011 + 0o14) + chr(50) + '\066', 40464 - 40456), nzTpIcepk0o8('\x30' + '\157' + chr(393 - 343) + chr(1784 - 1733) + '\061', 40927 - 40919), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(49) + chr(0b1000 + 0o57) + chr(54), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(1448 - 1399) + '\064', 6912 - 6904), nzTpIcepk0o8(chr(0b100000 + 0o20) + chr(0b1000000 + 0o57) + chr(0b100001 + 0o21) + chr(0b110111) + '\x31', 52121 - 52113), nzTpIcepk0o8(chr(0b11101 + 0o23) + '\x6f' + '\063' + '\x33' + chr(2049 - 1995), 8), nzTpIcepk0o8('\060' + chr(0b111 + 0o150) + chr(0b110010) + '\064' + '\x36', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1100101 + 0o12) + chr(51) + chr(0b110101) + chr(0b110001), 0o10), nzTpIcepk0o8('\x30' + chr(6400 - 6289) + '\063' + '\066' + chr(0b110110), 21198 - 21190), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110001 + 0o1) + '\063' + chr(50), 0b1000), nzTpIcepk0o8('\060' + '\157' + '\062' + chr(0b100100 + 0o21) + chr(2257 - 2207), 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(2336 - 2287) + '\x34' + chr(52), ord("\x08")), nzTpIcepk0o8(chr(0b101011 + 0o5) + '\157' + '\x33' + chr(0b10101 + 0o35), 1445 - 1437), nzTpIcepk0o8(chr(48) + chr(9747 - 9636) + chr(51) + chr(0b100110 + 0o21) + chr(811 - 761), 0o10), nzTpIcepk0o8(chr(0b100101 + 0o13) + chr(0b1101100 + 0o3) + chr(0b101101 + 0o5) + chr(0b110000) + chr(808 - 756), 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(1121 - 1073) + chr(7336 - 7225) + chr(1867 - 1814) + '\060', ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'6'), chr(9211 - 9111) + '\145' + '\143' + chr(111) + '\x64' + chr(0b11 + 0o142))('\165' + chr(11922 - 11806) + chr(102) + chr(1081 - 1036) + chr(56)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def ifY4hRLFJqyv(LaRgxWJnPLsD, FxZHtXEolYsL, EE7Tfca7oYF2, QqkiMOFRml3h=roI3spqORKae(gVH10rjKDCEH, roI3spqORKae(ES5oEprVxulp(b'\\\x9b\xb55Jh\x0etm\x13\x9a\r\xc2\xae \xc1\xce\x14\xd1'), chr(0b10010 + 0o122) + chr(101) + chr(3690 - 3591) + '\157' + chr(100) + chr(0b100110 + 0o77))(chr(0b1110101) + chr(12240 - 12124) + chr(102) + chr(1372 - 1327) + chr(0b110110 + 0o2))), HTS4xgGojoU5=nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110000), 11645 - 11637), Bd7K5yyYri9R=nzTpIcepk0o8(chr(0b10100 + 0o34) + chr(0b1101111) + chr(0b110000), 8), mcjejRq_Q0_k=None, Xmcm0weMglP7=None, **q5n0sHDDTy90):
def ZzNkkrM3Te_Y(PG5Qj7_SNyQs, u9RUygFPHmZS, iMfNCng1AEjw=roI3spqORKae(ES5oEprVxulp(b'\\\xb1\x84\x1asK;OJ"'), chr(0b11110 + 0o106) + '\x65' + '\x63' + '\157' + chr(0b1001101 + 0o27) + chr(0b111 + 0o136))(chr(0b1110101) + chr(0b1110100) + '\x66' + chr(45) + chr(0b111000))):
vYvVdhywHupa = nzTpIcepk0o8(chr(589 - 541) + chr(0b1110 + 0o141) + chr(841 - 786) + '\x34', ord("\x08"))
Zf0eUaIsZfDL = u9RUygFPHmZS or nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b1101 + 0o44), 0o10)
if PG5Qj7_SNyQs > Zf0eUaIsZfDL:
Zf0eUaIsZfDL = PG5Qj7_SNyQs
BzxtgAKPRA85 = nzTpIcepk0o8(sOS7b2Ofrbne(PG5Qj7_SNyQs / jLW6pRf2DSRk(Zf0eUaIsZfDL) * vYvVdhywHupa))
bMq4Yrv_tMi0 = nzTpIcepk0o8(aQg01EfWg1cd.floor(PG5Qj7_SNyQs / jLW6pRf2DSRk(Zf0eUaIsZfDL) * nzTpIcepk0o8(chr(108 - 60) + chr(111) + chr(0b110001) + chr(263 - 211) + chr(0b11001 + 0o33), 8)))
JummcHpaNLEw = roI3spqORKae(ES5oEprVxulp(b"C\xa5\x97\x1bqA'P_#\xb2/\xee\x92\x18\xef\xdan\xefJ\x81\xe7\x10\xd3\xaak\xb9\x05h\xd6\xb0\xc3\xb6\x94\xe3\xde\x01i\xc0\xa8e\xa5\x81\x11rE3EF(\xbb6\xa7\x9e\x06\xe6\xe2=\xb4\x03\x99\xe3\x1c\xce\xa7s\xf7\nq\x9c\xf7\x86\x92\x98\xfb\xc7\x01g"), '\x64' + chr(9337 - 9236) + chr(99) + chr(0b1101111) + chr(0b110010 + 0o62) + '\x65')(chr(0b1110101) + '\x74' + '\x66' + chr(1846 - 1801) + chr(2520 - 2464))
roI3spqORKae(bpyfpu4kTbwL.stderr, roI3spqORKae(ES5oEprVxulp(b'u\xb2\xc3\x1cwT,\x1ac6\xady'), chr(8999 - 8899) + '\x65' + '\143' + chr(0b1001000 + 0o47) + chr(7996 - 7896) + '\x65')(chr(0b1110101) + chr(0b1110100) + chr(102) + '\055' + '\070'))(roI3spqORKae(ES5oEprVxulp(b'\x03\x85\xc1?'), '\144' + chr(0b1100101) + chr(0b110110 + 0o55) + '\157' + chr(100) + chr(0b1100101))(chr(12021 - 11904) + '\x74' + '\x66' + chr(0b100111 + 0o6) + '\x38'))
roI3spqORKae(bpyfpu4kTbwL.stderr, roI3spqORKae(ES5oEprVxulp(b'u\xb2\xc3\x1cwT,\x1ac6\xady'), chr(0b1100100) + '\x65' + chr(365 - 266) + chr(1102 - 991) + chr(0b1010100 + 0o20) + chr(0b1100101))('\165' + chr(0b10 + 0o162) + chr(6252 - 6150) + chr(45) + '\070'))(roI3spqORKae(JummcHpaNLEw, roI3spqORKae(ES5oEprVxulp(b'i\xed\xc0?X\x17<D~\x19\x9f\x01'), '\144' + chr(101) + chr(0b1010000 + 0o23) + '\157' + chr(6344 - 6244) + chr(0b1100101))(chr(0b1000111 + 0o56) + chr(0b1110100) + chr(0b111011 + 0o53) + chr(45) + chr(56)))(action=iMfNCng1AEjw, done=roI3spqORKae(ES5oEprVxulp(b'%'), chr(0b1010110 + 0o16) + '\145' + '\x63' + chr(0b1101111) + chr(100) + '\145')(chr(0b1010011 + 0o42) + chr(0b1010110 + 0o36) + chr(102) + chr(781 - 736) + chr(56)) * (BzxtgAKPRA85 - nzTpIcepk0o8(chr(1097 - 1049) + chr(0b1101111) + chr(0b1111 + 0o42), 8)) + roI3spqORKae(ES5oEprVxulp(b'&'), chr(0b1101 + 0o127) + chr(117 - 16) + '\x63' + '\157' + '\144' + '\x65')(chr(0b1110101) + chr(116) + chr(0b1100110) + '\x2d' + chr(0b111000 + 0o0)) if BzxtgAKPRA85 > nzTpIcepk0o8('\060' + '\x6f' + '\060', 8) else roI3spqORKae(ES5oEprVxulp(b''), chr(0b1010000 + 0o24) + chr(1762 - 1661) + '\143' + '\x6f' + chr(1829 - 1729) + '\x65')(chr(0b1110101) + chr(116) + '\x66' + chr(0b101101) + chr(1103 - 1047)), pending=roI3spqORKae(ES5oEprVxulp(b'8'), '\144' + chr(0b1101 + 0o130) + '\143' + '\x6f' + chr(0b1100100) + chr(0b1100101))('\x75' + chr(0b11100 + 0o130) + chr(9084 - 8982) + chr(1166 - 1121) + '\x38') * (vYvVdhywHupa - BzxtgAKPRA85), done_bytes=PG5Qj7_SNyQs, remaining=roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'8\xb1\x95TdW3QJ|\xf06'), '\144' + '\145' + '\143' + '\x6f' + chr(100) + '\145')('\x75' + chr(116) + chr(0b1100011 + 0o3) + chr(0b101101) + '\x38'), roI3spqORKae(ES5oEprVxulp(b'i\xed\xc0?X\x17<D~\x19\x9f\x01'), chr(0b1100100) + '\145' + '\143' + chr(7301 - 7190) + chr(715 - 615) + '\145')(chr(356 - 239) + chr(0b1110100) + chr(0b1100110) + chr(45) + '\070'))(size=u9RUygFPHmZS) if u9RUygFPHmZS else roI3spqORKae(ES5oEprVxulp(b''), chr(0b100000 + 0o104) + '\x65' + chr(0b1100011) + chr(0b1010011 + 0o34) + chr(8868 - 8768) + chr(101))(chr(13667 - 13550) + chr(116) + chr(0b1100110) + chr(45) + chr(0b10010 + 0o46)), percent=bMq4Yrv_tMi0, name=FxZHtXEolYsL))
roI3spqORKae(bpyfpu4kTbwL.stderr, roI3spqORKae(ES5oEprVxulp(b's\x89\x83\r]V\x0c|m6\xaf\x0e'), chr(0b1011001 + 0o13) + '\x65' + '\143' + chr(111) + chr(100) + '\x65')(chr(0b1100110 + 0o17) + '\164' + chr(0b1100110) + '\055' + chr(0b1110 + 0o52)))()
roI3spqORKae(bpyfpu4kTbwL.stderr, roI3spqORKae(ES5oEprVxulp(b'u\xb2\xc3\x1cwT,\x1ac6\xady'), '\144' + '\145' + chr(7701 - 7602) + '\157' + '\144' + '\145')('\165' + chr(0b1110100) + '\x66' + '\x2d' + chr(56)))(roI3spqORKae(ES5oEprVxulp(b'\x15'), '\144' + '\145' + chr(0b1110 + 0o125) + chr(0b1101111) + chr(6114 - 6014) + '\x65')(chr(117) + chr(9588 - 9472) + '\x66' + chr(1192 - 1147) + '\070'))
roI3spqORKae(bpyfpu4kTbwL.stderr, roI3spqORKae(ES5oEprVxulp(b's\x89\x83\r]V\x0c|m6\xaf\x0e'), '\x64' + chr(0b1100101) + chr(1962 - 1863) + '\x6f' + chr(0b111100 + 0o50) + '\145')(chr(0b1010 + 0o153) + chr(11686 - 11570) + chr(148 - 46) + chr(0b100110 + 0o7) + chr(0b111000)))()
u_THv8PG7wU7 = nzTpIcepk0o8(chr(0b101100 + 0o4) + chr(0b1101111) + chr(48), 8)
if suIjIS24Zkqw(LaRgxWJnPLsD, raWYLn1m7863):
gVH10rjKDCEH = LaRgxWJnPLsD
else:
gVH10rjKDCEH = raWYLn1m7863(LaRgxWJnPLsD, mode=roI3spqORKae(ES5oEprVxulp(b'j'), chr(100) + chr(762 - 661) + '\143' + '\157' + chr(0b1000011 + 0o41) + '\145')(chr(0b110 + 0o157) + chr(0b101000 + 0o114) + chr(0b1100110) + chr(45) + chr(1937 - 1881)), project=mcjejRq_Q0_k if mcjejRq_Q0_k != raWYLn1m7863.NO_PROJECT_HINT else None)
if Xmcm0weMglP7 and roI3spqORKae(Xmcm0weMglP7, roI3spqORKae(ES5oEprVxulp(b'_\x8b\xb8\x11kQnSN\x01\xaf\x01'), chr(0b101011 + 0o71) + chr(0b1001110 + 0o27) + chr(0b1100011) + chr(0b1101111) + chr(0b1100100) + chr(0b1100101))(chr(563 - 446) + chr(0b1110 + 0o146) + chr(0b1100110) + chr(538 - 493) + chr(56)))(roI3spqORKae(ES5oEprVxulp(b'h\xbf\x81\x00l'), chr(0b1100100) + chr(156 - 55) + chr(0b101110 + 0o65) + '\x6f' + chr(3530 - 3430) + '\145')(chr(0b1110101) + '\x74' + chr(102) + '\055' + chr(0b101001 + 0o17))) is not None:
hd5akVBL8EzW = Xmcm0weMglP7
else:
hd5akVBL8EzW = gVH10rjKDCEH.describe(fields={roI3spqORKae(ES5oEprVxulp(b'h\xbf\x81\x00l'), chr(0b1100100) + chr(7646 - 7545) + chr(2749 - 2650) + '\157' + chr(0b1100100) + '\x65')('\x75' + '\164' + chr(102) + chr(0b101101) + '\x38')}, default_fields=nzTpIcepk0o8(chr(0b1000 + 0o50) + chr(2053 - 1942) + chr(2239 - 2190), 8), **q5n0sHDDTy90)
if roI3spqORKae(ES5oEprVxulp(b'|\xac\x9a\x02z'), chr(7109 - 7009) + '\x65' + '\143' + chr(0b1110 + 0o141) + chr(100) + '\x65')('\165' + chr(0b1011101 + 0o27) + chr(102) + '\x2d' + chr(2549 - 2493)) in hd5akVBL8EzW:
if roI3spqORKae(ES5oEprVxulp(b'u\xba\xc6'), chr(775 - 675) + chr(0b1100101) + '\x63' + '\x6f' + chr(100) + '\x65')('\165' + '\164' + chr(0b1011000 + 0o16) + chr(45) + '\x38') in hd5akVBL8EzW:
UkKAQVUUW5oH = hd5akVBL8EzW[roI3spqORKae(ES5oEprVxulp(b'u\xba\xc6'), '\144' + '\x65' + chr(99) + '\x6f' + '\x64' + chr(0b101101 + 0o70))('\165' + '\x74' + chr(0b1100110) + '\055' + chr(0b111000))]
else:
UkKAQVUUW5oH = None
oF4hTLt8SZ0h(LaRgxWJnPLsD, UkKAQVUUW5oH, mcjejRq_Q0_k, FxZHtXEolYsL)
return nzTpIcepk0o8('\x30' + chr(4869 - 4758) + chr(49), 8)
ws_9aXBYp0Zv = hd5akVBL8EzW[roI3spqORKae(ES5oEprVxulp(b'h\xbf\x81\x00l'), chr(100) + chr(0b1010000 + 0o25) + chr(0b1100011) + chr(111) + chr(0b1100100) + chr(101))(chr(0b1011010 + 0o33) + '\164' + chr(0b1100110) + chr(0b101101) + '\070')]
VgwYRUcf2AIw = V3OlOVg98A85(ws_9aXBYp0Zv, key=nzTpIcepk0o8)
u9RUygFPHmZS = hd5akVBL8EzW.GUKetu4xaGsJ(roI3spqORKae(ES5oEprVxulp(b'k\xb7\x89\x11'), chr(0b110101 + 0o57) + chr(101) + '\x63' + chr(0b11 + 0o154) + chr(0b1100100) + '\x65')(chr(0b1110000 + 0o5) + chr(13150 - 13034) + chr(0b1100110) + chr(0b101101) + chr(0b111000)))
GuX46MBAOnaQ = nzTpIcepk0o8('\060' + chr(2334 - 2223) + '\060', 8)
for utycsYPyCLX2 in VgwYRUcf2AIw:
ws_9aXBYp0Zv[utycsYPyCLX2][roI3spqORKae(ES5oEprVxulp(b'k\xaa\x92\x06k'), '\x64' + chr(0b1000011 + 0o42) + '\x63' + '\x6f' + chr(2589 - 2489) + '\x65')(chr(117) + chr(116) + '\146' + chr(345 - 300) + '\070')] = GuX46MBAOnaQ
GuX46MBAOnaQ += ws_9aXBYp0Zv[utycsYPyCLX2][roI3spqORKae(ES5oEprVxulp(b'k\xb7\x89\x11'), '\x64' + chr(101) + '\143' + chr(111) + chr(0b1100100) + '\x65')('\165' + chr(116) + '\x66' + '\055' + chr(0b101101 + 0o13))]
if HTS4xgGojoU5:
ghfrO2vbANu_ = DnU3Rq9N5ala(FxZHtXEolYsL, roI3spqORKae(ES5oEprVxulp(b'y\xbc'), chr(2273 - 2173) + chr(0b111101 + 0o50) + '\x63' + '\157' + chr(0b1100100) + chr(0b1100101))(chr(1204 - 1087) + chr(5201 - 5085) + chr(4975 - 4873) + '\x2d' + '\x38'))
else:
try:
ghfrO2vbANu_ = DnU3Rq9N5ala(FxZHtXEolYsL, roI3spqORKae(ES5oEprVxulp(b'j\xbc\xd8'), chr(0b10111 + 0o115) + '\x65' + '\143' + '\x6f' + chr(8434 - 8334) + '\145')('\165' + chr(116) + '\146' + '\055' + chr(0b11000 + 0o40)))
except Awc2QmWaiVq8:
ghfrO2vbANu_ = DnU3Rq9N5ala(FxZHtXEolYsL, roI3spqORKae(ES5oEprVxulp(b'o\xbc'), '\144' + chr(0b1001011 + 0o32) + chr(99) + '\x6f' + chr(0b1110 + 0o126) + chr(0b1000000 + 0o45))('\x75' + chr(0b1100001 + 0o23) + '\146' + chr(45) + '\x38'))
if Bd7K5yyYri9R:
ZzNkkrM3Te_Y(nzTpIcepk0o8('\060' + '\157' + chr(48), 8), None)
def NEfbEAcba2XM(mhegsP3ux1Zn, KQbHFTcl_LKy, NiWVjAWn0l6T):
(XuBkOpBKZJ5Z, UyworZfslHjc) = gVH10rjKDCEH.get_download_url(project=mcjejRq_Q0_k, **q5n0sHDDTy90)
MaUbm2B34zYc = nzTpIcepk0o8(chr(0b1001 + 0o47) + '\157' + chr(0b101 + 0o53), 8)
if ftfygxgFas5X(ws_9aXBYp0Zv) > nzTpIcepk0o8(chr(962 - 914) + '\157' + chr(0b100 + 0o55), 8) or KQbHFTcl_LKy > nzTpIcepk0o8('\060' + '\x6f' + chr(0b100111 + 0o11), 8) or NiWVjAWn0l6T - KQbHFTcl_LKy + nzTpIcepk0o8('\x30' + chr(111) + chr(49), 8) < ws_9aXBYp0Zv[mhegsP3ux1Zn][roI3spqORKae(ES5oEprVxulp(b'k\xb7\x89\x11'), '\144' + '\x65' + '\x63' + '\157' + '\144' + chr(0b1100101))(chr(0b1101011 + 0o12) + chr(0b10100 + 0o140) + chr(9358 - 9256) + chr(0b100100 + 0o11) + '\x38')]:
MaUbm2B34zYc = nzTpIcepk0o8(chr(976 - 928) + '\157' + chr(963 - 914), 8)
FfKOThdpoDTb = SsdNdRxXOwsF._dxhttp_read_range(XuBkOpBKZJ5Z, UyworZfslHjc, KQbHFTcl_LKy, NiWVjAWn0l6T, sWZjHJYQ52Dn, MaUbm2B34zYc)
return (mhegsP3ux1Zn, FfKOThdpoDTb)
def zQf1eDXcIbDC():
for UHD0ePZ7zi23 in VgwYRUcf2AIw:
DYijF_X8G5Fh = ws_9aXBYp0Zv[UHD0ePZ7zi23]
for Gd67fC2R9iO6 in bbT2xIe5pzk7(DYijF_X8G5Fh[roI3spqORKae(ES5oEprVxulp(b'k\xaa\x92\x06k'), chr(3773 - 3673) + chr(101) + '\x63' + chr(111) + '\x64' + chr(0b1110 + 0o127))(chr(0b1110101) + chr(0b1000010 + 0o62) + chr(0b10011 + 0o123) + '\x2d' + chr(0b100110 + 0o22))], DYijF_X8G5Fh[roI3spqORKae(ES5oEprVxulp(b'k\xaa\x92\x06k'), chr(100) + '\145' + chr(0b111 + 0o134) + chr(10363 - 10252) + chr(100) + '\x65')(chr(0b100 + 0o161) + chr(12807 - 12691) + '\x66' + chr(45) + chr(0b111000))] + DYijF_X8G5Fh[roI3spqORKae(ES5oEprVxulp(b'k\xb7\x89\x11'), chr(100) + chr(0b101101 + 0o70) + '\143' + chr(0b1011111 + 0o20) + chr(0b100101 + 0o77) + chr(5025 - 4924))('\165' + '\x74' + chr(3610 - 3508) + '\055' + chr(2593 - 2537))], QqkiMOFRml3h):
uymzJf1bP_QN = XURpmPuEWCNF(Gd67fC2R9iO6 + QqkiMOFRml3h, DYijF_X8G5Fh[roI3spqORKae(ES5oEprVxulp(b'k\xaa\x92\x06k'), chr(100) + chr(0b1100101) + '\x63' + '\157' + chr(283 - 183) + chr(8957 - 8856))('\165' + chr(3079 - 2963) + chr(0b1100110 + 0o0) + chr(0b100 + 0o51) + '\x38')] + DYijF_X8G5Fh[roI3spqORKae(ES5oEprVxulp(b'k\xb7\x89\x11'), chr(0b1100100) + chr(0b1100101) + chr(0b1100011) + chr(0b100001 + 0o116) + chr(3108 - 3008) + chr(0b1100101))(chr(10818 - 10701) + '\164' + '\x66' + '\055' + '\070')]) - nzTpIcepk0o8(chr(832 - 784) + chr(0b1101111) + chr(0b1011 + 0o46), 8)
yield (NEfbEAcba2XM, [UHD0ePZ7zi23, Gd67fC2R9iO6, uymzJf1bP_QN], {})
def lBY0AQhUEAfY(FT32n2VGgreS, kz9DU1orr4BD, h8kTNaNwezOL):
if kz9DU1orr4BD is not None and kz9DU1orr4BD != ws_9aXBYp0Zv[FT32n2VGgreS][roI3spqORKae(ES5oEprVxulp(b'k\xb7\x89\x11'), chr(100) + '\x65' + chr(99) + chr(111) + '\x64' + chr(101))(chr(0b1110101) + chr(0b1110100) + chr(102) + chr(0b1011 + 0o42) + '\x38')]:
sldzbHve8G1S = roI3spqORKae(ES5oEprVxulp(b'M\xb0\x96\x0coA9_J"\xfc;\xe6\x8e\x0b\xb2\xe3/\xe0J\xc2\xe0\x10\xc6\xa16\xf0\x10,\xc2\xa3\x86\x99\x97\xe8\xdeDa\x87\xa40\xbb\x8b\x04zG.NKf\xa76\xab\xdc\x18\xfd\xf3n\xefV\xcb'), chr(100) + chr(0b1100101) + '\x63' + '\157' + chr(0b1100100) + chr(0b1100101))(chr(12030 - 11913) + chr(0b1110100) + '\146' + '\x2d' + chr(56))
sldzbHve8G1S = sldzbHve8G1S.q33KG3foQ_CJ(gVH10rjKDCEH.nkTncJcFPliW(), FT32n2VGgreS, ws_9aXBYp0Zv[FT32n2VGgreS][roI3spqORKae(ES5oEprVxulp(b'k\xb7\x89\x11'), chr(926 - 826) + '\145' + chr(0b1010 + 0o131) + '\x6f' + '\144' + '\145')(chr(9260 - 9143) + chr(0b1010111 + 0o35) + chr(102) + chr(839 - 794) + chr(56))], kz9DU1orr4BD)
raise sOVm2UPsUjxW(sldzbHve8G1S)
if h8kTNaNwezOL is not None and roI3spqORKae(ES5oEprVxulp(b'u\xba\xc6'), chr(0b1010110 + 0o16) + chr(4615 - 4514) + chr(99) + chr(0b1101111) + chr(0b111000 + 0o54) + '\x65')(chr(7135 - 7018) + chr(116) + chr(0b1010 + 0o134) + '\055' + '\x38') not in ws_9aXBYp0Zv[FT32n2VGgreS]:
roI3spqORKae(EyN62Frii5S5, roI3spqORKae(ES5oEprVxulp(b'k\x94\xa2"@l+x\x16 \xbb1'), '\144' + chr(5502 - 5401) + '\143' + chr(111) + '\x64' + chr(101))(chr(0b1110101) + '\x74' + chr(102) + chr(0b101101) + chr(56)))(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\\\xb1\x84\x1asK;O\x0f)\xbak\xe1\x95\x13\xf7\xa75\xe9\x0b\x8b\xe0Y\xd2\xabb\xb9\x1ci\xd0\xb0\xc1\xc9\x95\xf2\xcf\x07q\x9f\xe08\xb8\x9c\x06?M4_J!\xae"\xf3\x85'), '\x64' + chr(101) + chr(99) + chr(0b1101111) + chr(0b1010001 + 0o23) + chr(8134 - 8033))(chr(117) + chr(0b1110100) + chr(0b100010 + 0o104) + chr(0b101101) + chr(988 - 932)), roI3spqORKae(ES5oEprVxulp(b'i\xed\xc0?X\x17<D~\x19\x9f\x01'), chr(690 - 590) + chr(0b11101 + 0o110) + chr(4540 - 4441) + chr(0b101001 + 0o106) + chr(256 - 156) + '\145')('\x75' + chr(116) + chr(0b1100110) + chr(1736 - 1691) + '\x38'))(roI3spqORKae(gVH10rjKDCEH, roI3spqORKae(ES5oEprVxulp(b'v\xb5\xa7\x1a|n9m\x7f*\xb5\x1c'), chr(199 - 99) + '\x65' + chr(1176 - 1077) + chr(111) + chr(3724 - 3624) + chr(0b101100 + 0o71))('\165' + chr(0b1110100) + chr(102) + chr(1780 - 1735) + chr(0b111000)))()))
elif h8kTNaNwezOL is not None and roI3spqORKae(h8kTNaNwezOL, roI3spqORKae(ES5oEprVxulp(b'I\x94\xac;&\x16\x14Jy\x01\xe9 '), '\144' + chr(0b100000 + 0o105) + '\x63' + chr(4091 - 3980) + chr(7128 - 7028) + chr(0b1100101))(chr(117) + '\x74' + chr(8632 - 8530) + chr(0b101101) + chr(0b101110 + 0o12)))() != ws_9aXBYp0Zv[FT32n2VGgreS][roI3spqORKae(ES5oEprVxulp(b'u\xba\xc6'), chr(418 - 318) + chr(0b1100101) + '\143' + '\x6f' + '\144' + chr(3698 - 3597))(chr(117) + '\164' + chr(3012 - 2910) + '\055' + '\x38')]:
sldzbHve8G1S = roI3spqORKae(ES5oEprVxulp(b'[\xb6\x96\x17tW/F\x0f+\xb58\xea\x9d\x0b\xf1\xefn\xfdE\xc2\xe8\x04\x9c\xb4w\xeb\n,\xc2\xa3\x86\xc1\x93\xe2\xda\x01y\x8e\xe1|\xfe\x88\t3\x04=D[f\xa76\xae'), chr(0b1100100) + chr(0b1100001 + 0o4) + chr(99) + '\x6f' + chr(0b1001000 + 0o34) + chr(0b1100101))(chr(117) + chr(0b1110100) + chr(0b1100110) + chr(587 - 542) + chr(85 - 29))
sldzbHve8G1S = sldzbHve8G1S.q33KG3foQ_CJ(gVH10rjKDCEH.nkTncJcFPliW(), FT32n2VGgreS, ws_9aXBYp0Zv[FT32n2VGgreS][roI3spqORKae(ES5oEprVxulp(b'u\xba\xc6'), '\144' + chr(7347 - 7246) + chr(8176 - 8077) + '\x6f' + '\x64' + chr(101))(chr(0b1010010 + 0o43) + chr(116) + chr(0b1100110) + chr(0b101101) + chr(580 - 524))], h8kTNaNwezOL.QJ_O92NaVG5k())
raise R4LCGvJNbvsN(sldzbHve8G1S)
with ghfrO2vbANu_:
eZjNRKTLWgfx = nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\060', 8)
if roI3spqORKae(ghfrO2vbANu_, roI3spqORKae(ES5oEprVxulp(b'z\xb3\xb9CLR/qju\xb6\x0f'), chr(0b1100100) + '\x65' + '\x63' + chr(0b1101111) + '\144' + '\145')(chr(0b1110101) + chr(0b1110100) + chr(0b110110 + 0o60) + chr(45) + chr(0b1110 + 0o52))) == roI3spqORKae(ES5oEprVxulp(b'j\xbc\xd8'), '\x64' + chr(0b10010 + 0o123) + chr(0b111 + 0o134) + chr(1326 - 1215) + chr(0b1100100) + '\145')('\165' + '\164' + chr(102) + '\055' + chr(184 - 128)):
(DfGK1vU7zR97, CdevnBX_Qt_U) = (None, nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(1562 - 1512) + chr(0b100000 + 0o20) + chr(48) + chr(0b11010 + 0o26), 0b1000) * nzTpIcepk0o8(chr(48) + '\x6f' + '\x32' + chr(48) + chr(972 - 924) + chr(0b110000), 8))
try:
for utycsYPyCLX2 in VgwYRUcf2AIw:
DYijF_X8G5Fh = ws_9aXBYp0Zv[utycsYPyCLX2]
if roI3spqORKae(ES5oEprVxulp(b'u\xba\xc6'), chr(3166 - 3066) + chr(937 - 836) + chr(0b1100001 + 0o2) + '\x6f' + chr(100) + chr(0b1011111 + 0o6))(chr(7744 - 7627) + chr(116) + '\x66' + chr(0b1111 + 0o36) + chr(56)) not in DYijF_X8G5Fh:
raise oqIplWWv7W23(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b"^\xb7\x9f\x11?_'\x0bK)\xb98\xa7\x92\x10\xe6\xa7-\xfbE\x96\xf2\x10\xd2\xe4f\xf8\x0cx\x99\xb3\xc2\xdc\xd6\xf9\xc2\x01y\x91\xf7m\xb3\x80"), '\x64' + chr(0b101001 + 0o74) + '\143' + '\x6f' + chr(0b1100100) + '\145')(chr(0b1110101) + chr(10567 - 10451) + '\146' + chr(0b101101) + chr(0b11100 + 0o34)), roI3spqORKae(ES5oEprVxulp(b'i\xed\xc0?X\x17<D~\x19\x9f\x01'), chr(100) + chr(0b1000 + 0o135) + '\x63' + chr(123 - 12) + chr(0b10001 + 0o123) + chr(0b10010 + 0o123))(chr(117) + chr(0b1110100) + chr(2729 - 2627) + chr(0b101101) + '\070'))(roI3spqORKae(gVH10rjKDCEH, roI3spqORKae(ES5oEprVxulp(b'v\xb5\xa7\x1a|n9m\x7f*\xb5\x1c'), chr(7033 - 6933) + '\145' + chr(99) + chr(3595 - 3484) + chr(6342 - 6242) + '\145')(chr(0b1110101) + chr(0b1110100) + '\146' + chr(0b101101) + chr(0b111000)))()))
ULQkpkTbHg9i = DYijF_X8G5Fh[roI3spqORKae(ES5oEprVxulp(b'k\xb7\x89\x11'), chr(0b1100100) + chr(101) + '\143' + chr(0b1101111) + '\x64' + '\x65')(chr(11341 - 11224) + chr(3200 - 3084) + chr(102) + chr(0b101101) + chr(696 - 640))]
h8kTNaNwezOL = SDv77BhJq2mr.UkKAQVUUW5oH()
while ULQkpkTbHg9i > nzTpIcepk0o8(chr(0b101100 + 0o4) + '\x6f' + chr(0b110000), 8):
WckxBx1Uqdpm = ghfrO2vbANu_.eoXknH7XUn7m(XURpmPuEWCNF(CdevnBX_Qt_U, ULQkpkTbHg9i))
if ftfygxgFas5X(WckxBx1Uqdpm) < XURpmPuEWCNF(CdevnBX_Qt_U, ULQkpkTbHg9i):
raise oqIplWWv7W23(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b"T\xb1\x90\x15s\x04>J['\xfc-\xe8\x8e_\xe2\xe6<\xe0\x0b\x99\xeeY\xd5\xb76\xed\x0cy\xd7\xbd\xc7\x9d\x93\xfe"), chr(6943 - 6843) + chr(0b111001 + 0o54) + '\x63' + '\157' + chr(100) + chr(0b1100101 + 0o0))('\x75' + chr(7912 - 7796) + '\x66' + chr(0b10 + 0o53) + '\070'), roI3spqORKae(ES5oEprVxulp(b'i\xed\xc0?X\x17<D~\x19\x9f\x01'), chr(100) + chr(101) + chr(99) + chr(0b110101 + 0o72) + chr(0b1 + 0o143) + '\145')('\165' + chr(0b110100 + 0o100) + chr(102) + '\055' + chr(0b100010 + 0o26)))(utycsYPyCLX2))
roI3spqORKae(h8kTNaNwezOL, roI3spqORKae(ES5oEprVxulp(b'R\x81\x98FV}\x18\x1aL#\xad%'), '\x64' + chr(0b1100101) + '\x63' + chr(0b1100 + 0o143) + chr(100) + chr(0b1100101))(chr(0b10011 + 0o142) + chr(116) + '\x66' + chr(0b100111 + 0o6) + chr(1244 - 1188)))(WckxBx1Uqdpm)
ULQkpkTbHg9i -= CdevnBX_Qt_U
if roI3spqORKae(h8kTNaNwezOL, roI3spqORKae(ES5oEprVxulp(b'I\x94\xac;&\x16\x14Jy\x01\xe9 '), '\x64' + chr(6067 - 5966) + chr(0b1100011) + chr(0b1001110 + 0o41) + '\x64' + chr(101))('\x75' + '\164' + chr(0b1100110) + chr(45) + '\070'))() != DYijF_X8G5Fh[roI3spqORKae(ES5oEprVxulp(b'u\xba\xc6'), chr(100) + chr(0b1010000 + 0o25) + chr(0b1100011) + '\x6f' + '\x64' + chr(0b1100101))('\165' + chr(116) + chr(593 - 491) + chr(0b101101) + chr(0b10010 + 0o46))]:
raise oqIplWWv7W23(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'[\xb6\x96\x17tW/F\x0f+\xb58\xea\x9d\x0b\xf1\xefn\xe3C\x87\xfdY\xca\xa1d\xf0\x18u\xd0\xb0\xc1\xc9\x92\xf5\xdd\nv\x95\xe5|\xbb\x97ToE(_\x0f=\xa1'), '\144' + chr(0b1100101) + chr(0b1010111 + 0o14) + '\x6f' + chr(100) + chr(0b11111 + 0o106))(chr(0b10101 + 0o140) + chr(388 - 272) + chr(318 - 216) + chr(0b100111 + 0o6) + chr(0b11011 + 0o35)), roI3spqORKae(ES5oEprVxulp(b'i\xed\xc0?X\x17<D~\x19\x9f\x01'), chr(0b1100100) + '\x65' + chr(0b1001110 + 0o25) + chr(0b1100000 + 0o17) + chr(0b1100100) + '\145')('\165' + chr(0b1001010 + 0o52) + '\146' + chr(0b101101) + chr(0b111000)))(utycsYPyCLX2))
else:
DfGK1vU7zR97 = utycsYPyCLX2
eZjNRKTLWgfx = ghfrO2vbANu_.tell()
if Bd7K5yyYri9R:
u_THv8PG7wU7 += DYijF_X8G5Fh[roI3spqORKae(ES5oEprVxulp(b'k\xb7\x89\x11'), '\144' + '\x65' + '\x63' + '\x6f' + chr(7296 - 7196) + chr(101))(chr(0b1110101) + chr(0b1011001 + 0o33) + chr(102) + chr(45) + chr(56))]
ZzNkkrM3Te_Y(u_THv8PG7wU7, u9RUygFPHmZS, action=roI3spqORKae(ES5oEprVxulp(b'N\xbb\x81\x1dyM?O'), chr(0b1100100) + chr(101) + chr(0b1100011) + '\157' + chr(0b1100100) + '\145')(chr(0b1010111 + 0o36) + chr(0b1010011 + 0o41) + '\146' + chr(1783 - 1738) + chr(0b101100 + 0o14)))
except (Awc2QmWaiVq8, oqIplWWv7W23) as wgf0sgcu_xPL:
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'\x7f\x9f\xca.&@5\x1dz+\x99\x11'), '\x64' + '\x65' + chr(1808 - 1709) + chr(0b1101111) + '\144' + '\x65')(chr(10421 - 10304) + '\164' + chr(0b1001010 + 0o34) + chr(45) + chr(0b111000)))(wgf0sgcu_xPL)
roI3spqORKae(ghfrO2vbANu_, roI3spqORKae(ES5oEprVxulp(b'k\xbb\x96\x1f'), chr(0b1100100) + chr(0b10111 + 0o116) + chr(0b100101 + 0o76) + chr(111) + chr(7418 - 7318) + chr(0b1100101))(chr(0b1010011 + 0o42) + '\x74' + chr(0b1010 + 0o134) + '\x2d' + chr(0b110100 + 0o4)))(eZjNRKTLWgfx)
roI3spqORKae(ghfrO2vbANu_, roI3spqORKae(ES5oEprVxulp(b'l\xac\x86\x1a|E.N'), chr(0b101110 + 0o66) + chr(7139 - 7038) + '\x63' + '\157' + chr(2913 - 2813) + chr(0b1100101))(chr(0b1110101) + chr(116) + chr(102) + '\055' + chr(56)))()
if DfGK1vU7zR97 is not None:
del VgwYRUcf2AIw[:roI3spqORKae(VgwYRUcf2AIw, roI3spqORKae(ES5oEprVxulp(b'B\xae\x95:*P\tgN\x1c\xa6.'), chr(9470 - 9370) + chr(0b1100101) + chr(99) + chr(111) + '\144' + '\x65')('\165' + chr(0b1110100) + '\146' + chr(0b100010 + 0o13) + chr(0b11111 + 0o31)))(DfGK1vU7zR97) + nzTpIcepk0o8(chr(1014 - 966) + '\x6f' + chr(2023 - 1974), 8)]
if Bd7K5yyYri9R and ftfygxgFas5X(VgwYRUcf2AIw) < ftfygxgFas5X(ws_9aXBYp0Zv):
ZzNkkrM3Te_Y(eZjNRKTLWgfx, u9RUygFPHmZS, action=roI3spqORKae(ES5oEprVxulp(b"J\xbb\x80\x01rM4L\x0f'\xa8"), chr(100) + chr(0b1100101) + '\x63' + chr(4236 - 4125) + chr(0b1100011 + 0o1) + chr(0b10111 + 0o116))('\165' + chr(0b1010001 + 0o43) + '\x66' + chr(0b101101) + chr(0b111000)))
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'\x7f\x9f\xca.&@5\x1dz+\x99\x11'), chr(1692 - 1592) + chr(0b1100101) + chr(2423 - 2324) + chr(111) + chr(0b110011 + 0o61) + chr(0b1011100 + 0o11))(chr(154 - 37) + chr(116) + '\x66' + '\x2d' + chr(0b100000 + 0o30)))(roI3spqORKae(ES5oEprVxulp(b'N\xbb\x81\x1dyM?O\x0fc\xafd\xa2\x98_\xf6\xe89\xfaG\x8d\xf2\x1d\xd9\xa06\xe9\x1f~\xcd\xad'), chr(0b111 + 0o135) + '\145' + chr(5683 - 5584) + chr(0b1001001 + 0o46) + '\x64' + chr(101))(chr(117) + '\x74' + chr(0b1100110) + chr(0b101011 + 0o2) + chr(1554 - 1498)), DfGK1vU7zR97, ftfygxgFas5X(VgwYRUcf2AIw))
try:
sV9Y0LXoD5BN = u9RUygFPHmZS > nzTpIcepk0o8(chr(48) + chr(1175 - 1064) + '\062' + chr(0b10010 + 0o36) + chr(48), 0o10) * nzTpIcepk0o8(chr(1205 - 1157) + '\x6f' + chr(0b1010 + 0o50) + chr(0b1101 + 0o43) + chr(1441 - 1393) + '\060', 8) and eZjNRKTLWgfx == nzTpIcepk0o8(chr(1309 - 1261) + chr(11972 - 11861) + chr(0b110000), 8) and SsdNdRxXOwsF.JOB_ID
(LAoOfipUKkWo, kz9DU1orr4BD, h8kTNaNwezOL) = (None, None, None)
for (Zp29ranoTpAp, wtfWKLCXQ9ne) in nMmMjZmHfCSd(zQf1eDXcIbDC(), roI3spqORKae(gVH10rjKDCEH, roI3spqORKae(ES5oEprVxulp(b'G\xb6\x87\x00o{.C]#\xbd/\xf7\x93\x10\xfe'), '\x64' + chr(101) + chr(0b1100011) + chr(0b1101111) + chr(0b1100100) + chr(0b1100101))(chr(10700 - 10583) + '\164' + chr(0b1100110) + '\055' + '\070')), do_first_task_sequentially=sV9Y0LXoD5BN):
if Zp29ranoTpAp != LAoOfipUKkWo:
lBY0AQhUEAfY(LAoOfipUKkWo, kz9DU1orr4BD, h8kTNaNwezOL)
(LAoOfipUKkWo, kz9DU1orr4BD, h8kTNaNwezOL) = (Zp29ranoTpAp, nzTpIcepk0o8('\x30' + '\x6f' + chr(434 - 386), 8), SDv77BhJq2mr.UkKAQVUUW5oH())
kz9DU1orr4BD += ftfygxgFas5X(wtfWKLCXQ9ne)
roI3spqORKae(h8kTNaNwezOL, roI3spqORKae(ES5oEprVxulp(b'R\x81\x98FV}\x18\x1aL#\xad%'), chr(0b1100100) + chr(101) + chr(99) + chr(7163 - 7052) + chr(5889 - 5789) + chr(0b111001 + 0o54))('\165' + '\164' + '\146' + chr(713 - 668) + chr(0b111000)))(wtfWKLCXQ9ne)
roI3spqORKae(ghfrO2vbANu_, roI3spqORKae(ES5oEprVxulp(b'u\xb2\xc3\x1cwT,\x1ac6\xady'), chr(0b1001011 + 0o31) + '\145' + chr(99) + chr(0b100001 + 0o116) + '\x64' + chr(9620 - 9519))('\165' + '\x74' + '\146' + chr(1427 - 1382) + '\x38'))(wtfWKLCXQ9ne)
if Bd7K5yyYri9R:
u_THv8PG7wU7 += ftfygxgFas5X(wtfWKLCXQ9ne)
ZzNkkrM3Te_Y(u_THv8PG7wU7, u9RUygFPHmZS)
lBY0AQhUEAfY(LAoOfipUKkWo, kz9DU1orr4BD, h8kTNaNwezOL)
if Bd7K5yyYri9R:
ZzNkkrM3Te_Y(u_THv8PG7wU7, u9RUygFPHmZS, action=roI3spqORKae(ES5oEprVxulp(b'[\xb1\x9e\x04sA.NK'), chr(3783 - 3683) + '\145' + '\143' + chr(11476 - 11365) + chr(4361 - 4261) + chr(101))('\165' + chr(0b10 + 0o162) + chr(102) + '\x2d' + chr(56)))
except oqIplWWv7W23:
v8jsMqaYV6U2(roI3spqORKae(N5iKB8EqlT7p, roI3spqORKae(ES5oEprVxulp(b'~\xb1\x81\x19~P\x05NW%'), '\x64' + chr(0b11010 + 0o113) + chr(99) + chr(0b101100 + 0o103) + '\x64' + chr(101))(chr(0b101011 + 0o112) + chr(0b1110100) + chr(0b1100110) + chr(769 - 724) + '\070'))(), file=roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'w\x8c\xc0\x00^W4dn6\xb1\r'), chr(0b11111 + 0o105) + chr(101) + '\143' + '\x6f' + chr(4760 - 4660) + '\145')('\x75' + chr(0b1100010 + 0o22) + chr(0b1010010 + 0o24) + chr(0b101101) + chr(819 - 763))))
EE7Tfca7oYF2[LAoOfipUKkWo] -= nzTpIcepk0o8(chr(547 - 499) + '\157' + chr(49), 8)
if EE7Tfca7oYF2[LAoOfipUKkWo] > nzTpIcepk0o8(chr(48) + '\x6f' + '\x30', 8):
v8jsMqaYV6U2(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'J\xbb\x87\x06fM4L\x0f=\xa1k\xaf\x87\x02\xb2\xf3<\xfdN\x91\xb3\x0b\xd9\xa9w\xf0\x10,\xdf\xb1\xd4\xc9\x86\xfb\xd8\x10:\x81\xf91'), chr(100) + '\x65' + '\143' + chr(111) + '\x64' + chr(0b1100011 + 0o2))(chr(4701 - 4584) + '\x74' + '\146' + '\x2d' + chr(0b100111 + 0o21)), roI3spqORKae(ES5oEprVxulp(b'i\xed\xc0?X\x17<D~\x19\x9f\x01'), '\144' + '\145' + chr(9363 - 9264) + '\x6f' + chr(100) + '\x65')(chr(0b110101 + 0o100) + chr(0b1110100) + chr(0b1100110) + chr(0b10001 + 0o34) + '\070'))(roI3spqORKae(gVH10rjKDCEH, roI3spqORKae(ES5oEprVxulp(b'v\xb5\xa7\x1a|n9m\x7f*\xb5\x1c'), '\144' + chr(6757 - 6656) + '\x63' + chr(0b1101111) + '\144' + chr(0b1001111 + 0o26))(chr(0b1110101) + chr(116) + chr(102) + '\055' + '\x38'))(), EE7Tfca7oYF2[LAoOfipUKkWo], LAoOfipUKkWo), file=roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'w\x8c\xc0\x00^W4dn6\xb1\r'), chr(0b100011 + 0o101) + '\145' + chr(99) + chr(0b1100000 + 0o17) + chr(2544 - 2444) + chr(0b1100101))(chr(9363 - 9246) + chr(2471 - 2355) + chr(0b1100110) + chr(0b1011 + 0o42) + '\070')))
return nzTpIcepk0o8('\060' + chr(0b1101110 + 0o1) + chr(471 - 423), 8)
raise
if Bd7K5yyYri9R:
roI3spqORKae(bpyfpu4kTbwL.stderr, roI3spqORKae(ES5oEprVxulp(b'u\xb2\xc3\x1cwT,\x1ac6\xady'), '\144' + chr(9473 - 9372) + chr(5779 - 5680) + '\157' + '\x64' + chr(101))('\165' + chr(116) + chr(0b1100110) + chr(1992 - 1947) + chr(56)))(roI3spqORKae(ES5oEprVxulp(b'\x12'), chr(0b1011100 + 0o10) + chr(0b101000 + 0o75) + chr(697 - 598) + chr(0b1101111) + chr(100) + '\x65')(chr(0b111 + 0o156) + chr(0b1110100) + '\x66' + chr(45) + chr(2503 - 2447)))
return nzTpIcepk0o8(chr(48) + '\x6f' + chr(49), 8)
|
dnanexus/dx-toolkit
|
src/python/dxpy/bindings/dxfile_functions.py
|
upload_local_file
|
def upload_local_file(filename=None, file=None, media_type=None, keep_open=False,
wait_on_close=False, use_existing_dxfile=None, show_progress=False,
write_buffer_size=None, multithread=True, **kwargs):
'''
:param filename: Local filename
:type filename: string
:param file: File-like object
:type file: File-like object
:param media_type: Internet Media Type
:type media_type: string
:param keep_open: If False, closes the file after uploading
:type keep_open: boolean
:param write_buffer_size: Buffer size to use for upload
:type write_buffer_size: int
:param wait_on_close: If True, waits for the file to close
:type wait_on_close: boolean
:param use_existing_dxfile: Instead of creating a new file object, upload to the specified file
:type use_existing_dxfile: :class:`~dxpy.bindings.dxfile.DXFile`
:param multithread: If True, sends multiple write requests asynchronously
:type multithread: boolean
:returns: Remote file handler
:rtype: :class:`~dxpy.bindings.dxfile.DXFile`
Additional optional parameters not listed: all those under
:func:`dxpy.bindings.DXDataObject.new`.
Exactly one of *filename* or *file* is required.
Uploads *filename* or reads from *file* into a new file object (with
media type *media_type* if given) and returns the associated remote
file handler. The "name" property of the newly created remote file
is set to the basename of *filename* or to *file.name* (if it
exists).
Examples::
# Upload from a path
dxpy.upload_local_file("/home/ubuntu/reads.fastq.gz")
# Upload from a file-like object
with open("reads.fastq") as fh:
dxpy.upload_local_file(file=fh)
'''
fd = file if filename is None else open(filename, 'rb')
try:
file_size = os.fstat(fd.fileno()).st_size
except:
file_size = 0
file_is_mmapd = hasattr(fd, "fileno")
if write_buffer_size is None:
write_buffer_size=dxfile.DEFAULT_BUFFER_SIZE
if use_existing_dxfile:
handler = use_existing_dxfile
else:
# Set a reasonable name for the file if none has been set
# already
creation_kwargs = kwargs.copy()
if 'name' not in kwargs:
if filename is not None:
creation_kwargs['name'] = os.path.basename(filename)
else:
# Try to get filename from file-like object
try:
local_file_name = file.name
except AttributeError:
pass
else:
creation_kwargs['name'] = os.path.basename(local_file_name)
# Use 'a' mode because we will be responsible for closing the file
# ourselves later (if requested).
handler = new_dxfile(mode='a', media_type=media_type, write_buffer_size=write_buffer_size,
expected_file_size=file_size, file_is_mmapd=file_is_mmapd, **creation_kwargs)
# For subsequent API calls, don't supply the dataobject metadata
# parameters that are only needed at creation time.
_, remaining_kwargs = dxpy.DXDataObject._get_creation_params(kwargs)
num_ticks = 60
offset = 0
handler._ensure_write_bufsize(**remaining_kwargs)
def can_be_mmapd(fd):
if not hasattr(fd, "fileno"):
return False
mode = os.fstat(fd.fileno()).st_mode
return not (stat.S_ISCHR(mode) or stat.S_ISFIFO(mode))
def read(num_bytes):
"""
Returns a string or mmap'd data containing the next num_bytes of
the file, or up to the end if there are fewer than num_bytes
left.
"""
# If file cannot be mmap'd (e.g. is stdin, or a fifo), fall back
# to doing an actual read from the file.
if not can_be_mmapd(fd):
return fd.read(handler._write_bufsize)
bytes_available = max(file_size - offset, 0)
if bytes_available == 0:
return b""
return mmap.mmap(fd.fileno(), min(handler._write_bufsize, bytes_available), offset=offset, access=mmap.ACCESS_READ)
handler._num_bytes_transmitted = 0
def report_progress(handler, num_bytes):
handler._num_bytes_transmitted += num_bytes
if file_size > 0:
ticks = int(round((handler._num_bytes_transmitted / float(file_size)) * num_ticks))
percent = int(round((handler._num_bytes_transmitted / float(file_size)) * 100))
fmt = "[{done}{pending}] Uploaded {done_bytes:,} of {total:,} bytes ({percent}%) {name}"
sys.stderr.write(fmt.format(done='=' * (ticks - 1) + '>' if ticks > 0 else '',
pending=' ' * (num_ticks - ticks),
done_bytes=handler._num_bytes_transmitted,
total=file_size,
percent=percent,
name=filename if filename is not None else ''))
sys.stderr.flush()
sys.stderr.write("\r")
sys.stderr.flush()
if show_progress:
report_progress(handler, 0)
while True:
buf = read(handler._write_bufsize)
offset += len(buf)
if len(buf) == 0:
break
handler.write(buf,
report_progress_fn=report_progress if show_progress else None,
multithread=multithread,
**remaining_kwargs)
if filename is not None:
fd.close()
handler.flush(report_progress_fn=report_progress if show_progress else None, **remaining_kwargs)
if show_progress:
sys.stderr.write("\n")
sys.stderr.flush()
if not keep_open:
handler.close(block=wait_on_close, report_progress_fn=report_progress if show_progress else None, **remaining_kwargs)
return handler
|
python
|
def upload_local_file(filename=None, file=None, media_type=None, keep_open=False,
wait_on_close=False, use_existing_dxfile=None, show_progress=False,
write_buffer_size=None, multithread=True, **kwargs):
'''
:param filename: Local filename
:type filename: string
:param file: File-like object
:type file: File-like object
:param media_type: Internet Media Type
:type media_type: string
:param keep_open: If False, closes the file after uploading
:type keep_open: boolean
:param write_buffer_size: Buffer size to use for upload
:type write_buffer_size: int
:param wait_on_close: If True, waits for the file to close
:type wait_on_close: boolean
:param use_existing_dxfile: Instead of creating a new file object, upload to the specified file
:type use_existing_dxfile: :class:`~dxpy.bindings.dxfile.DXFile`
:param multithread: If True, sends multiple write requests asynchronously
:type multithread: boolean
:returns: Remote file handler
:rtype: :class:`~dxpy.bindings.dxfile.DXFile`
Additional optional parameters not listed: all those under
:func:`dxpy.bindings.DXDataObject.new`.
Exactly one of *filename* or *file* is required.
Uploads *filename* or reads from *file* into a new file object (with
media type *media_type* if given) and returns the associated remote
file handler. The "name" property of the newly created remote file
is set to the basename of *filename* or to *file.name* (if it
exists).
Examples::
# Upload from a path
dxpy.upload_local_file("/home/ubuntu/reads.fastq.gz")
# Upload from a file-like object
with open("reads.fastq") as fh:
dxpy.upload_local_file(file=fh)
'''
fd = file if filename is None else open(filename, 'rb')
try:
file_size = os.fstat(fd.fileno()).st_size
except:
file_size = 0
file_is_mmapd = hasattr(fd, "fileno")
if write_buffer_size is None:
write_buffer_size=dxfile.DEFAULT_BUFFER_SIZE
if use_existing_dxfile:
handler = use_existing_dxfile
else:
# Set a reasonable name for the file if none has been set
# already
creation_kwargs = kwargs.copy()
if 'name' not in kwargs:
if filename is not None:
creation_kwargs['name'] = os.path.basename(filename)
else:
# Try to get filename from file-like object
try:
local_file_name = file.name
except AttributeError:
pass
else:
creation_kwargs['name'] = os.path.basename(local_file_name)
# Use 'a' mode because we will be responsible for closing the file
# ourselves later (if requested).
handler = new_dxfile(mode='a', media_type=media_type, write_buffer_size=write_buffer_size,
expected_file_size=file_size, file_is_mmapd=file_is_mmapd, **creation_kwargs)
# For subsequent API calls, don't supply the dataobject metadata
# parameters that are only needed at creation time.
_, remaining_kwargs = dxpy.DXDataObject._get_creation_params(kwargs)
num_ticks = 60
offset = 0
handler._ensure_write_bufsize(**remaining_kwargs)
def can_be_mmapd(fd):
if not hasattr(fd, "fileno"):
return False
mode = os.fstat(fd.fileno()).st_mode
return not (stat.S_ISCHR(mode) or stat.S_ISFIFO(mode))
def read(num_bytes):
"""
Returns a string or mmap'd data containing the next num_bytes of
the file, or up to the end if there are fewer than num_bytes
left.
"""
# If file cannot be mmap'd (e.g. is stdin, or a fifo), fall back
# to doing an actual read from the file.
if not can_be_mmapd(fd):
return fd.read(handler._write_bufsize)
bytes_available = max(file_size - offset, 0)
if bytes_available == 0:
return b""
return mmap.mmap(fd.fileno(), min(handler._write_bufsize, bytes_available), offset=offset, access=mmap.ACCESS_READ)
handler._num_bytes_transmitted = 0
def report_progress(handler, num_bytes):
handler._num_bytes_transmitted += num_bytes
if file_size > 0:
ticks = int(round((handler._num_bytes_transmitted / float(file_size)) * num_ticks))
percent = int(round((handler._num_bytes_transmitted / float(file_size)) * 100))
fmt = "[{done}{pending}] Uploaded {done_bytes:,} of {total:,} bytes ({percent}%) {name}"
sys.stderr.write(fmt.format(done='=' * (ticks - 1) + '>' if ticks > 0 else '',
pending=' ' * (num_ticks - ticks),
done_bytes=handler._num_bytes_transmitted,
total=file_size,
percent=percent,
name=filename if filename is not None else ''))
sys.stderr.flush()
sys.stderr.write("\r")
sys.stderr.flush()
if show_progress:
report_progress(handler, 0)
while True:
buf = read(handler._write_bufsize)
offset += len(buf)
if len(buf) == 0:
break
handler.write(buf,
report_progress_fn=report_progress if show_progress else None,
multithread=multithread,
**remaining_kwargs)
if filename is not None:
fd.close()
handler.flush(report_progress_fn=report_progress if show_progress else None, **remaining_kwargs)
if show_progress:
sys.stderr.write("\n")
sys.stderr.flush()
if not keep_open:
handler.close(block=wait_on_close, report_progress_fn=report_progress if show_progress else None, **remaining_kwargs)
return handler
|
[
"def",
"upload_local_file",
"(",
"filename",
"=",
"None",
",",
"file",
"=",
"None",
",",
"media_type",
"=",
"None",
",",
"keep_open",
"=",
"False",
",",
"wait_on_close",
"=",
"False",
",",
"use_existing_dxfile",
"=",
"None",
",",
"show_progress",
"=",
"False",
",",
"write_buffer_size",
"=",
"None",
",",
"multithread",
"=",
"True",
",",
"*",
"*",
"kwargs",
")",
":",
"fd",
"=",
"file",
"if",
"filename",
"is",
"None",
"else",
"open",
"(",
"filename",
",",
"'rb'",
")",
"try",
":",
"file_size",
"=",
"os",
".",
"fstat",
"(",
"fd",
".",
"fileno",
"(",
")",
")",
".",
"st_size",
"except",
":",
"file_size",
"=",
"0",
"file_is_mmapd",
"=",
"hasattr",
"(",
"fd",
",",
"\"fileno\"",
")",
"if",
"write_buffer_size",
"is",
"None",
":",
"write_buffer_size",
"=",
"dxfile",
".",
"DEFAULT_BUFFER_SIZE",
"if",
"use_existing_dxfile",
":",
"handler",
"=",
"use_existing_dxfile",
"else",
":",
"# Set a reasonable name for the file if none has been set",
"# already",
"creation_kwargs",
"=",
"kwargs",
".",
"copy",
"(",
")",
"if",
"'name'",
"not",
"in",
"kwargs",
":",
"if",
"filename",
"is",
"not",
"None",
":",
"creation_kwargs",
"[",
"'name'",
"]",
"=",
"os",
".",
"path",
".",
"basename",
"(",
"filename",
")",
"else",
":",
"# Try to get filename from file-like object",
"try",
":",
"local_file_name",
"=",
"file",
".",
"name",
"except",
"AttributeError",
":",
"pass",
"else",
":",
"creation_kwargs",
"[",
"'name'",
"]",
"=",
"os",
".",
"path",
".",
"basename",
"(",
"local_file_name",
")",
"# Use 'a' mode because we will be responsible for closing the file",
"# ourselves later (if requested).",
"handler",
"=",
"new_dxfile",
"(",
"mode",
"=",
"'a'",
",",
"media_type",
"=",
"media_type",
",",
"write_buffer_size",
"=",
"write_buffer_size",
",",
"expected_file_size",
"=",
"file_size",
",",
"file_is_mmapd",
"=",
"file_is_mmapd",
",",
"*",
"*",
"creation_kwargs",
")",
"# For subsequent API calls, don't supply the dataobject metadata",
"# parameters that are only needed at creation time.",
"_",
",",
"remaining_kwargs",
"=",
"dxpy",
".",
"DXDataObject",
".",
"_get_creation_params",
"(",
"kwargs",
")",
"num_ticks",
"=",
"60",
"offset",
"=",
"0",
"handler",
".",
"_ensure_write_bufsize",
"(",
"*",
"*",
"remaining_kwargs",
")",
"def",
"can_be_mmapd",
"(",
"fd",
")",
":",
"if",
"not",
"hasattr",
"(",
"fd",
",",
"\"fileno\"",
")",
":",
"return",
"False",
"mode",
"=",
"os",
".",
"fstat",
"(",
"fd",
".",
"fileno",
"(",
")",
")",
".",
"st_mode",
"return",
"not",
"(",
"stat",
".",
"S_ISCHR",
"(",
"mode",
")",
"or",
"stat",
".",
"S_ISFIFO",
"(",
"mode",
")",
")",
"def",
"read",
"(",
"num_bytes",
")",
":",
"\"\"\"\n Returns a string or mmap'd data containing the next num_bytes of\n the file, or up to the end if there are fewer than num_bytes\n left.\n \"\"\"",
"# If file cannot be mmap'd (e.g. is stdin, or a fifo), fall back",
"# to doing an actual read from the file.",
"if",
"not",
"can_be_mmapd",
"(",
"fd",
")",
":",
"return",
"fd",
".",
"read",
"(",
"handler",
".",
"_write_bufsize",
")",
"bytes_available",
"=",
"max",
"(",
"file_size",
"-",
"offset",
",",
"0",
")",
"if",
"bytes_available",
"==",
"0",
":",
"return",
"b\"\"",
"return",
"mmap",
".",
"mmap",
"(",
"fd",
".",
"fileno",
"(",
")",
",",
"min",
"(",
"handler",
".",
"_write_bufsize",
",",
"bytes_available",
")",
",",
"offset",
"=",
"offset",
",",
"access",
"=",
"mmap",
".",
"ACCESS_READ",
")",
"handler",
".",
"_num_bytes_transmitted",
"=",
"0",
"def",
"report_progress",
"(",
"handler",
",",
"num_bytes",
")",
":",
"handler",
".",
"_num_bytes_transmitted",
"+=",
"num_bytes",
"if",
"file_size",
">",
"0",
":",
"ticks",
"=",
"int",
"(",
"round",
"(",
"(",
"handler",
".",
"_num_bytes_transmitted",
"/",
"float",
"(",
"file_size",
")",
")",
"*",
"num_ticks",
")",
")",
"percent",
"=",
"int",
"(",
"round",
"(",
"(",
"handler",
".",
"_num_bytes_transmitted",
"/",
"float",
"(",
"file_size",
")",
")",
"*",
"100",
")",
")",
"fmt",
"=",
"\"[{done}{pending}] Uploaded {done_bytes:,} of {total:,} bytes ({percent}%) {name}\"",
"sys",
".",
"stderr",
".",
"write",
"(",
"fmt",
".",
"format",
"(",
"done",
"=",
"'='",
"*",
"(",
"ticks",
"-",
"1",
")",
"+",
"'>'",
"if",
"ticks",
">",
"0",
"else",
"''",
",",
"pending",
"=",
"' '",
"*",
"(",
"num_ticks",
"-",
"ticks",
")",
",",
"done_bytes",
"=",
"handler",
".",
"_num_bytes_transmitted",
",",
"total",
"=",
"file_size",
",",
"percent",
"=",
"percent",
",",
"name",
"=",
"filename",
"if",
"filename",
"is",
"not",
"None",
"else",
"''",
")",
")",
"sys",
".",
"stderr",
".",
"flush",
"(",
")",
"sys",
".",
"stderr",
".",
"write",
"(",
"\"\\r\"",
")",
"sys",
".",
"stderr",
".",
"flush",
"(",
")",
"if",
"show_progress",
":",
"report_progress",
"(",
"handler",
",",
"0",
")",
"while",
"True",
":",
"buf",
"=",
"read",
"(",
"handler",
".",
"_write_bufsize",
")",
"offset",
"+=",
"len",
"(",
"buf",
")",
"if",
"len",
"(",
"buf",
")",
"==",
"0",
":",
"break",
"handler",
".",
"write",
"(",
"buf",
",",
"report_progress_fn",
"=",
"report_progress",
"if",
"show_progress",
"else",
"None",
",",
"multithread",
"=",
"multithread",
",",
"*",
"*",
"remaining_kwargs",
")",
"if",
"filename",
"is",
"not",
"None",
":",
"fd",
".",
"close",
"(",
")",
"handler",
".",
"flush",
"(",
"report_progress_fn",
"=",
"report_progress",
"if",
"show_progress",
"else",
"None",
",",
"*",
"*",
"remaining_kwargs",
")",
"if",
"show_progress",
":",
"sys",
".",
"stderr",
".",
"write",
"(",
"\"\\n\"",
")",
"sys",
".",
"stderr",
".",
"flush",
"(",
")",
"if",
"not",
"keep_open",
":",
"handler",
".",
"close",
"(",
"block",
"=",
"wait_on_close",
",",
"report_progress_fn",
"=",
"report_progress",
"if",
"show_progress",
"else",
"None",
",",
"*",
"*",
"remaining_kwargs",
")",
"return",
"handler"
] |
:param filename: Local filename
:type filename: string
:param file: File-like object
:type file: File-like object
:param media_type: Internet Media Type
:type media_type: string
:param keep_open: If False, closes the file after uploading
:type keep_open: boolean
:param write_buffer_size: Buffer size to use for upload
:type write_buffer_size: int
:param wait_on_close: If True, waits for the file to close
:type wait_on_close: boolean
:param use_existing_dxfile: Instead of creating a new file object, upload to the specified file
:type use_existing_dxfile: :class:`~dxpy.bindings.dxfile.DXFile`
:param multithread: If True, sends multiple write requests asynchronously
:type multithread: boolean
:returns: Remote file handler
:rtype: :class:`~dxpy.bindings.dxfile.DXFile`
Additional optional parameters not listed: all those under
:func:`dxpy.bindings.DXDataObject.new`.
Exactly one of *filename* or *file* is required.
Uploads *filename* or reads from *file* into a new file object (with
media type *media_type* if given) and returns the associated remote
file handler. The "name" property of the newly created remote file
is set to the basename of *filename* or to *file.name* (if it
exists).
Examples::
# Upload from a path
dxpy.upload_local_file("/home/ubuntu/reads.fastq.gz")
# Upload from a file-like object
with open("reads.fastq") as fh:
dxpy.upload_local_file(file=fh)
|
[
":",
"param",
"filename",
":",
"Local",
"filename",
":",
"type",
"filename",
":",
"string",
":",
"param",
"file",
":",
"File",
"-",
"like",
"object",
":",
"type",
"file",
":",
"File",
"-",
"like",
"object",
":",
"param",
"media_type",
":",
"Internet",
"Media",
"Type",
":",
"type",
"media_type",
":",
"string",
":",
"param",
"keep_open",
":",
"If",
"False",
"closes",
"the",
"file",
"after",
"uploading",
":",
"type",
"keep_open",
":",
"boolean",
":",
"param",
"write_buffer_size",
":",
"Buffer",
"size",
"to",
"use",
"for",
"upload",
":",
"type",
"write_buffer_size",
":",
"int",
":",
"param",
"wait_on_close",
":",
"If",
"True",
"waits",
"for",
"the",
"file",
"to",
"close",
":",
"type",
"wait_on_close",
":",
"boolean",
":",
"param",
"use_existing_dxfile",
":",
"Instead",
"of",
"creating",
"a",
"new",
"file",
"object",
"upload",
"to",
"the",
"specified",
"file",
":",
"type",
"use_existing_dxfile",
":",
":",
"class",
":",
"~dxpy",
".",
"bindings",
".",
"dxfile",
".",
"DXFile",
":",
"param",
"multithread",
":",
"If",
"True",
"sends",
"multiple",
"write",
"requests",
"asynchronously",
":",
"type",
"multithread",
":",
"boolean",
":",
"returns",
":",
"Remote",
"file",
"handler",
":",
"rtype",
":",
":",
"class",
":",
"~dxpy",
".",
"bindings",
".",
"dxfile",
".",
"DXFile"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxfile_functions.py#L403-L559
|
train
|
Uploads a local file to the specified file - like object and returns a handler that will be used to handle the upload.
|
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(705 - 657) + chr(0b1101111 + 0o0) + chr(0b110010) + chr(0b110001) + chr(0b110000), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(0b101 + 0o57) + chr(0b1111 + 0o41), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(11076 - 10965) + chr(50) + chr(49) + '\x30', 8), nzTpIcepk0o8('\x30' + '\157' + chr(0b110001) + '\065', 22267 - 22259), nzTpIcepk0o8(chr(409 - 361) + chr(0b1101111) + chr(50) + chr(0b110110) + '\062', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(1248 - 1199) + '\x32' + chr(1807 - 1757), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(49) + chr(0b11001 + 0o33) + chr(0b101001 + 0o11), 0b1000), nzTpIcepk0o8(chr(2257 - 2209) + chr(0b1101111) + chr(0b100001 + 0o22) + chr(55) + chr(50), 55872 - 55864), nzTpIcepk0o8('\x30' + '\157' + '\062' + '\x33' + '\063', 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(0b110101) + chr(536 - 484), 0b1000), nzTpIcepk0o8('\060' + chr(3197 - 3086) + chr(0b110011) + chr(52) + '\065', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + '\061' + '\x36' + '\x34', 2382 - 2374), nzTpIcepk0o8(chr(48) + chr(0b1000101 + 0o52) + chr(1409 - 1358) + chr(0b110101) + '\x34', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(5292 - 5181) + '\063' + chr(1450 - 1402) + chr(0b110011), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(49) + chr(1044 - 989), 0o10), nzTpIcepk0o8(chr(0b100000 + 0o20) + '\157' + '\x31' + '\x36', 16417 - 16409), nzTpIcepk0o8(chr(0b100110 + 0o12) + '\157' + chr(2000 - 1951) + chr(0b110100) + '\061', 0b1000), nzTpIcepk0o8(chr(0b10001 + 0o37) + chr(11523 - 11412) + chr(50) + chr(0b10001 + 0o40) + '\x32', 54715 - 54707), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\067' + chr(49), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1100110 + 0o11) + '\x31' + chr(0b110111) + chr(50), 7970 - 7962), nzTpIcepk0o8(chr(0b110000) + chr(1387 - 1276) + '\065' + '\x34', 8), nzTpIcepk0o8(chr(0b11100 + 0o24) + '\157' + chr(0b11000 + 0o32) + '\062' + chr(1906 - 1857), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(7331 - 7220) + chr(0b101 + 0o56) + chr(0b11110 + 0o25) + chr(0b0 + 0o60), 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(0b100101 + 0o22) + chr(0b110111), 14724 - 14716), nzTpIcepk0o8('\x30' + '\157' + '\063' + chr(1232 - 1181) + chr(111 - 63), 8), nzTpIcepk0o8('\x30' + chr(3169 - 3058) + '\063' + chr(2596 - 2541) + '\x36', 0o10), nzTpIcepk0o8(chr(599 - 551) + chr(0b1101111) + chr(0b101000 + 0o11) + '\060' + chr(51), 5831 - 5823), nzTpIcepk0o8(chr(0b0 + 0o60) + chr(111) + chr(448 - 395) + '\x37', 41984 - 41976), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110011) + chr(0b100110 + 0o16) + chr(0b110100), 37878 - 37870), nzTpIcepk0o8(chr(0b1010 + 0o46) + chr(0b1001110 + 0o41) + '\061' + chr(0b1111 + 0o46), 8), nzTpIcepk0o8('\060' + '\157' + chr(1864 - 1813) + '\063' + chr(53), 0o10), nzTpIcepk0o8(chr(0b10011 + 0o35) + chr(111) + chr(0b110011 + 0o0) + chr(0b110111) + chr(0b110011), 0b1000), nzTpIcepk0o8(chr(48) + chr(8157 - 8046) + '\061' + '\063' + chr(631 - 578), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1000011 + 0o54) + chr(0b110001) + chr(0b100010 + 0o16), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x31' + '\061' + chr(0b101000 + 0o10), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(879 - 830) + chr(1189 - 1134) + chr(52), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + '\x33' + chr(331 - 276) + chr(0b11100 + 0o27), 8), nzTpIcepk0o8('\060' + '\x6f' + '\x37' + chr(2225 - 2177), ord("\x08")), nzTpIcepk0o8(chr(0b10100 + 0o34) + chr(0b1011111 + 0o20) + chr(0b110010) + chr(53) + '\x33', 0o10), nzTpIcepk0o8(chr(0b101011 + 0o5) + chr(0b100111 + 0o110) + chr(0b110011) + chr(49) + chr(58 - 10), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + chr(3966 - 3855) + '\x35' + chr(0b110000), 55260 - 55252)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xa6'), chr(0b1100100) + chr(0b1001 + 0o134) + chr(9186 - 9087) + chr(0b1101111) + chr(4899 - 4799) + chr(8454 - 8353))(chr(0b1110101) + '\x74' + chr(0b1100110) + chr(45) + '\x38') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def RsFPZbxjxrWP(FxZHtXEolYsL=None, GtsVUCYulgYX=None, gIhMelFOMI1V=None, E5FQFZ9SNXcA=nzTpIcepk0o8('\060' + chr(111) + chr(0b101001 + 0o7), ord("\x08")), aKyVSgpVrEdB=nzTpIcepk0o8(chr(0b110000) + chr(10515 - 10404) + '\060', 8), w4hDF34hElVM=None, Bd7K5yyYri9R=nzTpIcepk0o8('\060' + '\157' + chr(48), 8), cEqsHIQ2VBYK=None, XEeWm9N5Kgna=nzTpIcepk0o8('\x30' + chr(111) + chr(0b11 + 0o56), ord("\x08")), **q5n0sHDDTy90):
RW6jRKOlF6C5 = GtsVUCYulgYX if FxZHtXEolYsL is None else DnU3Rq9N5ala(FxZHtXEolYsL, roI3spqORKae(ES5oEprVxulp(b'\xfaB'), chr(0b1100100) + '\x65' + '\x63' + '\x6f' + chr(100) + '\x65')(chr(0b1110101) + chr(0b1110100) + chr(9271 - 9169) + chr(45) + chr(834 - 778)))
try:
u9RUygFPHmZS = aHUqKstZLeS6.fstat(RW6jRKOlF6C5.fileno()).st_size
except UtiWT6f6p9yZ:
u9RUygFPHmZS = nzTpIcepk0o8(chr(48) + chr(0b1010111 + 0o30) + chr(48), 8)
Pt79NvKXNlMC = dRKdVnHPFq7C(RW6jRKOlF6C5, roI3spqORKae(ES5oEprVxulp(b'\xeeI\xe4h\xdc='), chr(0b1001001 + 0o33) + chr(0b1100101) + chr(0b101 + 0o136) + chr(111) + chr(0b1100100) + '\145')(chr(0b1110101) + '\164' + chr(102) + chr(45) + chr(56)))
if cEqsHIQ2VBYK is None:
cEqsHIQ2VBYK = gVH10rjKDCEH.DEFAULT_BUFFER_SIZE
if w4hDF34hElVM:
AiPqNgD8WRmS = w4hDF34hElVM
else:
MWPObZv7BPPr = q5n0sHDDTy90.copy()
if roI3spqORKae(ES5oEprVxulp(b'\xe6A\xe5h'), '\144' + chr(0b1100101) + '\143' + '\157' + '\144' + '\145')('\x75' + chr(0b1110100) + '\x66' + '\055' + chr(0b10000 + 0o50)) not in q5n0sHDDTy90:
if FxZHtXEolYsL is not None:
MWPObZv7BPPr[roI3spqORKae(ES5oEprVxulp(b'\xe6A\xe5h'), '\x64' + chr(6494 - 6393) + chr(1781 - 1682) + chr(111) + chr(0b1100100) + chr(0b1100101))(chr(0b1000 + 0o155) + '\x74' + chr(102) + chr(0b100 + 0o51) + '\x38')] = aHUqKstZLeS6.path.pLvIyXSV7qW5(FxZHtXEolYsL)
else:
try:
sGapapUKy4FU = GtsVUCYulgYX.SLVB2BPA_mIe
except bIsJhlpYrrU2:
pass
else:
MWPObZv7BPPr[roI3spqORKae(ES5oEprVxulp(b'\xe6A\xe5h'), chr(0b100 + 0o140) + chr(101) + chr(99) + chr(0b111010 + 0o65) + '\144' + chr(0b1100101))(chr(117) + chr(116) + chr(102) + '\055' + chr(1080 - 1024))] = aHUqKstZLeS6.path.pLvIyXSV7qW5(sGapapUKy4FU)
AiPqNgD8WRmS = C9hd0eGqQWa0(mode=roI3spqORKae(ES5oEprVxulp(b'\xe9'), chr(100) + chr(0b1100101) + chr(0b1100011) + chr(0b1101111) + '\144' + chr(0b1100101))(chr(3101 - 2984) + chr(0b1110100) + chr(1995 - 1893) + '\x2d' + '\070'), media_type=gIhMelFOMI1V, write_buffer_size=cEqsHIQ2VBYK, expected_file_size=u9RUygFPHmZS, file_is_mmapd=Pt79NvKXNlMC, **MWPObZv7BPPr)
(zIqcgNgQ9U6F, yS8WmAyRjQ15) = SsdNdRxXOwsF.DXDataObject._get_creation_params(q5n0sHDDTy90)
vYvVdhywHupa = nzTpIcepk0o8('\x30' + chr(111) + '\x37' + chr(52), ord("\x08"))
GuX46MBAOnaQ = nzTpIcepk0o8('\x30' + chr(0b110010 + 0o75) + chr(0b11011 + 0o25), 8)
roI3spqORKae(AiPqNgD8WRmS, roI3spqORKae(ES5oEprVxulp(b'\xd7E\xe6~\xc7 \x07\xa5\xec^\x8c\x00\x89\x9cm{\x07\xf9P\x00I'), chr(6806 - 6706) + '\145' + '\x63' + chr(0b11 + 0o154) + '\144' + '\x65')(chr(117) + chr(0b1110100) + '\146' + chr(0b101 + 0o50) + '\070'))(**yS8WmAyRjQ15)
def Ko3v0Uzuh141(RW6jRKOlF6C5):
if not dRKdVnHPFq7C(RW6jRKOlF6C5, roI3spqORKae(ES5oEprVxulp(b'\xeeI\xe4h\xdc='), chr(0b1011000 + 0o14) + chr(101) + '\143' + chr(111) + chr(0b1100100) + '\145')('\x75' + chr(0b101010 + 0o112) + chr(0b1001000 + 0o36) + chr(1867 - 1822) + chr(556 - 500))):
return nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x30', 8)
bmJ7SvuZE3jD = aHUqKstZLeS6.fstat(RW6jRKOlF6C5.fileno()).st_mode
return not (roI3spqORKae(uHkyNaF6hl2K, roI3spqORKae(ES5oEprVxulp(b'\xdb\x7f\xc1^\xf1\x1a0'), chr(0b10100 + 0o120) + chr(0b1011 + 0o132) + '\143' + chr(0b1101111) + chr(0b1100100) + '\x65')('\165' + '\164' + chr(0b100110 + 0o100) + chr(0b101101) + '\x38'))(bmJ7SvuZE3jD) or roI3spqORKae(uHkyNaF6hl2K, roI3spqORKae(ES5oEprVxulp(b'\xdb\x7f\xc1^\xf4\x1b$\xb5'), chr(0b1100100) + chr(101) + chr(99) + chr(111) + chr(1769 - 1669) + '\x65')('\x75' + '\x74' + chr(0b1100110) + '\x2d' + chr(2686 - 2630)))(bmJ7SvuZE3jD))
def eoXknH7XUn7m(BsO8PCyvkGVx):
if not Ko3v0Uzuh141(RW6jRKOlF6C5):
return roI3spqORKae(RW6jRKOlF6C5, roI3spqORKae(ES5oEprVxulp(b'\xedO\xd0f\xdc\x1aU\xa2\xceB\xd2\x19'), chr(7872 - 7772) + chr(0b1100101) + chr(0b1100011) + chr(0b1101111) + chr(100) + '\145')(chr(117) + '\164' + '\x66' + chr(0b101101) + chr(0b111000)))(roI3spqORKae(AiPqNgD8WRmS, roI3spqORKae(ES5oEprVxulp(b'\xd7W\xfad\xc67=\x98\xeeJ\x96\x1d\x96\xa6'), chr(100) + chr(0b111110 + 0o47) + chr(0b1100011) + chr(111) + '\144' + chr(0b1001110 + 0o27))(chr(0b1110101) + chr(2036 - 1920) + chr(6504 - 6402) + '\x2d' + '\x38')))
H5vKE0Rs2uZG = KV9ckIhroIia(u9RUygFPHmZS - GuX46MBAOnaQ, nzTpIcepk0o8(chr(339 - 291) + chr(0b10110 + 0o131) + chr(48), 8))
if H5vKE0Rs2uZG == nzTpIcepk0o8(chr(0b101001 + 0o7) + '\157' + chr(0b10001 + 0o37), 8):
return ES5oEprVxulp(b'')
return roI3spqORKae(QIE48Om1ffFm, roI3spqORKae(ES5oEprVxulp(b'\xe5M\xe9}'), chr(0b1100100) + '\145' + chr(0b100000 + 0o103) + chr(111) + chr(812 - 712) + '\x65')(chr(7421 - 7304) + '\x74' + '\146' + '\x2d' + chr(0b100001 + 0o27)))(roI3spqORKae(RW6jRKOlF6C5, roI3spqORKae(ES5oEprVxulp(b'\xdag\xe1O\x87\x0b\x06\xac\xee{\x82\x15'), chr(0b1100100) + '\x65' + '\143' + chr(0b1010001 + 0o36) + '\144' + chr(0b1100101))(chr(117) + '\164' + chr(0b1100110) + chr(1203 - 1158) + '\070'))(), XURpmPuEWCNF(roI3spqORKae(AiPqNgD8WRmS, roI3spqORKae(ES5oEprVxulp(b'\xd7W\xfad\xc67=\x98\xeeJ\x96\x1d\x96\xa6'), '\144' + chr(0b1100101) + '\143' + chr(8453 - 8342) + chr(0b1100100) + chr(0b111011 + 0o52))(chr(5778 - 5661) + chr(10751 - 10635) + '\x66' + '\055' + '\x38')), H5vKE0Rs2uZG), offset=GuX46MBAOnaQ, access=roI3spqORKae(QIE48Om1ffFm, roI3spqORKae(ES5oEprVxulp(b'\xc9c\xcbH\xe1\x01=\xa8\xdem\xa1'), chr(100) + chr(0b1100101) + chr(99) + chr(0b100000 + 0o117) + chr(0b1010100 + 0o20) + chr(0b1100101))(chr(11346 - 11229) + '\164' + chr(8964 - 8862) + '\x2d' + chr(0b111000))))
AiPqNgD8WRmS.e3yHrgfUTBr0 = nzTpIcepk0o8(chr(1243 - 1195) + chr(0b1101111) + chr(1047 - 999), 8)
def KTOYGBKfbNVO(AiPqNgD8WRmS, BsO8PCyvkGVx):
AiPqNgD8WRmS.e3yHrgfUTBr0 += BsO8PCyvkGVx
if u9RUygFPHmZS > nzTpIcepk0o8(chr(0b110000) + chr(0b100110 + 0o111) + chr(0b1010 + 0o46), 8):
BzxtgAKPRA85 = nzTpIcepk0o8(sOS7b2Ofrbne(AiPqNgD8WRmS.e3yHrgfUTBr0 / jLW6pRf2DSRk(u9RUygFPHmZS) * vYvVdhywHupa))
bMq4Yrv_tMi0 = nzTpIcepk0o8(sOS7b2Ofrbne(AiPqNgD8WRmS.e3yHrgfUTBr0 / jLW6pRf2DSRk(u9RUygFPHmZS) * nzTpIcepk0o8('\060' + chr(0b1000101 + 0o52) + chr(49) + '\064' + '\064', 0o10)))
JummcHpaNLEw = roI3spqORKae(ES5oEprVxulp(b'\xd3[\xecb\xdc7\x1f\x81\xebI\x8b\x10\x85\xadhs<\xaal\n@\xfe\xb9[\xbd\x9acT\x80b\xb3\x9e\x02j1\x08\x9eK\x91\xe4\xf5\x00\xe7k\x92)\x16\x95\xefM\x89N\xc0\xbe/l\x18\xfe\\\t\x0c\xb9\xa3O\xbd\x8c J\x8ay\xa0\xdet(3\x12\x9aU\xce\xb5'), chr(0b1100100) + chr(101) + chr(0b1100011) + chr(5744 - 5633) + chr(0b1010000 + 0o24) + chr(0b111 + 0o136))(chr(0b1110101) + chr(0b1110011 + 0o1) + chr(102) + '\055' + chr(56))
roI3spqORKae(bpyfpu4kTbwL.stderr, roI3spqORKae(ES5oEprVxulp(b'\xe5L\xb8e\xda"\x14\xcb\xd7\\\x94F'), chr(0b110000 + 0o64) + chr(5892 - 5791) + chr(0b11111 + 0o104) + chr(111) + chr(0b101011 + 0o71) + chr(0b110010 + 0o63))(chr(0b1100101 + 0o20) + chr(12714 - 12598) + '\x66' + '\055' + chr(1930 - 1874)))(roI3spqORKae(JummcHpaNLEw, roI3spqORKae(ES5oEprVxulp(b'\xf9\x13\xbbF\xf5a\x04\x95\xcas\xa6>'), chr(0b1100010 + 0o2) + '\x65' + chr(0b1100011) + chr(111) + chr(0b0 + 0o144) + chr(101))('\165' + chr(0b100101 + 0o117) + '\x66' + chr(0b101101) + chr(0b110101 + 0o3)))(done=roI3spqORKae(ES5oEprVxulp(b'\xb5'), '\144' + chr(0b1100101) + '\143' + '\x6f' + chr(0b10001 + 0o123) + chr(7079 - 6978))('\165' + chr(0b1110100) + '\146' + chr(951 - 906) + chr(2604 - 2548)) * (BzxtgAKPRA85 - nzTpIcepk0o8(chr(48) + chr(0b1010010 + 0o35) + chr(0b110001), 8)) + roI3spqORKae(ES5oEprVxulp(b'\xb6'), '\x64' + chr(0b1100101) + '\x63' + '\x6f' + chr(3609 - 3509) + chr(0b111001 + 0o54))(chr(117) + chr(11815 - 11699) + chr(3848 - 3746) + chr(45) + '\x38') if BzxtgAKPRA85 > nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\060', 8) else roI3spqORKae(ES5oEprVxulp(b''), chr(100) + '\x65' + chr(0b1011000 + 0o13) + chr(111) + chr(1522 - 1422) + chr(2993 - 2892))('\165' + '\164' + chr(0b1001011 + 0o33) + chr(45) + chr(589 - 533)), pending=roI3spqORKae(ES5oEprVxulp(b'\xa8'), chr(100) + chr(0b1100101) + chr(5822 - 5723) + '\157' + chr(0b1100100) + '\145')('\165' + chr(0b1000101 + 0o57) + '\146' + chr(1021 - 976) + chr(0b111000)) * (vYvVdhywHupa - BzxtgAKPRA85), done_bytes=roI3spqORKae(AiPqNgD8WRmS, roI3spqORKae(ES5oEprVxulp(b'\xed\x13\xf1E\xc05\x04\xaf\xcfn\x97D'), '\144' + '\x65' + chr(99) + chr(111) + chr(100) + chr(101))(chr(0b1101001 + 0o14) + chr(0b111100 + 0o70) + chr(0b100110 + 0o100) + chr(45) + chr(0b111000))), total=u9RUygFPHmZS, percent=bMq4Yrv_tMi0, name=FxZHtXEolYsL if FxZHtXEolYsL is not None else roI3spqORKae(ES5oEprVxulp(b''), '\144' + chr(2003 - 1902) + chr(2429 - 2330) + '\157' + '\144' + chr(0b1011011 + 0o12))('\x75' + '\164' + chr(2272 - 2170) + chr(45) + '\070')))
roI3spqORKae(bpyfpu4kTbwL.stderr, roI3spqORKae(ES5oEprVxulp(b'\xe3w\xf8t\xf0 4\xad\xd9\\\x961'), chr(100) + chr(6606 - 6505) + chr(0b1100011) + '\157' + chr(100) + '\145')(chr(0b1101 + 0o150) + chr(0b11 + 0o161) + '\146' + chr(0b1000 + 0o45) + chr(56)))()
roI3spqORKae(bpyfpu4kTbwL.stderr, roI3spqORKae(ES5oEprVxulp(b'\xe5L\xb8e\xda"\x14\xcb\xd7\\\x94F'), chr(100) + '\x65' + chr(0b1000001 + 0o42) + chr(0b10000 + 0o137) + '\x64' + chr(0b11111 + 0o106))(chr(117) + '\164' + '\x66' + '\x2d' + chr(0b101010 + 0o16)))(roI3spqORKae(ES5oEprVxulp(b'\x85'), chr(100) + chr(101) + '\143' + chr(0b10010 + 0o135) + chr(6107 - 6007) + '\145')('\165' + '\164' + chr(0b1100110) + chr(298 - 253) + chr(0b111000)))
roI3spqORKae(bpyfpu4kTbwL.stderr, roI3spqORKae(ES5oEprVxulp(b'\xe3w\xf8t\xf0 4\xad\xd9\\\x961'), chr(9272 - 9172) + chr(0b110100 + 0o61) + '\143' + chr(0b1010001 + 0o36) + '\144' + chr(0b1100101))('\x75' + '\164' + chr(102) + chr(45) + '\x38'))()
if Bd7K5yyYri9R:
KTOYGBKfbNVO(AiPqNgD8WRmS, nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110000), 8))
while nzTpIcepk0o8(chr(1818 - 1770) + chr(111) + chr(49), 8):
nIuXIilShoNQ = eoXknH7XUn7m(AiPqNgD8WRmS._write_bufsize)
GuX46MBAOnaQ += ftfygxgFas5X(nIuXIilShoNQ)
if ftfygxgFas5X(nIuXIilShoNQ) == nzTpIcepk0o8(chr(880 - 832) + chr(0b110000 + 0o77) + chr(0b110000), 8):
break
roI3spqORKae(AiPqNgD8WRmS, roI3spqORKae(ES5oEprVxulp(b'\xe5L\xb8e\xda"\x14\xcb\xd7\\\x94F'), chr(100) + chr(0b1100101) + '\x63' + chr(0b101001 + 0o106) + chr(0b1100100) + '\145')(chr(10637 - 10520) + chr(0b1110100) + '\146' + chr(509 - 464) + '\070'))(nIuXIilShoNQ, report_progress_fn=KTOYGBKfbNVO if Bd7K5yyYri9R else None, multithread=XEeWm9N5Kgna, **yS8WmAyRjQ15)
if FxZHtXEolYsL is not None:
roI3spqORKae(RW6jRKOlF6C5, roI3spqORKae(ES5oEprVxulp(b'\xd2E\xf9:\xf11\x04\xc3\xceH\xdd\x1e'), '\144' + chr(0b1100000 + 0o5) + chr(0b1100011) + chr(0b1001010 + 0o45) + chr(0b11000 + 0o114) + '\145')(chr(0b1110101) + chr(12804 - 12688) + '\146' + '\055' + chr(56)))()
roI3spqORKae(AiPqNgD8WRmS, roI3spqORKae(ES5oEprVxulp(b'\xe3w\xf8t\xf0 4\xad\xd9\\\x961'), '\x64' + chr(0b111111 + 0o46) + chr(0b1011001 + 0o12) + chr(111) + chr(394 - 294) + chr(101))(chr(0b1110101) + '\164' + chr(7772 - 7670) + chr(0b101101) + chr(0b110110 + 0o2)))(report_progress_fn=KTOYGBKfbNVO if Bd7K5yyYri9R else None, **yS8WmAyRjQ15)
if Bd7K5yyYri9R:
roI3spqORKae(bpyfpu4kTbwL.stderr, roI3spqORKae(ES5oEprVxulp(b'\xe5L\xb8e\xda"\x14\xcb\xd7\\\x94F'), '\x64' + '\x65' + '\143' + chr(111) + chr(0b1011011 + 0o11) + '\145')('\165' + chr(0b1010000 + 0o44) + chr(102) + chr(45) + chr(247 - 191)))(roI3spqORKae(ES5oEprVxulp(b'\x82'), '\x64' + chr(0b1100101) + chr(0b111111 + 0o44) + chr(0b1101111) + '\144' + chr(0b1100101))(chr(117) + '\x74' + chr(102) + chr(0b1001 + 0o44) + '\070'))
roI3spqORKae(bpyfpu4kTbwL.stderr, roI3spqORKae(ES5oEprVxulp(b'\xe3w\xf8t\xf0 4\xad\xd9\\\x961'), '\x64' + chr(101) + chr(2386 - 2287) + chr(0b1101111) + chr(1221 - 1121) + chr(0b100000 + 0o105))(chr(0b101011 + 0o112) + chr(0b1110100) + chr(0b1010101 + 0o21) + chr(45) + chr(0b11 + 0o65)))()
if not E5FQFZ9SNXcA:
roI3spqORKae(AiPqNgD8WRmS, roI3spqORKae(ES5oEprVxulp(b'\xd2E\xf9:\xf11\x04\xc3\xceH\xdd\x1e'), chr(0b1001010 + 0o32) + '\145' + chr(0b101000 + 0o73) + chr(0b1101111) + chr(0b1100100) + chr(5011 - 4910))(chr(0b1110101) + '\164' + chr(0b1100110) + chr(0b101101) + chr(0b100000 + 0o30)))(block=aKyVSgpVrEdB, report_progress_fn=KTOYGBKfbNVO if Bd7K5yyYri9R else None, **yS8WmAyRjQ15)
return AiPqNgD8WRmS
|
dnanexus/dx-toolkit
|
src/python/dxpy/bindings/dxfile_functions.py
|
upload_string
|
def upload_string(to_upload, media_type=None, keep_open=False, wait_on_close=False, **kwargs):
"""
:param to_upload: String to upload into a file
:type to_upload: string
:param media_type: Internet Media Type
:type media_type: string
:param keep_open: If False, closes the file after uploading
:type keep_open: boolean
:param wait_on_close: If True, waits for the file to close
:type wait_on_close: boolean
:returns: Remote file handler
:rtype: :class:`~dxpy.bindings.dxfile.DXFile`
Additional optional parameters not listed: all those under
:func:`dxpy.bindings.DXDataObject.new`.
Uploads the data in the string *to_upload* into a new file object
(with media type *media_type* if given) and returns the associated
remote file handler.
"""
# Use 'a' mode because we will be responsible for closing the file
# ourselves later (if requested).
handler = new_dxfile(media_type=media_type, mode='a', **kwargs)
# For subsequent API calls, don't supply the dataobject metadata
# parameters that are only needed at creation time.
_, remaining_kwargs = dxpy.DXDataObject._get_creation_params(kwargs)
handler.write(to_upload, **remaining_kwargs)
if not keep_open:
handler.close(block=wait_on_close, **remaining_kwargs)
return handler
|
python
|
def upload_string(to_upload, media_type=None, keep_open=False, wait_on_close=False, **kwargs):
"""
:param to_upload: String to upload into a file
:type to_upload: string
:param media_type: Internet Media Type
:type media_type: string
:param keep_open: If False, closes the file after uploading
:type keep_open: boolean
:param wait_on_close: If True, waits for the file to close
:type wait_on_close: boolean
:returns: Remote file handler
:rtype: :class:`~dxpy.bindings.dxfile.DXFile`
Additional optional parameters not listed: all those under
:func:`dxpy.bindings.DXDataObject.new`.
Uploads the data in the string *to_upload* into a new file object
(with media type *media_type* if given) and returns the associated
remote file handler.
"""
# Use 'a' mode because we will be responsible for closing the file
# ourselves later (if requested).
handler = new_dxfile(media_type=media_type, mode='a', **kwargs)
# For subsequent API calls, don't supply the dataobject metadata
# parameters that are only needed at creation time.
_, remaining_kwargs = dxpy.DXDataObject._get_creation_params(kwargs)
handler.write(to_upload, **remaining_kwargs)
if not keep_open:
handler.close(block=wait_on_close, **remaining_kwargs)
return handler
|
[
"def",
"upload_string",
"(",
"to_upload",
",",
"media_type",
"=",
"None",
",",
"keep_open",
"=",
"False",
",",
"wait_on_close",
"=",
"False",
",",
"*",
"*",
"kwargs",
")",
":",
"# Use 'a' mode because we will be responsible for closing the file",
"# ourselves later (if requested).",
"handler",
"=",
"new_dxfile",
"(",
"media_type",
"=",
"media_type",
",",
"mode",
"=",
"'a'",
",",
"*",
"*",
"kwargs",
")",
"# For subsequent API calls, don't supply the dataobject metadata",
"# parameters that are only needed at creation time.",
"_",
",",
"remaining_kwargs",
"=",
"dxpy",
".",
"DXDataObject",
".",
"_get_creation_params",
"(",
"kwargs",
")",
"handler",
".",
"write",
"(",
"to_upload",
",",
"*",
"*",
"remaining_kwargs",
")",
"if",
"not",
"keep_open",
":",
"handler",
".",
"close",
"(",
"block",
"=",
"wait_on_close",
",",
"*",
"*",
"remaining_kwargs",
")",
"return",
"handler"
] |
:param to_upload: String to upload into a file
:type to_upload: string
:param media_type: Internet Media Type
:type media_type: string
:param keep_open: If False, closes the file after uploading
:type keep_open: boolean
:param wait_on_close: If True, waits for the file to close
:type wait_on_close: boolean
:returns: Remote file handler
:rtype: :class:`~dxpy.bindings.dxfile.DXFile`
Additional optional parameters not listed: all those under
:func:`dxpy.bindings.DXDataObject.new`.
Uploads the data in the string *to_upload* into a new file object
(with media type *media_type* if given) and returns the associated
remote file handler.
|
[
":",
"param",
"to_upload",
":",
"String",
"to",
"upload",
"into",
"a",
"file",
":",
"type",
"to_upload",
":",
"string",
":",
"param",
"media_type",
":",
"Internet",
"Media",
"Type",
":",
"type",
"media_type",
":",
"string",
":",
"param",
"keep_open",
":",
"If",
"False",
"closes",
"the",
"file",
"after",
"uploading",
":",
"type",
"keep_open",
":",
"boolean",
":",
"param",
"wait_on_close",
":",
"If",
"True",
"waits",
"for",
"the",
"file",
"to",
"close",
":",
"type",
"wait_on_close",
":",
"boolean",
":",
"returns",
":",
"Remote",
"file",
"handler",
":",
"rtype",
":",
":",
"class",
":",
"~dxpy",
".",
"bindings",
".",
"dxfile",
".",
"DXFile"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxfile_functions.py#L561-L595
|
train
|
Uploads a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kPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__
ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b10000 + 0o40) + chr(8167 - 8056) + '\x32' + chr(54) + chr(434 - 386), 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(0b10010 + 0o41) + '\x33' + '\060', 0o10), nzTpIcepk0o8(chr(0b100010 + 0o16) + chr(12266 - 12155) + chr(51) + chr(1820 - 1766), ord("\x08")), nzTpIcepk0o8(chr(0b1100 + 0o44) + chr(0b1101101 + 0o2) + chr(0b11001 + 0o31) + chr(0b110111) + '\062', 0b1000), nzTpIcepk0o8(chr(48) + chr(5363 - 5252) + '\x32' + chr(0b110110) + chr(0b110001), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110001) + chr(0b110001) + chr(2759 - 2705), 0o10), nzTpIcepk0o8(chr(2168 - 2120) + chr(1114 - 1003) + '\x33' + '\x37' + chr(54), 0b1000), nzTpIcepk0o8(chr(0b10010 + 0o36) + chr(9794 - 9683) + '\063' + chr(0b110010) + '\x34', 0b1000), nzTpIcepk0o8(chr(1890 - 1842) + chr(7237 - 7126) + chr(0b110011) + chr(0b11110 + 0o30) + '\067', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(7786 - 7675) + '\x33' + '\x34' + chr(49), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(49) + '\067' + chr(945 - 893), 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(51) + chr(0b10000 + 0o43) + chr(0b110111), 0b1000), nzTpIcepk0o8(chr(677 - 629) + '\157' + chr(0b1000 + 0o51) + chr(1364 - 1310) + '\x32', 21956 - 21948), nzTpIcepk0o8(chr(0b11110 + 0o22) + chr(0b1101111) + '\061' + chr(0b110000) + '\063', ord("\x08")), nzTpIcepk0o8(chr(0b101010 + 0o6) + chr(6344 - 6233) + '\066' + chr(1121 - 1072), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + '\x31' + chr(48) + chr(799 - 744), ord("\x08")), nzTpIcepk0o8(chr(0b100 + 0o54) + chr(10408 - 10297) + chr(1692 - 1642) + chr(1795 - 1742) + chr(0b110010), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110010) + chr(2204 - 2153) + chr(1693 - 1642), 10022 - 10014), nzTpIcepk0o8('\060' + chr(0b1100111 + 0o10) + chr(1291 - 1241) + chr(52) + '\064', ord("\x08")), nzTpIcepk0o8(chr(1062 - 1014) + chr(111) + chr(1018 - 966), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110011) + '\061' + '\065', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b101 + 0o55) + chr(0b110010) + '\061', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b11101 + 0o122) + '\x31' + chr(0b110111) + '\065', 0b1000), nzTpIcepk0o8(chr(48) + chr(11995 - 11884) + chr(49) + chr(2592 - 2538) + '\060', 26598 - 26590), nzTpIcepk0o8(chr(0b10011 + 0o35) + chr(10055 - 9944) + chr(49) + chr(52) + chr(0b101111 + 0o7), 0o10), nzTpIcepk0o8('\x30' + chr(0b10111 + 0o130) + chr(0b110101) + '\x33', 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(0b110001) + chr(0b11000 + 0o33) + '\061', 0o10), nzTpIcepk0o8(chr(1009 - 961) + '\157' + chr(1655 - 1604) + chr(49), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110010) + '\062' + chr(51), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110011) + '\060', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x33' + chr(0b1010 + 0o55) + '\063', 0b1000), nzTpIcepk0o8(chr(0b11001 + 0o27) + '\x6f' + chr(0b10 + 0o57) + chr(0b110000), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b101001 + 0o10) + chr(1817 - 1762) + '\065', 8), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b10001 + 0o42) + chr(0b110110) + chr(0b100000 + 0o21), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b11001 + 0o31) + chr(1892 - 1841) + chr(0b110100), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110011) + '\x36' + chr(0b110001), 8), nzTpIcepk0o8('\x30' + chr(0b1101010 + 0o5) + chr(51) + '\060' + '\062', 11333 - 11325), nzTpIcepk0o8('\060' + '\x6f' + chr(1283 - 1234) + chr(0b110110) + '\062', 8), nzTpIcepk0o8('\x30' + chr(6418 - 6307) + chr(0b110011) + chr(2348 - 2295) + chr(2765 - 2712), 37683 - 37675), nzTpIcepk0o8('\x30' + '\157' + chr(0b110001 + 0o0) + chr(0b101100 + 0o6) + '\x36', ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + chr(0b10100 + 0o133) + chr(0b1000 + 0o55) + chr(48), 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x9e'), chr(0b1100100) + chr(0b1010000 + 0o25) + chr(0b1010011 + 0o20) + chr(8418 - 8307) + '\144' + chr(0b110100 + 0o61))(chr(0b110101 + 0o100) + '\x74' + chr(368 - 266) + chr(0b101101) + '\x38') + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def hcrBRFgm65WW(HL01d8tgWx_g, gIhMelFOMI1V=None, E5FQFZ9SNXcA=nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\060', 0b1000), aKyVSgpVrEdB=nzTpIcepk0o8(chr(0b1111 + 0o41) + chr(111) + chr(48), 8), **q5n0sHDDTy90):
AiPqNgD8WRmS = C9hd0eGqQWa0(media_type=gIhMelFOMI1V, mode=roI3spqORKae(ES5oEprVxulp(b'\xd1'), '\x64' + '\145' + chr(0b1100011) + chr(111) + '\x64' + '\x65')(chr(0b1110101) + '\x74' + chr(0b1100110) + '\055' + chr(0b111000)), **q5n0sHDDTy90)
(zIqcgNgQ9U6F, yS8WmAyRjQ15) = SsdNdRxXOwsF.DXDataObject._get_creation_params(q5n0sHDDTy90)
roI3spqORKae(AiPqNgD8WRmS, roI3spqORKae(ES5oEprVxulp(b'\xdd\xb4.\xd2\xd9>\x88\xe5\xbb\x91\r\xed'), '\x64' + chr(8845 - 8744) + chr(0b101110 + 0o65) + '\x6f' + '\144' + chr(4158 - 4057))(chr(117) + chr(3458 - 3342) + '\x66' + chr(0b101101) + chr(0b111000)))(HL01d8tgWx_g, **yS8WmAyRjQ15)
if not E5FQFZ9SNXcA:
roI3spqORKae(AiPqNgD8WRmS, roI3spqORKae(ES5oEprVxulp(b'\xea\xbdo\x8d\xf2-\x98\xed\xa2\x85D\xb5'), chr(0b11101 + 0o107) + chr(0b1100101) + chr(0b1010101 + 0o16) + chr(111) + chr(0b11110 + 0o106) + '\145')('\165' + chr(0b1110100) + chr(102) + '\055' + chr(0b111000)))(block=aKyVSgpVrEdB, **yS8WmAyRjQ15)
return AiPqNgD8WRmS
|
dnanexus/dx-toolkit
|
src/python/dxpy/bindings/dxfile_functions.py
|
list_subfolders
|
def list_subfolders(project, path, recurse=True):
'''
:param project: Project ID to use as context for the listing
:type project: string
:param path: Subtree root path
:type path: string
:param recurse: Return a complete subfolders tree
:type recurse: boolean
Returns a list of subfolders for the remote *path* (included to the result) of the *project*.
Example::
list_subfolders("project-xxxx", folder="/input")
'''
project_folders = dxpy.get_handler(project).describe(input_params={'folders': True})['folders']
# TODO: support shell-style path globbing (i.e. /a*/c matches /ab/c but not /a/b/c)
# return pathmatch.filter(project_folders, os.path.join(path, '*'))
if recurse:
return (f for f in project_folders if f.startswith(path))
else:
return (f for f in project_folders if f.startswith(path) and '/' not in f[len(path)+1:])
|
python
|
def list_subfolders(project, path, recurse=True):
'''
:param project: Project ID to use as context for the listing
:type project: string
:param path: Subtree root path
:type path: string
:param recurse: Return a complete subfolders tree
:type recurse: boolean
Returns a list of subfolders for the remote *path* (included to the result) of the *project*.
Example::
list_subfolders("project-xxxx", folder="/input")
'''
project_folders = dxpy.get_handler(project).describe(input_params={'folders': True})['folders']
# TODO: support shell-style path globbing (i.e. /a*/c matches /ab/c but not /a/b/c)
# return pathmatch.filter(project_folders, os.path.join(path, '*'))
if recurse:
return (f for f in project_folders if f.startswith(path))
else:
return (f for f in project_folders if f.startswith(path) and '/' not in f[len(path)+1:])
|
[
"def",
"list_subfolders",
"(",
"project",
",",
"path",
",",
"recurse",
"=",
"True",
")",
":",
"project_folders",
"=",
"dxpy",
".",
"get_handler",
"(",
"project",
")",
".",
"describe",
"(",
"input_params",
"=",
"{",
"'folders'",
":",
"True",
"}",
")",
"[",
"'folders'",
"]",
"# TODO: support shell-style path globbing (i.e. /a*/c matches /ab/c but not /a/b/c)",
"# return pathmatch.filter(project_folders, os.path.join(path, '*'))",
"if",
"recurse",
":",
"return",
"(",
"f",
"for",
"f",
"in",
"project_folders",
"if",
"f",
".",
"startswith",
"(",
"path",
")",
")",
"else",
":",
"return",
"(",
"f",
"for",
"f",
"in",
"project_folders",
"if",
"f",
".",
"startswith",
"(",
"path",
")",
"and",
"'/'",
"not",
"in",
"f",
"[",
"len",
"(",
"path",
")",
"+",
"1",
":",
"]",
")"
] |
:param project: Project ID to use as context for the listing
:type project: string
:param path: Subtree root path
:type path: string
:param recurse: Return a complete subfolders tree
:type recurse: boolean
Returns a list of subfolders for the remote *path* (included to the result) of the *project*.
Example::
list_subfolders("project-xxxx", folder="/input")
|
[
":",
"param",
"project",
":",
"Project",
"ID",
"to",
"use",
"as",
"context",
"for",
"the",
"listing",
":",
"type",
"project",
":",
"string",
":",
"param",
"path",
":",
"Subtree",
"root",
"path",
":",
"type",
"path",
":",
"string",
":",
"param",
"recurse",
":",
"Return",
"a",
"complete",
"subfolders",
"tree",
":",
"type",
"recurse",
":",
"boolean"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxfile_functions.py#L597-L619
|
train
|
Returns a list of subfolders for the remote path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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(0b100100 + 0o14) + chr(0b1101111) + '\067', 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x31' + '\x36' + chr(0b11110 + 0o24), 0b1000), nzTpIcepk0o8(chr(0b11100 + 0o24) + '\157' + '\061' + '\061' + chr(0b100001 + 0o21), ord("\x08")), nzTpIcepk0o8(chr(2014 - 1966) + chr(0b1101111) + chr(0b11110 + 0o24) + chr(0b1101 + 0o51) + '\063', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b101010 + 0o13) + chr(52), 0b1000), nzTpIcepk0o8(chr(0b100101 + 0o13) + chr(8350 - 8239) + chr(51) + chr(48) + chr(0b1011 + 0o46), 10342 - 10334), nzTpIcepk0o8(chr(433 - 385) + '\x6f' + '\x33' + chr(0b101111 + 0o3) + chr(0b101011 + 0o14), 32799 - 32791), nzTpIcepk0o8(chr(1873 - 1825) + chr(0b11 + 0o154) + chr(2534 - 2483) + chr(50) + chr(1941 - 1887), 50146 - 50138), nzTpIcepk0o8(chr(48) + '\x6f' + '\062' + '\x30' + chr(0b100111 + 0o12), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b100010 + 0o17) + chr(255 - 201) + chr(1068 - 1020), 0b1000), nzTpIcepk0o8(chr(2068 - 2020) + chr(111) + '\062' + chr(0b110100), 0o10), nzTpIcepk0o8('\x30' + chr(6914 - 6803) + chr(0b101111 + 0o3) + '\062' + chr(0b110100), 13155 - 13147), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\061' + '\064' + chr(0b100001 + 0o17), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x31' + chr(1847 - 1798), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x34' + chr(0b110010), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(12024 - 11913) + '\062' + chr(0b110011) + chr(52), 0b1000), nzTpIcepk0o8(chr(81 - 33) + chr(0b111101 + 0o62) + chr(234 - 181) + '\x35', 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110011) + '\065', 0b1000), nzTpIcepk0o8(chr(0b10010 + 0o36) + '\x6f' + chr(50) + chr(0b110010) + '\x34', 8), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110011) + '\x36' + chr(0b11110 + 0o24), 0o10), nzTpIcepk0o8(chr(0b10000 + 0o40) + '\x6f' + chr(0b101011 + 0o10) + '\x32' + chr(0b110000), 3995 - 3987), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110010), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110001 + 0o3) + chr(0b110111), 0b1000), nzTpIcepk0o8('\060' + chr(9817 - 9706) + '\061' + chr(0b100111 + 0o15) + chr(810 - 760), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(2081 - 2032) + '\060' + '\063', 0o10), nzTpIcepk0o8(chr(1924 - 1876) + chr(0b1101111) + '\064', ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(0b110010) + chr(53) + chr(551 - 502), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b100100 + 0o113) + chr(0b10111 + 0o35) + chr(0b110011), 0o10), nzTpIcepk0o8(chr(0b11011 + 0o25) + chr(702 - 591) + '\x33' + '\x32' + chr(955 - 900), 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1000110 + 0o51) + chr(0b110010) + chr(0b110010) + '\067', ord("\x08")), nzTpIcepk0o8(chr(1126 - 1078) + chr(111) + '\x33' + chr(49) + chr(0b101 + 0o54), 0o10), nzTpIcepk0o8(chr(0b100101 + 0o13) + chr(111) + chr(0b101101 + 0o4) + chr(0b11111 + 0o27) + '\x31', 0b1000), nzTpIcepk0o8(chr(494 - 446) + chr(0b1101111) + chr(768 - 717) + chr(1469 - 1419) + '\066', 8), nzTpIcepk0o8(chr(2135 - 2087) + chr(0b1101100 + 0o3) + '\063' + chr(49) + '\061', 8), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x33' + chr(0b110101) + chr(51), 21039 - 21031), nzTpIcepk0o8('\060' + chr(0b1000011 + 0o54) + chr(0b110010) + '\x36', 0o10), nzTpIcepk0o8(chr(0b100000 + 0o20) + chr(111) + chr(0b100111 + 0o12) + '\x36' + chr(48), 8), nzTpIcepk0o8(chr(0b11000 + 0o30) + chr(0b1101111) + '\x33' + '\x33' + chr(1157 - 1102), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + '\x31' + chr(55) + chr(48), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(2037 - 1986) + chr(302 - 252) + chr(48), 8)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(0b101111 + 0o100) + chr(53) + chr(0b101110 + 0o2), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b')'), chr(5343 - 5243) + '\x65' + chr(99) + '\157' + '\x64' + chr(9444 - 9343))(chr(117) + chr(0b1000000 + 0o64) + chr(102) + '\x2d' + chr(2696 - 2640)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def ovcC6h98uerI(mcjejRq_Q0_k, _pSYqrosNb95, w2xgm1neLvkh=nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x31', 63159 - 63151)):
nECRXN6YiW1K = SsdNdRxXOwsF.get_handler(mcjejRq_Q0_k).describe(input_params={roI3spqORKae(ES5oEprVxulp(b'a\x1d&\xd7I\xb3\xa4'), chr(5412 - 5312) + chr(0b1011111 + 0o6) + chr(99) + chr(0b101110 + 0o101) + chr(8526 - 8426) + '\145')(chr(0b1010100 + 0o41) + chr(116) + '\146' + chr(0b101101) + chr(2847 - 2791)): nzTpIcepk0o8('\x30' + '\x6f' + '\061', 8)})[roI3spqORKae(ES5oEprVxulp(b'a\x1d&\xd7I\xb3\xa4'), '\x64' + chr(4505 - 4404) + chr(3935 - 3836) + '\157' + chr(100) + chr(101))(chr(0b100010 + 0o123) + chr(116) + chr(102) + chr(0b101101) + chr(0b111000))]
if w2xgm1neLvkh:
return (_R8IKF5IwAfX for _R8IKF5IwAfX in nECRXN6YiW1K if roI3spqORKae(_R8IKF5IwAfX, roI3spqORKae(ES5oEprVxulp(b't\x06+\xc1X\xb2\xa0\xbf\xf5\x18'), chr(8722 - 8622) + '\145' + '\x63' + chr(0b1101111) + '\144' + '\x65')(chr(117) + '\164' + chr(0b1010110 + 0o20) + chr(0b10 + 0o53) + '\x38'))(_pSYqrosNb95))
else:
return (_R8IKF5IwAfX for _R8IKF5IwAfX in nECRXN6YiW1K if roI3spqORKae(_R8IKF5IwAfX, roI3spqORKae(ES5oEprVxulp(b't\x06+\xc1X\xb2\xa0\xbf\xf5\x18'), '\x64' + '\x65' + chr(0b1100011) + chr(0b1011011 + 0o24) + '\x64' + chr(3052 - 2951))(chr(0b101 + 0o160) + chr(5070 - 4954) + chr(0b1110 + 0o130) + '\055' + '\x38'))(_pSYqrosNb95) and roI3spqORKae(ES5oEprVxulp(b'('), '\x64' + chr(0b1100101) + chr(99) + '\x6f' + chr(8620 - 8520) + chr(10129 - 10028))('\165' + chr(0b1011110 + 0o26) + chr(9815 - 9713) + '\055' + chr(0b111000)) not in _R8IKF5IwAfX[ftfygxgFas5X(_pSYqrosNb95) + nzTpIcepk0o8(chr(1586 - 1538) + chr(1829 - 1718) + chr(0b110001), 8):])
|
dnanexus/dx-toolkit
|
src/python/dxpy/bindings/dxfile_functions.py
|
download_folder
|
def download_folder(project, destdir, folder="/", overwrite=False, chunksize=dxfile.DEFAULT_BUFFER_SIZE,
show_progress=False, **kwargs):
'''
:param project: Project ID to use as context for this download.
:type project: string
:param destdir: Local destination location
:type destdir: string
:param folder: Path to the remote folder to download
:type folder: string
:param overwrite: Overwrite existing files
:type overwrite: boolean
Downloads the contents of the remote *folder* of the *project* into the local directory specified by *destdir*.
Example::
download_folder("project-xxxx", "/home/jsmith/input", folder="/input")
'''
def ensure_local_dir(d):
if not os.path.isdir(d):
if os.path.exists(d):
raise DXFileError("Destination location '{}' already exists and is not a directory".format(d))
logger.debug("Creating destination directory: '%s'", d)
os.makedirs(d)
def compose_local_dir(d, remote_folder, remote_subfolder):
suffix = remote_subfolder[1:] if remote_folder == "/" else remote_subfolder[len(remote_folder) + 1:]
if os.sep != '/':
suffix = suffix.replace('/', os.sep)
return os.path.join(d, suffix) if suffix != "" else d
normalized_folder = folder.strip()
if normalized_folder != "/" and normalized_folder.endswith("/"):
normalized_folder = normalized_folder[:-1]
if normalized_folder == "":
raise DXFileError("Invalid remote folder name: '{}'".format(folder))
normalized_dest_dir = os.path.normpath(destdir).strip()
if normalized_dest_dir == "":
raise DXFileError("Invalid destination directory name: '{}'".format(destdir))
# Creating target directory tree
remote_folders = list(list_subfolders(project, normalized_folder, recurse=True))
if len(remote_folders) <= 0:
raise DXFileError("Remote folder '{}' not found".format(normalized_folder))
remote_folders.sort()
for remote_subfolder in remote_folders:
ensure_local_dir(compose_local_dir(normalized_dest_dir, normalized_folder, remote_subfolder))
# Downloading files
describe_input = dict(fields=dict(folder=True,
name=True,
id=True,
parts=True,
size=True,
drive=True,
md5=True))
# A generator that returns the files one by one. We don't want to materialize it, because
# there could be many files here.
files_gen = dxpy.search.find_data_objects(classname='file', state='closed', project=project,
folder=normalized_folder, recurse=True, describe=describe_input)
if files_gen is None:
# In python 3, the generator can be None, and iterating on it
# will cause an error.
return
# Now it is safe, in both python 2 and 3, to iterate on the generator
for remote_file in files_gen:
local_filename = os.path.join(compose_local_dir(normalized_dest_dir,
normalized_folder,
remote_file['describe']['folder']),
remote_file['describe']['name'])
if os.path.exists(local_filename) and not overwrite:
raise DXFileError(
"Destination file '{}' already exists but no overwrite option is provided".format(local_filename)
)
logger.debug("Downloading '%s/%s' remote file to '%s' location",
("" if remote_file['describe']['folder'] == "/" else remote_file['describe']['folder']),
remote_file['describe']['name'],
local_filename)
download_dxfile(remote_file['describe']['id'],
local_filename,
chunksize=chunksize,
project=project,
show_progress=show_progress,
describe_output=remote_file['describe'],
**kwargs)
|
python
|
def download_folder(project, destdir, folder="/", overwrite=False, chunksize=dxfile.DEFAULT_BUFFER_SIZE,
show_progress=False, **kwargs):
'''
:param project: Project ID to use as context for this download.
:type project: string
:param destdir: Local destination location
:type destdir: string
:param folder: Path to the remote folder to download
:type folder: string
:param overwrite: Overwrite existing files
:type overwrite: boolean
Downloads the contents of the remote *folder* of the *project* into the local directory specified by *destdir*.
Example::
download_folder("project-xxxx", "/home/jsmith/input", folder="/input")
'''
def ensure_local_dir(d):
if not os.path.isdir(d):
if os.path.exists(d):
raise DXFileError("Destination location '{}' already exists and is not a directory".format(d))
logger.debug("Creating destination directory: '%s'", d)
os.makedirs(d)
def compose_local_dir(d, remote_folder, remote_subfolder):
suffix = remote_subfolder[1:] if remote_folder == "/" else remote_subfolder[len(remote_folder) + 1:]
if os.sep != '/':
suffix = suffix.replace('/', os.sep)
return os.path.join(d, suffix) if suffix != "" else d
normalized_folder = folder.strip()
if normalized_folder != "/" and normalized_folder.endswith("/"):
normalized_folder = normalized_folder[:-1]
if normalized_folder == "":
raise DXFileError("Invalid remote folder name: '{}'".format(folder))
normalized_dest_dir = os.path.normpath(destdir).strip()
if normalized_dest_dir == "":
raise DXFileError("Invalid destination directory name: '{}'".format(destdir))
# Creating target directory tree
remote_folders = list(list_subfolders(project, normalized_folder, recurse=True))
if len(remote_folders) <= 0:
raise DXFileError("Remote folder '{}' not found".format(normalized_folder))
remote_folders.sort()
for remote_subfolder in remote_folders:
ensure_local_dir(compose_local_dir(normalized_dest_dir, normalized_folder, remote_subfolder))
# Downloading files
describe_input = dict(fields=dict(folder=True,
name=True,
id=True,
parts=True,
size=True,
drive=True,
md5=True))
# A generator that returns the files one by one. We don't want to materialize it, because
# there could be many files here.
files_gen = dxpy.search.find_data_objects(classname='file', state='closed', project=project,
folder=normalized_folder, recurse=True, describe=describe_input)
if files_gen is None:
# In python 3, the generator can be None, and iterating on it
# will cause an error.
return
# Now it is safe, in both python 2 and 3, to iterate on the generator
for remote_file in files_gen:
local_filename = os.path.join(compose_local_dir(normalized_dest_dir,
normalized_folder,
remote_file['describe']['folder']),
remote_file['describe']['name'])
if os.path.exists(local_filename) and not overwrite:
raise DXFileError(
"Destination file '{}' already exists but no overwrite option is provided".format(local_filename)
)
logger.debug("Downloading '%s/%s' remote file to '%s' location",
("" if remote_file['describe']['folder'] == "/" else remote_file['describe']['folder']),
remote_file['describe']['name'],
local_filename)
download_dxfile(remote_file['describe']['id'],
local_filename,
chunksize=chunksize,
project=project,
show_progress=show_progress,
describe_output=remote_file['describe'],
**kwargs)
|
[
"def",
"download_folder",
"(",
"project",
",",
"destdir",
",",
"folder",
"=",
"\"/\"",
",",
"overwrite",
"=",
"False",
",",
"chunksize",
"=",
"dxfile",
".",
"DEFAULT_BUFFER_SIZE",
",",
"show_progress",
"=",
"False",
",",
"*",
"*",
"kwargs",
")",
":",
"def",
"ensure_local_dir",
"(",
"d",
")",
":",
"if",
"not",
"os",
".",
"path",
".",
"isdir",
"(",
"d",
")",
":",
"if",
"os",
".",
"path",
".",
"exists",
"(",
"d",
")",
":",
"raise",
"DXFileError",
"(",
"\"Destination location '{}' already exists and is not a directory\"",
".",
"format",
"(",
"d",
")",
")",
"logger",
".",
"debug",
"(",
"\"Creating destination directory: '%s'\"",
",",
"d",
")",
"os",
".",
"makedirs",
"(",
"d",
")",
"def",
"compose_local_dir",
"(",
"d",
",",
"remote_folder",
",",
"remote_subfolder",
")",
":",
"suffix",
"=",
"remote_subfolder",
"[",
"1",
":",
"]",
"if",
"remote_folder",
"==",
"\"/\"",
"else",
"remote_subfolder",
"[",
"len",
"(",
"remote_folder",
")",
"+",
"1",
":",
"]",
"if",
"os",
".",
"sep",
"!=",
"'/'",
":",
"suffix",
"=",
"suffix",
".",
"replace",
"(",
"'/'",
",",
"os",
".",
"sep",
")",
"return",
"os",
".",
"path",
".",
"join",
"(",
"d",
",",
"suffix",
")",
"if",
"suffix",
"!=",
"\"\"",
"else",
"d",
"normalized_folder",
"=",
"folder",
".",
"strip",
"(",
")",
"if",
"normalized_folder",
"!=",
"\"/\"",
"and",
"normalized_folder",
".",
"endswith",
"(",
"\"/\"",
")",
":",
"normalized_folder",
"=",
"normalized_folder",
"[",
":",
"-",
"1",
"]",
"if",
"normalized_folder",
"==",
"\"\"",
":",
"raise",
"DXFileError",
"(",
"\"Invalid remote folder name: '{}'\"",
".",
"format",
"(",
"folder",
")",
")",
"normalized_dest_dir",
"=",
"os",
".",
"path",
".",
"normpath",
"(",
"destdir",
")",
".",
"strip",
"(",
")",
"if",
"normalized_dest_dir",
"==",
"\"\"",
":",
"raise",
"DXFileError",
"(",
"\"Invalid destination directory name: '{}'\"",
".",
"format",
"(",
"destdir",
")",
")",
"# Creating target directory tree",
"remote_folders",
"=",
"list",
"(",
"list_subfolders",
"(",
"project",
",",
"normalized_folder",
",",
"recurse",
"=",
"True",
")",
")",
"if",
"len",
"(",
"remote_folders",
")",
"<=",
"0",
":",
"raise",
"DXFileError",
"(",
"\"Remote folder '{}' not found\"",
".",
"format",
"(",
"normalized_folder",
")",
")",
"remote_folders",
".",
"sort",
"(",
")",
"for",
"remote_subfolder",
"in",
"remote_folders",
":",
"ensure_local_dir",
"(",
"compose_local_dir",
"(",
"normalized_dest_dir",
",",
"normalized_folder",
",",
"remote_subfolder",
")",
")",
"# Downloading files",
"describe_input",
"=",
"dict",
"(",
"fields",
"=",
"dict",
"(",
"folder",
"=",
"True",
",",
"name",
"=",
"True",
",",
"id",
"=",
"True",
",",
"parts",
"=",
"True",
",",
"size",
"=",
"True",
",",
"drive",
"=",
"True",
",",
"md5",
"=",
"True",
")",
")",
"# A generator that returns the files one by one. We don't want to materialize it, because",
"# there could be many files here.",
"files_gen",
"=",
"dxpy",
".",
"search",
".",
"find_data_objects",
"(",
"classname",
"=",
"'file'",
",",
"state",
"=",
"'closed'",
",",
"project",
"=",
"project",
",",
"folder",
"=",
"normalized_folder",
",",
"recurse",
"=",
"True",
",",
"describe",
"=",
"describe_input",
")",
"if",
"files_gen",
"is",
"None",
":",
"# In python 3, the generator can be None, and iterating on it",
"# will cause an error.",
"return",
"# Now it is safe, in both python 2 and 3, to iterate on the generator",
"for",
"remote_file",
"in",
"files_gen",
":",
"local_filename",
"=",
"os",
".",
"path",
".",
"join",
"(",
"compose_local_dir",
"(",
"normalized_dest_dir",
",",
"normalized_folder",
",",
"remote_file",
"[",
"'describe'",
"]",
"[",
"'folder'",
"]",
")",
",",
"remote_file",
"[",
"'describe'",
"]",
"[",
"'name'",
"]",
")",
"if",
"os",
".",
"path",
".",
"exists",
"(",
"local_filename",
")",
"and",
"not",
"overwrite",
":",
"raise",
"DXFileError",
"(",
"\"Destination file '{}' already exists but no overwrite option is provided\"",
".",
"format",
"(",
"local_filename",
")",
")",
"logger",
".",
"debug",
"(",
"\"Downloading '%s/%s' remote file to '%s' location\"",
",",
"(",
"\"\"",
"if",
"remote_file",
"[",
"'describe'",
"]",
"[",
"'folder'",
"]",
"==",
"\"/\"",
"else",
"remote_file",
"[",
"'describe'",
"]",
"[",
"'folder'",
"]",
")",
",",
"remote_file",
"[",
"'describe'",
"]",
"[",
"'name'",
"]",
",",
"local_filename",
")",
"download_dxfile",
"(",
"remote_file",
"[",
"'describe'",
"]",
"[",
"'id'",
"]",
",",
"local_filename",
",",
"chunksize",
"=",
"chunksize",
",",
"project",
"=",
"project",
",",
"show_progress",
"=",
"show_progress",
",",
"describe_output",
"=",
"remote_file",
"[",
"'describe'",
"]",
",",
"*",
"*",
"kwargs",
")"
] |
:param project: Project ID to use as context for this download.
:type project: string
:param destdir: Local destination location
:type destdir: string
:param folder: Path to the remote folder to download
:type folder: string
:param overwrite: Overwrite existing files
:type overwrite: boolean
Downloads the contents of the remote *folder* of the *project* into the local directory specified by *destdir*.
Example::
download_folder("project-xxxx", "/home/jsmith/input", folder="/input")
|
[
":",
"param",
"project",
":",
"Project",
"ID",
"to",
"use",
"as",
"context",
"for",
"this",
"download",
".",
":",
"type",
"project",
":",
"string",
":",
"param",
"destdir",
":",
"Local",
"destination",
"location",
":",
"type",
"destdir",
":",
"string",
":",
"param",
"folder",
":",
"Path",
"to",
"the",
"remote",
"folder",
"to",
"download",
":",
"type",
"folder",
":",
"string",
":",
"param",
"overwrite",
":",
"Overwrite",
"existing",
"files",
":",
"type",
"overwrite",
":",
"boolean"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/bindings/dxfile_functions.py#L621-L708
|
train
|
Downloads the contents of a folder into a local directory.
|
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV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uW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__
ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\060' + '\157' + '\x31' + chr(0b10111 + 0o33) + chr(859 - 808), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(2053 - 2002) + chr(50) + '\x33', 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(53) + chr(0b110101), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(8959 - 8848) + '\062' + chr(0b110011), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + '\064' + chr(1399 - 1348), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(1137 - 1087) + '\x34', ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b1101 + 0o46) + '\065' + chr(53), 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(1483 - 1434) + chr(0b0 + 0o66) + chr(1116 - 1066), 0o10), nzTpIcepk0o8(chr(78 - 30) + '\157' + '\x31' + chr(0b10001 + 0o37) + chr(49), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b11 + 0o154) + '\x31' + chr(0b110001) + '\x37', 1644 - 1636), nzTpIcepk0o8(chr(0b110000) + chr(0b11010 + 0o125) + chr(50) + '\063' + chr(1739 - 1691), ord("\x08")), nzTpIcepk0o8(chr(0b11011 + 0o25) + chr(0b1100011 + 0o14) + chr(316 - 267) + chr(1464 - 1409), 65204 - 65196), nzTpIcepk0o8(chr(0b1 + 0o57) + chr(0b100000 + 0o117) + chr(0b110011) + chr(50), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x31' + '\x35' + chr(0b110101), 1654 - 1646), nzTpIcepk0o8('\x30' + '\x6f' + chr(882 - 831) + chr(0b101000 + 0o13) + '\063', 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + '\067' + '\x32', ord("\x08")), nzTpIcepk0o8(chr(420 - 372) + chr(111) + '\x31' + chr(52) + chr(0b110011), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(11224 - 11113) + '\x32' + '\x34' + '\067', ord("\x08")), nzTpIcepk0o8(chr(0b101101 + 0o3) + chr(0b101001 + 0o106) + chr(369 - 317) + '\063', 8), nzTpIcepk0o8(chr(0b110000) + chr(0b111100 + 0o63) + chr(0b110010) + '\x34' + chr(0b10011 + 0o35), 7321 - 7313), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(110 - 59) + '\063' + '\066', 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(50) + chr(0b100 + 0o60) + chr(53), 0o10), nzTpIcepk0o8(chr(48) + chr(0b110111 + 0o70) + chr(0b110110) + chr(0b11 + 0o56), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110001) + chr(0b110010) + '\x33', 8), nzTpIcepk0o8(chr(48) + chr(0b1010000 + 0o37) + chr(0b110110) + chr(52), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110010) + chr(48) + '\066', 0o10), nzTpIcepk0o8('\x30' + chr(0b100111 + 0o110) + '\063' + chr(53), 45005 - 44997), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(1682 - 1631) + '\x32' + '\x35', ord("\x08")), nzTpIcepk0o8(chr(1825 - 1777) + chr(3791 - 3680) + chr(57 - 8) + '\065', 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(0b101111 + 0o6), 60807 - 60799), nzTpIcepk0o8(chr(48) + chr(0b101111 + 0o100) + chr(1293 - 1243) + '\065' + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(5746 - 5635) + chr(0b100100 + 0o17) + chr(0b11100 + 0o27) + chr(54), 8), nzTpIcepk0o8('\x30' + '\157' + chr(1810 - 1761) + chr(0b1111 + 0o42) + chr(1935 - 1885), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b11100 + 0o123) + '\x33' + chr(52) + chr(0b110010), 12841 - 12833), nzTpIcepk0o8('\x30' + '\x6f' + chr(200 - 149) + chr(0b10110 + 0o37) + chr(0b100 + 0o61), 8), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b11111 + 0o24) + chr(49) + chr(0b11100 + 0o30), 43493 - 43485), nzTpIcepk0o8('\060' + chr(0b100 + 0o153) + chr(0b11101 + 0o24) + chr(1685 - 1631) + '\067', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b11011 + 0o124) + '\x34' + '\x33', 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(1470 - 1418) + chr(0b0 + 0o65), 32904 - 32896), nzTpIcepk0o8('\x30' + '\x6f' + chr(50) + chr(0b110111) + chr(0b110110 + 0o0), 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b11110 + 0o22) + chr(0b1101111) + '\x35' + chr(0b110000 + 0o0), 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'}'), chr(100) + chr(0b10100 + 0o121) + '\x63' + chr(0b1101111) + '\x64' + chr(2713 - 2612))(chr(3771 - 3654) + '\164' + chr(0b1100110) + chr(45) + chr(0b110111 + 0o1)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def R5CzENr6Hl_t(mcjejRq_Q0_k, L7plI6o0mLc0, jJYsaQE2l_C4=roI3spqORKae(ES5oEprVxulp(b'|'), chr(9563 - 9463) + chr(0b1001010 + 0o33) + chr(5318 - 5219) + chr(4729 - 4618) + chr(0b1100100) + chr(0b1010010 + 0o23))(chr(0b1110101) + chr(0b1110100) + chr(0b1100110) + chr(0b101001 + 0o4) + chr(56)), JewFVgkSGnBd=nzTpIcepk0o8('\x30' + '\157' + chr(0b10101 + 0o33), ord("\x08")), QqkiMOFRml3h=roI3spqORKae(gVH10rjKDCEH, roI3spqORKae(ES5oEprVxulp(b'\x17\x96kRvX\xb9-\x03\x1a\xdeI_?\x84i*\xfdf'), chr(0b1100100) + chr(101) + '\143' + chr(111) + chr(100) + '\145')(chr(1696 - 1579) + chr(0b1011010 + 0o32) + chr(102) + chr(1119 - 1074) + chr(56))), Bd7K5yyYri9R=nzTpIcepk0o8('\060' + chr(0b1101111) + '\x30', 8), **q5n0sHDDTy90):
def XNNeOWRIuVK9(vPPlOXQgR3SM):
if not roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'\x0b\xbb}"y`\xafK \x1e\xe2M'), chr(0b1100011 + 0o1) + chr(101) + chr(0b1100011) + chr(0b1101111) + chr(0b1100100) + chr(7231 - 7130))(chr(117) + '\x74' + chr(102) + '\055' + '\070'))(vPPlOXQgR3SM):
if roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b')\x80djMD\x9877#\xc9;'), chr(598 - 498) + chr(0b110 + 0o137) + '\143' + chr(0b1101110 + 0o1) + chr(100) + chr(0b1100101))('\165' + chr(116) + '\146' + chr(0b101101) + '\x38'))(vPPlOXQgR3SM):
raise oqIplWWv7W23(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\x17\xb6^gJz\x8c\x06( \xf6/v\x02\xb8[\x17\xceL\xce\xfe\x82J.\x13\xa6|\xb9\x7f`\xc8\xba3\xc2\x88\xb4\x1ePQ\xcds\xb2Cw\x03}\x9eR/ \xec/{M\xbfS\x11\xc2@\xd4\xb1\xd7H'), chr(0b1001000 + 0o34) + chr(0b1001000 + 0o35) + chr(0b1100000 + 0o3) + chr(111) + chr(100) + chr(0b100110 + 0o77))(chr(0b1110101) + '\164' + '\146' + '\055' + chr(56)), roI3spqORKae(ES5oEprVxulp(b'"\xe0\x1eXd\'\x8b\x1d\x10\x10\xdbE'), '\x64' + chr(0b1100101) + chr(99) + chr(111) + chr(100) + '\145')(chr(0b1110101) + chr(6465 - 6349) + chr(102) + chr(0b101101) + '\x38'))(vPPlOXQgR3SM))
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'4\x92\x14I\x1ap\x82D\x14"\xddU'), '\x64' + chr(101) + chr(0b1100011) + chr(111) + chr(0b1000000 + 0o44) + '\145')(chr(1494 - 1377) + chr(0b111001 + 0o73) + '\x66' + '\x2d' + chr(2558 - 2502)))(roI3spqORKae(ES5oEprVxulp(b'\x10\xa1HrW}\x83\x15a+\xfd|n\x04\xb5[\x17\xceL\xce\xfe\xc1X!Q\xe5i\xba\x7f|\x93\xfem\xc7\x9e\xeb'), chr(100) + chr(0b10110 + 0o117) + '\x63' + chr(0b1101111) + chr(3082 - 2982) + '\x65')(chr(0b1110101) + chr(0b111011 + 0o71) + chr(102) + '\055' + chr(56)), vPPlOXQgR3SM)
roI3spqORKae(aHUqKstZLeS6, roI3spqORKae(ES5oEprVxulp(b'>\xb2FvG}\x9f\x01'), '\x64' + '\145' + chr(0b111000 + 0o53) + chr(10175 - 10064) + chr(100) + '\145')('\165' + chr(0b1110100) + '\146' + '\055' + chr(56)))(vPPlOXQgR3SM)
def Yf9eGJAdiBde(vPPlOXQgR3SM, If1PMPDGqQCx, y1PVZMlq_su3):
biRCFepsLie5 = y1PVZMlq_su3[nzTpIcepk0o8('\x30' + '\x6f' + '\061', 4240 - 4232):] if If1PMPDGqQCx == roI3spqORKae(ES5oEprVxulp(b'|'), chr(9311 - 9211) + chr(0b1100101) + chr(0b1001111 + 0o24) + chr(0b1101111) + chr(4470 - 4370) + chr(101))('\x75' + '\164' + chr(3003 - 2901) + chr(45) + '\070') else y1PVZMlq_su3[ftfygxgFas5X(If1PMPDGqQCx) + nzTpIcepk0o8('\x30' + '\157' + chr(0b110001), 8):]
if roI3spqORKae(aHUqKstZLeS6, roI3spqORKae(ES5oEprVxulp(b'\x16\x92[EYS\xa4\x04\x12|\xf4V'), '\x64' + chr(5452 - 5351) + chr(0b1011011 + 0o10) + chr(111) + chr(100) + chr(101))('\165' + chr(0b1110100) + '\146' + chr(45) + chr(56))) != roI3spqORKae(ES5oEprVxulp(b'|'), '\x64' + chr(101) + chr(99) + chr(0b1101111) + chr(7488 - 7388) + '\x65')(chr(12429 - 12312) + chr(621 - 505) + '\x66' + chr(45) + chr(841 - 785)):
biRCFepsLie5 = biRCFepsLie5.E91dbqOZXBpJ(roI3spqORKae(ES5oEprVxulp(b'|'), chr(0b10010 + 0o122) + chr(101) + '\143' + '\x6f' + chr(0b1100100) + chr(101))('\x75' + chr(116) + chr(0b1100100 + 0o2) + chr(0b1010 + 0o43) + '\x38'), aHUqKstZLeS6.EAvVzGIvS3lY)
return roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'\n\xe7T^\x1aV\x8e\x14\x15\x0c\xd6~'), chr(0b11100 + 0o110) + '\x65' + '\x63' + chr(0b1101111) + '\144' + '\145')(chr(0b1010101 + 0o40) + '\164' + chr(0b1100110) + '\x2d' + '\070'))(vPPlOXQgR3SM, biRCFepsLie5) if biRCFepsLie5 != roI3spqORKae(ES5oEprVxulp(b''), '\144' + chr(6426 - 6325) + '\x63' + chr(1009 - 898) + '\x64' + chr(0b100 + 0o141))('\x75' + '\164' + '\146' + chr(98 - 53) + chr(0b10001 + 0o47)) else vPPlOXQgR3SM
CjKxel2Tkg3h = jJYsaQE2l_C4.kdIDrcwZTCs5()
if CjKxel2Tkg3h != roI3spqORKae(ES5oEprVxulp(b'|'), chr(100) + chr(7353 - 7252) + chr(0b110 + 0o135) + chr(0b1101111) + '\x64' + chr(0b1100101))(chr(0b1101001 + 0o14) + chr(7729 - 7613) + chr(0b1100110) + chr(0b10111 + 0o26) + chr(56)) and roI3spqORKae(CjKxel2Tkg3h, roI3spqORKae(ES5oEprVxulp(b'\x1a\xeaKXjW\xac> :\xd2}'), chr(0b1100100) + '\145' + chr(5156 - 5057) + chr(1605 - 1494) + '\144' + chr(101))(chr(0b10100 + 0o141) + chr(0b1000010 + 0o62) + chr(102) + chr(1276 - 1231) + '\x38'))(roI3spqORKae(ES5oEprVxulp(b'|'), chr(100) + chr(101) + chr(99) + chr(0b1100100 + 0o13) + chr(0b10000 + 0o124) + '\x65')(chr(0b1110101) + '\x74' + chr(0b0 + 0o146) + '\055' + chr(56))):
CjKxel2Tkg3h = CjKxel2Tkg3h[:-nzTpIcepk0o8(chr(0b11100 + 0o24) + chr(0b1101111) + chr(0b110001), 8)]
if CjKxel2Tkg3h == roI3spqORKae(ES5oEprVxulp(b''), chr(100) + chr(0b10000 + 0o125) + chr(5101 - 5002) + chr(5331 - 5220) + '\x64' + chr(101))(chr(117) + chr(0b1110100) + chr(0b1100110 + 0o0) + chr(0b101101) + chr(56)):
raise oqIplWWv7W23(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b"\x1a\xbd[rO}\x89R3*\xf5`n\x08\xfb\\\x0c\xcbG\xc5\xac\x85_2Y\xe3'\xf5*~\xd4\xf9"), '\144' + chr(101) + '\143' + chr(2649 - 2538) + '\144' + chr(0b1100101))(chr(0b1010100 + 0o41) + chr(3255 - 3139) + chr(0b1100110) + chr(0b101101) + chr(3096 - 3040)), roI3spqORKae(ES5oEprVxulp(b'"\xe0\x1eXd\'\x8b\x1d\x10\x10\xdbE'), '\x64' + '\145' + chr(0b1011000 + 0o13) + chr(0b10010 + 0o135) + '\x64' + '\x65')(chr(0b1110101) + '\x74' + '\x66' + chr(0b101101) + '\x38'))(jJYsaQE2l_C4))
H59iQro_pcNh = aHUqKstZLeS6.path.normpath(L7plI6o0mLc0).kdIDrcwZTCs5()
if H59iQro_pcNh == roI3spqORKae(ES5oEprVxulp(b''), '\144' + chr(4906 - 4805) + '\143' + chr(0b101001 + 0o106) + chr(0b11010 + 0o112) + '\x65')(chr(2586 - 2469) + chr(116) + chr(102) + chr(0b101011 + 0o2) + chr(56)):
raise oqIplWWv7W23(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b"\x1a\xbd[rO}\x89R%*\xeb{s\x03\xbaN\n\xc8M\x80\xba\xccC6W\xf2r\xa7t%\xc7\xbf'\x87\xd7\xecPXX\x99"), chr(100) + '\145' + chr(0b1100011) + chr(0b10100 + 0o133) + chr(0b1100100) + chr(101))(chr(117) + chr(0b1010111 + 0o35) + '\x66' + chr(0b101101) + chr(467 - 411)), roI3spqORKae(ES5oEprVxulp(b'"\xe0\x1eXd\'\x8b\x1d\x10\x10\xdbE'), chr(0b1100100) + chr(0b1100101) + chr(2226 - 2127) + chr(0b1100000 + 0o17) + '\x64' + chr(101))(chr(117) + '\x74' + chr(102) + chr(45) + '\x38'))(L7plI6o0mLc0))
wz5zkVOQSXe3 = H4NoA26ON7iG(ovcC6h98uerI(mcjejRq_Q0_k, CjKxel2Tkg3h, recurse=nzTpIcepk0o8('\060' + chr(0b101110 + 0o101) + chr(49), 8)))
if ftfygxgFas5X(wz5zkVOQSXe3) <= nzTpIcepk0o8('\060' + '\157' + chr(0b11100 + 0o24), 8):
raise oqIplWWv7W23(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\x01\xb6@|Wq\xcd\x14.#\xfcjhM\xfcA\x1e\x80\x03\xce\xb1\xd1\x115[\xf3s\xb1'), chr(0b1100100) + '\x65' + chr(0b1000101 + 0o36) + chr(0b1010011 + 0o34) + chr(0b1100100) + chr(0b1100101))('\165' + '\x74' + chr(0b101001 + 0o75) + chr(0b0 + 0o55) + chr(56)), roI3spqORKae(ES5oEprVxulp(b'"\xe0\x1eXd\'\x8b\x1d\x10\x10\xdbE'), '\x64' + chr(0b1100101) + chr(0b1100011) + '\x6f' + chr(0b1100100) + chr(0b1100101))(chr(0b1110101) + chr(0b1100110 + 0o16) + chr(0b1100110) + chr(0b1000 + 0o45) + '\x38'))(CjKxel2Tkg3h))
roI3spqORKae(wz5zkVOQSXe3, roI3spqORKae(ES5oEprVxulp(b' \xbc_g'), '\144' + '\x65' + chr(6537 - 6438) + chr(0b1101111) + '\x64' + '\x65')('\x75' + '\x74' + chr(7642 - 7540) + '\055' + chr(0b111000)))()
for y1PVZMlq_su3 in wz5zkVOQSXe3:
XNNeOWRIuVK9(Yf9eGJAdiBde(H59iQro_pcNh, CjKxel2Tkg3h, y1PVZMlq_su3))
kMxhmRVvaa4G = znjnJWK64FDT(fields=znjnJWK64FDT(folder=nzTpIcepk0o8('\x30' + chr(0b1011101 + 0o22) + chr(0b100001 + 0o20), 8), name=nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\061', 8), id=nzTpIcepk0o8(chr(1858 - 1810) + '\157' + chr(0b10111 + 0o32), 8), parts=nzTpIcepk0o8(chr(48) + chr(5313 - 5202) + '\061', 8), size=nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110001), 8), drive=nzTpIcepk0o8('\x30' + chr(111) + '\x31', 8), md5=nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b1111 + 0o42), 8)))
NKZhkyJJATzy = SsdNdRxXOwsF.search.find_data_objects(classname=roI3spqORKae(ES5oEprVxulp(b'5\xbaAv'), chr(0b1100100) + chr(0b1100101) + '\143' + '\x6f' + chr(0b10001 + 0o123) + '\145')(chr(0b1110101) + chr(0b1011110 + 0o26) + chr(0b1100110) + chr(45) + chr(0b100 + 0o64)), state=roI3spqORKae(ES5oEprVxulp(b'0\xbfB`Fp'), chr(100) + chr(5188 - 5087) + '\143' + '\157' + '\x64' + '\x65')(chr(0b1010101 + 0o40) + chr(116) + chr(0b1100110) + chr(217 - 172) + chr(56)), project=mcjejRq_Q0_k, folder=CjKxel2Tkg3h, recurse=nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(703 - 654), 8), describe=kMxhmRVvaa4G)
if NKZhkyJJATzy is None:
return
for sHomuarfhMba in NKZhkyJJATzy:
OsvqUSIQTbqo = aHUqKstZLeS6.path.Y4yM9BcfTCNq(Yf9eGJAdiBde(H59iQro_pcNh, CjKxel2Tkg3h, sHomuarfhMba[roI3spqORKae(ES5oEprVxulp(b'7\xb6^pQ}\x8f\x17'), '\144' + '\x65' + '\x63' + '\x6f' + chr(0b1000110 + 0o36) + '\145')('\165' + chr(1637 - 1521) + '\x66' + chr(0b101101) + '\070')][roI3spqORKae(ES5oEprVxulp(b'5\xbcAwFf'), chr(216 - 116) + chr(3395 - 3294) + chr(0b111000 + 0o53) + chr(0b10 + 0o155) + chr(100) + '\145')(chr(1986 - 1869) + chr(0b1101111 + 0o5) + '\146' + '\055' + chr(0b1110 + 0o52))]), sHomuarfhMba[roI3spqORKae(ES5oEprVxulp(b'7\xb6^pQ}\x8f\x17'), chr(0b1011110 + 0o6) + chr(101) + '\x63' + chr(6598 - 6487) + '\144' + '\145')(chr(12620 - 12503) + '\x74' + chr(0b1100110) + chr(0b10000 + 0o35) + '\070')][roI3spqORKae(ES5oEprVxulp(b'=\xb2@v'), chr(4961 - 4861) + '\x65' + '\143' + '\x6f' + chr(100) + chr(0b101001 + 0o74))('\165' + '\164' + '\x66' + chr(0b101101) + chr(0b100000 + 0o30))])
if roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b')\x80djMD\x9877#\xc9;'), chr(0b11 + 0o141) + chr(0b101011 + 0o72) + chr(99) + '\x6f' + '\144' + chr(0b1100101))('\165' + chr(0b1110100) + '\146' + chr(0b101101) + '\x38'))(OsvqUSIQTbqo) and (not JewFVgkSGnBd):
raise oqIplWWv7W23(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\x17\xb6^gJz\x8c\x06( \xf6/|\x04\xb7_C\x80X\xdd\xf9\x85P?F\xe3|\xb1t%\xcc\xa6#\x91\x99\xbfWAP\xcas\xbdB3Lb\x88\x006=\xf1{\x7fM\xb4J\x17\xceL\xce\xfe\xccBsD\xf4r\xa3da\xcc\xba'), '\x64' + chr(4813 - 4712) + '\143' + chr(7061 - 6950) + chr(100) + '\145')(chr(117) + chr(116) + chr(401 - 299) + '\x2d' + '\x38'), roI3spqORKae(ES5oEprVxulp(b'"\xe0\x1eXd\'\x8b\x1d\x10\x10\xdbE'), chr(9706 - 9606) + '\x65' + chr(0b1101 + 0o126) + '\x6f' + chr(0b1100100) + chr(0b1100011 + 0o2))(chr(4438 - 4321) + '\164' + '\146' + chr(0b101101) + chr(0b111000)))(OsvqUSIQTbqo))
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'4\x92\x14I\x1ap\x82D\x14"\xddU'), '\x64' + chr(0b101010 + 0o73) + chr(99) + '\x6f' + '\x64' + chr(1858 - 1757))('\x75' + chr(0b1110100) + chr(102) + chr(45) + chr(1600 - 1544)))(roI3spqORKae(ES5oEprVxulp(b'\x17\xbcZ}O{\x8c\x16(!\xff/=H\xa8\x15F\xd4\x04\x80\xac\xc0\\<@\xe3=\xb3di\xcc\xfe>\x8d\xcd\xebRP\x02\x9e?\xbcNrW}\x82\x1c'), '\x64' + chr(101) + chr(0b1100011) + chr(11504 - 11393) + chr(0b1100100) + chr(101))('\165' + '\164' + '\146' + chr(45) + chr(56)), roI3spqORKae(ES5oEprVxulp(b''), chr(6070 - 5970) + '\x65' + chr(8226 - 8127) + chr(111) + '\144' + chr(0b11111 + 0o106))(chr(0b1110101) + chr(0b11101 + 0o127) + chr(0b1100110) + chr(0b100000 + 0o15) + chr(56)) if sHomuarfhMba[roI3spqORKae(ES5oEprVxulp(b'7\xb6^pQ}\x8f\x17'), '\x64' + chr(0b111100 + 0o51) + chr(99) + '\157' + chr(100) + '\x65')('\165' + '\x74' + chr(102) + chr(0b100101 + 0o10) + chr(0b111000))][roI3spqORKae(ES5oEprVxulp(b'5\xbcAwFf'), chr(0b1100100) + chr(0b1100101) + '\x63' + chr(0b110001 + 0o76) + '\144' + '\x65')(chr(0b1110101) + '\164' + chr(102) + chr(0b100000 + 0o15) + '\070')] == roI3spqORKae(ES5oEprVxulp(b'|'), '\144' + chr(0b1100101) + '\143' + chr(0b1101111) + chr(0b1000110 + 0o36) + '\x65')('\165' + '\x74' + '\x66' + chr(1163 - 1118) + chr(56)) else sHomuarfhMba[roI3spqORKae(ES5oEprVxulp(b'7\xb6^pQ}\x8f\x17'), chr(0b110001 + 0o63) + chr(0b100101 + 0o100) + chr(0b1100011) + chr(0b1101111) + chr(0b101001 + 0o73) + chr(0b1001011 + 0o32))('\165' + chr(12967 - 12851) + chr(102) + '\055' + chr(0b111000))][roI3spqORKae(ES5oEprVxulp(b'5\xbcAwFf'), chr(100) + chr(10016 - 9915) + '\x63' + chr(0b1101111) + chr(0b1100100) + chr(0b1011111 + 0o6))('\x75' + '\164' + chr(102) + chr(45) + chr(0b10100 + 0o44))], sHomuarfhMba[roI3spqORKae(ES5oEprVxulp(b'7\xb6^pQ}\x8f\x17'), chr(100) + chr(0b1100100 + 0o1) + chr(6077 - 5978) + chr(0b1100001 + 0o16) + '\x64' + '\145')(chr(0b111011 + 0o72) + '\164' + chr(0b1100110) + chr(0b101101) + chr(0b111000))][roI3spqORKae(ES5oEprVxulp(b'=\xb2@v'), chr(0b100100 + 0o100) + chr(0b11111 + 0o106) + chr(0b1100011) + chr(9354 - 9243) + chr(1591 - 1491) + chr(101))(chr(0b1110101) + chr(0b1110100) + '\146' + '\055' + chr(0b111000))], OsvqUSIQTbqo)
yu8vaOpl_tnw(sHomuarfhMba[roI3spqORKae(ES5oEprVxulp(b'7\xb6^pQ}\x8f\x17'), '\144' + chr(0b1100101) + chr(8266 - 8167) + '\157' + '\x64' + '\x65')(chr(0b1010100 + 0o41) + chr(116) + chr(0b1100110) + '\x2d' + chr(773 - 717))][roI3spqORKae(ES5oEprVxulp(b':\xb7'), '\x64' + chr(4690 - 4589) + '\143' + '\x6f' + '\x64' + chr(0b1100101))(chr(6421 - 6304) + chr(116) + chr(3001 - 2899) + '\055' + chr(0b100000 + 0o30))], OsvqUSIQTbqo, chunksize=QqkiMOFRml3h, project=mcjejRq_Q0_k, show_progress=Bd7K5yyYri9R, describe_output=sHomuarfhMba[roI3spqORKae(ES5oEprVxulp(b'7\xb6^pQ}\x8f\x17'), chr(100) + '\x65' + chr(99) + chr(0b1100101 + 0o12) + chr(100) + chr(101))(chr(117) + '\164' + chr(0b10101 + 0o121) + chr(0b11000 + 0o25) + chr(56))], **q5n0sHDDTy90)
|
dnanexus/dx-toolkit
|
src/python/dxpy/app_builder.py
|
build
|
def build(src_dir, parallel_build=True):
"""
Runs any build scripts that are found in the specified directory.
In particular, runs ``./configure`` if it exists, followed by ``make -jN``
if it exists (building with as many parallel tasks as there are CPUs on the
system).
"""
# TODO: use Gentoo or deb buildsystem
config_script = os.path.join(src_dir, "configure")
if os.path.isfile(config_script) and os.access(config_script, os.X_OK):
logger.debug("Running ./configure in {cwd}".format(cwd=os.path.abspath(src_dir)))
try:
subprocess.check_call([config_script])
except subprocess.CalledProcessError as e:
raise AppBuilderException("./configure in target directory failed with exit code %d" % (e.returncode,))
if os.path.isfile(os.path.join(src_dir, "Makefile")) \
or os.path.isfile(os.path.join(src_dir, "makefile")) \
or os.path.isfile(os.path.join(src_dir, "GNUmakefile")):
if parallel_build:
make_shortcmd = "make -j%d" % (NUM_CORES,)
else:
make_shortcmd = "make"
logger.debug("Building with {make} in {cwd}".format(make=make_shortcmd, cwd=os.path.abspath(src_dir)))
try:
make_cmd = ["make", "-C", src_dir]
if parallel_build:
make_cmd.append("-j" + str(NUM_CORES))
subprocess.check_call(make_cmd)
except subprocess.CalledProcessError as e:
raise AppBuilderException("%s in target directory failed with exit code %d" % (make_shortcmd, e.returncode))
|
python
|
def build(src_dir, parallel_build=True):
"""
Runs any build scripts that are found in the specified directory.
In particular, runs ``./configure`` if it exists, followed by ``make -jN``
if it exists (building with as many parallel tasks as there are CPUs on the
system).
"""
# TODO: use Gentoo or deb buildsystem
config_script = os.path.join(src_dir, "configure")
if os.path.isfile(config_script) and os.access(config_script, os.X_OK):
logger.debug("Running ./configure in {cwd}".format(cwd=os.path.abspath(src_dir)))
try:
subprocess.check_call([config_script])
except subprocess.CalledProcessError as e:
raise AppBuilderException("./configure in target directory failed with exit code %d" % (e.returncode,))
if os.path.isfile(os.path.join(src_dir, "Makefile")) \
or os.path.isfile(os.path.join(src_dir, "makefile")) \
or os.path.isfile(os.path.join(src_dir, "GNUmakefile")):
if parallel_build:
make_shortcmd = "make -j%d" % (NUM_CORES,)
else:
make_shortcmd = "make"
logger.debug("Building with {make} in {cwd}".format(make=make_shortcmd, cwd=os.path.abspath(src_dir)))
try:
make_cmd = ["make", "-C", src_dir]
if parallel_build:
make_cmd.append("-j" + str(NUM_CORES))
subprocess.check_call(make_cmd)
except subprocess.CalledProcessError as e:
raise AppBuilderException("%s in target directory failed with exit code %d" % (make_shortcmd, e.returncode))
|
[
"def",
"build",
"(",
"src_dir",
",",
"parallel_build",
"=",
"True",
")",
":",
"# TODO: use Gentoo or deb buildsystem",
"config_script",
"=",
"os",
".",
"path",
".",
"join",
"(",
"src_dir",
",",
"\"configure\"",
")",
"if",
"os",
".",
"path",
".",
"isfile",
"(",
"config_script",
")",
"and",
"os",
".",
"access",
"(",
"config_script",
",",
"os",
".",
"X_OK",
")",
":",
"logger",
".",
"debug",
"(",
"\"Running ./configure in {cwd}\"",
".",
"format",
"(",
"cwd",
"=",
"os",
".",
"path",
".",
"abspath",
"(",
"src_dir",
")",
")",
")",
"try",
":",
"subprocess",
".",
"check_call",
"(",
"[",
"config_script",
"]",
")",
"except",
"subprocess",
".",
"CalledProcessError",
"as",
"e",
":",
"raise",
"AppBuilderException",
"(",
"\"./configure in target directory failed with exit code %d\"",
"%",
"(",
"e",
".",
"returncode",
",",
")",
")",
"if",
"os",
".",
"path",
".",
"isfile",
"(",
"os",
".",
"path",
".",
"join",
"(",
"src_dir",
",",
"\"Makefile\"",
")",
")",
"or",
"os",
".",
"path",
".",
"isfile",
"(",
"os",
".",
"path",
".",
"join",
"(",
"src_dir",
",",
"\"makefile\"",
")",
")",
"or",
"os",
".",
"path",
".",
"isfile",
"(",
"os",
".",
"path",
".",
"join",
"(",
"src_dir",
",",
"\"GNUmakefile\"",
")",
")",
":",
"if",
"parallel_build",
":",
"make_shortcmd",
"=",
"\"make -j%d\"",
"%",
"(",
"NUM_CORES",
",",
")",
"else",
":",
"make_shortcmd",
"=",
"\"make\"",
"logger",
".",
"debug",
"(",
"\"Building with {make} in {cwd}\"",
".",
"format",
"(",
"make",
"=",
"make_shortcmd",
",",
"cwd",
"=",
"os",
".",
"path",
".",
"abspath",
"(",
"src_dir",
")",
")",
")",
"try",
":",
"make_cmd",
"=",
"[",
"\"make\"",
",",
"\"-C\"",
",",
"src_dir",
"]",
"if",
"parallel_build",
":",
"make_cmd",
".",
"append",
"(",
"\"-j\"",
"+",
"str",
"(",
"NUM_CORES",
")",
")",
"subprocess",
".",
"check_call",
"(",
"make_cmd",
")",
"except",
"subprocess",
".",
"CalledProcessError",
"as",
"e",
":",
"raise",
"AppBuilderException",
"(",
"\"%s in target directory failed with exit code %d\"",
"%",
"(",
"make_shortcmd",
",",
"e",
".",
"returncode",
")",
")"
] |
Runs any build scripts that are found in the specified directory.
In particular, runs ``./configure`` if it exists, followed by ``make -jN``
if it exists (building with as many parallel tasks as there are CPUs on the
system).
|
[
"Runs",
"any",
"build",
"scripts",
"that",
"are",
"found",
"in",
"the",
"specified",
"directory",
"."
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/app_builder.py#L93-L123
|
train
|
Builds the base directory of the app.
|
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,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Xw,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(0b111011 + 0o64) + '\x31' + chr(48) + '\x37', 518 - 510), nzTpIcepk0o8('\060' + chr(3139 - 3028) + '\x31' + '\x32' + '\x31', 54190 - 54182), nzTpIcepk0o8(chr(48) + chr(0b110100 + 0o73) + '\x33' + chr(1192 - 1142) + chr(0b110010), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b110010 + 0o75) + chr(168 - 118) + '\066' + chr(0b11101 + 0o25), 26181 - 26173), nzTpIcepk0o8(chr(0b100 + 0o54) + chr(0b110000 + 0o77) + chr(0b110001) + '\x36' + chr(0b101000 + 0o15), 26569 - 26561), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110001) + chr(0b110001) + chr(50), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\062' + chr(1066 - 1013) + chr(0b110101), 8814 - 8806), nzTpIcepk0o8('\x30' + chr(0b1101 + 0o142) + '\x32' + chr(0b11000 + 0o30) + chr(0b110111), 3693 - 3685), nzTpIcepk0o8(chr(48) + '\157' + chr(50) + '\x34' + '\062', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b111011 + 0o64) + chr(410 - 361) + '\067', 0o10), nzTpIcepk0o8('\x30' + '\x6f' + '\x32' + chr(1487 - 1432), 0o10), nzTpIcepk0o8(chr(48) + chr(0b101011 + 0o104) + chr(0b110011) + chr(49) + chr(49), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b110000 + 0o77) + chr(1138 - 1087) + '\060' + chr(53), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b101010 + 0o105) + '\063' + chr(0b10111 + 0o34) + chr(422 - 368), 0b1000), nzTpIcepk0o8(chr(394 - 346) + chr(0b101111 + 0o100) + chr(0b101111 + 0o2) + chr(1129 - 1075) + '\067', 0b1000), nzTpIcepk0o8('\060' + chr(5055 - 4944) + '\x33' + chr(0b11011 + 0o34) + chr(53), 10451 - 10443), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b100111 + 0o13) + '\066' + chr(0b110100), ord("\x08")), nzTpIcepk0o8('\060' + chr(11104 - 10993) + chr(860 - 810) + chr(50) + '\064', 47405 - 47397), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110110) + '\x33', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1011111 + 0o20) + chr(0b110010) + chr(825 - 776), 0o10), nzTpIcepk0o8(chr(577 - 529) + chr(111) + '\x33' + chr(0b110110) + chr(50), 0b1000), nzTpIcepk0o8(chr(0b10001 + 0o37) + chr(0b1011011 + 0o24) + chr(0b110011) + chr(54) + chr(0b110000), 14602 - 14594), nzTpIcepk0o8(chr(48) + chr(272 - 161) + chr(0b110111) + chr(0b11111 + 0o23), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111 + 0o0) + '\x34' + chr(0b100000 + 0o20), 34502 - 34494), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x31' + chr(549 - 501) + chr(0b110 + 0o57), 27100 - 27092), nzTpIcepk0o8(chr(0b100001 + 0o17) + '\x6f' + chr(1329 - 1278) + '\x31' + '\061', 8), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(51) + '\062', 455 - 447), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110001) + '\060' + chr(51), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(2538 - 2487) + '\060' + '\x33', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b110011 + 0o74) + chr(0b110011) + chr(2210 - 2161) + chr(0b10100 + 0o34), 26960 - 26952), nzTpIcepk0o8('\x30' + '\157' + '\061' + chr(0b100 + 0o55) + chr(0b110000), ord("\x08")), nzTpIcepk0o8(chr(1319 - 1271) + chr(0b1101111) + chr(0b10011 + 0o36) + '\065' + chr(55), 51118 - 51110), nzTpIcepk0o8(chr(0b100001 + 0o17) + chr(0b1101111) + chr(0b100 + 0o55) + '\x33' + '\x36', 0o10), nzTpIcepk0o8('\x30' + chr(111) + '\x31' + '\x32' + chr(0b1111 + 0o41), 50869 - 50861), nzTpIcepk0o8(chr(0b101001 + 0o7) + chr(0b101101 + 0o102) + chr(0b110011) + chr(0b110111) + chr(55), 0o10), nzTpIcepk0o8(chr(48) + chr(5445 - 5334) + chr(49) + chr(0b110010 + 0o4), 0b1000), nzTpIcepk0o8(chr(48) + chr(11413 - 11302) + chr(1997 - 1948) + chr(0b110001) + chr(53), 0o10), nzTpIcepk0o8(chr(1070 - 1022) + chr(111) + chr(50) + '\x36' + chr(990 - 941), 60783 - 60775), nzTpIcepk0o8(chr(0b11 + 0o55) + '\157' + chr(51) + '\061' + chr(0b10000 + 0o43), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b11 + 0o56) + chr(0b100001 + 0o21) + '\x32', ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(1208 - 1160) + chr(0b1101111) + chr(0b110001 + 0o4) + chr(2228 - 2180), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'i'), chr(0b1100100) + chr(2453 - 2352) + '\143' + '\x6f' + chr(0b1100100) + chr(0b1100101))(chr(0b1000100 + 0o61) + '\x74' + chr(6249 - 6147) + chr(761 - 716) + chr(0b10100 + 0o44)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def IJABSdCh941a(zgBFj9gT640a, IQVE0qbDUPAk=nzTpIcepk0o8(chr(0b10101 + 0o33) + '\x6f' + chr(1879 - 1830), 38369 - 38361)):
gL5Q4y5_MQjB = aHUqKstZLeS6.path.Y4yM9BcfTCNq(zgBFj9gT640a, roI3spqORKae(ES5oEprVxulp(b'$>\xbc\xd4\x1c-\xd8\xf5\xc7'), chr(100) + '\x65' + chr(0b1011010 + 0o11) + '\157' + chr(0b111001 + 0o53) + chr(101))(chr(117) + chr(0b1110100) + '\146' + chr(0b101101) + '\070'))
if roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'."\xb4\xdb\x19/'), chr(0b1 + 0o143) + '\x65' + chr(695 - 596) + chr(111) + chr(0b1100100) + chr(0b1100101))(chr(8998 - 8881) + chr(8727 - 8611) + chr(2293 - 2191) + chr(0b10100 + 0o31) + chr(1681 - 1625)))(gL5Q4y5_MQjB) and roI3spqORKae(aHUqKstZLeS6, roI3spqORKae(ES5oEprVxulp(b"\x05!\x96\xc1'2\xfc\xf6\xe0w.\xad"), chr(0b110 + 0o136) + '\145' + chr(0b1001001 + 0o32) + chr(111) + chr(100) + '\145')(chr(117) + chr(0b1110100) + '\146' + chr(1628 - 1583) + '\x38'))(gL5Q4y5_MQjB, roI3spqORKae(aHUqKstZLeS6, roI3spqORKae(ES5oEprVxulp(b'\x1f\x0e\x9d\xf9'), chr(100) + chr(101) + '\143' + chr(0b1101111) + '\x64' + chr(101))('\165' + chr(116) + '\146' + chr(0b101101) + '\x38'))):
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b' \x10\xeb\xe8L.\xc2\xb1\xf7bR\x93'), '\x64' + chr(0b1100101) + chr(0b110011 + 0o60) + chr(0b10001 + 0o136) + chr(0b11000 + 0o114) + '\145')(chr(117) + '\x74' + '\x66' + chr(45) + chr(56)))(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\x15$\xbc\xdc\x1c$\xca\xa7\x8c t\xa6\xab\xb8\x1e\x9a\xc1\xe6V1\x9b\x9e\x1a[&\xbe~>'), chr(0b10100 + 0o120) + '\145' + '\x63' + chr(0b1101111) + chr(100) + '\x65')(chr(0b1110101) + '\164' + '\146' + chr(0b101101) + chr(2038 - 1982)), roI3spqORKae(ES5oEprVxulp(b'6b\xe1\xf92y\xcb\xe8\xf3PT\x83'), chr(0b1100100) + chr(9068 - 8967) + chr(2842 - 2743) + '\x6f' + chr(100) + '\145')('\165' + chr(116) + chr(9643 - 9541) + '\055' + '\070'))(cwd=roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'\x0b\x02\x83\xe0%.\xc1\xee\x93Io\xac'), '\144' + '\x65' + chr(0b1100011) + chr(0b1010000 + 0o37) + '\144' + chr(0b100101 + 0o100))(chr(0b110101 + 0o100) + chr(1822 - 1706) + '\x66' + chr(0b10010 + 0o33) + '\x38'))(zgBFj9gT640a)))
try:
roI3spqORKae(eT8Y087E_kfd, roI3spqORKae(ES5oEprVxulp(b'$9\xb7\xd1\x1e\x15\xce\xe6\xcec'), chr(0b1100100) + chr(0b1011101 + 0o10) + chr(0b1100011) + chr(111) + '\x64' + chr(101))(chr(1764 - 1647) + chr(0b1110100) + chr(0b1100110) + chr(0b101101) + chr(56)))([gL5Q4y5_MQjB])
except roI3spqORKae(eT8Y087E_kfd, roI3spqORKae(ES5oEprVxulp(b'\x040\xbe\xde\x10.\xfd\xf5\xcdlr\xba\xb6\x9b\x05\x8f\xdb\xe6'), chr(0b10110 + 0o116) + '\145' + chr(0b1100011) + chr(4603 - 4492) + chr(5066 - 4966) + '\145')(chr(0b1000111 + 0o56) + chr(0b1110100) + chr(0b1100110) + '\055' + chr(776 - 720))) as wgf0sgcu_xPL:
raise GVQ7tTeLFi7I(roI3spqORKae(ES5oEprVxulp(b'i~\xb1\xdd\x1b,\xc4\xe0\xd7}r\xe9\xac\xb0W\x89\xd5\xe6Tt\x86\xd0^I7\xacy7\xac\xba1O81\x96b(\xd5\xeb%.%\xba\x92\x102\xc4\xf3\x82lx\xad\xa0\xfeR\x99'), chr(3401 - 3301) + '\145' + chr(99) + chr(0b1101111) + chr(5900 - 5800) + chr(4587 - 4486))(chr(117) + chr(1796 - 1680) + chr(0b1001001 + 0o35) + chr(0b101101) + chr(56)) % (roI3spqORKae(wgf0sgcu_xPL, roI3spqORKae(ES5oEprVxulp(b'54\xa6\xc7\x07$\xce\xe8\xc6j'), chr(7910 - 7810) + chr(0b1100101) + '\x63' + chr(0b1101111) + chr(0b11 + 0o141) + '\x65')(chr(117) + '\x74' + chr(0b10000 + 0o126) + chr(45) + chr(0b100100 + 0o24))),))
if roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'."\xb4\xdb\x19/'), chr(100) + chr(1628 - 1527) + '\x63' + '\157' + chr(0b1010011 + 0o21) + '\145')('\x75' + '\164' + chr(0b1100110) + chr(0b1101 + 0o40) + '\070'))(roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'\x1ee\xab\xffL\x08\xce\xe1\xf6LY\xb8'), chr(100) + '\x65' + chr(0b11101 + 0o106) + chr(11225 - 11114) + chr(0b1100100) + chr(0b1100101))(chr(117) + chr(0b1110100) + '\146' + chr(45) + chr(0b1 + 0o67)))(zgBFj9gT640a, roI3spqORKae(ES5oEprVxulp(b'\n0\xb9\xd7\x13#\xc1\xe2'), chr(100) + chr(0b11000 + 0o115) + chr(8890 - 8791) + '\157' + chr(0b100101 + 0o77) + chr(0b10 + 0o143))(chr(6324 - 6207) + chr(0b1110100) + chr(288 - 186) + '\055' + '\070'))) or roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'."\xb4\xdb\x19/'), '\x64' + chr(6421 - 6320) + chr(0b1000011 + 0o40) + chr(0b1101111) + chr(7241 - 7141) + chr(0b1100011 + 0o2))(chr(9019 - 8902) + chr(0b1110100) + chr(102) + '\055' + chr(0b111000)))(roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'\x1ee\xab\xffL\x08\xce\xe1\xf6LY\xb8'), chr(100) + '\x65' + chr(99) + '\157' + chr(1369 - 1269) + chr(709 - 608))(chr(0b1110101) + chr(116) + chr(0b1100000 + 0o6) + chr(0b101101) + '\x38'))(zgBFj9gT640a, roI3spqORKae(ES5oEprVxulp(b'*0\xb9\xd7\x13#\xc1\xe2'), chr(0b1100100) + chr(101) + '\143' + '\x6f' + chr(100) + chr(4058 - 3957))(chr(0b1110101) + chr(116) + chr(102) + chr(45) + chr(1656 - 1600)))) or roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'."\xb4\xdb\x19/'), chr(100) + '\x65' + chr(1600 - 1501) + chr(111) + chr(6963 - 6863) + chr(0b1101 + 0o130))(chr(0b1100111 + 0o16) + chr(3514 - 3398) + '\x66' + chr(45) + chr(1505 - 1449)))(roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'\x1ee\xab\xffL\x08\xce\xe1\xf6LY\xb8'), chr(4233 - 4133) + '\x65' + chr(99) + chr(5462 - 5351) + '\144' + chr(0b1100101))(chr(0b1011111 + 0o26) + chr(0b1110100) + '\x66' + chr(0b101101) + '\070'))(zgBFj9gT640a, roI3spqORKae(ES5oEprVxulp(b'\x00\x1f\x87\xdf\x14!\xc8\xe1\xcbcr'), chr(100) + chr(10005 - 9904) + chr(0b110001 + 0o62) + chr(1110 - 999) + chr(0b110011 + 0o61) + chr(0b110 + 0o137))(chr(13594 - 13477) + chr(6244 - 6128) + chr(0b1100110) + chr(1008 - 963) + chr(1257 - 1201)))):
if IQVE0qbDUPAk:
YhPU1OiAu4d5 = roI3spqORKae(ES5oEprVxulp(b'*0\xb9\xd7Ug\xc7\xa2\xc6'), chr(0b1100100) + chr(0b1100101) + chr(99) + chr(111) + chr(0b1100100) + chr(0b101 + 0o140))('\165' + '\x74' + chr(0b100100 + 0o102) + chr(0b1000 + 0o45) + chr(56)) % (BRZFl2xKzkLV,)
else:
YhPU1OiAu4d5 = roI3spqORKae(ES5oEprVxulp(b'*0\xb9\xd7'), chr(0b1100100) + chr(0b1000111 + 0o36) + chr(0b1100011) + chr(0b0 + 0o157) + chr(4833 - 4733) + chr(0b1100001 + 0o4))(chr(117) + '\164' + '\x66' + chr(1445 - 1400) + chr(2218 - 2162))
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b' \x10\xeb\xe8L.\xc2\xb1\xf7bR\x93'), '\144' + chr(0b111010 + 0o53) + chr(7401 - 7302) + '\x6f' + chr(0b1000101 + 0o37) + '\x65')(chr(0b1110101) + chr(116) + '\146' + chr(400 - 355) + chr(0b110001 + 0o7)))(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b"\x05$\xbb\xde\x11#\xc3\xe0\x82x~\xbd\xad\xfe\x0c\x90\xd5\xffVl\xd2\x99T\x00>\xaam'\xbe"), chr(0b1100100) + chr(7973 - 7872) + chr(0b1100011) + '\x6f' + chr(100) + chr(7053 - 6952))('\x75' + '\164' + '\146' + chr(45) + chr(0b111000)), roI3spqORKae(ES5oEprVxulp(b'6b\xe1\xf92y\xcb\xe8\xf3PT\x83'), chr(0b1000011 + 0o41) + chr(0b1010010 + 0o23) + '\x63' + chr(111) + chr(6814 - 6714) + chr(8217 - 8116))('\165' + '\164' + '\x66' + chr(0b101101) + '\070'))(make=YhPU1OiAu4d5, cwd=roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'\x0b\x02\x83\xe0%.\xc1\xee\x93Io\xac'), chr(0b1100100) + chr(0b1100101) + chr(0b1100011) + chr(111) + chr(0b100 + 0o140) + '\x65')(chr(0b1011110 + 0o27) + chr(0b1110100) + chr(0b1100110) + '\x2d' + '\070'))(zgBFj9gT640a)))
try:
_mICawQ7w5QM = [roI3spqORKae(ES5oEprVxulp(b'*0\xb9\xd7'), chr(100) + '\145' + '\x63' + '\x6f' + '\144' + chr(0b1100101))(chr(0b1110010 + 0o3) + '\164' + chr(0b11110 + 0o110) + chr(671 - 626) + chr(56)), roI3spqORKae(ES5oEprVxulp(b'j\x12'), chr(0b1011110 + 0o6) + '\x65' + chr(0b111111 + 0o44) + chr(0b10000 + 0o137) + '\144' + chr(101))('\165' + '\164' + chr(7319 - 7217) + chr(837 - 792) + chr(3049 - 2993)), zgBFj9gT640a]
if IQVE0qbDUPAk:
roI3spqORKae(_mICawQ7w5QM, roI3spqORKae(ES5oEprVxulp(b'\x0f\x05\x81\x86\r-\xea\xe8\xc8`B\xfc'), chr(7584 - 7484) + chr(6071 - 5970) + '\143' + chr(0b1101111) + '\x64' + chr(0b11100 + 0o111))(chr(117) + '\x74' + '\146' + chr(0b101101) + chr(1378 - 1322)))(roI3spqORKae(ES5oEprVxulp(b'j;'), '\x64' + chr(0b1100100 + 0o1) + '\x63' + '\x6f' + '\x64' + '\145')(chr(0b1110101) + chr(2127 - 2011) + chr(933 - 831) + chr(0b11000 + 0o25) + chr(56)) + N9zlRy29S1SS(BRZFl2xKzkLV))
roI3spqORKae(eT8Y087E_kfd, roI3spqORKae(ES5oEprVxulp(b'$9\xb7\xd1\x1e\x15\xce\xe6\xcec'), chr(0b1100100) + chr(0b11110 + 0o107) + chr(5390 - 5291) + '\157' + chr(0b1100100) + '\x65')(chr(8594 - 8477) + chr(9975 - 9859) + chr(0b11001 + 0o115) + chr(0b1101 + 0o40) + chr(0b110110 + 0o2)))(_mICawQ7w5QM)
except roI3spqORKae(eT8Y087E_kfd, roI3spqORKae(ES5oEprVxulp(b'\x040\xbe\xde\x10.\xfd\xf5\xcdlr\xba\xb6\x9b\x05\x8f\xdb\xe6'), chr(4383 - 4283) + chr(0b1100101) + '\x63' + chr(0b1011111 + 0o20) + chr(0b11100 + 0o110) + chr(0b1100000 + 0o5))(chr(4126 - 4009) + chr(7630 - 7514) + '\146' + '\055' + chr(0b100 + 0o64))) as wgf0sgcu_xPL:
raise GVQ7tTeLFi7I(roI3spqORKae(ES5oEprVxulp(b'b"\xf2\xdb\x1bj\xd9\xe6\xd0hr\xbd\xe5\xba\x1e\x8f\xd1\xf7G~\x80\x89\x1aF$\xa0v&\xa7\xe8?\x06*8\xdfk5\xd8\xbfr$>\xb6\xd7Uo\xc9'), chr(0b1011100 + 0o10) + chr(0b1100101) + chr(0b1100011) + '\157' + chr(4070 - 3970) + chr(0b1011100 + 0o11))(chr(7346 - 7229) + chr(0b1100 + 0o150) + '\146' + chr(0b1011 + 0o42) + chr(0b110010 + 0o6)) % (YhPU1OiAu4d5, roI3spqORKae(wgf0sgcu_xPL, roI3spqORKae(ES5oEprVxulp(b'54\xa6\xc7\x07$\xce\xe8\xc6j'), '\144' + chr(0b11011 + 0o112) + chr(0b110000 + 0o63) + chr(0b11111 + 0o120) + '\144' + chr(101))(chr(5512 - 5395) + chr(116) + chr(0b111000 + 0o56) + chr(939 - 894) + '\070'))))
|
dnanexus/dx-toolkit
|
src/python/dxpy/app_builder.py
|
is_link_local
|
def is_link_local(link_target):
"""
:param link_target: The target of a symbolic link, as given by os.readlink()
:type link_target: string
:returns: A boolean indicating the link is local to the current directory.
This is defined to mean that os.path.isabs(link_target) == False
and the link NEVER references the parent directory, so
"./foo/../../curdir/foo" would return False.
:rtype: boolean
"""
is_local=(not os.path.isabs(link_target))
if is_local:
# make sure that the path NEVER extends outside the resources directory!
d,l = os.path.split(link_target)
link_parts = []
while l:
link_parts.append(l)
d,l = os.path.split(d)
curr_path = os.sep
for p in reversed(link_parts):
is_local = (is_local and not (curr_path == os.sep and p == os.pardir) )
curr_path = os.path.abspath(os.path.join(curr_path, p))
return is_local
|
python
|
def is_link_local(link_target):
"""
:param link_target: The target of a symbolic link, as given by os.readlink()
:type link_target: string
:returns: A boolean indicating the link is local to the current directory.
This is defined to mean that os.path.isabs(link_target) == False
and the link NEVER references the parent directory, so
"./foo/../../curdir/foo" would return False.
:rtype: boolean
"""
is_local=(not os.path.isabs(link_target))
if is_local:
# make sure that the path NEVER extends outside the resources directory!
d,l = os.path.split(link_target)
link_parts = []
while l:
link_parts.append(l)
d,l = os.path.split(d)
curr_path = os.sep
for p in reversed(link_parts):
is_local = (is_local and not (curr_path == os.sep and p == os.pardir) )
curr_path = os.path.abspath(os.path.join(curr_path, p))
return is_local
|
[
"def",
"is_link_local",
"(",
"link_target",
")",
":",
"is_local",
"=",
"(",
"not",
"os",
".",
"path",
".",
"isabs",
"(",
"link_target",
")",
")",
"if",
"is_local",
":",
"# make sure that the path NEVER extends outside the resources directory!",
"d",
",",
"l",
"=",
"os",
".",
"path",
".",
"split",
"(",
"link_target",
")",
"link_parts",
"=",
"[",
"]",
"while",
"l",
":",
"link_parts",
".",
"append",
"(",
"l",
")",
"d",
",",
"l",
"=",
"os",
".",
"path",
".",
"split",
"(",
"d",
")",
"curr_path",
"=",
"os",
".",
"sep",
"for",
"p",
"in",
"reversed",
"(",
"link_parts",
")",
":",
"is_local",
"=",
"(",
"is_local",
"and",
"not",
"(",
"curr_path",
"==",
"os",
".",
"sep",
"and",
"p",
"==",
"os",
".",
"pardir",
")",
")",
"curr_path",
"=",
"os",
".",
"path",
".",
"abspath",
"(",
"os",
".",
"path",
".",
"join",
"(",
"curr_path",
",",
"p",
")",
")",
"return",
"is_local"
] |
:param link_target: The target of a symbolic link, as given by os.readlink()
:type link_target: string
:returns: A boolean indicating the link is local to the current directory.
This is defined to mean that os.path.isabs(link_target) == False
and the link NEVER references the parent directory, so
"./foo/../../curdir/foo" would return False.
:rtype: boolean
|
[
":",
"param",
"link_target",
":",
"The",
"target",
"of",
"a",
"symbolic",
"link",
"as",
"given",
"by",
"os",
".",
"readlink",
"()",
":",
"type",
"link_target",
":",
"string",
":",
"returns",
":",
"A",
"boolean",
"indicating",
"the",
"link",
"is",
"local",
"to",
"the",
"current",
"directory",
".",
"This",
"is",
"defined",
"to",
"mean",
"that",
"os",
".",
"path",
".",
"isabs",
"(",
"link_target",
")",
"==",
"False",
"and",
"the",
"link",
"NEVER",
"references",
"the",
"parent",
"directory",
"so",
".",
"/",
"foo",
"/",
"..",
"/",
"..",
"/",
"curdir",
"/",
"foo",
"would",
"return",
"False",
".",
":",
"rtype",
":",
"boolean"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/app_builder.py#L140-L165
|
train
|
Returns a boolean indicating if the link is local to the current directory.
|
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT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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('\060' + chr(0b1011000 + 0o27) + '\061' + chr(1319 - 1265) + chr(0b10000 + 0o46), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(1623 - 1574) + chr(0b110010) + chr(1970 - 1920), 0o10), nzTpIcepk0o8('\060' + '\157' + chr(64 - 15) + '\062' + '\x35', 0o10), nzTpIcepk0o8('\x30' + '\x6f' + '\063' + chr(2321 - 2272) + '\060', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(51) + '\066' + chr(0b110111), 52863 - 52855), nzTpIcepk0o8(chr(0b100010 + 0o16) + chr(0b1101111) + chr(0b10111 + 0o32) + chr(1107 - 1056) + chr(51), ord("\x08")), nzTpIcepk0o8(chr(719 - 671) + chr(7154 - 7043) + '\061' + chr(1759 - 1711) + chr(0b10111 + 0o35), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101100 + 0o3) + chr(444 - 393) + '\x33' + '\064', 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(1661 - 1610) + chr(0b110000) + chr(0b110110), 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(0b110010) + chr(0b11000 + 0o33) + '\065', ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(50) + chr(0b110001) + '\x35', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(130 - 81) + chr(0b110110) + chr(0b110011), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b101101 + 0o5) + chr(50) + chr(2426 - 2375), 3455 - 3447), nzTpIcepk0o8(chr(0b110000) + chr(3416 - 3305) + '\062' + '\067' + chr(1770 - 1717), 0o10), nzTpIcepk0o8(chr(0b1010 + 0o46) + chr(8672 - 8561) + chr(0b110010) + chr(1545 - 1497), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b100110 + 0o13) + '\x31' + chr(48), ord("\x08")), nzTpIcepk0o8('\060' + chr(6199 - 6088) + chr(1582 - 1531) + chr(180 - 132) + '\065', ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + '\062' + chr(890 - 840) + '\064', 0b1000), nzTpIcepk0o8('\060' + chr(111) + '\x32' + chr(0b110011), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(2588 - 2537) + chr(1972 - 1920) + chr(0b110100), 6683 - 6675), nzTpIcepk0o8(chr(48) + '\x6f' + '\x33' + chr(0b110001) + '\x32', 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(50) + chr(1541 - 1488) + chr(0b110000), 0b1000), nzTpIcepk0o8(chr(48) + chr(5869 - 5758) + '\x32' + chr(0b110001) + chr(0b1110 + 0o43), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b100000 + 0o21) + chr(0b11111 + 0o25) + chr(123 - 75), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(51) + '\x32' + chr(0b10000 + 0o46), 0b1000), nzTpIcepk0o8(chr(0b101101 + 0o3) + chr(0b110001 + 0o76) + chr(0b100101 + 0o14) + chr(53) + chr(54), 7976 - 7968), nzTpIcepk0o8(chr(0b10110 + 0o32) + chr(3540 - 3429) + chr(0b110101) + chr(0b110001), 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(510 - 461) + chr(2355 - 2301) + chr(0b10101 + 0o36), 8), nzTpIcepk0o8('\x30' + '\157' + '\067' + chr(50), ord("\x08")), nzTpIcepk0o8(chr(2043 - 1995) + chr(7081 - 6970) + '\061' + '\x36' + chr(48), ord("\x08")), nzTpIcepk0o8(chr(2064 - 2016) + chr(0b1101111) + '\x33' + chr(2086 - 2037), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b11 + 0o154) + '\063' + chr(1286 - 1233) + '\x35', 0o10), nzTpIcepk0o8('\x30' + '\157' + '\061' + chr(2604 - 2552) + '\x30', 8), nzTpIcepk0o8('\060' + chr(0b1101111) + '\063' + '\x37', ord("\x08")), nzTpIcepk0o8(chr(0b101 + 0o53) + chr(0b1101111) + chr(49) + chr(2400 - 2351) + chr(2231 - 2180), 0o10), nzTpIcepk0o8(chr(723 - 675) + '\157' + '\x32' + chr(49) + chr(0b110010), 38363 - 38355), nzTpIcepk0o8(chr(0b100011 + 0o15) + '\x6f' + chr(0b110001) + '\x30' + '\x37', 0b1000), nzTpIcepk0o8(chr(0b101010 + 0o6) + chr(0b1001010 + 0o45) + chr(0b11110 + 0o23) + chr(0b110110) + chr(1393 - 1343), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + '\061' + chr(51) + chr(0b110001), ord("\x08")), nzTpIcepk0o8('\x30' + chr(11441 - 11330) + chr(49) + '\061' + '\x30', 8)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + '\157' + chr(635 - 582) + chr(0b110000), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'X'), '\144' + '\145' + chr(8072 - 7973) + chr(2083 - 1972) + '\144' + '\145')(chr(0b11001 + 0o134) + chr(0b1110100) + chr(6661 - 6559) + '\055' + chr(56)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def KgpHRt6nXt9Z(u9bMDOyOrlqy):
zvQ7vbsFf8wE = not aHUqKstZLeS6.path.isabs(u9bMDOyOrlqy)
if zvQ7vbsFf8wE:
(vPPlOXQgR3SM, fPrVrKACaFCC) = aHUqKstZLeS6.path.LfRrQOxuDvnC(u9bMDOyOrlqy)
ADh4DRp_lT11 = []
while fPrVrKACaFCC:
roI3spqORKae(ADh4DRp_lT11, roI3spqORKae(ES5oEprVxulp(b'>\x06\x06\xfc\x8f<\x03\xb3\xac\xf2\xd8F'), '\144' + chr(0b1100101) + chr(4804 - 4705) + '\x6f' + chr(2816 - 2716) + '\145')(chr(10291 - 10174) + chr(0b1110100) + chr(0b1010011 + 0o23) + chr(0b10010 + 0o33) + chr(0b111000 + 0o0)))(fPrVrKACaFCC)
(vPPlOXQgR3SM, fPrVrKACaFCC) = aHUqKstZLeS6.path.LfRrQOxuDvnC(vPPlOXQgR3SM)
aBsCFSxGkh7M = aHUqKstZLeS6.EAvVzGIvS3lY
for fSdw5wwLo9MO in DoS4vLAglV8A(ADh4DRp_lT11):
zvQ7vbsFf8wE = zvQ7vbsFf8wE and (not (aBsCFSxGkh7M == aHUqKstZLeS6.EAvVzGIvS3lY and fSdw5wwLo9MO == aHUqKstZLeS6.pardir))
aBsCFSxGkh7M = aHUqKstZLeS6.path.LSQRPdli1Fxe(aHUqKstZLeS6.path.Y4yM9BcfTCNq(aBsCFSxGkh7M, fSdw5wwLo9MO))
return zvQ7vbsFf8wE
|
dnanexus/dx-toolkit
|
src/python/dxpy/app_builder.py
|
_fix_perms
|
def _fix_perms(perm_obj):
"""
:param perm_obj: A permissions object, as given by os.stat()
:type perm_obj: integer
:returns: A permissions object that is the result of "chmod a+rX" on the
given permission object. This is defined to be the permission object
bitwise or-ed with all stat.S_IR*, and if the stat.S_IXUSR bit is
set, then the permission object should also be returned bitwise or-ed
with stat.S_IX* (stat.S_IXUSR not included because it would be redundant).
:rtype: integer
"""
ret_perm = perm_obj | stat.S_IROTH | stat.S_IRGRP | stat.S_IRUSR
if ret_perm & stat.S_IXUSR:
ret_perm = ret_perm | stat.S_IXGRP | stat.S_IXOTH
return ret_perm
|
python
|
def _fix_perms(perm_obj):
"""
:param perm_obj: A permissions object, as given by os.stat()
:type perm_obj: integer
:returns: A permissions object that is the result of "chmod a+rX" on the
given permission object. This is defined to be the permission object
bitwise or-ed with all stat.S_IR*, and if the stat.S_IXUSR bit is
set, then the permission object should also be returned bitwise or-ed
with stat.S_IX* (stat.S_IXUSR not included because it would be redundant).
:rtype: integer
"""
ret_perm = perm_obj | stat.S_IROTH | stat.S_IRGRP | stat.S_IRUSR
if ret_perm & stat.S_IXUSR:
ret_perm = ret_perm | stat.S_IXGRP | stat.S_IXOTH
return ret_perm
|
[
"def",
"_fix_perms",
"(",
"perm_obj",
")",
":",
"ret_perm",
"=",
"perm_obj",
"|",
"stat",
".",
"S_IROTH",
"|",
"stat",
".",
"S_IRGRP",
"|",
"stat",
".",
"S_IRUSR",
"if",
"ret_perm",
"&",
"stat",
".",
"S_IXUSR",
":",
"ret_perm",
"=",
"ret_perm",
"|",
"stat",
".",
"S_IXGRP",
"|",
"stat",
".",
"S_IXOTH",
"return",
"ret_perm"
] |
:param perm_obj: A permissions object, as given by os.stat()
:type perm_obj: integer
:returns: A permissions object that is the result of "chmod a+rX" on the
given permission object. This is defined to be the permission object
bitwise or-ed with all stat.S_IR*, and if the stat.S_IXUSR bit is
set, then the permission object should also be returned bitwise or-ed
with stat.S_IX* (stat.S_IXUSR not included because it would be redundant).
:rtype: integer
|
[
":",
"param",
"perm_obj",
":",
"A",
"permissions",
"object",
"as",
"given",
"by",
"os",
".",
"stat",
"()",
":",
"type",
"perm_obj",
":",
"integer",
":",
"returns",
":",
"A",
"permissions",
"object",
"that",
"is",
"the",
"result",
"of",
"chmod",
"a",
"+",
"rX",
"on",
"the",
"given",
"permission",
"object",
".",
"This",
"is",
"defined",
"to",
"be",
"the",
"permission",
"object",
"bitwise",
"or",
"-",
"ed",
"with",
"all",
"stat",
".",
"S_IR",
"*",
"and",
"if",
"the",
"stat",
".",
"S_IXUSR",
"bit",
"is",
"set",
"then",
"the",
"permission",
"object",
"should",
"also",
"be",
"returned",
"bitwise",
"or",
"-",
"ed",
"with",
"stat",
".",
"S_IX",
"*",
"(",
"stat",
".",
"S_IXUSR",
"not",
"included",
"because",
"it",
"would",
"be",
"redundant",
")",
".",
":",
"rtype",
":",
"integer"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/app_builder.py#L167-L182
|
train
|
Fixes permissions for the
.
|
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,aHxuT4bID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zTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__
ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\060' + '\x6f' + chr(0b110011) + chr(49) + chr(1998 - 1946), 0o10), nzTpIcepk0o8('\060' + chr(7178 - 7067) + chr(49) + '\067' + '\x31', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110001) + chr(711 - 661) + '\064', ord("\x08")), nzTpIcepk0o8(chr(0b10101 + 0o33) + '\x6f' + chr(0b110101) + chr(52), 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(52) + '\x31', 0b1000), nzTpIcepk0o8(chr(1840 - 1792) + '\157' + '\x33' + '\065' + chr(52), 0b1000), nzTpIcepk0o8(chr(0b1000 + 0o50) + chr(0b1101111) + '\x33' + chr(0b110000), 61215 - 61207), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110010) + chr(52) + chr(1537 - 1488), 0b1000), nzTpIcepk0o8(chr(81 - 33) + '\157' + '\062' + chr(1679 - 1625) + chr(0b110110), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(2198 - 2087) + '\x31' + chr(0b1111 + 0o43) + chr(784 - 729), 49184 - 49176), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x32' + chr(0b110000) + '\063', ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(659 - 609) + '\064' + chr(0b110010), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(50) + chr(360 - 309) + chr(2547 - 2494), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\061' + '\x37' + chr(0b110 + 0o61), 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110001) + chr(49) + chr(0b110001), 14143 - 14135), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110001) + chr(0b11100 + 0o32), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + '\062' + chr(0b110101) + '\x35', 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110011) + chr(0b1011 + 0o52) + chr(813 - 760), 0o10), nzTpIcepk0o8('\x30' + '\157' + '\x35', 0o10), nzTpIcepk0o8('\x30' + chr(0b11001 + 0o126) + chr(54) + chr(0b110000), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b111 + 0o150) + chr(49), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1010010 + 0o35) + '\x33' + '\x33' + chr(0b110110), 0b1000), nzTpIcepk0o8(chr(48) + chr(6458 - 6347) + chr(49) + '\x32' + chr(0b100 + 0o57), ord("\x08")), nzTpIcepk0o8(chr(1271 - 1223) + chr(111) + chr(1196 - 1146) + chr(0b11000 + 0o34) + chr(0b110110), 3320 - 3312), nzTpIcepk0o8('\060' + chr(111) + '\x31' + chr(0b100101 + 0o13) + '\x32', 0b1000), nzTpIcepk0o8('\x30' + chr(4647 - 4536) + chr(0b1011 + 0o46) + chr(55), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x32' + chr(989 - 938) + chr(49), 42578 - 42570), nzTpIcepk0o8(chr(0b110 + 0o52) + '\x6f' + '\066' + chr(0b101001 + 0o10), 20562 - 20554), nzTpIcepk0o8(chr(48) + chr(5269 - 5158) + '\063' + chr(51) + chr(0b11000 + 0o33), 0b1000), nzTpIcepk0o8('\x30' + '\157' + '\062' + chr(0b101001 + 0o11) + chr(0b100000 + 0o20), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(2032 - 1979) + chr(49), ord("\x08")), nzTpIcepk0o8(chr(0b11000 + 0o30) + chr(0b1101111) + '\063' + '\x31' + chr(54), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1001101 + 0o42) + chr(0b100110 + 0o13) + chr(1855 - 1802) + '\x34', ord("\x08")), nzTpIcepk0o8(chr(1068 - 1020) + chr(0b11 + 0o154) + chr(1570 - 1518) + chr(0b10000 + 0o40), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + '\x31' + '\x37' + '\x36', ord("\x08")), nzTpIcepk0o8(chr(0b100010 + 0o16) + chr(0b1101000 + 0o7) + '\x31' + chr(1843 - 1794) + '\x34', ord("\x08")), nzTpIcepk0o8(chr(0b10101 + 0o33) + chr(0b1101111) + chr(0b101101 + 0o6) + chr(0b110010) + chr(364 - 312), 0b1000), nzTpIcepk0o8(chr(0b10110 + 0o32) + chr(3066 - 2955) + chr(50) + '\x34' + chr(0b110110), 8), nzTpIcepk0o8(chr(0b110000) + chr(1108 - 997) + chr(0b110 + 0o53) + chr(0b100000 + 0o23) + '\x30', 45990 - 45982), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110 + 0o53) + chr(0b110000) + chr(0b110011), 62341 - 62333)][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(2469 - 2416) + '\x30', ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xe2'), chr(9404 - 9304) + chr(0b10000 + 0o125) + '\143' + '\x6f' + chr(100) + chr(101))('\165' + chr(116) + chr(0b1100110) + chr(0b101101) + chr(0b0 + 0o70)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def DLIHCFqrXlUE(qTEr94aMJbKV):
sljibt51UByp = qTEr94aMJbKV | uHkyNaF6hl2K.S_IROTH | uHkyNaF6hl2K.S_IRGRP | uHkyNaF6hl2K.S_IRUSR
if sljibt51UByp & roI3spqORKae(uHkyNaF6hl2K, roI3spqORKae(ES5oEprVxulp(b'\x9f&\x1dtt\xbfJ'), chr(0b1101 + 0o127) + chr(0b1001101 + 0o30) + chr(99) + chr(0b1101011 + 0o4) + chr(0b1000101 + 0o37) + chr(5524 - 5423))(chr(1107 - 990) + chr(0b1010000 + 0o44) + '\146' + '\055' + '\x38')):
sljibt51UByp = sljibt51UByp | uHkyNaF6hl2K.S_IXGRP | uHkyNaF6hl2K.S_IXOTH
return sljibt51UByp
|
dnanexus/dx-toolkit
|
src/python/dxpy/app_builder.py
|
upload_resources
|
def upload_resources(src_dir, project=None, folder='/', ensure_upload=False, force_symlinks=False):
"""
:param ensure_upload: If True, will bypass checksum of resources directory
and upload resources bundle unconditionally;
will NOT be able to reuse this bundle in future builds.
Else if False, will compute checksum and upload bundle
if checksum is different from a previously uploaded
bundle's checksum.
:type ensure_upload: boolean
:param force_symlinks: If true, will bypass the attempt to dereference any
non-local symlinks and will unconditionally include
the link as-is. Note that this will almost certainly
result in a broken link within the resource directory
unless you really know what you're doing.
:type force_symlinks: boolean
:returns: A list (possibly empty) of references to the generated archive(s)
:rtype: list
If it exists, archives and uploads the contents of the
``resources/`` subdirectory of *src_dir* to a new remote file
object, and returns a list describing a single bundled dependency in
the form expected by the ``bundledDepends`` field of a run
specification. Returns an empty list, if no archive was created.
"""
applet_spec = _get_applet_spec(src_dir)
if project is None:
dest_project = applet_spec['project']
else:
dest_project = project
applet_spec['project'] = project
resources_dir = os.path.join(src_dir, "resources")
if os.path.exists(resources_dir) and len(os.listdir(resources_dir)) > 0:
target_folder = applet_spec['folder'] if 'folder' in applet_spec else folder
# While creating the resource bundle, optimistically look for a
# resource bundle with the same contents, and reuse it if possible.
# The resource bundle carries a property 'resource_bundle_checksum'
# that indicates the checksum; the way in which the checksum is
# computed is given below. If the checksum matches (and
# ensure_upload is False), then we will use the existing file,
# otherwise, we will compress and upload the tarball.
# The input to the SHA1 contains entries of the form (whitespace
# only included here for readability):
#
# / \0 MODE \0 MTIME \0
# /foo \0 MODE \0 MTIME \0
# ...
#
# where there is one entry for each directory or file (order is
# specified below), followed by a numeric representation of the
# mode, and the mtime in milliseconds since the epoch.
#
# Note when looking at a link, if the link is to be dereferenced,
# the mtime and mode used are that of the target (using os.stat())
# If the link is to be kept as a link, the mtime and mode are those
# of the link itself (using os.lstat())
with tempfile.NamedTemporaryFile(suffix=".tar") as tar_tmp_fh:
output_sha1 = hashlib.sha1()
tar_fh = tarfile.open(fileobj=tar_tmp_fh, mode='w')
for dirname, subdirs, files in os.walk(resources_dir):
if not dirname.startswith(resources_dir):
raise AssertionError('Expected %r to start with root directory %r' % (dirname, resources_dir))
# Add an entry for the directory itself
relative_dirname = dirname[len(resources_dir):]
dir_stat = os.lstat(dirname)
if not relative_dirname.startswith('/'):
relative_dirname = '/' + relative_dirname
fields = [relative_dirname, str(_fix_perms(dir_stat.st_mode)), str(int(dir_stat.st_mtime * 1000))]
output_sha1.update(b''.join(s.encode('utf-8') + b'\0' for s in fields))
# add an entry in the tar file for the current directory, but
# do not recurse!
tar_fh.add(dirname, arcname='.' + relative_dirname, recursive=False, filter=_fix_perm_filter)
# Canonicalize the order of subdirectories; this is the order in
# which they will be visited by os.walk
subdirs.sort()
# check the subdirectories for symlinks. We should throw an error
# if there are any links that point outside of the directory (unless
# --force-symlinks is given). If a link is pointing internal to
# the directory (or --force-symlinks is given), we should add it
# as a file.
for subdir_name in subdirs:
dir_path = os.path.join(dirname, subdir_name)
# If we do have a symlink,
if os.path.islink(dir_path):
# Let's get the pointed-to path to ensure that it is
# still in the directory
link_target = os.readlink(dir_path)
# If this is a local link, add it to the list of files (case 1)
# else raise an error
if force_symlinks or is_link_local(link_target):
files.append(subdir_name)
else:
raise AppBuilderException("Cannot include symlinks to directories outside of the resource directory. '%s' points to directory '%s'" % (dir_path, os.path.realpath(dir_path)))
# Canonicalize the order of files so that we compute the
# checksum in a consistent order
for filename in sorted(files):
deref_link = False
relative_filename = os.path.join(relative_dirname, filename)
true_filename = os.path.join(dirname, filename)
file_stat = os.lstat(true_filename)
# check for a link here, please!
if os.path.islink(true_filename):
# Get the pointed-to path
link_target = os.readlink(true_filename)
if not (force_symlinks or is_link_local(link_target)):
# if we are pointing outside of the directory, then:
# try to get the true stat of the file and make sure
# to dereference the link!
try:
file_stat = os.stat(os.path.join(dirname, link_target))
deref_link = True
except OSError:
# uh-oh! looks like we have a broken link!
# since this is guaranteed to cause problems (and
# we know we're not forcing symlinks here), we
# should throw an error
raise AppBuilderException("Broken symlink: Link '%s' points to '%s', which does not exist" % (true_filename, os.path.realpath(true_filename)) )
fields = [relative_filename, str(_fix_perms(file_stat.st_mode)), str(int(file_stat.st_mtime * 1000))]
output_sha1.update(b''.join(s.encode('utf-8') + b'\0' for s in fields))
# If we are to dereference, use the target fn
if deref_link:
true_filename = os.path.realpath(true_filename)
tar_fh.add(true_filename, arcname='.' + relative_filename, filter=_fix_perm_filter)
# end for filename in sorted(files)
# end for dirname, subdirs, files in os.walk(resources_dir):
# at this point, the tar is complete, so close the tar_fh
tar_fh.close()
# Optimistically look for a resource bundle with the same
# contents, and reuse it if possible. The resource bundle
# carries a property 'resource_bundle_checksum' that indicates
# the checksum; the way in which the checksum is computed is
# given in the documentation of _directory_checksum.
if ensure_upload:
properties_dict = {}
existing_resources = False
else:
directory_checksum = output_sha1.hexdigest()
properties_dict = dict(resource_bundle_checksum=directory_checksum)
existing_resources = dxpy.find_one_data_object(
project=dest_project,
folder=target_folder,
properties=dict(resource_bundle_checksum=directory_checksum),
visibility='either',
zero_ok=True,
state='closed',
return_handler=True
)
if existing_resources:
logger.info("Found existing resource bundle that matches local resources directory: " +
existing_resources.get_id())
dx_resource_archive = existing_resources
else:
logger.debug("Uploading in " + src_dir)
# We need to compress the tar that we've created
targz_fh = tempfile.NamedTemporaryFile(suffix=".tar.gz", delete=False)
# compress the file by reading the tar file and passing
# it though a GzipFile object, writing the given
# block size (by default 8192 bytes) at a time
targz_gzf = gzip.GzipFile(fileobj=targz_fh, mode='wb')
tar_tmp_fh.seek(0)
dat = tar_tmp_fh.read(io.DEFAULT_BUFFER_SIZE)
while dat:
targz_gzf.write(dat)
dat = tar_tmp_fh.read(io.DEFAULT_BUFFER_SIZE)
targz_gzf.flush()
targz_gzf.close()
targz_fh.close()
if 'folder' in applet_spec:
try:
dxpy.get_handler(dest_project).new_folder(applet_spec['folder'], parents=True)
except dxpy.exceptions.DXAPIError:
pass # TODO: make this better
dx_resource_archive = dxpy.upload_local_file(
targz_fh.name,
wait_on_close=True,
project=dest_project,
folder=target_folder,
hidden=True,
properties=properties_dict
)
os.unlink(targz_fh.name)
# end compressed file creation and upload
archive_link = dxpy.dxlink(dx_resource_archive.get_id())
# end tempfile.NamedTemporaryFile(suffix=".tar") as tar_fh
return [{'name': 'resources.tar.gz', 'id': archive_link}]
else:
return []
|
python
|
def upload_resources(src_dir, project=None, folder='/', ensure_upload=False, force_symlinks=False):
"""
:param ensure_upload: If True, will bypass checksum of resources directory
and upload resources bundle unconditionally;
will NOT be able to reuse this bundle in future builds.
Else if False, will compute checksum and upload bundle
if checksum is different from a previously uploaded
bundle's checksum.
:type ensure_upload: boolean
:param force_symlinks: If true, will bypass the attempt to dereference any
non-local symlinks and will unconditionally include
the link as-is. Note that this will almost certainly
result in a broken link within the resource directory
unless you really know what you're doing.
:type force_symlinks: boolean
:returns: A list (possibly empty) of references to the generated archive(s)
:rtype: list
If it exists, archives and uploads the contents of the
``resources/`` subdirectory of *src_dir* to a new remote file
object, and returns a list describing a single bundled dependency in
the form expected by the ``bundledDepends`` field of a run
specification. Returns an empty list, if no archive was created.
"""
applet_spec = _get_applet_spec(src_dir)
if project is None:
dest_project = applet_spec['project']
else:
dest_project = project
applet_spec['project'] = project
resources_dir = os.path.join(src_dir, "resources")
if os.path.exists(resources_dir) and len(os.listdir(resources_dir)) > 0:
target_folder = applet_spec['folder'] if 'folder' in applet_spec else folder
# While creating the resource bundle, optimistically look for a
# resource bundle with the same contents, and reuse it if possible.
# The resource bundle carries a property 'resource_bundle_checksum'
# that indicates the checksum; the way in which the checksum is
# computed is given below. If the checksum matches (and
# ensure_upload is False), then we will use the existing file,
# otherwise, we will compress and upload the tarball.
# The input to the SHA1 contains entries of the form (whitespace
# only included here for readability):
#
# / \0 MODE \0 MTIME \0
# /foo \0 MODE \0 MTIME \0
# ...
#
# where there is one entry for each directory or file (order is
# specified below), followed by a numeric representation of the
# mode, and the mtime in milliseconds since the epoch.
#
# Note when looking at a link, if the link is to be dereferenced,
# the mtime and mode used are that of the target (using os.stat())
# If the link is to be kept as a link, the mtime and mode are those
# of the link itself (using os.lstat())
with tempfile.NamedTemporaryFile(suffix=".tar") as tar_tmp_fh:
output_sha1 = hashlib.sha1()
tar_fh = tarfile.open(fileobj=tar_tmp_fh, mode='w')
for dirname, subdirs, files in os.walk(resources_dir):
if not dirname.startswith(resources_dir):
raise AssertionError('Expected %r to start with root directory %r' % (dirname, resources_dir))
# Add an entry for the directory itself
relative_dirname = dirname[len(resources_dir):]
dir_stat = os.lstat(dirname)
if not relative_dirname.startswith('/'):
relative_dirname = '/' + relative_dirname
fields = [relative_dirname, str(_fix_perms(dir_stat.st_mode)), str(int(dir_stat.st_mtime * 1000))]
output_sha1.update(b''.join(s.encode('utf-8') + b'\0' for s in fields))
# add an entry in the tar file for the current directory, but
# do not recurse!
tar_fh.add(dirname, arcname='.' + relative_dirname, recursive=False, filter=_fix_perm_filter)
# Canonicalize the order of subdirectories; this is the order in
# which they will be visited by os.walk
subdirs.sort()
# check the subdirectories for symlinks. We should throw an error
# if there are any links that point outside of the directory (unless
# --force-symlinks is given). If a link is pointing internal to
# the directory (or --force-symlinks is given), we should add it
# as a file.
for subdir_name in subdirs:
dir_path = os.path.join(dirname, subdir_name)
# If we do have a symlink,
if os.path.islink(dir_path):
# Let's get the pointed-to path to ensure that it is
# still in the directory
link_target = os.readlink(dir_path)
# If this is a local link, add it to the list of files (case 1)
# else raise an error
if force_symlinks or is_link_local(link_target):
files.append(subdir_name)
else:
raise AppBuilderException("Cannot include symlinks to directories outside of the resource directory. '%s' points to directory '%s'" % (dir_path, os.path.realpath(dir_path)))
# Canonicalize the order of files so that we compute the
# checksum in a consistent order
for filename in sorted(files):
deref_link = False
relative_filename = os.path.join(relative_dirname, filename)
true_filename = os.path.join(dirname, filename)
file_stat = os.lstat(true_filename)
# check for a link here, please!
if os.path.islink(true_filename):
# Get the pointed-to path
link_target = os.readlink(true_filename)
if not (force_symlinks or is_link_local(link_target)):
# if we are pointing outside of the directory, then:
# try to get the true stat of the file and make sure
# to dereference the link!
try:
file_stat = os.stat(os.path.join(dirname, link_target))
deref_link = True
except OSError:
# uh-oh! looks like we have a broken link!
# since this is guaranteed to cause problems (and
# we know we're not forcing symlinks here), we
# should throw an error
raise AppBuilderException("Broken symlink: Link '%s' points to '%s', which does not exist" % (true_filename, os.path.realpath(true_filename)) )
fields = [relative_filename, str(_fix_perms(file_stat.st_mode)), str(int(file_stat.st_mtime * 1000))]
output_sha1.update(b''.join(s.encode('utf-8') + b'\0' for s in fields))
# If we are to dereference, use the target fn
if deref_link:
true_filename = os.path.realpath(true_filename)
tar_fh.add(true_filename, arcname='.' + relative_filename, filter=_fix_perm_filter)
# end for filename in sorted(files)
# end for dirname, subdirs, files in os.walk(resources_dir):
# at this point, the tar is complete, so close the tar_fh
tar_fh.close()
# Optimistically look for a resource bundle with the same
# contents, and reuse it if possible. The resource bundle
# carries a property 'resource_bundle_checksum' that indicates
# the checksum; the way in which the checksum is computed is
# given in the documentation of _directory_checksum.
if ensure_upload:
properties_dict = {}
existing_resources = False
else:
directory_checksum = output_sha1.hexdigest()
properties_dict = dict(resource_bundle_checksum=directory_checksum)
existing_resources = dxpy.find_one_data_object(
project=dest_project,
folder=target_folder,
properties=dict(resource_bundle_checksum=directory_checksum),
visibility='either',
zero_ok=True,
state='closed',
return_handler=True
)
if existing_resources:
logger.info("Found existing resource bundle that matches local resources directory: " +
existing_resources.get_id())
dx_resource_archive = existing_resources
else:
logger.debug("Uploading in " + src_dir)
# We need to compress the tar that we've created
targz_fh = tempfile.NamedTemporaryFile(suffix=".tar.gz", delete=False)
# compress the file by reading the tar file and passing
# it though a GzipFile object, writing the given
# block size (by default 8192 bytes) at a time
targz_gzf = gzip.GzipFile(fileobj=targz_fh, mode='wb')
tar_tmp_fh.seek(0)
dat = tar_tmp_fh.read(io.DEFAULT_BUFFER_SIZE)
while dat:
targz_gzf.write(dat)
dat = tar_tmp_fh.read(io.DEFAULT_BUFFER_SIZE)
targz_gzf.flush()
targz_gzf.close()
targz_fh.close()
if 'folder' in applet_spec:
try:
dxpy.get_handler(dest_project).new_folder(applet_spec['folder'], parents=True)
except dxpy.exceptions.DXAPIError:
pass # TODO: make this better
dx_resource_archive = dxpy.upload_local_file(
targz_fh.name,
wait_on_close=True,
project=dest_project,
folder=target_folder,
hidden=True,
properties=properties_dict
)
os.unlink(targz_fh.name)
# end compressed file creation and upload
archive_link = dxpy.dxlink(dx_resource_archive.get_id())
# end tempfile.NamedTemporaryFile(suffix=".tar") as tar_fh
return [{'name': 'resources.tar.gz', 'id': archive_link}]
else:
return []
|
[
"def",
"upload_resources",
"(",
"src_dir",
",",
"project",
"=",
"None",
",",
"folder",
"=",
"'/'",
",",
"ensure_upload",
"=",
"False",
",",
"force_symlinks",
"=",
"False",
")",
":",
"applet_spec",
"=",
"_get_applet_spec",
"(",
"src_dir",
")",
"if",
"project",
"is",
"None",
":",
"dest_project",
"=",
"applet_spec",
"[",
"'project'",
"]",
"else",
":",
"dest_project",
"=",
"project",
"applet_spec",
"[",
"'project'",
"]",
"=",
"project",
"resources_dir",
"=",
"os",
".",
"path",
".",
"join",
"(",
"src_dir",
",",
"\"resources\"",
")",
"if",
"os",
".",
"path",
".",
"exists",
"(",
"resources_dir",
")",
"and",
"len",
"(",
"os",
".",
"listdir",
"(",
"resources_dir",
")",
")",
">",
"0",
":",
"target_folder",
"=",
"applet_spec",
"[",
"'folder'",
"]",
"if",
"'folder'",
"in",
"applet_spec",
"else",
"folder",
"# While creating the resource bundle, optimistically look for a",
"# resource bundle with the same contents, and reuse it if possible.",
"# The resource bundle carries a property 'resource_bundle_checksum'",
"# that indicates the checksum; the way in which the checksum is",
"# computed is given below. If the checksum matches (and",
"# ensure_upload is False), then we will use the existing file,",
"# otherwise, we will compress and upload the tarball.",
"# The input to the SHA1 contains entries of the form (whitespace",
"# only included here for readability):",
"#",
"# / \\0 MODE \\0 MTIME \\0",
"# /foo \\0 MODE \\0 MTIME \\0",
"# ...",
"#",
"# where there is one entry for each directory or file (order is",
"# specified below), followed by a numeric representation of the",
"# mode, and the mtime in milliseconds since the epoch.",
"#",
"# Note when looking at a link, if the link is to be dereferenced,",
"# the mtime and mode used are that of the target (using os.stat())",
"# If the link is to be kept as a link, the mtime and mode are those",
"# of the link itself (using os.lstat())",
"with",
"tempfile",
".",
"NamedTemporaryFile",
"(",
"suffix",
"=",
"\".tar\"",
")",
"as",
"tar_tmp_fh",
":",
"output_sha1",
"=",
"hashlib",
".",
"sha1",
"(",
")",
"tar_fh",
"=",
"tarfile",
".",
"open",
"(",
"fileobj",
"=",
"tar_tmp_fh",
",",
"mode",
"=",
"'w'",
")",
"for",
"dirname",
",",
"subdirs",
",",
"files",
"in",
"os",
".",
"walk",
"(",
"resources_dir",
")",
":",
"if",
"not",
"dirname",
".",
"startswith",
"(",
"resources_dir",
")",
":",
"raise",
"AssertionError",
"(",
"'Expected %r to start with root directory %r'",
"%",
"(",
"dirname",
",",
"resources_dir",
")",
")",
"# Add an entry for the directory itself",
"relative_dirname",
"=",
"dirname",
"[",
"len",
"(",
"resources_dir",
")",
":",
"]",
"dir_stat",
"=",
"os",
".",
"lstat",
"(",
"dirname",
")",
"if",
"not",
"relative_dirname",
".",
"startswith",
"(",
"'/'",
")",
":",
"relative_dirname",
"=",
"'/'",
"+",
"relative_dirname",
"fields",
"=",
"[",
"relative_dirname",
",",
"str",
"(",
"_fix_perms",
"(",
"dir_stat",
".",
"st_mode",
")",
")",
",",
"str",
"(",
"int",
"(",
"dir_stat",
".",
"st_mtime",
"*",
"1000",
")",
")",
"]",
"output_sha1",
".",
"update",
"(",
"b''",
".",
"join",
"(",
"s",
".",
"encode",
"(",
"'utf-8'",
")",
"+",
"b'\\0'",
"for",
"s",
"in",
"fields",
")",
")",
"# add an entry in the tar file for the current directory, but",
"# do not recurse!",
"tar_fh",
".",
"add",
"(",
"dirname",
",",
"arcname",
"=",
"'.'",
"+",
"relative_dirname",
",",
"recursive",
"=",
"False",
",",
"filter",
"=",
"_fix_perm_filter",
")",
"# Canonicalize the order of subdirectories; this is the order in",
"# which they will be visited by os.walk",
"subdirs",
".",
"sort",
"(",
")",
"# check the subdirectories for symlinks. We should throw an error",
"# if there are any links that point outside of the directory (unless",
"# --force-symlinks is given). If a link is pointing internal to",
"# the directory (or --force-symlinks is given), we should add it",
"# as a file.",
"for",
"subdir_name",
"in",
"subdirs",
":",
"dir_path",
"=",
"os",
".",
"path",
".",
"join",
"(",
"dirname",
",",
"subdir_name",
")",
"# If we do have a symlink,",
"if",
"os",
".",
"path",
".",
"islink",
"(",
"dir_path",
")",
":",
"# Let's get the pointed-to path to ensure that it is",
"# still in the directory",
"link_target",
"=",
"os",
".",
"readlink",
"(",
"dir_path",
")",
"# If this is a local link, add it to the list of files (case 1)",
"# else raise an error",
"if",
"force_symlinks",
"or",
"is_link_local",
"(",
"link_target",
")",
":",
"files",
".",
"append",
"(",
"subdir_name",
")",
"else",
":",
"raise",
"AppBuilderException",
"(",
"\"Cannot include symlinks to directories outside of the resource directory. '%s' points to directory '%s'\"",
"%",
"(",
"dir_path",
",",
"os",
".",
"path",
".",
"realpath",
"(",
"dir_path",
")",
")",
")",
"# Canonicalize the order of files so that we compute the",
"# checksum in a consistent order",
"for",
"filename",
"in",
"sorted",
"(",
"files",
")",
":",
"deref_link",
"=",
"False",
"relative_filename",
"=",
"os",
".",
"path",
".",
"join",
"(",
"relative_dirname",
",",
"filename",
")",
"true_filename",
"=",
"os",
".",
"path",
".",
"join",
"(",
"dirname",
",",
"filename",
")",
"file_stat",
"=",
"os",
".",
"lstat",
"(",
"true_filename",
")",
"# check for a link here, please!",
"if",
"os",
".",
"path",
".",
"islink",
"(",
"true_filename",
")",
":",
"# Get the pointed-to path",
"link_target",
"=",
"os",
".",
"readlink",
"(",
"true_filename",
")",
"if",
"not",
"(",
"force_symlinks",
"or",
"is_link_local",
"(",
"link_target",
")",
")",
":",
"# if we are pointing outside of the directory, then:",
"# try to get the true stat of the file and make sure",
"# to dereference the link!",
"try",
":",
"file_stat",
"=",
"os",
".",
"stat",
"(",
"os",
".",
"path",
".",
"join",
"(",
"dirname",
",",
"link_target",
")",
")",
"deref_link",
"=",
"True",
"except",
"OSError",
":",
"# uh-oh! looks like we have a broken link!",
"# since this is guaranteed to cause problems (and",
"# we know we're not forcing symlinks here), we",
"# should throw an error",
"raise",
"AppBuilderException",
"(",
"\"Broken symlink: Link '%s' points to '%s', which does not exist\"",
"%",
"(",
"true_filename",
",",
"os",
".",
"path",
".",
"realpath",
"(",
"true_filename",
")",
")",
")",
"fields",
"=",
"[",
"relative_filename",
",",
"str",
"(",
"_fix_perms",
"(",
"file_stat",
".",
"st_mode",
")",
")",
",",
"str",
"(",
"int",
"(",
"file_stat",
".",
"st_mtime",
"*",
"1000",
")",
")",
"]",
"output_sha1",
".",
"update",
"(",
"b''",
".",
"join",
"(",
"s",
".",
"encode",
"(",
"'utf-8'",
")",
"+",
"b'\\0'",
"for",
"s",
"in",
"fields",
")",
")",
"# If we are to dereference, use the target fn",
"if",
"deref_link",
":",
"true_filename",
"=",
"os",
".",
"path",
".",
"realpath",
"(",
"true_filename",
")",
"tar_fh",
".",
"add",
"(",
"true_filename",
",",
"arcname",
"=",
"'.'",
"+",
"relative_filename",
",",
"filter",
"=",
"_fix_perm_filter",
")",
"# end for filename in sorted(files)",
"# end for dirname, subdirs, files in os.walk(resources_dir):",
"# at this point, the tar is complete, so close the tar_fh",
"tar_fh",
".",
"close",
"(",
")",
"# Optimistically look for a resource bundle with the same",
"# contents, and reuse it if possible. The resource bundle",
"# carries a property 'resource_bundle_checksum' that indicates",
"# the checksum; the way in which the checksum is computed is",
"# given in the documentation of _directory_checksum.",
"if",
"ensure_upload",
":",
"properties_dict",
"=",
"{",
"}",
"existing_resources",
"=",
"False",
"else",
":",
"directory_checksum",
"=",
"output_sha1",
".",
"hexdigest",
"(",
")",
"properties_dict",
"=",
"dict",
"(",
"resource_bundle_checksum",
"=",
"directory_checksum",
")",
"existing_resources",
"=",
"dxpy",
".",
"find_one_data_object",
"(",
"project",
"=",
"dest_project",
",",
"folder",
"=",
"target_folder",
",",
"properties",
"=",
"dict",
"(",
"resource_bundle_checksum",
"=",
"directory_checksum",
")",
",",
"visibility",
"=",
"'either'",
",",
"zero_ok",
"=",
"True",
",",
"state",
"=",
"'closed'",
",",
"return_handler",
"=",
"True",
")",
"if",
"existing_resources",
":",
"logger",
".",
"info",
"(",
"\"Found existing resource bundle that matches local resources directory: \"",
"+",
"existing_resources",
".",
"get_id",
"(",
")",
")",
"dx_resource_archive",
"=",
"existing_resources",
"else",
":",
"logger",
".",
"debug",
"(",
"\"Uploading in \"",
"+",
"src_dir",
")",
"# We need to compress the tar that we've created",
"targz_fh",
"=",
"tempfile",
".",
"NamedTemporaryFile",
"(",
"suffix",
"=",
"\".tar.gz\"",
",",
"delete",
"=",
"False",
")",
"# compress the file by reading the tar file and passing",
"# it though a GzipFile object, writing the given",
"# block size (by default 8192 bytes) at a time",
"targz_gzf",
"=",
"gzip",
".",
"GzipFile",
"(",
"fileobj",
"=",
"targz_fh",
",",
"mode",
"=",
"'wb'",
")",
"tar_tmp_fh",
".",
"seek",
"(",
"0",
")",
"dat",
"=",
"tar_tmp_fh",
".",
"read",
"(",
"io",
".",
"DEFAULT_BUFFER_SIZE",
")",
"while",
"dat",
":",
"targz_gzf",
".",
"write",
"(",
"dat",
")",
"dat",
"=",
"tar_tmp_fh",
".",
"read",
"(",
"io",
".",
"DEFAULT_BUFFER_SIZE",
")",
"targz_gzf",
".",
"flush",
"(",
")",
"targz_gzf",
".",
"close",
"(",
")",
"targz_fh",
".",
"close",
"(",
")",
"if",
"'folder'",
"in",
"applet_spec",
":",
"try",
":",
"dxpy",
".",
"get_handler",
"(",
"dest_project",
")",
".",
"new_folder",
"(",
"applet_spec",
"[",
"'folder'",
"]",
",",
"parents",
"=",
"True",
")",
"except",
"dxpy",
".",
"exceptions",
".",
"DXAPIError",
":",
"pass",
"# TODO: make this better",
"dx_resource_archive",
"=",
"dxpy",
".",
"upload_local_file",
"(",
"targz_fh",
".",
"name",
",",
"wait_on_close",
"=",
"True",
",",
"project",
"=",
"dest_project",
",",
"folder",
"=",
"target_folder",
",",
"hidden",
"=",
"True",
",",
"properties",
"=",
"properties_dict",
")",
"os",
".",
"unlink",
"(",
"targz_fh",
".",
"name",
")",
"# end compressed file creation and upload",
"archive_link",
"=",
"dxpy",
".",
"dxlink",
"(",
"dx_resource_archive",
".",
"get_id",
"(",
")",
")",
"# end tempfile.NamedTemporaryFile(suffix=\".tar\") as tar_fh",
"return",
"[",
"{",
"'name'",
":",
"'resources.tar.gz'",
",",
"'id'",
":",
"archive_link",
"}",
"]",
"else",
":",
"return",
"[",
"]"
] |
:param ensure_upload: If True, will bypass checksum of resources directory
and upload resources bundle unconditionally;
will NOT be able to reuse this bundle in future builds.
Else if False, will compute checksum and upload bundle
if checksum is different from a previously uploaded
bundle's checksum.
:type ensure_upload: boolean
:param force_symlinks: If true, will bypass the attempt to dereference any
non-local symlinks and will unconditionally include
the link as-is. Note that this will almost certainly
result in a broken link within the resource directory
unless you really know what you're doing.
:type force_symlinks: boolean
:returns: A list (possibly empty) of references to the generated archive(s)
:rtype: list
If it exists, archives and uploads the contents of the
``resources/`` subdirectory of *src_dir* to a new remote file
object, and returns a list describing a single bundled dependency in
the form expected by the ``bundledDepends`` field of a run
specification. Returns an empty list, if no archive was created.
|
[
":",
"param",
"ensure_upload",
":",
"If",
"True",
"will",
"bypass",
"checksum",
"of",
"resources",
"directory",
"and",
"upload",
"resources",
"bundle",
"unconditionally",
";",
"will",
"NOT",
"be",
"able",
"to",
"reuse",
"this",
"bundle",
"in",
"future",
"builds",
".",
"Else",
"if",
"False",
"will",
"compute",
"checksum",
"and",
"upload",
"bundle",
"if",
"checksum",
"is",
"different",
"from",
"a",
"previously",
"uploaded",
"bundle",
"s",
"checksum",
".",
":",
"type",
"ensure_upload",
":",
"boolean",
":",
"param",
"force_symlinks",
":",
"If",
"true",
"will",
"bypass",
"the",
"attempt",
"to",
"dereference",
"any",
"non",
"-",
"local",
"symlinks",
"and",
"will",
"unconditionally",
"include",
"the",
"link",
"as",
"-",
"is",
".",
"Note",
"that",
"this",
"will",
"almost",
"certainly",
"result",
"in",
"a",
"broken",
"link",
"within",
"the",
"resource",
"directory",
"unless",
"you",
"really",
"know",
"what",
"you",
"re",
"doing",
".",
":",
"type",
"force_symlinks",
":",
"boolean",
":",
"returns",
":",
"A",
"list",
"(",
"possibly",
"empty",
")",
"of",
"references",
"to",
"the",
"generated",
"archive",
"(",
"s",
")",
":",
"rtype",
":",
"list"
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/app_builder.py#L195-L424
|
train
|
Uploads the contents of the resources directory src_dir to the remote file applet_spec.
|
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3x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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(111) + chr(0b110010) + chr(0b1 + 0o62) + '\066', 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(987 - 938) + '\x34', ord("\x08")), nzTpIcepk0o8(chr(1412 - 1364) + chr(111) + '\x33' + chr(54), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(51) + chr(54) + chr(52), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110 + 0o54) + chr(0b110111) + chr(51), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b1110 + 0o44) + '\066', 32801 - 32793), nzTpIcepk0o8(chr(48) + chr(2905 - 2794) + chr(0b101110 + 0o4), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(0b110001) + '\064' + '\x36', 0b1000), nzTpIcepk0o8('\060' + chr(8425 - 8314) + '\x33' + chr(0b110100) + chr(0b11110 + 0o31), 3788 - 3780), nzTpIcepk0o8(chr(0b10010 + 0o36) + '\157' + '\x33' + chr(0b110100) + chr(48), 41905 - 41897), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b101110 + 0o4) + '\061' + chr(2031 - 1978), 0o10), nzTpIcepk0o8(chr(1549 - 1501) + chr(0b1101111) + '\061' + chr(54) + chr(49), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(51) + chr(0b110110) + chr(0b110011 + 0o4), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(2743 - 2688) + chr(0b1100 + 0o52), 2692 - 2684), nzTpIcepk0o8('\060' + chr(111) + chr(186 - 137) + '\067' + chr(1615 - 1560), 0b1000), nzTpIcepk0o8(chr(0b101000 + 0o10) + chr(12053 - 11942) + chr(53) + chr(0b110101), 0o10), nzTpIcepk0o8(chr(48) + chr(9524 - 9413) + '\063' + chr(0b10001 + 0o43) + chr(51), 0o10), nzTpIcepk0o8('\060' + chr(5181 - 5070) + '\x33' + chr(49) + '\x34', 2755 - 2747), nzTpIcepk0o8(chr(0b100110 + 0o12) + '\x6f' + '\x32' + '\064', 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(1616 - 1566) + '\063', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110001) + chr(0b110100) + chr(0b110011), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + '\064' + '\x31', 0b1000), nzTpIcepk0o8(chr(0b100001 + 0o17) + chr(111) + chr(2330 - 2281) + chr(49), 0o10), nzTpIcepk0o8(chr(0b11010 + 0o26) + chr(4357 - 4246) + chr(49) + chr(50) + chr(806 - 753), 0o10), nzTpIcepk0o8('\060' + chr(111) + '\063' + '\x32' + chr(155 - 101), 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110011) + '\x35' + '\x30', 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + '\061' + chr(0b10110 + 0o33) + chr(2038 - 1987), 44447 - 44439), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\067' + chr(0b10111 + 0o35), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(0b100011 + 0o20) + '\x30' + '\063', 57365 - 57357), nzTpIcepk0o8(chr(270 - 222) + '\157' + '\x36' + chr(0b110111), ord("\x08")), nzTpIcepk0o8(chr(1074 - 1026) + '\x6f' + chr(1486 - 1436) + chr(51) + chr(55), 0b1000), nzTpIcepk0o8(chr(0b11010 + 0o26) + chr(111) + chr(0b101100 + 0o12) + chr(0b110010), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + '\061' + chr(0b111 + 0o52) + chr(0b1111 + 0o45), 0o10), nzTpIcepk0o8(chr(1393 - 1345) + chr(9900 - 9789) + chr(0b11011 + 0o27) + '\063' + chr(52), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b11101 + 0o31) + '\063', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(11916 - 11805) + chr(437 - 385) + '\066', 12183 - 12175), nzTpIcepk0o8(chr(1431 - 1383) + chr(4352 - 4241) + '\061' + chr(0b110101) + chr(55), 0o10), nzTpIcepk0o8(chr(0b1011 + 0o45) + '\157' + '\x31' + chr(1224 - 1175) + chr(49), 56137 - 56129), nzTpIcepk0o8(chr(48) + '\157' + '\063' + chr(428 - 380) + '\062', 0b1000), nzTpIcepk0o8('\x30' + chr(0b10011 + 0o134) + chr(2956 - 2901) + chr(49), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + '\157' + '\x35' + chr(0b110000), ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xb0'), '\x64' + chr(101) + '\143' + chr(0b1101111) + chr(100) + '\x65')('\165' + chr(116) + chr(0b100101 + 0o101) + '\055' + chr(0b11110 + 0o32)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def IvZW4HSfF6KO(zgBFj9gT640a, mcjejRq_Q0_k=None, jJYsaQE2l_C4=roI3spqORKae(ES5oEprVxulp(b'\xb1'), '\144' + chr(101) + chr(0b1100011) + '\x6f' + '\144' + '\145')(chr(117) + '\x74' + chr(102) + chr(45) + '\070'), vuYvoWafiW9y=nzTpIcepk0o8('\060' + chr(0b1101111) + chr(1085 - 1037), ord("\x08")), DWKkGjo4yOFl=nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b0 + 0o60), 8)):
PPCMnxakmKCd = WdFnqwTxtCFj(zgBFj9gT640a)
if mcjejRq_Q0_k is None:
Y0e2drYW1Qm2 = PPCMnxakmKCd[roI3spqORKae(ES5oEprVxulp(b'\xee~q\x9e\xdeuv'), chr(0b1010110 + 0o16) + chr(0b101001 + 0o74) + chr(0b110110 + 0o55) + chr(0b1101111) + chr(3423 - 3323) + '\145')(chr(117) + chr(0b1110100) + chr(102) + chr(0b1 + 0o54) + chr(1110 - 1054))]
else:
Y0e2drYW1Qm2 = mcjejRq_Q0_k
PPCMnxakmKCd[roI3spqORKae(ES5oEprVxulp(b'\xee~q\x9e\xdeuv'), chr(0b11100 + 0o110) + '\145' + '\x63' + '\157' + chr(0b1010111 + 0o15) + '\145')(chr(0b1110101) + chr(0b110101 + 0o77) + chr(0b10010 + 0o124) + chr(0b101101) + chr(0b100000 + 0o30))] = mcjejRq_Q0_k
_DjPPOCpHd44 = aHUqKstZLeS6.path.Y4yM9BcfTCNq(zgBFj9gT640a, roI3spqORKae(ES5oEprVxulp(b'\xecim\x9b\xceda\x03\x94'), chr(6095 - 5995) + chr(0b1100101) + chr(0b1100011) + chr(111) + '\x64' + chr(10058 - 9957))('\165' + '\164' + chr(0b1100110) + chr(0b101101) + chr(1427 - 1371)))
if roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'\xe4_W\x8d\xd5Fw#\x91\x8c\xdcE'), chr(0b11100 + 0o110) + chr(101) + chr(0b1100011) + chr(0b1101111) + chr(5086 - 4986) + chr(0b1011101 + 0o10))(chr(0b1010011 + 0o42) + chr(0b1110100) + '\x66' + '\x2d' + '\070'))(_DjPPOCpHd44) and ftfygxgFas5X(roI3spqORKae(aHUqKstZLeS6, roI3spqORKae(ES5oEprVxulp(b'\xf2em\x80\xdf\x7fp'), '\x64' + '\x65' + chr(5286 - 5187) + chr(8103 - 7992) + '\144' + chr(101))('\165' + chr(116) + chr(0b1100101 + 0o1) + chr(0b101101) + '\070'))(_DjPPOCpHd44)) > nzTpIcepk0o8(chr(0b11000 + 0o30) + '\157' + '\x30', 8):
MKHudy7b6ifr = PPCMnxakmKCd[roI3spqORKae(ES5oEprVxulp(b'\xf8cr\x90\xded'), chr(0b1100100) + chr(0b1100101) + chr(99) + '\x6f' + chr(2010 - 1910) + chr(0b1100101))(chr(117) + chr(0b1110100) + chr(4285 - 4183) + '\055' + chr(0b11100 + 0o34))] if roI3spqORKae(ES5oEprVxulp(b'\xf8cr\x90\xded'), '\x64' + '\145' + chr(0b1100011) + '\x6f' + chr(0b1100100) + chr(1947 - 1846))(chr(0b100010 + 0o123) + chr(116) + '\146' + '\x2d' + chr(0b101011 + 0o15)) in PPCMnxakmKCd else jJYsaQE2l_C4
with roI3spqORKae(VfV2QW3Td2UZ, roI3spqORKae(ES5oEprVxulp(b'\xd0ms\x91\xdfBg\x0b\x97\x8f\xff\x10\x85G9D\x8f\xa9'), chr(0b111111 + 0o45) + chr(0b10010 + 0o123) + chr(6191 - 6092) + chr(3259 - 3148) + chr(1235 - 1135) + chr(0b10000 + 0o125))(chr(0b101111 + 0o106) + chr(116) + chr(0b1100110) + chr(45) + chr(2240 - 2184)))(suffix=roI3spqORKae(ES5oEprVxulp(b'\xb0x\x7f\x86'), '\144' + '\145' + chr(0b1100011) + '\157' + '\x64' + chr(0b1100101))(chr(117) + '\x74' + '\146' + chr(0b10101 + 0o30) + chr(2986 - 2930))) as LIbXhxCPHqVT:
hMQCoKxgNlBj = SDv77BhJq2mr.PV_6_udOPlJH()
GF27sfowmwpq = aDxSytA60vow.DnU3Rq9N5ala(fileobj=LIbXhxCPHqVT, mode=roI3spqORKae(ES5oEprVxulp(b'\xe9'), chr(0b100101 + 0o77) + chr(407 - 306) + '\x63' + '\x6f' + chr(3755 - 3655) + chr(9712 - 9611))('\x75' + '\x74' + chr(102) + chr(0b111 + 0o46) + chr(0b1 + 0o67)))
for (qu5fsQlGSLfc, z1Zu5EHhX7E9, wR5_YWECjaY7) in roI3spqORKae(aHUqKstZLeS6, roI3spqORKae(ES5oEprVxulp(b"\xd4AH\x87\xd1'G7\xb3\x95\xe2+"), '\144' + chr(0b1100101) + chr(0b11111 + 0o104) + '\157' + chr(0b1100001 + 0o3) + '\145')('\165' + chr(0b1000011 + 0o61) + chr(0b1100110) + chr(45) + chr(0b100100 + 0o24)))(_DjPPOCpHd44):
if not roI3spqORKae(qu5fsQlGSLfc, roI3spqORKae(ES5oEprVxulp(b'\xedx\x7f\x86\xcfeu\x0f\x93\x88'), chr(0b1100100) + chr(0b1100101) + chr(6885 - 6786) + '\x6f' + chr(2946 - 2846) + chr(0b1100101))('\x75' + '\x74' + chr(102) + chr(0b101101) + '\x38'))(_DjPPOCpHd44):
raise B3LV8Eo811Ma(roI3spqORKae(ES5oEprVxulp(b'\xdbtn\x91\xd8bg\x02\xc7\xc5\xffQ\x83Q_^\x97\xadfgCV`!\xbe\xc89S\xacC\xbfV%\xeeVE\x1b&\xb0@\xbe)l'), '\144' + chr(0b111010 + 0o53) + chr(0b1100011) + chr(0b1101111) + chr(5519 - 5419) + chr(101))(chr(7533 - 7416) + '\164' + chr(7862 - 7760) + chr(0b100 + 0o51) + chr(1171 - 1115)) % (qu5fsQlGSLfc, _DjPPOCpHd44))
gUeF98brKpHh = qu5fsQlGSLfc[ftfygxgFas5X(_DjPPOCpHd44):]
Hn97Sr7_kVkQ = aHUqKstZLeS6.lstat(qu5fsQlGSLfc)
if not roI3spqORKae(gUeF98brKpHh, roI3spqORKae(ES5oEprVxulp(b'\xedx\x7f\x86\xcfeu\x0f\x93\x88'), chr(3098 - 2998) + chr(0b110111 + 0o56) + '\x63' + '\157' + '\x64' + chr(5072 - 4971))('\165' + chr(116) + chr(0b10000 + 0o126) + '\x2d' + '\070'))(roI3spqORKae(ES5oEprVxulp(b'\xb1'), chr(100) + '\145' + chr(99) + '\157' + chr(6204 - 6104) + chr(101))('\x75' + chr(5591 - 5475) + chr(102) + chr(0b101010 + 0o3) + chr(0b111000))):
gUeF98brKpHh = roI3spqORKae(ES5oEprVxulp(b'\xb1'), '\x64' + '\x65' + chr(99) + '\x6f' + chr(9716 - 9616) + chr(0b111000 + 0o55))(chr(7618 - 7501) + chr(1248 - 1132) + '\146' + chr(380 - 335) + chr(0b1111 + 0o51)) + gUeF98brKpHh
ZXDdzgbdtBfz = [gUeF98brKpHh, N9zlRy29S1SS(DLIHCFqrXlUE(Hn97Sr7_kVkQ.st_mode)), N9zlRy29S1SS(nzTpIcepk0o8(Hn97Sr7_kVkQ.st_mtime * nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b101110 + 0o3) + chr(2818 - 2763) + chr(53) + chr(0b110000), 41621 - 41613)))]
roI3spqORKae(hMQCoKxgNlBj, roI3spqORKae(ES5oEprVxulp(b'\xd4Su\xc6\xf2O@W\x84\x85\xfc\x1f'), '\144' + chr(101) + chr(0b1 + 0o142) + chr(0b1101110 + 0o1) + chr(0b1100100) + chr(7519 - 7418))('\x75' + chr(116) + '\x66' + chr(45) + chr(0b11110 + 0o32)))(roI3spqORKae(ES5oEprVxulp(b''), roI3spqORKae(ES5oEprVxulp(b'\xc78g\xb9\x82Ta\x00\xb3\xa3\xc3\x00'), chr(6024 - 5924) + chr(2231 - 2130) + '\143' + chr(0b1101111) + chr(100) + '\x65')(chr(0b1100101 + 0o20) + '\164' + chr(0b10100 + 0o122) + chr(0b100111 + 0o6) + '\070'))((roI3spqORKae(PmE5_h409JAA, roI3spqORKae(ES5oEprVxulp(b'\xc7}W\x95\xe9Pd\x03\x88\xd4\xc5\x10'), chr(2901 - 2801) + chr(0b1100101) + '\143' + chr(9806 - 9695) + chr(6291 - 6191) + '\x65')(chr(0b1011000 + 0o35) + chr(0b1100010 + 0o22) + chr(102) + '\x2d' + chr(56)))(roI3spqORKae(ES5oEprVxulp(b'\xebxx\xd9\x83'), chr(0b1100100) + chr(0b1100101) + chr(0b1100011) + '\157' + '\144' + chr(6223 - 6122))(chr(8252 - 8135) + chr(0b1110100) + chr(102) + chr(45) + '\x38')) + ES5oEprVxulp(b'\x9e') for PmE5_h409JAA in ZXDdzgbdtBfz)))
roI3spqORKae(GF27sfowmwpq, roI3spqORKae(ES5oEprVxulp(b'\xeb?O\x90\xd2eK\x17\xa3\x86\xce\x15'), '\x64' + chr(101) + chr(99) + chr(10129 - 10018) + chr(100) + chr(0b1100011 + 0o2))(chr(7183 - 7066) + chr(10761 - 10645) + '\x66' + '\055' + chr(0b111000)))(qu5fsQlGSLfc, arcname=roI3spqORKae(ES5oEprVxulp(b'\xb0'), '\144' + chr(1245 - 1144) + '\x63' + chr(5307 - 5196) + chr(5257 - 5157) + chr(4672 - 4571))(chr(0b101101 + 0o110) + '\x74' + '\146' + '\x2d' + chr(682 - 626)) + gUeF98brKpHh, recursive=nzTpIcepk0o8(chr(0b110000) + '\157' + chr(1802 - 1754), 8), filter=t6JWyPaIvAYO)
roI3spqORKae(z1Zu5EHhX7E9, roI3spqORKae(ES5oEprVxulp(b'\xedcl\x80'), chr(0b10000 + 0o124) + chr(101) + '\143' + '\x6f' + '\144' + chr(0b101010 + 0o73))(chr(0b1110101) + chr(6686 - 6570) + chr(0b1100110) + chr(0b101011 + 0o2) + '\070'))()
for J9q_AxQdu5eW in z1Zu5EHhX7E9:
qjksZ7GK0xkJ = aHUqKstZLeS6.path.Y4yM9BcfTCNq(qu5fsQlGSLfc, J9q_AxQdu5eW)
if roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'\xf7\x7fr\x9d\xd5}'), chr(6617 - 6517) + '\145' + '\143' + chr(0b1000001 + 0o56) + chr(0b1001101 + 0o27) + chr(2104 - 2003))(chr(0b111110 + 0o67) + chr(0b1110100) + chr(8046 - 7944) + '\055' + chr(2362 - 2306)))(qjksZ7GK0xkJ):
u9bMDOyOrlqy = aHUqKstZLeS6.readlink(qjksZ7GK0xkJ)
if DWKkGjo4yOFl or KgpHRt6nXt9Z(u9bMDOyOrlqy):
roI3spqORKae(wR5_YWECjaY7, roI3spqORKae(ES5oEprVxulp(b'\xd6XM\xc0\xc3qE\t\x8d\x8f\xd8D'), chr(100) + chr(4458 - 4357) + '\143' + chr(0b110110 + 0o71) + chr(100) + chr(0b1100101))(chr(117) + '\164' + chr(0b1100110) + chr(1346 - 1301) + chr(2843 - 2787)))(J9q_AxQdu5eW)
else:
raise GVQ7tTeLFi7I(roI3spqORKae(ES5oEprVxulp(b'\xddmp\x9a\xd4b"\x0f\x89\x83\xe1\x04\x93[_^\x9a\xa1xz\rJzu\xa2\x87kX\xaaE\xfaQ8\xf3AO\n:\xe2V\xebxm\x9d\xdfs"\t\x81\xc0\xf9\x19\x92\x1e\rH\x90\xa3aa\x00D)1\xbf\x9a._\xb7X\xedKb\xbc\x13\x01J:\xe5\x19\xeecw\x9a\xcfe"\x12\x88\xc0\xe9\x18\x85[\x1cY\x8c\xbem3D\x04zr'), chr(0b101100 + 0o70) + chr(0b100 + 0o141) + chr(0b101100 + 0o67) + chr(0b1101111) + chr(0b111001 + 0o53) + '\x65')('\x75' + chr(0b1110100) + chr(0b1100110) + chr(0b101101) + chr(0b111000)) % (qjksZ7GK0xkJ, roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'\xed<n\x9a\xcbRU\x11\xbf\xd0\xcf\x08'), chr(0b1100100) + chr(0b1100101) + chr(6460 - 6361) + chr(0b111100 + 0o63) + '\x64' + '\x65')('\165' + chr(116) + chr(0b1100110) + '\x2d' + '\070'))(qjksZ7GK0xkJ)))
for FxZHtXEolYsL in V3OlOVg98A85(wR5_YWECjaY7):
NwK2T5NU8OSR = nzTpIcepk0o8('\060' + chr(0b110 + 0o151) + chr(1511 - 1463), 8)
OdDNxL4qFWyI = aHUqKstZLeS6.path.Y4yM9BcfTCNq(gUeF98brKpHh, FxZHtXEolYsL)
X0y9qqCONDFY = aHUqKstZLeS6.path.Y4yM9BcfTCNq(qu5fsQlGSLfc, FxZHtXEolYsL)
k_oBs_Qu28Gx = aHUqKstZLeS6.lstat(X0y9qqCONDFY)
if roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'\xf7\x7fr\x9d\xd5}'), '\144' + chr(101) + chr(0b1100011) + chr(111) + chr(1703 - 1603) + chr(0b1001010 + 0o33))(chr(0b1110101) + '\x74' + chr(102) + chr(0b10110 + 0o27) + '\x38'))(X0y9qqCONDFY):
u9bMDOyOrlqy = aHUqKstZLeS6.readlink(X0y9qqCONDFY)
if not (DWKkGjo4yOFl or KgpHRt6nXt9Z(u9bMDOyOrlqy)):
try:
k_oBs_Qu28Gx = aHUqKstZLeS6.uHkyNaF6hl2K(aHUqKstZLeS6.path.Y4yM9BcfTCNq(qu5fsQlGSLfc, u9bMDOyOrlqy))
NwK2T5NU8OSR = nzTpIcepk0o8('\x30' + '\157' + chr(151 - 102), ord("\x08"))
except zsedrPqY_EmW:
raise GVQ7tTeLFi7I(roI3spqORKae(ES5oEprVxulp(b'\xdc~q\x9f\xdex"\x15\x9e\x8d\xe1\x18\x99UE\r\xaf\xa5zxC\x06,&\xf1\xc8;S\xaaY\xebAl\xe8\\\x06Hl\xb1\x1e\xb2,i\x9c\xd2ujF\x83\x8f\xe8\x02\xd7P\x10Y\xc3\xa9lz\x10U'), chr(0b1100100) + chr(0b1111 + 0o126) + '\143' + chr(9027 - 8916) + '\144' + chr(8276 - 8175))(chr(0b1110101) + chr(0b1000111 + 0o55) + chr(0b1100110) + chr(0b101101) + chr(56)) % (X0y9qqCONDFY, roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'\xed<n\x9a\xcbRU\x11\xbf\xd0\xcf\x08'), '\144' + chr(9784 - 9683) + chr(6650 - 6551) + chr(0b1101111) + chr(0b1011010 + 0o12) + chr(0b1100101))(chr(4971 - 4854) + chr(0b10010 + 0o142) + chr(0b10010 + 0o124) + '\x2d' + '\x38'))(X0y9qqCONDFY)))
ZXDdzgbdtBfz = [OdDNxL4qFWyI, N9zlRy29S1SS(DLIHCFqrXlUE(k_oBs_Qu28Gx.st_mode)), N9zlRy29S1SS(nzTpIcepk0o8(k_oBs_Qu28Gx.st_mtime * nzTpIcepk0o8('\x30' + '\157' + chr(49) + chr(0b110111) + chr(798 - 745) + chr(1107 - 1059), 8)))]
roI3spqORKae(hMQCoKxgNlBj, roI3spqORKae(ES5oEprVxulp(b'\xd4Su\xc6\xf2O@W\x84\x85\xfc\x1f'), chr(1711 - 1611) + '\x65' + '\x63' + chr(0b1101111) + '\x64' + chr(101))(chr(117) + '\x74' + chr(102) + chr(0b10100 + 0o31) + '\x38'))(roI3spqORKae(ES5oEprVxulp(b''), roI3spqORKae(ES5oEprVxulp(b'\xc78g\xb9\x82Ta\x00\xb3\xa3\xc3\x00'), '\x64' + chr(0b1100101) + chr(0b1100011) + chr(111) + chr(9285 - 9185) + chr(0b1010100 + 0o21))('\165' + '\x74' + chr(0b1100110) + chr(0b101101) + chr(0b111000)))((roI3spqORKae(PmE5_h409JAA, roI3spqORKae(ES5oEprVxulp(b'\xc7}W\x95\xe9Pd\x03\x88\xd4\xc5\x10'), chr(0b100111 + 0o75) + chr(0b1100101) + '\143' + chr(111) + chr(100) + chr(5178 - 5077))(chr(117) + chr(13396 - 13280) + chr(0b1100110) + chr(0b101101) + chr(0b111000)))(roI3spqORKae(ES5oEprVxulp(b'\xebxx\xd9\x83'), '\144' + chr(0b110110 + 0o57) + chr(0b1100011) + chr(0b1101111) + chr(0b101000 + 0o74) + '\145')('\165' + chr(116) + chr(0b1000 + 0o136) + chr(0b101000 + 0o5) + '\070')) + ES5oEprVxulp(b'\x9e') for PmE5_h409JAA in ZXDdzgbdtBfz)))
if NwK2T5NU8OSR:
X0y9qqCONDFY = aHUqKstZLeS6.path.s0pnpDWwX0By(X0y9qqCONDFY)
roI3spqORKae(GF27sfowmwpq, roI3spqORKae(ES5oEprVxulp(b'\xeb?O\x90\xd2eK\x17\xa3\x86\xce\x15'), '\144' + chr(0b10 + 0o143) + '\x63' + '\157' + '\144' + chr(0b1100101))(chr(0b1110101) + chr(0b1100011 + 0o21) + chr(102) + chr(419 - 374) + chr(56)))(X0y9qqCONDFY, arcname=roI3spqORKae(ES5oEprVxulp(b'\xb0'), chr(100) + chr(0b1010101 + 0o20) + chr(0b1100011) + '\157' + '\144' + chr(0b1011110 + 0o7))(chr(7188 - 7071) + '\x74' + chr(0b101110 + 0o70) + chr(0b101101) + '\x38') + OdDNxL4qFWyI, filter=t6JWyPaIvAYO)
roI3spqORKae(GF27sfowmwpq, roI3spqORKae(ES5oEprVxulp(b'\xc4io\xc3\xf8ud_\xb2\x84\xb5\x1b'), chr(7879 - 7779) + chr(0b1100101) + chr(0b1001000 + 0o33) + '\x6f' + chr(0b1100100) + chr(6473 - 6372))(chr(117) + '\x74' + chr(0b1100000 + 0o6) + chr(0b101101) + chr(0b111000)))()
if vuYvoWafiW9y:
gkuyV5PTZ_tz = {}
n18iMdiO8GxJ = nzTpIcepk0o8(chr(704 - 656) + chr(0b1101111) + chr(475 - 427), 8)
else:
EhrX4XelwQrX = hMQCoKxgNlBj.QJ_O92NaVG5k()
gkuyV5PTZ_tz = znjnJWK64FDT(resource_bundle_checksum=EhrX4XelwQrX)
n18iMdiO8GxJ = SsdNdRxXOwsF.find_one_data_object(project=Y0e2drYW1Qm2, folder=MKHudy7b6ifr, properties=znjnJWK64FDT(resource_bundle_checksum=EhrX4XelwQrX), visibility=roI3spqORKae(ES5oEprVxulp(b'\xfbej\x9c\xded'), chr(0b111011 + 0o51) + '\x65' + '\143' + chr(0b1101111) + chr(0b1100100) + chr(0b101010 + 0o73))(chr(117) + chr(116) + chr(0b1100110) + chr(0b101101) + '\070'), zero_ok=nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110001), 8), state=roI3spqORKae(ES5oEprVxulp(b'\xfd`q\x87\xder'), chr(0b10101 + 0o117) + chr(101) + chr(0b100111 + 0o74) + chr(9120 - 9009) + chr(100) + chr(101))('\165' + '\164' + chr(0b10101 + 0o121) + '\055' + chr(0b111000)), return_handler=nzTpIcepk0o8(chr(0b1100 + 0o44) + chr(2311 - 2200) + '\061', 8))
if n18iMdiO8GxJ:
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'\xf7tP\x8c\x82Zu9\xd6\x87\xff>'), chr(0b1000 + 0o134) + chr(5162 - 5061) + chr(6798 - 6699) + chr(0b111011 + 0o64) + '\144' + chr(0b1100101))(chr(117) + '\164' + chr(102) + '\x2d' + chr(0b1110 + 0o52)))(roI3spqORKae(ES5oEprVxulp(b'\xd8ck\x9a\xdf6g\x1e\x8e\x93\xf9\x18\x99Y__\x86\xbf{f\x11Blu\xb4\x9d%X\xafR\xbfF$\xfdG\x06\x02(\xb6Z\xf6im\xd4\xd7ya\x07\x8b\xc0\xff\x14\x84Q\n_\x80\xa9g3\x07H{0\xb5\x9c$N\xba\r\xbf'), chr(100) + chr(0b1001001 + 0o34) + chr(0b1100011 + 0o0) + '\x6f' + chr(100) + chr(5354 - 5253))(chr(0b110111 + 0o76) + chr(6711 - 6595) + chr(0b1010 + 0o134) + chr(45) + chr(1656 - 1600)) + roI3spqORKae(n18iMdiO8GxJ, roI3spqORKae(ES5oEprVxulp(b'\xf0gJ\x9a\xd8\\a \xb7\x8c\xe4&'), chr(7965 - 7865) + chr(101) + chr(0b1100011) + '\x6f' + chr(0b1001 + 0o133) + chr(5207 - 5106))('\165' + chr(116) + chr(0b100 + 0o142) + chr(0b101101) + '\x38'))())
Dfn0ANoTxZE6 = n18iMdiO8GxJ
else:
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b"\xf9M'\xae\x82rmP\xb2\x8d\xc8+"), '\x64' + chr(101) + chr(99) + chr(0b1101111) + chr(6443 - 6343) + '\145')(chr(382 - 265) + chr(0b1110100) + chr(102) + '\x2d' + chr(0b111000)))(roI3spqORKae(ES5oEprVxulp(b'\xcb|r\x9b\xdark\x08\x80\xc0\xe4\x1f\xd7'), chr(0b1000110 + 0o36) + chr(0b1000110 + 0o37) + '\x63' + chr(0b1101111) + chr(0b1100100) + chr(0b1100101))(chr(0b11001 + 0o134) + chr(116) + '\146' + chr(0b101101) + chr(2992 - 2936)) + zgBFj9gT640a)
pbDAZQ0aXy4h = VfV2QW3Td2UZ.NamedTemporaryFile(suffix=roI3spqORKae(ES5oEprVxulp(b'\xb0x\x7f\x86\x95qx'), chr(6525 - 6425) + chr(101) + '\143' + chr(8570 - 8459) + '\x64' + chr(1145 - 1044))(chr(8887 - 8770) + chr(0b111111 + 0o65) + '\146' + '\055' + chr(0b111000)), delete=nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\060', 8))
KmuBNpjYZ3u1 = xx_WP37oeyA3.GzipFile(fileobj=pbDAZQ0aXy4h, mode=roI3spqORKae(ES5oEprVxulp(b'\xe9n'), chr(100) + '\145' + '\x63' + '\x6f' + chr(5773 - 5673) + chr(5690 - 5589))('\165' + chr(0b100100 + 0o120) + chr(7168 - 7066) + '\x2d' + '\x38'))
roI3spqORKae(LIbXhxCPHqVT, roI3spqORKae(ES5oEprVxulp(b'\xedi{\x9f'), chr(0b110110 + 0o56) + chr(1554 - 1453) + '\x63' + chr(0b1100010 + 0o15) + chr(689 - 589) + '\145')(chr(117) + chr(0b1110100) + chr(0b11000 + 0o116) + chr(45) + '\x38'))(nzTpIcepk0o8(chr(56 - 8) + chr(8676 - 8565) + chr(0b110000), 8))
LMcCiF4czwpp = LIbXhxCPHqVT.eoXknH7XUn7m(tZd4qAJTuKKm.DEFAULT_BUFFER_SIZE)
while LMcCiF4czwpp:
roI3spqORKae(KmuBNpjYZ3u1, roI3spqORKae(ES5oEprVxulp(b'\xf3`.\x9c\xd3ftW\xab\x90\xfcC'), chr(0b1100100) + '\x65' + chr(0b1100011) + '\x6f' + chr(100) + chr(101))(chr(117) + '\164' + '\x66' + chr(1813 - 1768) + chr(0b111000)))(LMcCiF4czwpp)
LMcCiF4czwpp = LIbXhxCPHqVT.eoXknH7XUn7m(tZd4qAJTuKKm.DEFAULT_BUFFER_SIZE)
roI3spqORKae(KmuBNpjYZ3u1, roI3spqORKae(ES5oEprVxulp(b'\xf5[n\x8d\xf9dT1\xa5\x90\xfe4'), chr(7184 - 7084) + chr(0b1100101) + chr(5811 - 5712) + chr(0b1101111) + chr(4790 - 4690) + chr(0b1100101))('\165' + chr(116) + '\146' + chr(0b101101) + chr(0b11100 + 0o34)))()
roI3spqORKae(KmuBNpjYZ3u1, roI3spqORKae(ES5oEprVxulp(b'\xc4io\xc3\xf8ud_\xb2\x84\xb5\x1b'), chr(100) + '\145' + '\x63' + chr(0b1011010 + 0o25) + '\144' + '\145')('\165' + chr(116) + chr(0b1100110) + chr(0b101101) + chr(56)))()
roI3spqORKae(pbDAZQ0aXy4h, roI3spqORKae(ES5oEprVxulp(b'\xc4io\xc3\xf8ud_\xb2\x84\xb5\x1b'), chr(0b11111 + 0o105) + '\x65' + chr(0b1100011) + chr(111) + chr(0b1100100) + chr(9793 - 9692))('\x75' + chr(1295 - 1179) + '\146' + '\x2d' + chr(56)))()
if roI3spqORKae(ES5oEprVxulp(b'\xf8cr\x90\xded'), chr(7950 - 7850) + chr(0b100100 + 0o101) + chr(0b1100011) + chr(0b1001010 + 0o45) + chr(0b1100100) + '\x65')(chr(117) + '\164' + chr(0b1010010 + 0o24) + '\055' + '\x38') in PPCMnxakmKCd:
try:
roI3spqORKae(SsdNdRxXOwsF.get_handler(Y0e2drYW1Qm2), roI3spqORKae(ES5oEprVxulp(b'\xf0ii\xab\xddyn\x02\x82\x92'), chr(0b1011011 + 0o11) + chr(101) + chr(0b1100011) + chr(0b10001 + 0o136) + chr(1121 - 1021) + chr(0b1000101 + 0o40))(chr(0b10 + 0o163) + chr(0b1110100) + '\x66' + chr(1659 - 1614) + '\x38'))(PPCMnxakmKCd[roI3spqORKae(ES5oEprVxulp(b'\xf8cr\x90\xded'), '\144' + chr(101) + chr(0b110000 + 0o63) + '\157' + '\x64' + '\145')(chr(0b1110101) + chr(116) + chr(102) + '\x2d' + chr(56))], parents=nzTpIcepk0o8(chr(1057 - 1009) + '\157' + chr(49), 8))
except roI3spqORKae(SsdNdRxXOwsF.exceptions, roI3spqORKae(ES5oEprVxulp(b'\xdaT_\xa4\xf2Sp\x14\x88\x92'), chr(0b1100100) + chr(0b1100101) + '\143' + chr(7503 - 7392) + chr(1636 - 1536) + chr(0b1100101))(chr(0b1110101) + '\164' + chr(0b111001 + 0o55) + chr(317 - 272) + '\x38')):
pass
Dfn0ANoTxZE6 = SsdNdRxXOwsF.upload_local_file(pbDAZQ0aXy4h.SLVB2BPA_mIe, wait_on_close=nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(49), 8), project=Y0e2drYW1Qm2, folder=MKHudy7b6ifr, hidden=nzTpIcepk0o8(chr(48) + chr(6253 - 6142) + chr(1092 - 1043), 8), properties=gkuyV5PTZ_tz)
roI3spqORKae(aHUqKstZLeS6, roI3spqORKae(ES5oEprVxulp(b'\xebbr\x9d\xd5}'), chr(0b1100100) + chr(101) + chr(99) + '\x6f' + '\144' + chr(6294 - 6193))(chr(8835 - 8718) + chr(0b1000001 + 0o63) + '\146' + chr(0b101101) + chr(0b101001 + 0o17)))(roI3spqORKae(pbDAZQ0aXy4h, roI3spqORKae(ES5oEprVxulp(b"\xcd@H\xb6\x89TR'\xb8\x8d\xc4\x14"), '\144' + '\x65' + chr(99) + chr(111) + chr(0b1011000 + 0o14) + chr(0b1100101))('\165' + chr(0b1000101 + 0o57) + chr(0b111110 + 0o50) + '\055' + '\x38')))
I87WpwdXuLUf = SsdNdRxXOwsF.dxlink(Dfn0ANoTxZE6.nkTncJcFPliW())
return [{roI3spqORKae(ES5oEprVxulp(b'\xf0ms\x91'), chr(100) + '\x65' + chr(99) + '\157' + '\144' + chr(0b1100101))(chr(0b1110101) + chr(0b1110100) + chr(0b1100110) + chr(1910 - 1865) + '\x38'): roI3spqORKae(ES5oEprVxulp(b'\xecim\x9b\xceda\x03\x94\xce\xf9\x10\x85\x10\x18W'), chr(0b100010 + 0o102) + chr(0b1100101) + chr(7335 - 7236) + chr(111) + chr(100) + chr(7844 - 7743))(chr(8093 - 7976) + '\x74' + chr(10168 - 10066) + '\x2d' + '\070'), roI3spqORKae(ES5oEprVxulp(b'\xf7h'), chr(100) + '\x65' + '\x63' + chr(0b1101110 + 0o1) + chr(0b1100100) + chr(101))('\x75' + chr(0b1110100) + chr(0b1100110) + chr(0b1101 + 0o40) + chr(0b101 + 0o63)): I87WpwdXuLUf}]
else:
return []
|
dnanexus/dx-toolkit
|
src/python/dxpy/app_builder.py
|
upload_applet
|
def upload_applet(src_dir, uploaded_resources, check_name_collisions=True, overwrite=False, archive=False, project=None, override_folder=None, override_name=None, dx_toolkit_autodep="stable", dry_run=False, **kwargs):
"""
Creates a new applet object.
:param project: ID of container in which to create the applet.
:type project: str, or None to use whatever is specified in dxapp.json
:param override_folder: folder name for the resulting applet which, if specified, overrides that given in dxapp.json
:type override_folder: str
:param override_name: name for the resulting applet which, if specified, overrides that given in dxapp.json
:type override_name: str
:param dx_toolkit_autodep: What type of dx-toolkit dependency to
inject if none is present. "stable" for the APT package; "git"
for HEAD of dx-toolkit master branch; or False for no
dependency.
:type dx_toolkit_autodep: boolean or string
"""
applet_spec = _get_applet_spec(src_dir)
if project is None:
dest_project = applet_spec['project']
else:
dest_project = project
applet_spec['project'] = project
if 'name' not in applet_spec:
try:
applet_spec['name'] = os.path.basename(os.path.abspath(src_dir))
except:
raise AppBuilderException("Could not determine applet name from the specification (dxapp.json) or from the name of the working directory (%r)" % (src_dir,))
if override_folder:
applet_spec['folder'] = override_folder
if 'folder' not in applet_spec:
applet_spec['folder'] = '/'
if override_name:
applet_spec['name'] = override_name
if 'dxapi' not in applet_spec:
applet_spec['dxapi'] = dxpy.API_VERSION
applets_to_overwrite = []
archived_applet = None
if check_name_collisions and not dry_run:
destination_path = applet_spec['folder'] + ('/' if not applet_spec['folder'].endswith('/') else '') + applet_spec['name']
logger.debug("Checking for existing applet at " + destination_path)
for result in dxpy.find_data_objects(classname="applet", name=applet_spec["name"], folder=applet_spec['folder'], project=dest_project, recurse=False):
if overwrite:
# Don't remove the old applet until after the new one
# has been created. This avoids a race condition where
# we remove the old applet, but that causes garbage
# collection of the bundled resources that will be
# shared with the new applet
applets_to_overwrite.append(result['id'])
elif archive:
logger.debug("Archiving applet %s" % (result['id']))
proj = dxpy.DXProject(dest_project)
archive_folder = '/.Applet_archive'
try:
proj.list_folder(archive_folder)
except dxpy.DXAPIError:
proj.new_folder(archive_folder)
proj.move(objects=[result['id']], destination=archive_folder)
archived_applet = dxpy.DXApplet(result['id'], project=dest_project)
now = datetime.datetime.fromtimestamp(archived_applet.created/1000).ctime()
new_name = archived_applet.name + " ({d})".format(d=now)
archived_applet.rename(new_name)
logger.info("Archived applet %s to %s:\"%s/%s\"" % (result['id'], dest_project, archive_folder, new_name))
else:
raise AppBuilderException("An applet already exists at %s (id %s) and the --overwrite (-f) or --archive (-a) options were not given" % (destination_path, result['id']))
# -----
# Override various fields from the pristine dxapp.json
# Carry region-specific values from regionalOptions into the main
# runSpec
applet_spec["runSpec"].setdefault("bundledDepends", [])
applet_spec["runSpec"].setdefault("assetDepends", [])
if not dry_run:
region = dxpy.api.project_describe(dest_project, input_params={"fields": {"region": True}})["region"]
# if regionalOptions contain at least one region, they must include
# the region of the target project
if len(applet_spec.get('regionalOptions', {})) != 0 and region not in applet_spec.get('regionalOptions', {}):
err_mesg = "destination project is in region {} but \"regionalOptions\" do not contain this region. ".format(region)
err_mesg += "Please, update your \"regionalOptions\" specification"
raise AppBuilderException(err_mesg)
regional_options = applet_spec.get('regionalOptions', {}).get(region, {})
# We checked earlier that if region-specific values for the
# fields below are given, the same fields are not also specified
# in the top-level runSpec. So the operations below should not
# result in any user-supplied settings being clobbered.
if 'systemRequirements' in regional_options:
applet_spec["runSpec"]["systemRequirements"] = regional_options['systemRequirements']
if 'bundledDepends' in regional_options:
applet_spec["runSpec"]["bundledDepends"].extend(regional_options["bundledDepends"])
if 'assetDepends' in regional_options:
applet_spec["runSpec"]["assetDepends"].extend(regional_options["assetDepends"])
# Inline Readme.md and Readme.developer.md
dxpy.executable_builder.inline_documentation_files(applet_spec, src_dir)
# Inline the code of the program
if "file" in applet_spec["runSpec"]:
# Put it into runSpec.code instead
with open(os.path.join(src_dir, applet_spec["runSpec"]["file"])) as code_fh:
applet_spec["runSpec"]["code"] = code_fh.read()
del applet_spec["runSpec"]["file"]
# If this is applet requires a cluster, inline any bootstrapScript code that may be provided.
# bootstrapScript is an *optional* clusterSpec parameter.
# NOTE: assumes bootstrapScript is always provided as a filename
if "systemRequirements" in applet_spec["runSpec"]:
sys_reqs = applet_spec["runSpec"]["systemRequirements"]
for entry_point in sys_reqs:
try:
bootstrap_script = os.path.join(src_dir, sys_reqs[entry_point]["clusterSpec"]["bootstrapScript"])
with open(bootstrap_script) as code_fh:
sys_reqs[entry_point]["clusterSpec"]["bootstrapScript"] = code_fh.read()
except KeyError:
# either no "clusterSpec" or no "bootstrapScript" within "clusterSpec"
continue
except IOError:
raise AppBuilderException("The clusterSpec \"bootstrapScript\" could not be read.")
# Attach bundled resources to the app
if uploaded_resources is not None:
applet_spec["runSpec"]["bundledDepends"].extend(uploaded_resources)
# Validate and process assetDepends
asset_depends = applet_spec["runSpec"]["assetDepends"]
if type(asset_depends) is not list or any(type(dep) is not dict for dep in asset_depends):
raise AppBuilderException("Expected runSpec.assetDepends to be an array of objects")
for asset in asset_depends:
asset_project = asset.get("project", None)
asset_folder = asset.get("folder", '/')
asset_stages = asset.get("stages", None)
if "id" in asset:
asset_record = dxpy.DXRecord(asset["id"]).describe(fields={'details'}, default_fields=True)
elif "name" in asset and asset_project is not None and "version" in asset:
try:
asset_record = dxpy.find_one_data_object(zero_ok=True, classname="record", typename="AssetBundle",
name=asset["name"], properties=dict(version=asset["version"]),
project=asset_project, folder=asset_folder, recurse=False,
describe={"defaultFields": True, "fields": {"details": True}},
state="closed", more_ok=False)
except dxpy.exceptions.DXSearchError:
msg = "Found more than one asset record that matches: name={0}, folder={1} in project={2}."
raise AppBuilderException(msg.format(asset["name"], asset_folder, asset_project))
else:
raise AppBuilderException("Each runSpec.assetDepends element must have either {'id'} or "
"{'name', 'project' and 'version'} field(s).")
if asset_record:
if "id" in asset:
asset_details = asset_record["details"]
else:
asset_details = asset_record["describe"]["details"]
if "archiveFileId" in asset_details:
archive_file_id = asset_details["archiveFileId"]
else:
raise AppBuilderException("The required field 'archiveFileId' was not found in "
"the details of the asset bundle %s " % asset_record["id"])
archive_file_name = dxpy.DXFile(archive_file_id).describe()["name"]
bundle_depends = {
"name": archive_file_name,
"id": archive_file_id
}
if asset_stages:
bundle_depends["stages"] = asset_stages
applet_spec["runSpec"]["bundledDepends"].append(bundle_depends)
# If the file is not found in the applet destination project, clone it from the asset project
if (not dry_run and
dxpy.DXRecord(dxid=asset_record["id"], project=dest_project).describe()["project"] != dest_project):
dxpy.DXRecord(asset_record["id"], project=asset_record["project"]).clone(dest_project)
else:
raise AppBuilderException("No asset bundle was found that matched the specification %s"
% (json.dumps(asset)))
# Include the DNAnexus client libraries as an execution dependency, if they are not already
# there
if dx_toolkit_autodep == "git":
dx_toolkit_dep = {"name": "dx-toolkit",
"package_manager": "git",
"url": "git://github.com/dnanexus/dx-toolkit.git",
"tag": "master",
"build_commands": "make install DESTDIR=/ PREFIX=/opt/dnanexus"}
elif dx_toolkit_autodep == "stable":
dx_toolkit_dep = {"name": "dx-toolkit", "package_manager": "apt"}
elif dx_toolkit_autodep:
raise AppBuilderException("dx_toolkit_autodep must be one of 'stable', 'git', or False; got %r instead" % (dx_toolkit_autodep,))
if dx_toolkit_autodep:
applet_spec["runSpec"].setdefault("execDepends", [])
exec_depends = applet_spec["runSpec"]["execDepends"]
if type(exec_depends) is not list or any(type(dep) is not dict for dep in exec_depends):
raise AppBuilderException("Expected runSpec.execDepends to be an array of objects")
dx_toolkit_dep_found = any(dep.get('name') in DX_TOOLKIT_PKGS or dep.get('url') in DX_TOOLKIT_GIT_URLS for dep in exec_depends)
if not dx_toolkit_dep_found:
exec_depends.append(dx_toolkit_dep)
if dx_toolkit_autodep == "git":
applet_spec.setdefault("access", {})
applet_spec["access"].setdefault("network", [])
# Note: this can be set to "github.com" instead of "*" if the build doesn't download any deps
if "*" not in applet_spec["access"]["network"]:
applet_spec["access"]["network"].append("*")
merge(applet_spec, kwargs)
# -----
# Now actually create the applet
if dry_run:
print("Would create the following applet:")
print(json.dumps(applet_spec, indent=2))
print("*** DRY-RUN-- no applet was created ***")
return None, None
if applet_spec.get("categories", []):
if "tags" not in applet_spec:
applet_spec["tags"] = []
applet_spec["tags"] = list(set(applet_spec["tags"]) | set(applet_spec["categories"]))
applet_id = dxpy.api.applet_new(applet_spec)["id"]
if archived_applet:
archived_applet.set_properties({'replacedWith': applet_id})
# Now it is permissible to delete the old applet(s), if any
if applets_to_overwrite:
logger.info("Deleting applet(s) %s" % (','.join(applets_to_overwrite)))
dxpy.DXProject(dest_project).remove_objects(applets_to_overwrite)
return applet_id, applet_spec
|
python
|
def upload_applet(src_dir, uploaded_resources, check_name_collisions=True, overwrite=False, archive=False, project=None, override_folder=None, override_name=None, dx_toolkit_autodep="stable", dry_run=False, **kwargs):
"""
Creates a new applet object.
:param project: ID of container in which to create the applet.
:type project: str, or None to use whatever is specified in dxapp.json
:param override_folder: folder name for the resulting applet which, if specified, overrides that given in dxapp.json
:type override_folder: str
:param override_name: name for the resulting applet which, if specified, overrides that given in dxapp.json
:type override_name: str
:param dx_toolkit_autodep: What type of dx-toolkit dependency to
inject if none is present. "stable" for the APT package; "git"
for HEAD of dx-toolkit master branch; or False for no
dependency.
:type dx_toolkit_autodep: boolean or string
"""
applet_spec = _get_applet_spec(src_dir)
if project is None:
dest_project = applet_spec['project']
else:
dest_project = project
applet_spec['project'] = project
if 'name' not in applet_spec:
try:
applet_spec['name'] = os.path.basename(os.path.abspath(src_dir))
except:
raise AppBuilderException("Could not determine applet name from the specification (dxapp.json) or from the name of the working directory (%r)" % (src_dir,))
if override_folder:
applet_spec['folder'] = override_folder
if 'folder' not in applet_spec:
applet_spec['folder'] = '/'
if override_name:
applet_spec['name'] = override_name
if 'dxapi' not in applet_spec:
applet_spec['dxapi'] = dxpy.API_VERSION
applets_to_overwrite = []
archived_applet = None
if check_name_collisions and not dry_run:
destination_path = applet_spec['folder'] + ('/' if not applet_spec['folder'].endswith('/') else '') + applet_spec['name']
logger.debug("Checking for existing applet at " + destination_path)
for result in dxpy.find_data_objects(classname="applet", name=applet_spec["name"], folder=applet_spec['folder'], project=dest_project, recurse=False):
if overwrite:
# Don't remove the old applet until after the new one
# has been created. This avoids a race condition where
# we remove the old applet, but that causes garbage
# collection of the bundled resources that will be
# shared with the new applet
applets_to_overwrite.append(result['id'])
elif archive:
logger.debug("Archiving applet %s" % (result['id']))
proj = dxpy.DXProject(dest_project)
archive_folder = '/.Applet_archive'
try:
proj.list_folder(archive_folder)
except dxpy.DXAPIError:
proj.new_folder(archive_folder)
proj.move(objects=[result['id']], destination=archive_folder)
archived_applet = dxpy.DXApplet(result['id'], project=dest_project)
now = datetime.datetime.fromtimestamp(archived_applet.created/1000).ctime()
new_name = archived_applet.name + " ({d})".format(d=now)
archived_applet.rename(new_name)
logger.info("Archived applet %s to %s:\"%s/%s\"" % (result['id'], dest_project, archive_folder, new_name))
else:
raise AppBuilderException("An applet already exists at %s (id %s) and the --overwrite (-f) or --archive (-a) options were not given" % (destination_path, result['id']))
# -----
# Override various fields from the pristine dxapp.json
# Carry region-specific values from regionalOptions into the main
# runSpec
applet_spec["runSpec"].setdefault("bundledDepends", [])
applet_spec["runSpec"].setdefault("assetDepends", [])
if not dry_run:
region = dxpy.api.project_describe(dest_project, input_params={"fields": {"region": True}})["region"]
# if regionalOptions contain at least one region, they must include
# the region of the target project
if len(applet_spec.get('regionalOptions', {})) != 0 and region not in applet_spec.get('regionalOptions', {}):
err_mesg = "destination project is in region {} but \"regionalOptions\" do not contain this region. ".format(region)
err_mesg += "Please, update your \"regionalOptions\" specification"
raise AppBuilderException(err_mesg)
regional_options = applet_spec.get('regionalOptions', {}).get(region, {})
# We checked earlier that if region-specific values for the
# fields below are given, the same fields are not also specified
# in the top-level runSpec. So the operations below should not
# result in any user-supplied settings being clobbered.
if 'systemRequirements' in regional_options:
applet_spec["runSpec"]["systemRequirements"] = regional_options['systemRequirements']
if 'bundledDepends' in regional_options:
applet_spec["runSpec"]["bundledDepends"].extend(regional_options["bundledDepends"])
if 'assetDepends' in regional_options:
applet_spec["runSpec"]["assetDepends"].extend(regional_options["assetDepends"])
# Inline Readme.md and Readme.developer.md
dxpy.executable_builder.inline_documentation_files(applet_spec, src_dir)
# Inline the code of the program
if "file" in applet_spec["runSpec"]:
# Put it into runSpec.code instead
with open(os.path.join(src_dir, applet_spec["runSpec"]["file"])) as code_fh:
applet_spec["runSpec"]["code"] = code_fh.read()
del applet_spec["runSpec"]["file"]
# If this is applet requires a cluster, inline any bootstrapScript code that may be provided.
# bootstrapScript is an *optional* clusterSpec parameter.
# NOTE: assumes bootstrapScript is always provided as a filename
if "systemRequirements" in applet_spec["runSpec"]:
sys_reqs = applet_spec["runSpec"]["systemRequirements"]
for entry_point in sys_reqs:
try:
bootstrap_script = os.path.join(src_dir, sys_reqs[entry_point]["clusterSpec"]["bootstrapScript"])
with open(bootstrap_script) as code_fh:
sys_reqs[entry_point]["clusterSpec"]["bootstrapScript"] = code_fh.read()
except KeyError:
# either no "clusterSpec" or no "bootstrapScript" within "clusterSpec"
continue
except IOError:
raise AppBuilderException("The clusterSpec \"bootstrapScript\" could not be read.")
# Attach bundled resources to the app
if uploaded_resources is not None:
applet_spec["runSpec"]["bundledDepends"].extend(uploaded_resources)
# Validate and process assetDepends
asset_depends = applet_spec["runSpec"]["assetDepends"]
if type(asset_depends) is not list or any(type(dep) is not dict for dep in asset_depends):
raise AppBuilderException("Expected runSpec.assetDepends to be an array of objects")
for asset in asset_depends:
asset_project = asset.get("project", None)
asset_folder = asset.get("folder", '/')
asset_stages = asset.get("stages", None)
if "id" in asset:
asset_record = dxpy.DXRecord(asset["id"]).describe(fields={'details'}, default_fields=True)
elif "name" in asset and asset_project is not None and "version" in asset:
try:
asset_record = dxpy.find_one_data_object(zero_ok=True, classname="record", typename="AssetBundle",
name=asset["name"], properties=dict(version=asset["version"]),
project=asset_project, folder=asset_folder, recurse=False,
describe={"defaultFields": True, "fields": {"details": True}},
state="closed", more_ok=False)
except dxpy.exceptions.DXSearchError:
msg = "Found more than one asset record that matches: name={0}, folder={1} in project={2}."
raise AppBuilderException(msg.format(asset["name"], asset_folder, asset_project))
else:
raise AppBuilderException("Each runSpec.assetDepends element must have either {'id'} or "
"{'name', 'project' and 'version'} field(s).")
if asset_record:
if "id" in asset:
asset_details = asset_record["details"]
else:
asset_details = asset_record["describe"]["details"]
if "archiveFileId" in asset_details:
archive_file_id = asset_details["archiveFileId"]
else:
raise AppBuilderException("The required field 'archiveFileId' was not found in "
"the details of the asset bundle %s " % asset_record["id"])
archive_file_name = dxpy.DXFile(archive_file_id).describe()["name"]
bundle_depends = {
"name": archive_file_name,
"id": archive_file_id
}
if asset_stages:
bundle_depends["stages"] = asset_stages
applet_spec["runSpec"]["bundledDepends"].append(bundle_depends)
# If the file is not found in the applet destination project, clone it from the asset project
if (not dry_run and
dxpy.DXRecord(dxid=asset_record["id"], project=dest_project).describe()["project"] != dest_project):
dxpy.DXRecord(asset_record["id"], project=asset_record["project"]).clone(dest_project)
else:
raise AppBuilderException("No asset bundle was found that matched the specification %s"
% (json.dumps(asset)))
# Include the DNAnexus client libraries as an execution dependency, if they are not already
# there
if dx_toolkit_autodep == "git":
dx_toolkit_dep = {"name": "dx-toolkit",
"package_manager": "git",
"url": "git://github.com/dnanexus/dx-toolkit.git",
"tag": "master",
"build_commands": "make install DESTDIR=/ PREFIX=/opt/dnanexus"}
elif dx_toolkit_autodep == "stable":
dx_toolkit_dep = {"name": "dx-toolkit", "package_manager": "apt"}
elif dx_toolkit_autodep:
raise AppBuilderException("dx_toolkit_autodep must be one of 'stable', 'git', or False; got %r instead" % (dx_toolkit_autodep,))
if dx_toolkit_autodep:
applet_spec["runSpec"].setdefault("execDepends", [])
exec_depends = applet_spec["runSpec"]["execDepends"]
if type(exec_depends) is not list or any(type(dep) is not dict for dep in exec_depends):
raise AppBuilderException("Expected runSpec.execDepends to be an array of objects")
dx_toolkit_dep_found = any(dep.get('name') in DX_TOOLKIT_PKGS or dep.get('url') in DX_TOOLKIT_GIT_URLS for dep in exec_depends)
if not dx_toolkit_dep_found:
exec_depends.append(dx_toolkit_dep)
if dx_toolkit_autodep == "git":
applet_spec.setdefault("access", {})
applet_spec["access"].setdefault("network", [])
# Note: this can be set to "github.com" instead of "*" if the build doesn't download any deps
if "*" not in applet_spec["access"]["network"]:
applet_spec["access"]["network"].append("*")
merge(applet_spec, kwargs)
# -----
# Now actually create the applet
if dry_run:
print("Would create the following applet:")
print(json.dumps(applet_spec, indent=2))
print("*** DRY-RUN-- no applet was created ***")
return None, None
if applet_spec.get("categories", []):
if "tags" not in applet_spec:
applet_spec["tags"] = []
applet_spec["tags"] = list(set(applet_spec["tags"]) | set(applet_spec["categories"]))
applet_id = dxpy.api.applet_new(applet_spec)["id"]
if archived_applet:
archived_applet.set_properties({'replacedWith': applet_id})
# Now it is permissible to delete the old applet(s), if any
if applets_to_overwrite:
logger.info("Deleting applet(s) %s" % (','.join(applets_to_overwrite)))
dxpy.DXProject(dest_project).remove_objects(applets_to_overwrite)
return applet_id, applet_spec
|
[
"def",
"upload_applet",
"(",
"src_dir",
",",
"uploaded_resources",
",",
"check_name_collisions",
"=",
"True",
",",
"overwrite",
"=",
"False",
",",
"archive",
"=",
"False",
",",
"project",
"=",
"None",
",",
"override_folder",
"=",
"None",
",",
"override_name",
"=",
"None",
",",
"dx_toolkit_autodep",
"=",
"\"stable\"",
",",
"dry_run",
"=",
"False",
",",
"*",
"*",
"kwargs",
")",
":",
"applet_spec",
"=",
"_get_applet_spec",
"(",
"src_dir",
")",
"if",
"project",
"is",
"None",
":",
"dest_project",
"=",
"applet_spec",
"[",
"'project'",
"]",
"else",
":",
"dest_project",
"=",
"project",
"applet_spec",
"[",
"'project'",
"]",
"=",
"project",
"if",
"'name'",
"not",
"in",
"applet_spec",
":",
"try",
":",
"applet_spec",
"[",
"'name'",
"]",
"=",
"os",
".",
"path",
".",
"basename",
"(",
"os",
".",
"path",
".",
"abspath",
"(",
"src_dir",
")",
")",
"except",
":",
"raise",
"AppBuilderException",
"(",
"\"Could not determine applet name from the specification (dxapp.json) or from the name of the working directory (%r)\"",
"%",
"(",
"src_dir",
",",
")",
")",
"if",
"override_folder",
":",
"applet_spec",
"[",
"'folder'",
"]",
"=",
"override_folder",
"if",
"'folder'",
"not",
"in",
"applet_spec",
":",
"applet_spec",
"[",
"'folder'",
"]",
"=",
"'/'",
"if",
"override_name",
":",
"applet_spec",
"[",
"'name'",
"]",
"=",
"override_name",
"if",
"'dxapi'",
"not",
"in",
"applet_spec",
":",
"applet_spec",
"[",
"'dxapi'",
"]",
"=",
"dxpy",
".",
"API_VERSION",
"applets_to_overwrite",
"=",
"[",
"]",
"archived_applet",
"=",
"None",
"if",
"check_name_collisions",
"and",
"not",
"dry_run",
":",
"destination_path",
"=",
"applet_spec",
"[",
"'folder'",
"]",
"+",
"(",
"'/'",
"if",
"not",
"applet_spec",
"[",
"'folder'",
"]",
".",
"endswith",
"(",
"'/'",
")",
"else",
"''",
")",
"+",
"applet_spec",
"[",
"'name'",
"]",
"logger",
".",
"debug",
"(",
"\"Checking for existing applet at \"",
"+",
"destination_path",
")",
"for",
"result",
"in",
"dxpy",
".",
"find_data_objects",
"(",
"classname",
"=",
"\"applet\"",
",",
"name",
"=",
"applet_spec",
"[",
"\"name\"",
"]",
",",
"folder",
"=",
"applet_spec",
"[",
"'folder'",
"]",
",",
"project",
"=",
"dest_project",
",",
"recurse",
"=",
"False",
")",
":",
"if",
"overwrite",
":",
"# Don't remove the old applet until after the new one",
"# has been created. This avoids a race condition where",
"# we remove the old applet, but that causes garbage",
"# collection of the bundled resources that will be",
"# shared with the new applet",
"applets_to_overwrite",
".",
"append",
"(",
"result",
"[",
"'id'",
"]",
")",
"elif",
"archive",
":",
"logger",
".",
"debug",
"(",
"\"Archiving applet %s\"",
"%",
"(",
"result",
"[",
"'id'",
"]",
")",
")",
"proj",
"=",
"dxpy",
".",
"DXProject",
"(",
"dest_project",
")",
"archive_folder",
"=",
"'/.Applet_archive'",
"try",
":",
"proj",
".",
"list_folder",
"(",
"archive_folder",
")",
"except",
"dxpy",
".",
"DXAPIError",
":",
"proj",
".",
"new_folder",
"(",
"archive_folder",
")",
"proj",
".",
"move",
"(",
"objects",
"=",
"[",
"result",
"[",
"'id'",
"]",
"]",
",",
"destination",
"=",
"archive_folder",
")",
"archived_applet",
"=",
"dxpy",
".",
"DXApplet",
"(",
"result",
"[",
"'id'",
"]",
",",
"project",
"=",
"dest_project",
")",
"now",
"=",
"datetime",
".",
"datetime",
".",
"fromtimestamp",
"(",
"archived_applet",
".",
"created",
"/",
"1000",
")",
".",
"ctime",
"(",
")",
"new_name",
"=",
"archived_applet",
".",
"name",
"+",
"\" ({d})\"",
".",
"format",
"(",
"d",
"=",
"now",
")",
"archived_applet",
".",
"rename",
"(",
"new_name",
")",
"logger",
".",
"info",
"(",
"\"Archived applet %s to %s:\\\"%s/%s\\\"\"",
"%",
"(",
"result",
"[",
"'id'",
"]",
",",
"dest_project",
",",
"archive_folder",
",",
"new_name",
")",
")",
"else",
":",
"raise",
"AppBuilderException",
"(",
"\"An applet already exists at %s (id %s) and the --overwrite (-f) or --archive (-a) options were not given\"",
"%",
"(",
"destination_path",
",",
"result",
"[",
"'id'",
"]",
")",
")",
"# -----",
"# Override various fields from the pristine dxapp.json",
"# Carry region-specific values from regionalOptions into the main",
"# runSpec",
"applet_spec",
"[",
"\"runSpec\"",
"]",
".",
"setdefault",
"(",
"\"bundledDepends\"",
",",
"[",
"]",
")",
"applet_spec",
"[",
"\"runSpec\"",
"]",
".",
"setdefault",
"(",
"\"assetDepends\"",
",",
"[",
"]",
")",
"if",
"not",
"dry_run",
":",
"region",
"=",
"dxpy",
".",
"api",
".",
"project_describe",
"(",
"dest_project",
",",
"input_params",
"=",
"{",
"\"fields\"",
":",
"{",
"\"region\"",
":",
"True",
"}",
"}",
")",
"[",
"\"region\"",
"]",
"# if regionalOptions contain at least one region, they must include",
"# the region of the target project",
"if",
"len",
"(",
"applet_spec",
".",
"get",
"(",
"'regionalOptions'",
",",
"{",
"}",
")",
")",
"!=",
"0",
"and",
"region",
"not",
"in",
"applet_spec",
".",
"get",
"(",
"'regionalOptions'",
",",
"{",
"}",
")",
":",
"err_mesg",
"=",
"\"destination project is in region {} but \\\"regionalOptions\\\" do not contain this region. \"",
".",
"format",
"(",
"region",
")",
"err_mesg",
"+=",
"\"Please, update your \\\"regionalOptions\\\" specification\"",
"raise",
"AppBuilderException",
"(",
"err_mesg",
")",
"regional_options",
"=",
"applet_spec",
".",
"get",
"(",
"'regionalOptions'",
",",
"{",
"}",
")",
".",
"get",
"(",
"region",
",",
"{",
"}",
")",
"# We checked earlier that if region-specific values for the",
"# fields below are given, the same fields are not also specified",
"# in the top-level runSpec. So the operations below should not",
"# result in any user-supplied settings being clobbered.",
"if",
"'systemRequirements'",
"in",
"regional_options",
":",
"applet_spec",
"[",
"\"runSpec\"",
"]",
"[",
"\"systemRequirements\"",
"]",
"=",
"regional_options",
"[",
"'systemRequirements'",
"]",
"if",
"'bundledDepends'",
"in",
"regional_options",
":",
"applet_spec",
"[",
"\"runSpec\"",
"]",
"[",
"\"bundledDepends\"",
"]",
".",
"extend",
"(",
"regional_options",
"[",
"\"bundledDepends\"",
"]",
")",
"if",
"'assetDepends'",
"in",
"regional_options",
":",
"applet_spec",
"[",
"\"runSpec\"",
"]",
"[",
"\"assetDepends\"",
"]",
".",
"extend",
"(",
"regional_options",
"[",
"\"assetDepends\"",
"]",
")",
"# Inline Readme.md and Readme.developer.md",
"dxpy",
".",
"executable_builder",
".",
"inline_documentation_files",
"(",
"applet_spec",
",",
"src_dir",
")",
"# Inline the code of the program",
"if",
"\"file\"",
"in",
"applet_spec",
"[",
"\"runSpec\"",
"]",
":",
"# Put it into runSpec.code instead",
"with",
"open",
"(",
"os",
".",
"path",
".",
"join",
"(",
"src_dir",
",",
"applet_spec",
"[",
"\"runSpec\"",
"]",
"[",
"\"file\"",
"]",
")",
")",
"as",
"code_fh",
":",
"applet_spec",
"[",
"\"runSpec\"",
"]",
"[",
"\"code\"",
"]",
"=",
"code_fh",
".",
"read",
"(",
")",
"del",
"applet_spec",
"[",
"\"runSpec\"",
"]",
"[",
"\"file\"",
"]",
"# If this is applet requires a cluster, inline any bootstrapScript code that may be provided.",
"# bootstrapScript is an *optional* clusterSpec parameter.",
"# NOTE: assumes bootstrapScript is always provided as a filename",
"if",
"\"systemRequirements\"",
"in",
"applet_spec",
"[",
"\"runSpec\"",
"]",
":",
"sys_reqs",
"=",
"applet_spec",
"[",
"\"runSpec\"",
"]",
"[",
"\"systemRequirements\"",
"]",
"for",
"entry_point",
"in",
"sys_reqs",
":",
"try",
":",
"bootstrap_script",
"=",
"os",
".",
"path",
".",
"join",
"(",
"src_dir",
",",
"sys_reqs",
"[",
"entry_point",
"]",
"[",
"\"clusterSpec\"",
"]",
"[",
"\"bootstrapScript\"",
"]",
")",
"with",
"open",
"(",
"bootstrap_script",
")",
"as",
"code_fh",
":",
"sys_reqs",
"[",
"entry_point",
"]",
"[",
"\"clusterSpec\"",
"]",
"[",
"\"bootstrapScript\"",
"]",
"=",
"code_fh",
".",
"read",
"(",
")",
"except",
"KeyError",
":",
"# either no \"clusterSpec\" or no \"bootstrapScript\" within \"clusterSpec\"",
"continue",
"except",
"IOError",
":",
"raise",
"AppBuilderException",
"(",
"\"The clusterSpec \\\"bootstrapScript\\\" could not be read.\"",
")",
"# Attach bundled resources to the app",
"if",
"uploaded_resources",
"is",
"not",
"None",
":",
"applet_spec",
"[",
"\"runSpec\"",
"]",
"[",
"\"bundledDepends\"",
"]",
".",
"extend",
"(",
"uploaded_resources",
")",
"# Validate and process assetDepends",
"asset_depends",
"=",
"applet_spec",
"[",
"\"runSpec\"",
"]",
"[",
"\"assetDepends\"",
"]",
"if",
"type",
"(",
"asset_depends",
")",
"is",
"not",
"list",
"or",
"any",
"(",
"type",
"(",
"dep",
")",
"is",
"not",
"dict",
"for",
"dep",
"in",
"asset_depends",
")",
":",
"raise",
"AppBuilderException",
"(",
"\"Expected runSpec.assetDepends to be an array of objects\"",
")",
"for",
"asset",
"in",
"asset_depends",
":",
"asset_project",
"=",
"asset",
".",
"get",
"(",
"\"project\"",
",",
"None",
")",
"asset_folder",
"=",
"asset",
".",
"get",
"(",
"\"folder\"",
",",
"'/'",
")",
"asset_stages",
"=",
"asset",
".",
"get",
"(",
"\"stages\"",
",",
"None",
")",
"if",
"\"id\"",
"in",
"asset",
":",
"asset_record",
"=",
"dxpy",
".",
"DXRecord",
"(",
"asset",
"[",
"\"id\"",
"]",
")",
".",
"describe",
"(",
"fields",
"=",
"{",
"'details'",
"}",
",",
"default_fields",
"=",
"True",
")",
"elif",
"\"name\"",
"in",
"asset",
"and",
"asset_project",
"is",
"not",
"None",
"and",
"\"version\"",
"in",
"asset",
":",
"try",
":",
"asset_record",
"=",
"dxpy",
".",
"find_one_data_object",
"(",
"zero_ok",
"=",
"True",
",",
"classname",
"=",
"\"record\"",
",",
"typename",
"=",
"\"AssetBundle\"",
",",
"name",
"=",
"asset",
"[",
"\"name\"",
"]",
",",
"properties",
"=",
"dict",
"(",
"version",
"=",
"asset",
"[",
"\"version\"",
"]",
")",
",",
"project",
"=",
"asset_project",
",",
"folder",
"=",
"asset_folder",
",",
"recurse",
"=",
"False",
",",
"describe",
"=",
"{",
"\"defaultFields\"",
":",
"True",
",",
"\"fields\"",
":",
"{",
"\"details\"",
":",
"True",
"}",
"}",
",",
"state",
"=",
"\"closed\"",
",",
"more_ok",
"=",
"False",
")",
"except",
"dxpy",
".",
"exceptions",
".",
"DXSearchError",
":",
"msg",
"=",
"\"Found more than one asset record that matches: name={0}, folder={1} in project={2}.\"",
"raise",
"AppBuilderException",
"(",
"msg",
".",
"format",
"(",
"asset",
"[",
"\"name\"",
"]",
",",
"asset_folder",
",",
"asset_project",
")",
")",
"else",
":",
"raise",
"AppBuilderException",
"(",
"\"Each runSpec.assetDepends element must have either {'id'} or \"",
"\"{'name', 'project' and 'version'} field(s).\"",
")",
"if",
"asset_record",
":",
"if",
"\"id\"",
"in",
"asset",
":",
"asset_details",
"=",
"asset_record",
"[",
"\"details\"",
"]",
"else",
":",
"asset_details",
"=",
"asset_record",
"[",
"\"describe\"",
"]",
"[",
"\"details\"",
"]",
"if",
"\"archiveFileId\"",
"in",
"asset_details",
":",
"archive_file_id",
"=",
"asset_details",
"[",
"\"archiveFileId\"",
"]",
"else",
":",
"raise",
"AppBuilderException",
"(",
"\"The required field 'archiveFileId' was not found in \"",
"\"the details of the asset bundle %s \"",
"%",
"asset_record",
"[",
"\"id\"",
"]",
")",
"archive_file_name",
"=",
"dxpy",
".",
"DXFile",
"(",
"archive_file_id",
")",
".",
"describe",
"(",
")",
"[",
"\"name\"",
"]",
"bundle_depends",
"=",
"{",
"\"name\"",
":",
"archive_file_name",
",",
"\"id\"",
":",
"archive_file_id",
"}",
"if",
"asset_stages",
":",
"bundle_depends",
"[",
"\"stages\"",
"]",
"=",
"asset_stages",
"applet_spec",
"[",
"\"runSpec\"",
"]",
"[",
"\"bundledDepends\"",
"]",
".",
"append",
"(",
"bundle_depends",
")",
"# If the file is not found in the applet destination project, clone it from the asset project",
"if",
"(",
"not",
"dry_run",
"and",
"dxpy",
".",
"DXRecord",
"(",
"dxid",
"=",
"asset_record",
"[",
"\"id\"",
"]",
",",
"project",
"=",
"dest_project",
")",
".",
"describe",
"(",
")",
"[",
"\"project\"",
"]",
"!=",
"dest_project",
")",
":",
"dxpy",
".",
"DXRecord",
"(",
"asset_record",
"[",
"\"id\"",
"]",
",",
"project",
"=",
"asset_record",
"[",
"\"project\"",
"]",
")",
".",
"clone",
"(",
"dest_project",
")",
"else",
":",
"raise",
"AppBuilderException",
"(",
"\"No asset bundle was found that matched the specification %s\"",
"%",
"(",
"json",
".",
"dumps",
"(",
"asset",
")",
")",
")",
"# Include the DNAnexus client libraries as an execution dependency, if they are not already",
"# there",
"if",
"dx_toolkit_autodep",
"==",
"\"git\"",
":",
"dx_toolkit_dep",
"=",
"{",
"\"name\"",
":",
"\"dx-toolkit\"",
",",
"\"package_manager\"",
":",
"\"git\"",
",",
"\"url\"",
":",
"\"git://github.com/dnanexus/dx-toolkit.git\"",
",",
"\"tag\"",
":",
"\"master\"",
",",
"\"build_commands\"",
":",
"\"make install DESTDIR=/ PREFIX=/opt/dnanexus\"",
"}",
"elif",
"dx_toolkit_autodep",
"==",
"\"stable\"",
":",
"dx_toolkit_dep",
"=",
"{",
"\"name\"",
":",
"\"dx-toolkit\"",
",",
"\"package_manager\"",
":",
"\"apt\"",
"}",
"elif",
"dx_toolkit_autodep",
":",
"raise",
"AppBuilderException",
"(",
"\"dx_toolkit_autodep must be one of 'stable', 'git', or False; got %r instead\"",
"%",
"(",
"dx_toolkit_autodep",
",",
")",
")",
"if",
"dx_toolkit_autodep",
":",
"applet_spec",
"[",
"\"runSpec\"",
"]",
".",
"setdefault",
"(",
"\"execDepends\"",
",",
"[",
"]",
")",
"exec_depends",
"=",
"applet_spec",
"[",
"\"runSpec\"",
"]",
"[",
"\"execDepends\"",
"]",
"if",
"type",
"(",
"exec_depends",
")",
"is",
"not",
"list",
"or",
"any",
"(",
"type",
"(",
"dep",
")",
"is",
"not",
"dict",
"for",
"dep",
"in",
"exec_depends",
")",
":",
"raise",
"AppBuilderException",
"(",
"\"Expected runSpec.execDepends to be an array of objects\"",
")",
"dx_toolkit_dep_found",
"=",
"any",
"(",
"dep",
".",
"get",
"(",
"'name'",
")",
"in",
"DX_TOOLKIT_PKGS",
"or",
"dep",
".",
"get",
"(",
"'url'",
")",
"in",
"DX_TOOLKIT_GIT_URLS",
"for",
"dep",
"in",
"exec_depends",
")",
"if",
"not",
"dx_toolkit_dep_found",
":",
"exec_depends",
".",
"append",
"(",
"dx_toolkit_dep",
")",
"if",
"dx_toolkit_autodep",
"==",
"\"git\"",
":",
"applet_spec",
".",
"setdefault",
"(",
"\"access\"",
",",
"{",
"}",
")",
"applet_spec",
"[",
"\"access\"",
"]",
".",
"setdefault",
"(",
"\"network\"",
",",
"[",
"]",
")",
"# Note: this can be set to \"github.com\" instead of \"*\" if the build doesn't download any deps",
"if",
"\"*\"",
"not",
"in",
"applet_spec",
"[",
"\"access\"",
"]",
"[",
"\"network\"",
"]",
":",
"applet_spec",
"[",
"\"access\"",
"]",
"[",
"\"network\"",
"]",
".",
"append",
"(",
"\"*\"",
")",
"merge",
"(",
"applet_spec",
",",
"kwargs",
")",
"# -----",
"# Now actually create the applet",
"if",
"dry_run",
":",
"print",
"(",
"\"Would create the following applet:\"",
")",
"print",
"(",
"json",
".",
"dumps",
"(",
"applet_spec",
",",
"indent",
"=",
"2",
")",
")",
"print",
"(",
"\"*** DRY-RUN-- no applet was created ***\"",
")",
"return",
"None",
",",
"None",
"if",
"applet_spec",
".",
"get",
"(",
"\"categories\"",
",",
"[",
"]",
")",
":",
"if",
"\"tags\"",
"not",
"in",
"applet_spec",
":",
"applet_spec",
"[",
"\"tags\"",
"]",
"=",
"[",
"]",
"applet_spec",
"[",
"\"tags\"",
"]",
"=",
"list",
"(",
"set",
"(",
"applet_spec",
"[",
"\"tags\"",
"]",
")",
"|",
"set",
"(",
"applet_spec",
"[",
"\"categories\"",
"]",
")",
")",
"applet_id",
"=",
"dxpy",
".",
"api",
".",
"applet_new",
"(",
"applet_spec",
")",
"[",
"\"id\"",
"]",
"if",
"archived_applet",
":",
"archived_applet",
".",
"set_properties",
"(",
"{",
"'replacedWith'",
":",
"applet_id",
"}",
")",
"# Now it is permissible to delete the old applet(s), if any",
"if",
"applets_to_overwrite",
":",
"logger",
".",
"info",
"(",
"\"Deleting applet(s) %s\"",
"%",
"(",
"','",
".",
"join",
"(",
"applets_to_overwrite",
")",
")",
")",
"dxpy",
".",
"DXProject",
"(",
"dest_project",
")",
".",
"remove_objects",
"(",
"applets_to_overwrite",
")",
"return",
"applet_id",
",",
"applet_spec"
] |
Creates a new applet object.
:param project: ID of container in which to create the applet.
:type project: str, or None to use whatever is specified in dxapp.json
:param override_folder: folder name for the resulting applet which, if specified, overrides that given in dxapp.json
:type override_folder: str
:param override_name: name for the resulting applet which, if specified, overrides that given in dxapp.json
:type override_name: str
:param dx_toolkit_autodep: What type of dx-toolkit dependency to
inject if none is present. "stable" for the APT package; "git"
for HEAD of dx-toolkit master branch; or False for no
dependency.
:type dx_toolkit_autodep: boolean or string
|
[
"Creates",
"a",
"new",
"applet",
"object",
"."
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/app_builder.py#L427-L666
|
train
|
Uploads a applet to the app builder.
|
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cX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BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__
ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(48) + '\157' + '\x34' + chr(48), ord("\x08")), nzTpIcepk0o8(chr(697 - 649) + chr(1038 - 927) + chr(0b110010) + '\064' + chr(180 - 127), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110011) + chr(1516 - 1462) + chr(0b11001 + 0o36), 0o10), nzTpIcepk0o8(chr(0b1101 + 0o43) + chr(5266 - 5155) + chr(0b110010) + chr(2116 - 2068) + chr(287 - 232), 21923 - 21915), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110001) + chr(0b10010 + 0o42) + chr(0b110111), 0o10), nzTpIcepk0o8(chr(2152 - 2104) + chr(0b1000100 + 0o53) + '\063' + '\x34' + chr(2847 - 2792), ord("\x08")), nzTpIcepk0o8(chr(0b10111 + 0o31) + chr(0b1100001 + 0o16) + '\x35' + chr(54), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(6424 - 6313) + chr(51) + chr(54) + chr(0b110110), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(0b1101 + 0o46) + chr(2296 - 2243) + chr(0b110111), 22796 - 22788), nzTpIcepk0o8(chr(840 - 792) + chr(0b10100 + 0o133) + chr(50) + chr(0b101111 + 0o1) + '\x33', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(956 - 905) + chr(0b11000 + 0o34) + '\065', 35220 - 35212), nzTpIcepk0o8('\x30' + '\157' + chr(0b110010) + '\x32' + chr(0b1011 + 0o46), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\062' + chr(0b110100) + '\064', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b101001 + 0o106) + chr(0b110001) + '\x30' + '\x32', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1011101 + 0o22) + chr(0b100001 + 0o20) + '\060' + chr(0b110100), 30575 - 30567), nzTpIcepk0o8(chr(0b11011 + 0o25) + '\x6f' + chr(0b10110 + 0o35) + chr(0b110001) + chr(0b110011), 0o10), nzTpIcepk0o8(chr(0b1110 + 0o42) + chr(111) + chr(1399 - 1348) + chr(0b101101 + 0o6) + chr(0b110111), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(1482 - 1431) + chr(50) + '\x30', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b100101 + 0o14) + chr(50) + '\x32', 7507 - 7499), nzTpIcepk0o8(chr(0b110000) + '\157' + '\063' + chr(0b110110) + chr(48), 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(50) + chr(48) + chr(52), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + '\x31' + '\063' + chr(0b110110), 29302 - 29294), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b100 + 0o55) + chr(52) + '\x35', 4790 - 4782), nzTpIcepk0o8(chr(2028 - 1980) + '\157' + '\x31' + '\066' + chr(0b110101), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x31' + '\x30' + chr(2320 - 2271), 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(0b101010 + 0o7) + chr(0b110010 + 0o1) + '\x37', 0o10), nzTpIcepk0o8('\x30' + chr(0b11111 + 0o120) + chr(51) + chr(54) + chr(0b110110), 8), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(51) + '\x32' + chr(0b110101), ord("\x08")), nzTpIcepk0o8(chr(777 - 729) + '\157' + chr(0b101011 + 0o7), 37513 - 37505), nzTpIcepk0o8(chr(115 - 67) + '\x6f' + '\x32' + chr(2026 - 1972) + chr(0b10011 + 0o44), 0o10), nzTpIcepk0o8('\060' + '\157' + chr(0b100000 + 0o21) + chr(0b1001 + 0o47), 0b1000), nzTpIcepk0o8('\x30' + '\157' + '\x31' + '\067' + '\064', 41850 - 41842), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(83 - 34) + chr(54) + '\065', 8), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x32' + '\x33' + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(1999 - 1951) + chr(0b1000111 + 0o50) + chr(906 - 855) + chr(1045 - 993) + '\064', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110001) + chr(50) + chr(0b110100 + 0o2), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(1459 - 1405) + '\066', 0b1000), nzTpIcepk0o8(chr(443 - 395) + chr(111) + chr(0b110 + 0o53) + chr(0b110001), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(50) + chr(0b100000 + 0o26), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(1306 - 1255) + chr(0b110000) + chr(0b1011 + 0o46), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + chr(0b1101111) + '\065' + '\x30', 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x0e'), chr(0b1010001 + 0o23) + '\x65' + chr(461 - 362) + chr(0b1101111) + chr(3020 - 2920) + chr(101))(chr(0b101010 + 0o113) + chr(0b1110100) + '\146' + '\x2d' + chr(56)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def zcv2mx6sR1EX(zgBFj9gT640a, OsUdLpUdvKi6, NwO28QYvz7wF=nzTpIcepk0o8('\060' + chr(0b1001000 + 0o47) + chr(420 - 371), 7080 - 7072), JewFVgkSGnBd=nzTpIcepk0o8('\060' + chr(0b1101111) + '\x30', 0o10), dBcxfKxmLMYL=nzTpIcepk0o8(chr(48) + chr(111) + chr(247 - 199), 8), mcjejRq_Q0_k=None, MAmKjVq7ZJOT=None, VOstLh422hTY=None, wRS5E6xndkg_=roI3spqORKae(ES5oEprVxulp(b'S\xd1\x96\xe5\x0b\x82'), chr(0b1100100) + '\x65' + '\143' + '\x6f' + chr(0b1100100) + '\145')('\x75' + chr(0b1110100) + chr(0b100 + 0o142) + chr(45) + chr(56)), BdFrFR7WJm4f=nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(48), 8), **q5n0sHDDTy90):
PPCMnxakmKCd = WdFnqwTxtCFj(zgBFj9gT640a)
if mcjejRq_Q0_k is None:
Y0e2drYW1Qm2 = PPCMnxakmKCd[roI3spqORKae(ES5oEprVxulp(b'P\xd7\x98\xed\x02\x84Z'), '\x64' + '\145' + chr(0b10 + 0o141) + chr(0b1101111) + '\x64' + '\145')('\x75' + chr(0b1010110 + 0o36) + chr(102) + chr(0b100010 + 0o13) + '\070')]
else:
Y0e2drYW1Qm2 = mcjejRq_Q0_k
PPCMnxakmKCd[roI3spqORKae(ES5oEprVxulp(b'P\xd7\x98\xed\x02\x84Z'), '\x64' + chr(0b111010 + 0o53) + chr(0b1100011) + '\x6f' + '\144' + '\145')(chr(117) + '\x74' + '\146' + chr(0b10101 + 0o30) + '\070')] = mcjejRq_Q0_k
if roI3spqORKae(ES5oEprVxulp(b'N\xc4\x9a\xe2'), chr(0b100100 + 0o100) + '\145' + chr(99) + chr(0b1001111 + 0o40) + chr(6435 - 6335) + chr(0b10111 + 0o116))(chr(117) + '\164' + '\146' + chr(1487 - 1442) + chr(0b111000)) not in PPCMnxakmKCd:
try:
PPCMnxakmKCd[roI3spqORKae(ES5oEprVxulp(b'N\xc4\x9a\xe2'), chr(3750 - 3650) + chr(101) + chr(2863 - 2764) + chr(0b1101111) + '\144' + chr(0b1100101))('\x75' + chr(0b1010111 + 0o35) + chr(0b101110 + 0o70) + chr(1263 - 1218) + '\x38')] = aHUqKstZLeS6.path.pLvIyXSV7qW5(aHUqKstZLeS6.path.LSQRPdli1Fxe(zgBFj9gT640a))
except UtiWT6f6p9yZ:
raise GVQ7tTeLFi7I(roI3spqORKae(ES5oEprVxulp(b'c\xca\x82\xeb\x03\xc7@\x99\x9b\xa3\x81\xf4\xd0\'6\xa6\xb6\xbe7\xd0\xe5.\x15\x19$+\xd6\xbbc\xdam\\\x13\xee\x8b;\x16}~\xa4\x00\xd6\x87\xe2\x04\x8eH\x9f\x8c\xe2\x91\xf8\xcb,d\xe3\xbb\xa83\x80\xf4p\x0f\x06.1\xdf\xf5m\xc5(\x1a\x07\xf3\x89vBas\xe1N\xc4\x9a\xe2G\x88H\xd6\x9b\xeb\x80\xb1\xd3-6\xa0\xb6\xbe5\xd0\xe07\x17\x10"+\x99\xa7{\x97 Y\x07\xb5'), chr(0b1100100) + chr(0b1100101) + chr(8627 - 8528) + '\x6f' + '\x64' + chr(101))(chr(117) + '\164' + '\146' + chr(45) + chr(56)) % (zgBFj9gT640a,))
if MAmKjVq7ZJOT:
PPCMnxakmKCd[roI3spqORKae(ES5oEprVxulp(b'F\xca\x9b\xe3\x02\x95'), chr(0b1100100) + chr(101) + chr(99) + '\x6f' + '\144' + '\x65')('\x75' + chr(3029 - 2913) + chr(9239 - 9137) + '\055' + chr(56))] = MAmKjVq7ZJOT
if roI3spqORKae(ES5oEprVxulp(b'F\xca\x9b\xe3\x02\x95'), chr(100) + chr(0b1001010 + 0o33) + chr(99) + '\157' + chr(0b1100100) + '\x65')(chr(0b10111 + 0o136) + chr(11271 - 11155) + chr(102) + '\x2d' + chr(0b1010 + 0o56)) not in PPCMnxakmKCd:
PPCMnxakmKCd[roI3spqORKae(ES5oEprVxulp(b'F\xca\x9b\xe3\x02\x95'), '\x64' + '\x65' + chr(99) + chr(8940 - 8829) + chr(0b1100100) + chr(0b1010000 + 0o25))(chr(0b1110101) + chr(116) + chr(0b110010 + 0o64) + chr(0b101101) + '\070')] = roI3spqORKae(ES5oEprVxulp(b'\x0f'), chr(100) + '\x65' + chr(99) + '\x6f' + '\x64' + '\145')('\165' + '\x74' + chr(102) + '\x2d' + '\x38')
if VOstLh422hTY:
PPCMnxakmKCd[roI3spqORKae(ES5oEprVxulp(b'N\xc4\x9a\xe2'), '\x64' + '\x65' + '\x63' + '\x6f' + chr(723 - 623) + '\145')('\165' + chr(0b100101 + 0o117) + '\146' + chr(577 - 532) + chr(0b101001 + 0o17))] = VOstLh422hTY
if roI3spqORKae(ES5oEprVxulp(b'D\xdd\x96\xf7\x0e'), chr(0b1100100) + chr(0b1000100 + 0o41) + '\143' + '\x6f' + chr(7691 - 7591) + chr(0b1100101))(chr(117) + chr(116) + chr(0b1100110) + chr(1075 - 1030) + chr(0b111000)) not in PPCMnxakmKCd:
PPCMnxakmKCd[roI3spqORKae(ES5oEprVxulp(b'D\xdd\x96\xf7\x0e'), chr(0b100101 + 0o77) + chr(101) + '\143' + chr(111) + chr(6561 - 6461) + '\145')(chr(117) + chr(0b1001111 + 0o45) + '\x66' + chr(0b10101 + 0o30) + chr(2467 - 2411))] = SsdNdRxXOwsF.API_VERSION
DfPO7v8kXhwF = []
InS3JtNBU7Nt = None
if NwO28QYvz7wF and (not BdFrFR7WJm4f):
V8sVxZMuA0qg = PPCMnxakmKCd[roI3spqORKae(ES5oEprVxulp(b'F\xca\x9b\xe3\x02\x95'), chr(9332 - 9232) + '\x65' + chr(0b10101 + 0o116) + '\x6f' + chr(100) + chr(0b1100101))('\x75' + chr(8015 - 7899) + chr(0b1100110) + chr(0b101101) + '\x38')] + (roI3spqORKae(ES5oEprVxulp(b'\x0f'), chr(0b1100100) + chr(101) + chr(0b1100000 + 0o3) + '\157' + chr(100) + '\145')('\x75' + chr(0b1101000 + 0o14) + chr(4028 - 3926) + '\055' + chr(764 - 708)) if not PPCMnxakmKCd[roI3spqORKae(ES5oEprVxulp(b'F\xca\x9b\xe3\x02\x95'), chr(0b1011001 + 0o13) + chr(0b1100101) + chr(0b1100011) + chr(111) + '\x64' + chr(101))(chr(0b1110101) + chr(0b1110100) + chr(9664 - 9562) + chr(797 - 752) + '\070')].I9fKICALauJr(roI3spqORKae(ES5oEprVxulp(b'\x0f'), chr(4933 - 4833) + chr(101) + chr(99) + chr(111) + chr(100) + chr(0b101010 + 0o73))(chr(0b1110101) + chr(116) + chr(7578 - 7476) + chr(45) + chr(0b100101 + 0o23))) else roI3spqORKae(ES5oEprVxulp(b''), chr(100) + '\x65' + chr(99) + chr(111) + '\x64' + chr(4131 - 4030))(chr(0b1001111 + 0o46) + chr(0b10011 + 0o141) + chr(102) + '\x2d' + '\x38')) + PPCMnxakmKCd[roI3spqORKae(ES5oEprVxulp(b'N\xc4\x9a\xe2'), chr(0b110010 + 0o62) + chr(8937 - 8836) + '\143' + '\x6f' + chr(0b101101 + 0o67) + chr(0b100111 + 0o76))(chr(117) + chr(0b1110100) + chr(0b1100110) + chr(45) + '\070')]
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'G\xe4\xce\xdd^\x83A\xc0\xba\xee\xa0\xcb'), chr(0b1100100) + chr(0b1100101) + chr(99) + chr(111) + chr(3402 - 3302) + chr(0b110011 + 0o62))('\165' + '\164' + chr(5679 - 5577) + chr(0b101101) + chr(56)))(roI3spqORKae(ES5oEprVxulp(b'c\xcd\x92\xe4\x0c\x8e@\x91\xcf\xe5\x8a\xe3\x84\'<\xa2\xac\xa4;\x9e\xe3~\x04\x0513\x93\xa1"\xd6|\\'), '\x64' + '\145' + '\143' + '\157' + chr(5911 - 5811) + '\x65')(chr(0b111100 + 0o71) + '\164' + '\x66' + '\055' + '\070') + V8sVxZMuA0qg)
for POx95m7SPOVy in roI3spqORKae(SsdNdRxXOwsF, roI3spqORKae(ES5oEprVxulp(b"F\xcc\x99\xe38\x83O\x82\x8e\xdc\x8a\xf3\xce''\xbf\xac"), chr(100) + chr(8305 - 8204) + chr(0b101110 + 0o65) + chr(11079 - 10968) + chr(0b1100100) + chr(101))(chr(7652 - 7535) + chr(0b11100 + 0o130) + chr(8133 - 8031) + chr(230 - 185) + chr(1199 - 1143)))(classname=roI3spqORKae(ES5oEprVxulp(b'A\xd5\x87\xeb\x02\x93'), chr(7506 - 7406) + chr(0b111011 + 0o52) + chr(9767 - 9668) + chr(111) + chr(0b111111 + 0o45) + chr(3004 - 2903))('\165' + '\164' + chr(0b1100110) + '\x2d' + chr(1192 - 1136)), name=PPCMnxakmKCd[roI3spqORKae(ES5oEprVxulp(b'N\xc4\x9a\xe2'), chr(0b1100100) + chr(0b1100101) + chr(0b1001000 + 0o33) + chr(111) + chr(8931 - 8831) + chr(0b1100101))('\165' + '\x74' + chr(0b101101 + 0o71) + '\055' + '\070')], folder=PPCMnxakmKCd[roI3spqORKae(ES5oEprVxulp(b'F\xca\x9b\xe3\x02\x95'), '\144' + chr(7630 - 7529) + '\x63' + chr(0b100100 + 0o113) + chr(0b110001 + 0o63) + '\x65')('\x75' + chr(0b1110100) + chr(102) + chr(1853 - 1808) + chr(0b111000))], project=Y0e2drYW1Qm2, recurse=nzTpIcepk0o8(chr(2197 - 2149) + chr(0b1000001 + 0o56) + chr(0b101111 + 0o1), 8)):
if JewFVgkSGnBd:
roI3spqORKae(DfPO7v8kXhwF, roI3spqORKae(ES5oEprVxulp(b'h\xf1\xa4\xb3\x1f\x80i\x99\x85\xec\xb0\xa4'), chr(0b1100100) + chr(0b1011111 + 0o6) + chr(227 - 128) + '\x6f' + '\x64' + chr(0b1100101))('\x75' + '\x74' + chr(0b1100110) + '\055' + chr(0b111000)))(POx95m7SPOVy[roI3spqORKae(ES5oEprVxulp(b'I\xc1'), chr(1610 - 1510) + '\x65' + '\x63' + chr(0b100100 + 0o113) + '\x64' + '\145')(chr(117) + chr(116) + '\146' + '\x2d' + chr(0b10100 + 0o44))])
elif dBcxfKxmLMYL:
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'G\xe4\xce\xdd^\x83A\xc0\xba\xee\xa0\xcb'), chr(6884 - 6784) + '\145' + chr(0b1100011) + '\x6f' + chr(100) + chr(101))(chr(0b1110101) + '\x74' + chr(3206 - 3104) + '\x2d' + '\070'))(roI3spqORKae(ES5oEprVxulp(b'a\xd7\x94\xef\x0e\x91G\x98\x88\xa3\x84\xe1\xd4.!\xbf\xff\xf5!'), chr(100) + '\x65' + '\143' + chr(111) + chr(0b1100100) + '\145')(chr(0b1101 + 0o150) + '\x74' + chr(0b1100110) + chr(0b11100 + 0o21) + chr(56)) % POx95m7SPOVy[roI3spqORKae(ES5oEprVxulp(b'I\xc1'), chr(0b101010 + 0o72) + chr(0b1100101) + '\x63' + chr(4875 - 4764) + chr(0b111110 + 0o46) + chr(0b110111 + 0o56))(chr(8771 - 8654) + '\x74' + chr(3989 - 3887) + chr(1352 - 1307) + chr(2862 - 2806))])
yNS8IgQS0ymV = SsdNdRxXOwsF.DXProject(Y0e2drYW1Qm2)
yxG3dXL9ThKh = roI3spqORKae(ES5oEprVxulp(b'\x0f\x8b\xb6\xf7\x17\x8bK\x82\xb0\xe2\x97\xf2\xcc+2\xae'), chr(0b1100100) + chr(0b1000010 + 0o43) + '\143' + chr(111) + chr(100) + '\x65')(chr(117) + '\x74' + '\146' + chr(45) + chr(1088 - 1032))
try:
roI3spqORKae(yNS8IgQS0ymV, roI3spqORKae(ES5oEprVxulp(b'L\xcc\x84\xf38\x81A\x9a\x8b\xe6\x97'), chr(6550 - 6450) + chr(0b11011 + 0o112) + chr(1519 - 1420) + chr(4196 - 4085) + '\144' + chr(9382 - 9281))(chr(0b110 + 0o157) + chr(0b1010010 + 0o42) + chr(0b1100110) + chr(0b101101) + chr(981 - 925)))(yxG3dXL9ThKh)
except roI3spqORKae(SsdNdRxXOwsF, roI3spqORKae(ES5oEprVxulp(b'd\xfd\xb6\xd7.\xa2\\\x84\x80\xf1'), chr(100) + '\145' + chr(0b1100011) + chr(0b100110 + 0o111) + chr(9194 - 9094) + chr(101))('\x75' + '\164' + '\x66' + chr(1568 - 1523) + chr(0b1001 + 0o57))):
roI3spqORKae(yNS8IgQS0ymV, roI3spqORKae(ES5oEprVxulp(b'N\xc0\x80\xd8\x01\x88B\x92\x8a\xf1'), chr(0b1100100) + '\x65' + chr(0b110011 + 0o60) + chr(0b1101111) + '\144' + chr(0b1100101))(chr(0b1110101) + chr(0b10100 + 0o140) + chr(102) + chr(45) + chr(0b111000)))(yxG3dXL9ThKh)
roI3spqORKae(yNS8IgQS0ymV, roI3spqORKae(ES5oEprVxulp(b'M\xca\x81\xe2'), chr(100) + chr(8361 - 8260) + chr(99) + chr(111) + chr(0b1110 + 0o126) + chr(9104 - 9003))('\165' + '\164' + chr(0b1100110) + '\055' + chr(56)))(objects=[POx95m7SPOVy[roI3spqORKae(ES5oEprVxulp(b'I\xc1'), '\144' + '\x65' + chr(99) + '\x6f' + chr(360 - 260) + '\145')(chr(7871 - 7754) + chr(116) + '\146' + '\x2d' + chr(0b111000))]], destination=yxG3dXL9ThKh)
InS3JtNBU7Nt = SsdNdRxXOwsF.DXApplet(POx95m7SPOVy[roI3spqORKae(ES5oEprVxulp(b'I\xc1'), chr(100) + chr(0b1100101) + chr(7284 - 7185) + chr(12294 - 12183) + '\x64' + chr(0b1100101))(chr(4251 - 4134) + chr(116) + chr(102) + chr(1201 - 1156) + chr(1796 - 1740))], project=Y0e2drYW1Qm2)
HofpCdf61ts4 = pGZg2NXRxBup.datetime.fromtimestamp(InS3JtNBU7Nt.created / nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b100101 + 0o14) + chr(55) + chr(2570 - 2517) + chr(48), ord("\x08"))).ctime()
cvwbkSTalMQ7 = InS3JtNBU7Nt.SLVB2BPA_mIe + roI3spqORKae(ES5oEprVxulp(b'\x00\x8d\x8c\xe3\x1a\xce'), chr(0b1000110 + 0o36) + '\x65' + '\143' + '\x6f' + '\x64' + chr(0b1101 + 0o130))('\x75' + chr(7655 - 7539) + '\x66' + '\055' + chr(56)).q33KG3foQ_CJ(d=HofpCdf61ts4)
roI3spqORKae(InS3JtNBU7Nt, roI3spqORKae(ES5oEprVxulp(b'R\xc0\x99\xe6\n\x82'), chr(9729 - 9629) + '\145' + '\143' + chr(111) + chr(100) + chr(101))('\x75' + chr(9574 - 9458) + '\x66' + chr(0b101101) + chr(0b111000)))(cvwbkSTalMQ7)
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'I\xdd\xb9\xff^\xabY\xa9\xde\xe4\x97\xde'), '\144' + chr(0b1100101) + '\x63' + chr(0b1101111) + '\x64' + chr(9978 - 9877))(chr(0b10110 + 0o137) + chr(0b111001 + 0o73) + '\146' + '\x2d' + '\070'))(roI3spqORKae(ES5oEprVxulp(b"a\xd7\x94\xef\x0e\x91K\x92\xcf\xe2\x95\xe1\xc8'0\xeb\xfa\xa3r\x84\xeb~@\x06{}\xd3\xa6-\x92{^"), '\x64' + '\145' + chr(0b1100011) + '\157' + chr(100) + chr(624 - 523))('\x75' + '\164' + chr(0b1100110) + chr(0b11010 + 0o23) + chr(56)) % (POx95m7SPOVy[roI3spqORKae(ES5oEprVxulp(b'I\xc1'), chr(7554 - 7454) + chr(0b1100101) + chr(3424 - 3325) + chr(8626 - 8515) + '\x64' + chr(101))(chr(0b1010001 + 0o44) + chr(0b1110100) + chr(102) + chr(1125 - 1080) + chr(0b111000))], Y0e2drYW1Qm2, yxG3dXL9ThKh, cvwbkSTalMQ7))
else:
raise GVQ7tTeLFi7I(roI3spqORKae(ES5oEprVxulp(b"a\xcb\xd7\xe6\x17\x97B\x93\x9b\xa3\x84\xfd\xd6'%\xaf\xa6\xf07\x88\xed-\x11\x06a>\x82\xf5'\xc4(T\x1c\xf8\xc4sE 6\xa0N\xc1\xd7\xf3\x0f\x82\x0e\xdb\xc2\xec\x93\xf4\xd656\xa2\xab\xb5r\xd8\xa98LU.-\xd6\xf8/\xd6z\x1f\x1d\xf5\x923\x16!;\xa0\t\x85\x98\xf7\x13\x8eA\x98\x9c\xa3\x92\xf4\xd6'd\xa5\xb0\xa4r\x97\xed(\x00\x1b"), chr(100) + chr(0b1100101) + chr(0b1001110 + 0o25) + chr(111) + chr(0b101101 + 0o67) + chr(9495 - 9394))(chr(117) + chr(0b1110100) + chr(102) + chr(0b11011 + 0o22) + chr(2766 - 2710)) % (V8sVxZMuA0qg, POx95m7SPOVy[roI3spqORKae(ES5oEprVxulp(b'I\xc1'), chr(0b1100100) + chr(2849 - 2748) + chr(1989 - 1890) + chr(0b11010 + 0o125) + chr(0b1100100) + chr(0b11110 + 0o107))(chr(0b1110101) + chr(116) + '\x66' + chr(1320 - 1275) + '\070')]))
roI3spqORKae(PPCMnxakmKCd[roI3spqORKae(ES5oEprVxulp(b'R\xd0\x99\xd4\x17\x82M'), chr(0b1001 + 0o133) + '\x65' + chr(0b1000111 + 0o34) + chr(0b1101111) + chr(100) + chr(7032 - 6931))(chr(0b1110101) + '\164' + chr(0b1100110) + chr(0b100111 + 0o6) + chr(56))], roI3spqORKae(ES5oEprVxulp(b'Z\xc0\xc7\xcd*\x92e\xcf\x9d\xec\xb2\xc2'), '\144' + chr(6028 - 5927) + chr(889 - 790) + chr(6313 - 6202) + chr(0b1000011 + 0o41) + chr(0b1010000 + 0o25))(chr(0b1110101) + chr(0b1110100) + chr(9219 - 9117) + '\x2d' + chr(56)))(roI3spqORKae(ES5oEprVxulp(b'B\xd0\x99\xe3\x0b\x82J\xb2\x8a\xf3\x80\xff\xc01'), chr(8991 - 8891) + chr(0b1100101) + '\143' + chr(111) + chr(100) + chr(0b1100101))(chr(0b101100 + 0o111) + '\164' + chr(0b1111 + 0o127) + chr(0b11000 + 0o25) + '\070'), [])
roI3spqORKae(PPCMnxakmKCd[roI3spqORKae(ES5oEprVxulp(b'R\xd0\x99\xd4\x17\x82M'), chr(100) + chr(101) + '\x63' + '\157' + '\x64' + chr(0b1100101))(chr(2651 - 2534) + chr(147 - 31) + chr(0b1100110) + chr(0b101101) + '\x38')], roI3spqORKae(ES5oEprVxulp(b'Z\xc0\xc7\xcd*\x92e\xcf\x9d\xec\xb2\xc2'), chr(5808 - 5708) + chr(6767 - 6666) + chr(4611 - 4512) + '\157' + chr(450 - 350) + chr(101))(chr(117) + chr(7074 - 6958) + chr(6357 - 6255) + chr(409 - 364) + chr(56)))(roI3spqORKae(ES5oEprVxulp(b'A\xd6\x84\xe2\x13\xa3K\x86\x8a\xed\x81\xe2'), chr(5913 - 5813) + chr(2075 - 1974) + chr(6545 - 6446) + chr(0b1101111) + '\x64' + chr(101))(chr(117) + chr(9256 - 9140) + chr(102) + chr(0b101101) + chr(0b111000)), [])
if not BdFrFR7WJm4f:
SiTpDn8thAb3 = SsdNdRxXOwsF.api.project_describe(Y0e2drYW1Qm2, input_params={roI3spqORKae(ES5oEprVxulp(b'F\xcc\x92\xeb\x03\x94'), chr(0b1100100) + chr(0b1100101) + '\x63' + '\157' + chr(0b1100100) + chr(101))('\165' + chr(0b1110100) + chr(1495 - 1393) + chr(620 - 575) + chr(1127 - 1071)): {roI3spqORKae(ES5oEprVxulp(b'R\xc0\x90\xee\x08\x89'), chr(100) + '\x65' + '\x63' + chr(0b1000110 + 0o51) + '\144' + '\x65')('\x75' + '\164' + chr(0b110 + 0o140) + chr(0b101101) + chr(56)): nzTpIcepk0o8('\060' + chr(8063 - 7952) + chr(49), 8)}})[roI3spqORKae(ES5oEprVxulp(b'R\xc0\x90\xee\x08\x89'), chr(7128 - 7028) + chr(0b1100101) + chr(0b1100011) + chr(0b111011 + 0o64) + chr(0b1100100) + chr(0b1100101))(chr(0b1110101) + chr(3302 - 3186) + chr(0b101110 + 0o70) + chr(45) + chr(2380 - 2324))]
if ftfygxgFas5X(roI3spqORKae(PPCMnxakmKCd, roI3spqORKae(ES5oEprVxulp(b'g\xf0\xbc\xe2\x13\x92\x1a\x8e\x8e\xc4\x96\xdb'), chr(0b11110 + 0o106) + chr(101) + chr(0b10011 + 0o120) + chr(0b1101111) + '\144' + chr(0b111111 + 0o46))('\x75' + chr(5543 - 5427) + '\146' + '\x2d' + '\070'))(roI3spqORKae(ES5oEprVxulp(b'R\xc0\x90\xee\x08\x89O\x9a\xa0\xf3\x91\xf8\xcb,7'), chr(0b1100100) + chr(9077 - 8976) + '\143' + '\x6f' + chr(8497 - 8397) + chr(9087 - 8986))(chr(0b1110101) + chr(116) + '\x66' + chr(1693 - 1648) + '\070'), {})) != nzTpIcepk0o8(chr(48) + chr(0b10100 + 0o133) + chr(0b110000), 8) and SiTpDn8thAb3 not in roI3spqORKae(PPCMnxakmKCd, roI3spqORKae(ES5oEprVxulp(b'g\xf0\xbc\xe2\x13\x92\x1a\x8e\x8e\xc4\x96\xdb'), chr(100) + chr(101) + chr(8247 - 8148) + chr(111) + chr(0b111110 + 0o46) + chr(0b1100101))('\165' + '\x74' + '\146' + chr(1301 - 1256) + chr(0b100110 + 0o22)))(roI3spqORKae(ES5oEprVxulp(b'R\xc0\x90\xee\x08\x89O\x9a\xa0\xf3\x91\xf8\xcb,7'), chr(0b1100100) + chr(0b111001 + 0o54) + chr(99) + chr(11760 - 11649) + chr(5544 - 5444) + '\x65')(chr(117) + chr(0b1101110 + 0o6) + '\x66' + chr(1526 - 1481) + chr(56)), {}):
J0RRdvgB0gFK = roI3spqORKae(ES5oEprVxulp(b'D\xc0\x84\xf3\x0e\x89O\x82\x86\xec\x8b\xb1\xd40+\xa1\xba\xb3&\xd0\xed-E\x1c/\x7f\x84\xb0e\xdeg\x12U\xe7\x99vT|b\xe1\x02\xd7\x92\xe0\x0e\x88@\x97\x83\xcc\x95\xe5\xcd-*\xb8\xfd\xf06\x9f\xa40\n\x01a<\x99\xbbv\xd6a\x12U\xe8\x8c?E)d\xa4G\xcc\x98\xe9I\xc7'), chr(100) + '\x65' + '\143' + chr(10060 - 9949) + chr(9635 - 9535) + chr(4092 - 3991))(chr(9206 - 9089) + chr(0b1110100) + '\146' + '\055' + '\x38').q33KG3foQ_CJ(SiTpDn8thAb3)
J0RRdvgB0gFK += roI3spqORKae(ES5oEprVxulp(b"p\xc9\x92\xe6\x14\x82\x02\xd6\x9a\xf3\x81\xf0\xd0'd\xb2\xb0\xa5 \xd0\xa6,\x00\x12(0\x98\xb4n\xf8x\x08\x1c\xf3\x8a%\x14)e\xb1E\xc6\x9e\xe1\x0e\x84O\x82\x86\xec\x8b"), chr(0b1100100) + chr(0b1000000 + 0o45) + '\x63' + chr(0b1101111) + chr(2141 - 2041) + '\x65')(chr(0b1110101) + chr(116) + '\x66' + chr(45) + chr(0b1011 + 0o55))
raise GVQ7tTeLFi7I(J0RRdvgB0gFK)
Fjv0O_qYoNO7 = PPCMnxakmKCd.get(roI3spqORKae(ES5oEprVxulp(b'R\xc0\x90\xee\x08\x89O\x9a\xa0\xf3\x91\xf8\xcb,7'), chr(100) + chr(3982 - 3881) + chr(0b1000011 + 0o40) + chr(1207 - 1096) + '\144' + chr(0b1100101))(chr(117) + chr(3875 - 3759) + chr(2517 - 2415) + chr(45) + '\x38'), {}).GUKetu4xaGsJ(SiTpDn8thAb3, {})
if roI3spqORKae(ES5oEprVxulp(b'S\xdc\x84\xf3\x02\x8a|\x93\x9e\xf6\x8c\xe3\xc1/!\xa5\xab\xa3'), chr(394 - 294) + '\x65' + chr(8826 - 8727) + '\157' + chr(100) + chr(101))(chr(0b110001 + 0o104) + '\x74' + chr(102) + chr(45) + chr(0b10101 + 0o43)) in Fjv0O_qYoNO7:
PPCMnxakmKCd[roI3spqORKae(ES5oEprVxulp(b'R\xd0\x99\xd4\x17\x82M'), chr(0b1010000 + 0o24) + '\145' + '\143' + chr(0b1010011 + 0o34) + chr(100) + chr(8520 - 8419))(chr(117) + '\x74' + chr(0b1100110) + chr(0b100 + 0o51) + '\070')][roI3spqORKae(ES5oEprVxulp(b'S\xdc\x84\xf3\x02\x8a|\x93\x9e\xf6\x8c\xe3\xc1/!\xa5\xab\xa3'), chr(0b1100100) + chr(0b1100101) + '\x63' + chr(0b10 + 0o155) + '\144' + '\145')(chr(0b1110101) + '\164' + '\x66' + chr(0b110 + 0o47) + chr(1777 - 1721))] = Fjv0O_qYoNO7[roI3spqORKae(ES5oEprVxulp(b'S\xdc\x84\xf3\x02\x8a|\x93\x9e\xf6\x8c\xe3\xc1/!\xa5\xab\xa3'), '\x64' + chr(4632 - 4531) + chr(0b110101 + 0o56) + chr(10623 - 10512) + '\144' + chr(101))(chr(117) + '\164' + '\x66' + chr(45) + chr(56))]
if roI3spqORKae(ES5oEprVxulp(b'B\xd0\x99\xe3\x0b\x82J\xb2\x8a\xf3\x80\xff\xc01'), chr(802 - 702) + chr(101) + chr(4761 - 4662) + '\157' + chr(100) + '\145')(chr(0b1101100 + 0o11) + chr(1601 - 1485) + chr(102) + '\055' + chr(3012 - 2956)) in Fjv0O_qYoNO7:
roI3spqORKae(PPCMnxakmKCd[roI3spqORKae(ES5oEprVxulp(b'R\xd0\x99\xd4\x17\x82M'), chr(2934 - 2834) + chr(0b1100101) + chr(0b1100001 + 0o2) + chr(111) + chr(0b1100100) + chr(101))(chr(117) + '\x74' + chr(0b101 + 0o141) + chr(0b101101) + chr(0b11100 + 0o34))][roI3spqORKae(ES5oEprVxulp(b'B\xd0\x99\xe3\x0b\x82J\xb2\x8a\xf3\x80\xff\xc01'), chr(100) + chr(0b1100101) + chr(0b10 + 0o141) + '\x6f' + chr(0b1100100) + chr(0b1100101))('\165' + chr(116) + chr(0b101110 + 0o70) + '\055' + chr(56))], roI3spqORKae(ES5oEprVxulp(b't\xfa\xc4\xca\x08\x83b\xa1\xb0\xc1\x87\xe0'), '\x64' + chr(0b1001111 + 0o26) + chr(0b1100011) + chr(4233 - 4122) + chr(0b1100100) + chr(0b1100000 + 0o5))('\165' + chr(0b111110 + 0o66) + chr(102) + chr(45) + chr(1909 - 1853)))(Fjv0O_qYoNO7[roI3spqORKae(ES5oEprVxulp(b'B\xd0\x99\xe3\x0b\x82J\xb2\x8a\xf3\x80\xff\xc01'), chr(0b11011 + 0o111) + chr(0b1100101) + chr(0b110010 + 0o61) + chr(0b110111 + 0o70) + chr(0b100 + 0o140) + chr(101))('\165' + chr(7039 - 6923) + chr(102) + chr(0b101101) + chr(0b111000))])
if roI3spqORKae(ES5oEprVxulp(b'A\xd6\x84\xe2\x13\xa3K\x86\x8a\xed\x81\xe2'), chr(0b11011 + 0o111) + chr(101) + chr(7769 - 7670) + chr(0b1101111) + chr(1809 - 1709) + chr(0b1100101 + 0o0))('\165' + '\x74' + chr(0b1100110) + chr(0b101101) + '\x38') in Fjv0O_qYoNO7:
roI3spqORKae(PPCMnxakmKCd[roI3spqORKae(ES5oEprVxulp(b'R\xd0\x99\xd4\x17\x82M'), '\x64' + '\x65' + '\x63' + chr(0b1101111) + chr(0b1100100) + '\145')(chr(0b1110101) + chr(116) + chr(0b101101 + 0o71) + '\055' + chr(310 - 254))][roI3spqORKae(ES5oEprVxulp(b'A\xd6\x84\xe2\x13\xa3K\x86\x8a\xed\x81\xe2'), chr(0b1100100) + chr(101) + chr(99) + chr(0b1101111) + chr(8872 - 8772) + chr(0b1010011 + 0o22))(chr(0b1101011 + 0o12) + chr(0b110110 + 0o76) + '\x66' + '\055' + '\x38')], roI3spqORKae(ES5oEprVxulp(b't\xfa\xc4\xca\x08\x83b\xa1\xb0\xc1\x87\xe0'), chr(100) + '\x65' + chr(0b1011000 + 0o13) + chr(0b1011101 + 0o22) + '\x64' + chr(8563 - 8462))('\x75' + '\x74' + '\x66' + '\x2d' + chr(1343 - 1287)))(Fjv0O_qYoNO7[roI3spqORKae(ES5oEprVxulp(b'A\xd6\x84\xe2\x13\xa3K\x86\x8a\xed\x81\xe2'), chr(2275 - 2175) + '\145' + chr(99) + chr(0b1101111) + '\x64' + '\x65')('\165' + chr(0b1011011 + 0o31) + chr(102) + chr(0b101101) + chr(0b1110 + 0o52))])
roI3spqORKae(SsdNdRxXOwsF.executable_builder, roI3spqORKae(ES5oEprVxulp(b'I\xcb\x9b\xee\t\x82q\x92\x80\xe0\x90\xfc\xc1,0\xaa\xab\xb9=\x9e\xdb8\x0c\x19$,'), '\x64' + chr(0b100100 + 0o101) + chr(99) + chr(0b1101111) + chr(0b10111 + 0o115) + chr(0b10000 + 0o125))(chr(0b1110101) + chr(0b1110100) + '\146' + chr(0b10011 + 0o32) + chr(0b1110 + 0o52)))(PPCMnxakmKCd, zgBFj9gT640a)
if roI3spqORKae(ES5oEprVxulp(b'F\xcc\x9b\xe2'), '\x64' + chr(101) + '\x63' + chr(0b1101111) + chr(0b1010001 + 0o23) + chr(101))(chr(0b1011011 + 0o32) + chr(12841 - 12725) + chr(7353 - 7251) + chr(0b101101) + '\070') in PPCMnxakmKCd[roI3spqORKae(ES5oEprVxulp(b'R\xd0\x99\xd4\x17\x82M'), chr(0b10100 + 0o120) + chr(0b1100101) + '\143' + chr(1726 - 1615) + chr(0b1100100) + chr(8541 - 8440))(chr(7563 - 7446) + '\164' + '\x66' + '\055' + chr(2773 - 2717))]:
with DnU3Rq9N5ala(roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'y\x91\x8e\xca^\xa5M\x90\xbb\xc0\xab\xe0'), chr(100) + chr(0b111101 + 0o50) + chr(99) + chr(0b1000 + 0o147) + '\144' + chr(101))(chr(7672 - 7555) + '\x74' + chr(102) + chr(0b101101) + '\070'))(zgBFj9gT640a, PPCMnxakmKCd[roI3spqORKae(ES5oEprVxulp(b'R\xd0\x99\xd4\x17\x82M'), chr(100) + chr(101) + '\x63' + chr(10216 - 10105) + chr(8218 - 8118) + '\x65')('\165' + chr(116) + chr(0b101 + 0o141) + chr(0b100 + 0o51) + '\070')][roI3spqORKae(ES5oEprVxulp(b'F\xcc\x9b\xe2'), chr(0b1100010 + 0o2) + chr(405 - 304) + '\x63' + '\x6f' + chr(7837 - 7737) + '\x65')(chr(0b110111 + 0o76) + '\x74' + chr(102) + chr(0b101101) + chr(0b110110 + 0o2))])) as GcAQTlWRIMHh:
PPCMnxakmKCd[roI3spqORKae(ES5oEprVxulp(b'R\xd0\x99\xd4\x17\x82M'), chr(100) + '\x65' + chr(0b1100011) + '\157' + '\144' + '\x65')('\165' + '\x74' + '\146' + chr(0b101101) + chr(0b111000))][roI3spqORKae(ES5oEprVxulp(b'C\xca\x93\xe2'), chr(0b1100100) + '\x65' + chr(4225 - 4126) + '\x6f' + chr(970 - 870) + chr(873 - 772))(chr(117) + chr(2449 - 2333) + '\x66' + '\x2d' + chr(56))] = GcAQTlWRIMHh.eoXknH7XUn7m()
del PPCMnxakmKCd[roI3spqORKae(ES5oEprVxulp(b'R\xd0\x99\xd4\x17\x82M'), chr(100) + chr(0b1100101) + chr(8996 - 8897) + '\x6f' + chr(0b1100100) + chr(101))('\165' + chr(6601 - 6485) + '\x66' + chr(0b101101) + chr(0b111000))][roI3spqORKae(ES5oEprVxulp(b'F\xcc\x9b\xe2'), chr(0b11011 + 0o111) + chr(9039 - 8938) + chr(0b101100 + 0o67) + chr(0b1110 + 0o141) + '\x64' + '\x65')(chr(117) + chr(7794 - 7678) + chr(776 - 674) + chr(0b100101 + 0o10) + '\x38')]
if roI3spqORKae(ES5oEprVxulp(b'S\xdc\x84\xf3\x02\x8a|\x93\x9e\xf6\x8c\xe3\xc1/!\xa5\xab\xa3'), chr(5912 - 5812) + '\x65' + chr(0b1100011) + chr(0b1000 + 0o147) + chr(0b1100011 + 0o1) + chr(0b1100101))(chr(0b11100 + 0o131) + chr(5078 - 4962) + chr(1133 - 1031) + '\x2d' + chr(656 - 600)) in PPCMnxakmKCd[roI3spqORKae(ES5oEprVxulp(b'R\xd0\x99\xd4\x17\x82M'), chr(0b1001 + 0o133) + '\x65' + '\143' + chr(4321 - 4210) + chr(5887 - 5787) + chr(101))('\x75' + '\164' + chr(438 - 336) + chr(0b101101) + chr(56))]:
dpEJR2i1FT0u = PPCMnxakmKCd[roI3spqORKae(ES5oEprVxulp(b'R\xd0\x99\xd4\x17\x82M'), chr(100) + chr(101) + chr(0b1011000 + 0o13) + chr(0b1101111) + chr(4430 - 4330) + chr(8836 - 8735))(chr(0b110110 + 0o77) + chr(3535 - 3419) + '\146' + chr(0b101101) + chr(1010 - 954))][roI3spqORKae(ES5oEprVxulp(b'S\xdc\x84\xf3\x02\x8a|\x93\x9e\xf6\x8c\xe3\xc1/!\xa5\xab\xa3'), chr(0b1100100) + chr(101) + chr(0b11 + 0o140) + chr(361 - 250) + chr(100) + '\145')(chr(0b1110101) + chr(0b1001111 + 0o45) + chr(0b1100110) + chr(0b101101) + '\070')]
for cfyvidT8gK1H in dpEJR2i1FT0u:
try:
sZ8m2fzKYDw_ = aHUqKstZLeS6.path.Y4yM9BcfTCNq(zgBFj9gT640a, dpEJR2i1FT0u[cfyvidT8gK1H][roI3spqORKae(ES5oEprVxulp(b'C\xc9\x82\xf4\x13\x82\\\xa5\x9f\xe6\x86'), '\x64' + chr(9238 - 9137) + chr(0b1100011) + chr(111) + chr(0b1010110 + 0o16) + chr(0b1100101))(chr(0b1110101) + '\164' + '\146' + chr(932 - 887) + chr(0b11011 + 0o35))][roI3spqORKae(ES5oEprVxulp(b'B\xca\x98\xf3\x14\x93\\\x97\x9f\xd0\x86\xe3\xcd20'), chr(100) + chr(0b11 + 0o142) + '\143' + '\157' + chr(100) + chr(101))(chr(117) + chr(0b100000 + 0o124) + '\x66' + chr(0b1100 + 0o41) + '\x38')])
with DnU3Rq9N5ala(sZ8m2fzKYDw_) as GcAQTlWRIMHh:
dpEJR2i1FT0u[cfyvidT8gK1H][roI3spqORKae(ES5oEprVxulp(b'C\xc9\x82\xf4\x13\x82\\\xa5\x9f\xe6\x86'), chr(100) + '\145' + chr(0b111001 + 0o52) + '\157' + chr(0b1100100) + '\145')(chr(6586 - 6469) + '\x74' + '\146' + '\055' + '\070')][roI3spqORKae(ES5oEprVxulp(b'B\xca\x98\xf3\x14\x93\\\x97\x9f\xd0\x86\xe3\xcd20'), '\x64' + chr(0b1001000 + 0o35) + chr(0b1100011) + chr(0b1000 + 0o147) + chr(100) + chr(0b100001 + 0o104))('\x75' + chr(0b1110100) + chr(0b1100101 + 0o1) + '\x2d' + chr(994 - 938))] = GcAQTlWRIMHh.eoXknH7XUn7m()
except knUxyjfq07F9:
continue
except Awc2QmWaiVq8:
raise GVQ7tTeLFi7I(roI3spqORKae(ES5oEprVxulp(b"t\xcd\x92\xa7\x04\x8b[\x85\x9b\xe6\x97\xc2\xd4''\xeb\xfd\xb2=\x9f\xf0-\x11\x07 /\xa5\xb6p\xdex\x08W\xbc\x879Cer\xe1N\xca\x83\xa7\x05\x82\x0e\x84\x8a\xe2\x81\xbf"), '\144' + chr(0b1100101) + chr(0b1100011) + chr(0b1010 + 0o145) + chr(100) + '\145')(chr(0b11101 + 0o130) + '\164' + '\146' + '\055' + chr(0b111000)))
if OsUdLpUdvKi6 is not None:
roI3spqORKae(PPCMnxakmKCd[roI3spqORKae(ES5oEprVxulp(b'R\xd0\x99\xd4\x17\x82M'), chr(2623 - 2523) + chr(101) + chr(0b1100011) + '\x6f' + chr(100) + '\145')('\x75' + '\x74' + '\x66' + chr(1723 - 1678) + chr(2300 - 2244))][roI3spqORKae(ES5oEprVxulp(b'B\xd0\x99\xe3\x0b\x82J\xb2\x8a\xf3\x80\xff\xc01'), chr(100) + chr(101) + chr(3537 - 3438) + chr(0b1010100 + 0o33) + chr(100) + chr(101))(chr(117) + chr(0b110111 + 0o75) + chr(3380 - 3278) + chr(0b11001 + 0o24) + chr(768 - 712))], roI3spqORKae(ES5oEprVxulp(b't\xfa\xc4\xca\x08\x83b\xa1\xb0\xc1\x87\xe0'), '\144' + chr(101) + chr(0b1100011) + '\157' + chr(0b1100100) + '\145')('\x75' + '\x74' + chr(102) + chr(888 - 843) + '\x38'))(OsUdLpUdvKi6)
kSKl2xNmjSCf = PPCMnxakmKCd[roI3spqORKae(ES5oEprVxulp(b'R\xd0\x99\xd4\x17\x82M'), chr(0b1100100) + chr(101) + chr(99) + '\x6f' + '\x64' + chr(0b11010 + 0o113))(chr(0b1110101) + chr(0b1001010 + 0o52) + chr(425 - 323) + chr(45) + chr(0b111000))][roI3spqORKae(ES5oEprVxulp(b'A\xd6\x84\xe2\x13\xa3K\x86\x8a\xed\x81\xe2'), '\x64' + chr(101) + '\143' + chr(0b1101 + 0o142) + chr(0b1100100) + chr(0b1100101))(chr(0b1110101) + chr(11667 - 11551) + chr(4938 - 4836) + chr(0b100110 + 0o7) + chr(56))]
if not suIjIS24Zkqw(kSKl2xNmjSCf, H4NoA26ON7iG) or VF4pKOObtlPc((not suIjIS24Zkqw(LgKAe9bPRh0c, znjnJWK64FDT) for LgKAe9bPRh0c in kSKl2xNmjSCf)):
raise GVQ7tTeLFi7I(roI3spqORKae(ES5oEprVxulp(b'e\xdd\x87\xe2\x04\x93K\x92\xcf\xf1\x90\xff\xf72!\xa8\xf1\xb1!\x83\xe1*!\x101:\x98\xb1q\x97|\x13U\xfe\x81vWg6\xa0R\xd7\x96\xfeG\x88H\xd6\x80\xe1\x8f\xf4\xc767'), chr(6097 - 5997) + chr(101) + chr(99) + chr(0b1001001 + 0o46) + '\x64' + chr(0b1100101))(chr(0b1110101) + chr(0b1110001 + 0o3) + '\x66' + '\x2d' + chr(0b111 + 0o61)))
for XwVpcyasdpoL in kSKl2xNmjSCf:
QrOSZu0kyS1i = XwVpcyasdpoL.GUKetu4xaGsJ(roI3spqORKae(ES5oEprVxulp(b'P\xd7\x98\xed\x02\x84Z'), '\x64' + chr(8847 - 8746) + '\x63' + chr(7723 - 7612) + '\x64' + chr(0b110100 + 0o61))(chr(117) + '\x74' + chr(0b1100110) + chr(0b1100 + 0o41) + '\x38'), None)
fAfyP_EyphXA = XwVpcyasdpoL.GUKetu4xaGsJ(roI3spqORKae(ES5oEprVxulp(b'F\xca\x9b\xe3\x02\x95'), '\x64' + '\145' + chr(0b1100011) + '\157' + chr(5356 - 5256) + chr(8324 - 8223))('\x75' + chr(6039 - 5923) + chr(0b1011111 + 0o7) + chr(0b101101) + chr(0b111000)), roI3spqORKae(ES5oEprVxulp(b'\x0f'), chr(0b11011 + 0o111) + chr(0b100110 + 0o77) + '\143' + '\x6f' + '\144' + chr(0b1000011 + 0o42))(chr(0b1110101) + chr(116) + '\146' + '\x2d' + chr(56)))
GUushBdHRTFU = XwVpcyasdpoL.GUKetu4xaGsJ(roI3spqORKae(ES5oEprVxulp(b'S\xd1\x96\xe0\x02\x94'), chr(0b110101 + 0o57) + chr(3226 - 3125) + '\143' + '\157' + '\144' + '\145')(chr(3985 - 3868) + chr(116) + chr(0b1100110) + chr(0b101101) + '\x38'), None)
if roI3spqORKae(ES5oEprVxulp(b'I\xc1'), chr(100) + chr(0b1100101) + chr(0b1001100 + 0o27) + chr(111) + '\144' + chr(0b10010 + 0o123))(chr(117) + chr(0b1011101 + 0o27) + '\x66' + chr(1622 - 1577) + chr(0b10001 + 0o47)) in XwVpcyasdpoL:
iZo6BYIdUYUa = SsdNdRxXOwsF.DXRecord(XwVpcyasdpoL[roI3spqORKae(ES5oEprVxulp(b'I\xc1'), chr(7854 - 7754) + chr(0b1100101) + '\143' + chr(0b1000001 + 0o56) + '\x64' + '\145')('\165' + chr(0b1000010 + 0o62) + chr(0b1001010 + 0o34) + '\x2d' + chr(0b11010 + 0o36))]).describe(fields={roI3spqORKae(ES5oEprVxulp(b'D\xc0\x83\xe6\x0e\x8b]'), '\144' + chr(9917 - 9816) + chr(0b100101 + 0o76) + chr(111) + '\144' + chr(5593 - 5492))(chr(0b10011 + 0o142) + '\164' + '\x66' + chr(45) + '\070')}, default_fields=nzTpIcepk0o8('\060' + '\157' + chr(49), 8))
elif roI3spqORKae(ES5oEprVxulp(b'N\xc4\x9a\xe2'), chr(0b11011 + 0o111) + '\x65' + chr(0b1011001 + 0o12) + '\x6f' + '\x64' + chr(0b1100101))('\x75' + chr(0b1110100) + chr(4851 - 4749) + '\x2d' + chr(56)) in XwVpcyasdpoL and QrOSZu0kyS1i is not None and (roI3spqORKae(ES5oEprVxulp(b'V\xc0\x85\xf4\x0e\x88@'), chr(100) + '\x65' + chr(99) + '\157' + chr(0b1000000 + 0o44) + chr(0b1000110 + 0o37))(chr(0b1101001 + 0o14) + '\164' + chr(4398 - 4296) + '\x2d' + chr(56)) in XwVpcyasdpoL):
try:
iZo6BYIdUYUa = SsdNdRxXOwsF.find_one_data_object(zero_ok=nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b101000 + 0o11), 8), classname=roI3spqORKae(ES5oEprVxulp(b'R\xc0\x94\xe8\x15\x83'), chr(0b1100100) + chr(0b1100101) + chr(0b1100011) + chr(111) + chr(0b1100100) + chr(101))('\x75' + chr(6973 - 6857) + chr(0b101000 + 0o76) + chr(45) + chr(56)), typename=roI3spqORKae(ES5oEprVxulp(b'a\xd6\x84\xe2\x13\xa5[\x98\x8b\xef\x80'), '\x64' + chr(0b1100101) + chr(99) + '\157' + '\144' + chr(3546 - 3445))(chr(0b1110101) + '\x74' + '\146' + chr(0b101101) + '\070'), name=XwVpcyasdpoL[roI3spqORKae(ES5oEprVxulp(b'N\xc4\x9a\xe2'), '\144' + chr(7143 - 7042) + '\x63' + '\157' + chr(100) + '\145')(chr(3495 - 3378) + '\x74' + chr(102) + chr(901 - 856) + chr(1520 - 1464))], properties=znjnJWK64FDT(version=XwVpcyasdpoL[roI3spqORKae(ES5oEprVxulp(b'V\xc0\x85\xf4\x0e\x88@'), chr(0b1100100) + chr(0b111110 + 0o47) + chr(8528 - 8429) + chr(0b1011100 + 0o23) + chr(1940 - 1840) + chr(0b1100101))('\165' + chr(116) + chr(0b10100 + 0o122) + '\x2d' + chr(56))]), project=QrOSZu0kyS1i, folder=fAfyP_EyphXA, recurse=nzTpIcepk0o8(chr(286 - 238) + chr(0b1101111) + '\x30', 8), describe={roI3spqORKae(ES5oEprVxulp(b'D\xc0\x91\xe6\x12\x8bZ\xb0\x86\xe6\x89\xf5\xd7'), chr(0b1100100) + chr(0b1100101) + chr(8357 - 8258) + chr(0b1101111) + chr(0b1000100 + 0o40) + chr(8828 - 8727))(chr(117) + chr(0b1110100) + chr(0b1100110) + '\x2d' + chr(2983 - 2927)): nzTpIcepk0o8('\060' + chr(0b1100 + 0o143) + chr(0b100111 + 0o12), 8), roI3spqORKae(ES5oEprVxulp(b'F\xcc\x92\xeb\x03\x94'), chr(0b1100100) + '\x65' + '\x63' + '\x6f' + chr(660 - 560) + '\145')(chr(6599 - 6482) + chr(2770 - 2654) + '\x66' + chr(0b101101) + '\070'): {roI3spqORKae(ES5oEprVxulp(b'D\xc0\x83\xe6\x0e\x8b]'), '\x64' + '\x65' + chr(0b1100011) + chr(0b1101111) + chr(8670 - 8570) + chr(0b1100101))('\165' + chr(116) + '\146' + '\055' + '\070'): nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x31', 8)}}, state=roI3spqORKae(ES5oEprVxulp(b'C\xc9\x98\xf4\x02\x83'), chr(4244 - 4144) + '\x65' + chr(99) + chr(0b1010101 + 0o32) + chr(100) + chr(0b1100101))(chr(117) + chr(7140 - 7024) + chr(0b1100110) + chr(0b101101) + chr(1140 - 1084)), more_ok=nzTpIcepk0o8('\060' + chr(6510 - 6399) + '\060', 8))
except roI3spqORKae(SsdNdRxXOwsF.exceptions, roI3spqORKae(ES5oEprVxulp(b'd\xfd\xa4\xe2\x06\x95M\x9e\xaa\xf1\x97\xfe\xd6'), chr(100) + chr(0b1100101) + chr(0b1011001 + 0o12) + '\157' + chr(5914 - 5814) + chr(5726 - 5625))(chr(117) + chr(116) + chr(102) + chr(0b101101) + chr(56))):
sldzbHve8G1S = roI3spqORKae(ES5oEprVxulp(b'f\xca\x82\xe9\x03\xc7C\x99\x9d\xe6\xc5\xe5\xcc#*\xeb\xb0\xbe7\xd0\xe5-\x16\x105\x7f\x84\xb0a\xd8z\x18U\xe8\x8c7B){\xa0T\xc6\x9f\xe2\x14\xdd\x0e\x98\x8e\xee\x80\xac\xdfr9\xe7\xff\xb6=\x9c\xe0;\x17H:n\x8b\xf5k\xd9(\x0c\x07\xf3\x8e3U}+\xba\x12\xd8\xd9'), chr(1663 - 1563) + chr(101) + chr(99) + '\157' + chr(0b1100100 + 0o0) + chr(0b1001011 + 0o32))('\x75' + chr(10583 - 10467) + chr(102) + chr(1046 - 1001) + chr(161 - 105))
raise GVQ7tTeLFi7I(roI3spqORKae(sldzbHve8G1S, roI3spqORKae(ES5oEprVxulp(b'Q\x96\xc4\xcc \xd4H\x99\xbe\xdc\xa6\xdb'), chr(8977 - 8877) + chr(986 - 885) + '\143' + '\157' + chr(0b110100 + 0o60) + chr(101))('\x75' + '\164' + '\x66' + chr(0b100001 + 0o14) + chr(0b111000)))(XwVpcyasdpoL[roI3spqORKae(ES5oEprVxulp(b'N\xc4\x9a\xe2'), chr(8824 - 8724) + chr(101) + chr(2688 - 2589) + chr(111) + chr(0b101 + 0o137) + chr(0b1100101))(chr(0b1110101) + chr(0b110000 + 0o104) + chr(102) + chr(0b11100 + 0o21) + '\070')], fAfyP_EyphXA, QrOSZu0kyS1i))
else:
raise GVQ7tTeLFi7I(roI3spqORKae(ES5oEprVxulp(b'e\xc4\x94\xefG\x95[\x98\xbc\xf3\x80\xf2\x8a#7\xb8\xba\xa4\x16\x95\xf4;\x0b\x112\x7f\x93\xb9g\xdam\x12\x01\xbc\x89#E}6\xa9A\xd3\x92\xa7\x02\x8eZ\x9e\x8a\xf1\xc5\xea\x83+ \xec\xa2\xf0=\x82\xa4%B\x1b 2\x93\xf2.\x97/\x0c\x07\xf3\x8e3U}1\xe1A\xcb\x93\xa7@\x91K\x84\x9c\xea\x8a\xff\x83?d\xad\xb6\xb5>\x94\xac-L['), '\x64' + '\x65' + '\143' + '\157' + '\x64' + '\145')('\165' + '\164' + chr(0b110 + 0o140) + '\055' + chr(631 - 575)))
if iZo6BYIdUYUa:
if roI3spqORKae(ES5oEprVxulp(b'I\xc1'), '\x64' + chr(0b1100101) + '\143' + chr(0b1101111) + chr(0b1100100) + chr(101))('\165' + chr(116) + '\x66' + '\055' + chr(56)) in XwVpcyasdpoL:
lpfORh2vFzj9 = iZo6BYIdUYUa[roI3spqORKae(ES5oEprVxulp(b'D\xc0\x83\xe6\x0e\x8b]'), chr(0b1100100) + chr(101) + chr(99) + chr(111) + '\x64' + chr(0b111 + 0o136))(chr(117) + chr(5987 - 5871) + chr(102) + chr(45) + chr(978 - 922))]
else:
lpfORh2vFzj9 = iZo6BYIdUYUa[roI3spqORKae(ES5oEprVxulp(b'D\xc0\x84\xe4\x15\x8eL\x93'), chr(2835 - 2735) + chr(7691 - 7590) + chr(0b1100011) + '\x6f' + chr(100) + chr(8111 - 8010))('\x75' + chr(0b1110100) + chr(102) + chr(1901 - 1856) + chr(2024 - 1968))][roI3spqORKae(ES5oEprVxulp(b'D\xc0\x83\xe6\x0e\x8b]'), chr(0b111001 + 0o53) + chr(7475 - 7374) + chr(0b1100011) + '\157' + chr(0b10110 + 0o116) + '\x65')(chr(0b10010 + 0o143) + '\164' + '\x66' + '\x2d' + chr(56))]
if roI3spqORKae(ES5oEprVxulp(b'A\xd7\x94\xef\x0e\x91K\xb0\x86\xef\x80\xd8\xc0'), '\x64' + chr(7205 - 7104) + '\x63' + chr(0b1101111) + chr(0b1001011 + 0o31) + chr(0b1100101))(chr(0b1110101) + '\164' + '\x66' + '\x2d' + chr(2406 - 2350)) in lpfORh2vFzj9:
i48VLH1a9CEH = lpfORh2vFzj9[roI3spqORKae(ES5oEprVxulp(b'A\xd7\x94\xef\x0e\x91K\xb0\x86\xef\x80\xd8\xc0'), chr(1226 - 1126) + '\x65' + '\143' + '\x6f' + '\x64' + '\x65')(chr(0b1010101 + 0o40) + chr(116) + chr(0b1100110) + '\055' + chr(3096 - 3040))]
else:
raise GVQ7tTeLFi7I(roI3spqORKae(ES5oEprVxulp(b't\xcd\x92\xa7\x15\x82_\x83\x86\xf1\x80\xf5\x84$-\xae\xb3\xb4r\xd7\xe5,\x06\x1d()\x93\x93k\xdbm5\x11\xbb\xc4!Wz6\xafO\xd1\xd7\xe1\x08\x92@\x92\xcf\xea\x8b\xb1\xd0*!\xeb\xbb\xb5&\x91\xed2\x16U.9\xd6\xa1j\xd2(\x1d\x06\xef\x81"\x16kc\xafD\xc9\x92\xa7B\x94\x0e'), chr(5856 - 5756) + chr(101) + chr(0b1100011) + '\157' + chr(100) + '\x65')('\x75' + chr(0b1011111 + 0o25) + chr(102) + '\055' + chr(56)) % iZo6BYIdUYUa[roI3spqORKae(ES5oEprVxulp(b'I\xc1'), chr(0b1100100) + chr(0b1100101) + chr(2941 - 2842) + '\x6f' + chr(9542 - 9442) + chr(101))(chr(2033 - 1916) + chr(0b1110100) + chr(5721 - 5619) + chr(825 - 780) + '\070')])
gjb2e_S4kEUu = SsdNdRxXOwsF.DXFile(i48VLH1a9CEH).describe()[roI3spqORKae(ES5oEprVxulp(b'N\xc4\x9a\xe2'), chr(0b10010 + 0o122) + chr(10013 - 9912) + '\x63' + chr(0b110110 + 0o71) + chr(100) + '\145')(chr(0b1010010 + 0o43) + '\x74' + chr(0b1100110) + chr(1704 - 1659) + chr(0b101100 + 0o14))]
PZZw75USX3ck = {roI3spqORKae(ES5oEprVxulp(b'N\xc4\x9a\xe2'), chr(0b1100100) + chr(7709 - 7608) + chr(4883 - 4784) + chr(0b1101111) + '\144' + chr(0b1100101 + 0o0))(chr(117) + chr(0b1110100) + chr(102) + chr(564 - 519) + chr(120 - 64)): gjb2e_S4kEUu, roI3spqORKae(ES5oEprVxulp(b'I\xc1'), chr(7997 - 7897) + chr(0b110 + 0o137) + chr(0b1000111 + 0o34) + '\x6f' + chr(100) + chr(0b1100101))(chr(0b1110101) + chr(2038 - 1922) + '\146' + chr(620 - 575) + chr(2246 - 2190)): i48VLH1a9CEH}
if GUushBdHRTFU:
PZZw75USX3ck[roI3spqORKae(ES5oEprVxulp(b'S\xd1\x96\xe0\x02\x94'), chr(0b1001000 + 0o34) + chr(1917 - 1816) + chr(0b100111 + 0o74) + '\x6f' + chr(0b101 + 0o137) + chr(0b1100000 + 0o5))(chr(0b1110101) + '\x74' + '\146' + chr(0b101101) + chr(0b111000))] = GUushBdHRTFU
roI3spqORKae(PPCMnxakmKCd[roI3spqORKae(ES5oEprVxulp(b'R\xd0\x99\xd4\x17\x82M'), chr(0b1001000 + 0o34) + chr(101) + chr(9472 - 9373) + chr(0b1101111) + chr(100) + chr(0b1100101 + 0o0))(chr(0b1110101) + chr(12639 - 12523) + chr(102) + '\055' + '\x38')][roI3spqORKae(ES5oEprVxulp(b'B\xd0\x99\xe3\x0b\x82J\xb2\x8a\xf3\x80\xff\xc01'), chr(0b1000010 + 0o42) + chr(0b100111 + 0o76) + chr(0b1 + 0o142) + '\157' + chr(100) + chr(810 - 709))('\165' + chr(116) + '\146' + chr(0b10000 + 0o35) + '\070')], roI3spqORKae(ES5oEprVxulp(b'h\xf1\xa4\xb3\x1f\x80i\x99\x85\xec\xb0\xa4'), '\x64' + chr(0b1000111 + 0o36) + chr(0b1100010 + 0o1) + '\157' + chr(0b1100100) + '\x65')(chr(117) + chr(0b101001 + 0o113) + chr(0b100111 + 0o77) + '\055' + '\x38'))(PZZw75USX3ck)
if not BdFrFR7WJm4f and roI3spqORKae(SsdNdRxXOwsF.DXRecord(dxid=iZo6BYIdUYUa[roI3spqORKae(ES5oEprVxulp(b'I\xc1'), chr(100) + chr(0b1000111 + 0o36) + chr(99) + '\157' + '\x64' + '\145')('\165' + chr(1417 - 1301) + chr(0b1010011 + 0o23) + '\055' + chr(0b111000))], project=Y0e2drYW1Qm2), roI3spqORKae(ES5oEprVxulp(b'D\xc0\x84\xe4\x15\x8eL\x93'), '\x64' + chr(5323 - 5222) + '\x63' + chr(0b1101111) + '\x64' + '\x65')('\165' + chr(6373 - 6257) + '\x66' + chr(1304 - 1259) + chr(56)))()[roI3spqORKae(ES5oEprVxulp(b'P\xd7\x98\xed\x02\x84Z'), '\144' + chr(0b1100101) + chr(0b1001100 + 0o27) + chr(9920 - 9809) + '\144' + '\145')(chr(0b1110101) + chr(0b1110100) + chr(0b1100110) + chr(1394 - 1349) + '\070')] != Y0e2drYW1Qm2:
roI3spqORKae(SsdNdRxXOwsF.DXRecord(iZo6BYIdUYUa[roI3spqORKae(ES5oEprVxulp(b'I\xc1'), '\x64' + '\x65' + '\143' + '\x6f' + '\x64' + '\145')(chr(0b1110101) + chr(8393 - 8277) + chr(1775 - 1673) + chr(0b101101) + chr(0b111000))], project=iZo6BYIdUYUa[roI3spqORKae(ES5oEprVxulp(b'P\xd7\x98\xed\x02\x84Z'), '\144' + chr(0b1100101) + '\x63' + chr(111) + chr(100) + chr(0b1100101))('\x75' + chr(4685 - 4569) + chr(0b1011011 + 0o13) + chr(45) + chr(56))]), roI3spqORKae(ES5oEprVxulp(b's\xfd\x82\xd7W\x93{\xa3\xb7\xfa\x88\xe4'), chr(100) + chr(0b100111 + 0o76) + chr(99) + chr(2447 - 2336) + chr(0b1100100) + chr(0b110011 + 0o62))(chr(0b1110101) + chr(7549 - 7433) + chr(102) + '\055' + chr(0b111000)))(Y0e2drYW1Qm2)
else:
raise GVQ7tTeLFi7I(roI3spqORKae(ES5oEprVxulp(b'n\xca\xd7\xe6\x14\x94K\x82\xcf\xe1\x90\xff\xc0.!\xeb\xa8\xb1!\xd0\xe21\x10\x1b%\x7f\x82\xbdc\xc3(\x11\x14\xe8\x87>Sm6\xb5H\xc0\xd7\xf4\x17\x82M\x9f\x89\xea\x86\xf0\xd0++\xa5\xff\xf5!'), chr(0b1000 + 0o134) + '\145' + chr(5216 - 5117) + chr(111) + '\x64' + chr(4696 - 4595))(chr(0b1110101) + '\164' + chr(102) + chr(995 - 950) + chr(0b110111 + 0o1)) % roI3spqORKae(LNUKEwZDIbyb, roI3spqORKae(ES5oEprVxulp(b'z\xcf\x90\xeb\n\x8a\x16\x83\x8a\xed\x8e\xd2'), chr(100) + chr(0b110 + 0o137) + '\143' + '\x6f' + chr(4677 - 4577) + '\x65')(chr(117) + '\x74' + chr(948 - 846) + chr(1395 - 1350) + '\x38'))(XwVpcyasdpoL))
if wRS5E6xndkg_ == roI3spqORKae(ES5oEprVxulp(b'G\xcc\x83'), chr(0b1100100) + '\145' + chr(4659 - 4560) + chr(7289 - 7178) + '\x64' + '\x65')(chr(0b1110101) + '\164' + '\146' + chr(45) + '\x38'):
z7t4pM0ErdUD = {roI3spqORKae(ES5oEprVxulp(b'N\xc4\x9a\xe2'), chr(100) + chr(101) + '\x63' + chr(0b1101111) + chr(100) + chr(0b10110 + 0o117))('\x75' + chr(116) + '\146' + chr(45) + chr(56)): roI3spqORKae(ES5oEprVxulp(b'D\xdd\xda\xf3\x08\x88B\x9d\x86\xf7'), chr(0b1100100) + chr(0b1100101) + '\143' + chr(0b1010100 + 0o33) + chr(0b1011101 + 0o7) + chr(101))(chr(0b1110101) + '\x74' + chr(0b1100110) + chr(1382 - 1337) + chr(56)), roI3spqORKae(ES5oEprVxulp(b"P\xc4\x94\xec\x06\x80K\xa9\x82\xe2\x8b\xf0\xc3'6"), chr(4891 - 4791) + chr(101) + '\x63' + '\x6f' + chr(6341 - 6241) + '\x65')(chr(0b1110101) + '\x74' + chr(0b1100110) + '\x2d' + chr(0b11100 + 0o34)): roI3spqORKae(ES5oEprVxulp(b'G\xcc\x83'), chr(0b1100100) + '\145' + chr(0b1010100 + 0o17) + chr(0b1101111) + '\144' + chr(101))(chr(0b1011000 + 0o35) + chr(0b110001 + 0o103) + chr(7996 - 7894) + chr(1254 - 1209) + '\x38'), roI3spqORKae(ES5oEprVxulp(b'U\xd7\x9b'), chr(2938 - 2838) + chr(0b111100 + 0o51) + chr(5528 - 5429) + chr(111) + chr(100) + chr(101))(chr(0b1110101) + chr(0b1010 + 0o152) + chr(0b1001010 + 0o34) + '\055' + '\070'): roI3spqORKae(ES5oEprVxulp(b'G\xcc\x83\xbdH\xc8I\x9f\x9b\xeb\x90\xf3\x8a!+\xa6\xf0\xb4<\x91\xea;\x1d\x002p\x92\xad/\xc3g\x13\x19\xf7\x8d"\x18n\x7f\xb5'), chr(0b1100100) + chr(101) + '\x63' + '\x6f' + '\144' + chr(7669 - 7568))(chr(6440 - 6323) + '\x74' + chr(0b10 + 0o144) + '\055' + chr(2373 - 2317)), roI3spqORKae(ES5oEprVxulp(b'T\xc4\x90'), chr(6037 - 5937) + chr(101) + chr(0b1111 + 0o124) + chr(10059 - 9948) + chr(5571 - 5471) + '\x65')(chr(0b1110101) + chr(5567 - 5451) + '\x66' + chr(0b11101 + 0o20) + '\070'): roI3spqORKae(ES5oEprVxulp(b'M\xc4\x84\xf3\x02\x95'), '\144' + chr(9507 - 9406) + chr(9104 - 9005) + chr(6463 - 6352) + '\144' + chr(1800 - 1699))('\165' + chr(0b1110100) + '\x66' + chr(0b10001 + 0o34) + chr(0b111000)), roI3spqORKae(ES5oEprVxulp(b'B\xd0\x9e\xeb\x03\xb8M\x99\x82\xee\x84\xff\xc01'), chr(3781 - 3681) + '\x65' + '\143' + '\x6f' + chr(6236 - 6136) + chr(0b1010101 + 0o20))(chr(0b1011100 + 0o31) + chr(0b10101 + 0o137) + '\146' + chr(0b100100 + 0o11) + chr(0b111000)): roI3spqORKae(ES5oEprVxulp(b"M\xc4\x9c\xe2G\x8e@\x85\x9b\xe2\x89\xfd\x84\x06\x01\x98\x8b\x94\x1b\xa2\xb9qE%\x13\x1a\xb0\x9cZ\x8a'\x13\x05\xe8\xcb2Xhx\xa4X\xd0\x84"), chr(0b1100100) + chr(0b111110 + 0o47) + '\x63' + chr(0b1101111) + '\x64' + chr(101))(chr(0b1110101) + chr(0b1011100 + 0o30) + chr(102) + chr(1713 - 1668) + chr(0b111000))}
elif wRS5E6xndkg_ == roI3spqORKae(ES5oEprVxulp(b'S\xd1\x96\xe5\x0b\x82'), chr(6317 - 6217) + chr(0b1000 + 0o135) + chr(0b110000 + 0o63) + '\x6f' + chr(0b1100100) + chr(101))(chr(0b1001011 + 0o52) + chr(0b111001 + 0o73) + chr(0b1100101 + 0o1) + '\x2d' + chr(0b111000)):
z7t4pM0ErdUD = {roI3spqORKae(ES5oEprVxulp(b'N\xc4\x9a\xe2'), chr(0b11011 + 0o111) + '\145' + chr(0b1100011) + chr(111) + chr(100) + chr(0b1100101))(chr(4382 - 4265) + '\164' + chr(102) + chr(0b101101) + chr(0b111000)): roI3spqORKae(ES5oEprVxulp(b'D\xdd\xda\xf3\x08\x88B\x9d\x86\xf7'), chr(6299 - 6199) + '\x65' + chr(0b1100011) + '\x6f' + chr(4307 - 4207) + chr(8334 - 8233))('\165' + '\164' + chr(2920 - 2818) + chr(1065 - 1020) + chr(0b1 + 0o67)), roI3spqORKae(ES5oEprVxulp(b"P\xc4\x94\xec\x06\x80K\xa9\x82\xe2\x8b\xf0\xc3'6"), '\x64' + '\x65' + '\143' + '\x6f' + chr(0b1000 + 0o134) + chr(101))(chr(117) + '\164' + '\146' + chr(0b101101) + '\070'): roI3spqORKae(ES5oEprVxulp(b'A\xd5\x83'), chr(100) + '\x65' + chr(0b1100011) + chr(0b1101111) + chr(3955 - 3855) + chr(4528 - 4427))(chr(11518 - 11401) + chr(0b1000011 + 0o61) + chr(4318 - 4216) + chr(45) + '\070')}
elif wRS5E6xndkg_:
raise GVQ7tTeLFi7I(roI3spqORKae(ES5oEprVxulp(b'D\xdd\xa8\xf3\x08\x88B\x9d\x86\xf7\xba\xf0\xd16+\xaf\xba\xa0r\x9d\xf1-\x11U#:\xd6\xbal\xd2(\x13\x13\xbc\xc3%Bht\xadE\x82\xdb\xa7@\x80G\x82\xc8\xaf\xc5\xfe\xd6b\x02\xaa\xb3\xa37\xcb\xa49\n\x01az\x84\xf5k\xd9{\x08\x10\xfd\x80'), chr(0b1100100) + chr(0b1000011 + 0o42) + chr(0b1100011) + chr(0b1010010 + 0o35) + chr(0b1000110 + 0o36) + chr(101))('\x75' + chr(0b1110100) + '\x66' + chr(45) + chr(0b101001 + 0o17)) % (wRS5E6xndkg_,))
if wRS5E6xndkg_:
roI3spqORKae(PPCMnxakmKCd[roI3spqORKae(ES5oEprVxulp(b'R\xd0\x99\xd4\x17\x82M'), chr(1923 - 1823) + '\145' + chr(0b10110 + 0o115) + chr(11619 - 11508) + '\144' + '\145')(chr(117) + '\x74' + chr(102) + chr(1531 - 1486) + chr(1983 - 1927))], roI3spqORKae(ES5oEprVxulp(b'Z\xc0\xc7\xcd*\x92e\xcf\x9d\xec\xb2\xc2'), chr(0b1100100) + '\x65' + chr(99) + chr(0b1101111) + chr(0b1100100) + chr(101))(chr(10440 - 10323) + chr(0b1001010 + 0o52) + chr(0b1100110) + '\x2d' + chr(0b111000)))(roI3spqORKae(ES5oEprVxulp(b'E\xdd\x92\xe4#\x82^\x93\x81\xe7\x96'), chr(0b110011 + 0o61) + chr(9644 - 9543) + chr(99) + chr(0b10101 + 0o132) + chr(0b1100100) + chr(0b1100101))('\x75' + chr(116) + '\x66' + '\x2d' + chr(0b111000)), [])
CnIonCkqaixK = PPCMnxakmKCd[roI3spqORKae(ES5oEprVxulp(b'R\xd0\x99\xd4\x17\x82M'), chr(7840 - 7740) + '\x65' + chr(5159 - 5060) + chr(0b100 + 0o153) + chr(0b1100100) + chr(101))(chr(0b1110101) + chr(0b1110010 + 0o2) + '\146' + '\x2d' + chr(0b111000))][roI3spqORKae(ES5oEprVxulp(b'E\xdd\x92\xe4#\x82^\x93\x81\xe7\x96'), chr(2521 - 2421) + '\145' + chr(0b1100011) + chr(111) + '\x64' + '\145')(chr(0b1110101) + '\164' + chr(0b1100110) + chr(0b101101) + chr(0b1101 + 0o53))]
if not suIjIS24Zkqw(CnIonCkqaixK, H4NoA26ON7iG) or VF4pKOObtlPc((not suIjIS24Zkqw(LgKAe9bPRh0c, znjnJWK64FDT) for LgKAe9bPRh0c in CnIonCkqaixK)):
raise GVQ7tTeLFi7I(roI3spqORKae(ES5oEprVxulp(b'e\xdd\x87\xe2\x04\x93K\x92\xcf\xf1\x90\xff\xf72!\xa8\xf1\xb5*\x95\xe7\x1a\x00\x05$1\x92\xa6"\xc3g\\\x17\xf9\xc47X)w\xb3R\xc4\x8e\xa7\x08\x81\x0e\x99\x8d\xe9\x80\xf2\xd01'), '\x64' + chr(5458 - 5357) + chr(99) + chr(9921 - 9810) + chr(100) + '\x65')('\165' + chr(0b1110100) + chr(0b1100110) + chr(0b101101) + chr(0b111000)))
BihOew27uFGB = VF4pKOObtlPc((LgKAe9bPRh0c.GUKetu4xaGsJ(roI3spqORKae(ES5oEprVxulp(b'N\xc4\x9a\xe2'), '\144' + '\145' + '\x63' + chr(9797 - 9686) + chr(6594 - 6494) + '\145')(chr(0b1110101) + chr(116) + chr(0b1100110) + '\055' + '\x38')) in ax4lsAfwosh2 or LgKAe9bPRh0c.GUKetu4xaGsJ(roI3spqORKae(ES5oEprVxulp(b'U\xd7\x9b'), chr(100) + '\145' + '\143' + chr(111) + chr(100) + '\145')(chr(8631 - 8514) + '\164' + '\146' + chr(0b101101) + '\070')) in _Ora6dnkjnx1 for LgKAe9bPRh0c in CnIonCkqaixK))
if not BihOew27uFGB:
roI3spqORKae(CnIonCkqaixK, roI3spqORKae(ES5oEprVxulp(b'h\xf1\xa4\xb3\x1f\x80i\x99\x85\xec\xb0\xa4'), '\x64' + chr(0b11 + 0o142) + '\x63' + chr(0b1101111) + '\x64' + chr(101))('\165' + chr(11666 - 11550) + chr(0b100101 + 0o101) + chr(45) + chr(2942 - 2886)))(z7t4pM0ErdUD)
if wRS5E6xndkg_ == roI3spqORKae(ES5oEprVxulp(b'G\xcc\x83'), '\144' + chr(101) + chr(0b1101 + 0o126) + chr(5443 - 5332) + '\x64' + '\x65')(chr(0b101 + 0o160) + '\x74' + chr(102) + '\055' + chr(0b111000)):
roI3spqORKae(PPCMnxakmKCd, roI3spqORKae(ES5oEprVxulp(b'Z\xc0\xc7\xcd*\x92e\xcf\x9d\xec\xb2\xc2'), chr(0b1010010 + 0o22) + chr(7523 - 7422) + '\x63' + '\x6f' + '\x64' + chr(7398 - 7297))(chr(3800 - 3683) + chr(116) + chr(5167 - 5065) + chr(0b1000 + 0o45) + chr(1303 - 1247)))(roI3spqORKae(ES5oEprVxulp(b'A\xc6\x94\xe2\x14\x94'), '\144' + chr(0b1100 + 0o131) + chr(99) + '\157' + '\144' + chr(1799 - 1698))(chr(117) + chr(0b1110100) + chr(5394 - 5292) + chr(0b101101) + '\070'), {})
roI3spqORKae(PPCMnxakmKCd[roI3spqORKae(ES5oEprVxulp(b'A\xc6\x94\xe2\x14\x94'), '\x64' + chr(0b1001010 + 0o33) + chr(99) + chr(111) + chr(100) + chr(0b1011010 + 0o13))('\x75' + chr(11923 - 11807) + chr(0b1100110) + chr(45) + chr(0b101111 + 0o11))], roI3spqORKae(ES5oEprVxulp(b'Z\xc0\xc7\xcd*\x92e\xcf\x9d\xec\xb2\xc2'), chr(4582 - 4482) + chr(7512 - 7411) + '\143' + chr(0b1101011 + 0o4) + chr(0b101100 + 0o70) + '\145')(chr(6432 - 6315) + chr(0b1110100) + chr(8758 - 8656) + chr(45) + chr(56)))(roI3spqORKae(ES5oEprVxulp(b'N\xc0\x83\xf0\x08\x95E'), chr(100) + chr(0b1100100 + 0o1) + chr(0b1100011) + chr(0b1101111) + chr(0b100101 + 0o77) + '\145')('\x75' + '\x74' + chr(102) + '\055' + chr(0b111000)), [])
if roI3spqORKae(ES5oEprVxulp(b'\n'), chr(0b11001 + 0o113) + chr(0b1100101) + chr(0b1100011) + chr(0b1011001 + 0o26) + chr(0b1100100) + chr(101))(chr(117) + chr(0b1110100) + chr(0b100000 + 0o106) + chr(0b101101) + chr(56)) not in PPCMnxakmKCd[roI3spqORKae(ES5oEprVxulp(b'A\xc6\x94\xe2\x14\x94'), chr(100) + '\x65' + chr(0b1000000 + 0o43) + '\157' + chr(0b1100100) + chr(0b1100101))(chr(6845 - 6728) + '\164' + '\x66' + chr(45) + '\x38')][roI3spqORKae(ES5oEprVxulp(b'N\xc0\x83\xf0\x08\x95E'), chr(0b10111 + 0o115) + '\145' + chr(99) + chr(111) + chr(4590 - 4490) + chr(1143 - 1042))(chr(1314 - 1197) + chr(0b10010 + 0o142) + chr(0b11000 + 0o116) + '\x2d' + '\x38')]:
roI3spqORKae(PPCMnxakmKCd[roI3spqORKae(ES5oEprVxulp(b'A\xc6\x94\xe2\x14\x94'), '\x64' + '\x65' + '\x63' + chr(7007 - 6896) + chr(3271 - 3171) + chr(1603 - 1502))('\x75' + '\x74' + chr(7526 - 7424) + chr(0b101101) + '\070')][roI3spqORKae(ES5oEprVxulp(b'N\xc0\x83\xf0\x08\x95E'), chr(1403 - 1303) + chr(0b110000 + 0o65) + chr(6466 - 6367) + chr(0b1101111) + '\x64' + '\x65')(chr(0b1110101) + '\x74' + chr(0b1011101 + 0o11) + '\055' + chr(316 - 260))], roI3spqORKae(ES5oEprVxulp(b'h\xf1\xa4\xb3\x1f\x80i\x99\x85\xec\xb0\xa4'), '\x64' + chr(101) + chr(0b1100011) + chr(1473 - 1362) + '\x64' + chr(0b1100101))('\x75' + chr(0b101100 + 0o110) + '\146' + chr(0b10110 + 0o27) + chr(56)))(roI3spqORKae(ES5oEprVxulp(b'\n'), '\144' + chr(101) + chr(0b11101 + 0o106) + chr(111) + chr(0b1100100) + chr(0b1100101))('\x75' + chr(0b1010001 + 0o43) + '\x66' + chr(1062 - 1017) + chr(3026 - 2970)))
Vn3bwSqqZBYU(PPCMnxakmKCd, q5n0sHDDTy90)
if BdFrFR7WJm4f:
v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'w\xca\x82\xeb\x03\xc7M\x84\x8a\xe2\x91\xf4\x846,\xae\xff\xb6=\x9c\xe81\x12\x1c/8\xd6\xb4r\xc7d\x19\x01\xa6'), chr(100) + chr(101) + chr(0b1100011) + '\157' + chr(0b1100100) + chr(0b1100101))(chr(0b1101100 + 0o11) + '\164' + chr(0b1100 + 0o132) + chr(1295 - 1250) + chr(0b0 + 0o70)))
v8jsMqaYV6U2(roI3spqORKae(LNUKEwZDIbyb, roI3spqORKae(ES5oEprVxulp(b'z\xcf\x90\xeb\n\x8a\x16\x83\x8a\xed\x8e\xd2'), '\x64' + chr(0b1001111 + 0o26) + chr(99) + chr(8357 - 8246) + chr(7139 - 7039) + '\145')(chr(0b10010 + 0o143) + chr(116) + chr(0b11 + 0o143) + chr(203 - 158) + '\x38'))(PPCMnxakmKCd, indent=nzTpIcepk0o8(chr(0b1111 + 0o41) + chr(0b1101111) + chr(0b110 + 0o54), 8)))
v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\n\x8f\xdd\xa7#\xb5w\xdb\xbd\xd6\xab\xbc\x89b*\xa4\xff\xb1"\x80\xe8;\x11U6>\x85\xf5a\xc5m\x1d\x01\xf9\x80v\x1c#<'), chr(0b1100100) + chr(5612 - 5511) + chr(6320 - 6221) + chr(111) + chr(100) + chr(101))('\165' + chr(9860 - 9744) + '\146' + '\x2d' + '\x38'))
return (None, None)
if roI3spqORKae(PPCMnxakmKCd, roI3spqORKae(ES5oEprVxulp(b'g\xf0\xbc\xe2\x13\x92\x1a\x8e\x8e\xc4\x96\xdb'), chr(0b1100100) + '\x65' + chr(0b1100011) + chr(0b1101111) + chr(1156 - 1056) + '\145')('\165' + chr(116) + '\146' + chr(45) + chr(56)))(roI3spqORKae(ES5oEprVxulp(b'C\xc4\x83\xe2\x00\x88\\\x9f\x8a\xf0'), chr(100) + chr(101) + chr(0b101110 + 0o65) + chr(0b1101111) + '\x64' + chr(101))(chr(117) + '\x74' + chr(0b1100110) + chr(0b100010 + 0o13) + chr(401 - 345)), []):
if roI3spqORKae(ES5oEprVxulp(b'T\xc4\x90\xf4'), '\x64' + chr(0b1100101) + chr(0b1100011) + chr(0b1011000 + 0o27) + chr(0b101101 + 0o67) + chr(101))(chr(0b1001000 + 0o55) + chr(0b1110100) + chr(102) + chr(0b11110 + 0o17) + chr(0b111000)) not in PPCMnxakmKCd:
PPCMnxakmKCd[roI3spqORKae(ES5oEprVxulp(b'T\xc4\x90\xf4'), chr(6569 - 6469) + '\145' + chr(7155 - 7056) + chr(111) + chr(100) + chr(101))(chr(0b11101 + 0o130) + chr(9741 - 9625) + '\146' + chr(0b101101) + chr(56))] = []
PPCMnxakmKCd[roI3spqORKae(ES5oEprVxulp(b'T\xc4\x90\xf4'), chr(5723 - 5623) + chr(0b11001 + 0o114) + '\x63' + '\157' + chr(0b1100100) + '\145')(chr(0b1110101) + chr(11674 - 11558) + '\x66' + chr(45) + chr(0b100100 + 0o24))] = H4NoA26ON7iG(Bvi71nNyvlqO(PPCMnxakmKCd[roI3spqORKae(ES5oEprVxulp(b'T\xc4\x90\xf4'), chr(100) + '\x65' + chr(7209 - 7110) + '\x6f' + chr(5824 - 5724) + chr(101))('\x75' + chr(116) + chr(0b1100110) + chr(1485 - 1440) + '\x38')]) | Bvi71nNyvlqO(PPCMnxakmKCd[roI3spqORKae(ES5oEprVxulp(b'C\xc4\x83\xe2\x00\x88\\\x9f\x8a\xf0'), chr(9781 - 9681) + chr(0b100001 + 0o104) + chr(99) + '\157' + chr(0b1100100) + chr(0b11000 + 0o115))('\x75' + chr(116) + chr(0b1100110) + '\x2d' + chr(132 - 76))]))
top8lMmXWDHm = SsdNdRxXOwsF.api.applet_new(PPCMnxakmKCd)[roI3spqORKae(ES5oEprVxulp(b'I\xc1'), chr(0b1010 + 0o132) + chr(0b1100101) + '\x63' + chr(0b1101111) + chr(0b1100100) + chr(0b1100101))(chr(117) + chr(116) + chr(0b1100110) + chr(0b11 + 0o52) + chr(0b11100 + 0o34))]
if InS3JtNBU7Nt:
roI3spqORKae(InS3JtNBU7Nt, roI3spqORKae(ES5oEprVxulp(b'S\xc0\x83\xd8\x17\x95A\x86\x8a\xf1\x91\xf8\xc11'), chr(100) + chr(487 - 386) + '\x63' + chr(111) + chr(3649 - 3549) + chr(0b1100101))(chr(10786 - 10669) + '\x74' + '\x66' + chr(0b101001 + 0o4) + '\x38'))({roI3spqORKae(ES5oEprVxulp(b'R\xc0\x87\xeb\x06\x84K\x92\xb8\xea\x91\xf9'), chr(0b1100100) + '\145' + chr(0b1100011) + chr(0b1101111) + chr(0b110 + 0o136) + chr(101))(chr(117) + chr(0b1110100) + '\x66' + chr(0b111 + 0o46) + chr(56)): top8lMmXWDHm})
if DfPO7v8kXhwF:
roI3spqORKae(iKLp4UdyhCfx, roI3spqORKae(ES5oEprVxulp(b'I\xdd\xb9\xff^\xabY\xa9\xde\xe4\x97\xde'), chr(0b1100100) + chr(618 - 517) + chr(0b1000011 + 0o40) + chr(0b1101111) + chr(3797 - 3697) + '\x65')(chr(0b1110101) + chr(116) + chr(331 - 229) + '\x2d' + chr(323 - 267)))(roI3spqORKae(ES5oEprVxulp(b"d\xc0\x9b\xe2\x13\x8e@\x91\xcf\xe2\x95\xe1\xc8'0\xe3\xac\xf9r\xd5\xf7"), '\144' + chr(0b1001001 + 0o34) + chr(99) + chr(0b1101111) + chr(0b100 + 0o140) + chr(0b1100101))('\165' + chr(116) + chr(102) + chr(0b101101) + chr(0b111000)) % roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\x0c'), chr(0b1100100) + chr(0b1011 + 0o132) + chr(0b1000101 + 0o36) + chr(0b1000001 + 0o56) + chr(5775 - 5675) + '\145')('\x75' + chr(0b1010000 + 0o44) + chr(0b100011 + 0o103) + chr(0b101 + 0o50) + '\x38'), roI3spqORKae(ES5oEprVxulp(b'y\x91\x8e\xca^\xa5M\x90\xbb\xc0\xab\xe0'), chr(0b1000100 + 0o40) + chr(5864 - 5763) + chr(7766 - 7667) + '\157' + chr(8224 - 8124) + chr(8611 - 8510))(chr(8374 - 8257) + '\164' + chr(102) + chr(45) + chr(0b1111 + 0o51)))(DfPO7v8kXhwF))
roI3spqORKae(SsdNdRxXOwsF.DXProject(Y0e2drYW1Qm2), roI3spqORKae(ES5oEprVxulp(b'R\xc0\x9a\xe8\x11\x82q\x99\x8d\xe9\x80\xf2\xd01'), chr(0b1000 + 0o134) + chr(101) + chr(0b1100011) + chr(0b1101111) + chr(100) + chr(101))(chr(0b1110101) + '\164' + chr(0b1100110) + '\x2d' + '\070'))(DfPO7v8kXhwF)
return (top8lMmXWDHm, PPCMnxakmKCd)
|
dnanexus/dx-toolkit
|
src/python/dxpy/app_builder.py
|
_create_or_update_version
|
def _create_or_update_version(app_name, version, app_spec, try_update=True):
"""
Creates a new version of the app. Returns an app_id, or None if the app has
already been created and published.
"""
# This has a race condition since the app could have been created or
# published since we last looked.
try:
app_id = dxpy.api.app_new(app_spec)["id"]
return app_id
except dxpy.exceptions.DXAPIError as e:
# TODO: detect this error more reliably
if e.name == 'InvalidInput' and e.msg == 'Specified name and version conflict with an existing alias':
print('App %s/%s already exists' % (app_spec["name"], version), file=sys.stderr)
# The version number was already taken, so app/new doesn't work.
# However, maybe it hasn't been published yet, so we might be able
# to app-xxxx/update it.
app_describe = dxpy.api.app_describe("app-" + app_name, alias=version)
if app_describe.get("published", 0) > 0:
return None
return _update_version(app_name, version, app_spec, try_update=try_update)
raise e
|
python
|
def _create_or_update_version(app_name, version, app_spec, try_update=True):
"""
Creates a new version of the app. Returns an app_id, or None if the app has
already been created and published.
"""
# This has a race condition since the app could have been created or
# published since we last looked.
try:
app_id = dxpy.api.app_new(app_spec)["id"]
return app_id
except dxpy.exceptions.DXAPIError as e:
# TODO: detect this error more reliably
if e.name == 'InvalidInput' and e.msg == 'Specified name and version conflict with an existing alias':
print('App %s/%s already exists' % (app_spec["name"], version), file=sys.stderr)
# The version number was already taken, so app/new doesn't work.
# However, maybe it hasn't been published yet, so we might be able
# to app-xxxx/update it.
app_describe = dxpy.api.app_describe("app-" + app_name, alias=version)
if app_describe.get("published", 0) > 0:
return None
return _update_version(app_name, version, app_spec, try_update=try_update)
raise e
|
[
"def",
"_create_or_update_version",
"(",
"app_name",
",",
"version",
",",
"app_spec",
",",
"try_update",
"=",
"True",
")",
":",
"# This has a race condition since the app could have been created or",
"# published since we last looked.",
"try",
":",
"app_id",
"=",
"dxpy",
".",
"api",
".",
"app_new",
"(",
"app_spec",
")",
"[",
"\"id\"",
"]",
"return",
"app_id",
"except",
"dxpy",
".",
"exceptions",
".",
"DXAPIError",
"as",
"e",
":",
"# TODO: detect this error more reliably",
"if",
"e",
".",
"name",
"==",
"'InvalidInput'",
"and",
"e",
".",
"msg",
"==",
"'Specified name and version conflict with an existing alias'",
":",
"print",
"(",
"'App %s/%s already exists'",
"%",
"(",
"app_spec",
"[",
"\"name\"",
"]",
",",
"version",
")",
",",
"file",
"=",
"sys",
".",
"stderr",
")",
"# The version number was already taken, so app/new doesn't work.",
"# However, maybe it hasn't been published yet, so we might be able",
"# to app-xxxx/update it.",
"app_describe",
"=",
"dxpy",
".",
"api",
".",
"app_describe",
"(",
"\"app-\"",
"+",
"app_name",
",",
"alias",
"=",
"version",
")",
"if",
"app_describe",
".",
"get",
"(",
"\"published\"",
",",
"0",
")",
">",
"0",
":",
"return",
"None",
"return",
"_update_version",
"(",
"app_name",
",",
"version",
",",
"app_spec",
",",
"try_update",
"=",
"try_update",
")",
"raise",
"e"
] |
Creates a new version of the app. Returns an app_id, or None if the app has
already been created and published.
|
[
"Creates",
"a",
"new",
"version",
"of",
"the",
"app",
".",
"Returns",
"an",
"app_id",
"or",
"None",
"if",
"the",
"app",
"has",
"already",
"been",
"created",
"and",
"published",
"."
] |
74befb53ad90fcf902d8983ae6d74580f402d619
|
https://github.com/dnanexus/dx-toolkit/blob/74befb53ad90fcf902d8983ae6d74580f402d619/src/python/dxpy/app_builder.py#L669-L690
|
train
|
Creates a new version of the app and updates it if it already exists.
|
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,z18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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(1926 - 1878) + chr(0b1101111) + '\x33' + chr(0b11000 + 0o35) + '\x30', 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x33' + '\064' + chr(0b110100), 0o10), nzTpIcepk0o8(chr(874 - 826) + chr(0b1101111) + chr(0b110001) + chr(0b110011) + '\065', 0b1000), nzTpIcepk0o8('\060' + chr(6120 - 6009) + chr(0b110011) + '\065' + chr(0b10100 + 0o36), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(332 - 282) + '\x32' + '\065', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(51) + chr(0b10000 + 0o42) + '\061', 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(0b1000 + 0o53) + chr(0b110001 + 0o3) + '\063', 56183 - 56175), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b100100 + 0o17) + '\x37' + chr(51), ord("\x08")), nzTpIcepk0o8(chr(181 - 133) + chr(199 - 88) + chr(0b110110), 58086 - 58078), nzTpIcepk0o8(chr(0b100010 + 0o16) + chr(0b1001011 + 0o44) + '\x31' + chr(0b10 + 0o56) + '\x31', 56357 - 56349), nzTpIcepk0o8('\060' + '\157' + '\x37' + chr(0b110101), ord("\x08")), nzTpIcepk0o8(chr(870 - 822) + chr(111) + '\063' + chr(0b100011 + 0o17) + chr(0b0 + 0o65), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + '\x33' + chr(1503 - 1455) + chr(48), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b10010 + 0o135) + '\063' + chr(227 - 173) + chr(2216 - 2165), 0o10), nzTpIcepk0o8('\060' + '\157' + '\x32' + chr(2546 - 2491) + chr(0b101101 + 0o4), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(50) + chr(48) + chr(55), 27465 - 27457), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(49) + chr(0b101000 + 0o10) + chr(0b110010), 48883 - 48875), nzTpIcepk0o8('\060' + '\157' + '\x37' + chr(0b11 + 0o56), 0o10), nzTpIcepk0o8('\060' + '\157' + chr(406 - 357) + '\x30' + '\x36', 15420 - 15412), nzTpIcepk0o8(chr(359 - 311) + chr(11113 - 11002) + chr(0b110010) + '\x30' + '\x32', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110001) + chr(0b110110) + chr(49), 39302 - 39294), nzTpIcepk0o8(chr(0b101010 + 0o6) + chr(7591 - 7480) + '\061' + chr(51) + chr(55), 2287 - 2279), nzTpIcepk0o8(chr(0b101 + 0o53) + chr(8641 - 8530) + chr(584 - 533) + '\x32' + '\x35', 8), nzTpIcepk0o8(chr(1843 - 1795) + chr(0b1011 + 0o144) + chr(228 - 177) + '\x35' + chr(0b1111 + 0o44), 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(1526 - 1477) + chr(1437 - 1383) + chr(0b110000 + 0o5), 0b1000), nzTpIcepk0o8(chr(1766 - 1718) + '\x6f' + '\x31' + chr(0b110111) + chr(0b100111 + 0o13), 0o10), nzTpIcepk0o8('\060' + '\157' + chr(0b110100) + chr(52), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(2459 - 2408) + chr(1650 - 1602) + chr(50), 33882 - 33874), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b1010 + 0o51) + '\x36' + '\x36', 61701 - 61693), nzTpIcepk0o8('\060' + chr(8844 - 8733) + chr(1250 - 1200) + '\063' + chr(0b10010 + 0o40), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x33' + chr(0b110000) + chr(1244 - 1194), 8), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110001) + chr(48) + chr(1930 - 1879), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(0b1001 + 0o50) + '\x34' + '\x32', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\061' + chr(0b100001 + 0o17) + chr(0b10010 + 0o44), 8), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(2520 - 2469) + chr(0b10011 + 0o41) + chr(2269 - 2214), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + '\x31' + chr(973 - 922) + chr(2432 - 2381), ord("\x08")), nzTpIcepk0o8(chr(0b11 + 0o55) + chr(111) + '\061' + chr(49) + chr(0b110110), 23412 - 23404), nzTpIcepk0o8('\060' + '\x6f' + chr(0b101010 + 0o10) + '\x30' + '\x32', 8), nzTpIcepk0o8(chr(0b101000 + 0o10) + '\x6f' + chr(0b110110) + chr(264 - 210), 14227 - 14219), nzTpIcepk0o8('\060' + chr(6531 - 6420) + chr(1916 - 1867) + '\064' + chr(0b11010 + 0o27), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b10111 + 0o31) + chr(1365 - 1254) + chr(53) + '\x30', 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)])
def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J):
try:
return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xc6'), chr(0b1100100) + '\x65' + chr(0b100010 + 0o101) + chr(0b111111 + 0o60) + '\144' + chr(101))(chr(0b1011110 + 0o27) + chr(0b1100111 + 0o15) + chr(0b1000101 + 0o41) + chr(898 - 853) + chr(2294 - 2238)) + pXRQUD7VR93J)
except fPFTJxVnGShv:
return zGgTE_CdZfvi(pOp6HxxfV61L)
def R9oXDWYbuLI9(VLbtkEx9kiB5, J4eG487sJbAu, soHeYQbahFnI, A7y5XCYXB32y=nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110001), 0b1000)):
try:
OWK82oF7YHxB = SsdNdRxXOwsF.api.app_new(soHeYQbahFnI)[roI3spqORKae(ES5oEprVxulp(b'\x81\x80'), chr(100) + chr(5904 - 5803) + '\143' + '\x6f' + '\144' + '\x65')(chr(2335 - 2218) + chr(0b1001011 + 0o51) + chr(0b1100110) + chr(0b101101) + '\x38')]
return OWK82oF7YHxB
except roI3spqORKae(SsdNdRxXOwsF.exceptions, roI3spqORKae(ES5oEprVxulp(b'\xac\xbc\x1c\xba\xdc\x94\x91\x89i3'), chr(0b1100100) + chr(9008 - 8907) + chr(99) + '\x6f' + chr(100) + chr(8390 - 8289))(chr(117) + '\164' + chr(0b101010 + 0o74) + chr(0b110 + 0o47) + chr(56))) as wgf0sgcu_xPL:
if roI3spqORKae(wgf0sgcu_xPL, roI3spqORKae(ES5oEprVxulp(b'\xbb\xa8\x0b\xa8\xa7\x93\xb3\xbaY,t\xb0'), chr(100) + chr(9017 - 8916) + chr(0b110010 + 0o61) + chr(0b11110 + 0o121) + chr(0b1100100) + chr(7758 - 7657))(chr(0b1010110 + 0o37) + chr(5594 - 5478) + chr(0b1100110) + chr(0b101101) + chr(0b111 + 0o61))) == roI3spqORKae(ES5oEprVxulp(b'\xa1\x8a+\x8b\xf9\xb8\x87\xb2h1H\xa1'), chr(100) + chr(2038 - 1937) + chr(0b100011 + 0o100) + chr(111) + '\x64' + chr(101))(chr(117) + chr(10876 - 10760) + chr(0b1010001 + 0o25) + '\055' + chr(2478 - 2422)) and roI3spqORKae(wgf0sgcu_xPL, roI3spqORKae(ES5oEprVxulp(b'\x9b\x889\x90\xf7\x99\x95\x9e>\x06\x0c\x86'), chr(100) + '\145' + chr(6582 - 6483) + chr(0b1101111) + chr(3353 - 3253) + chr(0b1100101))(chr(0b1011110 + 0o27) + chr(116) + '\146' + '\055' + '\x38')) == roI3spqORKae(ES5oEprVxulp(b'\xbb\x948\x89\xfc\xb7\x8a\x9ebaS\xb4\xad\x96\x99\xe6,]f\xf4\x14-\xa6\x82\x1a\x14\x04\xa1\x99\xf4\xa4/\x0b%\x93{9\xebB\t\xc8\x853\xca\xf0\xa9\x8a\x88r(S\xb2\xe0\x92\xd5\xee#J'), '\144' + chr(0b1100101) + '\143' + '\x6f' + chr(100) + chr(0b1000111 + 0o36))(chr(2381 - 2264) + chr(0b1000011 + 0o61) + chr(0b1100110) + chr(45) + chr(0b101101 + 0o13)):
v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\xa9\x94-\xca\xb0\xa2\xcc\xdeua\\\xb9\xb2\x96\xd8\xe3;\x19#\xfa\x18,\xa1\x98'), '\144' + '\x65' + chr(0b1100011) + chr(0b1100001 + 0o16) + chr(0b11100 + 0o110) + chr(101))(chr(8825 - 8708) + chr(0b1110100) + chr(0b101 + 0o141) + chr(45) + '\x38') % (soHeYQbahFnI[roI3spqORKae(ES5oEprVxulp(b'\x86\x850\x8f'), chr(0b1010101 + 0o17) + chr(9428 - 9327) + chr(99) + chr(0b110100 + 0o73) + chr(100) + chr(0b1100101))(chr(1573 - 1456) + chr(4242 - 4126) + chr(2106 - 2004) + chr(0b10011 + 0o32) + chr(0b111000))], J4eG487sJbAu), file=roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\x87\xb6n\x9e\xd4\xa2\x8d\xb4G1P\x93'), '\144' + chr(0b1100101) + '\143' + '\157' + chr(0b1100100) + chr(0b1100101))('\x75' + '\x74' + chr(0b1100100 + 0o2) + '\055' + '\x38')))
EnCvDZC8cKA9 = SsdNdRxXOwsF.api.app_describe(roI3spqORKae(ES5oEprVxulp(b'\x89\x94-\xc7'), chr(2071 - 1971) + '\x65' + chr(0b1111 + 0o124) + chr(111) + chr(0b1001101 + 0o27) + '\x65')('\x75' + chr(0b1101100 + 0o10) + '\x66' + '\x2d' + chr(0b111000)) + VLbtkEx9kiB5, alias=J4eG487sJbAu)
if roI3spqORKae(EnCvDZC8cKA9, roI3spqORKae(ES5oEprVxulp(b'\xaf\xb1\x16\x8f\xe1\xa4\xd7\x83g\x06N\x9f'), chr(0b1100100) + chr(0b1100101) + chr(1392 - 1293) + '\x6f' + chr(0b1100100) + chr(0b1000 + 0o135))(chr(0b1011001 + 0o34) + '\x74' + '\x66' + chr(0b101101) + chr(0b111000)))(roI3spqORKae(ES5oEprVxulp(b'\x98\x91?\x86\xfc\xa2\x8b\x9eb'), chr(0b1001111 + 0o25) + '\145' + chr(99) + '\157' + chr(0b100100 + 0o100) + '\145')('\x75' + chr(9465 - 9349) + '\146' + chr(0b100100 + 0o11) + chr(1932 - 1876)), nzTpIcepk0o8('\060' + '\157' + '\x30', 6015 - 6007)) > nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(48), 8):
return None
return lzz51WZv2QZN(VLbtkEx9kiB5, J4eG487sJbAu, soHeYQbahFnI, try_update=A7y5XCYXB32y)
raise wgf0sgcu_xPL
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.