query
stringlengths
10
3.6k
document
stringlengths
19
61.4k
metadata
dict
negatives
listlengths
0
101
negative_scores
listlengths
0
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Return User with a given email.
def ccBJ(Emd4, D3lj): return Emd4.query.filter_by(email=D3lj).one_or_none()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CYTf(D3lj: str) -> mv1M:\n return DQE7(mv1M, mv1M.email, D3lj)", "def CYTf(Emd4, D3lj):\n CBIr = mv1M.query.filter(mv1M.email == D3lj).first()\n return CBIr", "def CYTf(YKHO, D3lj: str) -> mv1M:\n return mv1M().get_by_email(D3lj)", "def CYTf(D3lj, QePW=None):\n return lCqJ(email=D3lj, requ...
[ "0.89890295", "0.89520025", "0.89060014", "0.88989896", "0.8860058", "0.88408", "0.8809596", "0.88010746", "0.87935513", "0.8789696", "0.87855977", "0.87799406", "0.87799406", "0.87721896", "0.8757044", "0.8740784", "0.874051", "0.8725001", "0.867961", "0.8675068", "0.8675068...
0.0
-1
Return User with the given id.
def q0Fo(Emd4, M6Oo): return Emd4.query.get(M6Oo)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ggdo(Emd4, id):\n CBIr = Emd4.get_by_id(id)\n return CBIr", "def ggdo(Emd4, id):\n CBIr = Emd4.get_by_id(id)\n return CBIr", "def bt8D(id: int) -> mv1M:\n return DQE7(mv1M, mv1M.id, id)", "def bt8D(id):\n return mv1M.query.get(id)", "def bt8D(id):\n return mv1M.query.filter(mv1M.us...
[ "0.90606475", "0.90606475", "0.9032244", "0.903135", "0.88255674", "0.8808255", "0.8759856", "0.8750761", "0.86713946", "0.86200005", "0.8595482", "0.8559375", "0.8492119", "0.8479726", "0.8460613", "0.8453382", "0.8432606", "0.84167993", "0.8361649", "0.83489865", "0.8344847...
0.0
-1
Return User with a given email.
def ccBJ(Emd4, D3lj): return Emd4.query.filter_by(email=D3lj).one_or_none()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CYTf(D3lj: str) -> mv1M:\n return DQE7(mv1M, mv1M.email, D3lj)", "def CYTf(Emd4, D3lj):\n CBIr = mv1M.query.filter(mv1M.email == D3lj).first()\n return CBIr", "def CYTf(YKHO, D3lj: str) -> mv1M:\n return mv1M().get_by_email(D3lj)", "def CYTf(D3lj, QePW=None):\n return lCqJ(email=D3lj, requ...
[ "0.89890295", "0.89520025", "0.89060014", "0.88989896", "0.8860058", "0.88408", "0.8809596", "0.88010746", "0.87935513", "0.8789696", "0.87855977", "0.87799406", "0.87799406", "0.87721896", "0.8757044", "0.8740784", "0.874051", "0.8725001", "0.867961", "0.8675068", "0.8675068...
0.0
-1
Return User with the given id.
def q0Fo(Emd4, M6Oo): return Emd4.query.get(M6Oo)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ggdo(Emd4, id):\n CBIr = Emd4.get_by_id(id)\n return CBIr", "def ggdo(Emd4, id):\n CBIr = Emd4.get_by_id(id)\n return CBIr", "def bt8D(id: int) -> mv1M:\n return DQE7(mv1M, mv1M.id, id)", "def bt8D(id):\n return mv1M.query.get(id)", "def bt8D(id):\n return mv1M.query.filter(mv1M.us...
[ "0.90606475", "0.90606475", "0.9032244", "0.903135", "0.88255674", "0.8808255", "0.8759856", "0.8750761", "0.86713946", "0.86200005", "0.8595482", "0.8559375", "0.8492119", "0.8479726", "0.8460613", "0.8453382", "0.8432606", "0.84167993", "0.8361649", "0.83489865", "0.8344847...
0.0
-1
The PKI secret backend the resource belongs to.
def DDLl(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'backend')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KMaA(YKHO):\n return 'charm-' + YKHO.configuration_class().application_name", "def DDLl(YKHO):\n return YKHO.key_val", "def DDLl():\n return p5cf", "def DDLl(YKHO):\n return YKHO._backend", "def DDLl(YKHO):\n return YKHO._backend", "def Tw7N(YKHO):\n return e4GQ.objects.get_backend(...
[ "0.72761965", "0.7063982", "0.683328", "0.68225074", "0.68225074", "0.68119395", "0.6811193", "0.6809501", "0.6796783", "0.6796783", "0.6796783", "0.6796783", "0.6793166", "0.6793166", "0.6793166", "0.6793166", "0.6793166", "0.6793166", "0.6781608", "0.6781608", "0.6781608", ...
0.69118476
2
If set to `true`, certs will be renewed if the expiration is within `min_seconds_remaining`. Default `false`
def z2Wi(YKHO) -> h8nf[qe4Y.Input[bool]]: return qe4Y.get(YKHO, 'auto_renew')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JZEH(YKHO) -> bool:\n return YKHO.should_renew and LOnh.time_delta(YKHO.start_time, ITS7.time()) >= X8Rg['security']['time_to_renew']", "def h1Lc(YKHO):\n YKHO._init_le()\n return YKHO.lets_encrypt.test_certificate_for_renew(domain=YKHO.hostname, renewal_before=60 * 60 * 24 * 20) != 0", "def PawI(...
[ "0.7375613", "0.710405", "0.6988422", "0.6422431", "0.6221297", "0.6198233", "0.619415", "0.59915364", "0.59768575", "0.59550375", "0.5944047", "0.5937584", "0.5873488", "0.5859789", "0.5859789", "0.58461785", "0.582943", "0.57984585", "0.5798111", "0.5798111", "0.5798111", ...
0.5770681
27
The namespace to provision the resource in. The value should not contain leading or trailing forward slashes.
def _63S(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'namespace')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _63S(YKHO) -> str:\n return qe4Y.get(YKHO, 'namespace')", "def _63S(YKHO) -> str:\n return qe4Y.get(YKHO, 'namespace')", "def _63S(YKHO) -> str:\n return qe4Y.get(YKHO, 'namespace')", "def _63S(YKHO) -> str:\n return qe4Y.get(YKHO, 'namespace')", "def _63S(YKHO) -> str:\n return qe4Y.get...
[ "0.7340078", "0.7340078", "0.7340078", "0.7340078", "0.7340078", "0.7340078", "0.7340078", "0.72723615", "0.72723615", "0.72723615", "0.72723615", "0.72723615", "0.7199698", "0.7199698", "0.7199698", "0.7199698", "0.7163555", "0.7069311", "0.70378655", "0.70378655", "0.703786...
0.70942545
17
If set to `true`, certs will be renewed if the expiration is within `min_seconds_remaining`. Default `false`
def z2Wi(YKHO) -> h8nf[qe4Y.Input[bool]]: return qe4Y.get(YKHO, 'auto_renew')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JZEH(YKHO) -> bool:\n return YKHO.should_renew and LOnh.time_delta(YKHO.start_time, ITS7.time()) >= X8Rg['security']['time_to_renew']", "def h1Lc(YKHO):\n YKHO._init_le()\n return YKHO.lets_encrypt.test_certificate_for_renew(domain=YKHO.hostname, renewal_before=60 * 60 * 24 * 20) != 0", "def PawI(...
[ "0.7375613", "0.710405", "0.6988422", "0.6422431", "0.6221297", "0.6198233", "0.619415", "0.59915364", "0.59768575", "0.59550375", "0.5944047", "0.5937584", "0.5873488", "0.5859789", "0.5859789", "0.58461785", "0.582943", "0.57984585", "0.5798111", "0.5798111", "0.5798111", ...
0.5770681
26
The PKI secret backend the resource belongs to.
def DDLl(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'backend')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KMaA(YKHO):\n return 'charm-' + YKHO.configuration_class().application_name", "def DDLl(YKHO):\n return YKHO.key_val", "def DDLl(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'backend')", "def DDLl(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'backend')", "def DDLl(YKHO) -> qe4Y.In...
[ "0.72761965", "0.7063982", "0.69118476", "0.69118476", "0.69118476", "0.69118476", "0.683328", "0.68225074", "0.68225074", "0.68119395", "0.6811193", "0.6809501", "0.6796783", "0.6796783", "0.6796783", "0.6796783", "0.6781608", "0.6781608", "0.6781608", "0.6781608", "0.677611...
0.6793166
18
The expiration date of the certificate in unix epoch format
def N850(YKHO) -> h8nf[qe4Y.Input[int]]: return qe4Y.get(YKHO, 'expiration')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zmLW(YKHO) -> qcWV:\n return XWlG(YKHO.session_info['exp'])", "def Dede(YKHO):\n return ITS7.mktime(YKHO._expirationDate.timetuple())", "def ad72(YKHO):\n return YKHO._expires_at.date()", "def ad72(YKHO):\n return YKHO._expiration_date", "def ad72(YKHO):\n return YKHO._expiration_date", ...
[ "0.7260834", "0.72360784", "0.72025967", "0.71612215", "0.71612215", "0.71612215", "0.7131653", "0.7131653", "0.71127117", "0.7035424", "0.7026578", "0.69941705", "0.6952454", "0.6934561", "0.68943685", "0.68899643", "0.68899643", "0.68843687", "0.6878056", "0.6838074", "0.67...
0.61466205
85
The namespace to provision the resource in. The value should not contain leading or trailing forward slashes.
def _63S(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'namespace')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _63S(YKHO) -> str:\n return qe4Y.get(YKHO, 'namespace')", "def _63S(YKHO) -> str:\n return qe4Y.get(YKHO, 'namespace')", "def _63S(YKHO) -> str:\n return qe4Y.get(YKHO, 'namespace')", "def _63S(YKHO) -> str:\n return qe4Y.get(YKHO, 'namespace')", "def _63S(YKHO) -> str:\n return qe4Y.get...
[ "0.73410654", "0.73410654", "0.73410654", "0.73410654", "0.73410654", "0.73410654", "0.73410654", "0.7273249", "0.7273249", "0.7273249", "0.7273249", "0.7273249", "0.72007185", "0.72007185", "0.72007185", "0.72007185", "0.71641845", "0.7070545", "0.7038375", "0.7038375", "0.7...
0.70951223
20
`true` if the current time (during refresh) is after the start of the early renewal window declared by `min_seconds_remaining`, and `false` otherwise; if `auto_renew` is set to `true` then the provider will plan to replace the certificate once renewal is pending.
def sDvS(YKHO) -> h8nf[qe4Y.Input[bool]]: return qe4Y.get(YKHO, 'renew_pending')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JZEH(YKHO) -> bool:\n return YKHO.should_renew and LOnh.time_delta(YKHO.start_time, ITS7.time()) >= X8Rg['security']['time_to_renew']", "def h1Lc(YKHO):\n YKHO._init_le()\n return YKHO.lets_encrypt.test_certificate_for_renew(domain=YKHO.hostname, renewal_before=60 * 60 * 24 * 20) != 0", "def PawI(...
[ "0.7820467", "0.7318299", "0.7274304", "0.7061093", "0.6907742", "0.6815878", "0.6815878", "0.6815878", "0.6815878", "0.6815878", "0.6815878", "0.6815878", "0.6815878", "0.6815878", "0.6815878", "0.6815878", "0.67939484", "0.67939484", "0.67939484", "0.67939484", "0.67939484"...
0.59722584
34
If set to `true`, certs will be renewed if the expiration is within `min_seconds_remaining`. Default `false`
def z2Wi(YKHO) -> qe4Y.Output[h8nf[bool]]: return qe4Y.get(YKHO, 'auto_renew')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JZEH(YKHO) -> bool:\n return YKHO.should_renew and LOnh.time_delta(YKHO.start_time, ITS7.time()) >= X8Rg['security']['time_to_renew']", "def h1Lc(YKHO):\n YKHO._init_le()\n return YKHO.lets_encrypt.test_certificate_for_renew(domain=YKHO.hostname, renewal_before=60 * 60 * 24 * 20) != 0", "def PawI(...
[ "0.7375613", "0.710405", "0.6988422", "0.6422431", "0.6221297", "0.6198233", "0.619415", "0.59915364", "0.59768575", "0.59550375", "0.5944047", "0.5937584", "0.5873488", "0.5859789", "0.5859789", "0.58461785", "0.582943", "0.57984585", "0.5781693", "0.5778051", "0.5770681", ...
0.5798111
18
The PKI secret backend the resource belongs to.
def DDLl(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'backend')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KMaA(YKHO):\n return 'charm-' + YKHO.configuration_class().application_name", "def DDLl(YKHO):\n return YKHO.key_val", "def DDLl(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'backend')", "def DDLl(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'backend')", "def DDLl(YKHO) -> qe4Y.In...
[ "0.72761965", "0.7063982", "0.69118476", "0.69118476", "0.69118476", "0.69118476", "0.683328", "0.68225074", "0.68225074", "0.68119395", "0.6811193", "0.6809501", "0.6793166", "0.6793166", "0.6793166", "0.6793166", "0.6793166", "0.6793166", "0.6781608", "0.6781608", "0.678160...
0.6796783
12
The expiration date of the certificate in unix epoch format
def N850(YKHO) -> qe4Y.Output[int]: return qe4Y.get(YKHO, 'expiration')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zmLW(YKHO) -> qcWV:\n return XWlG(YKHO.session_info['exp'])", "def Dede(YKHO):\n return ITS7.mktime(YKHO._expirationDate.timetuple())", "def ad72(YKHO):\n return YKHO._expires_at.date()", "def ad72(YKHO):\n return YKHO._expiration_date", "def ad72(YKHO):\n return YKHO._expiration_date", ...
[ "0.7260834", "0.72360784", "0.72025967", "0.71612215", "0.71612215", "0.71612215", "0.7131653", "0.7131653", "0.71127117", "0.7035424", "0.7026578", "0.69941705", "0.6952454", "0.6934561", "0.68943685", "0.68899643", "0.68899643", "0.68843687", "0.6878056", "0.6838074", "0.67...
0.6720354
24
The namespace to provision the resource in. The value should not contain leading or trailing forward slashes.
def _63S(YKHO) -> qe4Y.Output[h8nf[str]]: return qe4Y.get(YKHO, 'namespace')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _63S(YKHO) -> str:\n return qe4Y.get(YKHO, 'namespace')", "def _63S(YKHO) -> str:\n return qe4Y.get(YKHO, 'namespace')", "def _63S(YKHO) -> str:\n return qe4Y.get(YKHO, 'namespace')", "def _63S(YKHO) -> str:\n return qe4Y.get(YKHO, 'namespace')", "def _63S(YKHO) -> str:\n return qe4Y.get...
[ "0.7339528", "0.7339528", "0.7339528", "0.7339528", "0.7339528", "0.7339528", "0.7339528", "0.72720164", "0.72720164", "0.72720164", "0.72720164", "0.72720164", "0.71994716", "0.71994716", "0.71994716", "0.71994716", "0.71625894", "0.7093958", "0.7093958", "0.7093958", "0.709...
0.6913739
46
`true` if the current time (during refresh) is after the start of the early renewal window declared by `min_seconds_remaining`, and `false` otherwise; if `auto_renew` is set to `true` then the provider will plan to replace the certificate once renewal is pending.
def sDvS(YKHO) -> qe4Y.Output[bool]: return qe4Y.get(YKHO, 'renew_pending')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JZEH(YKHO) -> bool:\n return YKHO.should_renew and LOnh.time_delta(YKHO.start_time, ITS7.time()) >= X8Rg['security']['time_to_renew']", "def h1Lc(YKHO):\n YKHO._init_le()\n return YKHO.lets_encrypt.test_certificate_for_renew(domain=YKHO.hostname, renewal_before=60 * 60 * 24 * 20) != 0", "def PawI(...
[ "0.7820467", "0.7318299", "0.7274304", "0.7061093", "0.6907742", "0.6815878", "0.6815878", "0.6815878", "0.6815878", "0.6815878", "0.6815878", "0.6815878", "0.6815878", "0.6815878", "0.6815878", "0.6815878", "0.67939484", "0.67939484", "0.67939484", "0.67939484", "0.67939484"...
0.5983334
32
Describes a list of AWS Batch jobs.
def zMbz(SYSq=None): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zMbz(s9pl: List[str]) -> x1iM[cuzp]:\n SYSq: x1iM[cuzp] = iVGz.client('batch').describe_jobs(jobs=s9pl)['jobs']\n return SYSq", "def wv4k(YKHO):\n SYSq = YKHO.get_jobs()\n [print('Job: name {name}, id {id}, status {status}'.format(**oCfW)) for oCfW in SYSq]", "def zMbz(YKHO, **B2fa: Dict) -> cu...
[ "0.72959864", "0.7252394", "0.6933794", "0.69082046", "0.69082046", "0.66097707", "0.6573954", "0.65674776", "0.6519692", "0.64613014", "0.6458443", "0.6394486", "0.63804823", "0.63749665", "0.63333005", "0.63023585", "0.62163395", "0.6213011", "0.6159747", "0.6150358", "0.61...
0.67858016
5
Create a paginator for an operation.
def oL8A(hTqE=None): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass", "def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass", "def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass", "def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass", "def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass", "def oL8A(YKHO, hTqE: str=None) -> NIbP:\...
[ "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.70472574", "0.67338336", "0.6382978",...
0.7726925
12
Returns logging.Loger instance. Default implementation return root logger. Descendant classes could override it to return different logger.
def MWLp(YKHO) -> G9jH.Logger: return G9jH.getLogger()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bo34(YKHO) -> G9jH.Logger:\n if YKHO._logger is None:\n bo34 = ESLr(__name__, YKHO.log_file_path, YKHO.no_log_file)\n YKHO._logger = bo34\n return YKHO._logger", "def bo34(YKHO):\n ABDL = '.'.join([__name__, type(YKHO).__name__])\n return G9jH.getLogger(ABDL)", "def fZx2(YKHO) -> ...
[ "0.8094133", "0.80357563", "0.79250985", "0.7848606", "0.7785503", "0.778409", "0.77793866", "0.7745919", "0.7741965", "0.77310365", "0.76589555", "0.76571244", "0.7634018", "0.7632687", "0.7631308", "0.76311123", "0.76155907", "0.76065373", "0.759107", "0.75722015", "0.75658...
0.7192404
58
This function is the one that creates and returns heatmap from the output of the given convolution layer
def OGVX(C3ST, hlel, p4m8, gEmA, MW0v, of39): IfYM = C3ST.get_layer(gEmA) vtNT = nMvt.gradients(hlel, IfYM.output)[0] IEGQ = nMvt.mean(vtNT, axis=(0, 1, 2)) X73w = nMvt.function([C3ST.input], [IEGQ, IfYM.output[0]]) WMu_, eYuW = X73w([WKvO]) for YRbF in range(MW0v): eYuW[:, :, YRbF] *= W...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oAkO(C3ST, IfYM, g4y1):\n aTLP = C3ST.predict(g4y1)\n d6pt = oyIN.argmax(aTLP[0])\n W7Yp = C3ST.output[:, d6pt]\n IfYM = C3ST.get_layer(IfYM)\n vtNT = nMvt.gradients(W7Yp, IfYM.output)[0]\n IEGQ = nMvt.mean(vtNT, axis=(0, 1, 2))\n X73w = nMvt.function(g4y1, [IEGQ, IfYM.output[0]])\n WMu...
[ "0.7321593", "0.7271479", "0.72691315", "0.6901182", "0.6879072", "0.6685902", "0.6667739", "0.6663909", "0.6657565", "0.66516143", "0.65723723", "0.64685154", "0.64030164", "0.636973", "0.6369083", "0.6340266", "0.6333841", "0.6317188", "0.6243445", "0.61994284", "0.6192938"...
0.64620626
12
This function is used like CAM but it does not take the output of a convolution layer. It takes an already created heatmap and saves it in a folder for its vizualization and also returns the heatmap
def XP6N(Y4Ek, of39, p4m8): Y4Ek = (Y4Ek - Y4Ek.min()) / oyIN.ptp(Y4Ek) VXjJ = XC5k.imread(p4m8) VXjJ = XC5k.resize(VXjJ, (299, 299)) Y4Ek = oyIN.uint8(255 * Y4Ek) b7mF = Y4Ek return b7mF
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LTkE(YKHO):\n LZpg = QrM1.figure()\n aNZO = LZpg.add_subplot(111)\n Xn71 = aNZO.imshow(YKHO.map, cmap=YKHO.color_file)\n QrM1.colorbar(Xn71)\n if YKHO.heatmap_file is not None:\n QrM1.savefig(YKHO.heatmap_file, format=YKHO.heatmap_format)\n QrM1.close()", "def qL_2(SppC, V6eb='')...
[ "0.71284056", "0.68183595", "0.6659101", "0.65884256", "0.6584606", "0.6521615", "0.6517112", "0.6506253", "0.6496878", "0.6461028", "0.6449189", "0.6444494", "0.6395235", "0.635242", "0.627686", "0.6258605", "0.62396425", "0.62336314", "0.61884433", "0.617871", "0.60949135",...
0.6811759
2
Normalizes an image using the "divide by global median, subtract local mean" approach. Normalizes each channel independently.
def uKS_(Yw_3, KnxT, dvgN): if KnxT % 2 == 0: raise ValueError('called smdm_normalize with even-sized window') Yw_3 = ZylS.constant(Yw_3) Yw_3 = ZylS.cast(Yw_3, ZylS.float32) Ep8u = ZylS.shape(Yw_3)[0] xMux = ZylS.shape(Yw_3)[3] BsA2 = ZylS.transpose(Yw_3, (0, 3, 1, 2)) X_KZ = ZylS.r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ekx3(VXjJ):\n if VXjJ.max() <= 1:\n Yoqy.warn(Dbee.yellow('intensity value already in [0, 1]?'))\n else:\n RtWO = VXjJ.astype('f') / 255\n for YRbF in range(3):\n RtWO[..., YRbF] = (RtWO[..., YRbF] - eQSh['mean'][YRbF]) / eQSh['std'][YRbF]\n return RtWO", "def b3Z_(VXjJ):\n ...
[ "0.7635016", "0.7571773", "0.7453894", "0.7450392", "0.7449095", "0.74303573", "0.74135196", "0.7352242", "0.7330155", "0.7287363", "0.72739834", "0.7255562", "0.72205234", "0.71756154", "0.7164732", "0.715252", "0.71496564", "0.7128308", "0.7101082", "0.7098214", "0.7065638"...
0.0
-1
Extract square patches of an image and their corresponding classes. Uses the "VALID" padding method, meaning that no patches centered near the edge of the image are extracted.
def SakE(LNo8, TW64, zNig, zDmY=float('inf'), ZenO=None): assert LNo8.ndim == 3, 'image does not have 3 dims' assert len(TW64.shape) == 2, 'class image does not have 2 dims' assert LNo8.shape[0] == TW64.shape[0] and LNo8.shape[1] == TW64.shape[1], 'image and class image do not have matching height and width...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YXTw(LNo8, TW64, zNig, zDmY=float('inf'), ZenO=None):\n ohfT, KndY = ([], [])\n for Po4F, vOsx in SakE(LNo8, TW64, zNig, zDmY, ZenO):\n ohfT.append(Po4F)\n KndY.append(vOsx)\n U0pJ = list(range(ohfT.shape[0]))\n tuKI.shuffle(U0pJ)\n xf52, CdHP = ([], [])\n for YRbF in U0pJ:\n ...
[ "0.6679777", "0.6465347", "0.6436836", "0.6433358", "0.6429404", "0.6308719", "0.6269164", "0.62033737", "0.6188393", "0.6179254", "0.61467475", "0.6086768", "0.60731995", "0.6038003", "0.6038003", "0.6014919", "0.6010961", "0.60064566", "0.6006142", "0.5923619", "0.58998585"...
0.6933897
0
Sets the cost of this LibraryControl.
def sSN_(YKHO, sSN_): YKHO._cost = sSN_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Do9e(YKHO, sSN_):\n YKHO.cost = sSN_", "def Do9e(YKHO, BTV3):\n YKHO.item_cost = BTV3", "def G4Jf(YKHO, G4Jf):\n YKHO._cost_price = G4Jf", "def Do9e(YKHO, sSN_: float) -> 'Vertex':\n YKHO.__cost: float = sSN_\n return YKHO", "def Do9e(YKHO, YXSb, sSN_):\n YXSb.update({'cost': sSN_})",...
[ "0.7698651", "0.73629194", "0.7264495", "0.71502215", "0.71172124", "0.67992073", "0.6630277", "0.65373147", "0.6406329", "0.63735026", "0.6298162", "0.6234037", "0.6207353", "0.6196521", "0.6196521", "0.61898714", "0.6155077", "0.61458266", "0.61259145", "0.60618794", "0.590...
0.74661463
1
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.83939064", "0.83558416", "0.8296191", "0.8133439", "0.81156427", "0.810097", "0.81001526", "0.8099001", "0.8099001", "0.80936444", "0.80936444", "0.80936444", "0.80936444", "0.80862904", "0.80862904", "0.80862904", "0.80862904", "0.80862904", "0.80677134", "0.80598736", "0...
0.0
-1
Returns the index of a curve in this class.
def d6pt(YKHO, Nq1b): if not isinstance(Nq1b, tMRj): raise ValueError('x not in isogeny class') for YRbF, ut5U in enumerate(YKHO.curves): if Nq1b.is_isomorphic(ut5U): return YRbF raise ValueError('%s is not in isogeny class %s' % (Nq1b, YKHO))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OP2O(YKHO, YRbF):\n return YKHO.curves[YRbF]", "def Zia4(YKHO, BWoA=False):\n if BWoA and YKHO._index < 0:\n return max(0, len(YKHO.getData(copy=False)) + YKHO._index)\n else:\n return YKHO._index", "def uj8C(YKHO):\n return YKHO._index", "def _Wu0(YKHO) -> int:\n return YKHO...
[ "0.6987419", "0.6753755", "0.66547585", "0.6513945", "0.64880127", "0.64622396", "0.64345795", "0.64345795", "0.64345795", "0.64122456", "0.6408027", "0.6407906", "0.6393466", "0.6390359", "0.63653725", "0.63653725", "0.63636327", "0.6341572", "0.63300824", "0.63054377", "0.6...
0.6989227
0
Returns 0 if self and other are the same isogeny class. If they are different, compares the sorted underlying lists of curves. Note that two isogeny classes with different orderings will compare as the same. If you want to include the ordering, just compare the list of curves.
def Aicm(YKHO, Elif): if isinstance(Elif, NzQy): return eHkp(sorted(YKHO.curves), sorted(Elif.curves)) return eHkp(type(YKHO), type(Elif))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Aicm(YKHO, Elif):\n OtaB = epAf.sqrt(YKHO.x * YKHO.x + YKHO.y * YKHO.y)\n TaW9 = epAf.sqrt(Elif.x * Elif.x + Elif.y * Elif.y)\n return OtaB - TaW9", "def Aicm(YKHO, Elif):\n if YKHO.p1 < Elif.p1:\n return -1\n if YKHO.p1 > Elif.p1:\n return 1\n if YKHO.p2 < Elif.p2:\n r...
[ "0.6927846", "0.67954636", "0.67942667", "0.67424065", "0.6737273", "0.6714878", "0.66818905", "0.6645082", "0.6609667", "0.6593093", "0.6582995", "0.6580566", "0.6529397", "0.6453238", "0.64506453", "0.64239043", "0.64085", "0.6407401", "0.64051443", "0.6403671", "0.6361585"...
0.8055507
0
The string representation of this isogeny class.
def aRbh(YKHO): if YKHO._label: return 'Elliptic curve isogeny class %s' % YKHO._label else: return 'Isogeny class of %r' % YKHO.E
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.serialize())", "def zAg0(YKHO):\n return YKHO.tostring()", "def wHJl(YKHO):\n return str(YKHO)", "def wHJl(YKHO):\n return str(YKHO)", "def wHJl(YKHO):\n return str(YKHO)", "def wHJl(YKHO):\n return str(YKHO)", "def wHJl(YKHO):\n return str(YKHO)",...
[ "0.8168524", "0.8147026", "0.81086534", "0.81086534", "0.81086534", "0.81086534", "0.81086534", "0.81086534", "0.81086534", "0.81086534", "0.81086534", "0.81086534", "0.81086534", "0.81086534", "0.81086534", "0.81086534", "0.81086534", "0.81086534", "0.81086534", "0.81086534", ...
0.0
-1
Creates a stale record object
def HZti(YKHO): T6xC = icFe() T6xC.save() T6xC.instances.add(*YKHO.exported) YKHO.removal_hash = T6xC.removal_hash
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DV9v(YKHO, AIu6):\n nvIL = YKHO.data\n try:\n YKHO.data = AIu6\n return YKHO.construct()\n finally:\n YKHO.data = nvIL", "def wmmn(YKHO, **B2fa):\n CUtZ = B2fa.pop('_delay_cache', False)\n YEnM = YKHO.model(**B2fa)\n YKHO._for_write = True\n YEnM._delay_cache = CUtZ\...
[ "0.62603694", "0.62218463", "0.6091707", "0.5773181", "0.57280666", "0.5700303", "0.5681374", "0.55942464", "0.5587946", "0.55575025", "0.5544604", "0.5536494", "0.5482794", "0.5480698", "0.547571", "0.54509", "0.54487705", "0.5443133", "0.53996027", "0.53684944", "0.5366184"...
0.769754
0
Create a onehot encoding of x of size k.
def N9CW(WKvO, G1Hx, yDqo=oLG2.float32): return oLG2.array(WKvO[:, None] == oLG2.arange(G1Hx), yDqo)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kj8B(LVAh, G1Hx):\n exwG = LVAh.shape[0]\n KLLm = oyIN.zeros((exwG, G1Hx))\n KLLm[oyIN.arange(exwG), LVAh - 1] = 1\n return KLLm", "def VDds(LVAh, nMvt):\n KLLm = oyIN.zeros((nMvt, len(LVAh)))\n for YRbF in range(len(LVAh)):\n KLLm[LVAh[YRbF], YRbF] = 1.0\n return KLLm", "def KL...
[ "0.85010797", "0.8164805", "0.80795914", "0.80469614", "0.80469614", "0.8046621", "0.7950615", "0.7883887", "0.7829964", "0.7820679", "0.77909666", "0.77449465", "0.7690131", "0.7681664", "0.7675374", "0.7650389", "0.76033527", "0.76027477", "0.7566364", "0.7566027", "0.75579...
0.7739564
12
String representation of the object.
def zAg0(YKHO): return 'Timestamp: {ts}\n\nBuy: {buy}\nSell: {sell}\n\nUSD Balance: {usd}\nBTC Balance: {btc}\n\nLast Buy Price: {obuy} {obtime}\nLast Sell Price: {osell} {ostime}\n\nBuy Prices: {bprices}\nSell Prices: {sprices}'.format(ts=BJsk.format_time(YKHO.time), buy=YKHO.buy, sell=YKHO.sell, usd=YKHO.usd_ba...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return YKHO.object_repr", "def zAg0(YKHO) -> str:\n return lSJJ(YKHO)", "def zAg0(YKHO):\n return str(YKHO.serialize())", "def Napc(YKHO):\n return repr(YKHO)", "def wHJl(YKHO):\n return str(YKHO.__dict__)", "def wHJl(YKHO):\n return str(YKHO.__dict__)", "def wHJl(YK...
[ "0.8498151", "0.83777887", "0.833984", "0.8304057", "0.8251315", "0.8251315", "0.8251315", "0.8251315", "0.8251315", "0.8251315", "0.82443607", "0.8234883", "0.82249564", "0.82242304", "0.82098955", "0.82098955", "0.81971675", "0.81845933", "0.81845933", "0.8184549", "0.81696...
0.0
-1
Adds an initial convolution layer (with batch normalization).
def igDj(g4y1: tf.Tensor, KUnM: int, XkGR: float, i0Hi: int, oNEO: float, z2bo: float, hYvg: Text='relu6', Fj_a: bool=False, OEry: bool=True, IuDf: Text='batch_norm', _qR6: Dict={}, GW3I: bool=False, WZcn: Union[int, Tuple[int, int]]=(3, 3), FEri: Union[int, Tuple[int, int]]=(1, 1), iSco: bool=False, yetk: int=0, dVRm:...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H9_D(YKHO, g4y1, gt4n=16, Ot1W=3, FEri=1, YDYE='relu', zjgh=None, uNRR=True, RIw7=True, mWFP='conv'):\n if zjgh is None:\n yIp6 = lTlC(filters=gt4n, kernel_size=Ot1W, strides=FEri, padding='same', kernel_regularizer=None, name=mWFP)\n else:\n yIp6 = lTlC(filters=gt4n, kernel_size=Ot1W, stri...
[ "0.7247305", "0.6781766", "0.67479163", "0.6691772", "0.6540494", "0.6539419", "0.6515141", "0.6512052", "0.6483877", "0.64829504", "0.6409464", "0.6408503", "0.63987297", "0.6378471", "0.6363552", "0.6355209", "0.63318515", "0.6324962", "0.6324962", "0.63216335", "0.6320962"...
0.0
-1
Adds an initial convolution layer (with batch normalization).
def DHw3(g4y1: tf.Tensor, KUnM: int, XkGR: float, i0Hi: int, oNEO: float, z2bo: float, hYvg: Text='relu6', IuDf: Text='batch_norm', _qR6: Dict={}, fiu3: int=1, Uohb: bool=False, GW3I: bool=False, WZcn: Union[int, Tuple[int, int]]=(3, 3), FEri: Union[int, Tuple[int, int]]=(1, 1), yetk: int=1) -> ZylS.Tensor: KUnM = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H9_D(YKHO, g4y1, gt4n=16, Ot1W=3, FEri=1, YDYE='relu', zjgh=None, uNRR=True, RIw7=True, mWFP='conv'):\n if zjgh is None:\n yIp6 = lTlC(filters=gt4n, kernel_size=Ot1W, strides=FEri, padding='same', kernel_regularizer=None, name=mWFP)\n else:\n yIp6 = lTlC(filters=gt4n, kernel_size=Ot1W, stri...
[ "0.7247305", "0.6781766", "0.67479163", "0.6691772", "0.6540494", "0.6539419", "0.6515141", "0.6512052", "0.6483877", "0.64829504", "0.6409464", "0.6408503", "0.63987297", "0.6378471", "0.6363552", "0.6355209", "0.63318515", "0.6324962", "0.6324962", "0.63216335", "0.6320962"...
0.0
-1
Depthwise Convolution Block with expansion. Builds a composite convolution that has the following structure expansion (1x1) > depthwise (kernel_size) > projection (1x1)
def nkQG(g4y1: tf.Tensor, KUnM: int, XkGR: float, i0Hi: int, oNEO: float, z2bo: float, hYvg: Text='relu6', FZa8: Text=None, IuDf: Text='batch_norm', _qR6: Dict={}, fiu3: int=1, GINC: float=6.0, Uohb: bool=False, GW3I: bool=False, ynfi: bool=True, uuHL=True, gQFA: Optional[int]=None, WZcn: Union[int, Tuple[int, int]]=(3...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DHw3(g4y1: tf.Tensor, KUnM: int, XkGR: float, i0Hi: int, oNEO: float, z2bo: float, hYvg: Text='relu6', IuDf: Text='batch_norm', _qR6: Dict={}, fiu3: int=1, Uohb: bool=False, GW3I: bool=False, WZcn: Union[int, Tuple[int, int]]=(3, 3), FEri: Union[int, Tuple[int, int]]=(1, 1), yetk: int=1) -> ZylS.Tensor:\n K...
[ "0.707329", "0.70072144", "0.6925228", "0.6876949", "0.679204", "0.6750121", "0.66630435", "0.662807", "0.6614265", "0.66062474", "0.65750986", "0.6523239", "0.6512801", "0.6495204", "0.64917135", "0.64495164", "0.6437329", "0.6392716", "0.6360363", "0.6360214", "0.6346538", ...
0.0
-1
Squeeze each group of columns into a single column. See `vectorbt.generic.nb.squeeze_grouped_nb`. Example ```pythonrepl >>> group_by = pd.Series(['first', 'first', 'second'], name='group')
def opMh(YKHO, Omvy, *qIxc, qUWU=None, pgIw=None): if not YKHO.wrapper.grouper.is_grouped(group_by=qUWU): raise ValueError('Grouping required') tZoW.assert_numba_func(Omvy) hMRv = YKHO.wrapper.grouper.get_group_lens(group_by=qUWU) yvT9 = GPal.squeeze_grouped_nb(YKHO.to_2d_array(), hMRv, Omvy, *q...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wk71(YKHO, uOe2, MZMe=True):\n if isinstance(uOe2, exCv):\n uOe2 = YKHO.dataset[uOe2]\n return wk71.ArrayGroupBy(YKHO, uOe2, squeeze=MZMe)", "def qUWU(YKHO, *qIxc):\n geeb = [bGrB for bGrB in qIxc]\n if any([bGrB not in YKHO.df.columns for bGrB in geeb]):\n raise ValueError('Wrong c...
[ "0.6430106", "0.5879302", "0.5774407", "0.5606237", "0.5567199", "0.5481431", "0.54428685", "0.54335535", "0.5402414", "0.53992677", "0.53420776", "0.52908534", "0.52501714", "0.52274185", "0.518788", "0.5167644", "0.5124525", "0.5124272", "0.5109575", "0.51068777", "0.504723...
0.6719505
0
Return mean of nonNaN elements.
def JBMS(YKHO, qUWU=None, pgIw=None): pgIw = roQF(dict(name_or_index='mean'), pgIw) if YKHO.wrapper.grouper.is_grouped(group_by=qUWU): return YKHO.reduce(GPal.mean_reduce_nb, group_by=qUWU, flatten=True, wrap_kwargs=pgIw) ezWE = YKHO.to_2d_array() if ezWE.dtype != int and ezWE.dtype != float: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MeB_(jzdc, jDK_=None):\n if jDK_:\n return oyIN.nansum(jzdc, jDK_) / oyIN.sum(1 - oyIN.isnan(jzdc), jDK_)\n else:\n return oyIN.nansum(jzdc) / oyIN.sum(1 - oyIN.isnan(jzdc))", "def li5B(fUYa):\n return oyIN.mean(fUYa) if fUYa else oyIN.nan", "def li5B(fUYa):\n return oyIN.mean(fUY...
[ "0.8458293", "0.8419402", "0.8419402", "0.8192485", "0.81023896", "0.7974564", "0.7974564", "0.78903246", "0.7872049", "0.7857087", "0.7617665", "0.7605177", "0.76016706", "0.7597919", "0.75550056", "0.7520245", "0.7503962", "0.7499726", "0.7499726", "0.747437", "0.7425004", ...
0.0
-1
Convert this object into an instance of `vectorbt.records.mapped_array.MappedArray`.
def JmtT(YKHO, zQHC=True, qUWU=None, **B2fa): from vectorbt.records.mapped_array import MappedArray PUEo = jrZd.to_2d(YKHO._obj, raw=True).flatten(order='F') Sm8n = oyIN.repeat(oyIN.arange(YKHO.wrapper.shape_2d[1]), YKHO.wrapper.shape_2d[0]) k7Rh = oyIN.tile(oyIN.arange(YKHO.wrapper.shape_2d[0]), YKHO.w...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def map(YKHO, yD90) -> object:\n OeK1 = DVR7()\n OeK1.size = 0\n UHFx = 0\n for d6pt in range(YKHO.size):\n OeK1.size += 1\n if OeK1.size == OeK1.capacity:\n OeK1.resize(2 * OeK1.capacity)\n OeK1[UHFx] = yD90(YKHO.data[d6pt])\n UHFx += 1\n if OeK1.size % 4 == 0...
[ "0.6364514", "0.6310411", "0.6176437", "0.5936648", "0.58806276", "0.5869649", "0.57494754", "0.56815034", "0.56598204", "0.5634735", "0.5599856", "0.5562133", "0.55444986", "0.5518162", "0.5509206", "0.5505637", "0.5495078", "0.5490848", "0.54886323", "0.54821277", "0.547469...
0.6883864
0
Create `vectorbt.generic.plotting.Bar` and return the figure. Example ```pythonrepl >>> df.vbt.barplot() ``` ![](/vectorbt/docs/img/df_barplot.png)
def Eys_(YKHO, yxvT=None, gz_g=None, DG1t=True, **B2fa): if gz_g is None: gz_g = YKHO.wrapper.index if yxvT is None: if YKHO.is_frame() or (YKHO.is_series() and YKHO.wrapper.name is not None): yxvT = YKHO.wrapper.columns S6Fl = AaD6.Bar(data=YKHO.to_2d_array(), trace_names=yxvT, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def M1WX(jQ3Z, WKvO, LVAh, H2v2=5, TVTK=5):\n XP5J = uuEx.catplot(x=WKvO, y=LVAh, kind='bar', data=jQ3Z, height=H2v2, aspect=TVTK / H2v2)\n XP5J.set_xticklabels(rotation=90, step=1)\n XP5J.fig.suptitle('Bar Chart: {} vs {}'.format(WKvO, LVAh))\n return XP5J", "def Fs_N(kj9G, Fg_i):\n ei4T = [f'BS:...
[ "0.7498064", "0.730266", "0.7045626", "0.7045026", "0.69390357", "0.6920786", "0.69114584", "0.6896075", "0.686281", "0.683826", "0.6817576", "0.6783517", "0.6757297", "0.6757297", "0.67000103", "0.66936594", "0.6657437", "0.6594653", "0.65833586", "0.65808755", "0.65722024",...
0.6668026
16
Create a heatmap figure based on object's multiindex and values. If index is not a multiindex, converts Series into a DataFrame and calls `GenericDFAccessor.heatmap`. If multiindex contains more than two levels or you want them in specific order, pass `x_level` and `y_level`, each (`int` if index or `str` if name) corr...
def Y4Ek(YKHO, JMxq=None, fYde=None, z_n9=False, BA9O=True, gz_g=None, k5Zv=None, FTEw=None, WZHJ=0, L8_N=None, DG1t=True, LZpg=None, **B2fa): if not isinstance(YKHO.wrapper.index, rLdf.MultiIndex): return YKHO._obj.to_frame().vbt.heatmap(x_labels=gz_g, y_labels=k5Zv, return_fig=DG1t, fig=LZpg, **B2fa) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y4Ek(YKHO, **B2fa):\n jQ3Z = YKHO.data_frame.reset_index().melt(id_vars='index', var_name='x')\n Y4Ek = Zc6P.Chart(jQ3Z, title='Expression profile heatmap', width=400, height=300).mark_rect().encode(x=Zc6P.X('x:O', title='Conditions'), y=Zc6P.Y('index:O', title='Identifiers'), color='value:Q')\n retur...
[ "0.59039587", "0.56455153", "0.5481128", "0.53081", "0.51365846", "0.51097876", "0.50036764", "0.4994505", "0.49672034", "0.49165568", "0.49085763", "0.48952547", "0.48945478", "0.48714134", "0.4819694", "0.48103344", "0.4803633", "0.47728577", "0.47673544", "0.4752534", "0.4...
0.7004025
0
Heatmap of timeseries data.
def av_v(YKHO, **B2fa): return YKHO._obj.to_frame().vbt.ts_heatmap(**B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y4Ek(JbSN, WXkz):\n pass", "def av_v(YKHO, **B2fa):\n return YKHO._obj.transpose().iloc[::-1].vbt.heatmap(**B2fa)", "def Y4Ek(YKHO):\n Ud7_ = oyIN.array(YKHO.__data)\n cf3u.imshow(oyIN.flipud(Ud7_.T), extent=[YKHO.__tstart, YKHO.__tend, YKHO.__xstart, YKHO.__xend], aspect='auto', interpolation=...
[ "0.7504538", "0.73071563", "0.7248892", "0.69915247", "0.69069594", "0.67282355", "0.66718185", "0.6631721", "0.65882623", "0.65547204", "0.6508588", "0.6486333", "0.6441093", "0.6428473", "0.6399704", "0.63960195", "0.6366053", "0.6353484", "0.62923586", "0.62611115", "0.624...
0.69970304
3
Heatmap of timeseries data.
def av_v(YKHO, **B2fa): return YKHO._obj.transpose().iloc[::-1].vbt.heatmap(**B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y4Ek(JbSN, WXkz):\n pass", "def Y4Ek(YKHO):\n Ud7_ = oyIN.array(YKHO.__data)\n cf3u.imshow(oyIN.flipud(Ud7_.T), extent=[YKHO.__tstart, YKHO.__tend, YKHO.__xstart, YKHO.__xend], aspect='auto', interpolation='none')\n cf3u.ylabel('x')\n cf3u.xlabel('t')\n cf3u.colorbar(label='U')\n cf3u.sh...
[ "0.7504538", "0.7248892", "0.69970304", "0.69915247", "0.69069594", "0.67282355", "0.66718185", "0.6631721", "0.65882623", "0.65547204", "0.6508588", "0.6486333", "0.6441093", "0.6428473", "0.6399704", "0.63960195", "0.6366053", "0.6353484", "0.62923586", "0.62611115", "0.624...
0.73071563
1
Function to update beta distribution of bandit k
def QdZT(YKHO, WKvO: float, G1Hx: int): YKHO.alpha[G1Hx] += WKvO YKHO.beta[G1Hx] += 1 - WKvO YKHO.rewards[G1Hx] += WKvO YKHO.pull_rate[G1Hx] += 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qp7v(YKHO):\n YKHO.beta = YKHO.beta_scale * 2 * oyIN.log(YKHO.ndim * YKHO.number_design_points * oyIN.square(oyIN.pi) * oyIN.square(YKHO.iteration + 1) / (6 * YKHO.delta))", "def vHuH(YKHO):\n if YKHO.hypothesis == 'equality':\n YKHO.beta = YKHO._beta\n YKHO.power = 1 - YKHO.beta\n eli...
[ "0.7963814", "0.74839467", "0.74019796", "0.7395471", "0.73930967", "0.7363937", "0.7352454", "0.7146555", "0.7089952", "0.70765126", "0.7025225", "0.69685847", "0.6952471", "0.69236356", "0.69012856", "0.6898611", "0.6835666", "0.6831175", "0.6807333", "0.67859507", "0.67811...
0.6567904
33
Constructor for Normal Thompson Sampler. This Thompson Sampler is used if we believe the bandits are drawing from normal distribution, with known precision tau and unknown mean mu
def FIMM(YKHO, tqmL: list, jmzt=1.0): YKHO.bandits = tqmL nMvt = len(YKHO.bandits) YKHO.means = oyIN.random.randn(nMvt) YKHO.precisions = oyIN.ones(nMvt) YKHO.tau = jmzt YKHO.pull_rate = oyIN.zeros(nMvt) YKHO.rewards = oyIN.zeros(nMvt)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d39J(YKHO, qIxc):\n y906, bKZA = qIxc\n return uXlY(y906, bKZA, (YKHO.latent_cont_dim,))", "def FIMM(YKHO, yGTL, WTkW):\n YKHO.mu = yGTL\n YKHO.sigma = WTkW\n YKHO.generate = lambda: epAf.ceil(mhAC(yGTL, WTkW))", "def FIMM(YKHO, kTwQ: float, yGTL: float=0, WTkW: float=1, YuY9: float=None):\n...
[ "0.6036134", "0.60158086", "0.5977617", "0.5933997", "0.59248793", "0.5911971", "0.590877", "0.587323", "0.5863797", "0.58508724", "0.58498967", "0.5835755", "0.579631", "0.57770526", "0.5771105", "0.5769015", "0.5751808", "0.57181257", "0.5703432", "0.56972057", "0.5661508",...
0.6346274
0
Function to update beta distribution of bandit k
def QdZT(YKHO, WKvO: float, G1Hx: int): rhd_ = YKHO.precisions[G1Hx] YKHO.precisions[G1Hx] += YKHO.tau YKHO.means[G1Hx] = 1 / YKHO.precisions[G1Hx] * (YKHO.tau * WKvO + YKHO.means[G1Hx] * rhd_) YKHO.pull_rate[G1Hx] += 1 YKHO.rewards[G1Hx] += WKvO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qp7v(YKHO):\n YKHO.beta = YKHO.beta_scale * 2 * oyIN.log(YKHO.ndim * YKHO.number_design_points * oyIN.square(oyIN.pi) * oyIN.square(YKHO.iteration + 1) / (6 * YKHO.delta))", "def vHuH(YKHO):\n if YKHO.hypothesis == 'equality':\n YKHO.beta = YKHO._beta\n YKHO.power = 1 - YKHO.beta\n eli...
[ "0.7963814", "0.74839467", "0.74019796", "0.7395471", "0.73930967", "0.7363937", "0.7352454", "0.7146555", "0.7089952", "0.70765126", "0.7025225", "0.69685847", "0.6952471", "0.69236356", "0.69012856", "0.6898611", "0.6835666", "0.6831175", "0.6807333", "0.67859507", "0.67811...
0.0
-1
As the file name is not part of the Fortran standard, we apply very loose rules to what is valid. The only things we don't accept are an empty string or white space at the start or end of the string.
def Lo6O(FxRj): for vIwR in ['', ' ', ' x.inc', 'x.inc ', ' x.inc ']: with trZe.raises(LOjJ) as zK6_: bGrB = Lexi(vIwR) assert "Include_Filename: '{0}'".format(vIwR) in str(zK6_.value)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YzRu(KCHu):\n m3KK = [\"'\", '\"', '~', '#', '%', '&', '*', '{', '}', '\\\\', ':', '<', '>', '?', '/', '|', '.', ',', ';']\n if len(KCHu) == 0 or len(KCHu) > 50:\n return False\n if KCHu[0] == '_':\n return False\n for Z9rn in KCHu:\n if Z9rn in m3KK:\n return False\...
[ "0.75554985", "0.7186043", "0.7181644", "0.71306765", "0.6987546", "0.69644547", "0.69607717", "0.69278526", "0.69266933", "0.69018644", "0.68954885", "0.6870941", "0.68681157", "0.6866484", "0.67655003", "0.6753102", "0.670633", "0.6696791", "0.66872764", "0.66872764", "0.66...
0.0
-1
Getter for the transaction ID.
def id(YKHO): return YKHO._id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VkEM(YKHO):\n return YKHO._transaction_id", "def vkFH(YKHO):\n return YKHO._transaction_id", "def vkFH(YKHO):\n return YKHO._transaction_id", "def cUCe(YKHO):\n PjLF = YKHO._transactionId\n if YKHO._transactionId < Oh25.MAX_TRANSACTION_ID:\n YKHO._transactionId += 1\n else:\n ...
[ "0.8692186", "0.8624734", "0.85221666", "0.7722309", "0.74422294", "0.7342086", "0.7342086", "0.73006207", "0.7269495", "0.7268622", "0.72651196", "0.72595584", "0.7235208", "0.723378", "0.723378", "0.723378", "0.723378", "0.723378", "0.723378", "0.723378", "0.723378", "0.7...
0.0
-1
This default evaluation function just returns the score of the state. The score is the same one displayed in the Pacman GUI. This evaluation function is meant for use with adversarial search agents (not reflex agents).
def fHT3(rfNN): return rfNN.getScore()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fHT3(Ov5A):\n return Ov5A.getScore()", "def fHT3(Ov5A):\n return Ov5A.getScore()", "def fHT3(Ov5A):\n return Ov5A.getScore()", "def b7La(YKHO, QTBn):\n iBIi, oyg0, YPaw = QTBn\n return phK_(oyg0, iBIi)", "def fHT3(rfNN):\n return rfNN.getScore()", "def fHT3(rfNN: GameState):\n re...
[ "0.8075255", "0.80543035", "0.80543035", "0.79382104", "0.7678121", "0.7661832", "0.7643688", "0.7634644", "0.7594122", "0.7594122", "0.7594122", "0.7594122", "0.7594122", "0.7594122", "0.7594122", "0.7594122", "0.7594122", "0.7594122", "0.75034684", "0.74896246", "0.74896246...
0.755428
18
Request single confirmation. If the trade cannot be confirmed for some reason, a dialog pops up.
def Q4ty(cvfe): jR3G(cvfe, QbL8)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def confirm(YKHO, OaeV):\n pass", "def xWtr(YKHO):\n YKHO.ensure_one()\n YKHO.state = 'confirmed'", "def BGCr():\n YwFi.Confirm()", "def FR_8(YKHO):\n return YKHO.__swift.confirm()", "def g58e(IFGg):\n if IFGg == QbL8:\n HbIg = 'Do you really want to BO Confirm the trade(s)?'...
[ "0.7042758", "0.69440454", "0.68728983", "0.6868684", "0.6838632", "0.6798682", "0.67616147", "0.6711978", "0.67066276", "0.66983217", "0.66562074", "0.66562074", "0.6656145", "0.66286767", "0.6600588", "0.659604", "0.65796083", "0.6490534", "0.6489714", "0.646103", "0.645612...
0.65958804
16
Given a route, calculates the distance of the route with given List. Where List is all the distance values from each city.
def TgwQ(x1iM, PsCT): Ayfi = 0 for YRbF in range(len(PsCT)): Ayfi += x1iM[PsCT[YRbF - 1]][PsCT[YRbF]] return Ayfi
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fnEC(YKHO, VzLP: list):\n for KRd9, j5sA in enumerate(VzLP):\n Bjg7 = jth9.copy(SzBk)\n Bjg7.pop(KRd9)\n xXwN = dict()\n xXwN[j5sA['id']] = dict()\n for Btt3 in Bjg7:\n Ayfi = YKHO.calculateEuclideanDistance(j5sA, Btt3)\n xXwN[j5sA['id']][Btt3['id']] ...
[ "0.7492102", "0.74475235", "0.7424436", "0.72934335", "0.7011213", "0.6993174", "0.69636285", "0.693497", "0.6803555", "0.6781736", "0.6779364", "0.6713121", "0.6711605", "0.6502641", "0.6437442", "0.6209068", "0.61666226", "0.61632234", "0.61395407", "0.60949796", "0.6094622...
0.72801733
4
function that calculates the normalization constants of a matrix
def kY2P(EcVT): JBMS = oyIN.mean(EcVT, axis=0) M1Jx = oyIN.std(EcVT, axis=0) return (JBMS, M1Jx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kwsU(vb7U):\n return vb7U / oyIN.sum(vb7U ** 2, axis=1, keepdims=True)", "def kwsU(SppC):\n SppC = oyIN.array(SppC)\n chzl = (SppC - SppC.mean(axis=0)) / (SppC.max(axis=0) - SppC.min(axis=0))\n return chzl", "def gRCa(jzdc):\n riV5, k7Td, bGrB = jzdc.shape\n ZPmK = oyIN.zeros_like(jzdc)\n...
[ "0.7874109", "0.74857026", "0.7424976", "0.729765", "0.7266823", "0.72449803", "0.7231275", "0.7221727", "0.7211681", "0.7164353", "0.71625036", "0.71562463", "0.7150218", "0.7125365", "0.71252036", "0.7075824", "0.70735437", "0.7068181", "0.7057353", "0.70531976", "0.7052298...
0.701899
22
Return weights for Simpson's rule.
def s1vP(XOOk, jtyf, zhMh, pHXX, V70B, WL4f): lNm8 = zIDj(0.0, XOOk, jtyf, zhMh, pHXX, V70B, WL4f) Uf4h = zIDj(0.5, XOOk, jtyf, zhMh, pHXX, V70B, WL4f) q9mE = zIDj(1.0, XOOk, jtyf, zhMh, pHXX, V70B, WL4f) return (lNm8 + 4.0 * Uf4h + q9mE) / 6.0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wT46(YKHO):\n return YKHO.w", "def _mSQ(YKHO) -> oLG2.ndarray:\n if YKHO._weights is None:\n _mSQ = oLG2.ones((YKHO.num_measures,)) / YKHO.num_measures\n else:\n assert YKHO._weights.shape[0] == YKHO.num_measures\n _mSQ = YKHO._weights / oLG2.sum(YKHO._weights)\n if YKHO.debi...
[ "0.6770364", "0.67482483", "0.66618603", "0.66618603", "0.6638571", "0.6638571", "0.6617407", "0.66110784", "0.6597623", "0.65914637", "0.6565407", "0.6508256", "0.64714175", "0.64708006", "0.64708006", "0.64382833", "0.6434114", "0.64129704", "0.64127827", "0.6397982", "0.63...
0.0
-1
Make a keras model for a multilayer perceptron for binary classification.
def EPc3(ROaS, Wbxz=Wbxz, YDYE='relu', jEd_=None, b0Ix=0.0003, hUTg=3, rDAo=100, hr1G=0.0, W_oh=None): C3ST = bdPE.Sequential(name='mlp_binary') if jEd_ is not None: jEd_ = bdPE.initializers.Constant(jEd_) if W_oh is not None: W_oh = bdPE.regularizers.l2(W_oh) C3ST.add(bdPE.layers.Input(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jHYY(tpio):\n C3ST = ileL()\n C3ST.add(l6ZH(8, input_dim=tpio, activation='relu'))\n C3ST.add(l6ZH(4, activation='relu'))\n C3ST.add(l6ZH(1, activation='linear'))\n return C3ST", "def tvyQ():\n C3ST = bdPE.Sequential([bdPE.layers.Flatten(input_shape=(28, 28, 1)), bdPE.layers.Dropout(0.4), b...
[ "0.8074344", "0.7501424", "0.735476", "0.72575635", "0.7209702", "0.7169587", "0.7145872", "0.7102526", "0.71003425", "0.7093901", "0.7088411", "0.7068194", "0.7038613", "0.70285857", "0.7006019", "0.6990193", "0.69635236", "0.6963493", "0.6963445", "0.6948648", "0.6938754", ...
0.6715164
59
Adds generic ``__repr__()`` method to a declarative SQLAlchemy model. In case if some fields are not loaded from a database, it doesn't force their loading and instead repesents them as ````. In addition, user can provide field names as arguments to the decorator to specify what fields should present in the string repr...
def xdsb(*V_D6): if len(V_D6) == 1 and callable(V_D6[0]): pan_ = V_D6[0] pan_.__repr__ = lambda YKHO: Jlkf(YKHO, fields=None) return pan_ else: def mrMx(Emd4): Emd4.__repr__ = lambda YKHO: Jlkf(YKHO, fields=V_D6) return Emd4 return mrMx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wHJl(YKHO: BaseModel) -> str:\n sgKs = [f'{H5ew}={repr(BWXx)}' for H5ew, BWXx in YKHO.to_dict().items()]\n return f'{type(YKHO).__name__}({sgKs})'", "def wHJl(YKHO):\n Aofo = f'<{YKHO.__class__.__name__}\\n'\n for Jyyj in YKHO._meta.get_fields():\n if not Jyyj.concrete:\n contin...
[ "0.68324816", "0.6718228", "0.67144746", "0.6550121", "0.6499367", "0.6495527", "0.6477775", "0.64671475", "0.64311624", "0.6385953", "0.63746715", "0.627443", "0.6271272", "0.62257034", "0.62233186", "0.6200485", "0.61704046", "0.6123271", "0.61057925", "0.6104299", "0.60931...
0.7498938
0
Transform text string to string of lemmas using spacy.
def v_nw(YKHO, l5Ny): l5Ny = ''.join((Npgh for Npgh in l5Ny if Npgh.isalnum() or Npgh == ' ')) l5Ny = YKHO.nlp(l5Ny) dhx_ = ' '.join([eOtH.lemma_ for eOtH in l5Ny if eOtH.text not in jMRN]) return dhx_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LkXt(l5Ny):\n _dZy = []\n A97Q = f4R0(l5Ny)\n for GIN8 in A97Q:\n _dZy.append(GIN8.lemma_)\n return ' '.join(_dZy)", "def LkXt(l5Ny):\n _dZy = []\n A97Q = K9NE(l5Ny)\n for GIN8 in A97Q:\n _dZy.append(GIN8.lemma_)\n return ' '.join(_dZy)", "def cdIu(l5Ny):\n try:\n ...
[ "0.7687361", "0.7588993", "0.7496627", "0.74314433", "0.73691773", "0.73520154", "0.7329107", "0.72578436", "0.7175744", "0.71615916", "0.7122087", "0.7074018", "0.70096296", "0.70071167", "0.7003916", "0.7003815", "0.7003815", "0.6998143", "0.6976753", "0.68541557", "0.68354...
0.7256324
8
Class which computes kinematics on an object relative to the robots grip on it and a desired configuration
def FIMM(YKHO, JX8P, _kLJ, PIPm=1.0, mRLb=0.1, rFGk=None, STL8=None): if rFGk is None: rFGk = 'box/joint_states' YKHO.k_conf = PIPm YKHO.k_grip = mRLb YKHO._frame_tracker = JX8P YKHO.get_jacobian = YKHO._frame_tracker.compute_jacobian_matrix YKHO.configuration_ref = dYCO(_kLJ) YKHO.f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def drQ4(YKHO):\n YKHO.current_ee_se3 = YKHO.forward_kinematic(YKHO.current_configuration)\n YKHO.current_ee_xyz = YKHO.current_ee_se3[0:3, 3]\n YKHO.current_ee_rpy = YKHO.so3_to_rpy(YKHO.current_ee_se3[0:3, 0:3])\n YKHO.current_ee_pose = oyIN.concatenate((YKHO.current_ee_xyz, YKHO.current_ee_rpy), axi...
[ "0.67272204", "0.66742647", "0.638133", "0.6373969", "0.6335024", "0.62734693", "0.6263144", "0.6198996", "0.6197443", "0.6127056", "0.61241823", "0.61125", "0.6101031", "0.6091777", "0.6084437", "0.606052", "0.60531574", "0.6051744", "0.600397", "0.59703946", "0.59580785", ...
0.5538246
70
area method returns the rectangle area
def f0tD(YKHO): return YKHO.__width * YKHO.__height
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f0tD(YKHO):\n return (YKHO.x_max - YKHO.x_min) * (YKHO.y_max - YKHO.y_min)", "def f0tD(YKHO):\n f0tD = YKHO.__width * YKHO.__height\n return f0tD", "def f0tD(YKHO):\n f0tD = YKHO.length * YKHO.width\n return f0tD", "def f0tD(YKHO):\n return (YKHO.xmax - YKHO.xmin) * (YKHO.ymax - YKHO.ym...
[ "0.8499224", "0.84412926", "0.84213746", "0.83842766", "0.8383777", "0.8365788", "0.8365788", "0.8327485", "0.8280948", "0.82804024", "0.82804024", "0.8259872", "0.82456446", "0.8228625", "0.8225517", "0.8225517", "0.8225517", "0.8225517", "0.81901646", "0.81901646", "0.81901...
0.8213054
18
Load estimator pipeline from the given joblib file.
def eWUk(_PLx: str) -> Y0rt: zpx_ = GkAb(_PLx) / 'artifact.joblib' G5bf = k6eJ.load(zpx_) with g5R2.File(G5bf['model'], mode='r') as ytgA: g2Ui = uyMl(ytgA) nPIK = Y0rt([('preprocessor', G5bf['preprocessor_pipeline']), ('estimator', g2Ui)]) return nPIK
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qsJm(rjee, ByBU, Ux0P='estimator.pkl', x0hE=None):\n try:\n U9hK = gbPf.mkdtemp()\n pmON = kXry(Ux0P, rjee, ByBU, U9hK, client=x0hE)\n YEnM = k6eJ.load(pmON)\n finally:\n RDuA.rmtree(U9hK)\n return YEnM", "def AXOg(YKHO):\n from sklearn.externals import joblib\n YKH...
[ "0.75481796", "0.7400424", "0.72215426", "0.72215426", "0.7147975", "0.70250005", "0.70250005", "0.6975549", "0.67579216", "0.6721557", "0.67036575", "0.66632926", "0.6647786", "0.66015977", "0.65788954", "0.6551288", "0.65304565", "0.6500983", "0.6444843", "0.64248085", "0.6...
0.7278199
2
Test python_version not found.
def qfvl(YKHO, AZgw: MockerFixture) -> None: ftwu = AZgw.patch.object(THlp, 'run_command', return_value=['']) gNr5 = AZgw.patch(f'{e7m7}.Version') YEnM = THlp(FM6F(), client=FM6F()) assert not YEnM.python_version ftwu.assert_called_once_with('python --version', level=G9jH.DEBUG) gNr5.assert_not_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ljJD():\n assert HwRy.version_info[0] == 2", "def SI07(KcEq, NBAL):\n assert KcEq.check_output(slrA('python --version')) == NBAL\n return", "def ljJD():\n assert 2 == HwRy.version_info.major\n assert 7 == HwRy.version_info.minor", "def ljJD():\n assert HwRy.version_info.major == 3, 'Mus...
[ "0.8050659", "0.79897606", "0.78663623", "0.7859411", "0.7688472", "0.7676041", "0.7613329", "0.7482648", "0.7480007", "0.7459902", "0.7459367", "0.7450148", "0.7427431", "0.74043906", "0.7387754", "0.7366898", "0.7366898", "0.73438865", "0.73353356", "0.7299884", "0.72551835...
0.76214534
6
The dtype of this variable.
def yDqo(YKHO): return YKHO._dtype
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yDqo(YKHO) -> m1c7.DType:\n return YKHO._variable.dtype", "def yDqo(YKHO):\n return YKHO._dtype", "def yDqo(YKHO):\n return YKHO._dtype", "def yDqo(YKHO):\n return YKHO._dtype", "def yDqo(YKHO):\n return YKHO._dtype", "def yDqo(YKHO):\n return YKHO._dtype", "def yDqo(YKHO):\n r...
[ "0.91420686", "0.89502394", "0.89321464", "0.89321464", "0.89321464", "0.89321464", "0.89321464", "0.89321464", "0.89321464", "0.89321464", "0.89253235", "0.89130664", "0.8912379", "0.8873126", "0.8873126", "0.8873126", "0.8873126", "0.886912", "0.8858099", "0.88499504", "0.8...
0.8663523
36
The name of the handle for this variable.
def mWFP(YKHO): return YKHO._handle_name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q0HP(YKHO):\n return mo7u().__name__", "def mWFP(YKHO):\n return YKHO._nativePointer.name", "def mWFP(YKHO):\n if YKHO._name is None:\n if YKHO._function is not None:\n YKHO._name = aM69.BNGetVariableName(YKHO._function.handle, YKHO.to_BNVariable())\n return YKHO._name", "de...
[ "0.8054324", "0.72563493", "0.716244", "0.7104072", "0.7063767", "0.7013013", "0.7013013", "0.69979924", "0.6979807", "0.6979807", "0.6979807", "0.6979376", "0.6966174", "0.69536763", "0.69424844", "0.6939349", "0.6939349", "0.6939349", "0.6939349", "0.6939349", "0.6939349", ...
0.83290774
0
Reads the value of the variable. If the variable is in copyonread mode and `no_copy` is True, the variable is converted to copyonwrite mode before it is read.
def iYA8(YKHO, tywr=False): ekdS(YKHO) def sqih(tywr): if tywr and hRVx.forward_compatible(2022, 5, 3): ViL3.disable_copy_on_read(YKHO.handle) Aofo = ViL3.read_variable_op(YKHO.handle, YKHO._dtype) sg2w(YKHO._dtype, YKHO.handle, Aofo) return Aofo if getattr(YKHO,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Hws0(YKHO):\n with IPme.name_scope('Read'):\n BWXx = YKHO._read_variable_op(no_copy=True)\n return _WqI.identity(BWXx)", "def Ueki(YKHO):\n YKHO.__lock.acquire()\n if YKHO.__value is None:\n YKHO.__condition.wait()\n _h_a = YKHO.__value\n YKHO.__lock.release()\n return _h_a...
[ "0.7526016", "0.6337825", "0.626534", "0.6125395", "0.6124647", "0.6124647", "0.6110787", "0.6087564", "0.6086292", "0.59793204", "0.5885465", "0.5879449", "0.56994003", "0.56725365", "0.563358", "0.5627742", "0.55975944", "0.5550435", "0.5543601", "0.5482907", "0.5451113", ...
0.7452078
1
Assigns a new value to this variable.
def bD1G(YKHO, BWXx, Wxok=None, mWFP=None, _h_a=True): with Oqib(YKHO.handle): oubD = IPme.convert_to_tensor(BWXx, dtype=YKHO.dtype) if not YKHO._shape.is_compatible_with(oubD.shape): if YKHO.name is None: AzER = '' else: AzER = ' ' + str(YKHO....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bD1G(YKHO, BWXx):\n YKHO.value = BWXx\n return YKHO", "def BxPW(YKHO, SRYB, wEf2):\n YKHO.vars[SRYB] = wEf2", "def set(YKHO, BWXx):\n YKHO.var.set(BWXx)", "def set(YKHO, BWXx):\n BWXx = YKHO.validate_value(BWXx)\n YKHO.var.set(BWXx)", "def bD1G(YKHO, cAlv, nfKA):\n cAlv.value = nfK...
[ "0.793699", "0.7845217", "0.76312906", "0.7480386", "0.74772793", "0.7461455", "0.73031616", "0.7093552", "0.70924544", "0.7075841", "0.7052867", "0.70474166", "0.70311224", "0.70126235", "0.7007098", "0.6977721", "0.6977721", "0.69558084", "0.69477946", "0.69214106", "0.6882...
0.672526
30
Multiply this variable by `tf.IndexedSlices`.
def urzW(YKHO, dqV0, Wxok=False, mWFP=None): if not isinstance(dqV0, xulL.IndexedSlices): raise TypeError(f'Argument `sparse_delta` must be a `tf.IndexedSlices`. Received arg: {dqV0}') return YKHO._lazy_read(ViL3.resource_scatter_mul(YKHO.handle, dqV0.indices, IPme.convert_to_tensor(dqV0.values, YKHO.dt...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Jw_R(YKHO, xEai: LinOp, tTee: TensorView) -> PCRu:\n pass", "def v756(YKHO) -> oyIN.ndarray:\n return nvKS(YKHO._n_var, YKHO._order)", "def E_tF(YKHO, *qIxc):\n return KFJf.indx1___mul__(YKHO, *qIxc)", "def E_tF(YKHO, *qIxc):\n return KFJf.indx3___mul__(YKHO, *qIxc)", "def AdrB(YKHO, xEai: ...
[ "0.6406415", "0.6207781", "0.61798906", "0.6104657", "0.6047685", "0.59725225", "0.597017", "0.59600765", "0.5853419", "0.5737165", "0.5732006", "0.57110524", "0.5703931", "0.56937754", "0.5682864", "0.56652683", "0.56339127", "0.5631997", "0.5622822", "0.56173265", "0.561375...
0.5414471
42
Divide this variable by `tf.IndexedSlices`.
def SNsx(YKHO, dqV0, Wxok=False, mWFP=None): if not isinstance(dqV0, xulL.IndexedSlices): raise TypeError(f'Argument `sparse_delta` must be a `tf.IndexedSlices`. Received arg: {dqV0}') return YKHO._lazy_read(ViL3.resource_scatter_div(YKHO.handle, dqV0.indices, IPme.convert_to_tensor(dqV0.values, YKHO.dt...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dShr(YKHO, hkxX):\n return YKHO._index_wrapper('divide', hkxX)", "def spg5(*qIxc, **B2fa) -> ht2j.Tensor:\n return C9ch(*qIxc, op=lambda jzdc, Fg_i: jzdc / Fg_i, **B2fa)", "def hFiK(YKHO, xEai: LinOp, tTee: TensorView) -> PCRu:\n pass", "def SsnI(YKHO, nV0F: int) -> 'ComplexMultivarTaylor':\n ...
[ "0.5806069", "0.56767386", "0.55960864", "0.5462157", "0.5449136", "0.54305184", "0.5393353", "0.53867286", "0.5369278", "0.53686464", "0.53568393", "0.53367466", "0.5290132", "0.5198837", "0.51911587", "0.5174873", "0.51281035", "0.51263815", "0.5121767", "0.51168", "0.50798...
0.49325833
30
Assigns `tf.IndexedSlices` to this variable batchwise. Analogous to `batch_gather`. This assumes that this variable and the sparse_delta IndexedSlices have a series of leading dimensions that are the same for all of them, and the updates are performed on the last dimension of
def UeSz(YKHO, dqV0, Wxok=False, mWFP=None): if not isinstance(dqV0, xulL.IndexedSlices): raise TypeError(f'Argument `sparse_delta` must be a `tf.IndexedSlices`. Received arg: {dqV0}') return YKHO._lazy_read(PeSp.batch_scatter_update(YKHO, dqV0.indices, dqV0.values, use_locking=Wxok, name=mWFP))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lMJH(YKHO):\n GE81 = ZylS.constant(0, dtype=ZylS.int64)\n HB3_ = ZylS.constant(0, dtype=ZylS.int64)\n Gexk = ZylS.TensorArray(ZylS.int64, size=iEwV, dynamic_size=True, element_shape=None, infer_shape=False)\n sXZg = ZylS.TensorArray(ZylS.int64, size=iEwV, dynamic_size=True, element_shape=None, infe...
[ "0.6731881", "0.66001874", "0.64943993", "0.63605064", "0.6229339", "0.60807383", "0.6036706", "0.5926286", "0.5926286", "0.58815676", "0.5872587", "0.5714803", "0.5696747", "0.56869113", "0.5551102", "0.55477554", "0.5541242", "0.55070496", "0.54933506", "0.54908955", "0.548...
0.6588556
2
Applies sparse subtraction to individual values or slices in a Variable. `ref` is a `Tensor` with rank `P` and `indices` is a `Tensor` of rank `Q`. `indices` must be integer tensor, containing indices into `ref`. It must be shape `[d_0, ..., d_{Q2}, K]` where `0 < K <= P`. The innermost dimension of `indices` (with len...
def mh4n(YKHO, _0VL, Vhxs, mWFP=None): return YKHO._lazy_read(iJtr.resource_scatter_nd_sub(YKHO.handle, _0VL, IPme.convert_to_tensor(Vhxs, YKHO.dtype), name=mWFP))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def J7N6(Gnc6, iArr, ohua, oZQQ):\n for d6pt in oZQQ:\n BWXx = Gnc6[d6pt]\n ohua[d6pt] = BWXx - iArr[d6pt]\n return ohua", "def e_S0(vhpA, _0VL, Vhxs, mWFP=None):\n _0VL = uBcD(_0VL)\n vhpA = uBcD(vhpA)\n Vhxs = uBcD(Vhxs)\n _0VL = tuple((_0VL[..., YRbF] for YRbF in range(_0VL.sha...
[ "0.5508157", "0.5506063", "0.5428513", "0.5425371", "0.5324512", "0.53207564", "0.53026485", "0.52912456", "0.52912456", "0.5226188", "0.5205371", "0.51788497", "0.51345843", "0.51313287", "0.51107776", "0.50936633", "0.50544906", "0.50483483", "0.5042677", "0.49986732", "0.4...
0.5327453
4
Returns True if `spec_or_value` is compatible with this `VariableSpec`. `spec_or_value` is considered to be compatible with this `VariableSpec` if `spec_or_value` is a `Variable` or `VariableSpec`, their shapes are compatible, their dtypes are the same, they are both trainable or not trainable. they share the same alia...
def BBeS(YKHO, v1fe): if not isinstance(v1fe, (type(YKHO), YKHO.value_type)): return False qTJV = YKHO.shape.is_compatible_with(v1fe.shape) and YKHO.dtype == v1fe.dtype and (YKHO.trainable == v1fe.trainable) if isinstance(v1fe, type(YKHO)): return qTJV and YKHO.alias_id == v1fe.alias_id ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mqgR(YKHO, Cqok):\n if YKHO._toolchain and Cqok.toolchain:\n if YKHO._toolchain != Cqok.toolchain:\n HAfn = YKHO._toolchain.split('-')\n M1MA = Cqok.toolchain.split('-')\n if HAfn[0] != M1MA[0]:\n return False\n if len(HAfn) > 1 and len(M1MA)...
[ "0.5782437", "0.557021", "0.5496757", "0.5496723", "0.547197", "0.5464825", "0.54464704", "0.5440302", "0.5434872", "0.54053575", "0.5399794", "0.5399072", "0.53739464", "0.5366654", "0.53231263", "0.5272013", "0.5225635", "0.5222719", "0.522104", "0.51816833", "0.5162754", ...
0.8708512
0
turns rows of lists to a list of dictionaries. Each dictionary will map field name to the value associated with it in that row
def LBNI(YKHO): LBNI = [] FcEx = TIXd(YKHO.fields) for rdlD in YKHO.rows: fHgE = dict() for mWFP, d6pt in FcEx.items(): fHgE[mWFP] = rdlD[d6pt] LBNI.append(fHgE) return LBNI
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Kzso(V_D6, AvyM, usx6):\n U5bT = []\n for rdlD in usx6:\n cn7V = {}\n for YRbF in range(len(V_D6)):\n pHfu(V_D6, YRbF, rdlD, AvyM, cn7V)\n U5bT.append(cn7V)\n return U5bT", "def MNRr(V_D6, rdlD):\n assert len(V_D6) == len(rdlD)\n return {Jyyj.name: BWXx for Jyyj...
[ "0.7975074", "0.773175", "0.7232197", "0.7110932", "0.70784307", "0.6940087", "0.6807592", "0.66388184", "0.66257864", "0.6623049", "0.65569055", "0.6551367", "0.6520404", "0.6514198", "0.651224", "0.65074414", "0.64621824", "0.64311373", "0.6418729", "0.63912416", "0.6345287...
0.68522066
6
Return a list of installed dependencies.
def UxtD(YKHO): fUpG = YKHO._pkg.CurrentVer if fUpG is None: return [] return YKHO._getDependencies(fUpG)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QY9O(YKHO):\n PyZX = []\n for AXVu in YKHO.repository_dependencies:\n if AXVu.status == YKHO.installation_status.INSTALLED:\n PyZX.append(AXVu)\n return PyZX", "def qz35(YKHO):\n raise NotImplementedError", "def E4CQ() -> list[str]:\n sjXb = list(pa4n().dependencies.keys())...
[ "0.7870178", "0.78324306", "0.7828657", "0.77963746", "0.7783492", "0.7534158", "0.7534158", "0.75287867", "0.7512199", "0.74703115", "0.73922426", "0.73882407", "0.7383542", "0.7375545", "0.73732126", "0.73570037", "0.73404866", "0.73329157", "0.73210436", "0.7306956", "0.72...
0.86377525
0
Return the source package name as string.
def qcCy(YKHO): if not YKHO._lookupRecord(): if not YKHO._lookupRecord(False): return YKHO._pkg.Name zZcM = YKHO._records.SourcePkg if zZcM != '': return zZcM else: return YKHO._pkg.Name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _9jk(YKHO) -> str:\n pass", "def rPj_(YKHO):\n yR_P = HwRy.modules[YKHO.__module__]\n hxGQ = yR_P.__package__\n return hxGQ", "def yj5T(YKHO):\n if YKHO.package_name is None:\n YKHO.package_name = YKHO.get_androguard_analysis().a.get_package()\n return YKHO.package_name", "def V9...
[ "0.77688295", "0.7643795", "0.75437635", "0.754365", "0.75410235", "0.7470231", "0.73840004", "0.733096", "0.7304023", "0.7253808", "0.722896", "0.717456", "0.7130291", "0.71072906", "0.71072906", "0.71072906", "0.71072906", "0.71020937", "0.70126206", "0.6989449", "0.6972797...
0.84249413
0
Map a function over a list and concatenate the results.
def _MfV(JfyU, WhY1): return PWgb(JaxB(JfyU, WhY1))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _MfV(eHNT, fUYa):\n yvT9 = []\n for WKvO in fUYa:\n yvT9.extend(eHNT(WKvO))\n return yvT9", "def M_t2(sJLK, bCES):\n return [sJLK(ZfUD) for ZfUD in bCES]", "def map(vm1a, ybN4):\n Aofo = []\n for WKvO in ybN4:\n Aofo = Aofo + [vm1a(WKvO)]\n return Aofo", "def XqC_(eHNT,...
[ "0.7965884", "0.77569413", "0.74572146", "0.7148184", "0.7081921", "0.69845796", "0.6984533", "0.6984533", "0.69653624", "0.69539183", "0.69228065", "0.6908467", "0.68444824", "0.6815943", "0.6811287", "0.6803415", "0.67495435", "0.6707299", "0.66187304", "0.66137207", "0.656...
0.7772535
1
Take the nth element in iterator.
def rrff(WhY1, exwG): return uOgj(WhY1, exwG, None).next()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _J4B(oHE7, exwG):\n return next(uOgj(oHE7, exwG, None))", "def _J4B(OxJJ, exwG, WmM4=None):\n return next(zhES.islice(OxJJ, exwG, None), WmM4)", "def _J4B(OxJJ, exwG, WmM4=None):\n return next(uOgj(OxJJ, exwG, None), WmM4)", "def _J4B(OxJJ, exwG, WmM4=None):\n return next(uOgj(OxJJ, exwG, Non...
[ "0.8595455", "0.79678047", "0.7949258", "0.79133", "0.77872634", "0.76144487", "0.7523989", "0.75099814", "0.7396415", "0.7143234", "0.7103623", "0.70575696", "0.7008761", "0.70057696", "0.70057696", "0.68813103", "0.68355834", "0.67605793", "0.6703031", "0.6687219", "0.66265...
0.76920086
5
Quaternion should have a correct string representation.
def Dt2g(YKHO): YKHO.assertEqual(YKHO.quat_unnormalized.__str__(), YKHO.rnd_array.__str__())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return 'Quaternion (%s, %f)' % (YKHO.v, YKHO.w)", "def DXuT(s9iy):\n vexM = V2xT.quaternion(s9iy)\n yt3G = R5H8()\n yt3G.w, yt3G.x, yt3G.y, yt3G.z = vexM\n return yt3G", "def zAg0(YKHO):\n Ebev = ', '.join(['w: ' + str(YKHO.w), 'x: ' + str(YKHO.x), 'y: ' + str(YKHO.y), 'z: '...
[ "0.7510129", "0.68318135", "0.6819833", "0.6593928", "0.65778506", "0.6469049", "0.6438876", "0.63810307", "0.63486904", "0.6333149", "0.6319183", "0.630179", "0.6297265", "0.6291198", "0.6265234", "0.62555414", "0.6253838", "0.6246889", "0.6222553", "0.6220594", "0.6207482",...
0.660638
3
Quaternion should have a correct string representation.
def H4zp(YKHO): YKHO.assertEqual(YKHO.quat_unnormalized.__repr__(), YKHO.rnd_array.__str__())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return 'Quaternion (%s, %f)' % (YKHO.v, YKHO.w)", "def DXuT(s9iy):\n vexM = V2xT.quaternion(s9iy)\n yt3G = R5H8()\n yt3G.w, yt3G.x, yt3G.y, yt3G.z = vexM\n return yt3G", "def zAg0(YKHO):\n Ebev = ', '.join(['w: ' + str(YKHO.w), 'x: ' + str(YKHO.x), 'y: ' + str(YKHO.y), 'z: '...
[ "0.75107807", "0.68318254", "0.68202245", "0.6606895", "0.659375", "0.65775955", "0.6468873", "0.643946", "0.6381268", "0.63489884", "0.63334817", "0.63197416", "0.6301813", "0.62973225", "0.6291464", "0.6265745", "0.62562656", "0.62538964", "0.6247777", "0.6222614", "0.62216...
0.55890334
78
Quaternions should give correct norm.
def dPu6(YKHO): CkYf = pEuX.norm(YKHO.rnd_array) YKHO.assertEqual(CkYf, YKHO.quat_unnormalized.norm())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NkkI(vexM):\n return vexM / epAf.sqrt(ICpx(vexM, vexM))", "def ZUWr(vexM):\n return vexM / oyIN.linalg.norm(vexM)", "def CkYf(YKHO):\n return gQS9.quatern_norm(YKHO)", "def CkYf(YKHO):\n return oyIN.sqrt(oyIN.sum(YKHO.quat ** 2))", "def CkYf(YKHO):\n assert YKHO.q_rot.norm() > 1e-08, 'Du...
[ "0.7526294", "0.7122419", "0.68813235", "0.68100184", "0.66976744", "0.6697567", "0.66418636", "0.6559638", "0.65387684", "0.6528354", "0.6465328", "0.64652395", "0.6341673", "0.6341562", "0.63247406", "0.6322723", "0.6312482", "0.6307979", "0.62950224", "0.62900287", "0.6286...
0.6888168
2
Quaternion rotation matrix orthogonality
def N8qk(YKHO): YKHO.assertTrue(oyIN.allclose(YKHO.mat2.dot(YKHO.mat2.T), oyIN.identity(3, dtype=float)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TgwH(A3Vt):\n vexM = ht2j.empty(4, dtype=A3Vt.dtype)\n A3Vt = ht2j.t(A3Vt)\n if A3Vt[2, 2] < 0:\n if A3Vt[0, 0] > A3Vt[1, 1]:\n a1PO = 1 + A3Vt[0, 0] - A3Vt[1, 1] - A3Vt[2, 2]\n vexM[:] = ht2j.tensor([A3Vt[1, 2] - A3Vt[2, 1], a1PO, A3Vt[0, 1] + A3Vt[1, 0], A3Vt[2, 0] + A3V...
[ "0.7346498", "0.70973647", "0.69493943", "0.6916807", "0.68719316", "0.68414456", "0.67427605", "0.67382216", "0.6737428", "0.67040485", "0.6655973", "0.6654374", "0.66265446", "0.6613717", "0.66030604", "0.65691334", "0.65647256", "0.6548757", "0.65403867", "0.65253127", "0....
0.0
-1
Quaternion should return a correct sequence of zyz representation in the case of rotations when there is only one nonzero Euler angle.
def GvLC(YKHO): BWy6 = 0.123456789 ALRP = kNP1(BWy6, 'z') YKHO.assertTrue(oyIN.allclose(ALRP.to_zyz(), oyIN.array([BWy6, 0, 0])))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ow2Y():\n _Jov = a8Pe.euler_to_quaternion(oyIN.pi / 2, 0.0, 0.0)\n assert oyIN.allclose(_Jov, VIcB.quatz90)", "def l44l():\n _Jov = a8Pe.angle_axis_to_quaternion(VIcB.vecz, oyIN.pi / 2)\n assert oyIN.allclose(_Jov, VIcB.quatz90)", "def UwIP():\n _Jov = a8Pe.euler_to_quaternion(0.0, 0.0, oyIN...
[ "0.76492715", "0.7437558", "0.72756314", "0.7256649", "0.7224084", "0.7206306", "0.71760684", "0.7138313", "0.7101273", "0.71008795", "0.69995064", "0.69933903", "0.6977317", "0.6971713", "0.6967949", "0.6966127", "0.69489706", "0.6886297", "0.68816876", "0.68597794", "0.6848...
0.73478395
2
cast(itkLightObject obj) > itkCurvatureAnisotropicDiffusionImageFilterID2ID2
def YWvJ(*qIxc): return UIG0.itkCurvatureAnisotropicDiffusionImageFilterID2ID2_cast(*qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qOxA(YEnM: 'itkLightObject') -> 'itkMinMaxCurvatureFlowImageFilterIF2IF2 *':\n return Ysoh.itkMinMaxCurvatureFlowImageFilterIF2IF2_cast(YEnM)", "def YWvJ(YEnM: 'itkLightObject') -> 'itkMinMaxCurvatureFlowImageFilterIF2IF2 *':\n return Ysoh.itkMinMaxCurvatureFlowImageFilterIF2IF2_cast(YEnM)", "def YWv...
[ "0.80331904", "0.79467887", "0.7775989", "0.77202517", "0.7665168", "0.76196724", "0.7611875", "0.76050204", "0.7597484", "0.75955313", "0.75855297", "0.7580824", "0.7549424", "0.7529876", "0.75288707", "0.7526674", "0.75263005", "0.75205964", "0.75126696", "0.74849415", "0.7...
0.7147224
88
New() > itkCurvatureAnisotropicDiffusionImageFilterID2ID2 Create a new object of the class itkCurvatureAnisotropicDiffusionImageFilterID2ID2 and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new obje...
def oW_4(*qIxc, **PECO): YEnM = DVQ0.__New_orig__() import itkTemplate itkTemplate.New(YEnM, *qIxc, **PECO) return YEnM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oW_4(*qIxc, **PECO):\n YEnM = WPLN.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM", "def oW_4(*qIxc, **PECO):\n YEnM = ZMCF.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM", "def oW_4(*qIxc, **PECO):\...
[ "0.8137485", "0.79896456", "0.77568144", "0.7527325", "0.75184345", "0.74831545", "0.7404884", "0.7404632", "0.732704", "0.73184305", "0.73024887", "0.72827566", "0.72735316", "0.7270758", "0.7270717", "0.725769", "0.7239666", "0.7238755", "0.72290194", "0.7223415", "0.718207...
0.81942785
0
itkCurvatureAnisotropicDiffusionImageFilterID2ID2_cast(itkLightObject obj) > itkCurvatureAnisotropicDiffusionImageFilterID2ID2
def ik1S(*qIxc): return UIG0.itkCurvatureAnisotropicDiffusionImageFilterID2ID2_cast(*qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qOxA(YEnM: 'itkLightObject') -> 'itkMinMaxCurvatureFlowImageFilterIF2IF2 *':\n return Ysoh.itkMinMaxCurvatureFlowImageFilterIF2IF2_cast(YEnM)", "def APmK(*qIxc):\n return UIG0.itkCurvatureAnisotropicDiffusionImageFilterIF2IF2_cast(*qIxc)", "def YWvJ(YEnM: 'itkLightObject') -> 'itkMinMaxCurvatureFlowI...
[ "0.8481575", "0.8368479", "0.8099344", "0.78513783", "0.78476894", "0.7814811", "0.7778978", "0.7764832", "0.77242607", "0.77081835", "0.7686303", "0.7666411", "0.76287633", "0.7576779", "0.7565327", "0.7562328", "0.7559526", "0.75559366", "0.75521314", "0.75391084", "0.75374...
0.83980775
1
cast(itkLightObject obj) > itkCurvatureAnisotropicDiffusionImageFilterID3ID3
def YWvJ(*qIxc): return UIG0.itkCurvatureAnisotropicDiffusionImageFilterID3ID3_cast(*qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YWvJ(YEnM: 'itkLightObject') -> 'itkMinMaxCurvatureFlowImageFilterIF3IF3 *':\n return Ysoh.itkMinMaxCurvatureFlowImageFilterIF3IF3_cast(YEnM)", "def vOYE(YEnM: 'itkLightObject') -> 'itkMinMaxCurvatureFlowImageFilterIF3IF3 *':\n return Ysoh.itkMinMaxCurvatureFlowImageFilterIF3IF3_cast(YEnM)", "def YWv...
[ "0.80247706", "0.7980967", "0.79363334", "0.79092443", "0.78886414", "0.7843627", "0.78266656", "0.78116256", "0.78114986", "0.7805103", "0.77870345", "0.7784122", "0.77796036", "0.7766345", "0.7750719", "0.77465576", "0.77434766", "0.7734575", "0.7733704", "0.7730987", "0.77...
0.7276562
93
New() > itkCurvatureAnisotropicDiffusionImageFilterID3ID3 Create a new object of the class itkCurvatureAnisotropicDiffusionImageFilterID3ID3 and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new obje...
def oW_4(*qIxc, **PECO): YEnM = AH4s.__New_orig__() import itkTemplate itkTemplate.New(YEnM, *qIxc, **PECO) return YEnM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oW_4(*qIxc, **PECO):\n YEnM = gxLu.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM", "def oW_4(*qIxc, **PECO):\n YEnM = pByZ.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM", "def oW_4(*qIxc, **PECO):\...
[ "0.82977235", "0.814209", "0.8066992", "0.76928705", "0.7634566", "0.7611419", "0.75925004", "0.75051224", "0.7455385", "0.7453112", "0.7440737", "0.7383187", "0.7352982", "0.73478174", "0.7322315", "0.7297235", "0.72924703", "0.72908276", "0.7284845", "0.72755706", "0.727428...
0.82968855
1
itkCurvatureAnisotropicDiffusionImageFilterID3ID3_cast(itkLightObject obj) > itkCurvatureAnisotropicDiffusionImageFilterID3ID3
def vEgs(*qIxc): return UIG0.itkCurvatureAnisotropicDiffusionImageFilterID3ID3_cast(*qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vOYE(YEnM: 'itkLightObject') -> 'itkMinMaxCurvatureFlowImageFilterIF3IF3 *':\n return Ysoh.itkMinMaxCurvatureFlowImageFilterIF3IF3_cast(YEnM)", "def ebNq(*qIxc):\n return UIG0.itkCurvatureAnisotropicDiffusionImageFilterIF3IF3_cast(*qIxc)", "def YWvJ(YEnM: 'itkLightObject') -> 'itkMinMaxCurvatureFlowI...
[ "0.85376906", "0.85025287", "0.8287922", "0.8081846", "0.8026007", "0.8006448", "0.7999216", "0.79911345", "0.7987933", "0.7978401", "0.797645", "0.79760903", "0.79755914", "0.7953604", "0.792031", "0.7914552", "0.79092467", "0.7908466", "0.7901762", "0.7886753", "0.786278", ...
0.84974366
2
cast(itkLightObject obj) > itkCurvatureAnisotropicDiffusionImageFilterIF2IF2
def YWvJ(*qIxc): return UIG0.itkCurvatureAnisotropicDiffusionImageFilterIF2IF2_cast(*qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qOxA(YEnM: 'itkLightObject') -> 'itkMinMaxCurvatureFlowImageFilterIF2IF2 *':\n return Ysoh.itkMinMaxCurvatureFlowImageFilterIF2IF2_cast(YEnM)", "def YWvJ(YEnM: 'itkLightObject') -> 'itkMinMaxCurvatureFlowImageFilterIF2IF2 *':\n return Ysoh.itkMinMaxCurvatureFlowImageFilterIF2IF2_cast(YEnM)", "def YWv...
[ "0.81387633", "0.80956614", "0.7806403", "0.77107054", "0.7708595", "0.76195854", "0.7613297", "0.7595906", "0.7589568", "0.7566397", "0.75352865", "0.7533166", "0.7529495", "0.752573", "0.7519319", "0.75083905", "0.7475198", "0.7467555", "0.7464108", "0.74527", "0.7451053", ...
0.71276224
86
New() > itkCurvatureAnisotropicDiffusionImageFilterIF2IF2 Create a new object of the class itkCurvatureAnisotropicDiffusionImageFilterIF2IF2 and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new obje...
def oW_4(*qIxc, **PECO): YEnM = ZMCF.__New_orig__() import itkTemplate itkTemplate.New(YEnM, *qIxc, **PECO) return YEnM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oW_4(*qIxc, **PECO):\n YEnM = KMjD.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM", "def oW_4(*qIxc, **PECO):\n YEnM = DVQ0.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM", "def oW_4(*qIxc, **PECO):\...
[ "0.8075853", "0.80620885", "0.8040574", "0.7740009", "0.76236415", "0.7496559", "0.74612504", "0.74340415", "0.7422701", "0.7420952", "0.7420952", "0.7419667", "0.74181104", "0.73942", "0.73923135", "0.73869175", "0.73841375", "0.73831964", "0.73706084", "0.7360811", "0.73594...
0.8215164
0
itkCurvatureAnisotropicDiffusionImageFilterIF2IF2_cast(itkLightObject obj) > itkCurvatureAnisotropicDiffusionImageFilterIF2IF2
def APmK(*qIxc): return UIG0.itkCurvatureAnisotropicDiffusionImageFilterIF2IF2_cast(*qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qOxA(YEnM: 'itkLightObject') -> 'itkMinMaxCurvatureFlowImageFilterIF2IF2 *':\n return Ysoh.itkMinMaxCurvatureFlowImageFilterIF2IF2_cast(YEnM)", "def YWvJ(YEnM: 'itkLightObject') -> 'itkMinMaxCurvatureFlowImageFilterIF2IF2 *':\n return Ysoh.itkMinMaxCurvatureFlowImageFilterIF2IF2_cast(YEnM)", "def ik1...
[ "0.8659923", "0.8362847", "0.80071366", "0.7896514", "0.7879891", "0.78307045", "0.7803093", "0.7785474", "0.7780632", "0.7730291", "0.7708003", "0.7684953", "0.76779485", "0.76024216", "0.75914824", "0.7587925", "0.75813437", "0.7559297", "0.7552974", "0.7542352", "0.752538"...
0.8471375
1
cast(itkLightObject obj) > itkCurvatureAnisotropicDiffusionImageFilterIF3IF3
def YWvJ(*qIxc): return UIG0.itkCurvatureAnisotropicDiffusionImageFilterIF3IF3_cast(*qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YWvJ(YEnM: 'itkLightObject') -> 'itkMinMaxCurvatureFlowImageFilterIF3IF3 *':\n return Ysoh.itkMinMaxCurvatureFlowImageFilterIF3IF3_cast(YEnM)", "def vOYE(YEnM: 'itkLightObject') -> 'itkMinMaxCurvatureFlowImageFilterIF3IF3 *':\n return Ysoh.itkMinMaxCurvatureFlowImageFilterIF3IF3_cast(YEnM)", "def YWv...
[ "0.8098946", "0.8049438", "0.79443353", "0.78488755", "0.78303635", "0.7826119", "0.78181523", "0.7808023", "0.78046554", "0.77746063", "0.77521163", "0.7733115", "0.77295685", "0.7728904", "0.77284634", "0.77007663", "0.76748055", "0.76657414", "0.7663015", "0.766043", "0.76...
0.7281945
73
New() > itkCurvatureAnisotropicDiffusionImageFilterIF3IF3 Create a new object of the class itkCurvatureAnisotropicDiffusionImageFilterIF3IF3 and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new obje...
def oW_4(*qIxc, **PECO): YEnM = pByZ.__New_orig__() import itkTemplate itkTemplate.New(YEnM, *qIxc, **PECO) return YEnM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oW_4(*qIxc, **PECO):\n YEnM = F80S.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM", "def oW_4(*qIxc, **PECO):\n YEnM = gxLu.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM", "def oW_4(*qIxc, **PECO):\...
[ "0.8325594", "0.817329", "0.8123971", "0.80027103", "0.78003114", "0.769271", "0.7600451", "0.7600451", "0.75798935", "0.75778896", "0.7559025", "0.7550301", "0.7545813", "0.75413114", "0.75401825", "0.7529179", "0.7501716", "0.74971735", "0.74602014", "0.7446978", "0.7445510...
0.8316426
1
itkCurvatureAnisotropicDiffusionImageFilterIF3IF3_cast(itkLightObject obj) > itkCurvatureAnisotropicDiffusionImageFilterIF3IF3
def ebNq(*qIxc): return UIG0.itkCurvatureAnisotropicDiffusionImageFilterIF3IF3_cast(*qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vOYE(YEnM: 'itkLightObject') -> 'itkMinMaxCurvatureFlowImageFilterIF3IF3 *':\n return Ysoh.itkMinMaxCurvatureFlowImageFilterIF3IF3_cast(YEnM)", "def YWvJ(YEnM: 'itkLightObject') -> 'itkMinMaxCurvatureFlowImageFilterIF3IF3 *':\n return Ysoh.itkMinMaxCurvatureFlowImageFilterIF3IF3_cast(YEnM)", "def vEg...
[ "0.8718739", "0.84752166", "0.8256573", "0.8148292", "0.81306005", "0.8100845", "0.80897677", "0.8075931", "0.8061337", "0.80483365", "0.8027667", "0.800223", "0.79989964", "0.7988722", "0.79678565", "0.7964553", "0.7946768", "0.7912805", "0.7908684", "0.7899699", "0.7887431"...
0.86495703
1
Smoothing by exponential moving average
def gyoy(hT1Q, p7zy): XVAW = hT1Q[0] DF_z = [] for AU8u in hT1Q: ua82 = XVAW * p7zy + (1 - p7zy) * AU8u DF_z.append(ua82) XVAW = ua82 return oyIN.array(DF_z)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rIP3(YKHO, dy_H, Cwt5):\n _mSQ = oyIN.array([(1 - Cwt5) ** YRbF for YRbF in range(YKHO.window)])\n return (dy_H.ix[-YKHO.window:] * _mSQ).sum()", "def pzqv(nPrm, Cwt5):\n return nPrm.ewm(alpha=Cwt5).mean()", "def tVz4(hkxX, KnxT):\n _mSQ = oyIN.exp(oyIN.linspace(-1.0, 0.0, KnxT))\n _mSQ /= _...
[ "0.7406481", "0.73744977", "0.7356673", "0.7319525", "0.72734356", "0.7213984", "0.72076005", "0.71584356", "0.7148144", "0.7137715", "0.70771027", "0.7050283", "0.70061207", "0.70002455", "0.6946697", "0.6933293", "0.6931472", "0.68313646", "0.67492366", "0.67393607", "0.671...
0.0
-1
Ordenamiento por medio del algoritmo de Bubble Sort Basado en el libro de Kaldewaij
def Y3iJ(qw7D): YRbF = 0 while YRbF != len(qw7D): r845 = len(qw7D) - 1 while r845 != YRbF: if qw7D[r845 - 1] > qw7D[r845]: b3SJ(qw7D, r845, r845 - 1) r845 -= 1 YRbF += 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OwEo(jzdc):\n ywwl = len(jzdc)\n exwG = 0\n Fg_i = False\n while exwG != ywwl and (not Fg_i):\n G1Hx = ywwl - 1\n Fg_i = True\n while G1Hx != exwG:\n if jzdc[G1Hx - 1] > jzdc[G1Hx]:\n Fg_i = False\n b3SJ(jzdc, G1Hx, G1Hx - 1)\n ...
[ "0.7285513", "0.7002244", "0.6908198", "0.68799675", "0.6798877", "0.67479676", "0.6740737", "0.67007303", "0.6681243", "0.6681129", "0.66763455", "0.6644568", "0.66324276", "0.66310155", "0.6613759", "0.65849435", "0.6581361", "0.6561886", "0.6560778", "0.6548329", "0.653728...
0.6284002
68
Con un solo parametro, esta funcion llama al algoritmo Quicksort estableciendo los otros dos argumentos
def Y8Al(qw7D): XP5J = 0 Mkmy = len(qw7D) - 1 l_Dj(qw7D, XP5J, Mkmy)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lguw(UrXw):\n pass", "def lguw(nPrm):\n u54L = len(nPrm)\n return d7og(nPrm, 0, u54L - 1)", "def lguw(DumB):\n if len(DumB) > 1:\n jPVB = len(DumB) // 2\n VSbE = []\n nm36 = []\n for YRbF, wEf2 in enumerate(DumB):\n if YRbF != jPVB:\n if wEf...
[ "0.75338084", "0.7131102", "0.7097388", "0.70459384", "0.7043138", "0.7035936", "0.70165056", "0.70133597", "0.6966729", "0.69384694", "0.6935475", "0.69342536", "0.6917182", "0.69147474", "0.6901573", "0.68916196", "0.68895537", "0.6888933", "0.6887885", "0.6843487", "0.6842...
0.69903004
8
Llama la funcion Quicksort_loop, y luego se ordena por insercion el arreglo Basado en la implementacion de la HP C++ Standard Template Library
def I8EM(qw7D, XP5J, Mkmy): siNA(qw7D, XP5J, Mkmy) fKAR(qw7D)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lguw(UrXw):\n pass", "def Y8Al(qw7D):\n XP5J = 0\n Mkmy = len(qw7D) - 1\n l_Dj(qw7D, XP5J, Mkmy)", "def lguw(nPrm):\n u54L = len(nPrm)\n return d7og(nPrm, 0, u54L - 1)", "def lguw(ezWE):\n global comp, swaps\n ezWE = lSgV(ezWE)\n print(f'compares={Alkp!r}')\n print(f'swaps={...
[ "0.7127564", "0.7116392", "0.70871216", "0.7065659", "0.6984996", "0.6954677", "0.6936008", "0.69295436", "0.68271524", "0.6768148", "0.67174137", "0.671435", "0.67047936", "0.66969156", "0.66633236", "0.66587245", "0.6625913", "0.6620641", "0.6608651", "0.66004354", "0.65999...
0.0
-1
Ensure the /ping route behaves correctly.
def BMCL(YKHO): geh0 = YKHO.client.get('/lexical/ping') nPrm = qQXR.loads(geh0.data.decode()) YKHO.assertEqual(geh0.status_code, 200) YKHO.assertIn('pong!', nPrm['message']) YKHO.assertIn('success', nPrm['status'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BMCL(YKHO):\n geh0 = YKHO.client.get('/ping')\n YKHO.assert200(geh0)", "def BMCL(x0hE):\n geh0 = x0hE.get('/ping')\n assert geh0.data == b'Ping!'", "def BMCL(YKHO):\n x0hE = fUla.Client('vilfotestrouter', 'testtoken')\n h2IT.add(h2IT.GET, 'http://vilfotestrouter/api/v1/system/ping', json=...
[ "0.777479", "0.70533836", "0.69570583", "0.695673", "0.6720369", "0.6682007", "0.6673324", "0.6634377", "0.6611171", "0.66073304", "0.6600694", "0.65949297", "0.65567964", "0.65567964", "0.65567964", "0.6546748", "0.65350163", "0.6524784", "0.6515431", "0.6494196", "0.6486915...
0.67540026
4
Ensure the /ping route behaves correctly.
def CWQ4(YKHO): geh0 = YKHO.client.get('/lexical/authping', headers=dict(Authorization='Bearer valid', LoginType='sso')) nPrm = qQXR.loads(geh0.data.decode()) YKHO.assertEqual(geh0.status_code, 200) YKHO.assertIn('pong!', nPrm['message']) YKHO.assertIn('success', nPrm['status'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BMCL(YKHO):\n geh0 = YKHO.client.get('/ping')\n YKHO.assert200(geh0)", "def BMCL(x0hE):\n geh0 = x0hE.get('/ping')\n assert geh0.data == b'Ping!'", "def lR1I(YKHO):\n return True", "def BMCL(YKHO):\n x0hE = fUla.Client('vilfotestrouter', 'testtoken')\n h2IT.add(h2IT.GET, 'http://vilf...
[ "0.77744955", "0.7052765", "0.69578636", "0.69562954", "0.6753244", "0.67204714", "0.6681632", "0.6672722", "0.6633659", "0.6611242", "0.66070443", "0.6600523", "0.659423", "0.65573084", "0.65573084", "0.65573084", "0.65467507", "0.65356207", "0.6523718", "0.65148985", "0.649...
0.0
-1
Ensure error is thrown if header is empty.
def mWEu(YKHO): geh0 = YKHO.client.get('/lexical/authping') nPrm = qQXR.loads(geh0.data.decode()) YKHO.assertEqual(geh0.status_code, 403) YKHO.assertIn('Provide a valid auth token.', nPrm['message']) YKHO.assertIn('error', nPrm['status'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OQ12(YKHO):\n with YKHO.assertRaises(Exception):\n aC7w(stream_id=1, headers={})", "def OQ12(YKHO):\n with YKHO.assertRaises(Exception):\n aC7w(stream_id=1, headers={})", "def HgOe(YKHO):\n if not YKHO.read_header:\n YKHO._read_header()", "def fR3u(YKHO):\n YKHO.assertRai...
[ "0.8001412", "0.79768926", "0.76918447", "0.7677353", "0.7677353", "0.7677353", "0.7677353", "0.7461539", "0.71165544", "0.7054348", "0.701082", "0.70035726", "0.6948381", "0.6873661", "0.6841818", "0.6818737", "0.68051356", "0.6778642", "0.6772724", "0.6724937", "0.6629319",...
0.0
-1
Ensure error is thrown if 'Authorization' header is empty.
def pFkP(YKHO): geh0 = YKHO.client.get('/lexical/authping', headers=dict(LoginType='sso')) nPrm = qQXR.loads(geh0.data.decode()) YKHO.assertEqual(geh0.status_code, 403) YKHO.assertIn('Provide a valid auth token.', nPrm['message']) YKHO.assertIn('error', nPrm['status'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zbl8(BFxV: Dict[str, str]) -> None:\n if 'Authorization' in BFxV:\n return\n raise QGuP", "def cCQZ(YKHO):\n YKHO.assertNotIn('x-auth-token', MOPg())", "def FPSZ(P1dF):\n Cq54(P1dF.message)\n return ({'message': P1dF.message}, 401)", "def N6iC(YKHO):\n\n def joGJ(kire, y1xg):\n ...
[ "0.7556514", "0.7155785", "0.69333935", "0.6853365", "0.6757069", "0.6756755", "0.6739321", "0.6724708", "0.6714572", "0.6699119", "0.6667898", "0.66641545", "0.66508484", "0.65833676", "0.6579006", "0.65490216", "0.65490216", "0.6533177", "0.65022445", "0.65022445", "0.64933...
0.0
-1
Ensure error is thrown if 'LoginType' header is empty.
def lY32(YKHO): geh0 = YKHO.client.get('/lexical/authping', headers=dict(Authorization='Bearer valid')) nPrm = qQXR.loads(geh0.data.decode()) YKHO.assertEqual(geh0.status_code, 403) YKHO.assertIn('There is no login type.', nPrm['message']) YKHO.assertIn('error', nPrm['status'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qeiK(YKHO):\n im04 = YKHO.app.post('/api/v2/auth/login', content_type='text')\n nPrm = qQXR.loads(im04.data.decode())\n YKHO.assertEqual(im04.status_code, 400)\n YKHO.assertEqual('Content-type must be in json', nPrm['message'])\n YKHO.assertEqual('Bad request', nPrm['status'])", "def fnxo(YKHO...
[ "0.6575941", "0.6555989", "0.65042436", "0.645543", "0.64410746", "0.6413145", "0.6400322", "0.6300135", "0.6280102", "0.61913455", "0.6185784", "0.61435914", "0.6095342", "0.6081074", "0.6076782", "0.6064811", "0.60588574", "0.60386646", "0.6036944", "0.6031379", "0.6025623"...
0.6455736
3