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 |
|---|---|---|---|---|---|---|
Sets the name of this Organization. | def mWFP(YKHO, mWFP):
YKHO._name = mWFP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jpuF(YKHO, jpuF):\n YKHO._org_name = jpuF",
"def jpuF(YKHO, jpuF):\n YKHO._org_name = jpuF",
"def WZrJ(YKHO, mWFP):\n YKHO._name = mWFP",
"def zPdd(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP: str):\n YKHO._name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def ... | [
"0.759724",
"0.759724",
"0.75542027",
"0.755328",
"0.7494422",
"0.7469748",
"0.7469748",
"0.7469748",
"0.7469748",
"0.7469748",
"0.74372435",
"0.74372435",
"0.73873687",
"0.7347915",
"0.7347915",
"0.733082",
"0.73160726",
"0.7291633",
"0.7268685",
"0.72510606",
"0.7188799",
... | 0.0 | -1 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, zvVu):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
... | 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 if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748"
] | 0.0 | -1 |
Unquote and fix hostname. Returns is_idn. | def f5dJ(BAem):
vBFY, RYr6 = uRlK.splituser(BAem[1])
if vBFY:
vBFY = uRlK.unquote(vBFY)
RYr6, KtHR = TcDN(uRlK.unquote(RYr6).lower())
YRbF = RYr6.find('\\')
if YRbF != -1:
b_VF = RYr6[YRbF:]
if not BAem[2] or BAem[2] == '/':
BAem[2] = b_VF
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TcDN(KcEq):\n if KcEq and isinstance(KcEq, QMSQ):\n try:\n KcEq.encode('ascii')\n return (KcEq, False)\n except UnicodeError:\n Bi3P = KcEq.encode('idna').decode('ascii')\n return (Bi3P, Bi3P != KcEq)\n return (KcEq, False)",
"def MFPS(YKHO):\n ... | [
"0.6449013",
"0.6380736",
"0.63365686",
"0.6324431",
"0.61450845",
"0.605697",
"0.6042931",
"0.5928755",
"0.589544",
"0.58683395",
"0.58616215",
"0.58118397",
"0.5743484",
"0.56844443",
"0.5675291",
"0.56356144",
"0.56274545",
"0.561817",
"0.56118816",
"0.5569066",
"0.5540591... | 0.66974527 | 0 |
Fix common typos in given URL like forgotten colon. | def guNd(bD7m):
if bD7m.startswith('http//'):
bD7m = 'http://' + bD7m[6:]
elif bD7m.startswith('https//'):
bD7m = 'https://' + bD7m[7:]
return bD7m | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yWMy(Emd4, bD7m: str):\n ...",
"def QzyC(bD7m):\n if not bD7m.startswith('http'):\n bD7m = 'http://' + bD7m\n return bD7m",
"def lOae(YKHO, bD7m: str) -> str:\n if 'http://' not in bD7m:\n if 'https://' not in bD7m:\n bD7m = 'http://' + bD7m\n U0SR = bD7m.split('/')\... | [
"0.770113",
"0.73291516",
"0.68543786",
"0.6504218",
"0.64858186",
"0.6459376",
"0.6437735",
"0.63930553",
"0.6289801",
"0.6263048",
"0.6251412",
"0.62297577",
"0.62242717",
"0.613285",
"0.61042875",
"0.60988045",
"0.60984194",
"0.6093388",
"0.606762",
"0.60473937",
"0.603849... | 0.7982654 | 0 |
Split query part of mailto url if found. | def aozO(BAem):
if '?' in BAem[2]:
BAem[2], BAem[3] = BAem[2].split('?', 1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dp1O(bD7m):\n QTwS = bD7m.split('?', 1)\n if len(QTwS) == 2:\n xDcj = QTwS[1]\n else:\n xDcj = ''\n return (QTwS[0], xDcj)",
"def c77V(YKHO):\n bD7m = 'testurl.com'\n hlel = zrUl(bD7m)\n YKHO.assertEqual(hlel, ('com.testurl.%', '%'))",
"def Gmod(YKHO):\n bD7m = 'testur... | [
"0.67279136",
"0.6404292",
"0.6209104",
"0.61731404",
"0.6047626",
"0.5870148",
"0.5843502",
"0.56338006",
"0.55826217",
"0.55750227",
"0.5401481",
"0.5397454",
"0.5378606",
"0.5351534",
"0.53454334",
"0.5219765",
"0.5213521",
"0.5209964",
"0.5108182",
"0.5093666",
"0.5083529... | 0.7407154 | 0 |
Same as urlparse.urlunsplit but with extra UNC path handling for Windows OS. | def izOI(BAem):
Ylbp = KVWQ.urlunsplit(BAem)
if Hy7s.name == 'nt' and BAem[0] == 'file' and ('|' not in BAem[2]):
RqeO = 'file://' if BAem[2].startswith('//') else 'file:/'
Ylbp = Ylbp.replace('file:', RqeO)
return Ylbp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KVWQ(bD7m):\n GsJO = uRlK.parse.unquote(bD7m)\n return GsJO",
"def KqWK(bD7m):\n return bD7m[1:].split('/')",
"def lpha(pmON):\n if pmON.lower().startswith('smb://'):\n if '/' not in pmON[6:]:\n pmON = pmON.replace('smb://', 'smb:///', 1)\n return pmON.rsplit('/', 1)\n ... | [
"0.6627455",
"0.65837115",
"0.64844257",
"0.64534926",
"0.62631977",
"0.6174686",
"0.6172689",
"0.6165752",
"0.61646414",
"0.61592484",
"0.61030483",
"0.610288",
"0.60629",
"0.6021757",
"0.601455",
"0.59292614",
"0.5918131",
"0.5909229",
"0.58973026",
"0.58960414",
"0.5895975... | 0.851646 | 0 |
Normalize the given URL which must be quoted. Supports unicode hostnames (IDNA encoding) according to RFC 3490. | def nqqN(bD7m, tZ2K=None, Nlxd=False, Zvy_=False, KL7V=False):
if Nlxd:
bD7m = bD7m.strip()
if isinstance(bD7m, QMSQ):
try:
bD7m = bD7m.encode('ascii')
except UnicodeEncodeError:
pass
cTiu = True
else:
cTiu = False
BAem = list(KVWQ.urlsplit... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _1lG(bD7m):\n KCHu = bD7m\n bD7m = bD7m.encode('utf8')\n bD7m = ''.join([uRlK.quote(Z9rn) if ord(Z9rn) >= 127 else Z9rn for Z9rn in bD7m])\n return bD7m",
"def gmoQ(YKHO, bD7m):\n pass",
"def gmoQ(bD7m):\n if not bD7m.startswith('http://') and (not bD7m.startswith('https://')):\n r... | [
"0.7231952",
"0.71399534",
"0.7058466",
"0.7057212",
"0.70551896",
"0.70489985",
"0.6984675",
"0.68768114",
"0.6773047",
"0.66777515",
"0.66775155",
"0.66144353",
"0.65716875",
"0.65457124",
"0.65359807",
"0.6512017",
"0.65024763",
"0.6485514",
"0.6482304",
"0.64756083",
"0.6... | 0.6782342 | 8 |
Return True if host part of url matches an entry in given domain list. | def uB_a(bD7m, _G32):
if not bD7m:
return False
return z5T2(U0SR(bD7m)[1], _G32) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def z5T2(KcEq, _G32):\n if not KcEq:\n return False\n for zrIJ in _G32:\n if zrIJ.startswith('.'):\n if KcEq.endswith(zrIJ):\n return True\n elif KcEq == zrIJ:\n return True\n return False",
"def hHld(YKHO, bD7m):\n lpha = KVWQ.urlsplit(bD7m)\... | [
"0.8105381",
"0.7370516",
"0.7126605",
"0.6921519",
"0.6796388",
"0.6785669",
"0.67464596",
"0.6718634",
"0.6564882",
"0.654149",
"0.6427154",
"0.636126",
"0.6316495",
"0.6279034",
"0.62371093",
"0.62335455",
"0.62335455",
"0.6123072",
"0.6119781",
"0.60940176",
"0.6078012",
... | 0.83841044 | 0 |
Return True if host matches an entry in given domain list. | def z5T2(KcEq, _G32):
if not KcEq:
return False
for zrIJ in _G32:
if zrIJ.startswith('.'):
if KcEq.endswith(zrIJ):
return True
elif KcEq == zrIJ:
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uB_a(bD7m, _G32):\n if not bD7m:\n return False\n return z5T2(U0SR(bD7m)[1], _G32)",
"def FcQF(YKHO, ayrW):\n return ayrW in YKHO.hostnames",
"def rtcy(YKHO, zrIJ, D8Ke):\n try:\n Woci = YKHO.get_name_by_ip(D8Ke).lower().split(' ')\n taO0 = zrIJ.lower()\n return taO0... | [
"0.718514",
"0.7060217",
"0.69207466",
"0.6798229",
"0.6687461",
"0.6494838",
"0.6165921",
"0.61154306",
"0.6060035",
"0.6051432",
"0.6046193",
"0.60253114",
"0.5941196",
"0.59102017",
"0.5872509",
"0.5855687",
"0.5823825",
"0.5729784",
"0.5715016",
"0.5689225",
"0.5683604",
... | 0.83065116 | 0 |
Check if url needs percent quoting. Note that the method does only check basic character sets, and not any other syntax. The URL might still be syntactically incorrect even when it is properly quoted. | def tbti(bD7m):
if bD7m.rstrip() != bD7m:
return True
return not dcnS.match(bD7m) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FBbT():\n assert gmoQ('http://www.example.com/%7Eusername/') == 'http://www.example.com/~username'\n assert gmoQ('http://example.com/foo%23bar') == 'http://example.com/foo%23bar'\n assert gmoQ('http://example.com/foo%2fbar') == 'http://example.com/foo%2Fbar'\n assert gmoQ('http://example.com/foo%3f... | [
"0.7206755",
"0.7197858",
"0.70679295",
"0.6783549",
"0.66798353",
"0.6624512",
"0.65184194",
"0.6379363",
"0.6148199",
"0.60375714",
"0.59809166",
"0.596141",
"0.59491706",
"0.59333074",
"0.59282386",
"0.5914704",
"0.5908903",
"0.5879197",
"0.58755445",
"0.58680904",
"0.5833... | 0.7765809 | 0 |
Rejoin URL parts to a string. | def JVQo(SQ3m):
if SQ3m[2] == CkiW.get(SQ3m[0]):
return '%s://%s%s' % (SQ3m[0], SQ3m[1], SQ3m[3])
return '%s://%s:%d%s' % SQ3m | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UUxs(YKHO, *SQ3m):\n return '/'.join(map(lambda vBtp: vBtp.rstrip('/'), SQ3m))",
"def sa_K(*SQ3m):\n SQ3m = SQ3m or ['']\n vO1Y = [Q7me.strip('/') for Q7me in SQ3m if Q7me]\n if not SQ3m[-1]:\n vO1Y.append('')\n return '/'.join(vO1Y)",
"def TDhU(*SQ3m):\n\n def rZ13(SQ3m):\n ... | [
"0.789799",
"0.76372606",
"0.7635184",
"0.7324334",
"0.7313276",
"0.72960657",
"0.72905284",
"0.7280653",
"0.72795635",
"0.72734",
"0.7244201",
"0.7212807",
"0.7209664",
"0.7034434",
"0.6943335",
"0.69341743",
"0.68809646",
"0.6825387",
"0.6815612",
"0.6801993",
"0.6796151",
... | 0.6047936 | 40 |
Check if both URLs are allowed to point to the same content. | def zqti(zH0S, Z6vV):
if zH0S == Z6vV:
return True
if Z6vV in zH0S:
zH0S = TrJi(zH0S)
if not Z6vV.endswith('/') and zH0S.endswith('/'):
Z6vV += '/'
return zH0S == Z6vV
if zH0S in Z6vV:
Z6vV = TrJi(Z6vV)
if not zH0S.endswith('/') and Z6vV.endswith('... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def S7lG(c6LN, Cb3Z):\n xWZ8 = KVWQ(c6LN)\n jFEw = KVWQ(Cb3Z)\n return xWZ8[:4] == jFEw[:4] and _Ibt(xWZ8[5]) == _Ibt(jFEw[5])",
"def iCdY(zH0S, Z6vV):\n EBgd, HpuQ = (KVWQ.urlparse(zH0S), KVWQ.urlparse(Z6vV))\n return (EBgd.scheme, EBgd.hostname, EBgd.port) == (HpuQ.scheme, HpuQ.hostname, HpuQ.po... | [
"0.71224326",
"0.6801178",
"0.64278007",
"0.637694",
"0.63402057",
"0.63119143",
"0.6286929",
"0.62371063",
"0.61779445",
"0.61676055",
"0.6156955",
"0.6119644",
"0.6043208",
"0.60181797",
"0.6006415",
"0.599031",
"0.5972156",
"0.59510684",
"0.59472144",
"0.5881061",
"0.58000... | 0.7777119 | 0 |
Converts to numpy and squeezes out dummy batch dimension. | def bLPm(hkxX: types.Nest) -> SnBA.NestedArray:
return MwDZ.tree_map(lambda WKvO: oyIN.array(WKvO).squeeze(axis=0), hkxX) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SqOW(WKvO):\n return WKvO.view(1, WKvO.size()[0], WKvO.size()[1], WKvO.size()[2])",
"def LLWw(WKvO: torch.Tensor) -> ht2j.Tensor:\n if WKvO.dim() == 1:\n return WKvO.unsqueeze(0)\n else:\n return WKvO",
"def q1MU(YKHO, Wc9F):\n Fn22 = min(YKHO.MAXLENGTH, max([len(WKvO) for WKvO in... | [
"0.7421706",
"0.6592234",
"0.63858634",
"0.6235317",
"0.6215392",
"0.6022636",
"0.602108",
"0.6016574",
"0.6016574",
"0.5995724",
"0.59902906",
"0.5960881",
"0.5952256",
"0.59430224",
"0.5940777",
"0.5935754",
"0.5915034",
"0.5908869",
"0.59015334",
"0.5898744",
"0.5817364",
... | 0.0 | -1 |
Enqueues items from `iterable` on a given thread. | def vznG():
try:
for ZfUD in OxJJ:
NRcB.put(ZfUD)
except Exception as e:
G9jH.exception('Error in producer thread for %s', OxJJ.__name__)
AIPS.append(tTpl)
finally:
NRcB.put(Os4s) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def _aiter_sync(OxJJ: Iterable[T]) -> eZmq[Kt_s]:\n for ZfUD in OxJJ:\n yield ZfUD",
"def gWrL(YKHO, OxJJ):\n YKHO.input_queue.extend(OxJJ)",
"def JaxB(YKHO, OxJJ):\n\n def AGBl():\n \"\"\"Get a result from the worker output queue and try to yield\n results back to the c... | [
"0.6482619",
"0.6424396",
"0.6024713",
"0.5948052",
"0.5816059",
"0.57797146",
"0.57494015",
"0.5637934",
"0.5492317",
"0.54332095",
"0.53467715",
"0.5325421",
"0.5254408",
"0.52281237",
"0.5205555",
"0.5189476",
"0.5170215",
"0.5154162",
"0.51500005",
"0.51260334",
"0.510404... | 0.6857861 | 0 |
Sets the button_id of this ButtonChangeNotification. | def e7JP(YKHO, e7JP):
YKHO._button_id = e7JP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m7fT(YKHO, oD_N):\n if YKHO._pButton:\n if not YKHO.HasFlag(YqkP):\n YKHO._sz.Replace(YKHO._pButton, oD_N)\n YKHO.Unbind(lnPd.EVT_BUTTON, YKHO._pButton)\n YKHO._pButton.Destroy()\n YKHO._pButton = oD_N\n YKHO.SetLabel(oD_N.GetLabel())\n YKHO.Bind(lnPd.EVT_BUTTON, YKH... | [
"0.56377095",
"0.5621892",
"0.5578352",
"0.5447032",
"0.5347722",
"0.53036946",
"0.5280154",
"0.51690286",
"0.5168054",
"0.51062906",
"0.5094893",
"0.50668573",
"0.50315845",
"0.5015618",
"0.49925348",
"0.49768975",
"0.4969829",
"0.49674788",
"0.4931718",
"0.49231914",
"0.490... | 0.79103726 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, iRFl):
return False
return YKHO.to_dict() == Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
if not isinstance(Elif, iRFl):
return True
return YKHO.to_dict() != Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
... | 0.0 | -1 |
Compact all maps in a frame to their default sparse representation. Optionally remove NaN values as well. Removing NaN values will reduce memory use, but will remove the distinction in unweighted (or weightremoved) maps between unobserved regions and regions with zero temperature. | def ePmf(f4IJ, JYXt=False):
for KCHu in ['T', 'Q', 'U', 'Wunpol', 'Wpol']:
if KCHu in f4IJ:
r8hN = f4IJ.pop(KCHu)
r8hN.compact(zero_nans=JYXt)
f4IJ[KCHu] = r8hN
return f4IJ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XEBk(Aqng):\n for H5ew, jQ3Z in Aqng.items():\n Aqng[H5ew] = Aqng[H5ew].fillna(-999)\n return Aqng",
"def oAVD(F4nI):\n return {G1Hx: Ty9i for G1Hx, Ty9i in F4nI.items() if Ty9i is not None}",
"def Xbam(YKHO):\n if YKHO._memoized_compact == None:\n YKHO._memoized_compact = [VmPb f... | [
"0.58548355",
"0.5587488",
"0.54499125",
"0.5371619",
"0.5353356",
"0.5349373",
"0.5292348",
"0.52662545",
"0.52164835",
"0.52022105",
"0.51015234",
"0.508502",
"0.5077335",
"0.5072703",
"0.5070282",
"0.50612265",
"0.50571525",
"0.50527084",
"0.504133",
"0.5016694",
"0.501108... | 0.78470814 | 0 |
Validates an application description, making sure all required fields are present and of the correct type. If the description is not valid, an InvalidApplicationDescription exception is thrown. Uses a JSON schema definition. | def pdK6(nPrm):
uPxI = qQXR.load(open('schemas/app_description_schema.json', 'r'))
try:
K1W6.validate(nPrm, uPxI)
except K1W6.ValidationError as e:
raise pTdz(str(tTpl))
except K1W6.SchemaError:
RKD7.exception('BUG: invalid schema for application descriptions')
raise fnP_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gQuI(zgjV: dict, XmcM: dict):\n tf1m = ''\n if not zgjV.get('description'):\n return ''\n QoB4 = zgjV.get('description')\n drJh = XmcM.get('description')\n if QoB4.get('manufacturer', '') != drJh.get('manufacturer'):\n tf1m += p1yM\n if QoB4.get('rebuiltRemarks'):\n tf1m ... | [
"0.65155405",
"0.591994",
"0.58387893",
"0.57241064",
"0.56954294",
"0.56712884",
"0.55535734",
"0.5547916",
"0.5487829",
"0.54671675",
"0.5461422",
"0.54116523",
"0.5385446",
"0.5357007",
"0.5288694",
"0.5253396",
"0.5226772",
"0.5218871",
"0.5212015",
"0.5206839",
"0.519367... | 0.7670873 | 0 |
Get the default QuerySet for read actions. Subclasses can override this method to work with other managers. Useful when working with default managers that filter some objects. | def ry6w(YKHO, BEic=None):
return YKHO.index_queryset(using=BEic) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p4zv(YKHO):\n return YKHO.get_model()._default_manager.all()",
"def k66M(YKHO):\n if YKHO.queryset is not None:\n SR0I = YKHO.queryset\n if hasattr(SR0I, '_clone'):\n SR0I = SR0I._clone()\n elif YKHO.model is not None:\n SR0I = YKHO.model._default_manager.all()\n e... | [
"0.7399249",
"0.7396451",
"0.7388755",
"0.7219012",
"0.712535",
"0.7071622",
"0.7028743",
"0.6935675",
"0.69315505",
"0.68410736",
"0.6820464",
"0.68038875",
"0.6780891",
"0.67414385",
"0.6713969",
"0.67115843",
"0.6643043",
"0.66420823",
"0.6633574",
"0.6633574",
"0.6467329"... | 0.63972527 | 23 |
Get the default QuerySet to index when doing an index update. Subclasses can override this method to take into account related model modification times. The default is to use ``SearchIndex.index_queryset`` and filter based on ``SearchIndex.get_updated_field`` | def FjeD(YKHO, BEic=None, kepv=None, KhBf=None):
PqMY = {}
C3ST = YKHO.get_model()
guPI = YKHO.get_updated_field()
YvcU = "No updated date field found for '%s' - not restricting by age." % C3ST.__name__
if kepv:
if guPI:
PqMY['%s__gte' % guPI] = kepv
else:
qmL... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LUo9(YKHO, **B2fa):\n return YKHO.get_model().objects.filter(last_modified__lte=qcWV.datetime.now())",
"def LUo9(YKHO, BEic=None):\n return YKHO.get_model()._default_manager.all()",
"def LUo9(YKHO, BEic=None):\n return YKHO.get_model().objects.all()",
"def LUo9(YKHO, BEic=None):\n return YKHO... | [
"0.6930836",
"0.6686042",
"0.64084005",
"0.6395709",
"0.6310281",
"0.6287713",
"0.6187853",
"0.6187853",
"0.6187853",
"0.6187853",
"0.6187853",
"0.6187853",
"0.6187853",
"0.6187853",
"0.6187853",
"0.6187853",
"0.6187853",
"0.61523193",
"0.6114657",
"0.60792524",
"0.600847",
... | 0.6180968 | 17 |
Get the field name that represents the updated date for the model. If specified, this is used by the reindex command to filter out results from the QuerySet, enabling you to reindex only recent records. This method should either return None (reindex everything always) or a string of the Model's DateField/DateTimeField ... | def ixpU(YKHO):
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s4tG(YKHO):\n return YKHO._updated_date",
"def s4tG(YKHO):\n return YKHO._updated_date",
"def lo2B(YKHO, WmM4=None):\n return YKHO.data.get('metadata', {}).get('_updated', WmM4)",
"def zB0d(YKHO) -> str:\n return qe4Y.get(YKHO, 'updated_at')",
"def XNsl(YKHO) -> h8nf[str]:\n return qe4Y.... | [
"0.6356923",
"0.6356923",
"0.61996776",
"0.5959888",
"0.59562856",
"0.5786885",
"0.5728659",
"0.57244915",
"0.57244915",
"0.57244915",
"0.57061845",
"0.5685061",
"0.5664035",
"0.56450814",
"0.56450814",
"0.56450814",
"0.5626085",
"0.5595197",
"0.55783296",
"0.55563015",
"0.55... | 0.6181642 | 3 |
Provides the ability to override how objects get loaded in conjunction with ``SearchQuerySet.load_all``. This is useful for postprocessing the results from the query, enabling things like adding ``select_related`` or filtering certain data. By default, returns ``all()`` on the model's default manager. | def p4zv(YKHO):
return YKHO.get_model()._default_manager.all() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SR0I(Emd4):\n return Emd4.model._default_manager.all()",
"def all(YKHO):\n return YKHO.__objects",
"def all(YKHO):\n return YKHO.__objects",
"def all(YKHO):\n return YKHO.__objects",
"def all(YKHO):\n return YKHO.__objects",
"def all(YKHO):\n return YKHO.__objects",
"def all(YKHO)... | [
"0.66101956",
"0.643561",
"0.643561",
"0.643561",
"0.643561",
"0.643561",
"0.643561",
"0.63397825",
"0.6290898",
"0.62837636",
"0.6258117",
"0.62498605",
"0.6209671",
"0.62085414",
"0.6205274",
"0.6167256",
"0.6165007",
"0.6142211",
"0.61316377",
"0.61313605",
"0.61186314",
... | 0.7823638 | 0 |
Returns the Haystack field type that would likely be associated with each Django type. | def WsPN(eHNT, WmM4=LRGF):
Aofo = WmM4
if eHNT.get_internal_type() in ('DateField', 'DateTimeField'):
Aofo = reci
elif eHNT.get_internal_type() in ('BooleanField', 'NullBooleanField'):
Aofo = gKg8
elif eHNT.get_internal_type() in ('CommaSeparatedIntegerField',):
Aofo = DP2k
e... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def type(YKHO):\n return YKHO._field.type",
"def vF49(mWFP):\n if mWFP not in coEw:\n coEw[mWFP] = J2us.fields_get([mWFP], attributes=['type'])[mWFP]['type']\n return coEw.get(mWFP)",
"def WxN5(YKHO):\n Dl0U = x5A1(YKHO)\n for YRbF in reversed(range(len(Dl0U) + 1)):\n UmyZ = '.'.jo... | [
"0.7496962",
"0.71214044",
"0.7111604",
"0.694556",
"0.6833822",
"0.669219",
"0.66400373",
"0.6566396",
"0.6565787",
"0.6565787",
"0.6544925",
"0.65435463",
"0.65023047",
"0.64165056",
"0.64165056",
"0.6410172",
"0.6410172",
"0.6410172",
"0.6410172",
"0.6410172",
"0.6410172",... | 0.0 | -1 |
Given a Django field, return the appropriate index fieldname. | def Q1kf(YKHO, eHNT):
return eHNT.name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d6pt(YKHO, Jyyj):\n try:\n d6pt = YKHO._field_names.index(QMSQ(Jyyj))\n except ValueError:\n raise KeyError(\"Field list has no field with name '%s'\" % QMSQ(Jyyj))\n return d6pt",
"def TRRZ(YKHO, Jyyj):\n or8S = YKHO.fields.index(Jyyj)\n if YKHO.index:\n or8S = YKHO.index... | [
"0.73228824",
"0.72279114",
"0.70474243",
"0.6815128",
"0.6683266",
"0.6666094",
"0.65193903",
"0.64802706",
"0.6409908",
"0.64097255",
"0.62970906",
"0.6273589",
"0.6263582",
"0.623153",
"0.6205761",
"0.6205761",
"0.61754113",
"0.6119579",
"0.6063708",
"0.6039959",
"0.597258... | 0.76406515 | 0 |
Compute cosine distance between samples in X and Y | def lxis(EcVT, fuBA=None):
o4sw = DRyJ(EcVT, fuBA)
JfyU = lambda WKvO: IzGo(-WKvO + 1, 0, 2)
o4sw = AaZi(o4sw, JfyU)
if EcVT is fuBA or fuBA is None:
o4sw = KCed(o4sw)
return o4sw | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NJNe(EcVT, fuBA):\n if EcVT is fuBA:\n EcVT = fuBA = oyIN.asanyarray(EcVT)\n else:\n EcVT = oyIN.asanyarray(EcVT)\n fuBA = oyIN.asanyarray(fuBA)\n if EcVT.shape[1] != fuBA.shape[1]:\n raise ValueError('Incompatible dimension for X and Y matrices')\n return 1.0 - GC2M.cdi... | [
"0.8410079",
"0.8057848",
"0.75965375",
"0.7270391",
"0.72635317",
"0.71993136",
"0.7180712",
"0.7104931",
"0.70918214",
"0.70614654",
"0.70560646",
"0.70345294",
"0.6987847",
"0.6978803",
"0.6942545",
"0.6941362",
"0.6941362",
"0.69142544",
"0.68815243",
"0.68585277",
"0.685... | 0.71411484 | 7 |
Returns byte with modified Least Significant Bit. | def WsLp(YB8B: int, Uu6z: bool) -> int:
YB8B = bin(YB8B)
u_Tz = int(Uu6z)
E9l9 = int(YB8B[:-1] + str(u_Tz), base=2)
return E9l9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fcEP(YKHO):\n BWXx = abs(YKHO) << 1 | (1 if YKHO < 0 else 0)\n lIP9 = bytearray()\n while True:\n tb3x, BWXx = (BWXx & 127, BWXx >> 7)\n if BWXx > 0:\n lIP9.append(tb3x | 128)\n else:\n lIP9.append(tb3x)\n break\n return bytes(lIP9)",
"def Y83... | [
"0.6063297",
"0.60471183",
"0.6013756",
"0.5942794",
"0.58645505",
"0.5854527",
"0.58462185",
"0.58319616",
"0.57620835",
"0.57129794",
"0.56720114",
"0.56705105",
"0.5654919",
"0.56500417",
"0.56211764",
"0.5602921",
"0.5602185",
"0.5573649",
"0.5519298",
"0.5472581",
"0.547... | 0.5995095 | 3 |
Fast greatcircle path distance using Haversine formula (at least faster than geopy.distance.distance but less accurate) | def qi9X(P6bq, Ty9i, Mkmy=1.0):
rCSf, wPhG = P6bq
FNKk, qtY4 = Ty9i
rCSf, wPhG, FNKk, qtY4 = (rCSf * oyIN.pi / 180, wPhG * oyIN.pi / 180, FNKk * oyIN.pi / 180, qtY4 * oyIN.pi / 180)
A4fg = oyIN.abs(wPhG - qtY4)
k0lF = oyIN.power(oyIN.cos(FNKk) * oyIN.sin(A4fg), 2)
tjUW = oyIN.power(oyIN.cos(rCSf... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sC_M(igSk, GgQG, TGuP, tk0B):\n NbhI = 6371.393\n igSk, GgQG, TGuP, tk0B = map(oyIN.deg2rad, [igSk, GgQG, TGuP, tk0B])\n n_9K = TGuP - igSk\n H91H = tk0B - GgQG\n jzdc = oyIN.sin(n_9K / 2) ** 2 + oyIN.cos(igSk) * oyIN.cos(TGuP) * oyIN.sin(H91H / 2) ** 2\n Z9rn = 2 * oyIN.arcsin(oyIN.sqrt(jzdc... | [
"0.7068269",
"0.68903285",
"0.684219",
"0.6817696",
"0.6753717",
"0.67104316",
"0.6710184",
"0.66912365",
"0.66236764",
"0.66200423",
"0.6617499",
"0.65227574",
"0.6513808",
"0.64695984",
"0.64506197",
"0.64469194",
"0.6444413",
"0.6441296",
"0.6436066",
"0.64351505",
"0.6413... | 0.0 | -1 |
Initialize the hidden states for the current network. | def MP8d(YKHO, Ep8u: int, begE: Device) -> hx5c:
dfL4 = ht2j.zeros(Ep8u, YKHO.hidden_size).to(begE)
if YKHO.rnn_type == 'LSTM':
return (dfL4, dfL4.clone())
else:
return dfL4 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MP8d(YKHO, Ep8u):\n YKHO.hidden_state = (ht2j.zeros(((1 + YKHO.bidirectional) * YKHO.num_layers, Ep8u, YKHO.hidden_size)).to(YKHO.device), ht2j.zeros(((1 + YKHO.bidirectional) * YKHO.num_layers, Ep8u, YKHO.hidden_size)).to(YKHO.device))",
"def MP8d(YKHO):\n D5BU = ht2j.zeros(YKHO.num_layers, YKHO.batch... | [
"0.75942343",
"0.7466821",
"0.72039807",
"0.6931248",
"0.6904512",
"0.6894318",
"0.6894318",
"0.68575823",
"0.67992944",
"0.67992944",
"0.67992944",
"0.67798567",
"0.67798567",
"0.6775739",
"0.6775739",
"0.67734337",
"0.6669328",
"0.66421",
"0.6592369",
"0.6459345",
"0.645617... | 0.63631785 | 24 |
If a filename was provided serialize to a JSON file | def ChRH(YKHO):
if YKHO.jfile != None:
with open('%s.json' % YKHO.jfile, 'w') as Gcbu:
qQXR.dump([YKHO.buf_i, YKHO.buf], Gcbu)
if YKHO.cas != None:
YKHO.cas.dump() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oD7C(YKHO, Ux0P, MnRD=2):\n Csk6 = YKHO.to_dicts()\n if hasattr(Ux0P, 'write'):\n qQXR.dump(Csk6, Ux0P, indent=MnRD)\n elif isinstance(Ux0P, str):\n with open(Hy7s.path.expanduser(Ux0P), 'w') as eHNT:\n qQXR.dump(Csk6, eHNT, indent=MnRD)\n else:\n raise ValueError('U... | [
"0.70405793",
"0.69626176",
"0.689368",
"0.68732774",
"0.68117476",
"0.67860675",
"0.6766374",
"0.67502034",
"0.67290264",
"0.6705512",
"0.669348",
"0.66919565",
"0.66756034",
"0.6640359",
"0.660166",
"0.6575211",
"0.65578234",
"0.65555125",
"0.6552719",
"0.6549573",
"0.65294... | 0.0 | -1 |
Return the cost associated with an output ``a`` and desired output ``y``. Note that np.nan_to_num is used to ensure numerical stability. In particular, if both ``a`` and ``y`` have a 1.0 in the same slot, then the expression (1y)np.log(1a) returns nan. The np.nan_to_num ensures that that is converted to the correct val... | def FYKK(jzdc, LVAh):
return oyIN.sum(oyIN.nan_to_num(-LVAh * oyIN.log(jzdc) - (1 - LVAh) * oyIN.log(1 - jzdc))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NNjy(jzdc, LVAh):\n return oyIN.sum(-(LVAh * oyIN.log(jzdc) + (1 - LVAh) * oyIN.log(1 - jzdc)))",
"def cTaZ(YKHO, uN02, LVAh, SGf8=1e-15):\n return -(1 / LVAh.shape[0]) * oyIN.sum(LVAh * oyIN.log(uN02 + SGf8) + (1 - LVAh) * oyIN.log(1 - uN02 + SGf8))",
"def UM2M(ipmg, fuBA):\n r8hN = ipmg.shape[1]... | [
"0.7182711",
"0.68380564",
"0.6739914",
"0.6636367",
"0.6560463",
"0.65167016",
"0.6497013",
"0.64399683",
"0.63970965",
"0.63303626",
"0.6320934",
"0.6308933",
"0.62933624",
"0.62877995",
"0.6272237",
"0.62680584",
"0.62132347",
"0.62013257",
"0.61974686",
"0.6144221",
"0.61... | 0.65115833 | 6 |
Initialize each weight using a Gaussian distribution with mean 0 and standard deviation 1 over the square root of the number of weights connecting to the same neuron. Initialize the biases using a Gaussian distribution with mean 0 and standard deviation 1. Note that the first layer is assumed to be an input layer, and ... | def XXxF(YKHO):
YKHO.biases = [oyIN.random.randn(LVAh, 1) for LVAh in YKHO.sizes[1:]]
YKHO.weights = [oyIN.random.randn(LVAh, WKvO) / oyIN.sqrt(WKvO) for WKvO, LVAh in zip(YKHO.sizes[:-1], YKHO.sizes[1:])] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C0Lv(YKHO):\n z2bo = 1.0 / epAf.sqrt(YKHO._hidden_size)\n for rZh3, brHW in Hs6x.product(range(YKHO._num_layers * (YKHO._bidirectional + 1)), range(YKHO._num_gates * 2)):\n YRbF = rZh3 * 2 + brHW // YKHO._num_gates\n r845 = YRbF + len(YKHO._weights_shapes) // 2\n bjOx = YKHO._weights... | [
"0.7445948",
"0.72619236",
"0.71563673",
"0.712038",
"0.69828767",
"0.69530576",
"0.6856005",
"0.6765546",
"0.6765546",
"0.6765546",
"0.67335904",
"0.6733377",
"0.67304456",
"0.6724466",
"0.6717513",
"0.6706484",
"0.6699434",
"0.66928387",
"0.66581494",
"0.6652159",
"0.665114... | 0.68962634 | 6 |
Initialize the weights using a Gaussian distribution with mean 0 and standard deviation 1. Initialize the biases using a Gaussian distribution with mean 0 and standard deviation 1. Note that the first layer is assumed to be an input layer, and by convention we won't set any biases for those neurons, since biases are on... | def SGro(YKHO):
YKHO.biases = [oyIN.random.randn(LVAh, 1) for LVAh in YKHO.sizes[1:]]
YKHO.weights = [oyIN.random.randn(LVAh, WKvO) for WKvO, LVAh in zip(YKHO.sizes[:-1], YKHO.sizes[1:])] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C0Lv(YKHO):\n z2bo = 1.0 / epAf.sqrt(YKHO._hidden_size)\n for rZh3, brHW in Hs6x.product(range(YKHO._num_layers * (YKHO._bidirectional + 1)), range(YKHO._num_gates * 2)):\n YRbF = rZh3 * 2 + brHW // YKHO._num_gates\n r845 = YRbF + len(YKHO._weights_shapes) // 2\n bjOx = YKHO._weights... | [
"0.7616491",
"0.7581364",
"0.7332636",
"0.7293401",
"0.7253358",
"0.7228368",
"0.7208877",
"0.72082525",
"0.7198473",
"0.7185874",
"0.7179477",
"0.71789134",
"0.7122161",
"0.71221393",
"0.71109015",
"0.7076844",
"0.7055743",
"0.7055743",
"0.7055743",
"0.70391285",
"0.70391244... | 0.0 | -1 |
Derivative of the sigmoid function. | def hj5n(epBp):
return m1Hg(epBp) * (1 - m1Hg(epBp)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NZml(WKvO):\n return WKvO * (1 - WKvO)",
"def NZml(WKvO):\n return WKvO * (1.0 - WKvO)",
"def NZml(WKvO):\n return m1Hg(WKvO) * (1 - m1Hg(WKvO))",
"def BV7B(WKvO):\n return WKvO * (1 - WKvO)",
"def BV7B(WKvO):\n return WKvO * (1 - WKvO)",
"def NZml(WKvO):\n KCHu = m1Hg(WKvO)\n ox... | [
"0.84754366",
"0.8450928",
"0.8396931",
"0.83485264",
"0.83485264",
"0.8298343",
"0.80539966",
"0.7753385",
"0.77070266",
"0.7498153",
"0.7464916",
"0.7454039",
"0.7401582",
"0.7385017",
"0.73829913",
"0.7346935",
"0.7321687",
"0.73094004",
"0.7192053",
"0.7113881",
"0.709236... | 0.0 | -1 |
Retrieves product name for a given product_id from redsky.target.com | def rqvd(YKHO, Mc9N):
CBzR = TDhU(YKHO.endpoint, str(Mc9N)) + '?excludes={}'.format(YKHO.excludes) + '&key={}'.format(YKHO.key)
Aofo = G4JS.get(CBzR)
if Aofo.status_code != G4JS.codes['ok']:
raise KtAp('could not find product name for ID {}'.format(Mc9N))
nPrm = Aofo.json()
try:
mWFP... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AI9R(w2B8, Mc9N: int) -> str:\n with w2B8.cursor() as N1p7:\n N1p7.execute('select name from products\\n where id = {0}'.format(Mc9N))\n try:\n return N1p7.fetchone()[0]\n except TypeError:\n raise UAju.StoreError",
"def k0fX(Lx3t):... | [
"0.7151575",
"0.7073232",
"0.68963957",
"0.67611766",
"0.6730489",
"0.66617584",
"0.66555005",
"0.66206634",
"0.6618648",
"0.65587276",
"0.6444305",
"0.63914",
"0.6256572",
"0.62551016",
"0.62208354",
"0.6209725",
"0.6200292",
"0.6186337",
"0.6170252",
"0.61694807",
"0.614141... | 0.7573008 | 0 |
Turn on phase switching. | def osbn(FyXI):
KCHu.phaseSwitching(True, FyXI) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jY15(YKHO, **B2fa):\n YKHO._state = True\n YKHO.update_switch(YKHO._initial_transition)\n YKHO.schedule_update_ha_state()",
"def jY15(YKHO, **B2fa):\n YKHO.smartplug.turn_on()",
"def VCNZ(YKHO):\n YKHO.off = False\n YKHO.turnOnAnimation()",
"def jY15(YKHO) -> None:\n YKHO._state = YK... | [
"0.6793064",
"0.6698503",
"0.6629485",
"0.6605962",
"0.64484453",
"0.6447404",
"0.64012665",
"0.6358219",
"0.6263478",
"0.6257407",
"0.6242577",
"0.61970633",
"0.619641",
"0.61716014",
"0.6151014",
"0.6149689",
"0.6095562",
"0.6095158",
"0.6083145",
"0.6082343",
"0.6059637",
... | 0.73345774 | 0 |
Turn off phase switching. | def wxSM(FyXI):
KCHu.phaseSwitching(False, FyXI) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dNOs(YKHO):\n YKHO._switch_callback = None",
"def Z_rv(YKHO, **B2fa):\n YKHO.smartplug.turn_off()",
"def V8X5(YKHO):\n YKHO.turnOff()",
"def Z_rv(YKHO):\n YKHO.robot.stop_simulation()",
"def MMqx(YKHO):\n YKHO.off = True\n YKHO.turnOffAnimation()",
"def Z_rv(YKHO):\n YKHO.handleC... | [
"0.7479812",
"0.74541664",
"0.7239022",
"0.7227539",
"0.72216386",
"0.71505696",
"0.71325904",
"0.7120933",
"0.7108367",
"0.70898795",
"0.70524615",
"0.7046064",
"0.70034647",
"0.7002755",
"0.69903725",
"0.6966109",
"0.69656616",
"0.69576687",
"0.69566065",
"0.6945246",
"0.69... | 0.7758828 | 0 |
Set the safe azimuth and elevation ranges over which an antenna cannot collide with a neighboring antenna (in closepacked array configurations). | def NcnS(N4GC, UEAr, rkZf, CjSi, gOEa, MUER=TccD):
CvP1 = XN37.makeList(gOEa)
mE3f('setSafeRange', MUER, N4GC, UEAr, rkZf, CjSi, CvP1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def X5bz(YKHO):\n Suae = YKHO.fixed_plate - YKHO.fixed_plate_zero\n for MRRk in range(3):\n _XKJ = reJZ(YKHO.leg_safe_xaxis, Suae[M1Lu, MRRk])\n n9YE = reJZ(YKHO.leg_safe_zaxis, Suae[qwso, MRRk])\n YKHO.leg_fault[MRRk] = not YKHO.leg_safe_zone[MRRk, _XKJ, n9YE]\n if not all(oyIN.i... | [
"0.56387204",
"0.5621987",
"0.5555418",
"0.54067415",
"0.53795385",
"0.53312033",
"0.53200245",
"0.52538556",
"0.52425647",
"0.52309364",
"0.51850075",
"0.5132379",
"0.5102437",
"0.5058169",
"0.50323546",
"0.5031172",
"0.5028666",
"0.5018337",
"0.50181246",
"0.50171715",
"0.4... | 0.628929 | 0 |
Set a user catalog. This is an alternate catalog of sources that will be searched BEFORE the system catalog. When a valid user catalog is set, the requested source is looked up in the user catalog; if not found, it is then looked up in the system catalog. The specified catalog must exist in /array/rt/catalogs/catalogNa... | def ayCA(rUpw, MUER=TccD):
likA = rUpw.strip()
if likA == '':
rUpw = 'NONE'
else:
rUpw = likA
mE3f('ucat', MUER, rUpw) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yD1z(YKHO, Piln: cat.Catalog) -> None:\n YKHO._catalog_interface = tlGN(Piln)\n YKHO._catalog = Piln",
"def jXG6(YKHO, pdYU, BaHi):\n if YKHO.resource is None:\n YKHO.resource = YKHO.client.get_resource(YKHO.href)\n mcmU = YKHO.get_catalog_resource(pdYU, is_admin_operation=True)\n cmU2 ... | [
"0.6265739",
"0.58888656",
"0.574895",
"0.55605453",
"0.5269142",
"0.5153837",
"0.51125604",
"0.49451697",
"0.4859712",
"0.4859712",
"0.4859712",
"0.481668",
"0.48010346",
"0.47561952",
"0.47073445",
"0.46994063",
"0.46190724",
"0.4610505",
"0.46100444",
"0.44741526",
"0.4439... | 0.45529574 | 19 |
Retrieve last input elevation limit from the monitor system. This is used to restore state. | def uq1a(MUER=TccD):
SAwv = sFOs
if MUER == gsOP:
SAwv = 2
Qh1K = 'Control.Subarray%d.elevLimit' % SAwv
gkUY = SOjC(Qh1K, 24)
EqYh(gkUY, MUER) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oIQy(YKHO):\n return YKHO.imu.get_elevation()",
"def yzQA(YKHO):\n return YKHO.container['elevation']",
"def LWFS(YKHO):\n return YKHO.elevation",
"def yzQA(YKHO):\n return YKHO.altitude - YKHO.heightAboveGround",
"def Ky3G(YKHO):\n return PvyL(YKHO._lastScreenPos)",
"def Ky3G(YKHO):\n... | [
"0.63437855",
"0.6304508",
"0.63028514",
"0.5911443",
"0.57675695",
"0.57675695",
"0.5743704",
"0.56943744",
"0.5655143",
"0.5654373",
"0.56200355",
"0.56139714",
"0.56070054",
"0.5562385",
"0.5558838",
"0.5477564",
"0.5463121",
"0.5461484",
"0.54551655",
"0.54532886",
"0.544... | 0.0 | -1 |
Return a list of strings describing the antenna composition of this subarray. | def CAvb(Io7C=False):
jzdc = KCHu.getAntennaAssignments()
ONJL = []
for YRbF in jzdc:
FLlb = YRbF.carmaAntennaName
RF8J = YRbF.typedAntennaName
if Io7C:
ZWCE = YRbF.carmaAntennaName
else:
ZWCE = '%s(%s)' % (FLlb, RF8J)
ONJL.append(ZWCE)
ret... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PrWU(YKHO):\n KCHu = []\n for lbHk in YKHO.gonio_angles:\n KCHu.append('%s' % lbHk)\n if YKHO.wavelength_control:\n for lbHk in YKHO.wl_angles:\n KCHu.append('%s' % lbHk)\n return '\\n'.join(KCHu)",
"def aWuw(YKHO):\n Q6uT = ''\n for eNCK in YKHO.chain:\n for... | [
"0.6286726",
"0.62035286",
"0.6184644",
"0.6024137",
"0.59680384",
"0.5864598",
"0.57959837",
"0.5792114",
"0.5789277",
"0.5789277",
"0.57720536",
"0.5771206",
"0.5758274",
"0.5749828",
"0.57297117",
"0.57262164",
"0.57136923",
"0.56989026",
"0.56948435",
"0.5694376",
"0.5694... | 0.5715939 | 16 |
Sets the rotation and field of view for the optical camera for a single antenna. The field of view is the full width. The nominal FOV ratio of el/az is 1.375. | def aS7B(XyWv, CWRn, Ayjt, ZMvH, MUER=TccD):
mE3f('setRotationAndFieldsOfView', MUER, XyWv, CWRn, Ayjt, ZMvH) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GZeS(CG54):\n CG54.cam_mode = CG54.FIXED\n CG54.cam_target.cart = AbJb(0.1, -0.2, 0)\n CG54.cam_eye.spheric = RNfH(5, 0.6, -1.0)",
"def xHQs(YKHO):\n P8oC.disableMouse()\n P8oC.camera.setPos(YKHO.avatarNP.getPos())\n P8oC.camera.setZ(YKHO.avatarNP.getZ() + 1.5)\n P8oC.camera.setHpr(YKHO.... | [
"0.6469186",
"0.63863796",
"0.63830477",
"0.6373301",
"0.6319561",
"0.6253952",
"0.62499654",
"0.6211677",
"0.6207787",
"0.6159852",
"0.6107865",
"0.60797626",
"0.5989717",
"0.5949961",
"0.59386706",
"0.5873373",
"0.5853966",
"0.5833353",
"0.57444894",
"0.5738261",
"0.5729511... | 0.6156573 | 10 |
Set ending LST time for track. | def LP2A(a1PO=None):
if a1PO == None:
KCHu.setScriptDouble(C8RD.INDX_DBL_LST_END_TRACK, 0.0)
KCHu.setScriptBool(C8RD.INDX_BOOL_LST_END_TRACK, False)
else:
KCHu.setScriptDouble(C8RD.INDX_DBL_LST_END_TRACK, XN37.convertHms(a1PO))
KCHu.setScriptBool(C8RD.INDX_BOOL_LST_END_TRACK, Tru... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gO0s(YKHO, i8WE):\n SaH1 = YKHO.floor_time(i8WE)\n if YKHO.last_timestamp is None or SaH1 > YKHO.last_timestamp:\n YKHO.last_timestamp = SaH1",
"def C7pn(YKHO, C7pn):\n YKHO._end_time = C7pn",
"def C7pn(YKHO, C7pn):\n YKHO._end_time = C7pn",
"def C7pn(YKHO, C7pn):\n YKHO._end_time =... | [
"0.74154687",
"0.72433025",
"0.72433025",
"0.71079034",
"0.71079034",
"0.71079034",
"0.70267683",
"0.6757662",
"0.65875345",
"0.6584512",
"0.65775084",
"0.6564674",
"0.64220506",
"0.6307276",
"0.6306432",
"0.62606716",
"0.6236364",
"0.6166708",
"0.61591816",
"0.61591816",
"0.... | 0.69917494 | 7 |
Set ending LST time for track. | def SFSt(yv6U=None, Oa8f=None):
if yv6U == None and Oa8f == None:
KCHu.setScriptBool(C8RD.INDX_BOOL_ENDTRACK, True)
c4is('\nWarning: If you are running the queue() program, the next\nscript in the queue file will still be executed unless\nyou comment or remove the remaining scripts!\n\n', color='blu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gO0s(YKHO, i8WE):\n SaH1 = YKHO.floor_time(i8WE)\n if YKHO.last_timestamp is None or SaH1 > YKHO.last_timestamp:\n YKHO.last_timestamp = SaH1",
"def C7pn(YKHO, C7pn):\n YKHO._end_time = C7pn",
"def C7pn(YKHO, C7pn):\n YKHO._end_time = C7pn",
"def C7pn(YKHO, C7pn):\n YKHO._end_time =... | [
"0.74154687",
"0.72433025",
"0.72433025",
"0.71079034",
"0.71079034",
"0.71079034",
"0.70267683",
"0.69917494",
"0.6757662",
"0.65875345",
"0.6584512",
"0.65775084",
"0.6564674",
"0.64220506",
"0.6307276",
"0.6306432",
"0.62606716",
"0.6236364",
"0.6166708",
"0.61591816",
"0.... | 0.6104503 | 25 |
End source/phasecalibrator cycles after observing next observation of the phase calibrator. If there are multiple phase calibrators in the track, stopAfterNextCal() will only end the current phase calibrator cycle. | def pt0S():
KCHu.setScriptBool(C8RD.INDX_BOOL_STOPNEXTCAL, True)
nl2N('stopAfterNextCal() command issued') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iHYI():\n pass",
"def XX6o(Mjtj):\n E05a.stop_continuous_recognition()\n nonlocal done\n _ins = True",
"def XX6o(Mjtj):\n E05a.stop_continuous_recognition()\n global done\n _ins = True",
"def mzVX(YKHO) -> None:\n YKHO.running_phase_state = None",
"def JCyR(YKHO):\n xi8C.outp... | [
"0.5738766",
"0.5522346",
"0.5416902",
"0.5297352",
"0.5296612",
"0.5261284",
"0.5194817",
"0.5191342",
"0.5082681",
"0.50724125",
"0.50649804",
"0.50312734",
"0.5026157",
"0.50197494",
"0.4967035",
"0.49494922",
"0.4924713",
"0.4866965",
"0.4864145",
"0.4863429",
"0.48568004... | 0.60340816 | 0 |
Set the name for the current configuration, e.g E07a. | def jUNJ(mWFP):
KCHu.setConfigName(mWFP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WZrJ(YKHO, mWFP):\n YKHO.settings['name'] = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.options['name'] = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO._name = n_Rt",
"def WZrJ(YKHO, L15R=''):\n YKHO.name = L15R",
"def WZrJ(YKHO, VpPs):\n YKHO._name = VpPs",
"def WZrJ(YKHO, mWFP):\n YKHO.name_ = mW... | [
"0.75990784",
"0.72593856",
"0.71909016",
"0.71906376",
"0.7132947",
"0.7092127",
"0.7087652",
"0.70426255",
"0.70426255",
"0.70426255",
"0.70426255",
"0.70426255",
"0.70295274",
"0.70295274",
"0.70191246",
"0.70191246",
"0.70191246",
"0.70191246",
"0.6998889",
"0.69505775",
... | 0.7444697 | 1 |
Even though name is unique, slug may be not unique. For example, | def xkzz(YKHO, *qIxc, **B2fa):
if not YKHO.id:
s5ru = eIIt(YKHO.name)
YRbF = 2
while _baS.objects.filter(slug=s5ru):
s5ru = '{slug}-{i}'
YRbF += 1
YKHO.slug = s5ru
YKHO.name = OnYg(YKHO.name)
return super(_baS, YKHO).save(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QXWQ(YKHO):\n QXWQ(YKHO, based_on_field='name')",
"def AKEA(p_z1, cFsz, s5ru):\n BcCR = p_z1.model._meta.get_field(cFsz).max_length\n s5ru = s5ru[:BcCR]\n YRbF = 0\n while True:\n if YRbF > 0:\n if YRbF > 1:\n s5ru = s5ru.rsplit('-', 1)[0]\n s5ru = '... | [
"0.79414505",
"0.74106187",
"0.74045104",
"0.73895246",
"0.72333616",
"0.7183754",
"0.71767503",
"0.7139916",
"0.7104856",
"0.7050976",
"0.7008507",
"0.69925237",
"0.6925943",
"0.6914099",
"0.685582",
"0.6850271",
"0.6848184",
"0.6817208",
"0.6798435",
"0.6795192",
"0.6773986... | 0.68454707 | 17 |
Returns if the word is in the trie. | def TgwQ(YKHO, GIN8: str) -> bool:
Q6kx = YKHO.root
for hcXw in GIN8:
if hcXw not in Q6kx:
return False
Q6kx = Q6kx[hcXw]
if '#' not in Q6kx:
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DUe0(YKHO, ZOCz, GIN8):\n TXkI = ZOCz\n for sZqf in GIN8:\n if sZqf in TXkI:\n TXkI = TXkI[sZqf]\n else:\n return False\n else:\n if '_end_' in TXkI:\n return TXkI['_end_']\n else:\n return False\n return False",
"def Gtm1(ZO... | [
"0.838632",
"0.8150416",
"0.8123471",
"0.7856802",
"0.7830664",
"0.77935004",
"0.7792806",
"0.77642965",
"0.7753436",
"0.7747724",
"0.7711298",
"0.76816714",
"0.7677101",
"0.7664614",
"0.76506114",
"0.76338875",
"0.7628353",
"0.76114196",
"0.7577657",
"0.75695884",
"0.756079"... | 0.713551 | 54 |
Returns the parameter if it's a valid scratch config entry, otherwise raises an exception. Key path is optional, nonempty string. | def jVFl(I5DN) -> str:
if not isinstance(I5DN, str):
raise TypeError(mOUV(label='scratch', value=I5DN, expected=MVTW, regex=C7Qc))
if not SkIV.match(I5DN):
raise ValueError(mOUV(label='scratch', value=I5DN, expected=MVTW, regex=C7Qc))
return I5DN | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H4si(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'check_path')",
"def H4si(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'check_path')",
"def OP2O(YKHO, H5ew):\n if H5ew not in YKHO.config:\n print('WARNING: Key %s is not one of the config args, it is ignored' % H5ew)\... | [
"0.567993",
"0.567993",
"0.56599975",
"0.55387414",
"0.55180293",
"0.54735005",
"0.54085237",
"0.5316587",
"0.5315691",
"0.5297647",
"0.5280478",
"0.5252933",
"0.5237608",
"0.5224583",
"0.520088",
"0.51881564",
"0.5168797",
"0.51563096",
"0.5152865",
"0.5152865",
"0.5152865",... | 0.53174263 | 7 |
Tests encoded_defaults for default content availability. | def mnc8(YKHO):
YKHO.assertEquals({'availability': sDlr.AVAILABILITY_UNAVAILABLE}, YKHO.TCT.encoded_defaults()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mnc8(YKHO):\n YKHO.assertEquals(None, YKHO.TMT.encoded_defaults())\n aEqx = {'availability': FK5G.AVAILABILITY_NONE_SELECTED}\n for q5XV in YKHO.TMT.KNOWN_MILESTONES:\n aEqx['milestone'] = q5XV\n YKHO.assertEquals(aEqx, YKHO.TMT.encoded_defaults(milestone=q5XV))",
"def IuVj(YKHO, muwo)... | [
"0.6882404",
"0.6022345",
"0.5952608",
"0.59206825",
"0.59206825",
"0.59206825",
"0.5800904",
"0.5745019",
"0.57314473",
"0.5730746",
"0.5709854",
"0.57065046",
"0.56951386",
"0.56719714",
"0.56630874",
"0.56560576",
"0.5653553",
"0.56516874",
"0.56444764",
"0.5638715",
"0.56... | 0.71467835 | 0 |
Sets start/end dates in the env dict and save Course settings. | def dTpz(Emd4, kepv, KhBf, sEAN, GQfX):
sDlr.Course.set_named_course_setting_in_environ(uwaB.START_DATE_SETTING, sEAN, kepv)
sDlr.Course.set_named_course_setting_in_environ(uwaB.END_DATE_SETTING, sEAN, KhBf)
GQfX.save_settings(sEAN) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lfhB(Emd4, sEAN, GQfX):\n sDlr.Course.clear_named_course_setting_in_environ(uwaB.START_DATE_SETTING, sEAN)\n sDlr.Course.clear_named_course_setting_in_environ(uwaB.END_DATE_SETTING, sEAN)\n GQfX.save_settings(sEAN)",
"def gqw_(N2uJ):\n mg_I(Ptcz, '12/20/2013')\n mg_I(sWaC, '12/26/2013')\n m... | [
"0.76056725",
"0.6693804",
"0.6623653",
"0.596774",
"0.5526295",
"0.53793997",
"0.5373826",
"0.5316276",
"0.53008837",
"0.52950966",
"0.52711564",
"0.52555025",
"0.52297807",
"0.5215605",
"0.5172544",
"0.50916505",
"0.49732736",
"0.49320087",
"0.4926757",
"0.4919198",
"0.4901... | 0.85006946 | 0 |
Clears start/end dates in the env dict and save Course settings. | def lfhB(Emd4, sEAN, GQfX):
sDlr.Course.clear_named_course_setting_in_environ(uwaB.START_DATE_SETTING, sEAN)
sDlr.Course.clear_named_course_setting_in_environ(uwaB.END_DATE_SETTING, sEAN)
GQfX.save_settings(sEAN) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dTpz(Emd4, kepv, KhBf, sEAN, GQfX):\n sDlr.Course.set_named_course_setting_in_environ(uwaB.START_DATE_SETTING, sEAN, kepv)\n sDlr.Course.set_named_course_setting_in_environ(uwaB.END_DATE_SETTING, sEAN, KhBf)\n GQfX.save_settings(sEAN)",
"def gqw_(N2uJ):\n mg_I(Ptcz, '12/20/2013')\n mg_I(sWaC, ... | [
"0.7170265",
"0.5950432",
"0.5559638",
"0.5531477",
"0.5512223",
"0.5477832",
"0.54643327",
"0.5199673",
"0.50414866",
"0.50282294",
"0.5017112",
"0.50159776",
"0.50101876",
"0.50023746",
"0.49994445",
"0.49873328",
"0.4944921",
"0.49434495",
"0.49427646",
"0.49107668",
"0.49... | 0.84702414 | 0 |
Get preferred executor for ability Will return None if the agent is not capable of running any executors in the given ability. | async def get_preferred_executor(YKHO, x2cn):
aKMu = x2cn.find_executors(YKHO.executors, YKHO.platform)
if not aKMu:
return None
VyZG = YKHO._get_preferred_executor_name()
for ZaUd in aKMu:
if ZaUd.name == VyZG:
return ZaUd
return aKMu[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZaUd(YKHO, mWFP):\n return RMGy.require(ByBc, mWFP)",
"def _Cwi():\n try:\n return Oafp.local_thread.executor_object\n except AttributeError:\n pass\n return None",
"def AWVg(gon_: int) -> ByBc:\n return D1Bc() if gon_ == 1 else AEzq(gon_ or None)",
"def ZaUd(YKHO):\n if Y... | [
"0.638568",
"0.6196815",
"0.5967114",
"0.59295124",
"0.5148409",
"0.5088872",
"0.5082672",
"0.5080718",
"0.50478846",
"0.50345725",
"0.50103617",
"0.49430525",
"0.49265295",
"0.49049777",
"0.49015915",
"0.48791605",
"0.4863712",
"0.4825056",
"0.48142576",
"0.48113245",
"0.480... | 0.89876074 | 0 |
Initializes, configures and returns Flask App Instance object. | def LUif():
P4t4 = L2w0(__name__)
P4t4.config.from_object('DiamondCaseWeb.config.DevelopmentConfig')
Ffmk.register_assets(P4t4)
cpYK = htpw.setup_mail(P4t4)
from DiamondCaseWeb.model.product import Product, ProductCategory, LocationProduct
from DiamondCaseWeb.model.static import HelpArticle, Hom... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P4t4(YKHO):\n P1dF = lambda G1Hx: 'Fatal: You need to specify a \"flask\" section ' + 'with an entry like \"' + G1Hx + '=...\" in your .ini file'\n try:\n kvcN = YKHO['flask.app']\n except KeyError:\n raise SystemExit(P1dF('app'))\n try:\n QDug = YKHO['flask.secret_key']\n ... | [
"0.79638827",
"0.7958517",
"0.79187816",
"0.7831396",
"0.7783478",
"0.7758661",
"0.77425784",
"0.7640233",
"0.76298624",
"0.7626029",
"0.7606407",
"0.7552399",
"0.7545732",
"0.7537301",
"0.7490981",
"0.74586934",
"0.74462163",
"0.7430262",
"0.74128616",
"0.7409069",
"0.740801... | 0.0 | -1 |
Finds leg lengths L such that the platform is in position defined by a = [x, y, z, alpha, beta, gamma] | def fo57(iAtV, MIIv, jzdc, fo57=True):
rVnq = jzdc[3]
idx7 = jzdc[4]
nYlf = jzdc[5]
JTbA = epAf.cos(rVnq)
MXma = epAf.sin(rVnq)
ROID = epAf.cos(idx7)
bhim = epAf.sin(idx7)
Jbj_ = epAf.cos(nYlf)
IpyN = epAf.sin(nYlf)
sDMz = oyIN.array([[Jbj_ * ROID, Jbj_ * bhim * MXma - IpyN * JTb... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def v8zV(vC9B):\n return pImw(vC9B[0], vC9B[1])",
"def jKFQ(jyNn: np.ndarray, ko2r: float) -> oyIN.ndarray:\n u9kW = 120.08\n return jyNn * oyIN.sqrt(ko2r / u9kW)",
"def H2Eu(OCPu, uy3Y, b3Do, aC_I, CQX4, uGSY):\n ZQug = (oyIN.asarray(OCPu[0]) + oyIN.asarray(uy3Y[0])) / 2.0\n BeHb = oyIN.linalg.... | [
"0.5850614",
"0.58472407",
"0.5738114",
"0.5685303",
"0.56820154",
"0.56550467",
"0.56530106",
"0.5629573",
"0.5560763",
"0.5513427",
"0.5506751",
"0.5496852",
"0.54153",
"0.54111063",
"0.53832495",
"0.5378905",
"0.53501225",
"0.5344257",
"0.5285661",
"0.5278475",
"0.5275552"... | 0.0 | -1 |
This function creates distance matrix based on Euclidean distance between each data points | def xRmM(SppC):
SppC = oyIN.array(SppC)
exwG = SppC.shape[0]
for YRbF in range(exwG):
y3nW = usGr(SppC[YRbF, :], SppC)
if YRbF == 0:
oWao = y3nW
else:
oWao = oyIN.concatenate((oWao, y3nW), axis=1)
return oWao | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yfx6(nPrm):\n lWPh = XTiz.zeros((nPrm.shape[0], nPrm.shape[0]))\n for YRbF in Ni9Y(nPrm.shape[0]):\n for r845 in Ni9Y(YRbF):\n lWPh[YRbF, r845] = XTiz.linalg.norm(nPrm[YRbF, :] - nPrm[r845, :])\n lWPh[r845, YRbF] = lWPh[YRbF, r845]\n return lWPh",
"def gcqA(YKHO, _1YC, t... | [
"0.77092516",
"0.74066657",
"0.69956774",
"0.6976134",
"0.69391745",
"0.689667",
"0.68290097",
"0.6808925",
"0.68028307",
"0.6777758",
"0.6771038",
"0.67688423",
"0.67643416",
"0.67508024",
"0.6700348",
"0.66910106",
"0.6671188",
"0.66511667",
"0.66438985",
"0.6616614",
"0.66... | 0.7373828 | 2 |
This function calculates Euclidean distance between data1 and data2 | def usGr(BZgl, X9Rj):
eSw6 = oyIN.array(BZgl)
_baA = oyIN.array(X9Rj)
y3nW = oyIN.sqrt(oyIN.sum((_baA - eSw6) ** 2, axis=1))
return oyIN.reshape(y3nW, [len(y3nW), 1]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Gvwv(BZgl, X9Rj):\n Ayfi = 0\n for WKvO in range(14):\n BZgl[WKvO] = G34s(BZgl[WKvO], 3)\n X9Rj[WKvO] = G34s(X9Rj[WKvO], 3)\n pImw = G34s((BZgl[WKvO] - X9Rj[WKvO]) ** 2, 3)\n Ayfi = G34s(Ayfi + pImw, 3)\n Ayfi = G34s(oyIN.sqrt(Ayfi), 3)\n return Ayfi",
"def rkEX(G22I, ... | [
"0.85524786",
"0.8366913",
"0.8059013",
"0.7997354",
"0.7976146",
"0.79569393",
"0.7779689",
"0.7755199",
"0.7751564",
"0.7729782",
"0.7728699",
"0.7724675",
"0.7715573",
"0.7703966",
"0.7702208",
"0.76962894",
"0.75868785",
"0.75775486",
"0.75720084",
"0.7547875",
"0.7535825... | 0.84898156 | 1 |
The home page for news_site. | def d6pt(QePW):
if QePW.method != 'POST':
L03z = XZMq()
QpfX = {'form': L03z}
return _1tc(QePW, 'news_site/index.html', QpfX) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vja_(tZfv):\n return tZfv.root_page",
"def C_QL():\n return TvZl('home/index.html', title='Bem vindo!')",
"def C_QL():\n return TvZl('home/a_homepage.html', title='Welcome')",
"def kZiy():\n return TvZl('index.html', title='Home Page', year=qcWV.now().year)",
"def kZiy():\n return TvZl('... | [
"0.77112705",
"0.7618075",
"0.7589709",
"0.75023735",
"0.74955976",
"0.74815565",
"0.74758005",
"0.74758005",
"0.74521255",
"0.7448393",
"0.7447882",
"0.7437015",
"0.7422505",
"0.73441136",
"0.73429143",
"0.7338662",
"0.7338662",
"0.7338662",
"0.7338662",
"0.7338662",
"0.7338... | 0.0 | -1 |
Hidden Tensor Initializer. Start hidden tensor full of zeros by created size | def MP8d(YKHO):
return iQnE(ht2j.randn(1, YKHO.hidden_size)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kNvj(YKHO, Ep8u):\n YEL5 = ht2j.zeros(YKHO.n_layers, Ep8u, YKHO.hidden_size)\n return YEL5",
"def MP8d(YKHO, Ep8u):\n return (ht2j.zeros(()), ht2j.zeros(()))",
"def MAw8(YKHO, Ep8u):\n return ZylS.zeros((Ep8u, YKHO.enc_units))",
"def MAw8(YKHO):\n return ZylS.zeros(shape=(YKHO.batch_size, ... | [
"0.8190234",
"0.79255444",
"0.7924486",
"0.77253634",
"0.7683984",
"0.76203763",
"0.75142246",
"0.74821234",
"0.741953",
"0.741953",
"0.7415746",
"0.7415746",
"0.7415746",
"0.7415746",
"0.7415746",
"0.7415746",
"0.7415746",
"0.7415746",
"0.7329116",
"0.71974355",
"0.7174794",... | 0.7422839 | 8 |
This method calculates the sigmoid | def m1Hg(epBp):
return 1 / (1 + oyIN.exp(-epBp)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m1Hg(WKvO):\n return 1 / (1 + r8hN.exp(-WKvO))",
"def m1Hg(WKvO):\n hcL3 = 1.0 / (1.0 + oyIN.exp(-WKvO))\n return hcL3\n pass",
"def m1Hg(WKvO):\n return 1 / (1 + kLQb(-WKvO))",
"def m1Hg(WKvO):\n return 1 / (1 + kLQb(-WKvO))",
"def m1Hg(epBp):\n return mFhB(epBp)",
"def m1Hg(WKv... | [
"0.8340938",
"0.8299354",
"0.8263224",
"0.8263224",
"0.82382685",
"0.8222776",
"0.8220394",
"0.81881106",
"0.8182516",
"0.81802285",
"0.81802285",
"0.81752795",
"0.8165987",
"0.8163658",
"0.8163658",
"0.8163658",
"0.8163658",
"0.8163658",
"0.8163658",
"0.8154532",
"0.81391674... | 0.78263307 | 66 |
Generate random account name. | def aGc3():
return 'jdoe-' + str(qxeD()).lower()[:16] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HvHm(YKHO):\n KoG3 = vIwR.ascii_letters\n TweX = ''.join((tuKI.choice(KoG3) for bGrB in range(10)))\n assert isinstance(TweX, str)\n return TweX",
"def djI1():\n return str(qxeD.uuid4().hex.upper())",
"def oRUu() -> str:\n return str(qxeD.uuid4())",
"def CnXH(YKHO, u54L=10):\n return... | [
"0.8303968",
"0.8120217",
"0.8100042",
"0.77641845",
"0.7753038",
"0.76790786",
"0.76534474",
"0.76172715",
"0.7595423",
"0.75660664",
"0.75545484",
"0.7548045",
"0.75479037",
"0.7371235",
"0.7327479",
"0.7317477",
"0.7268474",
"0.7216197",
"0.7207971",
"0.71842176",
"0.71314... | 0.87259203 | 0 |
Return all characteristic values as a numpy array in the order presented in `pylidc._all_characteristics_`. | def QR9X(YKHO):
return oyIN.array([getattr(YKHO, hcXw) for hcXw in CeRP]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qw7D(YKHO):\n return qw7D(YKHO.get_values())",
"def sj0G(YKHO):\n return oyIN.hstack(YKHO.values())",
"def Z_KL(YKHO):\n WKvO = P7pI.qv2x(YKHO.dyn_sys.tpwl_dict['q'], YKHO.dyn_sys.tpwl_dict['v'])\n fDq1 = oyIN.abs(WKvO).max(axis=0)\n eHNT = oyIN.zeros(WKvO.shape)\n for YRbF in range(WKvO.... | [
"0.658936",
"0.6133145",
"0.61247593",
"0.60914385",
"0.60115767",
"0.598908",
"0.59529126",
"0.5922147",
"0.5917438",
"0.5913722",
"0.58510214",
"0.5841785",
"0.5768531",
"0.57629716",
"0.57280236",
"0.5700412",
"0.5694716",
"0.5689029",
"0.56782",
"0.5669914",
"0.5669728",
... | 0.82255787 | 0 |
Verify that MAX_RANGE is respected. | def sV8O(YKHO):
J9Sm = [682, 681, 682]
YKHO.driver.us_dist.side_effect = lambda WKvO: J9Sm.pop()
bGVF = int(ORYP(YKHO.s.MAX_RANGE))
YKHO.assertEqual(YKHO.s.sense_distance(60), bGVF) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dAyY(wEf2, JCoA):\n if wEf2 < 0:\n wEf2 = 0\n elif wEf2 > JCoA:\n wEf2 = JCoA\n else:\n pass\n return wEf2",
"def F8Ta(BWXx, vELP, PtQX):\n if BWXx in range(vELP, PtQX):\n return True\n else:\n return False",
"def TZ1P(YKHO):\n YKHO.log.info('Testing ... | [
"0.7301762",
"0.7076014",
"0.69999665",
"0.69903356",
"0.688435",
"0.6852546",
"0.67921376",
"0.6782766",
"0.67262405",
"0.6694337",
"0.6664958",
"0.662481",
"0.6619724",
"0.66177267",
"0.6616714",
"0.66074955",
"0.6572099",
"0.6544127",
"0.6521212",
"0.6501114",
"0.64981514"... | 0.0 | -1 |
Resets all parameters in a network. | def LloZ(C3ST: nn.Module) -> None:
@ht2j.no_grad()
def fAZZ(r8hN: nn.Module):
Q0Ko = getattr(r8hN, 'reset_parameters', None)
if callable(Q0Ko):
r8hN.reset_parameters()
C3ST.apply(fn=fAZZ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q0Ko(YKHO) -> None:\n for pM5e in YKHO.gnn_blocks:\n pM5e.reset_parameters()",
"def Q0Ko(YKHO):\n for gEmA in YKHO.layers:\n gEmA.reset_parameters()",
"def Q0Ko(YKHO):\n YKHO.lin.reset_parameters()\n YKHO.att.reset_parameters()\n YKHO.gnn_score.reset_parameters()\n if YKHO.g... | [
"0.80343693",
"0.79820913",
"0.7937079",
"0.7756223",
"0.77396476",
"0.76309854",
"0.7530589",
"0.75222486",
"0.7480688",
"0.7480688",
"0.7480688",
"0.7468137",
"0.74494785",
"0.7409514",
"0.73138964",
"0.7312042",
"0.73108065",
"0.7296458",
"0.7288982",
"0.72201043",
"0.7196... | 0.0 | -1 |
r"""Takes integer with n dims and converts it to 1hot representation with n + 1 dims. The n+1'st dimension will have zeros everywhere but at y'th index, where it will be equal to 1. | def kj8B(LVAh, rb7a=None):
YyP4 = LVAh.to(ht2j.int64).view(-1, 1)
rb7a = rb7a if rb7a is not None else int(ht2j.max(YyP4)) + 1
cHjf = ht2j.zeros(YyP4.size()[0], rb7a, device=LVAh.device).scatter_(1, YyP4, 1)
cHjf = cHjf.view(*tuple(LVAh.shape) + (-1,))
return cHjf | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KLLm(ijL8):\n ijL8 = ijL8.reshape(len(ijL8))\n uqVt = int(oyIN.max(ijL8)) + 1\n uqVt = 6\n return oyIN.eye(uqVt)[oyIN.array(ijL8, dtype=oyIN.int32)]",
"def zGX0(LVAh, OVDz):\n exwG = len(LVAh)\n QYSp = oyIN.zeros((exwG, OVDz))\n QYSp[range(exwG), LVAh] = 1\n return QYSp",
"def kj8B(... | [
"0.796441",
"0.7948282",
"0.7860178",
"0.77373374",
"0.7719808",
"0.77065057",
"0.7700409",
"0.7636841",
"0.76207334",
"0.7578422",
"0.7576558",
"0.7504232",
"0.7483239",
"0.7472513",
"0.7464411",
"0.7456884",
"0.7439735",
"0.74243283",
"0.7359619",
"0.734951",
"0.7348022",
... | 0.7197611 | 31 |
Returns a normalized version of a numpy vector | def NkkI(he6J):
return he6J / u54L(he6J) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HBfW(Ty9i):\n CkYf = oyIN.linalg.norm(Ty9i)\n if CkYf:\n return oyIN.array(Ty9i) / CkYf\n else:\n return Ty9i",
"def NkkI(Ty9i):\n return oyIN.array(Ty9i) / oyIN.linalg.norm(Ty9i)",
"def k5KY(iArr):\n wQQg = AArG(iArr)\n if wQQg != 0:\n return oyIN.divide(iArr, AArG(i... | [
"0.8382922",
"0.82990193",
"0.8259853",
"0.8214056",
"0.8172827",
"0.80436724",
"0.7969755",
"0.7895023",
"0.78783345",
"0.78408086",
"0.78408086",
"0.78408086",
"0.77938575",
"0.77938575",
"0.77938575",
"0.77938575",
"0.77938575",
"0.77938575",
"0.77938575",
"0.77938575",
"0... | 0.7703704 | 30 |
Blur a binary image of onehot points into blobs | def kwfp(neaT, WTkW=1, F4OS=1, yDqo='float32'):
gyoy = IAWS(neaT, sigma=WTkW, preserve_range=True)
dIng = F4OS * (gyoy / gyoy.max())
return dIng.astype(yDqo) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ffz0(VXjJ):\n LNo8 = jbYn.cvtColor(VXjJ, jbYn.COLOR_BGR2GRAY)\n LNo8 = jbYn.GaussianBlur(LNo8, (3, 3), 0)\n U5bT, LNo8 = jbYn.threshold(LNo8, 0, 255, jbYn.THRESH_BINARY_INV | jbYn.THRESH_OTSU)\n return LNo8",
"def oqsm(EcVT):\n return tMo6(EcVT, gVmy)",
"def jUwU(LNo8, Ot1W=(7, 7)):\n LNo... | [
"0.69813436",
"0.6756291",
"0.6524612",
"0.6524612",
"0.6470922",
"0.64067423",
"0.63896084",
"0.63352126",
"0.63303584",
"0.62229973",
"0.619533",
"0.6192017",
"0.6188834",
"0.618121",
"0.61782444",
"0.617698",
"0.617533",
"0.6171011",
"0.61460197",
"0.6121013",
"0.6078705",... | 0.0 | -1 |
Serializes and optimizes `obj`. | def t2lc(YEnM):
return J3AG.optimize(rIin.dumps(YEnM)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Napc(YEnM):\n return Ygq8.serialize(YEnM)",
"def Napc(YKHO, YEnM):\n pass",
"def Napc(YEnM):\n return t2lc.dumps(YEnM)",
"def WFRV(Emd4, YEnM):\n return uqom.serialize_forstorage(YEnM)",
"def Napc(YKHO, YEnM):\n return YEnM",
"def cWmZ(YEnM: t.Any, **B2fa) -> None:\n bWeC.jdump(obj=... | [
"0.7497463",
"0.72954184",
"0.72607034",
"0.7084962",
"0.68679386",
"0.6842404",
"0.66578233",
"0.66539603",
"0.6605147",
"0.6605147",
"0.65930146",
"0.6498019",
"0.6478875",
"0.6396613",
"0.63773865",
"0.6370594",
"0.63476485",
"0.6312579",
"0.6238561",
"0.6238561",
"0.62066... | 0.7735133 | 0 |
Get production image create it's testable version. For now, it adds just a coverage library as additional requirements, so our image tests can enable it in order to obtain coverage information of the docker/k8s related code. | def WTRN(i6XV: ImageType, ojmT: Type[ContainerisedAgentBuilder], iJKf: CpuArch, S9or: str, rgo4: pl.Path=None, quAQ: bool=True):
mVWw = ojmT()
_LjS = 'agent_image_e2e_test_registry'
o0AK(container_name=_LjS)
Yn3K.run(['docker', 'run', '-d', '--rm', '-p=5000:5000', f'--name={_LjS}', 'registry:2'], check=... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _J4R(Qvn0):\n return '{}:{}'.format(db_s._IMAGE_REPO_NAME, Qvn0)",
"def ngly(QC9V, srZT, seLK):\n C7_O = 'runner:%s' % srZT\n QMAG = Hy7s.path.join(QC9V, 'runner_image')\n O2Ii.build_and_tag(C7_O, QMAG, log_path=seLK)\n return C7_O",
"def n5QZ():\n with SzHJ(sEAN.local_path):\n NpN... | [
"0.60722476",
"0.60149956",
"0.5801076",
"0.56776553",
"0.5626107",
"0.5608371",
"0.5608036",
"0.54736507",
"0.5470767",
"0.5428152",
"0.5400544",
"0.5348892",
"0.5346526",
"0.53116447",
"0.52694076",
"0.5261629",
"0.52526265",
"0.5247445",
"0.5245241",
"0.5218683",
"0.519586... | 0.64492244 | 0 |
function will return the number of days between two dates | def vmbo(cTWr, QWca, wvmP, rGZU, ZbjD, dzHS):
if qcWV.date(rGZU, ZbjD, dzHS) > qcWV.date(cTWr, QWca, wvmP):
return qcWV.date(rGZU, ZbjD, dzHS) - qcWV.date(cTWr, QWca, wvmP)
elif qcWV.date(cTWr, QWca, wvmP) != qcWV.date(qcWV.MAXYEAR - qcWV.MINYEAR, QWca <= 12, wvmP <= 31):
return 0
elif qcWV.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Klka(yKcO: date, Os4s: date) -> int:\n RA_F = Os4s - yKcO\n return RA_F.days + 1",
"def Fb4y(Ilc0, w0do):\n return abs(w0do - Ilc0).days",
"def qfAF(kepv, KhBf):\n kepv = qcWV.strptime(kepv, '%Y-%m-%d')\n KhBf = qcWV.strptime(KhBf, '%Y-%m-%d')\n return abs((KhBf - kepv).days)",
"def qfA... | [
"0.8254007",
"0.8174084",
"0.8101539",
"0.809075",
"0.8048821",
"0.8044719",
"0.8033608",
"0.79297876",
"0.7919733",
"0.7839554",
"0.78374386",
"0.77742183",
"0.7701619",
"0.7645565",
"0.7637051",
"0.7622217",
"0.7554301",
"0.7496069",
"0.7484374",
"0.73402756",
"0.7333817",
... | 0.68101245 | 31 |
make a grid of cells with the specified limits. limits is a list of pairs, [[lowx, lowy], [highx, highy]] | def JQyV(YKHO, c5uu):
gqRb, ODP9 = c5uu
fUYa = range(gqRb[0], ODP9[0])
bEXe = range(gqRb[1], ODP9[1])
for WKvO in fUYa:
fvDH = []
for LVAh in bEXe:
_0VL = (WKvO, LVAh)
YKHO.cells[_0VL] = laML(YKHO, _0VL) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Lm0U(jk7u, rTQi, YPaw):\n MEXo = oyIN.arange(jk7u[0], jk7u[1], YPaw)\n OV1s = oyIN.arange(rTQi[0], rTQi[1], YPaw)\n return (MEXo, OV1s)",
"def R0O3(nPrm=None, BQGg=-5, bYzl=5, h3cg=-5, Z3uP=5, KR0Q=400):\n if nPrm is not None:\n BQGg, h3cg = oyIN.min(nPrm, axis=0)\n bYzl, Z3uP = oyI... | [
"0.7732495",
"0.7290888",
"0.7176541",
"0.704265",
"0.70399666",
"0.70399666",
"0.70263743",
"0.6990715",
"0.67124534",
"0.6641184",
"0.6620352",
"0.65798974",
"0.6560937",
"0.65129614",
"0.6507297",
"0.6446217",
"0.6444136",
"0.6407571",
"0.6394874",
"0.6387809",
"0.6359436"... | 0.7728064 | 1 |
Returns the filtered queryset based on the value provided in the query string and retrievable via `self.value()` | def SR0I(YKHO, QePW, SR0I):
return SR0I if YKHO.value() is None else SR0I.filter(instrument__id=YKHO.value()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SR0I(YKHO, QePW, SR0I):\n if YKHO.value() is None:\n return SR0I.all()\n return SR0I.filter(firm__pk=YKHO.value())",
"def SR0I(YKHO, QePW, SR0I):\n if YKHO.value():\n return SR0I.filter(state_pol=YKHO.value())",
"def SR0I(YKHO, QePW, SR0I):\n if YKHO.value() is None:\n retu... | [
"0.75333345",
"0.74641174",
"0.7260013",
"0.7143524",
"0.7085953",
"0.7018582",
"0.68391055",
"0.6833029",
"0.6815648",
"0.6728348",
"0.661668",
"0.6576189",
"0.6504282",
"0.645309",
"0.6451229",
"0.6448983",
"0.64226824",
"0.63882715",
"0.6335274",
"0.63232267",
"0.6298416",... | 0.70646197 | 5 |
Initialize a dataset instance for repeat copy task. Arguments | def FIMM(YKHO, G02y):
YKHO.seq_width = G02y['seq_width']
YKHO.min_seq_len = G02y['min_seq_len']
YKHO.max_seq_len = G02y['max_seq_len']
YKHO.min_repeat = G02y['min_repeat']
YKHO.max_repeat = G02y['max_repeat']
YKHO.in_dim = G02y['seq_width'] + 2
YKHO.out_dim = G02y['seq_width'] + 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DbxN(*qIxc):\n global dataset\n __n6 = qIxc[0]",
"def FIMM(YKHO, __n6):\n YKHO._dataset = __n6",
"def FIMM(YKHO, __n6: Dataset):\n YKHO.dataset = __n6",
"def FIMM(YKHO):\n YKHO.args = YKHO._prepare_args(locals())\n YKHO.requires_full_dataset_in_memory = False",
"def FIMM(YKHO):\n Y... | [
"0.6871292",
"0.6721774",
"0.66915625",
"0.6545516",
"0.6436493",
"0.64204156",
"0.6417703",
"0.63900226",
"0.63114876",
"0.62611425",
"0.6261136",
"0.6203277",
"0.6097892",
"0.6090949",
"0.60590017",
"0.6045299",
"0.60280675",
"0.60096794",
"0.6000488",
"0.5997948",
"0.59872... | 0.0 | -1 |
Get an existing Application resource's state with the given name, id, and optional extra properties used to qualify the lookup. | def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None) -> 'Application':
VKhi = qe4Y.ResourceOptions.merge(VKhi, qe4Y.ResourceOptions(id=id))
r6DL = LPWC.__new__(LPWC)
r6DL.__dict__['description'] = None
r6DL.__dict__['display_name'] = None
r6DL.__dict__['name'] = No... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, VpPs: Optional[pulumi.Input[str]]=None, JBZA: Optional[pulumi.Input[str]]=None, vFpg: Optional[pulumi.Input[str]]=None, dJ1p: Optional[pulumi.Input[Mapping[str, Any]]]=None) -> 'Application':\n VKhi = qe4Y.ResourceOptions.me... | [
"0.65782505",
"0.63077",
"0.59393466",
"0.59080184",
"0.58678406",
"0.5844928",
"0.58177084",
"0.58115256",
"0.57609415",
"0.5708011",
"0.5665527",
"0.5596877",
"0.55864096",
"0.5508775",
"0.5489902",
"0.5462991",
"0.54588956",
"0.54408705",
"0.54064363",
"0.5389303",
"0.5389... | 0.6209207 | 2 |
set the name of the variable containing the integrated vapor transport(IVT) magnitude field. | def V9Qn(YKHO, SRYB):
YKHO.set_input_variable(SRYB) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kaxz(YKHO, Ux0P):\n YKHO._properties['var'] = 1.0 / ZgWQ.getdata(Ux0P)",
"def mWFP(YKHO):\n return '{} {} {}'.format(YKHO.var_period, YKHO.var_type, YKHO.var_detail)",
"def mWFP(YKHO, BWXx):\n YKHO.mol.SetProp('_Name', str(BWXx))",
"def SRYB(YKHO, mWFP):\n raise NotImplementedError",
"def S... | [
"0.5955025",
"0.58421874",
"0.57337844",
"0.5727621",
"0.5685497",
"0.5685497",
"0.5685497",
"0.5636607",
"0.56248283",
"0.55566645",
"0.5508442",
"0.5508442",
"0.54744375",
"0.5441381",
"0.5437144",
"0.54133207",
"0.5346642",
"0.53418773",
"0.53166014",
"0.52996147",
"0.5281... | 0.5783567 | 2 |
convert the tensor to a numpy array and extract the output data from the padded tensor. padding was added during preprocess. | def ZFtT(YKHO, ygSi):
tvqc = aM6C('teca_deeplab_ar_detect::postprocess')
jbXL = ht2j.sigmoid(ygSi)
if YKHO.device != 'cpu':
jbXL = jbXL.to('cpu')
dEvf = jbXL.numpy()
dEvf = dEvf[:, :, YKHO.ng_y0:YKHO.ng_y0 + YKHO.ny_in, YKHO.ng_x0:YKHO.ng_x0 + YKHO.nx_in]
return dEvf | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ial3(Oa1e, input, hVLt):\n OaeV = tAbw.get_context()\n _IMN = iG_U(ht2j.__version__)\n if _IMN.major == 1 and _IMN.minor < 10:\n return OaeV.origin_func(Oa1e, input, hVLt)\n eusk = ht2j.onnx.symbolic_opset9.size(Oa1e, hVLt, Oa1e.op('Constant', value_t=ht2j.tensor([0])))\n fdMZ = hxYY._get... | [
"0.60632575",
"0.6023878",
"0.59870327",
"0.591887",
"0.59053355",
"0.5826971",
"0.57423776",
"0.57330006",
"0.57089823",
"0.56877285",
"0.56666565",
"0.5595239",
"0.5593678",
"0.55928946",
"0.5576657",
"0.55558366",
"0.5523875",
"0.552349",
"0.5473608",
"0.5455306",
"0.54364... | 0.5863331 | 5 |
Returns whether the queried particletype operator is supported by this mapping. | def lGz1(YKHO, zc6p: ParticleOp) -> bool:
return isinstance(zc6p, ZkXy) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ocJx(YKHO) -> bool:\n a1PO = YKHO.type.strip()\n return a1PO in YKHO.SUPPORTED_LABELS or a1PO.lower() in YKHO.SUPPORTED_LABELS",
"def CaL7(YKHO) -> bool:\n return f34S.Psionic.value in YKHO.type_data.attributes",
"def sD09(YKHO):\n return True",
"def YDlc(YKHO):\n return isinstance(YKHO, V... | [
"0.6209507",
"0.60236984",
"0.58755344",
"0.5867701",
"0.5861172",
"0.5797319",
"0.57950944",
"0.5729426",
"0.5701224",
"0.5694179",
"0.5689202",
"0.5671311",
"0.56394696",
"0.56170326",
"0.56170326",
"0.5593421",
"0.5587711",
"0.55781263",
"0.55294603",
"0.547905",
"0.545724... | 0.6716687 | 0 |
If true, this qtree inherits the export policy of the parent volume. | def TOhJ(YKHO):
return YKHO._is_export_policy_inherited | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kgXq(YKHO):\n return False",
"def CItl(YKHO) -> bool:\n return YKHO._strategy.ignore_parent",
"def mBlY(YKHO) -> h8nf[bool]:\n return qe4Y.get(YKHO, 'allow_volume_expansion')",
"def mBlY(YKHO) -> h8nf[bool]:\n return qe4Y.get(YKHO, 'allow_volume_expansion')",
"def mBlY(YKHO) -> h8nf[bool]:\... | [
"0.58578163",
"0.5827211",
"0.5741612",
"0.5741612",
"0.5741612",
"0.5741612",
"0.5741612",
"0.5637727",
"0.55808127",
"0.55249184",
"0.5512349",
"0.55097127",
"0.5490801",
"0.54336846",
"0.53777486",
"0.53055096",
"0.52935666",
"0.52821714",
"0.52658117",
"0.5245743",
"0.521... | 0.7056977 | 0 |
Name of the vfiler which owns this qtree. This value will be returned only if the request is coming to vfiler0 and MultiStore is licensed. | def _nK8(YKHO):
return YKHO._owning_vfiler | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MAki(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'moc_vnet_name')",
"def LLn0(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'vnet_name')",
"def G46L(YKHO):\n return ''",
"def W0tD(YKHO):\n return YKHO.nvPublic.get_name()",
"def jbah(YKHO) -> str:\n return qe4Y.get(YKHO, ... | [
"0.60422754",
"0.58420116",
"0.5792644",
"0.5778097",
"0.57292646",
"0.5698643",
"0.5697503",
"0.5656808",
"0.5650505",
"0.5641572",
"0.5641572",
"0.55996424",
"0.5584626",
"0.55674624",
"0.55426574",
"0.5531291",
"0.55137247",
"0.54894155",
"0.5482504",
"0.5482504",
"0.54761... | 0.6453278 | 0 |
Checks whether this doer has started shutting down already. | def SXbL(YKHO):
return YKHO._shutdown.is_set() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gH0U(YKHO):\n return YKHO._in_shutdown",
"def HX9S(YKHO):\n return not YKHO._kill_event.is_set()",
"def K4e0(YKHO) -> bool:\n return YKHO.is_disconnected() and YKHO.recorder.is_stopped() and (not YKHO.__flag_auto_restart)",
"def Bpvr(YKHO):\n return not YKHO._stop.is_set()",
"def eRwN(YKHO)... | [
"0.74359566",
"0.71504325",
"0.7065761",
"0.7055656",
"0.6903392",
"0.6894518",
"0.68753225",
"0.67805177",
"0.67737854",
"0.67309123",
"0.6729409",
"0.6692879",
"0.6688958",
"0.668652",
"0.6674662",
"0.6674662",
"0.6674662",
"0.6674662",
"0.6673122",
"0.66613835",
"0.6659753... | 0.82734495 | 0 |
Counts the number of automorphisms that are present in the graph G. | def _yZI(Oa1e: Graph) -> int:
def Ftc5(Oa1e: Graph, MKlR: Graph):
"""
Generates the corresponding mapping from vertex to vertex for the isomorphism between graphs g and h.
We map g to h.
:param g: A graph
:param h: A graph
:return: A permutation with the mapping from... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DYWN(pNZh):\n return mBkc(ZzUD(pNZh))",
"def tpiF(pNZh):\n return mBkc((nPrm[yJxY] for bGrB, bGrB, nPrm in pNZh.edges_iter(data=True)))",
"def F1gK(pNZh):\n return mBkc(zhES.chain.from_iterable(LMAj(pNZh).values()))",
"def LwCy(pNZh):\n return mBkc(sn7C(pNZh))",
"def gOcx(YKHO, C7Ls):\n ... | [
"0.690151",
"0.68574446",
"0.66638315",
"0.6161389",
"0.61542135",
"0.6107411",
"0.60706353",
"0.60482836",
"0.600044",
"0.5969042",
"0.59673154",
"0.5964259",
"0.59581065",
"0.59419197",
"0.5926216",
"0.5883015",
"0.58650196",
"0.5862715",
"0.58529586",
"0.58438826",
"0.5836... | 0.73623633 | 0 |
Load a YAML configuration file. | def BLx6(o1Rf):
with open(o1Rf, 'r') as wOb_:
_Fei = eJb6.load(wOb_)
_Fei = Ixiq(Hy7s.path.dirname(o1Rf), _Fei)
return _Fei | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LgIG(pmON):\n return eJb6.load(open('config.yaml', 'r'), Loader=eJb6.SafeLoader)",
"def bsaa(pmON):\n with open(pmON) as nUeQ:\n return eJb6.load(nUeQ, Loader=eJb6.FullLoader)",
"def LgIG(pmON):\n return eJb6.load(open(pmON, 'r'), Loader=eJb6.SafeLoader)",
"def f9B0(wV3k):\n with open(... | [
"0.814296",
"0.8103789",
"0.79987746",
"0.7985093",
"0.79837126",
"0.79620045",
"0.7931559",
"0.7924978",
"0.79169375",
"0.79069126",
"0.7890046",
"0.78393507",
"0.7829682",
"0.77664226",
"0.7753482",
"0.7661323",
"0.7639789",
"0.75922006",
"0.7551304",
"0.74810594",
"0.74744... | 0.74139476 | 27 |
Initialize the LinkedList here | def FIMM(YKHO):
YKHO.head = None
YKHO.tail = YKHO.head | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n try:\n YKHO.head = None\n except Exception as error:\n print(f'There is error in __init__ of LinkedList, the error {P1dF}')",
"def FIMM(YKHO, yv6U=[]):\n YKHO.__length = 0\n YKHO.__head = None\n for tTpl in yv6U:\n YKHO.add(tTpl)",
"def FIMM(YKHO):\n Q6k... | [
"0.79814774",
"0.7727187",
"0.7706039",
"0.7640208",
"0.7629128",
"0.76036906",
"0.7596818",
"0.7596818",
"0.7596818",
"0.75814563",
"0.7575526",
"0.7575512",
"0.7575512",
"0.75573826",
"0.75573826",
"0.7550369",
"0.753677",
"0.7535548",
"0.7535548",
"0.7528727",
"0.7497972",... | 0.75931615 | 9 |
Internal method for getting layer from model | def oX23(YKHO, ZGE9, gEmA, uqvc):
if ZGE9 == 'resnet-18':
C3ST = FYrf.resnet18()
C3ST.load_state_dict(ht2j.load(uqvc))
if gEmA == 'default':
gEmA = C3ST._modules.get('avgpool')
YKHO.layer_output_size = 512
else:
gEmA = C3ST._modules.get(gEmA)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vKhw(YKHO):\n return YKHO._layers",
"def RY3r(C3ST, lzjZ=None, mgU1=None):\n CAar(lzjZ, mgU1, layer=None)\n if mgU1 is not None:\n return C3ST.layers[mgU1]\n gEmA = [gEmA for gEmA in C3ST.layers if lzjZ in gEmA.name]\n if len(gEmA) > 1:\n print(PEwm + 'multiple matching layer nam... | [
"0.7012858",
"0.67027503",
"0.66968244",
"0.6680103",
"0.66642064",
"0.66558564",
"0.66346604",
"0.6583788",
"0.6583224",
"0.65142715",
"0.64148736",
"0.63179916",
"0.6306704",
"0.62477165",
"0.6193528",
"0.61811453",
"0.6172382",
"0.61646074",
"0.6153398",
"0.6145659",
"0.61... | 0.67539865 | 1 |
Initialize a Battle Simulator object with the given two characters. | def FIMM(YKHO, MakV, ym9f):
YKHO.character_1 = MakV
YKHO.character_2 = ym9f | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b8V_():\n kAN6 = ISj8('Dr. Bones', 100, 60, 15, 5)\n Ndwx = ISj8('Mr. Meeseeks', 100, 60, 15, 5)\n X1ii = N4I3(kAN6, Ndwx)\n X1ii.simulate()",
"def FIMM(YKHO, KcSv, h3kA):\n YKHO.players = [KcSv, h3kA]\n YKHO.tokens = {' ': ' ', KcSv: 'X', h3kA: 'O'}\n YKHO.score = {KcSv: 0, h3kA: 0}\n ... | [
"0.6387656",
"0.61199796",
"0.5862212",
"0.56728464",
"0.5633514",
"0.5492498",
"0.54009104",
"0.53709",
"0.5341678",
"0.5341678",
"0.532014",
"0.5287973",
"0.52810705",
"0.527881",
"0.5228554",
"0.5223448",
"0.5220337",
"0.521714",
"0.5204622",
"0.5186126",
"0.51500547",
"... | 0.6858176 | 0 |
Uses random module to set all the character stats and returns a Character object. | def ISj8(mWFP, Dxow, wnSB, QRht, N4dV):
return _Ldl(tuKI.randint(N4dV, QRht), tuKI.randint(wnSB, Dxow), mWFP, tuKI.random(), tuKI.random()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F1rj(YKHO):\n return YKHO.letterbag[tuKI.randint(0, 25)]",
"def FIMM(YKHO, LYN8, hQpf):\n YKHO.name = 'random'\n tuKI.seed(2)\n YKHO.game = LYN8\n YKHO.character = hQpf\n YKHO.neutralCharacter = YKHO.game.neutralCharacter",
"def io9v(YKHO, B6sC):\n if B6sC in YKHO.script_characters['Sc... | [
"0.6978008",
"0.6883214",
"0.68403435",
"0.66532755",
"0.6509252",
"0.6502714",
"0.6381731",
"0.62692136",
"0.62538266",
"0.62515855",
"0.62462306",
"0.6210672",
"0.6135978",
"0.60445887",
"0.59788424",
"0.5954294",
"0.59287107",
"0.59248483",
"0.59083915",
"0.58917",
"0.5877... | 0.72781706 | 0 |
Reshape x so that the last dimension becomes two dimensions. The first of these two dimensions is n. | def DVD6(YKHO, WKvO, exwG):
iPPn = list(WKvO.size())
XVAW = iPPn[-1]
EZd9 = iPPn[:-1] + [exwG] + [XVAW // exwG if XVAW else None]
U5bT = WKvO.view(EZd9)
return U5bT.permute(0, 2, 1, 3) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VjTS(WKvO, exwG):\n OOcW = ihqc(WKvO)\n r8hN = OOcW[-1]\n if isinstance(r8hN, int) and isinstance(exwG, int):\n assert r8hN % exwG == 0\n return ZylS.reshape(WKvO, OOcW[:-1] + [exwG, r8hN // exwG])",
"def VjTS(WKvO, exwG):\n iPPn = WKvO.get_shape().dims\n XVAW = iPPn[-1]\n EZd9 = ... | [
"0.73021156",
"0.72806466",
"0.727416",
"0.72017586",
"0.7137547",
"0.7065171",
"0.70424175",
"0.69658244",
"0.69242",
"0.6820341",
"0.6561438",
"0.6518949",
"0.6497071",
"0.6470221",
"0.6422806",
"0.6359682",
"0.6277855",
"0.62476885",
"0.62466705",
"0.6239059",
"0.623731",
... | 0.74958134 | 2 |
Reshape x so that the last two dimension become one. | def _QYZ(YKHO, WKvO):
iPPn = list(WKvO.size())
jzdc, Fg_i = iPPn[-2:]
EZd9 = iPPn[:-2] + [jzdc * Fg_i if jzdc and Fg_i else None]
U5bT = WKvO.contiguous().view(EZd9)
return U5bT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PWgb(WKvO):\n return q3V_(WKvO, (WKvO.shape[0], -1))",
"def q3V_(WKvO, ROpF):\n return hekC(ROpF)(WKvO)",
"def feNb(WKvO):\n assert WKvO.dim() == 4\n Ep8u, fHmP, MKlR, yzQ0 = WKvO.size()\n REGG = WKvO.view(Ep8u, fHmP, -1).transpose(1, 2).contiguous()\n REGG = REGG.view(Ep8u, MKlR, yzQ0, f... | [
"0.7624362",
"0.7361735",
"0.7356254",
"0.73524576",
"0.7211992",
"0.71524197",
"0.70263374",
"0.69711345",
"0.69283223",
"0.6908497",
"0.67825496",
"0.6772853",
"0.67166173",
"0.67037886",
"0.66884685",
"0.66884685",
"0.6648974",
"0.6637822",
"0.660816",
"0.658997",
"0.65652... | 0.5980656 | 64 |
Sets the error_count of this AutodetectDocumentValidationResult. | def ldtb(YKHO, ldtb):
YKHO._error_count = ldtb | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ldtb(YKHO):\n return len(YKHO.errors)",
"def r_LK(YKHO, *qIxc):\n return _VfD.SBMLDocument_getNumErrors(YKHO, *qIxc)",
"def s7TN(YKHO, yE6z):\n YKHO.error_max = yE6z",
"def r_LK(YKHO):\n return _VfD.XMLErrorLog_getNumErrors(YKHO)",
"def nDle(YKHO):\n YKHO._failures = 0",
"def UAju(YKHO... | [
"0.6081048",
"0.5987648",
"0.5690299",
"0.55666184",
"0.54826427",
"0.5481803",
"0.5442737",
"0.5439933",
"0.5439933",
"0.5394178",
"0.53693044",
"0.5346391",
"0.5328946",
"0.5287597",
"0.52519226",
"0.52452815",
"0.5237477",
"0.52228737",
"0.52036804",
"0.51751804",
"0.51453... | 0.7866384 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, Zei5):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
... | 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 if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748"
] | 0.0 | -1 |
returns the ith element in the sequence, otherwise returns an empty string | def d6pt(aWuw, YRbF):
try:
return aWuw[YRbF]
except IndexError:
return u'' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _oqe(KCHu, YRbF):\n while YRbF > 0:\n KCHu, YRbF = (wOmD(KCHu), YRbF - 1)\n return cntZ(KCHu)",
"def QhtV(WKvO, YRbF):\n if YRbF < len(WKvO):\n return WKvO[YRbF]\n else:\n return ''",
"def gWR6(WKvO):\n if WKvO == []:\n return ''\n else:\n return WKvO[0]... | [
"0.6512861",
"0.6484922",
"0.6476134",
"0.634842",
"0.6315457",
"0.63108003",
"0.6219168",
"0.61819625",
"0.6060573",
"0.6046717",
"0.60024315",
"0.58221686",
"0.58175415",
"0.5717458",
"0.57147264",
"0.5701671",
"0.5693254",
"0.56161135",
"0.5613445",
"0.5589253",
"0.5582843... | 0.74435055 | 0 |
gets a list of fields from a form based on their names | def UeqS(L03z, NSNj):
V_D6 = []
for vXX7 in NSNj.split(','):
Jyyj = sTsk(L03z, vXX7)
if Jyyj:
V_D6.append(Jyyj)
return V_D6 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TnMw(L03z, qIxc):\n Urcy = {}\n V_D6 = []\n for Jyyj in L03z:\n Urcy.update({Jyyj.name: Jyyj})\n for vXX7 in qIxc.split(','):\n if vXX7 in Urcy:\n V_D6.append(Urcy[vXX7])\n return V_D6",
"def nHND(YKHO, QePW, G4PB=None):\n V_D6 = []\n if G4PB is None:\n G4... | [
"0.7999815",
"0.72664",
"0.7148749",
"0.6959313",
"0.6893017",
"0.679975",
"0.67761",
"0.6736716",
"0.67148304",
"0.65763026",
"0.64540225",
"0.64517975",
"0.64014566",
"0.63794136",
"0.63665617",
"0.63384515",
"0.6324435",
"0.6305355",
"0.6302783",
"0.6288462",
"0.6283588",
... | 0.8055306 | 0 |
gets a list of forms from a formset based on a field_name/field_value pair | def z9FK(dBAz, HOJN):
vXX7, sjci = HOJN.split('|')
return dBAz.get_forms_by_field(vXX7, sjci) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def veX2(dBAz, HOJN):\n vXX7, sjci = HOJN.split('|')\n return dBAz.get_form_by_field(vXX7, sjci)",
"def iyR2(YKHO, **B2fa):\n return YKHO.formsets[B2fa.get('prefix')](data=YKHO.get_form_kwargs().get('data'), **B2fa)",
"def nHND(YKHO, QePW, G4PB=None):\n V_D6 = []\n if G4PB is None:\n G4PB... | [
"0.7737669",
"0.6752881",
"0.67076665",
"0.64571047",
"0.6230185",
"0.6196658",
"0.6161314",
"0.6159796",
"0.5969113",
"0.59087384",
"0.5892944",
"0.58924574",
"0.5766631",
"0.576133",
"0.5720887",
"0.56406283",
"0.5543609",
"0.5515373",
"0.55145144",
"0.55031633",
"0.5446175... | 0.86300886 | 0 |
Represents a cored spherical isothermal density distribution, which is equivalent to the elliptical powerlaw | def FIMM(YKHO, A4Ls: Tuple[float, float]=(0.0, 0.0), tRSD: float=1.0, pdAq: float=0.01):
super().__init__(centre=A4Ls, einstein_radius=tRSD, slope=2.0, core_radius=pdAq) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s1Y6(YKHO):\n WKvO = 1.0\n LVAh = 1.0\n TP50, fHZS = (5e-05, 0.0)\n WTkW = 1.0\n Os_7 = 2.0\n TYyO = YKHO.gaussian_kappa_ellipse.density_2d(WKvO, LVAh, Os_7, WTkW, TP50, fHZS)\n DMp5 = Os_7 / (2.0 * oyIN.pi * WTkW ** 2) * oyIN.exp(-(WKvO * WKvO + LVAh * LVAh) / 2.0 / WTkW ** 2)\n eQHC.a... | [
"0.6664183",
"0.64580435",
"0.62347794",
"0.6172197",
"0.6137241",
"0.6082191",
"0.5902708",
"0.5891326",
"0.5886598",
"0.586953",
"0.581738",
"0.581738",
"0.581738",
"0.581402",
"0.578542",
"0.578542",
"0.57518727",
"0.57191616",
"0.5706903",
"0.57064813",
"0.57047015",
"0... | 0.0 | -1 |
Update an existing post. | def HrwA(ZzYC, nPrm, HrP9):
uPxI = adRX(nPrm)
bAsX = ZzYC['kind']
if bAsX is 'post' or bAsX is 'proposal':
nPrm = iEJi(nPrm, ('body',))
elif bAsX is 'vote':
nPrm = iEJi(nPrm, ('body', 'response'))
nPrm, UAju = oCIq(uPxI, ZzYC, nPrm, HrP9)
if not UAju:
weZo(nPrm, HrP9)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HrwA(Fi3q):\n m8z6 = T97t.query.get_or_404(Fi3q)\n m8z6.title = QePW.form['edit_post_title']\n m8z6.content = QePW.form['edit_post_content']\n UHUx = [int(mLGw) for mLGw in QePW.form.getlist('tags')]\n m8z6.tags = OhYN.query.filter(OhYN.id.in_(UHUx)).all()\n NCls.session.add(m8z6)\n NCls.s... | [
"0.77233607",
"0.7450944",
"0.7264696",
"0.7071551",
"0.70528066",
"0.6966255",
"0.6850572",
"0.67310226",
"0.6657074",
"0.66340834",
"0.6580428",
"0.6550912",
"0.6476071",
"0.6458061",
"0.64543605",
"0.64482594",
"0.6400658",
"0.63880545",
"0.63092726",
"0.62942237",
"0.6276... | 0.59455967 | 31 |
Get a list of names of currently connected clients. | def Xjwq(YKHO, uJjO: int) -> x1iM[str]:
return list(YKHO.clients[uJjO]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eAVp(YKHO):\n yGKp = YKHO.all_clients.keys()\n return yGKp",
"def gIeD(YKHO):\n return YKHO.clients_info",
"def ik_9(YKHO):\n\n def JfyU(N5z6):\n return N5z6.server.client_list()\n YKHO.__run_redis_cmd(JfyU)",
"def gIeD():\n global clients\n for or8S, x0hE in enumerate(Onn9):\... | [
"0.7828835",
"0.76664424",
"0.7529242",
"0.7455028",
"0.7432652",
"0.74147576",
"0.7352863",
"0.7346966",
"0.72434473",
"0.72434473",
"0.72185737",
"0.71213275",
"0.6920311",
"0.6882118",
"0.68740314",
"0.6811941",
"0.6792427",
"0.6690458",
"0.66842914",
"0.66598445",
"0.6620... | 0.6789289 | 17 |
``RegistrationProfile.send_activation_email`` sends an email. | def jHPO(YKHO):
Q5YQ = Nc2H().objects.create_user(**YKHO.user_info)
z39Z = YKHO.registration_profile.objects.create_profile(Q5YQ)
z39Z.send_activation_email(HAC5.objects.get_current())
YKHO.assertEqual(len(cpYK.outbox), 1)
YKHO.assertEqual(cpYK.outbox[0].to, [YKHO.user_info['email']]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QdMS(YKHO):\n RHyD = {'activation_key': YKHO.activation_key, 'expiration_days': gCuF.ACCOUNT_ACTIVATION_DAYS, 'user': YKHO.user, 'SITE_URL': gCuF.SITE_URL}\n U4ZT = eoaG('accounts/activation_email_subject.txt', RHyD)\n U4ZT = ''.join(U4ZT.splitlines())\n Ol8d = eoaG('accounts/activation_email_body.... | [
"0.7949695",
"0.79065245",
"0.74792427",
"0.73209125",
"0.71521664",
"0.71488476",
"0.7118745",
"0.6992142",
"0.6942355",
"0.6844352",
"0.66829264",
"0.6604554",
"0.65535015",
"0.65181637",
"0.65029484",
"0.64943045",
"0.6489618",
"0.6449097",
"0.6443088",
"0.64343107",
"0.63... | 0.7295338 | 4 |
``RegistrationProfile.send_activation_email`` sends an email. | def hRrv(YKHO):
Q5YQ = Nc2H().objects.create_user(**YKHO.user_info)
z39Z = YKHO.registration_profile.objects.create_profile(Q5YQ)
z39Z.send_activation_email(HAC5.objects.get_current())
YKHO.assertEqual(len(cpYK.outbox), 1)
YKHO.assertEqual(cpYK.outbox[0].to, [YKHO.user_info['email']]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QdMS(YKHO):\n RHyD = {'activation_key': YKHO.activation_key, 'expiration_days': gCuF.ACCOUNT_ACTIVATION_DAYS, 'user': YKHO.user, 'SITE_URL': gCuF.SITE_URL}\n U4ZT = eoaG('accounts/activation_email_subject.txt', RHyD)\n U4ZT = ''.join(U4ZT.splitlines())\n Ol8d = eoaG('accounts/activation_email_body.... | [
"0.7949695",
"0.79065245",
"0.74792427",
"0.73209125",
"0.7295338",
"0.71521664",
"0.71488476",
"0.7118745",
"0.6992142",
"0.6942355",
"0.6844352",
"0.66829264",
"0.6604554",
"0.65535015",
"0.65029484",
"0.64943045",
"0.6489618",
"0.6449097",
"0.6443088",
"0.64343107",
"0.639... | 0.65181637 | 14 |